@undp/carbon-library 1.0.85 → 1.0.86

Sign up to get free protection for your applications and to get access to all the features.
Files changed (36) hide show
  1. package/dist/cjs/index.js +3582 -214
  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/index.d.ts +2 -0
  16. package/dist/cjs/types/Styles/index.d.ts +1 -0
  17. package/dist/cjs/types/index.d.ts +1 -0
  18. package/dist/esm/index.js +3564 -217
  19. package/dist/esm/index.js.map +1 -1
  20. package/dist/esm/types/Components/MrvDashboard/listWidgetComponent.d.ts +14 -0
  21. package/dist/esm/types/Components/MrvDashboard/mapStatsComponent.d.ts +18 -0
  22. package/dist/esm/types/Components/MrvDashboard/mrvBarChartStatsComponent.d.ts +12 -0
  23. package/dist/esm/types/Components/MrvDashboard/mrvChartOptions.d.ts +113 -0
  24. package/dist/esm/types/Components/MrvDashboard/mrvDashboardViewComponent.d.ts +3 -0
  25. package/dist/esm/types/Components/MrvDashboard/mrvPieChartStatComponent.d.ts +12 -0
  26. package/dist/esm/types/Components/RegistryDashboard/dashboardTypesInitialValues.d.ts +18 -0
  27. package/dist/esm/types/Components/RegistryDashboard/programmeRejectAndTransferComponent.d.ts +11 -0
  28. package/dist/esm/types/Components/RegistryDashboard/registryBarChartStatsComponent.d.ts +12 -0
  29. package/dist/esm/types/Components/RegistryDashboard/registryChartOptions.d.ts +6 -0
  30. package/dist/esm/types/Components/RegistryDashboard/registryDashboardViewComponent.d.ts +3 -0
  31. package/dist/esm/types/Components/RegistryDashboard/registryPieChartStatComponent.d.ts +12 -0
  32. package/dist/esm/types/Components/index.d.ts +2 -0
  33. package/dist/esm/types/Styles/index.d.ts +1 -0
  34. package/dist/esm/types/index.d.ts +1 -0
  35. package/dist/index.d.ts +25 -1
  36. 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,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>;
@@ -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';
@@ -1,2 +1,3 @@
1
1
  export * from './Components';
2
2
  export * from './Definitions';
3
+ export * from './Styles';