@patternfly/react-table 4.67.5 → 4.67.8
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 +27 -0
- package/README.md +1 -1
- package/dist/umd/react-table.css +27 -27
- package/dist/umd/react-table.js +7 -7
- package/dist/umd/react-table.min.js +2 -2
- package/package.json +6 -6
- package/src/components/TableComposable/examples/ComposableTableTree.tsx +2 -1
- package/src/demos/Table.md +3 -22
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,33 @@
|
|
|
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
|
+
## 4.67.8 (2022-02-24)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @patternfly/react-table
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## 4.67.7 (2022-02-22)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* update release version number ([#6964](https://github.com/patternfly/patternfly-react/issues/6964)) ([6eefe79](https://github.com/patternfly/patternfly-react/commit/6eefe79b9eaaf871ecf93e3fdfd0e49c7326b221))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
## 4.67.6 (2022-02-22)
|
|
26
|
+
|
|
27
|
+
**Note:** Version bump only for package @patternfly/react-table
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
6
33
|
## 4.67.5 (2022-02-21)
|
|
7
34
|
|
|
8
35
|
**Note:** Version bump only for package @patternfly/react-table
|
package/README.md
CHANGED
package/dist/umd/react-table.css
CHANGED
|
@@ -7005,23 +7005,6 @@ svg.pf-c-spinner.pf-m-xl {
|
|
|
7005
7005
|
transform: rotate(720deg);
|
|
7006
7006
|
}
|
|
7007
7007
|
}
|
|
7008
|
-
.pf-c-backdrop {
|
|
7009
|
-
--pf-c-backdrop--Position: fixed;
|
|
7010
|
-
--pf-c-backdrop--ZIndex: var(--pf-global--ZIndex--lg);
|
|
7011
|
-
--pf-c-backdrop--BackgroundColor: var(--pf-global--BackgroundColor--dark-transparent-100);
|
|
7012
|
-
position: var(--pf-c-backdrop--Position);
|
|
7013
|
-
top: 0;
|
|
7014
|
-
left: 0;
|
|
7015
|
-
z-index: var(--pf-c-backdrop--ZIndex);
|
|
7016
|
-
width: 100%;
|
|
7017
|
-
height: 100%;
|
|
7018
|
-
background-color: var(--pf-c-backdrop--BackgroundColor);
|
|
7019
|
-
}
|
|
7020
|
-
|
|
7021
|
-
.pf-c-backdrop__open {
|
|
7022
|
-
overflow: hidden;
|
|
7023
|
-
}
|
|
7024
|
-
|
|
7025
7008
|
.pf-c-accordion {
|
|
7026
7009
|
--pf-global--Color--100: var(--pf-global--Color--dark-100);
|
|
7027
7010
|
--pf-global--Color--200: var(--pf-global--Color--dark-200);
|
|
@@ -7656,6 +7639,23 @@ svg.pf-c-spinner.pf-m-xl {
|
|
|
7656
7639
|
display: none !important;
|
|
7657
7640
|
}
|
|
7658
7641
|
}
|
|
7642
|
+
.pf-c-backdrop {
|
|
7643
|
+
--pf-c-backdrop--Position: fixed;
|
|
7644
|
+
--pf-c-backdrop--ZIndex: var(--pf-global--ZIndex--lg);
|
|
7645
|
+
--pf-c-backdrop--BackgroundColor: var(--pf-global--BackgroundColor--dark-transparent-100);
|
|
7646
|
+
position: var(--pf-c-backdrop--Position);
|
|
7647
|
+
top: 0;
|
|
7648
|
+
left: 0;
|
|
7649
|
+
z-index: var(--pf-c-backdrop--ZIndex);
|
|
7650
|
+
width: 100%;
|
|
7651
|
+
height: 100%;
|
|
7652
|
+
background-color: var(--pf-c-backdrop--BackgroundColor);
|
|
7653
|
+
}
|
|
7654
|
+
|
|
7655
|
+
.pf-c-backdrop__open {
|
|
7656
|
+
overflow: hidden;
|
|
7657
|
+
}
|
|
7658
|
+
|
|
7659
7659
|
.pf-c-app-launcher {
|
|
7660
7660
|
--pf-c-app-launcher__menu--BackgroundColor: var(--pf-global--BackgroundColor--light-100);
|
|
7661
7661
|
--pf-c-app-launcher__menu--BoxShadow: var(--pf-global--BoxShadow--md);
|
|
@@ -16755,16 +16755,6 @@ ul.pf-c-list {
|
|
|
16755
16755
|
--pf-c-modal-box__footer--c-button--MarginRight: var(--pf-c-modal-box__footer--c-button--sm--MarginRight);
|
|
16756
16756
|
}
|
|
16757
16757
|
}
|
|
16758
|
-
.pf-l-bullseye {
|
|
16759
|
-
--pf-l-bullseye--Padding: 0;
|
|
16760
|
-
display: flex;
|
|
16761
|
-
align-items: center;
|
|
16762
|
-
justify-content: center;
|
|
16763
|
-
height: 100%;
|
|
16764
|
-
padding: var(--pf-l-bullseye--Padding);
|
|
16765
|
-
margin: 0;
|
|
16766
|
-
}
|
|
16767
|
-
|
|
16768
16758
|
.pf-c-multiple-file-upload {
|
|
16769
16759
|
--pf-c-multiple-file-upload--GridTemplateColumns: 1fr;
|
|
16770
16760
|
--pf-c-multiple-file-upload--Gap: var(--pf-global--spacer--lg);
|
|
@@ -16949,6 +16939,16 @@ ul.pf-c-list {
|
|
|
16949
16939
|
color: var(--pf-c-multiple-file-upload__status-item-progress-size--Color);
|
|
16950
16940
|
}
|
|
16951
16941
|
|
|
16942
|
+
.pf-l-bullseye {
|
|
16943
|
+
--pf-l-bullseye--Padding: 0;
|
|
16944
|
+
display: flex;
|
|
16945
|
+
align-items: center;
|
|
16946
|
+
justify-content: center;
|
|
16947
|
+
height: 100%;
|
|
16948
|
+
padding: var(--pf-l-bullseye--Padding);
|
|
16949
|
+
margin: 0;
|
|
16950
|
+
}
|
|
16951
|
+
|
|
16952
16952
|
.pf-c-nav {
|
|
16953
16953
|
--pf-c-nav--Transition: var(--pf-global--Transition);
|
|
16954
16954
|
--pf-c-nav--m-light__item--before--BorderColor: var(--pf-global--BorderColor--300);
|
package/dist/umd/react-table.js
CHANGED
|
@@ -3471,9 +3471,9 @@
|
|
|
3471
3471
|
const Spinner = (_a) => {
|
|
3472
3472
|
var {
|
|
3473
3473
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
3474
|
-
className = '', size = 'xl', 'aria-valuetext': ariaValueText = 'Loading...', isSVG = false, diameter } = _a, props = __rest$1(_a, ["className", "size", 'aria-valuetext', "isSVG", "diameter"]);
|
|
3474
|
+
className = '', size = 'xl', 'aria-valuetext': ariaValueText = 'Loading...', isSVG = false, diameter, 'aria-label': ariaLabel, 'aria-labelledBy': ariaLabelledBy } = _a, props = __rest$1(_a, ["className", "size", 'aria-valuetext', "isSVG", "diameter", 'aria-label', 'aria-labelledBy']);
|
|
3475
3475
|
const Component = isSVG ? 'svg' : 'span';
|
|
3476
|
-
return (React__namespace.createElement(Component, Object.assign({ className: css(_default$h.spinner, _default$h.modifiers[size], className), role: "progressbar", "aria-valuetext": ariaValueText }, (isSVG && { viewBox: '0 0 100 100' }), (diameter && { style: { '--pf-c-spinner--diameter': diameter } }), props), isSVG ? (React__namespace.createElement("circle", { className: _default$h.spinnerPath, cx: "50", cy: "50", r: "45", fill: "none" })) : (React__namespace.createElement(React__namespace.Fragment, null,
|
|
3476
|
+
return (React__namespace.createElement(Component, Object.assign({ className: css(_default$h.spinner, _default$h.modifiers[size], className), role: "progressbar", "aria-valuetext": ariaValueText }, (isSVG && { viewBox: '0 0 100 100' }), (diameter && { style: { '--pf-c-spinner--diameter': diameter } }), (ariaLabel && { 'aria-label': ariaLabel }), (ariaLabelledBy && { 'aria-labelledBy': ariaLabelledBy }), (!ariaLabel && !ariaLabelledBy && { 'aria-label': 'Contents' }), props), isSVG ? (React__namespace.createElement("circle", { className: _default$h.spinnerPath, cx: "50", cy: "50", r: "45", fill: "none" })) : (React__namespace.createElement(React__namespace.Fragment, null,
|
|
3477
3477
|
React__namespace.createElement("span", { className: css(_default$h.spinnerClipper) }),
|
|
3478
3478
|
React__namespace.createElement("span", { className: css(_default$h.spinnerLeadBall) }),
|
|
3479
3479
|
React__namespace.createElement("span", { className: css(_default$h.spinnerTailBall) })))));
|
|
@@ -3498,7 +3498,7 @@
|
|
|
3498
3498
|
ButtonType["reset"] = "reset";
|
|
3499
3499
|
})(ButtonType || (ButtonType = {}));
|
|
3500
3500
|
const ButtonBase = (_a) => {
|
|
3501
|
-
var { children = null, className = '', component = 'button', isActive = false, isBlock = false, isDisabled = false, isAriaDisabled = false, isLoading = null, isDanger = false, spinnerAriaValueText, isSmall = false, isLarge = false, inoperableEvents = ['onClick', 'onKeyPress'], isInline = false, type = ButtonType.button, variant = ButtonVariant.primary, iconPosition = 'left', 'aria-label': ariaLabel = null, icon = null, ouiaId, ouiaSafe = true, tabIndex = null, innerRef } = _a, props = __rest$1(_a, ["children", "className", "component", "isActive", "isBlock", "isDisabled", "isAriaDisabled", "isLoading", "isDanger", "spinnerAriaValueText", "isSmall", "isLarge", "inoperableEvents", "isInline", "type", "variant", "iconPosition", 'aria-label', "icon", "ouiaId", "ouiaSafe", "tabIndex", "innerRef"]);
|
|
3501
|
+
var { children = null, className = '', component = 'button', isActive = false, isBlock = false, isDisabled = false, isAriaDisabled = false, isLoading = null, isDanger = false, spinnerAriaValueText, spinnerAriaLabelledBy, spinnerAriaLabel, isSmall = false, isLarge = false, inoperableEvents = ['onClick', 'onKeyPress'], isInline = false, type = ButtonType.button, variant = ButtonVariant.primary, iconPosition = 'left', 'aria-label': ariaLabel = null, icon = null, ouiaId, ouiaSafe = true, tabIndex = null, innerRef } = _a, props = __rest$1(_a, ["children", "className", "component", "isActive", "isBlock", "isDisabled", "isAriaDisabled", "isLoading", "isDanger", "spinnerAriaValueText", "spinnerAriaLabelledBy", "spinnerAriaLabel", "isSmall", "isLarge", "inoperableEvents", "isInline", "type", "variant", "iconPosition", 'aria-label', "icon", "ouiaId", "ouiaSafe", "tabIndex", "innerRef"]);
|
|
3502
3502
|
const ouiaProps = useOUIAProps(Button.displayName, ouiaId, ouiaSafe, variant);
|
|
3503
3503
|
const Component = component;
|
|
3504
3504
|
const isButtonElement = Component === 'button';
|
|
@@ -3519,7 +3519,7 @@
|
|
|
3519
3519
|
};
|
|
3520
3520
|
return (React__namespace.createElement(Component, Object.assign({}, props, (isAriaDisabled ? preventedEvents : null), { "aria-disabled": isDisabled || isAriaDisabled, "aria-label": ariaLabel, className: css(_default$i.button, _default$i.modifiers[variant], isBlock && _default$i.modifiers.block, isDisabled && _default$i.modifiers.disabled, isAriaDisabled && _default$i.modifiers.ariaDisabled, isActive && _default$i.modifiers.active, isInline && variant === ButtonVariant.link && _default$i.modifiers.inline, isDanger && (variant === ButtonVariant.secondary || variant === ButtonVariant.link) && _default$i.modifiers.danger, isLoading !== null && children !== null && _default$i.modifiers.progress, isLoading && _default$i.modifiers.inProgress, isSmall && _default$i.modifiers.small, isLarge && _default$i.modifiers.displayLg, className), disabled: isButtonElement ? isDisabled : null, tabIndex: tabIndex !== null ? tabIndex : getDefaultTabIdx(), type: isButtonElement || isInlineSpan ? type : null, role: isInlineSpan ? 'button' : null, ref: innerRef }, ouiaProps),
|
|
3521
3521
|
isLoading && (React__namespace.createElement("span", { className: css(_default$i.buttonProgress) },
|
|
3522
|
-
React__namespace.createElement(Spinner, { size: spinnerSize.md, "aria-valuetext": spinnerAriaValueText }))),
|
|
3522
|
+
React__namespace.createElement(Spinner, { size: spinnerSize.md, "aria-valuetext": spinnerAriaValueText, "aria-label": spinnerAriaLabel, "aria-labelledby": spinnerAriaLabelledBy }))),
|
|
3523
3523
|
variant === ButtonVariant.plain && children === null && icon ? icon : null,
|
|
3524
3524
|
variant !== ButtonVariant.plain && icon && iconPosition === 'left' && (React__namespace.createElement("span", { className: css(_default$i.buttonIcon, _default$i.modifiers.start) }, icon)),
|
|
3525
3525
|
children,
|
|
@@ -5522,8 +5522,8 @@
|
|
|
5522
5522
|
const { categoryName, tooltipPosition } = this.props;
|
|
5523
5523
|
const { isTooltipVisible } = this.state;
|
|
5524
5524
|
return isTooltipVisible ? (React__namespace.createElement(Tooltip, { position: tooltipPosition, content: categoryName },
|
|
5525
|
-
React__namespace.createElement("span", { tabIndex: 0, ref: this.headingRef, className: css(_default$8.chipGroupLabel)
|
|
5526
|
-
React__namespace.createElement("span", {
|
|
5525
|
+
React__namespace.createElement("span", { tabIndex: 0, ref: this.headingRef, className: css(_default$8.chipGroupLabel) },
|
|
5526
|
+
React__namespace.createElement("span", { id: id }, categoryName)))) : (React__namespace.createElement("span", { ref: this.headingRef, className: css(_default$8.chipGroupLabel), id: id }, categoryName));
|
|
5527
5527
|
}
|
|
5528
5528
|
render() {
|
|
5529
5529
|
const _a = this.props, { categoryName, children, className, isClosable, closeBtnAriaLabel, 'aria-label': ariaLabel, onClick, onOverflowChipClick, numChips, expandedText, collapsedText, ouiaId,
|
|
@@ -5540,7 +5540,7 @@
|
|
|
5540
5540
|
const chipArray = !isOpen
|
|
5541
5541
|
? React__namespace.Children.toArray(children).slice(0, numChips)
|
|
5542
5542
|
: React__namespace.Children.toArray(children);
|
|
5543
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(_default$8.chipGroup, className, categoryName && _default$8.modifiers.category) }, getOUIAProps(ChipGroup.displayName, ouiaId)),
|
|
5543
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(_default$8.chipGroup, className, categoryName && _default$8.modifiers.category), role: "group" }, (categoryName && { 'aria-labelledby': id }), (!categoryName && { 'aria-label': ariaLabel }), getOUIAProps(ChipGroup.displayName, ouiaId)),
|
|
5544
5544
|
React__namespace.createElement("div", { className: css(_default$8.chipGroupMain) },
|
|
5545
5545
|
categoryName && this.renderLabel(id),
|
|
5546
5546
|
React__namespace.createElement("ul", Object.assign({ className: css(_default$8.chipGroupList) }, (categoryName && { 'aria-labelledby': id }), (!categoryName && { 'aria-label': ariaLabel }), { role: "list" }, rest),
|