@undp/carbon-library 1.0.83 → 1.0.85
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/index.js +1359 -405
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/Components/Common/TimelineBody/timelineBody.d.ts +1 -2
- package/dist/cjs/types/Components/Transfers/creditTransfersComponent.d.ts +5 -0
- package/dist/cjs/types/Components/index.d.ts +3 -0
- package/dist/cjs/types/Definitions/Definitions/programme.definitions.d.ts +4 -3
- package/dist/cjs/types/Definitions/Entities/programmeCertify.d.ts +5 -0
- package/dist/cjs/types/Definitions/Enums/programmeStage.enum.d.ts +5 -0
- package/dist/cjs/types/Definitions/Enums/statsCards.type.enum.d.ts +13 -0
- package/dist/cjs/types/Definitions/Enums/widget.type.enum.d.ts +5 -0
- package/dist/cjs/types/Definitions/index.d.ts +6 -0
- package/dist/esm/index.js +1280 -333
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/Components/Common/TimelineBody/timelineBody.d.ts +1 -2
- package/dist/esm/types/Components/Transfers/creditTransfersComponent.d.ts +5 -0
- package/dist/esm/types/Components/index.d.ts +3 -0
- package/dist/esm/types/Definitions/Definitions/programme.definitions.d.ts +4 -3
- package/dist/esm/types/Definitions/Entities/programmeCertify.d.ts +5 -0
- package/dist/esm/types/Definitions/Enums/programmeStage.enum.d.ts +5 -0
- package/dist/esm/types/Definitions/Enums/statsCards.type.enum.d.ts +13 -0
- package/dist/esm/types/Definitions/Enums/widget.type.enum.d.ts +5 -0
- package/dist/esm/types/Definitions/index.d.ts +6 -0
- package/dist/index.d.ts +82 -4
- package/package.json +2 -1
@@ -10,6 +10,8 @@ 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";
|
13
15
|
export * from "./Common/Loading/loading";
|
14
16
|
export * from "./Common/LegendItem/legendItem";
|
15
17
|
export * from "./Common/Maps/mapComponent";
|
@@ -31,3 +33,4 @@ export * from "./Common/NdcActionBody/ndcActionBody";
|
|
31
33
|
export * from "./Common/OrganisationStatus/organisationStatus";
|
32
34
|
export * from "./Common/ProgrammeDocuments/programmeDocuments";
|
33
35
|
export * from "./Common/UserRoleIcon/userRoleIcon";
|
36
|
+
export * from "./Common/TimelineBody/timelineBody";
|
@@ -105,11 +105,12 @@ export declare const addCommSep: (value: any) => string;
|
|
105
105
|
export declare const addCommSepRound: (value: any) => string;
|
106
106
|
export declare const addRoundNumber: (value: any) => number;
|
107
107
|
export declare const addSpaces: (text: string) => string;
|
108
|
-
export declare const getFinancialFields: (programme:
|
109
|
-
|
108
|
+
export declare const getFinancialFields: (programme: ProgrammeU) => {
|
109
|
+
estimatedProgrammeCostUSD: string;
|
110
|
+
creditEst: string;
|
110
111
|
financingType: string;
|
111
112
|
grantEquivalent: UnitField;
|
112
|
-
|
113
|
+
carbonPriceUSDPerTon: string;
|
113
114
|
};
|
114
115
|
export declare const getCompanyBgColor: (item: string) => "rgba(185, 226, 244, 0.56)" | "rgba(254, 241, 173, 0.55)" | "rgba(128, 255, 0, 0.12)";
|
115
116
|
export declare const getRetirementTypeString: (retirementType: string | null) => "-" | "CROSS BORDER TRANSFER" | "LEGAL ACTION" | "OTHER" | undefined;
|
@@ -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
|
+
}
|
@@ -24,6 +24,10 @@ export * from "./Enums/sdgGoals.enum";
|
|
24
24
|
export * from "./Enums/carbonSystemType.enum";
|
25
25
|
export * from "./Enums/document.type";
|
26
26
|
export * from "./Enums/document.status";
|
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";
|
27
31
|
export * from "./Definitions/userLogin.definitions";
|
28
32
|
export * from "./Definitions/userInformationContext.definitions";
|
29
33
|
export * from "./Definitions/userForgotPassword.definitions";
|
@@ -35,8 +39,10 @@ export * from "./Definitions/layout.header";
|
|
35
39
|
export * from "./Definitions/layout.sider.definitions";
|
36
40
|
export * from "./Definitions/mapComponent.definitions";
|
37
41
|
export * from "./Definitions/ndcAction.definitions";
|
42
|
+
export * from "./Definitions/common.definitions";
|
38
43
|
export * from "./Entities/company";
|
39
44
|
export * from "./Entities/baseEntity";
|
40
45
|
export * from "./Entities/programmeTransfer";
|
41
46
|
export * from "./Entities/user";
|
42
47
|
export * from "./Entities/programme";
|
48
|
+
export * from "./Entities/programmeCertify";
|
package/dist/index.d.ts
CHANGED
@@ -28,6 +28,10 @@ declare const NdcActionManagementComponent: (props: any) => React.JSX.Element;
|
|
28
28
|
|
29
29
|
declare const AddNdcActionComponent: (props: any) => React.JSX.Element;
|
30
30
|
|
31
|
+
declare const NdcActionViewComponent: (props: any) => React.JSX.Element;
|
32
|
+
|
33
|
+
declare const CreditTransferComponent: (props: any) => React.JSX.Element;
|
34
|
+
|
31
35
|
declare const Loading: () => React.JSX.Element;
|
32
36
|
|
33
37
|
interface LegendItemItemProps {
|
@@ -191,6 +195,11 @@ declare enum ProgrammeStageUnified {
|
|
191
195
|
Approved = "Approved",
|
192
196
|
Rejected = "Rejected"
|
193
197
|
}
|
198
|
+
declare enum ProgrammeStageLegend {
|
199
|
+
AUTHORISED = "Authorised",
|
200
|
+
REJECTED = "Rejected",
|
201
|
+
AWAITING_AUTHORIZATION = "AwaitingAuthorization"
|
202
|
+
}
|
194
203
|
|
195
204
|
declare enum TypeOfMitigation {
|
196
205
|
AGRICULTURE = "Agriculture",
|
@@ -298,11 +307,12 @@ declare const addCommSep: (value: any) => string;
|
|
298
307
|
declare const addCommSepRound: (value: any) => string;
|
299
308
|
declare const addRoundNumber: (value: any) => number;
|
300
309
|
declare const addSpaces: (text: string) => string;
|
301
|
-
declare const getFinancialFields: (programme:
|
302
|
-
|
310
|
+
declare const getFinancialFields: (programme: ProgrammeU) => {
|
311
|
+
estimatedProgrammeCostUSD: string;
|
312
|
+
creditEst: string;
|
303
313
|
financingType: string;
|
304
314
|
grantEquivalent: UnitField;
|
305
|
-
|
315
|
+
carbonPriceUSDPerTon: string;
|
306
316
|
};
|
307
317
|
declare const getCompanyBgColor: (item: string) => "rgba(185, 226, 244, 0.56)" | "rgba(254, 241, 173, 0.55)" | "rgba(128, 255, 0, 0.12)";
|
308
318
|
declare const getRetirementTypeString: (retirementType: string | null) => "-" | "CROSS BORDER TRANSFER" | "LEGAL ACTION" | "OTHER" | undefined;
|
@@ -673,6 +683,57 @@ declare enum DocumentStatus {
|
|
673
683
|
REJECTED = "Rejected"
|
674
684
|
}
|
675
685
|
|
686
|
+
declare enum CompanyState {
|
687
|
+
SUSPENDED = 0,
|
688
|
+
ACTIVE = 1
|
689
|
+
}
|
690
|
+
|
691
|
+
declare enum WidgetType {
|
692
|
+
PIE = "Pie",
|
693
|
+
MAP = "Map",
|
694
|
+
LIST = "List"
|
695
|
+
}
|
696
|
+
|
697
|
+
declare enum StatsCardsTypes {
|
698
|
+
PROGRAMMES_PENDING = "Programmes Pending",
|
699
|
+
TRANSFER_REQUEST_RECEIVED = "Pending Transfers Received",
|
700
|
+
PROGRAMMES_UNCERTIFIED = "Programmes Certifiable",
|
701
|
+
TRANSFER_REQUEST_SENT = "Pending Transfers Sent",
|
702
|
+
PROGRAMMES_CERTIFIED = "Programmes Certified",
|
703
|
+
CREDIT_BALANCE = "Credit Balance",
|
704
|
+
CREDIT_CERTIFIED = "Credits Certified",
|
705
|
+
PROGRAMMES = "Programmes",
|
706
|
+
CREDITS = "Credits",
|
707
|
+
CERTIFIED_CREDITS = "Certified Credits",
|
708
|
+
TOTAL_PROGRAMMES = "Total Programmes",
|
709
|
+
TOTAL_PROGRAMMES_SECTOR = "Total Programmes: Sector",
|
710
|
+
TOTAL_CREDITS = "Total Credits",
|
711
|
+
TOTAL_CREDITS_CERTIFIED = "Total Credits Certified",
|
712
|
+
PROGRAMME_LOCATIONS = "Programme Locations",
|
713
|
+
TRANSFER_LOCATIONS_INTERNATIONAL = "Transfer Locations International"
|
714
|
+
}
|
715
|
+
declare enum MrvStatsCardsTypes {
|
716
|
+
AGG_PROGRAMME_BY_SECTOR = "AGG_PROGRAMME_BY_SECTOR",
|
717
|
+
AGG_NDC_ACTION_BY_TYPE = "AGG_NDC_ACTION_BY_TYPE",
|
718
|
+
AGG_NDC_ACTION_BY_SECTOR = "AGG_NDC_ACTION_BY_SECTOR",
|
719
|
+
TOTAL_EMISSIONS = "TOTAL_EMISSIONS",
|
720
|
+
PROGRAMME_LOCATION = "PROGRAMME_LOCATION",
|
721
|
+
INVESTMENT_LOCATION = "INVESTMENT_LOCATION",
|
722
|
+
AGG_INVESTMENT_BY_TYPE = "AGG_INVESTMENT_BY_TYPE"
|
723
|
+
}
|
724
|
+
declare enum SystemNames {
|
725
|
+
CARBON_REGISTRY = "CARBON_REGISTRY_SYSTEM",
|
726
|
+
CARBON_TRANSPARENCY = "CARBON_TRANSPARENCY_SYSTEM"
|
727
|
+
}
|
728
|
+
|
729
|
+
declare enum Action {
|
730
|
+
Manage = "manage",
|
731
|
+
Create = "create",
|
732
|
+
Read = "read",
|
733
|
+
Update = "update",
|
734
|
+
Delete = "delete"
|
735
|
+
}
|
736
|
+
|
676
737
|
interface LoginProps {
|
677
738
|
email: string;
|
678
739
|
password: string;
|
@@ -810,6 +871,10 @@ interface NdcAction {
|
|
810
871
|
sector: string;
|
811
872
|
}
|
812
873
|
|
874
|
+
declare const dateTimeFormat = "dd LLLL yyyy @ HH:mm";
|
875
|
+
declare const dateFormat = "dd LLLL yyyy";
|
876
|
+
declare const creditUnit = "ITMO";
|
877
|
+
|
813
878
|
declare class Company implements BaseEntity {
|
814
879
|
companyId?: number;
|
815
880
|
taxId?: string;
|
@@ -846,6 +911,11 @@ declare class ProgrammeEntity implements BaseEntity {
|
|
846
911
|
companyId?: number[];
|
847
912
|
}
|
848
913
|
|
914
|
+
declare class ProgrammeCertify implements BaseEntity {
|
915
|
+
programmeId?: string;
|
916
|
+
comment?: string;
|
917
|
+
}
|
918
|
+
|
849
919
|
interface TransferActionModelProps {
|
850
920
|
icon: any;
|
851
921
|
title: string;
|
@@ -907,4 +977,12 @@ interface UserRoleIconProps {
|
|
907
977
|
}
|
908
978
|
declare const UserRoleIcon: FC<UserRoleIconProps>;
|
909
979
|
|
910
|
-
|
980
|
+
interface TimelineBodyProps {
|
981
|
+
text: string;
|
982
|
+
remark?: string | null;
|
983
|
+
via?: string | null;
|
984
|
+
t: any;
|
985
|
+
}
|
986
|
+
declare const TimelineBody: FC<TimelineBodyProps>;
|
987
|
+
|
988
|
+
export { Action, AdaptationProperties, AddNdcActionComponent, AddNewCompanyComponent, AddNewUserComponent, AgricultureProperties, BaseEntity, CarbonSystemType, CoBenefitProps, CoBenefitsProperties, CoBenifitsComponent, Company, CompanyManagementColumns, CompanyManagementComponent, CompanyProfileComponent, CompanyRole, CompanyState, ConfigurationSettingsType, ConnectionContextProviderProps, ConnectionProps, CountrySelect, CreditTransferComponent, CreditTransferStage, DocType, DocumentStatus, ESGType, EnablementProperties, EnergyGenerationUnits, FormElementType, HeaderProps, ImgWithFallback, InfoView, InfoViewProps, Instrument, InvestmentBody, InvestmentBodyProps, InvestmentCreationComponent, InvestmentLevel, InvestmentManagementComponent, InvestmentStatus, InvestmentStream, InvestmentType, LandAreaUnits, LayoutSiderProps, LegendItem, LegendItemItemProps, Loading, LoginProps, MapComponent, MapComponentProps, MapPopupData, MapSourceData, MapTypes, MapboxComponent, MarkerData, Methods, MitigationTypes, 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, RejectDocumentationConfirmationModel, RejectDocumentationProps, Response, RetireType, Role, RoleIcon, RoleIconProps, SdgGoals, Sector, SectoralScope, SolarProperties, StasticCard, StasticCardItemProps, StatsCardsTypes, SystemNames, TimelineBody, TimelineBodyProps, Titles, TransferActionModel, TransferActionModelProps, TxType, TypeOfMitigation, UnitField, User, UserContextProps, UserCreationProps, UserManagementColumns, UserManagementComponent, UserProfileComponent, UserProps, UserRoleIcon, UserRoleIconProps, 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 };
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@undp/carbon-library",
|
3
|
-
"version": "1.0.
|
3
|
+
"version": "1.0.85",
|
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": {
|
@@ -18,6 +18,7 @@
|
|
18
18
|
"@undp/carbon-credit-calculator": "^1.0.0",
|
19
19
|
"node-sass": "^7.0.3",
|
20
20
|
"postcss": "^8.4.23",
|
21
|
+
"react-circle-flags": "^0.0.19",
|
21
22
|
"rollup": "^3.22.0",
|
22
23
|
"rollup-plugin-dts": "^5.3.0",
|
23
24
|
"rollup-plugin-peer-deps-external": "^2.2.4",
|