@undp/carbon-library 1.0.150-CARBON-343.3 → 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 +96 -83
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +96 -83
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
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({})
|
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(),
|
19568
|
-
var _g = React.useState()
|
19569
|
-
var _h = React.useState(
|
19570
|
-
var _j = React.useState(
|
19571
|
-
var _k = React.useState(
|
19572
|
-
var _l = React.useState(
|
19573
|
-
var _m = React.useState(
|
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",
|
19929
|
-
React.createElement(
|
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 ||
|
@@ -24561,15 +24630,6 @@ var NdcDetailsComponent = function (props) {
|
|
24561
24630
|
return [];
|
24562
24631
|
}
|
24563
24632
|
};
|
24564
|
-
var getSubNdcDetails = function (key) {
|
24565
|
-
var ndcDetail = ndcDetailsData.find(function (item) { return item.key === key; });
|
24566
|
-
if (ndcDetail) {
|
24567
|
-
return ndcDetail.subNdcDetails;
|
24568
|
-
}
|
24569
|
-
else {
|
24570
|
-
return [];
|
24571
|
-
}
|
24572
|
-
};
|
24573
24633
|
var defaultColumns = [
|
24574
24634
|
{
|
24575
24635
|
title: t("ndc:ndcColumnsNationalPlanObj"),
|
@@ -24586,7 +24646,7 @@ var NdcDetailsComponent = function (props) {
|
|
24586
24646
|
editable: true,
|
24587
24647
|
},
|
24588
24648
|
{
|
24589
|
-
title:
|
24649
|
+
title: 'Ministry',
|
24590
24650
|
dataIndex: "ministry",
|
24591
24651
|
key: "ministry",
|
24592
24652
|
align: "left",
|
@@ -24614,33 +24674,10 @@ var NdcDetailsComponent = function (props) {
|
|
24614
24674
|
endDate: new Date("".concat(Number(range[0]), "-12-24 23:12:00")),
|
24615
24675
|
nationalPlanObj: t("ndc:enterNewPlanTxt"),
|
24616
24676
|
kpi: 0,
|
24617
|
-
ministry: "Please add the Ministry name"
|
24677
|
+
ministry: "Please add the Ministry name"
|
24618
24678
|
};
|
24619
24679
|
setNdcDetailsData(__spreadArray(__spreadArray([], ndcDetailsData, true), [newData], false));
|
24620
24680
|
}
|
24621
|
-
function onAddNewSubNdcDetail() {
|
24622
|
-
var range = selectedTab.split("-");
|
24623
|
-
var ndcDetail = ndcDetailsData.find(function (item) { return item.key === selectedNdcDetail.current.key; });
|
24624
|
-
var ndcDetailItemIndex = ndcDetailsData.findIndex(function (item) { return item.key === selectedNdcDetail.current.key; });
|
24625
|
-
if (ndcDetail) {
|
24626
|
-
addedNdcDetailId.current = addedNdcDetailId.current + 1;
|
24627
|
-
var newData = {
|
24628
|
-
key: addedNdcDetailId.current,
|
24629
|
-
startDate: new Date("".concat(Number(range[0]), "-01-24 23:12:00")),
|
24630
|
-
endDate: new Date("".concat(Number(range[0]), "-12-24 23:12:00")),
|
24631
|
-
nationalPlanObj: t("ndc:enterNewPlanTxt"),
|
24632
|
-
kpi: 0,
|
24633
|
-
ministry: "Please add the Ministry name",
|
24634
|
-
};
|
24635
|
-
if (!ndcDetail.subNdcDetails) {
|
24636
|
-
ndcDetail.subNdcDetails = [];
|
24637
|
-
}
|
24638
|
-
ndcDetail.subNdcDetails.push(newData);
|
24639
|
-
}
|
24640
|
-
ndcDetailsData[ndcDetailItemIndex] = ndcDetail;
|
24641
|
-
setNdcDetailsData(ndcDetailsData);
|
24642
|
-
setTableKey(function (key) { return key + 1; });
|
24643
|
-
}
|
24644
24681
|
var components = {
|
24645
24682
|
body: {
|
24646
24683
|
row: EditableRow,
|
@@ -24719,16 +24756,6 @@ var NdcDetailsComponent = function (props) {
|
|
24719
24756
|
React.createElement(antd.Button, { type: "primary", onClick: onAddNewPeriod, htmlType: "submit", loading: loading }, t("ndc:submit")),
|
24720
24757
|
React.createElement(antd.Button, { className: "back-btn", onClick: onCancelPeriod, loading: loading }, t("ndc:back"))))));
|
24721
24758
|
}
|
24722
|
-
function getSubNdcActionContent(record) {
|
24723
|
-
selectedNdcDetail.current = record;
|
24724
|
-
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 () {
|
24725
|
-
return (React.createElement(antd.Row, { justify: "center" },
|
24726
|
-
React.createElement(antd.Button, { onClick: onAddNewSubNdcDetail, type: "default", style: {
|
24727
|
-
marginBottom: 16,
|
24728
|
-
width: "100%",
|
24729
|
-
} }, t("ndc:addSubNdcAction"))));
|
24730
|
-
} }));
|
24731
|
-
}
|
24732
24759
|
var onTabChange = function (key) {
|
24733
24760
|
setSelectedTab(key);
|
24734
24761
|
};
|
@@ -24740,17 +24767,7 @@ var NdcDetailsComponent = function (props) {
|
|
24740
24767
|
endDate: new Date("2020-03-25"),
|
24741
24768
|
nationalPlanObj: "Enhance value addition in key growth opportunities",
|
24742
24769
|
kpi: 25,
|
24743
|
-
ministry: "Ministry of Agriculture, Water and Forestry (MAWF)"
|
24744
|
-
subNdcDetails: [
|
24745
|
-
{
|
24746
|
-
key: 6,
|
24747
|
-
startDate: new Date("2019-03-25"),
|
24748
|
-
endDate: new Date("2020-03-25"),
|
24749
|
-
nationalPlanObj: "Enhance value addition in key growth opportunities sub details",
|
24750
|
-
kpi: 25,
|
24751
|
-
ministry: "Ministry of Agriculture, Water and Forestry (MAWF)",
|
24752
|
-
},
|
24753
|
-
],
|
24770
|
+
ministry: "Ministry of Agriculture, Water and Forestry (MAWF)"
|
24754
24771
|
},
|
24755
24772
|
{
|
24756
24773
|
key: 2,
|
@@ -24758,7 +24775,7 @@ var NdcDetailsComponent = function (props) {
|
|
24758
24775
|
endDate: new Date("2019-08-25"),
|
24759
24776
|
nationalPlanObj: "Strengthen the private sector to create 10,000 jobs",
|
24760
24777
|
kpi: 10500,
|
24761
|
-
ministry: "Ministry of Tourism (MoT)"
|
24778
|
+
ministry: "Ministry of Tourism (MoT)"
|
24762
24779
|
},
|
24763
24780
|
{
|
24764
24781
|
key: 3,
|
@@ -24766,7 +24783,7 @@ var NdcDetailsComponent = function (props) {
|
|
24766
24783
|
endDate: new Date("2022-03-25"),
|
24767
24784
|
nationalPlanObj: "Consolidate and increase the stock and quality of productive infrastructure by 50%",
|
24768
24785
|
kpi: 48,
|
24769
|
-
ministry: "Ministry of Education, Arts and Culture (MoE)"
|
24786
|
+
ministry: "Ministry of Education, Arts and Culture (MoE)"
|
24770
24787
|
},
|
24771
24788
|
{
|
24772
24789
|
key: 4,
|
@@ -24774,7 +24791,7 @@ var NdcDetailsComponent = function (props) {
|
|
24774
24791
|
endDate: new Date("2022-05-25"),
|
24775
24792
|
nationalPlanObj: "Enhance the productivity and social wellbeing of the population",
|
24776
24793
|
kpi: 20,
|
24777
|
-
ministry: "Ministry of Environment, Forestry and Tourism (MEFT)"
|
24794
|
+
ministry: "Ministry of Environment, Forestry and Tourism (MEFT)"
|
24778
24795
|
},
|
24779
24796
|
{
|
24780
24797
|
key: 5,
|
@@ -24782,7 +24799,7 @@ var NdcDetailsComponent = function (props) {
|
|
24782
24799
|
endDate: new Date("2023-03-25"),
|
24783
24800
|
nationalPlanObj: "Strengthen the role of the state in guiding and facilitating development",
|
24784
24801
|
kpi: 10,
|
24785
|
-
ministry: "Ministry of Tourism (MoT)"
|
24802
|
+
ministry: "Ministry of Tourism (MoT)"
|
24786
24803
|
},
|
24787
24804
|
];
|
24788
24805
|
var initialPeriods = [
|
@@ -24825,11 +24842,7 @@ var NdcDetailsComponent = function (props) {
|
|
24825
24842
|
React.createElement(antd.Tabs, { centered: false, defaultActiveKey: "1", items: periodItems, activeKey: selectedTab, onChange: onTabChange })),
|
24826
24843
|
selectedTab !== "add_new" && (React.createElement("div", null,
|
24827
24844
|
React.createElement("div", null,
|
24828
|
-
React.createElement(antd.Table, {
|
24829
|
-
expandedRowRender: function (record) { return getSubNdcActionContent(record); },
|
24830
|
-
indentSize: 0,
|
24831
|
-
defaultExpandedRowKeys: [selectedNdcDetail.current.key]
|
24832
|
-
}, footer: function () {
|
24845
|
+
React.createElement(antd.Table, { components: components, rowClassName: function () { return "editable-row"; }, bordered: true, dataSource: getNdcDetailsForPeriod(), columns: columns, footer: function () {
|
24833
24846
|
return isAddNdcActionVisible() && (React.createElement(antd.Row, { justify: "center" },
|
24834
24847
|
React.createElement(antd.Button, { onClick: onAddNewNdcDetail, type: "default", style: {
|
24835
24848
|
marginBottom: 16,
|
@@ -25491,7 +25504,7 @@ var RejectDocumentationConfirmationModel = function (props) {
|
|
25491
25504
|
React.createElement(antd.Button, { className: "mg-left-2", type: "primary", danger: true, htmlType: "submit", loading: loading, disabled: actionInfo.type === "reject" && comment === "" }, "REJECT")))));
|
25492
25505
|
};
|
25493
25506
|
|
25494
|
-
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
|
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";
|
25495
25508
|
styleInject(css_248z$2);
|
25496
25509
|
|
25497
25510
|
var NdcActionBody = function (props) {
|
@@ -25822,7 +25835,7 @@ var NdcActionBody = function (props) {
|
|
25822
25835
|
React.createElement(RejectDocumentationConfirmationModel, { actionInfo: actionInfo, onActionConfirmed: handleOk, onActionCanceled: handleCancel, openModal: openRejectDocConfirmationModal, errorMsg: "", loading: loading, translator: translator })));
|
25823
25836
|
};
|
25824
25837
|
|
25825
|
-
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";
|
25826
25839
|
styleInject(css_248z$1);
|
25827
25840
|
|
25828
25841
|
var ProgrammeDocuments = function (props) {
|