@mx-cartographer/experiences 7.11.6 → 7.11.8
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 -0
- package/dist/{AccountApi-DgZ8ILj1.mjs → AccountApi-JlrX0MwM.mjs} +1 -1
- package/dist/{AccountDetailsHeader-hDo7gojQ.mjs → AccountDetailsHeader-BCi1WwkM.mjs} +2 -2
- package/dist/{AccountListItem-CjeAlrPC.mjs → AccountListItem-Ceuh5WKe.mjs} +2 -2
- package/dist/{AccountStore-DdGz1ig2.mjs → AccountStore-CSLinWGm.mjs} +2 -2
- package/dist/{BeatApi-De2IaqH2.mjs → BeatApi-B7yMnwRX.mjs} +1 -1
- package/dist/{BeatStore-D_NYuBSz.mjs → BeatStore-C3njaxFy.mjs} +1 -1
- package/dist/BudgetUtil-CTpLz9lw.mjs +101 -0
- package/dist/{CategorySelectorDrawer-zT9pFvTa.mjs → CategorySelectorDrawer-BMmxw2oY.mjs} +1 -1
- package/dist/{CategoryStore-Cg6hsxza.mjs → CategoryStore-BC1Dbefp.mjs} +1 -1
- package/dist/{Connect-Dg9HlAWv.mjs → Connect-Df7iVTcV.mjs} +1 -1
- package/dist/{ConnectDrawer-BLwcW0Oe.mjs → ConnectDrawer-CVt-8rPJ.mjs} +2 -2
- package/dist/{ConnectionsDrawer-UQTh9UEc.mjs → ConnectionsDrawer-c7HaKeRj.mjs} +2 -2
- package/dist/{CurrencyInput-PMOAH5R3.mjs → CurrencyInput-CDY0awYV.mjs} +1 -1
- package/dist/{ExportCsvAction-B5Ra5duE.mjs → ExportCsvAction-BSK-EZ4D.mjs} +3 -3
- package/dist/{Fetch-DecPFeGU.mjs → Fetch-C67go-m2.mjs} +1 -0
- package/dist/{FinstrongStore-DBSoLGSE.mjs → FinstrongStore-93XvOWQr.mjs} +1 -1
- package/dist/{GlobalAccountFilter-C8mpfudV.mjs → GlobalAccountFilter-B3v8E_rC.mjs} +1 -1
- package/dist/{GoalStore-DzOZ0je_.mjs → GoalStore-XHAvX1lP.mjs} +2 -2
- package/dist/{Help-HjHBZzI9.mjs → Help-BBxespai.mjs} +1 -1
- package/dist/{LineChart-Dlp9RAJz.mjs → LineChart-Pu3pKqtQ.mjs} +1 -1
- package/dist/{ListItemAction-BDnpuLln.mjs → ListItemAction-5YhgdUZW.mjs} +1 -1
- package/dist/{ManageIncome-C05btqU-.mjs → ManageIncome-C389-HAc.mjs} +10 -10
- package/dist/{MerchantStore-WvZ4gnQe.mjs → MerchantStore-DeeJLKfx.mjs} +1 -1
- package/dist/{MicroWidgetContainer-jvYZ5bb6.mjs → MicroWidgetContainer-CMES42I1.mjs} +1 -1
- package/dist/{MiniWidgetContainer-B4gbUTJ2.mjs → MiniWidgetContainer-DhEx4qKi.mjs} +1 -1
- package/dist/{NetWorthStore-yV43kJro.mjs → NetWorthStore-iebGdvTb.mjs} +1 -1
- package/dist/{NotificationSettings-BYv2INpX.mjs → NotificationSettings-BSaCGB8x.mjs} +4 -4
- package/dist/{NotificationStore-DBs11ZBH.mjs → NotificationStore-CUhig4c1.mjs} +1 -1
- package/dist/{OriginalBalanceAction-CRevNVIM.mjs → OriginalBalanceAction-Bq4utJ1f.mjs} +3 -3
- package/dist/{RecurringSettings-B0SSXpiK.mjs → RecurringSettings-CLtfXCFT.mjs} +2 -2
- package/dist/{RecurringTransactionsStore-DAX5ozGz.mjs → RecurringTransactionsStore-Ce7p6L0E.mjs} +1 -1
- package/dist/{SettingsStore-BqPjOIWk.mjs → SettingsStore-tK6INBFP.mjs} +2 -2
- package/dist/{SpendingLegend-D91UDDIu.mjs → SpendingLegend-bMrPWOGJ.mjs} +1 -1
- package/dist/{Transaction-BNO5Yz-B.mjs → Transaction-BR682Yj5.mjs} +1 -1
- package/dist/{TransactionApi-CjBoLleL.mjs → TransactionApi-BnjVP2x2.mjs} +1 -1
- package/dist/TransactionDetails-Cedp4OOg.mjs +1260 -0
- package/dist/{TransactionList-DrtItQUk.mjs → TransactionList-BibbhhS9.mjs} +2 -2
- package/dist/{TransactionStore-DYXYuq5s.mjs → TransactionStore-Cv-7GLPT.mjs} +4 -4
- package/dist/User-CCSM9p05.mjs +368 -0
- package/dist/{ViewMoreMicroCard-BCYgXtiG.mjs → ViewMoreMicroCard-C4QiAZz4.mjs} +3 -3
- package/dist/{WidgetContainer-BEpJCqAV.mjs → WidgetContainer-sC5KLXHI.mjs} +2 -2
- package/dist/accounts/index.es.js +14 -14
- package/dist/analytics/index.es.js +11 -11
- package/dist/budgets/api/BudgetsApi.d.ts +1 -0
- package/dist/budgets/index.es.js +25 -24
- package/dist/budgets/store/BudgetsStore.d.ts +7 -0
- package/dist/cashflow/index.es.js +9 -9
- package/dist/categories/index.es.js +2 -2
- package/dist/common/constants/ApiEndpoints.d.ts +1 -0
- package/dist/common/index.es.js +277 -253
- package/dist/common/stores/GlobalStore.d.ts +3 -1
- package/dist/common/types/Budget.d.ts +8 -0
- package/dist/common/types/localization/BudgetsCopy.d.ts +5 -0
- package/dist/common/types/localization/CommonCopy.d.ts +2 -0
- package/dist/dashboard/index.es.js +4 -4
- package/dist/debts/index.es.js +8 -8
- package/dist/{exportTransactionsToCSV-DC2YMFft.mjs → exportTransactionsToCSV-YXwmzmUp.mjs} +1 -1
- package/dist/finstrong/index.es.js +12 -12
- package/dist/goals/index.es.js +10 -10
- package/dist/help/index.es.js +4 -4
- package/dist/{hooks-0kWPTHNb.mjs → hooks-zu7yblbi.mjs} +3 -3
- package/dist/insights/components/insights/CategoryBudget/types/CategoryBudget.d.ts +1 -0
- package/dist/insights/index.es.js +28 -18
- package/dist/investments/index.es.js +4 -4
- package/dist/merchants/index.es.js +2 -2
- package/dist/microinsights/index.es.js +1 -1
- package/dist/networth/index.es.js +8 -8
- package/dist/notifications/index.es.js +11 -11
- package/dist/recurringtransactions/index.es.js +102 -102
- package/dist/settings/index.es.js +8 -8
- package/dist/spending/index.es.js +8 -8
- package/dist/transactions/components/shared/transactiondetails/actions/AddMerchantBudgetAction.d.ts +3 -1
- package/dist/transactions/index.es.js +17 -17
- package/dist/trends/index.es.js +12 -12
- package/dist/{useAccountDisplayName-BQfelpG3.mjs → useAccountDisplayName-CxYB0Wpw.mjs} +1 -1
- package/dist/{useCombineEvents-ARuNN9Xh.mjs → useCombineEvents-C6fkIgHW.mjs} +1 -1
- package/dist/{useInsightsEnabled-bDCTNOJS.mjs → useInsightsEnabled-CYLDtNYt.mjs} +1 -1
- package/dist/{useWidgetLoadTimer-yzSfT9dS.mjs → useWidgetLoadTimer-Bmgv_UeH.mjs} +1 -1
- package/package.json +1 -1
- package/dist/BudgetUtil-C71e-szt.mjs +0 -236
- package/dist/TransactionDetails-Cym3mIjc.mjs +0 -1181
- package/dist/User-C8w4H0cj.mjs +0 -237
package/dist/User-C8w4H0cj.mjs
DELETED
|
@@ -1,237 +0,0 @@
|
|
|
1
|
-
import { jsxs as N, jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import p from "react";
|
|
3
|
-
import { css as R } from "@mxenabled/cssinjs";
|
|
4
|
-
import { addDays as L } from "date-fns/addDays";
|
|
5
|
-
import { addMonths as j } from "date-fns/addMonths";
|
|
6
|
-
import { eachDayOfInterval as O } from "date-fns/eachDayOfInterval";
|
|
7
|
-
import { eachWeekOfInterval as W } from "date-fns/eachWeekOfInterval";
|
|
8
|
-
import { endOfMonth as H } from "date-fns/endOfMonth";
|
|
9
|
-
import { format as b } from "date-fns/format";
|
|
10
|
-
import { isBefore as z } from "date-fns/isBefore";
|
|
11
|
-
import { isSameMonth as F } from "date-fns/isSameMonth";
|
|
12
|
-
import { startOfMonth as G } from "date-fns/startOfMonth";
|
|
13
|
-
import { startOfToday as S } from "date-fns/startOfToday";
|
|
14
|
-
import { subMonths as Y } from "date-fns/subMonths";
|
|
15
|
-
import k from "@mui/material/Button";
|
|
16
|
-
import Z from "@mui/material/Paper";
|
|
17
|
-
import { H2 as q, Text as B } from "@mxenabled/mxui";
|
|
18
|
-
import { ChevronLeft as J, ChevronRight as K } from "@mxenabled/mx-icons";
|
|
19
|
-
import { f as Q, D as U } from "./DateFormats-Cs-NbEZ7.mjs";
|
|
20
|
-
import { isSameDay as m } from "date-fns/isSameDay";
|
|
21
|
-
import { isWithinInterval as V } from "date-fns/isWithinInterval";
|
|
22
|
-
import X from "@mui/material/styles/useTheme";
|
|
23
|
-
const P = ({ copy: t, date: e, onNextClick: r, onPreviousClick: l }) => {
|
|
24
|
-
const s = D();
|
|
25
|
-
return /* @__PURE__ */ N("div", { className: `mx-cmn-calendar-header ${s}`, children: [
|
|
26
|
-
/* @__PURE__ */ o(q, { className: "mx-cmn-calendar-header-title", variant: "H3", children: Q(e, U.MONTH_YEAR) }),
|
|
27
|
-
/* @__PURE__ */ N("div", { className: "mx-cmn-calendar-header-button-container", children: [
|
|
28
|
-
/* @__PURE__ */ o(k, { "aria-label": t.prevAria, onClick: l, children: /* @__PURE__ */ o(J, { size: 24 }) }),
|
|
29
|
-
/* @__PURE__ */ o(k, { "aria-label": t.nextAria, onClick: r, children: /* @__PURE__ */ o(K, { size: 24 }) })
|
|
30
|
-
] })
|
|
31
|
-
] });
|
|
32
|
-
}, D = () => R({
|
|
33
|
-
alignItems: "center",
|
|
34
|
-
display: "flex",
|
|
35
|
-
marginBottom: 16,
|
|
36
|
-
marginRight: -16,
|
|
37
|
-
paddingLeft: 8,
|
|
38
|
-
"& .mx-cmn-calendar-header-title": {
|
|
39
|
-
flexGrow: 1
|
|
40
|
-
},
|
|
41
|
-
"& .mx-cmn-calendar-header-button-container": {
|
|
42
|
-
display: "flex",
|
|
43
|
-
gap: 4
|
|
44
|
-
}
|
|
45
|
-
}), tt = ({ beginDate: t, date: e, endDate: r, isInMonth: l, onClick: s }) => {
|
|
46
|
-
const d = X(), w = nt(d), a = t && r && V(e, { start: t, end: r }) && !m(e, t) && !m(e, r), h = t && r && m(t, e) && !m(t, r), c = r && t && m(r, e) && !m(t, r), i = t && m(t, e) || r && m(r, e), y = m(e, S());
|
|
47
|
-
return /* @__PURE__ */ o(
|
|
48
|
-
"div",
|
|
49
|
-
{
|
|
50
|
-
className: `
|
|
51
|
-
mx-cmn-calendar-day
|
|
52
|
-
${w}
|
|
53
|
-
${l ? "" : "mx-cmn-out-of-month"}
|
|
54
|
-
${a ? "mx-cmn-date-interval" : ""}
|
|
55
|
-
`,
|
|
56
|
-
children: /* @__PURE__ */ o(
|
|
57
|
-
k,
|
|
58
|
-
{
|
|
59
|
-
className: `
|
|
60
|
-
mx-cmn-calendar-day-button
|
|
61
|
-
${h ? "mx-cmn-range-start" : ""}
|
|
62
|
-
${c ? "mx-cmn-range-end" : ""}
|
|
63
|
-
`,
|
|
64
|
-
color: i ? "primary" : "secondary",
|
|
65
|
-
onClick: () => s(e),
|
|
66
|
-
variant: i ? "contained" : "text",
|
|
67
|
-
children: /* @__PURE__ */ o(
|
|
68
|
-
B,
|
|
69
|
-
{
|
|
70
|
-
className: `
|
|
71
|
-
mx-cmn-calendar-day-text
|
|
72
|
-
${i ? "mx-cmn-day-selected" : ""}
|
|
73
|
-
${y ? "mx-cmn-today" : ""}`,
|
|
74
|
-
variant: "Small",
|
|
75
|
-
children: b(e, "d")
|
|
76
|
-
}
|
|
77
|
-
)
|
|
78
|
-
}
|
|
79
|
-
)
|
|
80
|
-
}
|
|
81
|
-
);
|
|
82
|
-
}, nt = (t) => R({
|
|
83
|
-
height: g,
|
|
84
|
-
width: g,
|
|
85
|
-
display: "flex",
|
|
86
|
-
justifyContent: "center",
|
|
87
|
-
"&.mx-cmn-out-of-month": {
|
|
88
|
-
backgroundColor: t.palette.background.default
|
|
89
|
-
},
|
|
90
|
-
"&.mx-cmn-date-interval": {
|
|
91
|
-
backgroundColor: t.palette.secondary.light
|
|
92
|
-
},
|
|
93
|
-
"& .MuiButton-root": {
|
|
94
|
-
maxWidth: 44,
|
|
95
|
-
minWidth: 44,
|
|
96
|
-
height: 44,
|
|
97
|
-
padding: 0,
|
|
98
|
-
width: 44,
|
|
99
|
-
"&.mx-cmn-range-start": {
|
|
100
|
-
borderTopRightRadius: 0,
|
|
101
|
-
borderBottomRightRadius: 0,
|
|
102
|
-
"&:focus": {
|
|
103
|
-
boxShadow: "none"
|
|
104
|
-
}
|
|
105
|
-
},
|
|
106
|
-
"&.mx-cmn-range-end": {
|
|
107
|
-
borderTopLeftRadius: 0,
|
|
108
|
-
borderBottomLeftRadius: 0,
|
|
109
|
-
"&:focus": {
|
|
110
|
-
boxShadow: "none"
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
},
|
|
114
|
-
"& .mx-cmn-calendar-day-text": {
|
|
115
|
-
"&.mx-cmn-day-selected": {
|
|
116
|
-
color: t.palette.primary,
|
|
117
|
-
"&.mx-cmn-day-selected": {
|
|
118
|
-
borderColor: t.palette.common.white
|
|
119
|
-
}
|
|
120
|
-
},
|
|
121
|
-
"&.mx-cmn-today": {
|
|
122
|
-
borderBottom: `solid 2px ${t.palette.primary.main}`,
|
|
123
|
-
marginBottom: -6,
|
|
124
|
-
paddingBottom: 5
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
}), et = 340, g = 44;
|
|
128
|
-
var rt = /* @__PURE__ */ ((t) => (t.None = "None", t.Single = "Single", t.Range = "Range", t))(rt || {});
|
|
129
|
-
const ot = ({
|
|
130
|
-
copy: t,
|
|
131
|
-
beginDate: e = void 0,
|
|
132
|
-
endDate: r = void 0,
|
|
133
|
-
onDateSelected: l,
|
|
134
|
-
onRangeSelected: s,
|
|
135
|
-
selectionType: d = "Single"
|
|
136
|
-
/* Single */
|
|
137
|
-
}) => {
|
|
138
|
-
const w = at(), [a, h] = p.useState(S), [c, i] = p.useState(e), [y, u] = p.useState(r);
|
|
139
|
-
p.useEffect(() => {
|
|
140
|
-
i(e), u(r), e && h(e);
|
|
141
|
-
}, [e, r]);
|
|
142
|
-
const E = p.useMemo(() => {
|
|
143
|
-
const n = W({ start: G(a), end: H(a) }), f = [];
|
|
144
|
-
for (let x = 0; x < n.length; x++) {
|
|
145
|
-
const v = n[x], M = O({ start: v, end: L(v, 6) }), $ = [];
|
|
146
|
-
for (let C = 0; C < M.length; C++)
|
|
147
|
-
$.push(M[C]);
|
|
148
|
-
f.push($);
|
|
149
|
-
}
|
|
150
|
-
return f;
|
|
151
|
-
}, [a]), I = (n) => {
|
|
152
|
-
if (d !== "None") {
|
|
153
|
-
if (d === "Single") {
|
|
154
|
-
i(n), l?.(n);
|
|
155
|
-
return;
|
|
156
|
-
}
|
|
157
|
-
!c || y ? (i(n), u(void 0)) : z(n, c) ? (u(c), i(n), s?.(n, c)) : (u(n), s?.(c, n));
|
|
158
|
-
}
|
|
159
|
-
}, A = () => {
|
|
160
|
-
const n = S();
|
|
161
|
-
h(n), d !== "None" && (i(n), d === "Single" ? l?.(n) : (u(n), s?.(n, n)));
|
|
162
|
-
}, T = () => {
|
|
163
|
-
h(j(a, 1));
|
|
164
|
-
}, _ = () => {
|
|
165
|
-
h(Y(a, 1));
|
|
166
|
-
};
|
|
167
|
-
return /* @__PURE__ */ o("div", { className: `mx-cmn-calendar ${w}`, children: /* @__PURE__ */ N(Z, { sx: { boxShadow: "none" }, children: [
|
|
168
|
-
/* @__PURE__ */ o(
|
|
169
|
-
P,
|
|
170
|
-
{
|
|
171
|
-
copy: t,
|
|
172
|
-
date: a,
|
|
173
|
-
onNextClick: T,
|
|
174
|
-
onPreviousClick: _
|
|
175
|
-
}
|
|
176
|
-
),
|
|
177
|
-
/* @__PURE__ */ o("div", { className: "mx-cmn-calendar-header-row", children: E[0].map((n, f) => /* @__PURE__ */ o("div", { className: "mx-cmn-calendar-header-cell", children: /* @__PURE__ */ o(B, { bold: !0, variant: "Small", children: b(n, "EEEEE") }) }, f)) }),
|
|
178
|
-
E.map((n, f) => /* @__PURE__ */ o("div", { className: "mx-cmn-calendar-week", children: n.map((x, v) => /* @__PURE__ */ o(
|
|
179
|
-
tt,
|
|
180
|
-
{
|
|
181
|
-
beginDate: c,
|
|
182
|
-
date: x,
|
|
183
|
-
endDate: y,
|
|
184
|
-
isInMonth: F(x, a),
|
|
185
|
-
onClick: I
|
|
186
|
-
},
|
|
187
|
-
v
|
|
188
|
-
)) }, `w-${f}`)),
|
|
189
|
-
/* @__PURE__ */ o("div", { className: "mx-cmn-calendar-today-container", children: /* @__PURE__ */ o(k, { onClick: A, size: "small", variant: "text", children: t.today }) })
|
|
190
|
-
] }) });
|
|
191
|
-
}, at = () => R({
|
|
192
|
-
width: et,
|
|
193
|
-
"& .MuiPaper-root": {
|
|
194
|
-
paddingLeft: 24,
|
|
195
|
-
paddingRight: 24,
|
|
196
|
-
paddingTop: 4,
|
|
197
|
-
paddingBottom: 4
|
|
198
|
-
},
|
|
199
|
-
"& .mx-cmn-calendar-header-row": {
|
|
200
|
-
display: "flex",
|
|
201
|
-
justifyContent: "center",
|
|
202
|
-
textAlign: "center",
|
|
203
|
-
"& .mx-cmn-calendar-header-cell": {
|
|
204
|
-
height: g,
|
|
205
|
-
width: g,
|
|
206
|
-
minWidth: g,
|
|
207
|
-
"& .kmui-text": {
|
|
208
|
-
alignItems: "center",
|
|
209
|
-
display: "flex",
|
|
210
|
-
height: "100%",
|
|
211
|
-
justifyContent: "center",
|
|
212
|
-
width: "100%"
|
|
213
|
-
}
|
|
214
|
-
}
|
|
215
|
-
},
|
|
216
|
-
"& .mx-cmn-calendar-week": {
|
|
217
|
-
display: "flex",
|
|
218
|
-
justifyContent: "center",
|
|
219
|
-
textAlign: "center"
|
|
220
|
-
},
|
|
221
|
-
"& .mx-cmn-calendar-today-container": {
|
|
222
|
-
display: "block",
|
|
223
|
-
marginTop: 16,
|
|
224
|
-
textAlign: "center",
|
|
225
|
-
width: "100%",
|
|
226
|
-
"& > .MuiButton-root": {
|
|
227
|
-
display: "inline-block",
|
|
228
|
-
marginLeft: "auto",
|
|
229
|
-
marginRight: "auto"
|
|
230
|
-
}
|
|
231
|
-
}
|
|
232
|
-
}), $t = ot, bt = (t, e) => !!t.find((r) => r.feature_name === e)?.is_enabled;
|
|
233
|
-
export {
|
|
234
|
-
$t as C,
|
|
235
|
-
rt as a,
|
|
236
|
-
bt as i
|
|
237
|
-
};
|