@undp/carbon-library 1.0.274-CARBON-359.1 → 1.0.274-CARBON-359.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.js +41 -35
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +41 -35
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
package/dist/esm/index.js
CHANGED
@@ -21862,13 +21862,15 @@ 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) ===
|
21865
|
+
(ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.subTypeOfMitigation) ===
|
21866
|
+
MitigationSubTypes.SOIL_ENRICHMENT_BIOCHAR &&
|
21866
21867
|
(ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.creditCalculationProperties)) {
|
21867
21868
|
mitigationDetails[t("ndcAction:viewMitigationWeight")] =
|
21868
|
-
addCommSep((_c = ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.creditCalculationProperties) === null || _c === void 0 ? void 0 : _c.weight) +
|
21869
|
+
addCommSep((_c = ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.creditCalculationProperties) === null || _c === void 0 ? void 0 : _c.weight) + "t";
|
21869
21870
|
}
|
21870
21871
|
if ((ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.typeOfMitigation) === MitigationTypes.SOLAR &&
|
21871
|
-
(ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.subTypeOfMitigation) ===
|
21872
|
+
(ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.subTypeOfMitigation) ===
|
21873
|
+
MitigationSubTypes.SOLAR_PHOTOVOLTAICS_PV &&
|
21872
21874
|
(ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.solarProperties)) {
|
21873
21875
|
mitigationDetails[t("ndcAction:viewMitigationEnergyGeneration")] =
|
21874
21876
|
addCommSep((_d = ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.solarProperties) === null || _d === void 0 ? void 0 : _d.energyGeneration) +
|
@@ -21877,15 +21879,17 @@ var NdcActionViewComponent = function (props) {
|
|
21877
21879
|
(_f = ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.solarProperties) === null || _f === void 0 ? void 0 : _f.consumerGroup;
|
21878
21880
|
}
|
21879
21881
|
if ((ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.typeOfMitigation) === MitigationTypes.SOLAR &&
|
21880
|
-
((ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.subTypeOfMitigation) ===
|
21881
|
-
|
21882
|
+
((ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.subTypeOfMitigation) ===
|
21883
|
+
MitigationSubTypes.SOLAR_WATER_PUMPING_OFF_GRID ||
|
21884
|
+
(ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.subTypeOfMitigation) ===
|
21885
|
+
MitigationSubTypes.SOLAR_WATER_PUMPING_ON_GRID) &&
|
21882
21886
|
(ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.creditCalculationProperties)) {
|
21883
21887
|
mitigationDetails[t("ndcAction:viewMitigationEnergyGeneration")] =
|
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);
|
21888
|
+
addCommSep((_g = ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.creditCalculationProperties) === null || _g === void 0 ? void 0 : _g.energyGeneration) + ((_h = ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.creditCalculationProperties) === null || _h === void 0 ? void 0 : _h.energyGenerationUnit);
|
21886
21889
|
}
|
21887
21890
|
if ((ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.typeOfMitigation) === MitigationTypes.EE_HOUSEHOLDS &&
|
21888
|
-
(ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.subTypeOfMitigation) ===
|
21891
|
+
(ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.subTypeOfMitigation) ===
|
21892
|
+
MitigationSubTypes.STOVES_HOUSES_IN_NAMIBIA &&
|
21889
21893
|
(ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.creditCalculationProperties)) {
|
21890
21894
|
mitigationDetails[t("ndcAction:viewMitigationNoOfDays")] =
|
21891
21895
|
(_j = ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.creditCalculationProperties) === null || _j === void 0 ? void 0 : _j.numberOfDays;
|
@@ -22069,22 +22073,23 @@ var NdcActionViewComponent = function (props) {
|
|
22069
22073
|
(monitoringReportData === null || monitoringReportData === void 0 ? void 0 : monitoringReportData.txTime) && (React.createElement("div", { className: "time" },
|
22070
22074
|
moment(parseInt(monitoringReportData === null || monitoringReportData === void 0 ? void 0 : monitoringReportData.txTime)).format("DD MMMM YYYY @ HH:mm"),
|
22071
22075
|
" ~ " + monitoringReportversion)))),
|
22072
|
-
React.createElement(
|
22073
|
-
|
22074
|
-
|
22075
|
-
|
22076
|
-
|
22077
|
-
|
22078
|
-
|
22079
|
-
|
22080
|
-
|
22081
|
-
(
|
22082
|
-
|
22083
|
-
|
22084
|
-
|
22085
|
-
|
22086
|
-
|
22087
|
-
|
22076
|
+
React.createElement(Row, null,
|
22077
|
+
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
|
+
? t("programme:notAuthToUploadDoc")
|
22079
|
+
: uploadDocUserPermission(userInfoState, DocType.MONITORING_REPORT, programmeOwnerId)
|
22080
|
+
? !canUploadMonitorReport &&
|
22081
|
+
t("programme:programmeNotAuth")
|
22082
|
+
: t("programme:orgNotAuth"), overlayClassName: "custom-tooltip" },
|
22083
|
+
React.createElement(FileAddOutlined, null)))),
|
22084
|
+
(monitoringReportData === null || monitoringReportData === void 0 ? void 0 : monitoringReportData.url) && (React.createElement(React.Fragment, null,
|
22085
|
+
React.createElement("div", { className: "icon" },
|
22086
|
+
(monitoringReportData === null || monitoringReportData === void 0 ? void 0 : monitoringReportData.status) ===
|
22087
|
+
DocumentStatus.ACCEPTED && (React.createElement(CheckCircleOutlined, { className: "common-progress-icon", style: { color: "#5DC380" } })),
|
22088
|
+
(monitoringReportData === null || monitoringReportData === void 0 ? void 0 : monitoringReportData.status) ===
|
22089
|
+
DocumentStatus.REJECTED && (React.createElement(ExclamationCircleOutlined, { className: "common-progress-icon", style: { color: "#FD6F70" } }))),
|
22090
|
+
React.createElement("div", { className: "link mg-left-1" }, (monitoringReportData === null || monitoringReportData === void 0 ? void 0 : monitoringReportData.url) &&
|
22091
|
+
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 },
|
22092
|
+
React.createElement(BookOutlined, { className: "common-progress-icon margin-right-1", style: { color: "#3F3A47" } })))))))),
|
22088
22093
|
React.createElement("div", { className: "report-details" },
|
22089
22094
|
React.createElement("div", { className: "report-type" },
|
22090
22095
|
React.createElement("div", { className: "name-time-container" },
|
@@ -22093,23 +22098,24 @@ var NdcActionViewComponent = function (props) {
|
|
22093
22098
|
: "empty" }, t("programme:verificationReport")),
|
22094
22099
|
(verificationReportData === null || verificationReportData === void 0 ? void 0 : verificationReportData.txTime) && (React.createElement("div", { className: "time" },
|
22095
22100
|
moment(parseInt(verificationReportData === null || verificationReportData === void 0 ? void 0 : verificationReportData.txTime)).format("DD MMMM YYYY @ HH:mm"),
|
22096
|
-
" ~ " + verificationReportVersion))),
|
22101
|
+
" ~ " + verificationReportVersion)))),
|
22102
|
+
React.createElement(Row, null,
|
22097
22103
|
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
|
22098
22104
|
? t("programme:notAuthToUploadDoc")
|
22099
22105
|
: uploadDocUserPermission(userInfoState, DocType.VERIFICATION_REPORT, programmeOwnerId)
|
22100
22106
|
? !monitoringReportAccepted &&
|
22101
22107
|
t("programme:monitoringRepNotApproved")
|
22102
22108
|
: t("programme:notAuthToUploadDoc"), overlayClassName: "custom-tooltip" },
|
22103
|
-
React.createElement(FileAddOutlined, null))))
|
22104
|
-
|
22105
|
-
|
22106
|
-
|
22107
|
-
|
22108
|
-
|
22109
|
-
|
22110
|
-
|
22111
|
-
|
22112
|
-
|
22109
|
+
React.createElement(FileAddOutlined, null)))),
|
22110
|
+
(verificationReportData === null || verificationReportData === void 0 ? void 0 : verificationReportData.url) && (React.createElement(React.Fragment, null,
|
22111
|
+
React.createElement("div", { className: "icon" },
|
22112
|
+
(verificationReportData === null || verificationReportData === void 0 ? void 0 : verificationReportData.status) ===
|
22113
|
+
DocumentStatus.ACCEPTED && (React.createElement(CheckCircleOutlined, { className: "common-progress-icon", style: { color: "#5DC380" } })),
|
22114
|
+
(verificationReportData === null || verificationReportData === void 0 ? void 0 : verificationReportData.status) ===
|
22115
|
+
DocumentStatus.REJECTED && (React.createElement(ExclamationCircleOutlined, { className: "common-progress-icon", style: { color: "#FD6F70" } }))),
|
22116
|
+
React.createElement("div", { className: "link mg-left-1" }, (verificationReportData === null || verificationReportData === void 0 ? void 0 : verificationReportData.url) &&
|
22117
|
+
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 },
|
22118
|
+
React.createElement(BookOutlined, { className: "common-progress-icon margin-right-1", style: { color: "#3F3A47" } }))))))))))))),
|
22113
22119
|
((ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.action) === NdcActionTypes.Mitigation ||
|
22114
22120
|
(ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.action) === NdcActionTypes.CrossCutting) && (React.createElement(Row, null,
|
22115
22121
|
React.createElement(Col, { lg: 24, className: "gutter-row" },
|