@mx-cartographer/experiences 6.24.14 → 6.24.15-alpha-ram1-financialStrengthCardSection
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 +4 -0
- package/dist/common/context/hooks.d.ts +1 -0
- package/dist/common/types/Client.d.ts +1 -1
- package/dist/common/types/localization/FinstrongCopy.d.ts +21 -0
- package/dist/finstrong/FinancialStrengthCard.d.ts +8 -0
- package/dist/finstrong/components/ConnectMoreAccountsCard.d.ts +5 -1
- package/dist/finstrong/components/CreditScoreGraph.d.ts +11 -0
- package/dist/finstrong/components/FinancialStrengthGraph.d.ts +9 -0
- package/dist/finstrong/components/shared/CustomPieArc.d.ts +18 -0
- package/dist/finstrong/components/shared/DialScoreCard.d.ts +16 -0
- package/dist/finstrong/index.d.ts +3 -0
- package/dist/finstrong/stores/FinstrongStore.d.ts +2 -1
- package/dist/finstrong/util/finstrongUtils.d.ts +28 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.es.js +4890 -4463
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,7 @@ export declare const useCashflowStore: () => import('../..').CashflowStore;
|
|
|
7
7
|
export declare const useCategoryStore: () => import('../..').CategoryStore;
|
|
8
8
|
export declare const useConnectStore: () => import('../stores/ConnectStore').ConnectStore;
|
|
9
9
|
export declare const useDebtStore: () => import('../..').DebtsStore;
|
|
10
|
+
export declare const useFinstrongStore: () => import('../..').FinstrongStore;
|
|
10
11
|
export declare const useGlobalStore: () => import('..').GlobalStore;
|
|
11
12
|
export declare const useGlobalUiStore: () => import('../stores/GlobalUiStore').GlobalUiStore;
|
|
12
13
|
export declare const useGlobalCopyStore: () => import('..').GlobalCopy;
|
|
@@ -110,7 +110,7 @@ export interface ClientStyleProfile {
|
|
|
110
110
|
error_color_dark?: string;
|
|
111
111
|
warning_color_dark?: string;
|
|
112
112
|
info_color_dark?: string;
|
|
113
|
-
mode?: 'dark' | 'light' | 'browser'
|
|
113
|
+
mode?: 'dark' | 'light' | 'browser';
|
|
114
114
|
system_font?: string;
|
|
115
115
|
card_corner_radius?: number;
|
|
116
116
|
button_corner_radius?: number;
|
|
@@ -1,12 +1,33 @@
|
|
|
1
|
+
export interface CreditScoreStatusCopy {
|
|
2
|
+
poor: string;
|
|
3
|
+
fair: string;
|
|
4
|
+
good: string;
|
|
5
|
+
very_good: string;
|
|
6
|
+
exceptional: string;
|
|
7
|
+
missing_data: string;
|
|
8
|
+
}
|
|
9
|
+
export interface HealthScoreStatuDetailsCopy {
|
|
10
|
+
building: string;
|
|
11
|
+
stable: string;
|
|
12
|
+
strong: string;
|
|
13
|
+
vulnerable: string;
|
|
14
|
+
}
|
|
1
15
|
export interface FinstrongCopy {
|
|
16
|
+
accordion_details_text: HealthScoreStatuDetailsCopy;
|
|
17
|
+
accordion_title_text: string;
|
|
2
18
|
building: string;
|
|
3
19
|
connect_more_accounts_button: string;
|
|
4
20
|
connect_more_accounts_description: string;
|
|
5
21
|
connect_more_accounts_title: string;
|
|
6
22
|
connect_more_accounts_to_view_more_accurate_financial_picture: string;
|
|
23
|
+
credit_score_status: CreditScoreStatusCopy;
|
|
7
24
|
dont_see_all_your_accounts: string;
|
|
25
|
+
footer_center_content_updated_just_now: string;
|
|
8
26
|
finstrong_freedom_description: string;
|
|
27
|
+
health_score_zero_title: string;
|
|
28
|
+
health_score_zero_description: string;
|
|
9
29
|
how_do_we_do_this: string;
|
|
30
|
+
insufficient_data: string;
|
|
10
31
|
key_indicators: string;
|
|
11
32
|
see_whats_possible: string;
|
|
12
33
|
see_whats_possible_description: string;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
interface FinancialStrengthSectionProps {
|
|
2
|
+
healthScore?: number;
|
|
3
|
+
healthScoreChange?: number;
|
|
4
|
+
}
|
|
5
|
+
export declare const FinancialStrengthCard: (({ healthScore, healthScoreChange }: FinancialStrengthSectionProps) => import("react/jsx-runtime").JSX.Element) & {
|
|
6
|
+
displayName: string;
|
|
7
|
+
};
|
|
8
|
+
export {};
|
|
@@ -1,7 +1,11 @@
|
|
|
1
|
+
import { SxProps } from '@mui/material/styles';
|
|
1
2
|
interface ConnectMoreAccountsCardProps {
|
|
2
3
|
isDashboard?: boolean;
|
|
4
|
+
hasIcon?: boolean;
|
|
5
|
+
buttonText?: string;
|
|
3
6
|
title?: string;
|
|
4
7
|
description?: string;
|
|
8
|
+
sx?: SxProps;
|
|
5
9
|
}
|
|
6
|
-
export declare const ConnectMoreAccountsCard: ({ isDashboard, title, description, }: ConnectMoreAccountsCardProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export declare const ConnectMoreAccountsCard: ({ isDashboard, hasIcon, buttonText, title, description, sx, }: ConnectMoreAccountsCardProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
11
|
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export interface CreditScoreGraphProps {
|
|
2
|
+
arcRadius: number;
|
|
3
|
+
size?: 'L' | 'M' | 'SM';
|
|
4
|
+
healthScore: number;
|
|
5
|
+
maxValue?: number;
|
|
6
|
+
minValue?: number;
|
|
7
|
+
footerCenterContent?: string | number;
|
|
8
|
+
}
|
|
9
|
+
export declare const CreditScoreGraph: (({ arcRadius, size, healthScore, maxValue, minValue, footerCenterContent, }: CreditScoreGraphProps) => import("react/jsx-runtime").JSX.Element) & {
|
|
10
|
+
displayName: string;
|
|
11
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export interface FinacialStrengthGraphProps {
|
|
2
|
+
arcRadius: number;
|
|
3
|
+
size?: 'L' | 'M' | 'SM';
|
|
4
|
+
healthScore: number;
|
|
5
|
+
footerCenterContent?: string | number;
|
|
6
|
+
}
|
|
7
|
+
export declare const FinancialStrengthGraph: (({ arcRadius, size, healthScore, footerCenterContent }: FinacialStrengthGraphProps) => import("react/jsx-runtime").JSX.Element) & {
|
|
8
|
+
displayName: string;
|
|
9
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { PieValueType } from '@mui/x-charts';
|
|
2
|
+
interface CustomPieArcProps {
|
|
3
|
+
dialScoreData: PieValueType[];
|
|
4
|
+
dataIndex: number;
|
|
5
|
+
arcStartAngle: number;
|
|
6
|
+
totalAngularSpan: number;
|
|
7
|
+
centerX: number;
|
|
8
|
+
centerY: number;
|
|
9
|
+
arcRadius: number;
|
|
10
|
+
arcColor?: string;
|
|
11
|
+
innerArcRadius: number;
|
|
12
|
+
outterArcRadius: number;
|
|
13
|
+
unitsPerSegment: number;
|
|
14
|
+
progressEndAngle: number;
|
|
15
|
+
isFinacialStrengthGraph?: boolean;
|
|
16
|
+
}
|
|
17
|
+
export declare const CustomPieArc: ({ dialScoreData, dataIndex, arcColor, arcStartAngle, totalAngularSpan, centerX, centerY, arcRadius, innerArcRadius, outterArcRadius, progressEndAngle, unitsPerSegment, isFinacialStrengthGraph, }: CustomPieArcProps) => import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { PieValueType } from '@mui/x-charts';
|
|
2
|
+
export interface DialScoreCardProps {
|
|
3
|
+
arcRadius: number;
|
|
4
|
+
healthScore: number;
|
|
5
|
+
size: 'L' | 'M' | 'SM';
|
|
6
|
+
dialScoreData: PieValueType[];
|
|
7
|
+
minValue?: number;
|
|
8
|
+
maxValue?: number;
|
|
9
|
+
markerColor?: string;
|
|
10
|
+
healthScoreStatus: string;
|
|
11
|
+
footerCenterContent?: string | number;
|
|
12
|
+
footerLeftContent?: number;
|
|
13
|
+
footerRightContent?: number;
|
|
14
|
+
isFinacialStrengthGraph?: boolean;
|
|
15
|
+
}
|
|
16
|
+
export declare const DialScoreCard: ({ arcRadius, healthScore, size, dialScoreData, minValue, maxValue, markerColor, healthScoreStatus, footerCenterContent, footerLeftContent, footerRightContent, isFinacialStrengthGraph, }: DialScoreCardProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
export { DialScoreCard } from './components/shared/DialScoreCard';
|
|
2
|
+
export { FinancialStrengthGraph } from './components/FinancialStrengthGraph';
|
|
3
|
+
export { CreditScoreGraph } from './components/CreditScoreGraph';
|
|
1
4
|
export { FinstrongApi } from './api/FinstrongApi';
|
|
2
5
|
export { FinstrongStore } from './stores/FinstrongStore';
|
|
3
6
|
export { default as FinstrongWidget } from './FinstrongWidget';
|
|
@@ -5,10 +5,11 @@ export declare class FinstrongStore {
|
|
|
5
5
|
averageHealthScores: MonthlyHealthScore[];
|
|
6
6
|
globalStore: GlobalStore;
|
|
7
7
|
healthScore: HealthScore | null;
|
|
8
|
+
healthScoreChange?: number;
|
|
8
9
|
healthScoreChangeReports: HealthScoreReport[];
|
|
9
10
|
peerScore: number | null;
|
|
10
11
|
constructor(globalStore: GlobalStore);
|
|
11
|
-
calculateHealthScore: () => Promise<void>;
|
|
12
|
+
calculateHealthScore: (needHealthScoreChangeReports?: boolean) => Promise<void>;
|
|
12
13
|
loadAverageHealthScores: () => Promise<void>;
|
|
13
14
|
loadHealthScoreChangeReports: () => Promise<void>;
|
|
14
15
|
loadPeerScore: () => Promise<void>;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { PieValueType } from '@mui/x-charts';
|
|
2
|
+
import { CreditScoreStatusCopy, FinstrongCopy } from '../../common/types/localization/FinstrongCopy';
|
|
3
|
+
export declare const radiansToDegrees: (radians: number) => number;
|
|
4
|
+
export declare const calculateFinstrongScoreStatus: (healthScore: number, copy: FinstrongCopy, needHealthScoreStatusDetails?: boolean) => string;
|
|
5
|
+
export declare const CreditScoreLightColors: {
|
|
6
|
+
POOR: string;
|
|
7
|
+
FAIR: string;
|
|
8
|
+
GOOD: string;
|
|
9
|
+
VERY_GOOD: string;
|
|
10
|
+
EXCEPTIONAL: string;
|
|
11
|
+
};
|
|
12
|
+
export declare const CreditScoreDarkColors: {
|
|
13
|
+
POOR: string;
|
|
14
|
+
FAIR: string;
|
|
15
|
+
GOOD: string;
|
|
16
|
+
VERY_GOOD: string;
|
|
17
|
+
EXCEPTIONAL: string;
|
|
18
|
+
};
|
|
19
|
+
export declare const getCreditScoreDetails: (healthScore: number, isDarkMode: boolean, copy: CreditScoreStatusCopy) => {
|
|
20
|
+
status: string;
|
|
21
|
+
color: string;
|
|
22
|
+
} | {
|
|
23
|
+
status: string;
|
|
24
|
+
color?: undefined;
|
|
25
|
+
};
|
|
26
|
+
export declare const getOutterArcStartEndAngle: (healthScoreData: PieValueType[], totalAngularSpan: number, arcStartAngle: number, dataIndex: number) => number[];
|
|
27
|
+
export declare const getFilledArcStartEndAngle: (outterArcStartAngle: number, outterArcEndAngle: number, dataIndex: number, unitsPerSegment: number, progressEndAngle: number) => number[];
|
|
28
|
+
export declare const getMarkerXYCoordinates: (markerRadius: number, progressEndAngle: number, angleOffset?: number) => number[];
|
package/dist/index.d.ts
CHANGED