@mx-cartographer/experiences 6.24.15-alpha-ram1-financialStrengthCardSection → 6.24.15-alpha.al1
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/dist/common/components/ListItemRow.d.ts +13 -0
- package/dist/common/components/charts/LineChart.d.ts +15 -5
- package/dist/common/components/charts/linechart/CustomLegend.d.ts +7 -2
- package/dist/common/components/charts/linechart/CustomTooltip.d.ts +7 -0
- package/dist/common/components/listitems/CollapseExpandListItem.d.ts +7 -0
- package/dist/common/context/hooks.d.ts +0 -1
- package/dist/common/types/Category.d.ts +15 -0
- package/dist/common/types/index.d.ts +1 -1
- package/dist/common/types/localization/FinstrongCopy.d.ts +0 -21
- package/dist/finstrong/components/ConnectMoreAccountsCard.d.ts +1 -5
- package/dist/finstrong/index.d.ts +0 -3
- package/dist/finstrong/stores/FinstrongStore.d.ts +1 -2
- package/dist/index.d.ts +0 -1
- package/dist/index.es.js +8234 -8280
- package/dist/index.es.js.map +1 -1
- package/dist/trends/TrendsWidget.d.ts +5 -2
- package/dist/trends/components/CategoriesList.d.ts +6 -3
- package/dist/trends/components/CategoriesListItem.d.ts +3 -6
- package/dist/trends/components/CategoryDetailChart.d.ts +4 -0
- package/dist/trends/components/CategoryDetailDrawer.d.ts +7 -0
- package/dist/trends/components/DateRangeText.d.ts +9 -0
- package/dist/trends/components/TransactionsList.d.ts +7 -0
- package/dist/trends/components/TrendsChartTotals.d.ts +8 -0
- package/dist/trends/components/TrendsInsights.d.ts +5 -1
- package/dist/trends/components/TrendsViewToggle.d.ts +7 -0
- package/dist/trends/stores/TrendsStore.d.ts +15 -12
- package/dist/trends/utils/TrendsData.d.ts +2 -1
- package/package.json +1 -1
- package/dist/finstrong/FinancialStrengthCard.d.ts +0 -8
- package/dist/finstrong/components/CreditScoreGraph.d.ts +0 -11
- package/dist/finstrong/components/FinancialStrengthGraph.d.ts +0 -9
- package/dist/finstrong/components/shared/CustomPieArc.d.ts +0 -18
- package/dist/finstrong/components/shared/DialScoreCard.d.ts +0 -16
- package/dist/finstrong/util/finstrongUtils.d.ts +0 -28
- package/dist/trends/mocks.d.ts +0 -80
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import { WidgetProps } from '../common';
|
|
3
|
-
|
|
2
|
+
import { WidgetProps, Beat } from '../common';
|
|
3
|
+
interface TrendsWidgetProps extends WidgetProps {
|
|
4
|
+
onInsightCardClick?: (beat?: Beat) => void;
|
|
5
|
+
}
|
|
6
|
+
declare const _default: React.FunctionComponent<TrendsWidgetProps>;
|
|
4
7
|
export default _default;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { CategoryListItem } from '../../common';
|
|
3
|
+
interface CategoriesListProps {
|
|
4
|
+
onListItemClick: (data: CategoryListItem) => void;
|
|
5
|
+
}
|
|
6
|
+
declare const CategoriesList: React.FC<CategoriesListProps>;
|
|
4
7
|
export default CategoriesList;
|
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
categoryTotal?: string;
|
|
6
|
-
onClick: () => void;
|
|
7
|
-
transactionCount?: number;
|
|
2
|
+
import { CategoryListItem } from '../../common';
|
|
3
|
+
interface CategoriesListItemProps extends CategoryListItem {
|
|
4
|
+
onClick?: () => void;
|
|
8
5
|
}
|
|
9
6
|
declare const CategoriesListItem: React.FC<CategoriesListItemProps>;
|
|
10
7
|
export default CategoriesListItem;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
interface DateRangeTextProps {
|
|
2
|
+
selectedDateRange: {
|
|
3
|
+
start: Date;
|
|
4
|
+
end: Date;
|
|
5
|
+
};
|
|
6
|
+
selectedCategoryGuid: string;
|
|
7
|
+
}
|
|
8
|
+
declare const DateRangeText: ({ selectedDateRange, selectedCategoryGuid }: DateRangeTextProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export default DateRangeText;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { DateRange, MonthlyCategoryTotals } from '../../common';
|
|
3
|
+
interface TrendsChartTotalsProps {
|
|
4
|
+
selectedDateRange: DateRange;
|
|
5
|
+
totals: MonthlyCategoryTotals[];
|
|
6
|
+
}
|
|
7
|
+
declare const _default: React.FunctionComponent<TrendsChartTotalsProps>;
|
|
8
|
+
export default _default;
|
|
@@ -1,3 +1,7 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
|
|
2
|
+
import { Beat } from '../../common/types/Beat';
|
|
3
|
+
interface TrendsMicroInsightsProps {
|
|
4
|
+
onInsightCardClick?: (beat?: Beat) => void;
|
|
5
|
+
}
|
|
6
|
+
declare const _default: React.FunctionComponent<TrendsMicroInsightsProps>;
|
|
3
7
|
export default _default;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export type TrendsTabValue = 'Chart' | 'Table';
|
|
2
|
+
interface TrendsViewToggleProps {
|
|
3
|
+
selectedTab: TrendsTabValue;
|
|
4
|
+
onTabChange: (_event: React.SyntheticEvent, newValue: TrendsTabValue) => void;
|
|
5
|
+
}
|
|
6
|
+
declare const TrendsViewToggle: React.FC<TrendsViewToggleProps>;
|
|
7
|
+
export default TrendsViewToggle;
|
|
@@ -1,16 +1,19 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CategoryListItem, DateRange, GlobalStore, MonthlyCategoryTotals, Transaction } from '../../common';
|
|
2
2
|
export declare class TrendsStore {
|
|
3
3
|
globalStore: GlobalStore;
|
|
4
|
+
categoriesList: CategoryListItem[];
|
|
5
|
+
selectedCategoryData: CategoryListItem | null;
|
|
6
|
+
selectedDateRange: DateRange;
|
|
4
7
|
constructor(globalStore: GlobalStore);
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
get
|
|
11
|
-
get
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
}
|
|
8
|
+
setSelectedCategoryData: (category: CategoryListItem | null) => void;
|
|
9
|
+
setSelectedDateRange: (dateRange: DateRange) => void;
|
|
10
|
+
setCategoriesList: (monthlyCategoryTotals: MonthlyCategoryTotals[], transactions: Transaction[]) => void;
|
|
11
|
+
get selectedDateRangeMonthRange(): string;
|
|
12
|
+
get sortedCategoriesList(): CategoryListItem[];
|
|
13
|
+
get visibleListItems(): CategoryListItem[];
|
|
14
|
+
get collapsedListItems(): CategoryListItem[];
|
|
15
|
+
get categoryDetailsChartData(): Array<Array<{
|
|
16
|
+
x: string;
|
|
17
|
+
y: number;
|
|
18
|
+
}>>;
|
|
16
19
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { GridComparatorFn } from '@mui/x-data-grid-pro';
|
|
2
|
-
import { MonthlyCategoryTotals } from '../../common';
|
|
2
|
+
import { CategoryListItem, MonthlyCategoryTotals, Transaction } from '../../common';
|
|
3
3
|
type DataPoint = {
|
|
4
4
|
x: Date;
|
|
5
5
|
y: number;
|
|
@@ -14,4 +14,5 @@ export interface StackedLineChartData {
|
|
|
14
14
|
}
|
|
15
15
|
export declare const getStackedLineChartData: (totals: MonthlyCategoryTotals[], start: Date, end: Date) => StackedLineChartData[];
|
|
16
16
|
export declare const amountComparator: GridComparatorFn<string | number>;
|
|
17
|
+
export declare const buildCategoriesList: (monthlyCategoryTotals: MonthlyCategoryTotals[], transactions: Transaction[]) => CategoryListItem[];
|
|
17
18
|
export {};
|
package/package.json
CHANGED
|
@@ -1,8 +0,0 @@
|
|
|
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,11 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,9 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,18 +0,0 @@
|
|
|
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 {};
|
|
@@ -1,16 +0,0 @@
|
|
|
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,28 +0,0 @@
|
|
|
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/trends/mocks.d.ts
DELETED
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
export declare const mockStackedDatasetsSequential: {
|
|
2
|
-
top_level_category_guid: string;
|
|
3
|
-
category_guid: string;
|
|
4
|
-
category_name: string;
|
|
5
|
-
category_color: string;
|
|
6
|
-
dataset: {
|
|
7
|
-
x: Date;
|
|
8
|
-
y: number;
|
|
9
|
-
}[];
|
|
10
|
-
}[];
|
|
11
|
-
export declare const mockStackedDatasetsVarying: {
|
|
12
|
-
top_level_category_guid: string;
|
|
13
|
-
category_guid: string;
|
|
14
|
-
category_name: string;
|
|
15
|
-
category_color: string;
|
|
16
|
-
dataset: {
|
|
17
|
-
x: Date;
|
|
18
|
-
y: number;
|
|
19
|
-
}[];
|
|
20
|
-
}[];
|
|
21
|
-
export declare const mockStackedDatasetsOverlapping: {
|
|
22
|
-
top_level_category_guid: string;
|
|
23
|
-
category_guid: string;
|
|
24
|
-
category_name: string;
|
|
25
|
-
category_color: string;
|
|
26
|
-
dataset: {
|
|
27
|
-
x: Date;
|
|
28
|
-
y: number;
|
|
29
|
-
}[];
|
|
30
|
-
}[];
|
|
31
|
-
export declare const mockStackedDatasetsRepeatValues: {
|
|
32
|
-
top_level_category_guid: string;
|
|
33
|
-
category_guid: string;
|
|
34
|
-
category_name: string;
|
|
35
|
-
category_color: string;
|
|
36
|
-
dataset: {
|
|
37
|
-
x: Date;
|
|
38
|
-
y: number;
|
|
39
|
-
}[];
|
|
40
|
-
}[];
|
|
41
|
-
export declare const mockUnstackedDatasetsSequential: {
|
|
42
|
-
top_level_category_guid: string;
|
|
43
|
-
category_guid: string;
|
|
44
|
-
category_name: string;
|
|
45
|
-
category_color: string;
|
|
46
|
-
dataset: {
|
|
47
|
-
x: Date;
|
|
48
|
-
y: number;
|
|
49
|
-
}[];
|
|
50
|
-
}[];
|
|
51
|
-
export declare const mockUnstackedDatasetsVarying: {
|
|
52
|
-
top_level_category_guid: string;
|
|
53
|
-
category_guid: string;
|
|
54
|
-
category_name: string;
|
|
55
|
-
category_color: string;
|
|
56
|
-
dataset: {
|
|
57
|
-
x: Date;
|
|
58
|
-
y: number;
|
|
59
|
-
}[];
|
|
60
|
-
}[];
|
|
61
|
-
export declare const mockUnstackedDatasetsOverlapping: {
|
|
62
|
-
top_level_category_guid: string;
|
|
63
|
-
category_guid: string;
|
|
64
|
-
category_name: string;
|
|
65
|
-
category_color: string;
|
|
66
|
-
dataset: {
|
|
67
|
-
x: Date;
|
|
68
|
-
y: number;
|
|
69
|
-
}[];
|
|
70
|
-
}[];
|
|
71
|
-
export declare const mockUnstackedDatasetsRepeatValues: {
|
|
72
|
-
top_level_category_guid: string;
|
|
73
|
-
category_guid: string;
|
|
74
|
-
category_name: string;
|
|
75
|
-
category_color: string;
|
|
76
|
-
dataset: {
|
|
77
|
-
x: Date;
|
|
78
|
-
y: number;
|
|
79
|
-
}[];
|
|
80
|
-
}[];
|