@undp/carbon-library 1.0.57 → 1.0.59

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,30 @@
1
+ export declare enum MitigationTypes {
2
+ AGRICULTURE = "Agriculture",
3
+ BIOMASS_ENERGY = "BiomassEnergy",
4
+ CCS = "CCS",
5
+ CEMENT = "Cement",
6
+ COAL_MINE = "Coal/Mine",
7
+ EE_HOUSEHOLDS = "EEHouseholds",
8
+ EE_INDUSTRY = "EEIndustry",
9
+ EE_OWN_GENERATION = "EEOwnGeneration",
10
+ EE_SERVICE = "EEService",
11
+ EE_SUPPLY_SIDE = "EESupplySide",
12
+ ENERGY_DISTRIBUTION = "EnergyDistribution",
13
+ FORESTRY = "Forestry",
14
+ FOSSIL_FUEL = "FossilFuel",
15
+ FUGITIVE = "Fugitive",
16
+ GEOTHERMAL = "Geothermal",
17
+ HFC_PFCS_SF6 = "HFC_PFCs_SF6",
18
+ HYDRO = "Hydro",
19
+ LANDFILLS = "Landfills",
20
+ MARINE = "Marine",
21
+ METHANE_AVOIDANCE = "MethaneAvoidance",
22
+ N20 = "N20",
23
+ SOLAR = "Solar",
24
+ TRANSPORT = "Transport",
25
+ WIND = "Wind"
26
+ }
27
+ export declare const mitigationTypeList: {
28
+ value: string;
29
+ label: string;
30
+ }[];
@@ -1,6 +1,7 @@
1
1
  export * from "./Enums/company.management.columns.enum";
2
2
  export * from "./Enums/user.management.columns.enum";
3
3
  export * from "./Enums/programme.management.columns.enum";
4
+ export * from "./Enums/mitigation.types.enum";
4
5
  export * from "./Definitions/userLogin.definitions";
5
6
  export * from "./Definitions/userInformationContext.definitions";
6
7
  export * from "./Definitions/userForgotPassword.definitions";
package/dist/esm/index.js CHANGED
@@ -1500,6 +1500,75 @@ var ProgrammeManagementColumns;
1500
1500
  ProgrammeManagementColumns["emissionReductionAchieved"] = "emissionReductionAchieved";
1501
1501
  })(ProgrammeManagementColumns || (ProgrammeManagementColumns = {}));
1502
1502
 
1503
+ var MitigationTypes;
1504
+ (function (MitigationTypes) {
1505
+ MitigationTypes["AGRICULTURE"] = "Agriculture";
1506
+ MitigationTypes["BIOMASS_ENERGY"] = "BiomassEnergy";
1507
+ MitigationTypes["CCS"] = "CCS";
1508
+ MitigationTypes["CEMENT"] = "Cement";
1509
+ MitigationTypes["COAL_MINE"] = "Coal/Mine";
1510
+ MitigationTypes["EE_HOUSEHOLDS"] = "EEHouseholds";
1511
+ MitigationTypes["EE_INDUSTRY"] = "EEIndustry";
1512
+ MitigationTypes["EE_OWN_GENERATION"] = "EEOwnGeneration";
1513
+ MitigationTypes["EE_SERVICE"] = "EEService";
1514
+ MitigationTypes["EE_SUPPLY_SIDE"] = "EESupplySide";
1515
+ MitigationTypes["ENERGY_DISTRIBUTION"] = "EnergyDistribution";
1516
+ MitigationTypes["FORESTRY"] = "Forestry";
1517
+ MitigationTypes["FOSSIL_FUEL"] = "FossilFuel";
1518
+ MitigationTypes["FUGITIVE"] = "Fugitive";
1519
+ MitigationTypes["GEOTHERMAL"] = "Geothermal";
1520
+ MitigationTypes["HFC_PFCS_SF6"] = "HFC_PFCs_SF6";
1521
+ MitigationTypes["HYDRO"] = "Hydro";
1522
+ MitigationTypes["LANDFILLS"] = "Landfills";
1523
+ MitigationTypes["MARINE"] = "Marine";
1524
+ MitigationTypes["METHANE_AVOIDANCE"] = "MethaneAvoidance";
1525
+ MitigationTypes["N20"] = "N20";
1526
+ MitigationTypes["SOLAR"] = "Solar";
1527
+ MitigationTypes["TRANSPORT"] = "Transport";
1528
+ MitigationTypes["WIND"] = "Wind";
1529
+ })(MitigationTypes || (MitigationTypes = {}));
1530
+ var mitigationTypeList = [
1531
+ { value: MitigationTypes.AGRICULTURE.valueOf(), label: "Agriculture" },
1532
+ { value: MitigationTypes.SOLAR.valueOf(), label: "Solar" },
1533
+ { value: MitigationTypes.BIOMASS_ENERGY.valueOf(), label: "Biomass energy" },
1534
+ { value: MitigationTypes.CCS.valueOf(), label: "CCS" },
1535
+ { value: MitigationTypes.CEMENT.valueOf(), label: "Cement" },
1536
+ {
1537
+ value: MitigationTypes.COAL_MINE.valueOf(),
1538
+ label: "Coal bed/mine methane",
1539
+ },
1540
+ { value: MitigationTypes.EE_HOUSEHOLDS.valueOf(), label: "EE households" },
1541
+ { value: MitigationTypes.EE_INDUSTRY.valueOf(), label: "EE industry" },
1542
+ {
1543
+ value: MitigationTypes.EE_OWN_GENERATION.valueOf(),
1544
+ label: "EE own generation",
1545
+ },
1546
+ { value: MitigationTypes.EE_SERVICE.valueOf(), label: "EE service" },
1547
+ { value: MitigationTypes.EE_SUPPLY_SIDE.valueOf(), label: "EE supply side" },
1548
+ {
1549
+ value: MitigationTypes.ENERGY_DISTRIBUTION.valueOf(),
1550
+ label: "Energy distribution",
1551
+ },
1552
+ { value: MitigationTypes.FORESTRY.valueOf(), label: "Forestry" },
1553
+ {
1554
+ value: MitigationTypes.FOSSIL_FUEL.valueOf(),
1555
+ label: "Fossil fuel switch",
1556
+ },
1557
+ { value: MitigationTypes.FUGITIVE.valueOf(), label: "Fugitive" },
1558
+ { value: MitigationTypes.GEOTHERMAL.valueOf(), label: "Geothermal" },
1559
+ { value: MitigationTypes.HFC_PFCS_SF6.valueOf(), label: "HFCs, PFCs, SF6" },
1560
+ { value: MitigationTypes.HYDRO.valueOf(), label: "Hydro" },
1561
+ { value: MitigationTypes.LANDFILLS.valueOf(), label: "Landfills" },
1562
+ { value: MitigationTypes.MARINE.valueOf(), label: "Marine" },
1563
+ {
1564
+ value: MitigationTypes.METHANE_AVOIDANCE.valueOf(),
1565
+ label: "Methane avoidance",
1566
+ },
1567
+ { value: MitigationTypes.N20.valueOf(), label: "N2O" },
1568
+ { value: MitigationTypes.TRANSPORT.valueOf(), label: "Transport" },
1569
+ { value: MitigationTypes.WIND.valueOf(), label: "Wind" },
1570
+ ];
1571
+
1503
1572
  var ConfigurationSettingsType;
1504
1573
  (function (ConfigurationSettingsType) {
1505
1574
  ConfigurationSettingsType[ConfigurationSettingsType["isTransferFrozen"] = 0] = "isTransferFrozen";
@@ -2569,7 +2638,7 @@ var ProgrammeManagementComponent = function (props) {
2569
2638
  page: currentPage,
2570
2639
  size: pageSize,
2571
2640
  filterAnd: filter,
2572
- filterOr: filterOr,
2641
+ filterOr: (filterOr === null || filterOr === void 0 ? void 0 : filterOr.length) > 0 ? filterOr : undefined,
2573
2642
  sort: sort,
2574
2643
  })];
2575
2644
  case 2:
@@ -5642,5 +5711,5 @@ var StasticCard = function (props) {
5642
5711
  updatedDate !== '0' && React.createElement("div", { className: "updated-on" }, updatedDate)))));
5643
5712
  };
5644
5713
 
5645
- export { AddNewCompanyComponent, AddNewUserComponent, BaseEntity, Company, CompanyManagementColumns, CompanyManagementComponent, CompanyProfileComponent, CompanyRole$1 as CompanyRole, ConfigurationSettingsType, CreditTransferStage, LegendItem, Loading, MapComponent, MapTypes, MapboxComponent, ProfileIcon, ProgrammeEntity, ProgrammeManagementColumns, ProgrammeManagementComponent, ProgrammeStage, ProgrammeStageMRV, ProgrammeTransfer, ProgrammeViewComponent, RetireType, Role, RoleIcon, SectoralScope, StasticCard, TxType, TypeOfMitigation, UnitField, User, UserManagementColumns, UserManagementComponent, UserProfileComponent, addCommSep, addCommSepRound, addRoundNumber, addSpaces, getCompanyBgColor, getCreditStageVal, getFinancialFields, getGeneralFields, getRetirementTypeString, getStageEnumVal, getStageTagType, getStageTagTypeMRV, getStageTransferEnumVal, getTransferStageTagType, isBase64, sumArray };
5714
+ export { AddNewCompanyComponent, AddNewUserComponent, BaseEntity, Company, CompanyManagementColumns, CompanyManagementComponent, CompanyProfileComponent, CompanyRole$1 as CompanyRole, ConfigurationSettingsType, CreditTransferStage, LegendItem, Loading, MapComponent, MapTypes, MapboxComponent, MitigationTypes, ProfileIcon, ProgrammeEntity, ProgrammeManagementColumns, ProgrammeManagementComponent, ProgrammeStage, ProgrammeStageMRV, ProgrammeTransfer, ProgrammeViewComponent, RetireType, Role, RoleIcon, SectoralScope, StasticCard, TxType, TypeOfMitigation, UnitField, User, UserManagementColumns, UserManagementComponent, UserProfileComponent, addCommSep, addCommSepRound, addRoundNumber, addSpaces, getCompanyBgColor, getCreditStageVal, getFinancialFields, getGeneralFields, getRetirementTypeString, getStageEnumVal, getStageTagType, getStageTagTypeMRV, getStageTransferEnumVal, getTransferStageTagType, isBase64, mitigationTypeList, sumArray };
5646
5715
  //# sourceMappingURL=index.js.map