@mx-cartographer/experiences 8.0.0-alpha.sms2 → 9.0.0-alpha.mega1
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 +217 -0
- package/dist/{Account-Cp30A3ad.mjs → Account-BIKn4XEZ.mjs} +1 -1
- package/dist/Account-CMjOp7S2.mjs +118 -0
- package/dist/AccountApi-DgZ8ILj1.mjs +19 -0
- package/dist/AccountDetailsHeader-BOV91g1o.mjs +95 -0
- package/dist/AccountDisplayName-CO7z3v99.mjs +11 -0
- package/dist/{AccountFields-CW6cIthP.mjs → AccountFields-BRRH37K1.mjs} +10 -11
- package/dist/{AccountListItem-DxmAs98Z.mjs → AccountListItem-Ds5C0mOT.mjs} +4 -4
- package/dist/{AccountStore-hIs-yA6W.mjs → AccountStore-BFKvXJSD.mjs} +79 -69
- package/dist/{Accounts-DUHkUyK4.mjs → Accounts-CuE8aSZN.mjs} +1 -1
- package/dist/{BudgetUtil-CIDAPPPT.mjs → BudgetUtil-CDSOZXem.mjs} +4 -4
- package/dist/CategorySelectorDrawer-C4aZYP4N.mjs +418 -0
- package/dist/CategoryStore-DEqAnHbi.mjs +186 -0
- package/dist/{CategoryUtil-DfVKKkRf.mjs → CategoryUtil-CFHBvaV4.mjs} +1 -1
- package/dist/{ConnectionsDrawer-CSo6AFkG.mjs → ConnectionsDrawer-BExzgE16.mjs} +5 -5
- package/dist/{CurrencyInput-BrGvhgVK.mjs → CurrencyInput-DDQ4DBrE.mjs} +1 -1
- package/dist/{CurrencyText-Dr0EZ7bp.mjs → CurrencyText-C-85TnUF.mjs} +3 -3
- package/dist/{DateUtil-CDPZw_-m.mjs → DateUtil-CVsMhbZU.mjs} +3 -3
- package/dist/{DebtsStore-hi1cqrRk.mjs → DebtsStore-Dv_T7Dts.mjs} +12 -12
- package/dist/{Dialog-CDV0kKxj.mjs → Dialog-CWymUiuO.mjs} +32 -35
- package/dist/Drawer-Bet2ZPJo.mjs +176 -0
- package/dist/{ExportCsvAction-CQ1grpwo.mjs → ExportCsvAction-oG_Mn66T.mjs} +3 -3
- package/dist/{FinstrongStore-dKZOZ2hM.mjs → FinstrongStore-BjFkMTIL.mjs} +6 -6
- package/dist/GlobalAccountFilter-BpWlPAl5.mjs +316 -0
- package/dist/{GoalStore-CFeAJloA.mjs → GoalStore-Dbjgft2i.mjs} +155 -137
- package/dist/{Help-i4OasOO-.mjs → Help-BW_ar-4B.mjs} +2 -2
- package/dist/LineChart-DHj-Bufi.mjs +580 -0
- package/dist/{ListItemAction-BNCWQAN_.mjs → ListItemAction-Cbr3417C.mjs} +10 -10
- package/dist/{ManageIncome-D_qVX5dN.mjs → ManageIncome-DIIyqDTp.mjs} +85 -85
- package/dist/{MicroWidgetContainer-BGpNl5ZS.mjs → MicroWidgetContainer-DSyYwRCU.mjs} +2 -2
- package/dist/{MiniWidgetContainer-D7MkHG15.mjs → MiniWidgetContainer-DKn7ndO6.mjs} +1 -1
- package/dist/NetWorthStore-B6ziBtaH.mjs +168 -0
- package/dist/NotificationSettings-e789PcRb.mjs +676 -0
- package/dist/{OriginalBalanceAction-62e0mU_3.mjs → OriginalBalanceAction-DFoG79Ba.mjs} +3 -3
- package/dist/{RecurringSettings-RfZ8Wuhh.mjs → RecurringSettings-BpCUcE8w.mjs} +4 -4
- package/dist/{RecurringTransactionsStore-D3EOKZ2B.mjs → RecurringTransactionsStore-D_--5PWH.mjs} +1 -1
- package/dist/{RecurringTransactions-Bhx56aA3.mjs → RepeatingTransaction-C2txVA9O.mjs} +3 -3
- package/dist/{SettingsStore-BASMQSIp.mjs → SettingsStore-CInvh-rQ.mjs} +1 -1
- package/dist/SpendingData-B7NuTQ9s.mjs +53 -0
- package/dist/SpendingLegend-BxefXiQd.mjs +193 -0
- package/dist/TransactionDetails-CPwv9xtZ.mjs +1374 -0
- package/dist/{TransactionStore-DgLrYW4C.mjs → TransactionStore-D2aMUClq.mjs} +128 -111
- package/dist/TrendsStore-BdsYfCc7.mjs +183 -0
- package/dist/{User-DqNX2GAK.mjs → User-CulNdZUr.mjs} +21 -20
- package/dist/ViewMoreMicroCard-CDWR16_h.mjs +1147 -0
- package/dist/WidgetContainer-mzejMmz2.mjs +555 -0
- package/dist/accounts/components/detailsdrawer/Accounts/AccountDetailsChart.d.ts +1 -0
- package/dist/accounts/index.es.js +933 -232
- package/dist/accounts/stores/AccountStore.d.ts +6 -2
- package/dist/accounts/utils/AccountDetails.d.ts +5 -0
- package/dist/analytics/index.es.js +2 -2
- package/dist/budgets/components/AddBudgets.d.ts +2 -1
- package/dist/budgets/index.es.js +561 -522
- package/dist/cashflow/index.es.js +397 -396
- package/dist/categories/components/CustomCategories/AddSubcategory.d.ts +1 -0
- package/dist/categories/components/CustomCategories/DeleteSubcategory.d.ts +1 -0
- package/dist/categories/components/CustomCategories/RenameSubcategory.d.ts +1 -0
- package/dist/categories/components/SubcategoryRow.d.ts +1 -0
- package/dist/categories/index.es.js +2 -2
- package/dist/categories/stores/CategoryStore.d.ts +5 -3
- package/dist/common/components/GlobalAccountFilter.d.ts +11 -0
- package/dist/common/components/WidgetContainer.d.ts +7 -6
- package/dist/common/components/charts/linechart/CustomTooltip.d.ts +6 -1
- package/dist/common/components/charts/stackedlinechart/CustomPointTooltip.d.ts +5 -2
- package/dist/common/components/globalaccountfilter/GlobalAccountFilterList.d.ts +7 -0
- package/dist/common/components/index.d.ts +2 -2
- package/dist/common/hooks/index.d.ts +1 -0
- package/dist/common/hooks/useWidgetLoadTimer.d.ts +6 -0
- package/dist/common/index.es.js +325 -306
- package/dist/common/stores/GlobalUiStore.d.ts +7 -4
- package/dist/common/types/localization/AccountsCopy.d.ts +6 -0
- package/dist/common/types/localization/CategoryCopy.d.ts +3 -0
- package/dist/common/types/localization/CommonCopy.d.ts +3 -0
- package/dist/common/types/localization/GoalsCopy.d.ts +3 -1
- package/dist/common/types/localization/MicroInsightsCopy.d.ts +1 -0
- package/dist/common/types/localization/TransactionsCopy.d.ts +4 -0
- package/dist/common/types/localization/TrendsCopy.d.ts +4 -0
- package/dist/dashboard/index.es.js +95 -125
- package/dist/debts/index.es.js +466 -460
- package/dist/{exportTransactionsToCSV-BFpuIAXW.mjs → exportTransactionsToCSV-BU1jTY0Q.mjs} +4 -4
- package/dist/finstrong/components/shared/CustomDoubleBarPlot.d.ts +4 -5
- package/dist/finstrong/index.es.js +1660 -1553
- package/dist/goals/index.es.js +716 -677
- package/dist/goals/stores/GoalStore.d.ts +2 -0
- package/dist/help/index.es.js +14 -10
- package/dist/{hooks-C41HAxM5.mjs → hooks-fY_n74f7.mjs} +16 -16
- package/dist/investments/index.es.js +464 -457
- package/dist/merchants/index.es.js +1 -1
- package/dist/microinsights/MicroCardTemplate.d.ts +23 -0
- package/dist/microinsights/beaticons/BeatMaterialIcon.d.ts +8 -0
- package/dist/microinsights/beaticons/MonthlySpendComparisonIcon.d.ts +1 -2
- package/dist/microinsights/beaticons/index.d.ts +1 -0
- package/dist/microinsights/cards/InsightCard.d.ts +0 -2
- package/dist/microinsights/cards/ViewMoreMicroCard.d.ts +2 -5
- package/dist/microinsights/index.d.ts +2 -2
- package/dist/microinsights/index.es.js +824 -14
- package/dist/networth/components/NetWorthChart.d.ts +3 -2
- package/dist/networth/components/NetWorthList.d.ts +3 -3
- package/dist/networth/index.es.js +433 -438
- package/dist/networth/stores/NetWorthStore.d.ts +20 -9
- package/dist/networth/utils/NetWorthUtils.d.ts +2 -2
- package/dist/notifications/index.es.js +5 -5
- package/dist/recurringtransactions/index.es.js +331 -325
- package/dist/settings/index.es.js +293 -285
- package/dist/spending/components/SpendingChart.d.ts +1 -1
- package/dist/spending/components/SpendingList.d.ts +1 -1
- package/dist/spending/components/SpendingTabLabel.d.ts +1 -0
- package/dist/spending/index.es.js +250 -235
- package/dist/transactions/index.es.js +288 -281
- package/dist/transactions/stores/TransactionStore.d.ts +5 -0
- package/dist/trends/components/TrendsTable.d.ts +0 -2
- package/dist/trends/index.es.js +876 -802
- package/dist/trends/utils/TrendsData.d.ts +1 -0
- package/dist/trends/utils/TrendsTable.d.ts +12 -0
- package/dist/{useAccountDisplayName-usSZCQ7I.mjs → useAccountDisplayName-DbkgGLdg.mjs} +2 -2
- package/dist/useAriaLive-B3_pRUio.mjs +35 -0
- package/dist/{useInsightsEnabled-CNjP5cfR.mjs → useInsightsEnabled-dhmXeSyF.mjs} +1 -1
- package/dist/useWidgetLoadTimer-CrUzxN-P.mjs +19 -0
- package/package.json +26 -21
- package/dist/AccountDetailsContent-C1HumFnW.mjs +0 -683
- package/dist/AccountDetailsHeader-NMx79DGs.mjs +0 -87
- package/dist/CategorySelectorDrawer-DqDAA_5I.mjs +0 -399
- package/dist/CategoryStore-MUwRWH9e.mjs +0 -176
- package/dist/ConnectDrawer-Dn1MlqLz.mjs +0 -545
- package/dist/Drawer-Dqe5EqvA.mjs +0 -163
- package/dist/LineChart-bc1D9xBE.mjs +0 -581
- package/dist/NetWorthStore-8FFC1Bs0.mjs +0 -150
- package/dist/NotificationSettings-BsWiYD94.mjs +0 -672
- package/dist/SpendingData-DPQ96k3x.mjs +0 -55
- package/dist/SpendingLegend-CZzDb-7d.mjs +0 -193
- package/dist/TransactionDetails-Duv1X9ec.mjs +0 -1379
- package/dist/TrendsStore-_mRaFUdf.mjs +0 -182
- package/dist/ViewMoreMicroCard-CH9E-jOx.mjs +0 -1930
- package/dist/WidgetContainer-B1Jzb4XA.mjs +0 -565
- 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/microinsights/cards/BaseCard.d.ts +0 -13
- package/dist/{ToggleListItem-ciFTiqRS.mjs → Notification-Bs1fdbzI.mjs} +1 -1
|
@@ -1,182 +0,0 @@
|
|
|
1
|
-
import { jsxs as d, jsx as l } from "react/jsx-runtime";
|
|
2
|
-
import x from "react";
|
|
3
|
-
import S from "@mui/material/ListItem";
|
|
4
|
-
import R from "@mui/material/ListItemButton";
|
|
5
|
-
import f from "@mui/material/ListItemIcon";
|
|
6
|
-
import A from "@mui/material/ListItemText";
|
|
7
|
-
import h from "@mui/material/Stack";
|
|
8
|
-
import { Text as y } from "@mxenabled/mxui";
|
|
9
|
-
import { makeAutoObservable as N } from "mobx";
|
|
10
|
-
import { addSeconds as v } from "date-fns/addSeconds";
|
|
11
|
-
import { differenceInCalendarMonths as w } from "date-fns/differenceInCalendarMonths";
|
|
12
|
-
import { endOfMonth as D } from "date-fns/endOfMonth";
|
|
13
|
-
import { subMonths as I } from "date-fns/subMonths";
|
|
14
|
-
import { b as E, a as _, c as O } from "./Category-Ccoew_sA.mjs";
|
|
15
|
-
import { f as L, a as T } from "./Dialog-CDV0kKxj.mjs";
|
|
16
|
-
const rt = ({
|
|
17
|
-
onClick: e,
|
|
18
|
-
leftIcon: t,
|
|
19
|
-
rightIcon: o,
|
|
20
|
-
title: a,
|
|
21
|
-
subtitle: r,
|
|
22
|
-
rightContent: n,
|
|
23
|
-
titleBold: s = !0,
|
|
24
|
-
rightContentBold: m = !0
|
|
25
|
-
}) => {
|
|
26
|
-
const c = /* @__PURE__ */ d(x.Fragment, { children: [
|
|
27
|
-
t && /* @__PURE__ */ l(f, { sx: { ml: 0 }, children: t }),
|
|
28
|
-
/* @__PURE__ */ l(A, { children: /* @__PURE__ */ d(
|
|
29
|
-
h,
|
|
30
|
-
{
|
|
31
|
-
sx: {
|
|
32
|
-
alignItems: "center",
|
|
33
|
-
flexDirection: "row",
|
|
34
|
-
marginLeft: 12
|
|
35
|
-
},
|
|
36
|
-
children: [
|
|
37
|
-
/* @__PURE__ */ d(h, { sx: { flex: 1, minWidth: 0 }, children: [
|
|
38
|
-
/* @__PURE__ */ l(y, { bold: s, variant: "body1", children: a }),
|
|
39
|
-
r && /* @__PURE__ */ l(y, { variant: "caption", children: r })
|
|
40
|
-
] }),
|
|
41
|
-
/* @__PURE__ */ d(h, { sx: { flexDirection: "row", alignItems: "center", gap: 1 }, children: [
|
|
42
|
-
n && /* @__PURE__ */ l(y, { bold: m, display: "flex", variant: "body1", children: n }),
|
|
43
|
-
o && /* @__PURE__ */ l(f, { children: o })
|
|
44
|
-
] })
|
|
45
|
-
]
|
|
46
|
-
}
|
|
47
|
-
) })
|
|
48
|
-
] });
|
|
49
|
-
return /* @__PURE__ */ l(S, { sx: { bgcolor: "background.paper" }, children: e ? /* @__PURE__ */ l(
|
|
50
|
-
R,
|
|
51
|
-
{
|
|
52
|
-
onClick: e,
|
|
53
|
-
sx: {
|
|
54
|
-
py: 14
|
|
55
|
-
},
|
|
56
|
-
children: c
|
|
57
|
-
}
|
|
58
|
-
) : /* @__PURE__ */ l(
|
|
59
|
-
h,
|
|
60
|
-
{
|
|
61
|
-
sx: {
|
|
62
|
-
py: 14,
|
|
63
|
-
px: 24,
|
|
64
|
-
width: "100%",
|
|
65
|
-
flexDirection: "row",
|
|
66
|
-
alignItems: "center"
|
|
67
|
-
},
|
|
68
|
-
children: c
|
|
69
|
-
}
|
|
70
|
-
) });
|
|
71
|
-
}, W = (e) => _[e] ?? _.default, F = (e) => O[e];
|
|
72
|
-
function G(e, t) {
|
|
73
|
-
const o = [], a = new Date(e);
|
|
74
|
-
for (; a <= t; ) {
|
|
75
|
-
const r = a.getFullYear(), n = String(a.getMonth() + 1).padStart(2, "0");
|
|
76
|
-
o.push(+`${r}${n}`), a.setMonth(a.getMonth() + 1);
|
|
77
|
-
}
|
|
78
|
-
return o;
|
|
79
|
-
}
|
|
80
|
-
const $ = (e) => e.reduce((o, a) => {
|
|
81
|
-
const r = {
|
|
82
|
-
top_level_category_guid: a.top_level_category_guid,
|
|
83
|
-
category_guid: a.category_guid,
|
|
84
|
-
amount: a.total,
|
|
85
|
-
year_month: a.year_month
|
|
86
|
-
}, { top_level_category_guid: n, category_guid: s } = r;
|
|
87
|
-
return o[s] || (o[s] = []), o[s].push(r), n !== s && (o[n] || (o[n] = []), o[n].push(r)), o;
|
|
88
|
-
}, {}), nt = (e, t, o) => {
|
|
89
|
-
const a = $(e), r = G(t, o);
|
|
90
|
-
return Object.entries(a).map(([s, m]) => {
|
|
91
|
-
const c = m[0].top_level_category_guid, b = r.map((i) => {
|
|
92
|
-
const g = m.filter((p) => p.year_month === i).reduce((p, C) => p + Math.abs(C.amount), 0), u = Number(String(i).slice(0, 4)), M = Number(String(i).slice(4));
|
|
93
|
-
return { x: new Date(u, M - 1), y: g };
|
|
94
|
-
}).sort((i, g) => i.x.getTime() - g.x.getTime());
|
|
95
|
-
return {
|
|
96
|
-
top_level_category_guid: c,
|
|
97
|
-
category_guid: s,
|
|
98
|
-
category_name: F(s),
|
|
99
|
-
category_color: W(c),
|
|
100
|
-
dataset: b
|
|
101
|
-
};
|
|
102
|
-
});
|
|
103
|
-
}, st = (e, t) => {
|
|
104
|
-
const o = typeof e == "string" ? parseFloat(e.replace(/[^0-9.-]+/g, "")) : e, a = typeof t == "string" ? parseFloat(t.replace(/[^0-9.-]+/g, "")) : t;
|
|
105
|
-
return (o || 0) - (a || 0);
|
|
106
|
-
}, j = (e, t) => {
|
|
107
|
-
const o = e.subCategories.filter((n) => n.currentAmount !== 0), a = e.totalMonthlyAmounts.slice(-t), r = (n) => n.substring(0, 3) + " " + n.slice(-4);
|
|
108
|
-
return a.map((n) => {
|
|
109
|
-
const s = r(n.label), m = o.map((i) => {
|
|
110
|
-
const g = i.monthlyAmounts.slice(-t).find((u) => r(u.label) === s);
|
|
111
|
-
return {
|
|
112
|
-
label: i.name,
|
|
113
|
-
amount: Math.abs(g?.amount || 0),
|
|
114
|
-
header: s
|
|
115
|
-
};
|
|
116
|
-
}), c = e.monthlyAmounts.slice(-t).find((i) => r(i.label) === s);
|
|
117
|
-
return [{
|
|
118
|
-
label: e.name,
|
|
119
|
-
amount: Math.abs(c?.amount || 0),
|
|
120
|
-
header: s
|
|
121
|
-
}, ...m].sort((i, g) => g.amount - i.amount);
|
|
122
|
-
});
|
|
123
|
-
}, k = (e, t) => {
|
|
124
|
-
const o = e ? e.totalMonthlyAmounts.slice(-t).map((r) => ({
|
|
125
|
-
x: r.label.substring(0, 3),
|
|
126
|
-
y: Math.abs(r.amount)
|
|
127
|
-
})) : [], a = e ? j(e, t) : [];
|
|
128
|
-
return { monthlyAmounts: o, tooltipLabels: a };
|
|
129
|
-
}, H = (e) => e.slice().filter(
|
|
130
|
-
(t) => t.totalAmount !== 0 && t.isTransfer === !1 && t.guid !== E.INVESTMENTS
|
|
131
|
-
).sort((t, o) => Math.abs(o.totalAmount) - Math.abs(t.totalAmount));
|
|
132
|
-
class it {
|
|
133
|
-
globalStore;
|
|
134
|
-
selectedCategoryData = null;
|
|
135
|
-
selectedDateRange;
|
|
136
|
-
visibleListLength = 5;
|
|
137
|
-
constructor(t) {
|
|
138
|
-
this.globalStore = t, this.selectedDateRange = {
|
|
139
|
-
start: v(D(I(/* @__PURE__ */ new Date(), 6)), 1),
|
|
140
|
-
end: D(/* @__PURE__ */ new Date())
|
|
141
|
-
}, N(this);
|
|
142
|
-
}
|
|
143
|
-
setSelectedCategoryData = (t) => {
|
|
144
|
-
this.selectedCategoryData = t;
|
|
145
|
-
};
|
|
146
|
-
setSelectedDateRange = (t) => {
|
|
147
|
-
this.selectedDateRange = t;
|
|
148
|
-
};
|
|
149
|
-
setVisibleListLength = (t) => {
|
|
150
|
-
this.visibleListLength = t;
|
|
151
|
-
};
|
|
152
|
-
get sortedDetailedCategoriesWithTransactions() {
|
|
153
|
-
return H(
|
|
154
|
-
this.globalStore.categoryStore.detailedCategoriesWithTransactions
|
|
155
|
-
);
|
|
156
|
-
}
|
|
157
|
-
get selectedDateRangeMonthCount() {
|
|
158
|
-
return w(this.selectedDateRange.end, this.selectedDateRange.start) + 1;
|
|
159
|
-
}
|
|
160
|
-
get selectedDateRangeMonthRange() {
|
|
161
|
-
const t = L(this.selectedDateRange.start, T.MONTH_LONG), o = L(this.selectedDateRange.end, T.MONTH_LONG);
|
|
162
|
-
return `${t} - ${o}`;
|
|
163
|
-
}
|
|
164
|
-
get visibleCategories() {
|
|
165
|
-
return this.sortedDetailedCategoriesWithTransactions.slice(0, this.visibleListLength);
|
|
166
|
-
}
|
|
167
|
-
get collapsedCategories() {
|
|
168
|
-
return this.sortedDetailedCategoriesWithTransactions.slice(this.visibleListLength);
|
|
169
|
-
}
|
|
170
|
-
get categoryDetailsChartData() {
|
|
171
|
-
return k(
|
|
172
|
-
this.selectedCategoryData,
|
|
173
|
-
this.selectedDateRangeMonthCount
|
|
174
|
-
);
|
|
175
|
-
}
|
|
176
|
-
}
|
|
177
|
-
export {
|
|
178
|
-
rt as L,
|
|
179
|
-
it as T,
|
|
180
|
-
st as a,
|
|
181
|
-
nt as g
|
|
182
|
-
};
|