@splunk/react-ui 4.23.0 → 4.25.0

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.
Files changed (68) hide show
  1. package/Breadcrumbs.js +99 -124
  2. package/Button.js +8 -7
  3. package/ButtonSimple.js +40 -39
  4. package/CHANGELOG.md +22 -0
  5. package/Code.js +193 -100
  6. package/Color.js +18 -15
  7. package/ComboBox.js +49 -37
  8. package/JSONTree.js +210 -177
  9. package/Menu.js +643 -472
  10. package/Modal.js +265 -226
  11. package/Multiselect.js +634 -620
  12. package/RadioList.js +12 -11
  13. package/ResultsMenu.js +863 -148
  14. package/Search.js +3 -1
  15. package/Select.js +427 -416
  16. package/TabBar.js +2 -2
  17. package/Table.js +2 -2
  18. package/Tree.js +617 -0
  19. package/cypress/README.md +11 -0
  20. package/cypress/support/commands.ts +1 -0
  21. package/cypress/support/component.ts +0 -1
  22. package/cypress/tsconfig.cypress.json +14 -0
  23. package/package.json +12 -12
  24. package/types/src/Breadcrumbs/Breadcrumbs.d.ts +7 -1
  25. package/types/src/Breadcrumbs/Item.d.ts +8 -2
  26. package/types/src/Button/Button.d.ts +4 -2
  27. package/types/src/Button/docs/examples/Block.d.ts +2 -2
  28. package/types/src/Button/docs/examples/Dimmed.d.ts +2 -0
  29. package/types/src/Button/docs/examples/Disabled.d.ts +2 -2
  30. package/types/src/Button/docs/examples/Icons.d.ts +2 -2
  31. package/types/src/Button/docs/examples/Menus.d.ts +2 -2
  32. package/types/src/Button/docs/examples/To.d.ts +2 -2
  33. package/types/src/Button/docs/examples/Truncated.d.ts +2 -2
  34. package/types/src/Button/docs/examples/prisma/Basic.d.ts +2 -2
  35. package/types/src/Button/docs/examples/prisma/Block.d.ts +2 -2
  36. package/types/src/Button/docs/examples/prisma/Dimmed.d.ts +2 -0
  37. package/types/src/Button/docs/examples/prisma/Disabled.d.ts +2 -2
  38. package/types/src/Button/docs/examples/prisma/Menus.d.ts +2 -2
  39. package/types/src/Button/docs/examples/prisma/To.d.ts +2 -2
  40. package/types/src/Button/docs/examples/prisma/Truncated.d.ts +2 -2
  41. package/types/src/ButtonSimple/ButtonSimple.d.ts +4 -2
  42. package/types/src/Color/Color.d.ts +5 -3
  43. package/types/src/ComboBox/ComboBox.d.ts +6 -0
  44. package/types/src/JSONTree/JSONTree.d.ts +3 -2
  45. package/types/src/Menu/Menu.d.ts +14 -1
  46. package/types/src/Modal/Header.d.ts +0 -2
  47. package/types/src/Modal/Modal.d.ts +7 -0
  48. package/types/src/Modal/ModalContext.d.ts +1 -0
  49. package/types/src/Multiselect/Compact.d.ts +6 -0
  50. package/types/src/Multiselect/Multiselect.d.ts +7 -0
  51. package/types/src/RadioList/RadioList.d.ts +27 -27
  52. package/types/src/RadioList/RadioListContext.d.ts +5 -4
  53. package/types/src/ResultsMenu/ResultsMenu.d.ts +53 -1
  54. package/types/src/ResultsMenu/VirtualizedResultsMenu/VirtualizedItem.d.ts +9 -0
  55. package/types/src/ResultsMenu/VirtualizedResultsMenu/VirtualizedResultsMenu.d.ts +33 -0
  56. package/types/src/ResultsMenu/VirtualizedResultsMenu/groupChildren.d.ts +16 -0
  57. package/types/src/ResultsMenu/VirtualizedResultsMenu/index.d.ts +3 -0
  58. package/types/src/ResultsMenu/VirtualizedResultsMenu/injectVirtualizedItem.d.ts +21 -0
  59. package/types/src/ResultsMenu/index.d.ts +2 -1
  60. package/types/src/Select/Select.d.ts +2 -0
  61. package/types/src/Select/SelectBase.d.ts +6 -0
  62. package/types/src/Tree/Tree.d.ts +24 -0
  63. package/types/src/Tree/TreeContext.d.ts +13 -0
  64. package/types/src/Tree/TreeItem.d.ts +31 -0
  65. package/types/src/Tree/index.d.ts +3 -0
  66. package/types/src/Tree/treeUtils.d.ts +29 -0
  67. package/types/unit-test-setup-testing-library.d.ts +1 -0
  68. package/types/src/Modal/docs/examples/prisma/TypicalUsage.d.ts +0 -2
package/Multiselect.js CHANGED
@@ -71,10 +71,10 @@
71
71
  var r = e.n(n);
72
72
  // CONCATENATED MODULE: external "prop-types"
73
73
  const o = require("prop-types");
74
- var a = e.n(o);
74
+ var i = e.n(o);
75
75
  // CONCATENATED MODULE: external "lodash/has"
76
- const i = require("lodash/has");
77
- var l = e.n(i);
76
+ const a = require("lodash/has");
77
+ var l = e.n(a);
78
78
  // CONCATENATED MODULE: external "lodash/omit"
79
79
  const s = require("lodash/omit");
80
80
  var c = e.n(s);
@@ -115,9 +115,9 @@
115
115
  var n = h(e, t);
116
116
  var r, o;
117
117
  if (Object.getOwnPropertySymbols) {
118
- var a = Object.getOwnPropertySymbols(e);
119
- for (o = 0; o < a.length; o++) {
120
- r = a[o];
118
+ var i = Object.getOwnPropertySymbols(e);
119
+ for (o = 0; o < i.length; o++) {
120
+ r = i[o];
121
121
  if (t.indexOf(r) >= 0) continue;
122
122
  if (!Object.prototype.propertyIsEnumerable.call(e, r)) continue;
123
123
  n[r] = e[r];
@@ -129,9 +129,9 @@
129
129
  if (e == null) return {};
130
130
  var n = {};
131
131
  var r = Object.keys(e);
132
- var o, a;
133
- for (a = 0; a < r.length; a++) {
134
- o = r[a];
132
+ var o, i;
133
+ for (i = 0; i < r.length; i++) {
134
+ o = r[i];
135
135
  if (t.indexOf(o) >= 0) continue;
136
136
  n[o] = e[o];
137
137
  }
@@ -181,8 +181,8 @@
181
181
  return function n() {
182
182
  var r = k(e), o;
183
183
  if (t) {
184
- var a = k(this).constructor;
185
- o = Reflect.construct(r, arguments, a);
184
+ var i = k(this).constructor;
185
+ o = Reflect.construct(r, arguments, i);
186
186
  } else {
187
187
  o = r.apply(this, arguments);
188
188
  }
@@ -233,28 +233,28 @@
233
233
  }
234
234
  var j = {
235
235
  /** @private */
236
- active: a().bool,
237
- children: a().node,
238
- description: a().string,
239
- descriptionPosition: a().oneOf([ "right", "bottom" ]),
240
- disabled: a().bool,
241
- hidden: a().bool,
242
- icon: a().node,
243
- label: a().string.isRequired,
236
+ active: i().bool,
237
+ children: i().node,
238
+ description: i().string,
239
+ descriptionPosition: i().oneOf([ "right", "bottom" ]),
240
+ disabled: i().bool,
241
+ hidden: i().bool,
242
+ icon: i().node,
243
+ label: i().string.isRequired,
244
244
  /**
245
245
  * @private Passed down from <BaseSelect>
246
246
  */
247
- multiple: a().bool,
248
- matchRanges: a().arrayOf(a().shape({
249
- start: a().number.isRequired,
250
- end: a().number.isRequired
247
+ multiple: i().bool,
248
+ matchRanges: i().arrayOf(i().shape({
249
+ start: i().number.isRequired,
250
+ end: i().number.isRequired
251
251
  })),
252
252
  /** @private */
253
- onClick: a().func,
253
+ onClick: i().func,
254
254
  /** @private */
255
- selected: a().bool,
256
- truncate: a().bool,
257
- value: a().oneOfType([ a().string, a().number, a().bool ]).isRequired
255
+ selected: i().bool,
256
+ truncate: i().bool,
257
+ value: i().oneOfType([ i().string, i().number, i().bool ]).isRequired
258
258
  };
259
259
  var _ = {
260
260
  descriptionPosition: "bottom",
@@ -273,14 +273,14 @@
273
273
  function n() {
274
274
  var e;
275
275
  b(this, n);
276
- for (var r = arguments.length, o = new Array(r), a = 0; a < r; a++) {
277
- o[a] = arguments[a];
276
+ for (var r = arguments.length, o = new Array(r), i = 0; i < r; i++) {
277
+ o[i] = arguments[i];
278
278
  }
279
279
  e = t.call.apply(t, [ this ].concat(o));
280
280
  I(C(e), "c", null);
281
281
  I(C(e), "handleClick", (function(t) {
282
- var n = e.props, r = n.onClick, o = n.value, a = n.disabled;
283
- if (!a) {
282
+ var n = e.props, r = n.onClick, o = n.value, i = n.disabled;
283
+ if (!i) {
284
284
  r === null || r === void 0 ? void 0 : r(t, {
285
285
  value: o
286
286
  });
@@ -308,7 +308,7 @@
308
308
  }, {
309
309
  key: "render",
310
310
  value: function e() {
311
- var t = this.props, n = t.value, o = t.children, a = t.label, i = t.multiple, l = v(t, [ "value", "children", "label", "multiple" ]);
311
+ var t = this.props, n = t.value, o = t.children, i = t.label, a = t.multiple, l = v(t, [ "value", "children", "label", "multiple" ]);
312
312
 
313
313
  return r().createElement(p.Item, d({
314
314
  "aria-selected": this.props.selected,
@@ -317,11 +317,11 @@
317
317
  ref: this.handleMount
318
318
  }, l, {
319
319
  selectable: true,
320
- selectableAppearance: i ? "checkbox" : undefined,
320
+ selectableAppearance: a ? "checkbox" : undefined,
321
321
  onClick: this.handleClick,
322
322
  role: "option",
323
323
  value: n.toString()
324
- }), o || a);
324
+ }), o || i);
325
325
  }
326
326
  } ]);
327
327
  return n;
@@ -363,9 +363,9 @@
363
363
  var n = R(e, t);
364
364
  var r, o;
365
365
  if (Object.getOwnPropertySymbols) {
366
- var a = Object.getOwnPropertySymbols(e);
367
- for (o = 0; o < a.length; o++) {
368
- r = a[o];
366
+ var i = Object.getOwnPropertySymbols(e);
367
+ for (o = 0; o < i.length; o++) {
368
+ r = i[o];
369
369
  if (t.indexOf(r) >= 0) continue;
370
370
  if (!Object.prototype.propertyIsEnumerable.call(e, r)) continue;
371
371
  n[r] = e[r];
@@ -377,9 +377,9 @@
377
377
  if (e == null) return {};
378
378
  var n = {};
379
379
  var r = Object.keys(e);
380
- var o, a;
381
- for (a = 0; a < r.length; a++) {
382
- o = r[a];
380
+ var o, i;
381
+ for (i = 0; i < r.length; i++) {
382
+ o = r[i];
383
383
  if (t.indexOf(o) >= 0) continue;
384
384
  n[o] = e[o];
385
385
  }
@@ -429,8 +429,8 @@
429
429
  return function n() {
430
430
  var r = H(e), o;
431
431
  if (t) {
432
- var a = H(this).constructor;
433
- o = Reflect.construct(r, arguments, a);
432
+ var i = H(this).constructor;
433
+ o = Reflect.construct(r, arguments, i);
434
434
  } else {
435
435
  o = r.apply(this, arguments);
436
436
  }
@@ -466,7 +466,7 @@
466
466
  };
467
467
  return H(e);
468
468
  }
469
- function W(e, t, n) {
469
+ function z(e, t, n) {
470
470
  if (t in e) {
471
471
  Object.defineProperty(e, t, {
472
472
  value: n,
@@ -479,33 +479,33 @@
479
479
  }
480
480
  return e;
481
481
  }
482
- var z = {
482
+ var W = {
483
483
  /** @private */
484
- active: a().bool,
485
- children: a().node,
484
+ active: i().bool,
485
+ children: i().node,
486
486
  /**
487
487
  * @private this is passed down from Multiselect.
488
488
  */
489
- compact: a().bool,
490
- description: a().string,
491
- descriptionPosition: a().oneOf([ "right", "bottom" ]),
492
- disabled: a().bool,
493
- hidden: a().bool,
494
- icon: a().node,
495
- label: a().string.isRequired,
496
- matchRanges: a().arrayOf(a().shape({
497
- start: a().number.isRequired,
498
- end: a().number.isRequired
489
+ compact: i().bool,
490
+ description: i().string,
491
+ descriptionPosition: i().oneOf([ "right", "bottom" ]),
492
+ disabled: i().bool,
493
+ hidden: i().bool,
494
+ icon: i().node,
495
+ label: i().string.isRequired,
496
+ matchRanges: i().arrayOf(i().shape({
497
+ start: i().number.isRequired,
498
+ end: i().number.isRequired
499
499
  })),
500
500
  /** @private */
501
- onClick: a().func,
501
+ onClick: i().func,
502
502
  /** @private */
503
- selected: a().bool,
504
- selectedAppearance: a().oneOf([ "info", "success", "warning", "error" ]),
505
- selectedBackgroundColor: a().string,
506
- selectedForegroundColor: a().string,
507
- truncate: a().bool,
508
- value: a().oneOfType([ a().string, a().number, a().bool ]).isRequired
503
+ selected: i().bool,
504
+ selectedAppearance: i().oneOf([ "info", "success", "warning", "error" ]),
505
+ selectedBackgroundColor: i().string,
506
+ selectedForegroundColor: i().string,
507
+ truncate: i().bool,
508
+ value: i().oneOfType([ i().string, i().number, i().bool ]).isRequired
509
509
  };
510
510
  var U = {
511
511
  compact: false,
@@ -524,12 +524,12 @@
524
524
  function n() {
525
525
  var e;
526
526
  T(this, n);
527
- for (var r = arguments.length, o = new Array(r), a = 0; a < r; a++) {
528
- o[a] = arguments[a];
527
+ for (var r = arguments.length, o = new Array(r), i = 0; i < r; i++) {
528
+ o[i] = arguments[i];
529
529
  }
530
530
  e = t.call.apply(t, [ this ].concat(o));
531
- W(F(e), "c", null);
532
- W(F(e), "handleMount", (function(t) {
531
+ z(F(e), "c", null);
532
+ z(F(e), "handleMount", (function(t) {
533
533
  e.c = t;
534
534
  }));
535
535
  return e;
@@ -561,8 +561,8 @@
561
561
  } ]);
562
562
  return n;
563
563
  }(n.PureComponent);
564
- W(G, "propTypes", z);
565
- W(G, "defaultProps", U);
564
+ z(G, "propTypes", W);
565
+ z(G, "defaultProps", U);
566
566
  /* harmony default export */ const J = G;
567
567
  // CONCATENATED MODULE: external "lodash/castArray"
568
568
  const Q = require("lodash/castArray");
@@ -578,10 +578,10 @@
578
578
  var re = e.n(ne);
579
579
  // CONCATENATED MODULE: external "lodash/isUndefined"
580
580
  const oe = require("lodash/isUndefined");
581
- var ae = e.n(oe);
581
+ var ie = e.n(oe);
582
582
  // CONCATENATED MODULE: external "lodash/keys"
583
- const ie = require("lodash/keys");
584
- var le = e.n(ie);
583
+ const ae = require("lodash/keys");
584
+ var le = e.n(ae);
585
585
  // CONCATENATED MODULE: external "lodash/memoize"
586
586
  const se = require("lodash/memoize");
587
587
  var ce = e.n(se);
@@ -640,18 +640,18 @@
640
640
  // CONCATENATED MODULE: ./src/Select/icons/Search.tsx
641
641
  var Ne = function e() {
642
642
  var t = (0, Ae.useSplunkTheme)(), n = t.isEnterprise, o = t.isCompact;
643
- var a = (0, u._)("Search");
644
- var i = o ? "20px" : "24px";
643
+ var i = (0, u._)("Search");
644
+ var a = o ? "20px" : "24px";
645
645
  var l = n ? r().createElement(Te(), {
646
646
  role: "presentation",
647
647
  size: "16px",
648
- screenReaderText: a,
648
+ screenReaderText: i,
649
649
  hideDefaultTooltip: true
650
650
  }) : r().createElement(qe(), {
651
651
  role: "presentation",
652
- "aria-label": a,
653
- width: i,
654
- height: i
652
+ "aria-label": i,
653
+ width: a,
654
+ height: a
655
655
  });
656
656
  return l;
657
657
  };
@@ -664,9 +664,9 @@
664
664
  var $e = e.n(Fe);
665
665
  // CONCATENATED MODULE: external "@splunk/react-ui/Switch"
666
666
  const He = require("@splunk/react-ui/Switch");
667
- var We = e.n(He);
667
+ var ze = e.n(He);
668
668
  // CONCATENATED MODULE: ./src/Menu/ItemStyles.ts
669
- var ze = (0, Le.css)([ "color:", ";font-size:", ";line-height:", ";overflow:inherit;white-space:inherit;text-overflow:inherit;" ], (0,
669
+ var We = (0, Le.css)([ "color:", ";font-size:", ";line-height:", ";overflow:inherit;white-space:inherit;text-overflow:inherit;" ], (0,
670
670
  Ae.pick)({
671
671
  prisma: Ae.variables.contentColorDefault,
672
672
  enterprise: Ae.variables.textGray
@@ -676,11 +676,11 @@
676
676
  var Ue = Ke().span.withConfig({
677
677
  displayName: "ItemStyles__StyledItemDescriptionBottom",
678
678
  componentId: "sc-4kc053-0"
679
- })([ "", ";display:block;" ], ze);
679
+ })([ "", ";display:block;" ], We);
680
680
  var Ge = Ke().span.withConfig({
681
681
  displayName: "ItemStyles__StyledItemDescriptionRight",
682
682
  componentId: "sc-4kc053-1"
683
- })([ "", ";float:right;padding-left:", ";max-width:50%;text-align:right;box-sizing:border-box;" ], ze, Ae.variables.spacing);
683
+ })([ "", ";float:right;padding-left:", ";max-width:50%;text-align:right;box-sizing:border-box;" ], We, Ae.variables.spacing);
684
684
  var Je = Ke().div.withConfig({
685
685
  displayName: "ItemStyles__StyledItemSelectedIcon",
686
686
  componentId: "sc-4kc053-2"
@@ -787,7 +787,7 @@
787
787
  Qe, Ae.variables.contentColorActive)
788
788
  });
789
789
  }));
790
- var Ye = Ke()(We()).withConfig({
790
+ var Ye = Ke()(ze()).withConfig({
791
791
  displayName: "ItemStyles__StyledSwitch",
792
792
  componentId: "sc-4kc053-5"
793
793
  })([ "position:absolute;left:", ";top:", ";" ], (0, Ae.pick)({
@@ -843,7 +843,7 @@
843
843
  displayName: "SelectAllOptionStyles__StyledSelectAllLabel",
844
844
  componentId: "y6bn08-0"
845
845
  })([ "font-weight:", ";" ], Ae.variables.fontWeightBold);
846
- var at = Ke()(M).withConfig({
846
+ var it = Ke()(M).withConfig({
847
847
  displayName: "SelectAllOptionStyles__StyledSelectAllOption",
848
848
  componentId: "y6bn08-1"
849
849
  })([ "padding-inline-start:", ";box-shadow:none;" ], (0, Ae.pick)({
@@ -851,26 +851,26 @@
851
851
  enterprise: "32px;"
852
852
  }));
853
853
  // CONCATENATED MODULE: ./src/Select/SelectAllOption.tsx
854
- var it = {
855
- active: a().bool,
856
- elementRef: a().oneOfType([ a().func, a().object ]),
857
- id: a().string,
858
- onClick: a().func,
859
- selectAllLabel: a().string,
860
- totalCount: a().number,
861
- changedToggle: a().bool,
862
- selected: a().oneOf([ false, true, "some" ])
854
+ var at = {
855
+ active: i().bool,
856
+ elementRef: i().oneOfType([ i().func, i().object ]),
857
+ id: i().string,
858
+ onClick: i().func,
859
+ selectAllLabel: i().string,
860
+ totalCount: i().number,
861
+ changedToggle: i().bool,
862
+ selected: i().oneOf([ false, true, "some" ])
863
863
  };
864
864
  var lt = r().forwardRef((function(e, t) {
865
- var n = e.active, o = e.id, a = e.onClick, i = e.selectAllLabel, l = e.totalCount, s = e.changedToggle, c = e.selected;
865
+ var n = e.active, o = e.id, i = e.onClick, a = e.selectAllLabel, l = e.totalCount, s = e.changedToggle, c = e.selected;
866
866
  // When toggle is changed the total count is not displayed anymore so the count is now shown in the Select all menu item
867
867
  var p = s ? " (".concat(l === null || l === void 0 ? void 0 : l.toString(), ")") : "";
868
868
 
869
- return r().createElement(at, {
870
- label: i,
869
+ return r().createElement(it, {
870
+ label: a,
871
871
  value: "selectAll",
872
872
  key: "selectAll",
873
- onClick: a,
873
+ onClick: i,
874
874
  "data-test": "select-all",
875
875
  "aria-keyshortcuts": "Control+A",
876
876
  id: o,
@@ -895,9 +895,9 @@
895
895
  $truncate: false
896
896
  }, r().createElement(ot, {
897
897
  $truncate: false
898
- }, i))));
898
+ }, a))));
899
899
  }));
900
- lt.propTypes = it;
900
+ lt.propTypes = at;
901
901
  /* harmony default export */ const st = lt;
902
902
  // CONCATENATED MODULE: external "@splunk/react-ui/Button"
903
903
  const ct = require("@splunk/react-ui/Button");
@@ -982,7 +982,7 @@
982
982
  }
983
983
  var r = null;
984
984
  var o = false;
985
- var a = t.filter((function(e) {
985
+ var i = t.filter((function(e) {
986
986
  var t = gt(e, n.index);
987
987
  if (t === n.value) {
988
988
  o = true;
@@ -991,22 +991,22 @@
991
991
  // If we haven't found a match yet, keep track of the next closest match.
992
992
  // Secondary matching looks for the closest character of a higher value, and failing that, closest of a lower value.
993
993
  if (!o) {
994
- var a = gt(r, n.index);
995
- if (!a) {
994
+ var i = gt(r, n.index);
995
+ if (!i) {
996
996
  r = e;
997
997
  } else if (t > n.value) {
998
- if (a < n.value) {
998
+ if (i < n.value) {
999
999
  r = e;
1000
- } else if (a > t) {
1000
+ } else if (i > t) {
1001
1001
  r = e;
1002
1002
  }
1003
- } else if (t > a) {
1003
+ } else if (t > i) {
1004
1004
  r = e;
1005
1005
  }
1006
1006
  }
1007
1007
  return false;
1008
1008
  }));
1009
- return a.length === 0 && r ? [ r ] : a;
1009
+ return i.length === 0 && r ? [ r ] : i;
1010
1010
  };
1011
1011
  // CONCATENATED MODULE: ./src/utils/ssrDocument.ts
1012
1012
  /* eslint-disable @typescript-eslint/no-empty-function */
@@ -1155,20 +1155,20 @@
1155
1155
  var n = [];
1156
1156
  var r = true;
1157
1157
  var o = false;
1158
- var a = undefined;
1158
+ var i = undefined;
1159
1159
  try {
1160
- for (var i = e[Symbol.iterator](), l; !(r = (l = i.next()).done); r = true) {
1160
+ for (var a = e[Symbol.iterator](), l; !(r = (l = a.next()).done); r = true) {
1161
1161
  n.push(l.value);
1162
1162
  if (t && n.length === t) break;
1163
1163
  }
1164
1164
  } catch (e) {
1165
1165
  o = true;
1166
- a = e;
1166
+ i = e;
1167
1167
  } finally {
1168
1168
  try {
1169
- if (!r && i["return"] != null) i["return"]();
1169
+ if (!r && a["return"] != null) a["return"]();
1170
1170
  } finally {
1171
- if (o) throw a;
1171
+ if (o) throw i;
1172
1172
  }
1173
1173
  }
1174
1174
  return n;
@@ -1245,10 +1245,10 @@
1245
1245
  function Kt(e) {
1246
1246
  var t = Ht();
1247
1247
  return function n() {
1248
- var r = Wt(e), o;
1248
+ var r = zt(e), o;
1249
1249
  if (t) {
1250
- var a = Wt(this).constructor;
1251
- o = Reflect.construct(r, arguments, a);
1250
+ var i = zt(this).constructor;
1251
+ o = Reflect.construct(r, arguments, i);
1252
1252
  } else {
1253
1253
  o = r.apply(this, arguments);
1254
1254
  }
@@ -1256,7 +1256,7 @@
1256
1256
  };
1257
1257
  }
1258
1258
  function Ft(e, t) {
1259
- if (t && (zt(t) === "object" || typeof t === "function")) {
1259
+ if (t && (Wt(t) === "object" || typeof t === "function")) {
1260
1260
  return t;
1261
1261
  }
1262
1262
  return $t(e);
@@ -1278,24 +1278,24 @@
1278
1278
  return false;
1279
1279
  }
1280
1280
  }
1281
- function Wt(e) {
1282
- Wt = Object.setPrototypeOf ? Object.getPrototypeOf : function e(t) {
1281
+ function zt(e) {
1282
+ zt = Object.setPrototypeOf ? Object.getPrototypeOf : function e(t) {
1283
1283
  return t.__proto__ || Object.getPrototypeOf(t);
1284
1284
  };
1285
- return Wt(e);
1285
+ return zt(e);
1286
1286
  }
1287
- function zt(e) {
1287
+ function Wt(e) {
1288
1288
  "@babel/helpers - typeof";
1289
1289
  if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
1290
- zt = function e(t) {
1290
+ Wt = function e(t) {
1291
1291
  return typeof t;
1292
1292
  };
1293
1293
  } else {
1294
- zt = function e(t) {
1294
+ Wt = function e(t) {
1295
1295
  return t && typeof Symbol === "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
1296
1296
  };
1297
1297
  }
1298
- return zt(e);
1298
+ return Wt(e);
1299
1299
  }
1300
1300
  function Ut(e, t) {
1301
1301
  var n = Object.keys(e);
@@ -1339,48 +1339,50 @@
1339
1339
  return e;
1340
1340
  }
1341
1341
  var Qt = {
1342
- allowKeyMatching: a().bool,
1343
- allowNewValues: a().bool,
1344
- animateLoading: a().bool,
1345
- appearance: a().oneOf([ "default", "link", "primary", "pill", "toggle", "flat" ]),
1346
- append: a().bool,
1347
- children: a().node,
1348
- defaultPlacement: a().oneOf([ "above", "below", "vertical" ]),
1349
- defaultValues: a().array,
1350
- describedBy: a().string,
1351
- disabled: a().bool,
1352
- elementRef: a().oneOfType([ a().func, a().object ]),
1353
- error: a().bool,
1354
- filter: a().oneOf([ false, true, "controlled" ]),
1355
- footerMessage: a().node,
1356
- inline: a().bool,
1357
- inputId: a().string,
1358
- inputRef: a().oneOfType([ a().func, a().object ]),
1359
- isLoadingOptions: a().bool,
1360
- labelledBy: a().string,
1361
- labelText: a().string,
1362
- loadingMessage: a().node,
1363
- menuStyle: a().object,
1364
- multiple: a().bool,
1365
- name: a().string,
1366
- noOptionsMessage: a().node,
1367
- onChange: a().func,
1368
- onClose: a().func,
1369
- onFilterChange: a().func,
1370
- onOpen: a().func,
1371
- onScroll: a().func,
1372
- onScrollBottom: a().func,
1342
+ allowKeyMatching: i().bool,
1343
+ allowNewValues: i().bool,
1344
+ animateLoading: i().bool,
1345
+ appearance: i().oneOf([ "default", "link", "primary", "pill", "toggle", "flat" ]),
1346
+ append: i().bool,
1347
+ children: i().node,
1348
+ defaultPlacement: i().oneOf([ "above", "below", "vertical" ]),
1349
+ defaultValues: i().array,
1350
+ describedBy: i().string,
1351
+ disabled: i().bool,
1352
+ elementRef: i().oneOfType([ i().func, i().object ]),
1353
+ error: i().bool,
1354
+ filter: i().oneOf([ false, true, "controlled" ]),
1355
+ footerMessage: i().node,
1356
+ inline: i().bool,
1357
+ inputId: i().string,
1358
+ inputRef: i().oneOfType([ i().func, i().object ]),
1359
+ isLoadingOptions: i().bool,
1360
+ labelledBy: i().string,
1361
+ labelText: i().string,
1362
+ loadingMessage: i().node,
1363
+ menuStyle: i().object,
1364
+ multiple: i().bool,
1365
+ name: i().string,
1366
+ noOptionsMessage: i().node,
1367
+ onChange: i().func,
1368
+ onClose: i().func,
1369
+ onFilterChange: i().func,
1370
+ onOpen: i().func,
1371
+ onScroll: i().func,
1372
+ onScrollBottom: i().func,
1373
+ /** @private. */
1374
+ required: i().bool,
1375
+ placeholder: i().string,
1376
+ prefixLabel: i().string,
1377
+ prepend: i().bool,
1378
+ repositionMode: i().oneOf([ "none", "flip" ]),
1379
+ selectAllAppearance: i().oneOf([ "buttongroup", "checkbox" ]),
1380
+ showSelectedValuesFirst: i().oneOf([ "nextOpen", "immediately", "never" ]),
1381
+ suffixLabel: i().string,
1382
+ tabConfirmsNewValue: i().bool,
1383
+ values: i().array,
1373
1384
  /** @private. */
1374
- required: a().bool,
1375
- placeholder: a().string,
1376
- prefixLabel: a().string,
1377
- prepend: a().bool,
1378
- repositionMode: a().oneOf([ "none", "flip" ]),
1379
- selectAllAppearance: a().oneOf([ "buttongroup", "checkbox" ]),
1380
- showSelectedValuesFirst: a().oneOf([ "nextOpen", "immediately", "never" ]),
1381
- suffixLabel: a().string,
1382
- tabConfirmsNewValue: a().bool,
1383
- values: a().array
1385
+ virtualization: i().number
1384
1386
  };
1385
1387
  var Xt = {
1386
1388
  allowKeyMatching: true,
@@ -1422,7 +1424,7 @@
1422
1424
  return e && l()(e.props, "value");
1423
1425
  }
1424
1426
  function nn(e, t) {
1425
- return "".concat(zt(e), "-").concat(e, "-").concat(t);
1427
+ return "".concat(Wt(e), "-").concat(e, "-").concat(t);
1426
1428
  }
1427
1429
  var rn = function(e) {
1428
1430
  Bt(o, e);
@@ -1435,149 +1437,149 @@
1435
1437
  }
1436
1438
  } ]);
1437
1439
  function o(e) {
1438
- var a;
1440
+ var i;
1439
1441
  Dt(this, o);
1440
- a = t.call(this, e);
1441
- Jt($t(a), "activeItemId", void 0);
1442
- Jt($t(a), "activeValue", void 0);
1443
- Jt($t(a), "availableOptionCount", void 0);
1444
- Jt($t(a), "controlledExternally", void 0);
1445
- Jt($t(a), "displayedValues", void 0);
1446
- Jt($t(a), "dropdown", null);
1447
- Jt($t(a), "firstSelectedEnabledOption", null);
1448
- Jt($t(a), "firstSelectedOptionIndex", void 0);
1449
- Jt($t(a), "menuId", void 0);
1450
- Jt($t(a), "previousActiveIndex", null);
1451
- Jt($t(a), "selectedOptionCount", void 0);
1452
- Jt($t(a), "optionRefsByKey", void 0);
1453
- Jt($t(a), "matchCharacter", void 0);
1454
- Jt($t(a), "matchTimeout", void 0);
1455
- Jt($t(a), "currentMatchOptions", void 0);
1456
- Jt($t(a), "availableMatchOptions", void 0);
1457
- Jt($t(a), "optionSelection", void 0);
1458
- Jt($t(a), "resetMatches", (function() {
1459
- a.matchCharacter = null;
1460
- a.currentMatchOptions = [];
1461
- if (a.matchTimeout) {
1462
- clearTimeout(a.matchTimeout);
1442
+ i = t.call(this, e);
1443
+ Jt($t(i), "activeItemId", void 0);
1444
+ Jt($t(i), "activeValue", void 0);
1445
+ Jt($t(i), "availableOptionCount", void 0);
1446
+ Jt($t(i), "controlledExternally", void 0);
1447
+ Jt($t(i), "displayedValues", void 0);
1448
+ Jt($t(i), "dropdown", null);
1449
+ Jt($t(i), "firstSelectedEnabledOption", null);
1450
+ Jt($t(i), "firstSelectedOptionIndex", void 0);
1451
+ Jt($t(i), "menuId", void 0);
1452
+ Jt($t(i), "previousActiveIndex", null);
1453
+ Jt($t(i), "selectedOptionCount", void 0);
1454
+ Jt($t(i), "optionRefsByKey", void 0);
1455
+ Jt($t(i), "matchCharacter", void 0);
1456
+ Jt($t(i), "matchTimeout", void 0);
1457
+ Jt($t(i), "currentMatchOptions", void 0);
1458
+ Jt($t(i), "availableMatchOptions", void 0);
1459
+ Jt($t(i), "optionSelection", void 0);
1460
+ Jt($t(i), "resetMatches", (function() {
1461
+ i.matchCharacter = null;
1462
+ i.currentMatchOptions = [];
1463
+ if (i.matchTimeout) {
1464
+ clearTimeout(i.matchTimeout);
1463
1465
  }
1464
1466
  }));
1465
- Jt($t(a), "handleSelectAll", (function(e) {
1467
+ Jt($t(i), "handleSelectAll", (function(e) {
1466
1468
  var t, n, o;
1467
- var i = a.props, l = i.name, s = i.children, c = i.multiple;
1469
+ var a = i.props, l = a.name, s = a.children, c = a.multiple;
1468
1470
  // this doesn't make sense if we can't select multiple values
1469
1471
  if (!c) {
1470
1472
  return;
1471
1473
  }
1472
- var u = (t = a.getCurrentValues()) !== null && t !== void 0 ? t : [];
1473
- var p = de()(u.concat(a.displayedValues));
1474
+ var u = (t = i.getCurrentValues()) !== null && t !== void 0 ? t : [];
1475
+ var p = de()(u.concat(i.displayedValues));
1474
1476
  p = r().Children.toArray(s).filter((function(e) {
1475
1477
  return tn(e) && re()(p, e.props.value) && (!e.props.disabled || re()(u, e.props.value));
1476
1478
  })).map((function(e) {
1477
1479
  return e.props.value;
1478
1480
  }));
1479
- if (!a.isControlled()) {
1480
- a.setState({
1481
+ if (!i.isControlled()) {
1482
+ i.setState({
1481
1483
  values: p
1482
1484
  });
1483
1485
  }
1484
- (n = (o = a.props).onChange) === null || n === void 0 ? void 0 : n.call(o, e, {
1486
+ (n = (o = i.props).onChange) === null || n === void 0 ? void 0 : n.call(o, e, {
1485
1487
  values: p,
1486
1488
  name: l,
1487
1489
  reason: "selectAll"
1488
1490
  });
1489
1491
  }));
1490
- Jt($t(a), "handleClearAll", (function(e) {
1492
+ Jt($t(i), "handleClearAll", (function(e) {
1491
1493
  var t, n, o;
1492
- var i = a.props, l = i.name, s = i.children, c = i.multiple;
1494
+ var a = i.props, l = a.name, s = a.children, c = a.multiple;
1493
1495
  // this doesn't make sense if we can't select multiple values
1494
1496
  if (!c) {
1495
1497
  return;
1496
1498
  }
1497
- var u = (t = a.getCurrentValues()) !== null && t !== void 0 ? t : [];
1498
- var p = he().apply(void 0, [ u ].concat(Mt(a.displayedValues)));
1499
+ var u = (t = i.getCurrentValues()) !== null && t !== void 0 ? t : [];
1500
+ var p = he().apply(void 0, [ u ].concat(Mt(i.displayedValues)));
1499
1501
  // this will unselect all selected values unless those values are disabled or hidden by the filter
1500
1502
  var f = r().Children.toArray(s).filter((function(e) {
1501
1503
  return tn(e) && (re()(u, e.props.value) && e.props.disabled || re()(p, e.props.value));
1502
1504
  })).map((function(e) {
1503
1505
  return e.props.value;
1504
1506
  }));
1505
- if (!a.isControlled()) {
1506
- a.setState({
1507
+ if (!i.isControlled()) {
1508
+ i.setState({
1507
1509
  values: f
1508
1510
  });
1509
1511
  }
1510
- (n = (o = a.props).onChange) === null || n === void 0 ? void 0 : n.call(o, e, {
1512
+ (n = (o = i.props).onChange) === null || n === void 0 ? void 0 : n.call(o, e, {
1511
1513
  values: f,
1512
1514
  name: l,
1513
1515
  reason: "clearAll"
1514
1516
  });
1515
1517
  }));
1516
- Jt($t(a), "handleTextKeyDown", (function(e) {
1517
- var t = a.props, r = t.children, o = t.onScrollBottom, i = t.tabConfirmsNewValue;
1518
+ Jt($t(i), "handleTextKeyDown", (function(e) {
1519
+ var t = i.props, r = t.children, o = t.onScrollBottom, a = t.tabConfirmsNewValue;
1518
1520
  var l = (0, ge.keycode)(e.nativeEvent);
1519
1521
  if (l === "tab") {
1520
- if (i && !ae()(a.activeValue) && a.availableOptionCount <= 1) {
1522
+ if (a && !ie()(i.activeValue) && i.availableOptionCount <= 1) {
1521
1523
  e.preventDefault();
1522
- a.toggleValue(e, a.activeValue);
1524
+ i.toggleValue(e, i.activeValue);
1523
1525
  }
1524
1526
  }
1525
1527
  if (e.shiftKey || e.metaKey || e.ctrlKey) {
1526
1528
  if (l === "a" && (e.ctrlKey || e.metaKey)) {
1527
1529
  // handle control + A
1528
- if (a.optionSelection === "all") {
1529
- a.handleClearAll(e);
1530
+ if (i.optionSelection === "all") {
1531
+ i.handleClearAll(e);
1530
1532
  } else {
1531
- a.handleSelectAll(e);
1533
+ i.handleSelectAll(e);
1532
1534
  }
1533
1535
  }
1534
1536
  return;
1535
1537
  }
1536
1538
  if (l === "down") {
1537
1539
  e.preventDefault();
1538
- a.setState((function(e) {
1540
+ i.setState((function(e) {
1539
1541
  return {
1540
- activeIndex: Math.min(e.activeIndex + 1, a.props.selectAllAppearance === "checkbox" ? a.availableOptionCount : a.availableOptionCount - 1)
1542
+ activeIndex: Math.min(e.activeIndex + 1, i.props.selectAllAppearance === "checkbox" ? i.availableOptionCount : i.availableOptionCount - 1)
1541
1543
  };
1542
1544
  }));
1543
1545
  if (r && o) {
1544
1546
  var s;
1545
- var c = n.Children.toArray(r).length - (2 + ((s = a.getCurrentValues()) !== null && s !== void 0 ? s : []).length);
1546
- if (a.state.activeIndex === c) {
1547
- a.handleScrollBottom(e);
1547
+ var c = n.Children.toArray(r).length - (2 + ((s = i.getCurrentValues()) !== null && s !== void 0 ? s : []).length);
1548
+ if (i.state.activeIndex === c) {
1549
+ i.handleScrollBottom(e);
1548
1550
  }
1549
1551
  }
1550
1552
  }
1551
1553
  if (l === "up") {
1552
1554
  e.preventDefault();
1553
- a.setState((function(e) {
1555
+ i.setState((function(e) {
1554
1556
  return {
1555
1557
  activeIndex: Math.max(e.activeIndex - 1, 0)
1556
1558
  };
1557
1559
  }));
1558
1560
  }
1559
- if (l === "enter" && !ae()(a.activeValue) && a.state.open) {
1560
- if (a.activeValue === "selectAll") {
1561
- if (a.optionSelection === "all") {
1562
- a.handleClearAll(e);
1561
+ if (l === "enter" && !ie()(i.activeValue) && i.state.open) {
1562
+ if (i.activeValue === "selectAll") {
1563
+ if (i.optionSelection === "all") {
1564
+ i.handleClearAll(e);
1563
1565
  } else {
1564
- a.handleSelectAll(e);
1566
+ i.handleSelectAll(e);
1565
1567
  }
1566
1568
  } else {
1567
1569
  e.preventDefault();
1568
- a.toggleValue(e, a.activeValue);
1570
+ i.toggleValue(e, i.activeValue);
1569
1571
  }
1570
1572
  }
1571
1573
  }));
1572
- Jt($t(a), "handleMenuOptionClick", (function(e, t) {
1574
+ Jt($t(i), "handleMenuOptionClick", (function(e, t) {
1573
1575
  var n = t.value;
1574
1576
  e.preventDefault();
1575
- if (!a.state.open) {
1577
+ if (!i.state.open) {
1576
1578
  return;
1577
1579
  }
1578
- a.toggleValue(e, n);
1580
+ i.toggleValue(e, n);
1579
1581
  }));
1580
- Jt($t(a), "handleMenuOptionKeyDown", (function(e, t) {
1582
+ Jt($t(i), "handleMenuOptionKeyDown", (function(e, t) {
1581
1583
  var n = e.nativeEvent.key;
1582
1584
  // Checking for a single character to avoid complications from double-byte languages and emojis.
1583
1585
  if (n.length === 1) {
@@ -1586,131 +1588,131 @@
1586
1588
  index: 0,
1587
1589
  value: n
1588
1590
  };
1589
- if (!a.matchCharacter) {
1591
+ if (!i.matchCharacter) {
1590
1592
  if (n === " ") {
1591
- a.resetMatches();
1593
+ i.resetMatches();
1592
1594
  return;
1593
1595
  }
1594
- r = Ot(a.availableMatchOptions, o);
1595
- } else if (a.currentMatchOptions.length > 1) {
1596
- o.index = a.matchCharacter.index + 1;
1597
- r = Ot(a.currentMatchOptions, o);
1596
+ r = Ot(i.availableMatchOptions, o);
1597
+ } else if (i.currentMatchOptions.length > 1) {
1598
+ o.index = i.matchCharacter.index + 1;
1599
+ r = Ot(i.currentMatchOptions, o);
1598
1600
  }
1599
1601
  if (r.length) {
1600
- var i = 0;
1602
+ var a = 0;
1601
1603
  // If the active option is a first character match, cycle to the next matching option.
1602
1604
  if (o.index === 0 && r.length > 1) {
1603
- var l = r.indexOf(a.availableMatchOptions[t]);
1605
+ var l = r.indexOf(i.availableMatchOptions[t]);
1604
1606
  if (l >= 0) {
1605
- i = l === r.length - 1 ? 0 : l + 1;
1607
+ a = l === r.length - 1 ? 0 : l + 1;
1606
1608
  }
1607
1609
  }
1608
- var s = r[i];
1609
- var c = a.optionRefsByKey[nn(s.value, s.label)];
1610
+ var s = r[a];
1611
+ var c = i.optionRefsByKey[nn(s.value, s.label)];
1610
1612
  if (c != null) {
1611
1613
  var u;
1612
1614
  (u = c.focus) === null || u === void 0 ? void 0 : u.call(c);
1613
1615
  }
1614
1616
  }
1615
- a.currentMatchOptions = r;
1616
- a.matchCharacter = o;
1617
- if (a.matchTimeout) {
1618
- clearTimeout(a.matchTimeout);
1617
+ i.currentMatchOptions = r;
1618
+ i.matchCharacter = o;
1619
+ if (i.matchTimeout) {
1620
+ clearTimeout(i.matchTimeout);
1619
1621
  }
1620
- a.matchTimeout = setTimeout(a.resetMatches, 500);
1622
+ i.matchTimeout = setTimeout(i.resetMatches, 500);
1621
1623
  e.preventDefault();
1622
1624
  e.stopPropagation();
1623
1625
  }
1624
1626
  }));
1625
- Jt($t(a), "handleTextChange", (function(e, t) {
1627
+ Jt($t(i), "handleTextChange", (function(e, t) {
1626
1628
  var n, r;
1627
1629
  var o = t.value;
1628
- a.setState({
1630
+ i.setState({
1629
1631
  filterKeyword: o,
1630
1632
  open: true,
1631
1633
  activeIndex: 0
1632
1634
  });
1633
- (n = (r = a.props).onFilterChange) === null || n === void 0 ? void 0 : n.call(r, e, {
1635
+ (n = (r = i.props).onFilterChange) === null || n === void 0 ? void 0 : n.call(r, e, {
1634
1636
  keyword: o
1635
1637
  });
1636
1638
  }));
1637
- Jt($t(a), "handleTextFocus", (function() {
1638
- a.setState({
1639
+ Jt($t(i), "handleTextFocus", (function() {
1640
+ i.setState({
1639
1641
  textHasFocus: true
1640
1642
  });
1641
1643
  }));
1642
- Jt($t(a), "handleTextBlur", (function() {
1643
- a.setState({
1644
+ Jt($t(i), "handleTextBlur", (function() {
1645
+ i.setState({
1644
1646
  textHasFocus: false
1645
1647
  });
1646
1648
  }));
1647
- Jt($t(a), "handleRequestOpen", (function(e) {
1649
+ Jt($t(i), "handleRequestOpen", (function(e) {
1648
1650
  var t = {
1649
1651
  open: true,
1650
- topValues: a.getTopValues()
1652
+ topValues: i.getTopValues()
1651
1653
  };
1652
1654
  // SUI-3234: preserve existing behavior difference between <Select> and <Multiselect.Compact>
1653
- if (a.props.multiple) {
1655
+ if (i.props.multiple) {
1654
1656
  t.filterKeyword = "";
1655
1657
  }
1656
- var n = a.state.filterKeyword;
1657
- a.setState(t, (function() {
1658
+ var n = i.state.filterKeyword;
1659
+ i.setState(t, (function() {
1658
1660
  var t, r;
1659
- (t = (r = a.props).onOpen) === null || t === void 0 ? void 0 : t.call(r);
1660
- if (a.firstSelectedEnabledOption && !a.hasFilter()) {
1661
- a.firstSelectedEnabledOption.focus();
1661
+ (t = (r = i.props).onOpen) === null || t === void 0 ? void 0 : t.call(r);
1662
+ if (i.firstSelectedEnabledOption && !i.hasFilter()) {
1663
+ i.firstSelectedEnabledOption.focus();
1662
1664
  } else {
1663
1665
  var o;
1664
- a.setState({
1665
- activeIndex: (o = a.firstSelectedOptionIndex) !== null && o !== void 0 ? o : 0
1666
+ i.setState({
1667
+ activeIndex: (o = i.firstSelectedOptionIndex) !== null && o !== void 0 ? o : 0
1666
1668
  });
1667
1669
  }
1668
- if (n !== a.state.filterKeyword) {
1669
- var i, l;
1670
- (i = (l = a.props).onFilterChange) === null || i === void 0 ? void 0 : i.call(l, e, {
1671
- keyword: a.state.filterKeyword
1670
+ if (n !== i.state.filterKeyword) {
1671
+ var a, l;
1672
+ (a = (l = i.props).onFilterChange) === null || a === void 0 ? void 0 : a.call(l, e, {
1673
+ keyword: i.state.filterKeyword
1672
1674
  });
1673
1675
  }
1674
1676
  }));
1675
1677
  }));
1676
- Jt($t(a), "handleRequestClose", (function() {
1677
- a.setState({
1678
+ Jt($t(i), "handleRequestClose", (function() {
1679
+ i.setState({
1678
1680
  open: false,
1679
1681
  activeIndex: 0
1680
1682
  }, (function() {
1681
1683
  var e, t;
1682
- a.previousActiveIndex = null;
1683
- (e = (t = a.props).onClose) === null || e === void 0 ? void 0 : e.call(t);
1684
+ i.previousActiveIndex = null;
1685
+ (e = (t = i.props).onClose) === null || e === void 0 ? void 0 : e.call(t);
1684
1686
  }));
1685
1687
  }));
1686
- Jt($t(a), "handleScrollBottom", (function(e) {
1687
- if (a.state.open && !a.props.isLoadingOptions) {
1688
+ Jt($t(i), "handleScrollBottom", (function(e) {
1689
+ if (i.state.open && !i.props.isLoadingOptions) {
1688
1690
  var t, n;
1689
- (t = (n = a.props).onScrollBottom) === null || t === void 0 ? void 0 : t.call(n, e);
1691
+ (t = (n = i.props).onScrollBottom) === null || t === void 0 ? void 0 : t.call(n, e);
1690
1692
  }
1691
1693
  }));
1692
- Jt($t(a), "handleActiveOptionMount", (function(e) {
1693
- if (a.previousActiveIndex !== a.state.activeIndex) {
1694
+ Jt($t(i), "handleActiveOptionMount", (function(e) {
1695
+ if (i.previousActiveIndex !== i.state.activeIndex) {
1694
1696
  e === null || e === void 0 ? void 0 : e.scrollIntoViewIfNeeded();
1695
1697
  }
1696
1698
  }));
1697
- Jt($t(a), "handleOptionMount", (function(e, t, n) {
1699
+ Jt($t(i), "handleOptionMount", (function(e, t, n) {
1698
1700
  if (n) {
1699
- a.firstSelectedEnabledOption = e;
1701
+ i.firstSelectedEnabledOption = e;
1700
1702
  }
1701
1703
  if (e == null) {
1702
- delete a.optionRefsByKey[t];
1704
+ delete i.optionRefsByKey[t];
1703
1705
  } else {
1704
- a.optionRefsByKey[t] = e;
1706
+ i.optionRefsByKey[t] = e;
1705
1707
  }
1706
1708
  }));
1707
- Jt($t(a), "createToggle", (function() {
1709
+ Jt($t(i), "createToggle", (function() {
1708
1710
  var e;
1709
- var t = a.props, i = t.toggle, l = t.appearance, s = t.children, p = t.describedBy, f = t.disabled, d = t.elementRef, v = t.error, h = t.inline, b = t.labelledBy, y = t.labelText, m = t.multiple, g = t.placeholder, O = t.prefixLabel, w = t.required, S = t.suffixLabel;
1711
+ var t = i.props, a = t.toggle, l = t.appearance, s = t.children, p = t.describedBy, f = t.disabled, d = t.elementRef, v = t.error, h = t.inline, b = t.labelledBy, y = t.labelText, m = t.multiple, g = t.placeholder, O = t.prefixLabel, w = t.required, S = t.suffixLabel;
1710
1712
  var C;
1711
1713
  var x;
1712
1714
  // Generate buttonLabels
1713
- var k = (e = a.getCurrentValues()) !== null && e !== void 0 ? e : [];
1715
+ var k = (e = i.getCurrentValues()) !== null && e !== void 0 ? e : [];
1714
1716
  var I = n.Children.toArray(s);
1715
1717
  var j = k.reduce((function(e, t, n, r) {
1716
1718
  var o = Z()(I, (function(e) {
@@ -1734,7 +1736,7 @@
1734
1736
  x = j;
1735
1737
  // only apply prefix / suffix if the label is not empty
1736
1738
  if (x.length > 0) {
1737
- x = a.wrapLabel({
1739
+ x = i.wrapLabel({
1738
1740
  prefixLabel: O,
1739
1741
  label: x,
1740
1742
  suffixLabel: S
@@ -1751,7 +1753,7 @@
1751
1753
  // If there's more than one item selected, read out the selected total
1752
1754
  // rather than reading out each selected item
1753
1755
  if (x.length > 1) {
1754
- _ = a.wrapLabel({
1756
+ _ = i.wrapLabel({
1755
1757
  prefixLabel: O,
1756
1758
  label: [ "".concat(k.length, " items selected") ],
1757
1759
  suffixLabel: S
@@ -1768,16 +1770,16 @@
1768
1770
  disabled: f,
1769
1771
  elementRef: d,
1770
1772
  error: v
1771
- }, c()(a.props, le()(o.propTypes)));
1773
+ }, c()(i.props, le()(o.propTypes)));
1772
1774
  if (m) {
1773
1775
  E["data-test-values"] = JSON.stringify(k);
1774
1776
  } else {
1775
1777
  var M = It(k, 1), A = M[0];
1776
1778
  E["data-test-value"] = A;
1777
1779
  }
1778
- if (i) {
1780
+ if (a) {
1779
1781
 
1780
- return (0, n.cloneElement)(i, E);
1782
+ return (0, n.cloneElement)(a, E);
1781
1783
  }
1782
1784
  if (l === "link") {
1783
1785
 
@@ -1795,61 +1797,61 @@
1795
1797
  inline: h,
1796
1798
  isMenu: true,
1797
1799
  "aria-haspopup": "listbox",
1798
- "aria-owns": a.menuId,
1799
- onClick: a.props.onClick
1800
- }, pe()(a.props, o.invalidLinkAppearanceProps)), !!k.length && m && r().createElement(bt, {
1800
+ "aria-owns": i.menuId,
1801
+ onClick: i.props.onClick
1802
+ }, pe()(i.props, o.invalidLinkAppearanceProps)), !!k.length && m && r().createElement(bt, {
1801
1803
  "data-role": "count"
1802
1804
  }, "(", k.length, ")"));
1803
1805
  }));
1804
- Jt($t(a), "createChildren", (function() {
1805
- var e = a.state, t = e.filterKeyword, o = e.textHasFocus, i = e.topValues;
1806
- var l = a.props, s = l.allowKeyMatching, c = l.allowNewValues, f = l.filter, d = l.multiple, v = l.selectAllAppearance, h = l.showSelectedValuesFirst, b = l.isLoadingOptions, y = l.onScrollBottom;
1807
- var m = a.getCurrentValues();
1808
- a.availableOptionCount = 0;
1809
- a.firstSelectedOptionIndex = undefined;
1810
- a.selectedOptionCount = 0;
1811
- a.activeValue = undefined;
1812
- a.availableMatchOptions = [];
1806
+ Jt($t(i), "createChildren", (function() {
1807
+ var e = i.state, t = e.filterKeyword, o = e.textHasFocus, a = e.topValues;
1808
+ var l = i.props, s = l.allowKeyMatching, c = l.allowNewValues, f = l.filter, d = l.multiple, v = l.selectAllAppearance, h = l.showSelectedValuesFirst, b = l.isLoadingOptions, y = l.onScrollBottom;
1809
+ var m = i.getCurrentValues();
1810
+ i.availableOptionCount = 0;
1811
+ i.firstSelectedOptionIndex = undefined;
1812
+ i.selectedOptionCount = 0;
1813
+ i.activeValue = undefined;
1814
+ i.availableMatchOptions = [];
1813
1815
  var g;
1814
1816
  var O = 0;
1815
1817
  var w = false;
1816
1818
  // used to avoid overwriting the selected item ref in multiple mode
1817
1819
  var S;
1818
- var C = h === "immediately" ? a.getTopValues() : i;
1819
- var x = n.Children.toArray(a.props.children).reduce((function(e, t, o) {
1820
+ var C = h === "immediately" ? i.getTopValues() : a;
1821
+ var x = n.Children.toArray(i.props.children).reduce((function(e, t, o) {
1820
1822
  // ignore Headings and Dividers
1821
1823
  if (!tn(t)) {
1822
1824
  e.push(t);
1823
1825
  return e;
1824
1826
  }
1825
1827
  // Find out if the search string exactly matches a value
1826
- if (t.props.value === a.state.filterKeyword) {
1828
+ if (t.props.value === i.state.filterKeyword) {
1827
1829
  g = true;
1828
1830
  }
1829
- var i = m && m.indexOf(t.props.value) >= 0;
1830
- var l = !!i && !t.props.disabled && !S;
1831
+ var a = m && m.indexOf(t.props.value) >= 0;
1832
+ var l = !!a && !t.props.disabled && !S;
1831
1833
  var c = s && !d && !f && !b && !y;
1832
1834
  var u = nn(t.props.value, t.props.label);
1833
1835
  var v = -1;
1834
1836
  if (c && !t.props.disabled && !t.props.hidden) {
1835
- a.availableMatchOptions.push({
1837
+ i.availableMatchOptions.push({
1836
1838
  label: t.props.label,
1837
1839
  value: t.props.value
1838
1840
  });
1839
- v = a.availableMatchOptions.length - 1;
1841
+ v = i.availableMatchOptions.length - 1;
1840
1842
  }
1841
1843
  // Format the Menu.Item
1842
1844
  var h = (0, n.cloneElement)(t, {
1843
1845
  key: t.key || o,
1844
- onClick: a.handleMenuOptionClick,
1846
+ onClick: i.handleMenuOptionClick,
1845
1847
  onKeyDown: c ? function(e) {
1846
- return a.handleMenuOptionKeyDown(e, v);
1848
+ return i.handleMenuOptionKeyDown(e, v);
1847
1849
  } : undefined,
1848
- selected: i,
1850
+ selected: a,
1849
1851
  multiple: d,
1850
1852
  role: "option",
1851
1853
  ref: function e(t) {
1852
- return a.handleOptionMount(t, u, l);
1854
+ return i.handleOptionMount(t, u, l);
1853
1855
  }
1854
1856
  });
1855
1857
  if (l) {
@@ -1876,7 +1878,7 @@
1876
1878
  return tn(t) && t.props && t.props.value === e;
1877
1879
  }));
1878
1880
  if (!t) {
1879
- if (e === a.state.filterKeyword) {
1881
+ if (e === i.state.filterKeyword) {
1880
1882
  g = true;
1881
1883
  }
1882
1884
  var n = C && C.indexOf(e) >= 0;
@@ -1892,7 +1894,7 @@
1892
1894
  label: String(e),
1893
1895
  value: e,
1894
1896
  key: "missing-value-".concat(e),
1895
- onClick: a.handleMenuOptionClick,
1897
+ onClick: i.handleMenuOptionClick,
1896
1898
  multiple: d,
1897
1899
  selected: true
1898
1900
  }));
@@ -1930,7 +1932,7 @@
1930
1932
  value: t,
1931
1933
  key: "newValue",
1932
1934
  multiple: d,
1933
- onClick: a.handleMenuOptionClick
1935
+ onClick: i.handleMenuOptionClick
1934
1936
  }));
1935
1937
  }
1936
1938
  // When selectAll is a menu item, add an offset so that activeItem accounts for the extra selectAll option.
@@ -1947,13 +1949,13 @@
1947
1949
  if (t.props && t.props.hidden) {
1948
1950
  return e;
1949
1951
  }
1950
- if (t.props.selected && !t.props.disabled && a.firstSelectedOptionIndex == null) {
1951
- a.firstSelectedOptionIndex = a.availableOptionCount;
1952
+ if (t.props.selected && !t.props.disabled && i.firstSelectedOptionIndex == null) {
1953
+ i.firstSelectedOptionIndex = i.availableOptionCount;
1952
1954
  }
1953
- var r = _ === a.state.activeIndex;
1955
+ var r = _ === i.state.activeIndex;
1954
1956
  _ += 1;
1955
- a.availableOptionCount += 1;
1956
- a.selectedOptionCount += t.props.selected ? 1 : 0;
1957
+ i.availableOptionCount += 1;
1958
+ i.selectedOptionCount += t.props.selected ? 1 : 0;
1957
1959
  if (t.key !== "newValue" && !t.props.disabled && !t.props.selected) {
1958
1960
  E = false;
1959
1961
  }
@@ -1962,22 +1964,22 @@
1962
1964
  return e;
1963
1965
  }
1964
1966
  if (!t.props.disabled) {
1965
- a.activeValue = t.props.value;
1967
+ i.activeValue = t.props.value;
1966
1968
  }
1967
- var i = (0, n.cloneElement)(t, {
1969
+ var a = (0, n.cloneElement)(t, {
1968
1970
  active: r,
1969
- id: a.activeItemId,
1970
- ref: a.handleActiveOptionMount
1971
+ id: i.activeItemId,
1972
+ ref: i.handleActiveOptionMount
1971
1973
  });
1972
- e.push(i);
1974
+ e.push(a);
1973
1975
  return e;
1974
1976
  }), []);
1975
- a.optionSelection = a.selectedOptionCount === 0 && "none" || E && "all" || "some";
1977
+ i.optionSelection = i.selectedOptionCount === 0 && "none" || E && "all" || "some";
1976
1978
  // add select all option
1977
- if (v === "checkbox" && d && a.availableOptionCount > 0) {
1979
+ if (v === "checkbox" && d && i.availableOptionCount > 0) {
1978
1980
  var A;
1979
1981
  var P;
1980
- if (a.optionSelection === "all") {
1982
+ if (i.optionSelection === "all") {
1981
1983
  if (t === "") {
1982
1984
  P = (0, u._)("Clear all");
1983
1985
  } else {
@@ -1988,25 +1990,25 @@
1988
1990
  } else {
1989
1991
  P = (0, u._)("Select all matches");
1990
1992
  }
1991
- if (a.state.activeIndex === 0 && o) {
1992
- a.activeValue = "selectAll";
1993
+ if (i.state.activeIndex === 0 && o) {
1994
+ i.activeValue = "selectAll";
1993
1995
  }
1994
1996
  x.unshift( r().createElement(st, {
1995
1997
  key: "selectAllOption",
1996
- selected: a.optionSelection === "all" || a.optionSelection !== "none" && "some",
1998
+ selected: i.optionSelection === "all" || i.optionSelection !== "none" && "some",
1997
1999
  selectAllLabel: P,
1998
- totalCount: (A = a.getCurrentValues()) === null || A === void 0 ? void 0 : A.length,
1999
- changedToggle: !!a.props.toggle,
2000
- onClick: a.optionSelection === "all" ? a.handleClearAll : a.handleSelectAll,
2001
- id: a.state.activeIndex === 0 ? a.activeItemId : undefined,
2002
- active: a.state.activeIndex === 0,
2003
- ref: a.handleActiveOptionMount,
2000
+ totalCount: (A = i.getCurrentValues()) === null || A === void 0 ? void 0 : A.length,
2001
+ changedToggle: !!i.props.toggle,
2002
+ onClick: i.optionSelection === "all" ? i.handleClearAll : i.handleSelectAll,
2003
+ id: i.state.activeIndex === 0 ? i.activeItemId : undefined,
2004
+ active: i.state.activeIndex === 0,
2005
+ ref: i.handleActiveOptionMount,
2004
2006
  tabIndex: -1
2005
2007
  }), r().createElement(p.Divider, {
2006
2008
  key: "selectAllDivider"
2007
2009
  }));
2008
2010
  }
2009
- a.displayedValues = x.reduce((function(e, t) {
2011
+ i.displayedValues = x.reduce((function(e, t) {
2010
2012
  if (tn(t)) {
2011
2013
  e.push(t.props.value);
2012
2014
  }
@@ -2014,7 +2016,7 @@
2014
2016
  }), []);
2015
2017
  return x;
2016
2018
  }));
2017
- Jt($t(a), "wrapLabel", (function(e) {
2019
+ Jt($t(i), "wrapLabel", (function(e) {
2018
2020
  var t = e.prefixLabel, n = e.label, r = e.suffixLabel;
2019
2021
  var o = n;
2020
2022
  if (t) {
@@ -2025,10 +2027,10 @@
2025
2027
  }
2026
2028
  return o;
2027
2029
  }));
2028
- Jt($t(a), "handleDropdownMount", (function(e) {
2029
- a.dropdown = e;
2030
+ Jt($t(i), "handleDropdownMount", (function(e) {
2031
+ i.dropdown = e;
2030
2032
  }));
2031
- a.state = {
2033
+ i.state = {
2032
2034
  activeIndex: 0,
2033
2035
  filterKeyword: "",
2034
2036
  open: false,
@@ -2036,23 +2038,23 @@
2036
2038
  topValues: [],
2037
2039
  values: e.defaultValues || []
2038
2040
  };
2039
- a.controlledExternally = l()(e, "values");
2040
- a.displayedValues = [];
2041
- a.availableOptionCount = 0;
2042
- a.firstSelectedOptionIndex = undefined;
2043
- a.selectedOptionCount = 0;
2044
- a.matchCharacter = null;
2045
- a.matchTimeout = null;
2046
- a.currentMatchOptions = [];
2047
- a.availableMatchOptions = [];
2048
- a.optionRefsByKey = {};
2049
- a.optionSelection = "none";
2041
+ i.controlledExternally = l()(e, "values");
2042
+ i.displayedValues = [];
2043
+ i.availableOptionCount = 0;
2044
+ i.firstSelectedOptionIndex = undefined;
2045
+ i.selectedOptionCount = 0;
2046
+ i.matchCharacter = null;
2047
+ i.matchTimeout = null;
2048
+ i.currentMatchOptions = [];
2049
+ i.availableMatchOptions = [];
2050
+ i.optionRefsByKey = {};
2051
+ i.optionSelection = "none";
2050
2052
  if (false) {}
2051
2053
  if (false) {}
2052
2054
  o.validateAppearance(e);
2053
- a.menuId = (0, be.createDOMID)("menu");
2054
- a.activeItemId = (0, be.createDOMID)("active-item");
2055
- return a;
2055
+ i.menuId = (0, be.createDOMID)("menu");
2056
+ i.activeItemId = (0, be.createDOMID)("active-item");
2057
+ return i;
2056
2058
  }
2057
2059
  Nt(o, [ {
2058
2060
  key: "componentDidUpdate",
@@ -2088,16 +2090,16 @@
2088
2090
  }, {
2089
2091
  key: "toggleValue",
2090
2092
  value: function e(t, n) {
2091
- var r, o, a;
2092
- var i = (r = this.getCurrentValues()) !== null && r !== void 0 ? r : [];
2093
- var l = i.indexOf(n);
2093
+ var r, o, i;
2094
+ var a = (r = this.getCurrentValues()) !== null && r !== void 0 ? r : [];
2095
+ var l = a.indexOf(n);
2094
2096
  var s = this.props, c = s.name, u = s.multiple;
2095
2097
  var p;
2096
2098
  if (u) {
2097
2099
  if (l >= 0) {
2098
- p = [].concat(Mt(i.slice(0, l)), Mt(i.slice(l + 1)));
2100
+ p = [].concat(Mt(a.slice(0, l)), Mt(a.slice(l + 1)));
2099
2101
  } else {
2100
- p = i.concat([ n ]);
2102
+ p = a.concat([ n ]);
2101
2103
  }
2102
2104
  } else {
2103
2105
  // non-multiple mode must always have a value
@@ -2124,7 +2126,7 @@
2124
2126
  });
2125
2127
  this.focus();
2126
2128
  }
2127
- (o = (a = this.props).onChange) === null || o === void 0 ? void 0 : o.call(a, t, {
2129
+ (o = (i = this.props).onChange) === null || o === void 0 ? void 0 : o.call(i, t, {
2128
2130
  values: p,
2129
2131
  name: c,
2130
2132
  reason: "valueToggle"
@@ -2142,8 +2144,8 @@
2142
2144
  key: "renderControls",
2143
2145
  value: function e(t) {
2144
2146
  var n = t.hasChildren, o = t.placement;
2145
- var a = this.state.filterKeyword;
2146
- var i = this.props, l = i.inputId, s = i.inputRef, c = i.multiple, p = i.selectAllAppearance;
2147
+ var i = this.state.filterKeyword;
2148
+ var a = this.props, l = a.inputId, s = a.inputRef, c = a.multiple, p = a.selectAllAppearance;
2147
2149
  var f = (0, u._)("Select all options".concat(this.optionSelection === "all" ? " disabled" : ""));
2148
2150
  var d = (0, u._)("Clear all options".concat(this.optionSelection === "none" ? " disabled" : ""));
2149
2151
  // only visually disable these as opposed to fully disabling to avoid losing keyboard focus - see SUI-2731
@@ -2155,19 +2157,19 @@
2155
2157
  "aria-label": f,
2156
2158
  onClick: this.handleSelectAll,
2157
2159
  "data-test": "select-all"
2158
- }, a ? (0, u._)("Select all Matches") : (0, u._)("Select all")), r().createElement(yt, {
2160
+ }, i ? (0, u._)("Select all Matches") : (0, u._)("Select all")), r().createElement(yt, {
2159
2161
  $disabled: this.optionSelection === "none",
2160
2162
  "aria-label": d,
2161
2163
  onClick: this.handleClearAll,
2162
2164
  "data-test": "clear-all"
2163
- }, a ? (0, u._)("Clear all Matches") : (0, u._)("Clear all")));
2165
+ }, i ? (0, u._)("Clear all Matches") : (0, u._)("Clear all")));
2164
2166
  return this.hasFilter() && r().createElement("div", {
2165
2167
  key: "controls"
2166
2168
  }, r().createElement(vt, {
2167
2169
  key: "filter",
2168
2170
  "data-test": "filter"
2169
2171
  }, r().createElement(Ie(), {
2170
- value: a,
2172
+ value: i,
2171
2173
  autoCapitalize: "off",
2172
2174
  autoComplete: "off",
2173
2175
  autoCorrect: "off",
@@ -2191,61 +2193,68 @@
2191
2193
  key: "render",
2192
2194
  value: function e() {
2193
2195
  var t, o = this;
2194
- var a = this.props, i = a.children, l = a.defaultPlacement, s = a.inputId, c = a.multiple, u = a.repositionMode;
2195
- var p = this.hasFilter();
2196
- var f = (t = this.getCurrentValues()) !== null && t !== void 0 ? t : [];
2197
- var d = n.Children.toArray(i);
2198
- var v = f.some((function(e) {
2199
- var t = Z()(d, (function(t) {
2196
+ var i = this.props, a = i.children, l = i.defaultPlacement, s = i.inputId, c = i.multiple, u = i.repositionMode, p = i.virtualization;
2197
+ var f = this.hasFilter();
2198
+ var d = (t = this.getCurrentValues()) !== null && t !== void 0 ? t : [];
2199
+ var v = n.Children.toArray(a);
2200
+ var h = d.some((function(e) {
2201
+ var t = Z()(v, (function(t) {
2200
2202
  return tn(t) && t.props.value === e;
2201
2203
  }));
2202
2204
  return t && !t.props.disabled;
2203
2205
  }));
2204
- var h = this.createChildren();
2205
- var b = this.createToggle();
2206
- var y = function e(t) {
2207
- var n = t.anchorWidth, a = t.maxHeight, i = t.placement;
2206
+ var b = this.createChildren();
2207
+ var y = this.createToggle();
2208
+ var m = function e(t) {
2209
+ var n = t.anchorWidth, i = t.maxHeight, a = t.placement;
2208
2210
  var l = Zt({
2209
2211
  anchorWidth: n,
2210
2212
  isMultiple: o.props.multiple,
2211
- maxHeight: a,
2213
+ maxHeight: i,
2212
2214
  menuStyle: o.props.menuStyle
2213
2215
  });
2214
- var s = f.length > 0 && !v && !o.hasFilter() ? 0 : undefined;
2215
-
2216
- return r().createElement(xe(), kt({
2216
+ var s = d.length > 0 && !h && !o.hasFilter() ? 0 : undefined;
2217
+ var u = Gt(Gt({
2217
2218
  "aria-multiselectable": c || undefined,
2218
2219
  childrenStart: o.renderControls({
2219
- placement: i,
2220
- hasChildren: !!h.length
2220
+ placement: a,
2221
+ hasChildren: !!b.length
2221
2222
  }),
2222
2223
  controlledExternally: o.hasFilter(),
2223
- placement: i !== null && i !== void 0 ? i : undefined,
2224
+ placement: a !== null && a !== void 0 ? a : undefined,
2224
2225
  onScrollBottom: o.props.onScrollBottom ? o.handleScrollBottom : undefined,
2225
2226
  "data-test": "results-menu",
2226
2227
  isLoading: o.props.isLoadingOptions,
2227
2228
  id: o.menuId
2228
- }, pe()(o.props, "noOptionsMessage", "footerMessage", "animateLoading", "loadingMessage", "onScroll"), {
2229
+ }, pe()(o.props, "noOptionsMessage", "footerMessage", "animateLoading", "loadingMessage", "onScroll")), {}, {
2229
2230
  style: l,
2230
2231
  tabIndex: s
2231
- }), h);
2232
+ });
2233
+ if (p) {
2234
+
2235
+ return r().createElement(Ce.VirtualizedResultsMenu, kt({
2236
+ virtualization: p
2237
+ }, u), b);
2238
+ }
2239
+
2240
+ return r().createElement(xe(), u, b);
2232
2241
  };
2233
2242
 
2234
2243
  return r().createElement(me(), {
2235
2244
  closeReasons: en,
2236
2245
  inputId: s,
2237
- toggle: b,
2246
+ toggle: y,
2238
2247
  onRequestOpen: this.handleRequestOpen,
2239
2248
  onRequestClose: this.handleRequestClose,
2240
2249
  open: this.state.open,
2241
2250
  openWithArrowKeys: true,
2242
2251
  repositionMode: u,
2243
- defaultPlacement: p ? l : undefined,
2252
+ defaultPlacement: f ? l : undefined,
2244
2253
  canCoverAnchor: xt().innerHeight < 500,
2245
2254
  ref: this.handleDropdownMount,
2246
2255
  retainFocus: false,
2247
- takeFocus: f.length === 0 || f.length > 0 && !v || !!p
2248
- }, y);
2256
+ takeFocus: d.length === 0 || d.length > 0 && !h || !!f
2257
+ }, m);
2249
2258
  }
2250
2259
  } ]);
2251
2260
  return o;
@@ -2290,9 +2299,9 @@
2290
2299
  var n = cn(e, t);
2291
2300
  var r, o;
2292
2301
  if (Object.getOwnPropertySymbols) {
2293
- var a = Object.getOwnPropertySymbols(e);
2294
- for (o = 0; o < a.length; o++) {
2295
- r = a[o];
2302
+ var i = Object.getOwnPropertySymbols(e);
2303
+ for (o = 0; o < i.length; o++) {
2304
+ r = i[o];
2296
2305
  if (t.indexOf(r) >= 0) continue;
2297
2306
  if (!Object.prototype.propertyIsEnumerable.call(e, r)) continue;
2298
2307
  n[r] = e[r];
@@ -2304,9 +2313,9 @@
2304
2313
  if (e == null) return {};
2305
2314
  var n = {};
2306
2315
  var r = Object.keys(e);
2307
- var o, a;
2308
- for (a = 0; a < r.length; a++) {
2309
- o = r[a];
2316
+ var o, i;
2317
+ for (i = 0; i < r.length; i++) {
2318
+ o = r[i];
2310
2319
  if (t.indexOf(o) >= 0) continue;
2311
2320
  n[o] = e[o];
2312
2321
  }
@@ -2356,8 +2365,8 @@
2356
2365
  return function n() {
2357
2366
  var r = gn(e), o;
2358
2367
  if (t) {
2359
- var a = gn(this).constructor;
2360
- o = Reflect.construct(r, arguments, a);
2368
+ var i = gn(this).constructor;
2369
+ o = Reflect.construct(r, arguments, i);
2361
2370
  } else {
2362
2371
  o = r.apply(this, arguments);
2363
2372
  }
@@ -2407,39 +2416,41 @@
2407
2416
  return e;
2408
2417
  }
2409
2418
  var wn = {
2410
- allowNewValues: a().bool,
2411
- animateLoading: a().bool,
2412
- children: a().node,
2413
- controlledFilter: a().bool,
2414
- defaultPlacement: a().oneOf([ "above", "below", "vertical" ]),
2415
- defaultValues: a().array,
2416
- describedBy: a().string,
2417
- disabled: a().bool,
2418
- elementRef: a().oneOfType([ a().func, a().object ]),
2419
- error: a().bool,
2420
- filter: a().oneOf([ false, true, "controlled" ]),
2421
- footerMessage: a().node,
2422
- inline: a().bool,
2423
- inputId: a().string,
2424
- inputRef: a().oneOfType([ a().func, a().object ]),
2425
- isLoadingOptions: a().bool,
2426
- labelledBy: a().string,
2427
- loadingMessage: a().node,
2428
- menuStyle: a().object,
2429
- name: a().string,
2430
- noOptionsMessage: a().node,
2431
- onChange: a().func,
2432
- onClose: a().func,
2433
- onFilterChange: a().func,
2434
- onOpen: a().func,
2435
- onScroll: a().func,
2436
- onScrollBottom: a().func,
2437
- placeholder: a().string,
2438
- repositionMode: a().oneOf([ "none", "flip" ]),
2439
- selectAllAppearance: a().oneOf([ "buttongroup", "checkbox" ]),
2440
- showSelectedValuesFirst: a().oneOf([ "nextOpen", "immediately", "never" ]),
2441
- tabConfirmsNewValue: a().bool,
2442
- values: a().array
2419
+ allowNewValues: i().bool,
2420
+ animateLoading: i().bool,
2421
+ children: i().node,
2422
+ controlledFilter: i().bool,
2423
+ defaultPlacement: i().oneOf([ "above", "below", "vertical" ]),
2424
+ defaultValues: i().array,
2425
+ describedBy: i().string,
2426
+ disabled: i().bool,
2427
+ elementRef: i().oneOfType([ i().func, i().object ]),
2428
+ error: i().bool,
2429
+ filter: i().oneOf([ false, true, "controlled" ]),
2430
+ footerMessage: i().node,
2431
+ inline: i().bool,
2432
+ inputId: i().string,
2433
+ inputRef: i().oneOfType([ i().func, i().object ]),
2434
+ isLoadingOptions: i().bool,
2435
+ labelledBy: i().string,
2436
+ loadingMessage: i().node,
2437
+ menuStyle: i().object,
2438
+ name: i().string,
2439
+ noOptionsMessage: i().node,
2440
+ onChange: i().func,
2441
+ onClose: i().func,
2442
+ onFilterChange: i().func,
2443
+ onOpen: i().func,
2444
+ onScroll: i().func,
2445
+ onScrollBottom: i().func,
2446
+ placeholder: i().string,
2447
+ repositionMode: i().oneOf([ "none", "flip" ]),
2448
+ selectAllAppearance: i().oneOf([ "buttongroup", "checkbox" ]),
2449
+ showSelectedValuesFirst: i().oneOf([ "nextOpen", "immediately", "never" ]),
2450
+ tabConfirmsNewValue: i().bool,
2451
+ values: i().array,
2452
+ /** @private */
2453
+ virtualization: i().number
2443
2454
  };
2444
2455
  var Sn = {
2445
2456
  allowNewValues: false,
@@ -2466,16 +2477,16 @@
2466
2477
  key: "render",
2467
2478
  // @docs-props-type CompactPropsBase
2468
2479
  value: function e() {
2469
- var t = this.props, o = t.defaultValues, a = t.children, i = t.controlledFilter, l = t.filter, s = t.values, c = sn(t, [ "defaultValues", "children", "controlledFilter", "filter", "values" ]);
2480
+ var t = this.props, o = t.defaultValues, i = t.children, a = t.controlledFilter, l = t.filter, s = t.values, c = sn(t, [ "defaultValues", "children", "controlledFilter", "filter", "values" ]);
2470
2481
  var u = true;
2471
2482
  if (l != null) {
2472
2483
  u = l;
2473
2484
  if (false) {}
2474
2485
  } else {
2475
- u = i ? "controlled" : true;
2486
+ u = a ? "controlled" : true;
2476
2487
  }
2477
2488
  var p = {
2478
- children: n.Children.toArray(a).map((function(e) {
2489
+ children: n.Children.toArray(i).map((function(e) {
2479
2490
  if (tn(e)) {
2480
2491
 
2481
2492
  return r().createElement(M, ln({}, e.props, {
@@ -2537,7 +2548,7 @@
2537
2548
  const $n = require("@splunk/react-ui/Box");
2538
2549
  var Hn = e.n($n);
2539
2550
  // CONCATENATED MODULE: ./src/Multiselect/NormalStyles.ts
2540
- var Wn = Ke()(Hn()).withConfig({
2551
+ var zn = Ke()(Hn()).withConfig({
2541
2552
  displayName: "NormalStyles__StyledBox",
2542
2553
  componentId: "sc-1uwwpco-0"
2543
2554
  })([ "border-radius:", ";align-items:", ";flex-wrap:wrap;min-height:", ";max-height:300px;overflow-y:auto;border:1px solid ", ";padding:", ";", " ", " ", " ", " ", " &[data-inline]{width:400px;}[data-inline='true'] + &{margin-left:", "}" ], Ae.variables.borderRadius, (0,
@@ -2586,7 +2597,7 @@
2586
2597
  enterprise: Ae.variables.spacingHalf,
2587
2598
  prisma: Ae.variables.spacingSmall
2588
2599
  }));
2589
- var zn = Ke().div.withConfig({
2600
+ var Wn = Ke().div.withConfig({
2590
2601
  displayName: "NormalStyles__StyledInputWrapper",
2591
2602
  componentId: "sc-1uwwpco-1"
2592
2603
  })([ "flex:1 0 auto;max-width:100%;" ]);
@@ -2699,14 +2710,14 @@
2699
2710
  }
2700
2711
  return e;
2701
2712
  }
2702
- function ar(e, t) {
2713
+ function ir(e, t) {
2703
2714
  if (e == null) return {};
2704
- var n = ir(e, t);
2715
+ var n = ar(e, t);
2705
2716
  var r, o;
2706
2717
  if (Object.getOwnPropertySymbols) {
2707
- var a = Object.getOwnPropertySymbols(e);
2708
- for (o = 0; o < a.length; o++) {
2709
- r = a[o];
2718
+ var i = Object.getOwnPropertySymbols(e);
2719
+ for (o = 0; o < i.length; o++) {
2720
+ r = i[o];
2710
2721
  if (t.indexOf(r) >= 0) continue;
2711
2722
  if (!Object.prototype.propertyIsEnumerable.call(e, r)) continue;
2712
2723
  n[r] = e[r];
@@ -2714,13 +2725,13 @@
2714
2725
  }
2715
2726
  return n;
2716
2727
  }
2717
- function ir(e, t) {
2728
+ function ar(e, t) {
2718
2729
  if (e == null) return {};
2719
2730
  var n = {};
2720
2731
  var r = Object.keys(e);
2721
- var o, a;
2722
- for (a = 0; a < r.length; a++) {
2723
- o = r[a];
2732
+ var o, i;
2733
+ for (i = 0; i < r.length; i++) {
2734
+ o = r[i];
2724
2735
  if (t.indexOf(o) >= 0) continue;
2725
2736
  n[o] = e[o];
2726
2737
  }
@@ -2784,8 +2795,8 @@
2784
2795
  return function n() {
2785
2796
  var r = yr(e), o;
2786
2797
  if (t) {
2787
- var a = yr(this).constructor;
2788
- o = Reflect.construct(r, arguments, a);
2798
+ var i = yr(this).constructor;
2799
+ o = Reflect.construct(r, arguments, i);
2789
2800
  } else {
2790
2801
  o = r.apply(this, arguments);
2791
2802
  }
@@ -2835,39 +2846,39 @@
2835
2846
  return e;
2836
2847
  }
2837
2848
  var gr = {
2838
- allowNewValues: a().bool,
2839
- animateLoading: a().bool,
2840
- children: a().node,
2841
- controlledFilter: a().bool,
2842
- defaultPlacement: a().oneOf([ "above", "below", "vertical" ]),
2843
- defaultValues: a().array,
2844
- describedBy: a().string,
2845
- disabled: a().bool,
2846
- elementRef: a().oneOfType([ a().func, a().object ]),
2847
- error: a().bool,
2848
- footerMessage: a().node,
2849
- inline: a().bool,
2850
- inputId: a().string,
2851
- inputRef: a().oneOfType([ a().func, a().object ]),
2852
- isLoadingOptions: a().bool,
2853
- labelledBy: a().string,
2854
- loadingMessage: a().node,
2855
- menuStyle: a().object,
2856
- name: a().string,
2857
- noOptionsMessage: a().node,
2858
- onChange: a().func,
2859
- onClose: a().func,
2860
- onFilterChange: a().func,
2861
- onOpen: a().func,
2862
- onScroll: a().func,
2863
- onScrollBottom: a().func,
2864
- placeholder: a().string,
2849
+ allowNewValues: i().bool,
2850
+ animateLoading: i().bool,
2851
+ children: i().node,
2852
+ controlledFilter: i().bool,
2853
+ defaultPlacement: i().oneOf([ "above", "below", "vertical" ]),
2854
+ defaultValues: i().array,
2855
+ describedBy: i().string,
2856
+ disabled: i().bool,
2857
+ elementRef: i().oneOfType([ i().func, i().object ]),
2858
+ error: i().bool,
2859
+ footerMessage: i().node,
2860
+ inline: i().bool,
2861
+ inputId: i().string,
2862
+ inputRef: i().oneOfType([ i().func, i().object ]),
2863
+ isLoadingOptions: i().bool,
2864
+ labelledBy: i().string,
2865
+ loadingMessage: i().node,
2866
+ menuStyle: i().object,
2867
+ name: i().string,
2868
+ noOptionsMessage: i().node,
2869
+ onChange: i().func,
2870
+ onClose: i().func,
2871
+ onFilterChange: i().func,
2872
+ onOpen: i().func,
2873
+ onScroll: i().func,
2874
+ onScrollBottom: i().func,
2875
+ placeholder: i().string,
2865
2876
  /** @private. */
2866
- required: a().bool,
2867
- repositionMode: a().oneOf([ "none", "flip" ]),
2868
- tabConfirmsNewValue: a().bool,
2869
- useClickawayOverlay: a().bool,
2870
- values: a().array
2877
+ required: i().bool,
2878
+ repositionMode: i().oneOf([ "none", "flip" ]),
2879
+ tabConfirmsNewValue: i().bool,
2880
+ useClickawayOverlay: i().bool,
2881
+ values: i().array
2871
2882
  };
2872
2883
  var Or = {
2873
2884
  allowNewValues: false,
@@ -2902,56 +2913,56 @@
2902
2913
  var t = dr(o);
2903
2914
  // @docs-props-type NormalPropsBase
2904
2915
  function o(e) {
2905
- var a;
2916
+ var i;
2906
2917
  sr(this, o);
2907
- a = t.call(this, e);
2908
- mr(hr(a), "activeItemId", void 0);
2909
- mr(hr(a), "activeValue", void 0);
2910
- mr(hr(a), "availableOptionCount", void 0);
2911
- mr(hr(a), "children", void 0);
2912
- mr(hr(a), "controlledExternally", void 0);
2913
- mr(hr(a), "input", null);
2914
- mr(hr(a), "popoverId", void 0);
2915
- mr(hr(a), "previousActiveIndex", null);
2916
- mr(hr(a), "handleClick", (function() {
2918
+ i = t.call(this, e);
2919
+ mr(hr(i), "activeItemId", void 0);
2920
+ mr(hr(i), "activeValue", void 0);
2921
+ mr(hr(i), "availableOptionCount", void 0);
2922
+ mr(hr(i), "children", void 0);
2923
+ mr(hr(i), "controlledExternally", void 0);
2924
+ mr(hr(i), "input", null);
2925
+ mr(hr(i), "popoverId", void 0);
2926
+ mr(hr(i), "previousActiveIndex", null);
2927
+ mr(hr(i), "handleClick", (function() {
2917
2928
  var e;
2918
- (e = a.input) === null || e === void 0 ? void 0 : e.focus();
2929
+ (e = i.input) === null || e === void 0 ? void 0 : e.focus();
2919
2930
  }));
2920
- mr(hr(a), "handleRequestRemove", (function(e, t) {
2931
+ mr(hr(i), "handleRequestRemove", (function(e, t) {
2921
2932
  var n = t.value;
2922
2933
  In()((function() {
2923
- return a.removeValue(e, n);
2934
+ return i.removeValue(e, n);
2924
2935
  }));
2925
2936
  // allow the event to bubble before removing.
2926
2937
  }));
2927
- mr(hr(a), "handleInputFocus", (function(e) {
2928
- if (a.state.filterKeyword !== "") {
2938
+ mr(hr(i), "handleInputFocus", (function(e) {
2939
+ if (i.state.filterKeyword !== "") {
2929
2940
  var t, n;
2930
- (t = (n = a.props).onFilterChange) === null || t === void 0 ? void 0 : t.call(n, e, {
2941
+ (t = (n = i.props).onFilterChange) === null || t === void 0 ? void 0 : t.call(n, e, {
2931
2942
  keyword: ""
2932
2943
  });
2933
2944
  }
2934
- a.setState({
2945
+ i.setState({
2935
2946
  filterKeyword: "",
2936
2947
  hasFocus: true,
2937
2948
  open: true
2938
2949
  }, (function() {
2939
2950
  var e, t;
2940
- (e = (t = a.props).onOpen) === null || e === void 0 ? void 0 : e.call(t);
2951
+ (e = (t = i.props).onOpen) === null || e === void 0 ? void 0 : e.call(t);
2941
2952
  }));
2942
2953
  }));
2943
- mr(hr(a), "handleInputKeyDown", (function(e) {
2954
+ mr(hr(i), "handleInputKeyDown", (function(e) {
2944
2955
  var t, r;
2945
- var o = a.props, i = o.children, l = o.onScrollBottom, s = o.tabConfirmsNewValue;
2956
+ var o = i.props, a = o.children, l = o.onScrollBottom, s = o.tabConfirmsNewValue;
2946
2957
  var c = (0, ge.keycode)(e.nativeEvent);
2947
- if (c === "tab" && a.state.open) {
2948
- if (s && !ae()(a.activeValue) && a.availableOptionCount <= 1) {
2958
+ if (c === "tab" && i.state.open) {
2959
+ if (s && !ie()(i.activeValue) && i.availableOptionCount <= 1) {
2949
2960
  var u;
2950
2961
  e.preventDefault();
2951
- a.addValue(e, a.activeValue);
2952
- (u = a.input) === null || u === void 0 ? void 0 : u.focus();
2962
+ i.addValue(e, i.activeValue);
2963
+ (u = i.input) === null || u === void 0 ? void 0 : u.focus();
2953
2964
  } else {
2954
- a.setState({
2965
+ i.setState({
2955
2966
  open: false
2956
2967
  });
2957
2968
  }
@@ -2959,157 +2970,157 @@
2959
2970
  if (e.shiftKey || e.metaKey || e.ctrlKey) {
2960
2971
  return;
2961
2972
  }
2962
- if (c === "end" && a.state.open) {
2973
+ if (c === "end" && i.state.open) {
2963
2974
  e.preventDefault();
2964
- a.setState({
2965
- activeIndex: a.availableOptionCount - 1
2975
+ i.setState({
2976
+ activeIndex: i.availableOptionCount - 1
2966
2977
  });
2967
2978
  }
2968
- if (c === "home" && a.state.open) {
2979
+ if (c === "home" && i.state.open) {
2969
2980
  e.preventDefault();
2970
- a.setState({
2981
+ i.setState({
2971
2982
  activeIndex: 0
2972
2983
  });
2973
2984
  }
2974
2985
  if (c === "down") {
2975
2986
  e.preventDefault();
2976
- if (a.state.open) {
2977
- a.setState((function(e) {
2987
+ if (i.state.open) {
2988
+ i.setState((function(e) {
2978
2989
  return {
2979
- activeIndex: Math.min(e.activeIndex + 1, a.availableOptionCount - 1)
2990
+ activeIndex: Math.min(e.activeIndex + 1, i.availableOptionCount - 1)
2980
2991
  };
2981
2992
  }));
2982
2993
  } else {
2983
- a.setState({
2994
+ i.setState({
2984
2995
  activeIndex: 0,
2985
2996
  open: true
2986
2997
  });
2987
2998
  }
2988
- if (i && l) {
2999
+ if (a && l) {
2989
3000
  var p;
2990
- var f = n.Children.toArray(i).length - (2 + ((p = a.getCurrentValues()) !== null && p !== void 0 ? p : []).length);
2991
- if (a.state.activeIndex === f) {
2992
- a.handleScrollBottom(e);
3001
+ var f = n.Children.toArray(a).length - (2 + ((p = i.getCurrentValues()) !== null && p !== void 0 ? p : []).length);
3002
+ if (i.state.activeIndex === f) {
3003
+ i.handleScrollBottom(e);
2993
3004
  }
2994
3005
  }
2995
3006
  }
2996
3007
  if (c === "up") {
2997
3008
  e.preventDefault();
2998
- if (a.state.open) {
2999
- a.setState((function(e) {
3009
+ if (i.state.open) {
3010
+ i.setState((function(e) {
3000
3011
  return {
3001
3012
  activeIndex: Math.max(e.activeIndex - 1, 0)
3002
3013
  };
3003
3014
  }));
3004
3015
  } else {
3005
- a.setState({
3016
+ i.setState({
3006
3017
  activeIndex: 0,
3007
3018
  open: true
3008
3019
  });
3009
3020
  }
3010
3021
  }
3011
- if (c === "enter" && !ae()(a.activeValue) && a.state.open) {
3012
- a.addValue(e, a.activeValue);
3022
+ if (c === "enter" && !ie()(i.activeValue) && i.state.open) {
3023
+ i.addValue(e, i.activeValue);
3013
3024
  }
3014
- if (c === "backspace" && ((t = a.input) === null || t === void 0 ? void 0 : t.value) === "" && ((r = a.getCurrentValues()) === null || r === void 0 ? void 0 : r.length)) {
3015
- a.removeValue(e, Rn()(a.getCurrentValues()));
3025
+ if (c === "backspace" && ((t = i.input) === null || t === void 0 ? void 0 : t.value) === "" && ((r = i.getCurrentValues()) === null || r === void 0 ? void 0 : r.length)) {
3026
+ i.removeValue(e, Rn()(i.getCurrentValues()));
3016
3027
  }
3017
3028
  }));
3018
- mr(hr(a), "handleInputChange", (function(e) {
3029
+ mr(hr(i), "handleInputChange", (function(e) {
3019
3030
  var t, n;
3020
- a.setState({
3031
+ i.setState({
3021
3032
  filterKeyword: e.target.value,
3022
3033
  open: true,
3023
3034
  activeIndex: 0
3024
3035
  });
3025
- (t = (n = a.props).onFilterChange) === null || t === void 0 ? void 0 : t.call(n, e, {
3036
+ (t = (n = i.props).onFilterChange) === null || t === void 0 ? void 0 : t.call(n, e, {
3026
3037
  keyword: e.target.value
3027
3038
  });
3028
3039
  }));
3029
- mr(hr(a), "handleMenuOptionClick", (function(e, t) {
3040
+ mr(hr(i), "handleMenuOptionClick", (function(e, t) {
3030
3041
  var n;
3031
3042
  var r = t.value;
3032
- a.addValue(e, r);
3033
- (n = a.input) === null || n === void 0 ? void 0 : n.focus();
3043
+ i.addValue(e, r);
3044
+ (n = i.input) === null || n === void 0 ? void 0 : n.focus();
3034
3045
  }));
3035
- mr(hr(a), "handleInputBlur", (function(e) {
3036
- var t = document.getElementById(a.popoverId);
3046
+ mr(hr(i), "handleInputBlur", (function(e) {
3047
+ var t = document.getElementById(i.popoverId);
3037
3048
  var n = e.relatedTarget || document.activeElement;
3038
3049
  // IE11 doesn't support relatedTarget but sets activeElement
3039
3050
  var r = t && n && t.contains(n);
3040
3051
  // TS: target as Node is an unsafe assumption
3041
- a.setState((function(e) {
3052
+ i.setState((function(e) {
3042
3053
  return {
3043
3054
  filterKeyword: r ? e.filterKeyword : "",
3044
3055
  hasFocus: false
3045
3056
  };
3046
3057
  }));
3047
3058
  if (!r) {
3048
- var o, i;
3049
- (o = (i = a.props).onFilterChange) === null || o === void 0 ? void 0 : o.call(i, e, {
3059
+ var o, a;
3060
+ (o = (a = i.props).onFilterChange) === null || o === void 0 ? void 0 : o.call(a, e, {
3050
3061
  keyword: ""
3051
3062
  });
3052
3063
  }
3053
3064
  }));
3054
- mr(hr(a), "handleRequestClose", (function(e) {
3065
+ mr(hr(i), "handleRequestClose", (function(e) {
3055
3066
  var t;
3056
3067
  var n = e.reason, r = e.event;
3057
- if (n === "escapeKey" || n === "offScreen" || n === "clickAway" && r !== undefined && !((t = a.state.el) === null || t === void 0 ? void 0 : t.contains(r.target))) {
3058
- a.setState({
3068
+ if (n === "escapeKey" || n === "offScreen" || n === "clickAway" && r !== undefined && !((t = i.state.el) === null || t === void 0 ? void 0 : t.contains(r.target))) {
3069
+ i.setState({
3059
3070
  open: false
3060
3071
  }, (function() {
3061
3072
  var e, t;
3062
- a.previousActiveIndex = null;
3063
- (e = (t = a.props).onClose) === null || e === void 0 ? void 0 : e.call(t);
3073
+ i.previousActiveIndex = null;
3074
+ (e = (t = i.props).onClose) === null || e === void 0 ? void 0 : e.call(t);
3064
3075
  }));
3065
3076
  }
3066
3077
  if (n === "escapeKey") {
3067
3078
  var o;
3068
- (o = a.input) === null || o === void 0 ? void 0 : o.focus();
3079
+ (o = i.input) === null || o === void 0 ? void 0 : o.focus();
3069
3080
  }
3070
3081
  }));
3071
- mr(hr(a), "handleScrollBottom", (function(e) {
3072
- if (a.state.open && !a.props.isLoadingOptions) {
3082
+ mr(hr(i), "handleScrollBottom", (function(e) {
3083
+ if (i.state.open && !i.props.isLoadingOptions) {
3073
3084
  var t, n;
3074
- (t = (n = a.props).onScrollBottom) === null || t === void 0 ? void 0 : t.call(n, e);
3075
- a.setState({
3076
- loadingMoreMessage: "".concat(a.availableOptionCount, " options, loading more options")
3085
+ (t = (n = i.props).onScrollBottom) === null || t === void 0 ? void 0 : t.call(n, e);
3086
+ i.setState({
3087
+ loadingMoreMessage: "".concat(i.availableOptionCount, " options, loading more options")
3077
3088
  });
3078
3089
  }
3079
3090
  }));
3080
- mr(hr(a), "handleMount", (function(e) {
3081
- a.setState({
3091
+ mr(hr(i), "handleMount", (function(e) {
3092
+ i.setState({
3082
3093
  el: e
3083
3094
  });
3084
- Jn(a.props.elementRef, e);
3095
+ Jn(i.props.elementRef, e);
3085
3096
  }));
3086
- mr(hr(a), "handleInputMount", (function(e) {
3087
- a.input = e;
3088
- Jn(a.props.inputRef, e);
3097
+ mr(hr(i), "handleInputMount", (function(e) {
3098
+ i.input = e;
3099
+ Jn(i.props.inputRef, e);
3089
3100
  }));
3090
- mr(hr(a), "handleActiveOptionMount", (function(e) {
3091
- if (a.previousActiveIndex !== a.state.activeIndex) {
3101
+ mr(hr(i), "handleActiveOptionMount", (function(e) {
3102
+ if (i.previousActiveIndex !== i.state.activeIndex) {
3092
3103
  e === null || e === void 0 ? void 0 : e.scrollIntoViewIfNeeded();
3093
3104
  }
3094
3105
  }));
3095
- mr(hr(a), "renderMenu", (function(e) {
3106
+ mr(hr(i), "renderMenu", (function(e) {
3096
3107
  var t = e.anchorWidth, n = e.maxHeight, o = e.placement;
3097
- var i = Sr({
3108
+ var a = Sr({
3098
3109
  anchorWidth: t,
3099
3110
  maxHeight: n,
3100
- menuStyle: a.props.menuStyle
3111
+ menuStyle: i.props.menuStyle
3101
3112
  });
3102
3113
 
3103
3114
  return r().createElement(xe(), lr({
3104
3115
  controlledExternally: true,
3105
3116
  placement: o !== null && o !== void 0 ? o : undefined,
3106
- isLoading: a.props.isLoadingOptions,
3107
- onScrollBottom: a.props.onScrollBottom ? a.handleScrollBottom : undefined
3108
- }, pe()(a.props, "noOptionsMessage", "footerMessage", "animateLoading", "loadingMessage", "onScroll"), {
3109
- style: i
3110
- }), a.children);
3117
+ isLoading: i.props.isLoadingOptions,
3118
+ onScrollBottom: i.props.onScrollBottom ? i.handleScrollBottom : undefined
3119
+ }, pe()(i.props, "noOptionsMessage", "footerMessage", "animateLoading", "loadingMessage", "onScroll"), {
3120
+ style: a
3121
+ }), i.children);
3111
3122
  }));
3112
- a.state = {
3123
+ i.state = {
3113
3124
  activeIndex: 0,
3114
3125
  el: null,
3115
3126
  filterKeyword: "",
@@ -3118,14 +3129,14 @@
3118
3129
  values: e.defaultValues || [],
3119
3130
  loadingMoreMessage: ""
3120
3131
  };
3121
- a.availableOptionCount = 0;
3122
- a.children = [];
3123
- a.controlledExternally = l()(e, "values");
3124
- a.activeItemId = (0, be.createDOMID)("active-item");
3125
- a.popoverId = (0, be.createDOMID)("popover");
3132
+ i.availableOptionCount = 0;
3133
+ i.children = [];
3134
+ i.controlledExternally = l()(e, "values");
3135
+ i.activeItemId = (0, be.createDOMID)("active-item");
3136
+ i.popoverId = (0, be.createDOMID)("popover");
3126
3137
  if (false) {}
3127
3138
  if (false) {}
3128
- return a;
3139
+ return i;
3129
3140
  }
3130
3141
  ur(o, [ {
3131
3142
  key: "componentDidUpdate",
@@ -3163,19 +3174,19 @@
3163
3174
  }, {
3164
3175
  key: "addValue",
3165
3176
  value: function e(t, n) {
3166
- var r, o, a;
3167
- var i = ((r = this.getCurrentValues()) !== null && r !== void 0 ? r : []).concat([ n ]);
3177
+ var r, o, i;
3178
+ var a = ((r = this.getCurrentValues()) !== null && r !== void 0 ? r : []).concat([ n ]);
3168
3179
  var l = this.props.name;
3169
3180
  if (!this.isControlled()) {
3170
3181
  this.setState({
3171
- values: i,
3182
+ values: a,
3172
3183
  activeIndex: 0,
3173
3184
  open: true,
3174
3185
  filterKeyword: ""
3175
3186
  });
3176
3187
  }
3177
- (o = (a = this.props).onChange) === null || o === void 0 ? void 0 : o.call(a, t, {
3178
- values: i,
3188
+ (o = (i = this.props).onChange) === null || o === void 0 ? void 0 : o.call(i, t, {
3189
+ values: a,
3179
3190
  name: l
3180
3191
  });
3181
3192
  }
@@ -3183,16 +3194,16 @@
3183
3194
  key: "removeValue",
3184
3195
  value: function e(t, n) {
3185
3196
  var r, o;
3186
- var a = he()(this.getCurrentValues(), n);
3187
- var i = this.props.name;
3197
+ var i = he()(this.getCurrentValues(), n);
3198
+ var a = this.props.name;
3188
3199
  if (!this.isControlled()) {
3189
3200
  this.setState({
3190
- values: a
3201
+ values: i
3191
3202
  });
3192
3203
  }
3193
3204
  (r = (o = this.props).onChange) === null || r === void 0 ? void 0 : r.call(o, t, {
3194
- values: a,
3195
- name: i
3205
+ values: i,
3206
+ name: a
3196
3207
  });
3197
3208
  }
3198
3209
  }, {
@@ -3223,7 +3234,7 @@
3223
3234
  key: "render",
3224
3235
  value: function e() {
3225
3236
  var t, o = this;
3226
- var a = this.props, i = a.allowNewValues, s = a.children, p = a.controlledFilter, f = a.defaultPlacement, d = a.describedBy, v = a.disabled, h = a.error, b = a.inline, y = a.inputId, m = a.labelledBy, g = a.placeholder, O = a.required, w = a.repositionMode, S = a.useClickawayOverlay, C = ar(a, [ "allowNewValues", "children", "controlledFilter", "defaultPlacement", "describedBy", "disabled", "error", "inline", "inputId", "labelledBy", "placeholder", "required", "repositionMode", "useClickawayOverlay" ]);
3237
+ var i = this.props, a = i.allowNewValues, s = i.children, p = i.controlledFilter, f = i.defaultPlacement, d = i.describedBy, v = i.disabled, h = i.error, b = i.inline, y = i.inputId, m = i.labelledBy, g = i.placeholder, O = i.required, w = i.repositionMode, S = i.useClickawayOverlay, C = ir(i, [ "allowNewValues", "children", "controlledFilter", "defaultPlacement", "describedBy", "disabled", "error", "inline", "inputId", "labelledBy", "placeholder", "required", "repositionMode", "useClickawayOverlay" ]);
3227
3238
  var x = or(or({}, Dn()(C, (function(e, t) {
3228
3239
  return t === "role" || t.indexOf("aria-") === 0;
3229
3240
  }))), {}, {
@@ -3273,12 +3284,12 @@
3273
3284
  _ = true;
3274
3285
  }
3275
3286
  // remove items that are already selected
3276
- var a = I.indexOf(r.props.value);
3277
- if (a >= 0) {
3287
+ var i = I.indexOf(r.props.value);
3288
+ if (i >= 0) {
3278
3289
  return null;
3279
3290
  }
3280
3291
  // highlight matched text
3281
- var i = r.props, s = i.children, c = i.label, u = i.matchRanges;
3292
+ var a = r.props, s = a.children, c = a.label, u = a.matchRanges;
3282
3293
  var f = s === undefined || Pn()(s);
3283
3294
  var d = f && !p && !u && E && (0, Oe.keywordLocations)(c, E);
3284
3295
  // clone item
@@ -3292,7 +3303,7 @@
3292
3303
  return e !== null;
3293
3304
  }));
3294
3305
  // Add the option to add the new value
3295
- if (i && !_ && this.state.filterKeyword) {
3306
+ if (a && !_ && this.state.filterKeyword) {
3296
3307
  this.children.unshift( r().createElement(J, {
3297
3308
  label: "".concat(this.state.filterKeyword),
3298
3309
  description: (0, u._)("(New value)"),
@@ -3318,17 +3329,17 @@
3318
3329
  if (!t.props.disabled) {
3319
3330
  o.activeValue = t.props.value;
3320
3331
  }
3321
- var a = (0, n.cloneElement)(t, {
3332
+ var i = (0, n.cloneElement)(t, {
3322
3333
  active: r,
3323
3334
  id: o.activeItemId,
3324
3335
  ref: o.handleActiveOptionMount
3325
3336
  });
3326
- return a;
3337
+ return i;
3327
3338
  }));
3328
3339
  }
3329
3340
  var A = wr("".concat(this.state.filterKeyword.length * .8, "em"));
3330
3341
 
3331
- return r().createElement(r().Fragment, null, r().createElement(Wn, lr({
3342
+ return r().createElement(r().Fragment, null, r().createElement(zn, lr({
3332
3343
  key: "control",
3333
3344
  "data-test-values": JSON.stringify(I),
3334
3345
  inline: b,
@@ -3346,7 +3357,7 @@
3346
3357
  "aria-labelledby": m,
3347
3358
  "aria-invalid": h,
3348
3359
  "aria-multiselectable": "true"
3349
- }, k), this.renderButtons(j), !v && r().createElement(zn, {
3360
+ }, k), this.renderButtons(j), !v && r().createElement(Wn, {
3350
3361
  role: "combobox",
3351
3362
  "aria-owns": this.state.open ? this.popoverId : undefined,
3352
3363
  "aria-haspopup": true,
@@ -3469,8 +3480,8 @@
3469
3480
  return function n() {
3470
3481
  var r = Dr(e), o;
3471
3482
  if (t) {
3472
- var a = Dr(this).constructor;
3473
- o = Reflect.construct(r, arguments, a);
3483
+ var i = Dr(this).constructor;
3484
+ o = Reflect.construct(r, arguments, i);
3474
3485
  } else {
3475
3486
  o = r.apply(this, arguments);
3476
3487
  }
@@ -3520,41 +3531,43 @@
3520
3531
  return e;
3521
3532
  }
3522
3533
  var Nr = {
3523
- allowNewValues: a().bool,
3524
- animateLoading: a().bool,
3525
- children: a().node,
3526
- compact: a().bool,
3527
- controlledFilter: a().bool,
3528
- defaultPlacement: a().oneOf([ "above", "below", "vertical" ]),
3529
- defaultValues: a().array,
3530
- describedBy: a().string,
3531
- disabled: a().bool,
3532
- elementRef: a().oneOfType([ a().func, a().object ]),
3533
- error: a().bool,
3534
- filter: a().oneOf([ false, true, "controlled" ]),
3535
- footerMessage: a().node,
3536
- inline: a().bool,
3537
- inputId: a().string,
3538
- inputRef: a().oneOfType([ a().func, a().object ]),
3539
- isLoadingOptions: a().bool,
3540
- labelledBy: a().string,
3541
- loadingMessage: a().node,
3542
- menuStyle: a().object,
3543
- name: a().string,
3544
- noOptionsMessage: a().node,
3545
- onChange: a().func,
3546
- onClose: a().func,
3547
- onFilterChange: a().func,
3548
- onOpen: a().func,
3549
- onScroll: a().func,
3550
- onScrollBottom: a().func,
3551
- placeholder: a().string,
3552
- repositionMode: a().oneOf([ "none", "flip" ]),
3553
- selectAllAppearance: a().oneOf([ "buttongroup", "checkbox" ]),
3554
- showSelectedValuesFirst: a().oneOf([ "nextOpen", "immediately", "never" ]),
3555
- tabConfirmsNewValue: a().bool,
3556
- useClickawayOverlay: a().bool,
3557
- values: a().array
3534
+ allowNewValues: i().bool,
3535
+ animateLoading: i().bool,
3536
+ children: i().node,
3537
+ compact: i().bool,
3538
+ controlledFilter: i().bool,
3539
+ defaultPlacement: i().oneOf([ "above", "below", "vertical" ]),
3540
+ defaultValues: i().array,
3541
+ describedBy: i().string,
3542
+ disabled: i().bool,
3543
+ elementRef: i().oneOfType([ i().func, i().object ]),
3544
+ error: i().bool,
3545
+ filter: i().oneOf([ false, true, "controlled" ]),
3546
+ footerMessage: i().node,
3547
+ inline: i().bool,
3548
+ inputId: i().string,
3549
+ inputRef: i().oneOfType([ i().func, i().object ]),
3550
+ isLoadingOptions: i().bool,
3551
+ labelledBy: i().string,
3552
+ loadingMessage: i().node,
3553
+ menuStyle: i().object,
3554
+ name: i().string,
3555
+ noOptionsMessage: i().node,
3556
+ onChange: i().func,
3557
+ onClose: i().func,
3558
+ onFilterChange: i().func,
3559
+ onOpen: i().func,
3560
+ onScroll: i().func,
3561
+ onScrollBottom: i().func,
3562
+ placeholder: i().string,
3563
+ repositionMode: i().oneOf([ "none", "flip" ]),
3564
+ selectAllAppearance: i().oneOf([ "buttongroup", "checkbox" ]),
3565
+ showSelectedValuesFirst: i().oneOf([ "nextOpen", "immediately", "never" ]),
3566
+ tabConfirmsNewValue: i().bool,
3567
+ useClickawayOverlay: i().bool,
3568
+ values: i().array,
3569
+ /** @private */
3570
+ virtualization: i().number
3558
3571
  };
3559
3572
  var Br = {
3560
3573
  allowNewValues: false,
@@ -3593,6 +3606,7 @@
3593
3606
  }, c()(this.props, "compact")));
3594
3607
  }
3595
3608
  if (false) {}
3609
+ if (false) {}
3596
3610
 
3597
3611
  return r().createElement(xr, Ir({
3598
3612
  "data-test": "multiselect"