@mx-cartographer/experiences 6.1.4-alpha.san3 → 6.2.0-alpha-investments-widget
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 +2 -3
- package/dist/analytics/SurveyMiniWidget.d.ts +4 -0
- package/dist/analytics/components/OpenTextField.d.ts +4 -0
- package/dist/analytics/components/RatingScale.d.ts +4 -0
- package/dist/analytics/index.d.ts +1 -0
- package/dist/analytics/stores/AnalyticsStore.d.ts +22 -0
- package/dist/common/components/MiniWidgetContainer.d.ts +2 -0
- package/dist/common/components/charts/Donut.d.ts +3 -0
- package/dist/common/context/hooks.d.ts +1 -0
- package/dist/common/stores/GlobalStore.d.ts +2 -0
- package/dist/common/types/Global.d.ts +1 -0
- package/dist/common/types/GlobalCopy.d.ts +2 -1
- package/dist/common/types/Holding.d.ts +1 -0
- package/dist/common/types/localization/AnalyticsCopy.d.ts +17 -0
- package/dist/common/types/localization/index.d.ts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.es.js +7145 -6678
- package/dist/index.es.js.map +1 -1
- package/dist/investments/api/HoldingApi.d.ts +1 -2
- package/dist/investments/components/allocation/InvestementAllocationList.d.ts +8 -0
- package/dist/investments/components/allocation/InvestmentsAllocationChart.d.ts +39 -0
- package/dist/investments/components/allocation/util/createInvestementsAllocationData.d.ts +23 -0
- package/dist/investments/stores/HoldingStore.d.ts +0 -1
- package/package.json +1 -1
@@ -1,7 +1,6 @@
|
|
1
|
-
import { Fetch
|
1
|
+
import { Fetch } from '../../common';
|
2
2
|
export declare class HoldingApi {
|
3
3
|
fetchInstance: Fetch;
|
4
4
|
constructor(endpoint: string, token: string);
|
5
5
|
getHoldings: () => Promise<any>;
|
6
|
-
updateHoldings: (holding: Holding) => Promise<any>;
|
7
6
|
}
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import { InvestmentsAllocationData } from './InvestmentsAllocationChart';
|
2
|
+
interface InvestmentAllocationListProps {
|
3
|
+
data: InvestmentsAllocationData;
|
4
|
+
onSelected: (id: string) => void;
|
5
|
+
selectedId?: string;
|
6
|
+
}
|
7
|
+
export declare const InvestementAllocationList: ({ data, onSelected, selectedId, }: InvestmentAllocationListProps) => import("react/jsx-runtime").JSX.Element;
|
8
|
+
export {};
|
@@ -0,0 +1,39 @@
|
|
1
|
+
import { default as React } from 'react';
|
2
|
+
export interface DonutData {
|
3
|
+
id: string;
|
4
|
+
label?: string;
|
5
|
+
color: string;
|
6
|
+
value: number;
|
7
|
+
}
|
8
|
+
interface investmentAllocationTotals {
|
9
|
+
displayName: string;
|
10
|
+
name: string;
|
11
|
+
value: number;
|
12
|
+
percentage: number;
|
13
|
+
}
|
14
|
+
export interface InvestmentsAllocationTotal {
|
15
|
+
name: string;
|
16
|
+
displayName: string;
|
17
|
+
guid: string;
|
18
|
+
holdings: investmentAllocationTotals[];
|
19
|
+
percentage: number;
|
20
|
+
value: number;
|
21
|
+
color: string;
|
22
|
+
}
|
23
|
+
export interface InvestmentsAllocationData {
|
24
|
+
investmentsData: InvestmentsAllocationTotal[];
|
25
|
+
donutData: DonutData[];
|
26
|
+
totalAmount: number;
|
27
|
+
}
|
28
|
+
interface InvestementAllocationProps {
|
29
|
+
data: InvestmentsAllocationData;
|
30
|
+
hoveredId?: string;
|
31
|
+
onSelected: (id: string) => void;
|
32
|
+
onMouseEnter: (id: string) => void;
|
33
|
+
onMouseLeave: (id: string) => void;
|
34
|
+
selectedId?: string;
|
35
|
+
size?: number;
|
36
|
+
totalLabel: string;
|
37
|
+
}
|
38
|
+
export declare const InvestementsAllocationChart: React.FC<InvestementAllocationProps>;
|
39
|
+
export {};
|
@@ -0,0 +1,23 @@
|
|
1
|
+
import { Account, Holding } from '../../../../common';
|
2
|
+
import { DonutData } from '../InvestmentsAllocationChart';
|
3
|
+
interface investmentAllocationTotals {
|
4
|
+
displayName: string;
|
5
|
+
name: string;
|
6
|
+
value: number;
|
7
|
+
percentage: number;
|
8
|
+
}
|
9
|
+
interface InvestmentAllocationData {
|
10
|
+
name: string;
|
11
|
+
displayName: string;
|
12
|
+
guid: string;
|
13
|
+
holdings: investmentAllocationTotals[];
|
14
|
+
percentage: number;
|
15
|
+
value: number;
|
16
|
+
color: string;
|
17
|
+
}
|
18
|
+
export declare const createInvestmentsAllocationData: (holdings: Holding[], accounts: Account[]) => {
|
19
|
+
investmentsData: InvestmentAllocationData[];
|
20
|
+
donutData: DonutData[];
|
21
|
+
totalAmount: number;
|
22
|
+
};
|
23
|
+
export {};
|
package/package.json
CHANGED