@undp/carbon-library 1.0.135-ghg-inventory.4 → 1.0.135-ghg-inventory.5
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/index.js +3 -3
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +3 -3
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
package/dist/esm/index.js
CHANGED
@@ -26578,7 +26578,7 @@ var GHGEmissionsComponent = function (props) {
|
|
26578
26578
|
var encodedUri = encodeURI("data:text/csv;charset=utf-8,".concat(csvContent));
|
26579
26579
|
var link = document.createElement('a');
|
26580
26580
|
link.setAttribute('href', encodedUri);
|
26581
|
-
link.setAttribute('download', "GHG-Reporting
|
26581
|
+
link.setAttribute('download', "GHG-Reporting Emissions_".concat(dataToDownload.year, "_V").concat(dataToDownload.version, ".csv"));
|
26582
26582
|
document.body.appendChild(link);
|
26583
26583
|
link.click();
|
26584
26584
|
};
|
@@ -26795,7 +26795,7 @@ var GHGEmissionsComponent = function (props) {
|
|
26795
26795
|
React.createElement(Row, { className: "add-new-upload-file-label" }, t("ghgInventory:emissionRemovalDocument")),
|
26796
26796
|
React.createElement(Row, null,
|
26797
26797
|
React.createElement(Col, { xl: 15, md: 15, className: "view-download-file-name-input" },
|
26798
|
-
React.createElement(Input, { value: "GHG-Reporting
|
26798
|
+
React.createElement(Input, { value: "GHG-Reporting Emissions_".concat(tabData.year, "_V").concat(tabData.version, ".csv"), disabled: true })),
|
26799
26799
|
React.createElement(Col, { xl: 5, md: 5, className: "view-download-file-inner-col" },
|
26800
26800
|
React.createElement(Button, { icon: React.createElement(DownloadOutlined, null), onClick: function () { downloadCSV(tabData); } }, t("ghgInventory:download")))))),
|
26801
26801
|
React.createElement(Row, { gutter: 16 },
|
@@ -28198,7 +28198,7 @@ var GHGProjectionsComponent = function (props) {
|
|
28198
28198
|
React.createElement(Row, { className: "add-new-upload-file-label" }, t("ghgInventory:emissionRemovalDocument")),
|
28199
28199
|
React.createElement(Row, null,
|
28200
28200
|
React.createElement(Col, { xl: 15, md: 15, className: "view-download-file-name-input" },
|
28201
|
-
React.createElement(Input, { value: "GHG-Reporting
|
28201
|
+
React.createElement(Input, { value: "GHG-Reporting Projections_".concat(tabData.year, "_V").concat(tabData.version, ".csv"), disabled: true })),
|
28202
28202
|
React.createElement(Col, { xl: 5, md: 5, className: "view-download-file-inner-col" },
|
28203
28203
|
React.createElement(Button, { icon: React.createElement(DownloadOutlined, null), onClick: function () { downloadCSV(tabData); } }, t("ghgInventory:download")))))),
|
28204
28204
|
React.createElement(Row, { gutter: 16 },
|