@undp/carbon-library 1.0.150-CARBON-343.4 → 1.0.150-CARBON-320.1

Sign up to get free protection for your applications and to get access to all the features.
package/dist/cjs/index.js CHANGED
@@ -19464,7 +19464,7 @@ var AddNdcActionComponent = function (props) {
19464
19464
  React.createElement(antd.Steps, { progressDot: true, direction: "vertical", current: current, items: stepItems })))));
19465
19465
  };
19466
19466
 
19467
- 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";
19467
+ 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";
19468
19468
  styleInject(css_248z$d);
19469
19469
 
19470
19470
  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";
@@ -19562,15 +19562,19 @@ var NdcActionViewComponent = function (props) {
19562
19562
  var userInfoState = useUserContext().userInfoState;
19563
19563
  var post = useConnection().post;
19564
19564
  var state = useLocation().state;
19565
- var _d = React.useState({}), ndcActionReportDetails = _d[0], setNdcActionReportDetails = _d[1];
19565
+ var _d = React.useState({}); _d[0]; var setNdcActionReportDetails = _d[1];
19566
19566
  var _e = React.useState(false), isLoading = _e[0], setIsLoading = _e[1];
19567
- var _f = React.useState(), ndcActionDetails = _f[0], setNdcActionDetails = _f[1];
19568
- var _g = React.useState(); _g[0]; var setCoBenifitsComponentnDetails = _g[1];
19569
- var _h = React.useState(0), emissionsReductionExpected = _h[0], setEmissionsReductionExpected = _h[1];
19570
- var _j = React.useState(0), emissionsReductionAchieved = _j[0], setEmissionsReductionAchieved = _j[1];
19571
- var _k = React.useState([]), programmeOwnerId = _k[0], setProgrammeOwnerId = _k[1];
19572
- var _l = React.useState(false), canUploadMonitorReport = _l[0], setCanUploadMonitorReport = _l[1];
19573
- var _m = React.useState(false), monitoringReportAccepted = _m[0], setMonitoringReportAccepted = _m[1];
19567
+ var _f = React.useState(), monitoringReportData = _f[0], setMonitoringReportData = _f[1];
19568
+ var _g = React.useState(""), monitoringReportversion = _g[0], setMonitoringReportversion = _g[1];
19569
+ var _h = React.useState(), verificationReportData = _h[0], setVerificationReportData = _h[1];
19570
+ var _j = React.useState(""), verificationReportVersion = _j[0], setVerificationReportversion = _j[1];
19571
+ var _k = React.useState(), ndcActionDetails = _k[0], setNdcActionDetails = _k[1];
19572
+ var _l = React.useState(); _l[0]; var setCoBenifitsComponentnDetails = _l[1];
19573
+ var _m = React.useState(0), emissionsReductionExpected = _m[0], setEmissionsReductionExpected = _m[1];
19574
+ var _o = React.useState(0), emissionsReductionAchieved = _o[0], setEmissionsReductionAchieved = _o[1];
19575
+ var _p = React.useState([]), programmeOwnerId = _p[0], setProgrammeOwnerId = _p[1];
19576
+ var _q = React.useState(false), canUploadMonitorReport = _q[0], setCanUploadMonitorReport = _q[1];
19577
+ var _r = React.useState(false), monitoringReportAccepted = _r[0], setMonitoringReportAccepted = _r[1];
19574
19578
  var getProgrammeById = function (programmeId) { return __awaiter(void 0, void 0, void 0, function () {
19575
19579
  var response, error_1;
19576
19580
  var _a, _b, _c;
@@ -19612,13 +19616,16 @@ var NdcActionViewComponent = function (props) {
19612
19616
  }
19613
19617
  });
19614
19618
  }); };
19615
- var getProjectReportActions = function (reportData) {
19619
+ var getProjectReportActions = function (reportData, reportVersion) {
19616
19620
  return (React.createElement(antd.Row, null,
19617
19621
  React.createElement("div", { className: "icon" },
19618
19622
  (reportData === null || reportData === void 0 ? void 0 : reportData.status) === exports.DocumentStatus.ACCEPTED && (React.createElement(icons.CheckCircleOutlined, { className: "common-progress-icon", style: { color: "#5DC380" } })),
19619
19623
  (reportData === null || reportData === void 0 ? void 0 : reportData.status) === exports.DocumentStatus.REJECTED && (React.createElement(icons.ExclamationCircleOutlined, { className: "common-progress-icon", style: { color: "#FD6F70" } }))),
19620
19624
  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 },
19621
- React.createElement(icons.BookOutlined, { className: "common-progress-icon margin-right-1", style: { color: "#3F3A47" } }))))));
19625
+ React.createElement(icons.BookOutlined, { className: "common-progress-icon margin-right-1", style: { color: "#3F3A47" } })))),
19626
+ (reportData === null || reportData === void 0 ? void 0 : reportData.txTime) && (React.createElement("div", { className: "time" },
19627
+ moment(parseInt(reportData === null || reportData === void 0 ? void 0 : reportData.txTime)).format("DD MMMM YYYY @ HH:mm"),
19628
+ " ~ " + reportVersion))));
19622
19629
  };
19623
19630
  var getProjectReports = function () { return __awaiter(void 0, void 0, void 0, function () {
19624
19631
  var reportDetails, response, exception_1;
@@ -19666,12 +19673,24 @@ var NdcActionViewComponent = function (props) {
19666
19673
  if ((item === null || item === void 0 ? void 0 : item.status) === exports.DocumentStatus.ACCEPTED) {
19667
19674
  setMonitoringReportAccepted(true);
19668
19675
  }
19676
+ var versionfull = (item === null || item === void 0 ? void 0 : item.url).split("_")[(item === null || item === void 0 ? void 0 : item.url).split("_").length - 1];
19677
+ var version = versionfull ? versionfull.split(".")[0] : "1";
19678
+ var moniteringVersion = version.startsWith("V") ? version : "V1";
19669
19679
  reportDetails[t("ndcAction:viewMoniteringReport")] =
19670
- getProjectReportActions(item);
19680
+ getProjectReportActions(item, moniteringVersion);
19681
+ setMonitoringReportData(item);
19682
+ setMonitoringReportversion(moniteringVersion);
19671
19683
  }
19672
19684
  else if ((_b = item === null || item === void 0 ? void 0 : item.url) === null || _b === void 0 ? void 0 : _b.includes("VERIFICATION_REPORT")) {
19685
+ var versionfull = (item === null || item === void 0 ? void 0 : item.url).split("_")[(item === null || item === void 0 ? void 0 : item.url).split("_").length - 1];
19686
+ var version = versionfull ? versionfull.split(".")[0] : "1";
19687
+ var verificationVersion = version.startsWith("V")
19688
+ ? version
19689
+ : "V1";
19673
19690
  reportDetails[t("ndcAction:viewVerificationReport")] =
19674
- getProjectReportActions(item);
19691
+ getProjectReportActions(item, verificationVersion);
19692
+ setVerificationReportData(item);
19693
+ setVerificationReportversion(verificationVersion);
19675
19694
  }
19676
19695
  });
19677
19696
  }
@@ -19925,8 +19944,60 @@ var NdcActionViewComponent = function (props) {
19925
19944
  React.createElement(antd.Col, { lg: 8, md: 24 },
19926
19945
  React.createElement(antd.Skeleton, { loading: isLoading, active: true },
19927
19946
  React.createElement(antd.Card, { className: "card-container fix-height" },
19928
- React.createElement("div", null,
19929
- React.createElement(InfoView, { data: ndcActionReportDetails, title: t("ndcAction:viewReportsTitle"), icon: React.createElement(Icon__namespace.FileEarmarkText, null) })))))),
19947
+ React.createElement("div", { className: "title" },
19948
+ React.createElement("span", { className: "title-icon" }, React.createElement(Icon__namespace.FileEarmarkText, null)),
19949
+ React.createElement("span", { className: "title-text" }, t("ndcAction:viewReportsTitle"))),
19950
+ React.createElement("div", { className: "ndc-action-report-body" },
19951
+ React.createElement("div", { className: "report-details" },
19952
+ React.createElement("div", { className: "report-type" },
19953
+ React.createElement("div", { className: "name-time-container" },
19954
+ React.createElement("div", { className: canUploadMonitorReport && monitoringReportAccepted
19955
+ ? "name"
19956
+ : "empty" }, t("programme:monitoringReport")),
19957
+ (monitoringReportData === null || monitoringReportData === void 0 ? void 0 : monitoringReportData.txTime) && (React.createElement("div", { className: "time" },
19958
+ moment(parseInt(monitoringReportData === null || monitoringReportData === void 0 ? void 0 : monitoringReportData.txTime)).format("DD MMMM YYYY @ HH:mm"),
19959
+ " ~ " + monitoringReportversion))),
19960
+ React.createElement("div", { className: "icon" }, !(monitoringReportData === null || monitoringReportData === void 0 ? void 0 : monitoringReportData.url) && (React.createElement(antd.Tooltip, { arrowPointAtCenter: true, placement: "top", trigger: "hover", title: (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.userRole) === exports.Role.ViewOnly
19961
+ ? t("programme:notAuthToUploadDoc")
19962
+ : uploadDocUserPermission(userInfoState, exports.DocType.MONITORING_REPORT, programmeOwnerId)
19963
+ ? !canUploadMonitorReport &&
19964
+ t("programme:programmeNotAuth")
19965
+ : t("programme:orgNotAuth"), overlayClassName: "custom-tooltip" },
19966
+ React.createElement(icons.FileAddOutlined, null))))),
19967
+ (monitoringReportData === null || monitoringReportData === void 0 ? void 0 : monitoringReportData.url) && (React.createElement(antd.Row, null,
19968
+ React.createElement("div", { className: "icon" },
19969
+ (monitoringReportData === null || monitoringReportData === void 0 ? void 0 : monitoringReportData.status) ===
19970
+ exports.DocumentStatus.ACCEPTED && (React.createElement(icons.CheckCircleOutlined, { className: "common-progress-icon", style: { color: "#5DC380" } })),
19971
+ (monitoringReportData === null || monitoringReportData === void 0 ? void 0 : monitoringReportData.status) ===
19972
+ exports.DocumentStatus.REJECTED && (React.createElement(icons.ExclamationCircleOutlined, { className: "common-progress-icon", style: { color: "#FD6F70" } }))),
19973
+ React.createElement("div", { className: "link mg-left-1" }, (monitoringReportData === null || monitoringReportData === void 0 ? void 0 : monitoringReportData.url) &&
19974
+ 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 },
19975
+ React.createElement(icons.BookOutlined, { className: "common-progress-icon margin-right-1", style: { color: "#3F3A47" } }))))))),
19976
+ React.createElement("div", { className: "report-details" },
19977
+ React.createElement("div", { className: "report-type" },
19978
+ React.createElement("div", { className: "name-time-container" },
19979
+ React.createElement("div", { className: canUploadMonitorReport && monitoringReportAccepted
19980
+ ? "name"
19981
+ : "empty" }, t("programme:verificationReport")),
19982
+ (verificationReportData === null || verificationReportData === void 0 ? void 0 : verificationReportData.txTime) && (React.createElement("div", { className: "time" },
19983
+ moment(parseInt(verificationReportData === null || verificationReportData === void 0 ? void 0 : verificationReportData.txTime)).format("DD MMMM YYYY @ HH:mm"),
19984
+ " ~ " + verificationReportVersion))),
19985
+ React.createElement("div", { className: "icon" }, !(verificationReportData === null || verificationReportData === void 0 ? void 0 : verificationReportData.url) && (React.createElement(antd.Tooltip, { arrowPointAtCenter: true, placement: "top", trigger: "hover", title: (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.userRole) === exports.Role.ViewOnly
19986
+ ? t("programme:notAuthToUploadDoc")
19987
+ : uploadDocUserPermission(userInfoState, exports.DocType.VERIFICATION_REPORT, programmeOwnerId)
19988
+ ? !monitoringReportAccepted &&
19989
+ t("programme:monitoringRepNotApproved")
19990
+ : t("programme:notAuthToUploadDoc"), overlayClassName: "custom-tooltip" },
19991
+ React.createElement(icons.FileAddOutlined, null))))),
19992
+ (verificationReportData === null || verificationReportData === void 0 ? void 0 : verificationReportData.url) && (React.createElement(antd.Row, null,
19993
+ React.createElement("div", { className: "icon" },
19994
+ (verificationReportData === null || verificationReportData === void 0 ? void 0 : verificationReportData.status) ===
19995
+ exports.DocumentStatus.ACCEPTED && (React.createElement(icons.CheckCircleOutlined, { className: "common-progress-icon", style: { color: "#5DC380" } })),
19996
+ (verificationReportData === null || verificationReportData === void 0 ? void 0 : verificationReportData.status) ===
19997
+ exports.DocumentStatus.REJECTED && (React.createElement(icons.ExclamationCircleOutlined, { className: "common-progress-icon", style: { color: "#FD6F70" } }))),
19998
+ React.createElement("div", { className: "link mg-left-1" }, (verificationReportData === null || verificationReportData === void 0 ? void 0 : verificationReportData.url) &&
19999
+ 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 },
20000
+ React.createElement(icons.BookOutlined, { className: "common-progress-icon margin-right-1", style: { color: "#3F3A47" } })))))))))))),
19930
20001
  ((ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.action) === exports.NdcActionTypes.Mitigation ||
19931
20002
  (ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.action) === exports.NdcActionTypes.CrossCutting) && (React.createElement(antd.Row, null,
19932
20003
  React.createElement(antd.Col, { lg: 24, className: "gutter-row" },
@@ -24527,8 +24598,6 @@ var NdcDetailsComponent = function (props) {
24527
24598
  var _d = React.useState("add_new"), selectedTab = _d[0], setSelectedTab = _d[1];
24528
24599
  var selectedPeriod = React.useRef({});
24529
24600
  var addedNdcDetailId = React.useRef(0);
24530
- var selectedNdcDetail = React.useRef({});
24531
- var _e = React.useState(0), tableKey = _e[0], setTableKey = _e[1];
24532
24601
  var userInfoState = useUserContext().userInfoState;
24533
24602
  var isAddRangeVisible = function () {
24534
24603
  return (((userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) === exports.CompanyRole.MINISTRY ||
@@ -24539,10 +24608,6 @@ var NdcDetailsComponent = function (props) {
24539
24608
  return ((userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) === exports.CompanyRole.GOVERNMENT &&
24540
24609
  (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.userRole) !== exports.Role.ViewOnly);
24541
24610
  };
24542
- var isAddSubNdcActionVisible = function () {
24543
- return ((userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) === exports.CompanyRole.MINISTRY &&
24544
- (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.userRole) !== exports.Role.ViewOnly);
24545
- };
24546
24611
  var inRange = function (num, min, max) {
24547
24612
  return num >= min && num <= max;
24548
24613
  };
@@ -24565,15 +24630,6 @@ var NdcDetailsComponent = function (props) {
24565
24630
  return [];
24566
24631
  }
24567
24632
  };
24568
- var getSubNdcDetails = function (key) {
24569
- var ndcDetail = ndcDetailsData.find(function (item) { return item.key === key; });
24570
- if (ndcDetail) {
24571
- return ndcDetail.subNdcDetails;
24572
- }
24573
- else {
24574
- return [];
24575
- }
24576
- };
24577
24633
  var defaultColumns = [
24578
24634
  {
24579
24635
  title: t("ndc:ndcColumnsNationalPlanObj"),
@@ -24590,7 +24646,7 @@ var NdcDetailsComponent = function (props) {
24590
24646
  editable: true,
24591
24647
  },
24592
24648
  {
24593
- title: "Ministry",
24649
+ title: 'Ministry',
24594
24650
  dataIndex: "ministry",
24595
24651
  key: "ministry",
24596
24652
  align: "left",
@@ -24618,33 +24674,10 @@ var NdcDetailsComponent = function (props) {
24618
24674
  endDate: new Date("".concat(Number(range[0]), "-12-24 23:12:00")),
24619
24675
  nationalPlanObj: t("ndc:enterNewPlanTxt"),
24620
24676
  kpi: 0,
24621
- ministry: "Please add the Ministry name",
24677
+ ministry: "Please add the Ministry name"
24622
24678
  };
24623
24679
  setNdcDetailsData(__spreadArray(__spreadArray([], ndcDetailsData, true), [newData], false));
24624
24680
  }
24625
- function onAddNewSubNdcDetail() {
24626
- var range = selectedTab.split("-");
24627
- var ndcDetail = ndcDetailsData.find(function (item) { return item.key === selectedNdcDetail.current.key; });
24628
- var ndcDetailItemIndex = ndcDetailsData.findIndex(function (item) { return item.key === selectedNdcDetail.current.key; });
24629
- if (ndcDetail) {
24630
- addedNdcDetailId.current = addedNdcDetailId.current + 1;
24631
- var newData = {
24632
- key: addedNdcDetailId.current,
24633
- startDate: new Date("".concat(Number(range[0]), "-01-24 23:12:00")),
24634
- endDate: new Date("".concat(Number(range[0]), "-12-24 23:12:00")),
24635
- nationalPlanObj: t("ndc:enterNewPlanTxt"),
24636
- kpi: 0,
24637
- ministry: "Please add the Ministry name",
24638
- };
24639
- if (!ndcDetail.subNdcDetails) {
24640
- ndcDetail.subNdcDetails = [];
24641
- }
24642
- ndcDetail.subNdcDetails.push(newData);
24643
- }
24644
- ndcDetailsData[ndcDetailItemIndex] = ndcDetail;
24645
- setNdcDetailsData(ndcDetailsData);
24646
- setTableKey(function (key) { return key + 1; });
24647
- }
24648
24681
  var components = {
24649
24682
  body: {
24650
24683
  row: EditableRow,
@@ -24723,16 +24756,6 @@ var NdcDetailsComponent = function (props) {
24723
24756
  React.createElement(antd.Button, { type: "primary", onClick: onAddNewPeriod, htmlType: "submit", loading: loading }, t("ndc:submit")),
24724
24757
  React.createElement(antd.Button, { className: "back-btn", onClick: onCancelPeriod, loading: loading }, t("ndc:back"))))));
24725
24758
  }
24726
- function getSubNdcActionContent(record) {
24727
- selectedNdcDetail.current = record;
24728
- return (React.createElement(antd.Table, { components: components, rowClassName: function () { return "editable-row"; }, bordered: true, dataSource: getSubNdcDetails(record.key), columns: columns, showHeader: false, pagination: false, footer: function () {
24729
- return isAddSubNdcActionVisible() && (React.createElement(antd.Row, { justify: "center" },
24730
- React.createElement(antd.Button, { onClick: onAddNewSubNdcDetail, type: "default", style: {
24731
- marginBottom: 16,
24732
- width: "100%",
24733
- } }, t("ndc:addSubNdcAction"))));
24734
- } }));
24735
- }
24736
24759
  var onTabChange = function (key) {
24737
24760
  setSelectedTab(key);
24738
24761
  };
@@ -24744,17 +24767,7 @@ var NdcDetailsComponent = function (props) {
24744
24767
  endDate: new Date("2020-03-25"),
24745
24768
  nationalPlanObj: "Enhance value addition in key growth opportunities",
24746
24769
  kpi: 25,
24747
- ministry: "Ministry of Agriculture, Water and Forestry (MAWF)",
24748
- subNdcDetails: [
24749
- {
24750
- key: 6,
24751
- startDate: new Date("2019-03-25"),
24752
- endDate: new Date("2020-03-25"),
24753
- nationalPlanObj: "Enhance value addition in key growth opportunities sub details",
24754
- kpi: 25,
24755
- ministry: "Ministry of Agriculture, Water and Forestry (MAWF)",
24756
- },
24757
- ],
24770
+ ministry: "Ministry of Agriculture, Water and Forestry (MAWF)"
24758
24771
  },
24759
24772
  {
24760
24773
  key: 2,
@@ -24762,7 +24775,7 @@ var NdcDetailsComponent = function (props) {
24762
24775
  endDate: new Date("2019-08-25"),
24763
24776
  nationalPlanObj: "Strengthen the private sector to create 10,000 jobs",
24764
24777
  kpi: 10500,
24765
- ministry: "Ministry of Tourism (MoT)",
24778
+ ministry: "Ministry of Tourism (MoT)"
24766
24779
  },
24767
24780
  {
24768
24781
  key: 3,
@@ -24770,7 +24783,7 @@ var NdcDetailsComponent = function (props) {
24770
24783
  endDate: new Date("2022-03-25"),
24771
24784
  nationalPlanObj: "Consolidate and increase the stock and quality of productive infrastructure by 50%",
24772
24785
  kpi: 48,
24773
- ministry: "Ministry of Education, Arts and Culture (MoE)",
24786
+ ministry: "Ministry of Education, Arts and Culture (MoE)"
24774
24787
  },
24775
24788
  {
24776
24789
  key: 4,
@@ -24778,7 +24791,7 @@ var NdcDetailsComponent = function (props) {
24778
24791
  endDate: new Date("2022-05-25"),
24779
24792
  nationalPlanObj: "Enhance the productivity and social wellbeing of the population",
24780
24793
  kpi: 20,
24781
- ministry: "Ministry of Environment, Forestry and Tourism (MEFT)",
24794
+ ministry: "Ministry of Environment, Forestry and Tourism (MEFT)"
24782
24795
  },
24783
24796
  {
24784
24797
  key: 5,
@@ -24786,7 +24799,7 @@ var NdcDetailsComponent = function (props) {
24786
24799
  endDate: new Date("2023-03-25"),
24787
24800
  nationalPlanObj: "Strengthen the role of the state in guiding and facilitating development",
24788
24801
  kpi: 10,
24789
- ministry: "Ministry of Tourism (MoT)",
24802
+ ministry: "Ministry of Tourism (MoT)"
24790
24803
  },
24791
24804
  ];
24792
24805
  var initialPeriods = [
@@ -24829,11 +24842,7 @@ var NdcDetailsComponent = function (props) {
24829
24842
  React.createElement(antd.Tabs, { centered: false, defaultActiveKey: "1", items: periodItems, activeKey: selectedTab, onChange: onTabChange })),
24830
24843
  selectedTab !== "add_new" && (React.createElement("div", null,
24831
24844
  React.createElement("div", null,
24832
- React.createElement(antd.Table, { key: tableKey, components: components, rowClassName: function () { return "editable-row"; }, bordered: true, dataSource: getNdcDetailsForPeriod(), columns: columns, expandable: {
24833
- expandedRowRender: function (record) { return getSubNdcActionContent(record); },
24834
- indentSize: 0,
24835
- defaultExpandedRowKeys: [selectedNdcDetail.current.key],
24836
- }, footer: function () {
24845
+ React.createElement(antd.Table, { components: components, rowClassName: function () { return "editable-row"; }, bordered: true, dataSource: getNdcDetailsForPeriod(), columns: columns, footer: function () {
24837
24846
  return isAddNdcActionVisible() && (React.createElement(antd.Row, { justify: "center" },
24838
24847
  React.createElement(antd.Button, { onClick: onAddNewNdcDetail, type: "default", style: {
24839
24848
  marginBottom: 16,
@@ -25495,7 +25504,7 @@ var RejectDocumentationConfirmationModel = function (props) {
25495
25504
  React.createElement(antd.Button, { className: "mg-left-2", type: "primary", danger: true, htmlType: "submit", loading: loading, disabled: actionInfo.type === "reject" && comment === "" }, "REJECT")))));
25496
25505
  };
25497
25506
 
25498
- 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";
25507
+ 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";
25499
25508
  styleInject(css_248z$2);
25500
25509
 
25501
25510
  var NdcActionBody = function (props) {
@@ -25826,7 +25835,7 @@ var NdcActionBody = function (props) {
25826
25835
  React.createElement(RejectDocumentationConfirmationModel, { actionInfo: actionInfo, onActionConfirmed: handleOk, onActionCanceled: handleCancel, openModal: openRejectDocConfirmationModal, errorMsg: "", loading: loading, translator: translator })));
25827
25836
  };
25828
25837
 
25829
- 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";
25838
+ 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";
25830
25839
  styleInject(css_248z$1);
25831
25840
 
25832
25841
  var ProgrammeDocuments = function (props) {