@undp/carbon-library 1.0.85 → 1.0.87
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/index.js +3582 -214
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/Components/MrvDashboard/listWidgetComponent.d.ts +14 -0
- package/dist/cjs/types/Components/MrvDashboard/mapStatsComponent.d.ts +18 -0
- package/dist/cjs/types/Components/MrvDashboard/mrvBarChartStatsComponent.d.ts +12 -0
- package/dist/cjs/types/Components/MrvDashboard/mrvChartOptions.d.ts +113 -0
- package/dist/cjs/types/Components/MrvDashboard/mrvDashboardViewComponent.d.ts +3 -0
- package/dist/cjs/types/Components/MrvDashboard/mrvPieChartStatComponent.d.ts +12 -0
- package/dist/cjs/types/Components/RegistryDashboard/dashboardTypesInitialValues.d.ts +18 -0
- package/dist/cjs/types/Components/RegistryDashboard/programmeRejectAndTransferComponent.d.ts +11 -0
- package/dist/cjs/types/Components/RegistryDashboard/registryBarChartStatsComponent.d.ts +12 -0
- package/dist/cjs/types/Components/RegistryDashboard/registryChartOptions.d.ts +6 -0
- package/dist/cjs/types/Components/RegistryDashboard/registryDashboardViewComponent.d.ts +3 -0
- package/dist/cjs/types/Components/RegistryDashboard/registryPieChartStatComponent.d.ts +12 -0
- package/dist/cjs/types/Components/index.d.ts +2 -0
- package/dist/cjs/types/Styles/index.d.ts +1 -0
- package/dist/cjs/types/index.d.ts +1 -0
- package/dist/esm/index.js +3564 -217
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/Components/MrvDashboard/listWidgetComponent.d.ts +14 -0
- package/dist/esm/types/Components/MrvDashboard/mapStatsComponent.d.ts +18 -0
- package/dist/esm/types/Components/MrvDashboard/mrvBarChartStatsComponent.d.ts +12 -0
- package/dist/esm/types/Components/MrvDashboard/mrvChartOptions.d.ts +113 -0
- package/dist/esm/types/Components/MrvDashboard/mrvDashboardViewComponent.d.ts +3 -0
- package/dist/esm/types/Components/MrvDashboard/mrvPieChartStatComponent.d.ts +12 -0
- package/dist/esm/types/Components/RegistryDashboard/dashboardTypesInitialValues.d.ts +18 -0
- package/dist/esm/types/Components/RegistryDashboard/programmeRejectAndTransferComponent.d.ts +11 -0
- package/dist/esm/types/Components/RegistryDashboard/registryBarChartStatsComponent.d.ts +12 -0
- package/dist/esm/types/Components/RegistryDashboard/registryChartOptions.d.ts +6 -0
- package/dist/esm/types/Components/RegistryDashboard/registryDashboardViewComponent.d.ts +3 -0
- package/dist/esm/types/Components/RegistryDashboard/registryPieChartStatComponent.d.ts +12 -0
- package/dist/esm/types/Components/index.d.ts +2 -0
- package/dist/esm/types/Styles/index.d.ts +1 -0
- package/dist/esm/types/index.d.ts +1 -0
- package/dist/index.d.ts +25 -1
- package/package.json +1 -1
@@ -0,0 +1,14 @@
|
|
1
|
+
import { FC } from "react";
|
2
|
+
import "./dashboard.scss";
|
3
|
+
export interface ListWidgetProps {
|
4
|
+
data: any[];
|
5
|
+
icon: any;
|
6
|
+
subTitle: string;
|
7
|
+
total: number;
|
8
|
+
totalText: string;
|
9
|
+
updatedDate: any;
|
10
|
+
loading: boolean;
|
11
|
+
toolTipText: string;
|
12
|
+
title: string;
|
13
|
+
}
|
14
|
+
export declare const ListWidgetComponent: FC<ListWidgetProps>;
|
@@ -0,0 +1,18 @@
|
|
1
|
+
import { FC } from "react";
|
2
|
+
export interface MapStatsProps {
|
3
|
+
id: string;
|
4
|
+
title: string;
|
5
|
+
lastUpdate: any;
|
6
|
+
loading: boolean;
|
7
|
+
toolTipText: string;
|
8
|
+
mapType: string;
|
9
|
+
mapCenter: any;
|
10
|
+
mapZoom: number;
|
11
|
+
dataSource: any;
|
12
|
+
mapLayer: any;
|
13
|
+
renderCB: any;
|
14
|
+
style: string;
|
15
|
+
labels: string[];
|
16
|
+
colors: string[];
|
17
|
+
}
|
18
|
+
export declare const MapStatsComponent: FC<MapStatsProps>;
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import { FC } from "react";
|
2
|
+
export interface BarChartStatsProps {
|
3
|
+
id: string;
|
4
|
+
title: string;
|
5
|
+
options: any;
|
6
|
+
series: any;
|
7
|
+
lastUpdate: any;
|
8
|
+
loading: boolean;
|
9
|
+
toolTipText: string;
|
10
|
+
Chart: any;
|
11
|
+
}
|
12
|
+
export declare const MrvBarChartsStatComponent: FC<BarChartStatsProps>;
|
@@ -0,0 +1,113 @@
|
|
1
|
+
export declare const getChartOptions: (labels: string[], colors: string[]) => {
|
2
|
+
states: {
|
3
|
+
normal: {
|
4
|
+
filter: {
|
5
|
+
type: string;
|
6
|
+
value: number;
|
7
|
+
};
|
8
|
+
};
|
9
|
+
hover: {
|
10
|
+
filter: {
|
11
|
+
type: string;
|
12
|
+
value: number;
|
13
|
+
};
|
14
|
+
};
|
15
|
+
active: {
|
16
|
+
allowMultipleDataPointsSelection: boolean;
|
17
|
+
filter: {
|
18
|
+
type: string;
|
19
|
+
value: number;
|
20
|
+
};
|
21
|
+
};
|
22
|
+
};
|
23
|
+
chart: {
|
24
|
+
type: string;
|
25
|
+
};
|
26
|
+
dataLabels: {
|
27
|
+
enabled: boolean;
|
28
|
+
};
|
29
|
+
colors: string[];
|
30
|
+
labels: string[];
|
31
|
+
plotOptions: {
|
32
|
+
pie: {
|
33
|
+
expandOnClick: boolean;
|
34
|
+
donut: {
|
35
|
+
labels: {
|
36
|
+
show: boolean;
|
37
|
+
total: {
|
38
|
+
showAlways: boolean;
|
39
|
+
show: boolean;
|
40
|
+
label: string;
|
41
|
+
formatter: (w: any) => string;
|
42
|
+
};
|
43
|
+
value: {
|
44
|
+
formatter: (value: any) => string;
|
45
|
+
};
|
46
|
+
};
|
47
|
+
};
|
48
|
+
};
|
49
|
+
};
|
50
|
+
legend: {
|
51
|
+
show: boolean;
|
52
|
+
showForSingleSeries: boolean;
|
53
|
+
showForNullSeries: boolean;
|
54
|
+
showForZeroSeries: boolean;
|
55
|
+
position: string;
|
56
|
+
horizontalAlign: string;
|
57
|
+
floating: boolean;
|
58
|
+
fontSize: string;
|
59
|
+
fontFamily: string;
|
60
|
+
fontWeight: number;
|
61
|
+
formatter: undefined;
|
62
|
+
inverseOrder: boolean;
|
63
|
+
width: undefined;
|
64
|
+
height: undefined;
|
65
|
+
tooltipHoverFormatter: undefined;
|
66
|
+
customLegendItems: never[];
|
67
|
+
offsetX: number;
|
68
|
+
offsetY: number;
|
69
|
+
labels: {
|
70
|
+
colors: string[];
|
71
|
+
useSeriesColors: boolean;
|
72
|
+
};
|
73
|
+
markers: {
|
74
|
+
width: number;
|
75
|
+
height: number;
|
76
|
+
strokeWidth: number;
|
77
|
+
strokeColor: string;
|
78
|
+
fillColors: string[];
|
79
|
+
radius: number;
|
80
|
+
customHTML: undefined;
|
81
|
+
onClick: undefined;
|
82
|
+
offsetX: number;
|
83
|
+
offsetY: number;
|
84
|
+
};
|
85
|
+
itemMargin: {
|
86
|
+
horizontal: number;
|
87
|
+
vertical: number;
|
88
|
+
};
|
89
|
+
onItemClick: {
|
90
|
+
toggleDataSeries: boolean;
|
91
|
+
};
|
92
|
+
onItemHover: {
|
93
|
+
highlightDataSeries: boolean;
|
94
|
+
};
|
95
|
+
};
|
96
|
+
responsive: {
|
97
|
+
breakpoint: number;
|
98
|
+
options: {
|
99
|
+
chart: {
|
100
|
+
width: number;
|
101
|
+
};
|
102
|
+
legend: {
|
103
|
+
position: string;
|
104
|
+
};
|
105
|
+
};
|
106
|
+
}[];
|
107
|
+
tooltip: {
|
108
|
+
enabled: boolean;
|
109
|
+
y: {
|
110
|
+
formatter: (value: any) => string;
|
111
|
+
};
|
112
|
+
};
|
113
|
+
};
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import { FC } from "react";
|
2
|
+
export interface PieChartStatsProps {
|
3
|
+
id: string;
|
4
|
+
title: any;
|
5
|
+
options: any;
|
6
|
+
series: any[];
|
7
|
+
lastUpdate: any;
|
8
|
+
loading: boolean;
|
9
|
+
toolTipText: string;
|
10
|
+
Chart: any;
|
11
|
+
}
|
12
|
+
export declare const MrvPieChartsStatComponent: FC<PieChartStatsProps>;
|
@@ -0,0 +1,18 @@
|
|
1
|
+
export interface ChartSeriesItem {
|
2
|
+
name: string;
|
3
|
+
data: any[];
|
4
|
+
}
|
5
|
+
export declare const getTotalProgrammesInitialValues: () => ChartSeriesItem[];
|
6
|
+
export declare const totalProgrammesInitialValues: {
|
7
|
+
name: string;
|
8
|
+
data: never[];
|
9
|
+
}[];
|
10
|
+
export declare const getTotalProgrammesSectorInitialValues: () => ChartSeriesItem[];
|
11
|
+
export declare const totalCreditsSeriesInitialValues: {
|
12
|
+
name: string;
|
13
|
+
data: never[];
|
14
|
+
}[];
|
15
|
+
export declare const totalCertifiedCreditsSeriesInitialValues: {
|
16
|
+
name: string;
|
17
|
+
data: never[];
|
18
|
+
}[];
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import { FC } from "react";
|
2
|
+
export interface ProgrammeRejectAndTransferCardItemProps {
|
3
|
+
totalPrgrammes: number;
|
4
|
+
authorized: number;
|
5
|
+
pending: number;
|
6
|
+
rejected: number;
|
7
|
+
updatedDate: any;
|
8
|
+
loading: boolean;
|
9
|
+
toolTipText: string;
|
10
|
+
}
|
11
|
+
export declare const ProgrammeRejectAndTransferComponent: FC<ProgrammeRejectAndTransferCardItemProps>;
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import { FC } from "react";
|
2
|
+
export interface BarChartStatsProps {
|
3
|
+
id: string;
|
4
|
+
title: string;
|
5
|
+
options: any;
|
6
|
+
series: any;
|
7
|
+
lastUpdate: any;
|
8
|
+
loading: boolean;
|
9
|
+
toolTipText: string;
|
10
|
+
Chart: any;
|
11
|
+
}
|
12
|
+
export declare const RegistryBarChartsStatComponent: FC<BarChartStatsProps>;
|
@@ -0,0 +1,6 @@
|
|
1
|
+
export declare const totalProgrammesOptions: any;
|
2
|
+
export declare const totalProgrammesOptionsSub: any;
|
3
|
+
export declare const totalCreditsOptions: any;
|
4
|
+
export declare const totalCreditsCertifiedOptions: any;
|
5
|
+
export declare const optionDonutPieA: any;
|
6
|
+
export declare const optionDonutPieB: any;
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import { FC } from "react";
|
2
|
+
export interface PieChartStatsProps {
|
3
|
+
id: string;
|
4
|
+
title: any;
|
5
|
+
options: any;
|
6
|
+
series: any[];
|
7
|
+
lastUpdate: any;
|
8
|
+
loading: boolean;
|
9
|
+
toolTipText: string;
|
10
|
+
Chart: any;
|
11
|
+
}
|
12
|
+
export declare const RegistryPieChartsStatComponent: FC<PieChartStatsProps>;
|
@@ -12,6 +12,8 @@ export * from "./NdcActions/NdcActionManagement/ndcActionManagementComponent";
|
|
12
12
|
export * from "./NdcActions/AddNdcAction/addNdcActionComponent";
|
13
13
|
export * from "./NdcActions/NdcView/ndcActionViewComponent";
|
14
14
|
export * from "./Transfers/creditTransfersComponent";
|
15
|
+
export * from "./MrvDashboard/mrvDashboardViewComponent";
|
16
|
+
export * from "./RegistryDashboard/registryDashboardViewComponent";
|
15
17
|
export * from "./Common/Loading/loading";
|
16
18
|
export * from "./Common/LegendItem/legendItem";
|
17
19
|
export * from "./Common/Maps/mapComponent";
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './role.color.constants';
|
package/dist/index.d.ts
CHANGED
@@ -32,6 +32,10 @@ declare const NdcActionViewComponent: (props: any) => React.JSX.Element;
|
|
32
32
|
|
33
33
|
declare const CreditTransferComponent: (props: any) => React.JSX.Element;
|
34
34
|
|
35
|
+
declare const MrvDashboardComponent: (props: any) => React.JSX.Element;
|
36
|
+
|
37
|
+
declare const RegistryDashboardComponent: (props: any) => React.JSX.Element;
|
38
|
+
|
35
39
|
declare const Loading: () => React.JSX.Element;
|
36
40
|
|
37
41
|
interface LegendItemItemProps {
|
@@ -985,4 +989,24 @@ interface TimelineBodyProps {
|
|
985
989
|
}
|
986
990
|
declare const TimelineBody: FC<TimelineBodyProps>;
|
987
991
|
|
988
|
-
|
992
|
+
declare const AdminBGColor = "rgba(255, 166, 166, 0.42)";
|
993
|
+
declare const AdminColor = "#D12800";
|
994
|
+
declare const RootBGColor = "rgba(255, 0, 229, 0.15)";
|
995
|
+
declare const RootColor = "#DB00FF";
|
996
|
+
declare const ManagerBGColor = "rgba(96, 27, 209, 0.13)";
|
997
|
+
declare const ManagerColor = "#75009E";
|
998
|
+
declare const ViewBGColor = "rgba(176, 190, 197, 0.23)";
|
999
|
+
declare const ViewColor = "#707070";
|
1000
|
+
declare const GovBGColor = "rgba(185, 226, 244, 0.56)";
|
1001
|
+
declare const GovColor = "#16B1FF";
|
1002
|
+
declare const DevBGColor = "rgba(254, 241, 173, 0.55)";
|
1003
|
+
declare const DevColor = "#FFA070";
|
1004
|
+
declare const MinBGColor = "rgba(198, 144, 251, 0.12)";
|
1005
|
+
declare const MinColor = "#9155fd";
|
1006
|
+
declare const CertBGColor = "rgba(128, 255, 0, 0.12)";
|
1007
|
+
declare const CertColor = "#519E4F";
|
1008
|
+
declare const TooltipColor = "#6ACDFF";
|
1009
|
+
declare const InvestmentBGColor = "rgba(151, 110, 215, 0.3)";
|
1010
|
+
declare const InvestmentColor = "#9155FD";
|
1011
|
+
|
1012
|
+
export { Action, AdaptationProperties, AddNdcActionComponent, AddNewCompanyComponent, AddNewUserComponent, AdminBGColor, AdminColor, AgricultureProperties, BaseEntity, CarbonSystemType, CertBGColor, CertColor, CoBenefitProps, CoBenefitsProperties, CoBenifitsComponent, Company, CompanyManagementColumns, CompanyManagementComponent, CompanyProfileComponent, CompanyRole, CompanyState, ConfigurationSettingsType, ConnectionContextProviderProps, ConnectionProps, CountrySelect, CreditTransferComponent, CreditTransferStage, DevBGColor, DevColor, DocType, DocumentStatus, ESGType, EnablementProperties, EnergyGenerationUnits, FormElementType, GovBGColor, GovColor, HeaderProps, ImgWithFallback, InfoView, InfoViewProps, Instrument, InvestmentBGColor, InvestmentBody, InvestmentBodyProps, InvestmentColor, InvestmentCreationComponent, InvestmentLevel, InvestmentManagementComponent, InvestmentStatus, InvestmentStream, InvestmentType, LandAreaUnits, LayoutSiderProps, LegendItem, LegendItemItemProps, Loading, LoginProps, ManagerBGColor, ManagerColor, MapComponent, MapComponentProps, MapPopupData, MapSourceData, MapTypes, MapboxComponent, MarkerData, Methods, MinBGColor, MinColor, MitigationTypes, MrvDashboardComponent, MrvStatsCardsTypes, NdcAction, NdcActionBody, NdcActionBodyProps, NdcActionManagementComponent, NdcActionStatus, NdcActionTypes, NdcActionViewComponent, NdcFinancing, OrganisationStatus, OrganisationStatusProps, ProfileIcon, ProfileIconProps, Programme, ProgrammeCertify, ProgrammeCreationComponent, ProgrammeDeveloperCreation, ProgrammeDocuments, ProgrammeDocumentsProps, ProgrammeEntity, ProgrammeIssueForm, ProgrammeIssueFormProps, ProgrammeManagementColumns, ProgrammeManagementComponent, ProgrammeProperties, ProgrammePropertiesR, ProgrammePropertiesT, ProgrammePropertiesU, ProgrammeR, ProgrammeRetireForm, ProgrammeRetireFormProps, ProgrammeRevokeForm, ProgrammeRevokeFormProps, ProgrammeStageLegend, ProgrammeStageMRV, ProgrammeStageR, ProgrammeStageUnified, ProgrammeT, ProgrammeTransfer, ProgrammeTransferForm, ProgrammeTransferFormProps, ProgrammeU, RadioButtonStatus, RadioButtonStatus2, RegistryDashboardComponent, RejectDocumentationConfirmationModel, RejectDocumentationProps, Response, RetireType, Role, RoleIcon, RoleIconProps, RootBGColor, RootColor, SdgGoals, Sector, SectoralScope, SolarProperties, StasticCard, StasticCardItemProps, StatsCardsTypes, SystemNames, TimelineBody, TimelineBodyProps, Titles, TooltipColor, TransferActionModel, TransferActionModelProps, TxType, TypeOfMitigation, UnitField, User, UserContextProps, UserCreationProps, UserManagementColumns, UserManagementComponent, UserProfileComponent, UserProps, UserRoleIcon, UserRoleIconProps, ViewBGColor, ViewColor, WidgetType, addCommSep, addCommSepRound, addRoundNumber, addSpaces, consumerGroupList, creditUnit, dateFormat, dateTimeFormat, energyGenerationUnitList, getBase64, getCompanyBgColor, getCreditStageVal, getFinancialFields, getGeneralFields, getInvestmentStatusEnumVal, getNdcActionStatusEnumVal, getNdcStatusTagType, getRetirementTypeString, getStageEnumVal, getStageTagType, getStageTagTypeMRV, getStageTransferEnumVal, getStatusTagType, getTransferStageTagType, isBase64, landAreaUnitList, mitigationTypeList, ndcActionTypeList, sectorMitigationTypesListMapped, sumArray, titleList, userForgotPasswordProps };
|