@patternfly/react-table 4.101.1 → 4.101.4
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/dist/umd/react-table.css +85 -10
- package/dist/umd/react-table.js +24 -18
- package/dist/umd/react-table.min.css +85 -10
- package/dist/umd/react-table.min.js +2 -2
- package/package.json +6 -6
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.101.4 (2022-08-17)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @patternfly/react-table
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## 4.101.3 (2022-08-16)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* **Select:** apply aria-describedby to correct element ([#7790](https://github.com/patternfly/patternfly-react/issues/7790)) ([1795ff5](https://github.com/patternfly/patternfly-react/commit/1795ff5a939cfab5af03f11640737377b7c39441))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
## 4.101.2 (2022-08-16)
|
|
26
|
+
|
|
27
|
+
**Note:** Version bump only for package @patternfly/react-table
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
6
33
|
## 4.101.1 (2022-08-16)
|
|
7
34
|
|
|
8
35
|
**Note:** Version bump only for package @patternfly/react-table
|
package/dist/umd/react-table.css
CHANGED
|
@@ -4853,6 +4853,9 @@
|
|
|
4853
4853
|
--pf-c-check__description--FontSize: var(--pf-global--FontSize--sm);
|
|
4854
4854
|
--pf-c-check__description--Color: var(--pf-global--Color--200);
|
|
4855
4855
|
--pf-c-check__body--MarginTop: var(--pf-global--spacer--sm);
|
|
4856
|
+
--pf-c-check__label-required--MarginLeft: var(--pf-global--spacer--xs);
|
|
4857
|
+
--pf-c-check__label-required--FontSize: var(--pf-global--FontSize--sm);
|
|
4858
|
+
--pf-c-check__label-required--Color: var(--pf-global--danger-color--100);
|
|
4856
4859
|
display: grid;
|
|
4857
4860
|
grid-template-columns: auto 1fr;
|
|
4858
4861
|
grid-gap: var(--pf-c-check--GridGap);
|
|
@@ -4903,6 +4906,12 @@ label.pf-c-check, .pf-c-check__label,
|
|
|
4903
4906
|
cursor: not-allowed;
|
|
4904
4907
|
}
|
|
4905
4908
|
|
|
4909
|
+
.pf-c-check__label-required {
|
|
4910
|
+
margin-left: var(--pf-c-check__label-required--MarginLeft);
|
|
4911
|
+
font-size: var(--pf-c-check__label-required--FontSize);
|
|
4912
|
+
color: var(--pf-c-check__label-required--Color);
|
|
4913
|
+
}
|
|
4914
|
+
|
|
4906
4915
|
.pf-c-popover[data-popper-reference-hidden=true] {
|
|
4907
4916
|
visibility: hidden;
|
|
4908
4917
|
pointer-events: none;
|
|
@@ -7076,6 +7085,11 @@ button.pf-c-breadcrumb__link {
|
|
|
7076
7085
|
--pf-c-button--m-in-progress--m-plain--Color: var(--pf-global--primary-color--100);
|
|
7077
7086
|
--pf-c-button--m-in-progress--m-plain__progress--Left: 50%;
|
|
7078
7087
|
--pf-c-button--m-in-progress--m-plain__progress--TranslateX: -50%;
|
|
7088
|
+
--pf-c-button__count--MarginLeft: var(--pf-global--spacer--sm);
|
|
7089
|
+
--pf-c-button--disabled__c-badge--Color: var(--pf-global--Color--dark-100);
|
|
7090
|
+
--pf-c-button--disabled__c-badge--BackgroundColor: var(--pf-global--BackgroundColor--200);
|
|
7091
|
+
--pf-c-button--m-primary__c-badge--BorderColor: var(--pf-global--BorderColor--300);
|
|
7092
|
+
--pf-c-button--m-primary__c-badge--BorderWidth: var(--pf-global--BorderWidth--sm);
|
|
7079
7093
|
position: relative;
|
|
7080
7094
|
display: inline-block;
|
|
7081
7095
|
padding: var(--pf-c-button--PaddingTop) var(--pf-c-button--PaddingRight) var(--pf-c-button--PaddingBottom) var(--pf-c-button--PaddingLeft);
|
|
@@ -7152,6 +7166,10 @@ button.pf-c-breadcrumb__link {
|
|
|
7152
7166
|
--pf-c-button--m-primary--BackgroundColor: var(--pf-c-button--m-primary--active--BackgroundColor);
|
|
7153
7167
|
}
|
|
7154
7168
|
|
|
7169
|
+
.pf-c-button.pf-m-primary .pf-c-badge.pf-m-unread {
|
|
7170
|
+
border: var(--pf-c-button--m-primary__c-badge--BorderWidth) solid var(--pf-c-button--m-primary__c-badge--BorderColor);
|
|
7171
|
+
}
|
|
7172
|
+
|
|
7155
7173
|
.pf-c-button.pf-m-secondary {
|
|
7156
7174
|
--pf-c-button--after--BorderColor: var(--pf-c-button--m-secondary--after--BorderColor);
|
|
7157
7175
|
color: var(--pf-c-button--m-secondary--Color);
|
|
@@ -7411,6 +7429,12 @@ button.pf-c-breadcrumb__link {
|
|
|
7411
7429
|
border-color: var(--pf-c-button--disabled--after--BorderColor);
|
|
7412
7430
|
}
|
|
7413
7431
|
|
|
7432
|
+
.pf-c-button:disabled .pf-c-badge, .pf-c-button.pf-m-disabled .pf-c-badge, .pf-c-button.pf-m-aria-disabled .pf-c-badge {
|
|
7433
|
+
--pf-c-badge--m-unread--Color: var(--pf-c-button--disabled__c-badge--Color);
|
|
7434
|
+
--pf-c-badge--m-unread--BackgroundColor: var(--pf-c-button--disabled__c-badge--BackgroundColor);
|
|
7435
|
+
--pf-c-button--m-primary__c-badge--BorderWidth: 0;
|
|
7436
|
+
}
|
|
7437
|
+
|
|
7414
7438
|
.pf-c-button.pf-m-aria-disabled {
|
|
7415
7439
|
--pf-c-button--after--BorderWidth: 0;
|
|
7416
7440
|
--pf-c-button--m-link--m-inline--hover--TextDecoration: none;
|
|
@@ -7458,6 +7482,12 @@ button.pf-c-breadcrumb__link {
|
|
|
7458
7482
|
--pf-c-spinner--Color: currentcolor;
|
|
7459
7483
|
}
|
|
7460
7484
|
|
|
7485
|
+
.pf-c-button__count {
|
|
7486
|
+
display: inline-flex;
|
|
7487
|
+
align-items: center;
|
|
7488
|
+
margin-left: var(--pf-c-button__count--MarginLeft);
|
|
7489
|
+
}
|
|
7490
|
+
|
|
7461
7491
|
.pf-m-overpass-font .pf-c-button {
|
|
7462
7492
|
--pf-c-button--FontWeight: var(--pf-global--FontWeight--semi-bold);
|
|
7463
7493
|
}
|
|
@@ -7494,6 +7524,7 @@ button.pf-c-breadcrumb__link {
|
|
|
7494
7524
|
--pf-c-button--m-control--focus--after--BorderBottomColor: var(--pf-global--primary-color--100);
|
|
7495
7525
|
--pf-c-button--m-control--m-expanded--after--BorderBottomColor: var(--pf-global--primary-color--100);
|
|
7496
7526
|
--pf-c-button--m-control--disabled--BackgroundColor: var(--pf-global--disabled-color--200);
|
|
7527
|
+
--pf-c-button--m-primary__c-badge--BorderColor: var(--pf-global--Color--100);
|
|
7497
7528
|
}
|
|
7498
7529
|
|
|
7499
7530
|
:where(.pf-theme-dark) .pf-c-button.pf-m-control:disabled::after {
|
|
@@ -8721,6 +8752,13 @@ button.pf-c-breadcrumb__link {
|
|
|
8721
8752
|
box-shadow: var(--pf-c-context-selector__menu--BoxShadow);
|
|
8722
8753
|
}
|
|
8723
8754
|
|
|
8755
|
+
.pf-c-context-selector__menu.pf-m-static {
|
|
8756
|
+
position: static;
|
|
8757
|
+
top: auto;
|
|
8758
|
+
z-index: auto;
|
|
8759
|
+
min-width: min-content;
|
|
8760
|
+
}
|
|
8761
|
+
|
|
8724
8762
|
.pf-c-context-selector__menu-search {
|
|
8725
8763
|
position: relative;
|
|
8726
8764
|
padding: var(--pf-c-context-selector__menu-search--PaddingTop) var(--pf-c-context-selector__menu-search--PaddingRight) var(--pf-c-context-selector__menu-search--PaddingBottom) var(--pf-c-context-selector__menu-search--PaddingLeft);
|
|
@@ -12611,6 +12649,13 @@ button.pf-c-breadcrumb__link {
|
|
|
12611
12649
|
box-shadow: var(--pf-c-dropdown__menu--BoxShadow);
|
|
12612
12650
|
}
|
|
12613
12651
|
|
|
12652
|
+
.pf-c-dropdown__menu.pf-m-static {
|
|
12653
|
+
position: static;
|
|
12654
|
+
top: auto;
|
|
12655
|
+
z-index: auto;
|
|
12656
|
+
min-width: min-content;
|
|
12657
|
+
}
|
|
12658
|
+
|
|
12614
12659
|
.pf-c-dropdown .pf-c-menu,
|
|
12615
12660
|
.pf-c-dropdown__menu {
|
|
12616
12661
|
min-width: 100%;
|
|
@@ -13266,6 +13311,7 @@ button.pf-c-breadcrumb__link {
|
|
|
13266
13311
|
--pf-c-expandable-section__toggle--PaddingRight: var(--pf-global--spacer--md);
|
|
13267
13312
|
--pf-c-expandable-section__toggle--PaddingBottom: var(--pf-global--spacer--form-element);
|
|
13268
13313
|
--pf-c-expandable-section__toggle--PaddingLeft: 0;
|
|
13314
|
+
--pf-c-expandable-section__toggle--MarginTop: 0;
|
|
13269
13315
|
--pf-c-expandable-section__toggle--Color: var(--pf-global--link--Color);
|
|
13270
13316
|
--pf-c-expandable-section__toggle--hover--Color: var(--pf-global--link--Color--hover);
|
|
13271
13317
|
--pf-c-expandable-section__toggle--active--Color: var(--pf-global--link--Color--hover);
|
|
@@ -13295,6 +13341,8 @@ button.pf-c-breadcrumb__link {
|
|
|
13295
13341
|
--pf-c-expandable-section--m-display-lg--after--Width: var(--pf-global--BorderWidth--lg);
|
|
13296
13342
|
--pf-c-expandable-section--m-display-lg--m-expanded--after--BackgroundColor: var(--pf-global--primary-color--100);
|
|
13297
13343
|
--pf-c-expandable-section--m-indented__content--PaddingLeft: calc(var(--pf-c-expandable-section__toggle-text--MarginLeft) + var(--pf-c-expandable-section__toggle-icon--MinWidth));
|
|
13344
|
+
--pf-c-expandable-section--m-truncate__content--LineClamp: 3;
|
|
13345
|
+
--pf-c-expandable-section--m-truncate__toggle--MarginTop: var(--pf-global--spacer--xs);
|
|
13298
13346
|
}
|
|
13299
13347
|
|
|
13300
13348
|
.pf-c-expandable-section.pf-m-expanded {
|
|
@@ -13304,7 +13352,7 @@ button.pf-c-breadcrumb__link {
|
|
|
13304
13352
|
--pf-c-expandable-section--m-display-lg--after--BackgroundColor: var(--pf-c-expandable-section--m-display-lg--m-expanded--after--BackgroundColor);
|
|
13305
13353
|
}
|
|
13306
13354
|
|
|
13307
|
-
.pf-c-expandable-section.pf-m-detached {
|
|
13355
|
+
.pf-c-expandable-section.pf-m-detached, .pf-c-expandable-section.pf-m-truncate {
|
|
13308
13356
|
--pf-c-expandable-section__content--MarginTop: 0;
|
|
13309
13357
|
}
|
|
13310
13358
|
|
|
@@ -13339,9 +13387,25 @@ button.pf-c-breadcrumb__link {
|
|
|
13339
13387
|
--pf-c-expandable-section__content--PaddingLeft: var(--pf-c-expandable-section--m-indented__content--PaddingLeft);
|
|
13340
13388
|
}
|
|
13341
13389
|
|
|
13390
|
+
.pf-c-expandable-section.pf-m-truncate {
|
|
13391
|
+
--pf-c-expandable-section__toggle--MarginTop: var(--pf-c-expandable-section--m-truncate__toggle--MarginTop);
|
|
13392
|
+
--pf-c-expandable-section__toggle--PaddingTop: 0;
|
|
13393
|
+
--pf-c-expandable-section__toggle--PaddingRight: 0;
|
|
13394
|
+
--pf-c-expandable-section__toggle--PaddingBottom: 0;
|
|
13395
|
+
--pf-c-expandable-section__toggle-text--MarginLeft: 0;
|
|
13396
|
+
}
|
|
13397
|
+
|
|
13398
|
+
.pf-c-expandable-section.pf-m-truncate:not(.pf-m-expanded) .pf-c-expandable-section__content {
|
|
13399
|
+
display: -webkit-box;
|
|
13400
|
+
-webkit-box-orient: vertical;
|
|
13401
|
+
-webkit-line-clamp: var(--pf-c-expandable-section--m-truncate__content--LineClamp);
|
|
13402
|
+
overflow: hidden;
|
|
13403
|
+
}
|
|
13404
|
+
|
|
13342
13405
|
.pf-c-expandable-section__toggle {
|
|
13343
13406
|
display: flex;
|
|
13344
13407
|
padding: var(--pf-c-expandable-section__toggle--PaddingTop) var(--pf-c-expandable-section__toggle--PaddingRight) var(--pf-c-expandable-section__toggle--PaddingBottom) var(--pf-c-expandable-section__toggle--PaddingLeft);
|
|
13408
|
+
margin-top: var(--pf-c-expandable-section__toggle--MarginTop);
|
|
13345
13409
|
color: var(--pf-c-expandable-section__toggle--Color);
|
|
13346
13410
|
border: none;
|
|
13347
13411
|
}
|
|
@@ -13641,6 +13705,10 @@ button.pf-c-breadcrumb__link {
|
|
|
13641
13705
|
background-color: var(--pf-c-input-group--BackgroundColor);
|
|
13642
13706
|
}
|
|
13643
13707
|
|
|
13708
|
+
.pf-c-input-group.pf-m-plain {
|
|
13709
|
+
--pf-c-input-group--BackgroundColor: transparent;
|
|
13710
|
+
}
|
|
13711
|
+
|
|
13644
13712
|
.pf-c-input-group > * + * {
|
|
13645
13713
|
margin-left: -1px;
|
|
13646
13714
|
}
|
|
@@ -15404,7 +15472,7 @@ ul.pf-c-list {
|
|
|
15404
15472
|
--pf-global--BackgroundColor--100: var(--pf-global--BackgroundColor--light-100);
|
|
15405
15473
|
}
|
|
15406
15474
|
|
|
15407
|
-
.pf-c-masthead {
|
|
15475
|
+
.pf-c-masthead .pf-c-button.pf-m-plain, .pf-c-masthead {
|
|
15408
15476
|
--pf-global--Color--100: var(--pf-global--Color--light-100);
|
|
15409
15477
|
--pf-global--Color--200: var(--pf-global--Color--light-200);
|
|
15410
15478
|
--pf-global--BorderColor--100: var(--pf-global--BorderColor--light-100);
|
|
@@ -15414,11 +15482,11 @@ ul.pf-c-list {
|
|
|
15414
15482
|
--pf-global--BackgroundColor--100: var(--pf-global--BackgroundColor--dark-100);
|
|
15415
15483
|
}
|
|
15416
15484
|
|
|
15417
|
-
.pf-c-masthead .pf-c-card {
|
|
15485
|
+
.pf-c-masthead .pf-c-button.pf-m-plain .pf-c-card, .pf-c-masthead .pf-c-card {
|
|
15418
15486
|
--pf-c-card--BackgroundColor: var(--pf-global--BackgroundColor--dark-transparent-200);
|
|
15419
15487
|
}
|
|
15420
15488
|
|
|
15421
|
-
.pf-c-masthead .pf-c-button {
|
|
15489
|
+
.pf-c-masthead .pf-c-button.pf-m-plain .pf-c-button, .pf-c-masthead .pf-c-button {
|
|
15422
15490
|
--pf-c-button--m-primary--Color: var(--pf-global--primary-color--dark-100);
|
|
15423
15491
|
--pf-c-button--m-primary--hover--Color: var(--pf-global--primary-color--dark-100);
|
|
15424
15492
|
--pf-c-button--m-primary--focus--Color: var(--pf-global--primary-color--dark-100);
|
|
@@ -15638,6 +15706,10 @@ ul.pf-c-list {
|
|
|
15638
15706
|
align-self: stretch;
|
|
15639
15707
|
}
|
|
15640
15708
|
|
|
15709
|
+
.pf-c-masthead .pf-c-button.pf-m-plain {
|
|
15710
|
+
color: var(--pf-global--Color--200);
|
|
15711
|
+
}
|
|
15712
|
+
|
|
15641
15713
|
.pf-c-masthead__main {
|
|
15642
15714
|
position: relative;
|
|
15643
15715
|
display: flex;
|
|
@@ -16347,8 +16419,6 @@ ul.pf-c-list {
|
|
|
16347
16419
|
--pf-c-menu__footer--BoxShadow: none;
|
|
16348
16420
|
--pf-c-menu__footer--after--BorderTopWidth: var(--pf-global--BorderWidth--sm);
|
|
16349
16421
|
--pf-c-menu__footer--after--BorderTopColor: var(--pf-global--BorderColor--100);
|
|
16350
|
-
--pf-c-menu__footer--after--BorderBottomWidth: 0;
|
|
16351
|
-
--pf-c-menu__footer--after--BorderBottomColor: var(--pf-global--BorderColor--100);
|
|
16352
16422
|
--pf-c-menu--m-scrollable__footer--BoxShadow: var(--pf-global--BoxShadow--sm-top);
|
|
16353
16423
|
--pf-c-menu--m-scrollable__footer--after--BorderTopWidth: 0;
|
|
16354
16424
|
--pf-c-menu--m-scrollable__footer--after--BorderBottomWidth: var(--pf-global--BorderWidth--sm);
|
|
@@ -16504,7 +16574,6 @@ ul.pf-c-list {
|
|
|
16504
16574
|
--pf-c-menu__content--MaxHeight: var(--pf-c-menu--m-scrollable__content--MaxHeight);
|
|
16505
16575
|
--pf-c-menu__footer--BoxShadow: var(--pf-c-menu--m-scrollable__footer--BoxShadow);
|
|
16506
16576
|
--pf-c-menu__footer--after--BorderTopWidth: var(--pf-c-menu--m-scrollable__footer--after--BorderTopWidth);
|
|
16507
|
-
--pf-c-menu__footer--after--BorderBottomWidth: var(--pf-c-menu--m-scrollable__footer--after--BorderBottomWidth);
|
|
16508
16577
|
}
|
|
16509
16578
|
|
|
16510
16579
|
.pf-c-menu.pf-m-scrollable .pf-c-menu__content {
|
|
@@ -16838,7 +16907,6 @@ label.pf-c-menu__item:where(:not([disabled], .pf-m-disabled)) {
|
|
|
16838
16907
|
pointer-events: none;
|
|
16839
16908
|
content: "";
|
|
16840
16909
|
border-top: var(--pf-c-menu__footer--after--BorderTopWidth) solid var(--pf-c-menu__footer--after--BorderTopColor);
|
|
16841
|
-
border-bottom: var(--pf-c-menu__footer--after--BorderBottomWidth) solid var(--pf-c-menu__footer--after--BorderBottomColor);
|
|
16842
16910
|
}
|
|
16843
16911
|
|
|
16844
16912
|
:where(.pf-theme-dark) .pf-c-menu {
|
|
@@ -22515,6 +22583,13 @@ label.pf-c-radio, .pf-c-radio__label,
|
|
|
22515
22583
|
transform: translateY(var(--pf-c-select__menu--m-top--TranslateY));
|
|
22516
22584
|
}
|
|
22517
22585
|
|
|
22586
|
+
.pf-c-select__menu.pf-m-static {
|
|
22587
|
+
position: static;
|
|
22588
|
+
top: auto;
|
|
22589
|
+
z-index: auto;
|
|
22590
|
+
min-width: min-content;
|
|
22591
|
+
}
|
|
22592
|
+
|
|
22518
22593
|
.pf-c-select__menu-fieldset {
|
|
22519
22594
|
border: 0;
|
|
22520
22595
|
}
|
|
@@ -27876,10 +27951,10 @@ label.pf-c-tree-view__node-text {
|
|
|
27876
27951
|
}
|
|
27877
27952
|
|
|
27878
27953
|
:where(.pf-theme-dark) .pf-c-wizard {
|
|
27954
|
+
--pf-c-wizard__header--BackgroundColor: var(--pf-global--palette--black-1000);
|
|
27955
|
+
--pf-c-wizard__nav-link--before--BackgroundColor: var(--pf-global--palette--black-500);
|
|
27879
27956
|
--pf-c-wizard__nav-link--m-disabled--Color: var(--pf-global--disabled-color--300);
|
|
27880
27957
|
--pf-c-wizard__nav-link--m-disabled--before--Color: var(--pf-global--disabled-color--300);
|
|
27881
|
-
--pf-c-wizard__nav--BackgroundColor: var(--pf-global--BackgroundColor--300);
|
|
27882
|
-
--pf-c-wizard__outer-wrap--BackgroundColor: var(--pf-global--BackgroundColor--300);
|
|
27883
27958
|
}
|
|
27884
27959
|
|
|
27885
27960
|
:where(.pf-theme-dark) .pf-c-wizard__header {
|
package/dist/umd/react-table.js
CHANGED
|
@@ -3892,7 +3892,9 @@
|
|
|
3892
3892
|
|
|
3893
3893
|
Promise.resolve().then(function () { return button; });
|
|
3894
3894
|
var buttonStyles = {
|
|
3895
|
+
"badge": "pf-c-badge",
|
|
3895
3896
|
"button": "pf-c-button",
|
|
3897
|
+
"buttonCount": "pf-c-button__count",
|
|
3896
3898
|
"buttonIcon": "pf-c-button__icon",
|
|
3897
3899
|
"buttonProgress": "pf-c-button__progress",
|
|
3898
3900
|
"modifiers": {
|
|
@@ -3904,6 +3906,7 @@
|
|
|
3904
3906
|
"secondary": "pf-m-secondary",
|
|
3905
3907
|
"tertiary": "pf-m-tertiary",
|
|
3906
3908
|
"link": "pf-m-link",
|
|
3909
|
+
"unread": "pf-m-unread",
|
|
3907
3910
|
"inline": "pf-m-inline",
|
|
3908
3911
|
"danger": "pf-m-danger",
|
|
3909
3912
|
"warning": "pf-m-warning",
|
|
@@ -4365,6 +4368,7 @@
|
|
|
4365
4368
|
"active": "pf-m-active",
|
|
4366
4369
|
"secondary": "pf-m-secondary",
|
|
4367
4370
|
"top": "pf-m-top",
|
|
4371
|
+
"static": "pf-m-static",
|
|
4368
4372
|
"alignRight": "pf-m-align-right",
|
|
4369
4373
|
"alignLeft": "pf-m-align-left",
|
|
4370
4374
|
"alignRightOnSm": "pf-m-align-right-on-sm",
|
|
@@ -4777,6 +4781,7 @@
|
|
|
4777
4781
|
"placeholder": "pf-m-placeholder",
|
|
4778
4782
|
"top": "pf-m-top",
|
|
4779
4783
|
"alignRight": "pf-m-align-right",
|
|
4784
|
+
"static": "pf-m-static",
|
|
4780
4785
|
"favorite": "pf-m-favorite",
|
|
4781
4786
|
"favoriteAction": "pf-m-favorite-action",
|
|
4782
4787
|
"focus": "pf-m-focus",
|
|
@@ -4893,6 +4898,7 @@
|
|
|
4893
4898
|
"checkDescription": "pf-c-check__description",
|
|
4894
4899
|
"checkInput": "pf-c-check__input",
|
|
4895
4900
|
"checkLabel": "pf-c-check__label",
|
|
4901
|
+
"checkLabelRequired": "pf-c-check__label-required",
|
|
4896
4902
|
"modifiers": {
|
|
4897
4903
|
"standalone": "pf-m-standalone",
|
|
4898
4904
|
"disabled": "pf-m-disabled"
|
|
@@ -5897,12 +5903,12 @@
|
|
|
5897
5903
|
? this.refCollection[nextIndex][0].firstElementChild
|
|
5898
5904
|
: this.refCollection[nextIndex][0];
|
|
5899
5905
|
let typeaheadInputValue = '';
|
|
5900
|
-
if (isCreatable && optionTextElm.
|
|
5906
|
+
if (isCreatable && optionTextElm.textContent.includes(createText)) {
|
|
5901
5907
|
typeaheadInputValue = this.state.creatableValue;
|
|
5902
5908
|
}
|
|
5903
5909
|
else if (optionTextElm && !isLoad) {
|
|
5904
5910
|
// !isLoad prevents the view more button text from appearing the typeahead input
|
|
5905
|
-
typeaheadInputValue = optionTextElm.
|
|
5911
|
+
typeaheadInputValue = optionTextElm.textContent;
|
|
5906
5912
|
}
|
|
5907
5913
|
this.setState(prevState => ({
|
|
5908
5914
|
typeaheadCurrIndex: updateCurrentIndex ? nextIndex : prevState.typeaheadCurrIndex,
|
|
@@ -5950,8 +5956,8 @@
|
|
|
5950
5956
|
if (!typeaheadActiveChild.classList.contains('pf-m-load')) {
|
|
5951
5957
|
const hasDescriptionElm = typeaheadActiveChild.childElementCount > 1;
|
|
5952
5958
|
const typeaheadActiveChildText = hasDescriptionElm
|
|
5953
|
-
? typeaheadActiveChild.firstChild.
|
|
5954
|
-
: typeaheadActiveChild.
|
|
5959
|
+
? typeaheadActiveChild.firstChild.textContent
|
|
5960
|
+
: typeaheadActiveChild.textContent;
|
|
5955
5961
|
this.setState({
|
|
5956
5962
|
typeaheadInputValue: typeaheadActiveChildText
|
|
5957
5963
|
});
|
|
@@ -5959,7 +5965,7 @@
|
|
|
5959
5965
|
}
|
|
5960
5966
|
else if (this.refCollection[0] && this.refCollection[0][0]) {
|
|
5961
5967
|
this.setState({
|
|
5962
|
-
typeaheadInputValue: this.refCollection[0][0].
|
|
5968
|
+
typeaheadInputValue: this.refCollection[0][0].textContent
|
|
5963
5969
|
});
|
|
5964
5970
|
}
|
|
5965
5971
|
if (typeaheadActiveChild) {
|
|
@@ -6182,7 +6188,7 @@
|
|
|
6182
6188
|
this.isLastOptionBeforeFooter = (index) => this.props.footer && index === this.refCollection.length - 1 ? true : false;
|
|
6183
6189
|
}
|
|
6184
6190
|
extendTypeaheadChildren(typeaheadCurrIndex, favoritesGroup) {
|
|
6185
|
-
const { isGrouped, onFavorite } = this.props;
|
|
6191
|
+
const { isGrouped, onFavorite, createText } = this.props;
|
|
6186
6192
|
const typeaheadChildren = favoritesGroup
|
|
6187
6193
|
? favoritesGroup.concat(this.state.typeaheadFilteredChildren)
|
|
6188
6194
|
: this.state.typeaheadFilteredChildren;
|
|
@@ -6207,8 +6213,8 @@
|
|
|
6207
6213
|
isFocused: activeElement &&
|
|
6208
6214
|
(activeElement.id === child.props.id ||
|
|
6209
6215
|
(this.props.isCreatable &&
|
|
6210
|
-
typeaheadActiveChild.
|
|
6211
|
-
|
|
6216
|
+
typeaheadActiveChild.textContent ===
|
|
6217
|
+
`${createText} "${group.props.value}"`))
|
|
6212
6218
|
}))
|
|
6213
6219
|
});
|
|
6214
6220
|
}
|
|
@@ -6219,10 +6225,10 @@
|
|
|
6219
6225
|
? child
|
|
6220
6226
|
: React__namespace.cloneElement(child, {
|
|
6221
6227
|
isFocused: typeaheadActiveChild &&
|
|
6222
|
-
(typeaheadActiveChild.
|
|
6228
|
+
(typeaheadActiveChild.textContent === child.props.value.toString() ||
|
|
6223
6229
|
(this.props.isCreatable &&
|
|
6224
|
-
typeaheadActiveChild.
|
|
6225
|
-
|
|
6230
|
+
typeaheadActiveChild.textContent ===
|
|
6231
|
+
`${createText} "${child.props.value}"`))
|
|
6226
6232
|
}))
|
|
6227
6233
|
});
|
|
6228
6234
|
}
|
|
@@ -6230,8 +6236,8 @@
|
|
|
6230
6236
|
// group has been filtered down to SelectOption
|
|
6231
6237
|
return React__namespace.cloneElement(group, {
|
|
6232
6238
|
isFocused: typeaheadActiveChild &&
|
|
6233
|
-
(typeaheadActiveChild.
|
|
6234
|
-
(this.props.isCreatable && typeaheadActiveChild.
|
|
6239
|
+
(typeaheadActiveChild.textContent === group.props.value.toString() ||
|
|
6240
|
+
(this.props.isCreatable && typeaheadActiveChild.textContent === `${createText} "${group.props.value}"`))
|
|
6235
6241
|
});
|
|
6236
6242
|
}
|
|
6237
6243
|
});
|
|
@@ -6242,9 +6248,9 @@
|
|
|
6242
6248
|
? child
|
|
6243
6249
|
: React__namespace.cloneElement(child, {
|
|
6244
6250
|
isFocused: typeaheadActiveChild
|
|
6245
|
-
? typeaheadActiveChild.
|
|
6251
|
+
? typeaheadActiveChild.textContent === child.props.value.toString() ||
|
|
6246
6252
|
(this.props.isCreatable &&
|
|
6247
|
-
typeaheadActiveChild.
|
|
6253
|
+
typeaheadActiveChild.textContent === `${createText} "${child.props.value}"`)
|
|
6248
6254
|
: index === typeaheadCurrIndex // fallback for view more + typeahead use cases, when the new expanded list is loaded and refCollection hasn't be updated yet
|
|
6249
6255
|
});
|
|
6250
6256
|
});
|
|
@@ -6434,9 +6440,9 @@
|
|
|
6434
6440
|
" ",
|
|
6435
6441
|
innerMenu,
|
|
6436
6442
|
" ") : innerMenu;
|
|
6437
|
-
const popperContainer = (React__namespace.createElement("div", Object.assign({ className: css(styles$6.select, isOpen && styles$6.modifiers.expanded, validated === ValidatedOptions.success && styles$6.modifiers.success, validated === ValidatedOptions.warning && styles$6.modifiers.warning, validated === ValidatedOptions.error && styles$6.modifiers.invalid, direction === SelectDirection.up && styles$6.modifiers.top, className) }, (width && { style: { width } }), (
|
|
6438
|
-
const mainContainer = (React__namespace.createElement("div", Object.assign({ className: css(styles$6.select, isOpen && styles$6.modifiers.expanded, validated === ValidatedOptions.success && styles$6.modifiers.success, validated === ValidatedOptions.warning && styles$6.modifiers.warning, validated === ValidatedOptions.error && styles$6.modifiers.invalid, direction === SelectDirection.up && styles$6.modifiers.top, className), ref: this.parentRef }, getOUIAProps(Select.displayName, ouiaId !== undefined ? ouiaId : this.state.ouiaStateId, ouiaSafe), (width && { style: { width } }), (
|
|
6439
|
-
React__namespace.createElement(SelectToggle, Object.assign({ id: selectToggleId, parentRef: this.parentRef, menuRef: this.menuComponentRef }, (footer && { footerRef: this.footerRef }), { isOpen: isOpen, isPlain: isPlain, hasPlaceholderStyle: hasPlaceholderStyle && (!selections.length || selections[0] === null || isSelectedPlaceholder), onToggle: this.onToggle, onEnter: this.onEnter, onClose: this.onClose, onBlur: onBlur, variant: variant, "aria-labelledby": `${ariaLabelledBy || ''} ${selectToggleId}`, "aria-label": toggleAriaLabel, handleTypeaheadKeys: this.handleTypeaheadKeys, moveFocusToLastMenuItem: this.moveFocusToLastMenuItem, isDisabled: isDisabled, hasClearButton: hasOnClear, hasFooter: footer !== undefined, onClickTypeaheadToggleButton: this.onClickTypeaheadToggleButton }),
|
|
6443
|
+
const popperContainer = (React__namespace.createElement("div", Object.assign({ className: css(styles$6.select, isOpen && styles$6.modifiers.expanded, validated === ValidatedOptions.success && styles$6.modifiers.success, validated === ValidatedOptions.warning && styles$6.modifiers.warning, validated === ValidatedOptions.error && styles$6.modifiers.invalid, direction === SelectDirection.up && styles$6.modifiers.top, className) }, (width && { style: { width } }), (validated !== ValidatedOptions.default && { 'aria-invalid': ariaInvalid })), isOpen && menuContainer));
|
|
6444
|
+
const mainContainer = (React__namespace.createElement("div", Object.assign({ className: css(styles$6.select, isOpen && styles$6.modifiers.expanded, validated === ValidatedOptions.success && styles$6.modifiers.success, validated === ValidatedOptions.warning && styles$6.modifiers.warning, validated === ValidatedOptions.error && styles$6.modifiers.invalid, direction === SelectDirection.up && styles$6.modifiers.top, className), ref: this.parentRef }, getOUIAProps(Select.displayName, ouiaId !== undefined ? ouiaId : this.state.ouiaStateId, ouiaSafe), (width && { style: { width } }), (validated !== ValidatedOptions.default && { 'aria-invalid': ariaInvalid })),
|
|
6445
|
+
React__namespace.createElement(SelectToggle, Object.assign({ id: selectToggleId, parentRef: this.parentRef, menuRef: this.menuComponentRef }, (footer && { footerRef: this.footerRef }), { isOpen: isOpen, isPlain: isPlain, hasPlaceholderStyle: hasPlaceholderStyle && (!selections.length || selections[0] === null || isSelectedPlaceholder), onToggle: this.onToggle, onEnter: this.onEnter, onClose: this.onClose, onBlur: onBlur, variant: variant, "aria-labelledby": `${ariaLabelledBy || ''} ${selectToggleId}`, "aria-label": toggleAriaLabel }, (ariaDescribedby && { 'aria-describedby': ariaDescribedby }), { handleTypeaheadKeys: this.handleTypeaheadKeys, moveFocusToLastMenuItem: this.moveFocusToLastMenuItem, isDisabled: isDisabled, hasClearButton: hasOnClear, hasFooter: footer !== undefined, onClickTypeaheadToggleButton: this.onClickTypeaheadToggleButton }),
|
|
6440
6446
|
customContent && (React__namespace.createElement("div", { className: css(styles$6.selectToggleWrapper) },
|
|
6441
6447
|
toggleIcon && React__namespace.createElement("span", { className: css(styles$6.selectToggleIcon) }, toggleIcon),
|
|
6442
6448
|
React__namespace.createElement("span", { className: css(styles$6.selectToggleText) }, placeholderText))),
|