@undp/carbon-library 1.0.274-CARBON-363.1 → 1.0.274-CARBON-406.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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 {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@undp/carbon-library",
3
- "version": "1.0.274-CARBON-363.1",
3
+ "version": "1.0.274-CARBON-406.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
- };