@undp/carbon-library 1.0.135-ghg-inventory.12.16 → 1.0.135-ghg-inventory.12.18
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/index.js +83 -29
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +83 -29
- package/dist/esm/index.js.map +1 -1
- package/dist/locales/i18n/ndc/en.json +1 -1
- package/dist/locales/i18n/view/en.json +7 -3
- package/package.json +1 -1
package/dist/esm/index.js
CHANGED
@@ -26439,7 +26439,7 @@ var NdcDetailsComponent = function (props) {
|
|
26439
26439
|
editable: true,
|
26440
26440
|
width: "50%",
|
26441
26441
|
render: function (_, record) { return (React.createElement(React.Fragment, null, record.nationalPlanObj ? (React.createElement(Space, { size: "middle" },
|
26442
|
-
React.createElement("span", null, record.nationalPlanObj))) : (React.createElement("input", { placeholder: "Please add
|
26442
|
+
React.createElement("span", null, record.nationalPlanObj))) : (React.createElement("input", { placeholder: "Please add Programmes", className: "ant-input", type: "text" })))); },
|
26443
26443
|
},
|
26444
26444
|
{
|
26445
26445
|
title: t("ndc:ndcColumnsKpi"),
|
@@ -26452,14 +26452,14 @@ var NdcDetailsComponent = function (props) {
|
|
26452
26452
|
React.createElement("span", null, record.kpi))) : (React.createElement("input", { placeholder: "Enter Kpi", className: "ant-input", type: "text" })))); },
|
26453
26453
|
},
|
26454
26454
|
{
|
26455
|
-
title: "
|
26455
|
+
title: "Government Department",
|
26456
26456
|
dataIndex: "ministry",
|
26457
26457
|
key: "ministry",
|
26458
26458
|
align: "left",
|
26459
26459
|
editable: true,
|
26460
26460
|
width: "40%",
|
26461
26461
|
render: function (_, record) { return (React.createElement(React.Fragment, null, record.nationalPlanObj ? (React.createElement(Space, { size: "middle" },
|
26462
|
-
React.createElement("span", null, record.ministry))) : (React.createElement("input", { placeholder: "Please add the
|
26462
|
+
React.createElement("span", null, record.ministry))) : (React.createElement("input", { placeholder: "Please add the Government Department", className: "ant-input", type: "text" })))); },
|
26463
26463
|
},
|
26464
26464
|
];
|
26465
26465
|
var columns = defaultColumns.map(function (col) {
|
@@ -27727,8 +27727,12 @@ var NdcActionBody = function (props) {
|
|
27727
27727
|
modified_1 = true;
|
27728
27728
|
var docAdded = false;
|
27729
27729
|
for (var _i = 0, _a = action.projectMaterial; _i < _a.length; _i++) {
|
27730
|
-
var
|
27731
|
-
|
27730
|
+
var documentDetails = _a[_i];
|
27731
|
+
var document_1 = void 0;
|
27732
|
+
documentDetails.url
|
27733
|
+
? (document_1 = documentDetails.url)
|
27734
|
+
: (document_1 = documentDetails);
|
27735
|
+
if (document_1.includes("VERIFICATION_REPORT")) {
|
27732
27736
|
docAdded = true;
|
27733
27737
|
break;
|
27734
27738
|
}
|
@@ -27929,8 +27933,16 @@ var NdcActionBody = function (props) {
|
|
27929
27933
|
: t("programme:orgNotAuth"), overlayClassName: "custom-tooltip" },
|
27930
27934
|
React.createElement(FileAddOutlined, { className: "common-progress-icon", style: canUploadMonitorReport &&
|
27931
27935
|
uploadDocUserPermission(userInfoState, DocType.MONITORING_REPORT, programmeOwnerId, ministryLevelPermission)
|
27932
|
-
? {
|
27933
|
-
|
27936
|
+
? {
|
27937
|
+
color: "#3F3A47",
|
27938
|
+
cursor: "pointer",
|
27939
|
+
margin: "0px 0px 2.5px 0px",
|
27940
|
+
}
|
27941
|
+
: {
|
27942
|
+
color: "#cacaca",
|
27943
|
+
cursor: "default",
|
27944
|
+
margin: "0px 0px 2.5px 0px",
|
27945
|
+
}, onClick: function () {
|
27934
27946
|
if (canUploadMonitorReport &&
|
27935
27947
|
uploadDocUserPermission(userInfoState, DocType.MONITORING_REPORT, programmeOwnerId, ministryLevelPermission)) {
|
27936
27948
|
handleFileUploadMonitor();
|
@@ -27953,8 +27965,16 @@ var NdcActionBody = function (props) {
|
|
27953
27965
|
: t("programme:orgNotAuth"), overlayClassName: "custom-tooltip" },
|
27954
27966
|
React.createElement(FileAddOutlined, { className: "common-progress-icon", style: canUploadMonitorReport &&
|
27955
27967
|
uploadDocUserPermission(userInfoState, DocType.MONITORING_REPORT, programmeOwnerId, ministryLevelPermission)
|
27956
|
-
? {
|
27957
|
-
|
27968
|
+
? {
|
27969
|
+
color: "#3F3A47",
|
27970
|
+
cursor: "pointer",
|
27971
|
+
margin: "0px 0px 2.5px 0px",
|
27972
|
+
}
|
27973
|
+
: {
|
27974
|
+
color: "#cacaca",
|
27975
|
+
cursor: "default",
|
27976
|
+
margin: "0px 0px 2.5px 0px",
|
27977
|
+
}, onClick: function () {
|
27958
27978
|
if (canUploadMonitorReport &&
|
27959
27979
|
uploadDocUserPermission(userInfoState, DocType.MONITORING_REPORT, programmeOwnerId, ministryLevelPermission)) {
|
27960
27980
|
handleFileUploadMonitor();
|
@@ -28003,8 +28023,16 @@ var NdcActionBody = function (props) {
|
|
28003
28023
|
: t("programme:notAuthToUploadDoc"), overlayClassName: "custom-tooltip" },
|
28004
28024
|
React.createElement(FileAddOutlined, { className: "common-progress-icon", style: monitoringReportAccepted &&
|
28005
28025
|
uploadDocUserPermission(userInfoState, DocType.VERIFICATION_REPORT, programmeOwnerId, ministryLevelPermission)
|
28006
|
-
? {
|
28007
|
-
|
28026
|
+
? {
|
28027
|
+
color: "#3F3A47",
|
28028
|
+
cursor: "pointer",
|
28029
|
+
margin: "0px 0px 2.5px 0px",
|
28030
|
+
}
|
28031
|
+
: {
|
28032
|
+
color: "#cacaca",
|
28033
|
+
cursor: "default",
|
28034
|
+
margin: "0px 0px 2.5px 0px",
|
28035
|
+
}, onClick: function () {
|
28008
28036
|
if (monitoringReportAccepted &&
|
28009
28037
|
uploadDocUserPermission(userInfoState, DocType.VERIFICATION_REPORT, programmeOwnerId, ministryLevelPermission)) {
|
28010
28038
|
handleFileUploadVerification();
|
@@ -28027,8 +28055,16 @@ var NdcActionBody = function (props) {
|
|
28027
28055
|
: t("programme:notAuthToUploadDoc"), overlayClassName: "custom-tooltip" },
|
28028
28056
|
React.createElement(FileAddOutlined, { className: "common-progress-icon", style: monitoringReportAccepted &&
|
28029
28057
|
uploadDocUserPermission(userInfoState, DocType.VERIFICATION_REPORT, programmeOwnerId, ministryLevelPermission)
|
28030
|
-
? {
|
28031
|
-
|
28058
|
+
? {
|
28059
|
+
color: "#3F3A47",
|
28060
|
+
cursor: "pointer",
|
28061
|
+
margin: "0px 0px 2.5px 0px",
|
28062
|
+
}
|
28063
|
+
: {
|
28064
|
+
color: "#cacaca",
|
28065
|
+
cursor: "default",
|
28066
|
+
margin: "0px 0px 2.5px 0px",
|
28067
|
+
}, onClick: function () {
|
28032
28068
|
if (monitoringReportAccepted &&
|
28033
28069
|
uploadDocUserPermission(userInfoState, DocType.VERIFICATION_REPORT, programmeOwnerId, ministryLevelPermission)) {
|
28034
28070
|
handleFileUploadVerification();
|
@@ -28541,7 +28577,7 @@ var TimelineBody = function (props) {
|
|
28541
28577
|
React.createElement("div", { className: "remark-body" }, remark)))));
|
28542
28578
|
};
|
28543
28579
|
|
28544
|
-
var css_248z$2 = ".ant-tabs-tab-btn {\n padding: 5px 30px;\n text-align: center;\n font-weight: 600;\n color: rgba(58, 53, 65, 0.5); }\n\n.
|
28580
|
+
var css_248z$2 = ".ant-tabs-tab-btn {\n padding: 5px 30px;\n text-align: center;\n font-weight: 600;\n color: rgba(58, 53, 65, 0.5); }\n\n.emission-tab-container .add-emission {\n display: flex;\n flex-direction: column;\n background-color: #ffffff;\n margin: 1rem 0 1rem 0;\n border-radius: 10px;\n padding: 0 1.5rem 2.5rem 1.5rem; }\n .emission-tab-container .add-emission .ant-tabs-tab.ant-tabs-tab-active .ant-tabs-tab-btn {\n color: #16b1ff; }\n .emission-tab-container .add-emission .ant-tabs-ink-bar {\n position: absolute;\n background: #16b1ff !important;\n pointer-events: none; }\n .emission-tab-container .add-emission .add-new-year-picker-col {\n padding-left: 5%; }\n .emission-tab-container .add-emission .ant-picker {\n border-radius: 5px !important;\n height: 50px !important;\n width: 80%; }\n .emission-tab-container .add-emission .ant-input-suffix {\n display: flex;\n flex: none;\n align-items: center;\n height: 50px; }\n .emission-tab-container .add-emission .ant-input-suffix button {\n border: none;\n color: #8C8C8C; }\n .emission-tab-container .add-emission .ant-input-affix-wrapper {\n padding: 0 11px;\n border-radius: 5px; }\n .emission-tab-container .add-emission .add-new-upload-file-label {\n color: rgba(58, 53, 65, 0.5);\n padding: 0 0 8px;\n line-height: 1.5715;\n white-space: initial;\n text-align: left; }\n .emission-tab-container .add-emission .add-new-upload-file-name-input input {\n height: 50px;\n color: #16b1ff; }\n .emission-tab-container .add-emission .add-new-upload-file-inner-col button {\n height: 50px;\n font-size: 12px;\n width: 120px;\n color: #8C8C8C;\n border-radius: 4px; }\n .emission-tab-container .add-emission .view-download-file-name-input input {\n height: 50px;\n color: #8C8C8C; }\n .emission-tab-container .add-emission .view-download-file-inner-col button {\n height: 50px;\n font-size: 12px;\n font-weight: 400;\n width: 135px;\n margin-left: 5px;\n color: #8C8C8C;\n border-radius: 4px; }\n .emission-tab-container .add-emission .table-heading-row {\n padding-top: 20px;\n padding-bottom: 25px;\n margin-left: 10px !important; }\n .emission-tab-container .add-emission .table-heading-row .table-heading-col {\n text-align: center;\n font-size: 18px;\n font-weight: 600;\n color: #28282899; }\n .emission-tab-container .add-emission .total-emission-row {\n padding: 12px 16px;\n margin-left: 30px !important; }\n .emission-tab-container .add-emission .total-emission-row span {\n font-size: 20px;\n font-weight: 600;\n color: #3A3541CC; }\n .emission-tab-container .add-emission .total-emission-row .total-emission-value-col {\n border-bottom: 1px solid rgba(217, 217, 217, 0.6);\n padding-bottom: 10px; }\n .emission-tab-container .add-emission .panel-header-col {\n font-size: 20px;\n font-weight: 600;\n color: #3A3541CC; }\n .emission-tab-container .add-emission .panel-header-emission-value-col {\n border-bottom: 1px solid rgba(217, 217, 217, 0.6);\n padding-bottom: 10px; }\n .emission-tab-container .add-emission .sub-panel .panel-header-emission-value-col {\n border-bottom: none !important;\n padding-bottom: 10px; }\n .emission-tab-container .add-emission .sub-panel-heading {\n border-bottom: 1px solid rgba(217, 217, 217, 0.6);\n padding-bottom: 10px;\n margin-top: 35px; }\n .emission-tab-container .add-emission .sub-panel-heading .panel-header-col {\n font-size: 16px;\n font-weight: 600;\n color: #3A3541CC; }\n .emission-tab-container .add-emission .ant-collapse-ghost > .ant-collapse-item > .ant-collapse-content > .ant-collapse-content-box {\n padding-top: 0px;\n padding-bottom: 12px;\n margin-left: 32px; }\n .emission-tab-container .add-emission .ant-collapse-expand-icon {\n margin-top: 5px; }\n .emission-tab-container .add-emission .ant-collapse-expand-icon svg {\n font-size: 20px;\n color: #16b1ff; }\n .emission-tab-container .add-emission .ant-collapse {\n margin-left: 10px; }\n .emission-tab-container .add-emission .co2-total-pill {\n border-radius: 20px;\n background-color: rgba(145, 85, 253, 0.4);\n padding: 4px 15px;\n height: 28px;\n color: #5B5B5B;\n font-size: 12px;\n font-weight: 900;\n margin-left: auto;\n margin-right: auto;\n width: 90px;\n text-align: center;\n overflow: hidden;\n text-overflow: ellipsis; }\n .emission-tab-container .add-emission .ch4-total-pill {\n border-radius: 20px;\n background-color: rgba(217, 217, 217, 0.6);\n padding: 4px 15px;\n height: 28px;\n color: #5B5B5B;\n font-size: 12px;\n font-weight: 900;\n margin-left: auto;\n margin-right: auto;\n width: 90px;\n text-align: center;\n overflow: hidden;\n text-overflow: ellipsis; }\n .emission-tab-container .add-emission .n2o-total-pill {\n border-radius: 20px;\n background-color: rgba(185, 226, 244, 0.4);\n padding: 4px 15px;\n height: 28px;\n color: #5B5B5B;\n font-size: 12px;\n font-weight: 900;\n margin-left: auto;\n margin-right: auto;\n width: 90px;\n text-align: center;\n overflow: hidden;\n text-overflow: ellipsis; }\n .emission-tab-container .add-emission .co2eq-total-pill {\n border-radius: 20px;\n background-color: rgba(255, 166, 166, 0.6);\n padding: 4px 15px;\n height: 28px;\n color: #5B5B5B;\n font-size: 12px;\n font-weight: 900;\n margin-left: auto;\n margin-right: auto;\n width: 90px;\n text-align: center;\n overflow: hidden;\n text-overflow: ellipsis; }\n .emission-tab-container .add-emission .panel-content-row {\n border-bottom: 1px solid rgba(217, 217, 217, 0.6);\n padding-bottom: 10px;\n height: 68px;\n align-items: center; }\n .emission-tab-container .add-emission .panel-content-row .panel-content-title {\n font-size: 16px;\n font-weight: 500;\n color: #3A3541CC; }\n .emission-tab-container .add-emission .panel-content-input-box-row {\n margin-top: 14px; }\n .emission-tab-container .add-emission .panel-content-input-box-row .ant-input-number {\n height: 40px;\n margin-left: 17%; }\n .emission-tab-container .add-emission .total-co2-land-input-box-row .ant-input-number {\n margin-left: 14% !important; }\n .emission-tab-container .add-emission .total-co2-without-land-row {\n margin-left: 40px !important;\n align-items: center;\n margin-top: 50px; }\n .emission-tab-container .add-emission .total-co2-without-land-row .total-co2-without-land-title {\n font-size: 16px;\n font-weight: 600;\n color: #3A3541CC; }\n .emission-tab-container .add-emission .total-co2-without-land-row .panel-content-input-box-row {\n border-bottom: 1px solid rgba(217, 217, 217, 0.6); }\n .emission-tab-container .add-emission .ant-input-number-input {\n text-align: center;\n height: 40px; }\n .emission-tab-container .add-emission .view-data-panel .panel-content-input-box-row {\n padding-bottom: 24px; }\n .emission-tab-container .add-emission .total-co2-with-land-row {\n margin-left: 40px !important;\n align-items: center; }\n .emission-tab-container .add-emission .total-co2-with-land-row .total-co2-with-land-title {\n font-size: 16px;\n font-weight: 600;\n color: #3A3541CC; }\n .emission-tab-container .add-emission .total-co2-with-land-row .panel-content-input-box-row {\n border-bottom: 1px solid rgba(217, 217, 217, 0.6); }\n .emission-tab-container .add-emission .steps-actions {\n display: flex;\n flex-direction: row-reverse;\n margin-right: 1rem;\n margin-top: 3rem; }\n .emission-tab-container .add-emission .steps-actions .action-btn {\n border: 1px solid #16b1ff;\n color: #16b1ff;\n margin-right: 1rem; }\n .emission-tab-container .add-emission .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 .emission-tab-container .add-emission .steps-actions .submit-btn {\n margin-right: 1rem; }\n .emission-tab-container .add-emission .steps-actions .mg-left-1 {\n margin-left: 1rem; }\n @media only screen and (max-width: 1600px) {\n .emission-tab-container .add-emission .panel-content-input-box-row .ant-input-number {\n margin-left: 2%; }\n .emission-tab-container .add-emission .total-co2-land-input-box-row .ant-input-number {\n margin-left: 0% !important; } }\n";
|
28545
28581
|
styleInject(css_248z$2);
|
28546
28582
|
|
28547
28583
|
var EmissionTypes = { co2: 'CO2', ch4: 'CH4', n2o: 'N2O', co2eq: 'CO2-eq' };
|
@@ -29426,14 +29462,23 @@ var GHGEmissionsComponent = function (props) {
|
|
29426
29462
|
setOpenFinalizeFormModal(false);
|
29427
29463
|
};
|
29428
29464
|
var onOpenFinalizeFormModel = function () {
|
29429
|
-
|
29430
|
-
|
29431
|
-
|
29432
|
-
|
29433
|
-
|
29465
|
+
form
|
29466
|
+
.validateFields()
|
29467
|
+
.then(function (values) {
|
29468
|
+
// Validation successful, set ActionInfo and open the form modal
|
29469
|
+
setActionInfo({
|
29470
|
+
action: "".concat(t("ghgInventory:finalize")),
|
29471
|
+
headerText: "".concat(t("ghgInventory:finalizeModelHeader")),
|
29472
|
+
type: "primary",
|
29473
|
+
icon: React.createElement(ClipboardCheck, null),
|
29474
|
+
});
|
29475
|
+
setErrorMsg('');
|
29476
|
+
setOpenFinalizeFormModal(true);
|
29477
|
+
})
|
29478
|
+
.catch(function (errorInfo) {
|
29479
|
+
// Validation failed
|
29480
|
+
console.log('Validation failed:', errorInfo);
|
29434
29481
|
});
|
29435
|
-
setErrorMsg('');
|
29436
|
-
setOpenFinalizeFormModal(true);
|
29437
29482
|
};
|
29438
29483
|
var onSubmitForm = function (remarks, status) { return __awaiter(void 0, void 0, void 0, function () {
|
29439
29484
|
var fields, payload, response, messageContent, error_1;
|
@@ -30486,7 +30531,7 @@ var GHGEmissionsComponent = function (props) {
|
|
30486
30531
|
React.createElement(DiscardChangesConfirmationModel, { t: t, actionInfo: actionInfo, onActionConfirmed: resetForm, onActionCanceled: onResetFormCanceled, openModal: openResetFormModal, errorMsg: errorMsg, loading: loading })));
|
30487
30532
|
};
|
30488
30533
|
|
30489
|
-
var css_248z$1 = ".ant-tabs-tab-btn {\n padding: 5px 30px;\n text-align: center;\n font-weight: 600;\n color: rgba(58, 53, 65, 0.5); }\n\n.
|
30534
|
+
var css_248z$1 = ".ant-tabs-tab-btn {\n padding: 5px 30px;\n text-align: center;\n font-weight: 600;\n color: rgba(58, 53, 65, 0.5); }\n\n.projection-tab-container .add-projection {\n display: flex;\n flex-direction: column;\n background-color: #ffffff;\n margin: 1rem 0 1rem 0;\n border-radius: 10px;\n padding: 0 1.5rem 2.5rem 1.5rem; }\n .projection-tab-container .add-projection .ant-tabs-tab.ant-tabs-tab-active .ant-tabs-tab-btn {\n color: #16b1ff; }\n .projection-tab-container .add-projection .ant-tabs-ink-bar {\n position: absolute;\n background: #16b1ff !important;\n pointer-events: none; }\n .projection-tab-container .add-projection .add-new-year-picker-col {\n padding-left: 5%; }\n .projection-tab-container .add-projection .ant-picker {\n border-radius: 5px !important;\n height: 50px !important;\n width: 80%; }\n .projection-tab-container .add-projection .ant-input-suffix {\n display: flex;\n flex: none;\n align-items: center;\n height: 50px; }\n .projection-tab-container .add-projection .ant-input-suffix button {\n border: none;\n color: #8C8C8C; }\n .projection-tab-container .add-projection .ant-input-affix-wrapper {\n padding: 0 11px;\n border-radius: 5px; }\n .projection-tab-container .add-projection .add-new-upload-file-label {\n color: rgba(58, 53, 65, 0.5);\n padding: 0 0 8px;\n line-height: 1.5715;\n white-space: initial;\n text-align: left; }\n .projection-tab-container .add-projection .add-new-upload-file-name-input input {\n height: 50px;\n color: #16b1ff; }\n .projection-tab-container .add-projection .add-new-upload-file-inner-col button {\n height: 50px;\n font-size: 12px;\n width: 120px;\n color: #8C8C8C; }\n .projection-tab-container .add-projection .view-download-file-name-input input {\n height: 50px;\n color: #8C8C8C; }\n .projection-tab-container .add-projection .view-download-file-inner-col button {\n height: 50px;\n font-size: 12px;\n font-weight: 400;\n width: 135px;\n margin-left: 5px;\n color: #8C8C8C;\n border-radius: 4px; }\n .projection-tab-container .add-projection .table-heading-row {\n padding-top: 20px;\n padding-bottom: 25px;\n margin-left: 10px !important; }\n .projection-tab-container .add-projection .table-heading-row .table-heading-col {\n text-align: center;\n font-size: 16px;\n font-weight: 600;\n color: #28282899; }\n .projection-tab-container .add-projection .total-emission-row {\n padding: 12px 16px;\n margin-left: 30px !important; }\n .projection-tab-container .add-projection .total-emission-row span {\n font-size: 20px;\n font-weight: 600;\n color: #3A3541CC; }\n .projection-tab-container .add-projection .total-emission-row .total-emission-value-col {\n border-bottom: 1px solid rgba(217, 217, 217, 0.6);\n padding-bottom: 10px; }\n .projection-tab-container .add-projection .panel-header-col {\n font-size: 20px;\n font-weight: 600;\n color: #3A3541CC; }\n .projection-tab-container .add-projection .panel-header-emission-value-col {\n border-bottom: 1px solid rgba(217, 217, 217, 0.6);\n padding-bottom: 10px; }\n .projection-tab-container .add-projection .sub-panel .panel-header-emission-value-col {\n border-bottom: none !important;\n padding-bottom: 10px; }\n .projection-tab-container .add-projection .sub-panel-heading {\n border-bottom: 1px solid rgba(217, 217, 217, 0.6);\n padding-bottom: 10px;\n margin-top: 35px; }\n .projection-tab-container .add-projection .sub-panel-heading .panel-header-col {\n font-size: 16px;\n font-weight: 600;\n color: #3A3541CC; }\n .projection-tab-container .add-projection .ant-collapse-ghost > .ant-collapse-item > .ant-collapse-content > .ant-collapse-content-box {\n padding-top: 0px;\n padding-bottom: 12px;\n margin-left: 32px; }\n .projection-tab-container .add-projection .ant-collapse-expand-icon {\n margin-top: 5px; }\n .projection-tab-container .add-projection .ant-collapse-expand-icon svg {\n font-size: 20px;\n color: #16b1ff; }\n .projection-tab-container .add-projection .ant-collapse {\n margin-left: 10px; }\n .projection-tab-container .add-projection .co2-total-pill {\n border-radius: 20px;\n background-color: rgba(145, 85, 253, 0.4);\n padding: 4px 15px;\n height: 28px;\n color: #5B5B5B;\n font-size: 12px;\n font-weight: 900;\n margin-left: auto;\n margin-right: auto;\n width: 90px;\n text-align: center;\n overflow: hidden;\n text-overflow: ellipsis; }\n .projection-tab-container .add-projection .ch4-total-pill {\n border-radius: 20px;\n background-color: rgba(217, 217, 217, 0.6);\n padding: 4px 15px;\n height: 28px;\n color: #5B5B5B;\n font-size: 12px;\n font-weight: 900;\n margin-left: auto;\n margin-right: auto;\n width: 90px;\n text-align: center;\n overflow: hidden;\n text-overflow: ellipsis; }\n .projection-tab-container .add-projection .n2o-total-pill {\n border-radius: 20px;\n background-color: rgba(185, 226, 244, 0.4);\n padding: 4px 15px;\n height: 28px;\n color: #5B5B5B;\n font-size: 12px;\n font-weight: 900;\n margin-left: auto;\n margin-right: auto;\n width: 90px;\n text-align: center;\n overflow: hidden;\n text-overflow: ellipsis; }\n .projection-tab-container .add-projection .co2eq-total-pill {\n border-radius: 20px;\n background-color: rgba(255, 166, 166, 0.6);\n padding: 4px 15px;\n height: 28px;\n color: #5B5B5B;\n font-size: 12px;\n font-weight: 900;\n margin-left: auto;\n margin-right: auto;\n width: 90px;\n text-align: center;\n overflow: hidden;\n text-overflow: ellipsis; }\n .projection-tab-container .add-projection .panel-content-row {\n border-bottom: 1px solid rgba(217, 217, 217, 0.6);\n padding-bottom: 10px;\n height: 68px;\n align-items: center; }\n .projection-tab-container .add-projection .panel-content-row .panel-content-title {\n font-size: 16px;\n font-weight: 500;\n color: #3A3541CC; }\n .projection-tab-container .add-projection .panel-content-input-box-row {\n margin-top: 14px; }\n .projection-tab-container .add-projection .panel-content-input-box-row .ant-input-number {\n height: 40px;\n margin-left: 20%; }\n .projection-tab-container .add-projection .total-co2-land-input-box-row .ant-input-number {\n margin-left: 17% !important; }\n .projection-tab-container .add-projection .total-co2-without-land-row {\n margin-left: 40px !important;\n align-items: center;\n margin-top: 50px; }\n .projection-tab-container .add-projection .total-co2-without-land-row .total-co2-without-land-title {\n font-size: 16px;\n font-weight: 600;\n color: #3A3541CC; }\n .projection-tab-container .add-projection .total-co2-without-land-row .panel-content-input-box-row {\n border-bottom: 1px solid rgba(217, 217, 217, 0.6); }\n .projection-tab-container .add-projection .total-co2-with-land-row {\n margin-left: 40px !important;\n align-items: center; }\n .projection-tab-container .add-projection .total-co2-with-land-row .total-co2-with-land-title {\n font-size: 16px;\n font-weight: 600;\n color: #3A3541CC; }\n .projection-tab-container .add-projection .total-co2-with-land-row .panel-content-input-box-row {\n border-bottom: 1px solid rgba(217, 217, 217, 0.6); }\n .projection-tab-container .add-projection .ant-input-number-input {\n text-align: center;\n height: 40px; }\n .projection-tab-container .add-projection .view-data-panel .panel-content-input-box-row {\n padding-bottom: 24px; }\n .projection-tab-container .add-projection .steps-actions {\n display: flex;\n flex-direction: row-reverse;\n margin-right: 1rem;\n margin-top: 3rem; }\n .projection-tab-container .add-projection .steps-actions .action-btn {\n border: 1px solid #16b1ff;\n color: #16b1ff;\n margin-right: 1rem; }\n .projection-tab-container .add-projection .steps-actions .submit-btn {\n margin-right: 1rem; }\n .projection-tab-container .add-projection .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 .projection-tab-container .add-projection .steps-actions .mg-left-1 {\n margin-left: 1rem; }\n @media only screen and (max-width: 1600px) {\n .projection-tab-container .add-projection .panel-content-input-box-row .ant-input-number {\n margin-left: 10%; }\n .projection-tab-container .add-projection .total-co2-land-input-box-row .ant-input-number {\n margin-left: 7% !important; } }\n";
|
30490
30535
|
styleInject(css_248z$1);
|
30491
30536
|
|
30492
30537
|
var ProjectionTypes = {
|
@@ -30966,14 +31011,23 @@ var GHGProjectionsComponent = function (props) {
|
|
30966
31011
|
setOpenFinalizeFormModal(false);
|
30967
31012
|
};
|
30968
31013
|
var onOpenFinalizeFormModel = function () {
|
30969
|
-
|
30970
|
-
|
30971
|
-
|
30972
|
-
|
30973
|
-
|
31014
|
+
form
|
31015
|
+
.validateFields()
|
31016
|
+
.then(function (values) {
|
31017
|
+
// Validation successful, set ActionInfo and open the form modal
|
31018
|
+
setActionInfo({
|
31019
|
+
action: "".concat(t("ghgInventory:finalize")),
|
31020
|
+
headerText: "".concat(t("ghgInventory:finalizeModelHeader")),
|
31021
|
+
type: "primary",
|
31022
|
+
icon: React.createElement(ClipboardCheck, null),
|
31023
|
+
});
|
31024
|
+
setErrorMsg('');
|
31025
|
+
setOpenFinalizeFormModal(true);
|
31026
|
+
})
|
31027
|
+
.catch(function (errorInfo) {
|
31028
|
+
// Validation failed
|
31029
|
+
console.log('Validation failed:', errorInfo);
|
30974
31030
|
});
|
30975
|
-
setErrorMsg('');
|
30976
|
-
setOpenFinalizeFormModal(true);
|
30977
31031
|
};
|
30978
31032
|
var getProjectionData = function () { return __awaiter(void 0, void 0, void 0, function () {
|
30979
31033
|
var response, error_1;
|