@patternfly/react-table 6.3.1-prerelease.14 → 6.3.1-prerelease.15
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/FavoritesCell.d.ts.map +1 -1
- package/dist/esm/components/Table/FavoritesCell.js +1 -2
- package/dist/esm/components/Table/FavoritesCell.js.map +1 -1
- package/dist/esm/components/Table/SortColumn.d.ts.map +1 -1
- package/dist/esm/components/Table/SortColumn.js +2 -2
- package/dist/esm/components/Table/SortColumn.js.map +1 -1
- package/dist/js/components/Table/FavoritesCell.d.ts.map +1 -1
- package/dist/js/components/Table/FavoritesCell.js +1 -2
- package/dist/js/components/Table/FavoritesCell.js.map +1 -1
- package/dist/js/components/Table/SortColumn.d.ts.map +1 -1
- package/dist/js/components/Table/SortColumn.js +2 -2
- package/dist/js/components/Table/SortColumn.js.map +1 -1
- package/dist/umd/assets/{output-C7jdezfW.css → output-CJMF3bJa.css} +4211 -4212
- package/dist/umd/react-table.min.js +1 -1
- package/package.json +2 -2
- package/src/components/Table/FavoritesCell.tsx +2 -2
- package/src/components/Table/SortColumn.tsx +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,12 @@
|
|
|
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.3.1-prerelease.15](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-table@6.3.1-prerelease.14...@patternfly/react-table@6.3.1-prerelease.15) (2025-09-11)
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
- **Table:** use Button favorites logic ([#11995](https://github.com/patternfly/patternfly-react/issues/11995)) ([8ebfc34](https://github.com/patternfly/patternfly-react/commit/8ebfc3428c44428bb9f2f868e6e9656f42729087))
|
|
11
|
+
|
|
6
12
|
## [6.3.1-prerelease.14](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-table@6.3.1-prerelease.13...@patternfly/react-table@6.3.1-prerelease.14) (2025-09-11)
|
|
7
13
|
|
|
8
14
|
**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.3.1-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.3.1-prerelease.14","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.3.1-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.3.1-prerelease.14","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.3.1-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.3.1-prerelease.14","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.3.1-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.3.1-prerelease.14","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.3.1-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.3.1-prerelease.14","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.3.1-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.3.1-prerelease.14","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.3.1-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.3.1-prerelease.14","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.3.1-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.3.1-prerelease.14","private":true}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FavoritesCell.d.ts","sourceRoot":"","sources":["../../../../src/components/Table/FavoritesCell.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"FavoritesCell.d.ts","sourceRoot":"","sources":["../../../../src/components/Table/FavoritesCell.tsx"],"names":[],"mappings":";AAEA,MAAM,WAAW,kBAAkB;IACjC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,iBAAiB,EAAE,UAAU,CAAC,KAAK,IAAI,CAAC;IAC9E,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,iBAAiB,CAAC,kBAAkB,CA2BrE,CAAC"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { __rest } from "tslib";
|
|
2
2
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
-
import StarIcon from '@patternfly/react-icons/dist/esm/icons/star-icon';
|
|
4
3
|
import { Button } from '@patternfly/react-core/dist/esm/components/Button';
|
|
5
4
|
export const FavoritesCell = (_a) => {
|
|
6
5
|
var { className = '', onFavorite, isFavorited, rowIndex } = _a, props = __rest(_a, ["className", "onFavorite", "isFavorited", "rowIndex"]);
|
|
@@ -10,7 +9,7 @@ export const FavoritesCell = (_a) => {
|
|
|
10
9
|
id: `favorites-button-${rowIndex}`,
|
|
11
10
|
'aria-labelledby': `favorites-button-${rowIndex}`
|
|
12
11
|
};
|
|
13
|
-
return (_jsx(Button, Object.assign({ variant: "plain", className: className, type: "button", "aria-label": isFavorited ? 'Starred' : 'Not starred', onClick: onFavorite
|
|
12
|
+
return (_jsx(Button, Object.assign({ variant: "plain", className: className, type: "button", "aria-label": isFavorited ? 'Starred' : 'Not starred', onClick: onFavorite, isFavorite: true, isFavorited: isFavorited }, ariaProps, props)));
|
|
14
13
|
};
|
|
15
14
|
FavoritesCell.displayName = 'FavoritesCell';
|
|
16
15
|
//# sourceMappingURL=FavoritesCell.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FavoritesCell.js","sourceRoot":"","sources":["../../../../src/components/Table/FavoritesCell.tsx"],"names":[],"mappings":";;AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"FavoritesCell.js","sourceRoot":"","sources":["../../../../src/components/Table/FavoritesCell.tsx"],"names":[],"mappings":";;AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,mDAAmD,CAAC;AAU3E,MAAM,CAAC,MAAM,aAAa,GAAgD,CAAC,EAMtD,EAAE,EAAE;QANkD,EACzE,SAAS,GAAG,EAAY,EACxB,UAAU,EACV,WAAW,EACX,QAAQ,OAEW,EADhB,KAAK,cALiE,sDAM1E,CADS;IAER,MAAM,SAAS,GACb,QAAQ,KAAK,SAAS;QACpB,CAAC,CAAC,EAAE;QACJ,CAAC,CAAC;YACE,EAAE,EAAE,oBAAoB,QAAQ,EAAE;YAClC,iBAAiB,EAAE,oBAAoB,QAAQ,EAAE;SAClD,CAAC;IACR,OAAO,CACL,KAAC,MAAM,kBACL,OAAO,EAAC,OAAO,EACf,SAAS,EAAE,SAAS,EACpB,IAAI,EAAC,QAAQ,gBACD,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,aAAa,EACnD,OAAO,EAAE,UAAU,EACnB,UAAU,QACV,WAAW,EAAE,WAAW,IACpB,SAAS,EACT,KAAK,EACT,CACH,CAAC;AACJ,CAAC,CAAC;AACF,aAAa,CAAC,WAAW,GAAG,eAAe,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SortColumn.d.ts","sourceRoot":"","sources":["../../../../src/components/Table/SortColumn.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"SortColumn.d.ts","sourceRoot":"","sources":["../../../../src/components/Table/SortColumn.tsx"],"names":[],"mappings":";AASA,OAAO,EAAE,YAAY,EAAE,MAAM,oDAAoD,CAAC;AAClF,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAEnD,oBAAY,eAAe;IACzB,GAAG,QAAQ;IACX,IAAI,SAAS;CACd;AAED,MAAM,WAAW,eAAgB,SAAQ,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC;IACpF,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,MAAM,CAAC,EAAE,QAAQ,CAAC;IAClB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,YAAY,CAAC,EAAE,IAAI,CAAC,YAAY,EAAE,SAAS,CAAC,CAAC;IAC7C,yBAAyB,CAAC,EAAE,OAAO,CAAC;IACpC,mBAAmB,CAAC,EAAE,mBAAmB,CAAC;CAC3C;AAED,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,iBAAiB,CAAC,eAAe,CAoE/D,CAAC"}
|
|
@@ -4,7 +4,6 @@ import { useState } from 'react';
|
|
|
4
4
|
import LongArrowAltUpIcon from '@patternfly/react-icons/dist/esm/icons/long-arrow-alt-up-icon';
|
|
5
5
|
import LongArrowAltDownIcon from '@patternfly/react-icons/dist/esm/icons/long-arrow-alt-down-icon';
|
|
6
6
|
import ArrowsAltVIcon from '@patternfly/react-icons/dist/esm/icons/arrows-alt-v-icon';
|
|
7
|
-
import StarIcon from '@patternfly/react-icons/dist/esm/icons/star-icon';
|
|
8
7
|
import { css } from '@patternfly/react-styles';
|
|
9
8
|
import styles from '@patternfly/react-styles/css/components/Table/table.mjs';
|
|
10
9
|
import { TableText } from './TableText';
|
|
@@ -26,7 +25,8 @@ export const SortColumn = (_a) => {
|
|
|
26
25
|
SortedByIcon = ArrowsAltVIcon;
|
|
27
26
|
}
|
|
28
27
|
if (favoriteButtonProps) {
|
|
29
|
-
|
|
28
|
+
const { favorited } = favoriteButtonProps, rest = __rest(favoriteButtonProps, ["favorited"]);
|
|
29
|
+
return (_jsxs(ActionList, { isIconList: true, children: [_jsx(ActionListItem, { children: _jsx(Button, Object.assign({ variant: "plain", isFavorite: true, isFavorited: favorited }, rest)) }), _jsx(ActionListItem, { children: _jsx(Button, Object.assign({ variant: "plain", icon: _jsx("span", { className: css(styles.tableSortIndicator), children: _jsx(SortedByIcon, {}) }), onClick: (event) => onSort && onSort(event) }, props)) })] }));
|
|
30
30
|
}
|
|
31
31
|
return (_jsx("button", Object.assign({}, props, { type: type, className: css(className, styles.tableButton), onClick: (event) => onSort && onSort(event), onFocus: () => setFocused(true), onBlur: () => setFocused(false), children: _jsxs("div", { className: css(className, styles.tableButtonContent), children: [_jsx(TableText, { tooltip: tooltip, tooltipProps: tooltipProps, tooltipHasDefaultBehavior: tooltipHasDefaultBehavior, focused: focused, children: children }), _jsx("span", { className: css(styles.tableSortIndicator), children: _jsx(SortedByIcon, {}) })] }) })));
|
|
32
32
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SortColumn.js","sourceRoot":"","sources":["../../../../src/components/Table/SortColumn.tsx"],"names":[],"mappings":";;AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,kBAAkB,MAAM,+DAA+D,CAAC;AAC/F,OAAO,oBAAoB,MAAM,iEAAiE,CAAC;AACnG,OAAO,cAAc,MAAM,0DAA0D,CAAC;AACtF,OAAO,
|
|
1
|
+
{"version":3,"file":"SortColumn.js","sourceRoot":"","sources":["../../../../src/components/Table/SortColumn.tsx"],"names":[],"mappings":";;AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,kBAAkB,MAAM,+DAA+D,CAAC;AAC/F,OAAO,oBAAoB,MAAM,iEAAiE,CAAC;AACnG,OAAO,cAAc,MAAM,0DAA0D,CAAC;AACtF,OAAO,EAAE,GAAG,EAAE,MAAM,0BAA0B,CAAC;AAC/C,OAAO,MAAM,gEAA4D;AACzE,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,uDAAuD,CAAC;AACnG,OAAO,EAAE,MAAM,EAAE,MAAM,mDAAmD,CAAC;AAI3E,MAAM,CAAN,IAAY,eAGX;AAHD,WAAY,eAAe;IACzB,8BAAW,CAAA;IACX,gCAAa,CAAA;AACf,CAAC,EAHW,eAAe,KAAf,eAAe,QAG1B;AAcD,MAAM,CAAC,MAAM,UAAU,GAA6C,CAAC,EAYnD,EAAE,EAAE;QAZ+C,EACnE,QAAQ,GAAG,IAAI,EACf,SAAS,GAAG,EAAE,EACd,UAAU,GAAG,KAAK,EAClB,MAAM,GAAG,IAAI,EACb,aAAa,GAAG,EAAE,EAClB,IAAI,GAAG,QAAQ,EACf,OAAO,EACP,YAAY,EACZ,yBAAyB,EACzB,mBAAmB,OAEH,EADb,KAAK,cAX2D,yJAYpE,CADS;IAER,IAAI,YAAY,CAAC;IACjB,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,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ChB,YAAY,EAAE,YAAY,EAC1B,yBAAyB,EAAE,yBAAyB,EACpD,OAAO,EAAE,OAAO,YAEf,QAAQ,GACC,EACZ,eAAM,SAAS,EAAE,GAAG,CAAC,MAAM,CAAC,kBAAkB,CAAC,YAC7C,KAAC,YAAY,KAAG,GACX,IACH,IACC,CACV,CAAC;AACJ,CAAC,CAAC;AACF,UAAU,CAAC,WAAW,GAAG,YAAY,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FavoritesCell.d.ts","sourceRoot":"","sources":["../../../../src/components/Table/FavoritesCell.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"FavoritesCell.d.ts","sourceRoot":"","sources":["../../../../src/components/Table/FavoritesCell.tsx"],"names":[],"mappings":";AAEA,MAAM,WAAW,kBAAkB;IACjC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,iBAAiB,EAAE,UAAU,CAAC,KAAK,IAAI,CAAC;IAC9E,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,iBAAiB,CAAC,kBAAkB,CA2BrE,CAAC"}
|
|
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.FavoritesCell = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
6
|
-
const star_icon_1 = tslib_1.__importDefault(require('@patternfly/react-icons/dist/js/icons/star-icon'));
|
|
7
6
|
const Button_1 = require('@patternfly/react-core/dist/js/components/Button');
|
|
8
7
|
const FavoritesCell = (_a) => {
|
|
9
8
|
var { className = '', onFavorite, isFavorited, rowIndex } = _a, props = tslib_1.__rest(_a, ["className", "onFavorite", "isFavorited", "rowIndex"]);
|
|
@@ -13,7 +12,7 @@ const FavoritesCell = (_a) => {
|
|
|
13
12
|
id: `favorites-button-${rowIndex}`,
|
|
14
13
|
'aria-labelledby': `favorites-button-${rowIndex}`
|
|
15
14
|
};
|
|
16
|
-
return ((0, jsx_runtime_1.jsx)(Button_1.Button, Object.assign({ variant: "plain", className: className, type: "button", "aria-label": isFavorited ? 'Starred' : 'Not starred', onClick: onFavorite
|
|
15
|
+
return ((0, jsx_runtime_1.jsx)(Button_1.Button, Object.assign({ variant: "plain", className: className, type: "button", "aria-label": isFavorited ? 'Starred' : 'Not starred', onClick: onFavorite, isFavorite: true, isFavorited: isFavorited }, ariaProps, props)));
|
|
17
16
|
};
|
|
18
17
|
exports.FavoritesCell = FavoritesCell;
|
|
19
18
|
exports.FavoritesCell.displayName = 'FavoritesCell';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FavoritesCell.js","sourceRoot":"","sources":["../../../../src/components/Table/FavoritesCell.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"FavoritesCell.js","sourceRoot":"","sources":["../../../../src/components/Table/FavoritesCell.tsx"],"names":[],"mappings":";;;;;;AAUO,MAAM,aAAa,GAAgD,CAAC,EAMtD,EAAE,EAAE;QANkD,EACzE,SAAS,GAAG,EAAY,EACxB,UAAU,EACV,WAAW,EACX,QAAQ,OAEW,EADhB,KAAK,sBALiE,sDAM1E,CADS;IAER,MAAM,SAAS,GACb,QAAQ,KAAK,SAAS;QACpB,CAAC,CAAC,EAAE;QACJ,CAAC,CAAC;YACE,EAAE,EAAE,oBAAoB,QAAQ,EAAE;YAClC,iBAAiB,EAAE,oBAAoB,QAAQ,EAAE;SAClD,CAAC;IACR,OAAO,CACL,uBAAC,eAAM,kBACL,OAAO,EAAC,OAAO,EACf,SAAS,EAAE,SAAS,EACpB,IAAI,EAAC,QAAQ,gBACD,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,aAAa,EACnD,OAAO,EAAE,UAAU,EACnB,UAAU,QACV,WAAW,EAAE,WAAW,IACpB,SAAS,EACT,KAAK,EACT,CACH,CAAC;AACJ,CAAC,CAAC;AA3BW,QAAA,aAAa,iBA2BxB;AACF,qBAAa,CAAC,WAAW,GAAG,eAAe,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SortColumn.d.ts","sourceRoot":"","sources":["../../../../src/components/Table/SortColumn.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"SortColumn.d.ts","sourceRoot":"","sources":["../../../../src/components/Table/SortColumn.tsx"],"names":[],"mappings":";AASA,OAAO,EAAE,YAAY,EAAE,MAAM,oDAAoD,CAAC;AAClF,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAEnD,oBAAY,eAAe;IACzB,GAAG,QAAQ;IACX,IAAI,SAAS;CACd;AAED,MAAM,WAAW,eAAgB,SAAQ,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC;IACpF,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,MAAM,CAAC,EAAE,QAAQ,CAAC;IAClB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,YAAY,CAAC,EAAE,IAAI,CAAC,YAAY,EAAE,SAAS,CAAC,CAAC;IAC7C,yBAAyB,CAAC,EAAE,OAAO,CAAC;IACpC,mBAAmB,CAAC,EAAE,mBAAmB,CAAC;CAC3C;AAED,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,iBAAiB,CAAC,eAAe,CAoE/D,CAAC"}
|
|
@@ -7,7 +7,6 @@ const react_1 = require("react");
|
|
|
7
7
|
const long_arrow_alt_up_icon_1 = tslib_1.__importDefault(require('@patternfly/react-icons/dist/js/icons/long-arrow-alt-up-icon'));
|
|
8
8
|
const long_arrow_alt_down_icon_1 = tslib_1.__importDefault(require('@patternfly/react-icons/dist/js/icons/long-arrow-alt-down-icon'));
|
|
9
9
|
const arrows_alt_v_icon_1 = tslib_1.__importDefault(require('@patternfly/react-icons/dist/js/icons/arrows-alt-v-icon'));
|
|
10
|
-
const star_icon_1 = tslib_1.__importDefault(require('@patternfly/react-icons/dist/js/icons/star-icon'));
|
|
11
10
|
const react_styles_1 = require("@patternfly/react-styles");
|
|
12
11
|
const table_1 = tslib_1.__importDefault(require("@patternfly/react-styles/css/components/Table/table"));
|
|
13
12
|
const TableText_1 = require("./TableText");
|
|
@@ -29,7 +28,8 @@ const SortColumn = (_a) => {
|
|
|
29
28
|
SortedByIcon = arrows_alt_v_icon_1.default;
|
|
30
29
|
}
|
|
31
30
|
if (favoriteButtonProps) {
|
|
32
|
-
|
|
31
|
+
const { favorited } = favoriteButtonProps, rest = tslib_1.__rest(favoriteButtonProps, ["favorited"]);
|
|
32
|
+
return ((0, jsx_runtime_1.jsxs)(ActionList_1.ActionList, { isIconList: true, children: [(0, jsx_runtime_1.jsx)(ActionList_1.ActionListItem, { children: (0, jsx_runtime_1.jsx)(Button_1.Button, Object.assign({ variant: "plain", isFavorite: true, isFavorited: favorited }, rest)) }), (0, jsx_runtime_1.jsx)(ActionList_1.ActionListItem, { children: (0, jsx_runtime_1.jsx)(Button_1.Button, Object.assign({ variant: "plain", icon: (0, jsx_runtime_1.jsx)("span", { className: (0, react_styles_1.css)(table_1.default.tableSortIndicator), children: (0, jsx_runtime_1.jsx)(SortedByIcon, {}) }), onClick: (event) => onSort && onSort(event) }, props)) })] }));
|
|
33
33
|
}
|
|
34
34
|
return ((0, jsx_runtime_1.jsx)("button", Object.assign({}, props, { type: type, className: (0, react_styles_1.css)(className, table_1.default.tableButton), onClick: (event) => onSort && onSort(event), onFocus: () => setFocused(true), onBlur: () => setFocused(false), children: (0, jsx_runtime_1.jsxs)("div", { className: (0, react_styles_1.css)(className, table_1.default.tableButtonContent), children: [(0, jsx_runtime_1.jsx)(TableText_1.TableText, { tooltip: tooltip, tooltipProps: tooltipProps, tooltipHasDefaultBehavior: tooltipHasDefaultBehavior, focused: focused, children: children }), (0, jsx_runtime_1.jsx)("span", { className: (0, react_styles_1.css)(table_1.default.tableSortIndicator), children: (0, jsx_runtime_1.jsx)(SortedByIcon, {}) })] }) })));
|
|
35
35
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SortColumn.js","sourceRoot":"","sources":["../../../../src/components/Table/SortColumn.tsx"],"names":[],"mappings":";;;;;AAAA,iCAAiC
|
|
1
|
+
{"version":3,"file":"SortColumn.js","sourceRoot":"","sources":["../../../../src/components/Table/SortColumn.tsx"],"names":[],"mappings":";;;;;AAAA,iCAAiC;;;;AAIjC,2DAA+C;AAC/C,wGAAyE;AACzE,2CAAwC;;;AAMxC,IAAY,eAGX;AAHD,WAAY,eAAe;IACzB,8BAAW,CAAA;IACX,gCAAa,CAAA;AACf,CAAC,EAHW,eAAe,+BAAf,eAAe,QAG1B;AAcM,MAAM,UAAU,GAA6C,CAAC,EAYnD,EAAE,EAAE;QAZ+C,EACnE,QAAQ,GAAG,IAAI,EACf,SAAS,GAAG,EAAE,EACd,UAAU,GAAG,KAAK,EAClB,MAAM,GAAG,IAAI,EACb,aAAa,GAAG,EAAE,EAClB,IAAI,GAAG,QAAQ,EACf,OAAO,EACP,YAAY,EACZ,yBAAyB,EACzB,mBAAmB,OAEH,EADb,KAAK,sBAX2D,yJAYpE,CADS;IAER,IAAI,YAAY,CAAC;IACjB,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,IAAA,gBAAQ,EAAC,KAAK,CAAC,CAAC;IAC9C,IAAI,UAAU,EAAE,CAAC;QACf,YAAY,GAAG,aAAa,KAAK,eAAe,CAAC,GAAG,CAAC,CAAC,CAAC,gCAAkB,CAAC,CAAC,CAAC,kCAAoB,CAAC;IACnG,CAAC;SAAM,CAAC;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