@patternfly/react-table 5.0.0-prerelease.9 → 5.1.0
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 +90 -0
- package/components/package.json +1 -1
- package/deprecated/package.json +1 -1
- package/dist/dynamic/components/Table/package.json +1 -0
- package/dist/dynamic/components/Table/utils/decorators/package.json +1 -0
- package/dist/dynamic/components/Table/utils/package.json +1 -0
- package/dist/dynamic/deprecated/components/Table/base/package.json +1 -0
- package/dist/dynamic/deprecated/components/Table/package.json +1 -0
- package/dist/dynamic/deprecated/components/package.json +1 -0
- package/dist/esm/components/Table/ActionsColumn.js +3 -3
- package/dist/esm/components/Table/ActionsColumn.js.map +1 -1
- package/dist/esm/components/Table/TableTypes.d.ts +5 -4
- package/dist/esm/components/Table/TableTypes.d.ts.map +1 -1
- package/dist/esm/components/Table/TableTypes.js.map +1 -1
- package/dist/js/components/Table/ActionsColumn.js +3 -3
- package/dist/js/components/Table/ActionsColumn.js.map +1 -1
- package/dist/js/components/Table/TableTypes.d.ts +5 -4
- package/dist/js/components/Table/TableTypes.d.ts.map +1 -1
- package/dist/js/components/Table/TableTypes.js +1 -0
- package/dist/js/components/Table/TableTypes.js.map +1 -1
- package/dist/umd/react-table.min.js +3 -3
- package/package.json +6 -6
- package/single-packages.config.json +0 -14
- package/src/components/Table/ActionsColumn.tsx +3 -3
- package/src/components/Table/TableTypes.tsx +5 -4
- package/src/components/Table/examples/Table.md +0 -1
- package/src/deprecated/components/Table/__tests__/__snapshots__/Table.test.tsx.snap +16 -16
- package/dist/js/components/Table/package.json +0 -1
- package/dist/js/components/Table/utils/decorators/package.json +0 -1
- package/dist/js/components/Table/utils/package.json +0 -1
- package/dist/js/components/package.json +0 -1
- package/dist/js/deprecated/components/Table/base/package.json +0 -1
- package/dist/js/deprecated/components/Table/package.json +0 -1
- package/dist/js/deprecated/components/package.json +0 -1
- package/dist/js/deprecated/package.json +0 -1
- package/dist/js/package.json +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@patternfly/react-table",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.1.0",
|
|
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",
|
|
@@ -40,10 +40,10 @@
|
|
|
40
40
|
"subpaths": "node ../../scripts/exportSubpaths.js --config subpaths.config.json"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@patternfly/react-core": "^5.
|
|
44
|
-
"@patternfly/react-icons": "^5.
|
|
45
|
-
"@patternfly/react-styles": "^5.
|
|
46
|
-
"@patternfly/react-tokens": "^5.
|
|
43
|
+
"@patternfly/react-core": "^5.1.0",
|
|
44
|
+
"@patternfly/react-icons": "^5.1.0",
|
|
45
|
+
"@patternfly/react-styles": "^5.1.0",
|
|
46
|
+
"@patternfly/react-tokens": "^5.1.0",
|
|
47
47
|
"lodash": "^4.17.19",
|
|
48
48
|
"tslib": "^2.5.0"
|
|
49
49
|
},
|
|
@@ -55,5 +55,5 @@
|
|
|
55
55
|
"react": "^17 || ^18",
|
|
56
56
|
"react-dom": "^17 || ^18"
|
|
57
57
|
},
|
|
58
|
-
"gitHead": "
|
|
58
|
+
"gitHead": "788b50e975fd7a913f3c892ae68f426fd95b6ea2"
|
|
59
59
|
}
|
|
@@ -1,19 +1,5 @@
|
|
|
1
1
|
{
|
|
2
2
|
"packageName": "@patternfly/react-table",
|
|
3
|
-
"modules": [
|
|
4
|
-
{
|
|
5
|
-
"name": "components",
|
|
6
|
-
"type": "esm"
|
|
7
|
-
},
|
|
8
|
-
{
|
|
9
|
-
"name": "deprecated",
|
|
10
|
-
"type": "esm"
|
|
11
|
-
},
|
|
12
|
-
{
|
|
13
|
-
"name": "dist/js",
|
|
14
|
-
"type": "cjs"
|
|
15
|
-
}
|
|
16
|
-
],
|
|
17
3
|
"exclude": [
|
|
18
4
|
"dist/esm/deprecated/index.js",
|
|
19
5
|
"dist/esm/next/index.js"
|
|
@@ -114,7 +114,7 @@ const ActionsColumnBase: React.FunctionComponent<ActionsColumnProps> = ({
|
|
|
114
114
|
<DropdownList>
|
|
115
115
|
{items
|
|
116
116
|
.filter((item) => !item.isOutsideDropdown)
|
|
117
|
-
.map(({ title, itemKey, onClick,
|
|
117
|
+
.map(({ title, itemKey, onClick, tooltipProps, isSeparator, ...props }, index) => {
|
|
118
118
|
if (isSeparator) {
|
|
119
119
|
return <Divider key={itemKey || index} data-key={itemKey || index} />;
|
|
120
120
|
}
|
|
@@ -133,9 +133,9 @@ const ActionsColumnBase: React.FunctionComponent<ActionsColumnProps> = ({
|
|
|
133
133
|
</DropdownItem>
|
|
134
134
|
);
|
|
135
135
|
|
|
136
|
-
if (
|
|
136
|
+
if (tooltipProps?.content) {
|
|
137
137
|
return (
|
|
138
|
-
<Tooltip key={itemKey || index}
|
|
138
|
+
<Tooltip key={itemKey || index} {...tooltipProps}>
|
|
139
139
|
{item}
|
|
140
140
|
</Tooltip>
|
|
141
141
|
);
|
|
@@ -5,6 +5,7 @@ import { DropdownDirection, DropdownPosition } from '@patternfly/react-core/dist
|
|
|
5
5
|
import * as React from 'react';
|
|
6
6
|
import { CustomActionsToggleProps } from './ActionsColumn';
|
|
7
7
|
import { ButtonProps } from '@patternfly/react-core/dist/esm/components/Button';
|
|
8
|
+
import { TooltipProps } from '@patternfly/react-core/dist/esm/components/Tooltip';
|
|
8
9
|
|
|
9
10
|
export enum TableGridBreakpoint {
|
|
10
11
|
none = '',
|
|
@@ -154,10 +155,10 @@ export interface IAction extends Omit<DropdownItemProps, 'title' | 'onClick'>, P
|
|
|
154
155
|
itemKey?: string;
|
|
155
156
|
/** Content to display in the actions menu item */
|
|
156
157
|
title?: string | React.ReactNode;
|
|
157
|
-
/**
|
|
158
|
-
|
|
159
|
-
/**
|
|
160
|
-
tooltipProps?:
|
|
158
|
+
/** Render item as aria-disabled option */
|
|
159
|
+
isAriaDisabled?: boolean;
|
|
160
|
+
/** Props for adding a tooltip to a menu item. This is used to display tooltip when hovered over the item */
|
|
161
|
+
tooltipProps?: TooltipProps;
|
|
161
162
|
/** Click handler for the actions menu item */
|
|
162
163
|
onClick?: (event: React.MouseEvent, rowIndex: number, rowData: IRowData, extraData: IExtraData) => void;
|
|
163
164
|
/** Flag indicating this action should be placed outside the actions menu, beside the toggle */
|
|
@@ -10257,7 +10257,7 @@ exports[`Table simple Editable table 1`] = `
|
|
|
10257
10257
|
<div
|
|
10258
10258
|
class="pf-v5-c-inline-edit__input"
|
|
10259
10259
|
>
|
|
10260
|
-
<
|
|
10260
|
+
<span
|
|
10261
10261
|
class="pf-v5-c-form-control"
|
|
10262
10262
|
>
|
|
10263
10263
|
<input
|
|
@@ -10269,7 +10269,7 @@ exports[`Table simple Editable table 1`] = `
|
|
|
10269
10269
|
type="text"
|
|
10270
10270
|
value="Row 1 cell 1 content"
|
|
10271
10271
|
/>
|
|
10272
|
-
</
|
|
10272
|
+
</span>
|
|
10273
10273
|
<div
|
|
10274
10274
|
aria-live="polite"
|
|
10275
10275
|
class="pf-v5-c-form__helper-text pf-m-error"
|
|
@@ -10290,7 +10290,7 @@ exports[`Table simple Editable table 1`] = `
|
|
|
10290
10290
|
<div
|
|
10291
10291
|
class="pf-v5-c-inline-edit__input"
|
|
10292
10292
|
>
|
|
10293
|
-
<
|
|
10293
|
+
<span
|
|
10294
10294
|
class="pf-v5-c-form-control pf-m-disabled"
|
|
10295
10295
|
>
|
|
10296
10296
|
<input
|
|
@@ -10303,7 +10303,7 @@ exports[`Table simple Editable table 1`] = `
|
|
|
10303
10303
|
type="text"
|
|
10304
10304
|
value="Row 1 cell 2, disabled content"
|
|
10305
10305
|
/>
|
|
10306
|
-
</
|
|
10306
|
+
</span>
|
|
10307
10307
|
<div
|
|
10308
10308
|
aria-live="polite"
|
|
10309
10309
|
class="pf-v5-c-form__helper-text pf-m-error"
|
|
@@ -10324,7 +10324,7 @@ exports[`Table simple Editable table 1`] = `
|
|
|
10324
10324
|
<div
|
|
10325
10325
|
class="pf-v5-c-inline-edit__input"
|
|
10326
10326
|
>
|
|
10327
|
-
<
|
|
10327
|
+
<span
|
|
10328
10328
|
class="pf-v5-c-form-control"
|
|
10329
10329
|
>
|
|
10330
10330
|
<input
|
|
@@ -10336,7 +10336,7 @@ exports[`Table simple Editable table 1`] = `
|
|
|
10336
10336
|
type="text"
|
|
10337
10337
|
value="Row 1 cell 3 content"
|
|
10338
10338
|
/>
|
|
10339
|
-
</
|
|
10339
|
+
</span>
|
|
10340
10340
|
<div
|
|
10341
10341
|
aria-live="polite"
|
|
10342
10342
|
class="pf-v5-c-form__helper-text pf-m-error"
|
|
@@ -10357,7 +10357,7 @@ exports[`Table simple Editable table 1`] = `
|
|
|
10357
10357
|
<div
|
|
10358
10358
|
class="pf-v5-c-inline-edit__input"
|
|
10359
10359
|
>
|
|
10360
|
-
<
|
|
10360
|
+
<span
|
|
10361
10361
|
class="pf-v5-c-form-control"
|
|
10362
10362
|
>
|
|
10363
10363
|
<input
|
|
@@ -10369,7 +10369,7 @@ exports[`Table simple Editable table 1`] = `
|
|
|
10369
10369
|
type="text"
|
|
10370
10370
|
value="Row 1 cell 4 content"
|
|
10371
10371
|
/>
|
|
10372
|
-
</
|
|
10372
|
+
</span>
|
|
10373
10373
|
<div
|
|
10374
10374
|
aria-live="polite"
|
|
10375
10375
|
class="pf-v5-c-form__helper-text pf-m-error"
|
|
@@ -10488,7 +10488,7 @@ exports[`Table simple Editable table 1`] = `
|
|
|
10488
10488
|
<div
|
|
10489
10489
|
class="pf-v5-c-inline-edit__input"
|
|
10490
10490
|
>
|
|
10491
|
-
<
|
|
10491
|
+
<span
|
|
10492
10492
|
class="pf-v5-c-form-control"
|
|
10493
10493
|
>
|
|
10494
10494
|
<input
|
|
@@ -10500,7 +10500,7 @@ exports[`Table simple Editable table 1`] = `
|
|
|
10500
10500
|
type="text"
|
|
10501
10501
|
value="Row 2 cell 1 content"
|
|
10502
10502
|
/>
|
|
10503
|
-
</
|
|
10503
|
+
</span>
|
|
10504
10504
|
<div
|
|
10505
10505
|
aria-live="polite"
|
|
10506
10506
|
class="pf-v5-c-form__helper-text pf-m-error"
|
|
@@ -10521,7 +10521,7 @@ exports[`Table simple Editable table 1`] = `
|
|
|
10521
10521
|
<div
|
|
10522
10522
|
class="pf-v5-c-inline-edit__input"
|
|
10523
10523
|
>
|
|
10524
|
-
<
|
|
10524
|
+
<span
|
|
10525
10525
|
class="pf-v5-c-form-control pf-m-disabled"
|
|
10526
10526
|
>
|
|
10527
10527
|
<input
|
|
@@ -10534,7 +10534,7 @@ exports[`Table simple Editable table 1`] = `
|
|
|
10534
10534
|
type="text"
|
|
10535
10535
|
value="Row 2 cell 2, disabled content"
|
|
10536
10536
|
/>
|
|
10537
|
-
</
|
|
10537
|
+
</span>
|
|
10538
10538
|
<div
|
|
10539
10539
|
aria-live="polite"
|
|
10540
10540
|
class="pf-v5-c-form__helper-text pf-m-error"
|
|
@@ -10555,7 +10555,7 @@ exports[`Table simple Editable table 1`] = `
|
|
|
10555
10555
|
<div
|
|
10556
10556
|
class="pf-v5-c-inline-edit__input"
|
|
10557
10557
|
>
|
|
10558
|
-
<
|
|
10558
|
+
<span
|
|
10559
10559
|
class="pf-v5-c-form-control"
|
|
10560
10560
|
>
|
|
10561
10561
|
<input
|
|
@@ -10567,7 +10567,7 @@ exports[`Table simple Editable table 1`] = `
|
|
|
10567
10567
|
type="text"
|
|
10568
10568
|
value="Row 2 cell 3 content"
|
|
10569
10569
|
/>
|
|
10570
|
-
</
|
|
10570
|
+
</span>
|
|
10571
10571
|
<div
|
|
10572
10572
|
aria-live="polite"
|
|
10573
10573
|
class="pf-v5-c-form__helper-text pf-m-error"
|
|
@@ -10588,7 +10588,7 @@ exports[`Table simple Editable table 1`] = `
|
|
|
10588
10588
|
<div
|
|
10589
10589
|
class="pf-v5-c-inline-edit__input"
|
|
10590
10590
|
>
|
|
10591
|
-
<
|
|
10591
|
+
<span
|
|
10592
10592
|
class="pf-v5-c-form-control"
|
|
10593
10593
|
>
|
|
10594
10594
|
<input
|
|
@@ -10600,7 +10600,7 @@ exports[`Table simple Editable table 1`] = `
|
|
|
10600
10600
|
type="text"
|
|
10601
10601
|
value="Row 2 cell 4 content"
|
|
10602
10602
|
/>
|
|
10603
|
-
</
|
|
10603
|
+
</span>
|
|
10604
10604
|
<div
|
|
10605
10605
|
aria-live="polite"
|
|
10606
10606
|
class="pf-v5-c-form__helper-text pf-m-error"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"name":"@patternfly/react-table-table-cjs","main":"index.js","module":"./dist/js/components/Table/index.js","typings":"index.d.ts","version":"5.0.0-prerelease.8"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"name":"@patternfly/react-table-decorators-cjs","main":"index.js","module":"./dist/js/components/Table/utils/decorators/index.js","typings":"index.d.ts","version":"5.0.0-prerelease.8"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"name":"@patternfly/react-table-utils-cjs","main":"index.js","module":"./dist/js/components/Table/utils/index.js","typings":"index.d.ts","version":"5.0.0-prerelease.8"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"name":"@patternfly/react-table-components-cjs","main":"index.js","module":"./dist/js/components/index.js","typings":"index.d.ts","version":"5.0.0-prerelease.8"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"name":"@patternfly/react-table-base-deprecated-cjs","main":"index.js","module":"./dist/js/deprecated/components/Table/base/index.js","typings":"index.d.ts","version":"5.0.0-prerelease.8"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"name":"@patternfly/react-table-table-deprecated-cjs","main":"index.js","module":"./dist/js/deprecated/components/Table/index.js","typings":"index.d.ts","version":"5.0.0-prerelease.8"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"name":"@patternfly/react-table-components-deprecated-cjs","main":"index.js","module":"./dist/js/deprecated/components/index.js","typings":"index.d.ts","version":"5.0.0-prerelease.8"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"name":"@patternfly/react-table-deprecated-deprecated-cjs","main":"index.js","module":"./dist/js/deprecated/index.js","typings":"index.d.ts","version":"5.0.0-prerelease.8"}
|
package/dist/js/package.json
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"name":"@patternfly/react-table-js-cjs","main":"index.js","module":"./dist/js/index.js","typings":"index.d.ts","version":"5.0.0-prerelease.8"}
|