@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/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({})
|
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(),
|
19548
|
-
var _g = useState()
|
19549
|
-
var _h = useState(
|
19550
|
-
var _j = useState(
|
19551
|
-
var _k = useState(
|
19552
|
-
var _l = useState(
|
19553
|
-
var _m = useState(
|
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",
|
19909
|
-
React.createElement(
|
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" },
|
@@ -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], setTableKey = _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"),
|
@@ -24566,7 +24626,7 @@ var NdcDetailsComponent = function (props) {
|
|
24566
24626
|
editable: true,
|
24567
24627
|
},
|
24568
24628
|
{
|
24569
|
-
title:
|
24629
|
+
title: 'Ministry',
|
24570
24630
|
dataIndex: "ministry",
|
24571
24631
|
key: "ministry",
|
24572
24632
|
align: "left",
|
@@ -24594,33 +24654,10 @@ var NdcDetailsComponent = function (props) {
|
|
24594
24654
|
endDate: new Date("".concat(Number(range[0]), "-12-24 23:12:00")),
|
24595
24655
|
nationalPlanObj: t("ndc:enterNewPlanTxt"),
|
24596
24656
|
kpi: 0,
|
24597
|
-
ministry: "Please add the Ministry name"
|
24657
|
+
ministry: "Please add the Ministry name"
|
24598
24658
|
};
|
24599
24659
|
setNdcDetailsData(__spreadArray(__spreadArray([], ndcDetailsData, true), [newData], false));
|
24600
24660
|
}
|
24601
|
-
function onAddNewSubNdcDetail() {
|
24602
|
-
var range = selectedTab.split("-");
|
24603
|
-
var ndcDetail = ndcDetailsData.find(function (item) { return item.key === selectedNdcDetail.current.key; });
|
24604
|
-
var ndcDetailItemIndex = ndcDetailsData.findIndex(function (item) { return item.key === selectedNdcDetail.current.key; });
|
24605
|
-
if (ndcDetail) {
|
24606
|
-
addedNdcDetailId.current = addedNdcDetailId.current + 1;
|
24607
|
-
var newData = {
|
24608
|
-
key: addedNdcDetailId.current,
|
24609
|
-
startDate: new Date("".concat(Number(range[0]), "-01-24 23:12:00")),
|
24610
|
-
endDate: new Date("".concat(Number(range[0]), "-12-24 23:12:00")),
|
24611
|
-
nationalPlanObj: t("ndc:enterNewPlanTxt"),
|
24612
|
-
kpi: 0,
|
24613
|
-
ministry: "Please add the Ministry name",
|
24614
|
-
};
|
24615
|
-
if (!ndcDetail.subNdcDetails) {
|
24616
|
-
ndcDetail.subNdcDetails = [];
|
24617
|
-
}
|
24618
|
-
ndcDetail.subNdcDetails.push(newData);
|
24619
|
-
}
|
24620
|
-
ndcDetailsData[ndcDetailItemIndex] = ndcDetail;
|
24621
|
-
setNdcDetailsData(ndcDetailsData);
|
24622
|
-
setTableKey(function (key) { return key + 1; });
|
24623
|
-
}
|
24624
24661
|
var components = {
|
24625
24662
|
body: {
|
24626
24663
|
row: EditableRow,
|
@@ -24699,16 +24736,6 @@ var NdcDetailsComponent = function (props) {
|
|
24699
24736
|
React.createElement(Button, { type: "primary", onClick: onAddNewPeriod, htmlType: "submit", loading: loading }, t("ndc:submit")),
|
24700
24737
|
React.createElement(Button, { className: "back-btn", onClick: onCancelPeriod, loading: loading }, t("ndc:back"))))));
|
24701
24738
|
}
|
24702
|
-
function getSubNdcActionContent(record) {
|
24703
|
-
selectedNdcDetail.current = record;
|
24704
|
-
return (React.createElement(Table, { components: components, rowClassName: function () { return "editable-row"; }, bordered: true, dataSource: getSubNdcDetails(record.key), columns: columns, showHeader: false, pagination: false, footer: function () {
|
24705
|
-
return (React.createElement(Row, { justify: "center" },
|
24706
|
-
React.createElement(Button, { onClick: onAddNewSubNdcDetail, type: "default", style: {
|
24707
|
-
marginBottom: 16,
|
24708
|
-
width: "100%",
|
24709
|
-
} }, t("ndc:addSubNdcAction"))));
|
24710
|
-
} }));
|
24711
|
-
}
|
24712
24739
|
var onTabChange = function (key) {
|
24713
24740
|
setSelectedTab(key);
|
24714
24741
|
};
|
@@ -24720,17 +24747,7 @@ var NdcDetailsComponent = function (props) {
|
|
24720
24747
|
endDate: new Date("2020-03-25"),
|
24721
24748
|
nationalPlanObj: "Enhance value addition in key growth opportunities",
|
24722
24749
|
kpi: 25,
|
24723
|
-
ministry: "Ministry of Agriculture, Water and Forestry (MAWF)"
|
24724
|
-
subNdcDetails: [
|
24725
|
-
{
|
24726
|
-
key: 6,
|
24727
|
-
startDate: new Date("2019-03-25"),
|
24728
|
-
endDate: new Date("2020-03-25"),
|
24729
|
-
nationalPlanObj: "Enhance value addition in key growth opportunities sub details",
|
24730
|
-
kpi: 25,
|
24731
|
-
ministry: "Ministry of Agriculture, Water and Forestry (MAWF)",
|
24732
|
-
},
|
24733
|
-
],
|
24750
|
+
ministry: "Ministry of Agriculture, Water and Forestry (MAWF)"
|
24734
24751
|
},
|
24735
24752
|
{
|
24736
24753
|
key: 2,
|
@@ -24738,7 +24755,7 @@ var NdcDetailsComponent = function (props) {
|
|
24738
24755
|
endDate: new Date("2019-08-25"),
|
24739
24756
|
nationalPlanObj: "Strengthen the private sector to create 10,000 jobs",
|
24740
24757
|
kpi: 10500,
|
24741
|
-
ministry: "Ministry of Tourism (MoT)"
|
24758
|
+
ministry: "Ministry of Tourism (MoT)"
|
24742
24759
|
},
|
24743
24760
|
{
|
24744
24761
|
key: 3,
|
@@ -24746,7 +24763,7 @@ var NdcDetailsComponent = function (props) {
|
|
24746
24763
|
endDate: new Date("2022-03-25"),
|
24747
24764
|
nationalPlanObj: "Consolidate and increase the stock and quality of productive infrastructure by 50%",
|
24748
24765
|
kpi: 48,
|
24749
|
-
ministry: "Ministry of Education, Arts and Culture (MoE)"
|
24766
|
+
ministry: "Ministry of Education, Arts and Culture (MoE)"
|
24750
24767
|
},
|
24751
24768
|
{
|
24752
24769
|
key: 4,
|
@@ -24754,7 +24771,7 @@ var NdcDetailsComponent = function (props) {
|
|
24754
24771
|
endDate: new Date("2022-05-25"),
|
24755
24772
|
nationalPlanObj: "Enhance the productivity and social wellbeing of the population",
|
24756
24773
|
kpi: 20,
|
24757
|
-
ministry: "Ministry of Environment, Forestry and Tourism (MEFT)"
|
24774
|
+
ministry: "Ministry of Environment, Forestry and Tourism (MEFT)"
|
24758
24775
|
},
|
24759
24776
|
{
|
24760
24777
|
key: 5,
|
@@ -24762,7 +24779,7 @@ var NdcDetailsComponent = function (props) {
|
|
24762
24779
|
endDate: new Date("2023-03-25"),
|
24763
24780
|
nationalPlanObj: "Strengthen the role of the state in guiding and facilitating development",
|
24764
24781
|
kpi: 10,
|
24765
|
-
ministry: "Ministry of Tourism (MoT)"
|
24782
|
+
ministry: "Ministry of Tourism (MoT)"
|
24766
24783
|
},
|
24767
24784
|
];
|
24768
24785
|
var initialPeriods = [
|
@@ -24805,11 +24822,7 @@ var NdcDetailsComponent = function (props) {
|
|
24805
24822
|
React.createElement(Tabs, { centered: false, defaultActiveKey: "1", items: periodItems, activeKey: selectedTab, onChange: onTabChange })),
|
24806
24823
|
selectedTab !== "add_new" && (React.createElement("div", null,
|
24807
24824
|
React.createElement("div", null,
|
24808
|
-
React.createElement(Table, {
|
24809
|
-
expandedRowRender: function (record) { return getSubNdcActionContent(record); },
|
24810
|
-
indentSize: 0,
|
24811
|
-
defaultExpandedRowKeys: [selectedNdcDetail.current.key]
|
24812
|
-
}, footer: function () {
|
24825
|
+
React.createElement(Table, { components: components, rowClassName: function () { return "editable-row"; }, bordered: true, dataSource: getNdcDetailsForPeriod(), columns: columns, footer: function () {
|
24813
24826
|
return isAddNdcActionVisible() && (React.createElement(Row, { justify: "center" },
|
24814
24827
|
React.createElement(Button, { onClick: onAddNewNdcDetail, type: "default", style: {
|
24815
24828
|
marginBottom: 16,
|
@@ -25471,7 +25484,7 @@ var RejectDocumentationConfirmationModel = function (props) {
|
|
25471
25484
|
React.createElement(Button, { className: "mg-left-2", type: "primary", danger: true, htmlType: "submit", loading: loading, disabled: actionInfo.type === "reject" && comment === "" }, "REJECT")))));
|
25472
25485
|
};
|
25473
25486
|
|
25474
|
-
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
|
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";
|
25475
25488
|
styleInject(css_248z$2);
|
25476
25489
|
|
25477
25490
|
var NdcActionBody = function (props) {
|
@@ -25802,7 +25815,7 @@ var NdcActionBody = function (props) {
|
|
25802
25815
|
React.createElement(RejectDocumentationConfirmationModel, { actionInfo: actionInfo, onActionConfirmed: handleOk, onActionCanceled: handleCancel, openModal: openRejectDocConfirmationModal, errorMsg: "", loading: loading, translator: translator })));
|
25803
25816
|
};
|
25804
25817
|
|
25805
|
-
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";
|
25806
25819
|
styleInject(css_248z$1);
|
25807
25820
|
|
25808
25821
|
var ProgrammeDocuments = function (props) {
|