@mx-cartographer/experiences 7.0.63-alpha.mm1 → 7.0.64
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-BX7dzGF8.mjs → ManageIncome-Dtbfc4WG.mjs} +80 -71
- package/dist/{RecurringSettings-B486z99o.mjs → RecurringSettings-CvW7FPMu.mjs} +1 -1
- package/dist/budgets/index.es.js +1 -1
- package/dist/cashflow/index.es.js +2 -2
- package/dist/finstrong/index.es.js +1 -1
- package/dist/recurringtransactions/index.es.js +4 -4
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,7 +4,7 @@ import { observer as A } from "mobx-react-lite";
|
|
|
4
4
|
import P from "@mui/material/Box";
|
|
5
5
|
import T from "@mui/material/Divider";
|
|
6
6
|
import K from "@mui/material/List";
|
|
7
|
-
import
|
|
7
|
+
import p from "@mui/material/Stack";
|
|
8
8
|
import { MerchantLogo as H, Text as S, H1 as re, InstitutionLogo as ae, P as U } from "@mxenabled/mxui";
|
|
9
9
|
import ie from "@mui/material/ListItem";
|
|
10
10
|
import se from "@mui/material/ListItemAvatar";
|
|
@@ -15,7 +15,7 @@ import { subDays as ue } from "date-fns/subDays";
|
|
|
15
15
|
import { startOfToday as z } from "date-fns/startOfToday";
|
|
16
16
|
import { endOfMonth as _e } from "date-fns/endOfMonth";
|
|
17
17
|
import $ from "@mui/material/Button";
|
|
18
|
-
import { Delete as me, Add as
|
|
18
|
+
import { Delete as me, Add as he, ReceiptLong as pe } from "@mxenabled/mx-icons";
|
|
19
19
|
import { T as X, a as ye, u as ge, S as fe, b as Ce } from "./TransactionDetails-DAp_CPCP.mjs";
|
|
20
20
|
import { getDayOfYear as be } from "date-fns/getDayOfYear";
|
|
21
21
|
import { setDayOfYear as xe } from "date-fns/setDayOfYear";
|
|
@@ -37,11 +37,11 @@ const ee = ({
|
|
|
37
37
|
frequency: n,
|
|
38
38
|
firstDay: t,
|
|
39
39
|
secondDay: r,
|
|
40
|
-
onFrequencyChange:
|
|
40
|
+
onFrequencyChange: i,
|
|
41
41
|
onFirstDayChange: s,
|
|
42
42
|
onSecondDayChange: l
|
|
43
43
|
}) => {
|
|
44
|
-
const { recurring: o } = w(),
|
|
44
|
+
const { recurring: o } = w(), a = u.useMemo(
|
|
45
45
|
() => [
|
|
46
46
|
{ id: d.EveryWeek, label: o.frequency_every_week },
|
|
47
47
|
{ id: d.EveryOtherWeek, label: o.frequency_every_other_week },
|
|
@@ -61,21 +61,21 @@ const ee = ({
|
|
|
61
61
|
{ id: 4, label: o.weekday_thursday },
|
|
62
62
|
{ id: 5, label: o.weekday_friday },
|
|
63
63
|
{ id: 6, label: o.weekday_saturday }
|
|
64
|
-
], y = [...Array(31).keys()].map((
|
|
65
|
-
id:
|
|
66
|
-
label: Ie(
|
|
64
|
+
], y = [...Array(31).keys()].map((h) => ({
|
|
65
|
+
id: h + 1,
|
|
66
|
+
label: Ie(h + 1)
|
|
67
67
|
}));
|
|
68
68
|
y[30].label += ` (${o.last_day_of_month})`;
|
|
69
|
-
const C = y.slice(0, 15), v = y.slice(14), b = n === d.EveryWeek || n === d.EveryOtherWeek, g = n === d.TwiceAMonth || n === d.EveryMonth || n === d.EveryOtherMonth || n === d.EveryQuarter || n === d.EveryOtherQuarter, D = xe(z(), t), f = (
|
|
70
|
-
|
|
69
|
+
const C = y.slice(0, 15), v = y.slice(14), b = n === d.EveryWeek || n === d.EveryOtherWeek, g = n === d.TwiceAMonth || n === d.EveryMonth || n === d.EveryOtherMonth || n === d.EveryQuarter || n === d.EveryOtherQuarter, D = xe(z(), t), f = (h) => {
|
|
70
|
+
h && s(be(h));
|
|
71
71
|
};
|
|
72
|
-
return /* @__PURE__ */ c(
|
|
72
|
+
return /* @__PURE__ */ c(p, { gap: 24, sx: { m: 24 }, children: [
|
|
73
73
|
/* @__PURE__ */ e(
|
|
74
74
|
N,
|
|
75
75
|
{
|
|
76
76
|
label: o.frequency,
|
|
77
|
-
onChange:
|
|
78
|
-
options:
|
|
77
|
+
onChange: i,
|
|
78
|
+
options: a,
|
|
79
79
|
value: n
|
|
80
80
|
}
|
|
81
81
|
),
|
|
@@ -117,7 +117,7 @@ const ee = ({
|
|
|
117
117
|
) })
|
|
118
118
|
] });
|
|
119
119
|
}, Me = A(({ repeatingTransaction: n }) => {
|
|
120
|
-
const { recurring: t } = w(), { updateRepeatingTransaction: r } = M(), { onEvent:
|
|
120
|
+
const { recurring: t } = w(), { updateRepeatingTransaction: r } = M(), { onEvent: i } = F(), [s, l] = u.useState(!1), [o, a] = u.useState(n.recurrence_type), [m, y] = u.useState(n.recurrence_day), [C, v] = u.useState(n.second_recurrence_day), b = async () => {
|
|
121
121
|
await r({
|
|
122
122
|
...n,
|
|
123
123
|
recurrence_type: o,
|
|
@@ -125,7 +125,7 @@ const ee = ({
|
|
|
125
125
|
second_recurrence_day: C
|
|
126
126
|
}), l(!1);
|
|
127
127
|
}, g = () => {
|
|
128
|
-
l(!0),
|
|
128
|
+
l(!0), i(R.RECURRING_TRANSACTIONS_DETAILS_CLICK_PAYMENT_SCHEDULE);
|
|
129
129
|
};
|
|
130
130
|
return /* @__PURE__ */ c(L, { children: [
|
|
131
131
|
/* @__PURE__ */ e(
|
|
@@ -151,7 +151,7 @@ const ee = ({
|
|
|
151
151
|
firstDay: m,
|
|
152
152
|
frequency: o,
|
|
153
153
|
onFirstDayChange: y,
|
|
154
|
-
onFrequencyChange:
|
|
154
|
+
onFrequencyChange: a,
|
|
155
155
|
onSecondDayChange: v,
|
|
156
156
|
secondDay: C
|
|
157
157
|
}
|
|
@@ -161,24 +161,24 @@ const ee = ({
|
|
|
161
161
|
] });
|
|
162
162
|
}), Fe = A(
|
|
163
163
|
({ onDeleted: n, recurringTransaction: t }) => {
|
|
164
|
-
const { recurring: r } = w(), { selectedAccountGuids:
|
|
164
|
+
const { recurring: r } = w(), { selectedAccountGuids: i } = Ae(), { onEvent: s } = F(), { deleteRepeatingTransaction: l } = M(), { setFilter: o, transactions: a } = Z(), { amount: m, description: y, merchant_guid: C } = t, [v, b] = u.useState(!1), [g, D] = u.useState("");
|
|
165
165
|
u.useEffect(() => {
|
|
166
166
|
o({
|
|
167
|
-
accounts:
|
|
167
|
+
accounts: i,
|
|
168
168
|
dateRange: { start: ue(z(), 90), end: _e(z()) },
|
|
169
169
|
custom: (_) => _.repeating_transaction_guid === t.guid
|
|
170
170
|
});
|
|
171
171
|
}, [t]);
|
|
172
172
|
const f = u.useMemo(
|
|
173
|
-
() =>
|
|
174
|
-
[g,
|
|
175
|
-
),
|
|
173
|
+
() => a.find((_) => _.guid === g),
|
|
174
|
+
[g, a]
|
|
175
|
+
), h = t.repeating_transaction_type === E.Income, k = async () => {
|
|
176
176
|
await l(t.guid), n();
|
|
177
177
|
}, G = () => {
|
|
178
178
|
b(!0), s(R.RECURRING_TRANSACTIONS_DETAILS_CLICK_DELETE);
|
|
179
179
|
};
|
|
180
|
-
return /* @__PURE__ */ c(
|
|
181
|
-
/* @__PURE__ */ c(
|
|
180
|
+
return /* @__PURE__ */ c(p, { bgcolor: "background.default", direction: "column", height: "100%", children: [
|
|
181
|
+
/* @__PURE__ */ c(p, { direction: "column", m: 24, children: [
|
|
182
182
|
/* @__PURE__ */ e(
|
|
183
183
|
H,
|
|
184
184
|
{
|
|
@@ -189,8 +189,8 @@ const ee = ({
|
|
|
189
189
|
}
|
|
190
190
|
),
|
|
191
191
|
/* @__PURE__ */ e(S, { bold: !0, variant: "body1", children: y }),
|
|
192
|
-
/* @__PURE__ */ c(re, { color:
|
|
193
|
-
|
|
192
|
+
/* @__PURE__ */ c(re, { color: h ? "success.main" : "text.primary", sx: { my: 4 }, children: [
|
|
193
|
+
h ? "+" : "",
|
|
194
194
|
J(m, "0,0.00")
|
|
195
195
|
] }),
|
|
196
196
|
/* @__PURE__ */ e(S, { color: "text.secondary", variant: "body2", children: `${r.next_payment_date}: ${Ee(
|
|
@@ -232,7 +232,7 @@ const ee = ({
|
|
|
232
232
|
startIcon: /* @__PURE__ */ e(me, {}),
|
|
233
233
|
sx: { mx: 24, my: 16 },
|
|
234
234
|
variant: "text",
|
|
235
|
-
children:
|
|
235
|
+
children: h ? r.delete_income_title : r.delete_expense_title
|
|
236
236
|
}
|
|
237
237
|
),
|
|
238
238
|
/* @__PURE__ */ e(S, { bold: !0, sx: { ml: 24, mt: 16 }, variant: "Body", children: r.paid_transactions }),
|
|
@@ -251,13 +251,13 @@ const ee = ({
|
|
|
251
251
|
Te,
|
|
252
252
|
{
|
|
253
253
|
copy: {
|
|
254
|
-
title:
|
|
254
|
+
title: h ? r.delete_income_title : r.delete_expense_title,
|
|
255
255
|
close_aria: r.close_drawer_aria
|
|
256
256
|
},
|
|
257
257
|
isOpen: v,
|
|
258
258
|
onClose: () => b(!1),
|
|
259
259
|
onPrimaryAction: k,
|
|
260
|
-
children: /* @__PURE__ */ e(S, { children:
|
|
260
|
+
children: /* @__PURE__ */ e(S, { children: h ? r.delete_income_description : r.delete_expense_description })
|
|
261
261
|
}
|
|
262
262
|
)
|
|
263
263
|
] });
|
|
@@ -265,10 +265,10 @@ const ee = ({
|
|
|
265
265
|
), Ge = A(
|
|
266
266
|
({ onClick: n = () => {
|
|
267
267
|
}, repeatingTransaction: t }) => {
|
|
268
|
-
const { recurring: r } = w(), [
|
|
268
|
+
const { recurring: r } = w(), [i, s] = u.useState(!1), l = u.useMemo(
|
|
269
269
|
() => t.transactions.length === 0 ? "" : t.transactions[0].category_guid || "",
|
|
270
270
|
[t]
|
|
271
|
-
), o = t.account?.institutionName || "",
|
|
271
|
+
), o = t.account?.institutionName || "", a = t.repeating_transaction_type === E.Income, m = Q(r, t, !0);
|
|
272
272
|
return /* @__PURE__ */ c(ie, { disableGutters: !0, disablePadding: !0, children: [
|
|
273
273
|
/* @__PURE__ */ c(ce, { onClick: () => {
|
|
274
274
|
n(t), s(!0);
|
|
@@ -280,10 +280,10 @@ const ee = ({
|
|
|
280
280
|
merchantGuid: t.merchant_guid
|
|
281
281
|
}
|
|
282
282
|
) }),
|
|
283
|
-
/* @__PURE__ */ e(le, { children: /* @__PURE__ */ c(
|
|
284
|
-
/* @__PURE__ */ c(
|
|
283
|
+
/* @__PURE__ */ e(le, { children: /* @__PURE__ */ c(p, { direction: "row", gap: 4, sx: { justifyContent: "space-between" }, children: [
|
|
284
|
+
/* @__PURE__ */ c(p, { direction: "column", sx: { width: "50%" }, children: [
|
|
285
285
|
/* @__PURE__ */ e(S, { bold: !0, variant: "body1", children: t.description }),
|
|
286
|
-
/* @__PURE__ */ c(
|
|
286
|
+
/* @__PURE__ */ c(p, { alignItems: "center", direction: "row", gap: 6, children: [
|
|
287
287
|
t.account?.institution_guid && /* @__PURE__ */ e(
|
|
288
288
|
ae,
|
|
289
289
|
{
|
|
@@ -295,21 +295,21 @@ const ee = ({
|
|
|
295
295
|
/* @__PURE__ */ e(S, { variant: "caption", children: o })
|
|
296
296
|
] })
|
|
297
297
|
] }),
|
|
298
|
-
/* @__PURE__ */ c(
|
|
298
|
+
/* @__PURE__ */ c(p, { alignItems: "flex-end", sx: { width: "50%" }, children: [
|
|
299
299
|
/* @__PURE__ */ c(
|
|
300
300
|
S,
|
|
301
301
|
{
|
|
302
302
|
bold: !0,
|
|
303
|
-
color:
|
|
303
|
+
color: a ? "success.main" : "text.primary",
|
|
304
304
|
variant: "body1",
|
|
305
305
|
children: [
|
|
306
|
-
|
|
306
|
+
a ? "+" : "",
|
|
307
307
|
J(t.amount, "0,0.00")
|
|
308
308
|
]
|
|
309
309
|
}
|
|
310
310
|
),
|
|
311
311
|
/* @__PURE__ */ e(
|
|
312
|
-
|
|
312
|
+
p,
|
|
313
313
|
{
|
|
314
314
|
direction: "row",
|
|
315
315
|
sx: {
|
|
@@ -329,7 +329,7 @@ const ee = ({
|
|
|
329
329
|
O,
|
|
330
330
|
{
|
|
331
331
|
ariaLabelClose: r.close_drawer_aria,
|
|
332
|
-
isOpen:
|
|
332
|
+
isOpen: i,
|
|
333
333
|
onClose: () => s(!1),
|
|
334
334
|
title: t.repeating_transaction_type === E.Income ? r.income_details : r.expense_details,
|
|
335
335
|
children: /* @__PURE__ */ e(
|
|
@@ -348,24 +348,33 @@ const ee = ({
|
|
|
348
348
|
bgcolor: n = "background.default",
|
|
349
349
|
description: t,
|
|
350
350
|
onSearch: r,
|
|
351
|
-
onSelected:
|
|
351
|
+
onSelected: i
|
|
352
352
|
}) => {
|
|
353
353
|
const { recurring: s } = w(), { searchValue: l, setSearchValue: o } = ge();
|
|
354
|
-
return /* @__PURE__ */ c(
|
|
354
|
+
return /* @__PURE__ */ c(p, { sx: { bgcolor: n, gap: 16, pt: 8 }, children: [
|
|
355
355
|
t && /* @__PURE__ */ e(U, { sx: { mx: 24 }, children: t }),
|
|
356
356
|
/* @__PURE__ */ e(
|
|
357
357
|
ke,
|
|
358
358
|
{
|
|
359
359
|
ariaLabel: s.select_transaction_search_aria,
|
|
360
360
|
cancelAriaLabel: s.select_transaction_search_cancel_aria,
|
|
361
|
-
onChange: (
|
|
362
|
-
o(
|
|
361
|
+
onChange: (a) => {
|
|
362
|
+
o(a), r(a);
|
|
363
363
|
},
|
|
364
364
|
placeholder: s.select_transaction_search_placeholder,
|
|
365
365
|
searchValue: l
|
|
366
366
|
}
|
|
367
367
|
),
|
|
368
|
-
/* @__PURE__ */ e(
|
|
368
|
+
/* @__PURE__ */ e(
|
|
369
|
+
X,
|
|
370
|
+
{
|
|
371
|
+
bgcolor: n,
|
|
372
|
+
filter: (a) => !!a.merchant_guid,
|
|
373
|
+
height: "auto",
|
|
374
|
+
onClick: i,
|
|
375
|
+
showLoader: !1
|
|
376
|
+
}
|
|
377
|
+
)
|
|
369
378
|
] });
|
|
370
379
|
}
|
|
371
380
|
), Ue = A(
|
|
@@ -373,24 +382,24 @@ const ee = ({
|
|
|
373
382
|
bgcolor: n = "background.default",
|
|
374
383
|
firstDay: t,
|
|
375
384
|
secondDay: r,
|
|
376
|
-
frequency:
|
|
385
|
+
frequency: i,
|
|
377
386
|
onFrequencyChange: s,
|
|
378
387
|
onFirstDayChange: l,
|
|
379
388
|
onSecondDayChange: o,
|
|
380
|
-
transaction:
|
|
389
|
+
transaction: a
|
|
381
390
|
}) => {
|
|
382
391
|
const { recurring: m } = w();
|
|
383
|
-
return /* @__PURE__ */ c(
|
|
384
|
-
/* @__PURE__ */ c(
|
|
385
|
-
/* @__PURE__ */ e(fe, { bgcolor: n, children: Ne(
|
|
386
|
-
/* @__PURE__ */ e(Ce, { transaction:
|
|
392
|
+
return /* @__PURE__ */ c(p, { bgcolor: n, gap: 24, height: "100%", children: [
|
|
393
|
+
/* @__PURE__ */ c(p, { children: [
|
|
394
|
+
/* @__PURE__ */ e(fe, { bgcolor: n, children: Ne(a.date) }),
|
|
395
|
+
/* @__PURE__ */ e(Ce, { transaction: a })
|
|
387
396
|
] }),
|
|
388
397
|
/* @__PURE__ */ e(S, { bold: !0, sx: { mx: 24 }, variant: "Body", children: m.payment_schedule }),
|
|
389
398
|
/* @__PURE__ */ e(
|
|
390
399
|
ee,
|
|
391
400
|
{
|
|
392
401
|
firstDay: t,
|
|
393
|
-
frequency:
|
|
402
|
+
frequency: i,
|
|
394
403
|
onFirstDayChange: l,
|
|
395
404
|
onFrequencyChange: s,
|
|
396
405
|
onSecondDayChange: o,
|
|
@@ -405,7 +414,7 @@ const ee = ({
|
|
|
405
414
|
label: t,
|
|
406
415
|
onAddRecurringTransaction: r = () => null
|
|
407
416
|
}) => {
|
|
408
|
-
const { recurring:
|
|
417
|
+
const { recurring: i } = w(), { filter: s, setFilter: l, transactions: o } = Z(), { addRepeatingTransaction: a } = M(), { user: m } = De(), [y, C] = u.useState(!1), [v, b] = u.useState(""), [g, D] = u.useState(d.EveryMonth), [f, h] = u.useState(1), [k, G] = u.useState(15), _ = u.useMemo(
|
|
409
418
|
() => o.find((x) => x.guid === v),
|
|
410
419
|
[v, o]
|
|
411
420
|
), ne = () => {
|
|
@@ -431,23 +440,23 @@ const ee = ({
|
|
|
431
440
|
transaction_type: _.transaction_type,
|
|
432
441
|
user_guid: m.guid
|
|
433
442
|
};
|
|
434
|
-
await
|
|
443
|
+
await a(I, _), j();
|
|
435
444
|
}, j = () => {
|
|
436
445
|
b(""), C(!1);
|
|
437
446
|
};
|
|
438
447
|
return /* @__PURE__ */ c(L, { children: [
|
|
439
|
-
/* @__PURE__ */ e($, { onClick: ne, startIcon: /* @__PURE__ */ e(
|
|
448
|
+
/* @__PURE__ */ e($, { onClick: ne, startIcon: /* @__PURE__ */ e(he, { size: 24 }), variant: "contained", children: t }),
|
|
440
449
|
/* @__PURE__ */ e(
|
|
441
450
|
O,
|
|
442
451
|
{
|
|
443
|
-
ariaLabelClose:
|
|
452
|
+
ariaLabelClose: i.close_drawer_aria,
|
|
444
453
|
isOpen: y,
|
|
445
454
|
onClose: () => C(!1),
|
|
446
455
|
title: t,
|
|
447
456
|
children: /* @__PURE__ */ e(
|
|
448
457
|
Pe,
|
|
449
458
|
{
|
|
450
|
-
description: n ?
|
|
459
|
+
description: n ? i.add_income_description : i.add_expense_description,
|
|
451
460
|
onSearch: (x) => {
|
|
452
461
|
l({
|
|
453
462
|
...s,
|
|
@@ -462,17 +471,17 @@ const ee = ({
|
|
|
462
471
|
/* @__PURE__ */ e(
|
|
463
472
|
O,
|
|
464
473
|
{
|
|
465
|
-
ariaLabelClose:
|
|
474
|
+
ariaLabelClose: i.close_drawer_aria,
|
|
466
475
|
isOpen: !!v,
|
|
467
476
|
onClose: () => b(""),
|
|
468
477
|
onPrimaryAction: oe,
|
|
469
|
-
title: n ?
|
|
478
|
+
title: n ? i.income_details : i.expense_details,
|
|
470
479
|
children: _ && /* @__PURE__ */ e(
|
|
471
480
|
Ue,
|
|
472
481
|
{
|
|
473
482
|
firstDay: f,
|
|
474
483
|
frequency: g,
|
|
475
|
-
onFirstDayChange:
|
|
484
|
+
onFirstDayChange: h,
|
|
476
485
|
onFrequencyChange: D,
|
|
477
486
|
onSecondDayChange: G,
|
|
478
487
|
secondDay: k,
|
|
@@ -485,19 +494,19 @@ const ee = ({
|
|
|
485
494
|
}
|
|
486
495
|
), Be = A(
|
|
487
496
|
({ zeroStateFor: n }) => {
|
|
488
|
-
const { recurring: t } = w(), { onEvent: r } = F(),
|
|
489
|
-
return /* @__PURE__ */ c(
|
|
490
|
-
/* @__PURE__ */ e(
|
|
497
|
+
const { recurring: t } = w(), { onEvent: r } = F(), i = n === "income", s = i ? t.recurring_setting_zero_state_income_title : t.recurring_setting_zero_state_expenses_title, l = i ? t.recurring_setting_zero_state_income_description : t.recurring_setting_zero_state_expenses_description, o = i ? t.add_income : t.add_expense;
|
|
498
|
+
return /* @__PURE__ */ c(p, { sx: { alignItems: "center", p: 24, pt: 48 }, children: [
|
|
499
|
+
/* @__PURE__ */ e(pe, { size: 48 }),
|
|
491
500
|
/* @__PURE__ */ e(U, { sx: { my: 8, fontWeight: 600 }, variant: "body1", children: s }),
|
|
492
501
|
/* @__PURE__ */ e(U, { color: "text.secondary", sx: { mb: 32 }, variant: "subtitle2", children: l }),
|
|
493
502
|
/* @__PURE__ */ e(
|
|
494
503
|
te,
|
|
495
504
|
{
|
|
496
|
-
isIncome:
|
|
505
|
+
isIncome: i,
|
|
497
506
|
label: o,
|
|
498
507
|
onAddRecurringTransaction: () => {
|
|
499
508
|
r(
|
|
500
|
-
|
|
509
|
+
i ? R.RECURRING_TRANSACTIONS_CLICK_ADD_INCOME : R.RECURRING_ACTIVITY_CLICK_ADD_EXPENSE
|
|
501
510
|
);
|
|
502
511
|
}
|
|
503
512
|
}
|
|
@@ -505,17 +514,17 @@ const ee = ({
|
|
|
505
514
|
] });
|
|
506
515
|
}
|
|
507
516
|
), wt = A(({ forOverview: n = !1 }) => {
|
|
508
|
-
const { recurring: t } = w(), { repeatingTransactions: r } = M(), { onEvent:
|
|
509
|
-
|
|
510
|
-
repeating_transaction_guid:
|
|
517
|
+
const { recurring: t } = w(), { repeatingTransactions: r } = M(), { onEvent: i } = F(), s = (a) => {
|
|
518
|
+
i(R.RECURRING_TRANSACTIONS_CLICK_INCOME, {
|
|
519
|
+
repeating_transaction_guid: a.guid
|
|
511
520
|
});
|
|
512
521
|
}, l = () => {
|
|
513
|
-
|
|
522
|
+
i(R.RECURRING_TRANSACTIONS_CLICK_ADD_INCOME);
|
|
514
523
|
}, o = r.filter(
|
|
515
|
-
(
|
|
524
|
+
(a) => a.repeating_transaction_type === E.Income && (a.transactions.length > 0 || a.recurrence_type === d.EveryYear)
|
|
516
525
|
);
|
|
517
526
|
return /* @__PURE__ */ e(L, { children: o.length !== 0 ? /* @__PURE__ */ c(
|
|
518
|
-
|
|
527
|
+
p,
|
|
519
528
|
{
|
|
520
529
|
sx: {
|
|
521
530
|
height: n ? "calc(100vh - 62px)" : "calc(100vh - 109px)",
|
|
@@ -523,15 +532,15 @@ const ee = ({
|
|
|
523
532
|
},
|
|
524
533
|
children: [
|
|
525
534
|
n && /* @__PURE__ */ e(S, { bold: !0, sx: { mb: 4, mt: 12, mx: 24 }, variant: "Small", children: t.income }),
|
|
526
|
-
/* @__PURE__ */ e(P, { sx: { flex: 1, overflow: "auto" }, children: /* @__PURE__ */ e(K, { sx: { bgcolor: "background.paper" }, children: o.map((
|
|
527
|
-
/* @__PURE__ */ e(Ge, { onClick: s, repeatingTransaction:
|
|
535
|
+
/* @__PURE__ */ e(P, { sx: { flex: 1, overflow: "auto" }, children: /* @__PURE__ */ e(K, { sx: { bgcolor: "background.paper" }, children: o.map((a, m) => /* @__PURE__ */ c(u.Fragment, { children: [
|
|
536
|
+
/* @__PURE__ */ e(Ge, { onClick: s, repeatingTransaction: a }),
|
|
528
537
|
/* @__PURE__ */ e(
|
|
529
538
|
T,
|
|
530
539
|
{
|
|
531
540
|
variant: m < o.length - 1 ? "inset" : "fullWidth"
|
|
532
541
|
}
|
|
533
542
|
)
|
|
534
|
-
] },
|
|
543
|
+
] }, a.guid)) }) }),
|
|
535
544
|
/* @__PURE__ */ c(P, { children: [
|
|
536
545
|
/* @__PURE__ */ e(T, {}),
|
|
537
546
|
/* @__PURE__ */ e(
|
|
@@ -7,7 +7,7 @@ import b from "@mui/material/Tabs";
|
|
|
7
7
|
import d from "@mui/material/Divider";
|
|
8
8
|
import R from "@mui/material/List";
|
|
9
9
|
import T from "@mui/material/Stack";
|
|
10
|
-
import { R as C, A as S, a as E, M as v } from "./ManageIncome-
|
|
10
|
+
import { R as C, A as S, a as E, M as v } from "./ManageIncome-Dtbfc4WG.mjs";
|
|
11
11
|
import { u as _, j as A, g as f } from "./hooks-CE2TKk4a.mjs";
|
|
12
12
|
import { R as y, F as N } from "./RecurringTransactions-DTUx9VN1.mjs";
|
|
13
13
|
import { A as m } from "./WidgetContainer-B8MRJ5Y1.mjs";
|
package/dist/budgets/index.es.js
CHANGED
|
@@ -46,7 +46,7 @@ import { u as nt, b as ot } from "../CategorySelectorDrawer-BmenK5bu.mjs";
|
|
|
46
46
|
import De from "@mui/material/CardHeader";
|
|
47
47
|
import { subDays as at } from "date-fns/subDays";
|
|
48
48
|
import rt from "@mui/material/IconButton";
|
|
49
|
-
import { M as st } from "../ManageIncome-
|
|
49
|
+
import { M as st } from "../ManageIncome-Dtbfc4WG.mjs";
|
|
50
50
|
const it = I(() => {
|
|
51
51
|
const { budgets: t } = w(), { totalBudgeted: o } = D(), { incomeTotal: i } = ee(), s = i - o;
|
|
52
52
|
return /* @__PURE__ */ m(S, { direction: "row", justifyContent: "center", my: 16, spacing: 20, children: [
|
|
@@ -17,7 +17,7 @@ import { C as Gn } from "../CashflowStore-D9Dpuz7X.mjs";
|
|
|
17
17
|
import { b as $ } from "../Localization-2MODESHW.mjs";
|
|
18
18
|
import { M as Ve } from "../MiniWidgetContainer-DTQdRK-3.mjs";
|
|
19
19
|
import { E as Ke } from "../EmptyState-DA_lfRBv.mjs";
|
|
20
|
-
import { R as Je } from "../RecurringSettings-
|
|
20
|
+
import { R as Je } from "../RecurringSettings-CvW7FPMu.mjs";
|
|
21
21
|
import Ze from "@mui/material/Tabs";
|
|
22
22
|
import ye from "@mui/material/Tab";
|
|
23
23
|
import { getUnixTime as B } from "date-fns/getUnixTime";
|
|
@@ -35,7 +35,7 @@ import { alpha as nt, keyframes as ot } from "@mui/material/styles";
|
|
|
35
35
|
import { DataGridPro as at } from "@mui/x-data-grid-pro";
|
|
36
36
|
import { T as Se } from "../TabContentContainer-j01JYR_7.mjs";
|
|
37
37
|
import M from "@mui/material/Button";
|
|
38
|
-
import { M as it, S as rt, i as st, d as we, c as ct } from "../ManageIncome-
|
|
38
|
+
import { M as it, S as rt, i as st, d as we, c as ct } from "../ManageIncome-Dtbfc4WG.mjs";
|
|
39
39
|
import { D as Me } from "../Drawer-kEE73B87.mjs";
|
|
40
40
|
import { formatISO as lt } from "date-fns/formatISO";
|
|
41
41
|
import { fromUnixTime as _e } 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-CU3E2RLw.mjs";
|
|
33
|
-
import { R as Je } from "../RecurringSettings-
|
|
33
|
+
import { R as Je } from "../RecurringSettings-CvW7FPMu.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,8 +8,8 @@ import { startOfToday as ue } from "date-fns/startOfToday";
|
|
|
8
8
|
import { subDays as me } from "date-fns/subDays";
|
|
9
9
|
import ae from "@mui/material/Skeleton";
|
|
10
10
|
import c from "@mui/material/Stack";
|
|
11
|
-
import { R as Ee } from "../RecurringSettings-
|
|
12
|
-
import { M as En } from "../RecurringSettings-
|
|
11
|
+
import { R as Ee } from "../RecurringSettings-CvW7FPMu.mjs";
|
|
12
|
+
import { M as En } from "../RecurringSettings-CvW7FPMu.mjs";
|
|
13
13
|
import { addMonths as ze } from "date-fns/addMonths";
|
|
14
14
|
import { subMonths as Fe } from "date-fns/subMonths";
|
|
15
15
|
import { isBefore as Ue } from "date-fns/isBefore";
|
|
@@ -41,8 +41,8 @@ import ct from "@mui/material/ListSubheader";
|
|
|
41
41
|
import lt from "@mui/material/ListItemAvatar";
|
|
42
42
|
import dt from "@mui/material/ListItemButton";
|
|
43
43
|
import ut from "@mui/material/ListItemText";
|
|
44
|
-
import { b as mt } from "../ManageIncome-
|
|
45
|
-
import { c as kn, M as Wn, S as $n } from "../ManageIncome-
|
|
44
|
+
import { b as mt } from "../ManageIncome-Dtbfc4WG.mjs";
|
|
45
|
+
import { c as kn, M as Wn, S as $n } from "../ManageIncome-Dtbfc4WG.mjs";
|
|
46
46
|
import { f as L } from "../NumberFormatting-CtWHhyBX.mjs";
|
|
47
47
|
import { D as xe } from "../Drawer-kEE73B87.mjs";
|
|
48
48
|
import { b as N } from "../Localization-2MODESHW.mjs";
|