@undp/carbon-library 1.0.150-CARBON-343.6 → 1.0.150-CARBON-320.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,4 @@
1
- import React from "react";
1
+ import React from 'react';
2
2
  interface Item {
3
3
  key: string;
4
4
  name: string;
package/dist/esm/index.js CHANGED
@@ -19444,7 +19444,7 @@ var AddNdcActionComponent = function (props) {
19444
19444
  React.createElement(Steps, { progressDot: true, direction: "vertical", current: current, items: stepItems })))));
19445
19445
  };
19446
19446
 
19447
- var css_248z$d = ".ndc-details-view .card-container {\n margin-bottom: 16px;\n width: 100%;\n border-radius: 10px; }\n .ndc-details-view .card-container .co-benifits-view .title {\n color: rgba(58, 53, 65, 0.8);\n font-weight: 600;\n margin-left: 0.5rem; }\n .ndc-details-view .card-container .action-btns {\n margin-top: 25px;\n margin-bottom: -15px;\n justify-content: end; }\n\n.ndc-details-view .fix-height {\n height: 350px; }\n";
19447
+ var css_248z$d = ".ndc-details-view .card-container {\n margin-bottom: 16px;\n width: 100%;\n border-radius: 10px; }\n .ndc-details-view .card-container .co-benifits-view .title {\n color: rgba(58, 53, 65, 0.8);\n font-weight: 600;\n margin-left: 0.5rem; }\n .ndc-details-view .card-container .action-btns {\n margin-top: 25px;\n margin-bottom: -15px;\n justify-content: end; }\n\n.ndc-details-view .fix-height {\n height: 350px; }\n\n.title-icon {\n padding-right: 10px; }\n\n.title-text {\n color: rgba(58, 53, 65, 0.8);\n font-weight: 600; }\n\n.title {\n margin-bottom: 5px; }\n\n.ndc-action-report-body {\n display: flex;\n flex-direction: column;\n width: 100%; }\n .ndc-action-report-body .report-details {\n display: flex;\n flex-direction: row;\n width: 100%;\n align-items: center;\n justify-content: space-between;\n margin: 5px 25px;\n font-size: 0.8rem; }\n .ndc-action-report-body .report-details .report-type {\n display: flex;\n flex-direction: row;\n width: 60%; }\n .ndc-action-report-body .report-details .report-type .name-time-container {\n display: flex;\n flex-direction: column;\n width: 70%;\n margin-bottom: 0.5rem; }\n .ndc-action-report-body .report-details .report-type .name {\n font-weight: 500;\n color: rgba(58, 53, 65, 0.6); }\n .ndc-action-report-body .report-details .report-type .time {\n color: rgba(58, 53, 65, 0.5);\n width: max-content; }\n .ndc-action-report-body .report-details .report-type .icon {\n display: flex;\n align-items: center;\n width: 30%;\n color: rgba(58, 53, 65, 0.6); }\n .ndc-action-report-body .report-details .report-type .empty {\n font-weight: 500;\n color: rgba(58, 53, 65, 0.6); }\n .ndc-action-report-body .report-details .ant-row {\n margin: 0px 30px auto; }\n .ndc-action-report-body .report-details .report-link {\n display: flex;\n flex-direction: row;\n width: 40%; }\n .ndc-action-report-body .report-details .report-link .version {\n font-weight: 600;\n color: #cacaca; }\n .ndc-action-report-body .report-details .report-link .link {\n margin-left: 1rem; }\n";
19448
19448
  styleInject(css_248z$d);
19449
19449
 
19450
19450
  var css_248z$c = ".info-view .title-icon {\n padding-right: 10px; }\n\n.info-view .title-text {\n color: rgba(58, 53, 65, 0.8);\n font-weight: 600; }\n\n.info-view .title {\n margin-bottom: 5px; }\n\n.info-view .field-key {\n color: rgba(58, 53, 65, 0.6);\n font-weight: 500;\n text-overflow: ellipsis;\n overflow: hidden; }\n\n.info-view .field-value {\n color: rgba(58, 53, 65, 0.6);\n text-overflow: ellipsis;\n overflow: hidden; }\n .info-view .field-value .row {\n display: flex;\n width: 40%;\n align-items: center;\n justify-content: space-between; }\n .info-view .field-value .row .key {\n display: flex;\n width: 50%;\n align-items: center;\n justify-content: flex-start; }\n .info-view .field-value .row .data {\n display: flex;\n width: 50%;\n align-items: center;\n justify-content: flex-start; }\n\n.info-view .field {\n margin: 15px 25px;\n font-size: 0.8rem; }\n";
@@ -19542,15 +19542,19 @@ var NdcActionViewComponent = function (props) {
19542
19542
  var userInfoState = useUserContext().userInfoState;
19543
19543
  var post = useConnection().post;
19544
19544
  var state = useLocation().state;
19545
- var _d = useState({}), ndcActionReportDetails = _d[0], setNdcActionReportDetails = _d[1];
19545
+ var _d = useState({}); _d[0]; var setNdcActionReportDetails = _d[1];
19546
19546
  var _e = useState(false), isLoading = _e[0], setIsLoading = _e[1];
19547
- var _f = useState(), ndcActionDetails = _f[0], setNdcActionDetails = _f[1];
19548
- var _g = useState(); _g[0]; var setCoBenifitsComponentnDetails = _g[1];
19549
- var _h = useState(0), emissionsReductionExpected = _h[0], setEmissionsReductionExpected = _h[1];
19550
- var _j = useState(0), emissionsReductionAchieved = _j[0], setEmissionsReductionAchieved = _j[1];
19551
- var _k = useState([]), programmeOwnerId = _k[0], setProgrammeOwnerId = _k[1];
19552
- var _l = useState(false), canUploadMonitorReport = _l[0], setCanUploadMonitorReport = _l[1];
19553
- var _m = useState(false), monitoringReportAccepted = _m[0], setMonitoringReportAccepted = _m[1];
19547
+ var _f = useState(), monitoringReportData = _f[0], setMonitoringReportData = _f[1];
19548
+ var _g = useState(""), monitoringReportversion = _g[0], setMonitoringReportversion = _g[1];
19549
+ var _h = useState(), verificationReportData = _h[0], setVerificationReportData = _h[1];
19550
+ var _j = useState(""), verificationReportVersion = _j[0], setVerificationReportversion = _j[1];
19551
+ var _k = useState(), ndcActionDetails = _k[0], setNdcActionDetails = _k[1];
19552
+ var _l = useState(); _l[0]; var setCoBenifitsComponentnDetails = _l[1];
19553
+ var _m = useState(0), emissionsReductionExpected = _m[0], setEmissionsReductionExpected = _m[1];
19554
+ var _o = useState(0), emissionsReductionAchieved = _o[0], setEmissionsReductionAchieved = _o[1];
19555
+ var _p = useState([]), programmeOwnerId = _p[0], setProgrammeOwnerId = _p[1];
19556
+ var _q = useState(false), canUploadMonitorReport = _q[0], setCanUploadMonitorReport = _q[1];
19557
+ var _r = useState(false), monitoringReportAccepted = _r[0], setMonitoringReportAccepted = _r[1];
19554
19558
  var getProgrammeById = function (programmeId) { return __awaiter(void 0, void 0, void 0, function () {
19555
19559
  var response, error_1;
19556
19560
  var _a, _b, _c;
@@ -19592,13 +19596,16 @@ var NdcActionViewComponent = function (props) {
19592
19596
  }
19593
19597
  });
19594
19598
  }); };
19595
- var getProjectReportActions = function (reportData) {
19599
+ var getProjectReportActions = function (reportData, reportVersion) {
19596
19600
  return (React.createElement(Row, null,
19597
19601
  React.createElement("div", { className: "icon" },
19598
19602
  (reportData === null || reportData === void 0 ? void 0 : reportData.status) === DocumentStatus.ACCEPTED && (React.createElement(CheckCircleOutlined, { className: "common-progress-icon", style: { color: "#5DC380" } })),
19599
19603
  (reportData === null || reportData === void 0 ? void 0 : reportData.status) === DocumentStatus.REJECTED && (React.createElement(ExclamationCircleOutlined, { className: "common-progress-icon", style: { color: "#FD6F70" } }))),
19600
19604
  React.createElement("div", { className: "link mg-left-1" }, (reportData === null || reportData === void 0 ? void 0 : reportData.url) && linkDocVisible(reportData === null || reportData === void 0 ? void 0 : reportData.status) && (React.createElement("a", { href: reportData === null || reportData === void 0 ? void 0 : reportData.url, target: "_blank", rel: "noopener noreferrer", download: true },
19601
- React.createElement(BookOutlined, { className: "common-progress-icon margin-right-1", style: { color: "#3F3A47" } }))))));
19605
+ React.createElement(BookOutlined, { className: "common-progress-icon margin-right-1", style: { color: "#3F3A47" } })))),
19606
+ (reportData === null || reportData === void 0 ? void 0 : reportData.txTime) && (React.createElement("div", { className: "time" },
19607
+ moment(parseInt(reportData === null || reportData === void 0 ? void 0 : reportData.txTime)).format("DD MMMM YYYY @ HH:mm"),
19608
+ " ~ " + reportVersion))));
19602
19609
  };
19603
19610
  var getProjectReports = function () { return __awaiter(void 0, void 0, void 0, function () {
19604
19611
  var reportDetails, response, exception_1;
@@ -19646,12 +19653,24 @@ var NdcActionViewComponent = function (props) {
19646
19653
  if ((item === null || item === void 0 ? void 0 : item.status) === DocumentStatus.ACCEPTED) {
19647
19654
  setMonitoringReportAccepted(true);
19648
19655
  }
19656
+ var versionfull = (item === null || item === void 0 ? void 0 : item.url).split("_")[(item === null || item === void 0 ? void 0 : item.url).split("_").length - 1];
19657
+ var version = versionfull ? versionfull.split(".")[0] : "1";
19658
+ var moniteringVersion = version.startsWith("V") ? version : "V1";
19649
19659
  reportDetails[t("ndcAction:viewMoniteringReport")] =
19650
- getProjectReportActions(item);
19660
+ getProjectReportActions(item, moniteringVersion);
19661
+ setMonitoringReportData(item);
19662
+ setMonitoringReportversion(moniteringVersion);
19651
19663
  }
19652
19664
  else if ((_b = item === null || item === void 0 ? void 0 : item.url) === null || _b === void 0 ? void 0 : _b.includes("VERIFICATION_REPORT")) {
19665
+ var versionfull = (item === null || item === void 0 ? void 0 : item.url).split("_")[(item === null || item === void 0 ? void 0 : item.url).split("_").length - 1];
19666
+ var version = versionfull ? versionfull.split(".")[0] : "1";
19667
+ var verificationVersion = version.startsWith("V")
19668
+ ? version
19669
+ : "V1";
19653
19670
  reportDetails[t("ndcAction:viewVerificationReport")] =
19654
- getProjectReportActions(item);
19671
+ getProjectReportActions(item, verificationVersion);
19672
+ setVerificationReportData(item);
19673
+ setVerificationReportversion(verificationVersion);
19655
19674
  }
19656
19675
  });
19657
19676
  }
@@ -19905,8 +19924,60 @@ var NdcActionViewComponent = function (props) {
19905
19924
  React.createElement(Col, { lg: 8, md: 24 },
19906
19925
  React.createElement(Skeleton, { loading: isLoading, active: true },
19907
19926
  React.createElement(Card, { className: "card-container fix-height" },
19908
- React.createElement("div", null,
19909
- React.createElement(InfoView, { data: ndcActionReportDetails, title: t("ndcAction:viewReportsTitle"), icon: React.createElement(Icon.FileEarmarkText, null) })))))),
19927
+ React.createElement("div", { className: "title" },
19928
+ React.createElement("span", { className: "title-icon" }, React.createElement(Icon.FileEarmarkText, null)),
19929
+ React.createElement("span", { className: "title-text" }, t("ndcAction:viewReportsTitle"))),
19930
+ React.createElement("div", { className: "ndc-action-report-body" },
19931
+ React.createElement("div", { className: "report-details" },
19932
+ React.createElement("div", { className: "report-type" },
19933
+ React.createElement("div", { className: "name-time-container" },
19934
+ React.createElement("div", { className: canUploadMonitorReport && monitoringReportAccepted
19935
+ ? "name"
19936
+ : "empty" }, t("programme:monitoringReport")),
19937
+ (monitoringReportData === null || monitoringReportData === void 0 ? void 0 : monitoringReportData.txTime) && (React.createElement("div", { className: "time" },
19938
+ moment(parseInt(monitoringReportData === null || monitoringReportData === void 0 ? void 0 : monitoringReportData.txTime)).format("DD MMMM YYYY @ HH:mm"),
19939
+ " ~ " + monitoringReportversion))),
19940
+ React.createElement("div", { className: "icon" }, !(monitoringReportData === null || monitoringReportData === void 0 ? void 0 : monitoringReportData.url) && (React.createElement(Tooltip, { arrowPointAtCenter: true, placement: "top", trigger: "hover", title: (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.userRole) === Role.ViewOnly
19941
+ ? t("programme:notAuthToUploadDoc")
19942
+ : uploadDocUserPermission(userInfoState, DocType.MONITORING_REPORT, programmeOwnerId)
19943
+ ? !canUploadMonitorReport &&
19944
+ t("programme:programmeNotAuth")
19945
+ : t("programme:orgNotAuth"), overlayClassName: "custom-tooltip" },
19946
+ React.createElement(FileAddOutlined, null))))),
19947
+ (monitoringReportData === null || monitoringReportData === void 0 ? void 0 : monitoringReportData.url) && (React.createElement(Row, null,
19948
+ React.createElement("div", { className: "icon" },
19949
+ (monitoringReportData === null || monitoringReportData === void 0 ? void 0 : monitoringReportData.status) ===
19950
+ DocumentStatus.ACCEPTED && (React.createElement(CheckCircleOutlined, { className: "common-progress-icon", style: { color: "#5DC380" } })),
19951
+ (monitoringReportData === null || monitoringReportData === void 0 ? void 0 : monitoringReportData.status) ===
19952
+ DocumentStatus.REJECTED && (React.createElement(ExclamationCircleOutlined, { className: "common-progress-icon", style: { color: "#FD6F70" } }))),
19953
+ React.createElement("div", { className: "link mg-left-1" }, (monitoringReportData === null || monitoringReportData === void 0 ? void 0 : monitoringReportData.url) &&
19954
+ linkDocVisible(monitoringReportData === null || monitoringReportData === void 0 ? void 0 : monitoringReportData.status) && (React.createElement("a", { href: monitoringReportData === null || monitoringReportData === void 0 ? void 0 : monitoringReportData.url, target: "_blank", rel: "noopener noreferrer", download: true },
19955
+ React.createElement(BookOutlined, { className: "common-progress-icon margin-right-1", style: { color: "#3F3A47" } }))))))),
19956
+ React.createElement("div", { className: "report-details" },
19957
+ React.createElement("div", { className: "report-type" },
19958
+ React.createElement("div", { className: "name-time-container" },
19959
+ React.createElement("div", { className: canUploadMonitorReport && monitoringReportAccepted
19960
+ ? "name"
19961
+ : "empty" }, t("programme:verificationReport")),
19962
+ (verificationReportData === null || verificationReportData === void 0 ? void 0 : verificationReportData.txTime) && (React.createElement("div", { className: "time" },
19963
+ moment(parseInt(verificationReportData === null || verificationReportData === void 0 ? void 0 : verificationReportData.txTime)).format("DD MMMM YYYY @ HH:mm"),
19964
+ " ~ " + verificationReportVersion))),
19965
+ React.createElement("div", { className: "icon" }, !(verificationReportData === null || verificationReportData === void 0 ? void 0 : verificationReportData.url) && (React.createElement(Tooltip, { arrowPointAtCenter: true, placement: "top", trigger: "hover", title: (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.userRole) === Role.ViewOnly
19966
+ ? t("programme:notAuthToUploadDoc")
19967
+ : uploadDocUserPermission(userInfoState, DocType.VERIFICATION_REPORT, programmeOwnerId)
19968
+ ? !monitoringReportAccepted &&
19969
+ t("programme:monitoringRepNotApproved")
19970
+ : t("programme:notAuthToUploadDoc"), overlayClassName: "custom-tooltip" },
19971
+ React.createElement(FileAddOutlined, null))))),
19972
+ (verificationReportData === null || verificationReportData === void 0 ? void 0 : verificationReportData.url) && (React.createElement(Row, null,
19973
+ React.createElement("div", { className: "icon" },
19974
+ (verificationReportData === null || verificationReportData === void 0 ? void 0 : verificationReportData.status) ===
19975
+ DocumentStatus.ACCEPTED && (React.createElement(CheckCircleOutlined, { className: "common-progress-icon", style: { color: "#5DC380" } })),
19976
+ (verificationReportData === null || verificationReportData === void 0 ? void 0 : verificationReportData.status) ===
19977
+ DocumentStatus.REJECTED && (React.createElement(ExclamationCircleOutlined, { className: "common-progress-icon", style: { color: "#FD6F70" } }))),
19978
+ React.createElement("div", { className: "link mg-left-1" }, (verificationReportData === null || verificationReportData === void 0 ? void 0 : verificationReportData.url) &&
19979
+ linkDocVisible(verificationReportData === null || verificationReportData === void 0 ? void 0 : verificationReportData.status) && (React.createElement("a", { href: verificationReportData === null || verificationReportData === void 0 ? void 0 : verificationReportData.url, target: "_blank", rel: "noopener noreferrer", download: true },
19980
+ React.createElement(BookOutlined, { className: "common-progress-icon margin-right-1", style: { color: "#3F3A47" } })))))))))))),
19910
19981
  ((ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.action) === NdcActionTypes.Mitigation ||
19911
19982
  (ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.action) === NdcActionTypes.CrossCutting) && (React.createElement(Row, null,
19912
19983
  React.createElement(Col, { lg: 24, className: "gutter-row" },
@@ -24475,7 +24546,7 @@ var EditableCell = function (_a) {
24475
24546
  return [3 /*break*/, 3];
24476
24547
  case 2:
24477
24548
  errInfo_1 = _a.sent();
24478
- console.log("Save failed:", errInfo_1);
24549
+ console.log('Save failed:', errInfo_1);
24479
24550
  return [3 /*break*/, 3];
24480
24551
  case 3: return [2 /*return*/];
24481
24552
  }
@@ -24489,7 +24560,7 @@ var EditableCell = function (_a) {
24489
24560
  message: "".concat(title, " is required."),
24490
24561
  },
24491
24562
  ] },
24492
- React.createElement(Input, { ref: inputRef, onPressEnter: save, onBlur: save }))) : (React.createElement("div", { className: "editable-cell-value-wrap", style: { paddingRight: 24, minWidth: "100px", minHeight: "20px" }, onClick: toggleEdit }, children));
24563
+ React.createElement(Input, { ref: inputRef, onPressEnter: save, onBlur: save }))) : (React.createElement("div", { className: "editable-cell-value-wrap", style: { paddingRight: 24 }, onClick: toggleEdit }, children));
24493
24564
  }
24494
24565
  return React.createElement("td", __assign({}, restProps), childNode);
24495
24566
  };
@@ -24507,8 +24578,6 @@ var NdcDetailsComponent = function (props) {
24507
24578
  var _d = useState("add_new"), selectedTab = _d[0], setSelectedTab = _d[1];
24508
24579
  var selectedPeriod = useRef({});
24509
24580
  var addedNdcDetailId = useRef(0);
24510
- var selectedNdcDetail = useRef({});
24511
- var _e = useState(0), tableKey = _e[0]; _e[1];
24512
24581
  var userInfoState = useUserContext().userInfoState;
24513
24582
  var isAddRangeVisible = function () {
24514
24583
  return (((userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) === CompanyRole.MINISTRY ||
@@ -24541,15 +24610,6 @@ var NdcDetailsComponent = function (props) {
24541
24610
  return [];
24542
24611
  }
24543
24612
  };
24544
- var getSubNdcDetails = function (key) {
24545
- var ndcDetail = ndcDetailsData.find(function (item) { return item.key === key; });
24546
- if (ndcDetail) {
24547
- return ndcDetail.subNdcDetails;
24548
- }
24549
- else {
24550
- return [];
24551
- }
24552
- };
24553
24613
  var defaultColumns = [
24554
24614
  {
24555
24615
  title: t("ndc:ndcColumnsNationalPlanObj"),
@@ -24557,7 +24617,6 @@ var NdcDetailsComponent = function (props) {
24557
24617
  key: "nationalPlanObj",
24558
24618
  align: "left",
24559
24619
  editable: true,
24560
- width: 800,
24561
24620
  },
24562
24621
  {
24563
24622
  title: t("ndc:ndcColumnsKpi"),
@@ -24565,10 +24624,9 @@ var NdcDetailsComponent = function (props) {
24565
24624
  key: "kpi",
24566
24625
  align: "left",
24567
24626
  editable: true,
24568
- width: 100,
24569
24627
  },
24570
24628
  {
24571
- title: "Ministry",
24629
+ title: 'Ministry',
24572
24630
  dataIndex: "ministry",
24573
24631
  key: "ministry",
24574
24632
  align: "left",
@@ -24596,7 +24654,7 @@ var NdcDetailsComponent = function (props) {
24596
24654
  endDate: new Date("".concat(Number(range[0]), "-12-24 23:12:00")),
24597
24655
  nationalPlanObj: t("ndc:enterNewPlanTxt"),
24598
24656
  kpi: 0,
24599
- ministry: "Please add the Ministry name",
24657
+ ministry: "Please add the Ministry name"
24600
24658
  };
24601
24659
  setNdcDetailsData(__spreadArray(__spreadArray([], ndcDetailsData, true), [newData], false));
24602
24660
  }
@@ -24678,10 +24736,6 @@ var NdcDetailsComponent = function (props) {
24678
24736
  React.createElement(Button, { type: "primary", onClick: onAddNewPeriod, htmlType: "submit", loading: loading }, t("ndc:submit")),
24679
24737
  React.createElement(Button, { className: "back-btn", onClick: onCancelPeriod, loading: loading }, t("ndc:back"))))));
24680
24738
  }
24681
- function getSubNdcActionContent(record) {
24682
- selectedNdcDetail.current = record;
24683
- return (React.createElement(Table, { components: components, rowClassName: function () { return "editable-row"; }, bordered: true, dataSource: getSubNdcDetails(record.key), columns: columns, showHeader: false, pagination: false }));
24684
- }
24685
24739
  var onTabChange = function (key) {
24686
24740
  setSelectedTab(key);
24687
24741
  };
@@ -24693,25 +24747,7 @@ var NdcDetailsComponent = function (props) {
24693
24747
  endDate: new Date("2020-03-25"),
24694
24748
  nationalPlanObj: "Enhance value addition in key growth opportunities",
24695
24749
  kpi: 25,
24696
- ministry: "Ministry of Environment",
24697
- subNdcDetails: [
24698
- {
24699
- key: 6,
24700
- startDate: new Date("2019-03-25"),
24701
- endDate: new Date("2020-03-25"),
24702
- nationalPlanObj: "Enhance value addition in key growth opportunities sub details",
24703
- kpi: 25,
24704
- ministry: "Ministry of Agriculture, Water and Forestry (MAWF)",
24705
- },
24706
- {
24707
- key: 7,
24708
- startDate: new Date("2019-03-25"),
24709
- endDate: new Date("2020-03-25"),
24710
- nationalPlanObj: "",
24711
- kpi: "",
24712
- ministry: "",
24713
- },
24714
- ],
24750
+ ministry: "Ministry of Agriculture, Water and Forestry (MAWF)"
24715
24751
  },
24716
24752
  {
24717
24753
  key: 2,
@@ -24719,35 +24755,7 @@ var NdcDetailsComponent = function (props) {
24719
24755
  endDate: new Date("2019-08-25"),
24720
24756
  nationalPlanObj: "Strengthen the private sector to create 10,000 jobs",
24721
24757
  kpi: 10500,
24722
- ministry: "Ministry of Environment",
24723
- subNdcDetails: [
24724
- {
24725
- key: 8,
24726
- startDate: new Date("2019-03-25"),
24727
- endDate: new Date("2020-03-25"),
24728
- nationalPlanObj: "",
24729
- kpi: "",
24730
- ministry: "",
24731
- },
24732
- ],
24733
- },
24734
- {
24735
- key: 12,
24736
- startDate: new Date("2019-03-25"),
24737
- endDate: new Date("2019-08-25"),
24738
- nationalPlanObj: "Other",
24739
- kpi: 10500,
24740
- ministry: "Ministry of Environment",
24741
- subNdcDetails: [
24742
- {
24743
- key: 8,
24744
- startDate: new Date("2019-03-25"),
24745
- endDate: new Date("2020-03-25"),
24746
- nationalPlanObj: "",
24747
- kpi: "",
24748
- ministry: "",
24749
- },
24750
- ],
24758
+ ministry: "Ministry of Tourism (MoT)"
24751
24759
  },
24752
24760
  {
24753
24761
  key: 3,
@@ -24755,17 +24763,7 @@ var NdcDetailsComponent = function (props) {
24755
24763
  endDate: new Date("2022-03-25"),
24756
24764
  nationalPlanObj: "Consolidate and increase the stock and quality of productive infrastructure by 50%",
24757
24765
  kpi: 48,
24758
- ministry: "Ministry of Environment",
24759
- subNdcDetails: [
24760
- {
24761
- key: 9,
24762
- startDate: new Date("2019-03-25"),
24763
- endDate: new Date("2020-03-25"),
24764
- nationalPlanObj: "",
24765
- kpi: "",
24766
- ministry: "",
24767
- },
24768
- ],
24766
+ ministry: "Ministry of Education, Arts and Culture (MoE)"
24769
24767
  },
24770
24768
  {
24771
24769
  key: 4,
@@ -24773,17 +24771,7 @@ var NdcDetailsComponent = function (props) {
24773
24771
  endDate: new Date("2022-05-25"),
24774
24772
  nationalPlanObj: "Enhance the productivity and social wellbeing of the population",
24775
24773
  kpi: 20,
24776
- ministry: "Ministry of Environment",
24777
- subNdcDetails: [
24778
- {
24779
- key: 10,
24780
- startDate: new Date("2019-03-25"),
24781
- endDate: new Date("2020-03-25"),
24782
- nationalPlanObj: "",
24783
- kpi: "",
24784
- ministry: "",
24785
- },
24786
- ],
24774
+ ministry: "Ministry of Environment, Forestry and Tourism (MEFT)"
24787
24775
  },
24788
24776
  {
24789
24777
  key: 5,
@@ -24791,35 +24779,7 @@ var NdcDetailsComponent = function (props) {
24791
24779
  endDate: new Date("2023-03-25"),
24792
24780
  nationalPlanObj: "Strengthen the role of the state in guiding and facilitating development",
24793
24781
  kpi: 10,
24794
- ministry: "Ministry of Environment",
24795
- subNdcDetails: [
24796
- {
24797
- key: 11,
24798
- startDate: new Date("2019-03-25"),
24799
- endDate: new Date("2020-03-25"),
24800
- nationalPlanObj: "",
24801
- kpi: "",
24802
- ministry: "",
24803
- },
24804
- ],
24805
- },
24806
- {
24807
- key: 13,
24808
- startDate: new Date("2022-03-25"),
24809
- endDate: new Date("2023-03-25"),
24810
- nationalPlanObj: "Other",
24811
- kpi: 10,
24812
- ministry: "Ministry of Environment",
24813
- subNdcDetails: [
24814
- {
24815
- key: 11,
24816
- startDate: new Date("2019-03-25"),
24817
- endDate: new Date("2020-03-25"),
24818
- nationalPlanObj: "",
24819
- kpi: "",
24820
- ministry: "",
24821
- },
24822
- ],
24782
+ ministry: "Ministry of Tourism (MoT)"
24823
24783
  },
24824
24784
  ];
24825
24785
  var initialPeriods = [
@@ -24862,11 +24822,7 @@ var NdcDetailsComponent = function (props) {
24862
24822
  React.createElement(Tabs, { centered: false, defaultActiveKey: "1", items: periodItems, activeKey: selectedTab, onChange: onTabChange })),
24863
24823
  selectedTab !== "add_new" && (React.createElement("div", null,
24864
24824
  React.createElement("div", null,
24865
- React.createElement(Table, { key: tableKey, components: components, rowClassName: function () { return "editable-row"; }, bordered: true, dataSource: getNdcDetailsForPeriod(), columns: columns, expandable: {
24866
- expandedRowRender: function (record) { return getSubNdcActionContent(record); },
24867
- indentSize: 0,
24868
- defaultExpandedRowKeys: [selectedNdcDetail.current.key],
24869
- }, footer: function () {
24825
+ React.createElement(Table, { components: components, rowClassName: function () { return "editable-row"; }, bordered: true, dataSource: getNdcDetailsForPeriod(), columns: columns, footer: function () {
24870
24826
  return isAddNdcActionVisible() && (React.createElement(Row, { justify: "center" },
24871
24827
  React.createElement(Button, { onClick: onAddNewNdcDetail, type: "default", style: {
24872
24828
  marginBottom: 16,
@@ -25528,7 +25484,7 @@ var RejectDocumentationConfirmationModel = function (props) {
25528
25484
  React.createElement(Button, { className: "mg-left-2", type: "primary", danger: true, htmlType: "submit", loading: loading, disabled: actionInfo.type === "reject" && comment === "" }, "REJECT")))));
25529
25485
  };
25530
25486
 
25531
- var css_248z$2 = ".ndc-action-body {\n display: flex;\n flex-direction: column;\n width: 100%; }\n .ndc-action-body .report-details {\n display: flex;\n flex-direction: row;\n width: 100%;\n align-items: center;\n justify-content: space-between; }\n .ndc-action-body .report-details .report-type {\n display: flex;\n flex-direction: row;\n width: 60%; }\n .ndc-action-body .report-details .report-type .name-time-container {\n display: flex;\n flex-direction: column;\n width: 70%;\n margin-bottom: 0.5rem; }\n .ndc-action-body .report-details .report-type .name {\n font-weight: 600;\n color: rgba(58, 53, 65, 0.8); }\n .ndc-action-body .report-details .report-type .icon {\n display: flex;\n align-items: center;\n width: 30%; }\n .ndc-action-body .report-details .report-type .empty {\n font-weight: 600;\n color: #cacaca; }\n .ndc-action-body .report-details .report-link {\n display: flex;\n flex-direction: row;\n width: 40%; }\n .ndc-action-body .report-details .report-link .version {\n font-weight: 600;\n color: #cacaca; }\n .ndc-action-body .report-details .report-link .link {\n margin-left: 1rem; }\n";
25487
+ var css_248z$2 = ".ndc-action-body {\n display: flex;\n flex-direction: column;\n width: 100%; }\n .ndc-action-body .report-details {\n display: flex;\n flex-direction: row;\n width: 100%;\n align-items: center;\n justify-content: space-between; }\n .ndc-action-body .report-details .report-type {\n display: flex;\n flex-direction: row;\n width: 60%; }\n .ndc-action-body .report-details .report-type .name-time-container {\n display: flex;\n flex-direction: column;\n width: 70%;\n margin-bottom: 0.5rem; }\n .ndc-action-body .report-details .report-type .name {\n font-weight: 600;\n color: rgba(58, 53, 65, 0.8); }\n .ndc-action-body .report-details .report-type .icon {\n display: flex;\n align-items: center;\n width: 30%; }\n .ndc-action-body .report-details .report-type .empty {\n font-weight: 600;\n color: #cacaca; }\n .ndc-action-body .report-details .report-link {\n display: flex;\n flex-direction: row;\n width: 40%;\n align-items: center;\n justify-content: flex-start;\n gap: 20px; }\n .ndc-action-body .report-details .report-link .version {\n font-weight: 600;\n color: #cacaca; }\n .ndc-action-body .report-details .report-link .link {\n margin-left: 1rem; }\n";
25532
25488
  styleInject(css_248z$2);
25533
25489
 
25534
25490
  var NdcActionBody = function (props) {
@@ -25746,8 +25702,8 @@ var NdcActionBody = function (props) {
25746
25702
  : t("programme:orgNotAuth"), overlayClassName: "custom-tooltip" },
25747
25703
  React.createElement(FileAddOutlined, { className: "common-progress-icon", style: canUploadMonitorReport &&
25748
25704
  uploadDocUserPermission(userInfoState, DocType.MONITORING_REPORT, programmeOwnerId, ministryLevelPermission)
25749
- ? { color: "#3F3A47", cursor: "pointer" }
25750
- : { color: "#cacaca", cursor: "default" }, onClick: function () {
25705
+ ? { color: "#3F3A47", cursor: "pointer", margin: "0px 0px 2.5px 0px" }
25706
+ : { color: "#cacaca", cursor: "default", margin: "0px 0px 2.5px 0px" }, onClick: function () {
25751
25707
  if (canUploadMonitorReport &&
25752
25708
  uploadDocUserPermission(userInfoState, DocType.MONITORING_REPORT, programmeOwnerId, ministryLevelPermission)) {
25753
25709
  handleFileUploadMonitor();
@@ -25770,8 +25726,8 @@ var NdcActionBody = function (props) {
25770
25726
  : t("programme:orgNotAuth"), overlayClassName: "custom-tooltip" },
25771
25727
  React.createElement(FileAddOutlined, { className: "common-progress-icon", style: canUploadMonitorReport &&
25772
25728
  uploadDocUserPermission(userInfoState, DocType.MONITORING_REPORT, programmeOwnerId, ministryLevelPermission)
25773
- ? { color: "#3F3A47", cursor: "pointer" }
25774
- : { color: "#cacaca", cursor: "default" }, onClick: function () {
25729
+ ? { color: "#3F3A47", cursor: "pointer", margin: "0px 0px 2.5px 0px" }
25730
+ : { color: "#cacaca", cursor: "default", margin: "0px 0px 2.5px 0px" }, onClick: function () {
25775
25731
  if (canUploadMonitorReport &&
25776
25732
  uploadDocUserPermission(userInfoState, DocType.MONITORING_REPORT, programmeOwnerId, ministryLevelPermission)) {
25777
25733
  handleFileUploadMonitor();
@@ -25820,8 +25776,8 @@ var NdcActionBody = function (props) {
25820
25776
  : t("programme:notAuthToUploadDoc"), overlayClassName: "custom-tooltip" },
25821
25777
  React.createElement(FileAddOutlined, { className: "common-progress-icon", style: monitoringReportAccepted &&
25822
25778
  uploadDocUserPermission(userInfoState, DocType.VERIFICATION_REPORT, programmeOwnerId, ministryLevelPermission)
25823
- ? { color: "#3F3A47", cursor: "pointer" }
25824
- : { color: "#cacaca", cursor: "default" }, onClick: function () {
25779
+ ? { color: "#3F3A47", cursor: "pointer", margin: "0px 0px 2.5px 0px" }
25780
+ : { color: "#cacaca", cursor: "default", margin: "0px 0px 2.5px 0px" }, onClick: function () {
25825
25781
  if (monitoringReportAccepted &&
25826
25782
  uploadDocUserPermission(userInfoState, DocType.VERIFICATION_REPORT, programmeOwnerId, ministryLevelPermission)) {
25827
25783
  handleFileUploadVerification();
@@ -25844,8 +25800,8 @@ var NdcActionBody = function (props) {
25844
25800
  : t("programme:notAuthToUploadDoc"), overlayClassName: "custom-tooltip" },
25845
25801
  React.createElement(FileAddOutlined, { className: "common-progress-icon", style: monitoringReportAccepted &&
25846
25802
  uploadDocUserPermission(userInfoState, DocType.VERIFICATION_REPORT, programmeOwnerId, ministryLevelPermission)
25847
- ? { color: "#3F3A47", cursor: "pointer" }
25848
- : { color: "#cacaca", cursor: "default" }, onClick: function () {
25803
+ ? { color: "#3F3A47", cursor: "pointer", margin: "0px 0px 2.5px 0px" }
25804
+ : { color: "#cacaca", cursor: "default", margin: "0px 0px 2.5px 0px" }, onClick: function () {
25849
25805
  if (monitoringReportAccepted &&
25850
25806
  uploadDocUserPermission(userInfoState, DocType.VERIFICATION_REPORT, programmeOwnerId, ministryLevelPermission)) {
25851
25807
  handleFileUploadVerification();
@@ -25859,7 +25815,7 @@ var NdcActionBody = function (props) {
25859
25815
  React.createElement(RejectDocumentationConfirmationModel, { actionInfo: actionInfo, onActionConfirmed: handleOk, onActionCanceled: handleCancel, openModal: openRejectDocConfirmationModal, errorMsg: "", loading: loading, translator: translator })));
25860
25816
  };
25861
25817
 
25862
- var css_248z$1 = ".info-view .title-icon {\n padding-right: 10px; }\n\n.info-view .title-text {\n color: rgba(58, 53, 65, 0.8);\n font-weight: 600; }\n\n.info-view .title {\n margin-bottom: 5px; }\n\n.info-view .field-key {\n color: rgba(58, 53, 65, 0.6);\n font-weight: 500;\n text-overflow: ellipsis;\n overflow: hidden; }\n .info-view .field-key .label-container {\n display: flex;\n flex-direction: row; }\n .info-view .field-key .label {\n width: 70%; }\n .info-view .field-key .label-uploaded {\n color: rgba(58, 53, 65, 0.8);\n width: 70%; }\n\n.info-view .field-value {\n color: rgba(58, 53, 65, 0.6);\n text-overflow: ellipsis;\n overflow: hidden; }\n .info-view .field-value .link {\n display: flex;\n flex-direction: row; }\n\n.info-view .field {\n margin: 15px 25px;\n font-size: 0.8rem; }\n";
25818
+ var css_248z$1 = ".info-view .title-icon {\n padding-right: 10px; }\n\n.info-view .title-text {\n color: rgba(58, 53, 65, 0.8);\n font-weight: 600; }\n\n.info-view .title {\n margin-bottom: 5px; }\n\n.info-view .field-key {\n color: rgba(58, 53, 65, 0.6);\n font-weight: 500;\n text-overflow: ellipsis;\n overflow: hidden; }\n .info-view .field-key .label-container {\n display: flex;\n flex-direction: row; }\n .info-view .field-key .label {\n width: 70%; }\n .info-view .field-key .label-uploaded {\n color: rgba(58, 53, 65, 0.8);\n width: 70%; }\n\n.info-view .field-value {\n color: rgba(58, 53, 65, 0.6);\n text-overflow: ellipsis;\n overflow: hidden; }\n .info-view .field-value .link {\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: flex-start;\n gap: 20px; }\n\n.info-view .field {\n margin: 15px 25px;\n font-size: 0.8rem; }\n";
25863
25819
  styleInject(css_248z$1);
25864
25820
 
25865
25821
  var ProgrammeDocuments = function (props) {
@@ -26126,8 +26082,8 @@ var ProgrammeDocuments = function (props) {
26126
26082
  ? t("programme:notAuthToUploadDoc")
26127
26083
  : !uploadDocUserPermission(userInfoState, DocType.DESIGN_DOCUMENT, programmeOwnerId, ministryLevelPermission, programmeStatus) && t("programme:orgNotAuth"), overlayClassName: "custom-tooltip" },
26128
26084
  React.createElement(FileAddOutlined, { className: "common-progress-icon", style: uploadDocUserPermission(userInfoState, DocType.DESIGN_DOCUMENT, programmeOwnerId, ministryLevelPermission, programmeStatus)
26129
- ? { color: "#3F3A47", cursor: "pointer" }
26130
- : { color: "#cacaca", cursor: "default" }, onClick: function () {
26085
+ ? { color: "#3F3A47", cursor: "pointer", margin: "0px 0px 2.5px 0px" }
26086
+ : { color: "#cacaca", cursor: "default", margin: "0px 0px 2.5px 0px" }, onClick: function () {
26131
26087
  return uploadDocUserPermission(userInfoState, DocType.DESIGN_DOCUMENT, programmeOwnerId, ministryLevelPermission, programmeStatus) && handleDesignDocFileUpload();
26132
26088
  } })),
26133
26089
  React.createElement("input", { type: "file", ref: fileInputRef, style: { display: "none" }, accept: ".xls, .xlsx, .ppt, .pptx, .csv, .doc, .docx, .pdf, .png, .jpg", onChange: function (e) {
@@ -26140,8 +26096,8 @@ var ProgrammeDocuments = function (props) {
26140
26096
  ? t("programme:notAuthToUploadDoc")
26141
26097
  : !uploadDocUserPermission(userInfoState, DocType.DESIGN_DOCUMENT, programmeOwnerId, ministryLevelPermission, programmeStatus) && t("programme:orgNotAuth"), overlayClassName: "custom-tooltip" },
26142
26098
  React.createElement(FileAddOutlined, { className: "common-progress-icon", style: uploadDocUserPermission(userInfoState, DocType.DESIGN_DOCUMENT, programmeOwnerId, ministryLevelPermission, programmeStatus)
26143
- ? { color: "#3F3A47", cursor: "pointer" }
26144
- : { color: "#cacaca", cursor: "default" }, onClick: function () {
26099
+ ? { color: "#3F3A47", cursor: "pointer", margin: "0px 0px 2.5px 0px" }
26100
+ : { color: "#cacaca", cursor: "default", margin: "0px 0px 2.5px 0px" }, onClick: function () {
26145
26101
  return uploadDocUserPermission(userInfoState, DocType.DESIGN_DOCUMENT, programmeOwnerId, ministryLevelPermission, programmeStatus) && handleDesignDocFileUpload();
26146
26102
  } })),
26147
26103
  React.createElement("input", { type: "file", ref: fileInputRef, style: { display: "none" }, accept: ".xls, .xlsx, .ppt, .pptx, .csv, .doc, .docx, .pdf, .png, .jpg", onChange: function (e) {
@@ -26194,8 +26150,8 @@ var ProgrammeDocuments = function (props) {
26194
26150
  : !uploadDocUserPermission(userInfoState, DocType.METHODOLOGY_DOCUMENT, programmeOwnerId, ministryLevelPermission, programmeStatus) && t("programme:orgNotAuth"), overlayClassName: "custom-tooltip" },
26195
26151
  React.createElement(FileAddOutlined, { className: "common-progress-icon", style: designDocStatus === DocumentStatus.ACCEPTED &&
26196
26152
  uploadDocUserPermission(userInfoState, DocType.METHODOLOGY_DOCUMENT, programmeOwnerId, ministryLevelPermission, programmeStatus)
26197
- ? { color: "#3F3A47", cursor: "pointer" }
26198
- : { color: "#cacaca" }, onClick: function () {
26153
+ ? { color: "#3F3A47", cursor: "pointer", margin: "0px 0px 2.5px 0px" }
26154
+ : { color: "#cacaca", margin: "0px 0px 2.5px 0px" }, onClick: function () {
26199
26155
  return designDocStatus === DocumentStatus.ACCEPTED &&
26200
26156
  uploadDocUserPermission(userInfoState, DocType.METHODOLOGY_DOCUMENT, programmeOwnerId, ministryLevelPermission, programmeStatus) &&
26201
26157
  handleMethodologyFileUpload();
@@ -26214,8 +26170,8 @@ var ProgrammeDocuments = function (props) {
26214
26170
  : t("programme:orgNotAuth"), overlayClassName: "custom-tooltip" },
26215
26171
  React.createElement(FileAddOutlined, { className: "common-progress-icon", style: designDocStatus === DocumentStatus.ACCEPTED &&
26216
26172
  uploadDocUserPermission(userInfoState, DocType.METHODOLOGY_DOCUMENT, programmeOwnerId, ministryLevelPermission, programmeStatus)
26217
- ? { color: "#3F3A47", cursor: "pointer" }
26218
- : { color: "#cacaca", cursor: "default" }, onClick: function () {
26173
+ ? { color: "#3F3A47", cursor: "pointer", margin: "0px 0px 2.5px 0px" }
26174
+ : { color: "#cacaca", cursor: "default", margin: "0px 0px 2.5px 0px" }, onClick: function () {
26219
26175
  return designDocStatus === DocumentStatus.ACCEPTED &&
26220
26176
  uploadDocUserPermission(userInfoState, DocType.METHODOLOGY_DOCUMENT, programmeOwnerId, ministryLevelPermission, programmeStatus) &&
26221
26177
  handleMethodologyFileUpload();
@@ -26269,8 +26225,8 @@ var ProgrammeDocuments = function (props) {
26269
26225
  ? t("programme:notAuthToUploadDoc")
26270
26226
  : !uploadDocUserPermission(userInfoState, DocType.ENVIRONMENTAL_IMPACT_ASSESSMENT, programmeOwnerId, ministryLevelPermission, programmeStatus) && t("programme:orgNotAuth"), overlayClassName: "custom-tooltip" },
26271
26227
  React.createElement(FileAddOutlined, { className: "common-progress-icon", style: uploadDocUserPermission(userInfoState, DocType.ENVIRONMENTAL_IMPACT_ASSESSMENT, programmeOwnerId, ministryLevelPermission, programmeStatus)
26272
- ? { color: "#3F3A47", cursor: "pointer" }
26273
- : { color: "#cacaca", cursor: "default" }, onClick: function () {
26228
+ ? { color: "#3F3A47", cursor: "pointer", margin: "0px 0px 2.5px 0px" }
26229
+ : { color: "#cacaca", cursor: "default", margin: "0px 0px 2.5px 0px" }, onClick: function () {
26274
26230
  return uploadDocUserPermission(userInfoState, DocType.ENVIRONMENTAL_IMPACT_ASSESSMENT, programmeOwnerId, ministryLevelPermission, programmeStatus) && handleImpactAssessmentFileUpload();
26275
26231
  } })),
26276
26232
  React.createElement("input", { type: "file", ref: fileInputRefImpactAssessment, style: { display: "none" }, accept: ".doc, .docx, .pdf, .png, .jpg", onChange: function (e) {
@@ -26282,8 +26238,8 @@ var ProgrammeDocuments = function (props) {
26282
26238
  ? t("programme:notAuthToUploadDoc")
26283
26239
  : !uploadDocUserPermission(userInfoState, DocType.ENVIRONMENTAL_IMPACT_ASSESSMENT, programmeOwnerId, ministryLevelPermission, programmeStatus) && t("programme:orgNotAuth"), overlayClassName: "custom-tooltip" },
26284
26240
  React.createElement(FileAddOutlined, { className: "common-progress-icon", style: uploadDocUserPermission(userInfoState, DocType.ENVIRONMENTAL_IMPACT_ASSESSMENT, programmeOwnerId, ministryLevelPermission, programmeStatus)
26285
- ? { color: "#3F3A47", cursor: "pointer" }
26286
- : { color: "#cacaca", cursor: "default" }, onClick: function () {
26241
+ ? { color: "#3F3A47", cursor: "pointer", margin: "0px 0px 2.5px 0px" }
26242
+ : { color: "#cacaca", cursor: "default", margin: "0px 0px 2.5px 0px" }, onClick: function () {
26287
26243
  return uploadDocUserPermission(userInfoState, DocType.ENVIRONMENTAL_IMPACT_ASSESSMENT, programmeOwnerId, ministryLevelPermission, programmeStatus) && handleImpactAssessmentFileUpload();
26288
26244
  } })),
26289
26245
  React.createElement("input", { type: "file", ref: fileInputRefImpactAssessment, style: { display: "none" }, accept: ".doc, .docx, .pdf, .png, .jpg", onChange: function (e) {