@mx-cartographer/experiences 7.0.37-alpha-recurring-transactions-divider-padding-ram2 → 7.0.37-alpha-testing-mr-ram1
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 +4 -0
- package/dist/{ManageIncome-BaZyK1CD.mjs → ManageIncome-4_bSdxXr.mjs} +74 -73
- package/dist/RecurringSettings-RduF8gt3.mjs +88 -0
- package/dist/budgets/index.es.js +117 -120
- package/dist/cashflow/index.es.js +2 -2
- package/dist/finstrong/index.es.js +1 -1
- package/dist/recurringtransactions/index.es.js +126 -127
- package/package.json +1 -1
- package/dist/RecurringSettings-DHPyexin.mjs +0 -79
|
@@ -17,7 +17,7 @@ import { I as he } from "../CashflowStore-D9Dpuz7X.mjs";
|
|
|
17
17
|
import { C as Wn } from "../CashflowStore-D9Dpuz7X.mjs";
|
|
18
18
|
import { b as X } from "../Localization-2MODESHW.mjs";
|
|
19
19
|
import { M as Qe } from "../MiniWidgetContainer-BhHaL8eb.mjs";
|
|
20
|
-
import { R as Ve } from "../RecurringSettings-
|
|
20
|
+
import { R as Ve } from "../RecurringSettings-RduF8gt3.mjs";
|
|
21
21
|
import Ke from "@mui/material/Tabs";
|
|
22
22
|
import Ce from "@mui/material/Tab";
|
|
23
23
|
import { getUnixTime as U } from "date-fns/getUnixTime";
|
|
@@ -34,7 +34,7 @@ import { addDays as _e } from "date-fns/addDays";
|
|
|
34
34
|
import { alpha as et, keyframes as tt } from "@mui/material/styles";
|
|
35
35
|
import { DataGridPro as nt } from "@mui/x-data-grid-pro";
|
|
36
36
|
import { T as we } from "../TabContentContainer-j01JYR_7.mjs";
|
|
37
|
-
import { M as ot, S as it, i as at, d as Se, c as rt } from "../ManageIncome-
|
|
37
|
+
import { M as ot, S as it, i as at, d as Se, c as rt } from "../ManageIncome-4_bSdxXr.mjs";
|
|
38
38
|
import { D as $e } from "../Drawer-kEE73B87.mjs";
|
|
39
39
|
import { formatISO as st } from "date-fns/formatISO";
|
|
40
40
|
import { fromUnixTime as ye } from "date-fns/fromUnixTime";
|
|
@@ -30,7 +30,7 @@ import Ue from "@mui/material/AccordionSummary";
|
|
|
30
30
|
import Ve from "@mui/material/CardHeader";
|
|
31
31
|
import { u as Ye } from "../useDimensions-27p2evRx.mjs";
|
|
32
32
|
import { C as qe } from "../ConnectionsDrawer-B-dZx6gH.mjs";
|
|
33
|
-
import { R as Je } from "../RecurringSettings-
|
|
33
|
+
import { R as Je } from "../RecurringSettings-RduF8gt3.mjs";
|
|
34
34
|
import Qe from "@mui/material/TextField";
|
|
35
35
|
import { u as Ce } from "../useScreenSize-B6JyS_Lj.mjs";
|
|
36
36
|
import { a as Ze } from "../Dialog-CWW597AF.mjs";
|
|
@@ -8,47 +8,47 @@ import { startOfToday as de } from "date-fns/startOfToday";
|
|
|
8
8
|
import { subDays as ue } from "date-fns/subDays";
|
|
9
9
|
import oe from "@mui/material/Skeleton";
|
|
10
10
|
import c from "@mui/material/Stack";
|
|
11
|
-
import { R as
|
|
12
|
-
import { M as An } from "../RecurringSettings-
|
|
13
|
-
import { addMonths as
|
|
14
|
-
import { subMonths as
|
|
15
|
-
import { isBefore as
|
|
11
|
+
import { R as ze } from "../RecurringSettings-RduF8gt3.mjs";
|
|
12
|
+
import { M as An } from "../RecurringSettings-RduF8gt3.mjs";
|
|
13
|
+
import { addMonths as Be } from "date-fns/addMonths";
|
|
14
|
+
import { subMonths as Ue } from "date-fns/subMonths";
|
|
15
|
+
import { isBefore as Fe } from "date-fns/isBefore";
|
|
16
16
|
import ae from "@mui/material/Unstable_Grid2";
|
|
17
17
|
import Te from "@mui/material/IconButton";
|
|
18
18
|
import De from "@mui/material/Tab";
|
|
19
|
-
import
|
|
20
|
-
import { Schedule as
|
|
21
|
-
import { Text as g, MerchantLogo as me, InstitutionLogo as
|
|
19
|
+
import je from "@mui/material/Tabs";
|
|
20
|
+
import { Schedule as Ke, MonetizationOn as Ye, Cancel as Le, CheckCircle as Ae, ChevronLeft as Ve, ChevronRight as Xe, CurrencyExchange as Ze } from "@mxenabled/mx-icons";
|
|
21
|
+
import { Text as g, MerchantLogo as me, InstitutionLogo as qe, H3 as Je, P as se } from "@mxenabled/mxui";
|
|
22
22
|
import { getWeeksInMonth as Se } from "date-fns/getWeeksInMonth";
|
|
23
23
|
import pe from "@mui/material/styles/useTheme";
|
|
24
|
-
import { AdapterDateFns as
|
|
25
|
-
import { DateCalendar as
|
|
26
|
-
import { LocalizationProvider as
|
|
27
|
-
import { isSameDay as
|
|
28
|
-
import
|
|
29
|
-
import { PickersDay as
|
|
24
|
+
import { AdapterDateFns as Qe } from "@mui/x-date-pickers/AdapterDateFnsV3";
|
|
25
|
+
import { DateCalendar as et } from "@mui/x-date-pickers/DateCalendar";
|
|
26
|
+
import { LocalizationProvider as tt } from "@mui/x-date-pickers/LocalizationProvider";
|
|
27
|
+
import { isSameDay as nt } from "date-fns/isSameDay";
|
|
28
|
+
import it from "@mui/material/Badge";
|
|
29
|
+
import { PickersDay as rt } from "@mui/x-date-pickers/PickersDay";
|
|
30
30
|
import { I as V } from "../IconBacking-B9oC6uL2.mjs";
|
|
31
|
-
import { u as S, a as X, i as
|
|
32
|
-
import { c as
|
|
31
|
+
import { u as S, a as X, i as v, f as Z, p as Ee, c as ge, g as he } from "../hooks-BAAimqdq.mjs";
|
|
32
|
+
import { c as M, a as T, g as Ie, f as ot } from "../RepeatingTransaction-BW4J-jeJ.mjs";
|
|
33
33
|
import { T as H } from "../RecurringTransactionsStore-DeLXfuC4.mjs";
|
|
34
34
|
import { R as Gn } from "../RecurringTransactionsStore-DeLXfuC4.mjs";
|
|
35
35
|
import { A as w, W as at } from "../WidgetContainer-ztkGgdIH.mjs";
|
|
36
36
|
import st from "@mui/material/Button";
|
|
37
37
|
import ce from "@mui/material/Divider";
|
|
38
38
|
import _e from "@mui/material/List";
|
|
39
|
-
import
|
|
39
|
+
import Ge from "@mui/material/ListItem";
|
|
40
40
|
import ct from "@mui/material/ListSubheader";
|
|
41
41
|
import lt from "@mui/material/ListItemAvatar";
|
|
42
42
|
import dt from "@mui/material/ListItemButton";
|
|
43
43
|
import ut from "@mui/material/ListItemText";
|
|
44
|
-
import { b as mt } from "../ManageIncome-
|
|
45
|
-
import { c as On, M as kn, S as Wn } from "../ManageIncome-
|
|
44
|
+
import { b as mt } from "../ManageIncome-4_bSdxXr.mjs";
|
|
45
|
+
import { c as On, M as kn, S as Wn } from "../ManageIncome-4_bSdxXr.mjs";
|
|
46
46
|
import { f as L } from "../NumberFormatting-CtWHhyBX.mjs";
|
|
47
|
-
import { D as
|
|
47
|
+
import { D as Ne } from "../Drawer-kEE73B87.mjs";
|
|
48
48
|
import { b as O } from "../Localization-2MODESHW.mjs";
|
|
49
49
|
import { f as A, D as E } from "../Dialog-CWW597AF.mjs";
|
|
50
50
|
import k from "@mui/material/Box";
|
|
51
|
-
import { S as
|
|
51
|
+
import { S as Oe } from "../StatusBar-BK_uYHAB.mjs";
|
|
52
52
|
import { u as fe } from "../useScreenSize-B6JyS_Lj.mjs";
|
|
53
53
|
import { L as K } from "../Loader-DUaFpDGv.mjs";
|
|
54
54
|
import { M as pt } from "../MiniWidgetContainer-BhHaL8eb.mjs";
|
|
@@ -58,28 +58,28 @@ const q = {
|
|
|
58
58
|
gridRow: 1,
|
|
59
59
|
gridColumn: 1,
|
|
60
60
|
zIndex: 2
|
|
61
|
-
}, J = (t) => t ? { margin: "0 0 -6px -4px" } : void 0, xe = ({ isOffset: t = !1, size: n = 16 }) => /* @__PURE__ */ e(V, { size: n, sx: { ...J(t) }, children: /* @__PURE__ */ e(
|
|
62
|
-
|
|
61
|
+
}, J = (t) => t ? { margin: "0 0 -6px -4px" } : void 0, xe = ({ isOffset: t = !1, size: n = 16 }) => /* @__PURE__ */ e(V, { size: n, sx: { ...J(t) }, children: /* @__PURE__ */ e(Ke, { color: "primary", filled: !0, sx: { fontSize: n, ...q } }) }), ye = ({ isOffset: t = !1, size: n = 16 }) => /* @__PURE__ */ e(V, { size: n, sx: { ...J(t) }, children: /* @__PURE__ */ e(
|
|
62
|
+
Ye,
|
|
63
63
|
{
|
|
64
64
|
filled: !0,
|
|
65
65
|
sx: { color: "categories.income", fontSize: n, ...q }
|
|
66
66
|
}
|
|
67
67
|
) }), Ce = ({ isOffset: t = !1, size: n = 16 }) => /* @__PURE__ */ e(V, { size: n, sx: { ...J(t) }, children: /* @__PURE__ */ e(Le, { color: "error", filled: !0, sx: { fontSize: n, ...q } }) }), be = ({ isOffset: t = !1, size: n = 16 }) => /* @__PURE__ */ e(V, { size: n, sx: { ...J(t) }, children: /* @__PURE__ */ e(Ae, { color: "success", filled: !0, sx: { fontSize: n, ...q } }) }), ft = D(
|
|
68
68
|
({ day: t, outsideCurrentMonth: n, ...i }) => {
|
|
69
|
-
const { recurring: a } = S(), { selectedAccountGuids: r } = X(), { recurrences: l, setSelectedDay: p } =
|
|
69
|
+
const { recurring: a } = S(), { selectedAccountGuids: r } = X(), { recurrences: l, setSelectedDay: p } = v(), s = h.useMemo(
|
|
70
70
|
() => l.filter((d) => r.includes(d.accountGuid)),
|
|
71
71
|
[r, l]
|
|
72
72
|
).filter(
|
|
73
|
-
(d) =>
|
|
73
|
+
(d) => nt(d.occurredOnDate || d.expectedDate, t)
|
|
74
74
|
), m = s.some(
|
|
75
|
-
(d) => d.type !==
|
|
75
|
+
(d) => d.type !== M.Income && d.status === T.Upcoming
|
|
76
76
|
), f = s.some(
|
|
77
|
-
(d) => d.type !==
|
|
77
|
+
(d) => d.type !== M.Income && d.status === T.Missed
|
|
78
78
|
), x = s.some(
|
|
79
|
-
(d) => d.type !==
|
|
80
|
-
), C = s.some((d) => d.type ===
|
|
79
|
+
(d) => d.type !== M.Income && d.status === T.Paid
|
|
80
|
+
), C = s.some((d) => d.type === M.Income), y = (m ? 1 : 0) + (f ? 1 : 0) + (x ? 1 : 0) + (C ? 1 : 0);
|
|
81
81
|
return /* @__PURE__ */ e(
|
|
82
|
-
|
|
82
|
+
it,
|
|
83
83
|
{
|
|
84
84
|
badgeContent: s.length > 0 && /* @__PURE__ */ o(Y, { children: [
|
|
85
85
|
f && /* @__PURE__ */ e(Ce, { isOffset: !0 }),
|
|
@@ -96,7 +96,7 @@ const q = {
|
|
|
96
96
|
}
|
|
97
97
|
},
|
|
98
98
|
children: /* @__PURE__ */ e(
|
|
99
|
-
|
|
99
|
+
rt,
|
|
100
100
|
{
|
|
101
101
|
"aria-label": `
|
|
102
102
|
${x && a.paid},
|
|
@@ -141,8 +141,8 @@ const q = {
|
|
|
141
141
|
]
|
|
142
142
|
}
|
|
143
143
|
);
|
|
144
|
-
}), we = 58,
|
|
145
|
-
const t = pe(), { onEvent: n } = Z(), { selectedDay: i, setDateRange: a } =
|
|
144
|
+
}), we = 58, ke = D(() => {
|
|
145
|
+
const t = pe(), { onEvent: n } = Z(), { selectedDay: i, setDateRange: a } = v(), [r, l] = h.useState(
|
|
146
146
|
Se(/* @__PURE__ */ new Date()) * H + we
|
|
147
147
|
), p = (s) => {
|
|
148
148
|
l(Se(s) * H + we), a({
|
|
@@ -150,7 +150,7 @@ const q = {
|
|
|
150
150
|
end: B(s)
|
|
151
151
|
}), n(w.RECURRING_TRANSACTIONS_CLICK_CALENDAR_RIGHT);
|
|
152
152
|
}, u = /* @__PURE__ */ e(
|
|
153
|
-
|
|
153
|
+
et,
|
|
154
154
|
{
|
|
155
155
|
minDate: W(/* @__PURE__ */ new Date()),
|
|
156
156
|
onMonthChange: p,
|
|
@@ -200,13 +200,13 @@ const q = {
|
|
|
200
200
|
views: ["day"]
|
|
201
201
|
}
|
|
202
202
|
);
|
|
203
|
-
return /* @__PURE__ */ e(c, { justifyContent: "center", children: /* @__PURE__ */ o(
|
|
203
|
+
return /* @__PURE__ */ e(c, { justifyContent: "center", children: /* @__PURE__ */ o(tt, { dateAdapter: Qe, children: [
|
|
204
204
|
i && u,
|
|
205
205
|
!i && u,
|
|
206
206
|
/* @__PURE__ */ e(xt, {})
|
|
207
207
|
] }) });
|
|
208
208
|
}), yt = (t) => {
|
|
209
|
-
if (t.type ===
|
|
209
|
+
if (t.type === M.Income)
|
|
210
210
|
return /* @__PURE__ */ e(ye, {});
|
|
211
211
|
switch (t.status) {
|
|
212
212
|
case T.Missed:
|
|
@@ -239,20 +239,20 @@ const q = {
|
|
|
239
239
|
default:
|
|
240
240
|
return n.unknown;
|
|
241
241
|
}
|
|
242
|
-
},
|
|
242
|
+
}, ve = ({
|
|
243
243
|
recurrence: t,
|
|
244
244
|
isMini: n = !1,
|
|
245
245
|
onRecurrenceClick: i = () => {
|
|
246
246
|
},
|
|
247
247
|
showOrdinal: a = !1
|
|
248
248
|
}) => {
|
|
249
|
-
const { recurring: r } = S(), { repeatingTransactions: l } =
|
|
249
|
+
const { recurring: r } = S(), { repeatingTransactions: l } = v(), [p, u] = h.useState(!1), s = h.useMemo(
|
|
250
250
|
() => l.find((R) => R.guid === t.repeatingTransactionGuid),
|
|
251
251
|
[t, l]
|
|
252
|
-
), m = t.type ===
|
|
252
|
+
), m = t.type === M.Income, f = t.status === T.Paid, x = t.status === T.Missed, C = t.status === T.Upcoming;
|
|
253
253
|
let y = r.paid?.toLowerCase();
|
|
254
254
|
return x ? y = r.missed?.toLowerCase() : C && (y = a ? Ie(r, s || {}, !0) : Ie(r, s || {}, !1)), //TODO: implement common/components/ListItemRow.tsx
|
|
255
|
-
/* @__PURE__ */ o(
|
|
255
|
+
/* @__PURE__ */ o(Ge, { disableGutters: !0, disablePadding: !0, children: [
|
|
256
256
|
/* @__PURE__ */ o(dt, { onClick: () => {
|
|
257
257
|
u(!0), i(t);
|
|
258
258
|
}, children: [
|
|
@@ -277,7 +277,7 @@ const q = {
|
|
|
277
277
|
/* @__PURE__ */ e(g, { variant: "caption", children: Ct(t, r) })
|
|
278
278
|
] }) : /* @__PURE__ */ o(Y, { children: [
|
|
279
279
|
t.institutionGuid && /* @__PURE__ */ e(
|
|
280
|
-
|
|
280
|
+
qe,
|
|
281
281
|
{
|
|
282
282
|
alt: t.institutionName,
|
|
283
283
|
institutionGuid: t.institutionGuid,
|
|
@@ -316,12 +316,12 @@ const q = {
|
|
|
316
316
|
) })
|
|
317
317
|
] }),
|
|
318
318
|
/* @__PURE__ */ e(
|
|
319
|
-
|
|
319
|
+
Ne,
|
|
320
320
|
{
|
|
321
321
|
ariaLabelClose: r.close_drawer_aria,
|
|
322
322
|
isOpen: p,
|
|
323
323
|
onClose: () => u(!1),
|
|
324
|
-
title: t.type ===
|
|
324
|
+
title: t.type === M.Income ? r.income_details : r.expense_details,
|
|
325
325
|
children: s && /* @__PURE__ */ e(
|
|
326
326
|
mt,
|
|
327
327
|
{
|
|
@@ -355,7 +355,7 @@ const q = {
|
|
|
355
355
|
),
|
|
356
356
|
t.length === 0 ? /* @__PURE__ */ e(g, { fontStyle: "italic", sx: { py: 24, textAlign: "center" }, children: p.no_activities }) : /* @__PURE__ */ e(_e, { children: n ? t.map((s, m) => /* @__PURE__ */ o(h.Fragment, { children: [
|
|
357
357
|
/* @__PURE__ */ e(
|
|
358
|
-
|
|
358
|
+
ve,
|
|
359
359
|
{
|
|
360
360
|
isMini: n,
|
|
361
361
|
onRecurrenceClick: a,
|
|
@@ -364,13 +364,13 @@ const q = {
|
|
|
364
364
|
),
|
|
365
365
|
/* @__PURE__ */ e(ce, { sx: { mx: 24 } })
|
|
366
366
|
] }, `recurrence-${m}`)) : u.map((s, m) => /* @__PURE__ */ o(h.Fragment, { children: [
|
|
367
|
-
/* @__PURE__ */ e(
|
|
367
|
+
/* @__PURE__ */ e(Ge, { children: /* @__PURE__ */ e(
|
|
368
368
|
_e,
|
|
369
369
|
{
|
|
370
370
|
subheader: /* @__PURE__ */ e(ct, { sx: { bgcolor: "background.paper", ml: 8, pb: 4, pt: 12 }, children: /* @__PURE__ */ e(g, { bold: !0, variant: "caption", children: A(s.date, E.DAY_OF_WEEK_MONTH_DAY) }) }),
|
|
371
371
|
sx: { width: "100%" },
|
|
372
372
|
children: s.recurrences.map((f, x) => /* @__PURE__ */ e(h.Fragment, { children: /* @__PURE__ */ e(
|
|
373
|
-
|
|
373
|
+
ve,
|
|
374
374
|
{
|
|
375
375
|
isMini: n,
|
|
376
376
|
onRecurrenceClick: a,
|
|
@@ -383,7 +383,7 @@ const q = {
|
|
|
383
383
|
] }, `recurrence-${m}`)) })
|
|
384
384
|
] });
|
|
385
385
|
}
|
|
386
|
-
),
|
|
386
|
+
), Me = D(
|
|
387
387
|
({ expected: t, isExpense: n = !0, missed: i, paid: a, title: r, total: l, upcoming: p }) => {
|
|
388
388
|
const u = pe(), { isSmallMobile: s } = fe(), { recurring: m } = S(), f = h.useMemo(() => {
|
|
389
389
|
const x = [{ color: u.palette.success.main, percentage: `${a / t}` }];
|
|
@@ -394,7 +394,7 @@ const q = {
|
|
|
394
394
|
/* @__PURE__ */ e(g, { bold: !0, variant: "body1", children: `${r} (${l})` }),
|
|
395
395
|
/* @__PURE__ */ e(g, { bold: !0, color: n ? "text.primary" : "success.main", variant: "body1", children: `${n ? "-" : "+"}${L(t, "0,0.00")}` })
|
|
396
396
|
] }),
|
|
397
|
-
/* @__PURE__ */ e(
|
|
397
|
+
/* @__PURE__ */ e(Oe, { data: f, height: 12 }),
|
|
398
398
|
/* @__PURE__ */ o(c, { sx: { alignItems: "center", flexDirection: "row", gap: 2, my: 8 }, children: [
|
|
399
399
|
/* @__PURE__ */ e(k, { sx: { bgcolor: "success.main", height: 8, mr: 8, width: 8 } }),
|
|
400
400
|
!s && /* @__PURE__ */ e(g, { bold: !0, variant: "body2", children: L(a, "0,0.00") }),
|
|
@@ -411,7 +411,7 @@ const q = {
|
|
|
411
411
|
] });
|
|
412
412
|
}
|
|
413
413
|
), bt = D(() => {
|
|
414
|
-
const { recurring: t } = S(), {
|
|
414
|
+
const { recurring: t } = S(), { availableWidth: n } = Ee(), { isDesktop: i, isSmallMobile: a } = fe(n), { onEvent: r } = Z(), {
|
|
415
415
|
currentMonthExpenses: l,
|
|
416
416
|
currentMonthIncome: p,
|
|
417
417
|
dateRange: u,
|
|
@@ -427,7 +427,7 @@ const q = {
|
|
|
427
427
|
upcomingExpenseTotal: Q,
|
|
428
428
|
upcomingIncomeTotal: ee,
|
|
429
429
|
upcomingRecurrences: U
|
|
430
|
-
} =
|
|
430
|
+
} = v(), [$, te] = h.useState(0), I = Fe(u.start, /* @__PURE__ */ new Date()), ne = (b, re) => {
|
|
431
431
|
te(re);
|
|
432
432
|
}, _ = (b) => {
|
|
433
433
|
r(w.RECURRING_TRANSACTIONS_CLICK_UPCOMING, {
|
|
@@ -438,13 +438,13 @@ const q = {
|
|
|
438
438
|
transaction_guid: b.transaction?.guid
|
|
439
439
|
});
|
|
440
440
|
}, ie = () => {
|
|
441
|
-
const b =
|
|
441
|
+
const b = Be(u.start, 1);
|
|
442
442
|
G({
|
|
443
443
|
start: W(b),
|
|
444
444
|
end: B(b)
|
|
445
445
|
});
|
|
446
446
|
}, P = () => {
|
|
447
|
-
const b =
|
|
447
|
+
const b = Ue(u.start, 1);
|
|
448
448
|
G({
|
|
449
449
|
start: W(b),
|
|
450
450
|
end: B(b)
|
|
@@ -455,72 +455,71 @@ const q = {
|
|
|
455
455
|
{
|
|
456
456
|
container: !0,
|
|
457
457
|
sx: {
|
|
458
|
-
pt: 16
|
|
458
|
+
pt: 16,
|
|
459
|
+
px: i ? 48 : 24
|
|
459
460
|
},
|
|
460
461
|
children: [
|
|
461
|
-
/* @__PURE__ */
|
|
462
|
-
/* @__PURE__ */ o(c, {
|
|
463
|
-
/* @__PURE__ */
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
] })
|
|
480
|
-
] }),
|
|
481
|
-
/* @__PURE__ */ e(
|
|
482
|
-
ve,
|
|
483
|
-
{
|
|
484
|
-
expected: s,
|
|
485
|
-
missed: f,
|
|
486
|
-
paid: C,
|
|
487
|
-
title: t.expenses,
|
|
488
|
-
total: l.length,
|
|
489
|
-
upcoming: Q
|
|
490
|
-
}
|
|
491
|
-
),
|
|
492
|
-
/* @__PURE__ */ e(
|
|
493
|
-
ve,
|
|
494
|
-
{
|
|
495
|
-
expected: m,
|
|
496
|
-
isExpense: !1,
|
|
497
|
-
paid: y,
|
|
498
|
-
title: t.deposits,
|
|
499
|
-
total: p.length,
|
|
500
|
-
upcoming: ee
|
|
501
|
-
}
|
|
502
|
-
),
|
|
503
|
-
n && /* @__PURE__ */ e(
|
|
504
|
-
z,
|
|
505
|
-
{
|
|
506
|
-
onRecurrenceClick: _,
|
|
507
|
-
recurrences: U,
|
|
508
|
-
title: t.upcoming_activity
|
|
509
|
-
}
|
|
510
|
-
)
|
|
462
|
+
/* @__PURE__ */ e(ae, { md: !0, sm: 12, width: "100%", children: /* @__PURE__ */ o(c, { sx: { gap: 16 }, children: [
|
|
463
|
+
/* @__PURE__ */ o(c, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
|
|
464
|
+
/* @__PURE__ */ e(Je, { children: O(
|
|
465
|
+
t.header_title,
|
|
466
|
+
A(u.start, E.MONTH_LONG)
|
|
467
|
+
) }),
|
|
468
|
+
!i && /* @__PURE__ */ o(c, { direction: "row", gap: 4, children: [
|
|
469
|
+
/* @__PURE__ */ e(
|
|
470
|
+
Te,
|
|
471
|
+
{
|
|
472
|
+
color: "primary",
|
|
473
|
+
disabled: I,
|
|
474
|
+
onClick: P,
|
|
475
|
+
children: /* @__PURE__ */ e(Ve, {})
|
|
476
|
+
}
|
|
477
|
+
),
|
|
478
|
+
/* @__PURE__ */ e(Te, { color: "primary", onClick: ie, children: /* @__PURE__ */ e(Xe, {}) })
|
|
479
|
+
] })
|
|
511
480
|
] }),
|
|
512
|
-
|
|
513
|
-
|
|
481
|
+
/* @__PURE__ */ e(
|
|
482
|
+
Me,
|
|
483
|
+
{
|
|
484
|
+
expected: s,
|
|
485
|
+
missed: f,
|
|
486
|
+
paid: C,
|
|
487
|
+
title: t.expenses,
|
|
488
|
+
total: l.length,
|
|
489
|
+
upcoming: Q
|
|
490
|
+
}
|
|
491
|
+
),
|
|
492
|
+
/* @__PURE__ */ e(
|
|
493
|
+
Me,
|
|
494
|
+
{
|
|
495
|
+
expected: m,
|
|
496
|
+
isExpense: !1,
|
|
497
|
+
paid: y,
|
|
498
|
+
title: t.deposits,
|
|
499
|
+
total: p.length,
|
|
500
|
+
upcoming: ee
|
|
501
|
+
}
|
|
502
|
+
),
|
|
503
|
+
i && /* @__PURE__ */ e(
|
|
504
|
+
z,
|
|
505
|
+
{
|
|
506
|
+
onRecurrenceClick: _,
|
|
507
|
+
recurrences: U,
|
|
508
|
+
title: t.upcoming_activity
|
|
509
|
+
}
|
|
510
|
+
),
|
|
511
|
+
!i && /* @__PURE__ */ o(c, { children: [
|
|
512
|
+
/* @__PURE__ */ o(je, { onChange: ne, value: $, variant: "fullWidth", children: [
|
|
514
513
|
/* @__PURE__ */ e(
|
|
515
514
|
De,
|
|
516
515
|
{
|
|
517
|
-
label: /* @__PURE__ */ e(g, { bold: !0, sx: { textTransform: "none" }, variant: "body1", children:
|
|
516
|
+
label: /* @__PURE__ */ e(g, { bold: !0, sx: { textTransform: "none" }, variant: "body1", children: a ? t.upcoming : t.upcoming_activity })
|
|
518
517
|
}
|
|
519
518
|
),
|
|
520
519
|
/* @__PURE__ */ e(
|
|
521
520
|
De,
|
|
522
521
|
{
|
|
523
|
-
label: /* @__PURE__ */ e(g, { bold: !0, sx: { textTransform: "none" }, variant: "body1", children:
|
|
522
|
+
label: /* @__PURE__ */ e(g, { bold: !0, sx: { textTransform: "none" }, variant: "body1", children: a ? t.past : t.past_transactions })
|
|
524
523
|
}
|
|
525
524
|
)
|
|
526
525
|
] }),
|
|
@@ -539,9 +538,9 @@ const q = {
|
|
|
539
538
|
}
|
|
540
539
|
)
|
|
541
540
|
] })
|
|
542
|
-
] }),
|
|
543
|
-
|
|
544
|
-
/* @__PURE__ */ e(
|
|
541
|
+
] }) }),
|
|
542
|
+
i && /* @__PURE__ */ e(ae, { sx: { minWidth: 450 }, xs: "auto", children: /* @__PURE__ */ o(c, { gap: 24, children: [
|
|
543
|
+
/* @__PURE__ */ e(ke, {}),
|
|
545
544
|
/* @__PURE__ */ e(
|
|
546
545
|
z,
|
|
547
546
|
{
|
|
@@ -558,7 +557,7 @@ const q = {
|
|
|
558
557
|
}
|
|
559
558
|
);
|
|
560
559
|
}), _n = D(({ onBackClick: t, sx: n = {} }) => {
|
|
561
|
-
const { accounts: i } = ge(), { recurring: a } = S(), { isCopyLoaded: r, isInitialized: l, selectedAccountGuids: p, setSelectedAccounts: u } = X(), { isDataLoaded: s, loadRepeatingTransactions: m, setDateRange: f } =
|
|
560
|
+
const { accounts: i } = ge(), { recurring: a } = S(), { isCopyLoaded: r, isInitialized: l, selectedAccountGuids: p, setSelectedAccounts: u } = X(), { isDataLoaded: s, loadRepeatingTransactions: m, setDateRange: f } = v(), { setFilter: x } = he(), { onEvent: C } = Z(), { isMobile: y } = fe(), [d, R] = h.useState(!1);
|
|
562
561
|
return h.useEffect(() => {
|
|
563
562
|
u(i);
|
|
564
563
|
}, [i]), h.useEffect(() => {
|
|
@@ -591,23 +590,23 @@ const q = {
|
|
|
591
590
|
/* @__PURE__ */ e(oe, { height: 600, variant: "rounded", width: "100%" })
|
|
592
591
|
] }),
|
|
593
592
|
/* @__PURE__ */ e(
|
|
594
|
-
|
|
593
|
+
Ne,
|
|
595
594
|
{
|
|
596
595
|
ariaLabelClose: a.close_drawer_aria,
|
|
597
596
|
isOpen: d,
|
|
598
597
|
onClose: () => R(!1),
|
|
599
598
|
shouldShowHeaderBorders: !1,
|
|
600
599
|
title: a.action_title,
|
|
601
|
-
children: /* @__PURE__ */ e(
|
|
600
|
+
children: /* @__PURE__ */ e(ze, {})
|
|
602
601
|
}
|
|
603
602
|
)
|
|
604
603
|
]
|
|
605
604
|
}
|
|
606
605
|
) : /* @__PURE__ */ e(K, {});
|
|
607
606
|
}), Rt = D(() => {
|
|
608
|
-
const { recurring: t } = S(), { availableWidth: n } =
|
|
607
|
+
const { recurring: t } = S(), { availableWidth: n } = Ee(), { selectedDay: i, selectedDayRecurrences: a, setSelectedDay: r, upcomingRecurrences: l } = v(), p = n < 750;
|
|
609
608
|
return /* @__PURE__ */ o(c, { flexDirection: p ? "column" : "row", width: "100%", children: [
|
|
610
|
-
/* @__PURE__ */ e(
|
|
609
|
+
/* @__PURE__ */ e(ke, {}),
|
|
611
610
|
!p && /* @__PURE__ */ e(ce, { flexItem: !0, orientation: "vertical", sx: { my: 16, ml: 16 } }),
|
|
612
611
|
/* @__PURE__ */ e(
|
|
613
612
|
z,
|
|
@@ -625,7 +624,7 @@ const q = {
|
|
|
625
624
|
] });
|
|
626
625
|
}), wn = D(
|
|
627
626
|
({ onPrimaryCtaClick: t, sx: n }) => {
|
|
628
|
-
const { accounts: i } = ge(), { recurring: a } = S(), { setFilter: r } = he(), { isDataLoaded: l, loadRepeatingTransactions: p } =
|
|
627
|
+
const { accounts: i } = ge(), { recurring: a } = S(), { setFilter: r } = he(), { isDataLoaded: l, loadRepeatingTransactions: p } = v(), { isCopyLoaded: u, isInitialized: s, setSelectedAccounts: m, selectedAccountGuids: f } = X();
|
|
629
628
|
return h.useEffect(() => {
|
|
630
629
|
s && m(i);
|
|
631
630
|
}, [s]), h.useEffect(() => {
|
|
@@ -718,13 +717,13 @@ const q = {
|
|
|
718
717
|
] }), It = D(() => {
|
|
719
718
|
const { recurring: t } = S();
|
|
720
719
|
return /* @__PURE__ */ o(c, { sx: { alignItems: "start", flexDirection: "row", gap: 12 }, children: [
|
|
721
|
-
/* @__PURE__ */ e(
|
|
720
|
+
/* @__PURE__ */ e(Ze, { size: 32 }),
|
|
722
721
|
/* @__PURE__ */ o(c, { children: [
|
|
723
722
|
/* @__PURE__ */ e(se, { fontWeight: 600, variant: "body1", children: t.zero_state_content_header }),
|
|
724
723
|
/* @__PURE__ */ e(se, { color: "text.secondary", variant: "subtitle2", children: t.zero_state_content_description })
|
|
725
724
|
] })
|
|
726
725
|
] });
|
|
727
|
-
}),
|
|
726
|
+
}), vn = D(
|
|
728
727
|
({ onCTAClick: t }) => {
|
|
729
728
|
const [n, i] = h.useState(!1), { onEvent: a } = Z(), r = pe(), { accounts: l } = ge(), [p, { width: u }] = gt(), { isCopyLoaded: s, isInitialized: m, selectedAccountGuids: f, setSelectedAccounts: x } = X(), {
|
|
730
729
|
loadRepeatingTransactions: C,
|
|
@@ -736,7 +735,7 @@ const q = {
|
|
|
736
735
|
setDateRange: ee,
|
|
737
736
|
upcomingExpenseTotal: U,
|
|
738
737
|
isDataLoaded: $
|
|
739
|
-
} =
|
|
738
|
+
} = v(), { setFilter: te } = he(), { recurring: I, budgets: ne } = S();
|
|
740
739
|
h.useEffect(() => {
|
|
741
740
|
x(l);
|
|
742
741
|
}, [l]), h.useEffect(() => {
|
|
@@ -769,14 +768,14 @@ const q = {
|
|
|
769
768
|
), t();
|
|
770
769
|
};
|
|
771
770
|
if (!s || !n || !$) return /* @__PURE__ */ e(K, { height: 100 });
|
|
772
|
-
const re = 32,
|
|
771
|
+
const re = 32, We = y.length > 0, $e = () => We ? _ ? /* @__PURE__ */ e(
|
|
773
772
|
Dt,
|
|
774
773
|
{
|
|
775
774
|
logoSize: re,
|
|
776
775
|
maxLogos: 3,
|
|
777
776
|
upcomingRecurrences: y.slice(0, 3)
|
|
778
777
|
}
|
|
779
|
-
) : /* @__PURE__ */ e(Tt, { maxLogos: 3, upcomingRecurrences: y.slice(0, 3) }) : /* @__PURE__ */ e(c, { sx: { width: _ ? 64 : 104 } }),
|
|
778
|
+
) : /* @__PURE__ */ e(Tt, { maxLogos: 3, upcomingRecurrences: y.slice(0, 3) }) : /* @__PURE__ */ e(c, { sx: { width: _ ? 64 : 104 } }), Pe = [
|
|
780
779
|
{
|
|
781
780
|
amount: G,
|
|
782
781
|
bgColor: "success.main",
|
|
@@ -844,12 +843,12 @@ const q = {
|
|
|
844
843
|
]
|
|
845
844
|
}
|
|
846
845
|
),
|
|
847
|
-
|
|
846
|
+
$e()
|
|
848
847
|
]
|
|
849
848
|
}
|
|
850
849
|
),
|
|
851
850
|
/* @__PURE__ */ o(c, { sx: { pt: 12 }, children: [
|
|
852
|
-
/* @__PURE__ */ e(
|
|
851
|
+
/* @__PURE__ */ e(Oe, { data: ie }),
|
|
853
852
|
/* @__PURE__ */ e(
|
|
854
853
|
c,
|
|
855
854
|
{
|
|
@@ -859,7 +858,7 @@ const q = {
|
|
|
859
858
|
gap: 16,
|
|
860
859
|
mt: 4
|
|
861
860
|
},
|
|
862
|
-
children:
|
|
861
|
+
children: Pe.map((N, He) => /* @__PURE__ */ e(
|
|
863
862
|
St,
|
|
864
863
|
{
|
|
865
864
|
amount: N.amount,
|
|
@@ -868,7 +867,7 @@ const q = {
|
|
|
868
867
|
isSmallScreen: _,
|
|
869
868
|
label: N.label
|
|
870
869
|
},
|
|
871
|
-
`recurrence-legend-${
|
|
870
|
+
`recurrence-legend-${He}`
|
|
872
871
|
))
|
|
873
872
|
}
|
|
874
873
|
)
|
|
@@ -882,8 +881,8 @@ export {
|
|
|
882
881
|
On as AddRecurringTransactionDetails,
|
|
883
882
|
An as ManageExpenses,
|
|
884
883
|
kn as ManageIncome,
|
|
885
|
-
|
|
886
|
-
|
|
884
|
+
ze as RecurringSettings,
|
|
885
|
+
vn as RecurringTransactionsMicroWidget,
|
|
887
886
|
wn as RecurringTransactionsMiniWidget,
|
|
888
887
|
Gn as RecurringTransactionsStore,
|
|
889
888
|
_n as RecurringTransactionsWidget,
|
package/package.json
CHANGED
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
import { jsx as e, Fragment as b, jsxs as t } from "react/jsx-runtime";
|
|
2
|
-
import m from "react";
|
|
3
|
-
import { observer as u } from "mobx-react-lite";
|
|
4
|
-
import c from "@mui/material/Box";
|
|
5
|
-
import p from "@mui/material/Tab";
|
|
6
|
-
import R from "@mui/material/Tabs";
|
|
7
|
-
import l from "@mui/material/Divider";
|
|
8
|
-
import T from "@mui/material/List";
|
|
9
|
-
import C from "@mui/material/Stack";
|
|
10
|
-
import { R as x, A as S, a as E, M as A } from "./ManageIncome-BaZyK1CD.mjs";
|
|
11
|
-
import { u as h, i as y, f as _ } from "./hooks-BAAimqdq.mjs";
|
|
12
|
-
import { R as v, F as N } from "./RepeatingTransaction-BW4J-jeJ.mjs";
|
|
13
|
-
import { A as d } from "./WidgetContainer-ztkGgdIH.mjs";
|
|
14
|
-
const I = u(() => {
|
|
15
|
-
const { recurring: r } = h(), { repeatingTransactions: s } = y(), { onEvent: o } = _(), a = (n) => {
|
|
16
|
-
o(d.RECURRING_TRANSACTIONS_CLICK_EXPENSE, {
|
|
17
|
-
repeating_transaction_guid: n.guid
|
|
18
|
-
});
|
|
19
|
-
}, g = () => {
|
|
20
|
-
o(d.RECURRING_TRANSACTIONS_CLICK_ADD_EXPENSE);
|
|
21
|
-
}, i = s.filter(
|
|
22
|
-
(n) => n.repeating_transaction_type !== v.Income && (n.transactions.length > 0 || n.recurrence_type === N.EveryYear)
|
|
23
|
-
);
|
|
24
|
-
return /* @__PURE__ */ e(b, { children: i.length !== 0 ? /* @__PURE__ */ t(C, { sx: { justifyContent: "space-between", height: "calc(100% - 57px)" }, children: [
|
|
25
|
-
/* @__PURE__ */ e(T, { sx: { bgcolor: "background.paper" }, children: i.map((n, f) => /* @__PURE__ */ t(m.Fragment, { children: [
|
|
26
|
-
/* @__PURE__ */ e(x, { onClick: a, repeatingTransaction: n }),
|
|
27
|
-
/* @__PURE__ */ e(
|
|
28
|
-
l,
|
|
29
|
-
{
|
|
30
|
-
variant: f < i.length - 1 ? "inset" : "fullWidth"
|
|
31
|
-
}
|
|
32
|
-
)
|
|
33
|
-
] }, n.guid)) }),
|
|
34
|
-
/* @__PURE__ */ t(c, { children: [
|
|
35
|
-
/* @__PURE__ */ e(l, {}),
|
|
36
|
-
/* @__PURE__ */ e(
|
|
37
|
-
c,
|
|
38
|
-
{
|
|
39
|
-
sx: {
|
|
40
|
-
alignContent: "center",
|
|
41
|
-
bgcolor: "background.paper",
|
|
42
|
-
justifyContent: "flex-end",
|
|
43
|
-
px: 24,
|
|
44
|
-
py: 12,
|
|
45
|
-
textAlign: "right"
|
|
46
|
-
},
|
|
47
|
-
children: /* @__PURE__ */ e(S, { label: r.add_expense, onAddRecurringTransaction: g })
|
|
48
|
-
}
|
|
49
|
-
)
|
|
50
|
-
] })
|
|
51
|
-
] }) : /* @__PURE__ */ e(E, { zeroStateFor: "expenses" }) });
|
|
52
|
-
}), X = u(() => {
|
|
53
|
-
const [r, s] = m.useState(0), { onEvent: o } = _(), { recurring: a } = h();
|
|
54
|
-
return /* @__PURE__ */ t(c, { bgcolor: "background.default", height: "100%", children: [
|
|
55
|
-
/* @__PURE__ */ t(
|
|
56
|
-
R,
|
|
57
|
-
{
|
|
58
|
-
onChange: (i, n) => {
|
|
59
|
-
s(n), o(
|
|
60
|
-
n === 0 ? "recurring_transactions_widget_manage_expenses" : "recurring_transactions_widget_edit_income"
|
|
61
|
-
);
|
|
62
|
-
},
|
|
63
|
-
sx: { bgcolor: "background.paper" },
|
|
64
|
-
value: r,
|
|
65
|
-
variant: "fullWidth",
|
|
66
|
-
children: [
|
|
67
|
-
/* @__PURE__ */ e(p, { label: a.expenses }),
|
|
68
|
-
/* @__PURE__ */ e(p, { label: a.income })
|
|
69
|
-
]
|
|
70
|
-
}
|
|
71
|
-
),
|
|
72
|
-
r === 0 && /* @__PURE__ */ e(I, {}),
|
|
73
|
-
r === 1 && /* @__PURE__ */ e(A, {})
|
|
74
|
-
] });
|
|
75
|
-
});
|
|
76
|
-
export {
|
|
77
|
-
I as M,
|
|
78
|
-
X as R
|
|
79
|
-
};
|