@mx-cartographer/experiences 7.0.11-alpha.mega1 → 7.0.12

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.
Files changed (41) hide show
  1. package/CHANGELOG.md +2 -2
  2. package/dist/{Account-BW3-oYEs.mjs → Account-BVKkr6ft.mjs} +1 -1
  3. package/dist/{AccountDetailsContent-Tm7IjJIc.mjs → AccountDetailsContent-BmQ5a3Lk.mjs} +14 -14
  4. package/dist/{AccountDetailsHeader-sum_Bgdy.mjs → AccountDetailsHeader-vSwO-5Wk.mjs} +3 -3
  5. package/dist/{AccountFields-CIz-r3gP.mjs → AccountFields-VRK4zgvW.mjs} +2 -2
  6. package/dist/{AccountListItem-B-ZjJ4Gp.mjs → AccountListItem-SkBUCsb0.mjs} +2 -2
  7. package/dist/{AccountStore-BaMynkQT.mjs → AccountStore-3Umlm7QY.mjs} +9 -9
  8. package/dist/{Accounts-CA-nqAjT.mjs → Accounts-CYsoAdW-.mjs} +1 -1
  9. package/dist/{ConnectDrawer-phFH6OHt.mjs → ConnectDrawer-BA9H_xx8.mjs} +4 -4
  10. package/dist/{ConnectionsDrawer-ihxkAi1P.mjs → ConnectionsDrawer-Bs-NUsAs.mjs} +1 -1
  11. package/dist/{DebtsStore-Dp-CraCD.mjs → DebtsStore-BwmpJMik.mjs} +1 -1
  12. package/dist/{ExportCsvAction-CbMfQ2Wa.mjs → ExportCsvAction-CvyiKLTh.mjs} +2 -2
  13. package/dist/{GoalStore-BWHkOQ8o.mjs → GoalStore-DLzTboF9.mjs} +52 -51
  14. package/dist/{ManageIncome-Bef4VWt7.mjs → ManageIncome-DCUX6T2b.mjs} +3 -3
  15. package/dist/{NetWorthStore-B6xF9eGH.mjs → NetWorthStore-NKD8a-19.mjs} +2 -2
  16. package/dist/{RecurringSettings-1EOh67IT.mjs → RecurringSettings-BD_CIXnV.mjs} +2 -2
  17. package/dist/{User-Dq9Qj764.mjs → Transaction-Dns0Kuuy.mjs} +45 -47
  18. package/dist/TransactionDetails-DFDYdDae.mjs +1280 -0
  19. package/dist/{TransactionStore-0tLtBEIC.mjs → TransactionStore-BVKUoEHj.mjs} +2 -2
  20. package/dist/{WidgetContainer-C2NBfpDg.mjs → WidgetContainer-BHhhVctF.mjs} +1 -1
  21. package/dist/accounts/index.es.js +15 -15
  22. package/dist/budgets/index.es.js +5 -5
  23. package/dist/cashflow/index.es.js +5 -5
  24. package/dist/common/index.es.js +12 -12
  25. package/dist/dashboard/index.es.js +6 -6
  26. package/dist/debts/index.es.js +5 -5
  27. package/dist/{exportTransactionsToCSV-BDlt8u0n.mjs → exportTransactionsToCSV-B4JW8rfR.mjs} +1 -1
  28. package/dist/finstrong/index.es.js +4 -4
  29. package/dist/goals/index.es.js +6 -6
  30. package/dist/help/index.es.js +1 -1
  31. package/dist/investments/index.es.js +2 -2
  32. package/dist/networth/index.es.js +4 -4
  33. package/dist/recurringtransactions/index.es.js +5 -5
  34. package/dist/settings/index.es.js +1 -1
  35. package/dist/spending/index.es.js +2 -2
  36. package/dist/transactions/components/shared/transactiondetails/Description.d.ts +0 -1
  37. package/dist/transactions/index.es.js +120 -121
  38. package/dist/trends/index.es.js +3 -3
  39. package/package.json +1 -1
  40. package/dist/TransactionDetails-DYF-P762.mjs +0 -1337
  41. package/dist/transactions/components/shared/transactiondetails/TransactionDetailsView.d.ts +0 -8
@@ -1,4 +1,4 @@
1
- import { jsxs as h, jsx as e } from "react/jsx-runtime";
1
+ import { jsxs as h, jsx as o } from "react/jsx-runtime";
2
2
  import A from "react";
3
3
  import { css as p } from "@mxenabled/cssinjs";
4
4
  import { addDays as b } from "date-fns/addDays";
@@ -11,10 +11,10 @@ import { isBefore as j } from "date-fns/isBefore";
11
11
  import { isSameMonth as W } from "date-fns/isSameMonth";
12
12
  import { startOfMonth as V } from "date-fns/startOfMonth";
13
13
  import { startOfToday as f } from "date-fns/startOfToday";
14
- import { subMonths as F } from "date-fns/subMonths";
14
+ import { subMonths as Y } from "date-fns/subMonths";
15
15
  import E from "@mui/material/Button";
16
- import Y from "@mui/material/Paper";
17
- import { useTokens as v, H2 as z, Text as G } from "@mxenabled/mxui";
16
+ import z from "@mui/material/Paper";
17
+ import { useTokens as v, H2 as F, Text as G } from "@mxenabled/mxui";
18
18
  import { ChevronLeft as X, ChevronRight as Z } from "@mxenabled/mx-icons";
19
19
  import { f as q, D as J } from "./Dialog-CWW597AF.mjs";
20
20
  import { isSameDay as T } from "date-fns/isSameDay";
@@ -23,13 +23,13 @@ import nn from "@mui/material/styles/useTheme";
23
23
  import k from "@mui/material/ListItem";
24
24
  import an from "@mui/material/ListItemButton";
25
25
  import { e as tn } from "./hooks-DkUqN6JE.mjs";
26
- const on = ({ copy: n, date: a, onNextClick: o, onPreviousClick: r }) => {
26
+ const on = ({ copy: n, date: t, onNextClick: e, onPreviousClick: r }) => {
27
27
  const c = v(), l = en(c);
28
28
  return /* @__PURE__ */ h("div", { className: `mx-cmn-calendar-header ${l}`, children: [
29
- /* @__PURE__ */ e(z, { className: "mx-cmn-calendar-header-title", variant: "H3", children: q(a, J.MONTH_YEAR) }),
29
+ /* @__PURE__ */ o(F, { className: "mx-cmn-calendar-header-title", variant: "H3", children: q(t, J.MONTH_YEAR) }),
30
30
  /* @__PURE__ */ h("div", { className: "mx-cmn-calendar-header-button-container", children: [
31
- /* @__PURE__ */ e(E, { "aria-label": n.prevAria, onClick: r, children: /* @__PURE__ */ e(X, { size: 24 }) }),
32
- /* @__PURE__ */ e(E, { "aria-label": n.nextAria, onClick: o, children: /* @__PURE__ */ e(Z, { size: 24 }) })
31
+ /* @__PURE__ */ o(E, { "aria-label": n.prevAria, onClick: r, children: /* @__PURE__ */ o(X, { size: 24 }) }),
32
+ /* @__PURE__ */ o(E, { "aria-label": n.nextAria, onClick: e, children: /* @__PURE__ */ o(Z, { size: 24 }) })
33
33
  ] })
34
34
  ] });
35
35
  }, en = (n) => p({
@@ -45,9 +45,9 @@ const on = ({ copy: n, date: a, onNextClick: o, onPreviousClick: r }) => {
45
45
  display: "flex",
46
46
  gap: 4
47
47
  }
48
- }), rn = ({ beginDate: n, date: a, endDate: o, isInMonth: r, onClick: c }) => {
49
- const l = nn(), S = cn(l), g = n && o && Q(a, { start: n, end: o }) && !T(a, n) && !T(a, o), s = n && o && T(n, a) && !T(n, o), N = o && n && T(o, a) && !T(n, o), i = n && T(n, a) || o && T(o, a), C = T(a, f());
50
- return /* @__PURE__ */ e(
48
+ }), rn = ({ beginDate: n, date: t, endDate: e, isInMonth: r, onClick: c }) => {
49
+ const l = nn(), S = cn(l), g = n && e && Q(t, { start: n, end: e }) && !T(t, n) && !T(t, e), s = n && e && T(n, t) && !T(n, e), N = e && n && T(e, t) && !T(n, e), i = n && T(n, t) || e && T(e, t), C = T(t, f());
50
+ return /* @__PURE__ */ o(
51
51
  "div",
52
52
  {
53
53
  className: `
@@ -56,7 +56,7 @@ const on = ({ copy: n, date: a, onNextClick: o, onPreviousClick: r }) => {
56
56
  ${r ? "" : "mx-cmn-out-of-month"}
57
57
  ${g ? "mx-cmn-date-interval" : ""}
58
58
  `,
59
- children: /* @__PURE__ */ e(
59
+ children: /* @__PURE__ */ o(
60
60
  E,
61
61
  {
62
62
  className: `
@@ -65,9 +65,9 @@ const on = ({ copy: n, date: a, onNextClick: o, onPreviousClick: r }) => {
65
65
  ${N ? "mx-cmn-range-end" : ""}
66
66
  `,
67
67
  color: i ? "primary" : "secondary",
68
- onClick: () => c(a),
68
+ onClick: () => c(t),
69
69
  variant: i ? "contained" : "text",
70
- children: /* @__PURE__ */ e(
70
+ children: /* @__PURE__ */ o(
71
71
  G,
72
72
  {
73
73
  className: `
@@ -75,7 +75,7 @@ const on = ({ copy: n, date: a, onNextClick: o, onPreviousClick: r }) => {
75
75
  ${i ? "mx-cmn-day-selected" : ""}
76
76
  ${C ? "mx-cmn-today" : ""}`,
77
77
  variant: "Small",
78
- children: y(a, "d")
78
+ children: y(t, "d")
79
79
  }
80
80
  )
81
81
  }
@@ -131,44 +131,44 @@ const on = ({ copy: n, date: a, onNextClick: o, onPreviousClick: r }) => {
131
131
  var Tn = /* @__PURE__ */ ((n) => (n.None = "None", n.Single = "Single", n.Range = "Range", n))(Tn || {});
132
132
  const ln = ({
133
133
  copy: n,
134
- beginDate: a = void 0,
135
- endDate: o = void 0,
134
+ beginDate: t = void 0,
135
+ endDate: e = void 0,
136
136
  onDateSelected: r,
137
137
  onRangeSelected: c,
138
138
  selectionType: l = "Single"
139
139
  /* Single */
140
140
  }) => {
141
- const S = v(), g = Cn(S), [s, N] = A.useState(f), [i, C] = A.useState(a), [R, _] = A.useState(o);
141
+ const S = v(), g = Cn(S), [s, N] = A.useState(f), [i, C] = A.useState(t), [R, d] = A.useState(e);
142
142
  A.useEffect(() => {
143
- C(a), _(o), a && N(a);
144
- }, [a, o]);
143
+ C(t), d(e), t && N(t);
144
+ }, [t, e]);
145
145
  const D = A.useMemo(() => {
146
- const t = $({ start: V(s), end: U(s) }), m = [];
147
- for (let d = 0; d < t.length; d++) {
148
- const O = t[d], u = P({ start: O, end: b(O, 6) }), x = [];
149
- for (let L = 0; L < u.length; L++)
150
- x.push(u[L]);
151
- m.push(x);
146
+ const a = $({ start: V(s), end: U(s) }), m = [];
147
+ for (let _ = 0; _ < a.length; _++) {
148
+ const O = a[_], x = P({ start: O, end: b(O, 6) }), u = [];
149
+ for (let L = 0; L < x.length; L++)
150
+ u.push(x[L]);
151
+ m.push(u);
152
152
  }
153
153
  return m;
154
- }, [s]), K = (t) => {
154
+ }, [s]), K = (a) => {
155
155
  if (l !== "None") {
156
156
  if (l === "Single") {
157
- C(t), r?.(t);
157
+ C(a), r?.(a);
158
158
  return;
159
159
  }
160
- !i || R ? (C(t), _(void 0)) : j(t, i) ? (_(i), C(t), c?.(t, i)) : (_(t), c?.(i, t));
160
+ !i || R ? (C(a), d(void 0)) : j(a, i) ? (d(i), C(a), c?.(a, i)) : (d(a), c?.(i, a));
161
161
  }
162
162
  }, M = () => {
163
- const t = f();
164
- N(t), l !== "None" && (C(t), l === "Single" ? r?.(t) : (_(t), c?.(t, t)));
163
+ const a = f();
164
+ N(a), l !== "None" && (C(a), l === "Single" ? r?.(a) : (d(a), c?.(a, a)));
165
165
  }, w = () => {
166
166
  N(B(s, 1));
167
167
  }, H = () => {
168
- N(F(s, 1));
168
+ N(Y(s, 1));
169
169
  };
170
- return /* @__PURE__ */ e("div", { className: `mx-cmn-calendar ${g}`, children: /* @__PURE__ */ h(Y, { sx: { boxShadow: "none" }, children: [
171
- /* @__PURE__ */ e(
170
+ return /* @__PURE__ */ o("div", { className: `mx-cmn-calendar ${g}`, children: /* @__PURE__ */ h(z, { sx: { boxShadow: "none" }, children: [
171
+ /* @__PURE__ */ o(
172
172
  on,
173
173
  {
174
174
  copy: n,
@@ -177,19 +177,19 @@ const ln = ({
177
177
  onPreviousClick: H
178
178
  }
179
179
  ),
180
- /* @__PURE__ */ e("div", { className: "mx-cmn-calendar-header-row", children: D[0].map((t, m) => /* @__PURE__ */ e("div", { className: "mx-cmn-calendar-header-cell", children: /* @__PURE__ */ e(G, { bold: !0, variant: "Small", children: y(t, "EEEEE") }) }, m)) }),
181
- D.map((t, m) => /* @__PURE__ */ e("div", { className: "mx-cmn-calendar-week", children: t.map((d, O) => /* @__PURE__ */ e(
180
+ /* @__PURE__ */ o("div", { className: "mx-cmn-calendar-header-row", children: D[0].map((a, m) => /* @__PURE__ */ o("div", { className: "mx-cmn-calendar-header-cell", children: /* @__PURE__ */ o(G, { bold: !0, variant: "Small", children: y(a, "EEEEE") }) }, m)) }),
181
+ D.map((a, m) => /* @__PURE__ */ o("div", { className: "mx-cmn-calendar-week", children: a.map((_, O) => /* @__PURE__ */ o(
182
182
  rn,
183
183
  {
184
184
  beginDate: i,
185
- date: d,
185
+ date: _,
186
186
  endDate: R,
187
- isInMonth: W(d, s),
187
+ isInMonth: W(_, s),
188
188
  onClick: K
189
189
  },
190
190
  O
191
191
  )) }, `w-${m}`)),
192
- /* @__PURE__ */ e("div", { className: "mx-cmn-calendar-today-container", children: /* @__PURE__ */ e(E, { onClick: M, size: "small", variant: "text", children: n.today }) })
192
+ /* @__PURE__ */ o("div", { className: "mx-cmn-calendar-today-container", children: /* @__PURE__ */ o(E, { onClick: M, size: "small", variant: "text", children: n.today }) })
193
193
  ] }) });
194
194
  }, Cn = (n) => p({
195
195
  width: sn,
@@ -234,20 +234,20 @@ const ln = ({
234
234
  }
235
235
  }), Bn = ln, Pn = ({
236
236
  children: n,
237
- clickEventName: a,
238
- onClick: o,
237
+ clickEventName: t,
238
+ onClick: e,
239
239
  sx: r = {}
240
240
  }) => {
241
241
  const { onEvent: c } = tn();
242
- return o ? /* @__PURE__ */ e(k, { sx: { bgcolor: "background.paper", ...r }, children: /* @__PURE__ */ e(
242
+ return e ? /* @__PURE__ */ o(k, { sx: { bgcolor: "background.paper", ...r }, children: /* @__PURE__ */ o(
243
243
  an,
244
244
  {
245
245
  onClick: () => {
246
- a && c(a), o();
246
+ t && c(t), e();
247
247
  },
248
248
  children: n
249
249
  }
250
- ) }) : /* @__PURE__ */ e(
250
+ ) }) : /* @__PURE__ */ o(
251
251
  k,
252
252
  {
253
253
  disableGutters: !1,
@@ -302,13 +302,11 @@ const ln = ({
302
302
  ON_TRANSACTION_UNSPLIT_CANCEL: "onTransactionUnsplitCancel"
303
303
  };
304
304
  var Nn = /* @__PURE__ */ ((n) => (n[n.CREDIT = 1] = "CREDIT", n[n.DEBIT = 2] = "DEBIT", n))(Nn || {}), mn = /* @__PURE__ */ ((n) => (n[n.POSTED = 1] = "POSTED", n[n.PENDING = 2] = "PENDING", n))(mn || {});
305
- const Un = (n, a) => !!n.find((o) => o.feature_name === a)?.is_enabled;
306
305
  export {
307
306
  Bn as C,
308
307
  Pn as L,
309
308
  $n as O,
310
309
  Nn as T,
311
310
  mn as a,
312
- Tn as b,
313
- Un as i
311
+ Tn as b
314
312
  };