@mx-cartographer/experiences 7.0.29 → 7.0.31-alpha-recurring-transaction-mini-widget-scrollingissue-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 CHANGED
@@ -1,3 +1,11 @@
1
+ ## [7.0.31] - 09-29-2025
2
+
3
+ - **FIXED** - Date range handling by ensuring the end date includes the full day for accurate selection
4
+
5
+ ## [7.0.30] - 09-29-2025
6
+
7
+ - **FIXED** - `Accounts Widget` | closed accounts balance issue fix
8
+
1
9
  ## [7.0.29] - 09-29-2025
2
10
 
3
11
  - **FIXED** - Corrected text transform on buttons to prevent automatic capitalization
@@ -11,10 +11,10 @@ import M from "@mui/material/Divider";
11
11
  import v from "@mui/material/ListItem";
12
12
  import N from "@mui/material/ListItemButton";
13
13
  import w from "@mui/material/ListItemText";
14
- import { u as D } from "./AccountDetailsHeader-DXTi1p0V.mjs";
14
+ import { u as D } from "./AccountDetailsHeader-Dwk01nsY.mjs";
15
15
  import { c as z, u as E, f as O, g as X } from "./hooks-DlI63qSB.mjs";
16
- import { A as at } from "./AccountListItem-CnE3rCVZ.mjs";
17
- import { A as k } from "./WidgetContainer-Bn6JPnY3.mjs";
16
+ import { A as at } from "./AccountListItem-BiST9IgK.mjs";
17
+ import { A as k } from "./WidgetContainer-CBpf3h1Y.mjs";
18
18
  import { a as V, f as B, D as j } from "./Dialog-CWW597AF.mjs";
19
19
  import { b as h } from "./Localization-2MODESHW.mjs";
20
20
  import { D as J } from "./Drawer-kEE73B87.mjs";
@@ -38,13 +38,13 @@ import At from "@mui/material/MenuItem";
38
38
  import bt from "@mui/material/Select";
39
39
  import Tt from "@mui/material/TextField";
40
40
  import { C as St } from "./CurrencyInput-BkflFU_-.mjs";
41
- import { a as Dt } from "./AccountFields-Bxvi1C4Z.mjs";
41
+ import { b as Dt } from "./AccountFields-5i77eFJ6.mjs";
42
42
  import Et from "@mui/material/Alert";
43
43
  import yt from "@mui/material/AlertTitle";
44
44
  import xt from "@mui/material/Link";
45
45
  import wt from "@mui/material/Paper";
46
46
  import { subDays as kt, startOfToday as It, endOfToday as Mt } from "date-fns";
47
- import { T as vt, a as Lt } from "./TransactionDetails-C2gYzV0z.mjs";
47
+ import { T as vt, a as Lt } from "./TransactionDetails-C4PW8SRL.mjs";
48
48
  import { T as K } from "./TabContentContainer-j01JYR_7.mjs";
49
49
  const U = ({
50
50
  children: e,
@@ -2,7 +2,7 @@ import { jsx as e, jsxs as u } from "react/jsx-runtime";
2
2
  import { observer as p } from "mobx-react-lite";
3
3
  import d from "@mui/material/Stack";
4
4
  import { H3 as w, InstitutionLogo as I, Text as m, H2 as L } from "@mxenabled/mxui";
5
- import { g as N } from "./AccountFields-Bxvi1C4Z.mjs";
5
+ import { g as N } from "./AccountFields-5i77eFJ6.mjs";
6
6
  import h from "react";
7
7
  import { G as v, c as S, l as y, u as _, e as E } from "./hooks-DlI63qSB.mjs";
8
8
  import G from "@mui/material/Card";
@@ -1,10 +1,10 @@
1
- import { jsx as s } from "react/jsx-runtime";
2
- import { Icon as p, Text as c } from "@mxenabled/mxui";
3
- import { F as m, A as b, a as v, P as h, b as F } from "./ConnectDrawer-D86nRDxQ.mjs";
4
- import { i as D, u as T, a as A, b as O, c as g } from "./Accounts-BBkQjUmS.mjs";
5
- import { f as _, i as d, a as N, b as S } from "./NumberFormatting-CtWHhyBX.mjs";
1
+ import { jsx as u } from "react/jsx-runtime";
2
+ import { Icon as p, Text as y } from "@mxenabled/mxui";
3
+ import { F as m, A as d, a as v, P as h, b as F } from "./ConnectDrawer-D86nRDxQ.mjs";
4
+ import { i as T, u as D, a as A, b as g, c as O } from "./Accounts-BBkQjUmS.mjs";
5
+ import { f as _, i as b, a as N, b as S } from "./NumberFormatting-CtWHhyBX.mjs";
6
6
  import { b as i } from "./Localization-2MODESHW.mjs";
7
- import { f, D as o } from "./Dialog-CWW597AF.mjs";
7
+ import { f as o, D as f } from "./Dialog-CWW597AF.mjs";
8
8
  const w = (l, e) => {
9
9
  const r = [
10
10
  {
@@ -17,7 +17,7 @@ const w = (l, e) => {
17
17
  valueFormatter: (a) => a
18
18
  }
19
19
  ];
20
- if (D(l)) {
20
+ if (T(l)) {
21
21
  r.unshift({
22
22
  label: e.account_balance,
23
23
  name: "balance",
@@ -25,10 +25,10 @@ const w = (l, e) => {
25
25
  type: m.Currency,
26
26
  valueFormatter: (t) => _(t, "0,0.00")
27
27
  });
28
- const a = Object.keys(b).filter((t) => Number(t)).map((t) => ({
28
+ const a = Object.keys(d).filter((t) => Number(t)).map((t) => ({
29
29
  label: e.account_types[t],
30
30
  value: Number(t),
31
- icon: /* @__PURE__ */ s(p, { name: v[t] })
31
+ icon: /* @__PURE__ */ u(p, { name: v[t] })
32
32
  }));
33
33
  r.push({
34
34
  label: e.account_type,
@@ -39,11 +39,11 @@ const w = (l, e) => {
39
39
  valueFormatter: (t) => a.find((n) => n.value === t)?.label
40
40
  });
41
41
  }
42
- if (l.account_type === b.PROPERTY) {
42
+ if (l.account_type === d.PROPERTY) {
43
43
  const a = Object.keys(h).filter((t) => Number(t)).map((t) => ({
44
44
  label: e.property_types[t],
45
45
  value: Number(t),
46
- icon: /* @__PURE__ */ s(p, { name: F[t] })
46
+ icon: /* @__PURE__ */ u(p, { name: F[t] })
47
47
  }));
48
48
  r.push({
49
49
  label: e.property_type,
@@ -54,7 +54,7 @@ const w = (l, e) => {
54
54
  valueFormatter: (t) => a.find((n) => n.value === t)?.label
55
55
  });
56
56
  }
57
- if (T(l)) {
57
+ if (D(l)) {
58
58
  let a = e.interest_rate, t = "interest_rate";
59
59
  l.is_manual || (typeof l.apr == "number" && (a = e.apr, t = "apr"), typeof l.apy == "number" && (a = e.apy, t = "apy")), r.push({
60
60
  event: "account_details_click_interest_rate",
@@ -62,8 +62,8 @@ const w = (l, e) => {
62
62
  name: t,
63
63
  placeholder: i(e.enter_value, a),
64
64
  type: m.Input,
65
- validation: (n) => d(n) ? "" : e.error_amount_is_invalid,
66
- valueFormatter: (n) => d(n) ? N(n / 100) : n
65
+ validation: (n) => b(n) ? "" : e.error_amount_is_invalid,
66
+ valueFormatter: (n) => b(n) ? N(n / 100) : n
67
67
  });
68
68
  }
69
69
  return A(l) && (r.push({
@@ -78,7 +78,7 @@ const w = (l, e) => {
78
78
  type: m.Date,
79
79
  valueFormatter: (a) => {
80
80
  const t = typeof a == "number" ? new Date(a * 1e3) : a;
81
- return f(t, o.MED_MONTH_SHORT_DAY_FULL_YEAR);
81
+ return o(t, f.MED_MONTH_SHORT_DAY_FULL_YEAR);
82
82
  }
83
83
  }) : r.push({
84
84
  label: e.day_payment_due,
@@ -89,13 +89,13 @@ const w = (l, e) => {
89
89
  e.day_of_every_month,
90
90
  S(a <= 31 ? a : new Date(a).getDate())
91
91
  )
92
- })), O(l) && r.push({
92
+ })), g(l) && r.push({
93
93
  label: e.credit_limit,
94
94
  name: "credit_limit",
95
95
  placeholder: i(e.enter_value, e.credit_limit),
96
96
  type: m.Currency,
97
97
  valueFormatter: (a) => _(a, "0,0.00")
98
- }), g(l) && r.push({
98
+ }), O(l) && r.push({
99
99
  label: e.original_balance,
100
100
  minAmount: 1,
101
101
  name: "original_balance",
@@ -103,21 +103,21 @@ const w = (l, e) => {
103
103
  type: m.Currency,
104
104
  valueFormatter: (a) => _(a, "0,0.00")
105
105
  }), r;
106
- }, x = (l, e) => {
107
- let r = "", a = null, t = null, n = null, u = !1;
106
+ }, C = (l, e) => {
107
+ let r = "", a = null, t = null, n = null, s = !1;
108
108
  switch (l.account_type) {
109
109
  case 1:
110
110
  case 2: {
111
- l.available_balance ? (r = e.available_balance, a = l.available_balance, t = l.available_balance ? e.current_balance : null, n = _(l.balance, "0,0.00"), u = !0) : (r = e.current_balance, a = l.balance);
111
+ l.available_balance ? (r = e.available_balance, a = l.available_balance, t = l.available_balance ? e.current_balance : null, n = _(l.balance, "0,0.00"), s = !0) : (r = e.current_balance, a = l.balance);
112
112
  break;
113
113
  }
114
114
  default:
115
115
  if (r = e.current_balance, a = l.balance, l.minimum_payment && l.payment_due_at) {
116
- const y = typeof l.payment_due_at == "number" ? new Date(l.payment_due_at * 1e3) : l.payment_due_at;
117
- t = /* @__PURE__ */ s(c, { component: "strong", variant: "XSmall", children: i(
116
+ const c = typeof l.payment_due_at == "number" ? new Date(l.payment_due_at * 1e3) : l.payment_due_at;
117
+ t = /* @__PURE__ */ u(y, { component: "strong", variant: "XSmall", children: i(
118
118
  e.payment_due_on,
119
119
  _(l.minimum_payment, "0,0.00"),
120
- f(y, o.FULL_MONTH_DAY)
120
+ o(c, f.FULL_MONTH_DAY)
121
121
  ) });
122
122
  } else l.credit_limit && (t = e.available_credit, n = _(l.credit_limit - (l?.balance ?? 0), "0,0.00"));
123
123
  }
@@ -126,10 +126,14 @@ const w = (l, e) => {
126
126
  firstValue: a,
127
127
  secondSubtitle: t,
128
128
  secondValue: n,
129
- hasAvailableBalance: u
129
+ hasAvailableBalance: s
130
130
  };
131
- };
131
+ }, x = (l, e) => l.reduce((a, t) => {
132
+ const s = C(t, e).firstValue || 0;
133
+ return a + s;
134
+ }, 0);
132
135
  export {
133
- w as a,
134
- x as g
136
+ x as a,
137
+ w as b,
138
+ C as g
135
139
  };
@@ -10,7 +10,7 @@ import C from "@mui/material/styles/useTheme";
10
10
  import { InstitutionLogo as B, Text as o } from "@mxenabled/mxui";
11
11
  import { Error as L } from "@mxenabled/mx-icons";
12
12
  import { I as A } from "./IconBacking-B9oC6uL2.mjs";
13
- import { g as j } from "./AccountFields-Bxvi1C4Z.mjs";
13
+ import { g as j } from "./AccountFields-5i77eFJ6.mjs";
14
14
  import { d } from "./ConnectDrawer-D86nRDxQ.mjs";
15
15
  import { u as T } from "./hooks-DlI63qSB.mjs";
16
16
  import { f as X } from "./NumberFormatting-CtWHhyBX.mjs";
@@ -16,7 +16,7 @@ import { startOfToday as z } from "date-fns/startOfToday";
16
16
  import { endOfMonth as _e } from "date-fns/endOfMonth";
17
17
  import H from "@mui/material/Button";
18
18
  import { Delete as me, Add as ye, ReceiptLong as pe } from "@mxenabled/mx-icons";
19
- import { T as X, a as he, u as ge, S as fe, b as Ce } from "./TransactionDetails-C2gYzV0z.mjs";
19
+ import { T as X, a as he, u as ge, S as fe, b as Ce } from "./TransactionDetails-C4PW8SRL.mjs";
20
20
  import { getDayOfYear as be } from "date-fns/getDayOfYear";
21
21
  import { setDayOfYear as Se } from "date-fns/setDayOfYear";
22
22
  import { AdapterDateFns as ve } from "@mui/x-date-pickers/AdapterDateFnsV3";
@@ -25,7 +25,7 @@ import { LocalizationProvider as we } from "@mui/x-date-pickers/LocalizationProv
25
25
  import { u as w, i as M, f as F, a as Ae, g as Z, o as De } from "./hooks-DlI63qSB.mjs";
26
26
  import { b as Ie, f as J } from "./NumberFormatting-CtWHhyBX.mjs";
27
27
  import { D as O } from "./Drawer-kEE73B87.mjs";
28
- import { A as R } from "./WidgetContainer-Bn6JPnY3.mjs";
28
+ import { A as R } from "./WidgetContainer-CBpf3h1Y.mjs";
29
29
  import { f as Ee, D as Re, a as Te } from "./Dialog-CWW597AF.mjs";
30
30
  import { formatISO as Le } from "date-fns/formatISO";
31
31
  import { fromUnixTime as Oe } from "date-fns/fromUnixTime";
@@ -7,10 +7,10 @@ import R from "@mui/material/Tabs";
7
7
  import l from "@mui/material/Divider";
8
8
  import T from "@mui/material/List";
9
9
  import C from "@mui/material/Stack";
10
- import { R as x, A as S, a as E, M as A } from "./ManageIncome-CFh-N0KK.mjs";
10
+ import { R as x, A as S, a as E, M as A } from "./ManageIncome-Byw3lVtR.mjs";
11
11
  import { u as h, i as y, f as _ } from "./hooks-DlI63qSB.mjs";
12
12
  import { R as v, F as N } from "./RepeatingTransaction-BW4J-jeJ.mjs";
13
- import { A as d } from "./WidgetContainer-Bn6JPnY3.mjs";
13
+ import { A as d } from "./WidgetContainer-CBpf3h1Y.mjs";
14
14
  const I = u(() => {
15
15
  const { recurring: r } = h(), { repeatingTransactions: s } = y(), { onEvent: o } = _(), a = (n) => {
16
16
  o(d.RECURRING_TRANSACTIONS_CLICK_EXPENSE, {
@@ -17,7 +17,7 @@ import { fromUnixTime as W } from "date-fns/fromUnixTime";
17
17
  import { isSameDay as Ne } from "date-fns/isSameDay";
18
18
  import { h as Ye } from "./DateUtil-BcuH7ErC.mjs";
19
19
  import { L as Ie } from "./Loader-DUaFpDGv.mjs";
20
- import { A as P } from "./WidgetContainer-Bn6JPnY3.mjs";
20
+ import { A as P } from "./WidgetContainer-CBpf3h1Y.mjs";
21
21
  import ne from "@mui/material/Paper";
22
22
  import ce from "@mui/material/Button";
23
23
  import je from "@mui/material/FormGroup";