@undp/carbon-library 1.0.84 → 1.0.86

Sign up to get free protection for your applications and to get access to all the features.
Files changed (48) hide show
  1. package/dist/cjs/index.js +4827 -521
  2. package/dist/cjs/index.js.map +1 -1
  3. package/dist/cjs/types/Components/MrvDashboard/listWidgetComponent.d.ts +14 -0
  4. package/dist/cjs/types/Components/MrvDashboard/mapStatsComponent.d.ts +18 -0
  5. package/dist/cjs/types/Components/MrvDashboard/mrvBarChartStatsComponent.d.ts +12 -0
  6. package/dist/cjs/types/Components/MrvDashboard/mrvChartOptions.d.ts +113 -0
  7. package/dist/cjs/types/Components/MrvDashboard/mrvDashboardViewComponent.d.ts +3 -0
  8. package/dist/cjs/types/Components/MrvDashboard/mrvPieChartStatComponent.d.ts +12 -0
  9. package/dist/cjs/types/Components/RegistryDashboard/dashboardTypesInitialValues.d.ts +18 -0
  10. package/dist/cjs/types/Components/RegistryDashboard/programmeRejectAndTransferComponent.d.ts +11 -0
  11. package/dist/cjs/types/Components/RegistryDashboard/registryBarChartStatsComponent.d.ts +12 -0
  12. package/dist/cjs/types/Components/RegistryDashboard/registryChartOptions.d.ts +6 -0
  13. package/dist/cjs/types/Components/RegistryDashboard/registryDashboardViewComponent.d.ts +3 -0
  14. package/dist/cjs/types/Components/RegistryDashboard/registryPieChartStatComponent.d.ts +12 -0
  15. package/dist/cjs/types/Components/Transfers/creditTransfersComponent.d.ts +5 -0
  16. package/dist/cjs/types/Components/index.d.ts +4 -0
  17. package/dist/cjs/types/Definitions/Entities/programmeCertify.d.ts +5 -0
  18. package/dist/cjs/types/Definitions/Enums/programmeStage.enum.d.ts +5 -0
  19. package/dist/cjs/types/Definitions/Enums/statsCards.type.enum.d.ts +13 -0
  20. package/dist/cjs/types/Definitions/Enums/widget.type.enum.d.ts +5 -0
  21. package/dist/cjs/types/Definitions/index.d.ts +5 -0
  22. package/dist/cjs/types/Styles/index.d.ts +1 -0
  23. package/dist/cjs/types/index.d.ts +1 -0
  24. package/dist/esm/index.js +4786 -507
  25. package/dist/esm/index.js.map +1 -1
  26. package/dist/esm/types/Components/MrvDashboard/listWidgetComponent.d.ts +14 -0
  27. package/dist/esm/types/Components/MrvDashboard/mapStatsComponent.d.ts +18 -0
  28. package/dist/esm/types/Components/MrvDashboard/mrvBarChartStatsComponent.d.ts +12 -0
  29. package/dist/esm/types/Components/MrvDashboard/mrvChartOptions.d.ts +113 -0
  30. package/dist/esm/types/Components/MrvDashboard/mrvDashboardViewComponent.d.ts +3 -0
  31. package/dist/esm/types/Components/MrvDashboard/mrvPieChartStatComponent.d.ts +12 -0
  32. package/dist/esm/types/Components/RegistryDashboard/dashboardTypesInitialValues.d.ts +18 -0
  33. package/dist/esm/types/Components/RegistryDashboard/programmeRejectAndTransferComponent.d.ts +11 -0
  34. package/dist/esm/types/Components/RegistryDashboard/registryBarChartStatsComponent.d.ts +12 -0
  35. package/dist/esm/types/Components/RegistryDashboard/registryChartOptions.d.ts +6 -0
  36. package/dist/esm/types/Components/RegistryDashboard/registryDashboardViewComponent.d.ts +3 -0
  37. package/dist/esm/types/Components/RegistryDashboard/registryPieChartStatComponent.d.ts +12 -0
  38. package/dist/esm/types/Components/Transfers/creditTransfersComponent.d.ts +5 -0
  39. package/dist/esm/types/Components/index.d.ts +4 -0
  40. package/dist/esm/types/Definitions/Entities/programmeCertify.d.ts +5 -0
  41. package/dist/esm/types/Definitions/Enums/programmeStage.enum.d.ts +5 -0
  42. package/dist/esm/types/Definitions/Enums/statsCards.type.enum.d.ts +13 -0
  43. package/dist/esm/types/Definitions/Enums/widget.type.enum.d.ts +5 -0
  44. package/dist/esm/types/Definitions/index.d.ts +5 -0
  45. package/dist/esm/types/Styles/index.d.ts +1 -0
  46. package/dist/esm/types/index.d.ts +1 -0
  47. package/dist/index.d.ts +89 -1
  48. package/package.json +2 -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,3 @@
1
+ import "./dashboard.scss";
2
+ import React from "react";
3
+ export declare const MrvDashboardComponent: (props: any) => React.JSX.Element;
@@ -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,3 @@
1
+ import React from "react";
2
+ import "./dashboard.scss";
3
+ export declare const RegistryDashboardComponent: (props: any) => React.JSX.Element;
@@ -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>;
@@ -0,0 +1,5 @@
1
+ import React from "react";
2
+ import "./programmeTransferManagement.scss";
3
+ import "./creditTransfer.scss";
4
+ import "../../Styles/common.table.scss";
5
+ export declare const CreditTransferComponent: (props: any) => React.JSX.Element;
@@ -10,6 +10,10 @@ export * from "./Investment/AddNewInvestment/investmentCreationComponent";
10
10
  export * from "./Investment/InvestmentManagement/investmentManagementComponent";
11
11
  export * from "./NdcActions/NdcActionManagement/ndcActionManagementComponent";
12
12
  export * from "./NdcActions/AddNdcAction/addNdcActionComponent";
13
+ export * from "./NdcActions/NdcView/ndcActionViewComponent";
14
+ export * from "./Transfers/creditTransfersComponent";
15
+ export * from "./MrvDashboard/mrvDashboardViewComponent";
16
+ export * from "./RegistryDashboard/registryDashboardViewComponent";
13
17
  export * from "./Common/Loading/loading";
14
18
  export * from "./Common/LegendItem/legendItem";
15
19
  export * from "./Common/Maps/mapComponent";
@@ -0,0 +1,5 @@
1
+ import { BaseEntity } from "./baseEntity";
2
+ export declare class ProgrammeCertify implements BaseEntity {
3
+ programmeId?: string;
4
+ comment?: string;
5
+ }
@@ -15,3 +15,8 @@ export declare enum ProgrammeStageUnified {
15
15
  Approved = "Approved",
16
16
  Rejected = "Rejected"
17
17
  }
18
+ export declare enum ProgrammeStageLegend {
19
+ AUTHORISED = "Authorised",
20
+ REJECTED = "Rejected",
21
+ AWAITING_AUTHORIZATION = "AwaitingAuthorization"
22
+ }
@@ -16,3 +16,16 @@ export declare enum StatsCardsTypes {
16
16
  PROGRAMME_LOCATIONS = "Programme Locations",
17
17
  TRANSFER_LOCATIONS_INTERNATIONAL = "Transfer Locations International"
18
18
  }
19
+ export declare enum MrvStatsCardsTypes {
20
+ AGG_PROGRAMME_BY_SECTOR = "AGG_PROGRAMME_BY_SECTOR",
21
+ AGG_NDC_ACTION_BY_TYPE = "AGG_NDC_ACTION_BY_TYPE",
22
+ AGG_NDC_ACTION_BY_SECTOR = "AGG_NDC_ACTION_BY_SECTOR",
23
+ TOTAL_EMISSIONS = "TOTAL_EMISSIONS",
24
+ PROGRAMME_LOCATION = "PROGRAMME_LOCATION",
25
+ INVESTMENT_LOCATION = "INVESTMENT_LOCATION",
26
+ AGG_INVESTMENT_BY_TYPE = "AGG_INVESTMENT_BY_TYPE"
27
+ }
28
+ export declare enum SystemNames {
29
+ CARBON_REGISTRY = "CARBON_REGISTRY_SYSTEM",
30
+ CARBON_TRANSPARENCY = "CARBON_TRANSPARENCY_SYSTEM"
31
+ }
@@ -0,0 +1,5 @@
1
+ export declare enum WidgetType {
2
+ PIE = "Pie",
3
+ MAP = "Map",
4
+ LIST = "List"
5
+ }
@@ -25,6 +25,9 @@ export * from "./Enums/carbonSystemType.enum";
25
25
  export * from "./Enums/document.type";
26
26
  export * from "./Enums/document.status";
27
27
  export * from "./Enums/company.state.enum";
28
+ export * from "./Enums/widget.type.enum";
29
+ export * from "./Enums/statsCards.type.enum";
30
+ export * from "./Enums/action.enum";
28
31
  export * from "./Definitions/userLogin.definitions";
29
32
  export * from "./Definitions/userInformationContext.definitions";
30
33
  export * from "./Definitions/userForgotPassword.definitions";
@@ -36,8 +39,10 @@ export * from "./Definitions/layout.header";
36
39
  export * from "./Definitions/layout.sider.definitions";
37
40
  export * from "./Definitions/mapComponent.definitions";
38
41
  export * from "./Definitions/ndcAction.definitions";
42
+ export * from "./Definitions/common.definitions";
39
43
  export * from "./Entities/company";
40
44
  export * from "./Entities/baseEntity";
41
45
  export * from "./Entities/programmeTransfer";
42
46
  export * from "./Entities/user";
43
47
  export * from "./Entities/programme";
48
+ export * from "./Entities/programmeCertify";
@@ -0,0 +1 @@
1
+ export * from './role.color.constants';
@@ -1,2 +1,3 @@
1
1
  export * from './Components';
2
2
  export * from './Definitions';
3
+ export * from './Styles';