@mx-cartographer/experiences 8.0.9 → 8.0.11
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 +9 -0
- package/dist/{Analytics-BYItVAe-.mjs → Analytics-0Xm_BjHU.mjs} +1 -0
- package/dist/{Help-D-laTbKu.mjs → Help-DBAosGjO.mjs} +1 -1
- package/dist/{ManageIncome-Cc-wba0I.mjs → ManageIncome-HM5-RrJO.mjs} +4 -4
- package/dist/{RecurringSettings-BN9H5ALr.mjs → RecurringSettings-CC1uVzua.mjs} +2 -2
- package/dist/RecurringTransactions-BbZ6MQsX.mjs +297 -0
- package/dist/{RecurringTransactionsStore-CkMA7gY3.mjs → RecurringTransactionsStore-BE_eUfTC.mjs} +1 -1
- package/dist/{StatusIndicator-4tWnjeKS.mjs → StatusIndicator-DAWRKwmE.mjs} +1 -1
- package/dist/{TransactionDetails-D1I1XEsT.mjs → TransactionDetails-6QV_e5YL.mjs} +2 -2
- package/dist/{WidgetContainer-B7xDq2bM.mjs → WidgetContainer-D-pbSa7L.mjs} +1 -1
- package/dist/accounts/index.es.js +4 -4
- package/dist/budgets/index.es.js +5 -5
- package/dist/cashflow/index.es.js +6 -6
- package/dist/common/constants/Analytics.d.ts +1 -0
- package/dist/common/index.es.js +5 -5
- package/dist/debts/index.es.js +2 -2
- package/dist/finstrong/index.es.js +5 -5
- package/dist/goals/index.es.js +2 -2
- package/dist/help/index.es.js +2 -2
- package/dist/insights/components/index.d.ts +1 -0
- package/dist/insights/components/shared/P2P/P2PMultipleCategorization.d.ts +12 -0
- package/dist/insights/index.es.js +628 -526
- package/dist/investments/index.es.js +2 -2
- package/dist/networth/index.es.js +2 -2
- package/dist/recurringtransactions/index.es.js +9 -9
- package/dist/settings/index.es.js +2 -2
- package/dist/spending/index.es.js +4 -4
- package/dist/transactions/index.es.js +266 -266
- package/dist/trends/index.es.js +4 -4
- package/package.json +1 -1
- package/dist/RecurringTransactions-BCJp-Nap.mjs +0 -297
package/dist/trends/index.es.js
CHANGED
|
@@ -34,13 +34,13 @@ import { T as W, b as Yt } from "../ViewMoreMicroCard-D24H9kDm.mjs";
|
|
|
34
34
|
import { useGridApiContext as jt, useGridRootProps as Ut, DataGridPro as Xt } from "@mui/x-data-grid-pro";
|
|
35
35
|
import Zt from "@mui/material/Badge";
|
|
36
36
|
import Qt from "@mui/material/IconButton";
|
|
37
|
-
import { A as v } from "../Analytics-
|
|
38
|
-
import { T as ct } from "../StatusIndicator-
|
|
39
|
-
import { T as dt } from "../TransactionDetails-
|
|
37
|
+
import { A as v } from "../Analytics-0Xm_BjHU.mjs";
|
|
38
|
+
import { T as ct } from "../StatusIndicator-DAWRKwmE.mjs";
|
|
39
|
+
import { T as dt } from "../TransactionDetails-6QV_e5YL.mjs";
|
|
40
40
|
import { D as Pe } from "../Drawer-Bbe4AMB1.mjs";
|
|
41
41
|
import { u as Ie } from "../useWidgetLoadTimer-DgN1bTyu.mjs";
|
|
42
42
|
import { L as Le } from "../Loader-D3rjKx72.mjs";
|
|
43
|
-
import { W as ut } from "../WidgetContainer-
|
|
43
|
+
import { W as ut } from "../WidgetContainer-D-pbSa7L.mjs";
|
|
44
44
|
import { L as Ve } from "../LineChart-EAr5ox5U.mjs";
|
|
45
45
|
import { M as qt } from "../MiniWidgetContainer-Bhkv-hpz.mjs";
|
|
46
46
|
import { subMonths as Jt } from "date-fns";
|
package/package.json
CHANGED
|
@@ -1,297 +0,0 @@
|
|
|
1
|
-
import { jsx as d, jsxs as E, Fragment as B } from "react/jsx-runtime";
|
|
2
|
-
import L from "@mui/material/Avatar";
|
|
3
|
-
import O from "@mui/material/ListItem";
|
|
4
|
-
import R from "@mui/material/ListItemAvatar";
|
|
5
|
-
import F from "@mui/material/ListItemButton";
|
|
6
|
-
import G from "@mui/material/ListItemIcon";
|
|
7
|
-
import P from "@mui/material/ListItemText";
|
|
8
|
-
import { Icon as M } from "@mxenabled/mxui";
|
|
9
|
-
import q from "@mui/material/MenuItem";
|
|
10
|
-
import C from "@mui/material/TextField";
|
|
11
|
-
import { ExpandMore as $ } from "@mxenabled/mx-icons";
|
|
12
|
-
import { addDays as A } from "date-fns/addDays";
|
|
13
|
-
import { addMonths as h } from "date-fns/addMonths";
|
|
14
|
-
import { addQuarters as Q } from "date-fns/addQuarters";
|
|
15
|
-
import { addWeeks as w } from "date-fns/addWeeks";
|
|
16
|
-
import { addYears as U } from "date-fns/addYears";
|
|
17
|
-
import { formatISO as j } from "date-fns/formatISO";
|
|
18
|
-
import { fromUnixTime as z } from "date-fns/fromUnixTime";
|
|
19
|
-
import { getUnixTime as y } from "date-fns/getUnixTime";
|
|
20
|
-
import { isAfter as p } from "date-fns/isAfter";
|
|
21
|
-
import { isBefore as u } from "date-fns/isBefore";
|
|
22
|
-
import { isSameDay as K } from "date-fns/isSameDay";
|
|
23
|
-
import { lastDayOfMonth as T } from "date-fns/lastDayOfMonth";
|
|
24
|
-
import { nextDay as k } from "date-fns/nextDay";
|
|
25
|
-
import { parseISO as H } from "date-fns/parseISO";
|
|
26
|
-
import { setDate as f } from "date-fns/setDate";
|
|
27
|
-
import { setDay as V } from "date-fns/setDay";
|
|
28
|
-
import { setDayOfYear as Y } from "date-fns/setDayOfYear";
|
|
29
|
-
import { startOfToday as b } from "date-fns/startOfToday";
|
|
30
|
-
import { subDays as W } from "date-fns/subDays";
|
|
31
|
-
import { subMonths as J } from "date-fns/subMonths";
|
|
32
|
-
import { subQuarters as S } from "date-fns/subQuarters";
|
|
33
|
-
import { subWeeks as X } from "date-fns/subWeeks";
|
|
34
|
-
import { subYears as Z } from "date-fns/subYears";
|
|
35
|
-
import { g as ee, a as te, b as re, c as ae, d as oe, e as se, f as ne } from "./DateUtil-wcYTmDRD.mjs";
|
|
36
|
-
import { F as n, a as x, R as ce, b as I } from "./RepeatingTransaction-DF4vJn_v.mjs";
|
|
37
|
-
import { b as N } from "./NumberFormatting-QCaNwbjv.mjs";
|
|
38
|
-
import { b as l } from "./Localization-CPkpIwIx.mjs";
|
|
39
|
-
import { f as g, D as v } from "./DateFormats-BMpMrZpW.mjs";
|
|
40
|
-
const ie = ({ iconName: e, label: o, onClick: r, value: a }) => {
|
|
41
|
-
const t = /* @__PURE__ */ E(B, { children: [
|
|
42
|
-
/* @__PURE__ */ d(R, { children: /* @__PURE__ */ d(L, { sx: { bgcolor: "neutral.light" }, variant: "rounded", children: /* @__PURE__ */ d(M, { name: e, sx: { color: "text.primary" } }) }) }),
|
|
43
|
-
/* @__PURE__ */ d(
|
|
44
|
-
P,
|
|
45
|
-
{
|
|
46
|
-
primary: o,
|
|
47
|
-
primaryTypographyProps: { variant: "caption" },
|
|
48
|
-
secondary: a,
|
|
49
|
-
secondaryTypographyProps: { color: "text.default", variant: "body1", fontWeight: 600 }
|
|
50
|
-
}
|
|
51
|
-
)
|
|
52
|
-
] });
|
|
53
|
-
return r ? /* @__PURE__ */ d(O, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ E(F, { onClick: r, children: [
|
|
54
|
-
t,
|
|
55
|
-
/* @__PURE__ */ d(G, { children: /* @__PURE__ */ d(M, { name: "chevron_right", size: 24 }) })
|
|
56
|
-
] }) }) : /* @__PURE__ */ d(O, { disableGutters: !1, disablePadding: !1, children: t });
|
|
57
|
-
}, ot = ie, st = ({ label: e, onChange: o, options: r, value: a, ...t }) => /* @__PURE__ */ d(
|
|
58
|
-
C,
|
|
59
|
-
{
|
|
60
|
-
InputLabelProps: { shrink: !0 },
|
|
61
|
-
SelectProps: {
|
|
62
|
-
IconComponent: (c) => /* @__PURE__ */ d($, { size: 20, sx: { mr: 4 }, ...c })
|
|
63
|
-
},
|
|
64
|
-
defaultValue: 0,
|
|
65
|
-
label: e,
|
|
66
|
-
onChange: (c) => {
|
|
67
|
-
o(Number(c.target.value));
|
|
68
|
-
},
|
|
69
|
-
select: !0,
|
|
70
|
-
value: a,
|
|
71
|
-
variant: "outlined",
|
|
72
|
-
...t,
|
|
73
|
-
children: r.map((c) => /* @__PURE__ */ d(q, { value: c.id, children: c.label }, c.id))
|
|
74
|
-
}
|
|
75
|
-
), ue = (e) => {
|
|
76
|
-
if (!e) return "";
|
|
77
|
-
let o = e.user_name || e.feed_name || "";
|
|
78
|
-
return e.account_number && (o = `${o} *${e.account_number}`), o;
|
|
79
|
-
}, de = (e, o) => {
|
|
80
|
-
const r = [], a = e.transactions.find(
|
|
81
|
-
(m) => m.repeating_transaction_guid === e.guid
|
|
82
|
-
);
|
|
83
|
-
if (!a) return [];
|
|
84
|
-
const t = H(e.predicted_occurs_on), s = {
|
|
85
|
-
accountGuid: e.account?.guid || "",
|
|
86
|
-
amount: e.amount,
|
|
87
|
-
categoryGuid: a.category_guid || "",
|
|
88
|
-
expectedDate: t,
|
|
89
|
-
frequency: e.recurrence_type,
|
|
90
|
-
institutionGuid: e.account?.institution_guid || "",
|
|
91
|
-
institutionName: ue(e.account),
|
|
92
|
-
merchantGuid: e.merchant_guid,
|
|
93
|
-
name: e.description,
|
|
94
|
-
recurrenceDay: e.recurrence_day,
|
|
95
|
-
repeatingTransactionGuid: e.guid,
|
|
96
|
-
secondRecurrenceDay: e.second_recurrence_day,
|
|
97
|
-
status: x.Upcoming,
|
|
98
|
-
type: e.repeating_transaction_type === ce.Income ? I.Income : I.Expense,
|
|
99
|
-
transaction: void 0
|
|
100
|
-
}, c = o.start, i = o.end;
|
|
101
|
-
switch (e.recurrence_type) {
|
|
102
|
-
case n.EveryWeek:
|
|
103
|
-
r.push(...me(s, c, i));
|
|
104
|
-
break;
|
|
105
|
-
case n.EveryOtherWeek:
|
|
106
|
-
r.push(...le(s, c, i));
|
|
107
|
-
break;
|
|
108
|
-
case n.TwiceAMonth:
|
|
109
|
-
r.push(...he(s, c, i));
|
|
110
|
-
break;
|
|
111
|
-
case n.EveryMonth:
|
|
112
|
-
r.push(...pe(s, c, i));
|
|
113
|
-
break;
|
|
114
|
-
case n.EveryOtherMonth:
|
|
115
|
-
r.push(...ye(s, c, i));
|
|
116
|
-
break;
|
|
117
|
-
case n.EveryQuarter:
|
|
118
|
-
r.push(...fe(s, c, i));
|
|
119
|
-
break;
|
|
120
|
-
case n.EveryOtherQuarter:
|
|
121
|
-
r.push(..._e(s, c, i));
|
|
122
|
-
break;
|
|
123
|
-
case n.EveryYear:
|
|
124
|
-
r.push(...De(s, c, i));
|
|
125
|
-
break;
|
|
126
|
-
}
|
|
127
|
-
for (const m of r) {
|
|
128
|
-
const _ = e.transactions.find(
|
|
129
|
-
(D) => D.repeating_transaction_guid === e.guid && D.date > y(W(m.expectedDate, 5)) && D.date < y(A(m.expectedDate, 5))
|
|
130
|
-
);
|
|
131
|
-
_ ? (m.transaction = _, m.status = x.Paid, m.occurredOnDate = z(_.date)) : u(m.expectedDate, W(b(), 3)) && (m.status = x.Missed);
|
|
132
|
-
}
|
|
133
|
-
return r;
|
|
134
|
-
}, me = (e, o, r) => {
|
|
135
|
-
const a = [];
|
|
136
|
-
let t = k(o, e.recurrenceDay);
|
|
137
|
-
for (; u(t, r); )
|
|
138
|
-
a.push({ ...e, expectedDate: t }), t = k(t, e.recurrenceDay);
|
|
139
|
-
return a;
|
|
140
|
-
}, le = (e, o, r) => {
|
|
141
|
-
const a = [];
|
|
142
|
-
let t = e.expectedDate;
|
|
143
|
-
if (u(t, o))
|
|
144
|
-
for (; u(t, o); )
|
|
145
|
-
t = w(t, 2);
|
|
146
|
-
else {
|
|
147
|
-
for (; p(t, o) || K(t, o); )
|
|
148
|
-
t = X(t, 2);
|
|
149
|
-
t = w(t, 2);
|
|
150
|
-
}
|
|
151
|
-
for (; u(t, r); )
|
|
152
|
-
a.push({ ...e, expectedDate: t }), t = A(t, 14);
|
|
153
|
-
return a;
|
|
154
|
-
}, he = (e, o, r) => {
|
|
155
|
-
const a = [];
|
|
156
|
-
let t = f(o, e.recurrenceDay);
|
|
157
|
-
for (; u(t, r); )
|
|
158
|
-
a.push({ ...e, expectedDate: t }), t = h(t, 1);
|
|
159
|
-
let s = e.secondRecurrenceDay && e.secondRecurrenceDay < 28 ? f(o, e.secondRecurrenceDay) : T(o);
|
|
160
|
-
for (; u(s, r); )
|
|
161
|
-
a.push({ ...e, expectedDate: s }), s = h(s, 1);
|
|
162
|
-
return a;
|
|
163
|
-
}, pe = (e, o, r) => {
|
|
164
|
-
const a = [];
|
|
165
|
-
let t = f(o, e.recurrenceDay);
|
|
166
|
-
for (a.push({ ...e, expectedDate: t }), t = h(t, 1); u(t, r); )
|
|
167
|
-
a.push({ ...e, expectedDate: t }), t = h(t, 1);
|
|
168
|
-
return a;
|
|
169
|
-
}, ye = (e, o, r) => {
|
|
170
|
-
const a = [], t = e.expectedDate;
|
|
171
|
-
let s = u(t, r) ? t : J(t, 2);
|
|
172
|
-
for (; u(s, r); )
|
|
173
|
-
p(s, o) && a.push({ ...e, expectedDate: s }), s = h(s, 2);
|
|
174
|
-
return a;
|
|
175
|
-
}, fe = (e, o, r) => {
|
|
176
|
-
const a = [], t = e.expectedDate;
|
|
177
|
-
let s = u(t, r) ? t : S(t, 1);
|
|
178
|
-
for (; u(s, r); )
|
|
179
|
-
p(s, o) && a.push({ ...e, expectedDate: s }), s = Q(s, 1);
|
|
180
|
-
return a;
|
|
181
|
-
}, _e = (e, o, r) => {
|
|
182
|
-
const a = [], t = e.expectedDate;
|
|
183
|
-
let s = u(t, r) ? t : S(t, 2);
|
|
184
|
-
for (; u(s, r); )
|
|
185
|
-
p(s, o) && a.push({ ...e, expectedDate: s }), s = Q(s, 2);
|
|
186
|
-
return a;
|
|
187
|
-
}, De = (e, o, r) => {
|
|
188
|
-
const a = [], t = e.expectedDate;
|
|
189
|
-
let s = u(t, r) ? t : Z(t, 1);
|
|
190
|
-
for (; u(s, r); )
|
|
191
|
-
p(s, o) && a.push({ ...e, expectedDate: s }), s = U(s, 1);
|
|
192
|
-
return a;
|
|
193
|
-
}, nt = (e, o) => {
|
|
194
|
-
const r = [];
|
|
195
|
-
for (const a of e) {
|
|
196
|
-
const t = de(a, o);
|
|
197
|
-
r.push(...t);
|
|
198
|
-
}
|
|
199
|
-
return r.sort(
|
|
200
|
-
(a, t) => y(a.occurredOnDate || a.expectedDate) - y(t.occurredOnDate || t.expectedDate)
|
|
201
|
-
);
|
|
202
|
-
}, ct = (e, o, r) => {
|
|
203
|
-
const a = [];
|
|
204
|
-
for (const t of o) {
|
|
205
|
-
const s = r.filter(
|
|
206
|
-
(c) => c.repeating_transaction_guid === t.guid
|
|
207
|
-
);
|
|
208
|
-
r.length > 0 && a.push({
|
|
209
|
-
...t,
|
|
210
|
-
account: e.find((c) => c.guid === t.account_guid),
|
|
211
|
-
transactions: s
|
|
212
|
-
});
|
|
213
|
-
}
|
|
214
|
-
return a;
|
|
215
|
-
}, it = (e) => e.reduce((o, r) => {
|
|
216
|
-
const a = j(r.expectedDate, { representation: "date" }), t = o.find(
|
|
217
|
-
(s) => s.date.toString() === r.expectedDate.toString()
|
|
218
|
-
);
|
|
219
|
-
return t ? t.recurrences.push(r) : o.push({
|
|
220
|
-
date: r.expectedDate,
|
|
221
|
-
id: `date-${a}`,
|
|
222
|
-
recurrences: [r]
|
|
223
|
-
}), o;
|
|
224
|
-
}, []), ut = (e, o, r) => {
|
|
225
|
-
const a = k(b(), o.recurrence_day), t = Y(b(), o.recurrence_day), s = N(o.recurrence_day), c = o.second_recurrence_day ? N(o.second_recurrence_day) : "";
|
|
226
|
-
let i = r ? l(e.monthly_ordinal, s) : e.monthly;
|
|
227
|
-
switch (o.recurrence_type) {
|
|
228
|
-
case n.EveryQuarter:
|
|
229
|
-
i = r ? l(e.quarterly_ordinal, s) : e.quarterly;
|
|
230
|
-
break;
|
|
231
|
-
case n.EveryWeek:
|
|
232
|
-
i = r ? l(
|
|
233
|
-
e.weekly_ordinal,
|
|
234
|
-
g(a, v.DAY_OF_WEEK)
|
|
235
|
-
) : e.weekly;
|
|
236
|
-
break;
|
|
237
|
-
case n.EveryYear:
|
|
238
|
-
i = r ? l(
|
|
239
|
-
e.anually_ordinal,
|
|
240
|
-
g(t, v.MONTH_DAY)
|
|
241
|
-
) : e.anually;
|
|
242
|
-
break;
|
|
243
|
-
case n.EveryOtherWeek:
|
|
244
|
-
i = r ? l(
|
|
245
|
-
e.every_other_week_ordinal,
|
|
246
|
-
g(a, v.DAY_OF_WEEK)
|
|
247
|
-
) : e.every_other_week;
|
|
248
|
-
break;
|
|
249
|
-
case n.EveryOtherMonth:
|
|
250
|
-
i = r ? l(e.every_other_month_ordinal, s) : e.every_other_month;
|
|
251
|
-
break;
|
|
252
|
-
case n.EveryOtherQuarter:
|
|
253
|
-
i = r ? l(e.every_other_quarter_ordinal, s) : e.every_other_quarter;
|
|
254
|
-
break;
|
|
255
|
-
case n.TwiceAMonth:
|
|
256
|
-
i = r ? l(e.twice_a_month_ordinal, s, c) : e.twice_a_month;
|
|
257
|
-
break;
|
|
258
|
-
}
|
|
259
|
-
return i;
|
|
260
|
-
}, dt = (e, o, r) => {
|
|
261
|
-
let a = o;
|
|
262
|
-
r !== void 0 && (e === n.EveryWeek || e === n.EveryOtherWeek ? a = V(o, r) : e === n.EveryYear ? a = Y(o, r) : a = f(o, r));
|
|
263
|
-
let t = a;
|
|
264
|
-
switch (e) {
|
|
265
|
-
case n.EveryWeek:
|
|
266
|
-
t = ne(a);
|
|
267
|
-
break;
|
|
268
|
-
case n.EveryOtherWeek:
|
|
269
|
-
t = se(a);
|
|
270
|
-
break;
|
|
271
|
-
case n.EveryMonth:
|
|
272
|
-
t = oe(a);
|
|
273
|
-
break;
|
|
274
|
-
case n.EveryOtherMonth:
|
|
275
|
-
t = ae(a);
|
|
276
|
-
break;
|
|
277
|
-
case n.EveryQuarter:
|
|
278
|
-
t = re(a);
|
|
279
|
-
break;
|
|
280
|
-
case n.EveryOtherQuarter:
|
|
281
|
-
t = te(a);
|
|
282
|
-
break;
|
|
283
|
-
case n.EveryYear:
|
|
284
|
-
t = ee(a);
|
|
285
|
-
break;
|
|
286
|
-
}
|
|
287
|
-
return t;
|
|
288
|
-
};
|
|
289
|
-
export {
|
|
290
|
-
ot as D,
|
|
291
|
-
st as S,
|
|
292
|
-
ct as a,
|
|
293
|
-
nt as b,
|
|
294
|
-
dt as c,
|
|
295
|
-
it as d,
|
|
296
|
-
ut as g
|
|
297
|
-
};
|