@patternfly/react-table 6.0.0-alpha.39 → 6.0.0-alpha.40
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 +168 -0
- package/components/package.json +1 -1
- package/deprecated/package.json +1 -1
- package/dist/dynamic/components/Table/package.json +1 -1
- package/dist/dynamic/components/Table/utils/decorators/package.json +1 -1
- package/dist/dynamic/components/Table/utils/package.json +1 -1
- package/dist/dynamic/deprecated/components/Table/base/package.json +1 -1
- package/dist/dynamic/deprecated/components/Table/package.json +1 -1
- package/dist/dynamic/deprecated/components/package.json +1 -1
- package/dist/esm/demos/DashboardHeader.d.ts +8 -0
- package/dist/esm/demos/DashboardHeader.d.ts.map +1 -0
- package/dist/esm/demos/DashboardHeader.js +77 -0
- package/dist/esm/demos/DashboardHeader.js.map +1 -0
- package/dist/esm/demos/DashboardWrapper.d.ts +85 -0
- package/dist/esm/demos/DashboardWrapper.d.ts.map +1 -0
- package/dist/esm/demos/DashboardWrapper.js +41 -0
- package/dist/esm/demos/DashboardWrapper.js.map +1 -0
- package/dist/esm/demos/index.d.ts +2 -0
- package/dist/esm/demos/index.d.ts.map +1 -1
- package/dist/esm/demos/index.js +2 -0
- package/dist/esm/demos/index.js.map +1 -1
- package/dist/js/demos/DashboardHeader.d.ts +8 -0
- package/dist/js/demos/DashboardHeader.d.ts.map +1 -0
- package/dist/js/demos/DashboardHeader.js +82 -0
- package/dist/js/demos/DashboardHeader.js.map +1 -0
- package/dist/js/demos/DashboardWrapper.d.ts +85 -0
- package/dist/js/demos/DashboardWrapper.d.ts.map +1 -0
- package/dist/js/demos/DashboardWrapper.js +45 -0
- package/dist/js/demos/DashboardWrapper.js.map +1 -0
- package/dist/js/demos/index.d.ts +2 -0
- package/dist/js/demos/index.d.ts.map +1 -1
- package/dist/js/demos/index.js +2 -0
- package/dist/js/demos/index.js.map +1 -1
- package/dist/umd/react-table.min.js +3 -3
- package/package.json +6 -6
- package/src/demos/DashboardHeader.tsx +198 -0
- package/src/demos/DashboardWrapper.tsx +199 -0
- package/src/demos/Table.md +28 -4
- package/src/demos/assets/avatarImg.svg +18 -0
- package/src/demos/assets/index.d.ts +4 -0
- package/src/demos/assets/pf-logo.svg +28 -0
- package/src/demos/examples/TableBulkSelect.tsx +2 -2
- package/src/demos/examples/TableColumnManagement.tsx +2 -2
- package/src/demos/examples/TableColumnManagementWithDraggable.tsx +1 -1
- package/src/demos/examples/TableCompact.tsx +1 -1
- package/src/demos/examples/TableCompoundExpansion.tsx +1 -1
- package/src/demos/examples/TableEmptyStateDefault.tsx +9 -7
- package/src/demos/examples/TableEmptyStateError.tsx +19 -8
- package/src/demos/examples/TableEmptyStateLoading.tsx +13 -3
- package/src/demos/examples/TableExpandCollapseAll.tsx +1 -1
- package/src/demos/examples/TableFilterable.tsx +8 -1
- package/src/demos/examples/TableSortableResponsive.tsx +1 -1
- package/src/demos/examples/TableStaticBottomPagination.tsx +1 -1
- package/src/demos/examples/TableStickyFirstColumn.tsx +1 -1
- package/src/demos/examples/TableStickyHeader.tsx +1 -1
- package/src/demos/index.ts +2 -0
|
@@ -6,13 +6,15 @@ import {
|
|
|
6
6
|
Card,
|
|
7
7
|
EmptyState,
|
|
8
8
|
EmptyStateVariant,
|
|
9
|
+
EmptyStateIcon,
|
|
9
10
|
EmptyStateBody,
|
|
11
|
+
EmptyStateHeader,
|
|
10
12
|
EmptyStateFooter,
|
|
11
13
|
EmptyStateActions,
|
|
12
14
|
PageSection
|
|
13
15
|
} from '@patternfly/react-core';
|
|
14
16
|
import SearchIcon from '@patternfly/react-icons/dist/esm/icons/search-icon';
|
|
15
|
-
import { DashboardWrapper } from '@patternfly/react-
|
|
17
|
+
import { DashboardWrapper } from '@patternfly/react-table/dist/esm/demos/DashboardWrapper';
|
|
16
18
|
|
|
17
19
|
export const TableEmptyStateDefault: React.FunctionComponent = () => (
|
|
18
20
|
<DashboardWrapper hasPageTemplateTitle>
|
|
@@ -32,12 +34,12 @@ export const TableEmptyStateDefault: React.FunctionComponent = () => (
|
|
|
32
34
|
<Tr>
|
|
33
35
|
<Td colSpan={8}>
|
|
34
36
|
<Bullseye>
|
|
35
|
-
<EmptyState
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
37
|
+
<EmptyState variant={EmptyStateVariant.sm}>
|
|
38
|
+
<EmptyStateHeader
|
|
39
|
+
icon={<EmptyStateIcon icon={SearchIcon} />}
|
|
40
|
+
titleText="No results found"
|
|
41
|
+
headingLevel="h2"
|
|
42
|
+
/>
|
|
41
43
|
<EmptyStateBody>
|
|
42
44
|
No results match this filter criteria. Clear all filters and try again.
|
|
43
45
|
</EmptyStateBody>
|
|
@@ -1,7 +1,18 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Table, Thead, Tr, Th, Tbody, Td } from '@patternfly/react-table';
|
|
3
|
-
import {
|
|
4
|
-
|
|
3
|
+
import {
|
|
4
|
+
Bullseye,
|
|
5
|
+
Card,
|
|
6
|
+
EmptyState,
|
|
7
|
+
EmptyStateVariant,
|
|
8
|
+
EmptyStateIcon,
|
|
9
|
+
EmptyStateBody,
|
|
10
|
+
EmptyStateHeader,
|
|
11
|
+
PageSection
|
|
12
|
+
} from '@patternfly/react-core';
|
|
13
|
+
import ExclamationCircleIcon from '@patternfly/react-icons/dist/esm/icons/exclamation-circle-icon';
|
|
14
|
+
import globalDangerColor200 from '@patternfly/react-tokens/dist/esm/global_danger_color_200';
|
|
15
|
+
import { DashboardWrapper } from '@patternfly/react-table/dist/esm/demos/DashboardWrapper';
|
|
5
16
|
|
|
6
17
|
export const TableEmptyStateError: React.FunctionComponent = () => (
|
|
7
18
|
<DashboardWrapper hasPageTemplateTitle>
|
|
@@ -21,12 +32,12 @@ export const TableEmptyStateError: React.FunctionComponent = () => (
|
|
|
21
32
|
<Tr>
|
|
22
33
|
<Td colSpan={8}>
|
|
23
34
|
<Bullseye>
|
|
24
|
-
<EmptyState
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
35
|
+
<EmptyState variant={EmptyStateVariant.sm}>
|
|
36
|
+
<EmptyStateHeader
|
|
37
|
+
titleText="Unable to connect"
|
|
38
|
+
icon={<EmptyStateIcon icon={ExclamationCircleIcon} color={globalDangerColor200.value} />}
|
|
39
|
+
headingLevel="h2"
|
|
40
|
+
/>
|
|
30
41
|
<EmptyStateBody>
|
|
31
42
|
There was an error retrieving data. Check your connection and reload the page.
|
|
32
43
|
</EmptyStateBody>
|
|
@@ -1,7 +1,15 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Table, Thead, Tr, Th, Tbody, Td } from '@patternfly/react-table';
|
|
3
|
-
import {
|
|
4
|
-
|
|
3
|
+
import {
|
|
4
|
+
Bullseye,
|
|
5
|
+
Card,
|
|
6
|
+
EmptyState,
|
|
7
|
+
EmptyStateIcon,
|
|
8
|
+
EmptyStateHeader,
|
|
9
|
+
PageSection,
|
|
10
|
+
Spinner
|
|
11
|
+
} from '@patternfly/react-core';
|
|
12
|
+
import { DashboardWrapper } from '@patternfly/react-table/dist/esm/demos/DashboardWrapper';
|
|
5
13
|
|
|
6
14
|
export const TableEmptyStateLoading: React.FunctionComponent = () => (
|
|
7
15
|
<DashboardWrapper hasPageTemplateTitle>
|
|
@@ -21,7 +29,9 @@ export const TableEmptyStateLoading: React.FunctionComponent = () => (
|
|
|
21
29
|
<Tr>
|
|
22
30
|
<Td colSpan={8}>
|
|
23
31
|
<Bullseye>
|
|
24
|
-
<EmptyState
|
|
32
|
+
<EmptyState>
|
|
33
|
+
<EmptyStateHeader titleText="Loading" headingLevel="h2" icon={<EmptyStateIcon icon={Spinner} />} />
|
|
34
|
+
</EmptyState>
|
|
25
35
|
</Bullseye>
|
|
26
36
|
</Td>
|
|
27
37
|
</Tr>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { ReactNode } from 'react';
|
|
2
2
|
import { Card, Label, PageSection, TextVariants, Text, TextContent } from '@patternfly/react-core';
|
|
3
3
|
import { Table, Thead, Tbody, Tr, Th, Td, ExpandableRowContent } from '@patternfly/react-table';
|
|
4
|
-
import { DashboardWrapper } from '@patternfly/react-
|
|
4
|
+
import { DashboardWrapper } from '@patternfly/react-table/dist/esm/demos/DashboardWrapper';
|
|
5
5
|
|
|
6
6
|
const expandableColumns = ['Servers', 'Threads', 'Applications', 'Workspaces', 'Status'];
|
|
7
7
|
|
|
@@ -6,6 +6,8 @@ import {
|
|
|
6
6
|
EmptyState,
|
|
7
7
|
EmptyStateActions,
|
|
8
8
|
EmptyStateBody,
|
|
9
|
+
EmptyStateIcon,
|
|
10
|
+
EmptyStateHeader,
|
|
9
11
|
EmptyStateFooter,
|
|
10
12
|
Label,
|
|
11
13
|
MenuToggle,
|
|
@@ -306,7 +308,12 @@ export const TableFilterable: React.FunctionComponent = () => {
|
|
|
306
308
|
: rowData;
|
|
307
309
|
|
|
308
310
|
const emptyState = (
|
|
309
|
-
<EmptyState
|
|
311
|
+
<EmptyState>
|
|
312
|
+
<EmptyStateHeader
|
|
313
|
+
titleText="Clear all filters and try again."
|
|
314
|
+
headingLevel="h5"
|
|
315
|
+
icon={<EmptyStateIcon icon={SearchIcon} />}
|
|
316
|
+
/>
|
|
310
317
|
<EmptyStateBody>No results match the filter criteria. Clear all filters and try again.</EmptyStateBody>
|
|
311
318
|
<EmptyStateFooter>
|
|
312
319
|
<EmptyStateActions>
|
|
@@ -39,7 +39,7 @@ import CodeIcon from '@patternfly/react-icons/dist/esm/icons/code-icon';
|
|
|
39
39
|
import CodeBranchIcon from '@patternfly/react-icons/dist/esm/icons/code-branch-icon';
|
|
40
40
|
import SortAmountDownIcon from '@patternfly/react-icons/dist/esm/icons/sort-amount-down-icon';
|
|
41
41
|
import CubeIcon from '@patternfly/react-icons/dist/esm/icons/cube-icon';
|
|
42
|
-
import { DashboardWrapper } from '@patternfly/react-
|
|
42
|
+
import { DashboardWrapper } from '@patternfly/react-table/dist/esm/demos/DashboardWrapper';
|
|
43
43
|
import EllipsisVIcon from '@patternfly/react-icons/dist/esm/icons/ellipsis-v-icon';
|
|
44
44
|
import { rows, columns, SampleDataRow } from '@patternfly/react-table/dist/esm/demos/sampleData';
|
|
45
45
|
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
} from '@patternfly/react-core';
|
|
19
19
|
import { Table, TableText, Thead, Tr, Th, Tbody, Td } from '@patternfly/react-table';
|
|
20
20
|
import FilterIcon from '@patternfly/react-icons/dist/esm/icons/filter-icon';
|
|
21
|
-
import { DashboardWrapper } from '@patternfly/react-
|
|
21
|
+
import { DashboardWrapper } from '@patternfly/react-table/dist/esm/demos/DashboardWrapper';
|
|
22
22
|
import { rows, columns } from '@patternfly/react-table/dist/esm/demos/sampleData';
|
|
23
23
|
|
|
24
24
|
export const TableStaticBottomPagination: React.FunctionComponent = () => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Table, Thead, Tr, Th, Tbody, Td, InnerScrollContainer } from '@patternfly/react-table';
|
|
3
3
|
import { Card, PageSection } from '@patternfly/react-core';
|
|
4
|
-
import { DashboardWrapper } from '@patternfly/react-
|
|
4
|
+
import { DashboardWrapper } from '@patternfly/react-table/dist/esm/demos/DashboardWrapper';
|
|
5
5
|
|
|
6
6
|
type Direction = 'asc' | 'desc' | undefined;
|
|
7
7
|
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
|
|
3
3
|
import { Card, Label, PageSection } from '@patternfly/react-core';
|
|
4
4
|
import { Table, Thead, Tr, Th, Tbody, Td, TableText } from '@patternfly/react-table';
|
|
5
|
-
import { DashboardWrapper } from '@patternfly/react-
|
|
5
|
+
import { DashboardWrapper } from '@patternfly/react-table/dist/esm/demos/DashboardWrapper';
|
|
6
6
|
import { rows, columns } from '@patternfly/react-table/dist/esm/demos/sampleData';
|
|
7
7
|
|
|
8
8
|
export const TableStickyHeader: React.FunctionComponent = () => {
|
package/src/demos/index.ts
CHANGED