@patternfly/react-table 4.67.7 → 4.67.10
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/README.md +1 -1
- package/dist/umd/react-table.css +82 -81
- package/dist/umd/react-table.js +26 -18
- package/dist/umd/react-table.min.css +113 -112
- package/dist/umd/react-table.min.js +4 -5
- package/package.json +6 -6
- package/src/components/TableComposable/examples/ComposableTableTree.tsx +2 -1
- package/src/demos/Table.md +3 -22
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@patternfly/react-table",
|
|
3
|
-
"version": "4.67.
|
|
3
|
+
"version": "4.67.10",
|
|
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.198.
|
|
35
|
-
"@patternfly/react-icons": "^4.49.
|
|
36
|
-
"@patternfly/react-styles": "^4.48.
|
|
37
|
-
"@patternfly/react-tokens": "^4.50.
|
|
34
|
+
"@patternfly/react-core": "^4.198.10",
|
|
35
|
+
"@patternfly/react-icons": "^4.49.10",
|
|
36
|
+
"@patternfly/react-styles": "^4.48.10",
|
|
37
|
+
"@patternfly/react-tokens": "^4.50.10",
|
|
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": "b3c05ce12ebb96e35e10c06e778c5b7865ecec01"
|
|
50
50
|
}
|
|
@@ -111,8 +111,8 @@ export const ComposableTableTree: React.FunctionComponent = () => {
|
|
|
111
111
|
- nodes - array of a single level of tree nodes
|
|
112
112
|
- level - number representing how deeply nested the current row is
|
|
113
113
|
- posinset - position of the row relative to this row's siblings
|
|
114
|
-
- isHidden - defaults to false, true if this row's parent is expanded
|
|
115
114
|
- currentRowIndex - position of the row relative to the entire table
|
|
115
|
+
- isHidden - defaults to false, true if this row's parent is expanded
|
|
116
116
|
*/
|
|
117
117
|
const renderRows = (
|
|
118
118
|
[node, ...remainingNodes]: RepositoriesTreeNode[],
|
|
@@ -159,6 +159,7 @@ export const ComposableTableTree: React.FunctionComponent = () => {
|
|
|
159
159
|
'aria-posinset': posinset,
|
|
160
160
|
'aria-setsize': node.children ? node.children.length : 0,
|
|
161
161
|
isChecked,
|
|
162
|
+
checkboxId: `checkbox_id_${node.name.replace(/\s+/g, '')}`,
|
|
162
163
|
icon
|
|
163
164
|
}
|
|
164
165
|
};
|
package/src/demos/Table.md
CHANGED
|
@@ -273,7 +273,6 @@ class BulkSelectTableDemo extends React.Component {
|
|
|
273
273
|
import React from 'react';
|
|
274
274
|
import {
|
|
275
275
|
Button,
|
|
276
|
-
Checkbox,
|
|
277
276
|
DataList,
|
|
278
277
|
DataListCheck,
|
|
279
278
|
DataListItem,
|
|
@@ -282,7 +281,6 @@ import {
|
|
|
282
281
|
DataListItemCells,
|
|
283
282
|
Toolbar,
|
|
284
283
|
ToolbarContent,
|
|
285
|
-
ToolbarGroup,
|
|
286
284
|
ToolbarItem,
|
|
287
285
|
Modal,
|
|
288
286
|
OverflowMenu,
|
|
@@ -294,7 +292,6 @@ import {
|
|
|
294
292
|
PaginationVariant,
|
|
295
293
|
Text,
|
|
296
294
|
TextContent,
|
|
297
|
-
ToolbarToggleGroup,
|
|
298
295
|
Select,
|
|
299
296
|
SelectVariant
|
|
300
297
|
} from '@patternfly/react-core';
|
|
@@ -916,7 +913,6 @@ class ColumnManagementAction extends React.Component {
|
|
|
916
913
|
import React from 'react';
|
|
917
914
|
import {
|
|
918
915
|
Button,
|
|
919
|
-
Checkbox,
|
|
920
916
|
DataList,
|
|
921
917
|
DataListCheck,
|
|
922
918
|
DataListControl,
|
|
@@ -927,7 +923,6 @@ import {
|
|
|
927
923
|
DataListItemCells,
|
|
928
924
|
Toolbar,
|
|
929
925
|
ToolbarContent,
|
|
930
|
-
ToolbarGroup,
|
|
931
926
|
ToolbarItem,
|
|
932
927
|
Modal,
|
|
933
928
|
OverflowMenu,
|
|
@@ -939,7 +934,6 @@ import {
|
|
|
939
934
|
PaginationVariant,
|
|
940
935
|
Text,
|
|
941
936
|
TextContent,
|
|
942
|
-
ToolbarToggleGroup,
|
|
943
937
|
Select,
|
|
944
938
|
SelectVariant
|
|
945
939
|
} from '@patternfly/react-core';
|
|
@@ -2098,9 +2092,6 @@ import {
|
|
|
2098
2092
|
} from '@patternfly/react-core';
|
|
2099
2093
|
import { TableComposable, Thead, Tr, Th, Tbody, Td } from '@patternfly/react-table';
|
|
2100
2094
|
|
|
2101
|
-
import CodeIcon from '@patternfly/react-icons/dist/esm/icons/code-icon';
|
|
2102
|
-
import CodeBranchIcon from '@patternfly/react-icons/dist/esm/icons/code-branch-icon';
|
|
2103
|
-
import CubeIcon from '@patternfly/react-icons/dist/esm/icons/cube-icon';
|
|
2104
2095
|
import FilterIcon from '@patternfly/react-icons/dist/esm/icons/filter-icon';
|
|
2105
2096
|
import SortAmountDownIcon from '@patternfly/react-icons/dist/esm/icons/sort-amount-down-icon';
|
|
2106
2097
|
import BarsIcon from '@patternfly/react-icons/dist/esm/icons/bars-icon';
|
|
@@ -2727,15 +2718,10 @@ import {
|
|
|
2727
2718
|
BreadcrumbItem,
|
|
2728
2719
|
Button,
|
|
2729
2720
|
ButtonVariant,
|
|
2730
|
-
Card,
|
|
2731
|
-
CardBody,
|
|
2732
2721
|
Dropdown,
|
|
2733
2722
|
DropdownGroup,
|
|
2734
2723
|
DropdownToggle,
|
|
2735
2724
|
DropdownItem,
|
|
2736
|
-
DropdownSeparator,
|
|
2737
|
-
Gallery,
|
|
2738
|
-
GalleryItem,
|
|
2739
2725
|
KebabToggle,
|
|
2740
2726
|
Nav,
|
|
2741
2727
|
NavItem,
|
|
@@ -2752,8 +2738,6 @@ import {
|
|
|
2752
2738
|
PageHeaderToolsGroup,
|
|
2753
2739
|
PageHeaderToolsItem
|
|
2754
2740
|
} from '@patternfly/react-core';
|
|
2755
|
-
import { css } from '@patternfly/react-styles';
|
|
2756
|
-
import BellIcon from '@patternfly/react-icons/dist/esm/icons/bell-icon';
|
|
2757
2741
|
import CogIcon from '@patternfly/react-icons/dist/esm/icons/cog-icon';
|
|
2758
2742
|
import HelpIcon from '@patternfly/react-icons/dist/esm/icons/help-icon';
|
|
2759
2743
|
import imgBrand from '@patternfly/react-core/src/components/Brand/examples/pfLogo.svg';
|
|
@@ -2968,7 +2952,6 @@ These examples demonstrate the use of an [Empty State component](/components/emp
|
|
|
2968
2952
|
```js
|
|
2969
2953
|
import React from 'react';
|
|
2970
2954
|
import {
|
|
2971
|
-
Bullseye,
|
|
2972
2955
|
Button,
|
|
2973
2956
|
EmptyState,
|
|
2974
2957
|
EmptyStateIcon,
|
|
@@ -3050,7 +3033,7 @@ class LoadingStateDemo extends React.Component {
|
|
|
3050
3033
|
props: { colSpan: 8 },
|
|
3051
3034
|
title: (
|
|
3052
3035
|
<Bullseye>
|
|
3053
|
-
<Spinner size="xl" />
|
|
3036
|
+
<Spinner size="xl" aria-labelledby="loading-table-demo"/>
|
|
3054
3037
|
</Bullseye>
|
|
3055
3038
|
)
|
|
3056
3039
|
}
|
|
@@ -3059,7 +3042,7 @@ class LoadingStateDemo extends React.Component {
|
|
|
3059
3042
|
];
|
|
3060
3043
|
|
|
3061
3044
|
return (
|
|
3062
|
-
<Table cells={columns} rows={rows} aria-label="Loading Table Demo">
|
|
3045
|
+
<Table cells={columns} rows={rows} id="loading-table-demo" aria-label="Loading Table Demo">
|
|
3063
3046
|
<TableHeader />
|
|
3064
3047
|
<TableBody />
|
|
3065
3048
|
</Table>
|
|
@@ -3072,10 +3055,8 @@ class LoadingStateDemo extends React.Component {
|
|
|
3072
3055
|
|
|
3073
3056
|
```js
|
|
3074
3057
|
import React from 'react';
|
|
3075
|
-
import {
|
|
3058
|
+
import { EmptyState, EmptyStateBody, EmptyStateVariant, Title } from '@patternfly/react-core';
|
|
3076
3059
|
import { Table, TableHeader, TableBody } from '@patternfly/react-table';
|
|
3077
|
-
import ExclamationCircleIcon from '@patternfly/react-icons/dist/esm/icons/exclamation-circle-icon';
|
|
3078
|
-
import globalDangerColor200 from '@patternfly/react-tokens/dist/esm/global_danger_color_200';
|
|
3079
3060
|
|
|
3080
3061
|
class ErrorStateDemo extends React.Component {
|
|
3081
3062
|
render() {
|