@undp/carbon-library 1.0.281-CARBON-363.0 → 1.0.281-CARBON-359.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/index.js +660 -875
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/Components/Common/AntComponents/antTableComponents.d.ts +6 -9
- package/dist/esm/index.js +662 -877
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/Components/Common/AntComponents/antTableComponents.d.ts +6 -9
- package/dist/locales/i18n/ndc/en.json +3 -28
- package/package.json +1 -1
- package/dist/cjs/types/Definitions/Definitions/ndcDetails.definitions.d.ts +0 -42
- package/dist/esm/types/Definitions/Definitions/ndcDetails.definitions.d.ts +0 -42
@@ -9,16 +9,13 @@ interface EditableRowProps {
|
|
9
9
|
index: number;
|
10
10
|
}
|
11
11
|
export declare const EditableRow: React.FC<EditableRowProps>;
|
12
|
-
interface EditableCellProps
|
13
|
-
|
14
|
-
|
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
|
-
|
21
|
-
|
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 {};
|
@@ -5,33 +5,8 @@
|
|
5
5
|
"ndcColumnsEndDate": "End Date",
|
6
6
|
"ndcColumnsNationalPlanObj": "Programmes",
|
7
7
|
"ndcColumnsKpi": "KPI",
|
8
|
-
"rangeAlreadyExists": "
|
8
|
+
"rangeAlreadyExists": "Selected Range Already exists",
|
9
9
|
"addNdcAction": "+ Add NDC Action",
|
10
|
-
"enterNewPlanTxt": "Please add the
|
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,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
|
-
};
|