@patternfly/react-table 4.60.6 → 4.61.3
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 +38 -0
- package/dist/umd/react-table.css +68 -6
- package/dist/umd/react-table.js +75 -50
- package/dist/umd/react-table.min.css +68 -6
- package/dist/umd/react-table.min.js +1 -1
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,44 @@
|
|
|
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.61.3 (2022-01-20)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @patternfly/react-table
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## 4.61.2 (2022-01-20)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* **Select:** Fixed dot next to the spinner in grouped view more variant ([#6831](https://github.com/patternfly/patternfly-react/issues/6831)) ([ccc81b4](https://github.com/patternfly/patternfly-react/commit/ccc81b4c8c30506f28e61e73dcbc106da50ca692))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
## 4.61.1 (2022-01-20)
|
|
26
|
+
|
|
27
|
+
**Note:** Version bump only for package @patternfly/react-table
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
# 4.61.0 (2022-01-20)
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
### Features
|
|
37
|
+
|
|
38
|
+
* **Truncate:** added Truncate component ([#6713](https://github.com/patternfly/patternfly-react/issues/6713)) ([c803b5d](https://github.com/patternfly/patternfly-react/commit/c803b5df3761f689172d79bbc71bc38623b0bf5a))
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
6
44
|
## 4.60.6 (2022-01-20)
|
|
7
45
|
|
|
8
46
|
|
package/dist/umd/react-table.css
CHANGED
|
@@ -386,6 +386,7 @@
|
|
|
386
386
|
--pf-c-table--thead--m-nested-column-header--tr--PaddingTop: var(--pf-global--spacer--xs);
|
|
387
387
|
--pf-c-table--thead--m-nested-column-header--tr--PaddingBottom: var(--pf-global--spacer--xs);
|
|
388
388
|
--pf-c-table__subhead--Color: var(--pf-global--Color--200);
|
|
389
|
+
--pf-c-table--m-striped__tr--BackgroundColor: var(--pf-global--BackgroundColor--light-200);
|
|
389
390
|
color: var(--pf-global--Color--100);
|
|
390
391
|
width: 100%;
|
|
391
392
|
background-color: var(--pf-c-table--BackgroundColor);
|
|
@@ -433,6 +434,14 @@
|
|
|
433
434
|
border-bottom: var(--pf-c-table--border-width--base) solid var(--pf-c-table--BorderColor);
|
|
434
435
|
}
|
|
435
436
|
|
|
437
|
+
.pf-c-table.pf-m-striped:not(.pf-m-expandable) > tbody > tr:nth-child(odd), .pf-c-table.pf-m-striped.pf-m-expandable > tbody:nth-of-type(odd) > tr:not(.pf-c-table__expandable-row),
|
|
438
|
+
.pf-c-table > .pf-m-striped > tr:nth-child(odd),
|
|
439
|
+
.pf-c-table > .pf-m-striped-even > tr:nth-child(even),
|
|
440
|
+
.pf-c-table tr.pf-m-striped {
|
|
441
|
+
--pf-c-table__sticky-column--BackgroundColor: var(--pf-c-table--m-striped__tr--BackgroundColor);
|
|
442
|
+
background: var(--pf-c-table--m-striped__tr--BackgroundColor);
|
|
443
|
+
}
|
|
444
|
+
|
|
436
445
|
.pf-c-table tr:not(.pf-c-table__expandable-row) {
|
|
437
446
|
border-bottom: var(--pf-c-table--border-width--base) solid var(--pf-c-table--BorderColor);
|
|
438
447
|
}
|
|
@@ -5922,6 +5931,10 @@ label.pf-c-check, .pf-c-check__label,
|
|
|
5922
5931
|
white-space: nowrap;
|
|
5923
5932
|
}
|
|
5924
5933
|
|
|
5934
|
+
.pf-c-dropdown__toggle-text {
|
|
5935
|
+
flex: 0 1 auto;
|
|
5936
|
+
}
|
|
5937
|
+
|
|
5925
5938
|
.pf-c-dropdown__toggle-icon {
|
|
5926
5939
|
margin-right: var(--pf-c-dropdown__toggle-icon--MarginRight);
|
|
5927
5940
|
margin-left: var(--pf-c-dropdown__toggle-icon--MarginLeft);
|
|
@@ -5934,6 +5947,7 @@ label.pf-c-check, .pf-c-check__label,
|
|
|
5934
5947
|
|
|
5935
5948
|
.pf-c-dropdown__toggle-image {
|
|
5936
5949
|
display: inline-flex;
|
|
5950
|
+
flex-shrink: 0;
|
|
5937
5951
|
margin-top: var(--pf-c-dropdown__toggle-image--MarginTop);
|
|
5938
5952
|
margin-right: var(--pf-c-dropdown__toggle-image--MarginRight);
|
|
5939
5953
|
margin-bottom: var(--pf-c-dropdown__toggle-image--MarginBottom);
|
|
@@ -14742,13 +14756,8 @@ ul.pf-c-list {
|
|
|
14742
14756
|
background-color: var(--pf-c-masthead--BackgroundColor);
|
|
14743
14757
|
}
|
|
14744
14758
|
|
|
14745
|
-
@media screen and (min-width: 1200px) {
|
|
14746
|
-
.pf-c-masthead {
|
|
14747
|
-
--pf-c-masthead--inset: var(--pf-c-masthead--xl--inset);
|
|
14748
|
-
}
|
|
14749
|
-
}
|
|
14750
14759
|
@media screen and (min-width: 768px) {
|
|
14751
|
-
.pf-c-masthead {
|
|
14760
|
+
.pf-c-page:where(:not(.pf-m-resize-observer)) .pf-c-masthead {
|
|
14752
14761
|
--pf-c-masthead--GridTemplateColumns: var(--pf-c-masthead--m-display-inline--GridTemplateColumns);
|
|
14753
14762
|
--pf-c-masthead__main--GridColumn: var(--pf-c-masthead--m-display-inline__main--GridColumn);
|
|
14754
14763
|
--pf-c-masthead__main--MinHeight: var(--pf-c-masthead--m-display-inline__main--MinHeight);
|
|
@@ -14768,6 +14777,15 @@ ul.pf-c-list {
|
|
|
14768
14777
|
--pf-c-masthead__content--c-nav--m-horizontal--MarginLeft: var(--pf-c-masthead--m-display-inline__content--c-nav--m-horizontal--MarginLeft);
|
|
14769
14778
|
}
|
|
14770
14779
|
}
|
|
14780
|
+
@media screen and (min-width: 1200px) {
|
|
14781
|
+
.pf-c-page:where(:not(.pf-m-resize-observer)) .pf-c-masthead {
|
|
14782
|
+
--pf-c-masthead--inset: var(--pf-c-masthead--xl--inset);
|
|
14783
|
+
}
|
|
14784
|
+
}
|
|
14785
|
+
.pf-c-page:where(.pf-m-breakpoint-xl) .pf-c-masthead {
|
|
14786
|
+
--pf-c-masthead--inset: var(--pf-c-masthead--xl--inset);
|
|
14787
|
+
}
|
|
14788
|
+
|
|
14771
14789
|
.pf-c-masthead.pf-m-light {
|
|
14772
14790
|
color: var(--pf-global--Color--100);
|
|
14773
14791
|
--pf-c-masthead--BackgroundColor: var(--pf-c-masthead--m-light--BackgroundColor);
|
|
@@ -14835,6 +14853,10 @@ ul.pf-c-list {
|
|
|
14835
14853
|
--pf-c-dropdown__toggle--before--BorderLeftColor: var(--pf-c-masthead--c-dropdown--m-full-height__toggle--before--BorderLeftColor);
|
|
14836
14854
|
}
|
|
14837
14855
|
|
|
14856
|
+
.pf-c-masthead .pf-c-nav {
|
|
14857
|
+
align-self: stretch;
|
|
14858
|
+
}
|
|
14859
|
+
|
|
14838
14860
|
.pf-c-masthead__main {
|
|
14839
14861
|
position: relative;
|
|
14840
14862
|
display: flex;
|
|
@@ -23340,6 +23362,12 @@ label.pf-c-radio, .pf-c-radio__label,
|
|
|
23340
23362
|
--pf-c-toolbar--spacer: 0;
|
|
23341
23363
|
}
|
|
23342
23364
|
|
|
23365
|
+
.pf-c-toolbar__group.pf-m-overflow-container,
|
|
23366
|
+
.pf-c-toolbar__item.pf-m-overflow-container {
|
|
23367
|
+
flex: 1;
|
|
23368
|
+
overflow: hidden;
|
|
23369
|
+
}
|
|
23370
|
+
|
|
23343
23371
|
.pf-c-toolbar__expand-all-icon {
|
|
23344
23372
|
display: inline-block;
|
|
23345
23373
|
transition: var(--pf-c-toolbar__expand-all-icon--Transition);
|
|
@@ -25694,6 +25722,40 @@ label.pf-c-radio, .pf-c-radio__label,
|
|
|
25694
25722
|
box-shadow: var(--pf-c-panel__footer--BoxShadow);
|
|
25695
25723
|
}
|
|
25696
25724
|
|
|
25725
|
+
.pf-c-truncate {
|
|
25726
|
+
--pf-c-truncate--MinWidth: 12ch;
|
|
25727
|
+
--pf-c-truncate__start--MinWidth: 6ch;
|
|
25728
|
+
display: inline-grid;
|
|
25729
|
+
grid-auto-flow: column;
|
|
25730
|
+
align-items: baseline;
|
|
25731
|
+
min-width: var(--pf-c-truncate--MinWidth);
|
|
25732
|
+
}
|
|
25733
|
+
|
|
25734
|
+
.pf-c-truncate__start,
|
|
25735
|
+
.pf-c-truncate__end {
|
|
25736
|
+
overflow: hidden;
|
|
25737
|
+
text-overflow: ellipsis;
|
|
25738
|
+
white-space: nowrap;
|
|
25739
|
+
}
|
|
25740
|
+
|
|
25741
|
+
.pf-c-truncate__start {
|
|
25742
|
+
min-width: var(--pf-c-truncate__start--MinWidth);
|
|
25743
|
+
}
|
|
25744
|
+
|
|
25745
|
+
.pf-c-truncate__end {
|
|
25746
|
+
direction: rtl;
|
|
25747
|
+
}
|
|
25748
|
+
|
|
25749
|
+
.pf-c-truncate__start + .pf-c-truncate__end {
|
|
25750
|
+
overflow: visible;
|
|
25751
|
+
direction: ltr;
|
|
25752
|
+
}
|
|
25753
|
+
|
|
25754
|
+
@supports (-webkit-hyphens: none) {
|
|
25755
|
+
.pf-c-truncate__end {
|
|
25756
|
+
direction: ltr;
|
|
25757
|
+
}
|
|
25758
|
+
}
|
|
25697
25759
|
.pf-l-flex {
|
|
25698
25760
|
--pf-l-flex--Display: flex;
|
|
25699
25761
|
--pf-l-flex--FlexWrap: wrap;
|
package/dist/umd/react-table.js
CHANGED
|
@@ -4902,7 +4902,7 @@
|
|
|
4902
4902
|
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
4903
4903
|
const _a = this.props, { children, className, id, description, itemCount, value, onClick, isDisabled, isPlaceholder, isNoResultsOption, isSelected, isChecked, isFocused, sendRef, keyHandler, index, component, inputId, isFavorite, ariaIsFavoriteLabel = 'starred', ariaIsNotFavoriteLabel = 'not starred', isLoad, isLoading, setViewMoreNextIndex,
|
|
4904
4904
|
// eslint-disable-next-line no-console
|
|
4905
|
-
isLastOptionBeforeFooter } = _a, props = __rest$1(_a, ["children", "className", "id", "description", "itemCount", "value", "onClick", "isDisabled", "isPlaceholder", "isNoResultsOption", "isSelected", "isChecked", "isFocused", "sendRef", "keyHandler", "index", "component", "inputId", "isFavorite", "ariaIsFavoriteLabel", "ariaIsNotFavoriteLabel", "isLoad", "isLoading", "setViewMoreNextIndex", "isLastOptionBeforeFooter"]);
|
|
4905
|
+
isLastOptionBeforeFooter, isGrouped = false } = _a, props = __rest$1(_a, ["children", "className", "id", "description", "itemCount", "value", "onClick", "isDisabled", "isPlaceholder", "isNoResultsOption", "isSelected", "isChecked", "isFocused", "sendRef", "keyHandler", "index", "component", "inputId", "isFavorite", "ariaIsFavoriteLabel", "ariaIsNotFavoriteLabel", "isLoad", "isLoading", "setViewMoreNextIndex", "isLastOptionBeforeFooter", "isGrouped"]);
|
|
4906
4906
|
/* eslint-enable @typescript-eslint/no-unused-vars */
|
|
4907
4907
|
const Component = component;
|
|
4908
4908
|
if (!id && isFavorite !== null) {
|
|
@@ -4925,56 +4925,78 @@
|
|
|
4925
4925
|
setViewMoreNextIndex();
|
|
4926
4926
|
onClick(event);
|
|
4927
4927
|
};
|
|
4928
|
-
|
|
4929
|
-
variant !== SelectVariant.checkbox &&
|
|
4930
|
-
isLoading && children
|
|
4931
|
-
|
|
4932
|
-
|
|
4933
|
-
|
|
4934
|
-
|
|
4935
|
-
|
|
4936
|
-
|
|
4937
|
-
|
|
4938
|
-
|
|
4939
|
-
|
|
4940
|
-
|
|
4941
|
-
|
|
4942
|
-
|
|
4943
|
-
|
|
4944
|
-
|
|
4945
|
-
|
|
4946
|
-
|
|
4928
|
+
const renderOption = (onSelect, onClose, variant, inputIdPrefix, onFavorite) => {
|
|
4929
|
+
if (variant !== SelectVariant.checkbox && isLoading && isGrouped) {
|
|
4930
|
+
return (React__namespace.createElement("div", { role: "presentation", className: css(_default$b.selectListItem, isLoading && _default$b.modifiers.loading, className) }, children));
|
|
4931
|
+
}
|
|
4932
|
+
else if (variant !== SelectVariant.checkbox && isLoad && isGrouped) {
|
|
4933
|
+
return (React__namespace.createElement("div", null,
|
|
4934
|
+
React__namespace.createElement("button", Object.assign({}, props, { role: "presentation", className: css(_default$b.selectMenuItem, _default$b.modifiers.load, className), onClick: (event) => {
|
|
4935
|
+
onViewMoreClick(event);
|
|
4936
|
+
event.stopPropagation();
|
|
4937
|
+
}, ref: this.ref, type: "button" }), children || value.toString())));
|
|
4938
|
+
}
|
|
4939
|
+
else if (variant !== SelectVariant.checkbox) {
|
|
4940
|
+
return (React__namespace.createElement("li", { id: generatedId, role: "presentation", className: css(isLoading && _default$b.selectListItem, !isLoad && !isLoading && _default$b.selectMenuWrapper, isFavorite && _default$b.modifiers.favorite, isFocused && _default$b.modifiers.focus, isLoading && _default$b.modifiers.loading), ref: this.liRef },
|
|
4941
|
+
isLoading && children,
|
|
4942
|
+
isLoad && !isGrouped && (React__namespace.createElement("button", Object.assign({}, props, { className: css(_default$b.selectMenuItem, _default$b.modifiers.load, className), onClick: (event) => {
|
|
4943
|
+
onViewMoreClick(event);
|
|
4944
|
+
event.stopPropagation();
|
|
4945
|
+
}, ref: this.ref, type: "button" }), itemDisplay)),
|
|
4946
|
+
!isLoading && !isLoad && (React__namespace.createElement(React__namespace.Fragment, null,
|
|
4947
|
+
React__namespace.createElement(Component, Object.assign({}, props, { className: css(_default$b.selectMenuItem, isLoad && _default$b.modifiers.load, isSelected && _default$b.modifiers.selected, isDisabled && _default$b.modifiers.disabled, description && _default$b.modifiers.description, isFavorite !== null && _default$b.modifiers.link, className), onClick: (event) => {
|
|
4948
|
+
if (!isDisabled) {
|
|
4949
|
+
onClick(event);
|
|
4950
|
+
onSelect(event, value, isPlaceholder);
|
|
4951
|
+
onClose();
|
|
4952
|
+
}
|
|
4953
|
+
}, role: "option", "aria-selected": isSelected || null, ref: this.ref, onKeyDown: (event) => {
|
|
4954
|
+
this.onKeyDown(event, 0);
|
|
4955
|
+
}, type: "button" }),
|
|
4956
|
+
description && (React__namespace.createElement(React__namespace.Fragment, null,
|
|
4957
|
+
React__namespace.createElement("span", { className: css(_default$b.selectMenuItemMain) },
|
|
4958
|
+
itemDisplay,
|
|
4959
|
+
isSelected && (React__namespace.createElement("span", { className: css(_default$b.selectMenuItemIcon) },
|
|
4960
|
+
React__namespace.createElement(CheckIcon$1, { "aria-hidden": true })))),
|
|
4961
|
+
React__namespace.createElement("span", { className: css(_default$b.selectMenuItemDescription) }, description))),
|
|
4962
|
+
!description && (React__namespace.createElement(React__namespace.Fragment, null,
|
|
4947
4963
|
itemDisplay,
|
|
4948
4964
|
isSelected && (React__namespace.createElement("span", { className: css(_default$b.selectMenuItemIcon) },
|
|
4949
|
-
React__namespace.createElement(CheckIcon$1, { "aria-hidden": true })))),
|
|
4950
|
-
|
|
4951
|
-
|
|
4952
|
-
|
|
4953
|
-
|
|
4954
|
-
React__namespace.createElement(CheckIcon$1, { "aria-hidden": true })))))),
|
|
4955
|
-
isFavorite !== null && id && favoriteButton(onFavorite))))),
|
|
4956
|
-
variant === SelectVariant.checkbox && isLoad && (React__namespace.createElement("button", { className: css(_default$b.selectMenuItem, _default$b.modifiers.load, isFocused && _default$b.modifiers.focus, className), onKeyDown: (event) => {
|
|
4957
|
-
this.onKeyDown(event, 0, undefined, true);
|
|
4958
|
-
}, onClick: (event) => {
|
|
4959
|
-
onViewMoreClick(event);
|
|
4960
|
-
event.stopPropagation();
|
|
4961
|
-
}, ref: this.ref }, children || (value && value.toString && value.toString()))),
|
|
4962
|
-
variant === SelectVariant.checkbox && isLoading && (React__namespace.createElement("div", { className: css(_default$b.selectListItem, isLoading && _default$b.modifiers.loading, className) }, children)),
|
|
4963
|
-
variant === SelectVariant.checkbox && !isNoResultsOption && !isLoading && !isLoad && (React__namespace.createElement("label", Object.assign({}, props, { className: css(_default$9.check, _default$b.selectMenuItem, isDisabled && _default$b.modifiers.disabled, description && _default$b.modifiers.description, className), onKeyDown: (event) => {
|
|
4964
|
-
this.onKeyDown(event, 0, undefined, true);
|
|
4965
|
-
} }),
|
|
4966
|
-
React__namespace.createElement("input", { id: inputId || `${inputIdPrefix}-${value.toString()}`, className: css(_default$9.checkInput), type: "checkbox", onChange: event => {
|
|
4967
|
-
if (!isDisabled) {
|
|
4968
|
-
onClick(event);
|
|
4969
|
-
onSelect(event, value);
|
|
4970
|
-
}
|
|
4971
|
-
}, ref: this.ref, checked: isChecked || false, disabled: isDisabled }),
|
|
4972
|
-
React__namespace.createElement("span", { className: css(_default$9.checkLabel, isDisabled && _default$b.modifiers.disabled) }, itemDisplay),
|
|
4973
|
-
description && React__namespace.createElement("div", { className: css(_default$9.checkDescription) }, description))),
|
|
4974
|
-
variant === SelectVariant.checkbox && isNoResultsOption && !isLoading && !isLoad && (React__namespace.createElement("div", null,
|
|
4975
|
-
React__namespace.createElement(Component, Object.assign({}, props, { className: css(_default$b.selectMenuItem, isSelected && _default$b.modifiers.selected, isDisabled && _default$b.modifiers.disabled, className), role: "option", "aria-selected": isSelected || null, ref: this.ref, onKeyDown: (event) => {
|
|
4965
|
+
React__namespace.createElement(CheckIcon$1, { "aria-hidden": true })))))),
|
|
4966
|
+
isFavorite !== null && id && favoriteButton(onFavorite)))));
|
|
4967
|
+
}
|
|
4968
|
+
else if (variant === SelectVariant.checkbox && isLoad) {
|
|
4969
|
+
return (React__namespace.createElement("button", { className: css(_default$b.selectMenuItem, _default$b.modifiers.load, isFocused && _default$b.modifiers.focus, className), onKeyDown: (event) => {
|
|
4976
4970
|
this.onKeyDown(event, 0, undefined, true);
|
|
4977
|
-
},
|
|
4971
|
+
}, onClick: (event) => {
|
|
4972
|
+
onViewMoreClick(event);
|
|
4973
|
+
event.stopPropagation();
|
|
4974
|
+
}, ref: this.ref }, children || (value && value.toString && value.toString())));
|
|
4975
|
+
}
|
|
4976
|
+
else if (variant === SelectVariant.checkbox && isLoading) {
|
|
4977
|
+
return (React__namespace.createElement("div", { className: css(_default$b.selectListItem, isLoading && _default$b.modifiers.loading, className) }, children));
|
|
4978
|
+
}
|
|
4979
|
+
else if (variant === SelectVariant.checkbox && !isNoResultsOption && !isLoading && !isLoad) {
|
|
4980
|
+
return (React__namespace.createElement("label", Object.assign({}, props, { className: css(_default$9.check, _default$b.selectMenuItem, isDisabled && _default$b.modifiers.disabled, description && _default$b.modifiers.description, className), onKeyDown: (event) => {
|
|
4981
|
+
this.onKeyDown(event, 0, undefined, true);
|
|
4982
|
+
} }),
|
|
4983
|
+
React__namespace.createElement("input", { id: inputId || `${inputIdPrefix}-${value.toString()}`, className: css(_default$9.checkInput), type: "checkbox", onChange: event => {
|
|
4984
|
+
if (!isDisabled) {
|
|
4985
|
+
onClick(event);
|
|
4986
|
+
onSelect(event, value);
|
|
4987
|
+
}
|
|
4988
|
+
}, ref: this.ref, checked: isChecked || false, disabled: isDisabled }),
|
|
4989
|
+
React__namespace.createElement("span", { className: css(_default$9.checkLabel, isDisabled && _default$b.modifiers.disabled) }, itemDisplay),
|
|
4990
|
+
description && React__namespace.createElement("div", { className: css(_default$9.checkDescription) }, description)));
|
|
4991
|
+
}
|
|
4992
|
+
else if (variant === SelectVariant.checkbox && isNoResultsOption && !isLoading && !isLoad) {
|
|
4993
|
+
return (React__namespace.createElement("div", null,
|
|
4994
|
+
React__namespace.createElement(Component, Object.assign({}, props, { className: css(_default$b.selectMenuItem, isSelected && _default$b.modifiers.selected, isDisabled && _default$b.modifiers.disabled, className), role: "option", "aria-selected": isSelected || null, ref: this.ref, onKeyDown: (event) => {
|
|
4995
|
+
this.onKeyDown(event, 0, undefined, true);
|
|
4996
|
+
}, type: "button" }), itemDisplay)));
|
|
4997
|
+
}
|
|
4998
|
+
};
|
|
4999
|
+
return (React__namespace.createElement(SelectConsumer, null, ({ onSelect, onClose, variant, inputIdPrefix, onFavorite }) => (React__namespace.createElement(React__namespace.Fragment, null, renderOption(onSelect, onClose, variant, inputIdPrefix, onFavorite)))));
|
|
4978
5000
|
}
|
|
4979
5001
|
}
|
|
4980
5002
|
SelectOption.displayName = 'SelectOption';
|
|
@@ -5982,11 +6004,11 @@
|
|
|
5982
6004
|
if (isOpen) {
|
|
5983
6005
|
if (renderableItems.find(item => { var _a; return ((_a = item) === null || _a === void 0 ? void 0 : _a.key) === 'loading'; }) === undefined) {
|
|
5984
6006
|
if (loadingVariant === 'spinner') {
|
|
5985
|
-
renderableItems.push(React__namespace.createElement(SelectOption, { isLoading: true, key: "loading", value: "loading" },
|
|
6007
|
+
renderableItems.push(React__namespace.createElement(SelectOption, { isLoading: true, key: "loading", value: "loading", isGrouped: true },
|
|
5986
6008
|
React__namespace.createElement(Spinner, { size: "lg" })));
|
|
5987
6009
|
}
|
|
5988
6010
|
else if (loadingVariant === null || loadingVariant === void 0 ? void 0 : loadingVariant.text) {
|
|
5989
|
-
renderableItems.push(React__namespace.createElement(SelectOption, { isLoad: true, key: "loading", value: loadingVariant.text, setViewMoreNextIndex: this.setVieMoreNextIndex, onClick: loadingVariant === null || loadingVariant === void 0 ? void 0 : loadingVariant.onClick }));
|
|
6011
|
+
renderableItems.push(React__namespace.createElement(SelectOption, { isLoad: true, key: "loading", value: loadingVariant.text, isGrouped: true, setViewMoreNextIndex: this.setVieMoreNextIndex, onClick: loadingVariant === null || loadingVariant === void 0 ? void 0 : loadingVariant.onClick }));
|
|
5990
6012
|
}
|
|
5991
6013
|
}
|
|
5992
6014
|
}
|
|
@@ -6647,6 +6669,9 @@
|
|
|
6647
6669
|
"visibleOn_2xl": "pf-m-visible-on-2xl",
|
|
6648
6670
|
"fixed": "pf-m-fixed",
|
|
6649
6671
|
"stickyHeader": "pf-m-sticky-header",
|
|
6672
|
+
"striped": "pf-m-striped",
|
|
6673
|
+
"expandable": "pf-m-expandable",
|
|
6674
|
+
"stripedEven": "pf-m-striped-even",
|
|
6650
6675
|
"ghostRow": "pf-m-ghost-row",
|
|
6651
6676
|
"center": "pf-m-center",
|
|
6652
6677
|
"help": "pf-m-help",
|
|
@@ -386,6 +386,7 @@
|
|
|
386
386
|
--pf-c-table--thead--m-nested-column-header--tr--PaddingTop: var(--pf-global--spacer--xs);
|
|
387
387
|
--pf-c-table--thead--m-nested-column-header--tr--PaddingBottom: var(--pf-global--spacer--xs);
|
|
388
388
|
--pf-c-table__subhead--Color: var(--pf-global--Color--200);
|
|
389
|
+
--pf-c-table--m-striped__tr--BackgroundColor: var(--pf-global--BackgroundColor--light-200);
|
|
389
390
|
color: var(--pf-global--Color--100);
|
|
390
391
|
width: 100%;
|
|
391
392
|
background-color: var(--pf-c-table--BackgroundColor);
|
|
@@ -433,6 +434,14 @@
|
|
|
433
434
|
border-bottom: var(--pf-c-table--border-width--base) solid var(--pf-c-table--BorderColor);
|
|
434
435
|
}
|
|
435
436
|
|
|
437
|
+
.pf-c-table.pf-m-striped:not(.pf-m-expandable) > tbody > tr:nth-child(odd), .pf-c-table.pf-m-striped.pf-m-expandable > tbody:nth-of-type(odd) > tr:not(.pf-c-table__expandable-row),
|
|
438
|
+
.pf-c-table > .pf-m-striped > tr:nth-child(odd),
|
|
439
|
+
.pf-c-table > .pf-m-striped-even > tr:nth-child(even),
|
|
440
|
+
.pf-c-table tr.pf-m-striped {
|
|
441
|
+
--pf-c-table__sticky-column--BackgroundColor: var(--pf-c-table--m-striped__tr--BackgroundColor);
|
|
442
|
+
background: var(--pf-c-table--m-striped__tr--BackgroundColor);
|
|
443
|
+
}
|
|
444
|
+
|
|
436
445
|
.pf-c-table tr:not(.pf-c-table__expandable-row) {
|
|
437
446
|
border-bottom: var(--pf-c-table--border-width--base) solid var(--pf-c-table--BorderColor);
|
|
438
447
|
}
|
|
@@ -5922,6 +5931,10 @@ label.pf-c-check, .pf-c-check__label,
|
|
|
5922
5931
|
white-space: nowrap;
|
|
5923
5932
|
}
|
|
5924
5933
|
|
|
5934
|
+
.pf-c-dropdown__toggle-text {
|
|
5935
|
+
flex: 0 1 auto;
|
|
5936
|
+
}
|
|
5937
|
+
|
|
5925
5938
|
.pf-c-dropdown__toggle-icon {
|
|
5926
5939
|
margin-right: var(--pf-c-dropdown__toggle-icon--MarginRight);
|
|
5927
5940
|
margin-left: var(--pf-c-dropdown__toggle-icon--MarginLeft);
|
|
@@ -5934,6 +5947,7 @@ label.pf-c-check, .pf-c-check__label,
|
|
|
5934
5947
|
|
|
5935
5948
|
.pf-c-dropdown__toggle-image {
|
|
5936
5949
|
display: inline-flex;
|
|
5950
|
+
flex-shrink: 0;
|
|
5937
5951
|
margin-top: var(--pf-c-dropdown__toggle-image--MarginTop);
|
|
5938
5952
|
margin-right: var(--pf-c-dropdown__toggle-image--MarginRight);
|
|
5939
5953
|
margin-bottom: var(--pf-c-dropdown__toggle-image--MarginBottom);
|
|
@@ -14742,13 +14756,8 @@ ul.pf-c-list {
|
|
|
14742
14756
|
background-color: var(--pf-c-masthead--BackgroundColor);
|
|
14743
14757
|
}
|
|
14744
14758
|
|
|
14745
|
-
@media screen and (min-width: 1200px) {
|
|
14746
|
-
.pf-c-masthead {
|
|
14747
|
-
--pf-c-masthead--inset: var(--pf-c-masthead--xl--inset);
|
|
14748
|
-
}
|
|
14749
|
-
}
|
|
14750
14759
|
@media screen and (min-width: 768px) {
|
|
14751
|
-
.pf-c-masthead {
|
|
14760
|
+
.pf-c-page:where(:not(.pf-m-resize-observer)) .pf-c-masthead {
|
|
14752
14761
|
--pf-c-masthead--GridTemplateColumns: var(--pf-c-masthead--m-display-inline--GridTemplateColumns);
|
|
14753
14762
|
--pf-c-masthead__main--GridColumn: var(--pf-c-masthead--m-display-inline__main--GridColumn);
|
|
14754
14763
|
--pf-c-masthead__main--MinHeight: var(--pf-c-masthead--m-display-inline__main--MinHeight);
|
|
@@ -14768,6 +14777,15 @@ ul.pf-c-list {
|
|
|
14768
14777
|
--pf-c-masthead__content--c-nav--m-horizontal--MarginLeft: var(--pf-c-masthead--m-display-inline__content--c-nav--m-horizontal--MarginLeft);
|
|
14769
14778
|
}
|
|
14770
14779
|
}
|
|
14780
|
+
@media screen and (min-width: 1200px) {
|
|
14781
|
+
.pf-c-page:where(:not(.pf-m-resize-observer)) .pf-c-masthead {
|
|
14782
|
+
--pf-c-masthead--inset: var(--pf-c-masthead--xl--inset);
|
|
14783
|
+
}
|
|
14784
|
+
}
|
|
14785
|
+
.pf-c-page:where(.pf-m-breakpoint-xl) .pf-c-masthead {
|
|
14786
|
+
--pf-c-masthead--inset: var(--pf-c-masthead--xl--inset);
|
|
14787
|
+
}
|
|
14788
|
+
|
|
14771
14789
|
.pf-c-masthead.pf-m-light {
|
|
14772
14790
|
color: var(--pf-global--Color--100);
|
|
14773
14791
|
--pf-c-masthead--BackgroundColor: var(--pf-c-masthead--m-light--BackgroundColor);
|
|
@@ -14835,6 +14853,10 @@ ul.pf-c-list {
|
|
|
14835
14853
|
--pf-c-dropdown__toggle--before--BorderLeftColor: var(--pf-c-masthead--c-dropdown--m-full-height__toggle--before--BorderLeftColor);
|
|
14836
14854
|
}
|
|
14837
14855
|
|
|
14856
|
+
.pf-c-masthead .pf-c-nav {
|
|
14857
|
+
align-self: stretch;
|
|
14858
|
+
}
|
|
14859
|
+
|
|
14838
14860
|
.pf-c-masthead__main {
|
|
14839
14861
|
position: relative;
|
|
14840
14862
|
display: flex;
|
|
@@ -23340,6 +23362,12 @@ label.pf-c-radio, .pf-c-radio__label,
|
|
|
23340
23362
|
--pf-c-toolbar--spacer: 0;
|
|
23341
23363
|
}
|
|
23342
23364
|
|
|
23365
|
+
.pf-c-toolbar__group.pf-m-overflow-container,
|
|
23366
|
+
.pf-c-toolbar__item.pf-m-overflow-container {
|
|
23367
|
+
flex: 1;
|
|
23368
|
+
overflow: hidden;
|
|
23369
|
+
}
|
|
23370
|
+
|
|
23343
23371
|
.pf-c-toolbar__expand-all-icon {
|
|
23344
23372
|
display: inline-block;
|
|
23345
23373
|
transition: var(--pf-c-toolbar__expand-all-icon--Transition);
|
|
@@ -25694,6 +25722,40 @@ label.pf-c-radio, .pf-c-radio__label,
|
|
|
25694
25722
|
box-shadow: var(--pf-c-panel__footer--BoxShadow);
|
|
25695
25723
|
}
|
|
25696
25724
|
|
|
25725
|
+
.pf-c-truncate {
|
|
25726
|
+
--pf-c-truncate--MinWidth: 12ch;
|
|
25727
|
+
--pf-c-truncate__start--MinWidth: 6ch;
|
|
25728
|
+
display: inline-grid;
|
|
25729
|
+
grid-auto-flow: column;
|
|
25730
|
+
align-items: baseline;
|
|
25731
|
+
min-width: var(--pf-c-truncate--MinWidth);
|
|
25732
|
+
}
|
|
25733
|
+
|
|
25734
|
+
.pf-c-truncate__start,
|
|
25735
|
+
.pf-c-truncate__end {
|
|
25736
|
+
overflow: hidden;
|
|
25737
|
+
text-overflow: ellipsis;
|
|
25738
|
+
white-space: nowrap;
|
|
25739
|
+
}
|
|
25740
|
+
|
|
25741
|
+
.pf-c-truncate__start {
|
|
25742
|
+
min-width: var(--pf-c-truncate__start--MinWidth);
|
|
25743
|
+
}
|
|
25744
|
+
|
|
25745
|
+
.pf-c-truncate__end {
|
|
25746
|
+
direction: rtl;
|
|
25747
|
+
}
|
|
25748
|
+
|
|
25749
|
+
.pf-c-truncate__start + .pf-c-truncate__end {
|
|
25750
|
+
overflow: visible;
|
|
25751
|
+
direction: ltr;
|
|
25752
|
+
}
|
|
25753
|
+
|
|
25754
|
+
@supports (-webkit-hyphens: none) {
|
|
25755
|
+
.pf-c-truncate__end {
|
|
25756
|
+
direction: ltr;
|
|
25757
|
+
}
|
|
25758
|
+
}
|
|
25697
25759
|
.pf-l-flex {
|
|
25698
25760
|
--pf-l-flex--Display: flex;
|
|
25699
25761
|
--pf-l-flex--FlexWrap: wrap;
|