@undp/carbon-library 1.0.274-CARBON-363.43 → 1.0.274-CARBON-363.48

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/esm/index.js CHANGED
@@ -26858,6 +26858,15 @@ var NdcDetailsComponent = function (props) {
26858
26858
  _a.sent();
26859
26859
  return [2 /*return*/];
26860
26860
  case 4:
26861
+ if (!updatedFields) {
26862
+ setEditingKey(null);
26863
+ return [2 /*return*/];
26864
+ }
26865
+ else if (updatedFields.kpi === row.kpi &&
26866
+ updatedFields.nationalPlanObjective === row.nationalPlanObjective) {
26867
+ setEditingKey(null);
26868
+ return [2 /*return*/];
26869
+ }
26861
26870
  updatedItem = __assign(__assign({}, row), updatedFields);
26862
26871
  if (!(updatedItem.status === NdcDetailsActionStatus.New)) return [3 /*break*/, 6];
26863
26872
  if (isGovernmentUser &&
@@ -26903,6 +26912,7 @@ var NdcDetailsComponent = function (props) {
26903
26912
  {
26904
26913
  text: t("ndc:approve"),
26905
26914
  icon: React.createElement(Icon.BoxArrowInDown, null),
26915
+ style: "color-primary",
26906
26916
  click: function () {
26907
26917
  setActionInfo({
26908
26918
  action: "Approve",
@@ -26917,6 +26927,7 @@ var NdcDetailsComponent = function (props) {
26917
26927
  {
26918
26928
  text: t("ndc:reject"),
26919
26929
  icon: React.createElement(Icon.XOctagon, null),
26930
+ style: "color-error",
26920
26931
  click: function () {
26921
26932
  setActionInfo({
26922
26933
  action: "Reject",
@@ -26929,7 +26940,7 @@ var NdcDetailsComponent = function (props) {
26929
26940
  },
26930
26941
  },
26931
26942
  ], renderItem: function (item) { return (React.createElement(List.Item, { onClick: item.click },
26932
- React.createElement(Typography.Text, { className: "action-icon color-error" }, item.icon),
26943
+ React.createElement(Typography.Text, { className: "action-icon ".concat(item.style) }, item.icon),
26933
26944
  React.createElement("span", null, item.text))); } }));
26934
26945
  }
26935
26946
  else {