@undp/carbon-library 2.1.2 → 2.1.3-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 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: exports.NdcActionTypes.Adaptation.valueOf(), label: "Adaptation" },
2454
- { value: exports.NdcActionTypes.CrossCutting.valueOf(), label: "Cross-cutting" },
2455
- { value: exports.NdcActionTypes.Enablement.valueOf(), label: "Enablement" },
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
 
@@ -19900,7 +19900,7 @@ var NdcActionManagementComponent = function (props) {
19900
19900
  } })))))));
19901
19901
  };
19902
19902
 
19903
- var css_248z$j = ".ndc-action-details-container Input {\n height: 40px; }\n\n.ndc-action-details-container .in-nap-col {\n width: 100%; }\n\n.ndc-action-details-container .included-nap-col {\n width: 40%;\n display: flex; }\n .ndc-action-details-container .included-nap-col .in-nap-row {\n width: 100%;\n align-items: center; }\n .ndc-action-details-container .included-nap-col .in-nap-row .included-label {\n display: flex;\n flex-direction: row;\n width: fit-content;\n align-items: center;\n justify-content: space-between;\n font-size: 14px;\n color: rgba(58, 53, 65, 0.5); }\n .ndc-action-details-container .included-nap-col .in-nap-row .included-label .info-container {\n display: flex;\n flex-direction: row;\n width: 10%;\n height: 30px;\n align-items: center;\n justify-content: flex-end; }\n .ndc-action-details-container .included-nap-col .in-nap-row .included-val {\n width: 100%; }\n .ndc-action-details-container .included-nap-col .in-nap-row .included-val .yes-no-radio-container {\n width: 43%;\n text-align: center; }\n .ndc-action-details-container .included-nap-col .in-nap-row .included-val .yes-no-radio-container .ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled) {\n color: #ffffff !important;\n border-color: #9155fd;\n box-shadow: none;\n border-radius: 4px; }\n .ndc-action-details-container .included-nap-col .in-nap-row .included-val .ant-radio-button-wrapper::before {\n background-color: transparent;\n border-radius: 4px; }\n .ndc-action-details-container .included-nap-col .in-nap-row .included-val .ant-radio-button-wrapper {\n border: 1px solid #d9d9d9;\n border-radius: 4px;\n color: #8c8c8c; }\n .ndc-action-details-container .included-nap-col .in-nap-row .included-val .anticon {\n margin-right: 0.5rem; }\n .ndc-action-details-container .included-nap-col .in-nap-row .included-val .yes-no-radio {\n width: 100%; }\n .ndc-action-details-container .included-nap-col .in-nap-row .included-val .yes-no-radio .ant-radio-button-checked {\n background: #9155fd;\n color: #ffffff; }\n\n.ndc-action-details-container .row-custom-1 {\n display: flex;\n margin-bottom: 2px; }\n\n.ndc-action-details-container .row-custom {\n display: flex;\n width: 200px;\n align-items: center;\n justify-content: space-between;\n margin-bottom: 1rem; }\n .ndc-action-details-container .row-custom .ant-input-number {\n height: 35px;\n display: flex;\n align-items: center;\n justify-content: center; }\n\n.ndc-action-details-container .enablement-type-item {\n display: flex;\n width: 100%; }\n .ndc-action-details-container .enablement-type-item .ant-form-item-row {\n display: flex;\n width: 100%; }\n .ndc-action-details-container .enablement-type-item .ant-checkbox-wrapper {\n color: rgba(58, 53, 65, 0.5);\n font-size: 14px; }\n .ndc-action-details-container .enablement-type-item .type-checkbox-grp {\n display: flex;\n width: 100%; }\n .ndc-action-details-container .enablement-type-item .type-checkbox-grp .grp-row {\n display: flex;\n width: 100%; }\n\n.ndc-action-details-container .ant-select-selection-item {\n color: #949599 !important; }\n\n.ndc-action-details-container .ant-select-dropdown {\n font-family: \"Inter\";\n color: #949599 !important; }\n\n.ndc-action-details-container .ant-select-selector {\n color: #949599 !important; }\n\n.ndc-action-details-container .label-heading {\n font-family: 'Inter';\n font-style: normal;\n font-weight: 600;\n font-size: 14px;\n line-height: 22px;\n color: rgba(58, 53, 65, 0.5);\n margin-bottom: 5px; }\n\n.ndc-action-details-container .steps-actions {\n display: flex;\n flex-direction: row-reverse; }\n .ndc-action-details-container .steps-actions .mg-left-1 {\n margin-left: 1rem; }\n\n.ndc-action-details-container .upload-doc {\n height: 40px !important;\n margin-right: 240px; }\n\n.ndc-action-details-container .ant-upload-list-item {\n border-radius: 5px !important;\n height: 40px !important; }\n\n.ndc-action-details-container .design-upload-section {\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: start;\n width: 100%; }\n .ndc-action-details-container .design-upload-section .icon-color {\n color: #16b1ff !important; }\n .ndc-action-details-container .design-upload-section .ant-upload {\n width: 20%; }\n .ndc-action-details-container .design-upload-section .ant-upload-list {\n align-items: center;\n justify-content: center;\n width: 75%; }\n .ndc-action-details-container .design-upload-section .ant-upload-list .ant-upload-list-item {\n margin-top: 0; }\n";
19903
+ var css_248z$j = ".ndc-action-details-container Input {\n height: 40px; }\n\n.ndc-action-details-container .in-nap-col {\n width: 100%; }\n\n.ndc-action-details-container .included-nap-col {\n width: 40%;\n display: flex; }\n .ndc-action-details-container .included-nap-col .in-nap-row {\n width: 100%;\n align-items: center; }\n .ndc-action-details-container .included-nap-col .in-nap-row .included-label {\n display: flex;\n flex-direction: row;\n width: fit-content;\n align-items: center;\n justify-content: space-between;\n font-size: 14px;\n color: rgba(58, 53, 65, 0.5); }\n .ndc-action-details-container .included-nap-col .in-nap-row .included-label .info-container {\n display: flex;\n flex-direction: row;\n width: 10%;\n height: 30px;\n align-items: center;\n justify-content: flex-end; }\n .ndc-action-details-container .included-nap-col .in-nap-row .included-val {\n width: 100%; }\n .ndc-action-details-container .included-nap-col .in-nap-row .included-val .yes-no-radio-container {\n width: 43%;\n text-align: center; }\n .ndc-action-details-container .included-nap-col .in-nap-row .included-val .yes-no-radio-container .ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled) {\n color: #ffffff !important;\n border-color: #9155fd;\n box-shadow: none;\n border-radius: 4px; }\n .ndc-action-details-container .included-nap-col .in-nap-row .included-val .ant-radio-button-wrapper::before {\n background-color: transparent;\n border-radius: 4px; }\n .ndc-action-details-container .included-nap-col .in-nap-row .included-val .ant-radio-button-wrapper {\n border: 1px solid #d9d9d9;\n border-radius: 4px;\n color: #8c8c8c; }\n .ndc-action-details-container .included-nap-col .in-nap-row .included-val .anticon {\n margin-right: 0.5rem; }\n .ndc-action-details-container .included-nap-col .in-nap-row .included-val .yes-no-radio {\n width: 100%; }\n .ndc-action-details-container .included-nap-col .in-nap-row .included-val .yes-no-radio .ant-radio-button-checked {\n background: #9155fd;\n color: #ffffff; }\n\n.ndc-action-details-container .row-custom-1 {\n display: flex;\n margin-bottom: 2px; }\n\n.ndc-action-details-container .row-custom {\n display: flex;\n width: 200px;\n align-items: center;\n justify-content: space-between;\n margin-bottom: 1rem; }\n .ndc-action-details-container .row-custom .ant-input-number {\n height: 35px;\n display: flex;\n align-items: center;\n justify-content: center; }\n\n.ndc-action-details-container .enablement-type-item {\n display: flex;\n width: 100%; }\n .ndc-action-details-container .enablement-type-item .ant-form-item-row {\n display: flex;\n width: 100%; }\n .ndc-action-details-container .enablement-type-item .ant-checkbox-wrapper {\n color: rgba(58, 53, 65, 0.5);\n font-size: 14px; }\n .ndc-action-details-container .enablement-type-item .type-checkbox-grp {\n display: flex;\n width: 100%; }\n .ndc-action-details-container .enablement-type-item .type-checkbox-grp .grp-row {\n display: flex;\n width: 100%; }\n\n.ndc-action-details-container .ant-select-selection-item {\n color: #949599 !important; }\n\n.ndc-action-details-container .ant-select-dropdown {\n font-family: \"Inter\";\n color: #949599 !important; }\n\n.ndc-action-details-container .ant-select-selector {\n color: #949599 !important; }\n\n.ndc-action-details-container .ant-select-disabled .ant-select-arrow {\n display: none; }\n\n.ndc-action-details-container .label-heading {\n font-family: 'Inter';\n font-style: normal;\n font-weight: 600;\n font-size: 14px;\n line-height: 22px;\n color: rgba(58, 53, 65, 0.5);\n margin-bottom: 5px; }\n\n.ndc-action-details-container .steps-actions {\n display: flex;\n flex-direction: row-reverse; }\n .ndc-action-details-container .steps-actions .mg-left-1 {\n margin-left: 1rem; }\n\n.ndc-action-details-container .upload-doc {\n height: 40px !important;\n margin-right: 240px; }\n\n.ndc-action-details-container .ant-upload-list-item {\n border-radius: 5px !important;\n height: 40px !important; }\n\n.ndc-action-details-container .design-upload-section {\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: start;\n width: 100%; }\n .ndc-action-details-container .design-upload-section .icon-color {\n color: #16b1ff !important; }\n .ndc-action-details-container .design-upload-section .ant-upload {\n width: 20%; }\n .ndc-action-details-container .design-upload-section .ant-upload-list {\n align-items: center;\n justify-content: center;\n width: 75%; }\n .ndc-action-details-container .design-upload-section .ant-upload-list .ant-upload-list-item {\n margin-top: 0; }\n";
19904
19904
  styleInject(css_248z$j);
19905
19905
 
19906
19906
  var EnablementTypes;
@@ -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, ButtonGroup = props.ButtonGroup, Link = props.Link, _a = props.isMultipleDashboardsVisible, isMultipleDashboardsVisible = _a === void 0 ? false : _a;
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" },