@mx-cartographer/experiences 7.4.2 → 7.4.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/dist/{AccountDetailsContent-gke-5zMF.mjs → AccountDetailsContent-COMjOzwr.mjs} +5 -5
- package/dist/{AccountDetailsHeader-CRzfuFA2.mjs → AccountDetailsHeader-Cbi5G6fJ.mjs} +2 -2
- package/dist/{AccountFields-CPkGZ3SD.mjs → AccountFields-Cd_nOWmf.mjs} +1 -1
- package/dist/{AccountListItem-D4uG9yC-.mjs → AccountListItem-DxY4cCF1.mjs} +2 -2
- package/dist/{BudgetUtil-wjoNuj7B.mjs → BudgetUtil-Df2nII9u.mjs} +1 -1
- package/dist/{CurrencyInput-xH-hqry9.mjs → CurrencyInput-BFKcs-_K.mjs} +1 -1
- package/dist/{CurrencyText-kyC1aseI.mjs → CurrencyText-Dr0EZ7bp.mjs} +1 -1
- package/dist/{FinstrongStore-CfD6bbJk.mjs → FinstrongStore-BIrX0Xg2.mjs} +126 -116
- package/dist/{GoalStore-j6QYHgEa.mjs → GoalStore-CrNhjvNc.mjs} +1 -1
- package/dist/{LineChart-DttMO7uS.mjs → LineChart-bc1D9xBE.mjs} +81 -81
- package/dist/{ManageIncome-CU5C0AeO.mjs → ManageIncome-A69EUO5u.mjs} +3 -3
- package/dist/{NotificationSettings-DI5B1spM.mjs → NotificationSettings-CNmJWVeI.mjs} +2 -2
- package/dist/{NumberFormatting-Buh7u8Oi.mjs → NumberFormatting-DjTD0t3W.mjs} +9 -9
- package/dist/{OriginalBalanceAction-CCmnsd7y.mjs → OriginalBalanceAction-DK8_LkPz.mjs} +2 -2
- package/dist/{RecurringSettings-Cm5Bqcai.mjs → RecurringSettings-B0uObPlD.mjs} +2 -2
- package/dist/{RecurringTransactions-CngsRZ3K.mjs → RecurringTransactions-BqijW_8S.mjs} +1 -1
- package/dist/{RecurringTransactionsStore-Bc1wCiNB.mjs → RecurringTransactionsStore-BhBUVm9a.mjs} +1 -1
- package/dist/{SpendingLegend-B2BYr8B4.mjs → SpendingLegend-BbrZWbFX.mjs} +2 -2
- package/dist/{TransactionDetails-CtbBBSoU.mjs → TransactionDetails-COH0OKNG.mjs} +2 -2
- package/dist/accounts/index.es.js +8 -8
- package/dist/budgets/index.es.js +5 -5
- package/dist/cashflow/index.es.js +7 -7
- package/dist/common/index.es.js +11 -11
- package/dist/debts/index.es.js +4 -4
- package/dist/finstrong/constants/index.d.ts +0 -11
- package/dist/finstrong/index.es.js +685 -684
- package/dist/finstrong/stores/FinstrongStore.d.ts +4 -0
- package/dist/goals/index.es.js +7 -7
- package/dist/investments/index.es.js +1 -1
- package/dist/networth/index.es.js +3 -3
- package/dist/notifications/index.es.js +1 -1
- package/dist/recurringtransactions/index.es.js +8 -8
- package/dist/settings/index.es.js +2 -2
- package/dist/spending/index.es.js +3 -3
- package/dist/transactions/index.es.js +4 -4
- package/dist/trends/index.es.js +4 -4
- package/package.json +1 -1
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import { jsxs as a, Fragment as B, jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
3
|
-
import { useTheme as
|
|
4
|
-
import { ResponsiveChartContainer as
|
|
5
|
-
import { f as p, c as
|
|
2
|
+
import F from "@mui/material/Box";
|
|
3
|
+
import { useTheme as Y } from "@mui/material/styles";
|
|
4
|
+
import { ResponsiveChartContainer as fe, ChartsReferenceLine as xe, AreaPlot as ye, LinePlot as ge, MarkPlot as pe, BarPlot as be, ChartsXAxis as ke, ChartsYAxis as Me, ChartsAxisHighlight as Ce } from "@mui/x-charts";
|
|
5
|
+
import { f as p, c as O } from "./NumberFormatting-DjTD0t3W.mjs";
|
|
6
6
|
import we from "@mui/material/useMediaQuery";
|
|
7
7
|
import { observer as Le } from "mobx-react-lite";
|
|
8
8
|
import P from "@mui/material/Stack";
|
|
9
9
|
import { Text as l } from "@mxenabled/mxui";
|
|
10
10
|
import { u as Se } from "./hooks-C41HAxM5.mjs";
|
|
11
|
-
import { useTheme as ve, Stack as M, Box as
|
|
11
|
+
import { useTheme as ve, Stack as M, Box as X } from "@mui/material";
|
|
12
12
|
import { ChartsTooltip as Te } from "@mui/x-charts/ChartsTooltip";
|
|
13
13
|
const De = (e) => {
|
|
14
|
-
const r =
|
|
14
|
+
const r = Y(), s = e.showLabel, o = e.style, b = o?.markLabelStyles, x = Number(e.x), u = Number(e.y), h = e.handlers?.onMarkClick, m = e.handlers?.onMouseEnter, c = e.handlers?.onMouseLeave, i = we(r.breakpoints.up("sm")), f = e.valueFormatterString ? p(e.yData[e.dataIndex], e.valueFormatterString) : String(e.yData[e.dataIndex]), d = i ? r.typography.Small?.fontSize : r.typography.XSmall?.fontSize, T = 30, D = 24, A = x - T / 2, I = u - 30;
|
|
15
15
|
return /* @__PURE__ */ a(B, { children: [
|
|
16
16
|
s && /* @__PURE__ */ a(B, { children: [
|
|
17
17
|
e.labelBackgroundColor && /* @__PURE__ */ t(
|
|
18
18
|
"rect",
|
|
19
19
|
{
|
|
20
20
|
fill: e.labelBackgroundColor,
|
|
21
|
-
height:
|
|
21
|
+
height: D,
|
|
22
22
|
rx: "3",
|
|
23
|
-
width:
|
|
24
|
-
x:
|
|
25
|
-
y:
|
|
23
|
+
width: T,
|
|
24
|
+
x: A,
|
|
25
|
+
y: I
|
|
26
26
|
}
|
|
27
27
|
),
|
|
28
28
|
/* @__PURE__ */ t(
|
|
@@ -37,7 +37,7 @@ const De = (e) => {
|
|
|
37
37
|
},
|
|
38
38
|
textAnchor: "middle",
|
|
39
39
|
x,
|
|
40
|
-
y: u - 28 +
|
|
40
|
+
y: u - 28 + D / 2,
|
|
41
41
|
children: f
|
|
42
42
|
}
|
|
43
43
|
)
|
|
@@ -115,7 +115,7 @@ const De = (e) => {
|
|
|
115
115
|
style: { alignItems: "center", flexDirection: "row", flexWrap: "wrap" },
|
|
116
116
|
children: [
|
|
117
117
|
/* @__PURE__ */ t(
|
|
118
|
-
|
|
118
|
+
F,
|
|
119
119
|
{
|
|
120
120
|
sx: {
|
|
121
121
|
width: 10,
|
|
@@ -215,7 +215,7 @@ function $e({
|
|
|
215
215
|
},
|
|
216
216
|
children: [
|
|
217
217
|
/* @__PURE__ */ t(
|
|
218
|
-
|
|
218
|
+
X,
|
|
219
219
|
{
|
|
220
220
|
sx: {
|
|
221
221
|
width: "12px",
|
|
@@ -269,7 +269,7 @@ function $e({
|
|
|
269
269
|
children: [
|
|
270
270
|
/* @__PURE__ */ a(M, { sx: { flexDirection: "row", alignItems: "center", gap: 8 }, children: [
|
|
271
271
|
/* @__PURE__ */ t(
|
|
272
|
-
|
|
272
|
+
X,
|
|
273
273
|
{
|
|
274
274
|
sx: {
|
|
275
275
|
width: "12px",
|
|
@@ -309,68 +309,68 @@ const Qe = ({
|
|
|
309
309
|
customLegendBoxSx: i,
|
|
310
310
|
customTooltipLabels: f,
|
|
311
311
|
datasets: d,
|
|
312
|
-
height:
|
|
313
|
-
isGraphClippingXAxis:
|
|
314
|
-
labels:
|
|
315
|
-
labelBackgroundColor:
|
|
312
|
+
height: T,
|
|
313
|
+
isGraphClippingXAxis: D = !1,
|
|
314
|
+
labels: A,
|
|
315
|
+
labelBackgroundColor: I,
|
|
316
316
|
labelFontColor: $,
|
|
317
|
-
labelFontSize:
|
|
318
|
-
margin:
|
|
319
|
-
markHandlers:
|
|
320
|
-
markStyles:
|
|
321
|
-
minRange:
|
|
322
|
-
maxRange:
|
|
317
|
+
labelFontSize: q,
|
|
318
|
+
margin: Q,
|
|
319
|
+
markHandlers: U,
|
|
320
|
+
markStyles: V,
|
|
321
|
+
minRange: J,
|
|
322
|
+
maxRange: K,
|
|
323
323
|
onItemClick: j,
|
|
324
324
|
peerAverage: W,
|
|
325
325
|
showArea: E = !1,
|
|
326
326
|
showAverage: H = !1,
|
|
327
|
-
showAxisHighlight:
|
|
327
|
+
showAxisHighlight: Z = !1,
|
|
328
328
|
showBars: z = !1,
|
|
329
|
-
showLegend:
|
|
330
|
-
showMark:
|
|
331
|
-
showMarkLabel:
|
|
332
|
-
showTooltip:
|
|
333
|
-
showXAxis:
|
|
334
|
-
showXAxisTicks:
|
|
335
|
-
showYAxis:
|
|
336
|
-
showYAxisTicks:
|
|
337
|
-
title:
|
|
338
|
-
useCustomMark:
|
|
329
|
+
showLegend: _ = !1,
|
|
330
|
+
showMark: ee = !0,
|
|
331
|
+
showMarkLabel: te = !1,
|
|
332
|
+
showTooltip: ne = !1,
|
|
333
|
+
showXAxis: re = !1,
|
|
334
|
+
showXAxisTicks: ae = !1,
|
|
335
|
+
showYAxis: ie = !1,
|
|
336
|
+
showYAxisTicks: oe = !1,
|
|
337
|
+
title: le,
|
|
338
|
+
useCustomMark: se = !1,
|
|
339
339
|
valueFormatterString: k,
|
|
340
|
-
width:
|
|
341
|
-
xAxisScaleType:
|
|
340
|
+
width: ce,
|
|
341
|
+
xAxisScaleType: de
|
|
342
342
|
}) => {
|
|
343
|
-
const y =
|
|
343
|
+
const y = Y(), he = d.flat().map((n) => n.x), C = d.flat().map((n) => n.y), G = W || Math.round(C.reduce((n, v) => v + n, 0) / C.length), w = Math.floor(Math.min(...C) / 100) * 100, L = Math.ceil(Math.max(...C) / 100) * 100, N = d.map((n, v) => ({
|
|
344
344
|
type: z ? "bar" : "line",
|
|
345
345
|
curve: h,
|
|
346
|
-
color: z ? y.palette.chart?.chart6 : u[
|
|
346
|
+
color: z ? y.palette.chart?.chart6 : u[v] ?? y.palette.primary.main,
|
|
347
347
|
data: n.map((g) => g.y),
|
|
348
348
|
area: E,
|
|
349
349
|
baseline: s,
|
|
350
350
|
showMark: !0,
|
|
351
351
|
valueFormatter: (g) => k ? p(g || 0, k) : String(g)
|
|
352
|
-
})),
|
|
352
|
+
})), me = {
|
|
353
353
|
...{
|
|
354
354
|
top: 60,
|
|
355
355
|
right: 35,
|
|
356
356
|
bottom: 50,
|
|
357
357
|
left: 50
|
|
358
358
|
},
|
|
359
|
-
...
|
|
359
|
+
...Q
|
|
360
360
|
};
|
|
361
|
-
let
|
|
361
|
+
let S = J ?? w, R = K ?? L;
|
|
362
362
|
if (o === "networthChart") {
|
|
363
|
-
const n = L - w,
|
|
364
|
-
|
|
363
|
+
const n = L - w, v = n < L * 0.05 ? 0.25 : 0.2, g = Math.max(n * v, L * 0.015);
|
|
364
|
+
S = w - g < 0 ? w : w - g, R = L + g;
|
|
365
365
|
}
|
|
366
|
-
const
|
|
366
|
+
const ue = () => {
|
|
367
367
|
if (o === "creditOverTime")
|
|
368
|
-
return
|
|
368
|
+
return O(S, 850, 5);
|
|
369
369
|
if (o === "networthChart")
|
|
370
|
-
return
|
|
370
|
+
return O(S, R, 5);
|
|
371
371
|
};
|
|
372
372
|
return /* @__PURE__ */ a(
|
|
373
|
-
|
|
373
|
+
F,
|
|
374
374
|
{
|
|
375
375
|
sx: {
|
|
376
376
|
position: "relative",
|
|
@@ -389,10 +389,10 @@ const Qe = ({
|
|
|
389
389
|
},
|
|
390
390
|
children: [
|
|
391
391
|
/* @__PURE__ */ a(
|
|
392
|
-
|
|
392
|
+
fe,
|
|
393
393
|
{
|
|
394
|
-
height:
|
|
395
|
-
margin:
|
|
394
|
+
height: T,
|
|
395
|
+
margin: me,
|
|
396
396
|
series: N,
|
|
397
397
|
sx: {
|
|
398
398
|
"& .MuiBarLabel-root": {
|
|
@@ -409,16 +409,16 @@ const Qe = ({
|
|
|
409
409
|
fontFamily: y.typography.Small.fontFamily
|
|
410
410
|
}
|
|
411
411
|
},
|
|
412
|
-
width:
|
|
413
|
-
xAxis: [{ data:
|
|
412
|
+
width: ce,
|
|
413
|
+
xAxis: [{ data: he, scaleType: de || (z ? "band" : "point") }],
|
|
414
414
|
yAxis: [
|
|
415
415
|
{
|
|
416
|
-
tickInterval:
|
|
417
|
-
min:
|
|
416
|
+
tickInterval: ue(),
|
|
417
|
+
min: D ? -22 : S,
|
|
418
418
|
max: R || 100,
|
|
419
419
|
colorMap: E && N.length < 2 ? {
|
|
420
420
|
type: "continuous",
|
|
421
|
-
min:
|
|
421
|
+
min: S,
|
|
422
422
|
max: R,
|
|
423
423
|
color: [
|
|
424
424
|
y.palette.background.paper,
|
|
@@ -430,10 +430,10 @@ const Qe = ({
|
|
|
430
430
|
],
|
|
431
431
|
children: [
|
|
432
432
|
H && /* @__PURE__ */ t(
|
|
433
|
-
|
|
433
|
+
xe,
|
|
434
434
|
{
|
|
435
435
|
lineStyle: {
|
|
436
|
-
stroke:
|
|
436
|
+
stroke: I ? y.palette.neutral.main : y.palette.neutral.dark,
|
|
437
437
|
strokeDasharray: "10, 8",
|
|
438
438
|
strokeWidth: 2
|
|
439
439
|
},
|
|
@@ -441,7 +441,7 @@ const Qe = ({
|
|
|
441
441
|
}
|
|
442
442
|
),
|
|
443
443
|
/* @__PURE__ */ t(
|
|
444
|
-
|
|
444
|
+
ye,
|
|
445
445
|
{
|
|
446
446
|
onItemClick: j,
|
|
447
447
|
...e && {
|
|
@@ -458,7 +458,7 @@ const Qe = ({
|
|
|
458
458
|
}
|
|
459
459
|
),
|
|
460
460
|
/* @__PURE__ */ t(
|
|
461
|
-
|
|
461
|
+
ge,
|
|
462
462
|
{
|
|
463
463
|
onItemClick: j,
|
|
464
464
|
slots: {
|
|
@@ -473,20 +473,20 @@ const Qe = ({
|
|
|
473
473
|
}
|
|
474
474
|
),
|
|
475
475
|
/* @__PURE__ */ t(
|
|
476
|
-
|
|
476
|
+
pe,
|
|
477
477
|
{
|
|
478
478
|
onItemClick: j,
|
|
479
|
-
slots:
|
|
479
|
+
slots: se ? {
|
|
480
480
|
mark: (n) => /* @__PURE__ */ t(
|
|
481
481
|
De,
|
|
482
482
|
{
|
|
483
|
-
handlers:
|
|
484
|
-
labelBackgroundColor:
|
|
483
|
+
handlers: U,
|
|
484
|
+
labelBackgroundColor: I,
|
|
485
485
|
labelFontColor: $,
|
|
486
|
-
labelFontSize:
|
|
487
|
-
showLabel:
|
|
488
|
-
showMark:
|
|
489
|
-
style:
|
|
486
|
+
labelFontSize: q,
|
|
487
|
+
showLabel: te,
|
|
488
|
+
showMark: ee || n.dataIndex === d[0].length - 1,
|
|
489
|
+
style: V?.(n.dataIndex) ?? {},
|
|
490
490
|
valueFormatterString: k,
|
|
491
491
|
yData: C,
|
|
492
492
|
...n
|
|
@@ -496,17 +496,17 @@ const Qe = ({
|
|
|
496
496
|
}
|
|
497
497
|
),
|
|
498
498
|
/* @__PURE__ */ t(
|
|
499
|
-
|
|
499
|
+
be,
|
|
500
500
|
{
|
|
501
501
|
barLabel: (n) => Number(n.value) > 0 ? `$${n.value}` : null,
|
|
502
502
|
borderRadius: 10
|
|
503
503
|
}
|
|
504
504
|
),
|
|
505
505
|
/* @__PURE__ */ t(
|
|
506
|
-
|
|
506
|
+
ke,
|
|
507
507
|
{
|
|
508
|
-
disableLine: !
|
|
509
|
-
disableTicks: !
|
|
508
|
+
disableLine: !re,
|
|
509
|
+
disableTicks: !ae,
|
|
510
510
|
slotProps: r ? {
|
|
511
511
|
axisLine: {
|
|
512
512
|
style: {
|
|
@@ -523,10 +523,10 @@ const Qe = ({
|
|
|
523
523
|
}
|
|
524
524
|
),
|
|
525
525
|
/* @__PURE__ */ t(
|
|
526
|
-
|
|
526
|
+
Me,
|
|
527
527
|
{
|
|
528
|
-
disableLine: !
|
|
529
|
-
disableTicks: !
|
|
528
|
+
disableLine: !ie,
|
|
529
|
+
disableTicks: !oe,
|
|
530
530
|
slotProps: r ? {
|
|
531
531
|
axisLine: {
|
|
532
532
|
style: {
|
|
@@ -542,25 +542,25 @@ const Qe = ({
|
|
|
542
542
|
sx: { ...x }
|
|
543
543
|
}
|
|
544
544
|
),
|
|
545
|
-
|
|
546
|
-
|
|
545
|
+
Z && /* @__PURE__ */ t(Ce, { x: "line" }),
|
|
546
|
+
ne && /* @__PURE__ */ t(
|
|
547
547
|
$e,
|
|
548
548
|
{
|
|
549
549
|
customLabels: f,
|
|
550
|
-
labels:
|
|
550
|
+
labels: A,
|
|
551
551
|
valueFormatterString: k
|
|
552
552
|
}
|
|
553
553
|
)
|
|
554
554
|
]
|
|
555
555
|
}
|
|
556
556
|
),
|
|
557
|
-
|
|
557
|
+
_ && /* @__PURE__ */ t(
|
|
558
558
|
Be,
|
|
559
559
|
{
|
|
560
560
|
average: H ? G : void 0,
|
|
561
561
|
customLegendBoxSx: i,
|
|
562
562
|
customLegendVariant: m,
|
|
563
|
-
labels:
|
|
563
|
+
labels: A,
|
|
564
564
|
series: N,
|
|
565
565
|
style: {
|
|
566
566
|
position: "absolute",
|
|
@@ -568,7 +568,7 @@ const Qe = ({
|
|
|
568
568
|
left: 16,
|
|
569
569
|
...c
|
|
570
570
|
},
|
|
571
|
-
title:
|
|
571
|
+
title: le,
|
|
572
572
|
valueFormatterString: k
|
|
573
573
|
}
|
|
574
574
|
)
|
|
@@ -10,21 +10,21 @@ import ie from "@mui/material/ListItem";
|
|
|
10
10
|
import se from "@mui/material/ListItemAvatar";
|
|
11
11
|
import ce from "@mui/material/ListItemButton";
|
|
12
12
|
import le from "@mui/material/ListItemText";
|
|
13
|
-
import { F as d, S as N, D as Y, g as Q, R as E, e as de } from "./RecurringTransactions-
|
|
13
|
+
import { F as d, S as N, D as Y, g as Q, R as E, e as de } from "./RecurringTransactions-BqijW_8S.mjs";
|
|
14
14
|
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 { parseISO as me } from "date-fns/parseISO";
|
|
18
18
|
import $ from "@mui/material/Button";
|
|
19
19
|
import { Delete as pe, Add as he, ReceiptLong as ye } from "@mxenabled/mx-icons";
|
|
20
|
-
import { T as X, a as ge, b as fe, S as Ce, c as be } from "./TransactionDetails-
|
|
20
|
+
import { T as X, a as ge, b as fe, S as Ce, c as be } from "./TransactionDetails-COH0OKNG.mjs";
|
|
21
21
|
import { getDayOfYear as xe } from "date-fns/getDayOfYear";
|
|
22
22
|
import { setDayOfYear as Se } from "date-fns/setDayOfYear";
|
|
23
23
|
import { AdapterDateFns as ve } from "@mui/x-date-pickers/AdapterDateFnsV3";
|
|
24
24
|
import { DatePicker as we } from "@mui/x-date-pickers";
|
|
25
25
|
import { LocalizationProvider as Ae } from "@mui/x-date-pickers/LocalizationProvider";
|
|
26
26
|
import { u as w, j as F, g as G, b as Ie, h as Z, p as De } from "./hooks-C41HAxM5.mjs";
|
|
27
|
-
import { b as Ee, f as J } from "./NumberFormatting-
|
|
27
|
+
import { b as Ee, f as J } from "./NumberFormatting-DjTD0t3W.mjs";
|
|
28
28
|
import { D as O } from "./Drawer-BEtCk82g.mjs";
|
|
29
29
|
import { A as R } from "./WidgetContainer-6dsjtOVg.mjs";
|
|
30
30
|
import { f as Re, a as Te, D as Le } from "./Dialog-BPTr3qHE.mjs";
|
|
@@ -17,9 +17,9 @@ import { AdapterDateFns as ie } from "@mui/x-date-pickers/AdapterDateFnsV3";
|
|
|
17
17
|
import { A as oe, T as R, a as P, N as y } from "./ToggleListItem-ciFTiqRS.mjs";
|
|
18
18
|
import { u as D, s as T, p as I, d as se, g as ae, a as W, n as ce, b as le } from "./hooks-C41HAxM5.mjs";
|
|
19
19
|
import { b as re } from "./Localization-2MODESHW.mjs";
|
|
20
|
-
import { b as de, f as me } from "./NumberFormatting-
|
|
20
|
+
import { b as de, f as me } from "./NumberFormatting-DjTD0t3W.mjs";
|
|
21
21
|
import { D as N } from "./Dialog-BPTr3qHE.mjs";
|
|
22
|
-
import { C as he } from "./CurrencyInput-
|
|
22
|
+
import { C as he } from "./CurrencyInput-BFKcs-_K.mjs";
|
|
23
23
|
import { u as _e } from "./useScreenSize-B6JyS_Lj.mjs";
|
|
24
24
|
import { D as J } from "./Drawer-BEtCk82g.mjs";
|
|
25
25
|
import ue from "@mui/material/Collapse";
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import o from "numeral";
|
|
2
2
|
import { g as a } from "./Localization-2MODESHW.mjs";
|
|
3
|
-
const
|
|
3
|
+
const D = 9999999999e-2;
|
|
4
4
|
var c = /* @__PURE__ */ ((t) => (t.CAD = "CAD", t.USD = "USD", t))(c || {});
|
|
5
|
-
const
|
|
5
|
+
const h = (t, r, e) => {
|
|
6
6
|
const s = [], l = (r - t) / (e - 1);
|
|
7
7
|
for (let n = 0; n < e; n++) {
|
|
8
8
|
const i = t + n * l;
|
|
9
9
|
s.push(i);
|
|
10
10
|
}
|
|
11
|
-
return s[e - 1] = r, s;
|
|
12
|
-
},
|
|
11
|
+
return s[e - 1] = r, s.map(Math.round);
|
|
12
|
+
}, w = (t, r, e) => {
|
|
13
13
|
switch (a()) {
|
|
14
14
|
case "fr-ca":
|
|
15
15
|
return o(t).format(`${r} $`, e);
|
|
16
16
|
default:
|
|
17
17
|
return o(t).format(`$${r}`, e);
|
|
18
18
|
}
|
|
19
|
-
},
|
|
19
|
+
}, $ = () => {
|
|
20
20
|
switch (a()) {
|
|
21
21
|
case "fr-ca":
|
|
22
22
|
return c.CAD;
|
|
@@ -38,11 +38,11 @@ const w = (t, r, e) => {
|
|
|
38
38
|
};
|
|
39
39
|
export {
|
|
40
40
|
c as C,
|
|
41
|
-
|
|
41
|
+
D as M,
|
|
42
42
|
N as a,
|
|
43
43
|
P as b,
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
44
|
+
h as c,
|
|
45
|
+
w as f,
|
|
46
|
+
$ as g,
|
|
47
47
|
f as i
|
|
48
48
|
};
|
|
@@ -4,8 +4,8 @@ import { observer as p } from "mobx-react-lite";
|
|
|
4
4
|
import v from "@mui/material/TextField";
|
|
5
5
|
import { L as y } from "./ListItemAction-uobBrm_a.mjs";
|
|
6
6
|
import { u as h, l as b } from "./hooks-C41HAxM5.mjs";
|
|
7
|
-
import { a as T, f as S } from "./NumberFormatting-
|
|
8
|
-
import { C as f } from "./CurrencyInput-
|
|
7
|
+
import { a as T, f as S } from "./NumberFormatting-DjTD0t3W.mjs";
|
|
8
|
+
import { C as f } from "./CurrencyInput-BFKcs-_K.mjs";
|
|
9
9
|
const F = p(({ goal: e }) => {
|
|
10
10
|
const { goals: a } = h(), { setAlert: r, setSelectedGoal: l, updateGoal: m } = b(), [t, s] = _.useState(e.interest_rate ?? 0), c = !e.guid, i = t < 0, d = async () => {
|
|
11
11
|
const n = { ...e, interest_rate: t };
|
|
@@ -7,9 +7,9 @@ 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-A69EUO5u.mjs";
|
|
11
11
|
import { u as _, j as A, g as f } from "./hooks-C41HAxM5.mjs";
|
|
12
|
-
import { R as y, F as N } from "./RecurringTransactions-
|
|
12
|
+
import { R as y, F as N } from "./RecurringTransactions-BqijW_8S.mjs";
|
|
13
13
|
import { A as m } from "./WidgetContainer-6dsjtOVg.mjs";
|
|
14
14
|
const I = h(() => {
|
|
15
15
|
const { recurring: g } = _(), { repeatingTransactions: n } = A(), { onEvent: o } = f(), l = (r) => {
|
|
@@ -30,7 +30,7 @@ import { subYears as T } from "date-fns/subYears";
|
|
|
30
30
|
import { lastDayOfMonth as q } from "date-fns/lastDayOfMonth";
|
|
31
31
|
import { setDayOfYear as F } from "date-fns/setDayOfYear";
|
|
32
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
|
-
import { b as W } from "./NumberFormatting-
|
|
33
|
+
import { b as W } from "./NumberFormatting-DjTD0t3W.mjs";
|
|
34
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 || {});
|
package/dist/{RecurringTransactionsStore-Bc1wCiNB.mjs → RecurringTransactionsStore-BhBUVm9a.mjs}
RENAMED
|
@@ -8,7 +8,7 @@ import { startOfMonth as S } from "date-fns/startOfMonth";
|
|
|
8
8
|
import { startOfToday as c } from "date-fns/startOfToday";
|
|
9
9
|
import { subDays as y } from "date-fns/subDays";
|
|
10
10
|
import { F as x, A as o } from "./Fetch-DecPFeGU.mjs";
|
|
11
|
-
import { b as E, a, c as d, d as u } from "./RecurringTransactions-
|
|
11
|
+
import { b as E, a, c as d, d as u } from "./RecurringTransactions-BqijW_8S.mjs";
|
|
12
12
|
var A = /* @__PURE__ */ ((r) => (r.Small = "small", r.Medium = "medium", r.Large = "large", r))(A || {});
|
|
13
13
|
const U = 44;
|
|
14
14
|
class h {
|
|
@@ -5,13 +5,13 @@ import x from "react";
|
|
|
5
5
|
import { observer as w } from "mobx-react-lite";
|
|
6
6
|
import f from "@mui/material/Stack";
|
|
7
7
|
import { CategoryIcon as M, CategoryIconVariants as N, Text as h } from "@mxenabled/mxui";
|
|
8
|
-
import { u as k } from "./TransactionDetails-
|
|
8
|
+
import { u as k } from "./TransactionDetails-COH0OKNG.mjs";
|
|
9
9
|
import A from "@mui/material/Button";
|
|
10
10
|
import { useTheme as G } from "@mui/material";
|
|
11
11
|
import { D as O } from "./Donut-oaQFlbit.mjs";
|
|
12
12
|
import { u as $ } from "./hooks-C41HAxM5.mjs";
|
|
13
13
|
import { u as j } from "./useScreenSize-B6JyS_Lj.mjs";
|
|
14
|
-
import { f as D } from "./NumberFormatting-
|
|
14
|
+
import { f as D } from "./NumberFormatting-DjTD0t3W.mjs";
|
|
15
15
|
import R from "@mui/material/Box";
|
|
16
16
|
const T = 5, B = (i, l, g, d) => d.reduce((o, n) => {
|
|
17
17
|
const a = i.find((s) => s.guid === n.category_guid);
|
|
@@ -11,7 +11,7 @@ import M from "@mui/material/ListItemText";
|
|
|
11
11
|
import b from "@mui/material/Stack";
|
|
12
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
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
|
-
import { f as ae } from "./NumberFormatting-
|
|
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";
|
|
@@ -37,7 +37,7 @@ 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 = [
|
|
@@ -8,19 +8,19 @@ import O from "@mui/material/ListSubheader";
|
|
|
8
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-
|
|
11
|
+
import { u as D, A as Q } from "../AccountDetailsHeader-Cbi5G6fJ.mjs";
|
|
12
|
+
import { L as X } from "../LineChart-bc1D9xBE.mjs";
|
|
13
13
|
import { g as e1, a as t1, b as n1 } from "../SpendingData-BuJ03S9d.mjs";
|
|
14
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
15
|
import { A as W, l as P, m as C1 } from "../ConnectDrawer-CuUj16NH.mjs";
|
|
16
16
|
import { F as o3, M as C3 } from "../ConnectDrawer-CuUj16NH.mjs";
|
|
17
17
|
import { I as G, P as $, S as j } from "../Account-01wOyrH1.mjs";
|
|
18
|
-
import { a as d1 } from "../AccountFields-
|
|
19
|
-
import { g as c3, b as s3 } from "../AccountFields-
|
|
20
|
-
import { A as B } from "../AccountListItem-
|
|
21
|
-
import { A as c1 } from "../AccountDetailsContent-
|
|
22
|
-
import { u as r3 } from "../AccountDetailsContent-
|
|
23
|
-
import { f as I } from "../NumberFormatting-
|
|
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
|
+
import { f as I } from "../NumberFormatting-DjTD0t3W.mjs";
|
|
24
24
|
import { D as s1 } from "../Drawer-BEtCk82g.mjs";
|
|
25
25
|
import { A as S, W as a1 } from "../WidgetContainer-6dsjtOVg.mjs";
|
|
26
26
|
import { C as r1 } from "../ConnectionsDrawer-Bz4uwdFE.mjs";
|
package/dist/budgets/index.es.js
CHANGED
|
@@ -9,7 +9,7 @@ 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
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
|
-
import { f as T } from "../NumberFormatting-
|
|
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";
|
|
15
15
|
import Y from "@mui/material/ListItem";
|
|
@@ -19,7 +19,7 @@ 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
24
|
import { C as Xe } from "../ConnectionsDrawer-Bz4uwdFE.mjs";
|
|
25
25
|
import * as O from "d3";
|
|
@@ -29,7 +29,7 @@ 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
31
|
import { A as L, W as Ze } from "../WidgetContainer-6dsjtOVg.mjs";
|
|
32
|
-
import { u as qe } from "../BudgetUtil-
|
|
32
|
+
import { u as qe } from "../BudgetUtil-Df2nII9u.mjs";
|
|
33
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";
|
|
@@ -38,7 +38,7 @@ import tt from "@mui/material/Snackbar";
|
|
|
38
38
|
import Ce from "@mui/material/Tab";
|
|
39
39
|
import nt from "@mui/material/Tabs";
|
|
40
40
|
import { e as ot } from "../exportTransactionsToCSV-Cz2t0lmA.mjs";
|
|
41
|
-
import { T as De, a as at } from "../TransactionDetails-
|
|
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";
|
|
@@ -47,7 +47,7 @@ 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: [
|
|
@@ -9,7 +9,7 @@ import s from "@mui/material/Stack";
|
|
|
9
9
|
import ce from "@mui/material/styles/useTheme";
|
|
10
10
|
import { Text as u, P as k, Icon as j, InstitutionLogo as ye, H1 as me, H2 as Ye } from "@mxenabled/mxui";
|
|
11
11
|
import { G as Qe, v as ue, u as N, q as le, d as Ne, b as Y, j as P, g as ke, p as He, h as Fe, n as Ve, a as Ke } from "../hooks-C41HAxM5.mjs";
|
|
12
|
-
import { C as O } from "../CurrencyText-
|
|
12
|
+
import { C as O } from "../CurrencyText-Dr0EZ7bp.mjs";
|
|
13
13
|
import { u as he } from "../useScreenSize-B6JyS_Lj.mjs";
|
|
14
14
|
import { L as te } from "../Loader-DUaFpDGv.mjs";
|
|
15
15
|
import { I as pe } from "../CashflowStore-D9Dpuz7X.mjs";
|
|
@@ -17,16 +17,16 @@ import { C as zn } from "../CashflowStore-D9Dpuz7X.mjs";
|
|
|
17
17
|
import { b as M } from "../Localization-2MODESHW.mjs";
|
|
18
18
|
import { M as Je } from "../MiniWidgetContainer-CmXpTylX.mjs";
|
|
19
19
|
import { E as Ze } from "../EmptyState-DoxNUae-.mjs";
|
|
20
|
-
import { R as et } from "../RecurringSettings-
|
|
20
|
+
import { R as et } from "../RecurringSettings-B0uObPlD.mjs";
|
|
21
21
|
import tt from "@mui/material/Tabs";
|
|
22
22
|
import Ce from "@mui/material/Tab";
|
|
23
23
|
import { getUnixTime as B } from "date-fns/getUnixTime";
|
|
24
24
|
import ee from "@mui/material/List";
|
|
25
25
|
import ne from "@mui/material/ListItem";
|
|
26
|
-
import { A as nt } from "../AccountListItem-
|
|
26
|
+
import { A as nt } from "../AccountListItem-DxY4cCF1.mjs";
|
|
27
27
|
import { f as Q, a as V } from "../Dialog-BPTr3qHE.mjs";
|
|
28
28
|
import ot from "@mui/material/ListSubheader";
|
|
29
|
-
import { f as Z } from "../NumberFormatting-
|
|
29
|
+
import { f as Z } from "../NumberFormatting-DjTD0t3W.mjs";
|
|
30
30
|
import { isAfter as We } from "date-fns/isAfter";
|
|
31
31
|
import { isBefore as $e } from "date-fns/isBefore";
|
|
32
32
|
import { isToday as Me } from "date-fns/isToday";
|
|
@@ -35,14 +35,14 @@ import { alpha as at, keyframes as it } from "@mui/material/styles";
|
|
|
35
35
|
import { DataGridPro as rt } from "@mui/x-data-grid-pro";
|
|
36
36
|
import { T as Se } from "../TabContentContainer-j01JYR_7.mjs";
|
|
37
37
|
import G from "@mui/material/Button";
|
|
38
|
-
import { M as st, S as ct, i as lt, d as _e, c as dt } from "../ManageIncome-
|
|
38
|
+
import { M as st, S as ct, i as lt, d as _e, c as dt } from "../ManageIncome-A69EUO5u.mjs";
|
|
39
39
|
import { D as Ge } from "../Drawer-BEtCk82g.mjs";
|
|
40
40
|
import { formatISO as mt } from "date-fns/formatISO";
|
|
41
41
|
import { fromUnixTime as Ie } from "date-fns/fromUnixTime";
|
|
42
42
|
import { startOfMonth as ut } from "date-fns/startOfMonth";
|
|
43
43
|
import { subDays as je } from "date-fns/subDays";
|
|
44
|
-
import { S as ht, c as pt } from "../TransactionDetails-
|
|
45
|
-
import { F as ft, R as ve, e as De } from "../RecurringTransactions-
|
|
44
|
+
import { S as ht, c as pt } from "../TransactionDetails-COH0OKNG.mjs";
|
|
45
|
+
import { F as ft, R as ve, e as De } from "../RecurringTransactions-BqijW_8S.mjs";
|
|
46
46
|
import { h as gt } from "../DateUtil-CBdcsyuk.mjs";
|
|
47
47
|
import { endOfToday as bt } from "date-fns/endOfToday";
|
|
48
48
|
import { W as Ae, A as Ee } from "../WidgetContainer-6dsjtOVg.mjs";
|