@undp/carbon-library 1.0.135-CARBON-343.14 → 1.0.135-ghg-inventory.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (30) hide show
  1. package/dist/cjs/index.js +3022 -365
  2. package/dist/cjs/index.js.map +1 -1
  3. package/dist/cjs/types/Components/GhgInventory/Emissions/emissions.d.ts +4 -0
  4. package/dist/cjs/types/Components/GhgInventory/Projections/projections.d.ts +4 -0
  5. package/dist/cjs/types/Components/GhgInventory/emission.mappings.d.ts +12 -0
  6. package/dist/cjs/types/Components/GhgInventory/emission.types.d.ts +1 -0
  7. package/dist/cjs/types/Components/GhgInventory/projection.types.d.ts +1 -0
  8. package/dist/cjs/types/Components/index.d.ts +2 -1
  9. package/dist/cjs/types/Definitions/Entities/emission.d.ts +9 -0
  10. package/dist/cjs/types/Definitions/Entities/projection.d.ts +9 -0
  11. package/dist/cjs/types/Definitions/Enums/ghg.record.state.enum.d.ts +4 -0
  12. package/dist/cjs/types/Definitions/index.d.ts +2 -0
  13. package/dist/esm/index.js +3021 -368
  14. package/dist/esm/index.js.map +1 -1
  15. package/dist/esm/types/Components/GhgInventory/Emissions/emissions.d.ts +4 -0
  16. package/dist/esm/types/Components/GhgInventory/Projections/projections.d.ts +4 -0
  17. package/dist/esm/types/Components/GhgInventory/emission.mappings.d.ts +12 -0
  18. package/dist/esm/types/Components/GhgInventory/emission.types.d.ts +1 -0
  19. package/dist/esm/types/Components/GhgInventory/projection.types.d.ts +1 -0
  20. package/dist/esm/types/Components/index.d.ts +2 -1
  21. package/dist/esm/types/Definitions/Entities/emission.d.ts +9 -0
  22. package/dist/esm/types/Definitions/Entities/projection.d.ts +9 -0
  23. package/dist/esm/types/Definitions/Enums/ghg.record.state.enum.d.ts +4 -0
  24. package/dist/esm/types/Definitions/index.d.ts +2 -0
  25. package/dist/index.d.ts +26 -3
  26. package/package.json +1 -1
  27. package/dist/cjs/types/Components/Common/AntComponents/antTableComponents.d.ts +0 -21
  28. package/dist/cjs/types/Components/Ndc/ndcDetailsComponent.d.ts +0 -3
  29. package/dist/esm/types/Components/Common/AntComponents/antTableComponents.d.ts +0 -21
  30. package/dist/esm/types/Components/Ndc/ndcDetailsComponent.d.ts +0 -3
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import 'antd/dist/antd.css';
3
+ import './emissions.scss';
4
+ export declare const GHGEmissionsComponent: (props: any) => React.JSX.Element;
@@ -0,0 +1,4 @@
1
+ import 'antd/dist/antd.css';
2
+ import './projections.scss';
3
+ import React from 'react';
4
+ export declare const GHGProjectionsComponent: (props: any) => React.JSX.Element;
@@ -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
+ }
@@ -0,0 +1,4 @@
1
+ export declare enum GHGRecordState {
2
+ SAVED = "SAVED",
3
+ FINALIZED = "FINALIZED"
4
+ }
@@ -46,3 +46,5 @@ export * from "./Entities/programmeTransfer";
46
46
  export * from "./Entities/user";
47
47
  export * from "./Entities/programme";
48
48
  export * from "./Entities/programmeCertify";
49
+ export * from "./Entities/emission";
50
+ export * from "./Entities/projection";
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, NdcDetailsComponent, 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, 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 };
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,6 +1,6 @@
1
1
  {
2
2
  "name": "@undp/carbon-library",
3
- "version": "1.0.135-CARBON-343.14",
3
+ "version": "1.0.135-ghg-inventory.0",
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": {
@@ -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,3 +0,0 @@
1
- import React from "react";
2
- import "./ndcDetailsComponent.scss";
3
- export declare const NdcDetailsComponent: (props: any) => React.JSX.Element;
@@ -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,3 +0,0 @@
1
- import React from "react";
2
- import "./ndcDetailsComponent.scss";
3
- export declare const NdcDetailsComponent: (props: any) => React.JSX.Element;