@undp/carbon-library 1.0.2 → 1.0.10
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/cjs/types/Components/Common/Loading/loading.d.ts +2 -1
- package/dist/cjs/types/Components/Common/Maps/mapComponent.d.ts +2 -1
- package/dist/cjs/types/Components/Common/Maps/mapboxComponent.d.ts +3 -2
- package/dist/cjs/types/Components/Common/OrganisationStatus/organisationStatus.d.ts +2 -1
- package/dist/cjs/types/Components/Company/AddNewCompany/addNewCompanyComponent.d.ts +2 -1
- package/dist/cjs/types/Components/Company/CompanyManagement/companyManagementComponent.d.ts +2 -1
- package/dist/cjs/types/Components/Company/CompanyProfile/companyProfileComponent.d.ts +2 -1
- package/dist/cjs/types/Components/Programme/ProgrammeManagement/programmeManagementComponent.d.ts +2 -1
- package/dist/cjs/types/Components/Programme/ProgrammeView/programmeViewComponent.d.ts +2 -1
- package/dist/cjs/types/Components/User/AddNewUser/addNewUserComponent.d.ts +2 -1
- package/dist/cjs/types/Components/User/UserManagement/userManagementComponent.d.ts +2 -1
- package/dist/cjs/types/Components/User/UserProfile/userProfileComponent.d.ts +2 -1
- package/dist/cjs/types/Definitions/Definitions/programme.definitions.d.ts +4 -3
- package/dist/cjs/types/Definitions/entities/user.d.ts +12 -0
- package/dist/cjs/types/Definitions/enums/action.enum.d.ts +7 -0
- package/dist/cjs/types/Definitions/enums/company.management.columns.enum.d.ts +8 -0
- package/dist/cjs/types/Definitions/enums/company.state.enum.d.ts +4 -0
- package/dist/cjs/types/Definitions/enums/programme.management.columns.enum.d.ts +11 -0
- package/dist/cjs/types/Definitions/enums/user.management.columns.enum.d.ts +10 -0
- package/dist/esm/types/Components/Common/Loading/loading.d.ts +2 -1
- package/dist/esm/types/Components/Common/Maps/mapComponent.d.ts +2 -1
- package/dist/esm/types/Components/Common/Maps/mapboxComponent.d.ts +3 -2
- package/dist/esm/types/Components/Common/OrganisationStatus/organisationStatus.d.ts +2 -1
- package/dist/esm/types/Components/Company/AddNewCompany/addNewCompanyComponent.d.ts +2 -1
- package/dist/esm/types/Components/Company/CompanyManagement/companyManagementComponent.d.ts +2 -1
- package/dist/esm/types/Components/Company/CompanyProfile/companyProfileComponent.d.ts +2 -1
- package/dist/esm/types/Components/Programme/ProgrammeManagement/programmeManagementComponent.d.ts +2 -1
- package/dist/esm/types/Components/Programme/ProgrammeView/programmeViewComponent.d.ts +2 -1
- package/dist/esm/types/Components/User/AddNewUser/addNewUserComponent.d.ts +2 -1
- package/dist/esm/types/Components/User/UserManagement/userManagementComponent.d.ts +2 -1
- package/dist/esm/types/Components/User/UserProfile/userProfileComponent.d.ts +2 -1
- package/dist/esm/types/Definitions/Definitions/programme.definitions.d.ts +4 -3
- package/dist/esm/types/Definitions/entities/user.d.ts +12 -0
- package/dist/esm/types/Definitions/enums/action.enum.d.ts +7 -0
- package/dist/esm/types/Definitions/enums/company.management.columns.enum.d.ts +8 -0
- package/dist/esm/types/Definitions/enums/company.state.enum.d.ts +4 -0
- package/dist/esm/types/Definitions/enums/programme.management.columns.enum.d.ts +11 -0
- package/dist/esm/types/Definitions/enums/user.management.columns.enum.d.ts +10 -0
- package/dist/index.d.ts +16 -15
- package/package.json +45 -24
@@ -1 +1,2 @@
|
|
1
|
-
|
1
|
+
import React from 'react';
|
2
|
+
export declare const Loading: () => React.JSX.Element;
|
@@ -1,2 +1,3 @@
|
|
1
1
|
import { MapComponentProps } from "../../../Definitions/Definitions/mapComponent.definitions";
|
2
|
-
|
2
|
+
import React from "react";
|
3
|
+
export declare const MapComponent: (props: MapComponentProps) => React.JSX.Element;
|
@@ -1,4 +1,5 @@
|
|
1
|
+
import React from 'react';
|
1
2
|
import 'mapbox-gl/dist/mapbox-gl.css';
|
2
3
|
import { MapComponentProps } from '../../../Definitions/Definitions/mapComponent.definitions';
|
3
|
-
import './
|
4
|
-
export declare const MapboxComponent: (props: MapComponentProps) =>
|
4
|
+
import './mapboxComponent.scss';
|
5
|
+
export declare const MapboxComponent: (props: MapComponentProps) => React.JSX.Element;
|
@@ -1,7 +1,8 @@
|
|
1
|
+
import React from 'react';
|
1
2
|
import './organisationStatus.scss';
|
2
3
|
export interface OrganisationStatusProps {
|
3
4
|
organisationStatus: number;
|
4
5
|
t: any;
|
5
6
|
}
|
6
|
-
declare const OrganisationStatus: (props: OrganisationStatusProps) =>
|
7
|
+
declare const OrganisationStatus: (props: OrganisationStatusProps) => React.JSX.Element;
|
7
8
|
export default OrganisationStatus;
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import React from "react";
|
1
2
|
import "./companyManagementComponent.scss";
|
2
3
|
import "../../../Styles/common.table.scss";
|
3
|
-
export declare const CompanyManagementComponent: (props: any) =>
|
4
|
+
export declare const CompanyManagementComponent: (props: any) => React.JSX.Element;
|
package/dist/cjs/types/Components/Programme/ProgrammeManagement/programmeManagementComponent.d.ts
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
import React from 'react';
|
1
2
|
import './programmeManagementComponent.scss';
|
2
3
|
import '../../../Styles/common.table.scss';
|
3
|
-
export declare const ProgrammeManagementComponent: (props: any) =>
|
4
|
+
export declare const ProgrammeManagementComponent: (props: any) => React.JSX.Element;
|
@@ -1,4 +1,5 @@
|
|
1
|
+
import React from "react";
|
1
2
|
import "react-phone-number-input/style.css";
|
2
3
|
import "./addNewUserComponent.scss";
|
3
4
|
import "../../../Styles/app.scss";
|
4
|
-
export declare const AddNewUserComponent: (props: any) =>
|
5
|
+
export declare const AddNewUserComponent: (props: any) => React.JSX.Element;
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import { DateTime } from "luxon";
|
1
2
|
import { ProgrammeTransfer } from '../Entities/programmeTransfer';
|
2
3
|
export declare enum ProgrammeStage {
|
3
4
|
AwaitingAuthorization = "Pending",
|
@@ -48,7 +49,7 @@ export declare const getStageEnumVal: (value: string) => string;
|
|
48
49
|
export declare const getCreditStageVal: (value: string) => string;
|
49
50
|
export declare const getStageTransferEnumVal: (value: string, transfer: ProgrammeTransfer) => string;
|
50
51
|
export declare const getStageTagType: (stage: ProgrammeStage) => "error" | "processing" | "default";
|
51
|
-
export declare const getTransferStageTagType: (stage: CreditTransferStage, transfer: ProgrammeTransfer) => "
|
52
|
+
export declare const getTransferStageTagType: (stage: CreditTransferStage, transfer: ProgrammeTransfer) => "orange" | "purple" | "error" | "processing" | "default" | "success";
|
52
53
|
export declare class UnitField {
|
53
54
|
unit: string;
|
54
55
|
value: any;
|
@@ -116,8 +117,8 @@ export declare const getGeneralFields: (programme: Programme) => {
|
|
116
117
|
applicationType: string;
|
117
118
|
sector: string;
|
118
119
|
sectoralScope: string;
|
119
|
-
startDate:
|
120
|
-
endDate:
|
120
|
+
startDate: DateTime;
|
121
|
+
endDate: DateTime;
|
121
122
|
buyerCountry: string;
|
122
123
|
};
|
123
124
|
export declare const addCommSep: (value: any) => string;
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import { BaseEntity } from "./baseEntity";
|
2
|
+
export declare class User implements BaseEntity {
|
3
|
+
id?: number;
|
4
|
+
email?: string;
|
5
|
+
role?: string;
|
6
|
+
name?: string;
|
7
|
+
country?: string;
|
8
|
+
phoneNo?: string;
|
9
|
+
companyId?: number;
|
10
|
+
companyRole?: string;
|
11
|
+
companyState?: number;
|
12
|
+
}
|
@@ -1 +1,2 @@
|
|
1
|
-
|
1
|
+
import React from 'react';
|
2
|
+
export declare const Loading: () => React.JSX.Element;
|
@@ -1,2 +1,3 @@
|
|
1
1
|
import { MapComponentProps } from "../../../Definitions/Definitions/mapComponent.definitions";
|
2
|
-
|
2
|
+
import React from "react";
|
3
|
+
export declare const MapComponent: (props: MapComponentProps) => React.JSX.Element;
|
@@ -1,4 +1,5 @@
|
|
1
|
+
import React from 'react';
|
1
2
|
import 'mapbox-gl/dist/mapbox-gl.css';
|
2
3
|
import { MapComponentProps } from '../../../Definitions/Definitions/mapComponent.definitions';
|
3
|
-
import './
|
4
|
-
export declare const MapboxComponent: (props: MapComponentProps) =>
|
4
|
+
import './mapboxComponent.scss';
|
5
|
+
export declare const MapboxComponent: (props: MapComponentProps) => React.JSX.Element;
|
@@ -1,7 +1,8 @@
|
|
1
|
+
import React from 'react';
|
1
2
|
import './organisationStatus.scss';
|
2
3
|
export interface OrganisationStatusProps {
|
3
4
|
organisationStatus: number;
|
4
5
|
t: any;
|
5
6
|
}
|
6
|
-
declare const OrganisationStatus: (props: OrganisationStatusProps) =>
|
7
|
+
declare const OrganisationStatus: (props: OrganisationStatusProps) => React.JSX.Element;
|
7
8
|
export default OrganisationStatus;
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import React from "react";
|
1
2
|
import "./companyManagementComponent.scss";
|
2
3
|
import "../../../Styles/common.table.scss";
|
3
|
-
export declare const CompanyManagementComponent: (props: any) =>
|
4
|
+
export declare const CompanyManagementComponent: (props: any) => React.JSX.Element;
|
package/dist/esm/types/Components/Programme/ProgrammeManagement/programmeManagementComponent.d.ts
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
import React from 'react';
|
1
2
|
import './programmeManagementComponent.scss';
|
2
3
|
import '../../../Styles/common.table.scss';
|
3
|
-
export declare const ProgrammeManagementComponent: (props: any) =>
|
4
|
+
export declare const ProgrammeManagementComponent: (props: any) => React.JSX.Element;
|
@@ -1,4 +1,5 @@
|
|
1
|
+
import React from "react";
|
1
2
|
import "react-phone-number-input/style.css";
|
2
3
|
import "./addNewUserComponent.scss";
|
3
4
|
import "../../../Styles/app.scss";
|
4
|
-
export declare const AddNewUserComponent: (props: any) =>
|
5
|
+
export declare const AddNewUserComponent: (props: any) => React.JSX.Element;
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import { DateTime } from "luxon";
|
1
2
|
import { ProgrammeTransfer } from '../Entities/programmeTransfer';
|
2
3
|
export declare enum ProgrammeStage {
|
3
4
|
AwaitingAuthorization = "Pending",
|
@@ -48,7 +49,7 @@ export declare const getStageEnumVal: (value: string) => string;
|
|
48
49
|
export declare const getCreditStageVal: (value: string) => string;
|
49
50
|
export declare const getStageTransferEnumVal: (value: string, transfer: ProgrammeTransfer) => string;
|
50
51
|
export declare const getStageTagType: (stage: ProgrammeStage) => "error" | "processing" | "default";
|
51
|
-
export declare const getTransferStageTagType: (stage: CreditTransferStage, transfer: ProgrammeTransfer) => "
|
52
|
+
export declare const getTransferStageTagType: (stage: CreditTransferStage, transfer: ProgrammeTransfer) => "orange" | "purple" | "error" | "processing" | "default" | "success";
|
52
53
|
export declare class UnitField {
|
53
54
|
unit: string;
|
54
55
|
value: any;
|
@@ -116,8 +117,8 @@ export declare const getGeneralFields: (programme: Programme) => {
|
|
116
117
|
applicationType: string;
|
117
118
|
sector: string;
|
118
119
|
sectoralScope: string;
|
119
|
-
startDate:
|
120
|
-
endDate:
|
120
|
+
startDate: DateTime;
|
121
|
+
endDate: DateTime;
|
121
122
|
buyerCountry: string;
|
122
123
|
};
|
123
124
|
export declare const addCommSep: (value: any) => string;
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import { BaseEntity } from "./baseEntity";
|
2
|
+
export declare class User implements BaseEntity {
|
3
|
+
id?: number;
|
4
|
+
email?: string;
|
5
|
+
role?: string;
|
6
|
+
name?: string;
|
7
|
+
country?: string;
|
8
|
+
phoneNo?: string;
|
9
|
+
companyId?: number;
|
10
|
+
companyRole?: string;
|
11
|
+
companyState?: number;
|
12
|
+
}
|
package/dist/index.d.ts
CHANGED
@@ -1,23 +1,24 @@
|
|
1
|
-
import { FC, ReactNode } from 'react';
|
1
|
+
import React, { FC, ReactNode } from 'react';
|
2
|
+
import { DateTime } from 'luxon';
|
2
3
|
import { RawAxiosResponseHeaders, AxiosResponseHeaders, AxiosRequestConfig } from 'axios';
|
3
4
|
|
4
|
-
declare const CompanyManagementComponent: (props: any) =>
|
5
|
+
declare const CompanyManagementComponent: (props: any) => React.JSX.Element;
|
5
6
|
|
6
|
-
declare const AddNewCompanyComponent: (props: any) =>
|
7
|
+
declare const AddNewCompanyComponent: (props: any) => React.JSX.Element;
|
7
8
|
|
8
|
-
declare const CompanyProfileComponent: (props: any) =>
|
9
|
+
declare const CompanyProfileComponent: (props: any) => React.JSX.Element;
|
9
10
|
|
10
|
-
declare const UserManagementComponent: (props: any) =>
|
11
|
+
declare const UserManagementComponent: (props: any) => React.JSX.Element;
|
11
12
|
|
12
|
-
declare const ProgrammeManagementComponent: (props: any) =>
|
13
|
+
declare const ProgrammeManagementComponent: (props: any) => React.JSX.Element;
|
13
14
|
|
14
|
-
declare const ProgrammeViewComponent: (props: any) =>
|
15
|
+
declare const ProgrammeViewComponent: (props: any) => React.JSX.Element;
|
15
16
|
|
16
|
-
declare const AddNewUserComponent: (props: any) =>
|
17
|
+
declare const AddNewUserComponent: (props: any) => React.JSX.Element;
|
17
18
|
|
18
|
-
declare const UserProfileComponent: (props: any) =>
|
19
|
+
declare const UserProfileComponent: (props: any) => React.JSX.Element;
|
19
20
|
|
20
|
-
declare const Loading: () =>
|
21
|
+
declare const Loading: () => React.JSX.Element;
|
21
22
|
|
22
23
|
interface LegendItemItemProps {
|
23
24
|
text: string;
|
@@ -58,9 +59,9 @@ interface MapComponentProps {
|
|
58
59
|
accessToken?: any;
|
59
60
|
}
|
60
61
|
|
61
|
-
declare const MapComponent: (props: MapComponentProps) =>
|
62
|
+
declare const MapComponent: (props: MapComponentProps) => React.JSX.Element;
|
62
63
|
|
63
|
-
declare const MapboxComponent: (props: MapComponentProps) =>
|
64
|
+
declare const MapboxComponent: (props: MapComponentProps) => React.JSX.Element;
|
64
65
|
|
65
66
|
interface StasticCardItemProps {
|
66
67
|
value: number;
|
@@ -209,7 +210,7 @@ declare const getStageEnumVal: (value: string) => string;
|
|
209
210
|
declare const getCreditStageVal: (value: string) => string;
|
210
211
|
declare const getStageTransferEnumVal: (value: string, transfer: ProgrammeTransfer) => string;
|
211
212
|
declare const getStageTagType: (stage: ProgrammeStage) => "error" | "processing" | "default";
|
212
|
-
declare const getTransferStageTagType: (stage: CreditTransferStage, transfer: ProgrammeTransfer) => "
|
213
|
+
declare const getTransferStageTagType: (stage: CreditTransferStage, transfer: ProgrammeTransfer) => "orange" | "purple" | "error" | "processing" | "default" | "success";
|
213
214
|
declare class UnitField {
|
214
215
|
unit: string;
|
215
216
|
value: any;
|
@@ -277,8 +278,8 @@ declare const getGeneralFields: (programme: Programme) => {
|
|
277
278
|
applicationType: string;
|
278
279
|
sector: string;
|
279
280
|
sectoralScope: string;
|
280
|
-
startDate:
|
281
|
-
endDate:
|
281
|
+
startDate: DateTime;
|
282
|
+
endDate: DateTime;
|
282
283
|
buyerCountry: string;
|
283
284
|
};
|
284
285
|
declare const addCommSep: (value: any) => string;
|
package/package.json
CHANGED
@@ -1,47 +1,68 @@
|
|
1
1
|
{
|
2
2
|
"name": "@undp/carbon-library",
|
3
|
-
"version": "1.0.
|
3
|
+
"version": "1.0.10",
|
4
4
|
"description": "Shared Library of tools for Carbon Credits applications ecosystem for ExO and and HQ/GEF",
|
5
5
|
"type": "module",
|
6
6
|
"scripts": {
|
7
7
|
"test": "echo \"Error: no test specified\" && exit 1",
|
8
|
-
"
|
8
|
+
"build": "rollup -c --bundleConfigAsCjs"
|
9
9
|
},
|
10
10
|
"keywords": [],
|
11
11
|
"author": "",
|
12
12
|
"license": "ISC",
|
13
13
|
"dependencies": {
|
14
|
-
"rollup": "^3.22.0",
|
15
|
-
"rollup-plugin-dts": "^5.3.0",
|
16
|
-
"rollup-plugin-peer-deps-external": "^2.2.4",
|
17
|
-
"rollup-plugin-postcss": "^4.0.2",
|
18
14
|
"@rollup/plugin-commonjs": "^25.0.0",
|
19
15
|
"@rollup/plugin-node-resolve": "^15.0.2",
|
20
16
|
"@rollup/plugin-typescript": "^11.1.1",
|
17
|
+
"node-sass": "^7.0.3",
|
21
18
|
"postcss": "^8.4.23",
|
19
|
+
"rollup": "^3.22.0",
|
20
|
+
"rollup-plugin-dts": "^5.3.0",
|
21
|
+
"rollup-plugin-peer-deps-external": "^2.2.4",
|
22
|
+
"rollup-plugin-postcss": "^4.0.2",
|
22
23
|
"tslib": "^2.5.2",
|
23
|
-
"typescript": "^5.0.4"
|
24
|
-
"node-sass": "^7.0.3"
|
24
|
+
"typescript": "^5.0.4"
|
25
25
|
},
|
26
|
-
"
|
26
|
+
"devDependencies": {
|
27
|
+
"@ant-design/icons": "^4.7.0",
|
28
|
+
"@types/luxon": "^3.1.0",
|
29
|
+
"@types/mapbox-gl": "^2.7.10",
|
30
|
+
"@types/react": "^18.0.25",
|
31
|
+
"@types/validator": "^13.7.13",
|
32
|
+
"antd": "^4.24.1",
|
33
|
+
"apexcharts": "^3.36.3",
|
34
|
+
"axios": "^1.1.3",
|
35
|
+
"buffer": "^6.0.3",
|
36
|
+
"class-transformer": "^0.5.1",
|
37
|
+
"luxon": "^3.2.1",
|
38
|
+
"mapbox-gl": "^2.11.1",
|
27
39
|
"react": "^18.2.0",
|
28
|
-
"validator": "^13.9.0",
|
29
|
-
"react-phone-number-input": "^3.2.12",
|
30
|
-
"react-bootstrap-icons": "^1.10.2",
|
31
40
|
"react-apexcharts": "^1.4.0",
|
32
|
-
"
|
33
|
-
"
|
34
|
-
"
|
35
|
-
"
|
36
|
-
"
|
37
|
-
|
38
|
-
|
39
|
-
"@types/validator": "^13.7.13",
|
40
|
-
"@types/react": "^18.0.25",
|
41
|
-
"@types/mapbox-gl": "^2.7.10",
|
42
|
-
"@types/luxon": "^3.1.0",
|
41
|
+
"react-bootstrap-icons": "^1.10.2",
|
42
|
+
"react-mapbox-gl": "^5.1.1",
|
43
|
+
"react-phone-number-input": "^3.2.12",
|
44
|
+
"validator": "^13.9.0",
|
45
|
+
"wait-on": "^7.0.1"
|
46
|
+
},
|
47
|
+
"peerDependencies": {
|
43
48
|
"@ant-design/icons": "^4.7.0",
|
44
|
-
"
|
49
|
+
"@types/luxon": "^3.1.0",
|
50
|
+
"@types/mapbox-gl": "^2.7.10",
|
51
|
+
"@types/react": "^18.0.25",
|
52
|
+
"@types/validator": "^13.7.13",
|
53
|
+
"antd": "^4.24.1",
|
54
|
+
"apexcharts": "^3.36.3",
|
55
|
+
"axios": "^1.1.3",
|
56
|
+
"buffer": "^6.0.3",
|
57
|
+
"class-transformer": "^0.5.1",
|
58
|
+
"luxon": "^3.2.1",
|
59
|
+
"mapbox-gl": "^2.11.1",
|
60
|
+
"react": "^18.2.0",
|
61
|
+
"react-apexcharts": "^1.4.0",
|
62
|
+
"react-bootstrap-icons": "^1.10.2",
|
63
|
+
"react-mapbox-gl": "^5.1.1",
|
64
|
+
"react-phone-number-input": "^3.2.12",
|
65
|
+
"validator": "^13.9.0"
|
45
66
|
},
|
46
67
|
"main": "dist/cjs/index.js",
|
47
68
|
"module": "dist/esm/index.js",
|