@undp/carbon-library 1.0.175-CARBON-339.0 → 1.0.175-CARBON-363.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (72) hide show
  1. package/dist/cjs/index.js +508 -539
  2. package/dist/cjs/index.js.map +1 -1
  3. package/dist/cjs/types/Components/Common/AntComponents/antTableComponents.d.ts +7 -6
  4. package/dist/cjs/types/Definitions/Definitions/ndcDetails.definitions.d.ts +42 -0
  5. package/dist/esm/index.js +510 -541
  6. package/dist/esm/index.js.map +1 -1
  7. package/dist/esm/types/Components/Common/AntComponents/antTableComponents.d.ts +7 -6
  8. package/dist/esm/types/Definitions/Definitions/ndcDetails.definitions.d.ts +42 -0
  9. package/package.json +1 -3
  10. package/dist/locales/i18n/addCompany/en.json +0 -38
  11. package/dist/locales/i18n/addCompany/es.json +0 -36
  12. package/dist/locales/i18n/addCompany/fr.json +0 -36
  13. package/dist/locales/i18n/addProgramme/en.json +0 -45
  14. package/dist/locales/i18n/addUser/en.json +0 -24
  15. package/dist/locales/i18n/addUser/es.json +0 -24
  16. package/dist/locales/i18n/addUser/fr.json +0 -24
  17. package/dist/locales/i18n/coBenifits/en.json +0 -39
  18. package/dist/locales/i18n/common/en.json +0 -22
  19. package/dist/locales/i18n/common/es.json +0 -21
  20. package/dist/locales/i18n/common/fr.json +0 -21
  21. package/dist/locales/i18n/company/en.json +0 -23
  22. package/dist/locales/i18n/company/es.json +0 -23
  23. package/dist/locales/i18n/company/fr.json +0 -23
  24. package/dist/locales/i18n/companyProfile/en.json +0 -44
  25. package/dist/locales/i18n/companyProfile/es.json +0 -42
  26. package/dist/locales/i18n/companyProfile/fr.json +0 -42
  27. package/dist/locales/i18n/creditTransfer/en.json +0 -34
  28. package/dist/locales/i18n/creditTransfer/es.json +0 -34
  29. package/dist/locales/i18n/creditTransfer/fr.json +0 -34
  30. package/dist/locales/i18n/dashboard/en.json +0 -94
  31. package/dist/locales/i18n/dashboard/es.json +0 -71
  32. package/dist/locales/i18n/dashboard/fr.json +0 -71
  33. package/dist/locales/i18n/economic/en.json +0 -35
  34. package/dist/locales/i18n/environment/en.json +0 -41
  35. package/dist/locales/i18n/forgotPassword/en.json +0 -9
  36. package/dist/locales/i18n/forgotPassword/es.json +0 -9
  37. package/dist/locales/i18n/forgotPassword/fr.json +0 -9
  38. package/dist/locales/i18n/genderParity/en.json +0 -14
  39. package/dist/locales/i18n/homepage/en.json +0 -33
  40. package/dist/locales/i18n/homepage/es.json +0 -30
  41. package/dist/locales/i18n/homepage/fr.json +0 -30
  42. package/dist/locales/i18n/login/en.json +0 -11
  43. package/dist/locales/i18n/login/es.json +0 -10
  44. package/dist/locales/i18n/login/fr.json +0 -10
  45. package/dist/locales/i18n/mrvdashboard/en.json +0 -29
  46. package/dist/locales/i18n/mrvdashboard/es.json +0 -0
  47. package/dist/locales/i18n/mrvdashboard/fr.json +0 -0
  48. package/dist/locales/i18n/nav/en.json +0 -15
  49. package/dist/locales/i18n/nav/es.json +0 -9
  50. package/dist/locales/i18n/nav/fr.json +0 -9
  51. package/dist/locales/i18n/ndc/en.json +0 -12
  52. package/dist/locales/i18n/ndcAction/en.json +0 -89
  53. package/dist/locales/i18n/passwordReset/en.json +0 -10
  54. package/dist/locales/i18n/passwordReset/es.json +0 -10
  55. package/dist/locales/i18n/passwordReset/fr.json +0 -10
  56. package/dist/locales/i18n/programme/en.json +0 -87
  57. package/dist/locales/i18n/programme/es.json +0 -17
  58. package/dist/locales/i18n/programme/fr.json +0 -17
  59. package/dist/locales/i18n/resetPassword/en.json +0 -8
  60. package/dist/locales/i18n/resetPassword/es.json +0 -8
  61. package/dist/locales/i18n/resetPassword/fr.json +0 -8
  62. package/dist/locales/i18n/safeguards/en.json +0 -73
  63. package/dist/locales/i18n/social/en.json +0 -41
  64. package/dist/locales/i18n/user/en.json +0 -16
  65. package/dist/locales/i18n/user/es.json +0 -16
  66. package/dist/locales/i18n/user/fr.json +0 -16
  67. package/dist/locales/i18n/userProfile/en.json +0 -34
  68. package/dist/locales/i18n/userProfile/es.json +0 -34
  69. package/dist/locales/i18n/userProfile/fr.json +0 -34
  70. package/dist/locales/i18n/view/en.json +0 -144
  71. package/dist/locales/i18n/view/es.json +0 -128
  72. package/dist/locales/i18n/view/fr.json +0 -128
@@ -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 {};
@@ -0,0 +1,42 @@
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
+ };