@patternfly/react-table 6.5.0-prerelease.46 → 6.5.0-prerelease.48
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 +10 -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/CollapseColumn.js +2 -2
- package/dist/esm/components/Table/CollapseColumn.js.map +1 -1
- package/dist/esm/components/Table/utils/decorators/treeRow.js +2 -2
- package/dist/esm/components/Table/utils/decorators/treeRow.js.map +1 -1
- package/dist/js/components/Table/CollapseColumn.js +2 -2
- package/dist/js/components/Table/CollapseColumn.js.map +1 -1
- package/dist/js/components/Table/utils/decorators/treeRow.js +2 -2
- package/dist/js/components/Table/utils/decorators/treeRow.js.map +1 -1
- package/dist/umd/assets/{output-BwnRe0zx.css → output-CS-7TjEV.css} +2261 -2261
- package/dist/umd/react-table.min.js +2 -2
- package/package.json +3 -3
- package/src/components/Table/CollapseColumn.tsx +2 -2
- package/src/components/Table/utils/decorators/treeRow.tsx +2 -2
- package/src/demos/Table.md +2 -2
- package/src/deprecated/components/Table/__tests__/__snapshots__/Table.test.tsx.snap +20 -80
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,16 @@
|
|
|
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
|
+
# [6.5.0-prerelease.48](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-table@6.5.0-prerelease.47...@patternfly/react-table@6.5.0-prerelease.48) (2026-04-01)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @patternfly/react-table
|
|
9
|
+
|
|
10
|
+
# [6.5.0-prerelease.47](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-table@6.5.0-prerelease.46...@patternfly/react-table@6.5.0-prerelease.47) (2026-04-01)
|
|
11
|
+
|
|
12
|
+
### Features
|
|
13
|
+
|
|
14
|
+
- **icons:** updated caret icons to RH microns ([#12298](https://github.com/patternfly/patternfly-react/issues/12298)) ([688a5af](https://github.com/patternfly/patternfly-react/commit/688a5afb40c28f0b293301d1e68f0359b7a0604d))
|
|
15
|
+
|
|
6
16
|
# [6.5.0-prerelease.46](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-table@6.5.0-prerelease.45...@patternfly/react-table@6.5.0-prerelease.46) (2026-04-01)
|
|
7
17
|
|
|
8
18
|
**Note:** Version bump only for package @patternfly/react-table
|
package/components/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@patternfly/react-table-components","main":"../dist/js/components/index.js","module":"../dist/esm/components/index.js","typings":"../dist/esm/components/index.d.ts","version":"6.5.0-prerelease.
|
|
1
|
+
{"name":"@patternfly/react-table-components","main":"../dist/js/components/index.js","module":"../dist/esm/components/index.js","typings":"../dist/esm/components/index.d.ts","version":"6.5.0-prerelease.47","private":true}
|
package/deprecated/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@patternfly/react-table-deprecated","main":"../dist/js/deprecated/index.js","module":"../dist/esm/deprecated/index.js","typings":"../dist/esm/deprecated/index.d.ts","version":"6.5.0-prerelease.
|
|
1
|
+
{"name":"@patternfly/react-table-deprecated","main":"../dist/js/deprecated/index.js","module":"../dist/esm/deprecated/index.js","typings":"../dist/esm/deprecated/index.d.ts","version":"6.5.0-prerelease.47","private":true}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@patternfly/react-table-table-dynamic","main":"../../../js/components/Table/index.js","module":"../../../esm/components/Table/index.js","typings":"../../../esm/components/Table/index.d.ts","version":"6.5.0-prerelease.
|
|
1
|
+
{"name":"@patternfly/react-table-table-dynamic","main":"../../../js/components/Table/index.js","module":"../../../esm/components/Table/index.js","typings":"../../../esm/components/Table/index.d.ts","version":"6.5.0-prerelease.47","private":true}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@patternfly/react-table-decorators-dynamic","main":"../../../../../js/components/Table/utils/decorators/index.js","module":"../../../../../esm/components/Table/utils/decorators/index.js","typings":"../../../../../esm/components/Table/utils/decorators/index.d.ts","version":"6.5.0-prerelease.
|
|
1
|
+
{"name":"@patternfly/react-table-decorators-dynamic","main":"../../../../../js/components/Table/utils/decorators/index.js","module":"../../../../../esm/components/Table/utils/decorators/index.js","typings":"../../../../../esm/components/Table/utils/decorators/index.d.ts","version":"6.5.0-prerelease.47","private":true}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@patternfly/react-table-utils-dynamic","main":"../../../../js/components/Table/utils/index.js","module":"../../../../esm/components/Table/utils/index.js","typings":"../../../../esm/components/Table/utils/index.d.ts","version":"6.5.0-prerelease.
|
|
1
|
+
{"name":"@patternfly/react-table-utils-dynamic","main":"../../../../js/components/Table/utils/index.js","module":"../../../../esm/components/Table/utils/index.js","typings":"../../../../esm/components/Table/utils/index.d.ts","version":"6.5.0-prerelease.47","private":true}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@patternfly/react-table-base-deprecated-dynamic","main":"../../../../../js/deprecated/components/Table/base/index.js","module":"../../../../../esm/deprecated/components/Table/base/index.js","typings":"../../../../../esm/deprecated/components/Table/base/index.d.ts","version":"6.5.0-prerelease.
|
|
1
|
+
{"name":"@patternfly/react-table-base-deprecated-dynamic","main":"../../../../../js/deprecated/components/Table/base/index.js","module":"../../../../../esm/deprecated/components/Table/base/index.js","typings":"../../../../../esm/deprecated/components/Table/base/index.d.ts","version":"6.5.0-prerelease.47","private":true}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@patternfly/react-table-table-deprecated-dynamic","main":"../../../../js/deprecated/components/Table/index.js","module":"../../../../esm/deprecated/components/Table/index.js","typings":"../../../../esm/deprecated/components/Table/index.d.ts","version":"6.5.0-prerelease.
|
|
1
|
+
{"name":"@patternfly/react-table-table-deprecated-dynamic","main":"../../../../js/deprecated/components/Table/index.js","module":"../../../../esm/deprecated/components/Table/index.js","typings":"../../../../esm/deprecated/components/Table/index.d.ts","version":"6.5.0-prerelease.47","private":true}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@patternfly/react-table-components-deprecated-dynamic","main":"../../../js/deprecated/components/index.js","module":"../../../esm/deprecated/components/index.js","typings":"../../../esm/deprecated/components/index.d.ts","version":"6.5.0-prerelease.
|
|
1
|
+
{"name":"@patternfly/react-table-components-deprecated-dynamic","main":"../../../js/deprecated/components/index.js","module":"../../../esm/deprecated/components/index.js","typings":"../../../esm/deprecated/components/index.d.ts","version":"6.5.0-prerelease.47","private":true}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { __rest } from "tslib";
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { Fragment } from 'react';
|
|
4
|
-
import
|
|
4
|
+
import RhMicronsCaretDownIcon from '@patternfly/react-icons/dist/esm/icons/rh-microns-caret-down-icon';
|
|
5
5
|
import { css } from '@patternfly/react-styles';
|
|
6
6
|
import { Button } from '@patternfly/react-core/dist/esm/components/Button';
|
|
7
7
|
import styles from '@patternfly/react-styles/css/components/Table/table.mjs';
|
|
8
8
|
export const CollapseColumn = (_a) => {
|
|
9
9
|
var { className = '', children = null, isOpen, onToggle, variant } = _a, props = __rest(_a, ["className", "children", "isOpen", "onToggle", "variant"]);
|
|
10
|
-
return (_jsxs(Fragment, { children: [isOpen !== undefined && (_jsx(Button, Object.assign({ className: css(className, isOpen && styles.modifiers.expanded), size: variant === 'compact' ? 'sm' : undefined }, props, { variant: "plain", "aria-label": props['aria-label'] || 'Details', onClick: onToggle, "aria-expanded": isOpen, icon: _jsx("div", { className: css(styles.tableToggleIcon), children: _jsx(
|
|
10
|
+
return (_jsxs(Fragment, { children: [isOpen !== undefined && (_jsx(Button, Object.assign({ className: css(className, isOpen && styles.modifiers.expanded), size: variant === 'compact' ? 'sm' : undefined }, props, { variant: "plain", "aria-label": props['aria-label'] || 'Details', onClick: onToggle, "aria-expanded": isOpen, icon: _jsx("div", { className: css(styles.tableToggleIcon), children: _jsx(RhMicronsCaretDownIcon, {}) }) }))), children] }));
|
|
11
11
|
};
|
|
12
12
|
CollapseColumn.displayName = 'CollapseColumn';
|
|
13
13
|
//# sourceMappingURL=CollapseColumn.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CollapseColumn.js","sourceRoot":"","sources":["../../../../src/components/Table/CollapseColumn.tsx"],"names":[],"mappings":";;AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,
|
|
1
|
+
{"version":3,"file":"CollapseColumn.js","sourceRoot":"","sources":["../../../../src/components/Table/CollapseColumn.tsx"],"names":[],"mappings":";;AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,sBAAsB,MAAM,mEAAmE,CAAC;AACvG,OAAO,EAAE,GAAG,EAAE,MAAM,0BAA0B,CAAC;AAC/C,OAAO,EAAE,MAAM,EAAE,MAAM,mDAAmD,CAAC;AAC3E,OAAO,MAAM,gEAA4D;AAYzE,MAAM,CAAC,MAAM,cAAc,GAAiD,CAAC,EAOvD,EAAE,EAAE;QAPmD,EAC3E,SAAS,GAAG,EAAY,EACxB,QAAQ,GAAG,IAAuB,EAClC,MAAM,EACN,QAAQ,EACR,OAAO,OAEa,EADjB,KAAK,cANmE,0DAO5E,CADS;IACiB,OAAA,CACzB,MAAC,QAAQ,eACN,MAAM,KAAK,SAAS,IAAI,CACvB,KAAC,MAAM,kBACL,SAAS,EAAE,GAAG,CAAC,SAAS,EAAE,MAAM,IAAI,MAAM,CAAC,SAAS,CAAC,QAAQ,CAAC,EAC9D,IAAI,EAAE,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,IAC1C,KAAK,IACT,OAAO,EAAC,OAAO,gBACH,KAAK,CAAC,YAAY,CAAC,IAAI,SAAS,EAC5C,OAAO,EAAE,QAAQ,mBACF,MAAM,EACrB,IAAI,EACF,cAAK,SAAS,EAAE,GAAG,CAAC,MAAM,CAAC,eAAe,CAAC,YACzC,KAAC,sBAAsB,KAAG,GACtB,IAER,CACH,EACA,QAAQ,IACA,CACZ,CAAA;CAAA,CAAC;AACF,cAAc,CAAC,WAAW,GAAG,gBAAgB,CAAC"}
|
|
@@ -4,7 +4,7 @@ import styles from '@patternfly/react-styles/css/components/Table/table.mjs';
|
|
|
4
4
|
import stylesTreeView from '@patternfly/react-styles/css/components/Table/table-tree-view.mjs';
|
|
5
5
|
import { Button } from '@patternfly/react-core/dist/esm/components/Button';
|
|
6
6
|
import { Checkbox } from '@patternfly/react-core/dist/esm/components/Checkbox';
|
|
7
|
-
import
|
|
7
|
+
import RhMicronsCaretDownIcon from '@patternfly/react-icons/dist/esm/icons/rh-microns-caret-down-icon';
|
|
8
8
|
import EllipsisHIcon from '@patternfly/react-icons/dist/esm/icons/ellipsis-h-icon';
|
|
9
9
|
export const treeRow = (onCollapse, onCheckChange, onToggleRowDetails) => (value, { rowIndex, rowData }) => {
|
|
10
10
|
const { isExpanded, isDetailsExpanded, 'aria-level': level, 'aria-setsize': setsize, toggleAriaLabel, checkAriaLabel, showDetailsAriaLabel, isChecked, checkboxId, icon } = rowData.props;
|
|
@@ -16,7 +16,7 @@ export const treeRow = (onCollapse, onCheckChange, onToggleRowDetails) => (value
|
|
|
16
16
|
return {
|
|
17
17
|
component: 'th',
|
|
18
18
|
className: stylesTreeView.tableTreeViewTitleCell,
|
|
19
|
-
children: level !== undefined ? (_jsxs("div", { className: css(stylesTreeView.tableTreeViewMain), children: [setsize > 0 && (_jsx("span", { className: css(stylesTreeView.tableToggle), children: _jsx(Button, { variant: "plain", onClick: (event) => onCollapse && onCollapse(event, rowIndex, content, rowData), className: css(isExpanded && styles.modifiers.expanded), "aria-expanded": isExpanded, "aria-label": toggleAriaLabel || `${isExpanded ? 'Collapse' : 'Expand'} row ${rowIndex}`, icon: _jsx("div", { className: css(stylesTreeView.tableToggleIcon), children: _jsx(
|
|
19
|
+
children: level !== undefined ? (_jsxs("div", { className: css(stylesTreeView.tableTreeViewMain), children: [setsize > 0 && (_jsx("span", { className: css(stylesTreeView.tableToggle), children: _jsx(Button, { variant: "plain", onClick: (event) => onCollapse && onCollapse(event, rowIndex, content, rowData), className: css(isExpanded && styles.modifiers.expanded), "aria-expanded": isExpanded, "aria-label": toggleAriaLabel || `${isExpanded ? 'Collapse' : 'Expand'} row ${rowIndex}`, icon: _jsx("div", { className: css(stylesTreeView.tableToggleIcon), children: _jsx(RhMicronsCaretDownIcon, {}) }) }) }, "table-toggle")), !!onCheckChange && (_jsx("span", { className: css(stylesTreeView.tableCheck), children: _jsx("label", { htmlFor: checkboxId || `checkbox_${rowIndex}`, children: _jsx(Checkbox, { id: checkboxId || `checkbox_${rowIndex}`, "aria-label": checkAriaLabel || `Row ${rowIndex} checkbox`, isChecked: isChecked, onChange: (event, checked) => onChange(checked, event) }) }) }, "table-check")), text, !!onToggleRowDetails && (_jsx("span", { className: css(stylesTreeView.tableTreeViewDetailsToggle), children: _jsx(Button, { variant: "plain", "aria-expanded": isDetailsExpanded, "aria-label": showDetailsAriaLabel || 'Show row details', onClick: (event) => onToggleRowDetails && onToggleRowDetails(event, rowIndex, content, rowData), icon: _jsx("span", { className: `${styles.table}__details-toggle-icon`, children: _jsx(EllipsisHIcon, {}) }) }) }, "view-details-toggle"))] })) : (text)
|
|
20
20
|
};
|
|
21
21
|
};
|
|
22
22
|
//# sourceMappingURL=treeRow.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"treeRow.js","sourceRoot":"","sources":["../../../../../../src/components/Table/utils/decorators/treeRow.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,GAAG,EAAE,MAAM,0BAA0B,CAAC;AAC/C,OAAO,MAAM,gEAA4D;AACzE,OAAO,cAAc,0EAAsE;AAC3F,OAAO,EAAE,MAAM,EAAE,MAAM,mDAAmD,CAAC;AAC3E,OAAO,EAAE,QAAQ,EAAE,MAAM,qDAAqD,CAAC;AAC/E,OAAO,
|
|
1
|
+
{"version":3,"file":"treeRow.js","sourceRoot":"","sources":["../../../../../../src/components/Table/utils/decorators/treeRow.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,GAAG,EAAE,MAAM,0BAA0B,CAAC;AAC/C,OAAO,MAAM,gEAA4D;AACzE,OAAO,cAAc,0EAAsE;AAC3F,OAAO,EAAE,MAAM,EAAE,MAAM,mDAAmD,CAAC;AAC3E,OAAO,EAAE,QAAQ,EAAE,MAAM,qDAAqD,CAAC;AAC/E,OAAO,sBAAsB,MAAM,mEAAmE,CAAC;AACvG,OAAO,aAAa,MAAM,wDAAwD,CAAC;AAEnF,MAAM,CAAC,MAAM,OAAO,GAClB,CAAC,UAA6B,EAAE,aAA6B,EAAE,kBAAuC,EAAE,EAAE,CAC1G,CAAC,KAA0B,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAU,EAAE,EAAE;IAC5D,MAAM,EACJ,UAAU,EACV,iBAAiB,EACjB,YAAY,EAAE,KAAK,EACnB,cAAc,EAAE,OAAO,EACvB,eAAe,EACf,cAAc,EACd,oBAAoB,EACpB,SAAS,EACT,UAAU,EACV,IAAI,EACL,GAAG,OAAO,CAAC,KAAK,CAAC;IAClB,MAAM,OAAO,GAAG,KAAK,CAAC,KAAK,IAAI,KAAK,CAAC;IACrC,MAAM,IAAI,GAAG,CACX,eAAK,SAAS,EAAE,GAAG,CAAC,cAAc,CAAC,iBAAiB,CAAC,aAClD,IAAI,IAAI,CACP,eAAM,SAAS,EAAE,GAAG,CAAC,cAAc,CAAC,iBAAiB,CAAC,YACnD,IAAI,IADqD,qBAAq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AE,UAAU,IAAI,YAAY,QAAQ,EAAE,gBAC5B,cAAc,IAAI,OAAO,QAAQ,WAAW,EACxD,SAAS,EAAE,SAAS,EACpB,QAAQ,EAAE,CAAC,KAAK,EAAE,OAAO,EAAE,EAAE,CAAC,QAAQ,CAAC,OAAO,EAAE,KAAK,CAAC,GACtD,GACI,IAR2C,aAAa,CAS3D,CACR,EACA,IAAI,EACJ,CAAC,CAAC,kBAAkB,IAAI,CACvB,eAAM,SAAS,EAAE,GAAG,CAAC,cAAc,CAAC,0BAA0B,CAAC,YAC7D,KAAC,MAAM,IACL,OAAO,EAAC,OAAO,mBACA,iBAAiB,gBACpB,oBAAoB,IAAI,kBAAkB,EACtD,OAAO,EAAE,CAAC,KAAK,EAAE,EAAE,CACjB,kBAAkB,IAAI,kBAAkB,CAAC,KAAK,EAAE,QAAQ,EAAE,OAA0B,EAAE,OAAO,CAAC,EAEhG,IAAI,EACF,eAAM,SAAS,EAAE,GAAG,MAAM,CAAC,KAAK,uBAAuB,YACrD,KAAC,aAAa,KAAG,GACZ,GAET,IAbiE,qBAAqB,CAcnF,CACR,IACG,CACP,CAAC,CAAC,CAAC,CACF,IAAI,CACL;KACJ,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -4,13 +4,13 @@ exports.CollapseColumn = void 0;
|
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
6
6
|
const react_1 = require("react");
|
|
7
|
-
const
|
|
7
|
+
const rh_microns_caret_down_icon_1 = tslib_1.__importDefault(require('@patternfly/react-icons/dist/js/icons/rh-microns-caret-down-icon'));
|
|
8
8
|
const react_styles_1 = require("@patternfly/react-styles");
|
|
9
9
|
const Button_1 = require('@patternfly/react-core/dist/js/components/Button');
|
|
10
10
|
const table_1 = tslib_1.__importDefault(require("@patternfly/react-styles/css/components/Table/table"));
|
|
11
11
|
const CollapseColumn = (_a) => {
|
|
12
12
|
var { className = '', children = null, isOpen, onToggle, variant } = _a, props = tslib_1.__rest(_a, ["className", "children", "isOpen", "onToggle", "variant"]);
|
|
13
|
-
return ((0, jsx_runtime_1.jsxs)(react_1.Fragment, { children: [isOpen !== undefined && ((0, jsx_runtime_1.jsx)(Button_1.Button, Object.assign({ className: (0, react_styles_1.css)(className, isOpen && table_1.default.modifiers.expanded), size: variant === 'compact' ? 'sm' : undefined }, props, { variant: "plain", "aria-label": props['aria-label'] || 'Details', onClick: onToggle, "aria-expanded": isOpen, icon: (0, jsx_runtime_1.jsx)("div", { className: (0, react_styles_1.css)(table_1.default.tableToggleIcon), children: (0, jsx_runtime_1.jsx)(
|
|
13
|
+
return ((0, jsx_runtime_1.jsxs)(react_1.Fragment, { children: [isOpen !== undefined && ((0, jsx_runtime_1.jsx)(Button_1.Button, Object.assign({ className: (0, react_styles_1.css)(className, isOpen && table_1.default.modifiers.expanded), size: variant === 'compact' ? 'sm' : undefined }, props, { variant: "plain", "aria-label": props['aria-label'] || 'Details', onClick: onToggle, "aria-expanded": isOpen, icon: (0, jsx_runtime_1.jsx)("div", { className: (0, react_styles_1.css)(table_1.default.tableToggleIcon), children: (0, jsx_runtime_1.jsx)(rh_microns_caret_down_icon_1.default, {}) }) }))), children] }));
|
|
14
14
|
};
|
|
15
15
|
exports.CollapseColumn = CollapseColumn;
|
|
16
16
|
exports.CollapseColumn.displayName = 'CollapseColumn';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CollapseColumn.js","sourceRoot":"","sources":["../../../../src/components/Table/CollapseColumn.tsx"],"names":[],"mappings":";;;;;AAAA,iCAAiC;;AAEjC,2DAA+C;;AAE/C,wGAAyE;AAYlE,MAAM,cAAc,GAAiD,CAAC,EAOvD,EAAE,EAAE;QAPmD,EAC3E,SAAS,GAAG,EAAY,EACxB,QAAQ,GAAG,IAAuB,EAClC,MAAM,EACN,QAAQ,EACR,OAAO,OAEa,EADjB,KAAK,sBANmE,0DAO5E,CADS;IACiB,OAAA,CACzB,wBAAC,gBAAQ,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AC,YACzC,uBAAC,oCAAsB,KAAG,GACtB,IAER,CACH,EACA,QAAQ,IACA,CACZ,CAAA;CAAA,CAAC;AA3BW,QAAA,cAAc,kBA2BzB;AACF,sBAAc,CAAC,WAAW,GAAG,gBAAgB,CAAC"}
|
|
@@ -8,7 +8,7 @@ const table_1 = tslib_1.__importDefault(require("@patternfly/react-styles/css/co
|
|
|
8
8
|
const table_tree_view_1 = tslib_1.__importDefault(require("@patternfly/react-styles/css/components/Table/table-tree-view"));
|
|
9
9
|
const Button_1 = require('@patternfly/react-core/dist/js/components/Button');
|
|
10
10
|
const Checkbox_1 = require('@patternfly/react-core/dist/js/components/Checkbox');
|
|
11
|
-
const
|
|
11
|
+
const rh_microns_caret_down_icon_1 = tslib_1.__importDefault(require('@patternfly/react-icons/dist/js/icons/rh-microns-caret-down-icon'));
|
|
12
12
|
const ellipsis_h_icon_1 = tslib_1.__importDefault(require('@patternfly/react-icons/dist/js/icons/ellipsis-h-icon'));
|
|
13
13
|
const treeRow = (onCollapse, onCheckChange, onToggleRowDetails) => (value, { rowIndex, rowData }) => {
|
|
14
14
|
const { isExpanded, isDetailsExpanded, 'aria-level': level, 'aria-setsize': setsize, toggleAriaLabel, checkAriaLabel, showDetailsAriaLabel, isChecked, checkboxId, icon } = rowData.props;
|
|
@@ -20,7 +20,7 @@ const treeRow = (onCollapse, onCheckChange, onToggleRowDetails) => (value, { row
|
|
|
20
20
|
return {
|
|
21
21
|
component: 'th',
|
|
22
22
|
className: table_tree_view_1.default.tableTreeViewTitleCell,
|
|
23
|
-
children: level !== undefined ? ((0, jsx_runtime_1.jsxs)("div", { className: (0, react_styles_1.css)(table_tree_view_1.default.tableTreeViewMain), children: [setsize > 0 && ((0, jsx_runtime_1.jsx)("span", { className: (0, react_styles_1.css)(table_tree_view_1.default.tableToggle), children: (0, jsx_runtime_1.jsx)(Button_1.Button, { variant: "plain", onClick: (event) => onCollapse && onCollapse(event, rowIndex, content, rowData), className: (0, react_styles_1.css)(isExpanded && table_1.default.modifiers.expanded), "aria-expanded": isExpanded, "aria-label": toggleAriaLabel || `${isExpanded ? 'Collapse' : 'Expand'} row ${rowIndex}`, icon: (0, jsx_runtime_1.jsx)("div", { className: (0, react_styles_1.css)(table_tree_view_1.default.tableToggleIcon), children: (0, jsx_runtime_1.jsx)(
|
|
23
|
+
children: level !== undefined ? ((0, jsx_runtime_1.jsxs)("div", { className: (0, react_styles_1.css)(table_tree_view_1.default.tableTreeViewMain), children: [setsize > 0 && ((0, jsx_runtime_1.jsx)("span", { className: (0, react_styles_1.css)(table_tree_view_1.default.tableToggle), children: (0, jsx_runtime_1.jsx)(Button_1.Button, { variant: "plain", onClick: (event) => onCollapse && onCollapse(event, rowIndex, content, rowData), className: (0, react_styles_1.css)(isExpanded && table_1.default.modifiers.expanded), "aria-expanded": isExpanded, "aria-label": toggleAriaLabel || `${isExpanded ? 'Collapse' : 'Expand'} row ${rowIndex}`, icon: (0, jsx_runtime_1.jsx)("div", { className: (0, react_styles_1.css)(table_tree_view_1.default.tableToggleIcon), children: (0, jsx_runtime_1.jsx)(rh_microns_caret_down_icon_1.default, {}) }) }) }, "table-toggle")), !!onCheckChange && ((0, jsx_runtime_1.jsx)("span", { className: (0, react_styles_1.css)(table_tree_view_1.default.tableCheck), children: (0, jsx_runtime_1.jsx)("label", { htmlFor: checkboxId || `checkbox_${rowIndex}`, children: (0, jsx_runtime_1.jsx)(Checkbox_1.Checkbox, { id: checkboxId || `checkbox_${rowIndex}`, "aria-label": checkAriaLabel || `Row ${rowIndex} checkbox`, isChecked: isChecked, onChange: (event, checked) => onChange(checked, event) }) }) }, "table-check")), text, !!onToggleRowDetails && ((0, jsx_runtime_1.jsx)("span", { className: (0, react_styles_1.css)(table_tree_view_1.default.tableTreeViewDetailsToggle), children: (0, jsx_runtime_1.jsx)(Button_1.Button, { variant: "plain", "aria-expanded": isDetailsExpanded, "aria-label": showDetailsAriaLabel || 'Show row details', onClick: (event) => onToggleRowDetails && onToggleRowDetails(event, rowIndex, content, rowData), icon: (0, jsx_runtime_1.jsx)("span", { className: `${table_1.default.table}__details-toggle-icon`, children: (0, jsx_runtime_1.jsx)(ellipsis_h_icon_1.default, {}) }) }) }, "view-details-toggle"))] })) : (text)
|
|
24
24
|
};
|
|
25
25
|
};
|
|
26
26
|
exports.treeRow = treeRow;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"treeRow.js","sourceRoot":"","sources":["../../../../../../src/components/Table/utils/decorators/treeRow.tsx"],"names":[],"mappings":";;;;;AACA,2DAA+C;AAC/C,wGAAyE;AACzE,4HAA2F;;;;;AAMpF,MAAM,OAAO,GAClB,CAAC,UAA6B,EAAE,aAA6B,EAAE,kBAAuC,EAAE,EAAE,CAC1G,CAAC,KAA0B,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAU,EAAE,EAAE;IAC5D,MAAM,EACJ,UAAU,EACV,iBAAiB,EACjB,YAAY,EAAE,KAAK,EACnB,cAAc,EAAE,OAAO,EACvB,eAAe,EACf,cAAc,EACd,oBAAoB,EACpB,SAAS,EACT,UAAU,EACV,IAAI,EACL,GAAG,OAAO,CAAC,KAAK,CAAC;IAClB,MAAM,OAAO,GAAG,KAAK,CAAC,KAAK,IAAI,KAAK,CAAC;IACrC,MAAM,IAAI,GAAG,CACX,iCAAK,SAAS,EAAE,IAAA,kBAAG,EAAC,yBAAc,CAAC,iBAAiB,CAAC,aAClD,IAAI,IAAI,CACP,iCAAM,SAAS,EAAE,IAAA,kBAAG,EAAC,yBAAc,CAAC,iBAAiB,CAAC,YACnD,IAAI,IADqD,qBAAqB,CAE1E,CACR,EACD,iCAAM,SAAS,EAAE,eAAM,CAAC,SAAS,YAC9B,OAA0B,IADU,YAAY,CAE5C,KARkD,gBAAgB,CASrE,CACP,CAAC;IACF,MAAM,QAAQ,GAAG,CAAC,SAAkB,EAAE,KAAwC,EAAE,EAAE;QAChF,aAAa,CAAC,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,OAA0B,EAAE,OAAO,CAAC,CAAC;IACjF,CAAC,CAAC;IACF,OAAO;QACL,SAAS,EAAE,IAAI;QACf,SAAS,EAAE,yBAAc,CAAC,sBAAsB;QAChD,QAAQ,EACN,KAAK,KAAK,SAAS,CAAC,CAAC,CAAC,CACpB,iCAAK,SAAS,EAAE,IAAA,kBAAG,EAAC,yBAAc,CAAC,iBAAiB,CAAC,aAClD,OAAO,GAAG,CAAC,IAAI,CACd,iCAAM,SAAS,EAAE,IAAA,kBAAG,EAAC,yBAAc,CAAC,WAAW,CAAC,YAC9C,uBAAC,eAAM,IACL,OAAO,EAAC,OAAO,EACf,OAAO,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,UAAU,IAAI,UAAU,CAAC,KAAK,EAAE,QAAQ,EAAE,OAA0B,EAAE,OAAO,CAAC,EAClG,SAAS,EAAE,IAAA,kBAAG,EAAC,UAAU,IAAI,eAAM,CAAC,SAAS,CAAC,QAAQ,CAAC,mBACxC,UAAU,gBACb,eAAe,IAAI,GAAG,UAAU,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,QAAQ,QAAQ,QAAQ,EAAE,EACtF,IAAI,EACF,gCAAK,SAAS,EAAE,IAAA,kBAAG,EAAC,yBAAc,CAAC,eAAe,CAAC,YACjD,uBAAC,
|
|
1
|
+
{"version":3,"file":"treeRow.js","sourceRoot":"","sources":["../../../../../../src/components/Table/utils/decorators/treeRow.tsx"],"names":[],"mappings":";;;;;AACA,2DAA+C;AAC/C,wGAAyE;AACzE,4HAA2F;;;;;AAMpF,MAAM,OAAO,GAClB,CAAC,UAA6B,EAAE,aAA6B,EAAE,kBAAuC,EAAE,EAAE,CAC1G,CAAC,KAA0B,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAU,EAAE,EAAE;IAC5D,MAAM,EACJ,UAAU,EACV,iBAAiB,EACjB,YAAY,EAAE,KAAK,EACnB,cAAc,EAAE,OAAO,EACvB,eAAe,EACf,cAAc,EACd,oBAAoB,EACpB,SAAS,EACT,UAA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