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

Sign up to get free protection for your applications and to get access to all the features.
@@ -9,16 +9,13 @@ interface EditableRowProps {
9
9
  index: number;
10
10
  }
11
11
  export declare const EditableRow: React.FC<EditableRowProps>;
12
- interface EditableCellProps extends React.HTMLAttributes<HTMLElement> {
13
- editing: boolean;
14
- dataIndex: string;
15
- title: any;
16
- inputType: "number" | "text";
17
- record: Item;
18
- index: number;
12
+ interface EditableCellProps {
13
+ title: React.ReactNode;
14
+ editable: boolean;
19
15
  children: React.ReactNode;
20
- onBlurHandler: any;
21
- t: any;
16
+ dataIndex: keyof Item;
17
+ record: Item;
18
+ handleSave: (record: Item) => void;
22
19
  }
23
20
  export declare const EditableCell: React.FC<EditableCellProps>;
24
21
  export {};
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ import "./companyDetailsComponent.scss";
3
+ export declare const CompanyDetailsComponent: (props: any) => React.JSX.Element;
@@ -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",
@@ -5,33 +5,8 @@
5
5
  "ndcColumnsEndDate": "End Date",
6
6
  "ndcColumnsNationalPlanObj": "Programmes",
7
7
  "ndcColumnsKpi": "KPI",
8
- "rangeAlreadyExists": "One or more of the selected year(s) already exists",
8
+ "rangeAlreadyExists": "Selected Range Already exists",
9
9
  "addNdcAction": "+ Add NDC Action",
10
- "enterNewPlanTxt": "Please add the Programmes",
11
- "addSubNdcAction": "+ Add Sub NDC Action",
12
- "delete": "DELETE",
13
- "finalize": "FINALIZE",
14
- "ndcColumnsMinistry": "Government Department",
15
- "ndcColumnsStatus": "Status",
16
- "approve": "Approve",
17
- "reject": "Reject",
18
- "actionApproveTitle": "Are you sure you want to approve this NDC Action?",
19
- "rejectApproveTitle": "Are you sure you want to reject this NDC Action?",
20
- "finalizeApproveTitle": "Are you sure you want to finalize the NDC Actions for this period?",
21
- "finalizeApproveSubTitle": "You can’t undo this action",
22
- "periodDeleteConfirmTitle" : "Are you sure you want to delete the NDC Actions for this period?",
23
- "finalizeErrorText": "Cannot finalise the period due to pending Sub NDC Actions",
24
- "nationalPlanObjectivePlaceHolder": "Enter Programmes",
25
- "kpiPlaceHolder": "Enter Kpi",
26
- "isRequired": "is required!",
27
- "finalizeNdcEmptyErrorText":"Cannot finalise an empty period",
28
- "approveSuccessMsg": "Sub NDC Action has been approved successfully",
29
- "rejectSuccessMsg": "Sub NDC Action has been rejected successfully",
30
- "finalizeSuccessMsg": "NDC Actions for the period has been finalised successfully",
31
- "deletePeriodSuccessMsg": "The period has been deleted successfully ",
32
- "kpiInvalidFormat": "Allow only numeric value",
33
- "kpiGreaterThanZero": "KPI value must be greater than 0",
34
- "kpiMaxLength": "KPI cannot exceed 10000000",
35
- "sameStartEndDates": "Start year must be earlier than the end year",
36
- "ndcUnauthorisedMsg": "This action is unauthorised"
10
+ "enterNewPlanTxt": "Please add the National Plan Objective",
11
+ "addSubNdcAction": "+ Add Sub NDC Action"
37
12
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@undp/carbon-library",
3
- "version": "1.0.281-CARBON-363.4",
3
+ "version": "1.0.281-CARBON-306.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,42 +0,0 @@
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
- };
@@ -1,42 +0,0 @@
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
- };