@undp/carbon-library 1.0.307-CARBON-Log-fix.1 → 1.0.307-hotfix-CARBON-450.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/index.js +9 -12
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +9 -12
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
@@ -2450,9 +2450,9 @@ exports.NdcActionTypes = void 0;
|
|
2450
2450
|
NdcActionTypes["CrossCutting"] = "crosscutting";
|
2451
2451
|
})(exports.NdcActionTypes || (exports.NdcActionTypes = {}));
|
2452
2452
|
var ndcActionTypeList = [
|
2453
|
-
{ value:
|
2454
|
-
{ value:
|
2455
|
-
{ value:
|
2453
|
+
// { value: NdcActionTypes.Adaptation.valueOf(), label: "Adaptation" },
|
2454
|
+
// { value: NdcActionTypes.CrossCutting.valueOf(), label: "Cross-cutting" },
|
2455
|
+
// { value: NdcActionTypes.Enablement.valueOf(), label: "Enablement" },
|
2456
2456
|
{ value: exports.NdcActionTypes.Mitigation.valueOf(), label: "Mitigation" },
|
2457
2457
|
];
|
2458
2458
|
|
@@ -19989,6 +19989,10 @@ var NdcActionDetails = function (props) {
|
|
19989
19989
|
form.setFieldsValue({
|
19990
19990
|
methodologyEstimatedCredits: 0,
|
19991
19991
|
});
|
19992
|
+
handleNdcActionChange(exports.NdcActionTypes.Mitigation.valueOf());
|
19993
|
+
form.setFieldsValue({
|
19994
|
+
ndcActionType: exports.NdcActionTypes.Mitigation
|
19995
|
+
});
|
19992
19996
|
}
|
19993
19997
|
}, []);
|
19994
19998
|
var implementingAgencyList = [
|
@@ -20327,7 +20331,7 @@ var NdcActionDetails = function (props) {
|
|
20327
20331
|
React.createElement(antd.Select, { size: "large", onChange: handleNdcActionChange, style: {
|
20328
20332
|
width: "249px",
|
20329
20333
|
borderRadius: "4px",
|
20330
|
-
}, dropdownStyle: { color: "red" }, options: ndcActionTypeListFiltered })))),
|
20334
|
+
}, dropdownStyle: { color: "red" }, options: ndcActionTypeListFiltered, disabled: true, defaultValue: exports.NdcActionTypes.Mitigation.valueOf() })))),
|
20331
20335
|
ndcActionType === exports.NdcActionTypes.CrossCutting && (React.createElement(antd.Row, null,
|
20332
20336
|
React.createElement("label", { className: "label-heading" }, t("ndcAction:mitigation")))),
|
20333
20337
|
(ndcActionType === exports.NdcActionTypes.Mitigation ||
|
@@ -27055,7 +27059,7 @@ var RegistryBarChartsStatComponent = function (props) {
|
|
27055
27059
|
|
27056
27060
|
var RangePicker$1 = antd.DatePicker.RangePicker;
|
27057
27061
|
var RegistryDashboardComponent = function (props) {
|
27058
|
-
var Chart = props.Chart, t = props.t
|
27062
|
+
var Chart = props.Chart, t = props.t; props.ButtonGroup; props.Link; props.isMultipleDashboardsVisible;
|
27059
27063
|
var _b = useConnection(); _b.get; var post = _b.post; _b.delete; var statServerUrl = _b.statServerUrl;
|
27060
27064
|
var userInfoState = useUserContext().userInfoState;
|
27061
27065
|
var _c = React.useState(false), loadingWithoutTimeRange = _c[0], setLoadingWithoutTimeRange = _c[1];
|
@@ -28544,13 +28548,6 @@ var RegistryDashboardComponent = function (props) {
|
|
28544
28548
|
onClick: handleMenuClick,
|
28545
28549
|
};
|
28546
28550
|
return (React.createElement("div", { className: "dashboard-main-container" },
|
28547
|
-
isMultipleDashboardsVisible && (React.createElement("div", { className: "systemchange-container", style: { marginLeft: "20px" } },
|
28548
|
-
React.createElement(ButtonGroup, null,
|
28549
|
-
React.createElement(antd.Button, { type: "primary", className: "rgprimary" }, "Carbon Registry"),
|
28550
|
-
React.createElement(Link, { to: "/dashboard/mrv" },
|
28551
|
-
React.createElement(antd.Button, { className: "mid-default-btn" }, "Transparency System")),
|
28552
|
-
React.createElement(Link, { to: "/dashboard/ghg" },
|
28553
|
-
React.createElement(antd.Button, { className: "rgdefault" }, "GHG Inventory"))))),
|
28554
28551
|
React.createElement("div", { className: "stastics-cards-container", style: { marginTop: "50px" } },
|
28555
28552
|
React.createElement(antd.Row, { gutter: [40, 40], className: "stastic-card-row" },
|
28556
28553
|
React.createElement(antd.Col, { xxl: 8, xl: 8, md: 12, className: "stastic-card-col" },
|