@mx-cartographer/experiences 7.2.15-alpha-ram7-finstrong-testing → 7.2.15-alpha-ram9-finstrong-testing
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.
|
@@ -83,7 +83,7 @@ class w {
|
|
|
83
83
|
);
|
|
84
84
|
}
|
|
85
85
|
get visibleAccounts() {
|
|
86
|
-
return this.accounts.filter((t) => !t.is_hidden);
|
|
86
|
+
return this.accounts.filter((t) => !t.is_hidden && !t.is_closed && !t.is_deleted);
|
|
87
87
|
}
|
|
88
88
|
get visibleCashAccounts() {
|
|
89
89
|
return this.cashAccounts.filter((t) => !t.is_hidden);
|
|
@@ -25,7 +25,7 @@ import { F as G1, M as K1 } from "../ConnectDrawer-CuUj16NH.mjs";
|
|
|
25
25
|
import t1 from "@mui/material/ListItem";
|
|
26
26
|
import { M as $ } from "../MiniWidgetContainer-CmXpTylX.mjs";
|
|
27
27
|
import l1 from "@mui/material/Stack";
|
|
28
|
-
import { A as P1, a as Y1 } from "../AccountStore-
|
|
28
|
+
import { A as P1, a as Y1 } from "../AccountStore-Cj8gkPYI.mjs";
|
|
29
29
|
const i1 = () => {
|
|
30
30
|
const [c, H] = d.useState(""), { accounts: C } = w(), { selectedAccounts: l } = S(), { setSelectedAccount: h, setSelectedMember: r } = z(), { members: L } = T(), { onEvent: f } = D(), s = [...new Set(l.map((t) => t.account_type))], a = l.find((t) => c === t.guid), u = d.useMemo(
|
|
31
31
|
() => l.filter((t) => t.is_hidden),
|
package/dist/common/index.es.js
CHANGED
|
@@ -11,8 +11,8 @@ import { C as gs, b as ps, L as ms, a as _s } from "../User-wXzDI4M8.mjs";
|
|
|
11
11
|
import { H as ot } from "../Help-DhcC-C05.mjs";
|
|
12
12
|
import { E as ys } from "../Help-DhcC-C05.mjs";
|
|
13
13
|
import { M as bs } from "../MicroWidgetContainer-DEiRnYVa.mjs";
|
|
14
|
-
import { M as
|
|
15
|
-
import { A as
|
|
14
|
+
import { M as Cs } from "../MiniWidgetContainer-CmXpTylX.mjs";
|
|
15
|
+
import { A as Ds, D as vs, W as As } from "../WidgetContainer-6dsjtOVg.mjs";
|
|
16
16
|
import { k as Ts, a as Bs, e as Is, h as Ns, A as Ms, f as ks, l as $s, d as Rs, n as Ps, E as Os, j as Us, N as Ls, i as Gs, P as Hs, o as Fs, S as Ws } from "../ConnectDrawer-CuUj16NH.mjs";
|
|
17
17
|
import { C as Ys } from "../CurrencyInput-xH-hqry9.mjs";
|
|
18
18
|
import { L as zs } from "../Loader-DUaFpDGv.mjs";
|
|
@@ -29,14 +29,14 @@ import { d as it } from "../GoalStore-Dcnj5pii.mjs";
|
|
|
29
29
|
import { C as pr, G as mr, M as _r, T as fr } from "../GoalStore-Dcnj5pii.mjs";
|
|
30
30
|
import { C as Sr } from "../CurrencyText-kyC1aseI.mjs";
|
|
31
31
|
import { E as wr } from "../EmptyState-DoxNUae-.mjs";
|
|
32
|
-
import { L as
|
|
32
|
+
import { L as xr } from "../ListItemAction-uobBrm_a.mjs";
|
|
33
33
|
import { T as ct } from "../TrendsStore-BVNxGsE4.mjs";
|
|
34
|
-
import { L as
|
|
34
|
+
import { L as vr, S as Ar } from "../TrendsStore-BVNxGsE4.mjs";
|
|
35
35
|
import { A as Tr, B as Br, I as Ir, N as Nr, T as Mr, a as kr } from "../ToggleListItem-r0Kx56wF.mjs";
|
|
36
36
|
import { jsxs as y, jsx as n } from "react/jsx-runtime";
|
|
37
37
|
import dt, { useRef as lt, useEffect as ut } from "react";
|
|
38
|
-
import { css as
|
|
39
|
-
import { useTokens as
|
|
38
|
+
import { css as C, keyframes as ht } from "@mxenabled/cssinjs";
|
|
39
|
+
import { useTokens as x, Text as B } from "@mxenabled/mxui";
|
|
40
40
|
import { D as Rr } from "../Donut-oaQFlbit.mjs";
|
|
41
41
|
import { L as Or } from "../LineChart-Ct9DNmhS.mjs";
|
|
42
42
|
import { S as Lr } from "../StatusBar-BK_uYHAB.mjs";
|
|
@@ -50,12 +50,12 @@ import { C as eo, c as so, a as ro, P as oo } from "../Category-CevNQ03n.mjs";
|
|
|
50
50
|
import { C as no, f as io, b as co, a as lo, g as uo, i as ho } from "../NumberFormatting-Buh7u8Oi.mjs";
|
|
51
51
|
import { R as mt } from "../RecurringTransactionsStore-C4RVULF8.mjs";
|
|
52
52
|
import { S as po, T as mo } from "../RecurringTransactionsStore-C4RVULF8.mjs";
|
|
53
|
-
import { G as fo, C as yo, D as So, W as bo, d as wo, a as
|
|
53
|
+
import { G as fo, C as yo, D as So, W as bo, d as wo, a as Co, i as xo, v as Do, m as vo, x as Ao, y as Eo, g as To, z as Bo, u as Io, f as No, b as Mo, l as ko, A as $o, t as Ro, n as Po, c as Oo, r as Uo, o as Lo, B as Go, j as Ho, s as Fo, h as Wo, w as qo, p as Yo, q as Qo } from "../hooks-C41HAxM5.mjs";
|
|
54
54
|
import { u as Xo } from "../useAccountDisplayName-CMMlIOXF.mjs";
|
|
55
55
|
import { u as Ko } from "../useInsightsEnabled-CNjP5cfR.mjs";
|
|
56
56
|
import { u as Zo } from "../useScreenSize-B6JyS_Lj.mjs";
|
|
57
57
|
import { makeAutoObservable as f, runInAction as p, reaction as _t } from "mobx";
|
|
58
|
-
import { a as ft } from "../AccountStore-
|
|
58
|
+
import { a as ft } from "../AccountStore-Cj8gkPYI.mjs";
|
|
59
59
|
import yt from "posthog-js";
|
|
60
60
|
import { B as St } from "../BeatStore-IBnXd4YK.mjs";
|
|
61
61
|
import { endOfMonth as Z } from "date-fns/endOfMonth";
|
|
@@ -63,9 +63,9 @@ import { startOfMonth as J } from "date-fns/startOfMonth";
|
|
|
63
63
|
import { startOfToday as U } from "date-fns/startOfToday";
|
|
64
64
|
import { f as bt, a as wt, b as L } from "../BudgetUtil-wjoNuj7B.mjs";
|
|
65
65
|
import { g as ta, e as ea, c as sa, d as ra, i as oa } from "../BudgetUtil-wjoNuj7B.mjs";
|
|
66
|
-
import { a as
|
|
67
|
-
import { F as
|
|
68
|
-
import { A as
|
|
66
|
+
import { a as Ct } from "../DebtsStore-Bu8rRRSL.mjs";
|
|
67
|
+
import { F as xt } from "../FinstrongStore-BbnA6Crl.mjs";
|
|
68
|
+
import { A as Dt, m as vt, a as At, b as Et } from "../InvestmentUtil-jOyOgzIB.mjs";
|
|
69
69
|
import { M as Tt } from "../MerchantStore-DrFvsUyy.mjs";
|
|
70
70
|
import { N as Bt } from "../NetWorthStore-CpL_kqvx.mjs";
|
|
71
71
|
import { a as It } from "../SettingsStore-BcgS_Ohv.mjs";
|
|
@@ -249,7 +249,7 @@ const Ke = (s) => {
|
|
|
249
249
|
t.current = s;
|
|
250
250
|
}, [s]), t.current;
|
|
251
251
|
}, Ft = ({ color: s, labelAverage: t, labelMain: e }) => {
|
|
252
|
-
const r =
|
|
252
|
+
const r = x(), o = Wt(r, s);
|
|
253
253
|
return /* @__PURE__ */ y("div", { className: `mx-cmn-bar-chart-legend ${o}`, children: [
|
|
254
254
|
/* @__PURE__ */ n("div", { "aria-label": e, className: "mx-cmn-color-square", role: "img" }),
|
|
255
255
|
/* @__PURE__ */ n(B, { variant: "XSmall", children: e }),
|
|
@@ -260,7 +260,7 @@ const Ke = (s) => {
|
|
|
260
260
|
] }),
|
|
261
261
|
/* @__PURE__ */ n(B, { variant: "XSmall", children: t })
|
|
262
262
|
] });
|
|
263
|
-
}, Wt = (s, t) =>
|
|
263
|
+
}, Wt = (s, t) => C({
|
|
264
264
|
alignItems: "center",
|
|
265
265
|
display: "flex",
|
|
266
266
|
gap: s.Spacing.XSmall,
|
|
@@ -296,7 +296,7 @@ const Ke = (s) => {
|
|
|
296
296
|
selectedIndex: c,
|
|
297
297
|
value: d
|
|
298
298
|
}) => {
|
|
299
|
-
const u =
|
|
299
|
+
const u = x(), l = qt(u, t, e), g = (_) => {
|
|
300
300
|
a && (_.key === " " || _.key === "Enter") && a(r);
|
|
301
301
|
}, m = c === void 0 || c === r ? "primary" : "secondary", i = () => /* @__PURE__ */ n(
|
|
302
302
|
B,
|
|
@@ -327,7 +327,7 @@ const Ke = (s) => {
|
|
|
327
327
|
] });
|
|
328
328
|
}, qt = (s, t, e) => {
|
|
329
329
|
const r = `expandBar-${Math.round(e)}`, o = ht(r, { from: { height: 0 }, to: { height: e } });
|
|
330
|
-
return
|
|
330
|
+
return C({
|
|
331
331
|
display: "flex",
|
|
332
332
|
flexDirection: "column",
|
|
333
333
|
justifyContent: "flex-end",
|
|
@@ -373,14 +373,14 @@ const Ke = (s) => {
|
|
|
373
373
|
width: m,
|
|
374
374
|
xAxisLabel: i = ""
|
|
375
375
|
}) => {
|
|
376
|
-
const _ =
|
|
376
|
+
const _ = x(), b = Yt(_, m), D = l / c * u, v = Math.abs(l) / c * e, A = d === void 0 || d === o ? "primary" : "secondary";
|
|
377
377
|
return /* @__PURE__ */ y("div", { className: `mx-cmn-barchart-bar-column ${b}`, children: [
|
|
378
378
|
/* @__PURE__ */ n("div", { style: { height: u }, children: l >= 0 && /* @__PURE__ */ n(
|
|
379
379
|
q,
|
|
380
380
|
{
|
|
381
381
|
ariaLabel: s,
|
|
382
382
|
color: r,
|
|
383
|
-
height:
|
|
383
|
+
height: D,
|
|
384
384
|
index: o,
|
|
385
385
|
label: g,
|
|
386
386
|
onClick: a,
|
|
@@ -395,7 +395,7 @@ const Ke = (s) => {
|
|
|
395
395
|
{
|
|
396
396
|
ariaLabel: s,
|
|
397
397
|
color: r,
|
|
398
|
-
height:
|
|
398
|
+
height: v,
|
|
399
399
|
index: o,
|
|
400
400
|
label: g,
|
|
401
401
|
onClick: a,
|
|
@@ -411,7 +411,7 @@ const Ke = (s) => {
|
|
|
411
411
|
}
|
|
412
412
|
)
|
|
413
413
|
] });
|
|
414
|
-
}, Yt = (s, t) =>
|
|
414
|
+
}, Yt = (s, t) => C({
|
|
415
415
|
display: "flex",
|
|
416
416
|
flexDirection: "column",
|
|
417
417
|
flexGrow: t === void 0 ? 1 : 0,
|
|
@@ -451,13 +451,13 @@ const Ke = (s) => {
|
|
|
451
451
|
selectedIndex: u,
|
|
452
452
|
valueFormatter: l = (g) => `${g}`
|
|
453
453
|
}) => {
|
|
454
|
-
const g =
|
|
454
|
+
const g = x(), m = Vt(g), i = r.reduce(Xt, []), _ = s !== void 0 ? s : i.reduce(Qt, 0) / i.length, b = Math.max(...i), D = Math.min(...i), v = i.reduce(zt, 0), A = b >= 0, R = D < 0, I = Q(A, R, o), N = Q(R, A, o), P = jt(_, b, D, I || N), tt = (w) => u === void 0 || w === u ? e : `${e}80`, O = () => /* @__PURE__ */ n(
|
|
455
455
|
Y,
|
|
456
456
|
{
|
|
457
457
|
averageLineHeight: P,
|
|
458
458
|
bottomHeight: N,
|
|
459
459
|
color: "",
|
|
460
|
-
range:
|
|
460
|
+
range: v,
|
|
461
461
|
topHeight: I,
|
|
462
462
|
value: 0,
|
|
463
463
|
width: void 0
|
|
@@ -476,7 +476,7 @@ const Ke = (s) => {
|
|
|
476
476
|
color: tt(M),
|
|
477
477
|
index: M,
|
|
478
478
|
onClick: d,
|
|
479
|
-
range:
|
|
479
|
+
range: v,
|
|
480
480
|
selectedIndex: u,
|
|
481
481
|
topHeight: I,
|
|
482
482
|
value: w.value,
|
|
@@ -490,7 +490,7 @@ const Ke = (s) => {
|
|
|
490
490
|
] }),
|
|
491
491
|
/* @__PURE__ */ n(Ft, { color: e, labelAverage: a, labelMain: c })
|
|
492
492
|
] });
|
|
493
|
-
}, Vt = (s) =>
|
|
493
|
+
}, Vt = (s) => C({
|
|
494
494
|
"& .mx-cmn-chart-container": {
|
|
495
495
|
alignItems: "flex-end",
|
|
496
496
|
display: "flex",
|
|
@@ -505,7 +505,7 @@ const Ke = (s) => {
|
|
|
505
505
|
strokeWidth: r = pt,
|
|
506
506
|
children: o
|
|
507
507
|
}) => {
|
|
508
|
-
const a =
|
|
508
|
+
const a = x(), c = Jt(a, e), d = (e - r) / 2, u = e / 2;
|
|
509
509
|
let l = -90 - (s ? 1 : 0), g = 0;
|
|
510
510
|
return /* @__PURE__ */ y("div", { className: `mx-cmn-multi-segment-donut ${c}`, children: [
|
|
511
511
|
/* @__PURE__ */ y("svg", { height: e, width: e, children: [
|
|
@@ -538,7 +538,7 @@ const Ke = (s) => {
|
|
|
538
538
|
] }),
|
|
539
539
|
/* @__PURE__ */ n("div", { className: "mx-cmn-multi-segment-donut-children", children: o })
|
|
540
540
|
] });
|
|
541
|
-
}, Jt = (s, t) =>
|
|
541
|
+
}, Jt = (s, t) => C({
|
|
542
542
|
height: t,
|
|
543
543
|
marginTop: `-${s.Spacing.XSmall}px`,
|
|
544
544
|
position: "relative",
|
|
@@ -853,7 +853,7 @@ class j {
|
|
|
853
853
|
updateHoldings = async (t) => this.fetchInstance.put(`${h.HOLDINGS}/${t.guid}`, t).then((e) => e.holding);
|
|
854
854
|
}
|
|
855
855
|
class ne {
|
|
856
|
-
analysisType =
|
|
856
|
+
analysisType = Dt.Stocks;
|
|
857
857
|
api = new j("/", "");
|
|
858
858
|
holdings = [];
|
|
859
859
|
holdingsLoaded = !1;
|
|
@@ -863,7 +863,7 @@ class ne {
|
|
|
863
863
|
this.globalStore = t, this.api = new j(t.endpoint, t.sessionToken, t.onError), f(this);
|
|
864
864
|
}
|
|
865
865
|
get analysisChartData() {
|
|
866
|
-
return
|
|
866
|
+
return vt(At(this.visibleHoldings), this.analysisType);
|
|
867
867
|
}
|
|
868
868
|
get analysisDetails() {
|
|
869
869
|
return Et(this.visibleHoldings)[this.analysisType] || {};
|
|
@@ -1099,7 +1099,7 @@ class de {
|
|
|
1099
1099
|
// if excluded from 1 widget, excluded from all
|
|
1100
1100
|
setSelectedAccounts = (t) => {
|
|
1101
1101
|
this.selectedAccounts = t.filter(
|
|
1102
|
-
(e) => !
|
|
1102
|
+
(e) => !e.is_excluded_from_accounts
|
|
1103
1103
|
), this.selectedAccountGuids = this.selectedAccounts.map((e) => e.guid);
|
|
1104
1104
|
};
|
|
1105
1105
|
// Sets an array of selected account guids for the AccountFilter component
|
|
@@ -1199,7 +1199,7 @@ class Je {
|
|
|
1199
1199
|
// UI Stores
|
|
1200
1200
|
globalUiStore;
|
|
1201
1201
|
constructor(t = K, e = "/", r) {
|
|
1202
|
-
this.appConfig = t, this.endpoint = e, this.sessionToken = t.options.session_token ?? "", this.onError = r, this.accountStore = new ft(this), this.appDataStore = new ie(this), this.analyticsStore = new ee(this), this.beatStore = new St(this), this.budgetsStore = new se(this), this.cashflowStore = new nt(this), this.categoryStore = new et(this), this.connectStore = new ce(this), this.copyStore = new te(this), this.debtsStore = new
|
|
1202
|
+
this.appConfig = t, this.endpoint = e, this.sessionToken = t.options.session_token ?? "", this.onError = r, this.accountStore = new ft(this), this.appDataStore = new ie(this), this.analyticsStore = new ee(this), this.beatStore = new St(this), this.budgetsStore = new se(this), this.cashflowStore = new nt(this), this.categoryStore = new et(this), this.connectStore = new ce(this), this.copyStore = new te(this), this.debtsStore = new Ct(this), this.finstrongStore = new xt(this), this.goalStore = new it(this), this.helpStore = new ae(this), this.holdingStore = new ne(this), this.merchantStore = new Tt(this), this.netWorthStore = new Bt(this), this.notificationStore = new st(this), this.recurringTransactionsStore = new mt(this), this.settingsStore = new It(this), this.transactionStore = new at(this), this.trendsStore = new ct(this), this.userStore = new le(this), this.globalUiStore = new de(this), f(this);
|
|
1203
1203
|
}
|
|
1204
1204
|
get isInitialized() {
|
|
1205
1205
|
return this.globalUiStore.isInitialized;
|
|
@@ -1231,7 +1231,7 @@ class Je {
|
|
|
1231
1231
|
};
|
|
1232
1232
|
}
|
|
1233
1233
|
export {
|
|
1234
|
-
|
|
1234
|
+
Ds as ANALYTICS_EVENTS,
|
|
1235
1235
|
Ts as AccountFilter,
|
|
1236
1236
|
Bs as AccountIcon,
|
|
1237
1237
|
Is as AccountIconVariants,
|
|
@@ -1263,7 +1263,7 @@ export {
|
|
|
1263
1263
|
gt as DEFAULT_DONUT_SIZE,
|
|
1264
1264
|
pt as DEFAULT_STROKE_WIDTH,
|
|
1265
1265
|
ar as DataRow,
|
|
1266
|
-
|
|
1266
|
+
vs as DateRangeSelector,
|
|
1267
1267
|
Fr as Dialog,
|
|
1268
1268
|
Rr as Donut,
|
|
1269
1269
|
jr as Drawer,
|
|
@@ -1286,15 +1286,15 @@ export {
|
|
|
1286
1286
|
Rt as IterationItemTypes,
|
|
1287
1287
|
Qe as LOADING_STATUS,
|
|
1288
1288
|
Or as LineChart,
|
|
1289
|
-
|
|
1290
|
-
|
|
1289
|
+
xr as ListItemAction,
|
|
1290
|
+
vr as ListItemRow,
|
|
1291
1291
|
ms as ListItemWrapper,
|
|
1292
1292
|
zs as Loader,
|
|
1293
1293
|
Xe as LocalizedCopyApi,
|
|
1294
1294
|
_r as MetaType,
|
|
1295
1295
|
Us as MfaStatuses,
|
|
1296
1296
|
bs as MicroWidgetContainer,
|
|
1297
|
-
|
|
1297
|
+
Cs as MiniWidgetContainer,
|
|
1298
1298
|
Ze as MultiSegmentDonut,
|
|
1299
1299
|
Ls as NonConnectedStatuses,
|
|
1300
1300
|
us as NotificationApi,
|
|
@@ -1358,10 +1358,10 @@ export {
|
|
|
1358
1358
|
ho as isValidNumber,
|
|
1359
1359
|
Xo as useAccountDisplayName,
|
|
1360
1360
|
wo as useAccountStore,
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1361
|
+
Co as useAppConfig,
|
|
1362
|
+
xo as useBudgetsStore,
|
|
1363
|
+
Do as useCashflowStore,
|
|
1364
|
+
vo as useCategoryStore,
|
|
1365
1365
|
os as useCombineEvents,
|
|
1366
1366
|
as as useCombinePageviews,
|
|
1367
1367
|
Ao as useDebtStore,
|
package/package.json
CHANGED