@undp/carbon-library 1.0.274-CARBON-359.7 → 1.0.274-CARBON-338.3
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/index.js +67 -121
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +67 -121
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
package/dist/esm/index.js
CHANGED
@@ -21705,7 +21705,7 @@ var NdcActionViewComponent = function (props) {
|
|
21705
21705
|
(reportData === null || reportData === void 0 ? void 0 : reportData.status) === DocumentStatus.ACCEPTED && (React.createElement(CheckCircleOutlined, { className: "common-progress-icon", style: { color: "#5DC380" } })),
|
21706
21706
|
(reportData === null || reportData === void 0 ? void 0 : reportData.status) === DocumentStatus.REJECTED && (React.createElement(ExclamationCircleOutlined, { className: "common-progress-icon", style: { color: "#FD6F70" } }))),
|
21707
21707
|
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 },
|
21708
|
-
React.createElement(BookOutlined, { className: "common-progress-icon", style: { color: "#3F3A47" } })))),
|
21708
|
+
React.createElement(BookOutlined, { className: "common-progress-icon margin-right-1", style: { color: "#3F3A47" } })))),
|
21709
21709
|
(reportData === null || reportData === void 0 ? void 0 : reportData.txTime) && (React.createElement("div", { className: "time" },
|
21710
21710
|
moment(parseInt(reportData === null || reportData === void 0 ? void 0 : reportData.txTime)).format("DD MMMM YYYY @ HH:mm"),
|
21711
21711
|
" ~ " + reportVersion))));
|
@@ -21862,15 +21862,13 @@ var NdcActionViewComponent = function (props) {
|
|
21862
21862
|
((_b = ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.agricultureProperties) === null || _b === void 0 ? void 0 : _b.landAreaUnit);
|
21863
21863
|
}
|
21864
21864
|
if ((ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.typeOfMitigation) === MitigationTypes.AGRICULTURE &&
|
21865
|
-
(ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.subTypeOfMitigation) ===
|
21866
|
-
MitigationSubTypes.SOIL_ENRICHMENT_BIOCHAR &&
|
21865
|
+
(ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.subTypeOfMitigation) === MitigationSubTypes.SOIL_ENRICHMENT_BIOCHAR &&
|
21867
21866
|
(ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.creditCalculationProperties)) {
|
21868
21867
|
mitigationDetails[t("ndcAction:viewMitigationWeight")] =
|
21869
|
-
addCommSep((_c = ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.creditCalculationProperties) === null || _c === void 0 ? void 0 : _c.weight) +
|
21868
|
+
addCommSep((_c = ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.creditCalculationProperties) === null || _c === void 0 ? void 0 : _c.weight) + 't';
|
21870
21869
|
}
|
21871
21870
|
if ((ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.typeOfMitigation) === MitigationTypes.SOLAR &&
|
21872
|
-
(ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.subTypeOfMitigation) ===
|
21873
|
-
MitigationSubTypes.SOLAR_PHOTOVOLTAICS_PV &&
|
21871
|
+
(ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.subTypeOfMitigation) === MitigationSubTypes.SOLAR_PHOTOVOLTAICS_PV &&
|
21874
21872
|
(ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.solarProperties)) {
|
21875
21873
|
mitigationDetails[t("ndcAction:viewMitigationEnergyGeneration")] =
|
21876
21874
|
addCommSep((_d = ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.solarProperties) === null || _d === void 0 ? void 0 : _d.energyGeneration) +
|
@@ -21879,17 +21877,15 @@ var NdcActionViewComponent = function (props) {
|
|
21879
21877
|
(_f = ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.solarProperties) === null || _f === void 0 ? void 0 : _f.consumerGroup;
|
21880
21878
|
}
|
21881
21879
|
if ((ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.typeOfMitigation) === MitigationTypes.SOLAR &&
|
21882
|
-
((ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.subTypeOfMitigation) ===
|
21883
|
-
MitigationSubTypes.
|
21884
|
-
(ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.subTypeOfMitigation) ===
|
21885
|
-
MitigationSubTypes.SOLAR_WATER_PUMPING_ON_GRID) &&
|
21880
|
+
((ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.subTypeOfMitigation) === MitigationSubTypes.SOLAR_WATER_PUMPING_OFF_GRID ||
|
21881
|
+
(ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.subTypeOfMitigation) === MitigationSubTypes.SOLAR_WATER_PUMPING_ON_GRID) &&
|
21886
21882
|
(ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.creditCalculationProperties)) {
|
21887
21883
|
mitigationDetails[t("ndcAction:viewMitigationEnergyGeneration")] =
|
21888
|
-
addCommSep((_g = ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.creditCalculationProperties) === null || _g === void 0 ? void 0 : _g.energyGeneration) +
|
21884
|
+
addCommSep((_g = ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.creditCalculationProperties) === null || _g === void 0 ? void 0 : _g.energyGeneration) +
|
21885
|
+
((_h = ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.creditCalculationProperties) === null || _h === void 0 ? void 0 : _h.energyGenerationUnit);
|
21889
21886
|
}
|
21890
21887
|
if ((ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.typeOfMitigation) === MitigationTypes.EE_HOUSEHOLDS &&
|
21891
|
-
(ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.subTypeOfMitigation) ===
|
21892
|
-
MitigationSubTypes.STOVES_HOUSES_IN_NAMIBIA &&
|
21888
|
+
(ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.subTypeOfMitigation) === MitigationSubTypes.STOVES_HOUSES_IN_NAMIBIA &&
|
21893
21889
|
(ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.creditCalculationProperties)) {
|
21894
21890
|
mitigationDetails[t("ndcAction:viewMitigationNoOfDays")] =
|
21895
21891
|
(_j = ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.creditCalculationProperties) === null || _j === void 0 ? void 0 : _j.numberOfDays;
|
@@ -22072,24 +22068,23 @@ var NdcActionViewComponent = function (props) {
|
|
22072
22068
|
: "empty" }, t("programme:monitoringReport")),
|
22073
22069
|
(monitoringReportData === null || monitoringReportData === void 0 ? void 0 : monitoringReportData.txTime) && (React.createElement("div", { className: "time" },
|
22074
22070
|
moment(parseInt(monitoringReportData === null || monitoringReportData === void 0 ? void 0 : monitoringReportData.txTime)).format("DD MMMM YYYY @ HH:mm"),
|
22075
|
-
" ~ " + monitoringReportversion)))
|
22076
|
-
React.createElement(Row, null,
|
22071
|
+
" ~ " + monitoringReportversion))),
|
22077
22072
|
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
|
22078
22073
|
? t("programme:notAuthToUploadDoc")
|
22079
22074
|
: uploadDocUserPermission(userInfoState, DocType.MONITORING_REPORT, programmeOwnerId)
|
22080
22075
|
? !canUploadMonitorReport &&
|
22081
22076
|
t("programme:programmeNotAuth")
|
22082
22077
|
: t("programme:orgNotAuth"), overlayClassName: "custom-tooltip" },
|
22083
|
-
React.createElement(FileAddOutlined, null)))),
|
22084
|
-
|
22085
|
-
|
22086
|
-
|
22087
|
-
|
22088
|
-
|
22089
|
-
|
22090
|
-
|
22091
|
-
|
22092
|
-
|
22078
|
+
React.createElement(FileAddOutlined, null))))),
|
22079
|
+
(monitoringReportData === null || monitoringReportData === void 0 ? void 0 : monitoringReportData.url) && (React.createElement(Row, null,
|
22080
|
+
React.createElement("div", { className: "icon" },
|
22081
|
+
(monitoringReportData === null || monitoringReportData === void 0 ? void 0 : monitoringReportData.status) ===
|
22082
|
+
DocumentStatus.ACCEPTED && (React.createElement(CheckCircleOutlined, { className: "common-progress-icon", style: { color: "#5DC380" } })),
|
22083
|
+
(monitoringReportData === null || monitoringReportData === void 0 ? void 0 : monitoringReportData.status) ===
|
22084
|
+
DocumentStatus.REJECTED && (React.createElement(ExclamationCircleOutlined, { className: "common-progress-icon", style: { color: "#FD6F70" } }))),
|
22085
|
+
React.createElement("div", { className: "link mg-left-1" }, (monitoringReportData === null || monitoringReportData === void 0 ? void 0 : monitoringReportData.url) &&
|
22086
|
+
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 },
|
22087
|
+
React.createElement(BookOutlined, { className: "common-progress-icon margin-right-1", style: { color: "#3F3A47" } }))))))),
|
22093
22088
|
React.createElement("div", { className: "report-details" },
|
22094
22089
|
React.createElement("div", { className: "report-type" },
|
22095
22090
|
React.createElement("div", { className: "name-time-container" },
|
@@ -22098,24 +22093,23 @@ var NdcActionViewComponent = function (props) {
|
|
22098
22093
|
: "empty" }, t("programme:verificationReport")),
|
22099
22094
|
(verificationReportData === null || verificationReportData === void 0 ? void 0 : verificationReportData.txTime) && (React.createElement("div", { className: "time" },
|
22100
22095
|
moment(parseInt(verificationReportData === null || verificationReportData === void 0 ? void 0 : verificationReportData.txTime)).format("DD MMMM YYYY @ HH:mm"),
|
22101
|
-
" ~ " + verificationReportVersion)))
|
22102
|
-
React.createElement(Row, null,
|
22096
|
+
" ~ " + verificationReportVersion))),
|
22103
22097
|
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
|
22104
22098
|
? t("programme:notAuthToUploadDoc")
|
22105
22099
|
: uploadDocUserPermission(userInfoState, DocType.VERIFICATION_REPORT, programmeOwnerId)
|
22106
22100
|
? !monitoringReportAccepted &&
|
22107
22101
|
t("programme:monitoringRepNotApproved")
|
22108
22102
|
: t("programme:notAuthToUploadDoc"), overlayClassName: "custom-tooltip" },
|
22109
|
-
React.createElement(FileAddOutlined, null)))),
|
22110
|
-
|
22111
|
-
|
22112
|
-
|
22113
|
-
|
22114
|
-
|
22115
|
-
|
22116
|
-
|
22117
|
-
|
22118
|
-
|
22103
|
+
React.createElement(FileAddOutlined, null))))),
|
22104
|
+
(verificationReportData === null || verificationReportData === void 0 ? void 0 : verificationReportData.url) && (React.createElement(Row, null,
|
22105
|
+
React.createElement("div", { className: "icon" },
|
22106
|
+
(verificationReportData === null || verificationReportData === void 0 ? void 0 : verificationReportData.status) ===
|
22107
|
+
DocumentStatus.ACCEPTED && (React.createElement(CheckCircleOutlined, { className: "common-progress-icon", style: { color: "#5DC380" } })),
|
22108
|
+
(verificationReportData === null || verificationReportData === void 0 ? void 0 : verificationReportData.status) ===
|
22109
|
+
DocumentStatus.REJECTED && (React.createElement(ExclamationCircleOutlined, { className: "common-progress-icon", style: { color: "#FD6F70" } }))),
|
22110
|
+
React.createElement("div", { className: "link mg-left-1" }, (verificationReportData === null || verificationReportData === void 0 ? void 0 : verificationReportData.url) &&
|
22111
|
+
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 },
|
22112
|
+
React.createElement(BookOutlined, { className: "common-progress-icon margin-right-1", style: { color: "#3F3A47" } })))))))))))),
|
22119
22113
|
((ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.action) === NdcActionTypes.Mitigation ||
|
22120
22114
|
(ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.action) === NdcActionTypes.CrossCutting) && (React.createElement(Row, null,
|
22121
22115
|
React.createElement(Col, { lg: 24, className: "gutter-row" },
|
@@ -27849,8 +27843,8 @@ var ProgrammeTransferForm = function (props) {
|
|
27849
27843
|
},
|
27850
27844
|
{
|
27851
27845
|
key: "companyRole",
|
27852
|
-
operation: "
|
27853
|
-
value:
|
27846
|
+
operation: "=",
|
27847
|
+
value: CompanyRole.PROGRAMME_DEVELOPER,
|
27854
27848
|
},
|
27855
27849
|
],
|
27856
27850
|
sort: {
|
@@ -28051,7 +28045,7 @@ var RejectDocumentationConfirmationModel = function (props) {
|
|
28051
28045
|
React.createElement(Button, { className: "mg-left-2", type: "primary", danger: true, htmlType: "submit", loading: loading, disabled: actionInfo.type === "reject" && comment === "" }, "REJECT")))));
|
28052
28046
|
};
|
28053
28047
|
|
28054
|
-
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: flex-start;\n justify-content: space-between; }\n .ndc-action-body .report-details .report-type {\n display: flex;\n flex-direction: row;\n width: 60%;\n align-items: flex-start; }\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 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 justify-content: flex-start;\n gap: 20px
|
28048
|
+
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: flex-start;\n justify-content: space-between; }\n .ndc-action-body .report-details .report-type {\n display: flex;\n flex-direction: row;\n width: 60%;\n align-items: flex-start; }\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";
|
28055
28049
|
styleInject(css_248z$2);
|
28056
28050
|
|
28057
28051
|
var NdcActionBody = function (props) {
|
@@ -28317,7 +28311,7 @@ var NdcActionBody = function (props) {
|
|
28317
28311
|
React.createElement("div", { className: "icon" }, (monitoringReportData === null || monitoringReportData === void 0 ? void 0 : monitoringReportData.url) ? (monitoringReportPending ? ((companyRolePermission || ministryLevelPermission) && (React.createElement(React.Fragment, null,
|
28318
28312
|
React.createElement(LikeOutlined, { onClick: function () {
|
28319
28313
|
return docAction(monitoringReportData === null || monitoringReportData === void 0 ? void 0 : monitoringReportData.id, DocumentStatus.ACCEPTED, monitoringReportData === null || monitoringReportData === void 0 ? void 0 : monitoringReportData.actionId, monitoringReportData === null || monitoringReportData === void 0 ? void 0 : monitoringReportData.type);
|
28320
|
-
}, className: "common-progress-icon", style: { color: "#976ED7"
|
28314
|
+
}, className: "common-progress-icon", style: { color: "#976ED7" } }),
|
28321
28315
|
React.createElement(DislikeOutlined, { onClick: function () {
|
28322
28316
|
setRejectDocData({
|
28323
28317
|
id: monitoringReportData === null || monitoringReportData === void 0 ? void 0 : monitoringReportData.id,
|
@@ -28332,8 +28326,8 @@ var NdcActionBody = function (props) {
|
|
28332
28326
|
icon: React.createElement(DislikeOutlined, null),
|
28333
28327
|
});
|
28334
28328
|
setOpenRejectDocConfirmationModal(true);
|
28335
|
-
}, className: "common-progress-icon margin-left-1", style: { color: "#FD6F70"
|
28336
|
-
React.createElement(ExclamationCircleOutlined, { className: "common-progress-icon", style: { color: "#FD6F70"
|
28329
|
+
}, className: "common-progress-icon margin-left-1", style: { color: "#FD6F70" } })))) : monitoringReportAccepted ? (React.createElement(CheckCircleOutlined, { className: "common-progress-icon", style: { color: "#5DC380" } })) : (monitoringReportRejected && (React.createElement(Tooltip, { arrowPointAtCenter: true, placement: "top", trigger: "hover", title: t("programme:rejectTip"), overlayClassName: "custom-tooltip" },
|
28330
|
+
React.createElement(ExclamationCircleOutlined, { className: "common-progress-icon", style: { color: "#FD6F70" } }))))) : (React.createElement(React.Fragment, null,
|
28337
28331
|
React.createElement(Tooltip, { arrowPointAtCenter: true, placement: "top", trigger: "hover", title: (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.userRole) === Role.ViewOnly
|
28338
28332
|
? t("programme:notAuthToUploadDoc")
|
28339
28333
|
: uploadDocUserPermission(userInfoState, DocType.MONITORING_REPORT, programmeOwnerId, ministryLevelPermission)
|
@@ -28364,7 +28358,7 @@ var NdcActionBody = function (props) {
|
|
28364
28358
|
} }))))),
|
28365
28359
|
(monitoringReportData === null || monitoringReportData === void 0 ? void 0 : monitoringReportData.url) && (React.createElement("div", { className: "report-link" },
|
28366
28360
|
React.createElement("div", { className: "link" }, 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 },
|
28367
|
-
React.createElement(BookOutlined, { className: "common-progress-icon margin-right-1", style: { color: "#3F3A47"
|
28361
|
+
React.createElement(BookOutlined, { className: "common-progress-icon margin-right-1", style: { color: "#3F3A47" } })))),
|
28368
28362
|
!monitoringReportAccepted && (React.createElement(React.Fragment, null,
|
28369
28363
|
React.createElement(Tooltip, { arrowPointAtCenter: true, placement: "top", trigger: "hover", title: (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.userRole) === Role.ViewOnly
|
28370
28364
|
? t("programme:notAuthToUploadDoc")
|
@@ -28407,7 +28401,7 @@ var NdcActionBody = function (props) {
|
|
28407
28401
|
ministryLevelPermission) && (React.createElement(React.Fragment, null,
|
28408
28402
|
React.createElement(LikeOutlined, { onClick: function () {
|
28409
28403
|
return docAction(verificationReportData === null || verificationReportData === void 0 ? void 0 : verificationReportData.id, DocumentStatus.ACCEPTED, verificationReportData === null || verificationReportData === void 0 ? void 0 : verificationReportData.actionId, verificationReportData === null || verificationReportData === void 0 ? void 0 : verificationReportData.type);
|
28410
|
-
}, className: "common-progress-icon", style: { color: "#976ED7"
|
28404
|
+
}, className: "common-progress-icon", style: { color: "#976ED7" } }),
|
28411
28405
|
React.createElement(DislikeOutlined, { onClick: function () {
|
28412
28406
|
setRejectDocData({
|
28413
28407
|
id: verificationReportData === null || verificationReportData === void 0 ? void 0 : verificationReportData.id,
|
@@ -28422,8 +28416,8 @@ var NdcActionBody = function (props) {
|
|
28422
28416
|
icon: React.createElement(DislikeOutlined, null),
|
28423
28417
|
});
|
28424
28418
|
setOpenRejectDocConfirmationModal(true);
|
28425
|
-
}, className: "common-progress-icon margin-left-1", style: { color: "#FD6F70"
|
28426
|
-
React.createElement(ExclamationCircleOutlined, { className: "common-progress-icon", style: { color: "#FD6F70"
|
28419
|
+
}, className: "common-progress-icon margin-left-1", style: { color: "#FD6F70" } })))) : verificationReportAccepted ? (React.createElement(CheckCircleOutlined, { className: "common-progress-icon", style: { color: "#5DC380" } })) : (verifcationReportRejected && (React.createElement(Tooltip, { arrowPointAtCenter: true, placement: "top", trigger: "hover", title: t("programme:rejectTip"), overlayClassName: "custom-tooltip" },
|
28420
|
+
React.createElement(ExclamationCircleOutlined, { className: "common-progress-icon", style: { color: "#FD6F70" } }))))) : (React.createElement(React.Fragment, null,
|
28427
28421
|
React.createElement(Tooltip, { arrowPointAtCenter: true, placement: "top", trigger: "hover", title: (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.userRole) === Role.ViewOnly
|
28428
28422
|
? t("programme:notAuthToUploadDoc")
|
28429
28423
|
: uploadDocUserPermission(userInfoState, DocType.VERIFICATION_REPORT, programmeOwnerId, ministryLevelPermission)
|
@@ -28454,7 +28448,7 @@ var NdcActionBody = function (props) {
|
|
28454
28448
|
} })))))),
|
28455
28449
|
(verificationReportData === null || verificationReportData === void 0 ? void 0 : verificationReportData.url) && (React.createElement("div", { className: "report-link" },
|
28456
28450
|
React.createElement("div", { className: "link" }, 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 },
|
28457
|
-
React.createElement(BookOutlined, { className: "common-progress-icon margin-right-1", style: { color: "#3F3A47"
|
28451
|
+
React.createElement(BookOutlined, { className: "common-progress-icon margin-right-1", style: { color: "#3F3A47" } })))),
|
28458
28452
|
!verificationReportAccepted && monitoringReportAccepted && (React.createElement(React.Fragment, null,
|
28459
28453
|
React.createElement(Tooltip, { arrowPointAtCenter: true, placement: "top", trigger: "hover", title: (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.userRole) === Role.ViewOnly
|
28460
28454
|
? t("programme:notAuthToUploadDoc")
|
@@ -28487,7 +28481,7 @@ var NdcActionBody = function (props) {
|
|
28487
28481
|
React.createElement(RejectDocumentationConfirmationModel, { actionInfo: actionInfo, onActionConfirmed: handleOk, onActionCanceled: handleCancel, openModal: openRejectDocConfirmationModal, errorMsg: "", loading: loading, translator: translator })));
|
28488
28482
|
};
|
28489
28483
|
|
28490
|
-
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
|
28484
|
+
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";
|
28491
28485
|
styleInject(css_248z$1);
|
28492
28486
|
|
28493
28487
|
var ProgrammeDocuments = function (props) {
|
@@ -28734,7 +28728,7 @@ var ProgrammeDocuments = function (props) {
|
|
28734
28728
|
(designDocActionPermission || ministryLevelPermission) && (React.createElement(React.Fragment, null,
|
28735
28729
|
React.createElement(LikeOutlined, { onClick: function () {
|
28736
28730
|
return docAction(designDocId, DocumentStatus.ACCEPTED);
|
28737
|
-
}, className: "common-progress-icon", style: { color: "#976ED7"
|
28731
|
+
}, className: "common-progress-icon", style: { color: "#976ED7" } }),
|
28738
28732
|
React.createElement(DislikeOutlined, { onClick: function () {
|
28739
28733
|
setRejectDocData({ id: designDocId });
|
28740
28734
|
setActionInfo({
|
@@ -28745,8 +28739,8 @@ var ProgrammeDocuments = function (props) {
|
|
28745
28739
|
icon: React.createElement(DislikeOutlined, null),
|
28746
28740
|
});
|
28747
28741
|
setOpenRejectDocConfirmationModal(true);
|
28748
|
-
}, className: "common-progress-icon margin-left-1", style: { color: "#FD6F70"
|
28749
|
-
designDocStatus === DocumentStatus.ACCEPTED && (React.createElement(CheckCircleOutlined, { className: "common-progress-icon", style: { color: "#5DC380"
|
28742
|
+
}, className: "common-progress-icon margin-left-1", style: { color: "#FD6F70" } }))),
|
28743
|
+
designDocStatus === DocumentStatus.ACCEPTED && (React.createElement(CheckCircleOutlined, { className: "common-progress-icon", style: { color: "#5DC380" } })),
|
28750
28744
|
designDocStatus === DocumentStatus.REJECTED && (React.createElement(Tooltip, { arrowPointAtCenter: true, placement: "top", trigger: "hover", title: t("programme:rejectTip"), overlayClassName: "custom-tooltip" },
|
28751
28745
|
React.createElement(ExclamationCircleOutlined, { className: "common-progress-icon", style: { color: "#FD6F70" } })))),
|
28752
28746
|
designDocUrl !== "" && (React.createElement("div", { className: "time" },
|
@@ -28754,23 +28748,15 @@ var ProgrammeDocuments = function (props) {
|
|
28754
28748
|
" ~ " + designDocversion))),
|
28755
28749
|
React.createElement(Col, { span: 6, className: "field-value" }, designDocUrl !== "" ? (React.createElement("div", { className: "link" },
|
28756
28750
|
linkDocVisible(designDocStatus) && (React.createElement("a", { href: designDocUrl, target: "_blank", rel: "noopener noreferrer", download: true },
|
28757
|
-
React.createElement(BookOutlined, { className: "common-progress-icon", style: { color: "#3F3A47" } }))),
|
28751
|
+
React.createElement(BookOutlined, { className: "common-progress-icon margin-right-1", style: { color: "#3F3A47" } }))),
|
28758
28752
|
designDocStatus !== DocumentStatus.ACCEPTED && (React.createElement(React.Fragment, null,
|
28759
28753
|
React.createElement(Tooltip, { arrowPointAtCenter: true, placement: "top", trigger: "hover", title: (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.userRole) === Role.ViewOnly ||
|
28760
28754
|
(userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.companyRole) === CompanyRole.CERTIFIER
|
28761
28755
|
? t("programme:notAuthToUploadDoc")
|
28762
28756
|
: !uploadDocUserPermission(userInfoState, DocType.DESIGN_DOCUMENT, programmeOwnerId, ministryLevelPermission) && t("programme:orgNotAuth"), overlayClassName: "custom-tooltip" },
|
28763
28757
|
React.createElement(FileAddOutlined, { className: "common-progress-icon", style: uploadDocUserPermission(userInfoState, DocType.DESIGN_DOCUMENT, programmeOwnerId, ministryLevelPermission)
|
28764
|
-
? {
|
28765
|
-
|
28766
|
-
cursor: "pointer",
|
28767
|
-
margin: "0px 0px 1.5px 0px",
|
28768
|
-
}
|
28769
|
-
: {
|
28770
|
-
color: "#cacaca",
|
28771
|
-
cursor: "default",
|
28772
|
-
margin: "0px 0px 1.5px 0px",
|
28773
|
-
}, onClick: function () {
|
28758
|
+
? { color: "#3F3A47", cursor: "pointer", margin: "0px 0px 2.5px 0px" }
|
28759
|
+
: { color: "#cacaca", cursor: "default", margin: "0px 0px 2.5px 0px" }, onClick: function () {
|
28774
28760
|
return uploadDocUserPermission(userInfoState, DocType.DESIGN_DOCUMENT, programmeOwnerId, ministryLevelPermission) && handleDesignDocFileUpload();
|
28775
28761
|
} })),
|
28776
28762
|
React.createElement("input", { type: "file", ref: fileInputRef, style: { display: "none" }, accept: ".xls, .xlsx, .ppt, .pptx, .csv, .doc, .docx, .pdf, .png, .jpg", onChange: function (e) {
|
@@ -28783,16 +28769,8 @@ var ProgrammeDocuments = function (props) {
|
|
28783
28769
|
? t("programme:notAuthToUploadDoc")
|
28784
28770
|
: !uploadDocUserPermission(userInfoState, DocType.DESIGN_DOCUMENT, programmeOwnerId, ministryLevelPermission) && t("programme:orgNotAuth"), overlayClassName: "custom-tooltip" },
|
28785
28771
|
React.createElement(FileAddOutlined, { className: "common-progress-icon", style: uploadDocUserPermission(userInfoState, DocType.DESIGN_DOCUMENT, programmeOwnerId, ministryLevelPermission)
|
28786
|
-
? {
|
28787
|
-
|
28788
|
-
cursor: "pointer",
|
28789
|
-
margin: "0px 0px 1.5px 0px",
|
28790
|
-
}
|
28791
|
-
: {
|
28792
|
-
color: "#cacaca",
|
28793
|
-
cursor: "default",
|
28794
|
-
margin: "0px 0px 1.5px 0px",
|
28795
|
-
}, onClick: function () {
|
28772
|
+
? { color: "#3F3A47", cursor: "pointer", margin: "0px 0px 2.5px 0px" }
|
28773
|
+
: { color: "#cacaca", cursor: "default", margin: "0px 0px 2.5px 0px" }, onClick: function () {
|
28796
28774
|
return uploadDocUserPermission(userInfoState, DocType.DESIGN_DOCUMENT, programmeOwnerId, ministryLevelPermission) && handleDesignDocFileUpload();
|
28797
28775
|
} })),
|
28798
28776
|
React.createElement("input", { type: "file", ref: fileInputRef, style: { display: "none" }, accept: ".xls, .xlsx, .ppt, .pptx, .csv, .doc, .docx, .pdf, .png, .jpg", onChange: function (e) {
|
@@ -28818,7 +28796,7 @@ var ProgrammeDocuments = function (props) {
|
|
28818
28796
|
(companyRolePermission || ministryLevelPermission) && (React.createElement(React.Fragment, null,
|
28819
28797
|
React.createElement(LikeOutlined, { onClick: function () {
|
28820
28798
|
return docAction(methDocId, DocumentStatus.ACCEPTED);
|
28821
|
-
}, className: "common-progress-icon", style: { color: "#976ED7"
|
28799
|
+
}, className: "common-progress-icon", style: { color: "#976ED7" } }),
|
28822
28800
|
React.createElement(DislikeOutlined, { onClick: function () {
|
28823
28801
|
setRejectDocData({ id: methDocId });
|
28824
28802
|
setActionInfo({
|
@@ -28829,8 +28807,8 @@ var ProgrammeDocuments = function (props) {
|
|
28829
28807
|
icon: React.createElement(DislikeOutlined, null),
|
28830
28808
|
});
|
28831
28809
|
setOpenRejectDocConfirmationModal(true);
|
28832
|
-
}, className: "common-progress-icon margin-left-1", style: { color: "#FD6F70"
|
28833
|
-
methodDocStatus === DocumentStatus.ACCEPTED && (React.createElement(CheckCircleOutlined, { className: "common-progress-icon", style: { color: "#5DC380"
|
28810
|
+
}, className: "common-progress-icon margin-left-1", style: { color: "#FD6F70" } }))),
|
28811
|
+
methodDocStatus === DocumentStatus.ACCEPTED && (React.createElement(CheckCircleOutlined, { className: "common-progress-icon", style: { color: "#5DC380" } })),
|
28834
28812
|
methodDocStatus === DocumentStatus.REJECTED && (React.createElement(Tooltip, { arrowPointAtCenter: true, placement: "top", trigger: "hover", title: t("programme:rejectTip"), overlayClassName: "custom-tooltip" },
|
28835
28813
|
React.createElement(ExclamationCircleOutlined, { className: "common-progress-icon", style: { color: "#FD6F70" } })))),
|
28836
28814
|
methodologyDocUrl !== "" && (React.createElement("div", { className: "time" },
|
@@ -28838,22 +28816,15 @@ var ProgrammeDocuments = function (props) {
|
|
28838
28816
|
" ~ " + methDocversion))),
|
28839
28817
|
React.createElement(Col, { span: 6, className: "field-value" }, methodologyDocUrl !== "" ? (React.createElement("div", { className: "link" },
|
28840
28818
|
linkDocVisible(methodDocStatus) && (React.createElement("a", { href: methodologyDocUrl, target: "_blank", rel: "noopener noreferrer", download: true },
|
28841
|
-
React.createElement(BookOutlined, { className: "common-progress-icon", style: { color: "#3F3A47" } }))),
|
28819
|
+
React.createElement(BookOutlined, { className: "common-progress-icon margin-right-1", style: { color: "#3F3A47" } }))),
|
28842
28820
|
methodDocStatus !== DocumentStatus.ACCEPTED && (React.createElement(React.Fragment, null,
|
28843
28821
|
React.createElement(Tooltip, { arrowPointAtCenter: true, placement: "top", trigger: "hover", title: (userInfoState === null || userInfoState === void 0 ? void 0 : userInfoState.userRole) === Role.ViewOnly
|
28844
28822
|
? t("programme:notAuthToUploadDoc")
|
28845
28823
|
: !uploadDocUserPermission(userInfoState, DocType.METHODOLOGY_DOCUMENT, programmeOwnerId, ministryLevelPermission) && t("programme:orgNotAuth"), overlayClassName: "custom-tooltip" },
|
28846
28824
|
React.createElement(FileAddOutlined, { className: "common-progress-icon", style: designDocStatus === DocumentStatus.ACCEPTED &&
|
28847
28825
|
uploadDocUserPermission(userInfoState, DocType.METHODOLOGY_DOCUMENT, programmeOwnerId, ministryLevelPermission)
|
28848
|
-
? {
|
28849
|
-
|
28850
|
-
cursor: "pointer",
|
28851
|
-
margin: "0px 0px 1.5px 0px",
|
28852
|
-
}
|
28853
|
-
: {
|
28854
|
-
color: "#cacaca",
|
28855
|
-
margin: "0px 0px 1.5px 0px",
|
28856
|
-
}, onClick: function () {
|
28826
|
+
? { color: "#3F3A47", cursor: "pointer", margin: "0px 0px 2.5px 0px" }
|
28827
|
+
: { color: "#cacaca", margin: "0px 0px 2.5px 0px" }, onClick: function () {
|
28857
28828
|
return designDocStatus === DocumentStatus.ACCEPTED &&
|
28858
28829
|
uploadDocUserPermission(userInfoState, DocType.METHODOLOGY_DOCUMENT, programmeOwnerId, ministryLevelPermission) &&
|
28859
28830
|
handleMethodologyFileUpload();
|
@@ -28872,16 +28843,8 @@ var ProgrammeDocuments = function (props) {
|
|
28872
28843
|
: t("programme:orgNotAuth"), overlayClassName: "custom-tooltip" },
|
28873
28844
|
React.createElement(FileAddOutlined, { className: "common-progress-icon", style: designDocStatus === DocumentStatus.ACCEPTED &&
|
28874
28845
|
uploadDocUserPermission(userInfoState, DocType.METHODOLOGY_DOCUMENT, programmeOwnerId, ministryLevelPermission)
|
28875
|
-
? {
|
28876
|
-
|
28877
|
-
cursor: "pointer",
|
28878
|
-
margin: "0px 0px 1.5px 0px",
|
28879
|
-
}
|
28880
|
-
: {
|
28881
|
-
color: "#cacaca",
|
28882
|
-
cursor: "default",
|
28883
|
-
margin: "0px 0px 1.5px 0px",
|
28884
|
-
}, onClick: function () {
|
28846
|
+
? { color: "#3F3A47", cursor: "pointer", margin: "0px 0px 2.5px 0px" }
|
28847
|
+
: { color: "#cacaca", cursor: "default", margin: "0px 0px 2.5px 0px" }, onClick: function () {
|
28885
28848
|
return designDocStatus === DocumentStatus.ACCEPTED &&
|
28886
28849
|
uploadDocUserPermission(userInfoState, DocType.METHODOLOGY_DOCUMENT, programmeOwnerId, ministryLevelPermission) &&
|
28887
28850
|
handleMethodologyFileUpload();
|
@@ -28910,7 +28873,7 @@ var ProgrammeDocuments = function (props) {
|
|
28910
28873
|
(ministryLevelPermission || companyRolePermission) && (React.createElement(React.Fragment, null,
|
28911
28874
|
React.createElement(LikeOutlined, { onClick: function () {
|
28912
28875
|
return docAction(impactAssessmentId, DocumentStatus.ACCEPTED);
|
28913
|
-
}, className: "common-progress-icon", style: { color: "#976ED7"
|
28876
|
+
}, className: "common-progress-icon", style: { color: "#976ED7" } }),
|
28914
28877
|
React.createElement(DislikeOutlined, { onClick: function () {
|
28915
28878
|
setRejectDocData({ id: impactAssessmentId });
|
28916
28879
|
setActionInfo({
|
@@ -28921,8 +28884,8 @@ var ProgrammeDocuments = function (props) {
|
|
28921
28884
|
icon: React.createElement(DislikeOutlined, null),
|
28922
28885
|
});
|
28923
28886
|
setOpenRejectDocConfirmationModal(true);
|
28924
|
-
}, className: "common-progress-icon margin-left-1", style: { color: "#FD6F70"
|
28925
|
-
impactAssessmentStatus === DocumentStatus.ACCEPTED && (React.createElement(CheckCircleOutlined, { className: "common-progress-icon", style: { color: "#5DC380"
|
28887
|
+
}, className: "common-progress-icon margin-left-1", style: { color: "#FD6F70" } }))),
|
28888
|
+
impactAssessmentStatus === DocumentStatus.ACCEPTED && (React.createElement(CheckCircleOutlined, { className: "common-progress-icon", style: { color: "#5DC380" } })),
|
28926
28889
|
impactAssessmentStatus === DocumentStatus.REJECTED && (React.createElement(Tooltip, { arrowPointAtCenter: true, placement: "top", trigger: "hover", title: t("programme:rejectTip"), overlayClassName: "custom-tooltip" },
|
28927
28890
|
React.createElement(ExclamationCircleOutlined, { className: "common-progress-icon", style: { color: "#FD6F70" } })))),
|
28928
28891
|
impactAssessmentUrl !== "" && (React.createElement("div", { className: "time" },
|
@@ -28930,22 +28893,13 @@ var ProgrammeDocuments = function (props) {
|
|
28930
28893
|
" ~ " + impactAssessmentversion))),
|
28931
28894
|
React.createElement(Col, { span: 6, className: "field-value" }, impactAssessmentUrl !== "" ? (React.createElement("div", { className: "link" },
|
28932
28895
|
linkDocVisible(impactAssessmentStatus) && (React.createElement("a", { href: impactAssessmentUrl, target: "_blank", rel: "noopener noreferrer", download: true },
|
28933
|
-
React.createElement("
|
28934
|
-
React.createElement(BookOutlined, { className: "common-progress-icon", style: { color: "#3F3A47" } })))),
|
28896
|
+
React.createElement(BookOutlined, { className: "common-progress-icon margin-right-1", style: { color: "#3F3A47" } }))),
|
28935
28897
|
impactAssessmentStatus !== DocumentStatus.ACCEPTED && (React.createElement(React.Fragment, null,
|
28936
28898
|
React.createElement(Tooltip, { arrowPointAtCenter: true, placement: "top", trigger: "hover", title: impactAssessmentToolTipTitle, overlayClassName: "custom-tooltip" },
|
28937
28899
|
React.createElement(FileAddOutlined, { className: "common-progress-icon", style: uploadImpactAssessmentDocUserPermission &&
|
28938
28900
|
!isProjectRejected
|
28939
|
-
? {
|
28940
|
-
|
28941
|
-
cursor: "pointer",
|
28942
|
-
margin: "0px 0px 1.5px 0px",
|
28943
|
-
}
|
28944
|
-
: {
|
28945
|
-
color: "#cacaca",
|
28946
|
-
cursor: "default",
|
28947
|
-
margin: "0px 0px 1.5px 0px",
|
28948
|
-
}, onClick: function () {
|
28901
|
+
? { color: "#3F3A47", cursor: "pointer", margin: "0px 0px 2.5px 0px" }
|
28902
|
+
: { color: "#cacaca", cursor: "default", margin: "0px 0px 2.5px 0px" }, onClick: function () {
|
28949
28903
|
return uploadImpactAssessmentDocUserPermission &&
|
28950
28904
|
!isProjectRejected &&
|
28951
28905
|
handleImpactAssessmentFileUpload();
|
@@ -28958,16 +28912,8 @@ var ProgrammeDocuments = function (props) {
|
|
28958
28912
|
React.createElement(Tooltip, { arrowPointAtCenter: true, placement: "top", trigger: "hover", title: impactAssessmentToolTipTitle, overlayClassName: "custom-tooltip" },
|
28959
28913
|
React.createElement(FileAddOutlined, { className: "common-progress-icon", style: uploadImpactAssessmentDocUserPermission &&
|
28960
28914
|
!isProjectRejected
|
28961
|
-
? {
|
28962
|
-
|
28963
|
-
cursor: "pointer",
|
28964
|
-
margin: "0px 0px 1.5px 0px",
|
28965
|
-
}
|
28966
|
-
: {
|
28967
|
-
color: "#cacaca",
|
28968
|
-
cursor: "default",
|
28969
|
-
margin: "0px 0px 1.5px 0px",
|
28970
|
-
}, onClick: function () {
|
28915
|
+
? { color: "#3F3A47", cursor: "pointer", margin: "0px 0px 2.5px 0px" }
|
28916
|
+
: { color: "#cacaca", cursor: "default", margin: "0px 0px 2.5px 0px" }, onClick: function () {
|
28971
28917
|
return uploadImpactAssessmentDocUserPermission &&
|
28972
28918
|
!isProjectRejected &&
|
28973
28919
|
handleImpactAssessmentFileUpload();
|