es-grid-template 1.7.30 → 1.7.31
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/es/grid-component/InternalTable.js +0 -1
- package/es/grid-component/TempTable.js +2 -2
- package/es/grid-component/hooks/useColumns.d.ts +1 -3
- package/es/table-component/body/TableBodyCellEdit.js +11 -7
- package/lib/grid-component/InternalTable.js +0 -1
- package/lib/grid-component/TempTable.js +2 -2
- package/lib/table-component/body/TableBodyCellEdit.js +11 -7
- package/package.json +1 -1
|
@@ -517,7 +517,6 @@ const InternalTable = props => {
|
|
|
517
517
|
const {
|
|
518
518
|
sortOrder
|
|
519
519
|
} = args;
|
|
520
|
-
console.log('sortOrder', sortOrder);
|
|
521
520
|
return /*#__PURE__*/React.createElement(Fragment, null, !sortOrder && /*#__PURE__*/React.createElement(SortCancel, {
|
|
522
521
|
fontSize: 15,
|
|
523
522
|
style: {
|
|
@@ -9,9 +9,9 @@ const TempTable = props => {
|
|
|
9
9
|
editAble,
|
|
10
10
|
...rest
|
|
11
11
|
} = props;
|
|
12
|
-
const TabComponent = groupAble ? InternalTable : Table;
|
|
13
|
-
// const TabComponent = editAble ? Table : InternalTable
|
|
14
12
|
|
|
13
|
+
// const TabComponent = groupAble ? InternalTable : Table
|
|
14
|
+
const TabComponent = editAble ? Table : InternalTable;
|
|
15
15
|
return /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement(TabComponent, _extends({}, rest, {
|
|
16
16
|
infiniteScroll: infiniteScroll,
|
|
17
17
|
groupAble: groupAble,
|
|
@@ -15,7 +15,5 @@ interface UseColumnsConfig<RecordType> {
|
|
|
15
15
|
rowKey?: any;
|
|
16
16
|
onMouseHover?: any;
|
|
17
17
|
}
|
|
18
|
-
declare const useColumns: <RecordType extends AnyObject = AnyObject>(config: UseColumnsConfig<RecordType>) => readonly [
|
|
19
|
-
any
|
|
20
|
-
];
|
|
18
|
+
declare const useColumns: <RecordType extends AnyObject = AnyObject>(config: UseColumnsConfig<RecordType>) => readonly [any];
|
|
21
19
|
export default useColumns;
|
|
@@ -879,14 +879,18 @@ const TableBodyCellEdit = props => {
|
|
|
879
879
|
} else {
|
|
880
880
|
handleMouseDown(cell.row.id, cell.column.id);
|
|
881
881
|
if (editingKey) {
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
882
|
+
setTimeout(() => {
|
|
883
|
+
setEditingKey?.('');
|
|
884
|
+
reset?.();
|
|
885
|
+
});
|
|
886
886
|
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
887
|
+
// const currentEditColumn = table.getVisibleFlatColumns().find((it) => it.id === focusedCell?.colId)
|
|
888
|
+
|
|
889
|
+
// if ()
|
|
890
|
+
|
|
891
|
+
// handleChange()
|
|
892
|
+
// setEditingKey?.('')
|
|
893
|
+
// reset?.()
|
|
890
894
|
}
|
|
891
895
|
|
|
892
896
|
// reset?.()
|
|
@@ -525,7 +525,6 @@ const InternalTable = props => {
|
|
|
525
525
|
const {
|
|
526
526
|
sortOrder
|
|
527
527
|
} = args;
|
|
528
|
-
console.log('sortOrder', sortOrder);
|
|
529
528
|
return /*#__PURE__*/_react.default.createElement(_react.Fragment, null, !sortOrder && /*#__PURE__*/_react.default.createElement(_becoxyIcons.SortCancel, {
|
|
530
529
|
fontSize: 15,
|
|
531
530
|
style: {
|
|
@@ -18,9 +18,9 @@ const TempTable = props => {
|
|
|
18
18
|
editAble,
|
|
19
19
|
...rest
|
|
20
20
|
} = props;
|
|
21
|
-
const TabComponent = groupAble ? _InternalTable.default : _tableComponent.default;
|
|
22
|
-
// const TabComponent = editAble ? Table : InternalTable
|
|
23
21
|
|
|
22
|
+
// const TabComponent = groupAble ? InternalTable : Table
|
|
23
|
+
const TabComponent = editAble ? _tableComponent.default : _InternalTable.default;
|
|
24
24
|
return /*#__PURE__*/_react.default.createElement(_react.Fragment, null, /*#__PURE__*/_react.default.createElement(TabComponent, (0, _extends2.default)({}, rest, {
|
|
25
25
|
infiniteScroll: infiniteScroll,
|
|
26
26
|
groupAble: groupAble,
|
|
@@ -885,14 +885,18 @@ const TableBodyCellEdit = props => {
|
|
|
885
885
|
} else {
|
|
886
886
|
handleMouseDown(cell.row.id, cell.column.id);
|
|
887
887
|
if (editingKey) {
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
888
|
+
setTimeout(() => {
|
|
889
|
+
setEditingKey?.('');
|
|
890
|
+
reset?.();
|
|
891
|
+
});
|
|
892
892
|
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
893
|
+
// const currentEditColumn = table.getVisibleFlatColumns().find((it) => it.id === focusedCell?.colId)
|
|
894
|
+
|
|
895
|
+
// if ()
|
|
896
|
+
|
|
897
|
+
// handleChange()
|
|
898
|
+
// setEditingKey?.('')
|
|
899
|
+
// reset?.()
|
|
896
900
|
}
|
|
897
901
|
|
|
898
902
|
// reset?.()
|