@mx-cartographer/experiences 8.1.4 → 8.1.5
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
CHANGED
|
@@ -7,9 +7,9 @@ import { L as b } from "./ListItemAction-Buv7tPLp.mjs";
|
|
|
7
7
|
import { a as T, f as S } from "./NumberFormatting-CyrvFgfd.mjs";
|
|
8
8
|
import { C as f } from "./CurrencyInput-CSJ3zMgE.mjs";
|
|
9
9
|
const F = p(({ goal: e }) => {
|
|
10
|
-
const { goals:
|
|
11
|
-
const
|
|
12
|
-
e.interest_rate = t, c ? l(
|
|
10
|
+
const { goals: n } = y(), { setAlert: r, setSelectedGoal: l, updateGoal: m } = h(), [t, s] = _.useState(e.interest_rate ?? 0), c = !e.guid, i = t < 0, d = async () => {
|
|
11
|
+
const a = { ...e, interest_rate: t };
|
|
12
|
+
e.interest_rate = t, c ? l(a) : (await m(a), r(n.alert_goal_updated_interest_rate));
|
|
13
13
|
}, u = () => {
|
|
14
14
|
setTimeout(() => {
|
|
15
15
|
s(e.interest_rate ?? 0);
|
|
@@ -20,19 +20,18 @@ const F = p(({ goal: e }) => {
|
|
|
20
20
|
{
|
|
21
21
|
isDisabled: e.is_complete,
|
|
22
22
|
isSaveDisabled: i,
|
|
23
|
-
label: `${
|
|
23
|
+
label: `${n.details_interest_rate} (%)`,
|
|
24
24
|
onCancel: u,
|
|
25
25
|
onSave: d,
|
|
26
|
-
primaryText:
|
|
26
|
+
primaryText: n.details_interest_rate,
|
|
27
27
|
secondaryText: T(Number(e.interest_rate) / 100),
|
|
28
|
-
zeroStateText: e.interest_rate ? void 0 :
|
|
28
|
+
zeroStateText: e.interest_rate ? void 0 : n.add_interest_rate,
|
|
29
29
|
children: /* @__PURE__ */ o(
|
|
30
30
|
v,
|
|
31
31
|
{
|
|
32
32
|
error: i,
|
|
33
33
|
fullWidth: !0,
|
|
34
|
-
|
|
35
|
-
onChange: (n) => s(isNaN(parseFloat(n.target.value)) ? 0 : parseFloat(n.target.value)),
|
|
34
|
+
onChange: (a) => s(isNaN(parseFloat(a.target.value)) ? 0 : parseFloat(a.target.value)),
|
|
36
35
|
type: "number",
|
|
37
36
|
value: t
|
|
38
37
|
}
|
|
@@ -40,9 +39,9 @@ const F = p(({ goal: e }) => {
|
|
|
40
39
|
}
|
|
41
40
|
);
|
|
42
41
|
}), M = p(({ goal: e }) => {
|
|
43
|
-
const { goals:
|
|
44
|
-
const
|
|
45
|
-
e.monthly_payment = t, c ? l(
|
|
42
|
+
const { goals: n } = y(), { setAlert: r, setSelectedGoal: l, updateGoal: m } = h(), [t, s] = _.useState(e.monthly_payment ?? 0), c = !e.guid, i = t < 0 || t > 9999999999e-2, d = async () => {
|
|
43
|
+
const a = { ...e, monthly_payment: t };
|
|
44
|
+
e.monthly_payment = t, c ? l(a) : (await m({ ...e, monthly_payment: t }), r(n.alert_goal_updated_payment));
|
|
46
45
|
}, u = () => {
|
|
47
46
|
setTimeout(() => {
|
|
48
47
|
s(e.monthly_payment || 0);
|
|
@@ -53,12 +52,12 @@ const F = p(({ goal: e }) => {
|
|
|
53
52
|
{
|
|
54
53
|
isDisabled: e.is_complete,
|
|
55
54
|
isSaveDisabled: i,
|
|
56
|
-
label:
|
|
55
|
+
label: n.details_monthly_payment,
|
|
57
56
|
onCancel: u,
|
|
58
57
|
onSave: d,
|
|
59
|
-
primaryText:
|
|
58
|
+
primaryText: n.details_monthly_payment,
|
|
60
59
|
secondaryText: S(e.monthly_payment, "0,0"),
|
|
61
|
-
zeroStateText: e.monthly_payment ? void 0 :
|
|
60
|
+
zeroStateText: e.monthly_payment ? void 0 : n.add_monthly_payment,
|
|
62
61
|
children: /* @__PURE__ */ o(
|
|
63
62
|
f,
|
|
64
63
|
{
|
|
@@ -67,16 +66,16 @@ const F = p(({ goal: e }) => {
|
|
|
67
66
|
error: i,
|
|
68
67
|
fullWidth: !0,
|
|
69
68
|
minAmount: 0,
|
|
70
|
-
setAmount: (
|
|
69
|
+
setAmount: (a) => s(isNaN(Number(a)) ? t : Number(a)),
|
|
71
70
|
sx: { ".MuiTypography-body1": { p: 0 } }
|
|
72
71
|
}
|
|
73
72
|
)
|
|
74
73
|
}
|
|
75
74
|
);
|
|
76
75
|
}), z = p(({ goal: e }) => {
|
|
77
|
-
const { goals:
|
|
78
|
-
const
|
|
79
|
-
e.initial_amount = t, c ? l(
|
|
76
|
+
const { goals: n } = y(), { setAlert: r, setSelectedGoal: l, updateGoal: m } = h(), [t, s] = _.useState(e.initial_amount), c = !e.guid, i = t < 0 || t > 9999999999e-2, d = async () => {
|
|
77
|
+
const a = { ...e, initial_amount: t };
|
|
78
|
+
e.initial_amount = t, c ? l(a) : (await m({ ...e, initial_amount: t }), r(n.alert_goal_updated_balance));
|
|
80
79
|
}, u = () => {
|
|
81
80
|
setTimeout(() => {
|
|
82
81
|
s(e.initial_amount);
|
|
@@ -87,12 +86,12 @@ const F = p(({ goal: e }) => {
|
|
|
87
86
|
{
|
|
88
87
|
isDisabled: e.is_complete,
|
|
89
88
|
isSaveDisabled: i,
|
|
90
|
-
label:
|
|
89
|
+
label: n.details_original_balance,
|
|
91
90
|
onCancel: u,
|
|
92
91
|
onSave: d,
|
|
93
|
-
primaryText:
|
|
92
|
+
primaryText: n.details_original_balance,
|
|
94
93
|
secondaryText: S(e.initial_amount, "0,0"),
|
|
95
|
-
zeroStateText: !e.initial_amount && !e.is_complete ?
|
|
94
|
+
zeroStateText: !e.initial_amount && !e.is_complete ? n.add_original_balance : void 0,
|
|
96
95
|
children: /* @__PURE__ */ o(
|
|
97
96
|
f,
|
|
98
97
|
{
|
|
@@ -101,7 +100,7 @@ const F = p(({ goal: e }) => {
|
|
|
101
100
|
error: i,
|
|
102
101
|
fullWidth: !0,
|
|
103
102
|
minAmount: 0,
|
|
104
|
-
setAmount: (
|
|
103
|
+
setAmount: (a) => s(isNaN(Number(a)) ? t : Number(a)),
|
|
105
104
|
sx: { ".MuiTypography-body1": { p: 0 } }
|
|
106
105
|
}
|
|
107
106
|
)
|
package/dist/debts/index.es.js
CHANGED
|
@@ -28,7 +28,7 @@ import ye from "@mui/material/Tab";
|
|
|
28
28
|
import et from "@mui/material/Tabs";
|
|
29
29
|
import De from "@mui/material/List";
|
|
30
30
|
import G from "@mui/material/Divider";
|
|
31
|
-
import { M as tt, I as rt, O as nt } from "../OriginalBalanceAction-
|
|
31
|
+
import { M as tt, I as rt, O as nt } from "../OriginalBalanceAction-6XAwp1UT.mjs";
|
|
32
32
|
import ot from "@mui/material/TextField";
|
|
33
33
|
import { L as re } from "../ListItemAction-Buv7tPLp.mjs";
|
|
34
34
|
import { C as se } from "../CurrencyInput-CSJ3zMgE.mjs";
|
package/dist/goals/index.es.js
CHANGED
|
@@ -42,7 +42,7 @@ import ot from "@mui/material/Checkbox";
|
|
|
42
42
|
import { A as Ae } from "../Account-CMjOp7S2.mjs";
|
|
43
43
|
import { u as at } from "../useAccountDisplayName-SrQA7K_6.mjs";
|
|
44
44
|
import Ke from "@mui/material/TextField";
|
|
45
|
-
import { M as it, I as rt, O as st } from "../OriginalBalanceAction-
|
|
45
|
+
import { M as it, I as rt, O as st } from "../OriginalBalanceAction-6XAwp1UT.mjs";
|
|
46
46
|
import { getUnixTime as ct } from "date-fns/getUnixTime";
|
|
47
47
|
import { isValid as lt } from "date-fns/isValid";
|
|
48
48
|
import { AdapterDateFns as dt } from "@mui/x-date-pickers/AdapterDateFnsV3";
|