@undp/carbon-library 1.0.281-CARBON-306.0 → 1.0.281-CARBON-306.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (51) hide show
  1. package/dist/cjs/index.js +5904 -804
  2. package/dist/cjs/index.js.map +1 -1
  3. package/dist/cjs/types/Components/Common/AntComponents/antTableComponents.d.ts +9 -6
  4. package/dist/cjs/types/Components/Common/Models/discardChangesConfirmationModel.d.ts +13 -0
  5. package/dist/cjs/types/Components/Common/Models/ghgUserActionConfirmationModel.d.ts +13 -0
  6. package/dist/cjs/types/Components/GhgInventory/Dashboard/BarChartEstimatedActualStatsComponent.d.ts +16 -0
  7. package/dist/cjs/types/Components/GhgInventory/Dashboard/BarChartStatsComponent.d.ts +13 -0
  8. package/dist/cjs/types/Components/GhgInventory/Dashboard/ghg.chart.options.d.ts +12 -0
  9. package/dist/cjs/types/Components/GhgInventory/Dashboard/ghg.dashboard.d.ts +3 -0
  10. package/dist/cjs/types/Components/GhgInventory/Emissions/emissions.d.ts +4 -0
  11. package/dist/cjs/types/Components/GhgInventory/Projections/projections.d.ts +4 -0
  12. package/dist/cjs/types/Components/GhgInventory/emission.mappings.d.ts +17 -0
  13. package/dist/cjs/types/Components/GhgInventory/emission.types.d.ts +1 -0
  14. package/dist/cjs/types/Components/GhgInventory/projection.types.d.ts +1 -0
  15. package/dist/cjs/types/Components/index.d.ts +3 -0
  16. package/dist/cjs/types/Definitions/Definitions/ndcDetails.definitions.d.ts +42 -0
  17. package/dist/cjs/types/Definitions/Entities/emission.d.ts +9 -0
  18. package/dist/cjs/types/Definitions/Entities/projection.d.ts +9 -0
  19. package/dist/cjs/types/Definitions/Enums/ghg.record.state.enum.d.ts +4 -0
  20. package/dist/cjs/types/Definitions/Enums/sector.enum.d.ts +43 -0
  21. package/dist/cjs/types/Definitions/Enums/statsCards.type.enum.d.ts +7 -0
  22. package/dist/cjs/types/Definitions/Enums/widget.type.enum.d.ts +3 -1
  23. package/dist/cjs/types/Definitions/index.d.ts +2 -0
  24. package/dist/esm/index.js +5901 -807
  25. package/dist/esm/index.js.map +1 -1
  26. package/dist/esm/types/Components/Common/AntComponents/antTableComponents.d.ts +9 -6
  27. package/dist/esm/types/Components/Common/Models/discardChangesConfirmationModel.d.ts +13 -0
  28. package/dist/esm/types/Components/Common/Models/ghgUserActionConfirmationModel.d.ts +13 -0
  29. package/dist/esm/types/Components/GhgInventory/Dashboard/BarChartEstimatedActualStatsComponent.d.ts +16 -0
  30. package/dist/esm/types/Components/GhgInventory/Dashboard/BarChartStatsComponent.d.ts +13 -0
  31. package/dist/esm/types/Components/GhgInventory/Dashboard/ghg.chart.options.d.ts +12 -0
  32. package/dist/esm/types/Components/GhgInventory/Dashboard/ghg.dashboard.d.ts +3 -0
  33. package/dist/esm/types/Components/GhgInventory/Emissions/emissions.d.ts +4 -0
  34. package/dist/esm/types/Components/GhgInventory/Projections/projections.d.ts +4 -0
  35. package/dist/esm/types/Components/GhgInventory/emission.mappings.d.ts +17 -0
  36. package/dist/esm/types/Components/GhgInventory/emission.types.d.ts +1 -0
  37. package/dist/esm/types/Components/GhgInventory/projection.types.d.ts +1 -0
  38. package/dist/esm/types/Components/index.d.ts +3 -0
  39. package/dist/esm/types/Definitions/Definitions/ndcDetails.definitions.d.ts +42 -0
  40. package/dist/esm/types/Definitions/Entities/emission.d.ts +9 -0
  41. package/dist/esm/types/Definitions/Entities/projection.d.ts +9 -0
  42. package/dist/esm/types/Definitions/Enums/ghg.record.state.enum.d.ts +4 -0
  43. package/dist/esm/types/Definitions/Enums/sector.enum.d.ts +43 -0
  44. package/dist/esm/types/Definitions/Enums/statsCards.type.enum.d.ts +7 -0
  45. package/dist/esm/types/Definitions/Enums/widget.type.enum.d.ts +3 -1
  46. package/dist/esm/types/Definitions/index.d.ts +2 -0
  47. package/dist/index.d.ts +81 -2
  48. package/dist/locales/i18n/ghgInventory/en.json +79 -0
  49. package/dist/locales/i18n/nav/en.json +2 -0
  50. package/dist/locales/i18n/ndc/en.json +28 -3
  51. package/package.json +1 -1
@@ -9,13 +9,16 @@ interface EditableRowProps {
9
9
  index: number;
10
10
  }
11
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;
12
+ interface EditableCellProps extends React.HTMLAttributes<HTMLElement> {
13
+ editing: boolean;
14
+ dataIndex: string;
15
+ title: any;
16
+ inputType: "number" | "text";
17
17
  record: Item;
18
- handleSave: (record: Item) => void;
18
+ index: number;
19
+ children: React.ReactNode;
20
+ onBlurHandler: any;
21
+ t: any;
19
22
  }
20
23
  export declare const EditableCell: React.FC<EditableCellProps>;
21
24
  export {};
@@ -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,13 @@
1
+ import { FC } from "react";
2
+ import "../../../Styles/app.scss";
3
+ export interface UserActionProps {
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 GHGUserActionConfirmationModel: FC<UserActionProps>;
13
+ export default GHGUserActionConfirmationModel;
@@ -0,0 +1,16 @@
1
+ import { FC } from 'react';
2
+ export interface BarChartEstimatedActualStatsProps {
3
+ id: string;
4
+ title: string;
5
+ estimateOptions: any;
6
+ actualOptions: any;
7
+ estimatedSeries: any;
8
+ actualSeries: any;
9
+ lastUpdateEstimate: any;
10
+ lastUpdateActual: any;
11
+ loading: boolean;
12
+ toolTipText: string;
13
+ Chart: any;
14
+ width: any;
15
+ }
16
+ export declare const BarChartEstimatedActualStatComponent: FC<BarChartEstimatedActualStatsProps>;
@@ -0,0 +1,13 @@
1
+ import { FC } from 'react';
2
+ export interface BarChartStatsProps {
3
+ id: string;
4
+ title: string;
5
+ options: any;
6
+ series: any;
7
+ lastUpdate: any;
8
+ loading: boolean;
9
+ toolTipText: string;
10
+ Chart: any;
11
+ width: any;
12
+ }
13
+ export declare const BarChartsStatComponent: FC<BarChartStatsProps>;
@@ -0,0 +1,12 @@
1
+ export interface GHGChartSeriesItem {
2
+ name: string;
3
+ data: any[];
4
+ type: string;
5
+ }
6
+ export interface ChartSeriesItem {
7
+ name: string;
8
+ data: any[];
9
+ }
10
+ export declare const totalEmissionOptionsSub: any;
11
+ export declare const actualVsEstimateOptionsSub: any;
12
+ export declare const emissionComparisonOptionsSub: any;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import './ghg.dashboard.scss';
3
+ export declare const GHGDashboardComponent: (props: any) => React.JSX.Element;
@@ -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,17 @@
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
+ };
13
+ export declare const emissionCsvFieldMap: any;
14
+ export declare const projectionsCsvFieldMap: any;
15
+ export declare const totalEmissionFields: string[];
16
+ export declare const totalProjectionFields: string[];
17
+ export declare const excelFields: string[];
@@ -0,0 +1 @@
1
+ export declare const EmissionTypes: any;
@@ -0,0 +1 @@
1
+ export declare const ProjectionTypes: any;
@@ -39,3 +39,6 @@ export * from "./Common/OrganisationStatus/organisationStatus";
39
39
  export * from "./Common/ProgrammeDocuments/programmeDocuments";
40
40
  export * from "./Common/UserRoleIcon/userRoleIcon";
41
41
  export * from "./Common/TimelineBody/timelineBody";
42
+ export * from "./GhgInventory/Emissions/emissions";
43
+ export * from "./GhgInventory/Projections/projections";
44
+ export * from "./GhgInventory/Dashboard/ghg.dashboard";
@@ -0,0 +1,42 @@
1
+ export type Period = {
2
+ key: string;
3
+ label: string;
4
+ startYear: number;
5
+ endYear: number;
6
+ finalized: boolean;
7
+ deleted: boolean;
8
+ };
9
+ export type NdcDetail = {
10
+ id: number;
11
+ actionType: NdcDetailsActionType;
12
+ nationalPlanObjective: string;
13
+ kpi: number | string;
14
+ ministryName: string;
15
+ periodId?: number;
16
+ status: NdcDetailsActionStatus;
17
+ parentActionId?: number;
18
+ };
19
+ export type DateRange = {
20
+ startYear: number;
21
+ endYear: number;
22
+ };
23
+ export declare enum NdcDetailsActionType {
24
+ MainAction = "MainAction",
25
+ SubAction = "SubAction"
26
+ }
27
+ export declare enum NdcDetailsActionStatus {
28
+ New = "New",
29
+ Pending = "Pending",
30
+ Approved = "Approved",
31
+ Rejected = "Rejected"
32
+ }
33
+ export declare const getNdcActionStatusEnumVal: (value: string) => string;
34
+ export declare const getNdcActionStatusTagType: (status: NdcDetailsActionStatus) => "error" | "processing" | "default" | "success";
35
+ export type PopupInfo = {
36
+ title: string;
37
+ icon: any;
38
+ actionBtnText: string;
39
+ okAction: any;
40
+ type: "primary" | "danger";
41
+ remarkRequired: boolean;
42
+ };
@@ -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
+ }
@@ -10,3 +10,46 @@ export declare enum Sector {
10
10
  Agriculture = "Agriculture",
11
11
  Other = "Other"
12
12
  }
13
+ export declare enum EmissionSector {
14
+ 'energyEmissions' = "Energy",
15
+ 'industrialProcessesProductUse' = "Industrial Processes & Product Use",
16
+ 'agricultureForestryOtherLandUse' = "Agriculture, Forestry, and Other Land Use",
17
+ 'waste' = "Waste",
18
+ 'other' = "Other"
19
+ }
20
+ export declare enum EmissionGas {
21
+ 'co2' = "CO<sub>2</sub>",
22
+ 'ch4' = "CH<sub>4</sub>",
23
+ 'n2o' = "N<sub>2</sub>O",
24
+ 'co2eq' = "CO<sub>2</sub>-eq"
25
+ }
26
+ export declare enum EmissionSubSectors {
27
+ fuelCombustionActivities = "Fuel Combustion Activities",
28
+ fugitiveEmissionsFromFuels = "Fugitive emissions from fuels",
29
+ carbonDioxideTransportStorage = "Carbon dioxide Transport and Storage",
30
+ mineralIndustry = "Mineral Industry",
31
+ chemicalIndustry = "Chemical Industry",
32
+ metalIndustry = "Metal Industry",
33
+ nonEnergyProductsFuelsSolventUse = "Non-Energy Products from Fuels and Solvent Use",
34
+ electronicsIndustry = "Electronics Industry",
35
+ productUsesSubstOzoneDepletingSubs = "Product Uses as Substitutes for Ozone Depleting Substances",
36
+ otherProductManufactureUse = "Other Product Manufacture and Use",
37
+ otherIndustrialProcessesProductUse = "Other (Industrial Processes & Product Use)",
38
+ livestock = "Livestock",
39
+ land = "Land",
40
+ aggregateNonCo2SourcesLand = "Aggregate sources and non-CO2 emissions sources on land",
41
+ otherAgricultureForestryOtherLandUse = "Other (Agriculture, Forestry, and Other Land Use)",
42
+ solidWasteDisposal = "Solid Waste Disposal",
43
+ biologicalTreatmentSolidWaste = "Biological Treatment of Solid Waste",
44
+ incinerationOpenBurningWaste = "Incineration and Open Burning of Waste",
45
+ wastewaterTreatmentDischarge = "Wastewater Treatment and Discharge",
46
+ otherWaste = "Other (Waste)",
47
+ indirectN2oEmissions = "Indirect N2O emissions from the atmospheric deposition of nitrogen in NOx and NH3",
48
+ other = "Other"
49
+ }
50
+ export declare enum ProjectionTypes {
51
+ bau = "BAU",
52
+ conditionalNdc = "Conditional NDC",
53
+ unconditionalNdc = "Unconditional NDC",
54
+ actual = "Actual"
55
+ }
@@ -29,3 +29,10 @@ export declare enum SystemNames {
29
29
  CARBON_REGISTRY = "CARBON_REGISTRY_SYSTEM",
30
30
  CARBON_TRANSPARENCY = "CARBON_TRANSPARENCY_SYSTEM"
31
31
  }
32
+ export declare enum GhgStatCardTypes {
33
+ AGG_EMISSIONS_BY_SECTOR = "AGG_EMISSIONS_BY_SECTOR",
34
+ AGG_EMISSIONS_BY_GAS = "AGG_EMISSIONS_BY_GAS",
35
+ AGG_EMISSIONS_MITIGATION_POTENTIAL_BY_SECTOR = "AGG_EMISSIONS_MITIGATION_POTENTIAL_BY_SECTOR",
36
+ AGG_REDUCTION_PERCENT_BAU_BY_SECTOR = "AGG_REDUCTION_PERCENT_BAU_BY_SECTOR",
37
+ AGG_EMISSIONS_COMPARISON = "AGG_EMISSIONS_COMPARISON"
38
+ }
@@ -1,5 +1,7 @@
1
1
  export declare enum WidgetType {
2
2
  PIE = "Pie",
3
3
  MAP = "Map",
4
- LIST = "List"
4
+ LIST = "List",
5
+ BAR = "Bar",
6
+ BAR_ESTIMATED_AND_ACTUAL = "Bar Estimated And Actual"
5
7
  }
@@ -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";