qbs-react-grid 1.1.39 → 1.1.41
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/qbsTable/QbsTable.js
CHANGED
|
@@ -121,7 +121,7 @@ var QbsTable = function QbsTable(_ref) {
|
|
|
121
121
|
var keys = event.target.checked ? data.map(function (item) {
|
|
122
122
|
return item.id;
|
|
123
123
|
}) : [];
|
|
124
|
-
var updatedKeys = [].concat(
|
|
124
|
+
var updatedKeys = [].concat(keys);
|
|
125
125
|
setCheckedKeys(updatedKeys);
|
|
126
126
|
handleChecked(updatedKeys);
|
|
127
127
|
}, [data]);
|
|
@@ -154,7 +154,7 @@ var QbsTable = function QbsTable(_ref) {
|
|
|
154
154
|
if (visibleCount > 0 && lastVisibleColumn) {
|
|
155
155
|
updatedColumns.forEach(function (col) {
|
|
156
156
|
var _lastVisibleColumn;
|
|
157
|
-
if (col.field === ((_lastVisibleColumn = lastVisibleColumn) === null || _lastVisibleColumn === void 0 ? void 0 : _lastVisibleColumn.field)) {
|
|
157
|
+
if (col.field === ((_lastVisibleColumn = lastVisibleColumn) === null || _lastVisibleColumn === void 0 ? void 0 : _lastVisibleColumn.field) && col.title === lastVisibleColumn.title) {
|
|
158
158
|
col.resizable = false;
|
|
159
159
|
} else {
|
|
160
160
|
col.resizable = true;
|
package/lib/qbsTable/QbsTable.js
CHANGED
|
@@ -127,7 +127,7 @@ var QbsTable = function QbsTable(_ref) {
|
|
|
127
127
|
var keys = event.target.checked ? data.map(function (item) {
|
|
128
128
|
return item.id;
|
|
129
129
|
}) : [];
|
|
130
|
-
var updatedKeys = [].concat(
|
|
130
|
+
var updatedKeys = [].concat(keys);
|
|
131
131
|
setCheckedKeys(updatedKeys);
|
|
132
132
|
handleChecked(updatedKeys);
|
|
133
133
|
}, [data]);
|
|
@@ -160,7 +160,7 @@ var QbsTable = function QbsTable(_ref) {
|
|
|
160
160
|
if (visibleCount > 0 && lastVisibleColumn) {
|
|
161
161
|
updatedColumns.forEach(function (col) {
|
|
162
162
|
var _lastVisibleColumn;
|
|
163
|
-
if (col.field === ((_lastVisibleColumn = lastVisibleColumn) === null || _lastVisibleColumn === void 0 ? void 0 : _lastVisibleColumn.field)) {
|
|
163
|
+
if (col.field === ((_lastVisibleColumn = lastVisibleColumn) === null || _lastVisibleColumn === void 0 ? void 0 : _lastVisibleColumn.field) && col.title === lastVisibleColumn.title) {
|
|
164
164
|
col.resizable = false;
|
|
165
165
|
} else {
|
|
166
166
|
col.resizable = true;
|
package/package.json
CHANGED
|
@@ -7,7 +7,13 @@ import HeaderCell from '../HeaderCell';
|
|
|
7
7
|
import Pagination from '../Pagination';
|
|
8
8
|
import Table from '../Table';
|
|
9
9
|
import { QbsColumnProps, QbsTableProps } from './commontypes';
|
|
10
|
-
import {
|
|
10
|
+
import {
|
|
11
|
+
ActionCell,
|
|
12
|
+
CheckCell,
|
|
13
|
+
CustomRowStatus,
|
|
14
|
+
CustomTableCell,
|
|
15
|
+
ExpandCell
|
|
16
|
+
} from './CustomTableCell';
|
|
11
17
|
import ToolBar from './Toolbar';
|
|
12
18
|
import ColumToggle from './utilities/ColumShowHide';
|
|
13
19
|
import debounce from './utilities/debounce';
|
|
@@ -102,7 +108,7 @@ const QbsTable: React.FC<QbsTableProps> = ({
|
|
|
102
108
|
const handleCheckAll = useCallback(
|
|
103
109
|
(event: React.ChangeEvent<HTMLInputElement>) => {
|
|
104
110
|
const keys = event.target.checked ? data.map(item => item.id) : [];
|
|
105
|
-
let updatedKeys = [...
|
|
111
|
+
let updatedKeys = [...keys];
|
|
106
112
|
setCheckedKeys(updatedKeys);
|
|
107
113
|
handleChecked(updatedKeys);
|
|
108
114
|
},
|
|
@@ -144,7 +150,7 @@ const QbsTable: React.FC<QbsTableProps> = ({
|
|
|
144
150
|
|
|
145
151
|
if (visibleCount > 0 && lastVisibleColumn) {
|
|
146
152
|
updatedColumns.forEach(col => {
|
|
147
|
-
if (col.field === lastVisibleColumn?.field) {
|
|
153
|
+
if (col.field === lastVisibleColumn?.field && col.title === lastVisibleColumn.title) {
|
|
148
154
|
col.resizable = false;
|
|
149
155
|
} else {
|
|
150
156
|
col.resizable = true;
|