@undp/carbon-library 1.0.155 → 1.0.156-CARBON-343.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/index.js +10 -4
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +12 -6
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
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
|
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,19 @@ 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: "
|
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(
|
24608
|
-
|
24609
|
-
|
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(Tooltip, { title: "Edit" },
|
24613
|
+
React.createElement(Typography.Link, { disabled: editingKey !== "", onClick: function () { return onEditRow(record); } },
|
24614
|
+
React.createElement(EditOutlined, null))));
|
24610
24615
|
},
|
24611
24616
|
},
|
24612
24617
|
];
|
@@ -24711,6 +24716,7 @@ var NdcDetailsComponent = function (props) {
|
|
24711
24716
|
}
|
24712
24717
|
var onTabChange = function (key) {
|
24713
24718
|
setSelectedTab(key);
|
24719
|
+
setEditingKey("");
|
24714
24720
|
};
|
24715
24721
|
useEffect(function () {
|
24716
24722
|
var defaultNdcDetails = [
|