@undp/carbon-library 1.0.155 → 1.0.156

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
@@ -1,5 +1,5 @@
1
- import { PlusOutlined, FilterOutlined, BankOutlined, SafetyOutlined, AuditOutlined, ExperimentOutlined, UploadOutlined, UserOutlined, MinusCircleOutlined, StarOutlined, ToolOutlined, EyeOutlined, SearchOutlined, EllipsisOutlined, EditOutlined, DeleteOutlined, FileAddOutlined, CheckCircleOutlined, ExclamationCircleOutlined, BookOutlined, CaretDownOutlined, EyeInvisibleOutlined, GlobalOutlined, FlagOutlined, LineChartOutlined, LikeOutlined, DislikeOutlined } from '@ant-design/icons';
2
- import { Input, Radio, Space, Row, Col, Button, Dropdown, Table, Empty, message, Form, Steps, Upload, Tooltip, Select, Modal, Alert, Skeleton, Card, Tag, Checkbox, DatePicker, InputNumber, Popover, List, Typography, Spin, Tabs, Progress, Popconfirm } from 'antd';
1
+ import { PlusOutlined, FilterOutlined, BankOutlined, SafetyOutlined, AuditOutlined, ExperimentOutlined, UploadOutlined, UserOutlined, MinusCircleOutlined, StarOutlined, ToolOutlined, EyeOutlined, SearchOutlined, EllipsisOutlined, EditOutlined, DeleteOutlined, FileAddOutlined, CheckCircleOutlined, ExclamationCircleOutlined, BookOutlined, CaretDownOutlined, SaveOutlined, EyeInvisibleOutlined, GlobalOutlined, FlagOutlined, LineChartOutlined, LikeOutlined, DislikeOutlined } from '@ant-design/icons';
2
+ import { Input, Radio, Space, Row, Col, Button, Dropdown, Table, Empty, message, Form, Steps, Upload, Tooltip, Select, Modal, Alert, Skeleton, Card, Tag, Checkbox, DatePicker, InputNumber, Popover, List, Typography, Spin, Tabs, Progress } from 'antd';
3
3
  import React, { useState, useEffect, useRef } from 'react';
4
4
  import { DateTime } from 'luxon';
5
5
  import { Buffer } from 'buffer';
@@ -24599,14 +24599,18 @@ var NdcDetailsComponent = function (props) {
24599
24599
  React.createElement("span", null, record.ministry))) : (React.createElement("input", { className: "ant-input", disabled: true, type: "text" })))); },
24600
24600
  },
24601
24601
  {
24602
- title: "operation",
24602
+ title: "Action",
24603
24603
  dataIndex: "operation",
24604
24604
  render: function (_, record) {
24605
24605
  var editable = isEditing(record);
24606
24606
  return editable ? (React.createElement("span", null,
24607
- React.createElement(Typography.Link, { onClick: function () { return onHandleSave(record); }, style: { marginRight: 8 } }, "Save"),
24608
- React.createElement(Popconfirm, { title: "Sure to cancel?", onConfirm: onEditCancel },
24609
- React.createElement("a", null, "Cancel")))) : (React.createElement(Typography.Link, { disabled: editingKey !== "", onClick: function () { return onEditRow(record); } }, "Edit"));
24607
+ React.createElement(Tooltip, { title: "Save" },
24608
+ React.createElement(Typography.Link, { onClick: function () { return onHandleSave(record); }, style: { marginRight: 20 } },
24609
+ React.createElement(SaveOutlined, null))),
24610
+ React.createElement(Tooltip, { title: "Cancel" },
24611
+ React.createElement(Typography.Link, { onClick: onEditCancel, style: { marginRight: 8 } },
24612
+ React.createElement(ExclamationCircleOutlined, null))))) : (React.createElement(Typography.Link, { disabled: editingKey !== "", onClick: function () { return onEditRow(record); } },
24613
+ React.createElement(EditOutlined, null)));
24610
24614
  },
24611
24615
  },
24612
24616
  ];
@@ -24711,6 +24715,7 @@ var NdcDetailsComponent = function (props) {
24711
24715
  }
24712
24716
  var onTabChange = function (key) {
24713
24717
  setSelectedTab(key);
24718
+ setEditingKey("");
24714
24719
  };
24715
24720
  useEffect(function () {
24716
24721
  var defaultNdcDetails = [