@undp/carbon-library 1.0.160 → 1.0.163
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/index.js +223 -142
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/Components/Common/AntComponents/antTableComponents.d.ts +14 -13
- package/dist/esm/index.js +225 -144
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/Components/Common/AntComponents/antTableComponents.d.ts +14 -13
- 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";
|
@@ -19559,15 +19559,19 @@ var NdcActionViewComponent = function (props) {
|
|
19559
19559
|
var userInfoState = useUserContext().userInfoState;
|
19560
19560
|
var post = useConnection().post;
|
19561
19561
|
var state = useLocation().state;
|
19562
|
-
var _d = React.useState({})
|
19562
|
+
var _d = React.useState({}); _d[0]; var setNdcActionReportDetails = _d[1];
|
19563
19563
|
var _e = React.useState(false), isLoading = _e[0], setIsLoading = _e[1];
|
19564
|
-
var _f = React.useState(),
|
19565
|
-
var _g = React.useState()
|
19566
|
-
var _h = React.useState(
|
19567
|
-
var _j = React.useState(
|
19568
|
-
var _k = React.useState(
|
19569
|
-
var _l = React.useState(
|
19570
|
-
var _m = React.useState(
|
19564
|
+
var _f = React.useState(), monitoringReportData = _f[0], setMonitoringReportData = _f[1];
|
19565
|
+
var _g = React.useState(""), monitoringReportversion = _g[0], setMonitoringReportversion = _g[1];
|
19566
|
+
var _h = React.useState(), verificationReportData = _h[0], setVerificationReportData = _h[1];
|
19567
|
+
var _j = React.useState(""), verificationReportVersion = _j[0], setVerificationReportversion = _j[1];
|
19568
|
+
var _k = React.useState(), ndcActionDetails = _k[0], setNdcActionDetails = _k[1];
|
19569
|
+
var _l = React.useState(); _l[0]; var setCoBenifitsComponentnDetails = _l[1];
|
19570
|
+
var _m = React.useState(0), emissionsReductionExpected = _m[0], setEmissionsReductionExpected = _m[1];
|
19571
|
+
var _o = React.useState(0), emissionsReductionAchieved = _o[0], setEmissionsReductionAchieved = _o[1];
|
19572
|
+
var _p = React.useState([]), programmeOwnerId = _p[0], setProgrammeOwnerId = _p[1];
|
19573
|
+
var _q = React.useState(false), canUploadMonitorReport = _q[0], setCanUploadMonitorReport = _q[1];
|
19574
|
+
var _r = React.useState(false), monitoringReportAccepted = _r[0], setMonitoringReportAccepted = _r[1];
|
19571
19575
|
var getProgrammeById = function (programmeId) { return __awaiter(void 0, void 0, void 0, function () {
|
19572
19576
|
var response, error_1;
|
19573
19577
|
var _a, _b, _c;
|
@@ -19609,13 +19613,16 @@ var NdcActionViewComponent = function (props) {
|
|
19609
19613
|
}
|
19610
19614
|
});
|
19611
19615
|
}); };
|
19612
|
-
var getProjectReportActions = function (reportData) {
|
19616
|
+
var getProjectReportActions = function (reportData, reportVersion) {
|
19613
19617
|
return (React.createElement(antd.Row, null,
|
19614
19618
|
React.createElement("div", { className: "icon" },
|
19615
19619
|
(reportData === null || reportData === void 0 ? void 0 : reportData.status) === exports.DocumentStatus.ACCEPTED && (React.createElement(icons.CheckCircleOutlined, { className: "common-progress-icon", style: { color: "#5DC380" } })),
|
19616
19620
|
(reportData === null || reportData === void 0 ? void 0 : reportData.status) === exports.DocumentStatus.REJECTED && (React.createElement(icons.ExclamationCircleOutlined, { className: "common-progress-icon", style: { color: "#FD6F70" } }))),
|
19617
19621
|
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 },
|
19618
|
-
React.createElement(icons.BookOutlined, { className: "common-progress-icon margin-right-1", style: { color: "#3F3A47" } }))))
|
19622
|
+
React.createElement(icons.BookOutlined, { className: "common-progress-icon margin-right-1", style: { color: "#3F3A47" } })))),
|
19623
|
+
(reportData === null || reportData === void 0 ? void 0 : reportData.txTime) && (React.createElement("div", { className: "time" },
|
19624
|
+
moment(parseInt(reportData === null || reportData === void 0 ? void 0 : reportData.txTime)).format("DD MMMM YYYY @ HH:mm"),
|
19625
|
+
" ~ " + reportVersion))));
|
19619
19626
|
};
|
19620
19627
|
var getProjectReports = function () { return __awaiter(void 0, void 0, void 0, function () {
|
19621
19628
|
var reportDetails, response, exception_1;
|
@@ -19663,12 +19670,24 @@ var NdcActionViewComponent = function (props) {
|
|
19663
19670
|
if ((item === null || item === void 0 ? void 0 : item.status) === exports.DocumentStatus.ACCEPTED) {
|
19664
19671
|
setMonitoringReportAccepted(true);
|
19665
19672
|
}
|
19673
|
+
var versionfull = (item === null || item === void 0 ? void 0 : item.url).split("_")[(item === null || item === void 0 ? void 0 : item.url).split("_").length - 1];
|
19674
|
+
var version = versionfull ? versionfull.split(".")[0] : "1";
|
19675
|
+
var moniteringVersion = version.startsWith("V") ? version : "V1";
|
19666
19676
|
reportDetails[t("ndcAction:viewMoniteringReport")] =
|
19667
|
-
getProjectReportActions(item);
|
19677
|
+
getProjectReportActions(item, moniteringVersion);
|
19678
|
+
setMonitoringReportData(item);
|
19679
|
+
setMonitoringReportversion(moniteringVersion);
|
19668
19680
|
}
|
19669
19681
|
else if ((_b = item === null || item === void 0 ? void 0 : item.url) === null || _b === void 0 ? void 0 : _b.includes("VERIFICATION_REPORT")) {
|
19682
|
+
var versionfull = (item === null || item === void 0 ? void 0 : item.url).split("_")[(item === null || item === void 0 ? void 0 : item.url).split("_").length - 1];
|
19683
|
+
var version = versionfull ? versionfull.split(".")[0] : "1";
|
19684
|
+
var verificationVersion = version.startsWith("V")
|
19685
|
+
? version
|
19686
|
+
: "V1";
|
19670
19687
|
reportDetails[t("ndcAction:viewVerificationReport")] =
|
19671
|
-
getProjectReportActions(item);
|
19688
|
+
getProjectReportActions(item, verificationVersion);
|
19689
|
+
setVerificationReportData(item);
|
19690
|
+
setVerificationReportversion(verificationVersion);
|
19672
19691
|
}
|
19673
19692
|
});
|
19674
19693
|
}
|
@@ -19922,8 +19941,60 @@ var NdcActionViewComponent = function (props) {
|
|
19922
19941
|
React.createElement(antd.Col, { lg: 8, md: 24 },
|
19923
19942
|
React.createElement(antd.Skeleton, { loading: isLoading, active: true },
|
19924
19943
|
React.createElement(antd.Card, { className: "card-container fix-height" },
|
19925
|
-
React.createElement("div",
|
19926
|
-
React.createElement(
|
19944
|
+
React.createElement("div", { className: "title" },
|
19945
|
+
React.createElement("span", { className: "title-icon" }, React.createElement(Icon__namespace.FileEarmarkText, null)),
|
19946
|
+
React.createElement("span", { className: "title-text" }, t("ndcAction:viewReportsTitle"))),
|
19947
|
+
React.createElement("div", { className: "ndc-action-report-body" },
|
19948
|
+
React.createElement("div", { className: "report-details" },
|
19949
|
+
React.createElement("div", { className: "report-type" },
|
19950
|
+
React.createElement("div", { className: "name-time-container" },
|
19951
|
+
React.createElement("div", { className: canUploadMonitorReport && monitoringReportAccepted
|
19952
|
+
? "name"
|
19953
|
+
: "empty" }, t("programme:monitoringReport")),
|
19954
|
+
(monitoringReportData === null || monitoringReportData === void 0 ? void 0 : monitoringReportData.txTime) && (React.createElement("div", { className: "time" },
|
19955
|
+
moment(parseInt(monitoringReportData === null || monitoringReportData === void 0 ? void 0 : monitoringReportData.txTime)).format("DD MMMM YYYY @ HH:mm"),
|
19956
|
+
" ~ " + monitoringReportversion))),
|
19957
|
+
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
|
19958
|
+
? t("programme:notAuthToUploadDoc")
|
19959
|
+
: uploadDocUserPermission(userInfoState, exports.DocType.MONITORING_REPORT, programmeOwnerId)
|
19960
|
+
? !canUploadMonitorReport &&
|
19961
|
+
t("programme:programmeNotAuth")
|
19962
|
+
: t("programme:orgNotAuth"), overlayClassName: "custom-tooltip" },
|
19963
|
+
React.createElement(icons.FileAddOutlined, null))))),
|
19964
|
+
(monitoringReportData === null || monitoringReportData === void 0 ? void 0 : monitoringReportData.url) && (React.createElement(antd.Row, null,
|
19965
|
+
React.createElement("div", { className: "icon" },
|
19966
|
+
(monitoringReportData === null || monitoringReportData === void 0 ? void 0 : monitoringReportData.status) ===
|
19967
|
+
exports.DocumentStatus.ACCEPTED && (React.createElement(icons.CheckCircleOutlined, { className: "common-progress-icon", style: { color: "#5DC380" } })),
|
19968
|
+
(monitoringReportData === null || monitoringReportData === void 0 ? void 0 : monitoringReportData.status) ===
|
19969
|
+
exports.DocumentStatus.REJECTED && (React.createElement(icons.ExclamationCircleOutlined, { className: "common-progress-icon", style: { color: "#FD6F70" } }))),
|
19970
|
+
React.createElement("div", { className: "link mg-left-1" }, (monitoringReportData === null || monitoringReportData === void 0 ? void 0 : monitoringReportData.url) &&
|
19971
|
+
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 },
|
19972
|
+
React.createElement(icons.BookOutlined, { className: "common-progress-icon margin-right-1", style: { color: "#3F3A47" } }))))))),
|
19973
|
+
React.createElement("div", { className: "report-details" },
|
19974
|
+
React.createElement("div", { className: "report-type" },
|
19975
|
+
React.createElement("div", { className: "name-time-container" },
|
19976
|
+
React.createElement("div", { className: canUploadMonitorReport && monitoringReportAccepted
|
19977
|
+
? "name"
|
19978
|
+
: "empty" }, t("programme:verificationReport")),
|
19979
|
+
(verificationReportData === null || verificationReportData === void 0 ? void 0 : verificationReportData.txTime) && (React.createElement("div", { className: "time" },
|
19980
|
+
moment(parseInt(verificationReportData === null || verificationReportData === void 0 ? void 0 : verificationReportData.txTime)).format("DD MMMM YYYY @ HH:mm"),
|
19981
|
+
" ~ " + verificationReportVersion))),
|
19982
|
+
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
|
19983
|
+
? t("programme:notAuthToUploadDoc")
|
19984
|
+
: uploadDocUserPermission(userInfoState, exports.DocType.VERIFICATION_REPORT, programmeOwnerId)
|
19985
|
+
? !monitoringReportAccepted &&
|
19986
|
+
t("programme:monitoringRepNotApproved")
|
19987
|
+
: t("programme:notAuthToUploadDoc"), overlayClassName: "custom-tooltip" },
|
19988
|
+
React.createElement(icons.FileAddOutlined, null))))),
|
19989
|
+
(verificationReportData === null || verificationReportData === void 0 ? void 0 : verificationReportData.url) && (React.createElement(antd.Row, null,
|
19990
|
+
React.createElement("div", { className: "icon" },
|
19991
|
+
(verificationReportData === null || verificationReportData === void 0 ? void 0 : verificationReportData.status) ===
|
19992
|
+
exports.DocumentStatus.ACCEPTED && (React.createElement(icons.CheckCircleOutlined, { className: "common-progress-icon", style: { color: "#5DC380" } })),
|
19993
|
+
(verificationReportData === null || verificationReportData === void 0 ? void 0 : verificationReportData.status) ===
|
19994
|
+
exports.DocumentStatus.REJECTED && (React.createElement(icons.ExclamationCircleOutlined, { className: "common-progress-icon", style: { color: "#FD6F70" } }))),
|
19995
|
+
React.createElement("div", { className: "link mg-left-1" }, (verificationReportData === null || verificationReportData === void 0 ? void 0 : verificationReportData.url) &&
|
19996
|
+
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 },
|
19997
|
+
React.createElement(icons.BookOutlined, { className: "common-progress-icon margin-right-1", style: { color: "#3F3A47" } })))))))))))),
|
19927
19998
|
((ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.action) === exports.NdcActionTypes.Mitigation ||
|
19928
19999
|
(ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.action) === exports.NdcActionTypes.CrossCutting) && (React.createElement(antd.Row, null,
|
19929
20000
|
React.createElement(antd.Col, { lg: 24, className: "gutter-row" },
|
@@ -24455,16 +24526,60 @@ var RegistryDashboardComponent = function (props) {
|
|
24455
24526
|
lastUpdateTransferLocations))))))))) : ("")));
|
24456
24527
|
};
|
24457
24528
|
|
24458
|
-
React.createContext(null);
|
24529
|
+
var EditableContext = React.createContext(null);
|
24530
|
+
var EditableRow = function (_a) {
|
24531
|
+
_a.index; var props = __rest(_a, ["index"]);
|
24532
|
+
var form = antd.Form.useForm()[0];
|
24533
|
+
return (React.createElement(antd.Form, { form: form, component: false },
|
24534
|
+
React.createElement(EditableContext.Provider, { value: form },
|
24535
|
+
React.createElement("tr", __assign({}, props)))));
|
24536
|
+
};
|
24459
24537
|
var EditableCell = function (_a) {
|
24460
|
-
var
|
24461
|
-
var
|
24462
|
-
|
24463
|
-
|
24464
|
-
|
24465
|
-
|
24466
|
-
|
24467
|
-
|
24538
|
+
var title = _a.title, editable = _a.editable, children = _a.children, dataIndex = _a.dataIndex, record = _a.record, handleSave = _a.handleSave, restProps = __rest(_a, ["title", "editable", "children", "dataIndex", "record", "handleSave"]);
|
24539
|
+
var _b = React.useState(false), editing = _b[0], setEditing = _b[1];
|
24540
|
+
var inputRef = React.useRef(null);
|
24541
|
+
var form = React.useContext(EditableContext);
|
24542
|
+
React.useEffect(function () {
|
24543
|
+
if (editing) {
|
24544
|
+
inputRef.current.focus();
|
24545
|
+
}
|
24546
|
+
}, [editing]);
|
24547
|
+
var toggleEdit = function () {
|
24548
|
+
var _a;
|
24549
|
+
setEditing(!editing);
|
24550
|
+
form.setFieldsValue((_a = {}, _a[dataIndex] = record[dataIndex], _a));
|
24551
|
+
};
|
24552
|
+
var save = function () { return __awaiter(void 0, void 0, void 0, function () {
|
24553
|
+
var values, errInfo_1;
|
24554
|
+
return __generator(this, function (_a) {
|
24555
|
+
switch (_a.label) {
|
24556
|
+
case 0:
|
24557
|
+
_a.trys.push([0, 2, , 3]);
|
24558
|
+
return [4 /*yield*/, form.validateFields()];
|
24559
|
+
case 1:
|
24560
|
+
values = _a.sent();
|
24561
|
+
toggleEdit();
|
24562
|
+
handleSave(__assign(__assign({}, record), values));
|
24563
|
+
return [3 /*break*/, 3];
|
24564
|
+
case 2:
|
24565
|
+
errInfo_1 = _a.sent();
|
24566
|
+
console.log("Save failed:", errInfo_1);
|
24567
|
+
return [3 /*break*/, 3];
|
24568
|
+
case 3: return [2 /*return*/];
|
24569
|
+
}
|
24570
|
+
});
|
24571
|
+
}); };
|
24572
|
+
var childNode = children;
|
24573
|
+
if (editable) {
|
24574
|
+
childNode = editing ? (React.createElement(antd.Form.Item, { style: { margin: 0 }, name: dataIndex, rules: [
|
24575
|
+
{
|
24576
|
+
required: true,
|
24577
|
+
message: "".concat(title, " is required."),
|
24578
|
+
},
|
24579
|
+
] },
|
24580
|
+
React.createElement(antd.Input, { ref: inputRef, onPressEnter: save, onBlur: save }))) : (React.createElement("div", { className: "editable-cell-value-wrap", style: { paddingRight: 24, minWidth: "100px", minHeight: "20px" }, onClick: toggleEdit }, children));
|
24581
|
+
}
|
24582
|
+
return React.createElement("td", __assign({}, restProps), childNode);
|
24468
24583
|
};
|
24469
24584
|
|
24470
24585
|
var css_248z$4 = ".ndc-steps-actions {\n display: flex;\n flex-direction: row-reverse;\n margin-right: 1rem;\n justify-content: center; }\n .ndc-steps-actions .action-btn {\n border: 1px solid #16b1ff;\n color: #16b1ff;\n margin-right: 1rem; }\n .ndc-steps-actions .back-btn {\n border: 1px solid rgba(140, 140, 140, 0.7);\n color: rgba(140, 140, 140, 0.7);\n margin-right: 1rem; }\n .ndc-steps-actions .mg-left-1 {\n margin-left: 1rem; }\n";
|
@@ -24487,17 +24602,7 @@ var NdcDetailsComponent = function (props) {
|
|
24487
24602
|
var addedNdcDetailId = React.useRef(0);
|
24488
24603
|
var selectedNdcDetail = React.useRef({});
|
24489
24604
|
var _e = React.useState(0), tableKey = _e[0], setTableKey = _e[1];
|
24490
|
-
var form = antd.Form.useForm()[0];
|
24491
|
-
var _f = React.useState(""), editingKey = _f[0], setEditingKey = _f[1];
|
24492
24605
|
var userInfoState = useUserContext().userInfoState;
|
24493
|
-
var isEditing = function (record) { return record.key === editingKey; };
|
24494
|
-
var onEditRow = function (record) {
|
24495
|
-
form.setFieldsValue(__assign({ nationalPlanObj: "", kpi: "", ministry: "" }, record));
|
24496
|
-
setEditingKey(record.key);
|
24497
|
-
};
|
24498
|
-
var onEditCancel = function () {
|
24499
|
-
setEditingKey("");
|
24500
|
-
};
|
24501
24606
|
var isAddRangeVisible = function () {
|
24502
24607
|
return (((userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) === exports.CompanyRole.MINISTRY ||
|
24503
24608
|
(userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) === exports.CompanyRole.GOVERNMENT) &&
|
@@ -24510,63 +24615,37 @@ var NdcDetailsComponent = function (props) {
|
|
24510
24615
|
var inRange = function (num, min, max) {
|
24511
24616
|
return num >= min && num <= max;
|
24512
24617
|
};
|
24513
|
-
var
|
24514
|
-
|
24515
|
-
|
24516
|
-
|
24517
|
-
|
24518
|
-
|
24519
|
-
|
24520
|
-
|
24521
|
-
|
24522
|
-
|
24523
|
-
|
24524
|
-
|
24525
|
-
|
24526
|
-
|
24527
|
-
|
24528
|
-
|
24529
|
-
|
24530
|
-
parentIndex = updatedNdcDetails.findIndex(function (item) { return record.ndcActionId === item.key; });
|
24531
|
-
parentItem = updatedNdcDetails[parentIndex];
|
24532
|
-
if (parentItem) {
|
24533
|
-
if (parentItem.subNdcDetails) {
|
24534
|
-
itemIndex = parentItem.subNdcDetails.findIndex(function (item) { return record.key === item.key; });
|
24535
|
-
if (itemIndex !== -1) {
|
24536
|
-
parentItem.subNdcDetails.splice(itemIndex, 1, __assign(__assign({}, record), editedData));
|
24537
|
-
}
|
24538
|
-
if (itemIndex + 1 === parentItem.subNdcDetails.length) {
|
24539
|
-
parentItem.subNdcDetails.push({
|
24540
|
-
key: ++addedNdcDetailId.current,
|
24541
|
-
ndcActionId: parentItem.key,
|
24542
|
-
type: NdcActionType.sub,
|
24543
|
-
startDate: new Date("2019-03-25"),
|
24544
|
-
endDate: new Date("2020-03-25"),
|
24545
|
-
nationalPlanObj: "",
|
24546
|
-
kpi: "",
|
24547
|
-
ministry: "",
|
24548
|
-
});
|
24549
|
-
}
|
24550
|
-
}
|
24551
|
-
updatedNdcDetails.splice(parentIndex, 1, __assign({}, parentItem));
|
24552
|
-
setNdcDetailsData(updatedNdcDetails);
|
24553
|
-
}
|
24554
|
-
}
|
24555
|
-
setEditingKey("");
|
24556
|
-
setTableKey(function (key) { return key + 1; });
|
24618
|
+
var handleSave = function (row) {
|
24619
|
+
if (row.type === NdcActionType.main) {
|
24620
|
+
var newData = __spreadArray([], ndcDetailsData, true);
|
24621
|
+
var index = newData.findIndex(function (item) { return row.key === item.key; });
|
24622
|
+
var item = newData[index];
|
24623
|
+
newData.splice(index, 1, __assign(__assign({}, item), row));
|
24624
|
+
setNdcDetailsData(newData);
|
24625
|
+
}
|
24626
|
+
else {
|
24627
|
+
var newData = __spreadArray([], ndcDetailsData, true);
|
24628
|
+
var parentIndex = newData.findIndex(function (item) { return row.ndcActionId === item.key; });
|
24629
|
+
var parentItem = newData[parentIndex];
|
24630
|
+
if (parentItem) {
|
24631
|
+
if (parentItem.subNdcDetails) {
|
24632
|
+
var itemIndex = parentItem.subNdcDetails.findIndex(function (item) { return row.key === item.key; });
|
24633
|
+
if (itemIndex === -1) {
|
24634
|
+
parentItem.subNdcDetails.push(row);
|
24557
24635
|
}
|
24558
24636
|
else {
|
24559
|
-
|
24637
|
+
parentItem.subNdcDetails.splice(itemIndex, 1, __assign({}, row));
|
24560
24638
|
}
|
24561
|
-
|
24562
|
-
|
24563
|
-
|
24564
|
-
|
24565
|
-
return [3 /*break*/, 3];
|
24566
|
-
case 3: return [2 /*return*/];
|
24639
|
+
}
|
24640
|
+
else {
|
24641
|
+
parentItem.subNdcDetails = [row];
|
24642
|
+
}
|
24567
24643
|
}
|
24568
|
-
|
24569
|
-
|
24644
|
+
newData.splice(parentIndex, 1, __assign({}, parentItem));
|
24645
|
+
setNdcDetailsData(newData);
|
24646
|
+
setTableKey(function (key) { return key + 1; });
|
24647
|
+
}
|
24648
|
+
};
|
24570
24649
|
var getNdcDetailsForPeriod = function () {
|
24571
24650
|
var range = selectedTab.split("-");
|
24572
24651
|
if (range.length > 1) {
|
@@ -24615,27 +24694,10 @@ var NdcDetailsComponent = function (props) {
|
|
24615
24694
|
key: "ministry",
|
24616
24695
|
align: "left",
|
24617
24696
|
editable: true,
|
24618
|
-
width: "
|
24697
|
+
width: "40%",
|
24619
24698
|
render: function (_, record) { return (React.createElement(React.Fragment, null, record.nationalPlanObj ? (React.createElement(antd.Space, { size: "middle" },
|
24620
24699
|
React.createElement("span", null, record.ministry))) : (React.createElement("input", { placeholder: "Please add the Ministry name", className: "ant-input", disabled: true, type: "text" })))); },
|
24621
24700
|
},
|
24622
|
-
{
|
24623
|
-
title: "Action",
|
24624
|
-
dataIndex: "operation",
|
24625
|
-
width: "10%",
|
24626
|
-
render: function (_, record) {
|
24627
|
-
var editable = isEditing(record);
|
24628
|
-
return editable ? (React.createElement("span", null,
|
24629
|
-
React.createElement(antd.Tooltip, { title: "Save" },
|
24630
|
-
React.createElement(antd.Typography.Link, { onClick: function () { return onHandleSave(record); }, style: { marginRight: 20 } },
|
24631
|
-
React.createElement(icons.SaveOutlined, null))),
|
24632
|
-
React.createElement(antd.Tooltip, { title: "Cancel" },
|
24633
|
-
React.createElement(antd.Typography.Link, { onClick: onEditCancel, style: { marginRight: 8 } },
|
24634
|
-
React.createElement(icons.ExclamationCircleOutlined, null))))) : (React.createElement(antd.Tooltip, { title: "Edit" },
|
24635
|
-
React.createElement(antd.Typography.Link, { disabled: editingKey !== "", onClick: function () { return onEditRow(record); } },
|
24636
|
-
React.createElement(icons.EditOutlined, null))));
|
24637
|
-
},
|
24638
|
-
},
|
24639
24701
|
];
|
24640
24702
|
var columns = defaultColumns.map(function (col) {
|
24641
24703
|
if (!col.editable) {
|
@@ -24646,7 +24708,7 @@ var NdcDetailsComponent = function (props) {
|
|
24646
24708
|
editable: col.editable,
|
24647
24709
|
dataIndex: col.dataIndex,
|
24648
24710
|
title: col.title,
|
24649
|
-
|
24711
|
+
handleSave: handleSave,
|
24650
24712
|
}); } });
|
24651
24713
|
});
|
24652
24714
|
function onAddNewNdcDetail() {
|
@@ -24677,11 +24739,32 @@ var NdcDetailsComponent = function (props) {
|
|
24677
24739
|
}
|
24678
24740
|
var components = {
|
24679
24741
|
body: {
|
24742
|
+
row: EditableRow,
|
24680
24743
|
cell: EditableCell,
|
24681
24744
|
},
|
24682
24745
|
};
|
24746
|
+
//commented because rendering issue
|
24683
24747
|
function ndcDetailsTableContent() {
|
24684
|
-
return React.createElement("div", null)
|
24748
|
+
return (React.createElement("div", null)
|
24749
|
+
// <div>
|
24750
|
+
// <Button
|
24751
|
+
// onClick={onAddNewNdcDetail}
|
24752
|
+
// type="primary"
|
24753
|
+
// style={{
|
24754
|
+
// marginBottom: 16,
|
24755
|
+
// }}
|
24756
|
+
// >
|
24757
|
+
// Add a row
|
24758
|
+
// </Button>
|
24759
|
+
// <Table
|
24760
|
+
// components={components}
|
24761
|
+
// rowClassName={() => 'editable-row'}
|
24762
|
+
// bordered
|
24763
|
+
// dataSource={ndcDetailsData}
|
24764
|
+
// columns={columns}
|
24765
|
+
// />
|
24766
|
+
// </div>
|
24767
|
+
);
|
24685
24768
|
}
|
24686
24769
|
var onCancelPeriod = function () { };
|
24687
24770
|
var onAddNewPeriod = function () {
|
@@ -24738,7 +24821,6 @@ var NdcDetailsComponent = function (props) {
|
|
24738
24821
|
}
|
24739
24822
|
var onTabChange = function (key) {
|
24740
24823
|
setSelectedTab(key);
|
24741
|
-
setEditingKey("");
|
24742
24824
|
};
|
24743
24825
|
React.useEffect(function () {
|
24744
24826
|
var defaultNdcDetails = [
|
@@ -25012,18 +25094,17 @@ var NdcDetailsComponent = function (props) {
|
|
25012
25094
|
React.createElement(antd.Tabs, { centered: false, defaultActiveKey: "1", items: periodItems, activeKey: selectedTab, onChange: onTabChange })),
|
25013
25095
|
selectedTab !== "add_new" && (React.createElement("div", null,
|
25014
25096
|
React.createElement("div", null,
|
25015
|
-
React.createElement(antd.
|
25016
|
-
|
25017
|
-
|
25018
|
-
|
25019
|
-
|
25020
|
-
|
25021
|
-
|
25022
|
-
|
25023
|
-
|
25024
|
-
|
25025
|
-
|
25026
|
-
} })))))));
|
25097
|
+
React.createElement(antd.Table, { key: tableKey, components: components, rowClassName: function () { return "editable-row"; }, bordered: true, dataSource: getNdcDetailsForPeriod(), columns: columns, expandable: {
|
25098
|
+
expandedRowRender: function (record) { return getSubNdcActionContent(record); },
|
25099
|
+
indentSize: 0,
|
25100
|
+
defaultExpandedRowKeys: [selectedNdcDetail.current.key],
|
25101
|
+
}, footer: function () {
|
25102
|
+
return isAddNdcActionVisible() && (React.createElement(antd.Row, { justify: "center" },
|
25103
|
+
React.createElement(antd.Button, { onClick: onAddNewNdcDetail, type: "default", style: {
|
25104
|
+
marginBottom: 16,
|
25105
|
+
width: "100%",
|
25106
|
+
} }, t("ndc:addNdcAction"))));
|
25107
|
+
} }))))));
|
25027
25108
|
};
|
25028
25109
|
|
25029
25110
|
var ImgWithFallback = function (_a) {
|
@@ -25679,7 +25760,7 @@ var RejectDocumentationConfirmationModel = function (props) {
|
|
25679
25760
|
React.createElement(antd.Button, { className: "mg-left-2", type: "primary", danger: true, htmlType: "submit", loading: loading, disabled: actionInfo.type === "reject" && comment === "" }, "REJECT")))));
|
25680
25761
|
};
|
25681
25762
|
|
25682
|
-
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
|
25763
|
+
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";
|
25683
25764
|
styleInject(css_248z$2);
|
25684
25765
|
|
25685
25766
|
var NdcActionBody = function (props) {
|
@@ -25897,8 +25978,8 @@ var NdcActionBody = function (props) {
|
|
25897
25978
|
: t("programme:orgNotAuth"), overlayClassName: "custom-tooltip" },
|
25898
25979
|
React.createElement(icons.FileAddOutlined, { className: "common-progress-icon", style: canUploadMonitorReport &&
|
25899
25980
|
uploadDocUserPermission(userInfoState, exports.DocType.MONITORING_REPORT, programmeOwnerId, ministryLevelPermission)
|
25900
|
-
? { color: "#3F3A47", cursor: "pointer" }
|
25901
|
-
: { color: "#cacaca", cursor: "default" }, onClick: function () {
|
25981
|
+
? { color: "#3F3A47", cursor: "pointer", margin: "0px 0px 2.5px 0px" }
|
25982
|
+
: { color: "#cacaca", cursor: "default", margin: "0px 0px 2.5px 0px" }, onClick: function () {
|
25902
25983
|
if (canUploadMonitorReport &&
|
25903
25984
|
uploadDocUserPermission(userInfoState, exports.DocType.MONITORING_REPORT, programmeOwnerId, ministryLevelPermission)) {
|
25904
25985
|
handleFileUploadMonitor();
|
@@ -25921,8 +26002,8 @@ var NdcActionBody = function (props) {
|
|
25921
26002
|
: t("programme:orgNotAuth"), overlayClassName: "custom-tooltip" },
|
25922
26003
|
React.createElement(icons.FileAddOutlined, { className: "common-progress-icon", style: canUploadMonitorReport &&
|
25923
26004
|
uploadDocUserPermission(userInfoState, exports.DocType.MONITORING_REPORT, programmeOwnerId, ministryLevelPermission)
|
25924
|
-
? { color: "#3F3A47", cursor: "pointer" }
|
25925
|
-
: { color: "#cacaca", cursor: "default" }, onClick: function () {
|
26005
|
+
? { color: "#3F3A47", cursor: "pointer", margin: "0px 0px 2.5px 0px" }
|
26006
|
+
: { color: "#cacaca", cursor: "default", margin: "0px 0px 2.5px 0px" }, onClick: function () {
|
25926
26007
|
if (canUploadMonitorReport &&
|
25927
26008
|
uploadDocUserPermission(userInfoState, exports.DocType.MONITORING_REPORT, programmeOwnerId, ministryLevelPermission)) {
|
25928
26009
|
handleFileUploadMonitor();
|
@@ -25971,8 +26052,8 @@ var NdcActionBody = function (props) {
|
|
25971
26052
|
: t("programme:notAuthToUploadDoc"), overlayClassName: "custom-tooltip" },
|
25972
26053
|
React.createElement(icons.FileAddOutlined, { className: "common-progress-icon", style: monitoringReportAccepted &&
|
25973
26054
|
uploadDocUserPermission(userInfoState, exports.DocType.VERIFICATION_REPORT, programmeOwnerId, ministryLevelPermission)
|
25974
|
-
? { color: "#3F3A47", cursor: "pointer" }
|
25975
|
-
: { color: "#cacaca", cursor: "default" }, onClick: function () {
|
26055
|
+
? { color: "#3F3A47", cursor: "pointer", margin: "0px 0px 2.5px 0px" }
|
26056
|
+
: { color: "#cacaca", cursor: "default", margin: "0px 0px 2.5px 0px" }, onClick: function () {
|
25976
26057
|
if (monitoringReportAccepted &&
|
25977
26058
|
uploadDocUserPermission(userInfoState, exports.DocType.VERIFICATION_REPORT, programmeOwnerId, ministryLevelPermission)) {
|
25978
26059
|
handleFileUploadVerification();
|
@@ -25995,8 +26076,8 @@ var NdcActionBody = function (props) {
|
|
25995
26076
|
: t("programme:notAuthToUploadDoc"), overlayClassName: "custom-tooltip" },
|
25996
26077
|
React.createElement(icons.FileAddOutlined, { className: "common-progress-icon", style: monitoringReportAccepted &&
|
25997
26078
|
uploadDocUserPermission(userInfoState, exports.DocType.VERIFICATION_REPORT, programmeOwnerId, ministryLevelPermission)
|
25998
|
-
? { color: "#3F3A47", cursor: "pointer" }
|
25999
|
-
: { color: "#cacaca", cursor: "default" }, onClick: function () {
|
26079
|
+
? { color: "#3F3A47", cursor: "pointer", margin: "0px 0px 2.5px 0px" }
|
26080
|
+
: { color: "#cacaca", cursor: "default", margin: "0px 0px 2.5px 0px" }, onClick: function () {
|
26000
26081
|
if (monitoringReportAccepted &&
|
26001
26082
|
uploadDocUserPermission(userInfoState, exports.DocType.VERIFICATION_REPORT, programmeOwnerId, ministryLevelPermission)) {
|
26002
26083
|
handleFileUploadVerification();
|
@@ -26010,7 +26091,7 @@ var NdcActionBody = function (props) {
|
|
26010
26091
|
React.createElement(RejectDocumentationConfirmationModel, { actionInfo: actionInfo, onActionConfirmed: handleOk, onActionCanceled: handleCancel, openModal: openRejectDocConfirmationModal, errorMsg: "", loading: loading, translator: translator })));
|
26011
26092
|
};
|
26012
26093
|
|
26013
|
-
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";
|
26094
|
+
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";
|
26014
26095
|
styleInject(css_248z$1);
|
26015
26096
|
|
26016
26097
|
var ProgrammeDocuments = function (props) {
|
@@ -26284,8 +26365,8 @@ var ProgrammeDocuments = function (props) {
|
|
26284
26365
|
? t("programme:notAuthToUploadDoc")
|
26285
26366
|
: !uploadDocUserPermission(userInfoState, exports.DocType.DESIGN_DOCUMENT, programmeOwnerId, ministryLevelPermission) && t("programme:orgNotAuth"), overlayClassName: "custom-tooltip" },
|
26286
26367
|
React.createElement(icons.FileAddOutlined, { className: "common-progress-icon", style: uploadDocUserPermission(userInfoState, exports.DocType.DESIGN_DOCUMENT, programmeOwnerId, ministryLevelPermission)
|
26287
|
-
? { color: "#3F3A47", cursor: "pointer" }
|
26288
|
-
: { color: "#cacaca", cursor: "default" }, onClick: function () {
|
26368
|
+
? { color: "#3F3A47", cursor: "pointer", margin: "0px 0px 2.5px 0px" }
|
26369
|
+
: { color: "#cacaca", cursor: "default", margin: "0px 0px 2.5px 0px" }, onClick: function () {
|
26289
26370
|
return uploadDocUserPermission(userInfoState, exports.DocType.DESIGN_DOCUMENT, programmeOwnerId, ministryLevelPermission) && handleDesignDocFileUpload();
|
26290
26371
|
} })),
|
26291
26372
|
React.createElement("input", { type: "file", ref: fileInputRef, style: { display: "none" }, accept: ".xls, .xlsx, .ppt, .pptx, .csv, .doc, .docx, .pdf, .png, .jpg", onChange: function (e) {
|
@@ -26298,8 +26379,8 @@ var ProgrammeDocuments = function (props) {
|
|
26298
26379
|
? t("programme:notAuthToUploadDoc")
|
26299
26380
|
: !uploadDocUserPermission(userInfoState, exports.DocType.DESIGN_DOCUMENT, programmeOwnerId, ministryLevelPermission) && t("programme:orgNotAuth"), overlayClassName: "custom-tooltip" },
|
26300
26381
|
React.createElement(icons.FileAddOutlined, { className: "common-progress-icon", style: uploadDocUserPermission(userInfoState, exports.DocType.DESIGN_DOCUMENT, programmeOwnerId, ministryLevelPermission)
|
26301
|
-
? { color: "#3F3A47", cursor: "pointer" }
|
26302
|
-
: { color: "#cacaca", cursor: "default" }, onClick: function () {
|
26382
|
+
? { color: "#3F3A47", cursor: "pointer", margin: "0px 0px 2.5px 0px" }
|
26383
|
+
: { color: "#cacaca", cursor: "default", margin: "0px 0px 2.5px 0px" }, onClick: function () {
|
26303
26384
|
return uploadDocUserPermission(userInfoState, exports.DocType.DESIGN_DOCUMENT, programmeOwnerId, ministryLevelPermission) && handleDesignDocFileUpload();
|
26304
26385
|
} })),
|
26305
26386
|
React.createElement("input", { type: "file", ref: fileInputRef, style: { display: "none" }, accept: ".xls, .xlsx, .ppt, .pptx, .csv, .doc, .docx, .pdf, .png, .jpg", onChange: function (e) {
|
@@ -26352,8 +26433,8 @@ var ProgrammeDocuments = function (props) {
|
|
26352
26433
|
: !uploadDocUserPermission(userInfoState, exports.DocType.METHODOLOGY_DOCUMENT, programmeOwnerId, ministryLevelPermission) && t("programme:orgNotAuth"), overlayClassName: "custom-tooltip" },
|
26353
26434
|
React.createElement(icons.FileAddOutlined, { className: "common-progress-icon", style: designDocStatus === exports.DocumentStatus.ACCEPTED &&
|
26354
26435
|
uploadDocUserPermission(userInfoState, exports.DocType.METHODOLOGY_DOCUMENT, programmeOwnerId, ministryLevelPermission)
|
26355
|
-
? { color: "#3F3A47", cursor: "pointer" }
|
26356
|
-
: { color: "#cacaca" }, onClick: function () {
|
26436
|
+
? { color: "#3F3A47", cursor: "pointer", margin: "0px 0px 2.5px 0px" }
|
26437
|
+
: { color: "#cacaca", margin: "0px 0px 2.5px 0px" }, onClick: function () {
|
26357
26438
|
return designDocStatus === exports.DocumentStatus.ACCEPTED &&
|
26358
26439
|
uploadDocUserPermission(userInfoState, exports.DocType.METHODOLOGY_DOCUMENT, programmeOwnerId, ministryLevelPermission) &&
|
26359
26440
|
handleMethodologyFileUpload();
|
@@ -26372,8 +26453,8 @@ var ProgrammeDocuments = function (props) {
|
|
26372
26453
|
: t("programme:orgNotAuth"), overlayClassName: "custom-tooltip" },
|
26373
26454
|
React.createElement(icons.FileAddOutlined, { className: "common-progress-icon", style: designDocStatus === exports.DocumentStatus.ACCEPTED &&
|
26374
26455
|
uploadDocUserPermission(userInfoState, exports.DocType.METHODOLOGY_DOCUMENT, programmeOwnerId, ministryLevelPermission)
|
26375
|
-
? { color: "#3F3A47", cursor: "pointer" }
|
26376
|
-
: { color: "#cacaca", cursor: "default" }, onClick: function () {
|
26456
|
+
? { color: "#3F3A47", cursor: "pointer", margin: "0px 0px 2.5px 0px" }
|
26457
|
+
: { color: "#cacaca", cursor: "default", margin: "0px 0px 2.5px 0px" }, onClick: function () {
|
26377
26458
|
return designDocStatus === exports.DocumentStatus.ACCEPTED &&
|
26378
26459
|
uploadDocUserPermission(userInfoState, exports.DocType.METHODOLOGY_DOCUMENT, programmeOwnerId, ministryLevelPermission) &&
|
26379
26460
|
handleMethodologyFileUpload();
|
@@ -26427,8 +26508,8 @@ var ProgrammeDocuments = function (props) {
|
|
26427
26508
|
React.createElement(antd.Tooltip, { arrowPointAtCenter: true, placement: "top", trigger: "hover", title: impactAssessmentToolTipTitle, overlayClassName: "custom-tooltip" },
|
26428
26509
|
React.createElement(icons.FileAddOutlined, { className: "common-progress-icon", style: uploadImpactAssessmentDocUserPermission &&
|
26429
26510
|
!isProjectRejected
|
26430
|
-
? { color: "#3F3A47", cursor: "pointer" }
|
26431
|
-
: { color: "#cacaca", cursor: "default" }, onClick: function () {
|
26511
|
+
? { color: "#3F3A47", cursor: "pointer", margin: "0px 0px 2.5px 0px" }
|
26512
|
+
: { color: "#cacaca", cursor: "default", margin: "0px 0px 2.5px 0px" }, onClick: function () {
|
26432
26513
|
return uploadImpactAssessmentDocUserPermission &&
|
26433
26514
|
!isProjectRejected &&
|
26434
26515
|
handleImpactAssessmentFileUpload();
|
@@ -26441,8 +26522,8 @@ var ProgrammeDocuments = function (props) {
|
|
26441
26522
|
React.createElement(antd.Tooltip, { arrowPointAtCenter: true, placement: "top", trigger: "hover", title: impactAssessmentToolTipTitle, overlayClassName: "custom-tooltip" },
|
26442
26523
|
React.createElement(icons.FileAddOutlined, { className: "common-progress-icon", style: uploadImpactAssessmentDocUserPermission &&
|
26443
26524
|
!isProjectRejected
|
26444
|
-
? { color: "#3F3A47", cursor: "pointer" }
|
26445
|
-
: { color: "#cacaca", cursor: "default" }, onClick: function () {
|
26525
|
+
? { color: "#3F3A47", cursor: "pointer", margin: "0px 0px 2.5px 0px" }
|
26526
|
+
: { color: "#cacaca", cursor: "default", margin: "0px 0px 2.5px 0px" }, onClick: function () {
|
26446
26527
|
return uploadImpactAssessmentDocUserPermission &&
|
26447
26528
|
!isProjectRejected &&
|
26448
26529
|
handleImpactAssessmentFileUpload();
|