@patternfly/react-table 6.4.1-prerelease.8 → 6.4.1-prerelease.9
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 +6 -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/components/Table/SelectColumn.d.ts +4 -1
- package/dist/esm/components/Table/SelectColumn.d.ts.map +1 -1
- package/dist/esm/components/Table/SelectColumn.js +8 -2
- package/dist/esm/components/Table/SelectColumn.js.map +1 -1
- package/dist/esm/components/Table/utils/decorators/selectable.d.ts.map +1 -1
- package/dist/esm/components/Table/utils/decorators/selectable.js +6 -6
- package/dist/esm/components/Table/utils/decorators/selectable.js.map +1 -1
- package/dist/js/components/Table/SelectColumn.d.ts +4 -1
- package/dist/js/components/Table/SelectColumn.d.ts.map +1 -1
- package/dist/js/components/Table/SelectColumn.js +8 -2
- package/dist/js/components/Table/SelectColumn.js.map +1 -1
- package/dist/js/components/Table/utils/decorators/selectable.d.ts.map +1 -1
- package/dist/js/components/Table/utils/decorators/selectable.js +6 -6
- package/dist/js/components/Table/utils/decorators/selectable.js.map +1 -1
- package/dist/umd/assets/{output-xSRGlo6k.css → output-Jk122ILV.css} +3691 -3605
- package/dist/umd/react-table.min.js +3 -3
- package/package.json +3 -3
- package/src/components/Table/SelectColumn.tsx +25 -5
- package/src/components/Table/utils/__snapshots__/transformers.test.tsx.snap +0 -16
- package/src/components/Table/utils/decorators/selectable.tsx +6 -5
- package/src/components/Table/utils/transformers.test.tsx +54 -11
- package/src/deprecated/components/Table/__tests__/__snapshots__/Table.test.tsx.snap +150 -39
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@patternfly/react-table",
|
|
3
|
-
"version": "6.4.1-prerelease.
|
|
3
|
+
"version": "6.4.1-prerelease.9",
|
|
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,7 +40,7 @@
|
|
|
40
40
|
"subpaths": "node ../../scripts/exportSubpaths.mjs --config subpaths.config.json"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@patternfly/react-core": "^6.4.1-prerelease.
|
|
43
|
+
"@patternfly/react-core": "^6.4.1-prerelease.9",
|
|
44
44
|
"@patternfly/react-icons": "^6.4.0",
|
|
45
45
|
"@patternfly/react-styles": "^6.4.0",
|
|
46
46
|
"@patternfly/react-tokens": "^6.4.0",
|
|
@@ -51,5 +51,5 @@
|
|
|
51
51
|
"react": "^17 || ^18 || ^19",
|
|
52
52
|
"react-dom": "^17 || ^18 || ^19"
|
|
53
53
|
},
|
|
54
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "985efafb947f9159883ef65eacb2a9af85d45473"
|
|
55
55
|
}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { createRef, Fragment } from 'react';
|
|
2
2
|
import { Tooltip, TooltipProps } from '@patternfly/react-core/dist/esm/components/Tooltip';
|
|
3
|
+
import { Checkbox } from '@patternfly/react-core/dist/esm/components/Checkbox';
|
|
4
|
+
import { Radio } from '@patternfly/react-core/dist/esm/components/Radio';
|
|
3
5
|
|
|
4
6
|
export enum RowSelectVariant {
|
|
5
7
|
radio = 'radio',
|
|
@@ -7,7 +9,6 @@ export enum RowSelectVariant {
|
|
|
7
9
|
}
|
|
8
10
|
|
|
9
11
|
export interface SelectColumnProps {
|
|
10
|
-
name?: string;
|
|
11
12
|
children?: React.ReactNode;
|
|
12
13
|
className?: string;
|
|
13
14
|
onSelect?: (event: React.FormEvent<HTMLInputElement>) => void;
|
|
@@ -16,6 +17,10 @@ export interface SelectColumnProps {
|
|
|
16
17
|
tooltip?: React.ReactNode;
|
|
17
18
|
/** other props to pass to the tooltip */
|
|
18
19
|
tooltipProps?: Omit<TooltipProps, 'content'>;
|
|
20
|
+
/** id for the input element - required by Checkbox and Radio components */
|
|
21
|
+
id?: string;
|
|
22
|
+
/** name for the input element - required by Radio component */
|
|
23
|
+
name?: string;
|
|
19
24
|
}
|
|
20
25
|
|
|
21
26
|
export const SelectColumn: React.FunctionComponent<SelectColumnProps> = ({
|
|
@@ -26,15 +31,30 @@ export const SelectColumn: React.FunctionComponent<SelectColumnProps> = ({
|
|
|
26
31
|
selectVariant,
|
|
27
32
|
tooltip,
|
|
28
33
|
tooltipProps,
|
|
34
|
+
id,
|
|
35
|
+
name,
|
|
29
36
|
...props
|
|
30
37
|
}: SelectColumnProps) => {
|
|
31
|
-
const inputRef = createRef<
|
|
38
|
+
const inputRef = createRef<any>();
|
|
39
|
+
|
|
40
|
+
const handleChange = (event: React.FormEvent<HTMLInputElement>, _checked: boolean) => {
|
|
41
|
+
onSelect && onSelect(event);
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
const commonProps = {
|
|
45
|
+
...props,
|
|
46
|
+
id,
|
|
47
|
+
ref: inputRef,
|
|
48
|
+
onChange: handleChange
|
|
49
|
+
};
|
|
32
50
|
|
|
33
51
|
const content = (
|
|
34
52
|
<Fragment>
|
|
35
|
-
|
|
36
|
-
<
|
|
37
|
-
|
|
53
|
+
{selectVariant === RowSelectVariant.checkbox ? (
|
|
54
|
+
<Checkbox {...commonProps} />
|
|
55
|
+
) : (
|
|
56
|
+
<Radio {...commonProps} name={name} />
|
|
57
|
+
)}
|
|
38
58
|
{children}
|
|
39
59
|
</Fragment>
|
|
40
60
|
);
|
|
@@ -1,21 +1,5 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
|
-
exports[`Transformer functions selectable unselected 1`] = `
|
|
4
|
-
{
|
|
5
|
-
"children": <SelectColumn
|
|
6
|
-
aria-label="Select row 0"
|
|
7
|
-
checked={false}
|
|
8
|
-
name="radioGroup"
|
|
9
|
-
onSelect={[Function]}
|
|
10
|
-
>
|
|
11
|
-
|
|
12
|
-
</SelectColumn>,
|
|
13
|
-
"className": "pf-v6-c-table__check",
|
|
14
|
-
"component": "td",
|
|
15
|
-
"isVisible": true,
|
|
16
|
-
}
|
|
17
|
-
`;
|
|
18
|
-
|
|
19
3
|
exports[`Transformer functions sortable asc 1`] = `
|
|
20
4
|
{
|
|
21
5
|
"aria-sort": "ascending",
|
|
@@ -30,26 +30,27 @@ export const selectable: ITransform = (
|
|
|
30
30
|
* @param {React.FormEvent} event - React form event
|
|
31
31
|
*/
|
|
32
32
|
function selectClick(event: React.FormEvent<HTMLInputElement>) {
|
|
33
|
-
const selected = rowIndex === undefined ? event.currentTarget.checked : rowData &&
|
|
33
|
+
const selected = rowIndex === undefined ? event.currentTarget.checked : !(rowData && rowData.selected);
|
|
34
34
|
// tslint:disable-next-line:no-unused-expression
|
|
35
35
|
onSelect && onSelect(event, selected, rowId, rowData, extraData);
|
|
36
36
|
}
|
|
37
37
|
const customProps = {
|
|
38
|
+
id: rowId !== -1 ? `select-${rowIndex}` : 'select-all',
|
|
38
39
|
...(rowId !== -1
|
|
39
40
|
? {
|
|
40
|
-
|
|
41
|
+
isChecked: rowData && !!rowData.selected,
|
|
41
42
|
'aria-label': `Select row ${rowIndex}`
|
|
42
43
|
}
|
|
43
44
|
: {
|
|
44
|
-
|
|
45
|
+
isChecked: allRowsSelected,
|
|
45
46
|
'aria-label': 'Select all rows'
|
|
46
47
|
}),
|
|
47
48
|
...(rowData &&
|
|
48
49
|
(rowData.disableCheckbox || rowData.disableSelection) && {
|
|
49
|
-
|
|
50
|
+
isDisabled: true,
|
|
50
51
|
className: checkStyles.checkInput
|
|
51
52
|
}),
|
|
52
|
-
...(!rowData && isHeaderSelectDisabled && {
|
|
53
|
+
...(!rowData && isHeaderSelectDisabled && { isDisabled: true })
|
|
53
54
|
};
|
|
54
55
|
let selectName = 'check-all';
|
|
55
56
|
if (rowId !== -1 && selectVariant === RowSelectVariant.checkbox) {
|
|
@@ -83,7 +83,7 @@ const testCellActions = async ({
|
|
|
83
83
|
|
|
84
84
|
describe('Transformer functions', () => {
|
|
85
85
|
describe('selectable', () => {
|
|
86
|
-
test('main select', async () => {
|
|
86
|
+
test('main select (header) - should toggle from unchecked to checked', async () => {
|
|
87
87
|
const onSelect = jest.fn((_event, selected, rowId) => ({ selected, rowId }));
|
|
88
88
|
const column = {
|
|
89
89
|
extraParams: { onSelect }
|
|
@@ -92,37 +92,80 @@ describe('Transformer functions', () => {
|
|
|
92
92
|
expect(returnedData).toMatchObject({ className: tableStyles.tableCheck });
|
|
93
93
|
|
|
94
94
|
const user = userEvent.setup();
|
|
95
|
-
|
|
96
95
|
render(returnedData.children as React.ReactElement<any>);
|
|
97
96
|
|
|
98
|
-
|
|
97
|
+
// Click the header radio button (should be unchecked initially)
|
|
98
|
+
await user.click(screen.getByRole('radio'));
|
|
99
|
+
|
|
99
100
|
expect(onSelect).toHaveBeenCalledTimes(1);
|
|
100
|
-
expect(onSelect.mock.results[0].value).toMatchObject({ rowId: -1, selected:
|
|
101
|
+
expect(onSelect.mock.results[0].value).toMatchObject({ rowId: -1, selected: true });
|
|
101
102
|
});
|
|
102
103
|
|
|
103
|
-
test('selected', async () => {
|
|
104
|
+
test('row select (checkbox) - should toggle from selected to unselected', async () => {
|
|
104
105
|
const onSelect = jest.fn((_event, selected, rowId) => ({ selected, rowId }));
|
|
105
106
|
const column = {
|
|
106
|
-
extraParams: { onSelect }
|
|
107
|
+
extraParams: { onSelect, selectVariant: 'checkbox' }
|
|
107
108
|
};
|
|
108
109
|
const returnedData = selectable('', { column, rowIndex: 0, rowData: { selected: true } } as IExtra);
|
|
109
110
|
expect(returnedData).toMatchObject({ className: tableStyles.tableCheck });
|
|
110
|
-
const user = userEvent.setup();
|
|
111
111
|
|
|
112
|
+
const user = userEvent.setup();
|
|
112
113
|
render(returnedData.children as React.ReactElement<any>);
|
|
113
114
|
|
|
114
|
-
|
|
115
|
+
// Click the row checkbox (should be checked initially, clicking should uncheck)
|
|
116
|
+
await user.click(screen.getByRole('checkbox'));
|
|
115
117
|
expect(onSelect).toHaveBeenCalledTimes(1);
|
|
116
118
|
expect(onSelect.mock.results[0].value).toMatchObject({ rowId: 0, selected: false });
|
|
117
119
|
});
|
|
118
120
|
|
|
119
|
-
test('unselected', () => {
|
|
121
|
+
test('row select (checkbox) - should toggle from unselected to selected', async () => {
|
|
120
122
|
const onSelect = jest.fn((_event, selected, rowId) => ({ selected, rowId }));
|
|
121
123
|
const column = {
|
|
122
|
-
extraParams: { onSelect }
|
|
124
|
+
extraParams: { onSelect, selectVariant: 'checkbox' }
|
|
123
125
|
};
|
|
124
126
|
const returnedData = selectable('', { column, rowIndex: 0, rowData: { selected: false } } as IExtra);
|
|
125
|
-
expect(returnedData).
|
|
127
|
+
expect(returnedData).toMatchObject({ className: tableStyles.tableCheck });
|
|
128
|
+
|
|
129
|
+
const user = userEvent.setup();
|
|
130
|
+
render(returnedData.children as React.ReactElement<any>);
|
|
131
|
+
|
|
132
|
+
// Click the row checkbox (should be unchecked initially, clicking should check)
|
|
133
|
+
await user.click(screen.getByRole('checkbox'));
|
|
134
|
+
expect(onSelect).toHaveBeenCalledTimes(1);
|
|
135
|
+
expect(onSelect.mock.results[0].value).toMatchObject({ rowId: 0, selected: true });
|
|
136
|
+
});
|
|
137
|
+
|
|
138
|
+
test('row select (radio) - clicking already selected radio should not trigger onSelect', async () => {
|
|
139
|
+
const onSelect = jest.fn((_event, selected, rowId) => ({ selected, rowId }));
|
|
140
|
+
const column = {
|
|
141
|
+
extraParams: { onSelect, selectVariant: 'radio' }
|
|
142
|
+
};
|
|
143
|
+
const returnedData = selectable('', { column, rowIndex: 0, rowData: { selected: true } } as IExtra);
|
|
144
|
+
expect(returnedData).toMatchObject({ className: tableStyles.tableCheck });
|
|
145
|
+
|
|
146
|
+
const user = userEvent.setup();
|
|
147
|
+
render(returnedData.children as React.ReactElement<any>);
|
|
148
|
+
|
|
149
|
+
// Click the row radio button (should be checked initially, clicking should not trigger change)
|
|
150
|
+
await user.click(screen.getByRole('radio'));
|
|
151
|
+
expect(onSelect).toHaveBeenCalledTimes(0);
|
|
152
|
+
});
|
|
153
|
+
|
|
154
|
+
test('row select (radio) - should toggle from unselected to selected', async () => {
|
|
155
|
+
const onSelect = jest.fn((_event, selected, rowId) => ({ selected, rowId }));
|
|
156
|
+
const column = {
|
|
157
|
+
extraParams: { onSelect, selectVariant: 'radio' }
|
|
158
|
+
};
|
|
159
|
+
const returnedData = selectable('', { column, rowIndex: 0, rowData: { selected: false } } as IExtra);
|
|
160
|
+
expect(returnedData).toMatchObject({ className: tableStyles.tableCheck });
|
|
161
|
+
|
|
162
|
+
const user = userEvent.setup();
|
|
163
|
+
render(returnedData.children as React.ReactElement<any>);
|
|
164
|
+
|
|
165
|
+
// Click the row radio button (should be unchecked initially, clicking should check)
|
|
166
|
+
await user.click(screen.getByRole('radio'));
|
|
167
|
+
expect(onSelect).toHaveBeenCalledTimes(1);
|
|
168
|
+
expect(onSelect.mock.results[0].value).toMatchObject({ rowId: 0, selected: true });
|
|
126
169
|
});
|
|
127
170
|
});
|
|
128
171
|
|
|
@@ -4216,13 +4216,20 @@ exports[`Table Selectable table 1`] = `
|
|
|
4216
4216
|
scope=""
|
|
4217
4217
|
tabindex="-1"
|
|
4218
4218
|
>
|
|
4219
|
-
<
|
|
4219
|
+
<div
|
|
4220
|
+
class="pf-v6-c-check pf-m-standalone"
|
|
4221
|
+
>
|
|
4220
4222
|
<input
|
|
4223
|
+
aria-invalid="false"
|
|
4221
4224
|
aria-label="Select all rows"
|
|
4222
|
-
|
|
4225
|
+
class="pf-v6-c-check__input"
|
|
4226
|
+
data-ouia-component-id="OUIA-Generated-Checkbox-1"
|
|
4227
|
+
data-ouia-component-type="PF6/Checkbox"
|
|
4228
|
+
data-ouia-safe="true"
|
|
4229
|
+
id="select-all"
|
|
4223
4230
|
type="checkbox"
|
|
4224
4231
|
/>
|
|
4225
|
-
</
|
|
4232
|
+
</div>
|
|
4226
4233
|
</th>
|
|
4227
4234
|
<th
|
|
4228
4235
|
class="pf-v6-c-table__th pf-v6-c-table__sort"
|
|
@@ -4316,13 +4323,20 @@ exports[`Table Selectable table 1`] = `
|
|
|
4316
4323
|
data-key="0"
|
|
4317
4324
|
tabindex="-1"
|
|
4318
4325
|
>
|
|
4319
|
-
<
|
|
4326
|
+
<div
|
|
4327
|
+
class="pf-v6-c-check pf-m-standalone"
|
|
4328
|
+
>
|
|
4320
4329
|
<input
|
|
4330
|
+
aria-invalid="false"
|
|
4321
4331
|
aria-label="Select row 0"
|
|
4322
|
-
|
|
4332
|
+
class="pf-v6-c-check__input"
|
|
4333
|
+
data-ouia-component-id="OUIA-Generated-Checkbox-2"
|
|
4334
|
+
data-ouia-component-type="PF6/Checkbox"
|
|
4335
|
+
data-ouia-safe="true"
|
|
4336
|
+
id="select-0"
|
|
4323
4337
|
type="checkbox"
|
|
4324
4338
|
/>
|
|
4325
|
-
</
|
|
4339
|
+
</div>
|
|
4326
4340
|
</td>
|
|
4327
4341
|
<th
|
|
4328
4342
|
class="pf-v6-c-table__td"
|
|
@@ -4499,13 +4513,20 @@ exports[`Table Selectable table 1`] = `
|
|
|
4499
4513
|
data-key="0"
|
|
4500
4514
|
tabindex="-1"
|
|
4501
4515
|
>
|
|
4502
|
-
<
|
|
4516
|
+
<div
|
|
4517
|
+
class="pf-v6-c-check pf-m-standalone"
|
|
4518
|
+
>
|
|
4503
4519
|
<input
|
|
4520
|
+
aria-invalid="false"
|
|
4504
4521
|
aria-label="Select row 3"
|
|
4505
|
-
|
|
4522
|
+
class="pf-v6-c-check__input"
|
|
4523
|
+
data-ouia-component-id="OUIA-Generated-Checkbox-3"
|
|
4524
|
+
data-ouia-component-type="PF6/Checkbox"
|
|
4525
|
+
data-ouia-safe="true"
|
|
4526
|
+
id="select-3"
|
|
4506
4527
|
type="checkbox"
|
|
4507
4528
|
/>
|
|
4508
|
-
</
|
|
4529
|
+
</div>
|
|
4509
4530
|
</td>
|
|
4510
4531
|
<th
|
|
4511
4532
|
class="pf-v6-c-table__td"
|
|
@@ -4625,13 +4646,20 @@ exports[`Table Selectable table 1`] = `
|
|
|
4625
4646
|
data-key="0"
|
|
4626
4647
|
tabindex="-1"
|
|
4627
4648
|
>
|
|
4628
|
-
<
|
|
4649
|
+
<div
|
|
4650
|
+
class="pf-v6-c-check pf-m-standalone"
|
|
4651
|
+
>
|
|
4629
4652
|
<input
|
|
4653
|
+
aria-invalid="false"
|
|
4630
4654
|
aria-label="Select row 5"
|
|
4631
|
-
|
|
4655
|
+
class="pf-v6-c-check__input"
|
|
4656
|
+
data-ouia-component-id="OUIA-Generated-Checkbox-4"
|
|
4657
|
+
data-ouia-component-type="PF6/Checkbox"
|
|
4658
|
+
data-ouia-safe="true"
|
|
4659
|
+
id="select-5"
|
|
4632
4660
|
type="checkbox"
|
|
4633
4661
|
/>
|
|
4634
|
-
</
|
|
4662
|
+
</div>
|
|
4635
4663
|
</td>
|
|
4636
4664
|
<th
|
|
4637
4665
|
class="pf-v6-c-table__td"
|
|
@@ -4694,13 +4722,20 @@ exports[`Table Selectable table 1`] = `
|
|
|
4694
4722
|
data-key="0"
|
|
4695
4723
|
tabindex="-1"
|
|
4696
4724
|
>
|
|
4697
|
-
<
|
|
4725
|
+
<div
|
|
4726
|
+
class="pf-v6-c-check pf-m-standalone"
|
|
4727
|
+
>
|
|
4698
4728
|
<input
|
|
4729
|
+
aria-invalid="false"
|
|
4699
4730
|
aria-label="Select row 6"
|
|
4700
|
-
|
|
4731
|
+
class="pf-v6-c-check__input"
|
|
4732
|
+
data-ouia-component-id="OUIA-Generated-Checkbox-5"
|
|
4733
|
+
data-ouia-component-type="PF6/Checkbox"
|
|
4734
|
+
data-ouia-safe="true"
|
|
4735
|
+
id="select-6"
|
|
4701
4736
|
type="checkbox"
|
|
4702
4737
|
/>
|
|
4703
|
-
</
|
|
4738
|
+
</div>
|
|
4704
4739
|
</td>
|
|
4705
4740
|
<th
|
|
4706
4741
|
class="pf-v6-c-table__td"
|
|
@@ -4763,13 +4798,20 @@ exports[`Table Selectable table 1`] = `
|
|
|
4763
4798
|
data-key="0"
|
|
4764
4799
|
tabindex="-1"
|
|
4765
4800
|
>
|
|
4766
|
-
<
|
|
4801
|
+
<div
|
|
4802
|
+
class="pf-v6-c-check pf-m-standalone"
|
|
4803
|
+
>
|
|
4767
4804
|
<input
|
|
4805
|
+
aria-invalid="false"
|
|
4768
4806
|
aria-label="Select row 7"
|
|
4769
|
-
|
|
4807
|
+
class="pf-v6-c-check__input"
|
|
4808
|
+
data-ouia-component-id="OUIA-Generated-Checkbox-6"
|
|
4809
|
+
data-ouia-component-type="PF6/Checkbox"
|
|
4810
|
+
data-ouia-safe="true"
|
|
4811
|
+
id="select-7"
|
|
4770
4812
|
type="checkbox"
|
|
4771
4813
|
/>
|
|
4772
|
-
</
|
|
4814
|
+
</div>
|
|
4773
4815
|
</td>
|
|
4774
4816
|
<th
|
|
4775
4817
|
class="pf-v6-c-table__td"
|
|
@@ -4832,13 +4874,20 @@ exports[`Table Selectable table 1`] = `
|
|
|
4832
4874
|
data-key="0"
|
|
4833
4875
|
tabindex="-1"
|
|
4834
4876
|
>
|
|
4835
|
-
<
|
|
4877
|
+
<div
|
|
4878
|
+
class="pf-v6-c-check pf-m-standalone"
|
|
4879
|
+
>
|
|
4836
4880
|
<input
|
|
4881
|
+
aria-invalid="false"
|
|
4837
4882
|
aria-label="Select row 8"
|
|
4838
|
-
|
|
4883
|
+
class="pf-v6-c-check__input"
|
|
4884
|
+
data-ouia-component-id="OUIA-Generated-Checkbox-7"
|
|
4885
|
+
data-ouia-component-type="PF6/Checkbox"
|
|
4886
|
+
data-ouia-safe="true"
|
|
4887
|
+
id="select-8"
|
|
4839
4888
|
type="checkbox"
|
|
4840
4889
|
/>
|
|
4841
|
-
</
|
|
4890
|
+
</div>
|
|
4842
4891
|
</td>
|
|
4843
4892
|
<th
|
|
4844
4893
|
class="pf-v6-c-table__td"
|
|
@@ -5008,13 +5057,21 @@ exports[`Table Selectable table with Radio 1`] = `
|
|
|
5008
5057
|
data-key="0"
|
|
5009
5058
|
tabindex="-1"
|
|
5010
5059
|
>
|
|
5011
|
-
<
|
|
5060
|
+
<div
|
|
5061
|
+
class="pf-v6-c-radio pf-m-standalone"
|
|
5062
|
+
>
|
|
5012
5063
|
<input
|
|
5064
|
+
aria-invalid="false"
|
|
5013
5065
|
aria-label="Select row 0"
|
|
5066
|
+
class="pf-v6-c-radio__input"
|
|
5067
|
+
data-ouia-component-id="OUIA-Generated-Radio-1"
|
|
5068
|
+
data-ouia-component-type="PF6/Radio"
|
|
5069
|
+
data-ouia-safe="true"
|
|
5070
|
+
id="select-0"
|
|
5014
5071
|
name="radioGroup"
|
|
5015
5072
|
type="radio"
|
|
5016
5073
|
/>
|
|
5017
|
-
</
|
|
5074
|
+
</div>
|
|
5018
5075
|
</td>
|
|
5019
5076
|
<th
|
|
5020
5077
|
class="pf-v6-c-table__td"
|
|
@@ -5191,13 +5248,21 @@ exports[`Table Selectable table with Radio 1`] = `
|
|
|
5191
5248
|
data-key="0"
|
|
5192
5249
|
tabindex="-1"
|
|
5193
5250
|
>
|
|
5194
|
-
<
|
|
5251
|
+
<div
|
|
5252
|
+
class="pf-v6-c-radio pf-m-standalone"
|
|
5253
|
+
>
|
|
5195
5254
|
<input
|
|
5255
|
+
aria-invalid="false"
|
|
5196
5256
|
aria-label="Select row 3"
|
|
5257
|
+
class="pf-v6-c-radio__input"
|
|
5258
|
+
data-ouia-component-id="OUIA-Generated-Radio-2"
|
|
5259
|
+
data-ouia-component-type="PF6/Radio"
|
|
5260
|
+
data-ouia-safe="true"
|
|
5261
|
+
id="select-3"
|
|
5197
5262
|
name="radioGroup"
|
|
5198
5263
|
type="radio"
|
|
5199
5264
|
/>
|
|
5200
|
-
</
|
|
5265
|
+
</div>
|
|
5201
5266
|
</td>
|
|
5202
5267
|
<th
|
|
5203
5268
|
class="pf-v6-c-table__td"
|
|
@@ -5317,13 +5382,21 @@ exports[`Table Selectable table with Radio 1`] = `
|
|
|
5317
5382
|
data-key="0"
|
|
5318
5383
|
tabindex="-1"
|
|
5319
5384
|
>
|
|
5320
|
-
<
|
|
5385
|
+
<div
|
|
5386
|
+
class="pf-v6-c-radio pf-m-standalone"
|
|
5387
|
+
>
|
|
5321
5388
|
<input
|
|
5389
|
+
aria-invalid="false"
|
|
5322
5390
|
aria-label="Select row 5"
|
|
5391
|
+
class="pf-v6-c-radio__input"
|
|
5392
|
+
data-ouia-component-id="OUIA-Generated-Radio-3"
|
|
5393
|
+
data-ouia-component-type="PF6/Radio"
|
|
5394
|
+
data-ouia-safe="true"
|
|
5395
|
+
id="select-5"
|
|
5323
5396
|
name="radioGroup"
|
|
5324
5397
|
type="radio"
|
|
5325
5398
|
/>
|
|
5326
|
-
</
|
|
5399
|
+
</div>
|
|
5327
5400
|
</td>
|
|
5328
5401
|
<th
|
|
5329
5402
|
class="pf-v6-c-table__td"
|
|
@@ -5386,13 +5459,21 @@ exports[`Table Selectable table with Radio 1`] = `
|
|
|
5386
5459
|
data-key="0"
|
|
5387
5460
|
tabindex="-1"
|
|
5388
5461
|
>
|
|
5389
|
-
<
|
|
5462
|
+
<div
|
|
5463
|
+
class="pf-v6-c-radio pf-m-standalone"
|
|
5464
|
+
>
|
|
5390
5465
|
<input
|
|
5466
|
+
aria-invalid="false"
|
|
5391
5467
|
aria-label="Select row 6"
|
|
5468
|
+
class="pf-v6-c-radio__input"
|
|
5469
|
+
data-ouia-component-id="OUIA-Generated-Radio-4"
|
|
5470
|
+
data-ouia-component-type="PF6/Radio"
|
|
5471
|
+
data-ouia-safe="true"
|
|
5472
|
+
id="select-6"
|
|
5392
5473
|
name="radioGroup"
|
|
5393
5474
|
type="radio"
|
|
5394
5475
|
/>
|
|
5395
|
-
</
|
|
5476
|
+
</div>
|
|
5396
5477
|
</td>
|
|
5397
5478
|
<th
|
|
5398
5479
|
class="pf-v6-c-table__td"
|
|
@@ -5455,13 +5536,21 @@ exports[`Table Selectable table with Radio 1`] = `
|
|
|
5455
5536
|
data-key="0"
|
|
5456
5537
|
tabindex="-1"
|
|
5457
5538
|
>
|
|
5458
|
-
<
|
|
5539
|
+
<div
|
|
5540
|
+
class="pf-v6-c-radio pf-m-standalone"
|
|
5541
|
+
>
|
|
5459
5542
|
<input
|
|
5543
|
+
aria-invalid="false"
|
|
5460
5544
|
aria-label="Select row 7"
|
|
5545
|
+
class="pf-v6-c-radio__input"
|
|
5546
|
+
data-ouia-component-id="OUIA-Generated-Radio-5"
|
|
5547
|
+
data-ouia-component-type="PF6/Radio"
|
|
5548
|
+
data-ouia-safe="true"
|
|
5549
|
+
id="select-7"
|
|
5461
5550
|
name="radioGroup"
|
|
5462
5551
|
type="radio"
|
|
5463
5552
|
/>
|
|
5464
|
-
</
|
|
5553
|
+
</div>
|
|
5465
5554
|
</td>
|
|
5466
5555
|
<th
|
|
5467
5556
|
class="pf-v6-c-table__td"
|
|
@@ -5524,13 +5613,21 @@ exports[`Table Selectable table with Radio 1`] = `
|
|
|
5524
5613
|
data-key="0"
|
|
5525
5614
|
tabindex="-1"
|
|
5526
5615
|
>
|
|
5527
|
-
<
|
|
5616
|
+
<div
|
|
5617
|
+
class="pf-v6-c-radio pf-m-standalone"
|
|
5618
|
+
>
|
|
5528
5619
|
<input
|
|
5620
|
+
aria-invalid="false"
|
|
5529
5621
|
aria-label="Select row 8"
|
|
5622
|
+
class="pf-v6-c-radio__input"
|
|
5623
|
+
data-ouia-component-id="OUIA-Generated-Radio-6"
|
|
5624
|
+
data-ouia-component-type="PF6/Radio"
|
|
5625
|
+
data-ouia-safe="true"
|
|
5626
|
+
id="select-8"
|
|
5530
5627
|
name="radioGroup"
|
|
5531
5628
|
type="radio"
|
|
5532
5629
|
/>
|
|
5533
|
-
</
|
|
5630
|
+
</div>
|
|
5534
5631
|
</td>
|
|
5535
5632
|
<th
|
|
5536
5633
|
class="pf-v6-c-table__td"
|
|
@@ -5608,14 +5705,21 @@ exports[`Table Selectable table with selected expandable row 1`] = `
|
|
|
5608
5705
|
scope=""
|
|
5609
5706
|
tabindex="-1"
|
|
5610
5707
|
>
|
|
5611
|
-
<
|
|
5708
|
+
<div
|
|
5709
|
+
class="pf-v6-c-check pf-m-standalone"
|
|
5710
|
+
>
|
|
5612
5711
|
<input
|
|
5712
|
+
aria-invalid="false"
|
|
5613
5713
|
aria-label="Select all rows"
|
|
5614
5714
|
checked=""
|
|
5615
|
-
|
|
5715
|
+
class="pf-v6-c-check__input"
|
|
5716
|
+
data-ouia-component-id="OUIA-Generated-Checkbox-8"
|
|
5717
|
+
data-ouia-component-type="PF6/Checkbox"
|
|
5718
|
+
data-ouia-safe="true"
|
|
5719
|
+
id="select-all"
|
|
5616
5720
|
type="checkbox"
|
|
5617
5721
|
/>
|
|
5618
|
-
</
|
|
5722
|
+
</div>
|
|
5619
5723
|
</th>
|
|
5620
5724
|
<th
|
|
5621
5725
|
class="pf-v6-c-table__th"
|
|
@@ -5643,14 +5747,21 @@ exports[`Table Selectable table with selected expandable row 1`] = `
|
|
|
5643
5747
|
data-key="0"
|
|
5644
5748
|
tabindex="-1"
|
|
5645
5749
|
>
|
|
5646
|
-
<
|
|
5750
|
+
<div
|
|
5751
|
+
class="pf-v6-c-check pf-m-standalone"
|
|
5752
|
+
>
|
|
5647
5753
|
<input
|
|
5754
|
+
aria-invalid="false"
|
|
5648
5755
|
aria-label="Select row 0"
|
|
5649
5756
|
checked=""
|
|
5650
|
-
|
|
5757
|
+
class="pf-v6-c-check__input"
|
|
5758
|
+
data-ouia-component-id="OUIA-Generated-Checkbox-9"
|
|
5759
|
+
data-ouia-component-type="PF6/Checkbox"
|
|
5760
|
+
data-ouia-safe="true"
|
|
5761
|
+
id="select-0"
|
|
5651
5762
|
type="checkbox"
|
|
5652
5763
|
/>
|
|
5653
|
-
</
|
|
5764
|
+
</div>
|
|
5654
5765
|
</td>
|
|
5655
5766
|
<td
|
|
5656
5767
|
class="pf-v6-c-table__td"
|