@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/cjs/index.js
CHANGED
@@ -26460,7 +26460,7 @@ var NdcDetailsComponent = function (props) {
|
|
26460
26460
|
editable: true,
|
26461
26461
|
width: "50%",
|
26462
26462
|
render: function (_, record) { return (React.createElement(React.Fragment, null, record.nationalPlanObj ? (React.createElement(antd.Space, { size: "middle" },
|
26463
|
-
React.createElement("span", null, record.nationalPlanObj))) : (React.createElement("input", { placeholder: "Please add
|
26463
|
+
React.createElement("span", null, record.nationalPlanObj))) : (React.createElement("input", { placeholder: "Please add Programmes", className: "ant-input", type: "text" })))); },
|
26464
26464
|
},
|
26465
26465
|
{
|
26466
26466
|
title: t("ndc:ndcColumnsKpi"),
|
@@ -26473,14 +26473,14 @@ var NdcDetailsComponent = function (props) {
|
|
26473
26473
|
React.createElement("span", null, record.kpi))) : (React.createElement("input", { placeholder: "Enter Kpi", className: "ant-input", type: "text" })))); },
|
26474
26474
|
},
|
26475
26475
|
{
|
26476
|
-
title: "
|
26476
|
+
title: "Government Department",
|
26477
26477
|
dataIndex: "ministry",
|
26478
26478
|
key: "ministry",
|
26479
26479
|
align: "left",
|
26480
26480
|
editable: true,
|
26481
26481
|
width: "40%",
|
26482
26482
|
render: function (_, record) { return (React.createElement(React.Fragment, null, record.nationalPlanObj ? (React.createElement(antd.Space, { size: "middle" },
|
26483
|
-
React.createElement("span", null, record.ministry))) : (React.createElement("input", { placeholder: "Please add the
|
26483
|
+
React.createElement("span", null, record.ministry))) : (React.createElement("input", { placeholder: "Please add the Government Department", className: "ant-input", type: "text" })))); },
|
26484
26484
|
},
|
26485
26485
|
];
|
26486
26486
|
var columns = defaultColumns.map(function (col) {
|
@@ -27748,8 +27748,12 @@ var NdcActionBody = function (props) {
|
|
27748
27748
|
modified_1 = true;
|
27749
27749
|
var docAdded = false;
|
27750
27750
|
for (var _i = 0, _a = action.projectMaterial; _i < _a.length; _i++) {
|
27751
|
-
var
|
27752
|
-
|
27751
|
+
var documentDetails = _a[_i];
|
27752
|
+
var document_1 = void 0;
|
27753
|
+
documentDetails.url
|
27754
|
+
? (document_1 = documentDetails.url)
|
27755
|
+
: (document_1 = documentDetails);
|
27756
|
+
if (document_1.includes("VERIFICATION_REPORT")) {
|
27753
27757
|
docAdded = true;
|
27754
27758
|
break;
|
27755
27759
|
}
|
@@ -27950,8 +27954,16 @@ var NdcActionBody = function (props) {
|
|
27950
27954
|
: t("programme:orgNotAuth"), overlayClassName: "custom-tooltip" },
|
27951
27955
|
React.createElement(icons.FileAddOutlined, { className: "common-progress-icon", style: canUploadMonitorReport &&
|
27952
27956
|
uploadDocUserPermission(userInfoState, exports.DocType.MONITORING_REPORT, programmeOwnerId, ministryLevelPermission)
|
27953
|
-
? {
|
27954
|
-
|
27957
|
+
? {
|
27958
|
+
color: "#3F3A47",
|
27959
|
+
cursor: "pointer",
|
27960
|
+
margin: "0px 0px 2.5px 0px",
|
27961
|
+
}
|
27962
|
+
: {
|
27963
|
+
color: "#cacaca",
|
27964
|
+
cursor: "default",
|
27965
|
+
margin: "0px 0px 2.5px 0px",
|
27966
|
+
}, onClick: function () {
|
27955
27967
|
if (canUploadMonitorReport &&
|
27956
27968
|
uploadDocUserPermission(userInfoState, exports.DocType.MONITORING_REPORT, programmeOwnerId, ministryLevelPermission)) {
|
27957
27969
|
handleFileUploadMonitor();
|
@@ -27974,8 +27986,16 @@ var NdcActionBody = function (props) {
|
|
27974
27986
|
: t("programme:orgNotAuth"), overlayClassName: "custom-tooltip" },
|
27975
27987
|
React.createElement(icons.FileAddOutlined, { className: "common-progress-icon", style: canUploadMonitorReport &&
|
27976
27988
|
uploadDocUserPermission(userInfoState, exports.DocType.MONITORING_REPORT, programmeOwnerId, ministryLevelPermission)
|
27977
|
-
? {
|
27978
|
-
|
27989
|
+
? {
|
27990
|
+
color: "#3F3A47",
|
27991
|
+
cursor: "pointer",
|
27992
|
+
margin: "0px 0px 2.5px 0px",
|
27993
|
+
}
|
27994
|
+
: {
|
27995
|
+
color: "#cacaca",
|
27996
|
+
cursor: "default",
|
27997
|
+
margin: "0px 0px 2.5px 0px",
|
27998
|
+
}, onClick: function () {
|
27979
27999
|
if (canUploadMonitorReport &&
|
27980
28000
|
uploadDocUserPermission(userInfoState, exports.DocType.MONITORING_REPORT, programmeOwnerId, ministryLevelPermission)) {
|
27981
28001
|
handleFileUploadMonitor();
|
@@ -28024,8 +28044,16 @@ var NdcActionBody = function (props) {
|
|
28024
28044
|
: t("programme:notAuthToUploadDoc"), overlayClassName: "custom-tooltip" },
|
28025
28045
|
React.createElement(icons.FileAddOutlined, { className: "common-progress-icon", style: monitoringReportAccepted &&
|
28026
28046
|
uploadDocUserPermission(userInfoState, exports.DocType.VERIFICATION_REPORT, programmeOwnerId, ministryLevelPermission)
|
28027
|
-
? {
|
28028
|
-
|
28047
|
+
? {
|
28048
|
+
color: "#3F3A47",
|
28049
|
+
cursor: "pointer",
|
28050
|
+
margin: "0px 0px 2.5px 0px",
|
28051
|
+
}
|
28052
|
+
: {
|
28053
|
+
color: "#cacaca",
|
28054
|
+
cursor: "default",
|
28055
|
+
margin: "0px 0px 2.5px 0px",
|
28056
|
+
}, onClick: function () {
|
28029
28057
|
if (monitoringReportAccepted &&
|
28030
28058
|
uploadDocUserPermission(userInfoState, exports.DocType.VERIFICATION_REPORT, programmeOwnerId, ministryLevelPermission)) {
|
28031
28059
|
handleFileUploadVerification();
|
@@ -28048,8 +28076,16 @@ var NdcActionBody = function (props) {
|
|
28048
28076
|
: t("programme:notAuthToUploadDoc"), overlayClassName: "custom-tooltip" },
|
28049
28077
|
React.createElement(icons.FileAddOutlined, { className: "common-progress-icon", style: monitoringReportAccepted &&
|
28050
28078
|
uploadDocUserPermission(userInfoState, exports.DocType.VERIFICATION_REPORT, programmeOwnerId, ministryLevelPermission)
|
28051
|
-
? {
|
28052
|
-
|
28079
|
+
? {
|
28080
|
+
color: "#3F3A47",
|
28081
|
+
cursor: "pointer",
|
28082
|
+
margin: "0px 0px 2.5px 0px",
|
28083
|
+
}
|
28084
|
+
: {
|
28085
|
+
color: "#cacaca",
|
28086
|
+
cursor: "default",
|
28087
|
+
margin: "0px 0px 2.5px 0px",
|
28088
|
+
}, onClick: function () {
|
28053
28089
|
if (monitoringReportAccepted &&
|
28054
28090
|
uploadDocUserPermission(userInfoState, exports.DocType.VERIFICATION_REPORT, programmeOwnerId, ministryLevelPermission)) {
|
28055
28091
|
handleFileUploadVerification();
|
@@ -28562,7 +28598,7 @@ var TimelineBody = function (props) {
|
|
28562
28598
|
React.createElement("div", { className: "remark-body" }, remark)))));
|
28563
28599
|
};
|
28564
28600
|
|
28565
|
-
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.
|
28601
|
+
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";
|
28566
28602
|
styleInject(css_248z$2);
|
28567
28603
|
|
28568
28604
|
var EmissionTypes = { co2: 'CO2', ch4: 'CH4', n2o: 'N2O', co2eq: 'CO2-eq' };
|
@@ -29447,14 +29483,23 @@ var GHGEmissionsComponent = function (props) {
|
|
29447
29483
|
setOpenFinalizeFormModal(false);
|
29448
29484
|
};
|
29449
29485
|
var onOpenFinalizeFormModel = function () {
|
29450
|
-
|
29451
|
-
|
29452
|
-
|
29453
|
-
|
29454
|
-
|
29486
|
+
form
|
29487
|
+
.validateFields()
|
29488
|
+
.then(function (values) {
|
29489
|
+
// Validation successful, set ActionInfo and open the form modal
|
29490
|
+
setActionInfo({
|
29491
|
+
action: "".concat(t("ghgInventory:finalize")),
|
29492
|
+
headerText: "".concat(t("ghgInventory:finalizeModelHeader")),
|
29493
|
+
type: "primary",
|
29494
|
+
icon: React.createElement(Icon.ClipboardCheck, null),
|
29495
|
+
});
|
29496
|
+
setErrorMsg('');
|
29497
|
+
setOpenFinalizeFormModal(true);
|
29498
|
+
})
|
29499
|
+
.catch(function (errorInfo) {
|
29500
|
+
// Validation failed
|
29501
|
+
console.log('Validation failed:', errorInfo);
|
29455
29502
|
});
|
29456
|
-
setErrorMsg('');
|
29457
|
-
setOpenFinalizeFormModal(true);
|
29458
29503
|
};
|
29459
29504
|
var onSubmitForm = function (remarks, status) { return __awaiter(void 0, void 0, void 0, function () {
|
29460
29505
|
var fields, payload, response, messageContent, error_1;
|
@@ -30507,7 +30552,7 @@ var GHGEmissionsComponent = function (props) {
|
|
30507
30552
|
React.createElement(DiscardChangesConfirmationModel, { t: t, actionInfo: actionInfo, onActionConfirmed: resetForm, onActionCanceled: onResetFormCanceled, openModal: openResetFormModal, errorMsg: errorMsg, loading: loading })));
|
30508
30553
|
};
|
30509
30554
|
|
30510
|
-
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.
|
30555
|
+
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";
|
30511
30556
|
styleInject(css_248z$1);
|
30512
30557
|
|
30513
30558
|
var ProjectionTypes = {
|
@@ -30987,14 +31032,23 @@ var GHGProjectionsComponent = function (props) {
|
|
30987
31032
|
setOpenFinalizeFormModal(false);
|
30988
31033
|
};
|
30989
31034
|
var onOpenFinalizeFormModel = function () {
|
30990
|
-
|
30991
|
-
|
30992
|
-
|
30993
|
-
|
30994
|
-
|
31035
|
+
form
|
31036
|
+
.validateFields()
|
31037
|
+
.then(function (values) {
|
31038
|
+
// Validation successful, set ActionInfo and open the form modal
|
31039
|
+
setActionInfo({
|
31040
|
+
action: "".concat(t("ghgInventory:finalize")),
|
31041
|
+
headerText: "".concat(t("ghgInventory:finalizeModelHeader")),
|
31042
|
+
type: "primary",
|
31043
|
+
icon: React.createElement(Icon.ClipboardCheck, null),
|
31044
|
+
});
|
31045
|
+
setErrorMsg('');
|
31046
|
+
setOpenFinalizeFormModal(true);
|
31047
|
+
})
|
31048
|
+
.catch(function (errorInfo) {
|
31049
|
+
// Validation failed
|
31050
|
+
console.log('Validation failed:', errorInfo);
|
30995
31051
|
});
|
30996
|
-
setErrorMsg('');
|
30997
|
-
setOpenFinalizeFormModal(true);
|
30998
31052
|
};
|
30999
31053
|
var getProjectionData = function () { return __awaiter(void 0, void 0, void 0, function () {
|
31000
31054
|
var response, error_1;
|