@mx-cartographer/experiences 8.0.0-alpha.bb4 → 8.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.
Files changed (154) hide show
  1. package/CHANGELOG.md +50 -0
  2. package/dist/{Account-B4CDD-zq.mjs → Account-CvR2-dSR.mjs} +1 -1
  3. package/dist/AccountDetailsContent-CitErkuS.mjs +686 -0
  4. package/dist/{AccountDetailsHeader-DRjFuyJT.mjs → AccountDetailsHeader-BkG3MNYo.mjs} +19 -19
  5. package/dist/{AccountFields-Cl4KHoSj.mjs → AccountFields-zCMqet85.mjs} +10 -12
  6. package/dist/AccountListItem-DHrz8Mml.mjs +90 -0
  7. package/dist/{AccountStore-HbVblv86.mjs → AccountStore-LgfBcYMe.mjs} +101 -75
  8. package/dist/Accounts-Bzy1_REQ.mjs +9 -0
  9. package/dist/{BudgetUtil-Jv8h9H9l.mjs → BudgetUtil-BmZXkL0C.mjs} +32 -32
  10. package/dist/{CashflowStore-CA190BPF.mjs → CashflowStore-D9Dpuz7X.mjs} +25 -18
  11. package/dist/{Category-Ccoew_sA.mjs → Category-CevNQ03n.mjs} +2 -2
  12. package/dist/{CategorySelectorDrawer-Dl006GKy.mjs → CategorySelectorDrawer-B-I3kajA.mjs} +27 -27
  13. package/dist/CategoryStore-CA3tS1BO.mjs +186 -0
  14. package/dist/CategoryUtil-DUM8NuGO.mjs +78 -0
  15. package/dist/{ConnectDrawer-DVp54lUH.mjs → ConnectDrawer-BkvlItWx.mjs} +55 -56
  16. package/dist/{ConnectionsDrawer-Dsc04-4Z.mjs → ConnectionsDrawer-VmuVFHbL.mjs} +5 -5
  17. package/dist/CurrencyInput-itK0R3wV.mjs +85 -0
  18. package/dist/{DateUtil-CDPZw_-m.mjs → DateUtil-CBdcsyuk.mjs} +1 -1
  19. package/dist/{DebtsStore-pL63fmdT.mjs → DebtsStore-Bq-aPy-5.mjs} +3 -3
  20. package/dist/{Dialog-CDV0kKxj.mjs → Dialog-BPTr3qHE.mjs} +24 -24
  21. package/dist/Drawer-By9V-B5L.mjs +178 -0
  22. package/dist/{ExportCsvAction-QhQK4_FU.mjs → ExportCsvAction-Cglo8Mca.mjs} +4 -4
  23. package/dist/{FinstrongStore-BGf36b0z.mjs → FinstrongStore-BIrX0Xg2.mjs} +56 -56
  24. package/dist/{GoalStore-C1-w3Y1E.mjs → GoalStore-1P19goZ7.mjs} +111 -151
  25. package/dist/HeaderCell-DjuifqHJ.mjs +6 -0
  26. package/dist/{Help-c-zHlDbv.mjs → Help-DhcC-C05.mjs} +8 -8
  27. package/dist/{Help-DBfsTkAi.mjs → Help-Ea3BlXQp.mjs} +146 -125
  28. package/dist/{IconBacking-DgT8DCeh.mjs → IconBacking-B9oC6uL2.mjs} +11 -11
  29. package/dist/LineChart-KpPw1phO.mjs +580 -0
  30. package/dist/{ListItemAction-BNCWQAN_.mjs → ListItemAction-BxTkF6Tz.mjs} +2 -2
  31. package/dist/Loader-DUaFpDGv.mjs +24 -0
  32. package/dist/{ManageIncome-8EsStyIQ.mjs → ManageIncome-CaoQl609.mjs} +142 -142
  33. package/dist/MicroWidgetContainer-r6mtxRer.mjs +52 -0
  34. package/dist/MiniWidgetContainer-Bg02sF1Y.mjs +71 -0
  35. package/dist/{NetWorthStore-Bti6u-d9.mjs → NetWorthStore-rC0q7P7t.mjs} +4 -4
  36. package/dist/NotificationSettings-uzM8tCoH.mjs +674 -0
  37. package/dist/{NotificationStore-Ck2KdNmT.mjs → NotificationStore-CDX_kqHa.mjs} +14 -22
  38. package/dist/{OriginalBalanceAction-2Y_3U_mg.mjs → OriginalBalanceAction-C6jdS4ws.mjs} +9 -9
  39. package/dist/{RecurringSettings-DAncu--R.mjs → RecurringSettings-B4ybrS0B.mjs} +17 -17
  40. package/dist/{RecurringTransactions-CxcSL1dY.mjs → RecurringTransactions-BqijW_8S.mjs} +79 -79
  41. package/dist/{RecurringTransactionsStore-CNFxyGB6.mjs → RecurringTransactionsStore-BhBUVm9a.mjs} +81 -91
  42. package/dist/{ResponsiveButton-Cn6-R7ue.mjs → ResponsiveButton-DZFp78fJ.mjs} +10 -10
  43. package/dist/SearchBox-B2_zLv8-.mjs +42 -0
  44. package/dist/{SettingsStore-BASMQSIp.mjs → SettingsStore-krIRNwHK.mjs} +1 -1
  45. package/dist/{SingleSegmentDonut-7Uy6VEld.mjs → SingleSegmentDonut-BgbLgwHi.mjs} +6 -6
  46. package/dist/SpendingData-DQ1b9uqq.mjs +53 -0
  47. package/dist/{SpendingLegend-6FqtMcBV.mjs → SpendingLegend-CDO060GT.mjs} +65 -65
  48. package/dist/{StatusBar-CPfSXe80.mjs → StatusBar-BK_uYHAB.mjs} +6 -6
  49. package/dist/{TabContentContainer-CnMXkVqr.mjs → TabContentContainer-j01JYR_7.mjs} +8 -8
  50. package/dist/TransactionDetails-m5PddMQn.mjs +1380 -0
  51. package/dist/TransactionStore-PRlwE-TF.mjs +677 -0
  52. package/dist/TrendsStore-yO7qYv97.mjs +186 -0
  53. package/dist/{User-BklmOUSd.mjs → User-Cnlegl1N.mjs} +107 -107
  54. package/dist/{ViewMoreMicroCard-DAkyNRlD.mjs → ViewMoreMicroCard-DwR0v_ll.mjs} +211 -205
  55. package/dist/{WidgetContainer-CDh9fjpR.mjs → WidgetContainer-CoFDmQRE.mjs} +36 -36
  56. package/dist/accounts/index.es.js +200 -197
  57. package/dist/accounts/stores/AccountStore.d.ts +22 -25
  58. package/dist/accounts/utils/Accounts.d.ts +1 -2
  59. package/dist/analytics/index.es.js +27 -27
  60. package/dist/budgets/components/AddBudgets.d.ts +2 -1
  61. package/dist/budgets/index.es.js +703 -669
  62. package/dist/budgets/store/BudgetsStore.d.ts +0 -1
  63. package/dist/cashflow/index.es.js +420 -404
  64. package/dist/categories/index.es.js +2 -2
  65. package/dist/categories/stores/CategoryStore.d.ts +3 -6
  66. package/dist/categories/util/CategoryUtil.d.ts +2 -3
  67. package/dist/common/components/ErrorBoundary.d.ts +1 -1
  68. package/dist/common/components/Loader.d.ts +2 -1
  69. package/dist/common/components/accountfilter/AccountFilterOptions.d.ts +1 -1
  70. package/dist/common/components/barchart/Bar.d.ts +25 -0
  71. package/dist/common/components/barchart/BarChart.d.ts +34 -0
  72. package/dist/common/components/barchart/BarColumn.d.ts +37 -0
  73. package/dist/common/components/barchart/Legend.d.ts +8 -0
  74. package/dist/common/components/barchart/Util.d.ts +42 -0
  75. package/dist/common/components/barchart/index.d.ts +1 -0
  76. package/dist/common/components/charts/linechart/CustomMark.d.ts +1 -1
  77. package/dist/common/components/charts/linechart/CustomTooltip.d.ts +6 -1
  78. package/dist/common/components/charts/stackedlinechart/CustomPointTooltip.d.ts +5 -2
  79. package/dist/common/components/index.d.ts +1 -0
  80. package/dist/common/hooks/index.d.ts +2 -0
  81. package/dist/common/hooks/useAriaLive.d.ts +1 -1
  82. package/dist/common/hooks/usePrevious.d.ts +2 -0
  83. package/dist/common/hooks/useWidgetLoadTimer.d.ts +6 -0
  84. package/dist/common/index.es.js +712 -436
  85. package/dist/common/stores/AppDataStore.d.ts +1 -3
  86. package/dist/common/stores/GlobalCopyStore.d.ts +1 -0
  87. package/dist/common/stores/GlobalStore.d.ts +3 -3
  88. package/dist/common/stores/GlobalUiStore.d.ts +2 -3
  89. package/dist/common/stores/UserStore.d.ts +2 -3
  90. package/dist/common/types/Account.d.ts +6 -9
  91. package/dist/common/types/localization/TransactionsCopy.d.ts +1 -0
  92. package/dist/common/utils/Theme.d.ts +3 -1
  93. package/dist/dashboard/index.es.js +93 -91
  94. package/dist/debts/components/DebtsChart.d.ts +2 -1
  95. package/dist/debts/index.es.js +529 -527
  96. package/dist/{exportTransactionsToCSV-BgV_wTLT.mjs → exportTransactionsToCSV-DuAaI5XA.mjs} +3 -3
  97. package/dist/finstrong/components/shared/CustomDoubleBarPlot.d.ts +4 -5
  98. package/dist/finstrong/index.es.js +876 -867
  99. package/dist/goals/index.es.js +526 -525
  100. package/dist/goals/stores/GoalStore.d.ts +4 -17
  101. package/dist/help/components/content/BottomImageContent.d.ts +1 -1
  102. package/dist/help/components/content/LeftImageContent.d.ts +1 -1
  103. package/dist/help/components/content/RightImageContent.d.ts +1 -1
  104. package/dist/help/components/content/TopImageContent.d.ts +1 -1
  105. package/dist/help/index.es.js +13 -9
  106. package/dist/{hooks-C41HAxM5.mjs → hooks-ZMp65DFz.mjs} +11 -11
  107. package/dist/investments/index.es.js +534 -531
  108. package/dist/investments/stores/HoldingStore.d.ts +0 -1
  109. package/dist/merchants/index.es.js +8 -8
  110. package/dist/microinsights/MicroCardTemplate.d.ts +16 -0
  111. package/dist/microinsights/index.d.ts +1 -0
  112. package/dist/microinsights/index.es.js +101 -14
  113. package/dist/networth/components/NetWorthChange.d.ts +1 -3
  114. package/dist/networth/index.es.js +284 -285
  115. package/dist/notifications/index.es.js +95 -94
  116. package/dist/notifications/stores/NotificationStore.d.ts +1 -3
  117. package/dist/recurringtransactions/index.es.js +582 -562
  118. package/dist/recurringtransactions/stores/RecurringTransactionsStore.d.ts +2 -4
  119. package/dist/settings/index.es.js +340 -337
  120. package/dist/spending/index.es.js +281 -268
  121. package/dist/transactions/components/shared/transactionlist/DateRow.d.ts +7 -0
  122. package/dist/transactions/index.es.js +253 -255
  123. package/dist/transactions/stores/TransactionStore.d.ts +77 -21
  124. package/dist/transactions/stores/UiStore.d.ts +2 -0
  125. package/dist/trends/components/TrendsTable.d.ts +0 -2
  126. package/dist/trends/index.es.js +838 -793
  127. package/dist/trends/utils/TrendsData.d.ts +1 -0
  128. package/dist/{useAccountDisplayName-CcIp09Xc.mjs → useAccountDisplayName-B7iXTNM8.mjs} +2 -2
  129. package/dist/{useCombineEvents-kNzLTWCp.mjs → useCombineEvents-CRwX-qWE.mjs} +2 -2
  130. package/dist/{useInsightsEnabled-CNjP5cfR.mjs → useInsightsEnabled-B7dxpDrX.mjs} +1 -1
  131. package/dist/{useScreenSize-B5afALev.mjs → useScreenSize-B6JyS_Lj.mjs} +1 -1
  132. package/dist/useWidgetLoadTimer-hIOioiKx.mjs +19 -0
  133. package/package.json +57 -52
  134. package/dist/AccountDetailsContent-adZTkM52.mjs +0 -683
  135. package/dist/AccountListItem-wgmlex-_.mjs +0 -90
  136. package/dist/Accounts-CRUehOiy.mjs +0 -27
  137. package/dist/CategoryStore-MUwRWH9e.mjs +0 -176
  138. package/dist/CategoryUtil-DfVKKkRf.mjs +0 -80
  139. package/dist/CurrencyInput-D1cjbdCI.mjs +0 -85
  140. package/dist/Drawer-BF40nbsH.mjs +0 -163
  141. package/dist/HeaderCell-P8w6CmfO.mjs +0 -6
  142. package/dist/LineChart-C1PxNf7P.mjs +0 -581
  143. package/dist/Loader-Ckqi9Rx6.mjs +0 -21
  144. package/dist/MicroWidgetContainer-BGpNl5ZS.mjs +0 -45
  145. package/dist/MiniWidgetContainer-CKzf_Ira.mjs +0 -56
  146. package/dist/NotificationSettings-B74rQVYC.mjs +0 -672
  147. package/dist/SearchBox-B7km148n.mjs +0 -39
  148. package/dist/SkeletonLoader-BaNboJjD.mjs +0 -38
  149. package/dist/SpendingData-DPQ96k3x.mjs +0 -55
  150. package/dist/TransactionDetails-Bn0qY5Hw.mjs +0 -1336
  151. package/dist/TransactionStore-DbwAutwC.mjs +0 -671
  152. package/dist/TrendsStore-_mRaFUdf.mjs +0 -182
  153. package/dist/common/components/SkeletonLoader.d.ts +0 -7
  154. package/dist/recurringtransactions/components/MicroWidgetContent.d.ts +0 -3
@@ -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
- };
@@ -1,7 +0,0 @@
1
- import { SxProps } from '@mui/material/styles';
2
- interface SkeletonLoaderProps {
3
- sx?: SxProps;
4
- variant?: 'card' | 'list' | 'dashboard';
5
- }
6
- export declare const SkeletonLoader: ({ sx, variant }: SkeletonLoaderProps) => import("react/jsx-runtime").JSX.Element;
7
- export {};
@@ -1,3 +0,0 @@
1
- export declare const MicroWidgetContent: (() => import("react/jsx-runtime").JSX.Element) & {
2
- displayName: string;
3
- };