@undp/carbon-library 1.0.41-CARBON-329.11 → 1.0.41-CARBON-329.12
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/index.js +170 -64
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +170 -64
- 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";
|
@@ -19539,15 +19539,19 @@ var NdcActionViewComponent = function (props) {
|
|
19539
19539
|
var userInfoState = useUserContext().userInfoState;
|
19540
19540
|
var post = useConnection().post;
|
19541
19541
|
var state = useLocation().state;
|
19542
|
-
var _d = useState({})
|
19542
|
+
var _d = useState({}); _d[0]; var setNdcActionReportDetails = _d[1];
|
19543
19543
|
var _e = useState(false), isLoading = _e[0], setIsLoading = _e[1];
|
19544
|
-
var _f = useState(),
|
19545
|
-
var _g = useState()
|
19546
|
-
var _h = useState(
|
19547
|
-
var _j = useState(
|
19548
|
-
var _k = useState(
|
19549
|
-
var _l = useState(
|
19550
|
-
var _m = useState(
|
19544
|
+
var _f = useState(), monitoringReportData = _f[0], setMonitoringReportData = _f[1];
|
19545
|
+
var _g = useState(""), monitoringReportversion = _g[0], setMonitoringReportversion = _g[1];
|
19546
|
+
var _h = useState(), verificationReportData = _h[0], setVerificationReportData = _h[1];
|
19547
|
+
var _j = useState(""), verificationReportVersion = _j[0], setVerificationReportversion = _j[1];
|
19548
|
+
var _k = useState(), ndcActionDetails = _k[0], setNdcActionDetails = _k[1];
|
19549
|
+
var _l = useState(); _l[0]; var setCoBenifitsComponentnDetails = _l[1];
|
19550
|
+
var _m = useState(0), emissionsReductionExpected = _m[0], setEmissionsReductionExpected = _m[1];
|
19551
|
+
var _o = useState(0), emissionsReductionAchieved = _o[0], setEmissionsReductionAchieved = _o[1];
|
19552
|
+
var _p = useState([]), programmeOwnerId = _p[0], setProgrammeOwnerId = _p[1];
|
19553
|
+
var _q = useState(false), canUploadMonitorReport = _q[0], setCanUploadMonitorReport = _q[1];
|
19554
|
+
var _r = useState(false), monitoringReportAccepted = _r[0], setMonitoringReportAccepted = _r[1];
|
19551
19555
|
var getProgrammeById = function (programmeId) { return __awaiter(void 0, void 0, void 0, function () {
|
19552
19556
|
var response, error_1;
|
19553
19557
|
var _a, _b, _c;
|
@@ -19589,13 +19593,16 @@ var NdcActionViewComponent = function (props) {
|
|
19589
19593
|
}
|
19590
19594
|
});
|
19591
19595
|
}); };
|
19592
|
-
var getProjectReportActions = function (reportData) {
|
19596
|
+
var getProjectReportActions = function (reportData, reportVersion) {
|
19593
19597
|
return (React.createElement(Row, null,
|
19594
19598
|
React.createElement("div", { className: "icon" },
|
19595
19599
|
(reportData === null || reportData === void 0 ? void 0 : reportData.status) === DocumentStatus.ACCEPTED && (React.createElement(CheckCircleOutlined, { className: "common-progress-icon", style: { color: "#5DC380" } })),
|
19596
19600
|
(reportData === null || reportData === void 0 ? void 0 : reportData.status) === DocumentStatus.REJECTED && (React.createElement(ExclamationCircleOutlined, { className: "common-progress-icon", style: { color: "#FD6F70" } }))),
|
19597
19601
|
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 },
|
19598
|
-
React.createElement(BookOutlined, { className: "common-progress-icon margin-right-1", style: { color: "#3F3A47" } }))))
|
19602
|
+
React.createElement(BookOutlined, { className: "common-progress-icon margin-right-1", style: { color: "#3F3A47" } })))),
|
19603
|
+
(reportData === null || reportData === void 0 ? void 0 : reportData.txTime) && (React.createElement("div", { className: "time" },
|
19604
|
+
moment(parseInt(reportData === null || reportData === void 0 ? void 0 : reportData.txTime)).format("DD MMMM YYYY @ HH:mm"),
|
19605
|
+
" ~ " + reportVersion))));
|
19599
19606
|
};
|
19600
19607
|
var getProjectReports = function () { return __awaiter(void 0, void 0, void 0, function () {
|
19601
19608
|
var reportDetails, response, exception_1;
|
@@ -19643,12 +19650,24 @@ var NdcActionViewComponent = function (props) {
|
|
19643
19650
|
if ((item === null || item === void 0 ? void 0 : item.status) === DocumentStatus.ACCEPTED) {
|
19644
19651
|
setMonitoringReportAccepted(true);
|
19645
19652
|
}
|
19653
|
+
var versionfull = (item === null || item === void 0 ? void 0 : item.url).split("_")[(item === null || item === void 0 ? void 0 : item.url).split("_").length - 1];
|
19654
|
+
var version = versionfull ? versionfull.split(".")[0] : "1";
|
19655
|
+
var moniteringVersion = version.startsWith("V") ? version : "V1";
|
19646
19656
|
reportDetails[t("ndcAction:viewMoniteringReport")] =
|
19647
|
-
getProjectReportActions(item);
|
19657
|
+
getProjectReportActions(item, moniteringVersion);
|
19658
|
+
setMonitoringReportData(item);
|
19659
|
+
setMonitoringReportversion(moniteringVersion);
|
19648
19660
|
}
|
19649
19661
|
else if ((_b = item === null || item === void 0 ? void 0 : item.url) === null || _b === void 0 ? void 0 : _b.includes("VERIFICATION_REPORT")) {
|
19662
|
+
var versionfull = (item === null || item === void 0 ? void 0 : item.url).split("_")[(item === null || item === void 0 ? void 0 : item.url).split("_").length - 1];
|
19663
|
+
var version = versionfull ? versionfull.split(".")[0] : "1";
|
19664
|
+
var verificationVersion = version.startsWith("V")
|
19665
|
+
? version
|
19666
|
+
: "V1";
|
19650
19667
|
reportDetails[t("ndcAction:viewVerificationReport")] =
|
19651
|
-
getProjectReportActions(item);
|
19668
|
+
getProjectReportActions(item, verificationVersion);
|
19669
|
+
setVerificationReportData(item);
|
19670
|
+
setVerificationReportversion(verificationVersion);
|
19652
19671
|
}
|
19653
19672
|
});
|
19654
19673
|
}
|
@@ -19902,8 +19921,60 @@ var NdcActionViewComponent = function (props) {
|
|
19902
19921
|
React.createElement(Col, { lg: 8, md: 24 },
|
19903
19922
|
React.createElement(Skeleton, { loading: isLoading, active: true },
|
19904
19923
|
React.createElement(Card, { className: "card-container fix-height" },
|
19905
|
-
React.createElement("div",
|
19906
|
-
React.createElement(
|
19924
|
+
React.createElement("div", { className: "title" },
|
19925
|
+
React.createElement("span", { className: "title-icon" }, React.createElement(Icon.FileEarmarkText, null)),
|
19926
|
+
React.createElement("span", { className: "title-text" }, t("ndcAction:viewReportsTitle"))),
|
19927
|
+
React.createElement("div", { className: "ndc-action-report-body" },
|
19928
|
+
React.createElement("div", { className: "report-details" },
|
19929
|
+
React.createElement("div", { className: "report-type" },
|
19930
|
+
React.createElement("div", { className: "name-time-container" },
|
19931
|
+
React.createElement("div", { className: canUploadMonitorReport && monitoringReportAccepted
|
19932
|
+
? "name"
|
19933
|
+
: "empty" }, t("programme:monitoringReport")),
|
19934
|
+
(monitoringReportData === null || monitoringReportData === void 0 ? void 0 : monitoringReportData.txTime) && (React.createElement("div", { className: "time" },
|
19935
|
+
moment(parseInt(monitoringReportData === null || monitoringReportData === void 0 ? void 0 : monitoringReportData.txTime)).format("DD MMMM YYYY @ HH:mm"),
|
19936
|
+
" ~ " + monitoringReportversion))),
|
19937
|
+
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
|
19938
|
+
? t("programme:notAuthToUploadDoc")
|
19939
|
+
: uploadDocUserPermission(userInfoState, DocType.MONITORING_REPORT, programmeOwnerId)
|
19940
|
+
? !canUploadMonitorReport &&
|
19941
|
+
t("programme:programmeNotAuth")
|
19942
|
+
: t("programme:orgNotAuth"), overlayClassName: "custom-tooltip" },
|
19943
|
+
React.createElement(FileAddOutlined, null))))),
|
19944
|
+
(monitoringReportData === null || monitoringReportData === void 0 ? void 0 : monitoringReportData.url) && (React.createElement(Row, null,
|
19945
|
+
React.createElement("div", { className: "icon" },
|
19946
|
+
(monitoringReportData === null || monitoringReportData === void 0 ? void 0 : monitoringReportData.status) ===
|
19947
|
+
DocumentStatus.ACCEPTED && (React.createElement(CheckCircleOutlined, { className: "common-progress-icon", style: { color: "#5DC380" } })),
|
19948
|
+
(monitoringReportData === null || monitoringReportData === void 0 ? void 0 : monitoringReportData.status) ===
|
19949
|
+
DocumentStatus.REJECTED && (React.createElement(ExclamationCircleOutlined, { className: "common-progress-icon", style: { color: "#FD6F70" } }))),
|
19950
|
+
React.createElement("div", { className: "link mg-left-1" }, (monitoringReportData === null || monitoringReportData === void 0 ? void 0 : monitoringReportData.url) &&
|
19951
|
+
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 },
|
19952
|
+
React.createElement(BookOutlined, { className: "common-progress-icon margin-right-1", style: { color: "#3F3A47" } }))))))),
|
19953
|
+
React.createElement("div", { className: "report-details" },
|
19954
|
+
React.createElement("div", { className: "report-type" },
|
19955
|
+
React.createElement("div", { className: "name-time-container" },
|
19956
|
+
React.createElement("div", { className: canUploadMonitorReport && monitoringReportAccepted
|
19957
|
+
? "name"
|
19958
|
+
: "empty" }, t("programme:verificationReport")),
|
19959
|
+
(verificationReportData === null || verificationReportData === void 0 ? void 0 : verificationReportData.txTime) && (React.createElement("div", { className: "time" },
|
19960
|
+
moment(parseInt(verificationReportData === null || verificationReportData === void 0 ? void 0 : verificationReportData.txTime)).format("DD MMMM YYYY @ HH:mm"),
|
19961
|
+
" ~ " + verificationReportVersion))),
|
19962
|
+
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
|
19963
|
+
? t("programme:notAuthToUploadDoc")
|
19964
|
+
: uploadDocUserPermission(userInfoState, DocType.VERIFICATION_REPORT, programmeOwnerId)
|
19965
|
+
? !monitoringReportAccepted &&
|
19966
|
+
t("programme:monitoringRepNotApproved")
|
19967
|
+
: t("programme:notAuthToUploadDoc"), overlayClassName: "custom-tooltip" },
|
19968
|
+
React.createElement(FileAddOutlined, null))))),
|
19969
|
+
(verificationReportData === null || verificationReportData === void 0 ? void 0 : verificationReportData.url) && (React.createElement(Row, null,
|
19970
|
+
React.createElement("div", { className: "icon" },
|
19971
|
+
(verificationReportData === null || verificationReportData === void 0 ? void 0 : verificationReportData.status) ===
|
19972
|
+
DocumentStatus.ACCEPTED && (React.createElement(CheckCircleOutlined, { className: "common-progress-icon", style: { color: "#5DC380" } })),
|
19973
|
+
(verificationReportData === null || verificationReportData === void 0 ? void 0 : verificationReportData.status) ===
|
19974
|
+
DocumentStatus.REJECTED && (React.createElement(ExclamationCircleOutlined, { className: "common-progress-icon", style: { color: "#FD6F70" } }))),
|
19975
|
+
React.createElement("div", { className: "link mg-left-1" }, (verificationReportData === null || verificationReportData === void 0 ? void 0 : verificationReportData.url) &&
|
19976
|
+
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 },
|
19977
|
+
React.createElement(BookOutlined, { className: "common-progress-icon margin-right-1", style: { color: "#3F3A47" } })))))))))))),
|
19907
19978
|
((ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.action) === NdcActionTypes.Mitigation ||
|
19908
19979
|
(ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.action) === NdcActionTypes.CrossCutting) && (React.createElement(Row, null,
|
19909
19980
|
React.createElement(Col, { lg: 24, className: "gutter-row" },
|
@@ -24524,36 +24595,61 @@ var NdcDetailsComponent = function (props) {
|
|
24524
24595
|
var inRange = function (num, min, max) {
|
24525
24596
|
return num >= min && num <= max;
|
24526
24597
|
};
|
24527
|
-
|
24528
|
-
|
24529
|
-
|
24530
|
-
|
24531
|
-
|
24532
|
-
|
24533
|
-
|
24598
|
+
function onAddNewSubNdcDetail() {
|
24599
|
+
var range = selectedTab.split('-');
|
24600
|
+
var ndcDetail = ndcDetailsData.find(function (item) { return item.key === selectedNdcDetail.current.key; });
|
24601
|
+
var ndcDetailItemIndex = ndcDetailsData.findIndex(function (item) { return item.key === selectedNdcDetail.current.key; });
|
24602
|
+
if (ndcDetail) {
|
24603
|
+
addedNdcDetailId.current = addedNdcDetailId.current + 1;
|
24604
|
+
var newData = {
|
24605
|
+
key: addedNdcDetailId.current,
|
24606
|
+
startDate: new Date("".concat(Number(range[0]), "-01-24 23:12:00")),
|
24607
|
+
endDate: new Date("".concat(Number(range[0]), "-12-24 23:12:00")),
|
24608
|
+
ndcActionId: ndcDetail === null || ndcDetail === void 0 ? void 0 : ndcDetail.key,
|
24609
|
+
nationalPlanObj: '',
|
24610
|
+
kpi: '',
|
24611
|
+
ministry: '',
|
24612
|
+
};
|
24613
|
+
if (!ndcDetail.subNdcDetails) {
|
24614
|
+
ndcDetail.subNdcDetails = [];
|
24615
|
+
}
|
24616
|
+
ndcDetail.subNdcDetails.push(newData);
|
24534
24617
|
}
|
24535
|
-
|
24536
|
-
|
24537
|
-
|
24538
|
-
|
24539
|
-
|
24540
|
-
|
24541
|
-
|
24542
|
-
|
24543
|
-
|
24618
|
+
ndcDetailsData[ndcDetailItemIndex] = ndcDetail;
|
24619
|
+
setNdcDetailsData(ndcDetailsData);
|
24620
|
+
setTableKey(function (key) { return key + 1; });
|
24621
|
+
}
|
24622
|
+
var handleSave = function (row) {
|
24623
|
+
setNdcDetailsData(function (prevData) {
|
24624
|
+
var newData = JSON.parse(JSON.stringify(prevData));
|
24625
|
+
if (row.type === NdcActionType.main) {
|
24626
|
+
var index = newData.findIndex(function (item) { return row.key === item.key; });
|
24627
|
+
if (index !== -1) {
|
24628
|
+
newData[index] = __assign(__assign({}, newData[index]), row);
|
24629
|
+
}
|
24630
|
+
}
|
24631
|
+
else {
|
24632
|
+
var parentIndex = newData.findIndex(function (item) { return row.ndcActionId === item.key; });
|
24633
|
+
var parentItem = newData[parentIndex];
|
24634
|
+
if (parentItem) {
|
24635
|
+
if (parentItem.subNdcDetails) {
|
24636
|
+
var itemIndex = parentItem.subNdcDetails.findIndex(function (item) { return row.key === item.key; });
|
24637
|
+
if (itemIndex === -1) {
|
24638
|
+
parentItem.subNdcDetails.push(row);
|
24639
|
+
}
|
24640
|
+
else {
|
24641
|
+
parentItem.subNdcDetails[itemIndex] = __assign({}, row);
|
24642
|
+
}
|
24544
24643
|
}
|
24545
24644
|
else {
|
24546
|
-
parentItem.subNdcDetails
|
24645
|
+
parentItem.subNdcDetails = [row];
|
24547
24646
|
}
|
24548
24647
|
}
|
24549
|
-
|
24550
|
-
|
24551
|
-
}
|
24648
|
+
newData[parentIndex] = __assign({}, parentItem);
|
24649
|
+
setTableKey(function (key) { return key + 1; });
|
24552
24650
|
}
|
24553
|
-
newData
|
24554
|
-
|
24555
|
-
setTableKey(function (key) { return key + 1; });
|
24556
|
-
}
|
24651
|
+
return newData;
|
24652
|
+
});
|
24557
24653
|
};
|
24558
24654
|
var getNdcDetailsForPeriod = function () {
|
24559
24655
|
var range = selectedTab.split("-");
|
@@ -24568,8 +24664,18 @@ var NdcDetailsComponent = function (props) {
|
|
24568
24664
|
}
|
24569
24665
|
};
|
24570
24666
|
var getSubNdcDetails = function (key) {
|
24667
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
24571
24668
|
var ndcDetail = ndcDetailsData.find(function (item) { return item.key === key; });
|
24572
24669
|
if (ndcDetail) {
|
24670
|
+
if (((_b = ndcDetail === null || ndcDetail === void 0 ? void 0 : ndcDetail.subNdcDetails[((_a = ndcDetail === null || ndcDetail === void 0 ? void 0 : ndcDetail.subNdcDetails) === null || _a === void 0 ? void 0 : _a.length) - 1]) === null || _b === void 0 ? void 0 : _b.ministry.trim()) !== '' &&
|
24671
|
+
((_d = ndcDetail === null || ndcDetail === void 0 ? void 0 : ndcDetail.subNdcDetails[((_c = ndcDetail === null || ndcDetail === void 0 ? void 0 : ndcDetail.subNdcDetails) === null || _c === void 0 ? void 0 : _c.length) - 1]) === null || _d === void 0 ? void 0 : _d.ministry) &&
|
24672
|
+
((_f = ndcDetail === null || ndcDetail === void 0 ? void 0 : ndcDetail.subNdcDetails[((_e = ndcDetail === null || ndcDetail === void 0 ? void 0 : ndcDetail.subNdcDetails) === null || _e === void 0 ? void 0 : _e.length) - 1]) === null || _f === void 0 ? void 0 : _f.nationalPlanObj.trim()) !==
|
24673
|
+
'' &&
|
24674
|
+
((_h = ndcDetail === null || ndcDetail === void 0 ? void 0 : ndcDetail.subNdcDetails[((_g = ndcDetail === null || ndcDetail === void 0 ? void 0 : ndcDetail.subNdcDetails) === null || _g === void 0 ? void 0 : _g.length) - 1]) === null || _h === void 0 ? void 0 : _h.nationalPlanObj) &&
|
24675
|
+
String((_k = ndcDetail === null || ndcDetail === void 0 ? void 0 : ndcDetail.subNdcDetails[((_j = ndcDetail === null || ndcDetail === void 0 ? void 0 : ndcDetail.subNdcDetails) === null || _j === void 0 ? void 0 : _j.length) - 1]) === null || _k === void 0 ? void 0 : _k.kpi).trim() !== '' &&
|
24676
|
+
String((_m = ndcDetail === null || ndcDetail === void 0 ? void 0 : ndcDetail.subNdcDetails[((_l = ndcDetail === null || ndcDetail === void 0 ? void 0 : ndcDetail.subNdcDetails) === null || _l === void 0 ? void 0 : _l.length) - 1]) === null || _m === void 0 ? void 0 : _m.kpi)) {
|
24677
|
+
onAddNewSubNdcDetail();
|
24678
|
+
}
|
24573
24679
|
return ndcDetail.subNdcDetails;
|
24574
24680
|
}
|
24575
24681
|
else {
|
@@ -24585,7 +24691,7 @@ var NdcDetailsComponent = function (props) {
|
|
24585
24691
|
editable: true,
|
24586
24692
|
width: "50%",
|
24587
24693
|
render: function (_, record) { return (React.createElement(React.Fragment, null, record.nationalPlanObj ? (React.createElement(Space, { size: "middle" },
|
24588
|
-
React.createElement("span", null, record.nationalPlanObj))) : (React.createElement("input", { placeholder: "Please add the National Plan Objective", className: "ant-input",
|
24694
|
+
React.createElement("span", null, record.nationalPlanObj))) : (React.createElement("input", { placeholder: "Please add the National Plan Objective", className: "ant-input", type: "text" })))); },
|
24589
24695
|
},
|
24590
24696
|
{
|
24591
24697
|
title: t("ndc:ndcColumnsKpi"),
|
@@ -24595,7 +24701,7 @@ var NdcDetailsComponent = function (props) {
|
|
24595
24701
|
editable: true,
|
24596
24702
|
width: "10%",
|
24597
24703
|
render: function (_, record) { return (React.createElement(React.Fragment, null, record.nationalPlanObj ? (React.createElement(Space, { size: "middle" },
|
24598
|
-
React.createElement("span", null, record.kpi))) : (React.createElement("input", { placeholder: "Enter Kpi", className: "ant-input",
|
24704
|
+
React.createElement("span", null, record.kpi))) : (React.createElement("input", { placeholder: "Enter Kpi", className: "ant-input", type: "text" })))); },
|
24599
24705
|
},
|
24600
24706
|
{
|
24601
24707
|
title: "Ministry",
|
@@ -24605,7 +24711,7 @@ var NdcDetailsComponent = function (props) {
|
|
24605
24711
|
editable: true,
|
24606
24712
|
width: "40%",
|
24607
24713
|
render: function (_, record) { return (React.createElement(React.Fragment, null, record.nationalPlanObj ? (React.createElement(Space, { size: "middle" },
|
24608
|
-
React.createElement("span", null, record.ministry))) : (React.createElement("input", { placeholder: "Please add the Ministry name", className: "ant-input",
|
24714
|
+
React.createElement("span", null, record.ministry))) : (React.createElement("input", { placeholder: "Please add the Ministry name", className: "ant-input", type: "text" })))); },
|
24609
24715
|
},
|
24610
24716
|
];
|
24611
24717
|
var columns = defaultColumns.map(function (col) {
|
@@ -25715,7 +25821,7 @@ var RejectDocumentationConfirmationModel = function (props) {
|
|
25715
25821
|
React.createElement(Button, { className: "mg-left-2", type: "primary", danger: true, htmlType: "submit", loading: loading, disabled: actionInfo.type === "reject" && comment === "" }, "REJECT")))));
|
25716
25822
|
};
|
25717
25823
|
|
25718
|
-
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
|
25824
|
+
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";
|
25719
25825
|
styleInject(css_248z$2);
|
25720
25826
|
|
25721
25827
|
var NdcActionBody = function (props) {
|
@@ -26002,8 +26108,8 @@ var NdcActionBody = function (props) {
|
|
26002
26108
|
: t("programme:orgNotAuth"), overlayClassName: "custom-tooltip" },
|
26003
26109
|
React.createElement(FileAddOutlined, { className: "common-progress-icon", style: canUploadMonitorReport &&
|
26004
26110
|
uploadDocUserPermission(userInfoState, DocType.MONITORING_REPORT, programmeOwnerId, ministryLevelPermission)
|
26005
|
-
? { color: "#3F3A47", cursor: "pointer" }
|
26006
|
-
: { color: "#cacaca", cursor: "default" }, onClick: function () {
|
26111
|
+
? { color: "#3F3A47", cursor: "pointer", margin: "0px 0px 2.5px 0px" }
|
26112
|
+
: { color: "#cacaca", cursor: "default", margin: "0px 0px 2.5px 0px" }, onClick: function () {
|
26007
26113
|
if (canUploadMonitorReport &&
|
26008
26114
|
uploadDocUserPermission(userInfoState, DocType.MONITORING_REPORT, programmeOwnerId, ministryLevelPermission)) {
|
26009
26115
|
handleFileUploadMonitor();
|
@@ -26026,8 +26132,8 @@ var NdcActionBody = function (props) {
|
|
26026
26132
|
: t("programme:orgNotAuth"), overlayClassName: "custom-tooltip" },
|
26027
26133
|
React.createElement(FileAddOutlined, { className: "common-progress-icon", style: canUploadMonitorReport &&
|
26028
26134
|
uploadDocUserPermission(userInfoState, DocType.MONITORING_REPORT, programmeOwnerId, ministryLevelPermission)
|
26029
|
-
? { color: "#3F3A47", cursor: "pointer" }
|
26030
|
-
: { color: "#cacaca", cursor: "default" }, onClick: function () {
|
26135
|
+
? { color: "#3F3A47", cursor: "pointer", margin: "0px 0px 2.5px 0px" }
|
26136
|
+
: { color: "#cacaca", cursor: "default", margin: "0px 0px 2.5px 0px" }, onClick: function () {
|
26031
26137
|
if (canUploadMonitorReport &&
|
26032
26138
|
uploadDocUserPermission(userInfoState, DocType.MONITORING_REPORT, programmeOwnerId, ministryLevelPermission)) {
|
26033
26139
|
handleFileUploadMonitor();
|
@@ -26076,8 +26182,8 @@ var NdcActionBody = function (props) {
|
|
26076
26182
|
: t("programme:notAuthToUploadDoc"), overlayClassName: "custom-tooltip" },
|
26077
26183
|
React.createElement(FileAddOutlined, { className: "common-progress-icon", style: monitoringReportAccepted &&
|
26078
26184
|
uploadDocUserPermission(userInfoState, DocType.VERIFICATION_REPORT, programmeOwnerId, ministryLevelPermission)
|
26079
|
-
? { color: "#3F3A47", cursor: "pointer" }
|
26080
|
-
: { color: "#cacaca", cursor: "default" }, onClick: function () {
|
26185
|
+
? { color: "#3F3A47", cursor: "pointer", margin: "0px 0px 2.5px 0px" }
|
26186
|
+
: { color: "#cacaca", cursor: "default", margin: "0px 0px 2.5px 0px" }, onClick: function () {
|
26081
26187
|
if (monitoringReportAccepted &&
|
26082
26188
|
uploadDocUserPermission(userInfoState, DocType.VERIFICATION_REPORT, programmeOwnerId, ministryLevelPermission)) {
|
26083
26189
|
handleFileUploadVerification();
|
@@ -26100,8 +26206,8 @@ var NdcActionBody = function (props) {
|
|
26100
26206
|
: t("programme:notAuthToUploadDoc"), overlayClassName: "custom-tooltip" },
|
26101
26207
|
React.createElement(FileAddOutlined, { className: "common-progress-icon", style: monitoringReportAccepted &&
|
26102
26208
|
uploadDocUserPermission(userInfoState, DocType.VERIFICATION_REPORT, programmeOwnerId, ministryLevelPermission)
|
26103
|
-
? { color: "#3F3A47", cursor: "pointer" }
|
26104
|
-
: { color: "#cacaca", cursor: "default" }, onClick: function () {
|
26209
|
+
? { color: "#3F3A47", cursor: "pointer", margin: "0px 0px 2.5px 0px" }
|
26210
|
+
: { color: "#cacaca", cursor: "default", margin: "0px 0px 2.5px 0px" }, onClick: function () {
|
26105
26211
|
if (monitoringReportAccepted &&
|
26106
26212
|
uploadDocUserPermission(userInfoState, DocType.VERIFICATION_REPORT, programmeOwnerId, ministryLevelPermission)) {
|
26107
26213
|
handleFileUploadVerification();
|
@@ -26115,7 +26221,7 @@ var NdcActionBody = function (props) {
|
|
26115
26221
|
React.createElement(RejectDocumentationConfirmationModel, { actionInfo: actionInfo, onActionConfirmed: handleOk, onActionCanceled: handleCancel, openModal: openRejectDocConfirmationModal, errorMsg: "", loading: loading, translator: translator })));
|
26116
26222
|
};
|
26117
26223
|
|
26118
|
-
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";
|
26224
|
+
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";
|
26119
26225
|
styleInject(css_248z$1);
|
26120
26226
|
|
26121
26227
|
var ProgrammeDocuments = function (props) {
|
@@ -26389,8 +26495,8 @@ var ProgrammeDocuments = function (props) {
|
|
26389
26495
|
? t("programme:notAuthToUploadDoc")
|
26390
26496
|
: !uploadDocUserPermission(userInfoState, DocType.DESIGN_DOCUMENT, programmeOwnerId, ministryLevelPermission) && t("programme:orgNotAuth"), overlayClassName: "custom-tooltip" },
|
26391
26497
|
React.createElement(FileAddOutlined, { className: "common-progress-icon", style: uploadDocUserPermission(userInfoState, DocType.DESIGN_DOCUMENT, programmeOwnerId, ministryLevelPermission)
|
26392
|
-
? { color: "#3F3A47", cursor: "pointer" }
|
26393
|
-
: { color: "#cacaca", cursor: "default" }, onClick: function () {
|
26498
|
+
? { color: "#3F3A47", cursor: "pointer", margin: "0px 0px 2.5px 0px" }
|
26499
|
+
: { color: "#cacaca", cursor: "default", margin: "0px 0px 2.5px 0px" }, onClick: function () {
|
26394
26500
|
return uploadDocUserPermission(userInfoState, DocType.DESIGN_DOCUMENT, programmeOwnerId, ministryLevelPermission) && handleDesignDocFileUpload();
|
26395
26501
|
} })),
|
26396
26502
|
React.createElement("input", { type: "file", ref: fileInputRef, style: { display: "none" }, accept: ".xls, .xlsx, .ppt, .pptx, .csv, .doc, .docx, .pdf, .png, .jpg", onChange: function (e) {
|
@@ -26403,8 +26509,8 @@ var ProgrammeDocuments = function (props) {
|
|
26403
26509
|
? t("programme:notAuthToUploadDoc")
|
26404
26510
|
: !uploadDocUserPermission(userInfoState, DocType.DESIGN_DOCUMENT, programmeOwnerId, ministryLevelPermission) && t("programme:orgNotAuth"), overlayClassName: "custom-tooltip" },
|
26405
26511
|
React.createElement(FileAddOutlined, { className: "common-progress-icon", style: uploadDocUserPermission(userInfoState, DocType.DESIGN_DOCUMENT, programmeOwnerId, ministryLevelPermission)
|
26406
|
-
? { color: "#3F3A47", cursor: "pointer" }
|
26407
|
-
: { color: "#cacaca", cursor: "default" }, onClick: function () {
|
26512
|
+
? { color: "#3F3A47", cursor: "pointer", margin: "0px 0px 2.5px 0px" }
|
26513
|
+
: { color: "#cacaca", cursor: "default", margin: "0px 0px 2.5px 0px" }, onClick: function () {
|
26408
26514
|
return uploadDocUserPermission(userInfoState, DocType.DESIGN_DOCUMENT, programmeOwnerId, ministryLevelPermission) && handleDesignDocFileUpload();
|
26409
26515
|
} })),
|
26410
26516
|
React.createElement("input", { type: "file", ref: fileInputRef, style: { display: "none" }, accept: ".xls, .xlsx, .ppt, .pptx, .csv, .doc, .docx, .pdf, .png, .jpg", onChange: function (e) {
|
@@ -26457,8 +26563,8 @@ var ProgrammeDocuments = function (props) {
|
|
26457
26563
|
: !uploadDocUserPermission(userInfoState, DocType.METHODOLOGY_DOCUMENT, programmeOwnerId, ministryLevelPermission) && t("programme:orgNotAuth"), overlayClassName: "custom-tooltip" },
|
26458
26564
|
React.createElement(FileAddOutlined, { className: "common-progress-icon", style: designDocStatus === DocumentStatus.ACCEPTED &&
|
26459
26565
|
uploadDocUserPermission(userInfoState, DocType.METHODOLOGY_DOCUMENT, programmeOwnerId, ministryLevelPermission)
|
26460
|
-
? { color: "#3F3A47", cursor: "pointer" }
|
26461
|
-
: { color: "#cacaca" }, onClick: function () {
|
26566
|
+
? { color: "#3F3A47", cursor: "pointer", margin: "0px 0px 2.5px 0px" }
|
26567
|
+
: { color: "#cacaca", margin: "0px 0px 2.5px 0px" }, onClick: function () {
|
26462
26568
|
return designDocStatus === DocumentStatus.ACCEPTED &&
|
26463
26569
|
uploadDocUserPermission(userInfoState, DocType.METHODOLOGY_DOCUMENT, programmeOwnerId, ministryLevelPermission) &&
|
26464
26570
|
handleMethodologyFileUpload();
|
@@ -26477,8 +26583,8 @@ var ProgrammeDocuments = function (props) {
|
|
26477
26583
|
: t("programme:orgNotAuth"), overlayClassName: "custom-tooltip" },
|
26478
26584
|
React.createElement(FileAddOutlined, { className: "common-progress-icon", style: designDocStatus === DocumentStatus.ACCEPTED &&
|
26479
26585
|
uploadDocUserPermission(userInfoState, DocType.METHODOLOGY_DOCUMENT, programmeOwnerId, ministryLevelPermission)
|
26480
|
-
? { color: "#3F3A47", cursor: "pointer" }
|
26481
|
-
: { color: "#cacaca", cursor: "default" }, onClick: function () {
|
26586
|
+
? { color: "#3F3A47", cursor: "pointer", margin: "0px 0px 2.5px 0px" }
|
26587
|
+
: { color: "#cacaca", cursor: "default", margin: "0px 0px 2.5px 0px" }, onClick: function () {
|
26482
26588
|
return designDocStatus === DocumentStatus.ACCEPTED &&
|
26483
26589
|
uploadDocUserPermission(userInfoState, DocType.METHODOLOGY_DOCUMENT, programmeOwnerId, ministryLevelPermission) &&
|
26484
26590
|
handleMethodologyFileUpload();
|
@@ -26532,8 +26638,8 @@ var ProgrammeDocuments = function (props) {
|
|
26532
26638
|
React.createElement(Tooltip, { arrowPointAtCenter: true, placement: "top", trigger: "hover", title: impactAssessmentToolTipTitle, overlayClassName: "custom-tooltip" },
|
26533
26639
|
React.createElement(FileAddOutlined, { className: "common-progress-icon", style: uploadImpactAssessmentDocUserPermission &&
|
26534
26640
|
!isProjectRejected
|
26535
|
-
? { color: "#3F3A47", cursor: "pointer" }
|
26536
|
-
: { color: "#cacaca", cursor: "default" }, onClick: function () {
|
26641
|
+
? { color: "#3F3A47", cursor: "pointer", margin: "0px 0px 2.5px 0px" }
|
26642
|
+
: { color: "#cacaca", cursor: "default", margin: "0px 0px 2.5px 0px" }, onClick: function () {
|
26537
26643
|
return uploadImpactAssessmentDocUserPermission &&
|
26538
26644
|
!isProjectRejected &&
|
26539
26645
|
handleImpactAssessmentFileUpload();
|
@@ -26546,8 +26652,8 @@ var ProgrammeDocuments = function (props) {
|
|
26546
26652
|
React.createElement(Tooltip, { arrowPointAtCenter: true, placement: "top", trigger: "hover", title: impactAssessmentToolTipTitle, overlayClassName: "custom-tooltip" },
|
26547
26653
|
React.createElement(FileAddOutlined, { className: "common-progress-icon", style: uploadImpactAssessmentDocUserPermission &&
|
26548
26654
|
!isProjectRejected
|
26549
|
-
? { color: "#3F3A47", cursor: "pointer" }
|
26550
|
-
: { color: "#cacaca", cursor: "default" }, onClick: function () {
|
26655
|
+
? { color: "#3F3A47", cursor: "pointer", margin: "0px 0px 2.5px 0px" }
|
26656
|
+
: { color: "#cacaca", cursor: "default", margin: "0px 0px 2.5px 0px" }, onClick: function () {
|
26551
26657
|
return uploadImpactAssessmentDocUserPermission &&
|
26552
26658
|
!isProjectRejected &&
|
26553
26659
|
handleImpactAssessmentFileUpload();
|