@undp/carbon-library 1.0.135-CARBON-343.15 → 1.0.135-ghg-inventory.1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/index.js +2832 -374
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/Components/Common/Models/discardChangesConfirmationModel.d.ts +13 -0
- package/dist/cjs/types/Components/GhgInventory/Emissions/emissions.d.ts +4 -0
- package/dist/cjs/types/Components/GhgInventory/Projections/projections.d.ts +4 -0
- package/dist/cjs/types/Components/GhgInventory/emission.mappings.d.ts +12 -0
- package/dist/cjs/types/Components/GhgInventory/emission.types.d.ts +1 -0
- package/dist/cjs/types/Components/GhgInventory/projection.types.d.ts +1 -0
- package/dist/cjs/types/Components/index.d.ts +2 -1
- package/dist/cjs/types/Definitions/Entities/emission.d.ts +9 -0
- package/dist/cjs/types/Definitions/Entities/projection.d.ts +9 -0
- package/dist/cjs/types/Definitions/Enums/ghg.record.state.enum.d.ts +4 -0
- package/dist/cjs/types/Definitions/index.d.ts +2 -0
- package/dist/esm/index.js +2831 -377
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/Components/Common/Models/discardChangesConfirmationModel.d.ts +13 -0
- package/dist/esm/types/Components/GhgInventory/Emissions/emissions.d.ts +4 -0
- package/dist/esm/types/Components/GhgInventory/Projections/projections.d.ts +4 -0
- package/dist/esm/types/Components/GhgInventory/emission.mappings.d.ts +12 -0
- package/dist/esm/types/Components/GhgInventory/emission.types.d.ts +1 -0
- package/dist/esm/types/Components/GhgInventory/projection.types.d.ts +1 -0
- package/dist/esm/types/Components/index.d.ts +2 -1
- package/dist/esm/types/Definitions/Entities/emission.d.ts +9 -0
- package/dist/esm/types/Definitions/Entities/projection.d.ts +9 -0
- package/dist/esm/types/Definitions/Enums/ghg.record.state.enum.d.ts +4 -0
- package/dist/esm/types/Definitions/index.d.ts +2 -0
- package/dist/index.d.ts +26 -3
- package/package.json +1 -1
- package/dist/cjs/types/Components/Common/AntComponents/antTableComponents.d.ts +0 -21
- package/dist/cjs/types/Components/Ndc/ndcDetailsComponent.d.ts +0 -3
- package/dist/esm/types/Components/Common/AntComponents/antTableComponents.d.ts +0 -21
- package/dist/esm/types/Components/Ndc/ndcDetailsComponent.d.ts +0 -3
@@ -0,0 +1,13 @@
|
|
1
|
+
import { FC } from "react";
|
2
|
+
import "../../../Styles/app.scss";
|
3
|
+
export interface DiscardChangesProps {
|
4
|
+
t: any;
|
5
|
+
actionInfo: any;
|
6
|
+
onActionConfirmed: any;
|
7
|
+
onActionCanceled: any;
|
8
|
+
openModal: any;
|
9
|
+
errorMsg: any;
|
10
|
+
loading: any;
|
11
|
+
}
|
12
|
+
declare const DiscardChangesConfirmationModel: FC<DiscardChangesProps>;
|
13
|
+
export default DiscardChangesConfirmationModel;
|
@@ -0,0 +1,12 @@
|
|
1
|
+
export declare const EmissionSectors: any;
|
2
|
+
export declare const formFields: {
|
3
|
+
energyEmissions: {
|
4
|
+
fuelCombustionActivities: string[];
|
5
|
+
fugitiveEmissionsFromFuels: string[];
|
6
|
+
carbonDioxideTransportStorage: string[];
|
7
|
+
};
|
8
|
+
industrialProcessesProductUse: string[];
|
9
|
+
agricultureForestryOtherLandUse: string[];
|
10
|
+
waste: string[];
|
11
|
+
other: string[];
|
12
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare const EmissionTypes: any;
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare const ProjectionTypes: any;
|
@@ -14,7 +14,6 @@ export * from "./NdcActions/NdcView/ndcActionViewComponent";
|
|
14
14
|
export * from "./Transfers/creditTransfersComponent";
|
15
15
|
export * from "./MrvDashboard/mrvDashboardViewComponent";
|
16
16
|
export * from "./RegistryDashboard/registryDashboardViewComponent";
|
17
|
-
export * from "./Ndc/ndcDetailsComponent";
|
18
17
|
export * from "./Common/Loading/loading";
|
19
18
|
export * from "./Common/LegendItem/legendItem";
|
20
19
|
export * from "./Common/Maps/mapComponent";
|
@@ -37,3 +36,5 @@ export * from "./Common/OrganisationStatus/organisationStatus";
|
|
37
36
|
export * from "./Common/ProgrammeDocuments/programmeDocuments";
|
38
37
|
export * from "./Common/UserRoleIcon/userRoleIcon";
|
39
38
|
export * from "./Common/TimelineBody/timelineBody";
|
39
|
+
export * from "./GhgInventory/Emissions/emissions";
|
40
|
+
export * from "./GhgInventory/Projections/projections";
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import { GHGRecordState } from '../Enums/ghg.record.state.enum';
|
2
|
+
import { BaseEntity } from './baseEntity';
|
3
|
+
export declare class Emission implements BaseEntity {
|
4
|
+
id?: string;
|
5
|
+
year?: string;
|
6
|
+
state?: GHGRecordState;
|
7
|
+
emissionDocument?: string;
|
8
|
+
version?: number;
|
9
|
+
}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import { GHGRecordState } from '../Enums/ghg.record.state.enum';
|
2
|
+
import { BaseEntity } from './baseEntity';
|
3
|
+
export declare class Projection implements BaseEntity {
|
4
|
+
id?: string;
|
5
|
+
year?: string;
|
6
|
+
state?: GHGRecordState;
|
7
|
+
emissionDocument?: string;
|
8
|
+
version?: number;
|
9
|
+
}
|
package/dist/index.d.ts
CHANGED
@@ -35,8 +35,6 @@ declare const MrvDashboardComponent: (props: any) => React.JSX.Element;
|
|
35
35
|
|
36
36
|
declare const RegistryDashboardComponent: (props: any) => React.JSX.Element;
|
37
37
|
|
38
|
-
declare const NdcDetailsComponent: (props: any) => React.JSX.Element;
|
39
|
-
|
40
38
|
declare const Loading: () => React.JSX.Element;
|
41
39
|
|
42
40
|
interface LegendItemItemProps {
|
@@ -923,6 +921,27 @@ declare class ProgrammeCertify implements BaseEntity {
|
|
923
921
|
comment?: string;
|
924
922
|
}
|
925
923
|
|
924
|
+
declare enum GHGRecordState {
|
925
|
+
SAVED = "SAVED",
|
926
|
+
FINALIZED = "FINALIZED"
|
927
|
+
}
|
928
|
+
|
929
|
+
declare class Emission implements BaseEntity {
|
930
|
+
id?: string;
|
931
|
+
year?: string;
|
932
|
+
state?: GHGRecordState;
|
933
|
+
emissionDocument?: string;
|
934
|
+
version?: number;
|
935
|
+
}
|
936
|
+
|
937
|
+
declare class Projection implements BaseEntity {
|
938
|
+
id?: string;
|
939
|
+
year?: string;
|
940
|
+
state?: GHGRecordState;
|
941
|
+
emissionDocument?: string;
|
942
|
+
version?: number;
|
943
|
+
}
|
944
|
+
|
926
945
|
interface TransferActionModelProps {
|
927
946
|
icon: any;
|
928
947
|
title: string;
|
@@ -990,6 +1009,10 @@ interface TimelineBodyProps {
|
|
990
1009
|
}
|
991
1010
|
declare const TimelineBody: FC<TimelineBodyProps>;
|
992
1011
|
|
1012
|
+
declare const GHGEmissionsComponent: (props: any) => React.JSX.Element;
|
1013
|
+
|
1014
|
+
declare const GHGProjectionsComponent: (props: any) => React.JSX.Element;
|
1015
|
+
|
993
1016
|
declare const AdminBGColor = "rgba(255, 166, 166, 0.42)";
|
994
1017
|
declare const AdminColor = "#D12800";
|
995
1018
|
declare const RootBGColor = "rgba(255, 0, 229, 0.15)";
|
@@ -1010,4 +1033,4 @@ declare const TooltipColor = "#6ACDFF";
|
|
1010
1033
|
declare const InvestmentBGColor = "rgba(151, 110, 215, 0.3)";
|
1011
1034
|
declare const InvestmentColor = "#9155FD";
|
1012
1035
|
|
1013
|
-
export { Action, AdaptationProperties, AddNdcActionComponent, AddNewCompanyComponent, AddNewUserComponent, AdminBGColor, AdminColor, AgricultureProperties, BaseEntity, CarbonSystemType, CertBGColor, CertColor, CoBenefitProps, CoBenefitsProperties, CoBenifitsComponent, Company, CompanyManagementColumns, CompanyManagementComponent, CompanyProfileComponent, CompanyRole, CompanyState, ConfigurationSettingsType, ConnectionContextProviderProps, ConnectionProps, CountrySelect, CreditTransferComponent, CreditTransferStage, DevBGColor, DevColor, DocType, DocumentStatus, ESGType, EnablementProperties, EnergyGenerationUnits, FormElementType, GovBGColor, GovColor, HeaderProps, ImgWithFallback, InfoView, InfoViewProps, Instrument, InvestmentBGColor, InvestmentBody, InvestmentBodyProps, InvestmentColor, InvestmentCreationComponent, InvestmentLevel, InvestmentManagementComponent, InvestmentStatus, InvestmentStream, InvestmentType, LandAreaUnits, LayoutSiderProps, LegendItem, LegendItemItemProps, Loading, LoginProps, ManagerBGColor, ManagerColor, MapComponent, MapComponentProps, MapPopupData, MapSourceData, MapTypes, MapboxComponent, MarkerData, Methods, MinBGColor, MinColor, MitigationTypes, MrvDashboardComponent, MrvStatsCardsTypes, NdcAction, NdcActionBody, NdcActionBodyProps, NdcActionManagementComponent, NdcActionStatus, NdcActionTypes, NdcActionViewComponent,
|
1036
|
+
export { Action, AdaptationProperties, AddNdcActionComponent, AddNewCompanyComponent, AddNewUserComponent, AdminBGColor, AdminColor, AgricultureProperties, BaseEntity, CarbonSystemType, CertBGColor, CertColor, CoBenefitProps, CoBenefitsProperties, CoBenifitsComponent, Company, CompanyManagementColumns, CompanyManagementComponent, CompanyProfileComponent, CompanyRole, CompanyState, ConfigurationSettingsType, ConnectionContextProviderProps, ConnectionProps, CountrySelect, CreditTransferComponent, CreditTransferStage, DevBGColor, DevColor, DocType, DocumentStatus, ESGType, Emission, EnablementProperties, EnergyGenerationUnits, FormElementType, GHGEmissionsComponent, GHGProjectionsComponent, GovBGColor, GovColor, HeaderProps, ImgWithFallback, InfoView, InfoViewProps, Instrument, InvestmentBGColor, InvestmentBody, InvestmentBodyProps, InvestmentColor, InvestmentCreationComponent, InvestmentLevel, InvestmentManagementComponent, InvestmentStatus, InvestmentStream, InvestmentType, LandAreaUnits, LayoutSiderProps, LegendItem, LegendItemItemProps, Loading, LoginProps, ManagerBGColor, ManagerColor, MapComponent, MapComponentProps, MapPopupData, MapSourceData, MapTypes, MapboxComponent, MarkerData, Methods, MinBGColor, MinColor, MitigationTypes, MrvDashboardComponent, 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, Projection, RadioButtonStatus, RadioButtonStatus2, RegistryDashboardComponent, RejectDocumentationConfirmationModel, RejectDocumentationProps, Response, RetireType, Role, RoleIcon, RoleIconProps, RootBGColor, RootColor, SdgGoals, Sector, SectoralScope, SolarProperties, StasticCard, StasticCardItemProps, StatsCardsTypes, SystemNames, TimelineBody, TimelineBodyProps, Titles, TooltipColor, TransferActionModel, TransferActionModelProps, TxType, TypeOfMitigation, UnitField, User, UserContextProps, UserCreationProps, UserManagementColumns, UserManagementComponent, UserProfileComponent, UserProps, UserRoleIcon, UserRoleIconProps, ViewBGColor, ViewColor, 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,21 +0,0 @@
|
|
1
|
-
import React from 'react';
|
2
|
-
interface Item {
|
3
|
-
key: string;
|
4
|
-
name: string;
|
5
|
-
age: string;
|
6
|
-
address: string;
|
7
|
-
}
|
8
|
-
interface EditableRowProps {
|
9
|
-
index: number;
|
10
|
-
}
|
11
|
-
export declare const EditableRow: React.FC<EditableRowProps>;
|
12
|
-
interface EditableCellProps {
|
13
|
-
title: React.ReactNode;
|
14
|
-
editable: boolean;
|
15
|
-
children: React.ReactNode;
|
16
|
-
dataIndex: keyof Item;
|
17
|
-
record: Item;
|
18
|
-
handleSave: (record: Item) => void;
|
19
|
-
}
|
20
|
-
export declare const EditableCell: React.FC<EditableCellProps>;
|
21
|
-
export {};
|
@@ -1,21 +0,0 @@
|
|
1
|
-
import React from 'react';
|
2
|
-
interface Item {
|
3
|
-
key: string;
|
4
|
-
name: string;
|
5
|
-
age: string;
|
6
|
-
address: string;
|
7
|
-
}
|
8
|
-
interface EditableRowProps {
|
9
|
-
index: number;
|
10
|
-
}
|
11
|
-
export declare const EditableRow: React.FC<EditableRowProps>;
|
12
|
-
interface EditableCellProps {
|
13
|
-
title: React.ReactNode;
|
14
|
-
editable: boolean;
|
15
|
-
children: React.ReactNode;
|
16
|
-
dataIndex: keyof Item;
|
17
|
-
record: Item;
|
18
|
-
handleSave: (record: Item) => void;
|
19
|
-
}
|
20
|
-
export declare const EditableCell: React.FC<EditableCellProps>;
|
21
|
-
export {};
|