@patternfly/react-table 4.77.4 → 4.77.7
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 +24 -0
- package/package.json +6 -6
- package/src/demos/Table.md +37 -28
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,30 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## 4.77.7 (2022-05-04)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @patternfly/react-table
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## 4.77.6 (2022-05-03)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @patternfly/react-table
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
## 4.77.5 (2022-05-03)
|
|
23
|
+
|
|
24
|
+
**Note:** Version bump only for package @patternfly/react-table
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
6
30
|
## 4.77.4 (2022-05-03)
|
|
7
31
|
|
|
8
32
|
**Note:** Version bump only for package @patternfly/react-table
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@patternfly/react-table",
|
|
3
|
-
"version": "4.77.
|
|
3
|
+
"version": "4.77.7",
|
|
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.208.
|
|
35
|
-
"@patternfly/react-icons": "^4.59.
|
|
36
|
-
"@patternfly/react-styles": "^4.58.
|
|
37
|
-
"@patternfly/react-tokens": "^4.60.
|
|
34
|
+
"@patternfly/react-core": "^4.208.7",
|
|
35
|
+
"@patternfly/react-icons": "^4.59.7",
|
|
36
|
+
"@patternfly/react-styles": "^4.58.7",
|
|
37
|
+
"@patternfly/react-tokens": "^4.60.7",
|
|
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": "1af2a9586c42d64d32fe1def12a3c858653e7115"
|
|
50
50
|
}
|
package/src/demos/Table.md
CHANGED
|
@@ -3,7 +3,7 @@ id: Table
|
|
|
3
3
|
section: components
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
import { Checkbox, ToolbarExpandIconWrapper, ToolbarContent } from '@patternfly/react-core';
|
|
6
|
+
import { Checkbox, PageSection, ToolbarExpandIconWrapper, ToolbarContent } from '@patternfly/react-core';
|
|
7
7
|
import CodeIcon from '@patternfly/react-icons/dist/esm/icons/code-icon';
|
|
8
8
|
import CodeBranchIcon from '@patternfly/react-icons/dist/esm/icons/code-branch-icon';
|
|
9
9
|
import CubeIcon from '@patternfly/react-icons/dist/esm/icons/cube-icon';
|
|
@@ -21,10 +21,11 @@ import AngleDownIcon from '@patternfly/react-icons/dist/esm/icons/angle-down-ico
|
|
|
21
21
|
import AngleRightIcon from '@patternfly/react-icons/dist/esm/icons/angle-right-icon';
|
|
22
22
|
import BarsIcon from '@patternfly/react-icons/dist/esm/icons/bars-icon';
|
|
23
23
|
import AttentionBellIcon from '@patternfly/react-icons/dist/esm/icons/attention-bell-icon';
|
|
24
|
+
import DashboardWrapper from '@patternfly/react-core/src/demos/examples/DashboardWrapper';
|
|
24
25
|
|
|
25
26
|
### Bulk select
|
|
26
27
|
|
|
27
|
-
```js
|
|
28
|
+
```js isFullscreen
|
|
28
29
|
import React from 'react';
|
|
29
30
|
import {
|
|
30
31
|
Dropdown,
|
|
@@ -32,13 +33,16 @@ import {
|
|
|
32
33
|
DropdownPosition,
|
|
33
34
|
DropdownToggle,
|
|
34
35
|
DropdownToggleCheckbox,
|
|
36
|
+
PageSection,
|
|
35
37
|
Pagination,
|
|
36
38
|
Title,
|
|
37
39
|
Toolbar,
|
|
40
|
+
ToolbarContent,
|
|
38
41
|
ToolbarGroup,
|
|
39
42
|
ToolbarItem
|
|
40
43
|
} from '@patternfly/react-core';
|
|
41
44
|
import { Table, TableHeader, TableBody } from '@patternfly/react-table';
|
|
45
|
+
import DashboardWrapper from '@patternfly/react-core/src/demos/examples/DashboardWrapper';
|
|
42
46
|
|
|
43
47
|
class BulkSelectTableDemo extends React.Component {
|
|
44
48
|
constructor(props) {
|
|
@@ -218,10 +222,12 @@ class BulkSelectTableDemo extends React.Component {
|
|
|
218
222
|
return (
|
|
219
223
|
<React.Fragment>
|
|
220
224
|
<Toolbar>
|
|
221
|
-
<
|
|
222
|
-
<
|
|
225
|
+
<ToolbarContent>
|
|
226
|
+
<ToolbarGroup>
|
|
227
|
+
<ToolbarItem variant="bulk-select">{this.buildSelectDropdown()}</ToolbarItem>
|
|
228
|
+
</ToolbarGroup>
|
|
223
229
|
<ToolbarItem variant="pagination">{this.renderPagination('top')}</ToolbarItem>
|
|
224
|
-
</
|
|
230
|
+
</ToolbarContent>
|
|
225
231
|
</Toolbar>
|
|
226
232
|
</React.Fragment>
|
|
227
233
|
);
|
|
@@ -235,29 +241,32 @@ class BulkSelectTableDemo extends React.Component {
|
|
|
235
241
|
}));
|
|
236
242
|
|
|
237
243
|
return (
|
|
238
|
-
<
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
244
|
+
<DashboardWrapper hasPageTemplateTitle>
|
|
245
|
+
<PageSection isWidthLimited>
|
|
246
|
+
{this.renderToolbar()}
|
|
247
|
+
{!loading && (
|
|
248
|
+
<Table
|
|
249
|
+
aria-label="Bulk Select Table Demo"
|
|
250
|
+
cells={['Title', 'Body']}
|
|
251
|
+
rows={rows}
|
|
252
|
+
onSelect={this.onSelect}
|
|
253
|
+
canSelectAll={false}
|
|
254
|
+
>
|
|
255
|
+
<TableHeader />
|
|
256
|
+
<TableBody />
|
|
257
|
+
</Table>
|
|
258
|
+
)}
|
|
259
|
+
|
|
260
|
+
{loading && (
|
|
261
|
+
<div className="pf-l-bullseye">
|
|
262
|
+
<Title headingLevel="h2" size="3xl">
|
|
263
|
+
Please wait while loading data
|
|
264
|
+
</Title>
|
|
265
|
+
</div>
|
|
266
|
+
)}
|
|
267
|
+
{this.renderPagination('bottom')}
|
|
268
|
+
</PageSection>
|
|
269
|
+
</DashboardWrapper>
|
|
261
270
|
);
|
|
262
271
|
}
|
|
263
272
|
}
|