@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.
- package/CHANGELOG.md +50 -0
- package/dist/{Account-B4CDD-zq.mjs → Account-CvR2-dSR.mjs} +1 -1
- package/dist/AccountDetailsContent-CitErkuS.mjs +686 -0
- package/dist/{AccountDetailsHeader-DRjFuyJT.mjs → AccountDetailsHeader-BkG3MNYo.mjs} +19 -19
- package/dist/{AccountFields-Cl4KHoSj.mjs → AccountFields-zCMqet85.mjs} +10 -12
- package/dist/AccountListItem-DHrz8Mml.mjs +90 -0
- package/dist/{AccountStore-HbVblv86.mjs → AccountStore-LgfBcYMe.mjs} +101 -75
- package/dist/Accounts-Bzy1_REQ.mjs +9 -0
- package/dist/{BudgetUtil-Jv8h9H9l.mjs → BudgetUtil-BmZXkL0C.mjs} +32 -32
- package/dist/{CashflowStore-CA190BPF.mjs → CashflowStore-D9Dpuz7X.mjs} +25 -18
- package/dist/{Category-Ccoew_sA.mjs → Category-CevNQ03n.mjs} +2 -2
- package/dist/{CategorySelectorDrawer-Dl006GKy.mjs → CategorySelectorDrawer-B-I3kajA.mjs} +27 -27
- package/dist/CategoryStore-CA3tS1BO.mjs +186 -0
- package/dist/CategoryUtil-DUM8NuGO.mjs +78 -0
- package/dist/{ConnectDrawer-DVp54lUH.mjs → ConnectDrawer-BkvlItWx.mjs} +55 -56
- package/dist/{ConnectionsDrawer-Dsc04-4Z.mjs → ConnectionsDrawer-VmuVFHbL.mjs} +5 -5
- package/dist/CurrencyInput-itK0R3wV.mjs +85 -0
- package/dist/{DateUtil-CDPZw_-m.mjs → DateUtil-CBdcsyuk.mjs} +1 -1
- package/dist/{DebtsStore-pL63fmdT.mjs → DebtsStore-Bq-aPy-5.mjs} +3 -3
- package/dist/{Dialog-CDV0kKxj.mjs → Dialog-BPTr3qHE.mjs} +24 -24
- package/dist/Drawer-By9V-B5L.mjs +178 -0
- package/dist/{ExportCsvAction-QhQK4_FU.mjs → ExportCsvAction-Cglo8Mca.mjs} +4 -4
- package/dist/{FinstrongStore-BGf36b0z.mjs → FinstrongStore-BIrX0Xg2.mjs} +56 -56
- package/dist/{GoalStore-C1-w3Y1E.mjs → GoalStore-1P19goZ7.mjs} +111 -151
- package/dist/HeaderCell-DjuifqHJ.mjs +6 -0
- package/dist/{Help-c-zHlDbv.mjs → Help-DhcC-C05.mjs} +8 -8
- package/dist/{Help-DBfsTkAi.mjs → Help-Ea3BlXQp.mjs} +146 -125
- package/dist/{IconBacking-DgT8DCeh.mjs → IconBacking-B9oC6uL2.mjs} +11 -11
- package/dist/LineChart-KpPw1phO.mjs +580 -0
- package/dist/{ListItemAction-BNCWQAN_.mjs → ListItemAction-BxTkF6Tz.mjs} +2 -2
- package/dist/Loader-DUaFpDGv.mjs +24 -0
- package/dist/{ManageIncome-8EsStyIQ.mjs → ManageIncome-CaoQl609.mjs} +142 -142
- package/dist/MicroWidgetContainer-r6mtxRer.mjs +52 -0
- package/dist/MiniWidgetContainer-Bg02sF1Y.mjs +71 -0
- package/dist/{NetWorthStore-Bti6u-d9.mjs → NetWorthStore-rC0q7P7t.mjs} +4 -4
- package/dist/NotificationSettings-uzM8tCoH.mjs +674 -0
- package/dist/{NotificationStore-Ck2KdNmT.mjs → NotificationStore-CDX_kqHa.mjs} +14 -22
- package/dist/{OriginalBalanceAction-2Y_3U_mg.mjs → OriginalBalanceAction-C6jdS4ws.mjs} +9 -9
- package/dist/{RecurringSettings-DAncu--R.mjs → RecurringSettings-B4ybrS0B.mjs} +17 -17
- package/dist/{RecurringTransactions-CxcSL1dY.mjs → RecurringTransactions-BqijW_8S.mjs} +79 -79
- package/dist/{RecurringTransactionsStore-CNFxyGB6.mjs → RecurringTransactionsStore-BhBUVm9a.mjs} +81 -91
- package/dist/{ResponsiveButton-Cn6-R7ue.mjs → ResponsiveButton-DZFp78fJ.mjs} +10 -10
- package/dist/SearchBox-B2_zLv8-.mjs +42 -0
- package/dist/{SettingsStore-BASMQSIp.mjs → SettingsStore-krIRNwHK.mjs} +1 -1
- package/dist/{SingleSegmentDonut-7Uy6VEld.mjs → SingleSegmentDonut-BgbLgwHi.mjs} +6 -6
- package/dist/SpendingData-DQ1b9uqq.mjs +53 -0
- package/dist/{SpendingLegend-6FqtMcBV.mjs → SpendingLegend-CDO060GT.mjs} +65 -65
- package/dist/{StatusBar-CPfSXe80.mjs → StatusBar-BK_uYHAB.mjs} +6 -6
- package/dist/{TabContentContainer-CnMXkVqr.mjs → TabContentContainer-j01JYR_7.mjs} +8 -8
- package/dist/TransactionDetails-m5PddMQn.mjs +1380 -0
- package/dist/TransactionStore-PRlwE-TF.mjs +677 -0
- package/dist/TrendsStore-yO7qYv97.mjs +186 -0
- package/dist/{User-BklmOUSd.mjs → User-Cnlegl1N.mjs} +107 -107
- package/dist/{ViewMoreMicroCard-DAkyNRlD.mjs → ViewMoreMicroCard-DwR0v_ll.mjs} +211 -205
- package/dist/{WidgetContainer-CDh9fjpR.mjs → WidgetContainer-CoFDmQRE.mjs} +36 -36
- package/dist/accounts/index.es.js +200 -197
- package/dist/accounts/stores/AccountStore.d.ts +22 -25
- package/dist/accounts/utils/Accounts.d.ts +1 -2
- package/dist/analytics/index.es.js +27 -27
- package/dist/budgets/components/AddBudgets.d.ts +2 -1
- package/dist/budgets/index.es.js +703 -669
- package/dist/budgets/store/BudgetsStore.d.ts +0 -1
- package/dist/cashflow/index.es.js +420 -404
- package/dist/categories/index.es.js +2 -2
- package/dist/categories/stores/CategoryStore.d.ts +3 -6
- package/dist/categories/util/CategoryUtil.d.ts +2 -3
- package/dist/common/components/ErrorBoundary.d.ts +1 -1
- package/dist/common/components/Loader.d.ts +2 -1
- package/dist/common/components/accountfilter/AccountFilterOptions.d.ts +1 -1
- package/dist/common/components/barchart/Bar.d.ts +25 -0
- package/dist/common/components/barchart/BarChart.d.ts +34 -0
- package/dist/common/components/barchart/BarColumn.d.ts +37 -0
- package/dist/common/components/barchart/Legend.d.ts +8 -0
- package/dist/common/components/barchart/Util.d.ts +42 -0
- package/dist/common/components/barchart/index.d.ts +1 -0
- package/dist/common/components/charts/linechart/CustomMark.d.ts +1 -1
- 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/index.d.ts +1 -0
- package/dist/common/hooks/index.d.ts +2 -0
- package/dist/common/hooks/useAriaLive.d.ts +1 -1
- package/dist/common/hooks/usePrevious.d.ts +2 -0
- package/dist/common/hooks/useWidgetLoadTimer.d.ts +6 -0
- package/dist/common/index.es.js +712 -436
- package/dist/common/stores/AppDataStore.d.ts +1 -3
- package/dist/common/stores/GlobalCopyStore.d.ts +1 -0
- package/dist/common/stores/GlobalStore.d.ts +3 -3
- package/dist/common/stores/GlobalUiStore.d.ts +2 -3
- package/dist/common/stores/UserStore.d.ts +2 -3
- package/dist/common/types/Account.d.ts +6 -9
- package/dist/common/types/localization/TransactionsCopy.d.ts +1 -0
- package/dist/common/utils/Theme.d.ts +3 -1
- package/dist/dashboard/index.es.js +93 -91
- package/dist/debts/components/DebtsChart.d.ts +2 -1
- package/dist/debts/index.es.js +529 -527
- package/dist/{exportTransactionsToCSV-BgV_wTLT.mjs → exportTransactionsToCSV-DuAaI5XA.mjs} +3 -3
- package/dist/finstrong/components/shared/CustomDoubleBarPlot.d.ts +4 -5
- package/dist/finstrong/index.es.js +876 -867
- package/dist/goals/index.es.js +526 -525
- package/dist/goals/stores/GoalStore.d.ts +4 -17
- package/dist/help/components/content/BottomImageContent.d.ts +1 -1
- package/dist/help/components/content/LeftImageContent.d.ts +1 -1
- package/dist/help/components/content/RightImageContent.d.ts +1 -1
- package/dist/help/components/content/TopImageContent.d.ts +1 -1
- package/dist/help/index.es.js +13 -9
- package/dist/{hooks-C41HAxM5.mjs → hooks-ZMp65DFz.mjs} +11 -11
- package/dist/investments/index.es.js +534 -531
- package/dist/investments/stores/HoldingStore.d.ts +0 -1
- package/dist/merchants/index.es.js +8 -8
- package/dist/microinsights/MicroCardTemplate.d.ts +16 -0
- package/dist/microinsights/index.d.ts +1 -0
- package/dist/microinsights/index.es.js +101 -14
- package/dist/networth/components/NetWorthChange.d.ts +1 -3
- package/dist/networth/index.es.js +284 -285
- package/dist/notifications/index.es.js +95 -94
- package/dist/notifications/stores/NotificationStore.d.ts +1 -3
- package/dist/recurringtransactions/index.es.js +582 -562
- package/dist/recurringtransactions/stores/RecurringTransactionsStore.d.ts +2 -4
- package/dist/settings/index.es.js +340 -337
- package/dist/spending/index.es.js +281 -268
- package/dist/transactions/components/shared/transactionlist/DateRow.d.ts +7 -0
- package/dist/transactions/index.es.js +253 -255
- package/dist/transactions/stores/TransactionStore.d.ts +77 -21
- package/dist/transactions/stores/UiStore.d.ts +2 -0
- package/dist/trends/components/TrendsTable.d.ts +0 -2
- package/dist/trends/index.es.js +838 -793
- package/dist/trends/utils/TrendsData.d.ts +1 -0
- package/dist/{useAccountDisplayName-CcIp09Xc.mjs → useAccountDisplayName-B7iXTNM8.mjs} +2 -2
- package/dist/{useCombineEvents-kNzLTWCp.mjs → useCombineEvents-CRwX-qWE.mjs} +2 -2
- package/dist/{useInsightsEnabled-CNjP5cfR.mjs → useInsightsEnabled-B7dxpDrX.mjs} +1 -1
- package/dist/{useScreenSize-B5afALev.mjs → useScreenSize-B6JyS_Lj.mjs} +1 -1
- package/dist/useWidgetLoadTimer-hIOioiKx.mjs +19 -0
- package/package.json +57 -52
- package/dist/AccountDetailsContent-adZTkM52.mjs +0 -683
- package/dist/AccountListItem-wgmlex-_.mjs +0 -90
- package/dist/Accounts-CRUehOiy.mjs +0 -27
- package/dist/CategoryStore-MUwRWH9e.mjs +0 -176
- package/dist/CategoryUtil-DfVKKkRf.mjs +0 -80
- package/dist/CurrencyInput-D1cjbdCI.mjs +0 -85
- package/dist/Drawer-BF40nbsH.mjs +0 -163
- package/dist/HeaderCell-P8w6CmfO.mjs +0 -6
- package/dist/LineChart-C1PxNf7P.mjs +0 -581
- package/dist/Loader-Ckqi9Rx6.mjs +0 -21
- package/dist/MicroWidgetContainer-BGpNl5ZS.mjs +0 -45
- package/dist/MiniWidgetContainer-CKzf_Ira.mjs +0 -56
- package/dist/NotificationSettings-B74rQVYC.mjs +0 -672
- package/dist/SearchBox-B7km148n.mjs +0 -39
- package/dist/SkeletonLoader-BaNboJjD.mjs +0 -38
- package/dist/SpendingData-DPQ96k3x.mjs +0 -55
- package/dist/TransactionDetails-Bn0qY5Hw.mjs +0 -1336
- package/dist/TransactionStore-DbwAutwC.mjs +0 -671
- package/dist/TrendsStore-_mRaFUdf.mjs +0 -182
- package/dist/common/components/SkeletonLoader.d.ts +0 -7
- package/dist/recurringtransactions/components/MicroWidgetContent.d.ts +0 -3
|
@@ -7,7 +7,6 @@ export declare class AppDataStore {
|
|
|
7
7
|
api: AppDataApi;
|
|
8
8
|
bannerApi: BannerApi;
|
|
9
9
|
appData: AppData;
|
|
10
|
-
isAppDataLoaded: boolean;
|
|
11
10
|
banner: Banner;
|
|
12
11
|
constructor(globalStore: GlobalStore);
|
|
13
12
|
get appConfig(): AppConfig;
|
|
@@ -16,8 +15,7 @@ export declare class AppDataStore {
|
|
|
16
15
|
get user(): User;
|
|
17
16
|
get userCommunicationProfile(): UserCommunicationProfile;
|
|
18
17
|
get userProfile(): UserProfile;
|
|
19
|
-
|
|
20
|
-
loadAppData: () => Promise<void>;
|
|
18
|
+
loadAppData: (appDataOverrides?: AppData) => Promise<void>;
|
|
21
19
|
loadBanner: () => Promise<void>;
|
|
22
20
|
setUser: (user: User) => User;
|
|
23
21
|
setUserCommunicationProfile: (profile: UserCommunicationProfile) => UserCommunicationProfile;
|
|
@@ -8,6 +8,7 @@ export declare class GlobalCopyStore {
|
|
|
8
8
|
featureNamespace: string;
|
|
9
9
|
isInitialized: boolean;
|
|
10
10
|
constructor(globalStore: GlobalStore);
|
|
11
|
+
initialize: (endpoint: string, token: string) => Promise<void>;
|
|
11
12
|
loadCopy: () => Promise<void>;
|
|
12
13
|
getCopy: (namespace: string, translationKey?: string) => Promise<void>;
|
|
13
14
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AccountStore } from '../../accounts';
|
|
2
2
|
import { AnalyticsStore } from '../../analytics/stores/AnalyticsStore';
|
|
3
|
-
import { BeatStore } from '../../insights';
|
|
3
|
+
import { BeatStore } from '../../insights/store/BeatStore';
|
|
4
4
|
import { BudgetsStore } from '../../budgets/store/BudgetsStore';
|
|
5
5
|
import { CashflowStore } from '../../cashflow';
|
|
6
6
|
import { CategoryStore } from '../../categories';
|
|
@@ -21,7 +21,8 @@ import { ConnectStore } from './ConnectStore';
|
|
|
21
21
|
import { GlobalCopyStore } from './GlobalCopyStore';
|
|
22
22
|
import { GlobalUiStore } from './GlobalUiStore';
|
|
23
23
|
import { UserStore } from './UserStore';
|
|
24
|
-
import { Account, Category, Institution, Member
|
|
24
|
+
import { Account, Category, Institution, Member } from '../../common';
|
|
25
|
+
import { AppConfig, AppData, Beat, GlobalErrorHandler, Tag, Tagging, Transaction, TransactionRule, UserFeature } from '../types';
|
|
25
26
|
interface LoadDataProps {
|
|
26
27
|
accounts?: Account[];
|
|
27
28
|
appData?: AppData;
|
|
@@ -71,7 +72,6 @@ export declare class GlobalStore {
|
|
|
71
72
|
constructor(appConfig?: AppConfig, endpoint?: string, onError?: GlobalErrorHandler, onStoreUpdate?: OnStoreUpdate);
|
|
72
73
|
get isInitialized(): boolean;
|
|
73
74
|
emitUpdate: (change: ObservedUpdate) => void;
|
|
74
|
-
loadConfigData: () => Promise<void>;
|
|
75
75
|
loadData: ({ accounts, appData, associatedBeats, categories, institutions, transactionRules, transactions, userFeatures, }?: LoadDataProps) => Promise<void>;
|
|
76
76
|
}
|
|
77
77
|
export {};
|
|
@@ -2,6 +2,7 @@ import { Account } from '../types';
|
|
|
2
2
|
import { GlobalStore } from './GlobalStore';
|
|
3
3
|
export declare class GlobalUiStore {
|
|
4
4
|
globalStore: GlobalStore;
|
|
5
|
+
isInitialized: boolean;
|
|
5
6
|
selectedAccounts: Account[];
|
|
6
7
|
selectedAccountGuids: string[];
|
|
7
8
|
displayedDate: Date;
|
|
@@ -11,9 +12,7 @@ export declare class GlobalUiStore {
|
|
|
11
12
|
};
|
|
12
13
|
constructor(globalStore: GlobalStore);
|
|
13
14
|
get isCopyLoaded(): boolean;
|
|
14
|
-
|
|
15
|
-
get areUserFeaturesLoaded(): boolean;
|
|
16
|
-
get isInitialized(): boolean;
|
|
15
|
+
setInitialized: (isInitialized: boolean) => void;
|
|
17
16
|
setSelectedAccounts: (accounts: Account[]) => void;
|
|
18
17
|
setSelectedAccountGuids: (guids: string[]) => Promise<void>;
|
|
19
18
|
setDisplayedDate: (startDate: Date, endDate: Date) => void;
|
|
@@ -5,12 +5,11 @@ export declare class UserStore {
|
|
|
5
5
|
globalStore: GlobalStore;
|
|
6
6
|
api: UserApi;
|
|
7
7
|
userFeatures: UserFeature[];
|
|
8
|
-
userFeaturesLoaded: boolean;
|
|
9
8
|
constructor(globalStore: GlobalStore);
|
|
9
|
+
initialize: (endpoint: string, token: string) => Promise<void>;
|
|
10
10
|
get userProfile(): UserProfile;
|
|
11
11
|
get user(): User;
|
|
12
|
-
|
|
13
|
-
loadUserFeatures: () => Promise<void>;
|
|
12
|
+
loadUserFeatures: (featuresOverrides?: UserFeature[]) => Promise<void>;
|
|
14
13
|
updateUser: (user: User) => Promise<void>;
|
|
15
14
|
updateUserProfile: (userProfile: UserProfile) => Promise<void>;
|
|
16
15
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { Institution } from './Institution';
|
|
2
1
|
export interface Account {
|
|
3
2
|
account_number?: string;
|
|
4
3
|
account_subtype?: AccountSubType;
|
|
@@ -65,20 +64,17 @@ export interface Account {
|
|
|
65
64
|
memberName?: string;
|
|
66
65
|
connectionStatus?: ConnectionStatus;
|
|
67
66
|
displayName?: string;
|
|
68
|
-
|
|
67
|
+
truncatedDisplayName?: string;
|
|
69
68
|
institutionName?: string;
|
|
70
69
|
}
|
|
71
70
|
export interface DetailedAccount extends Account {
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
member?: Member;
|
|
76
|
-
monthlyBalances?: MonthlyAccountBalance[];
|
|
77
|
-
institution?: Institution;
|
|
71
|
+
institution_name: string;
|
|
72
|
+
isEnabled: boolean;
|
|
73
|
+
name: string;
|
|
78
74
|
}
|
|
79
75
|
export interface Member {
|
|
80
76
|
aggregation_status: number;
|
|
81
|
-
connection_status:
|
|
77
|
+
connection_status: number;
|
|
82
78
|
guid: string;
|
|
83
79
|
institution_guid: string;
|
|
84
80
|
institution_name?: string;
|
|
@@ -102,6 +98,7 @@ export interface Member {
|
|
|
102
98
|
verification_is_enabled: boolean;
|
|
103
99
|
tax_statement_is_enabled: boolean;
|
|
104
100
|
successfully_aggregated_at?: number;
|
|
101
|
+
connectionStatus?: ConnectionStatus;
|
|
105
102
|
}
|
|
106
103
|
export interface MonthlyAccountBalance {
|
|
107
104
|
account_guid: string;
|
|
@@ -49,6 +49,7 @@ export interface TransactionsCopy {
|
|
|
49
49
|
merchant_logo_modal_desc_bold: string;
|
|
50
50
|
merchant_logo_modal_title: string;
|
|
51
51
|
merchant_logo_title: string;
|
|
52
|
+
payee_edit: string;
|
|
52
53
|
payee_title: string;
|
|
53
54
|
split_transaction_add_split_btn: string;
|
|
54
55
|
split_transaction_category_label: string;
|
|
@@ -9,9 +9,11 @@ export declare const getClientTheme: (theme: Theme, clientStyleProfile: ClientSt
|
|
|
9
9
|
};
|
|
10
10
|
palette: {
|
|
11
11
|
[k: string]: PaletteColor | {
|
|
12
|
+
lighter: string;
|
|
12
13
|
light: string;
|
|
13
14
|
main: string;
|
|
14
15
|
dark: string;
|
|
16
|
+
darker: string;
|
|
15
17
|
};
|
|
16
18
|
};
|
|
17
19
|
components: {
|
|
@@ -64,7 +66,7 @@ export declare const getClientTheme: (theme: Theme, clientStyleProfile: ClientSt
|
|
|
64
66
|
MuiPickersCalendarHeader: {
|
|
65
67
|
styleOverrides: {
|
|
66
68
|
switchViewButton: {
|
|
67
|
-
color: string;
|
|
69
|
+
color: string | undefined;
|
|
68
70
|
'&:hover': {
|
|
69
71
|
backgroundColor: string;
|
|
70
72
|
};
|
|
@@ -1,29 +1,30 @@
|
|
|
1
|
-
import { jsx as t, jsxs as
|
|
2
|
-
import
|
|
1
|
+
import { jsx as t, jsxs as a } from "react/jsx-runtime";
|
|
2
|
+
import c from "react";
|
|
3
3
|
import { observer as _ } from "mobx-react-lite";
|
|
4
|
-
import h from "@mui/material/
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import { f as A, u as v, d as C, b as
|
|
9
|
-
import
|
|
10
|
-
import { Icon as S, H1 as
|
|
11
|
-
import { useMediaQuery as
|
|
4
|
+
import h from "@mui/material/Unstable_Grid2";
|
|
5
|
+
import d from "@mui/material/Skeleton";
|
|
6
|
+
import s from "@mui/material/Stack";
|
|
7
|
+
import D from "@mui/material/styles/useTheme";
|
|
8
|
+
import { f as A, u as v, d as C, b as M, a as k } from "../hooks-ZMp65DFz.mjs";
|
|
9
|
+
import B from "@mui/material/Paper";
|
|
10
|
+
import { Icon as S, H1 as G, P as F } from "@mxenabled/mxui";
|
|
11
|
+
import { useMediaQuery as W } from "@mui/system";
|
|
12
12
|
import T from "@mui/material/Box";
|
|
13
|
-
import
|
|
13
|
+
import I from "@mui/material/Button";
|
|
14
14
|
import $ from "@mui/material/IconButton";
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import { k as
|
|
18
|
-
import { u as
|
|
19
|
-
|
|
15
|
+
import H from "@mui/material/Tooltip";
|
|
16
|
+
import R from "@mui/material/useMediaQuery";
|
|
17
|
+
import { k as j, l as Q } from "../ConnectDrawer-BkvlItWx.mjs";
|
|
18
|
+
import { u as z } from "../useScreenSize-B6JyS_Lj.mjs";
|
|
19
|
+
import { u as E } from "../useWidgetLoadTimer-hIOioiKx.mjs";
|
|
20
|
+
const N = _(() => {
|
|
20
21
|
const e = D(), {
|
|
21
|
-
appDataStore: { banner:
|
|
22
|
+
appDataStore: { banner: r, loadBanner: i, user: u }
|
|
22
23
|
} = A();
|
|
23
|
-
return
|
|
24
|
+
return c.useEffect(() => {
|
|
24
25
|
i().finally();
|
|
25
|
-
}, [
|
|
26
|
-
|
|
26
|
+
}, [u]), r?.image_url ? /* @__PURE__ */ t(
|
|
27
|
+
s,
|
|
27
28
|
{
|
|
28
29
|
sx: {
|
|
29
30
|
alignItems: "center",
|
|
@@ -33,7 +34,7 @@ const P = _(() => {
|
|
|
33
34
|
children: /* @__PURE__ */ t(
|
|
34
35
|
"a",
|
|
35
36
|
{
|
|
36
|
-
href:
|
|
37
|
+
href: r?.redirect_url,
|
|
37
38
|
rel: "noreferrer",
|
|
38
39
|
style: {
|
|
39
40
|
width: "100%"
|
|
@@ -43,7 +44,7 @@ const P = _(() => {
|
|
|
43
44
|
"img",
|
|
44
45
|
{
|
|
45
46
|
alt: "",
|
|
46
|
-
src:
|
|
47
|
+
src: r.image_url,
|
|
47
48
|
style: {
|
|
48
49
|
width: "100%",
|
|
49
50
|
height: "auto",
|
|
@@ -55,25 +56,25 @@ const P = _(() => {
|
|
|
55
56
|
)
|
|
56
57
|
}
|
|
57
58
|
) : null;
|
|
58
|
-
}),
|
|
59
|
-
const { common:
|
|
60
|
-
return /* @__PURE__ */ t(T, { my: 4, children: i ? /* @__PURE__ */ t(
|
|
59
|
+
}), P = ({ handleConnectClick: e }) => {
|
|
60
|
+
const { common: r } = v(), i = R("(max-width: 700px)");
|
|
61
|
+
return /* @__PURE__ */ t(T, { my: 4, children: i ? /* @__PURE__ */ t(H, { id: "add-accounts", placement: "bottom", title: r.add_accounts, children: /* @__PURE__ */ t(
|
|
61
62
|
$,
|
|
62
63
|
{
|
|
63
64
|
"aria-controls": "add_accounts",
|
|
64
65
|
"aria-describedby": "add-accounts",
|
|
65
66
|
"aria-haspopup": !0,
|
|
66
|
-
"aria-label":
|
|
67
|
+
"aria-label": r.add_accounts,
|
|
67
68
|
color: "primary",
|
|
68
69
|
onClick: e,
|
|
69
70
|
children: /* @__PURE__ */ t(S, { name: "add", size: 24 })
|
|
70
71
|
}
|
|
71
72
|
) }) : /* @__PURE__ */ t(
|
|
72
|
-
|
|
73
|
+
I,
|
|
73
74
|
{
|
|
74
75
|
"aria-controls": "add_accounts",
|
|
75
76
|
"aria-haspopup": !0,
|
|
76
|
-
"aria-label":
|
|
77
|
+
"aria-label": r.add_accounts,
|
|
77
78
|
onClick: e,
|
|
78
79
|
startIcon: /* @__PURE__ */ t(S, { name: "add", size: 24 }),
|
|
79
80
|
sx: {
|
|
@@ -82,44 +83,44 @@ const P = _(() => {
|
|
|
82
83
|
minWidth: "max-content"
|
|
83
84
|
},
|
|
84
85
|
variant: "text",
|
|
85
|
-
children:
|
|
86
|
+
children: r.add_accounts
|
|
86
87
|
}
|
|
87
88
|
) });
|
|
88
|
-
}, O = _(
|
|
89
|
-
const [e,
|
|
89
|
+
}, O = _(P), U = () => {
|
|
90
|
+
const [e, r] = c.useState(!1), i = W("(max-width:320px)"), { visibleAccounts: u } = C(), { selectedAccountGuids: g, setSelectedAccountGuids: b } = M(), { common: o, connect: l } = v(), { config: m } = k(), { isMobile: x } = z(), n = {
|
|
90
91
|
accountFilterOptionsCopy: {
|
|
91
|
-
accountTypeAccounts:
|
|
92
|
-
cancelButton:
|
|
93
|
-
filterButton:
|
|
94
|
-
filterButtonAria:
|
|
95
|
-
selectAllAccounts:
|
|
96
|
-
toggleAccountTypeAccounts:
|
|
97
|
-
unselectAllAccounts:
|
|
98
|
-
zeroStateButton:
|
|
99
|
-
zeroStateDescription:
|
|
100
|
-
zeroStateTitle:
|
|
92
|
+
accountTypeAccounts: o.account_filter.account_type_accounts,
|
|
93
|
+
cancelButton: o.cancel_button,
|
|
94
|
+
filterButton: o.filter_button,
|
|
95
|
+
filterButtonAria: o.account_filter.filter_button_generic_aria,
|
|
96
|
+
selectAllAccounts: o.account_filter.select_all_accounts,
|
|
97
|
+
toggleAccountTypeAccounts: o.account_filter.toggle_account_type_accounts,
|
|
98
|
+
unselectAllAccounts: o.account_filter.unselect_all_accounts,
|
|
99
|
+
zeroStateButton: o.account_filter.zero_state_button,
|
|
100
|
+
zeroStateDescription: o.account_filter.zero_state_description,
|
|
101
|
+
zeroStateTitle: o.account_filter.zero_state_title
|
|
101
102
|
},
|
|
102
|
-
title:
|
|
103
|
-
},
|
|
103
|
+
title: o.filter_button
|
|
104
|
+
}, w = () => {
|
|
104
105
|
const p = (/* @__PURE__ */ new Date()).getHours();
|
|
105
|
-
return p > 1 && p < 12 ?
|
|
106
|
+
return p > 1 && p < 12 ? o.good_morning : p >= 12 && p < 18 ? o.good_afternoon : o.good_evening;
|
|
106
107
|
};
|
|
107
|
-
return /* @__PURE__ */
|
|
108
|
-
/* @__PURE__ */ t(
|
|
109
|
-
/* @__PURE__ */ s
|
|
110
|
-
/* @__PURE__ */ t(
|
|
111
|
-
/* @__PURE__ */ t(
|
|
108
|
+
return /* @__PURE__ */ a(c.Fragment, { children: [
|
|
109
|
+
/* @__PURE__ */ t(B, { sx: { gap: 12, mb: x ? 24 : 0, p: 24 }, children: /* @__PURE__ */ a(s, { alignItems: "center", flexDirection: "row", justifyContent: "space-between", children: [
|
|
110
|
+
/* @__PURE__ */ a(s, { children: [
|
|
111
|
+
/* @__PURE__ */ t(G, { variant: i ? "H2" : "H1", children: w() }),
|
|
112
|
+
/* @__PURE__ */ t(F, { color: "text.secondary", children: o.heres_your_spending_overview })
|
|
112
113
|
] }),
|
|
113
|
-
/* @__PURE__ */ s
|
|
114
|
-
|
|
114
|
+
/* @__PURE__ */ a(s, { flexDirection: "row", children: [
|
|
115
|
+
m.show_connections_widget_in_master && /* @__PURE__ */ t(O, { handleConnectClick: () => r(!0) }),
|
|
115
116
|
/* @__PURE__ */ t(
|
|
116
|
-
|
|
117
|
+
j,
|
|
117
118
|
{
|
|
118
|
-
accounts:
|
|
119
|
-
copy:
|
|
120
|
-
onConnectAccountClick:
|
|
121
|
-
onFilterClick: (
|
|
122
|
-
b(
|
|
119
|
+
accounts: u,
|
|
120
|
+
copy: n,
|
|
121
|
+
onConnectAccountClick: m.show_connections_widget_in_master ? () => r(!0) : void 0,
|
|
122
|
+
onFilterClick: (y) => {
|
|
123
|
+
b(y);
|
|
123
124
|
},
|
|
124
125
|
selectedAccountGuids: g,
|
|
125
126
|
showAccountNumbers: !1,
|
|
@@ -132,52 +133,53 @@ const P = _(() => {
|
|
|
132
133
|
] })
|
|
133
134
|
] }) }),
|
|
134
135
|
e && /* @__PURE__ */ t(
|
|
135
|
-
|
|
136
|
+
Q,
|
|
136
137
|
{
|
|
137
|
-
onClose: () =>
|
|
138
|
+
onClose: () => r(!1),
|
|
138
139
|
showConnectWidget: e,
|
|
139
|
-
title:
|
|
140
|
+
title: l.mini_title
|
|
140
141
|
}
|
|
141
142
|
)
|
|
142
143
|
] });
|
|
143
144
|
}, q = _(U);
|
|
144
145
|
var f = /* @__PURE__ */ ((e) => (e[e.Main = 0] = "Main", e[e.RightSide = 1] = "RightSide", e[e.Disabled = 2] = "Disabled", e))(f || {});
|
|
145
|
-
const J = ({ widgets: e, isLoading:
|
|
146
|
-
const { isDesktop: i, isMobile:
|
|
147
|
-
|
|
148
|
-
b(
|
|
149
|
-
}, [
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
146
|
+
const J = ({ widgets: e, isLoading: r }) => {
|
|
147
|
+
const { isDesktop: i, isMobile: u } = z(), { copyStore: g } = A(), { setSelectedAccounts: b } = M(), { visibleAccounts: o } = C();
|
|
148
|
+
c.useEffect(() => {
|
|
149
|
+
b(o);
|
|
150
|
+
}, [o]), E({
|
|
151
|
+
widgetName: "Dashboard",
|
|
152
|
+
isLoaded: !r
|
|
153
|
+
});
|
|
154
|
+
const l = c.useMemo(
|
|
155
|
+
() => e.filter((n) => n.location !== f.Disabled).sort((n, w) => n.index - w.index),
|
|
154
156
|
[e]
|
|
155
|
-
),
|
|
156
|
-
() =>
|
|
157
|
-
[
|
|
158
|
-
),
|
|
159
|
-
() =>
|
|
160
|
-
[
|
|
157
|
+
), m = c.useMemo(
|
|
158
|
+
() => l.filter((n) => n.location === f.Main),
|
|
159
|
+
[l]
|
|
160
|
+
), x = c.useMemo(
|
|
161
|
+
() => l.filter((n) => n.location === f.RightSide),
|
|
162
|
+
[l]
|
|
161
163
|
);
|
|
162
|
-
return /* @__PURE__ */
|
|
163
|
-
/* @__PURE__ */ t(h, {
|
|
164
|
-
/* @__PURE__ */
|
|
165
|
-
/* @__PURE__ */ t(
|
|
166
|
-
|
|
167
|
-
/* @__PURE__ */ t(
|
|
168
|
-
/* @__PURE__ */ t(
|
|
169
|
-
/* @__PURE__ */ t(
|
|
164
|
+
return /* @__PURE__ */ a(h, { container: !0, spacing: u ? 0 : 24, sx: { overflow: "scroll" }, children: [
|
|
165
|
+
/* @__PURE__ */ t(h, { xs: 12, children: g.isInitialized && /* @__PURE__ */ t(q, {}) }),
|
|
166
|
+
/* @__PURE__ */ a(h, { lg: 8, xs: 12, children: [
|
|
167
|
+
/* @__PURE__ */ t(N, {}),
|
|
168
|
+
r && /* @__PURE__ */ a(s, { direction: "column", spacing: 24, children: [
|
|
169
|
+
/* @__PURE__ */ t(d, { height: 100, variant: "rounded", width: "100%" }),
|
|
170
|
+
/* @__PURE__ */ t(d, { height: 300, variant: "rounded", width: "100%" }),
|
|
171
|
+
/* @__PURE__ */ t(d, { height: 300, variant: "rounded", width: "100%" })
|
|
170
172
|
] }),
|
|
171
|
-
!
|
|
173
|
+
!r && /* @__PURE__ */ t(s, { direction: "column", spacing: 24, children: i ? m.map((n) => /* @__PURE__ */ t(c.Fragment, { children: n.component }, n.index)) : l.map((n) => /* @__PURE__ */ t(c.Fragment, { children: n.component }, n.index)) })
|
|
172
174
|
] }),
|
|
173
|
-
i && /* @__PURE__ */ t(h, {
|
|
174
|
-
/* @__PURE__ */ t(
|
|
175
|
-
/* @__PURE__ */ t(
|
|
176
|
-
/* @__PURE__ */ t(
|
|
177
|
-
] }) : /* @__PURE__ */ t(
|
|
175
|
+
i && /* @__PURE__ */ t(h, { lg: 4, children: r ? /* @__PURE__ */ a(s, { direction: "column", spacing: 24, children: [
|
|
176
|
+
/* @__PURE__ */ t(d, { height: 200, variant: "rounded", width: "100%" }),
|
|
177
|
+
/* @__PURE__ */ t(d, { height: 100, variant: "rounded", width: "100%" }),
|
|
178
|
+
/* @__PURE__ */ t(d, { height: 300, variant: "rounded", width: "100%" })
|
|
179
|
+
] }) : /* @__PURE__ */ t(s, { direction: "column", spacing: 24, children: x.map((n) => /* @__PURE__ */ t(c.Fragment, { children: n.component }, n.index)) }) })
|
|
178
180
|
] });
|
|
179
|
-
},
|
|
181
|
+
}, pt = _(J);
|
|
180
182
|
export {
|
|
181
|
-
|
|
183
|
+
pt as Dashboard,
|
|
182
184
|
f as DashboardLocation
|
|
183
185
|
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
1
2
|
import { DebtChartData } from '../utils/DebtsWidget';
|
|
2
3
|
interface DebtsChartProps {
|
|
3
4
|
sx?: any;
|
|
@@ -8,5 +9,5 @@ interface DebtsChartProps {
|
|
|
8
9
|
onClickArea?: () => void;
|
|
9
10
|
onHoverArea?: (debtGuid: string) => void;
|
|
10
11
|
}
|
|
11
|
-
export declare const DebtsChart:
|
|
12
|
+
export declare const DebtsChart: React.FC<DebtsChartProps>;
|
|
12
13
|
export {};
|