@patternfly/react-table 4.31.7 → 4.31.11
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/CHANGELOG.md +35 -0
- package/dist/esm/components/Table/Table.d.ts.map +1 -1
- package/dist/esm/components/Table/Table.js +1 -1
- package/dist/esm/components/Table/Table.js.map +1 -1
- package/dist/js/components/Table/Table.d.ts.map +1 -1
- package/dist/js/components/Table/Table.js +1 -1
- package/dist/js/components/Table/Table.js.map +1 -1
- package/dist/umd/react-table.css +9941 -9941
- package/dist/umd/react-table.js +1 -1
- package/dist/umd/react-table.min.css +7027 -7027
- package/dist/umd/react-table.min.js +1 -1
- package/package.json +6 -6
- package/src/components/Table/Table.tsx +3 -1
- package/src/components/Table/examples/Table.md +3 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@patternfly/react-table",
|
|
3
|
-
"version": "4.31.
|
|
3
|
+
"version": "4.31.11",
|
|
4
4
|
"description": "This library provides a set of React table components for use with the PatternFly 4",
|
|
5
5
|
"main": "dist/js/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -31,10 +31,10 @@
|
|
|
31
31
|
"clean": "rimraf dist"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@patternfly/react-core": "^4.162.
|
|
35
|
-
"@patternfly/react-icons": "^4.13.
|
|
36
|
-
"@patternfly/react-styles": "^4.12.
|
|
37
|
-
"@patternfly/react-tokens": "^4.14.
|
|
34
|
+
"@patternfly/react-core": "^4.162.5",
|
|
35
|
+
"@patternfly/react-icons": "^4.13.1",
|
|
36
|
+
"@patternfly/react-styles": "^4.12.5",
|
|
37
|
+
"@patternfly/react-tokens": "^4.14.1",
|
|
38
38
|
"lodash": "^4.17.19",
|
|
39
39
|
"tslib": "^2.0.0"
|
|
40
40
|
},
|
|
@@ -46,5 +46,5 @@
|
|
|
46
46
|
"react": "^16.8.0 || ^17.0.0",
|
|
47
47
|
"react-dom": "^16.8.0 || ^17.0.0"
|
|
48
48
|
},
|
|
49
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "257056ac06e7928bc56f9942ba0407719fd03663"
|
|
50
50
|
}
|
|
@@ -152,7 +152,9 @@ export class Table extends React.Component<TableProps, {}> {
|
|
|
152
152
|
if (rows === undefined || rows.length === 0) {
|
|
153
153
|
return false;
|
|
154
154
|
}
|
|
155
|
-
return rows.every(
|
|
155
|
+
return rows.every(
|
|
156
|
+
row => this.isSelected(row) || row.disableSelection || (row.hasOwnProperty('parent') && !row.showSelect)
|
|
157
|
+
);
|
|
156
158
|
};
|
|
157
159
|
|
|
158
160
|
render() {
|
|
@@ -556,7 +556,9 @@ class SelectableTable extends React.Component {
|
|
|
556
556
|
let rows;
|
|
557
557
|
if (rowId === -1) {
|
|
558
558
|
rows = this.state.rows.map(oneRow => {
|
|
559
|
-
oneRow.
|
|
559
|
+
if (!oneRow.disableSelection) {
|
|
560
|
+
oneRow.selected = isSelected;
|
|
561
|
+
}
|
|
560
562
|
return oneRow;
|
|
561
563
|
});
|
|
562
564
|
} else {
|