@undp/carbon-library 1.0.287-carbon-lib-test.0 → 1.0.287

Sign up to get free protection for your applications and to get access to all the features.
Files changed (70) hide show
  1. package/dist/cjs/index.js +1449 -1044
  2. package/dist/cjs/index.js.map +1 -1
  3. package/dist/cjs/types/Components/Common/CoBenifits/coBenifits.d.ts +1 -0
  4. package/dist/cjs/types/Components/Common/Models/programmeRetireForm.d.ts +1 -0
  5. package/dist/cjs/types/Components/Common/Models/programmeTransferForm.d.ts +1 -0
  6. package/dist/cjs/types/Components/Common/NdcActionBody/ndcActionBody.d.ts +2 -0
  7. package/dist/cjs/types/Components/Common/ProgrammeDocuments/programmeDocuments.d.ts +2 -0
  8. package/dist/cjs/types/Components/Company/CompanyDetails/companyDetailsComponent.d.ts +3 -0
  9. package/dist/cjs/types/Definitions/Definitions/connectionContext.definitions.d.ts +0 -3
  10. package/dist/cjs/types/Definitions/Definitions/ndcDetails.definitions.d.ts +1 -0
  11. package/dist/cjs/types/Definitions/Enums/instrument.enum.d.ts +3 -0
  12. package/dist/cjs/types/Definitions/Enums/payback.enum.d.ts +8 -0
  13. package/dist/cjs/types/index.d.ts +0 -1
  14. package/dist/esm/index.js +1453 -1040
  15. package/dist/esm/index.js.map +1 -1
  16. package/dist/esm/types/Components/Common/CoBenifits/coBenifits.d.ts +1 -0
  17. package/dist/esm/types/Components/Common/Models/programmeRetireForm.d.ts +1 -0
  18. package/dist/esm/types/Components/Common/Models/programmeTransferForm.d.ts +1 -0
  19. package/dist/esm/types/Components/Common/NdcActionBody/ndcActionBody.d.ts +2 -0
  20. package/dist/esm/types/Components/Common/ProgrammeDocuments/programmeDocuments.d.ts +2 -0
  21. package/dist/esm/types/Components/Company/CompanyDetails/companyDetailsComponent.d.ts +3 -0
  22. package/dist/esm/types/Definitions/Definitions/connectionContext.definitions.d.ts +0 -3
  23. package/dist/esm/types/Definitions/Definitions/ndcDetails.definitions.d.ts +1 -0
  24. package/dist/esm/types/Definitions/Enums/instrument.enum.d.ts +3 -0
  25. package/dist/esm/types/Definitions/Enums/payback.enum.d.ts +8 -0
  26. package/dist/esm/types/index.d.ts +0 -1
  27. package/dist/index.d.ts +11 -23
  28. package/dist/locales/i18n/companyDetails/en.json +19 -0
  29. package/dist/locales/i18n/companyDetails/es.json +16 -0
  30. package/dist/locales/i18n/companyDetails/fr.json +16 -0
  31. package/dist/locales/i18n/companyProfile/en.json +1 -18
  32. package/dist/locales/i18n/companyProfile/es.json +0 -14
  33. package/dist/locales/i18n/companyProfile/fr.json +0 -13
  34. package/dist/locales/i18n/ghgInventory/en.json +3 -1
  35. package/dist/locales/i18n/login/en.json +1 -0
  36. package/dist/locales/i18n/ndc/en.json +2 -0
  37. package/dist/locales/i18n/programme/en.json +9 -1
  38. package/package.json +2 -29
  39. package/dist/cjs/types/Context/ConnectionContext/connectionContext.d.ts +0 -8
  40. package/dist/cjs/types/Context/SettingsContext/settingsContext.d.ts +0 -10
  41. package/dist/cjs/types/Context/UserInformationContext/userInformationContext.d.ts +0 -6
  42. package/dist/cjs/types/Context/index.d.ts +0 -3
  43. package/dist/cjs/types/Storybook/AddNewCompanyComponent.stories.d.ts +0 -12
  44. package/dist/cjs/types/Storybook/AddNewUserComponent.stories.d.ts +0 -12
  45. package/dist/cjs/types/Storybook/Decorators/AddNewCompanyI18nDecorator.d.ts +0 -2
  46. package/dist/cjs/types/Storybook/Decorators/AddNewUserI18nDecorator.d.ts +0 -2
  47. package/dist/cjs/types/Storybook/Decorators/ConnectionContextDecorator.d.ts +0 -2
  48. package/dist/cjs/types/Storybook/Decorators/DashboardI18nDecorator.d.ts +0 -2
  49. package/dist/cjs/types/Storybook/Decorators/InvestmentCreationI18nDecorator.d.ts +0 -2
  50. package/dist/cjs/types/Storybook/Decorators/ProgrammeCreateI18nDecorator.d.ts +0 -2
  51. package/dist/cjs/types/Storybook/InvestmentCreationComponent.stories.d.ts +0 -12
  52. package/dist/cjs/types/Storybook/MRVDashboard.stories.d.ts +0 -12
  53. package/dist/cjs/types/Storybook/ProgrammeCreationComponent.stories.d.ts +0 -12
  54. package/dist/cjs/types/Storybook/RegistryDashboard.stories.d.ts +0 -12
  55. package/dist/esm/types/Context/ConnectionContext/connectionContext.d.ts +0 -8
  56. package/dist/esm/types/Context/SettingsContext/settingsContext.d.ts +0 -10
  57. package/dist/esm/types/Context/UserInformationContext/userInformationContext.d.ts +0 -6
  58. package/dist/esm/types/Context/index.d.ts +0 -3
  59. package/dist/esm/types/Storybook/AddNewCompanyComponent.stories.d.ts +0 -12
  60. package/dist/esm/types/Storybook/AddNewUserComponent.stories.d.ts +0 -12
  61. package/dist/esm/types/Storybook/Decorators/AddNewCompanyI18nDecorator.d.ts +0 -2
  62. package/dist/esm/types/Storybook/Decorators/AddNewUserI18nDecorator.d.ts +0 -2
  63. package/dist/esm/types/Storybook/Decorators/ConnectionContextDecorator.d.ts +0 -2
  64. package/dist/esm/types/Storybook/Decorators/DashboardI18nDecorator.d.ts +0 -2
  65. package/dist/esm/types/Storybook/Decorators/InvestmentCreationI18nDecorator.d.ts +0 -2
  66. package/dist/esm/types/Storybook/Decorators/ProgrammeCreateI18nDecorator.d.ts +0 -2
  67. package/dist/esm/types/Storybook/InvestmentCreationComponent.stories.d.ts +0 -12
  68. package/dist/esm/types/Storybook/MRVDashboard.stories.d.ts +0 -12
  69. package/dist/esm/types/Storybook/ProgrammeCreationComponent.stories.d.ts +0 -12
  70. package/dist/esm/types/Storybook/RegistryDashboard.stories.d.ts +0 -12
@@ -10,5 +10,6 @@ export interface CoBenefitProps {
10
10
  loading?: any;
11
11
  sdgGoalImages?: any;
12
12
  translator?: any;
13
+ useConnection?: any;
13
14
  }
14
15
  export declare const CoBenifitsComponent: (props: CoBenefitProps) => React.JSX.Element;
@@ -9,5 +9,6 @@ export interface ProgrammeRetireFormProps {
9
9
  hideType: boolean;
10
10
  myCompanyId?: number;
11
11
  translator: any;
12
+ useConnection: any;
12
13
  }
13
14
  export declare const ProgrammeRetireForm: FC<ProgrammeRetireFormProps>;
@@ -12,6 +12,7 @@ export interface ProgrammeTransferFormProps {
12
12
  userCompanyId: number | undefined;
13
13
  companyRole: string;
14
14
  translator: any;
15
+ useConnection: any;
15
16
  ministryLevelPermission?: boolean;
16
17
  }
17
18
  export declare const ProgrammeTransferForm: FC<ProgrammeTransferFormProps>;
@@ -8,7 +8,9 @@ export interface NdcActionBodyProps {
8
8
  programmeOwnerId?: any;
9
9
  getProgrammeDocs?: any;
10
10
  ministryLevelPermission?: boolean;
11
+ useConnection: any;
11
12
  translator: any;
13
+ useUserContext: any;
12
14
  onFinish?: any;
13
15
  programme?: any;
14
16
  }
@@ -9,6 +9,8 @@ export interface ProgrammeDocumentsProps {
9
9
  getDocumentDetails: any;
10
10
  getProgrammeById: any;
11
11
  ministryLevelPermission?: boolean;
12
+ useConnection: any;
13
+ useUserContext: any;
12
14
  translator: any;
13
15
  methodologyDocumentUpdated: any;
14
16
  programmeStatus?: any;
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ import "./companyDetailsComponent.scss";
3
+ export declare const CompanyDetailsComponent: (props: any) => React.JSX.Element;
@@ -3,8 +3,6 @@ import { ReactNode } from 'react';
3
3
  export type Methods = 'get' | 'post' | 'delete' | 'put' | 'patch';
4
4
  export type ConnectionContextProviderProps = {
5
5
  serverURL: string;
6
- t: any;
7
- statServerUrl?: string;
8
6
  children: ReactNode;
9
7
  };
10
8
  export interface Response<T> {
@@ -25,5 +23,4 @@ export type ConnectionProps = {
25
23
  updateToken: (token?: string) => void;
26
24
  token?: string;
27
25
  removeToken: (tkn?: string) => void;
28
- statServerUrl?: string;
29
26
  };
@@ -11,6 +11,7 @@ export type NdcDetail = {
11
11
  actionType: NdcDetailsActionType;
12
12
  nationalPlanObjective: string;
13
13
  kpi: number | string;
14
+ kpiUnit: string;
14
15
  ministryName: string;
15
16
  periodId?: number;
16
17
  status: NdcDetailsActionStatus;
@@ -5,5 +5,8 @@ export declare enum Instrument {
5
5
  EQUITY = "Equity",
6
6
  GUARANTEE = "Guarantee",
7
7
  INKIND = "In-Kind",
8
+ CONLOAN = "ConcessionalLoan",
9
+ NONCONLOAN = "Non-ConcessionalLoan",
10
+ INSURANCE = "Insurance",
8
11
  OTHER = "Other"
9
12
  }
@@ -0,0 +1,8 @@
1
+ export declare enum GuaranteePayback {
2
+ UPFORNT = "Upfront",
3
+ ANNUAL = "Annual"
4
+ }
5
+ export declare enum InsurancePayback {
6
+ LUMPSUM = "LumpSum",
7
+ ANNUAL = "Annual"
8
+ }
@@ -1,4 +1,3 @@
1
1
  export * from './Components';
2
2
  export * from './Definitions';
3
3
  export * from './Styles';
4
- export * from './Context';
package/dist/index.d.ts CHANGED
@@ -129,6 +129,7 @@ interface CoBenefitProps {
129
129
  loading?: any;
130
130
  sdgGoalImages?: any;
131
131
  translator?: any;
132
+ useConnection?: any;
132
133
  }
133
134
  declare const CoBenifitsComponent: (props: CoBenefitProps) => React.JSX.Element;
134
135
 
@@ -359,6 +360,7 @@ interface ProgrammeRetireFormProps {
359
360
  hideType: boolean;
360
361
  myCompanyId?: number;
361
362
  translator: any;
363
+ useConnection: any;
362
364
  }
363
365
  declare const ProgrammeRetireForm: FC<ProgrammeRetireFormProps>;
364
366
 
@@ -385,6 +387,7 @@ interface ProgrammeTransferFormProps {
385
387
  userCompanyId: number | undefined;
386
388
  companyRole: string;
387
389
  translator: any;
390
+ useConnection: any;
388
391
  ministryLevelPermission?: boolean;
389
392
  }
390
393
  declare const ProgrammeTransferForm: FC<ProgrammeTransferFormProps>;
@@ -687,6 +690,9 @@ declare enum Instrument {
687
690
  EQUITY = "Equity",
688
691
  GUARANTEE = "Guarantee",
689
692
  INKIND = "In-Kind",
693
+ CONLOAN = "ConcessionalLoan",
694
+ NONCONLOAN = "Non-ConcessionalLoan",
695
+ INSURANCE = "Insurance",
690
696
  OTHER = "Other"
691
697
  }
692
698
 
@@ -1037,8 +1043,6 @@ interface CountrySelect {
1037
1043
  type Methods = 'get' | 'post' | 'delete' | 'put' | 'patch';
1038
1044
  type ConnectionContextProviderProps = {
1039
1045
  serverURL: string;
1040
- t: any;
1041
- statServerUrl?: string;
1042
1046
  children: ReactNode;
1043
1047
  };
1044
1048
  interface Response<T> {
@@ -1059,7 +1063,6 @@ type ConnectionProps = {
1059
1063
  updateToken: (token?: string) => void;
1060
1064
  token?: string;
1061
1065
  removeToken: (tkn?: string) => void;
1062
- statServerUrl?: string;
1063
1066
  };
1064
1067
 
1065
1068
  type HeaderProps = {
@@ -1225,7 +1228,9 @@ interface NdcActionBodyProps {
1225
1228
  programmeOwnerId?: any;
1226
1229
  getProgrammeDocs?: any;
1227
1230
  ministryLevelPermission?: boolean;
1231
+ useConnection: any;
1228
1232
  translator: any;
1233
+ useUserContext: any;
1229
1234
  onFinish?: any;
1230
1235
  programme?: any;
1231
1236
  }
@@ -1246,6 +1251,8 @@ interface ProgrammeDocumentsProps {
1246
1251
  getDocumentDetails: any;
1247
1252
  getProgrammeById: any;
1248
1253
  ministryLevelPermission?: boolean;
1254
+ useConnection: any;
1255
+ useUserContext: any;
1249
1256
  translator: any;
1250
1257
  methodologyDocumentUpdated: any;
1251
1258
  programmeStatus?: any;
@@ -1292,23 +1299,4 @@ declare const TooltipColor = "#6ACDFF";
1292
1299
  declare const InvestmentBGColor = "rgba(151, 110, 215, 0.3)";
1293
1300
  declare const InvestmentColor = "#9155FD";
1294
1301
 
1295
- declare const ConnectionContextProvider: FC<ConnectionContextProviderProps>;
1296
-
1297
- declare const useConnection: () => ConnectionProps;
1298
-
1299
- declare const UserContext: React.Context<UserContextProps>;
1300
- declare const UserInformationContextProvider: ({ children }: React.PropsWithChildren) => React.JSX.Element;
1301
-
1302
- declare const useUserContext: () => UserContextProps;
1303
-
1304
- declare const SettingsContext: React.Context<{
1305
- isTransferFrozen: boolean;
1306
- setTransferFrozen: (value: boolean) => void;
1307
- }>;
1308
- declare const SettingsContextProvider: ({ children }: React.PropsWithChildren) => React.JSX.Element;
1309
- declare const useSettingsContext: () => {
1310
- isTransferFrozen: boolean;
1311
- setTransferFrozen: (value: boolean) => void;
1312
- };
1313
-
1314
- export { Action, AdaptationProperties, AddNdcActionComponent, AddNewCompanyComponent, AddNewUserComponent, AdminBGColor, AdminColor, AgricultureProperties, BaseEntity, CarbonSystemType, CertBGColor, CertColor, CoBenefitProps, CoBenefitsProperties, CoBenifitsComponent, Company, CompanyManagementColumns, CompanyManagementComponent, CompanyProfileComponent, CompanyRole, CompanyState, ConfigurationSettingsType, ConnectionContextProvider, ConnectionContextProviderProps, ConnectionProps, CountrySelect, CreditCalculationProperties, CreditTransferComponent, CreditTransferStage, DevBGColor, DevColor, DocType, DocumentStatus, ESGType, Emission, EmissionGas, EmissionSector, EmissionSubSectors, EnablementProperties, EnergyGenerationUnits, FormElementType, GHGDashboardComponent, GHGEmissionsComponent, GHGProjectionsComponent, GhgStatCardTypes, GovBGColor, GovColor, HeaderProps, ImgWithFallback, InfoView, InfoViewProps, Instrument, InvestmentBGColor, InvestmentBody, InvestmentBodyProps, InvestmentColor, InvestmentCreationComponent, InvestmentCreationType, InvestmentLevel, InvestmentManagementComponent, InvestmentStatus, InvestmentStream, InvestmentType, LandAreaUnits, LayoutSiderProps, LegendItem, LegendItemItemProps, Loading, LoginProps, ManagerBGColor, ManagerColor, MapComponent, MapComponentProps, MapPopupData, MapSourceData, MapTypes, MapboxComponent, MarkerData, Methods, MinBGColor, MinColor, MitigationSubTypes, 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, Projection, ProjectionTypes, RadioButtonStatus, RadioButtonStatus2, RegistryDashboardComponent, RejectDocumentationConfirmationModel, RejectDocumentationProps, Response, RetireType, Role, RoleIcon, RoleIconProps, RootBGColor, RootColor, SdgGoals, Sector, SectoralScope, SettingsContext, SettingsContextProvider, SolarProperties, StasticCard, StasticCardItemProps, StatsCardsTypes, SubTypeOfMitigation, SupportCreationComponent, SupportManagementComponent, SystemNames, TimelineBody, TimelineBodyProps, Titles, TooltipColor, TransferActionModel, TransferActionModelProps, TxType, TypeOfMitigation, UnitField, User, UserContext, UserContextProps, UserCreationProps, UserInformationContextProvider, UserManagementColumns, UserManagementComponent, UserProfileComponent, UserProps, UserRoleIcon, UserRoleIconProps, ViewBGColor, ViewColor, WidgetType, addCommSep, addCommSepRound, addNdcDesc, addRoundNumber, addSpaces, consumerGroupList, creditUnit, dateFormat, dateTimeFormat, energyGenerationUnitList, getBase64, getCompanyBgColor, getCreditStageVal, getFinancialFields, getGeneralFields, getInvestmentStatusEnumVal, getNdcActionStatusEnumVal, getNdcStatusTagType, getRetirementTypeString, getStageEnumVal, getStageTagType, getStageTagTypeMRV, getStageTransferEnumVal, getStatusTagType, getTransferStageTagType, getValidNdcActions, isBase64, landAreaUnitList, methodologyOptions, mitigationSubTypeList, mitigationSubTypesListMapped, mitigationTypeList, ndcActionTypeList, sectorMitigationTypesListMapped, sumArray, titleList, useConnection, useSettingsContext, useUserContext, userForgotPasswordProps };
1302
+ 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, CreditCalculationProperties, CreditTransferComponent, CreditTransferStage, DevBGColor, DevColor, DocType, DocumentStatus, ESGType, Emission, EmissionGas, EmissionSector, EmissionSubSectors, EnablementProperties, EnergyGenerationUnits, FormElementType, GHGDashboardComponent, GHGEmissionsComponent, GHGProjectionsComponent, GhgStatCardTypes, GovBGColor, GovColor, HeaderProps, ImgWithFallback, InfoView, InfoViewProps, Instrument, InvestmentBGColor, InvestmentBody, InvestmentBodyProps, InvestmentColor, InvestmentCreationComponent, InvestmentCreationType, InvestmentLevel, InvestmentManagementComponent, InvestmentStatus, InvestmentStream, InvestmentType, LandAreaUnits, LayoutSiderProps, LegendItem, LegendItemItemProps, Loading, LoginProps, ManagerBGColor, ManagerColor, MapComponent, MapComponentProps, MapPopupData, MapSourceData, MapTypes, MapboxComponent, MarkerData, Methods, MinBGColor, MinColor, MitigationSubTypes, 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, Projection, ProjectionTypes, RadioButtonStatus, RadioButtonStatus2, RegistryDashboardComponent, RejectDocumentationConfirmationModel, RejectDocumentationProps, Response, RetireType, Role, RoleIcon, RoleIconProps, RootBGColor, RootColor, SdgGoals, Sector, SectoralScope, SolarProperties, StasticCard, StasticCardItemProps, StatsCardsTypes, SubTypeOfMitigation, SupportCreationComponent, SupportManagementComponent, SystemNames, TimelineBody, TimelineBodyProps, Titles, TooltipColor, TransferActionModel, TransferActionModelProps, TxType, TypeOfMitigation, UnitField, User, UserContextProps, UserCreationProps, UserManagementColumns, UserManagementComponent, UserProfileComponent, UserProps, UserRoleIcon, UserRoleIconProps, ViewBGColor, ViewColor, WidgetType, addCommSep, addCommSepRound, addNdcDesc, addRoundNumber, addSpaces, consumerGroupList, creditUnit, dateFormat, dateTimeFormat, energyGenerationUnitList, getBase64, getCompanyBgColor, getCreditStageVal, getFinancialFields, getGeneralFields, getInvestmentStatusEnumVal, getNdcActionStatusEnumVal, getNdcStatusTagType, getRetirementTypeString, getStageEnumVal, getStageTagType, getStageTagTypeMRV, getStageTransferEnumVal, getStatusTagType, getTransferStageTagType, getValidNdcActions, isBase64, landAreaUnitList, methodologyOptions, mitigationSubTypeList, mitigationSubTypesListMapped, mitigationTypeList, ndcActionTypeList, sectorMitigationTypesListMapped, sumArray, titleList, userForgotPasswordProps };
@@ -0,0 +1,19 @@
1
+ {
2
+ "organisationDetailsHeading": "Organisation Details",
3
+ "name" : "Name",
4
+ "taxId" : "VAT Registration #",
5
+ "paymentId" : "Registration Payment ID",
6
+ "companyRole": "Role",
7
+ "email" : "Email",
8
+ "phoneNo" : "Phone",
9
+ "website" : "Website",
10
+ "address" : "Address",
11
+ "creditBalance":"Credit Balance",
12
+ "programmeCount":"Number of Projects",
13
+ "remarks": "Remarks",
14
+ "region": "Region",
15
+ "ministerName": "Name of the Minister",
16
+ "sectoralScope": "Sectoral Scope",
17
+ "nationalSopValue": "National Share of Proceeds",
18
+ "omgePercentage":"Overall Mitigation in Global Emissions (OMGE) Account"
19
+ }
@@ -0,0 +1,16 @@
1
+ {
2
+ "organisationDetailsHeading": "Detalles de la Organización",
3
+ "name": "Nombre",
4
+ "taxId": "ID Fiscal",
5
+ "paymentId": "ID de Pago de Registro",
6
+ "companyRole": "Rol",
7
+ "email": "Correo Electrónico",
8
+ "phoneNo": "Teléfono",
9
+ "website": "Sitio Web",
10
+ "address": "Dirección",
11
+ "creditBalance": "Saldo de Créditos",
12
+ "programmeCount": "Número de Programas",
13
+ "remarks": "Observaciones",
14
+ "ministerName": "Nombre del Ministro",
15
+ "sectoralScope": "Ámbito Sectorial"
16
+ }
@@ -0,0 +1,16 @@
1
+ {
2
+ "organisationDetailsHeading": "Détails de l'Organisation",
3
+ "name": "Nom",
4
+ "taxId": "Identifiant Fiscal",
5
+ "paymentId": "ID de Paiement d'Inscription",
6
+ "companyRole": "Rôle",
7
+ "email": "E-mail",
8
+ "phoneNo": "Téléphone",
9
+ "website": "Site Web",
10
+ "address": "Adresse",
11
+ "creditBalance": "Solde de Crédits",
12
+ "programmeCount": "Nombre de Programmes",
13
+ "remarks": "Remarques",
14
+ "ministerName": "Nom du Ministre",
15
+ "sectoralScope": "Portée Sectorielle"
16
+ }
@@ -5,31 +5,16 @@
5
5
  "reActivate": "REACTIVATE",
6
6
  "approve": "APPROVE",
7
7
  "reject": "REJECT",
8
- "organisationDetailsHeading": "Organisation Details",
9
- "name" : "Name",
10
- "taxId" : "VAT Registration #",
11
- "paymentId" : "Registration Payment ID",
12
- "companyRole": "Role",
13
- "email" : "Email",
14
- "phoneNo" : "Phone",
15
- "website" : "Website",
16
- "address" : "Address",
17
- "creditBalance":"Credit Balance",
18
- "programmeCount":"Number of Projects",
19
8
  "deauthoriseConfirmHeaderText": "Are you sure you want to deactivate this organisation?",
20
9
  "deauthoriseConfirmText":"Organisation will still be visible but no further action will be able to take place.\n Note: all users associated with the organisation will also be deactivated.",
21
10
  "activeStatus": "Active",
22
11
  "deauthorisedStatus": "Deactivated",
23
12
  "pendingStatus": "Pending",
24
13
  "rejectedStatus": "Rejected",
25
- "remarks": "Remarks",
26
14
  "deauthorisationSuccess": "Company deactivated successfully!",
27
15
  "reActivateConfirmHeaderText": "Are you sure you want to reactivate this organisation?",
28
16
  "reActivateConfirmText": "Note: all users associated with the organisation will also be reactivated.",
29
17
  "reactivationSuccess": "Company reactivated successfully!",
30
- "region": "Region",
31
- "ministerName": "Name of the Minister",
32
- "sectoralScope": "Sectoral Scope",
33
18
  "approveConfirmHeaderText": "Are you sure you want to authorise this organisation?",
34
19
  "approveConfirmText": "You can't undo this action",
35
20
  "approvedSuccessfully": "The Organisation was approved successfully",
@@ -39,7 +24,5 @@
39
24
  "adminDetailsHeading": "Organisation Admin Details",
40
25
  "adminName": "Name",
41
26
  "adminEmail": "Email",
42
- "adminPhone": "Phone",
43
- "nationalSopValue": "National Share of Proceeds",
44
- "omgePercentage":"Overall Mitigation in Global Emissions (OMGE) Account"
27
+ "adminPhone": "Phone"
45
28
  }
@@ -5,30 +5,16 @@
5
5
  "reActivate": "REACTIVAR",
6
6
  "approve": "APROBAR",
7
7
  "reject": "RECHAZAR",
8
- "organisationDetailsHeading": "Detalles de la Organización",
9
- "name": "Nombre",
10
- "taxId": "ID Fiscal",
11
- "paymentId": "ID de Pago de Registro",
12
- "companyRole": "Rol",
13
- "email": "Correo Electrónico",
14
- "phoneNo": "Teléfono",
15
- "website": "Sitio Web",
16
- "address": "Dirección",
17
- "creditBalance": "Saldo de Créditos",
18
- "programmeCount": "Número de Programas",
19
8
  "deauthoriseConfirmHeaderText": "¿Está seguro de que desea desactivar esta organización?",
20
9
  "deauthoriseConfirmText": "La organización seguirá siendo visible, pero no se podrá realizar ninguna acción adicional.\nNota: todos los usuarios asociados con la organización también serán desactivados.",
21
10
  "activeStatus": "Activo",
22
11
  "deauthorisedStatus": "Desactivado",
23
12
  "pendingStatus": "Pendiente",
24
13
  "rejectedStatus": "Rechazado",
25
- "remarks": "Observaciones",
26
14
  "deauthorisationSuccess": "¡Organización desactivada con éxito!",
27
15
  "reActivateConfirmHeaderText": "¿Está seguro de que desea reactivar esta organización?",
28
16
  "reActivateConfirmText": "Nota: todos los usuarios asociados con la organización también serán reactivados.",
29
17
  "reactivationSuccess": "¡Organización reactivada con éxito!",
30
- "ministerName": "Nombre del Ministro",
31
- "sectoralScope": "Ámbito Sectorial",
32
18
  "approveConfirmHeaderText": "¿Está seguro de que desea autorizar esta organización?",
33
19
  "approveConfirmText": "No puede deshacer esta acción",
34
20
  "approvedSuccessfully": "La organización fue aprobada con éxito",
@@ -5,17 +5,6 @@
5
5
  "reActivate": "RÉACTIVER",
6
6
  "approve": "APPROUVER",
7
7
  "reject": "REJETER",
8
- "organisationDetailsHeading": "Détails de l'Organisation",
9
- "name": "Nom",
10
- "taxId": "Identifiant Fiscal",
11
- "paymentId": "ID de Paiement d'Inscription",
12
- "companyRole": "Rôle",
13
- "email": "E-mail",
14
- "phoneNo": "Téléphone",
15
- "website": "Site Web",
16
- "address": "Adresse",
17
- "creditBalance": "Solde de Crédits",
18
- "programmeCount": "Nombre de Programmes",
19
8
  "deauthoriseConfirmHeaderText": "Êtes-vous sûr de vouloir désactiver cette organisation ?",
20
9
  "deauthoriseConfirmText": "L'organisation restera visible mais aucune action supplémentaire ne pourra être effectuée.\nNote : tous les utilisateurs associés à l'organisation seront également désactivés.",
21
10
  "activeStatus": "Actif",
@@ -27,8 +16,6 @@
27
16
  "reActivateConfirmHeaderText": "Êtes-vous sûr de vouloir réactiver cette organisation ?",
28
17
  "reActivateConfirmText": "Note : tous les utilisateurs associés à l'organisation seront également réactivés.",
29
18
  "reactivationSuccess": "Organisation réactivée avec succès !",
30
- "ministerName": "Nom du Ministre",
31
- "sectoralScope": "Portée Sectorielle",
32
19
  "approveConfirmHeaderText": "Êtes-vous sûr de vouloir autoriser cette organisation ?",
33
20
  "approveConfirmText": "Vous ne pouvez pas annuler cette action",
34
21
  "approvedSuccessfully": "L'Organisation a été approuvée avec succès",
@@ -74,6 +74,8 @@
74
74
  "emissionsComparisonTitle": "GHG Emission Comparison",
75
75
  "emissionsComparisonTT": "Emissions projected and actual projections for each year under each type during the specified period",
76
76
  "remarks": "Remarks",
77
- "finalize": "Finalise"
77
+ "finalize": "Finalise",
78
+ "noEmissions": "No Emissions",
79
+ "noProjections": "No Projections"
78
80
  }
79
81
 
@@ -2,6 +2,7 @@
2
2
  "carbon": "NATIONAL",
3
3
  "nationalNdc": "NATIONAL NDC",
4
4
  "credit": "CARBON REGISTRY",
5
+ "creditMrv": "TRANSPARENCY",
5
6
  "management": "DEMO",
6
7
  "welcome": "Welcome",
7
8
  "welcome-back": "Welcome Back",
@@ -5,6 +5,7 @@
5
5
  "ndcColumnsEndDate": "End Date",
6
6
  "ndcColumnsNationalPlanObj": "Programmes",
7
7
  "ndcColumnsKpi": "KPI",
8
+ "ndcColumnsKpiUnit": "KPI Unit",
8
9
  "rangeAlreadyExists": "One or more of the selected year(s) already exists",
9
10
  "addNdcAction": "+ Add NDC Action",
10
11
  "enterNewPlanTxt": "Please add the Programmes",
@@ -23,6 +24,7 @@
23
24
  "finalizeErrorText": "Cannot finalise the period due to pending Sub NDC Actions",
24
25
  "nationalPlanObjectivePlaceHolder": "Enter Programmes",
25
26
  "kpiPlaceHolder": "Enter Kpi",
27
+ "kpiUnitPlaceHolder": "Enter Kpi Unit",
26
28
  "isRequired": "is required!",
27
29
  "finalizeNdcEmptyErrorText":"Cannot finalise an empty period",
28
30
  "approveSuccessMsg": "Sub NDC Action has been approved successfully",
@@ -83,5 +83,13 @@
83
83
  "addSupport": "Add Support",
84
84
  "addSupportBtnText": "ADD SUPPORT",
85
85
  "addSupportSub": "Add Support to a project in the Transparency System",
86
- "programmeExistsWithAssessmentRegId": "Project already exist with the given environmental assessment registration number"
86
+ "programmeExistsWithAssessmentRegId": "Project already exist with the given environmental assessment registration number",
87
+ "period":"Period",
88
+ "payback":"Payback",
89
+ "loanPeriod":"Loan Period",
90
+ "startOfPayback":"Start of Payback",
91
+ "LumpSum":"LUMP SUM",
92
+ "Upfront":"UPFRONT",
93
+ "Annual":"ANNUAL"
94
+
87
95
  }
package/package.json CHANGED
@@ -1,14 +1,12 @@
1
1
  {
2
2
  "name": "@undp/carbon-library",
3
- "version": "1.0.287-carbon-lib-test.0",
3
+ "version": "1.0.287",
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": {
7
7
  "test": "echo \"Error: no test specified\" && exit 1",
8
8
  "build": "rollup -c --bundleConfigAsCjs",
9
- "prepare": "npm run build",
10
- "storybook": "storybook dev -p 6006",
11
- "build-storybook": "storybook build"
9
+ "prepare": "npm run build"
12
10
  },
13
11
  "keywords": [],
14
12
  "author": "",
@@ -18,14 +16,10 @@
18
16
  "@rollup/plugin-json": "^6.0.1",
19
17
  "@rollup/plugin-node-resolve": "^15.0.2",
20
18
  "@rollup/plugin-typescript": "^11.1.1",
21
- "@storybook/addon-styling-webpack": "^0.0.5",
22
19
  "@undp/carbon-credit-calculator": "^1.1.1",
23
- "jwt-decode": "^3.1.2",
24
20
  "node-sass": "^7.0.3",
25
21
  "postcss": "^8.4.23",
26
22
  "react-circle-flags": "^0.0.19",
27
- "react-i18next": "^12.0.0",
28
- "react-router-dom": "^6.4.3",
29
23
  "rollup": "^3.22.0",
30
24
  "rollup-plugin-copy": "^3.5.0",
31
25
  "rollup-plugin-dts": "^5.3.0",
@@ -36,19 +30,6 @@
36
30
  },
37
31
  "devDependencies": {
38
32
  "@ant-design/icons": "^5.2.5",
39
- "@babel/preset-env": "^7.23.3",
40
- "@babel/preset-react": "^7.23.3",
41
- "@babel/preset-typescript": "^7.23.3",
42
- "@storybook/addon-essentials": "7.5.3",
43
- "@storybook/addon-interactions": "7.5.3",
44
- "@storybook/addon-links": "7.5.3",
45
- "@storybook/addon-onboarding": "1.0.8",
46
- "@storybook/blocks": "7.5.3",
47
- "@storybook/preset-ant-design": "^0.0.2",
48
- "@storybook/preset-create-react-app": "^7.5.3",
49
- "@storybook/react": "7.5.3",
50
- "@storybook/react-webpack5": "7.5.3",
51
- "@storybook/testing-library": "0.2.2",
52
33
  "@types/luxon": "^3.1.0",
53
34
  "@types/mapbox-gl": "^2.7.10",
54
35
  "@types/react": "^18.0.25",
@@ -58,21 +39,13 @@
58
39
  "axios": "^1.1.3",
59
40
  "buffer": "^6.0.3",
60
41
  "class-transformer": "^0.5.1",
61
- "css-loader": "^6.8.1",
62
- "i18next": "^22.0.6",
63
- "i18next-browser-languagedetector": "^7.0.1",
64
- "i18next-http-backend": "^2.0.1",
65
42
  "luxon": "^3.2.1",
66
43
  "mapbox-gl": "^2.11.1",
67
44
  "react": "^18.2.0",
68
45
  "react-apexcharts": "^1.4.0",
69
46
  "react-bootstrap-icons": "^1.10.2",
70
- "react-dom": "18.2.0",
71
47
  "react-mapbox-gl": "^5.1.1",
72
48
  "react-phone-number-input": "^3.2.12",
73
- "sass-loader": "^13.3.2",
74
- "storybook": "7.5.3",
75
- "style-loader": "^3.3.3",
76
49
  "validator": "^13.9.0"
77
50
  },
78
51
  "peerDependencies": {
@@ -1,8 +0,0 @@
1
- import React, { FC } from 'react';
2
- import { ConnectionContextProviderProps, ConnectionProps } from '../../Definitions';
3
- declare const ConnectionContext: React.Context<{
4
- connection?: ConnectionProps | undefined;
5
- }>;
6
- export declare const ConnectionContextProvider: FC<ConnectionContextProviderProps>;
7
- export default ConnectionContext;
8
- export declare const useConnection: () => ConnectionProps;
@@ -1,10 +0,0 @@
1
- import React from 'react';
2
- export declare const SettingsContext: React.Context<{
3
- isTransferFrozen: boolean;
4
- setTransferFrozen: (value: boolean) => void;
5
- }>;
6
- export declare const SettingsContextProvider: ({ children }: React.PropsWithChildren) => React.JSX.Element;
7
- export declare const useSettingsContext: () => {
8
- isTransferFrozen: boolean;
9
- setTransferFrozen: (value: boolean) => void;
10
- };
@@ -1,6 +0,0 @@
1
- import React from 'react';
2
- import { UserContextProps } from '../../Definitions';
3
- export declare const UserContext: React.Context<UserContextProps>;
4
- export declare const UserInformationContextProvider: ({ children }: React.PropsWithChildren) => React.JSX.Element;
5
- export default UserContext;
6
- export declare const useUserContext: () => UserContextProps;
@@ -1,3 +0,0 @@
1
- export * from './ConnectionContext/connectionContext';
2
- export * from './UserInformationContext/userInformationContext';
3
- export * from './SettingsContext/settingsContext';
@@ -1,12 +0,0 @@
1
- /// <reference types="react" />
2
- import type { StoryObj } from "@storybook/react";
3
- import "antd/dist/antd.css";
4
- import ConnectionContextDecorator from './Decorators/ConnectionContextDecorator';
5
- declare const meta: {
6
- title: string;
7
- component: (props: any) => import("react").JSX.Element;
8
- decorators: (typeof ConnectionContextDecorator)[];
9
- };
10
- export default meta;
11
- type Story = StoryObj<typeof meta>;
12
- export declare const Primary: Story;
@@ -1,12 +0,0 @@
1
- /// <reference types="react" />
2
- import type { StoryObj } from "@storybook/react";
3
- import "antd/dist/antd.css";
4
- import ConnectionContextDecorator from './Decorators/ConnectionContextDecorator';
5
- declare const meta: {
6
- title: string;
7
- component: (props: any) => import("react").JSX.Element;
8
- decorators: (typeof ConnectionContextDecorator)[];
9
- };
10
- export default meta;
11
- type Story = StoryObj<typeof meta>;
12
- export declare const Primary: Story;
@@ -1,2 +0,0 @@
1
- import React from "react";
2
- export default function AddNewCompanyI18nDecorator(Story: any, context: any): React.JSX.Element;
@@ -1,2 +0,0 @@
1
- import React from "react";
2
- export default function AddNewUserI18nDecorator(Story: any, context: any): React.JSX.Element;
@@ -1,2 +0,0 @@
1
- import React from "react";
2
- export default function ConnectionContextDecorator(Story: any, context: any): React.JSX.Element;
@@ -1,2 +0,0 @@
1
- import React from "react";
2
- export default function DashboardI18nDecorator(Story: any, context: any): React.JSX.Element;
@@ -1,2 +0,0 @@
1
- import React from "react";
2
- export default function InvestmentCreationI18nDecorator(Story: any, context: any): React.JSX.Element;
@@ -1,2 +0,0 @@
1
- import React from "react";
2
- export default function ProgrammeCreateI18nDecorator(Story: any, context: any): React.JSX.Element;
@@ -1,12 +0,0 @@
1
- /// <reference types="react" />
2
- import type { StoryObj } from "@storybook/react";
3
- import "antd/dist/antd.css";
4
- import ConnectionContextDecorator from './Decorators/ConnectionContextDecorator';
5
- declare const meta: {
6
- title: string;
7
- component: (props: any) => import("react").JSX.Element;
8
- decorators: (typeof ConnectionContextDecorator)[];
9
- };
10
- export default meta;
11
- type Story = StoryObj<typeof meta>;
12
- export declare const Primary: Story;
@@ -1,12 +0,0 @@
1
- /// <reference types="react" />
2
- import type { StoryObj } from "@storybook/react";
3
- import "antd/dist/antd.css";
4
- import ConnectionContextDecorator from './Decorators/ConnectionContextDecorator';
5
- declare const meta: {
6
- title: string;
7
- component: (props: any) => import("react").JSX.Element;
8
- decorators: (typeof ConnectionContextDecorator)[];
9
- };
10
- export default meta;
11
- type Story = StoryObj<typeof meta>;
12
- export declare const Primary: Story;
@@ -1,12 +0,0 @@
1
- /// <reference types="react" />
2
- import type { StoryObj } from "@storybook/react";
3
- import "antd/dist/antd.css";
4
- import ConnectionContextDecorator from './Decorators/ConnectionContextDecorator';
5
- declare const meta: {
6
- title: string;
7
- component: (props: any) => import("react").JSX.Element;
8
- decorators: (typeof ConnectionContextDecorator)[];
9
- };
10
- export default meta;
11
- type Story = StoryObj<typeof meta>;
12
- export declare const Primary: Story;
@@ -1,12 +0,0 @@
1
- /// <reference types="react" />
2
- import type { StoryObj } from "@storybook/react";
3
- import "antd/dist/antd.css";
4
- import ConnectionContextDecorator from './Decorators/ConnectionContextDecorator';
5
- declare const meta: {
6
- title: string;
7
- component: (props: any) => import("react").JSX.Element;
8
- decorators: (typeof ConnectionContextDecorator)[];
9
- };
10
- export default meta;
11
- type Story = StoryObj<typeof meta>;
12
- export declare const Primary: Story;