@patternfly/react-table 4.111.6 → 4.111.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 CHANGED
@@ -3,6 +3,22 @@
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.111.8](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-table@4.111.7...@patternfly/react-table@4.111.8) (2022-10-12)
7
+
8
+ **Note:** Version bump only for package @patternfly/react-table
9
+
10
+
11
+
12
+
13
+
14
+ ## [4.111.7](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-table@4.111.6...@patternfly/react-table@4.111.7) (2022-10-12)
15
+
16
+ **Note:** Version bump only for package @patternfly/react-table
17
+
18
+
19
+
20
+
21
+
6
22
  ## 4.111.6 (2022-10-12)
7
23
 
8
24
  **Note:** Version bump only for package @patternfly/react-table
@@ -28206,6 +28206,69 @@ label.pf-c-tree-view__node-text {
28206
28206
  color: var(--pf-global--Color--100);
28207
28207
  }
28208
28208
 
28209
+ .pf-c-draggable {
28210
+ --pf-c-draggable--Cursor: auto;
28211
+ --pf-c-draggable--m-dragging--Cursor: grabbing;
28212
+ --pf-c-draggable--m-dragging--BoxShadow: var(--pf-global--BoxShadow--md);
28213
+ --pf-c-draggable--m-dragging--after--BorderWidth: var(--pf-global--BorderWidth--sm);
28214
+ --pf-c-draggable--m-dragging--after--BorderColor: var(--pf-global--active-color--100);
28215
+ --pf-c-draggable--m-drag-outside--Cursor: not-allowed;
28216
+ --pf-c-draggable--m-drag-outside--after--BorderColor: var(--pf-global--danger-color--100);
28217
+ cursor: var(--pf-c-draggable--Cursor);
28218
+ }
28219
+
28220
+ .pf-c-draggable.pf-m-dragging {
28221
+ --pf-c-draggable--Cursor: var(--pf-c-draggable--m-dragging--Cursor);
28222
+ position: relative;
28223
+ background-color: var(--pf-c-draggable--m-dragging--BackgroundColor);
28224
+ box-shadow: var(--pf-c-draggable--m-dragging--BoxShadow);
28225
+ }
28226
+
28227
+ .pf-c-draggable.pf-m-dragging::after {
28228
+ position: absolute;
28229
+ top: 0;
28230
+ right: 0;
28231
+ bottom: 0;
28232
+ left: 0;
28233
+ content: "";
28234
+ border: var(--pf-c-draggable--m-dragging--after--BorderWidth) solid var(--pf-c-draggable--m-dragging--after--BorderColor);
28235
+ }
28236
+
28237
+ .pf-c-draggable.pf-m-drag-outside {
28238
+ --pf-c-draggable--m-dragging--Cursor: var(--pf-c-draggable--m-drag-outside--Cursor);
28239
+ --pf-c-draggable--m-dragging--after--BorderColor: var(--pf-c-draggable--m-drag-outside--after--BorderColor);
28240
+ }
28241
+
28242
+ .pf-c-droppable {
28243
+ --pf-c-droppable--m-dragging--after--BackgroundColor: rgba(255, 255, 255, 0.6);
28244
+ --pf-c-droppable--m-dragging--after--BorderWidth: var(--pf-global--BorderWidth--sm);
28245
+ --pf-c-droppable--m-dragging--after--BorderColor: var(--pf-global--active-color--100);
28246
+ --pf-c-droppable--m-drag-outside--after--BorderColor: var(--pf-global--danger-color--100);
28247
+ }
28248
+
28249
+ .pf-c-droppable.pf-m-dragging {
28250
+ position: relative;
28251
+ }
28252
+
28253
+ .pf-c-droppable.pf-m-dragging::after {
28254
+ position: absolute;
28255
+ top: 0;
28256
+ right: 0;
28257
+ bottom: 0;
28258
+ left: 0;
28259
+ pointer-events: none;
28260
+ content: "";
28261
+ }
28262
+
28263
+ .pf-c-droppable::after {
28264
+ background-color: var(--pf-c-droppable--m-dragging--after--BackgroundColor);
28265
+ border: var(--pf-c-droppable--m-dragging--after--BorderWidth) solid var(--pf-c-droppable--m-dragging--after--BorderColor);
28266
+ }
28267
+
28268
+ .pf-c-droppable.pf-m-drag-outside {
28269
+ --pf-c-droppable--m-dragging--after--BorderColor: var(--pf-c-droppable--m-drag-outside--after--BorderColor);
28270
+ }
28271
+
28209
28272
  .pf-c-text-input-group {
28210
28273
  --pf-c-text-input-group--BackgroundColor: var(--pf-global--BackgroundColor--100);
28211
28274
  --pf-c-text-input-group__text--before--BorderWidth: var(--pf-global--BorderWidth--sm);
@@ -28375,69 +28438,6 @@ label.pf-c-tree-view__node-text {
28375
28438
  display: flex;
28376
28439
  }
28377
28440
 
28378
- .pf-c-draggable {
28379
- --pf-c-draggable--Cursor: auto;
28380
- --pf-c-draggable--m-dragging--Cursor: grabbing;
28381
- --pf-c-draggable--m-dragging--BoxShadow: var(--pf-global--BoxShadow--md);
28382
- --pf-c-draggable--m-dragging--after--BorderWidth: var(--pf-global--BorderWidth--sm);
28383
- --pf-c-draggable--m-dragging--after--BorderColor: var(--pf-global--active-color--100);
28384
- --pf-c-draggable--m-drag-outside--Cursor: not-allowed;
28385
- --pf-c-draggable--m-drag-outside--after--BorderColor: var(--pf-global--danger-color--100);
28386
- cursor: var(--pf-c-draggable--Cursor);
28387
- }
28388
-
28389
- .pf-c-draggable.pf-m-dragging {
28390
- --pf-c-draggable--Cursor: var(--pf-c-draggable--m-dragging--Cursor);
28391
- position: relative;
28392
- background-color: var(--pf-c-draggable--m-dragging--BackgroundColor);
28393
- box-shadow: var(--pf-c-draggable--m-dragging--BoxShadow);
28394
- }
28395
-
28396
- .pf-c-draggable.pf-m-dragging::after {
28397
- position: absolute;
28398
- top: 0;
28399
- right: 0;
28400
- bottom: 0;
28401
- left: 0;
28402
- content: "";
28403
- border: var(--pf-c-draggable--m-dragging--after--BorderWidth) solid var(--pf-c-draggable--m-dragging--after--BorderColor);
28404
- }
28405
-
28406
- .pf-c-draggable.pf-m-drag-outside {
28407
- --pf-c-draggable--m-dragging--Cursor: var(--pf-c-draggable--m-drag-outside--Cursor);
28408
- --pf-c-draggable--m-dragging--after--BorderColor: var(--pf-c-draggable--m-drag-outside--after--BorderColor);
28409
- }
28410
-
28411
- .pf-c-droppable {
28412
- --pf-c-droppable--m-dragging--after--BackgroundColor: rgba(255, 255, 255, 0.6);
28413
- --pf-c-droppable--m-dragging--after--BorderWidth: var(--pf-global--BorderWidth--sm);
28414
- --pf-c-droppable--m-dragging--after--BorderColor: var(--pf-global--active-color--100);
28415
- --pf-c-droppable--m-drag-outside--after--BorderColor: var(--pf-global--danger-color--100);
28416
- }
28417
-
28418
- .pf-c-droppable.pf-m-dragging {
28419
- position: relative;
28420
- }
28421
-
28422
- .pf-c-droppable.pf-m-dragging::after {
28423
- position: absolute;
28424
- top: 0;
28425
- right: 0;
28426
- bottom: 0;
28427
- left: 0;
28428
- pointer-events: none;
28429
- content: "";
28430
- }
28431
-
28432
- .pf-c-droppable::after {
28433
- background-color: var(--pf-c-droppable--m-dragging--after--BackgroundColor);
28434
- border: var(--pf-c-droppable--m-dragging--after--BorderWidth) solid var(--pf-c-droppable--m-dragging--after--BorderColor);
28435
- }
28436
-
28437
- .pf-c-droppable.pf-m-drag-outside {
28438
- --pf-c-droppable--m-dragging--after--BorderColor: var(--pf-c-droppable--m-drag-outside--after--BorderColor);
28439
- }
28440
-
28441
28441
  .pf-c-panel {
28442
28442
  --pf-c-panel--Width: auto;
28443
28443
  --pf-c-panel--MinWidth: auto;
@@ -6486,7 +6486,7 @@
6486
6486
  };
6487
6487
  this.updateTypeAheadFilteredChildren = (typeaheadInputValue, e) => {
6488
6488
  let typeaheadFilteredChildren;
6489
- const { onFilter, isCreatable, onCreateOption, createText, noResultsFoundText, children, isGrouped, isCreateSelectOptionObject, loadingVariant } = this.props;
6489
+ const { onFilter, isCreatable, isCreateOptionOnTop, onCreateOption, createText, noResultsFoundText, children, isGrouped, isCreateSelectOptionObject, loadingVariant } = this.props;
6490
6490
  if (onFilter) {
6491
6491
  /* The updateTypeAheadFilteredChildren callback is not only called on input changes but also when the children change.
6492
6492
  * In this case the e is null but we can get the typeaheadInputValue from the state.
@@ -6573,11 +6573,17 @@
6573
6573
  .includes(value.toString().toLowerCase())
6574
6574
  }
6575
6575
  : newValue;
6576
- typeaheadFilteredChildren.push(React__namespace.createElement(SelectOption, { key: `create ${newValue}`, value: newOptionValue, onClick: () => onCreateOption && onCreateOption(newValue) },
6576
+ const createSelectOption = (React__namespace.createElement(SelectOption, { key: `create ${newValue}`, value: newOptionValue, onClick: () => onCreateOption && onCreateOption(newValue) },
6577
6577
  createText,
6578
6578
  " \"",
6579
6579
  newValue,
6580
6580
  "\""));
6581
+ if (isCreateOptionOnTop) {
6582
+ typeaheadFilteredChildren.unshift(createSelectOption);
6583
+ }
6584
+ else {
6585
+ typeaheadFilteredChildren.push(createSelectOption);
6586
+ }
6581
6587
  }
6582
6588
  }
6583
6589
  this.setState({
@@ -6979,7 +6985,7 @@
6979
6985
  /* eslint-enable @typescript-eslint/no-unused-vars */
6980
6986
  menuAppendTo, favorites, onFavorite,
6981
6987
  /* eslint-disable @typescript-eslint/no-unused-vars */
6982
- favoritesLabel, footer, loadingVariant, isCreateSelectOptionObject, shouldResetOnSelect, isFlipEnabled, removeFindDomNode } = _a, props = __rest$1(_a, ["children", "chipGroupProps", "chipGroupComponent", "className", "customContent", "variant", "direction", "onSelect", "onClear", "onBlur", "toggleId", "isOpen", "isGrouped", "isPlain", "isDisabled", "hasPlaceholderStyle", "validated", "selections", "typeAheadAriaLabel", "typeAheadAriaDescribedby", "clearSelectionsAriaLabel", "toggleAriaLabel", "removeSelectionAriaLabel", 'aria-label', 'aria-labelledby', 'aria-describedby', 'aria-invalid', "placeholderText", "width", "maxHeight", "toggleIcon", "toggleIndicator", "ouiaId", "ouiaSafe", "hasInlineFilter", "isCheckboxSelectionBadgeHidden", "inlineFilterPlaceholderText", "onFilter", "onTypeaheadInputChanged", "onCreateOption", "isCreatable", "onToggle", "createText", "noResultsFoundText", "customBadgeText", "inputIdPrefix", "inputAutoComplete", "isInputValuePersisted", "isInputFilterPersisted", "menuAppendTo", "favorites", "onFavorite", "favoritesLabel", "footer", "loadingVariant", "isCreateSelectOptionObject", "shouldResetOnSelect", "isFlipEnabled", "removeFindDomNode"]);
6988
+ favoritesLabel, footer, loadingVariant, isCreateSelectOptionObject, isCreateOptionOnTop, shouldResetOnSelect, isFlipEnabled, removeFindDomNode } = _a, props = __rest$1(_a, ["children", "chipGroupProps", "chipGroupComponent", "className", "customContent", "variant", "direction", "onSelect", "onClear", "onBlur", "toggleId", "isOpen", "isGrouped", "isPlain", "isDisabled", "hasPlaceholderStyle", "validated", "selections", "typeAheadAriaLabel", "typeAheadAriaDescribedby", "clearSelectionsAriaLabel", "toggleAriaLabel", "removeSelectionAriaLabel", 'aria-label', 'aria-labelledby', 'aria-describedby', 'aria-invalid', "placeholderText", "width", "maxHeight", "toggleIcon", "toggleIndicator", "ouiaId", "ouiaSafe", "hasInlineFilter", "isCheckboxSelectionBadgeHidden", "inlineFilterPlaceholderText", "onFilter", "onTypeaheadInputChanged", "onCreateOption", "isCreatable", "onToggle", "createText", "noResultsFoundText", "customBadgeText", "inputIdPrefix", "inputAutoComplete", "isInputValuePersisted", "isInputFilterPersisted", "menuAppendTo", "favorites", "onFavorite", "favoritesLabel", "footer", "loadingVariant", "isCreateSelectOptionObject", "isCreateOptionOnTop", "shouldResetOnSelect", "isFlipEnabled", "removeFindDomNode"]);
6983
6989
  const { focusFirstOption: openedOnEnter, typeaheadCurrIndex, typeaheadInputValue, typeaheadFilteredChildren, favoritesGroup } = this.state;
6984
6990
  const selectToggleId = toggleId || `pf-select-toggle-id-${currentId++}`;
6985
6991
  const selections = Array.isArray(selectionsProp) ? selectionsProp : [selectionsProp];
@@ -7220,6 +7226,7 @@
7220
7226
  isDisabled: false,
7221
7227
  hasPlaceholderStyle: false,
7222
7228
  isCreatable: false,
7229
+ isCreateOptionOnTop: false,
7223
7230
  validated: 'default',
7224
7231
  'aria-label': '',
7225
7232
  'aria-labelledby': '',