@mx-cartographer/experiences 7.7.2 → 7.8.0-alpha-ram-goal-bug
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 +18 -0
- package/dist/Account-BiB1F8lL.mjs +118 -0
- package/dist/{Account-BfkKlfsW.mjs → Account-DuOz1a27.mjs} +1 -1
- package/dist/AccountApi-DgZ8ILj1.mjs +19 -0
- package/dist/{AccountDetailsHeader-DqYIuhOs.mjs → AccountDetailsHeader-Cf2TUJnM.mjs} +4 -4
- package/dist/AccountDisplayName-CO7z3v99.mjs +11 -0
- package/dist/{AccountFields-yP8QdgPd.mjs → AccountFields-UdOvbQ5H.mjs} +7 -6
- package/dist/{AccountListItem-DMbu9ehd.mjs → AccountListItem-BPVxmNT_.mjs} +7 -7
- package/dist/AccountStore-BbPWe2C9.mjs +244 -0
- package/dist/Accounts-M-LTzStv.mjs +27 -0
- package/dist/{CategoryStore-Cnw9yUys.mjs → CategoryStore-BYICdb9m.mjs} +73 -73
- package/dist/CategoryUtil-meuejJqP.mjs +80 -0
- package/dist/{ConnectionsDrawer-BqR6FWJO.mjs → ConnectionsDrawer-BDpVTTSe.mjs} +1 -1
- package/dist/{DebtsStore-DuSdXM1k.mjs → DebtsStore-BIbOVCPe.mjs} +12 -12
- package/dist/{ExportCsvAction-HK5CeZWR.mjs → ExportCsvAction-CDuzTva1.mjs} +2 -2
- package/dist/GlobalAccountFilter-DQCPNc95.mjs +316 -0
- package/dist/GoalStore-B4LVt_kH.mjs +422 -0
- package/dist/{ManageIncome-BrTrlplL.mjs → ManageIncome-CL3hv8i9.mjs} +44 -44
- package/dist/NetWorthStore-yV43kJro.mjs +168 -0
- package/dist/{NotificationSettings-D4Vh3z8I.mjs → NotificationSettings-SPg3pwbX.mjs} +171 -169
- package/dist/{NotificationStore-CDX_kqHa.mjs → NotificationStore-Ck2KdNmT.mjs} +22 -14
- package/dist/{RecurringSettings-D2V6l77l.mjs → RecurringSettings-Bmnnpb48.mjs} +16 -16
- package/dist/{RecurringTransactionsStore-Caf1cq4v.mjs → RecurringTransactionsStore-BQBEJOPP.mjs} +91 -81
- package/dist/{RecurringTransactions-Bf4lX0Cn.mjs → RepeatingTransaction-miZVnk_A.mjs} +4 -4
- package/dist/{SettingsStore-krIRNwHK.mjs → SettingsStore-BHpuyujx.mjs} +1 -1
- package/dist/SkeletonLoader-BaNboJjD.mjs +38 -0
- package/dist/{SpendingLegend-gTCJLLkV.mjs → SpendingLegend-CD60HCYS.mjs} +33 -33
- package/dist/{TransactionDetails-7MHOshKQ.mjs → TransactionDetails-BDhz3DLT.mjs} +2 -2
- package/dist/TransactionStore-BSp5bOKg.mjs +705 -0
- package/dist/{User-LJpEwPtn.mjs → User-B0LnmiKO.mjs} +21 -20
- package/dist/WidgetContainer-BbPS3Yxz.mjs +555 -0
- package/dist/accounts/index.es.js +421 -391
- package/dist/accounts/stores/AccountStore.d.ts +30 -23
- package/dist/accounts/utils/Accounts.d.ts +2 -1
- package/dist/budgets/index.es.js +546 -540
- package/dist/budgets/store/BudgetsStore.d.ts +1 -0
- package/dist/cashflow/index.es.js +444 -457
- package/dist/categories/index.es.js +1 -1
- package/dist/categories/stores/CategoryStore.d.ts +10 -5
- package/dist/categories/util/CategoryUtil.d.ts +3 -2
- package/dist/common/components/GlobalAccountFilter.d.ts +11 -0
- package/dist/common/components/SkeletonLoader.d.ts +7 -0
- package/dist/common/components/WidgetContainer.d.ts +7 -6
- package/dist/common/components/globalaccountfilter/GlobalAccountFilterList.d.ts +7 -0
- package/dist/common/components/index.d.ts +2 -2
- package/dist/common/hooks/useAriaLive.d.ts +1 -1
- package/dist/common/index.es.js +459 -445
- package/dist/common/stores/AppDataStore.d.ts +3 -1
- package/dist/common/stores/GlobalCopyStore.d.ts +0 -1
- package/dist/common/stores/GlobalStore.d.ts +3 -3
- package/dist/common/stores/GlobalUiStore.d.ts +10 -6
- package/dist/common/stores/UserStore.d.ts +3 -2
- package/dist/common/types/Account.d.ts +9 -6
- package/dist/dashboard/index.es.js +84 -116
- package/dist/debts/index.es.js +417 -413
- package/dist/{exportTransactionsToCSV-BrTYdSgJ.mjs → exportTransactionsToCSV-DtQ7ovAR.mjs} +1 -1
- package/dist/finstrong/index.es.js +1167 -1110
- package/dist/goals/index.es.js +618 -598
- package/dist/goals/stores/GoalStore.d.ts +19 -4
- package/dist/help/index.es.js +13 -13
- package/dist/investments/index.es.js +330 -325
- package/dist/investments/stores/HoldingStore.d.ts +1 -0
- package/dist/networth/components/NetWorthChart.d.ts +3 -2
- package/dist/networth/components/NetWorthList.d.ts +3 -3
- package/dist/networth/index.es.js +423 -433
- package/dist/networth/stores/NetWorthStore.d.ts +20 -9
- package/dist/networth/utils/NetWorthUtils.d.ts +2 -2
- package/dist/notifications/index.es.js +90 -91
- package/dist/notifications/stores/NotificationStore.d.ts +3 -1
- package/dist/recurringtransactions/components/MicroWidgetContent.d.ts +3 -0
- package/dist/recurringtransactions/index.es.js +543 -562
- package/dist/recurringtransactions/stores/RecurringTransactionsStore.d.ts +4 -2
- package/dist/settings/index.es.js +253 -248
- package/dist/spending/index.es.js +282 -301
- package/dist/transactions/index.es.js +269 -263
- package/dist/transactions/stores/TransactionStore.d.ts +26 -77
- package/dist/transactions/stores/UiStore.d.ts +0 -2
- package/dist/trends/index.es.js +708 -699
- package/dist/{useAccountDisplayName-BTvP_pw6.mjs → useAccountDisplayName-Bot2tb4n.mjs} +1 -1
- package/package.json +3 -3
- package/dist/AccountStore-CWFzg8-E.mjs +0 -260
- package/dist/Accounts-CWt-NRq8.mjs +0 -9
- package/dist/CategoryUtil-DZflYFam.mjs +0 -78
- package/dist/ConnectDrawer-BOjfI6rz.mjs +0 -563
- package/dist/GoalStore-C7ahxxLi.mjs +0 -364
- package/dist/NetWorthStore-xWIo9CYU.mjs +0 -150
- package/dist/TransactionStore-DJwPaZuM.mjs +0 -677
- package/dist/WidgetContainer-CrK6tyHr.mjs +0 -572
- package/dist/common/components/accountfilter/AccountFilter.d.ts +0 -20
- package/dist/common/components/accountfilter/AccountFilterOptions.d.ts +0 -31
- package/dist/common/components/accountfilter/index.d.ts +0 -1
- package/dist/{ToggleListItem-ciFTiqRS.mjs → Notification-Bs1fdbzI.mjs} +1 -1
|
@@ -1,50 +1,50 @@
|
|
|
1
|
-
import { b as
|
|
1
|
+
import { b as T } from "./CategoryUtil-meuejJqP.mjs";
|
|
2
2
|
import { b as p } from "./Category-CevNQ03n.mjs";
|
|
3
3
|
import { jsxs as f, Fragment as w, jsx as m } from "react/jsx-runtime";
|
|
4
|
-
import
|
|
5
|
-
import { observer as
|
|
6
|
-
import
|
|
4
|
+
import _ from "react";
|
|
5
|
+
import { observer as N } from "mobx-react-lite";
|
|
6
|
+
import k from "@mui/material/Button";
|
|
7
7
|
import h from "@mui/material/Stack";
|
|
8
|
-
import { useTheme as
|
|
8
|
+
import { useTheme as M } from "@mui/material/styles";
|
|
9
9
|
import { CategoryIcon as A, CategoryIconVariants as G, Text as y, P as O } from "@mxenabled/mxui";
|
|
10
10
|
import { D as $ } from "./Donut-Dmy3JTWd.mjs";
|
|
11
11
|
import { u as j } from "./useAriaLive-B3_pRUio.mjs";
|
|
12
12
|
import { u as R } from "./hooks-ZMp65DFz.mjs";
|
|
13
13
|
import { u as v } from "./useScreenSize-B6JyS_Lj.mjs";
|
|
14
|
-
import { f as
|
|
14
|
+
import { f as x } from "./NumberFormatting-DjTD0t3W.mjs";
|
|
15
15
|
import B from "@mui/material/Box";
|
|
16
|
-
const
|
|
16
|
+
const D = 5, H = (i, l, g, c) => c.reduce((t, n) => {
|
|
17
17
|
const a = i.find((s) => s.guid === n.category_guid);
|
|
18
18
|
if (!a) return t;
|
|
19
19
|
const o = a.parent_guid ?? a.guid, r = i.find((s) => s.guid === o);
|
|
20
20
|
if (!r) return t;
|
|
21
|
-
const
|
|
21
|
+
const d = {
|
|
22
22
|
guid: a.guid,
|
|
23
23
|
name: a.guid === o ? `${l.parent_category_totals_label_general} ${a.name}` : a.name,
|
|
24
|
-
color:
|
|
24
|
+
color: T(r.guid, g),
|
|
25
25
|
amount: n.total
|
|
26
26
|
}, e = t.find((s) => s.guid === o);
|
|
27
|
-
return e ? (e.amount += n.total, e.categoryTotals?.push(
|
|
27
|
+
return e ? (e.amount += n.total, e.categoryTotals?.push(d)) : t.push({
|
|
28
28
|
guid: o,
|
|
29
29
|
name: r.name,
|
|
30
|
-
color:
|
|
31
|
-
categoryTotals: [
|
|
30
|
+
color: T(r.guid, g),
|
|
31
|
+
categoryTotals: [d],
|
|
32
32
|
amount: n.total
|
|
33
33
|
}), t;
|
|
34
|
-
}, []), no = (i, l, g,
|
|
35
|
-
const t = H(i, l, g,
|
|
34
|
+
}, []), no = (i, l, g, c) => {
|
|
35
|
+
const t = H(i, l, g, c), n = t.filter(
|
|
36
36
|
(e) => e.guid !== p.INCOME && e.guid !== p.INVESTMENTS && e.guid !== p.TRANSFER && e.amount > 0
|
|
37
37
|
).sort((e, s) => s.amount - e.amount), a = n.reduce(
|
|
38
38
|
(e, s) => e + s.amount,
|
|
39
39
|
0
|
|
40
|
-
), o = n.length >
|
|
40
|
+
), o = n.length > D ? D : n.length, r = n.slice(0, o), d = r.map((e) => ({
|
|
41
41
|
id: e.guid,
|
|
42
|
-
color:
|
|
42
|
+
color: T(e.guid, g),
|
|
43
43
|
label: e.name,
|
|
44
44
|
value: e.amount / a * 100
|
|
45
45
|
}));
|
|
46
46
|
if (n.length > 5) {
|
|
47
|
-
const e = n.slice(
|
|
47
|
+
const e = n.slice(D, t.length), s = e.reduce(
|
|
48
48
|
(C, u) => C + u.amount,
|
|
49
49
|
0
|
|
50
50
|
);
|
|
@@ -54,7 +54,7 @@ const T = 5, H = (i, l, g, d) => d.reduce((t, n) => {
|
|
|
54
54
|
name: l.saving_goal_other,
|
|
55
55
|
categoryTotals: e,
|
|
56
56
|
amount: s
|
|
57
|
-
}),
|
|
57
|
+
}), d.push({
|
|
58
58
|
id: "other",
|
|
59
59
|
color: g.palette.categories.others || "",
|
|
60
60
|
label: l.saving_goal_other,
|
|
@@ -63,15 +63,15 @@ const T = 5, H = (i, l, g, d) => d.reduce((t, n) => {
|
|
|
63
63
|
}
|
|
64
64
|
return {
|
|
65
65
|
categoryData: r,
|
|
66
|
-
donutData:
|
|
66
|
+
donutData: d,
|
|
67
67
|
totalAmount: a
|
|
68
68
|
};
|
|
69
69
|
}, eo = (i, l, g) => {
|
|
70
|
-
const
|
|
70
|
+
const c = i.filter(
|
|
71
71
|
(o) => o.guid === p.INCOME || o.parent_guid === p.INCOME
|
|
72
|
-
), t = l.filter((o) =>
|
|
72
|
+
), t = l.filter((o) => c.some((r) => r.guid === o.category_guid)).sort((o, r) => o.total - r.total).map((o, r) => ({
|
|
73
73
|
guid: o.category_guid,
|
|
74
|
-
name: i.find((
|
|
74
|
+
name: i.find((d) => d.guid === o.category_guid)?.name,
|
|
75
75
|
color: g[r],
|
|
76
76
|
categoryTotals: [],
|
|
77
77
|
amount: Math.abs(o.total)
|
|
@@ -93,24 +93,24 @@ const T = 5, H = (i, l, g, d) => d.reduce((t, n) => {
|
|
|
93
93
|
data: i,
|
|
94
94
|
isIncome: l = !1,
|
|
95
95
|
onSelected: g,
|
|
96
|
-
onViewTransactions:
|
|
96
|
+
onViewTransactions: c,
|
|
97
97
|
selectedId: t,
|
|
98
98
|
size: n = 150,
|
|
99
99
|
totalLabel: a,
|
|
100
100
|
variant: o = "mini"
|
|
101
101
|
}) => {
|
|
102
|
-
const { spending: r } = R(),
|
|
102
|
+
const { spending: r } = R(), d = M(), { isTablet: e } = v(), { announce: s, ariaLive: C } = j(), u = _.useMemo(
|
|
103
103
|
() => t ? i.categoryData.find((b) => b.guid === t) : void 0,
|
|
104
104
|
[t]
|
|
105
105
|
);
|
|
106
|
-
|
|
106
|
+
_.useEffect(() => {
|
|
107
107
|
if (u) {
|
|
108
|
-
const b =
|
|
108
|
+
const b = x(u.amount, o === "mini" ? "0,0" : "0,0.00");
|
|
109
109
|
s(`${u.name}: ${b}`);
|
|
110
110
|
}
|
|
111
111
|
}, [u, s, o]);
|
|
112
|
-
const S =
|
|
113
|
-
|
|
112
|
+
const S = i.donutData.length > 0 ? i.donutData : [{ id: "0", color: d.palette.divider, value: 100 }], E = () => {
|
|
113
|
+
c?.(t);
|
|
114
114
|
}, I = e ? 32 : 48;
|
|
115
115
|
return /* @__PURE__ */ f(w, { children: [
|
|
116
116
|
C,
|
|
@@ -145,10 +145,10 @@ const T = 5, H = (i, l, g, d) => d.reduce((t, n) => {
|
|
|
145
145
|
}
|
|
146
146
|
),
|
|
147
147
|
!u && o === "full" && /* @__PURE__ */ m(y, { bold: !0, color: "secondary", sx: { mb: { xs: 4, xl: 8 } }, children: a }),
|
|
148
|
-
/* @__PURE__ */ m(O, { variant: o === "mini" ? "H2" : "H1", children: u ?
|
|
148
|
+
/* @__PURE__ */ m(O, { variant: o === "mini" ? "H2" : "H1", children: u ? x(u.amount, o === "mini" ? "0,0" : "0,0.00") : x(i.totalAmount, o === "mini" ? "0,0" : "0,0.00") }),
|
|
149
149
|
!u && o === "mini" && /* @__PURE__ */ m(y, { color: "secondary", noWrap: !0, variant: "Tiny", children: a }),
|
|
150
150
|
o === "full" && /* @__PURE__ */ m(
|
|
151
|
-
|
|
151
|
+
k,
|
|
152
152
|
{
|
|
153
153
|
"aria-label": `View ${u?.name || ""} Transactions`,
|
|
154
154
|
disabled: i.categoryData.length === 0,
|
|
@@ -160,8 +160,8 @@ const T = 5, H = (i, l, g, d) => d.reduce((t, n) => {
|
|
|
160
160
|
)
|
|
161
161
|
] }) }) })
|
|
162
162
|
] });
|
|
163
|
-
}, ro =
|
|
164
|
-
const
|
|
163
|
+
}, ro = N(V), ao = ({ data: i, onSelected: l, selectedId: g }) => {
|
|
164
|
+
const c = (t, n) => {
|
|
165
165
|
(t.key === "Enter" || t.key === " ") && (t.preventDefault(), l(n));
|
|
166
166
|
};
|
|
167
167
|
return /* @__PURE__ */ m(h, { gap: 8, height: "100%", justifyContent: "center", my: "auto", children: i.categoryData.map((t) => /* @__PURE__ */ f(
|
|
@@ -173,7 +173,7 @@ const T = 5, H = (i, l, g, d) => d.reduce((t, n) => {
|
|
|
173
173
|
direction: "row",
|
|
174
174
|
gap: 8,
|
|
175
175
|
onClick: () => l(t.guid),
|
|
176
|
-
onKeyDown: (n) =>
|
|
176
|
+
onKeyDown: (n) => c(n, t.guid),
|
|
177
177
|
role: "button",
|
|
178
178
|
sx: { cursor: "pointer" },
|
|
179
179
|
tabIndex: 0,
|
|
@@ -9,7 +9,7 @@ import { MerchantLogo as he, Icon as f, Text as T, useTokens as ne, CategoryIcon
|
|
|
9
9
|
import $ from "@mui/material/ListItemAvatar";
|
|
10
10
|
import M from "@mui/material/ListItemText";
|
|
11
11
|
import b from "@mui/material/Stack";
|
|
12
|
-
import { T as Me, L as Ke, O as h, C as $e, b as Be, i as Fe } from "./User-
|
|
12
|
+
import { T as Me, L as Ke, O as h, C as $e, b as Be, i as Fe } from "./User-B0LnmiKO.mjs";
|
|
13
13
|
import { G as He, h as D, u as I, g as w, m as Ne, b as ze, o as Ue } from "./hooks-ZMp65DFz.mjs";
|
|
14
14
|
import { f as re } from "./NumberFormatting-DjTD0t3W.mjs";
|
|
15
15
|
import { Receipt as Xe, Delete as le, ChevronRight as Ve, Cancel as ce, Search as We, Edit as Ye, Flag as je } from "@mxenabled/mx-icons";
|
|
@@ -17,7 +17,7 @@ import { fromUnixTime as j } from "date-fns/fromUnixTime";
|
|
|
17
17
|
import { isSameDay as Ie } from "date-fns/isSameDay";
|
|
18
18
|
import { h as qe } from "./DateUtil-D7U-nc1Y.mjs";
|
|
19
19
|
import { L as ve } from "./Loader-DUaFpDGv.mjs";
|
|
20
|
-
import { A as P } from "./WidgetContainer-
|
|
20
|
+
import { A as P } from "./WidgetContainer-BbPS3Yxz.mjs";
|
|
21
21
|
import ie from "@mui/material/Paper";
|
|
22
22
|
import de from "@mui/material/Button";
|
|
23
23
|
import Ze from "@mui/material/FormGroup";
|