@undp/carbon-library 1.0.63 → 1.0.64
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/index.js +3486 -144
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/Components/Common/CoBenifits/assessment.d.ts +3 -0
- package/dist/cjs/types/Components/Common/CoBenifits/coBenifits.d.ts +14 -0
- package/dist/cjs/types/Components/Common/CoBenifits/economic.d.ts +3 -0
- package/dist/cjs/types/Components/Common/CoBenifits/environmental.d.ts +3 -0
- package/dist/cjs/types/Components/Common/CoBenifits/genderParity.d.ts +3 -0
- package/dist/cjs/types/Components/Common/CoBenifits/safeguards.d.ts +3 -0
- package/dist/cjs/types/Components/Common/CoBenifits/sdgGoals.d.ts +3 -0
- package/dist/cjs/types/Components/Common/CoBenifits/social.d.ts +3 -0
- package/dist/cjs/types/Components/Common/NdcActionDetails/ndcActionDetails.d.ts +13 -0
- package/dist/cjs/types/Components/NdcActions/AddNdcAction/addNdcActionComponent.d.ts +3 -0
- package/dist/cjs/types/Definitions/Definitions/programme.definitions.d.ts +2 -0
- package/dist/cjs/types/Definitions/Enums/commonEnums.d.ts +23 -0
- package/dist/cjs/types/Definitions/Enums/consumerGroups.enum.d.ts +4 -0
- package/dist/cjs/types/Definitions/Enums/energyGenerationUnits.enum.d.ts +13 -0
- package/dist/cjs/types/Definitions/Enums/landAreaUnits.enum.d.ts +15 -0
- package/dist/cjs/types/Definitions/Enums/mitigation.types.enum.d.ts +1 -0
- package/dist/cjs/types/Definitions/Enums/sdgGoals.enum.d.ts +19 -0
- package/dist/cjs/types/Definitions/Enums/sector.enum.d.ts +12 -0
- package/dist/cjs/types/Definitions/index.d.ts +6 -0
- package/dist/esm/index.js +3481 -145
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/Components/Common/CoBenifits/assessment.d.ts +3 -0
- package/dist/esm/types/Components/Common/CoBenifits/coBenifits.d.ts +14 -0
- package/dist/esm/types/Components/Common/CoBenifits/economic.d.ts +3 -0
- package/dist/esm/types/Components/Common/CoBenifits/environmental.d.ts +3 -0
- package/dist/esm/types/Components/Common/CoBenifits/genderParity.d.ts +3 -0
- package/dist/esm/types/Components/Common/CoBenifits/safeguards.d.ts +3 -0
- package/dist/esm/types/Components/Common/CoBenifits/sdgGoals.d.ts +3 -0
- package/dist/esm/types/Components/Common/CoBenifits/social.d.ts +3 -0
- package/dist/esm/types/Components/Common/NdcActionDetails/ndcActionDetails.d.ts +13 -0
- package/dist/esm/types/Components/NdcActions/AddNdcAction/addNdcActionComponent.d.ts +3 -0
- package/dist/esm/types/Definitions/Definitions/programme.definitions.d.ts +2 -0
- package/dist/esm/types/Definitions/Enums/commonEnums.d.ts +23 -0
- package/dist/esm/types/Definitions/Enums/consumerGroups.enum.d.ts +4 -0
- package/dist/esm/types/Definitions/Enums/energyGenerationUnits.enum.d.ts +13 -0
- package/dist/esm/types/Definitions/Enums/landAreaUnits.enum.d.ts +15 -0
- package/dist/esm/types/Definitions/Enums/mitigation.types.enum.d.ts +1 -0
- package/dist/esm/types/Definitions/Enums/sdgGoals.enum.d.ts +19 -0
- package/dist/esm/types/Definitions/Enums/sector.enum.d.ts +12 -0
- package/dist/esm/types/Definitions/index.d.ts +6 -0
- package/dist/index.d.ts +96 -1
- package/package.json +2 -1
@@ -0,0 +1,14 @@
|
|
1
|
+
import React from "react";
|
2
|
+
import "./coBenifits.scss";
|
3
|
+
export interface CoBenefitProps {
|
4
|
+
onClickedBackBtn?: any;
|
5
|
+
onFormSubmit?: any;
|
6
|
+
coBenefitsDetails?: any;
|
7
|
+
submitButtonText?: any;
|
8
|
+
viewOnly?: boolean;
|
9
|
+
coBenifitsViewDetails?: any;
|
10
|
+
loading?: any;
|
11
|
+
t: any;
|
12
|
+
}
|
13
|
+
declare const CoBenifitsComponent: (props: CoBenefitProps) => React.JSX.Element;
|
14
|
+
export default CoBenifitsComponent;
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import React from "react";
|
2
|
+
import "./ndcActionDetails.scss";
|
3
|
+
import "../../../Styles/common.table.scss";
|
4
|
+
export interface NdcActionDetailsProps {
|
5
|
+
isBackBtnVisible: boolean;
|
6
|
+
onFormSubmit: any;
|
7
|
+
ndcActionDetails: any;
|
8
|
+
t: any;
|
9
|
+
programmeDetails?: any;
|
10
|
+
onClickedBackBtn?: any;
|
11
|
+
}
|
12
|
+
declare const NdcActionDetails: (props: NdcActionDetailsProps) => React.JSX.Element;
|
13
|
+
export default NdcActionDetails;
|
@@ -4,6 +4,7 @@ import { ProgrammeStage } from "../Enums/programmeStage.enum";
|
|
4
4
|
import { ProgrammeStageMRV } from "../Enums/programmeStageMRV.enum";
|
5
5
|
import { TypeOfMitigation } from "../Enums/typeOfMitigation.enum";
|
6
6
|
import { CreditTransferStage } from "../Enums/creditTransferStage.enum";
|
7
|
+
import { RcFile } from "rc-upload/lib/interface";
|
7
8
|
export declare const getStageEnumVal: (value: string) => string;
|
8
9
|
export declare const getCreditStageVal: (value: string) => string;
|
9
10
|
export declare const getStageTransferEnumVal: (value: string, transfer: ProgrammeTransfer) => string;
|
@@ -139,3 +140,4 @@ export declare const getFinancialFields: (programme: Programme) => {
|
|
139
140
|
export declare const getCompanyBgColor: (item: string) => "rgba(185, 226, 244, 0.56)" | "rgba(254, 241, 173, 0.55)" | "rgba(128, 255, 0, 0.12)";
|
140
141
|
export declare const getRetirementTypeString: (retirementType: string | null) => "-" | "CROSS BORDER TRANSFER" | "LEGAL ACTION" | "OTHER" | undefined;
|
141
142
|
export declare const sumArray: (arrList: any[]) => any;
|
143
|
+
export declare const getBase64: (file: RcFile) => Promise<string>;
|
@@ -0,0 +1,23 @@
|
|
1
|
+
export declare enum RadioButtonStatus {
|
2
|
+
YES = "YES",
|
3
|
+
NO = "NO",
|
4
|
+
NA = "N/A"
|
5
|
+
}
|
6
|
+
export declare enum RadioButtonStatus2 {
|
7
|
+
YES = "YES",
|
8
|
+
NO = "NO",
|
9
|
+
MAYBE = "MAYBE"
|
10
|
+
}
|
11
|
+
export declare enum Titles {
|
12
|
+
Mr = "Mr",
|
13
|
+
Mrs = "Mrs"
|
14
|
+
}
|
15
|
+
export declare const titleList: {
|
16
|
+
value: Titles;
|
17
|
+
label: string;
|
18
|
+
}[];
|
19
|
+
export declare enum FormElementType {
|
20
|
+
Radio = 0,
|
21
|
+
Label = 1,
|
22
|
+
Input = 2
|
23
|
+
}
|
@@ -0,0 +1,13 @@
|
|
1
|
+
export declare enum EnergyGenerationUnits {
|
2
|
+
Wh = "Wh/year/unit",
|
3
|
+
mWh = "mWh/year/unit",
|
4
|
+
kWh = "kWh/year/unit",
|
5
|
+
MWh = "MWh/year/unit",
|
6
|
+
GWh = "GWh/year/unit",
|
7
|
+
J = "J/year/unit",
|
8
|
+
KJ = "kJ/year/unit"
|
9
|
+
}
|
10
|
+
export declare const energyGenerationUnitList: {
|
11
|
+
value: string;
|
12
|
+
label: string;
|
13
|
+
}[];
|
@@ -0,0 +1,15 @@
|
|
1
|
+
export declare enum LandAreaUnits {
|
2
|
+
mm2 = "mm2",
|
3
|
+
cm2 = "cm2",
|
4
|
+
m2 = "m2",
|
5
|
+
ha = "ha",
|
6
|
+
km2 = "km2",
|
7
|
+
in2 = "in2",
|
8
|
+
ft2 = "ft2",
|
9
|
+
ac = "ac",
|
10
|
+
Mi2 = "Mi2"
|
11
|
+
}
|
12
|
+
export declare const landAreaUnitList: {
|
13
|
+
value: string;
|
14
|
+
label: string;
|
15
|
+
}[];
|
@@ -0,0 +1,19 @@
|
|
1
|
+
export declare enum SdgGoals {
|
2
|
+
noPoverty = "No Poverty",
|
3
|
+
zeroHunger = "Zero Hunger",
|
4
|
+
gdHealth = "Good Health and Well-being",
|
5
|
+
qualityEducation = "Quality Education",
|
6
|
+
genderEq = "Gender Equality",
|
7
|
+
cleanWatr = "Clean Water and Sanitation",
|
8
|
+
affEnergy = "Affordable and Clean Energy",
|
9
|
+
decentWork = "Decent Work and Economic Growth",
|
10
|
+
industry = "Industry, Innovation and Infrastructure",
|
11
|
+
reducedInEq = "Reduced Inequalities",
|
12
|
+
sustainableCities = "Sustainable Cities and Communities",
|
13
|
+
responsibleConsumption = "Responsible Consumption and Production",
|
14
|
+
climateAction = "Climate Action",
|
15
|
+
lifeBelowWater = "Life Below Water",
|
16
|
+
lifeOnLand = "Life On Land",
|
17
|
+
peace = "Peace, Justice and Strong Institutions",
|
18
|
+
partnership = "Partnerships for the Goals"
|
19
|
+
}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
export declare enum Sector {
|
2
|
+
Energy = "Energy",
|
3
|
+
Health = "Health",
|
4
|
+
Education = "Education",
|
5
|
+
Transport = "Transport",
|
6
|
+
Manufacturing = "Manufacturing",
|
7
|
+
Hospitality = "Hospitality",
|
8
|
+
Forestry = "Forestry",
|
9
|
+
Waste = "Waste",
|
10
|
+
Agriculture = "Agriculture",
|
11
|
+
Other = "Other"
|
12
|
+
}
|
@@ -16,6 +16,12 @@ export * from "./Enums/retireType.enum";
|
|
16
16
|
export * from "./Enums/programmeStageMRV.enum";
|
17
17
|
export * from "./Enums/programmeStage.enum";
|
18
18
|
export * from "./Enums/company.role.enum";
|
19
|
+
export * from "./Enums/energyGenerationUnits.enum";
|
20
|
+
export * from "./Enums/landAreaUnits.enum";
|
21
|
+
export * from "./Enums/consumerGroups.enum";
|
22
|
+
export * from "./Enums/sector.enum";
|
23
|
+
export * from "./Enums/commonEnums";
|
24
|
+
export * from "./Enums/sdgGoals.enum";
|
19
25
|
export * from "./Definitions/userLogin.definitions";
|
20
26
|
export * from "./Definitions/userInformationContext.definitions";
|
21
27
|
export * from "./Definitions/userForgotPassword.definitions";
|