@jetbrains/ring-ui-built 7.0.18 → 7.0.20

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 (104) hide show
  1. package/components/_helpers/_rollupPluginBabelHelpers.js +5 -5
  2. package/components/_helpers/card.js +5 -5
  3. package/components/_helpers/input.js +7 -7
  4. package/components/_helpers/select__filter.js +2 -2
  5. package/components/_helpers/sidebar.js +2 -2
  6. package/components/alert/alert.js +2 -2
  7. package/components/alert-service/alert-service.js +2 -2
  8. package/components/analytics/analytics.js +1 -1
  9. package/components/analytics/analytics__custom-plugin.js +8 -8
  10. package/components/auth/auth__core.js +54 -54
  11. package/components/auth/background-flow.js +4 -4
  12. package/components/auth/iframe-flow.js +7 -7
  13. package/components/auth/request-builder.js +3 -3
  14. package/components/auth/response-parser.js +4 -4
  15. package/components/auth/storage.js +12 -12
  16. package/components/auth/token-validator.js +7 -7
  17. package/components/auth/window-flow.js +7 -7
  18. package/components/auth-dialog/auth-dialog.js +1 -1
  19. package/components/avatar/avatar.d.ts +2 -0
  20. package/components/avatar/avatar.js +8 -0
  21. package/components/avatar-stack/avatar-stack.d.ts +15 -0
  22. package/components/avatar-stack/avatar-stack.js +117 -0
  23. package/components/button/button.js +2 -2
  24. package/components/caret/caret.js +6 -6
  25. package/components/checkbox/checkbox.js +1 -1
  26. package/components/clipboard/clipboard-fallback.js +3 -3
  27. package/components/code/code.js +1 -1
  28. package/components/collapse/collapse-content.js +2 -2
  29. package/components/collapse/collapse.js +1 -1
  30. package/components/data-list/data-list.js +3 -3
  31. package/components/data-list/item.js +1 -1
  32. package/components/date-picker/consts.js +1 -1
  33. package/components/date-picker/date-input.js +5 -5
  34. package/components/date-picker/date-picker.js +9 -9
  35. package/components/date-picker/date-popup.js +4 -4
  36. package/components/date-picker/years.js +1 -1
  37. package/components/dialog/dialog.js +1 -1
  38. package/components/dropdown/dropdown.js +4 -4
  39. package/components/editable-heading/editable-heading.js +4 -4
  40. package/components/global/focus-sensor-hoc.js +10 -10
  41. package/components/global/memoize.js +1 -1
  42. package/components/global/normalize-indent.js +1 -1
  43. package/components/global/react-dom-renderer.js +1 -1
  44. package/components/global/schedule-raf.js +1 -1
  45. package/components/header/profile.js +8 -8
  46. package/components/header/smart-profile.js +2 -2
  47. package/components/header/smart-services.js +4 -4
  48. package/components/http/http.js +9 -9
  49. package/components/http/http.mock.js +3 -3
  50. package/components/hub-source/hub-source.js +6 -6
  51. package/components/hub-source/hub-source__user.js +2 -2
  52. package/components/hub-source/hub-source__users-groups.js +4 -4
  53. package/components/i18n/i18n.js +1 -1
  54. package/components/island/adaptive-island-hoc.js +1 -1
  55. package/components/island/content.js +3 -3
  56. package/components/island/header.js +1 -1
  57. package/components/list/list.js +4 -4
  58. package/components/list/list__item.js +2 -2
  59. package/components/list/list__link.js +1 -1
  60. package/components/list/list__users-groups-source.js +2 -2
  61. package/components/loader/loader.js +2 -2
  62. package/components/loader/loader__core.js +27 -27
  63. package/components/login-dialog/login-dialog.js +1 -1
  64. package/components/message/message.js +14 -14
  65. package/components/old-browsers-message/white-list.js +3 -3
  66. package/components/pager/pager.js +9 -9
  67. package/components/permissions/permissions.js +7 -7
  68. package/components/permissions/permissions__cache.js +4 -4
  69. package/components/popup/popup.js +8 -8
  70. package/components/popup/position.js +1 -1
  71. package/components/popup-menu/popup-menu.js +1 -1
  72. package/components/progress-bar/progress-bar.js +2 -2
  73. package/components/query-assist/query-assist.js +43 -43
  74. package/components/radio/radio__item.js +2 -2
  75. package/components/select/select.js +27 -27
  76. package/components/select/select__popup.js +9 -9
  77. package/components/shortcuts/core.js +1 -1
  78. package/components/slider/slider.js +8 -8
  79. package/components/slider/slider.utils.js +1 -1
  80. package/components/storage/storage__local.js +1 -1
  81. package/components/style.css +1 -1
  82. package/components/tab-trap/tab-trap.js +4 -4
  83. package/components/table/header-cell.js +2 -2
  84. package/components/table/multitable.js +7 -7
  85. package/components/table/row-with-focus-sensor.js +4 -4
  86. package/components/table/row.js +1 -1
  87. package/components/table/selection-shortcuts-hoc.js +12 -12
  88. package/components/table/selection.js +7 -7
  89. package/components/table/table.js +1 -1
  90. package/components/tabs/collapsible-tab.js +3 -3
  91. package/components/tabs/collapsible-tabs.js +6 -6
  92. package/components/tabs/dumb-tabs.js +1 -1
  93. package/components/tabs/smart-tabs.js +1 -1
  94. package/components/tag/tag.js +2 -2
  95. package/components/tags-input/tags-input.js +17 -17
  96. package/components/tooltip/tooltip.d.ts +1 -0
  97. package/components/tooltip/tooltip.js +15 -8
  98. package/components/upload/upload.js +3 -3
  99. package/components/user-agreement/service.js +3 -3
  100. package/components/user-agreement/user-agreement.js +8 -8
  101. package/components/user-card/card.js +2 -2
  102. package/components/user-card/user-card.js +2 -2
  103. package/package.json +2 -2
  104. package/typings.d.ts +5 -0
@@ -151,12 +151,12 @@ class QueryAssist extends Component {
151
151
  suggestions: [],
152
152
  showPopup: false
153
153
  });
154
- _defineProperty(this, "immediateState", void 0);
155
- _defineProperty(this, "requestData", void 0);
154
+ _defineProperty(this, "immediateState", undefined);
155
+ _defineProperty(this, "requestData", undefined);
156
156
  _defineProperty(this, "ngModelStateField", ngModelStateField);
157
157
  // An array of {query: string; caret: number}[]
158
158
  _defineProperty(this, "historyStack", []);
159
- _defineProperty(this, "mouseIsDownOnPopup", void 0);
159
+ _defineProperty(this, "mouseIsDownOnPopup", undefined);
160
160
  _defineProperty(this, "handleFocusChange", e => {
161
161
  // otherwise it's blur and false
162
162
  const focus = e.type === 'focus';
@@ -179,7 +179,7 @@ class QueryAssist extends Component {
179
179
  shortcuts: focus
180
180
  });
181
181
  });
182
- _defineProperty(this, "node", void 0);
182
+ _defineProperty(this, "node", undefined);
183
183
  _defineProperty(this, "nodeRef", node => {
184
184
  this.node = node;
185
185
  });
@@ -194,14 +194,14 @@ class QueryAssist extends Component {
194
194
  if (typeof _this.immediateState.selection === 'number' && Number.isInteger(_this.immediateState.selection) && _this.immediateState.selection > -1) {
195
195
  var _this$caret;
196
196
  // Set to end of field value if newCaretPosition is inappropriate
197
- (_this$caret = _this.caret) === null || _this$caret === void 0 || _this$caret.setPosition(newCaretPosition >= 0 ? newCaretPosition : -1);
197
+ (_this$caret = _this.caret) === null || _this$caret === undefined || _this$caret.setPosition(newCaretPosition >= 0 ? newCaretPosition : -1);
198
198
  _this.scrollInput();
199
199
  } else if (_this.immediateState.selection && typeof _this.immediateState.selection === 'object' && _this.immediateState.selection.startOffset !== undefined) {
200
200
  var _this$caret2;
201
- (_this$caret2 = _this.caret) === null || _this$caret2 === void 0 || _this$caret2.setPosition(_this.immediateState.selection);
201
+ (_this$caret2 = _this.caret) === null || _this$caret2 === undefined || _this$caret2.setPosition(_this.immediateState.selection);
202
202
  } else if (_this.immediateState.selection === undefined || params.forceSetCaret) {
203
203
  var _this$caret3;
204
- (_this$caret3 = _this.caret) === null || _this$caret3 === void 0 || _this$caret3.setPosition(-1);
204
+ (_this$caret3 = _this.caret) === null || _this$caret3 === undefined || _this$caret3.setPosition(-1);
205
205
  }
206
206
  }
207
207
  });
@@ -215,15 +215,15 @@ class QueryAssist extends Component {
215
215
  });
216
216
  }
217
217
  });
218
- _defineProperty(this, "isComposing", void 0);
218
+ _defineProperty(this, "isComposing", undefined);
219
219
  _defineProperty(this, "handleInput", e => {
220
220
  var _this$caret4, _currentCaret$positio;
221
221
  this.togglePlaceholder();
222
- const currentCaret = (_this$caret4 = this.caret) === null || _this$caret4 === void 0 ? void 0 : _this$caret4.getPosition();
222
+ const currentCaret = (_this$caret4 = this.caret) === null || _this$caret4 === undefined ? undefined : _this$caret4.getPosition();
223
223
  const props = {
224
224
  dirty: true,
225
225
  query: this.getQuery(),
226
- caret: typeof currentCaret === 'number' ? currentCaret : (_currentCaret$positio = currentCaret === null || currentCaret === void 0 ? void 0 : currentCaret.position) !== null && _currentCaret$positio !== void 0 ? _currentCaret$positio : 0,
226
+ caret: typeof currentCaret === 'number' ? currentCaret : (_currentCaret$positio = currentCaret === null || currentCaret === undefined ? undefined : currentCaret.position) !== null && _currentCaret$positio !== undefined ? _currentCaret$positio : 0,
227
227
  focus: true
228
228
  };
229
229
  if (this.immediateState.query === props.query && !this.isComposing) {
@@ -242,7 +242,7 @@ class QueryAssist extends Component {
242
242
  }
243
243
  const diff = this.immediateState.query.length - this.state.query.length;
244
244
  const originalIndex = this.immediateState.caret - diff;
245
- const ranges = [...((_this$state$styleRang = this.state.styleRanges) !== null && _this$state$styleRang !== void 0 ? _this$state$styleRang : [])];
245
+ const ranges = [...((_this$state$styleRang = this.state.styleRanges) !== null && _this$state$styleRang !== undefined ? _this$state$styleRang : [])];
246
246
  const range = ranges.find(r => originalIndex >= r.start && originalIndex <= r.start + r.length);
247
247
  if (range) {
248
248
  range.length += diff;
@@ -254,7 +254,7 @@ class QueryAssist extends Component {
254
254
  this.props.onChange(props);
255
255
  if (this.props.autoOpen === 'force' || props.query.length > 0) {
256
256
  var _this$requestData;
257
- (_this$requestData = this.requestData) === null || _this$requestData === void 0 || _this$requestData.call(this);
257
+ (_this$requestData = this.requestData) === null || _this$requestData === undefined || _this$requestData.call(this);
258
258
  }
259
259
  });
260
260
  // It's necessary to prevent new element creation before any other hooks
@@ -282,7 +282,7 @@ class QueryAssist extends Component {
282
282
  _defineProperty(this, "setState", (state, resolve) => {
283
283
  super.setState(state, () => {
284
284
  this._pushHistory(state);
285
- resolve === null || resolve === void 0 || resolve();
285
+ resolve === null || resolve === undefined || resolve();
286
286
  });
287
287
  });
288
288
  _defineProperty(this, "undo", e => {
@@ -294,7 +294,7 @@ class QueryAssist extends Component {
294
294
  query: previous.query
295
295
  }, () => {
296
296
  var _this$caret5;
297
- (_this$caret5 = this.caret) === null || _this$caret5 === void 0 || _this$caret5.setPosition(previous.caret);
297
+ (_this$caret5 = this.caret) === null || _this$caret5 === undefined || _this$caret5.setPosition(previous.caret);
298
298
  this.handleInput(e);
299
299
  });
300
300
  });
@@ -312,8 +312,8 @@ class QueryAssist extends Component {
312
312
  if (this.isComposing) {
313
313
  return;
314
314
  }
315
- const currentCaret = (_this$caret6 = this.caret) === null || _this$caret6 === void 0 ? void 0 : _this$caret6.getPosition();
316
- const caret = typeof currentCaret === 'number' ? currentCaret : (_currentCaret$positio2 = currentCaret === null || currentCaret === void 0 ? void 0 : currentCaret.position) !== null && _currentCaret$positio2 !== void 0 ? _currentCaret$positio2 : 0;
315
+ const currentCaret = (_this$caret6 = this.caret) === null || _this$caret6 === undefined ? undefined : _this$caret6.getPosition();
316
+ const caret = typeof currentCaret === 'number' ? currentCaret : (_currentCaret$positio2 = currentCaret === null || currentCaret === undefined ? undefined : currentCaret.position) !== null && _currentCaret$positio2 !== undefined ? _currentCaret$positio2 : 0;
317
317
  const popupHidden = !this.state.showPopup && e.type === 'click';
318
318
  if (!this.props.disabled && (caret !== this.immediateState.caret || popupHidden)) {
319
319
  this.immediateState.prevCaret = this.immediateState.caret;
@@ -321,7 +321,7 @@ class QueryAssist extends Component {
321
321
  this.scrollInput();
322
322
  if (this.immediateState.query.length > 0) {
323
323
  var _this$requestData2;
324
- (_this$requestData2 = this.requestData) === null || _this$requestData2 === void 0 || _this$requestData2.call(this);
324
+ (_this$requestData2 = this.requestData) === null || _this$requestData2 === undefined || _this$requestData2.call(this);
325
325
  }
326
326
  }
327
327
  if (this.props.autoOpen !== 'force' && this.immediateState.query.length < 1) {
@@ -362,7 +362,7 @@ class QueryAssist extends Component {
362
362
  if (!dequal(_this.state.styleRanges, styleRanges)) {
363
363
  state.styleRanges = styleRanges;
364
364
  }
365
- _this.immediateState.selection = (_this$caret7 = _this.caret) === null || _this$caret7 === void 0 ? void 0 : _this$caret7.getPosition({
365
+ _this.immediateState.selection = (_this$caret7 = _this.caret) === null || _this$caret7 === undefined ? undefined : _this$caret7.getPosition({
366
366
  avoidFocus: true
367
367
  });
368
368
  _this.setState(state, resolve);
@@ -395,13 +395,13 @@ class QueryAssist extends Component {
395
395
  const suffix = suggestion.suffix || '';
396
396
  const state = {
397
397
  prevCaret: currentCaret,
398
- caret: (_suggestion$caret = suggestion.caret) !== null && _suggestion$caret !== void 0 ? _suggestion$caret : 0,
399
- selection: (_suggestion$caret2 = suggestion.caret) !== null && _suggestion$caret2 !== void 0 ? _suggestion$caret2 : 0,
398
+ caret: (_suggestion$caret = suggestion.caret) !== null && _suggestion$caret !== undefined ? _suggestion$caret : 0,
399
+ selection: (_suggestion$caret2 = suggestion.caret) !== null && _suggestion$caret2 !== undefined ? _suggestion$caret2 : 0,
400
400
  query: query.substr(0, suggestion.completionStart) + prefix + suggestion.option + suffix
401
401
  };
402
402
  if (typeof replace === 'boolean' && replace) {
403
403
  var _suggestion$completio;
404
- state.query += this.immediateState.query.substr((_suggestion$completio = suggestion.completionEnd) !== null && _suggestion$completio !== void 0 ? _suggestion$completio : 0);
404
+ state.query += this.immediateState.query.substr((_suggestion$completio = suggestion.completionEnd) !== null && _suggestion$completio !== undefined ? _suggestion$completio : 0);
405
405
  } else {
406
406
  state.query += this.immediateState.query.substr(this.immediateState.caret);
407
407
  }
@@ -422,7 +422,7 @@ class QueryAssist extends Component {
422
422
  this.setCaretPosition();
423
423
  }
424
424
  this.closePopup();
425
- (_this$requestData3 = this.requestData) === null || _this$requestData3 === void 0 || _this$requestData3.call(this, true);
425
+ (_this$requestData3 = this.requestData) === null || _this$requestData3 === undefined || _this$requestData3.call(this, true);
426
426
  });
427
427
  _defineProperty(this, "requestStyleRanges", () => {
428
428
  const {
@@ -456,7 +456,7 @@ class QueryAssist extends Component {
456
456
  preventDefault(e);
457
457
  if (!this.state.showPopup) {
458
458
  var _this$requestData4;
459
- (_this$requestData4 = this.requestData) === null || _this$requestData4 === void 0 || _this$requestData4.call(this);
459
+ (_this$requestData4 = this.requestData) === null || _this$requestData4 === undefined || _this$requestData4.call(this);
460
460
  }
461
461
  });
462
462
  _defineProperty(this, "trackPopupMouseState", e => {
@@ -489,8 +489,8 @@ class QueryAssist extends Component {
489
489
  loading: false
490
490
  });
491
491
  });
492
- _defineProperty(this, "input", void 0);
493
- _defineProperty(this, "caret", void 0);
492
+ _defineProperty(this, "input", undefined);
493
+ _defineProperty(this, "caret", undefined);
494
494
  _defineProperty(this, "inputRef", node => {
495
495
  if (!node) {
496
496
  return;
@@ -498,23 +498,23 @@ class QueryAssist extends Component {
498
498
  this.input = node;
499
499
  this.caret = new Caret(this.input);
500
500
  });
501
- _defineProperty(this, "_popup", void 0);
501
+ _defineProperty(this, "_popup", undefined);
502
502
  _defineProperty(this, "popupRef", node => {
503
503
  this._popup = node;
504
504
  });
505
- _defineProperty(this, "placeholder", void 0);
505
+ _defineProperty(this, "placeholder", undefined);
506
506
  _defineProperty(this, "placeholderRef", node => {
507
507
  this.placeholder = node;
508
508
  });
509
- _defineProperty(this, "glass", void 0);
509
+ _defineProperty(this, "glass", undefined);
510
510
  _defineProperty(this, "glassRef", node => {
511
511
  this.glass = node;
512
512
  });
513
- _defineProperty(this, "loader", void 0);
513
+ _defineProperty(this, "loader", undefined);
514
514
  _defineProperty(this, "loaderRef", node => {
515
515
  this.loader = node;
516
516
  });
517
- _defineProperty(this, "clear", void 0);
517
+ _defineProperty(this, "clear", undefined);
518
518
  _defineProperty(this, "clearRef", node => {
519
519
  this.clear = node;
520
520
  });
@@ -581,7 +581,7 @@ class QueryAssist extends Component {
581
581
  this.immediateState.query = query;
582
582
  if (query && (this.props.autoOpen === 'force' || prevProps.autoOpen && query.length > 0)) {
583
583
  var _this$requestData5;
584
- (_this$requestData5 = this.requestData) === null || _this$requestData5 === void 0 || _this$requestData5.call(this);
584
+ (_this$requestData5 = this.requestData) === null || _this$requestData5 === undefined || _this$requestData5.call(this);
585
585
  } else if (query) {
586
586
  this.requestStyleRanges();
587
587
  }
@@ -601,14 +601,14 @@ class QueryAssist extends Component {
601
601
  }
602
602
  scrollInput() {
603
603
  var _this$caret8, _this$input, _this$input2, _this$input3;
604
- const caretOffset = (_this$caret8 = this.caret) === null || _this$caret8 === void 0 ? void 0 : _this$caret8.getOffset();
605
- if (((_this$input = this.input) === null || _this$input === void 0 ? void 0 : _this$input.clientWidth) !== ((_this$input2 = this.input) === null || _this$input2 === void 0 ? void 0 : _this$input2.scrollWidth) && caretOffset != null && ((_this$input3 = this.input) === null || _this$input3 === void 0 ? void 0 : _this$input3.clientWidth) != null && caretOffset > this.input.clientWidth) {
604
+ const caretOffset = (_this$caret8 = this.caret) === null || _this$caret8 === undefined ? undefined : _this$caret8.getOffset();
605
+ if (((_this$input = this.input) === null || _this$input === undefined ? undefined : _this$input.clientWidth) !== ((_this$input2 = this.input) === null || _this$input2 === undefined ? undefined : _this$input2.scrollWidth) && caretOffset != null && ((_this$input3 = this.input) === null || _this$input3 === undefined ? undefined : _this$input3.clientWidth) != null && caretOffset > this.input.clientWidth) {
606
606
  this.input.scrollLeft += caretOffset;
607
607
  }
608
608
  }
609
609
  getQuery() {
610
610
  var _this$input$textConte, _this$input4;
611
- return (_this$input$textConte = (_this$input4 = this.input) === null || _this$input4 === void 0 || (_this$input4 = _this$input4.textContent) === null || _this$input4 === void 0 ? void 0 : _this$input4.replace(/\s/g, ' ')) !== null && _this$input$textConte !== void 0 ? _this$input$textConte : '';
611
+ return (_this$input$textConte = (_this$input4 = this.input) === null || _this$input4 === undefined || (_this$input4 = _this$input4.textContent) === null || _this$input4 === undefined ? undefined : _this$input4.replace(/\s/g, ' ')) !== null && _this$input$textConte !== undefined ? _this$input$textConte : '';
612
612
  }
613
613
  isRenderingGlassOrLoader() {
614
614
  const renderLoader = this.props.loader !== false && this.state.loading;
@@ -617,14 +617,14 @@ class QueryAssist extends Component {
617
617
  _pushHistory(state) {
618
618
  var _this$historyStack$;
619
619
  const queryIsSet = 'query' in state;
620
- const queryIsSame = ((_this$historyStack$ = this.historyStack[0]) === null || _this$historyStack$ === void 0 ? void 0 : _this$historyStack$.query) === state.query;
620
+ const queryIsSame = ((_this$historyStack$ = this.historyStack[0]) === null || _this$historyStack$ === undefined ? undefined : _this$historyStack$.query) === state.query;
621
621
  if (queryIsSet && !queryIsSame) {
622
622
  var _this$caret$getPositi, _this$caret9;
623
623
  this.historyStack.unshift({
624
624
  query: state.query,
625
- caret: (_this$caret$getPositi = (_this$caret9 = this.caret) === null || _this$caret9 === void 0 ? void 0 : _this$caret9.getPosition({
625
+ caret: (_this$caret$getPositi = (_this$caret9 = this.caret) === null || _this$caret9 === undefined ? undefined : _this$caret9.getPosition({
626
626
  avoidFocus: true
627
- })) !== null && _this$caret$getPositi !== void 0 ? _this$caret$getPositi : -1
627
+ })) !== null && _this$caret$getPositi !== undefined ? _this$caret$getPositi : -1
628
628
  });
629
629
  }
630
630
  }
@@ -666,7 +666,7 @@ class QueryAssist extends Component {
666
666
  let offset = completionStartNode && getRect(completionStartNode).right - getRect(this.input).left;
667
667
  if (!offset) {
668
668
  var _this$caret$getOffset, _this$caret10;
669
- const caret = (_this$caret$getOffset = (_this$caret10 = this.caret) === null || _this$caret10 === void 0 ? void 0 : _this$caret10.getOffset()) !== null && _this$caret$getOffset !== void 0 ? _this$caret$getOffset : 0;
669
+ const caret = (_this$caret$getOffset = (_this$caret10 = this.caret) === null || _this$caret10 === undefined ? undefined : _this$caret10.getOffset()) !== null && _this$caret$getOffset !== undefined ? _this$caret$getOffset : 0;
670
670
  // Do not compensate caret in the beginning of field
671
671
  if (caret === 0) {
672
672
  return minOffset;
@@ -681,7 +681,7 @@ class QueryAssist extends Component {
681
681
  this.immediateState.selection = null;
682
682
  if (!this.props.focus) {
683
683
  var _this$caret11;
684
- (_this$caret11 = this.caret) === null || _this$caret11 === void 0 || _this$caret11.target.blur();
684
+ (_this$caret11 = this.caret) === null || _this$caret11 === undefined || _this$caret11.target.blur();
685
685
  }
686
686
  }
687
687
  /**
@@ -789,7 +789,7 @@ class QueryAssist extends Component {
789
789
  return jsx(Button, {
790
790
  icon: closeIcon,
791
791
  className: styles.clear,
792
- title: (_this$props$translati = (_this$props$translati2 = this.props.translations) === null || _this$props$translati2 === void 0 ? void 0 : _this$props$translati2.clearTitle) !== null && _this$props$translati !== void 0 ? _this$props$translati : translate('clearTitle'),
792
+ title: (_this$props$translati = (_this$props$translati2 = this.props.translations) === null || _this$props$translati2 === undefined ? undefined : _this$props$translati2.clearTitle) !== null && _this$props$translati !== undefined ? _this$props$translati : translate('clearTitle'),
793
793
  ref: this.clearRef,
794
794
  onClick: this.clearQuery,
795
795
  "data-test": "query-assist-clear-icon"
@@ -850,7 +850,7 @@ class QueryAssist extends Component {
850
850
  }), renderGlass && !huge && jsx(Icon, {
851
851
  glyph: searchIcon,
852
852
  className: styles.icon,
853
- title: (_translations$searchT = translations === null || translations === void 0 ? void 0 : translations.searchTitle) !== null && _translations$searchT !== void 0 ? _translations$searchT : translate('searchTitle'),
853
+ title: (_translations$searchT = translations === null || translations === undefined ? undefined : translations.searchTitle) !== null && _translations$searchT !== undefined ? _translations$searchT : translate('searchTitle'),
854
854
  ref: this.glassRef,
855
855
  "data-test": "query-assist-search-icon"
856
856
  }), renderLoader && jsx("div", {
@@ -861,7 +861,7 @@ class QueryAssist extends Component {
861
861
  ref: this.loaderRef,
862
862
  children: jsx(LoaderInline, {})
863
863
  }), jsx(ContentEditable, {
864
- "aria-label": (_translations$searchT2 = translations === null || translations === void 0 ? void 0 : translations.searchTitle) !== null && _translations$searchT2 !== void 0 ? _translations$searchT2 : translate('searchTitle'),
864
+ "aria-label": (_translations$searchT2 = translations === null || translations === undefined ? undefined : translations.searchTitle) !== null && _translations$searchT2 !== undefined ? _translations$searchT2 : translate('searchTitle'),
865
865
  className: inputClasses,
866
866
  "data-test": "ring-query-assist-input",
867
867
  inputRef: this.inputRef,
@@ -920,7 +920,7 @@ class QueryAssist extends Component {
920
920
  children: jsx(Icon, {
921
921
  glyph: searchIcon,
922
922
  className: styles.rightSearchIcon,
923
- title: (_translations$searchT3 = translations === null || translations === void 0 ? void 0 : translations.searchTitle) !== null && _translations$searchT3 !== void 0 ? _translations$searchT3 : translate('searchTitle'),
923
+ title: (_translations$searchT3 = translations === null || translations === undefined ? undefined : translations.searchTitle) !== null && _translations$searchT3 !== undefined ? _translations$searchT3 : translate('searchTitle'),
924
924
  onClick: this.handleApply,
925
925
  ref: this.glassRef,
926
926
  "data-test": "query-assist-search-icon"
@@ -15,11 +15,11 @@ class RadioItemInner extends Component {
15
15
  constructor() {
16
16
  super(...arguments);
17
17
  _defineProperty(this, "uid", getUID('ring-radio-item-'));
18
- _defineProperty(this, "input", void 0);
18
+ _defineProperty(this, "input", undefined);
19
19
  _defineProperty(this, "inputRef", el => {
20
20
  this.input = el;
21
21
  });
22
- _defineProperty(this, "label", void 0);
22
+ _defineProperty(this, "label", undefined);
23
23
  _defineProperty(this, "labelRef", el => {
24
24
  this.label = el;
25
25
  });
@@ -151,13 +151,13 @@ function getListItems(props, state, rawFilterString) {
151
151
  exactMatch = item.label === filterString;
152
152
  if (props.multiple && !(typeof props.multiple === 'object' && props.multiple.removeSelectedItems)) {
153
153
  var _state$multipleMap;
154
- item.checkbox = !!((_state$multipleMap = state.multipleMap) !== null && _state$multipleMap !== void 0 && _state$multipleMap[item.key]);
154
+ item.checkbox = !!((_state$multipleMap = state.multipleMap) !== null && _state$multipleMap !== undefined && _state$multipleMap[item.key]);
155
155
  }
156
156
  if (props.multiple && typeof props.multiple === 'object' && props.multiple.limit && Array.isArray(state.selected)) {
157
157
  item.disabled = props.multiple.limit === state.selected.length && !state.selected.find(selectedItem => selectedItem.key === item.key);
158
158
  }
159
159
  // Ignore item if it's multiple and is already selected
160
- if (!(props.multiple && typeof props.multiple === 'object' && props.multiple.removeSelectedItems && (_state$multipleMap2 = state.multipleMap) !== null && _state$multipleMap2 !== void 0 && _state$multipleMap2[item.key])) {
160
+ if (!(props.multiple && typeof props.multiple === 'object' && props.multiple.removeSelectedItems && (_state$multipleMap2 = state.multipleMap) !== null && _state$multipleMap2 !== undefined && _state$multipleMap2[item.key])) {
161
161
  filteredData.push(item);
162
162
  }
163
163
  }
@@ -178,7 +178,7 @@ function getListItems(props, state, rawFilterString) {
178
178
  addButton = {
179
179
  prefix: add.prefix,
180
180
  label,
181
- delayed: (_add$delayed = add.delayed) !== null && _add$delayed !== void 0 ? _add$delayed : true
181
+ delayed: (_add$delayed = add.delayed) !== null && _add$delayed !== undefined ? _add$delayed : true
182
182
  };
183
183
  }
184
184
  }
@@ -279,14 +279,14 @@ class Select extends Component {
279
279
  });
280
280
  });
281
281
  }
282
- if (!((_this$_popup = this._popup) !== null && _this$_popup !== void 0 && _this$_popup.isClickingPopup)) {
282
+ if (!((_this$_popup = this._popup) !== null && _this$_popup !== undefined && _this$_popup.isClickingPopup)) {
283
283
  this.setState({
284
284
  shortcutsEnabled: false,
285
285
  focused: false
286
286
  });
287
287
  }
288
288
  });
289
- _defineProperty(this, "node", void 0);
289
+ _defineProperty(this, "node", undefined);
290
290
  _defineProperty(this, "nodeRef", el => {
291
291
  this.node = el;
292
292
  });
@@ -298,9 +298,9 @@ class Select extends Component {
298
298
  });
299
299
  _defineProperty(this, "focus", () => {
300
300
  var _this$node;
301
- const focusableSelectExists = (_this$node = this.node) === null || _this$node === void 0 ? void 0 : _this$node.querySelector('[data-test~=ring-select__focus]');
301
+ const focusableSelectExists = (_this$node = this.node) === null || _this$node === undefined ? undefined : _this$node.querySelector('[data-test~=ring-select__focus]');
302
302
  const restoreFocusNode = this.props.targetElement || focusableSelectExists;
303
- restoreFocusNode === null || restoreFocusNode === void 0 || restoreFocusNode.focus();
303
+ restoreFocusNode === null || restoreFocusNode === undefined || restoreFocusNode.focus();
304
304
  });
305
305
  _defineProperty(this, "_onEnter", () => {
306
306
  var _this$_popup2;
@@ -308,14 +308,14 @@ class Select extends Component {
308
308
  this.addHandler();
309
309
  }
310
310
  this.props.onDone();
311
- if (!((_this$_popup2 = this._popup) !== null && _this$_popup2 !== void 0 && _this$_popup2.isVisible()) && this.props.allowAny) {
311
+ if (!((_this$_popup2 = this._popup) !== null && _this$_popup2 !== undefined && _this$_popup2.isVisible()) && this.props.allowAny) {
312
312
  return true;
313
313
  }
314
314
  return undefined;
315
315
  });
316
316
  _defineProperty(this, "_onEsc", event => {
317
317
  var _this$_popup3;
318
- if (!((_this$_popup3 = this._popup) !== null && _this$_popup3 !== void 0 && _this$_popup3.isVisible())) {
318
+ if (!((_this$_popup3 = this._popup) !== null && _this$_popup3 !== undefined && _this$_popup3.isVisible())) {
319
319
  return true;
320
320
  } else if (this.props.multiple || !this.props.getInitial) {
321
321
  return false;
@@ -412,7 +412,7 @@ class Select extends Component {
412
412
  this.props.onChange(fakeSelected, event);
413
413
  });
414
414
  }
415
- if (!((_this$_popup4 = this._popup) !== null && _this$_popup4 !== void 0 && _this$_popup4.isVisible())) {
415
+ if (!((_this$_popup4 = this._popup) !== null && _this$_popup4 !== undefined && _this$_popup4.isVisible())) {
416
416
  this.props.onBeforeOpen();
417
417
  }
418
418
  this.setState({
@@ -444,7 +444,7 @@ class Select extends Component {
444
444
  if (!isItem(selected) && !isCustomItem(selected) || selected.disabled || selected.isResetItem) {
445
445
  return;
446
446
  }
447
- const tryKeepOpen = (_this$props$tryKeepOp = _this.props.tryKeepOpen) !== null && _this$props$tryKeepOp !== void 0 ? _this$props$tryKeepOp : opts.tryKeepOpen;
447
+ const tryKeepOpen = (_this$props$tryKeepOp = _this.props.tryKeepOpen) !== null && _this$props$tryKeepOp !== undefined ? _this$props$tryKeepOp : opts.tryKeepOpen;
448
448
  if (!_this.props.multiple) {
449
449
  if (!tryKeepOpen) {
450
450
  _this._hidePopup(isSelectItemEvent);
@@ -498,10 +498,10 @@ class Select extends Component {
498
498
  }, () => {
499
499
  if (_this.state.multipleMap[selected.key]) {
500
500
  var _this$props$onSelect, _this$props;
501
- (_this$props$onSelect = (_this$props = _this.props).onSelect) === null || _this$props$onSelect === void 0 || _this$props$onSelect.call(_this$props, selected, event);
501
+ (_this$props$onSelect = (_this$props = _this.props).onSelect) === null || _this$props$onSelect === undefined || _this$props$onSelect.call(_this$props, selected, event);
502
502
  } else {
503
503
  var _this$props$onDeselec, _this$props2;
504
- (_this$props$onDeselec = (_this$props2 = _this.props).onDeselect) === null || _this$props$onDeselec === void 0 || _this$props$onDeselec.call(_this$props2, selected);
504
+ (_this$props$onDeselec = (_this$props2 = _this.props).onDeselect) === null || _this$props$onDeselec === undefined || _this$props$onDeselec.call(_this$props2, selected);
505
505
  }
506
506
  _this.props.onChange(_this.state.selected, event);
507
507
  if (tryKeepOpen) {
@@ -521,13 +521,13 @@ class Select extends Component {
521
521
  nextSelection = _this.props.data.filter(item => (isItem(item) || isCustomItem(item)) && !item.disabled);
522
522
  nextSelection.filter(item => !_this.props.selected.find(selectedItem => item.key === selectedItem.key)).forEach(item => {
523
523
  var _this$props$onSelect2, _this$props3;
524
- (_this$props$onSelect2 = (_this$props3 = _this.props).onSelect) === null || _this$props$onSelect2 === void 0 || _this$props$onSelect2.call(_this$props3, item);
524
+ (_this$props$onSelect2 = (_this$props3 = _this.props).onSelect) === null || _this$props$onSelect2 === undefined || _this$props$onSelect2.call(_this$props3, item);
525
525
  });
526
526
  } else {
527
527
  nextSelection = [];
528
528
  currentSelection.forEach(item => {
529
529
  var _this$props$onDeselec2, _this$props4;
530
- (_this$props$onDeselec2 = (_this$props4 = _this.props).onDeselect) === null || _this$props$onDeselec2 === void 0 || _this$props$onDeselec2.call(_this$props4, item);
530
+ (_this$props$onDeselec2 = (_this$props4 = _this.props).onDeselect) === null || _this$props$onDeselec2 === undefined || _this$props$onDeselec2.call(_this$props4, item);
531
531
  });
532
532
  }
533
533
  _this.props.onChange(nextSelection, event);
@@ -576,7 +576,7 @@ class Select extends Component {
576
576
  });
577
577
  return false;
578
578
  });
579
- _defineProperty(this, "filter", void 0);
579
+ _defineProperty(this, "filter", undefined);
580
580
  _defineProperty(this, "filterRef", el => {
581
581
  this.filter = el;
582
582
  });
@@ -736,10 +736,10 @@ class Select extends Component {
736
736
  let message;
737
737
  if (this.props.loading) {
738
738
  var _this$props$loadingMe;
739
- message = (_this$props$loadingMe = this.props.loadingMessage) !== null && _this$props$loadingMe !== void 0 ? _this$props$loadingMe : translate('loading');
739
+ message = (_this$props$loadingMe = this.props.loadingMessage) !== null && _this$props$loadingMe !== undefined ? _this$props$loadingMe : translate('loading');
740
740
  } else if (!shownData.length) {
741
741
  var _this$props$notFoundM;
742
- message = (_this$props$notFoundM = this.props.notFoundMessage) !== null && _this$props$notFoundM !== void 0 ? _this$props$notFoundM : translate('noOptionsFound');
742
+ message = (_this$props$notFoundM = this.props.notFoundMessage) !== null && _this$props$notFoundM !== undefined ? _this$props$notFoundM : translate('noOptionsFound');
743
743
  }
744
744
  return jsx(SelectPopup, {
745
745
  data: _shownData,
@@ -821,7 +821,7 @@ class Select extends Component {
821
821
  }
822
822
  getTopbar() {
823
823
  var _this$props$renderTop, _this$props5;
824
- return (_this$props$renderTop = (_this$props5 = this.props).renderTopToolbar) === null || _this$props$renderTop === void 0 ? void 0 : _this$props$renderTop.call(_this$props5);
824
+ return (_this$props$renderTop = (_this$props5 = this.props).renderTopToolbar) === null || _this$props$renderTop === undefined ? undefined : _this$props$renderTop.call(_this$props5);
825
825
  }
826
826
  getFilterFn() {
827
827
  return getFilterFn(this.props.filter);
@@ -861,12 +861,12 @@ class Select extends Component {
861
861
  }
862
862
  _getLabel() {
863
863
  var _ref3, _this$props$label;
864
- return (_ref3 = (_this$props$label = this.props.label) !== null && _this$props$label !== void 0 ? _this$props$label : this.props.selectedLabel) !== null && _ref3 !== void 0 ? _ref3 : 'Select an option';
864
+ return (_ref3 = (_this$props$label = this.props.label) !== null && _this$props$label !== undefined ? _this$props$label : this.props.selectedLabel) !== null && _ref3 !== undefined ? _ref3 : 'Select an option';
865
865
  }
866
866
  _getPlaceholder() {
867
867
  if (this._selectionIsEmpty()) {
868
868
  var _this$props$label2;
869
- return (_this$props$label2 = this.props.label) !== null && _this$props$label2 !== void 0 ? _this$props$label2 : 'Select an option';
869
+ return (_this$props$label2 = this.props.label) !== null && _this$props$label2 !== undefined ? _this$props$label2 : 'Select an option';
870
870
  }
871
871
  return this._getSelectedString();
872
872
  }
@@ -892,7 +892,7 @@ class Select extends Component {
892
892
  } = this.props;
893
893
  const icons = [];
894
894
  const height = this.props.height || this.context;
895
- if (!Array.isArray(selected) && selected !== null && selected !== void 0 && selected.icon) {
895
+ if (!Array.isArray(selected) && selected !== null && selected !== undefined && selected.icon) {
896
896
  icons.push(jsx("button", {
897
897
  title: "Toggle options popup",
898
898
  type: "button",
@@ -930,7 +930,7 @@ class Select extends Component {
930
930
  }
931
931
  _getAvatar() {
932
932
  var _this$state$selected, _this$state$selected2;
933
- return !Array.isArray(this.state.selected) && (((_this$state$selected = this.state.selected) === null || _this$state$selected === void 0 ? void 0 : _this$state$selected.avatar) || ((_this$state$selected2 = this.state.selected) === null || _this$state$selected2 === void 0 ? void 0 : _this$state$selected2.showGeneratedAvatar)) && jsx(Avatar, {
933
+ return !Array.isArray(this.state.selected) && (((_this$state$selected = this.state.selected) === null || _this$state$selected === undefined ? undefined : _this$state$selected.avatar) || ((_this$state$selected2 = this.state.selected) === null || _this$state$selected2 === undefined ? undefined : _this$state$selected2.showGeneratedAvatar)) && jsx(Avatar, {
934
934
  className: styles.avatar,
935
935
  url: this.state.selected.avatar,
936
936
  username: this.state.selected.username,
@@ -976,9 +976,9 @@ class Select extends Component {
976
976
  const ariaProps = this.state.showPopup ? {
977
977
  'aria-owns': this.listId,
978
978
  'aria-activedescendant': activeItemId,
979
- 'aria-label': (_this$props$label3 = this.props.label) !== null && _this$props$label3 !== void 0 ? _this$props$label3 : undefined
979
+ 'aria-label': (_this$props$label3 = this.props.label) !== null && _this$props$label3 !== undefined ? _this$props$label3 : undefined
980
980
  } : {
981
- 'aria-label': (_this$props$label4 = this.props.label) !== null && _this$props$label4 !== void 0 ? _this$props$label4 : undefined
981
+ 'aria-label': (_this$props$label4 = this.props.label) !== null && _this$props$label4 !== undefined ? _this$props$label4 : undefined
982
982
  };
983
983
  switch (this.props.type) {
984
984
  case Type.INPUT_WITHOUT_CONTROLS:
@@ -1015,7 +1015,7 @@ class Select extends Component {
1015
1015
  placeholder: this.props.inputPlaceholder,
1016
1016
  onKeyDown: this.props.onKeyDown,
1017
1017
  "data-test": "ring-select__focus",
1018
- enableShortcuts: shortcutsEnabled ? Object.keys(_objectSpread2(_objectSpread2({}, this.getShortcutsMap()), (_this$_popup5 = this._popup) === null || _this$_popup5 === void 0 || (_this$_popup5 = _this$_popup5.list) === null || _this$_popup5 === void 0 ? void 0 : _this$_popup5.shortcutsMap)) : undefined,
1018
+ enableShortcuts: shortcutsEnabled ? Object.keys(_objectSpread2(_objectSpread2({}, this.getShortcutsMap()), (_this$_popup5 = this._popup) === null || _this$_popup5 === undefined || (_this$_popup5 = _this$_popup5.list) === null || _this$_popup5 === undefined ? undefined : _this$_popup5.shortcutsMap)) : undefined,
1019
1019
  icon: this.props.filterIcon,
1020
1020
  afterInput: iconsNode
1021
1021
  })), this._renderPopup()]
@@ -1063,7 +1063,7 @@ class Select extends Component {
1063
1063
  map: this.getShortcutsMap(),
1064
1064
  scope: this.shortcutsScope
1065
1065
  }), jsx(Anchor, _objectSpread2(_objectSpread2({}, ariaProps), {}, {
1066
- className: (_this$props$buttonCla = this.props.buttonClassName) !== null && _this$props$buttonCla !== void 0 ? _this$props$buttonCla : undefined,
1066
+ className: (_this$props$buttonCla = this.props.buttonClassName) !== null && _this$props$buttonCla !== undefined ? _this$props$buttonCla : undefined,
1067
1067
  id: this.props.id,
1068
1068
  onClick: this._clickHandler,
1069
1069
  "data-test": "ring-select__focus",
@@ -90,8 +90,8 @@ class SelectPopup extends PureComponent {
90
90
  });
91
91
  _defineProperty(this, "isClickingPopup", false);
92
92
  // This flag is set to true while an item in the popup is being clicked
93
- _defineProperty(this, "filter", void 0);
94
- _defineProperty(this, "caret", void 0);
93
+ _defineProperty(this, "filter", undefined);
94
+ _defineProperty(this, "caret", undefined);
95
95
  _defineProperty(this, "onFilterFocus", () => {
96
96
  this._togglePopupFilterShortcuts(false);
97
97
  this.setState({
@@ -109,7 +109,7 @@ class SelectPopup extends PureComponent {
109
109
  _defineProperty(this, "mouseUpHandler", () => {
110
110
  this.isClickingPopup = false;
111
111
  });
112
- _defineProperty(this, "popup", void 0);
112
+ _defineProperty(this, "popup", undefined);
113
113
  _defineProperty(this, "onListSelect", (selected, event, opts) => {
114
114
  const getSelectItemEvent = () => {
115
115
  const customEvent = document.createEvent('Event');
@@ -127,7 +127,7 @@ class SelectPopup extends PureComponent {
127
127
  });
128
128
  _defineProperty(this, "onClickHandler", () => {
129
129
  var _this$filter;
130
- return (_this$filter = this.filter) === null || _this$filter === void 0 ? void 0 : _this$filter.focus();
130
+ return (_this$filter = this.filter) === null || _this$filter === undefined ? undefined : _this$filter.focus();
131
131
  });
132
132
  _defineProperty(this, "handleRemoveTag", memoize(tag => event => this.removeTag(tag, event)));
133
133
  _defineProperty(this, "handleTagClick", memoize(tag => () => {
@@ -155,7 +155,7 @@ class SelectPopup extends PureComponent {
155
155
  inline: true,
156
156
  onClick: this.handleSelectAll,
157
157
  children: activeFilters.length !== this.props.selected.length ? multiple.selectAllLabel || 'Select all' : multiple.deselectAllLabel || 'Deselect all'
158
- }), ((_multiple$renderSelec = multiple.renderSelectedItemsDescription) === null || _multiple$renderSelec === void 0 ? void 0 : _multiple$renderSelec.call(multiple, this.props.selected, activeFilters.length)) || jsx(Text, {
158
+ }), ((_multiple$renderSelec = multiple.renderSelectedItemsDescription) === null || _multiple$renderSelec === undefined ? undefined : _multiple$renderSelec.call(multiple, this.props.selected, activeFilters.length)) || jsx(Text, {
159
159
  info: true,
160
160
  children: "".concat(this.props.selected.length, " selected")
161
161
  })]
@@ -181,13 +181,13 @@ class SelectPopup extends PureComponent {
181
181
  const containerNode = getPopupContainer(ringPopupTarget) || document.documentElement;
182
182
  return anchorNode != null ? Math.min(directions.reduce((maxHeight, direction) => {
183
183
  var _maxHeightForDirectio;
184
- return Math.max(maxHeight, (_maxHeightForDirectio = maxHeightForDirection(direction, anchorNode, getStyles(containerNode).position !== 'static' ? containerNode : null)) !== null && _maxHeightForDirectio !== void 0 ? _maxHeightForDirectio : 0);
184
+ return Math.max(maxHeight, (_maxHeightForDirectio = maxHeightForDirection(direction, anchorNode, getStyles(containerNode).position !== 'static' ? containerNode : null)) !== null && _maxHeightForDirectio !== undefined ? _maxHeightForDirectio : 0);
185
185
  }, minMaxHeight), userDefinedMaxHeight) : userDefinedMaxHeight;
186
186
  }));
187
187
  _defineProperty(this, "popupRef", el => {
188
188
  this.popup = el;
189
189
  });
190
- _defineProperty(this, "list", void 0);
190
+ _defineProperty(this, "list", undefined);
191
191
  _defineProperty(this, "listRef", el => {
192
192
  this.list = el;
193
193
  });
@@ -223,7 +223,7 @@ class SelectPopup extends PureComponent {
223
223
  focusFilter() {
224
224
  setTimeout(() => {
225
225
  var _this$filter2;
226
- return (_this$filter2 = this.filter) === null || _this$filter2 === void 0 ? void 0 : _this$filter2.focus();
226
+ return (_this$filter2 = this.filter) === null || _this$filter2 === undefined ? undefined : _this$filter2.focus();
227
227
  });
228
228
  }
229
229
  isEventTargetFilter(event) {
@@ -301,7 +301,7 @@ class SelectPopup extends PureComponent {
301
301
  className: styles.filterWrapper,
302
302
  "data-test": "ring-select-popup-filter",
303
303
  children: [!this.props.tags && jsx(Icon, {
304
- glyph: (_this$props$filterIco = this.props.filterIcon) !== null && _this$props$filterIco !== void 0 ? _this$props$filterIco : searchIcon,
304
+ glyph: (_this$props$filterIco = this.props.filterIcon) !== null && _this$props$filterIco !== undefined ? _this$props$filterIco : searchIcon,
305
305
  className: styles.filterIcon,
306
306
  "data-test-custom": "ring-select-popup-filter-icon"
307
307
  }), jsx(FilterWithShortcuts, {
@@ -171,7 +171,7 @@ class Shortcuts {
171
171
  }
172
172
  hasKey(key, scope) {
173
173
  var _this$_scopes$scope;
174
- return !!((_this$_scopes$scope = this._scopes[scope]) !== null && _this$_scopes$scope !== void 0 && _this$_scopes$scope[key]);
174
+ return !!((_this$_scopes$scope = this._scopes[scope]) !== null && _this$_scopes$scope !== undefined && _this$_scopes$scope[key]);
175
175
  }
176
176
  _getKeyboardEventType(params) {
177
177
  if (!params.type && sniffr.os.name === 'windows') {