@undp/carbon-library 1.0.17-CARBON-363.20 → 1.0.17-CARBON-363.97

Sign up to get free protection for your applications and to get access to all the features.
@@ -9,13 +9,14 @@ 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;
19
20
  }
20
21
  export declare const EditableCell: React.FC<EditableCellProps>;
21
22
  export {};
@@ -7,10 +7,10 @@ export type Period = {
7
7
  deleted: boolean;
8
8
  };
9
9
  export type NdcDetail = {
10
- id?: number;
11
- actionType: NdcActionType;
10
+ id: number;
11
+ actionType: NdcDetailsActionType;
12
12
  nationalPlanObjective: string;
13
- kpi: number;
13
+ kpi: number | string;
14
14
  ministryName: string;
15
15
  periodId?: number;
16
16
  status: NdcDetailsActionStatus;
@@ -20,11 +20,23 @@ export type DateRange = {
20
20
  startYear: number;
21
21
  endYear: number;
22
22
  };
23
- export declare enum NdcActionType {
24
- mainAction = 0,
25
- subAction = 1
23
+ export declare enum NdcDetailsActionType {
24
+ MainAction = "MainAction",
25
+ SubAction = "SubAction"
26
26
  }
27
27
  export declare enum NdcDetailsActionStatus {
28
- pending = 0,
29
- approved = 1
28
+ New = "New",
29
+ Pending = "Pending",
30
+ Approved = "Approved",
31
+ Rejected = "Rejected"
30
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
+ };