@undp/carbon-library 1.0.80 → 1.0.81
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/index.js +50 -372
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/Components/Common/CoBenifits/coBenifits.d.ts +1 -2
- package/dist/cjs/types/Components/index.d.ts +1 -1
- package/dist/cjs/types/Definitions/index.d.ts +1 -0
- package/dist/esm/index.js +50 -372
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/Components/Common/CoBenifits/coBenifits.d.ts +1 -2
- package/dist/esm/types/Components/index.d.ts +1 -1
- package/dist/esm/types/Definitions/index.d.ts +1 -0
- package/dist/index.d.ts +64 -3
- package/package.json +1 -1
@@ -12,5 +12,4 @@ export interface CoBenefitProps {
|
|
12
12
|
translator?: any;
|
13
13
|
useConnection?: any;
|
14
14
|
}
|
15
|
-
declare const CoBenifitsComponent: (props: CoBenefitProps) => React.JSX.Element;
|
16
|
-
export default CoBenifitsComponent;
|
15
|
+
export declare const CoBenifitsComponent: (props: CoBenefitProps) => React.JSX.Element;
|
@@ -11,7 +11,6 @@ export * from "./Investment/AddNewInvestment/investmentCreationComponent";
|
|
11
11
|
export * from "./Investment/InvestmentManagement/investmentManagementComponent";
|
12
12
|
export * from "./NdcActions/NdcActionManagement/ndcActionManagementComponent";
|
13
13
|
export * from "./NdcActions/AddNdcAction/addNdcActionComponent";
|
14
|
-
export * from "./NdcActions/NdcView/ndcActionViewComponent";
|
15
14
|
export * from "./Common/Loading/loading";
|
16
15
|
export * from "./Common/LegendItem/legendItem";
|
17
16
|
export * from "./Common/Maps/mapComponent";
|
@@ -20,3 +19,4 @@ export * from "./Common/StasticCard/stasticCard";
|
|
20
19
|
export * from "./Common/ProfileIcon/profile.icon";
|
21
20
|
export * from "./Common/RoleIcon/role.icon";
|
22
21
|
export * from "./Common/InfoView/info.view";
|
22
|
+
export * from "./Common/CoBenifits/coBenifits";
|
@@ -35,6 +35,7 @@ export * from "./Definitions/connectionContext.definitions";
|
|
35
35
|
export * from "./Definitions/layout.header";
|
36
36
|
export * from "./Definitions/layout.sider.definitions";
|
37
37
|
export * from "./Definitions/mapComponent.definitions";
|
38
|
+
export * from "./Definitions/ndcAction.definitions";
|
38
39
|
export * from "./Entities/company";
|
39
40
|
export * from "./Entities/baseEntity";
|
40
41
|
export * from "./Entities/programmeTransfer";
|
package/dist/index.d.ts
CHANGED
@@ -2,6 +2,7 @@ import React, { FC, ReactNode } from 'react';
|
|
2
2
|
import { DateTime } from 'luxon';
|
3
3
|
import { RcFile } from 'rc-upload/lib/interface';
|
4
4
|
import { RawAxiosResponseHeaders, AxiosResponseHeaders, AxiosRequestConfig } from 'axios';
|
5
|
+
import { BuildingType } from '@undp/carbon-credit-calculator';
|
5
6
|
|
6
7
|
declare const CompanyManagementComponent: (props: any) => React.JSX.Element;
|
7
8
|
|
@@ -29,8 +30,6 @@ declare const NdcActionManagementComponent: (props: any) => React.JSX.Element;
|
|
29
30
|
|
30
31
|
declare const AddNdcActionComponent: (props: any) => React.JSX.Element;
|
31
32
|
|
32
|
-
declare const NdcActionViewComponent: (props: any) => React.JSX.Element;
|
33
|
-
|
34
33
|
declare const Loading: () => React.JSX.Element;
|
35
34
|
|
36
35
|
interface LegendItemItemProps {
|
@@ -109,6 +108,20 @@ interface InfoViewProps {
|
|
109
108
|
}
|
110
109
|
declare const InfoView: FC<InfoViewProps>;
|
111
110
|
|
111
|
+
interface CoBenefitProps {
|
112
|
+
onClickedBackBtn?: any;
|
113
|
+
onFormSubmit?: any;
|
114
|
+
coBenefitsDetails?: any;
|
115
|
+
submitButtonText?: any;
|
116
|
+
viewOnly?: boolean;
|
117
|
+
coBenifitsViewDetails?: any;
|
118
|
+
loading?: any;
|
119
|
+
sdgGoalImages?: any;
|
120
|
+
translator?: any;
|
121
|
+
useConnection?: any;
|
122
|
+
}
|
123
|
+
declare const CoBenifitsComponent: (props: CoBenefitProps) => React.JSX.Element;
|
124
|
+
|
112
125
|
declare enum CompanyManagementColumns {
|
113
126
|
logo = "logo",
|
114
127
|
name = "name",
|
@@ -694,6 +707,54 @@ type LayoutSiderProps = {
|
|
694
707
|
collapsed?: boolean;
|
695
708
|
};
|
696
709
|
|
710
|
+
interface AgricultureProperties {
|
711
|
+
landArea: number;
|
712
|
+
landAreaUnit: string;
|
713
|
+
}
|
714
|
+
interface SolarProperties {
|
715
|
+
energyGeneration: number;
|
716
|
+
energyGenerationUnit: string;
|
717
|
+
consumerGroup: BuildingType;
|
718
|
+
}
|
719
|
+
interface AdaptationProperties {
|
720
|
+
implementingAgency: string;
|
721
|
+
nationalPlanObjectives: string;
|
722
|
+
nationalPlanCoverage: string;
|
723
|
+
includedInNAP: any;
|
724
|
+
ghgEmissionsReduced: any;
|
725
|
+
ghgEmissionsAvoided: any;
|
726
|
+
}
|
727
|
+
interface CoBenefitsProperties {
|
728
|
+
}
|
729
|
+
interface EnablementProperties {
|
730
|
+
title: string;
|
731
|
+
type?: any[];
|
732
|
+
report?: string;
|
733
|
+
}
|
734
|
+
interface NdcFinancing {
|
735
|
+
userEstimatedCredits: number;
|
736
|
+
systemEstimatedCredits: number;
|
737
|
+
}
|
738
|
+
interface NdcAction {
|
739
|
+
programmeId: string;
|
740
|
+
programmeName: string;
|
741
|
+
action: NdcActionTypes;
|
742
|
+
methodology: string;
|
743
|
+
typeOfMitigation: MitigationTypes;
|
744
|
+
agricultureProperties?: AgricultureProperties;
|
745
|
+
solarProperties?: SolarProperties;
|
746
|
+
adaptationProperties: AdaptationProperties;
|
747
|
+
ndcFinancing?: NdcFinancing;
|
748
|
+
monitoringReport?: string;
|
749
|
+
coBenefitsProperties?: CoBenefitsProperties;
|
750
|
+
enablementProperties?: EnablementProperties;
|
751
|
+
constantVersion: string;
|
752
|
+
id?: string;
|
753
|
+
externalId?: string;
|
754
|
+
status: NdcActionStatus;
|
755
|
+
sector: string;
|
756
|
+
}
|
757
|
+
|
697
758
|
declare class Company implements BaseEntity {
|
698
759
|
companyId?: number;
|
699
760
|
taxId?: string;
|
@@ -730,4 +791,4 @@ declare class ProgrammeEntity implements BaseEntity {
|
|
730
791
|
companyId?: number[];
|
731
792
|
}
|
732
793
|
|
733
|
-
export { AddNdcActionComponent, AddNewCompanyComponent, AddNewUserComponent, BaseEntity, CarbonSystemType, Company, CompanyManagementColumns, CompanyManagementComponent, CompanyProfileComponent, CompanyRole, ConfigurationSettingsType, ConnectionContextProviderProps, ConnectionProps, CountrySelect, CreditTransferStage, DocType, DocumentStatus, ESGType, EnergyGenerationUnits, FormElementType, HeaderProps, InfoView, InfoViewProps, Instrument, InvestmentCreationComponent, InvestmentLevel, InvestmentManagementComponent, InvestmentStatus, InvestmentStream, InvestmentType, LandAreaUnits, LayoutSiderProps, LegendItem, LegendItemItemProps, Loading, LoginProps, MapComponent, MapComponentProps, MapPopupData, MapSourceData, MapTypes, MapboxComponent, MarkerData, Methods, MitigationTypes, NdcActionManagementComponent, NdcActionStatus, NdcActionTypes,
|
794
|
+
export { AdaptationProperties, AddNdcActionComponent, AddNewCompanyComponent, AddNewUserComponent, AgricultureProperties, BaseEntity, CarbonSystemType, CoBenefitProps, CoBenefitsProperties, CoBenifitsComponent, Company, CompanyManagementColumns, CompanyManagementComponent, CompanyProfileComponent, CompanyRole, ConfigurationSettingsType, ConnectionContextProviderProps, ConnectionProps, CountrySelect, CreditTransferStage, DocType, DocumentStatus, ESGType, EnablementProperties, EnergyGenerationUnits, FormElementType, HeaderProps, InfoView, InfoViewProps, Instrument, InvestmentCreationComponent, InvestmentLevel, InvestmentManagementComponent, InvestmentStatus, InvestmentStream, InvestmentType, LandAreaUnits, LayoutSiderProps, LegendItem, LegendItemItemProps, Loading, LoginProps, MapComponent, MapComponentProps, MapPopupData, MapSourceData, MapTypes, MapboxComponent, MarkerData, Methods, MitigationTypes, NdcAction, NdcActionManagementComponent, NdcActionStatus, NdcActionTypes, NdcFinancing, ProfileIcon, ProfileIconProps, Programme, ProgrammeCreationComponent, ProgrammeDeveloperCreation, ProgrammeEntity, ProgrammeManagementColumns, ProgrammeManagementComponent, ProgrammeProperties, ProgrammePropertiesT, ProgrammeStage, ProgrammeStageMRV, ProgrammeT, ProgrammeTransfer, ProgrammeViewComponent, RadioButtonStatus, RadioButtonStatus2, Response, RetireType, Role, RoleIcon, RoleIconProps, SdgGoals, Sector, SectoralScope, SolarProperties, StasticCard, StasticCardItemProps, Titles, TxType, TypeOfMitigation, UnitField, User, UserContextProps, UserCreationProps, UserManagementColumns, UserManagementComponent, UserProfileComponent, UserProps, addCommSep, addCommSepRound, addRoundNumber, addSpaces, consumerGroupList, energyGenerationUnitList, getBase64, getCompanyBgColor, getCreditStageVal, getFinancialFields, getGeneralFields, getInvestmentStatusEnumVal, getNdcActionStatusEnumVal, getNdcStatusTagType, getRetirementTypeString, getStageEnumVal, getStageTagType, getStageTagTypeMRV, getStageTransferEnumVal, getStatusTagType, getTransferStageTagType, isBase64, landAreaUnitList, mitigationTypeList, ndcActionTypeList, sectorMitigationTypesListMapped, sumArray, titleList, userForgotPasswordProps };
|