@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/cjs/index.js
CHANGED
@@ -21882,13 +21882,15 @@ var NdcActionViewComponent = function (props) {
|
|
21882
21882
|
((_b = ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.agricultureProperties) === null || _b === void 0 ? void 0 : _b.landAreaUnit);
|
21883
21883
|
}
|
21884
21884
|
if ((ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.typeOfMitigation) === exports.MitigationTypes.AGRICULTURE &&
|
21885
|
-
(ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.subTypeOfMitigation) ===
|
21885
|
+
(ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.subTypeOfMitigation) ===
|
21886
|
+
exports.MitigationSubTypes.SOIL_ENRICHMENT_BIOCHAR &&
|
21886
21887
|
(ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.creditCalculationProperties)) {
|
21887
21888
|
mitigationDetails[t("ndcAction:viewMitigationWeight")] =
|
21888
|
-
addCommSep((_c = ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.creditCalculationProperties) === null || _c === void 0 ? void 0 : _c.weight) +
|
21889
|
+
addCommSep((_c = ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.creditCalculationProperties) === null || _c === void 0 ? void 0 : _c.weight) + "t";
|
21889
21890
|
}
|
21890
21891
|
if ((ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.typeOfMitigation) === exports.MitigationTypes.SOLAR &&
|
21891
|
-
(ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.subTypeOfMitigation) ===
|
21892
|
+
(ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.subTypeOfMitigation) ===
|
21893
|
+
exports.MitigationSubTypes.SOLAR_PHOTOVOLTAICS_PV &&
|
21892
21894
|
(ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.solarProperties)) {
|
21893
21895
|
mitigationDetails[t("ndcAction:viewMitigationEnergyGeneration")] =
|
21894
21896
|
addCommSep((_d = ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.solarProperties) === null || _d === void 0 ? void 0 : _d.energyGeneration) +
|
@@ -21897,15 +21899,17 @@ var NdcActionViewComponent = function (props) {
|
|
21897
21899
|
(_f = ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.solarProperties) === null || _f === void 0 ? void 0 : _f.consumerGroup;
|
21898
21900
|
}
|
21899
21901
|
if ((ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.typeOfMitigation) === exports.MitigationTypes.SOLAR &&
|
21900
|
-
((ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.subTypeOfMitigation) ===
|
21901
|
-
|
21902
|
+
((ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.subTypeOfMitigation) ===
|
21903
|
+
exports.MitigationSubTypes.SOLAR_WATER_PUMPING_OFF_GRID ||
|
21904
|
+
(ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.subTypeOfMitigation) ===
|
21905
|
+
exports.MitigationSubTypes.SOLAR_WATER_PUMPING_ON_GRID) &&
|
21902
21906
|
(ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.creditCalculationProperties)) {
|
21903
21907
|
mitigationDetails[t("ndcAction:viewMitigationEnergyGeneration")] =
|
21904
|
-
addCommSep((_g = ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.creditCalculationProperties) === null || _g === void 0 ? void 0 : _g.energyGeneration) +
|
21905
|
-
((_h = ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.creditCalculationProperties) === null || _h === void 0 ? void 0 : _h.energyGenerationUnit);
|
21908
|
+
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);
|
21906
21909
|
}
|
21907
21910
|
if ((ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.typeOfMitigation) === exports.MitigationTypes.EE_HOUSEHOLDS &&
|
21908
|
-
(ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.subTypeOfMitigation) ===
|
21911
|
+
(ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.subTypeOfMitigation) ===
|
21912
|
+
exports.MitigationSubTypes.STOVES_HOUSES_IN_NAMIBIA &&
|
21909
21913
|
(ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.creditCalculationProperties)) {
|
21910
21914
|
mitigationDetails[t("ndcAction:viewMitigationNoOfDays")] =
|
21911
21915
|
(_j = ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.creditCalculationProperties) === null || _j === void 0 ? void 0 : _j.numberOfDays;
|
@@ -22089,22 +22093,23 @@ var NdcActionViewComponent = function (props) {
|
|
22089
22093
|
(monitoringReportData === null || monitoringReportData === void 0 ? void 0 : monitoringReportData.txTime) && (React.createElement("div", { className: "time" },
|
22090
22094
|
moment(parseInt(monitoringReportData === null || monitoringReportData === void 0 ? void 0 : monitoringReportData.txTime)).format("DD MMMM YYYY @ HH:mm"),
|
22091
22095
|
" ~ " + monitoringReportversion)))),
|
22092
|
-
React.createElement(
|
22093
|
-
|
22094
|
-
|
22095
|
-
|
22096
|
-
|
22097
|
-
|
22098
|
-
|
22099
|
-
|
22100
|
-
|
22101
|
-
(
|
22102
|
-
|
22103
|
-
|
22104
|
-
|
22105
|
-
|
22106
|
-
|
22107
|
-
|
22096
|
+
React.createElement(antd.Row, null,
|
22097
|
+
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
|
22098
|
+
? t("programme:notAuthToUploadDoc")
|
22099
|
+
: uploadDocUserPermission(userInfoState, exports.DocType.MONITORING_REPORT, programmeOwnerId)
|
22100
|
+
? !canUploadMonitorReport &&
|
22101
|
+
t("programme:programmeNotAuth")
|
22102
|
+
: t("programme:orgNotAuth"), overlayClassName: "custom-tooltip" },
|
22103
|
+
React.createElement(icons.FileAddOutlined, null)))),
|
22104
|
+
(monitoringReportData === null || monitoringReportData === void 0 ? void 0 : monitoringReportData.url) && (React.createElement(React.Fragment, null,
|
22105
|
+
React.createElement("div", { className: "icon" },
|
22106
|
+
(monitoringReportData === null || monitoringReportData === void 0 ? void 0 : monitoringReportData.status) ===
|
22107
|
+
exports.DocumentStatus.ACCEPTED && (React.createElement(icons.CheckCircleOutlined, { className: "common-progress-icon", style: { color: "#5DC380" } })),
|
22108
|
+
(monitoringReportData === null || monitoringReportData === void 0 ? void 0 : monitoringReportData.status) ===
|
22109
|
+
exports.DocumentStatus.REJECTED && (React.createElement(icons.ExclamationCircleOutlined, { className: "common-progress-icon", style: { color: "#FD6F70" } }))),
|
22110
|
+
React.createElement("div", { className: "link mg-left-1" }, (monitoringReportData === null || monitoringReportData === void 0 ? void 0 : monitoringReportData.url) &&
|
22111
|
+
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 },
|
22112
|
+
React.createElement(icons.BookOutlined, { className: "common-progress-icon margin-right-1", style: { color: "#3F3A47" } })))))))),
|
22108
22113
|
React.createElement("div", { className: "report-details" },
|
22109
22114
|
React.createElement("div", { className: "report-type" },
|
22110
22115
|
React.createElement("div", { className: "name-time-container" },
|
@@ -22113,23 +22118,24 @@ var NdcActionViewComponent = function (props) {
|
|
22113
22118
|
: "empty" }, t("programme:verificationReport")),
|
22114
22119
|
(verificationReportData === null || verificationReportData === void 0 ? void 0 : verificationReportData.txTime) && (React.createElement("div", { className: "time" },
|
22115
22120
|
moment(parseInt(verificationReportData === null || verificationReportData === void 0 ? void 0 : verificationReportData.txTime)).format("DD MMMM YYYY @ HH:mm"),
|
22116
|
-
" ~ " + verificationReportVersion))),
|
22121
|
+
" ~ " + verificationReportVersion)))),
|
22122
|
+
React.createElement(antd.Row, null,
|
22117
22123
|
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
|
22118
22124
|
? t("programme:notAuthToUploadDoc")
|
22119
22125
|
: uploadDocUserPermission(userInfoState, exports.DocType.VERIFICATION_REPORT, programmeOwnerId)
|
22120
22126
|
? !monitoringReportAccepted &&
|
22121
22127
|
t("programme:monitoringRepNotApproved")
|
22122
22128
|
: t("programme:notAuthToUploadDoc"), overlayClassName: "custom-tooltip" },
|
22123
|
-
React.createElement(icons.FileAddOutlined, null))))
|
22124
|
-
|
22125
|
-
|
22126
|
-
|
22127
|
-
|
22128
|
-
|
22129
|
-
|
22130
|
-
|
22131
|
-
|
22132
|
-
|
22129
|
+
React.createElement(icons.FileAddOutlined, null)))),
|
22130
|
+
(verificationReportData === null || verificationReportData === void 0 ? void 0 : verificationReportData.url) && (React.createElement(React.Fragment, null,
|
22131
|
+
React.createElement("div", { className: "icon" },
|
22132
|
+
(verificationReportData === null || verificationReportData === void 0 ? void 0 : verificationReportData.status) ===
|
22133
|
+
exports.DocumentStatus.ACCEPTED && (React.createElement(icons.CheckCircleOutlined, { className: "common-progress-icon", style: { color: "#5DC380" } })),
|
22134
|
+
(verificationReportData === null || verificationReportData === void 0 ? void 0 : verificationReportData.status) ===
|
22135
|
+
exports.DocumentStatus.REJECTED && (React.createElement(icons.ExclamationCircleOutlined, { className: "common-progress-icon", style: { color: "#FD6F70" } }))),
|
22136
|
+
React.createElement("div", { className: "link mg-left-1" }, (verificationReportData === null || verificationReportData === void 0 ? void 0 : verificationReportData.url) &&
|
22137
|
+
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 },
|
22138
|
+
React.createElement(icons.BookOutlined, { className: "common-progress-icon margin-right-1", style: { color: "#3F3A47" } }))))))))))))),
|
22133
22139
|
((ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.action) === exports.NdcActionTypes.Mitigation ||
|
22134
22140
|
(ndcActionDetails === null || ndcActionDetails === void 0 ? void 0 : ndcActionDetails.action) === exports.NdcActionTypes.CrossCutting) && (React.createElement(antd.Row, null,
|
22135
22141
|
React.createElement(antd.Col, { lg: 24, className: "gutter-row" },
|