@mx-cartographer/experiences 7.2.22-alpha.sms2 → 7.2.23-alpha.sab1
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 -3
- package/dist/{AccountDetailsContent-C-TlAp1T.mjs → AccountDetailsContent-B6ZFRZ8l.mjs} +1 -1
- package/dist/{CategorySelectorDrawer-DUe4lH5-.mjs → CategorySelectorDrawer-BXnLseqP.mjs} +20 -18
- package/dist/{ManageIncome-CGYYCOFR.mjs → ManageIncome-CXeJPfjE.mjs} +1 -1
- package/dist/{RecurringSettings-BMcgNklx.mjs → RecurringSettings-D7476j-N.mjs} +1 -1
- package/dist/{TransactionDetails-D9ycDgYU.mjs → TransactionDetails-Cscyr17P.mjs} +433 -399
- package/dist/accounts/index.es.js +2 -2
- package/dist/budgets/index.es.js +3 -3
- package/dist/cashflow/index.es.js +3 -3
- package/dist/categories/index.es.js +1 -1
- package/dist/common/stores/GlobalStore.d.ts +5 -2
- package/dist/finstrong/index.es.js +1 -1
- package/dist/goals/index.es.js +1 -1
- package/dist/notifications/index.es.js +27 -27
- package/dist/recurringtransactions/index.es.js +4 -4
- package/dist/settings/index.es.js +1 -1
- package/dist/spending/index.es.js +16 -17
- package/dist/transactions/index.es.js +61 -62
- package/dist/trends/index.es.js +1 -1
- package/package.json +1 -1
- package/dist/useAriaLive-B3_pRUio.mjs +0 -35
|
@@ -7,8 +7,8 @@ import E from "@mui/material/List";
|
|
|
7
7
|
import O from "@mui/material/ListSubheader";
|
|
8
8
|
import A from "@mui/system/Stack";
|
|
9
9
|
import { Text as v } from "@mxenabled/mxui";
|
|
10
|
-
import { A as K } from "../AccountDetailsContent-
|
|
11
|
-
import { u as N1 } from "../AccountDetailsContent-
|
|
10
|
+
import { A as K } from "../AccountDetailsContent-B6ZFRZ8l.mjs";
|
|
11
|
+
import { u as N1 } from "../AccountDetailsContent-B6ZFRZ8l.mjs";
|
|
12
12
|
import { u as z, A as P } from "../AccountDetailsHeader-vPzGb1RZ.mjs";
|
|
13
13
|
import { A as W } from "../AccountListItem-CeY_WIpj.mjs";
|
|
14
14
|
import { a as Y } from "../AccountFields-DUToRRqW.mjs";
|
package/dist/budgets/index.es.js
CHANGED
|
@@ -38,16 +38,16 @@ 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-BwwmL4pM.mjs";
|
|
41
|
-
import { T as De, a as at } from "../TransactionDetails-
|
|
41
|
+
import { T as De, a as at } from "../TransactionDetails-Cscyr17P.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";
|
|
45
45
|
import { S as Ie } from "../SingleSegmentDonut-BgbLgwHi.mjs";
|
|
46
|
-
import { u as rt, b as st } from "../CategorySelectorDrawer-
|
|
46
|
+
import { u as rt, b as st } from "../CategorySelectorDrawer-BXnLseqP.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-CXeJPfjE.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: [
|
|
@@ -17,7 +17,7 @@ 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-D0gfmbaF.mjs";
|
|
19
19
|
import { E as Ze } from "../EmptyState-DA_lfRBv.mjs";
|
|
20
|
-
import { R as et } from "../RecurringSettings-
|
|
20
|
+
import { R as et } from "../RecurringSettings-D7476j-N.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";
|
|
@@ -35,13 +35,13 @@ 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-CXeJPfjE.mjs";
|
|
39
39
|
import { D as Ge } from "../Drawer-kEE73B87.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, b as pt } from "../TransactionDetails-
|
|
44
|
+
import { S as ht, b as pt } from "../TransactionDetails-Cscyr17P.mjs";
|
|
45
45
|
import { F as ft, R as De, e as ve } from "../RecurringTransactions-ej39mgA6.mjs";
|
|
46
46
|
import { h as gt } from "../DateUtil-BcuH7ErC.mjs";
|
|
47
47
|
import { endOfToday as bt } from "date-fns/endOfToday";
|
|
@@ -36,7 +36,10 @@ interface LoadDataProps {
|
|
|
36
36
|
transactions?: Transaction[];
|
|
37
37
|
userFeatures?: UserFeature[];
|
|
38
38
|
}
|
|
39
|
-
type OnStoreUpdate = (update:
|
|
39
|
+
type OnStoreUpdate = (update: ObservedUpdate) => void;
|
|
40
|
+
type ObservedUpdate = {
|
|
41
|
+
transactions: Transaction[];
|
|
42
|
+
};
|
|
40
43
|
export declare class GlobalStore {
|
|
41
44
|
appConfig: AppConfig;
|
|
42
45
|
endpoint: string;
|
|
@@ -68,7 +71,7 @@ export declare class GlobalStore {
|
|
|
68
71
|
globalUiStore: GlobalUiStore;
|
|
69
72
|
constructor(appConfig?: AppConfig, endpoint?: string, onError?: GlobalErrorHandler, onStoreUpdate?: OnStoreUpdate);
|
|
70
73
|
get isInitialized(): boolean;
|
|
71
|
-
emitUpdate: (change:
|
|
74
|
+
emitUpdate: (change: ObservedUpdate) => void;
|
|
72
75
|
loadData: ({ accounts, appData, associatedBeats, categories, institutions, transactionRules, transactions, userFeatures, }?: LoadDataProps) => Promise<void>;
|
|
73
76
|
}
|
|
74
77
|
export {};
|
|
@@ -30,7 +30,7 @@ import Ve from "@mui/material/AccordionSummary";
|
|
|
30
30
|
import Ye from "@mui/material/CardHeader";
|
|
31
31
|
import { u as qe } from "../useDimensions-27p2evRx.mjs";
|
|
32
32
|
import { C as Je } from "../ConnectionsDrawer-BDvVuJQf.mjs";
|
|
33
|
-
import { R as Qe } from "../RecurringSettings-
|
|
33
|
+
import { R as Qe } from "../RecurringSettings-D7476j-N.mjs";
|
|
34
34
|
import Ze from "@mui/material/TextField";
|
|
35
35
|
import { u as Se } from "../useScreenSize-B6JyS_Lj.mjs";
|
|
36
36
|
import { a as et } from "../Dialog-CWW597AF.mjs";
|
package/dist/goals/index.es.js
CHANGED
|
@@ -39,7 +39,7 @@ import ot from "@mui/material/Collapse";
|
|
|
39
39
|
import at from "@mui/material/ListItemIcon";
|
|
40
40
|
import rt from "@mui/material/Checkbox";
|
|
41
41
|
import { u as it, A as st } from "../AccountDetailsHeader-vPzGb1RZ.mjs";
|
|
42
|
-
import { A as lt } from "../AccountDetailsContent-
|
|
42
|
+
import { A as lt } from "../AccountDetailsContent-B6ZFRZ8l.mjs";
|
|
43
43
|
import { u as ct } from "../useAccountDisplayName-jS05A6-6.mjs";
|
|
44
44
|
import Ke from "@mui/material/TextField";
|
|
45
45
|
import { M as dt, I as mt, O as ut } from "../OriginalBalanceAction-CWuVvRq9.mjs";
|
|
@@ -19,8 +19,8 @@ import { L as w } from "../Loader-DUaFpDGv.mjs";
|
|
|
19
19
|
import $ from "@mui/material/IconButton";
|
|
20
20
|
import { N as H } from "../NotificationSettings-5i3IywCi.mjs";
|
|
21
21
|
import { D as C } from "../Drawer-kEE73B87.mjs";
|
|
22
|
-
const yt = (
|
|
23
|
-
switch (
|
|
22
|
+
const yt = (e) => {
|
|
23
|
+
switch (e) {
|
|
24
24
|
case b.BudgetExceeded:
|
|
25
25
|
case b.BudgetOffTarget:
|
|
26
26
|
return _.BUDGETS;
|
|
@@ -35,8 +35,8 @@ const yt = (i) => {
|
|
|
35
35
|
default:
|
|
36
36
|
return null;
|
|
37
37
|
}
|
|
38
|
-
}, M = ({ date:
|
|
39
|
-
const { accounts: o } = E(), { budgets: s } = j(), { accounts: a } = g(),
|
|
38
|
+
}, M = ({ date: e }) => /* @__PURE__ */ t(y, { sx: { display: "flex", justifyContent: "center", mt: 12, py: 8 }, children: /* @__PURE__ */ t(m, { bold: !0, variant: "Small", children: I(e) }) }), V = ({ notification: e }) => {
|
|
39
|
+
const { accounts: o } = E(), { budgets: s } = j(), { accounts: a } = g(), i = o.find((l) => l.guid === e.entity_guid), r = s.find((l) => l.guid === e.entity_guid), u = e.entity_guid.includes("GOL"), c = {
|
|
40
40
|
badge: {
|
|
41
41
|
display: "flex",
|
|
42
42
|
alignItems: "center",
|
|
@@ -45,16 +45,16 @@ const yt = (i) => {
|
|
|
45
45
|
marginRight: 12
|
|
46
46
|
}
|
|
47
47
|
};
|
|
48
|
-
return
|
|
48
|
+
return i || u ? /* @__PURE__ */ t("div", { style: c.badge, children: /* @__PURE__ */ t(
|
|
49
49
|
T,
|
|
50
50
|
{
|
|
51
|
-
alt:
|
|
52
|
-
institutionGuid:
|
|
51
|
+
alt: i?.institutionName || a.institution_logo_alt,
|
|
52
|
+
institutionGuid: i?.institution_guid ?? "",
|
|
53
53
|
size: 33
|
|
54
54
|
}
|
|
55
55
|
) }) : /* @__PURE__ */ t("div", { style: c.badge, children: /* @__PURE__ */ t(R, { categoryGuid: r?.category_guid, size: 36 }) });
|
|
56
|
-
}, X = p(V), Y = ({ notification:
|
|
57
|
-
const { updateNotification: s } = N(), a = O(),
|
|
56
|
+
}, X = p(V), Y = ({ notification: e, onClick: o }) => {
|
|
57
|
+
const { updateNotification: s } = N(), a = O(), i = {
|
|
58
58
|
card: {
|
|
59
59
|
alignItems: "center",
|
|
60
60
|
cursor: "pointer",
|
|
@@ -80,14 +80,14 @@ const yt = (i) => {
|
|
|
80
80
|
}
|
|
81
81
|
};
|
|
82
82
|
return /* @__PURE__ */ d(G, { onClick: () => {
|
|
83
|
-
o(
|
|
84
|
-
}, sx:
|
|
85
|
-
|
|
86
|
-
/* @__PURE__ */ t(X, { notification:
|
|
87
|
-
/* @__PURE__ */ t(m, { bold: !
|
|
83
|
+
o(e), s({ ...e, has_been_viewed: !0 }).finally();
|
|
84
|
+
}, sx: i.card, children: [
|
|
85
|
+
e.has_been_viewed ? null : /* @__PURE__ */ t("div", { "data-testid": "new-message-dot", style: i.dot }),
|
|
86
|
+
/* @__PURE__ */ t(X, { notification: e }),
|
|
87
|
+
/* @__PURE__ */ t(m, { bold: !e.has_been_viewed, truncate: !1, variant: "Small", children: e.content })
|
|
88
88
|
] });
|
|
89
89
|
}, q = p(
|
|
90
|
-
({ onManageNotifications:
|
|
90
|
+
({ onManageNotifications: e }) => {
|
|
91
91
|
const { notifications: o } = g();
|
|
92
92
|
return /* @__PURE__ */ d(W, { sx: { alignItems: "center", height: "95%", justifyContent: "center" }, children: [
|
|
93
93
|
/* @__PURE__ */ t(U, { name: "notifications", size: 32 }),
|
|
@@ -106,20 +106,20 @@ const yt = (i) => {
|
|
|
106
106
|
children: o.notification_empty_state.notification_description
|
|
107
107
|
}
|
|
108
108
|
),
|
|
109
|
-
/* @__PURE__ */ t(P, { onClick:
|
|
109
|
+
/* @__PURE__ */ t(P, { onClick: e, sx: { p: "12px 16px" }, variant: "outlined", children: o.notification_empty_state.manage_notifications })
|
|
110
110
|
] });
|
|
111
111
|
}
|
|
112
|
-
), J = ({ onClick:
|
|
113
|
-
const { isLoading: s, loadNotifications: a, newNotifications:
|
|
114
|
-
|
|
112
|
+
), J = ({ onClick: e, onManageNotifications: o }) => {
|
|
113
|
+
const { isLoading: s, loadNotifications: a, newNotifications: i, markAllAsViewed: r } = N(), { notifications: u } = g(), { isCopyLoaded: c } = S(), l = (n) => {
|
|
114
|
+
e?.(n);
|
|
115
115
|
};
|
|
116
116
|
return A(() => {
|
|
117
|
-
a().
|
|
117
|
+
a().then(() => r()).finally();
|
|
118
118
|
}, [a, r]), /* @__PURE__ */ d(x, { children: [
|
|
119
119
|
(!c || s) && /* @__PURE__ */ t(w, { label: u?.loading, size: 40 }),
|
|
120
|
-
c && !s &&
|
|
121
|
-
/* @__PURE__ */ t(B, { sx: { p: 16 }, children: c && !s &&
|
|
122
|
-
const v = L(h,
|
|
120
|
+
c && !s && i.length === 0 && /* @__PURE__ */ t(q, { onManageNotifications: o }),
|
|
121
|
+
/* @__PURE__ */ t(B, { sx: { p: 16 }, children: c && !s && i.slice().sort((n, h) => h.delivered_at - n.delivered_at).map((n, h) => {
|
|
122
|
+
const v = L(h, i);
|
|
123
123
|
return /* @__PURE__ */ d(y, { sx: { mb: 12 }, children: [
|
|
124
124
|
v && /* @__PURE__ */ d(y, { sx: { mb: 12 }, children: [
|
|
125
125
|
/* @__PURE__ */ t(M, { date: n.delivered_at }),
|
|
@@ -130,8 +130,8 @@ const yt = (i) => {
|
|
|
130
130
|
}) })
|
|
131
131
|
] });
|
|
132
132
|
}, K = p(J), bt = p(
|
|
133
|
-
({ notificationTypes:
|
|
134
|
-
const { config:
|
|
133
|
+
({ notificationTypes: e, isOpen: o, onClose: s, onNotificationClick: a }) => {
|
|
134
|
+
const { config: i } = z(), { notifications: r, settings: u } = g(), { isCopyLoaded: c } = S(), [l, n] = k.useState(!1);
|
|
135
135
|
return c ? /* @__PURE__ */ d(x, { children: [
|
|
136
136
|
/* @__PURE__ */ d(
|
|
137
137
|
C,
|
|
@@ -174,8 +174,8 @@ const yt = (i) => {
|
|
|
174
174
|
children: /* @__PURE__ */ t(
|
|
175
175
|
H,
|
|
176
176
|
{
|
|
177
|
-
notificationTypes:
|
|
178
|
-
showPersonalDetails: !
|
|
177
|
+
notificationTypes: e,
|
|
178
|
+
showPersonalDetails: !i.display_user_profile_in_settings
|
|
179
179
|
}
|
|
180
180
|
)
|
|
181
181
|
}
|
|
@@ -8,8 +8,8 @@ import { startOfToday as ue } from "date-fns/startOfToday";
|
|
|
8
8
|
import { subDays as me } from "date-fns/subDays";
|
|
9
9
|
import ae from "@mui/material/Skeleton";
|
|
10
10
|
import c from "@mui/material/Stack";
|
|
11
|
-
import { R as Ee } from "../RecurringSettings-
|
|
12
|
-
import { M as Gn } from "../RecurringSettings-
|
|
11
|
+
import { R as Ee } from "../RecurringSettings-D7476j-N.mjs";
|
|
12
|
+
import { M as Gn } from "../RecurringSettings-D7476j-N.mjs";
|
|
13
13
|
import { addMonths as ze } from "date-fns/addMonths";
|
|
14
14
|
import { subMonths as Fe } from "date-fns/subMonths";
|
|
15
15
|
import { isBefore as Ue } from "date-fns/isBefore";
|
|
@@ -41,8 +41,8 @@ import lt from "@mui/material/ListSubheader";
|
|
|
41
41
|
import dt from "@mui/material/ListItemAvatar";
|
|
42
42
|
import ut from "@mui/material/ListItemButton";
|
|
43
43
|
import mt from "@mui/material/ListItemText";
|
|
44
|
-
import { b as pt } from "../ManageIncome-
|
|
45
|
-
import { c as Wn, M as $n, S as Pn } from "../ManageIncome-
|
|
44
|
+
import { b as pt } from "../ManageIncome-CXeJPfjE.mjs";
|
|
45
|
+
import { c as Wn, M as $n, S as Pn } from "../ManageIncome-CXeJPfjE.mjs";
|
|
46
46
|
import { f as A } from "../NumberFormatting-Buh7u8Oi.mjs";
|
|
47
47
|
import { D as xe } from "../Drawer-kEE73B87.mjs";
|
|
48
48
|
import { b as O } from "../Localization-2MODESHW.mjs";
|
|
@@ -35,7 +35,7 @@ import { L as re } from "../Loader-DUaFpDGv.mjs";
|
|
|
35
35
|
import Ae from "@mui/material/List";
|
|
36
36
|
import j from "@mui/material/Divider";
|
|
37
37
|
import Ee from "@mui/material/ListSubheader";
|
|
38
|
-
import { a as Re, u as Pe } from "../CategorySelectorDrawer-
|
|
38
|
+
import { a as Re, u as Pe } from "../CategorySelectorDrawer-BXnLseqP.mjs";
|
|
39
39
|
import Be from "@mui/material/ListItem";
|
|
40
40
|
import Me from "@mui/material/ListItemButton";
|
|
41
41
|
import Ne from "@mui/material/ListItemIcon";
|
|
@@ -12,16 +12,15 @@ import { b as V } from "../CategoryUtil-BR3H5i6n.mjs";
|
|
|
12
12
|
import { b as _ } from "../Category-CevNQ03n.mjs";
|
|
13
13
|
import { Text as y, CategoryIcon as yt, CategoryIconVariants as bt } from "@mxenabled/mxui";
|
|
14
14
|
import { f as v } from "../NumberFormatting-Buh7u8Oi.mjs";
|
|
15
|
-
import {
|
|
16
|
-
import
|
|
15
|
+
import { c as Ct, T as _t, a as St } from "../TransactionDetails-Cscyr17P.mjs";
|
|
16
|
+
import Tt from "@mui/material/Button";
|
|
17
17
|
import { useTheme as rt } from "@mui/material";
|
|
18
|
-
import { u as E, b as O, m as z, d as st, n as
|
|
18
|
+
import { u as E, b as O, m as z, d as st, n as Mt, a as lt, h as Dt, g as xt } from "../hooks-D6XlXHf4.mjs";
|
|
19
19
|
import { u as ct } from "../useScreenSize-B6JyS_Lj.mjs";
|
|
20
|
-
import { D as
|
|
20
|
+
import { D as wt } from "../Donut-oaQFlbit.mjs";
|
|
21
21
|
import { L as F } from "../Loader-DUaFpDGv.mjs";
|
|
22
|
-
import { M as
|
|
22
|
+
import { M as vt } from "../MiniWidgetContainer-D0gfmbaF.mjs";
|
|
23
23
|
import { startOfToday as q } from "date-fns/startOfToday";
|
|
24
|
-
import { T as wt, a as vt } from "../TransactionDetails-D9ycDgYU.mjs";
|
|
25
24
|
import It from "@mui/material/Collapse";
|
|
26
25
|
import B from "@mui/material/Divider";
|
|
27
26
|
import J from "@mui/material/List";
|
|
@@ -136,7 +135,7 @@ const j = 5, Lt = (o, d, r) => r.reduce((l, n) => {
|
|
|
136
135
|
}, D = s ? 32 : 48;
|
|
137
136
|
return /* @__PURE__ */ h(ht, { children: [
|
|
138
137
|
S,
|
|
139
|
-
/* @__PURE__ */ t(
|
|
138
|
+
/* @__PURE__ */ t(wt, { data: T, onClick: r, selectedId: n, size: a, children: /* @__PURE__ */ t(C, { alignItems: "center", height: "100%", justifyContent: "center", width: "100%", children: /* @__PURE__ */ h(C, { alignItems: "center", justifyContent: "center", minHeight: a, minWidth: a, children: [
|
|
140
139
|
g && /* @__PURE__ */ h(
|
|
141
140
|
C,
|
|
142
141
|
{
|
|
@@ -170,7 +169,7 @@ const j = 5, Lt = (o, d, r) => r.reduce((l, n) => {
|
|
|
170
169
|
/* @__PURE__ */ t(y, { variant: e === "mini" ? "H2" : "H1", children: g ? v(g.amount, "0,0") : v(o.totalAmount, "0,0") }),
|
|
171
170
|
!g && e === "mini" && /* @__PURE__ */ t(y, { color: "secondary", noWrap: !0, variant: "Tiny", children: i }),
|
|
172
171
|
e === "full" && /* @__PURE__ */ t(
|
|
173
|
-
|
|
172
|
+
Tt,
|
|
174
173
|
{
|
|
175
174
|
"aria-label": `View ${g?.name || ""} Transactions`,
|
|
176
175
|
disabled: o.categoryData.length === 0,
|
|
@@ -332,7 +331,7 @@ const j = 5, Lt = (o, d, r) => r.reduce((l, n) => {
|
|
|
332
331
|
return p.useEffect(() => {
|
|
333
332
|
i(r);
|
|
334
333
|
}, [r]), !n || !a ? /* @__PURE__ */ t(F, {}) : /* @__PURE__ */ t(
|
|
335
|
-
|
|
334
|
+
vt,
|
|
336
335
|
{
|
|
337
336
|
className: "mx-exp-spending-miniwidget",
|
|
338
337
|
onPrimaryCtaClick: o,
|
|
@@ -342,7 +341,7 @@ const j = 5, Lt = (o, d, r) => r.reduce((l, n) => {
|
|
|
342
341
|
children: /* @__PURE__ */ t(Ot, {})
|
|
343
342
|
}
|
|
344
343
|
);
|
|
345
|
-
},
|
|
344
|
+
}, Ce = I(Rt), kt = ({
|
|
346
345
|
data: o,
|
|
347
346
|
onSelected: d,
|
|
348
347
|
selectedId: r = "",
|
|
@@ -479,7 +478,7 @@ const j = 5, Lt = (o, d, r) => r.reduce((l, n) => {
|
|
|
479
478
|
o.palette.chartMono.chartMono1,
|
|
480
479
|
o.palette.chartMono.chartMono6
|
|
481
480
|
], jt = () => {
|
|
482
|
-
const o = rt(), { onLoad: d } =
|
|
481
|
+
const o = rt(), { onLoad: d } = Mt(), { clientConfig: r } = lt(), { categories: l, dateRangeCategoryTotals: n, loadDateRangeCategoryTotals: a } = z(), { goals: i, spending: e } = E(), { displayedDateRange: c, selectedAccounts: u, selectedAccountGuids: s } = O(), { setFilter: m, sortedTransactions: S } = Dt(), g = r?.master?.deep_link_params?.account_guids, T = r?.master?.deep_link_params?.view, [x, D] = p.useState(""), [b, R] = p.useState(T === "income" ? 1 : 0), [H, P] = p.useState(""), [ut, K] = p.useState(!1);
|
|
483
482
|
p.useEffect(() => {
|
|
484
483
|
a(
|
|
485
484
|
u,
|
|
@@ -581,7 +580,7 @@ const j = 5, Lt = (o, d, r) => r.reduce((l, n) => {
|
|
|
581
580
|
isOpen: ut,
|
|
582
581
|
onClose: () => K(!1),
|
|
583
582
|
title: e.transactions_drawer_title,
|
|
584
|
-
children: /* @__PURE__ */ t(
|
|
583
|
+
children: /* @__PURE__ */ t(_t, { onClick: P })
|
|
585
584
|
}
|
|
586
585
|
),
|
|
587
586
|
/* @__PURE__ */ t(
|
|
@@ -591,12 +590,12 @@ const j = 5, Lt = (o, d, r) => r.reduce((l, n) => {
|
|
|
591
590
|
isOpen: !!$,
|
|
592
591
|
onClose: () => P(""),
|
|
593
592
|
title: e.transaction_details_drawer_title,
|
|
594
|
-
children: $ && /* @__PURE__ */ t(
|
|
593
|
+
children: $ && /* @__PURE__ */ t(St, { transaction: $ })
|
|
595
594
|
}
|
|
596
595
|
)
|
|
597
596
|
] });
|
|
598
597
|
}, Vt = I(jt), zt = ({ onBackClick: o, sx: d = {} }) => {
|
|
599
|
-
const { visibleAccounts: r } = st(), { spending: l } = E(), { isCopyLoaded: n, isInitialized: a, setDisplayedDate: i, setSelectedAccounts: e } = O(), { onEvent: c } =
|
|
598
|
+
const { visibleAccounts: r } = st(), { spending: l } = E(), { isCopyLoaded: n, isInitialized: a, setDisplayedDate: i, setSelectedAccounts: e } = O(), { onEvent: c } = xt(), { clientConfig: u } = lt(), s = u?.master?.deep_link_params?.date_range, [m, S] = p.useState(!1);
|
|
600
599
|
p.useEffect(() => {
|
|
601
600
|
e(r);
|
|
602
601
|
}, [r]), p.useEffect(() => {
|
|
@@ -617,8 +616,8 @@ const j = 5, Lt = (o, d, r) => r.reduce((l, n) => {
|
|
|
617
616
|
children: /* @__PURE__ */ t(w, { height: "calc(100dvh - 150px)", overflow: "scroll", width: "100%", children: /* @__PURE__ */ t(Vt, {}) })
|
|
618
617
|
}
|
|
619
618
|
);
|
|
620
|
-
},
|
|
619
|
+
}, _e = I(zt);
|
|
621
620
|
export {
|
|
622
|
-
|
|
623
|
-
|
|
621
|
+
Ce as SpendingMiniWidget,
|
|
622
|
+
_e as SpendingWidget
|
|
624
623
|
};
|
|
@@ -1,40 +1,39 @@
|
|
|
1
|
-
import { T as
|
|
2
|
-
import { u as P, C as Pe, D as $e, M as Ve,
|
|
3
|
-
import { B as
|
|
1
|
+
import { T as Ta } from "../TransactionApi-B3Tksf7L.mjs";
|
|
2
|
+
import { u as P, C as Pe, D as $e, M as Ve, d as We, c as Ge, T as Ue, a as Fe } from "../TransactionDetails-Cscyr17P.mjs";
|
|
3
|
+
import { B as Sa, e as xa, b as wa } from "../TransactionDetails-Cscyr17P.mjs";
|
|
4
4
|
import { T as M } from "../User-BQUxBeZV.mjs";
|
|
5
|
-
import { O as
|
|
6
|
-
import { S as ae, D as
|
|
7
|
-
import { T as
|
|
8
|
-
import { e as
|
|
9
|
-
import { E as
|
|
5
|
+
import { O as va } from "../User-BQUxBeZV.mjs";
|
|
6
|
+
import { S as ae, D as ze } from "../TransactionStore-hfOsBbDt.mjs";
|
|
7
|
+
import { T as Na } from "../TransactionStore-hfOsBbDt.mjs";
|
|
8
|
+
import { e as Ke } from "../exportTransactionsToCSV-BwwmL4pM.mjs";
|
|
9
|
+
import { E as Oa } from "../ExportCsvAction-DTO_UotC.mjs";
|
|
10
10
|
import { jsxs as _, jsx as e } from "react/jsx-runtime";
|
|
11
11
|
import u from "react";
|
|
12
12
|
import { observer as x } from "mobx-react-lite";
|
|
13
|
-
import
|
|
14
|
-
import { DataGridPro as
|
|
13
|
+
import qe from "@mui/material/Paper";
|
|
14
|
+
import { DataGridPro as je } from "@mui/x-data-grid-pro";
|
|
15
15
|
import S from "@mui/material/Box";
|
|
16
|
-
import { useTheme as
|
|
17
|
-
import { Text as C, Icon as B, MerchantLogo as
|
|
18
|
-
import { h as $, u as w, b as j, d as se, m as
|
|
19
|
-
import { fromUnixTime as
|
|
20
|
-
import { f as
|
|
16
|
+
import { useTheme as Xe } from "@mui/material/styles";
|
|
17
|
+
import { Text as C, Icon as B, MerchantLogo as Ye, TextField as ne, P as Je } from "@mxenabled/mxui";
|
|
18
|
+
import { h as $, u as w, b as j, d as se, m as Qe, a as Ze, g as et, p as tt } from "../hooks-D6XlXHf4.mjs";
|
|
19
|
+
import { fromUnixTime as at } from "date-fns/fromUnixTime";
|
|
20
|
+
import { f as nt, D as ot, a as ie } from "../Dialog-CWW597AF.mjs";
|
|
21
21
|
import N from "@mui/material/Stack";
|
|
22
22
|
import { f as ce } from "../NumberFormatting-Buh7u8Oi.mjs";
|
|
23
23
|
import { L as X } from "../Loader-DUaFpDGv.mjs";
|
|
24
|
-
import { endOfMonth as
|
|
25
|
-
import { getUnixTime as
|
|
26
|
-
import { startOfMonth as
|
|
24
|
+
import { endOfMonth as rt } from "date-fns/endOfMonth";
|
|
25
|
+
import { getUnixTime as st } from "date-fns/getUnixTime";
|
|
26
|
+
import { startOfMonth as it } from "date-fns/startOfMonth";
|
|
27
27
|
import { startOfToday as K } from "date-fns/startOfToday";
|
|
28
|
-
import
|
|
29
|
-
import { l as
|
|
30
|
-
import
|
|
31
|
-
import
|
|
32
|
-
import
|
|
33
|
-
import { ExpandMore as
|
|
34
|
-
import { C as
|
|
35
|
-
import { a as
|
|
28
|
+
import ct from "@mui/material/styles/useTheme";
|
|
29
|
+
import { l as lt } from "../ConnectDrawer-Bw5s6Dw1.mjs";
|
|
30
|
+
import dt from "@mui/material/Divider";
|
|
31
|
+
import ut from "@mui/material/MenuItem";
|
|
32
|
+
import mt from "@mui/material/RadioGroup";
|
|
33
|
+
import { ExpandMore as _t } from "@mxenabled/mx-icons";
|
|
34
|
+
import { C as pt } from "../CurrencyInput-DUsQbkXb.mjs";
|
|
35
|
+
import { a as gt, u as ht } from "../CategorySelectorDrawer-BXnLseqP.mjs";
|
|
36
36
|
import { b as q } from "../Localization-2MODESHW.mjs";
|
|
37
|
-
import { u as ht } from "../useAriaLive-B3_pRUio.mjs";
|
|
38
37
|
import { A, W as ft } from "../WidgetContainer-EbrN1oIo.mjs";
|
|
39
38
|
import { u as Ct } from "../useScreenSize-B6JyS_Lj.mjs";
|
|
40
39
|
import { S as yt } from "../SearchBox-B2_zLv8-.mjs";
|
|
@@ -70,8 +69,8 @@ const bt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
|
|
|
70
69
|
]
|
|
71
70
|
}
|
|
72
71
|
);
|
|
73
|
-
}, St = x(At), xt = (t) => /* @__PURE__ */ e(C, { tabIndex: t.tabIndex, variant: "Small", children: at(
|
|
74
|
-
const s =
|
|
72
|
+
}, St = x(At), xt = (t) => /* @__PURE__ */ e(C, { tabIndex: t.tabIndex, variant: "Small", children: nt(at(t.row.date), ot.MONTH_DAY) }), wt = (t) => {
|
|
73
|
+
const s = Xe(), { transactions: r } = w(), { is_flagged: a, is_hidden: i, has_been_viewed: l, parent_guid: d } = t.row, h = !l && !!!d;
|
|
75
74
|
return /* @__PURE__ */ _(
|
|
76
75
|
S,
|
|
77
76
|
{
|
|
@@ -100,7 +99,7 @@ const bt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
|
|
|
100
99
|
);
|
|
101
100
|
}, It = x(wt), O = (t) => /* @__PURE__ */ e(C, { fontWeight: 600, variant: "Small", children: t.colDef.headerName }), vt = (t) => /* @__PURE__ */ _(N, { alignItems: "center", direction: "row", gap: 8, children: [
|
|
102
101
|
/* @__PURE__ */ e(
|
|
103
|
-
|
|
102
|
+
Ye,
|
|
104
103
|
{
|
|
105
104
|
categoryGuid: t.row.top_level_category_guid || "",
|
|
106
105
|
merchantGuid: t.row.merchant_guid || ""
|
|
@@ -178,8 +177,8 @@ const bt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
|
|
|
178
177
|
sortingOrder: ["asc", "desc"]
|
|
179
178
|
}
|
|
180
179
|
];
|
|
181
|
-
return /* @__PURE__ */ e(
|
|
182
|
-
|
|
180
|
+
return /* @__PURE__ */ e(qe, { sx: { height: t, px: 24, width: "100%", boxShadow: "none" }, children: /* @__PURE__ */ e(
|
|
181
|
+
je,
|
|
183
182
|
{
|
|
184
183
|
columns: I,
|
|
185
184
|
disableColumnFilter: !0,
|
|
@@ -247,7 +246,7 @@ const bt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
|
|
|
247
246
|
sx: { flexDirection: { xs: "column", sm: "row" }, gap: { xs: 40, sm: 8 } },
|
|
248
247
|
children: [
|
|
249
248
|
/* @__PURE__ */ e(
|
|
250
|
-
|
|
249
|
+
pt,
|
|
251
250
|
{
|
|
252
251
|
allowDecimals: !0,
|
|
253
252
|
amount: d,
|
|
@@ -263,7 +262,7 @@ const bt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
|
|
|
263
262
|
type: "number"
|
|
264
263
|
}
|
|
265
264
|
),
|
|
266
|
-
/* @__PURE__ */ e(
|
|
265
|
+
/* @__PURE__ */ e(mt, { name: "TransactionType", onChange: g, row: !0, children: /* @__PURE__ */ _(N, { alignItems: "center", direction: "row", children: [
|
|
267
266
|
/* @__PURE__ */ e(
|
|
268
267
|
ae,
|
|
269
268
|
{
|
|
@@ -301,17 +300,17 @@ const bt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
|
|
|
301
300
|
ne,
|
|
302
301
|
{
|
|
303
302
|
InputLabelProps: { shrink: !0 },
|
|
304
|
-
SelectProps: { defaultValue: -1, IconComponent:
|
|
303
|
+
SelectProps: { defaultValue: -1, IconComponent: _t },
|
|
305
304
|
label: r.manual_transaction_select_an_account,
|
|
306
305
|
onChange: (o) => E(o.target.value),
|
|
307
306
|
placeholder: r.manual_transaction_select,
|
|
308
307
|
select: !0,
|
|
309
308
|
sx: { bgcolor: "background.paper" },
|
|
310
|
-
children: m.map((o) => /* @__PURE__ */ e(
|
|
309
|
+
children: m.map((o) => /* @__PURE__ */ e(ut, { value: o.value, children: o.label }, o.value))
|
|
311
310
|
}
|
|
312
311
|
)
|
|
313
312
|
] }),
|
|
314
|
-
/* @__PURE__ */ e(
|
|
313
|
+
/* @__PURE__ */ e(dt, { light: !0 }),
|
|
315
314
|
/* @__PURE__ */ _(S, { bgcolor: "background.paper", children: [
|
|
316
315
|
/* @__PURE__ */ e(Pe, { transaction: a }),
|
|
317
316
|
/* @__PURE__ */ e($e, { transaction: a }),
|
|
@@ -320,7 +319,7 @@ const bt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
|
|
|
320
319
|
] })
|
|
321
320
|
] });
|
|
322
321
|
}, kt = x(Mt), Lt = ({ onClose: t, transaction: s }) => {
|
|
323
|
-
const { addOrUpdateTransactionRule: r, updateTransaction: a } = $(), { transactions: i } = w(), { categories: l } =
|
|
322
|
+
const { addOrUpdateTransactionRule: r, updateTransaction: a } = $(), { transactions: i } = w(), { categories: l } = Qe(), [d, p] = u.useState(""), h = u.useMemo(
|
|
324
323
|
() => l.find((m) => m.guid === d),
|
|
325
324
|
[d]
|
|
326
325
|
), f = async (m) => {
|
|
@@ -328,7 +327,7 @@ const bt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
|
|
|
328
327
|
};
|
|
329
328
|
return /* @__PURE__ */ _(S, { className: "mx-txn-edit-category-action", children: [
|
|
330
329
|
/* @__PURE__ */ e(
|
|
331
|
-
|
|
330
|
+
gt,
|
|
332
331
|
{
|
|
333
332
|
initialSelected: s.category_guid,
|
|
334
333
|
onClose: t,
|
|
@@ -352,7 +351,7 @@ const bt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
|
|
|
352
351
|
onSecondaryAction: () => f(!1),
|
|
353
352
|
primaryText: i.actions_apply_to_all,
|
|
354
353
|
secondaryText: i.actions_this_time_only,
|
|
355
|
-
children: /* @__PURE__ */ e(
|
|
354
|
+
children: /* @__PURE__ */ e(Je, { variant: "Paragraph", children: q(
|
|
356
355
|
i.actions_all_past_and_future,
|
|
357
356
|
s.description,
|
|
358
357
|
h?.name
|
|
@@ -366,14 +365,14 @@ const bt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
|
|
|
366
365
|
showInsights: r = !1,
|
|
367
366
|
sx: a = {}
|
|
368
367
|
}) => {
|
|
369
|
-
const { visibleAccounts: i, refreshAccounts: l } = se(), { is_mobile_webview: d, clientConfig: p, config: h } =
|
|
368
|
+
const { visibleAccounts: i, refreshAccounts: l } = se(), { is_mobile_webview: d, clientConfig: p, config: h } = Ze(), { setSearchValue: f } = ht(), { onEvent: m } = et(), { common: I, transactions: n } = w(), {
|
|
370
369
|
displayedDateRange: g,
|
|
371
370
|
isCopyLoaded: T,
|
|
372
371
|
isInitialized: E,
|
|
373
372
|
selectedAccountGuids: o,
|
|
374
373
|
setDisplayedDate: k,
|
|
375
374
|
setSelectedAccounts: le
|
|
376
|
-
} = j(), { isDesktop: de, isTablet: ue } = Ct(), L =
|
|
375
|
+
} = j(), { isDesktop: de, isTablet: ue } = Ct(), L = ct(), {
|
|
377
376
|
addTransaction: me,
|
|
378
377
|
filter: Y,
|
|
379
378
|
loadAssociatedBeats: _e,
|
|
@@ -390,9 +389,9 @@ const bt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
|
|
|
390
389
|
setSearchValue: be,
|
|
391
390
|
setShowInsights: Te,
|
|
392
391
|
updateManualTransaction: Ae
|
|
393
|
-
} = P(), { userProfile: Se } =
|
|
392
|
+
} = P(), { userProfile: Se } = tt(), [G, y] = u.useState(""), [J, H] = u.useState(""), [xe, U] = u.useState(!1), [we, Q] = u.useState(!1), [F, Ie] = u.useState(!1), { announce: ve, ariaLive: De } = Ge(), v = p?.transactions?.selected_account_guid;
|
|
394
393
|
u.useEffect(() => {
|
|
395
|
-
const c = v ? [{ guid: v }] : i.filter((D) => !D.is_hidden), ee =
|
|
394
|
+
const c = v ? [{ guid: v }] : i.filter((D) => !D.is_hidden), ee = it(K()), te = rt(K());
|
|
396
395
|
v || le(c), k(ee, te), V({
|
|
397
396
|
accounts: c.map((D) => D.guid),
|
|
398
397
|
custom: (D) => !D.accountIsClosed && !D.accountIsHidden,
|
|
@@ -425,11 +424,11 @@ const bt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
|
|
|
425
424
|
searchTerm: c
|
|
426
425
|
}), m(A.TRANSACTIONS_CLICK_SEARCH, { search_term: c });
|
|
427
426
|
}, Me = () => {
|
|
428
|
-
|
|
427
|
+
Ke(W, pe), m(A.TRANSACTIONS_CLICK_EXPORT);
|
|
429
428
|
}, ke = () => {
|
|
430
429
|
Ne.length > 0 ? (Ae({
|
|
431
|
-
...
|
|
432
|
-
date:
|
|
430
|
+
...ze,
|
|
431
|
+
date: st(K()),
|
|
433
432
|
user_guid: Se?.user_guid || ""
|
|
434
433
|
}), y(
|
|
435
434
|
"addTransaction"
|
|
@@ -512,7 +511,7 @@ const bt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
|
|
|
512
511
|
[L.breakpoints.up("md")]: { display: "none" }
|
|
513
512
|
},
|
|
514
513
|
children: /* @__PURE__ */ e(
|
|
515
|
-
|
|
514
|
+
Ue,
|
|
516
515
|
{
|
|
517
516
|
height: `calc(${s} - ${re}px)`,
|
|
518
517
|
onClick: (c) => {
|
|
@@ -534,7 +533,7 @@ const bt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
|
|
|
534
533
|
isOpen: G === "transaction" && !!b,
|
|
535
534
|
onClose: Be,
|
|
536
535
|
title: n.details_title,
|
|
537
|
-
children: b && /* @__PURE__ */ e(
|
|
536
|
+
children: b && /* @__PURE__ */ e(Fe, { transaction: b })
|
|
538
537
|
}
|
|
539
538
|
),
|
|
540
539
|
b && G === "category" && /* @__PURE__ */ e(
|
|
@@ -570,7 +569,7 @@ const bt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
|
|
|
570
569
|
}
|
|
571
570
|
),
|
|
572
571
|
/* @__PURE__ */ e(
|
|
573
|
-
|
|
572
|
+
lt,
|
|
574
573
|
{
|
|
575
574
|
onClose: He,
|
|
576
575
|
showConnectWidget: we,
|
|
@@ -580,20 +579,20 @@ const bt = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small",
|
|
|
580
579
|
]
|
|
581
580
|
}
|
|
582
581
|
);
|
|
583
|
-
},
|
|
582
|
+
}, Ca = x(Ht);
|
|
584
583
|
export {
|
|
585
584
|
Ot as AddAccountModal,
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
585
|
+
Sa as BottomActions,
|
|
586
|
+
Oa as ExportCsvAction,
|
|
587
|
+
va as TRANSACTION_EVENTS,
|
|
588
|
+
xa as TopActions,
|
|
589
|
+
Ta as TransactionApi,
|
|
590
|
+
Fe as TransactionDetails,
|
|
591
|
+
Ue as TransactionList,
|
|
592
|
+
wa as TransactionRow,
|
|
593
|
+
Na as TransactionStore,
|
|
595
594
|
Nt as TransactionTable,
|
|
596
|
-
|
|
597
|
-
|
|
595
|
+
Ca as TransactionWidget,
|
|
596
|
+
Ke as exportTransactionsToCSV,
|
|
598
597
|
P as useTransactionsUiStore
|
|
599
598
|
};
|
package/dist/trends/index.es.js
CHANGED
|
@@ -22,7 +22,7 @@ import { H as Ie } from "../HeaderCell-DjuifqHJ.mjs";
|
|
|
22
22
|
import { T as M, b as ft } from "../ViewMoreMicroCard-SCn2wt4i.mjs";
|
|
23
23
|
import { A as _, W as ke } from "../WidgetContainer-EbrN1oIo.mjs";
|
|
24
24
|
import { c as Tt } from "../Category-CevNQ03n.mjs";
|
|
25
|
-
import { a as Ne, T as He } from "../TransactionDetails-
|
|
25
|
+
import { a as Ne, T as He } from "../TransactionDetails-Cscyr17P.mjs";
|
|
26
26
|
import { D as Ce } from "../Drawer-kEE73B87.mjs";
|
|
27
27
|
import { L as Q } from "../Loader-DUaFpDGv.mjs";
|
|
28
28
|
import { useTheme as We } from "@mui/material/styles";
|