@jetbrains/ring-ui-built 6.0.28 → 6.0.30

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 (204) hide show
  1. package/components/_helpers/_rollupPluginBabelHelpers.js +4 -15
  2. package/components/_helpers/anchor.js +1 -1
  3. package/components/_helpers/caption.js +4 -6
  4. package/components/_helpers/card.js +5 -7
  5. package/components/_helpers/icon__svg.js +1 -1
  6. package/components/_helpers/input.js +12 -14
  7. package/components/_helpers/query-assist__suggestions.js +2 -3
  8. package/components/_helpers/select__filter.js +6 -8
  9. package/components/_helpers/services-link.js +4 -6
  10. package/components/_helpers/sidebar.js +9 -11
  11. package/components/_helpers/tab-link.js +1 -1
  12. package/components/_helpers/theme.js +1 -1
  13. package/components/_helpers/title.js +7 -9
  14. package/components/alert/alert.js +17 -19
  15. package/components/alert/container.js +4 -6
  16. package/components/alert-service/alert-service.js +9 -10
  17. package/components/analytics/analytics.js +2 -3
  18. package/components/analytics/analytics__custom-plugin.js +2 -3
  19. package/components/auth/auth.js +9 -8
  20. package/components/auth/auth__core.js +16 -16
  21. package/components/auth/background-flow.js +4 -5
  22. package/components/auth/down-notification.js +7 -7
  23. package/components/auth/iframe-flow.js +7 -8
  24. package/components/auth/request-builder.js +3 -4
  25. package/components/auth/response-parser.js +10 -12
  26. package/components/auth/storage.js +10 -11
  27. package/components/auth/token-validator.js +12 -14
  28. package/components/auth/window-flow.js +4 -5
  29. package/components/auth-dialog/auth-dialog.js +13 -15
  30. package/components/auth-dialog-service/auth-dialog-service.js +7 -7
  31. package/components/avatar/avatar.js +14 -16
  32. package/components/avatar/fallback-avatar.js +5 -5
  33. package/components/badge/badge.js +6 -8
  34. package/components/button/button.js +7 -9
  35. package/components/button-group/button-group.js +6 -8
  36. package/components/button-set/button-set.js +6 -8
  37. package/components/button-toolbar/button-toolbar.js +6 -8
  38. package/components/caret/caret.js +7 -8
  39. package/components/checkbox/checkbox.js +7 -9
  40. package/components/clipboard/clipboard.js +8 -8
  41. package/components/code/code.js +12 -14
  42. package/components/collapse/collapse-content.js +7 -7
  43. package/components/collapse/collapse-control.js +2 -2
  44. package/components/collapse/collapse.js +1 -1
  45. package/components/confirm/confirm.js +11 -13
  46. package/components/confirm-service/confirm-service.js +6 -6
  47. package/components/content-layout/content-layout.js +7 -9
  48. package/components/contenteditable/contenteditable.js +4 -6
  49. package/components/control-label/control-label.js +1 -1
  50. package/components/data-list/data-list.js +19 -23
  51. package/components/data-list/data-list.mock.js +2 -2
  52. package/components/data-list/item.js +12 -14
  53. package/components/data-list/selection.js +10 -12
  54. package/components/data-list/title.js +1 -1
  55. package/components/date-picker/consts.js +2 -2
  56. package/components/date-picker/date-input.js +12 -14
  57. package/components/date-picker/date-picker.d.ts +1 -1
  58. package/components/date-picker/date-picker.js +19 -21
  59. package/components/date-picker/date-popup.js +23 -25
  60. package/components/date-picker/day.js +14 -16
  61. package/components/date-picker/month-names.js +7 -9
  62. package/components/date-picker/month-slider.js +10 -12
  63. package/components/date-picker/month.js +5 -5
  64. package/components/date-picker/months.js +4 -4
  65. package/components/date-picker/weekdays.js +3 -3
  66. package/components/date-picker/years.js +12 -14
  67. package/components/dialog/dialog.js +18 -20
  68. package/components/dropdown/anchor.js +1 -1
  69. package/components/dropdown/dropdown.js +13 -15
  70. package/components/dropdown-menu/dropdown-menu.js +10 -10
  71. package/components/editable-heading/editable-heading.js +5 -5
  72. package/components/error-bubble/error-bubble.js +11 -13
  73. package/components/error-message/error-message.js +6 -8
  74. package/components/footer/footer.js +2 -2
  75. package/components/global/create-stateful-context.js +1 -1
  76. package/components/global/data-tests.js +3 -3
  77. package/components/global/dom.js +7 -8
  78. package/components/global/focus-sensor-hoc.js +15 -17
  79. package/components/global/fuzzy-highlight.js +2 -2
  80. package/components/global/get-uid.js +1 -1
  81. package/components/global/inject-styles.js +1 -1
  82. package/components/global/listeners.js +4 -5
  83. package/components/global/memoize.js +1 -1
  84. package/components/global/normalize-indent.js +5 -5
  85. package/components/global/react-dom-renderer.js +7 -9
  86. package/components/global/rerender-hoc.js +5 -7
  87. package/components/global/theme.js +7 -7
  88. package/components/global/trivial-template-tag.js +2 -2
  89. package/components/global/url.js +1 -1
  90. package/components/grid/col.js +7 -9
  91. package/components/grid/grid.js +6 -8
  92. package/components/grid/row.js +5 -7
  93. package/components/group/group.js +4 -6
  94. package/components/header/header.js +13 -14
  95. package/components/header/logo.js +5 -7
  96. package/components/header/profile.js +12 -14
  97. package/components/header/services-link.js +2 -2
  98. package/components/header/services.js +12 -14
  99. package/components/header/smart-profile.js +17 -18
  100. package/components/header/smart-services.js +16 -17
  101. package/components/header/tray-icon.js +5 -7
  102. package/components/header/tray.js +4 -6
  103. package/components/heading/heading.js +1 -1
  104. package/components/http/http.js +11 -13
  105. package/components/http/http.mock.js +15 -17
  106. package/components/hub-source/hub-source.js +4 -5
  107. package/components/hub-source/hub-source__user.js +6 -6
  108. package/components/hub-source/hub-source__users-groups.js +4 -5
  109. package/components/i18n/i18n.js +1 -1
  110. package/components/icon/icon.js +5 -7
  111. package/components/icon/icon__svg.js +1 -1
  112. package/components/icon/index.js +1 -1
  113. package/components/input/input.js +1 -1
  114. package/components/island/adaptive-island-hoc.js +6 -8
  115. package/components/island/content.js +13 -15
  116. package/components/island/header.js +4 -6
  117. package/components/island/island.js +6 -8
  118. package/components/island-legacy/content-legacy.js +4 -6
  119. package/components/island-legacy/header-legacy.js +4 -6
  120. package/components/island-legacy/island-legacy.js +4 -6
  121. package/components/link/clickableLink.js +5 -7
  122. package/components/link/link.js +6 -8
  123. package/components/list/list.js +47 -49
  124. package/components/list/list__custom.js +6 -8
  125. package/components/list/list__hint.js +4 -6
  126. package/components/list/list__item.js +13 -15
  127. package/components/list/list__link.js +5 -7
  128. package/components/list/list__separator.js +4 -6
  129. package/components/list/list__title.js +4 -6
  130. package/components/list/list__users-groups-source.js +11 -13
  131. package/components/loader/loader.js +9 -11
  132. package/components/loader/loader__core.js +7 -9
  133. package/components/loader-inline/loader-inline.js +6 -8
  134. package/components/loader-screen/loader-screen.js +7 -9
  135. package/components/login-dialog/login-dialog.js +12 -14
  136. package/components/login-dialog/service.js +7 -7
  137. package/components/markdown/markdown.js +4 -6
  138. package/components/message/message.js +17 -19
  139. package/components/old-browsers-message/old-browsers-message.js +1 -1
  140. package/components/old-browsers-message/old-browsers-message__stop.js +1 -1
  141. package/components/old-browsers-message/white-list.js +2 -2
  142. package/components/pager/pager.js +16 -18
  143. package/components/panel/panel.js +4 -6
  144. package/components/permissions/permissions.js +4 -5
  145. package/components/permissions/permissions__cache.js +2 -3
  146. package/components/popup/popup.js +33 -35
  147. package/components/popup/popup.target.js +1 -1
  148. package/components/popup/position.js +9 -9
  149. package/components/popup-menu/popup-menu.js +14 -16
  150. package/components/progress-bar/progress-bar.js +8 -10
  151. package/components/query-assist/query-assist.js +64 -66
  152. package/components/query-assist/query-assist__suggestions.js +6 -6
  153. package/components/radio/radio.js +5 -7
  154. package/components/radio/radio__item.js +9 -11
  155. package/components/select/select.js +48 -50
  156. package/components/select/select__filter.js +6 -6
  157. package/components/select/select__popup.js +36 -38
  158. package/components/shortcuts/core.js +7 -8
  159. package/components/shortcuts/shortcuts-hoc.js +8 -10
  160. package/components/shortcuts/shortcuts.js +8 -10
  161. package/components/slider/slider.js +6 -6
  162. package/components/slider/slider.utils.js +4 -4
  163. package/components/storage/storage.js +8 -8
  164. package/components/storage/storage__fallback.js +5 -6
  165. package/components/storage/storage__local.js +9 -10
  166. package/components/tab-trap/tab-trap.js +24 -26
  167. package/components/table/cell.js +6 -8
  168. package/components/table/disable-hover-hoc.js +7 -9
  169. package/components/table/header-cell.d.ts +1 -0
  170. package/components/table/header-cell.js +8 -10
  171. package/components/table/header.d.ts +2 -1
  172. package/components/table/header.js +15 -10
  173. package/components/table/multitable.js +13 -15
  174. package/components/table/row-with-focus-sensor.js +14 -16
  175. package/components/table/row.d.ts +2 -1
  176. package/components/table/row.js +29 -23
  177. package/components/table/selection-adapter.js +1 -1
  178. package/components/table/selection-shortcuts-hoc.js +19 -21
  179. package/components/table/selection.js +4 -5
  180. package/components/table/smart-table.d.ts +2 -1
  181. package/components/table/smart-table.js +10 -12
  182. package/components/table/table.d.ts +2 -1
  183. package/components/table/table.js +29 -30
  184. package/components/tabs/collapsible-more.js +8 -8
  185. package/components/tabs/collapsible-tab.js +3 -3
  186. package/components/tabs/collapsible-tabs.js +10 -10
  187. package/components/tabs/dumb-tabs.js +11 -13
  188. package/components/tabs/smart-tabs.js +13 -15
  189. package/components/tabs/tab-link.js +2 -2
  190. package/components/tabs/tab.js +6 -8
  191. package/components/tabs/tabs.js +5 -5
  192. package/components/tag/tag.js +9 -11
  193. package/components/tags-input/tags-input.js +39 -41
  194. package/components/tags-list/tags-list.js +5 -7
  195. package/components/text/text.js +4 -6
  196. package/components/toggle/toggle.js +6 -8
  197. package/components/tooltip/tooltip.js +27 -29
  198. package/components/user-agreement/service.js +7 -7
  199. package/components/user-agreement/user-agreement.js +11 -13
  200. package/components/user-card/card.js +9 -9
  201. package/components/user-card/smart-user-card-tooltip.js +14 -16
  202. package/components/user-card/tooltip.js +11 -13
  203. package/components/user-card/user-card.js +9 -9
  204. package/package.json +3 -4
@@ -1,18 +1,18 @@
1
- import { _ as _defineProperty, a as _inherits, b as _createSuper, c as _classCallCheck, d as _assertThisInitialized, h as _objectSpread2, g as _objectWithoutProperties, p as _toPropertyKey, f as _createClass, i as _extends } from '../_helpers/_rollupPluginBabelHelpers.js';
2
- import 'core-js/modules/es.array.index-of.js';
3
- import 'core-js/modules/es.array.reduce.js';
4
- import 'core-js/modules/es.object.to-string.js';
5
- import 'core-js/modules/es.string.trim.js';
1
+ import { _ as _defineProperty, a as _inherits, b as _createClass, d as _objectSpread2, e as _extends, f as _classCallCheck, g as _callSuper, c as _objectWithoutProperties, o as _toPropertyKey } from '../_helpers/_rollupPluginBabelHelpers.js';
2
+ import 'core-js/modules/es.array.concat.js';
6
3
  import 'core-js/modules/es.array.filter.js';
7
- import 'core-js/modules/es.regexp.exec.js';
8
4
  import 'core-js/modules/es.array.find.js';
9
- import 'core-js/modules/es.array.concat.js';
10
- import 'core-js/modules/es.string.replace.js';
5
+ import 'core-js/modules/es.array.index-of.js';
11
6
  import 'core-js/modules/es.array.map.js';
12
- import 'core-js/modules/web.dom-collections.for-each.js';
7
+ import 'core-js/modules/es.array.reduce.js';
13
8
  import 'core-js/modules/es.array.slice.js';
14
9
  import 'core-js/modules/es.object.assign.js';
10
+ import 'core-js/modules/es.object.to-string.js';
15
11
  import 'core-js/modules/es.object.values.js';
12
+ import 'core-js/modules/es.regexp.exec.js';
13
+ import 'core-js/modules/es.string.replace.js';
14
+ import 'core-js/modules/es.string.trim.js';
15
+ import 'core-js/modules/web.dom-collections.for-each.js';
16
16
  import React, { Fragment, Component } from 'react';
17
17
  import classNames from 'classnames';
18
18
  import PropTypes from 'prop-types';
@@ -48,15 +48,15 @@ import '../_helpers/icon__svg.js';
48
48
  import 'core-js/modules/es.string.starts-with.js';
49
49
  import 'core-js/modules/es.array.iterator.js';
50
50
  import 'core-js/modules/es.map.js';
51
- import 'core-js/modules/web.dom-collections.iterator.js';
52
51
  import 'core-js/modules/es.weak-map.js';
52
+ import 'core-js/modules/web.dom-collections.iterator.js';
53
53
  import '../link/clickableLink.js';
54
54
  import '../_helpers/button__classes.js';
55
55
  import '../global/url.js';
56
56
  import 'core-js/modules/es.string.match.js';
57
57
  import '../global/dom.js';
58
- import 'core-js/modules/es.string.split.js';
59
58
  import 'core-js/modules/es.set.js';
59
+ import 'core-js/modules/es.string.split.js';
60
60
  import '../avatar/fallback-avatar.js';
61
61
  import 'core-js/modules/es.array.from.js';
62
62
  import 'core-js/modules/es.regexp.to-string.js';
@@ -65,13 +65,13 @@ import '../global/schedule-raf.js';
65
65
  import '../tab-trap/tab-trap.js';
66
66
  import '../popup/position.js';
67
67
  import 'core-js/modules/es.array.includes.js';
68
- import 'core-js/modules/es.string.includes.js';
69
68
  import 'core-js/modules/es.array.sort.js';
69
+ import 'core-js/modules/es.string.includes.js';
70
70
  import '../popup/popup.consts.js';
71
71
  import '../popup/popup.target.js';
72
72
  import '../shortcuts/core.js';
73
- import 'core-js/modules/es.array.splice.js';
74
73
  import 'core-js/modules/es.array.find-index.js';
74
+ import 'core-js/modules/es.array.splice.js';
75
75
  import 'combokeys';
76
76
  import '../global/sniffer.js';
77
77
  import 'sniffr';
@@ -276,16 +276,14 @@ function isSameSelected(prevSelected, selected) {
276
276
  * Displays a select.
277
277
  */
278
278
  var Select = /*#__PURE__*/function (_Component) {
279
- _inherits(Select, _Component);
280
- var _super = _createSuper(Select);
281
279
  function Select() {
282
280
  var _this;
283
281
  _classCallCheck(this, Select);
284
282
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
285
283
  args[_key] = arguments[_key];
286
284
  }
287
- _this = _super.call.apply(_super, [this].concat(args));
288
- _defineProperty(_assertThisInitialized(_this), "state", {
285
+ _this = _callSuper(this, Select, [].concat(args));
286
+ _defineProperty(_this, "state", {
289
287
  data: [],
290
288
  shownData: [],
291
289
  selected: _this.props.multiple ? [] : null,
@@ -300,17 +298,17 @@ var Select = /*#__PURE__*/function (_Component) {
300
298
  multipleMap: {},
301
299
  addButton: null
302
300
  });
303
- _defineProperty(_assertThisInitialized(_this), "id", getUID('select-'));
304
- _defineProperty(_assertThisInitialized(_this), "shortcutsScope", _this.id);
305
- _defineProperty(_assertThisInitialized(_this), "listId", "".concat(_this.id, ":list"));
306
- _defineProperty(_assertThisInitialized(_this), "_focusHandler", function (e) {
301
+ _defineProperty(_this, "id", getUID('select-'));
302
+ _defineProperty(_this, "shortcutsScope", _this.id);
303
+ _defineProperty(_this, "listId", "".concat(_this.id, ":list"));
304
+ _defineProperty(_this, "_focusHandler", function (e) {
307
305
  _this.props.onFocus(e);
308
306
  _this.setState({
309
307
  shortcutsEnabled: true,
310
308
  focused: true
311
309
  });
312
310
  });
313
- _defineProperty(_assertThisInitialized(_this), "_blurHandler", function () {
311
+ _defineProperty(_this, "_blurHandler", function () {
314
312
  var _this$_popup;
315
313
  _this.props.onBlur();
316
314
  if (_this._popup && _this._popup.isVisible() && !_this._popup.isClickingPopup) {
@@ -327,23 +325,23 @@ var Select = /*#__PURE__*/function (_Component) {
327
325
  });
328
326
  }
329
327
  });
330
- _defineProperty(_assertThisInitialized(_this), "node", void 0);
331
- _defineProperty(_assertThisInitialized(_this), "nodeRef", function (el) {
328
+ _defineProperty(_this, "node", void 0);
329
+ _defineProperty(_this, "nodeRef", function (el) {
332
330
  _this.node = el;
333
331
  });
334
- _defineProperty(_assertThisInitialized(_this), "_popup", null);
335
- _defineProperty(_assertThisInitialized(_this), "onEmptyPopupEnter", function () {
332
+ _defineProperty(_this, "_popup", null);
333
+ _defineProperty(_this, "onEmptyPopupEnter", function () {
336
334
  if (_this.state.addButton) {
337
335
  _this.addHandler();
338
336
  }
339
337
  });
340
- _defineProperty(_assertThisInitialized(_this), "focus", function () {
338
+ _defineProperty(_this, "focus", function () {
341
339
  var _this$node;
342
340
  var focusableSelectExists = (_this$node = _this.node) === null || _this$node === void 0 ? void 0 : _this$node.querySelector('[data-test~=ring-select__focus]');
343
341
  var restoreFocusNode = _this.props.targetElement || focusableSelectExists;
344
342
  restoreFocusNode === null || restoreFocusNode === void 0 || restoreFocusNode.focus();
345
343
  });
346
- _defineProperty(_assertThisInitialized(_this), "_onEnter", function () {
344
+ _defineProperty(_this, "_onEnter", function () {
347
345
  var _this$_popup2;
348
346
  if (_this.state.addButton && _this.state.shownData.length === 0) {
349
347
  _this.addHandler();
@@ -354,7 +352,7 @@ var Select = /*#__PURE__*/function (_Component) {
354
352
  }
355
353
  return undefined;
356
354
  });
357
- _defineProperty(_assertThisInitialized(_this), "_onEsc", function (event) {
355
+ _defineProperty(_this, "_onEsc", function (event) {
358
356
  var _this$_popup3;
359
357
  if (!((_this$_popup3 = _this._popup) !== null && _this$_popup3 !== void 0 && _this$_popup3.isVisible())) {
360
358
  return true;
@@ -374,15 +372,15 @@ var Select = /*#__PURE__*/function (_Component) {
374
372
  });
375
373
  return undefined;
376
374
  });
377
- _defineProperty(_assertThisInitialized(_this), "_inputShortcutHandler", function () {
375
+ _defineProperty(_this, "_inputShortcutHandler", function () {
378
376
  if (_this.state.focused && _this._popup && !_this._popup.isVisible()) {
379
377
  _this._clickHandler();
380
378
  }
381
379
  });
382
- _defineProperty(_assertThisInitialized(_this), "popupRef", function (el) {
380
+ _defineProperty(_this, "popupRef", function (el) {
383
381
  _this._popup = el;
384
382
  });
385
- _defineProperty(_assertThisInitialized(_this), "_showPopup", function () {
383
+ _defineProperty(_this, "_showPopup", function () {
386
384
  if (!_this.node) {
387
385
  return;
388
386
  }
@@ -392,7 +390,7 @@ var Select = /*#__PURE__*/function (_Component) {
392
390
  shownData
393
391
  });
394
392
  });
395
- _defineProperty(_assertThisInitialized(_this), "_hidePopup", function (tryFocusAnchor) {
393
+ _defineProperty(_this, "_hidePopup", function (tryFocusAnchor) {
396
394
  if (_this.node && _this.state.showPopup) {
397
395
  _this.setState(function (prevState) {
398
396
  return {
@@ -405,14 +403,14 @@ var Select = /*#__PURE__*/function (_Component) {
405
403
  }
406
404
  }
407
405
  });
408
- _defineProperty(_assertThisInitialized(_this), "addHandler", function () {
406
+ _defineProperty(_this, "addHandler", function () {
409
407
  var value = _this.filterValue();
410
408
  _this._hidePopup();
411
409
  _this.props.onAdd(value);
412
410
  });
413
- _defineProperty(_assertThisInitialized(_this), "getLowerCaseLabel", getLowerCaseLabel);
414
- _defineProperty(_assertThisInitialized(_this), "doesLabelMatch", doesLabelMatch);
415
- _defineProperty(_assertThisInitialized(_this), "_clickHandler", function () {
411
+ _defineProperty(_this, "getLowerCaseLabel", getLowerCaseLabel);
412
+ _defineProperty(_this, "doesLabelMatch", doesLabelMatch);
413
+ _defineProperty(_this, "_clickHandler", function () {
416
414
  if (!_this.props.disabled) {
417
415
  if (_this.state.showPopup) {
418
416
  _this._hidePopup();
@@ -422,17 +420,17 @@ var Select = /*#__PURE__*/function (_Component) {
422
420
  }
423
421
  }
424
422
  });
425
- _defineProperty(_assertThisInitialized(_this), "_openPopupIfClosed", function () {
423
+ _defineProperty(_this, "_openPopupIfClosed", function () {
426
424
  if (_this.props.disabled || _this.state.showPopup) {
427
425
  return;
428
426
  }
429
427
  _this.props.onBeforeOpen();
430
428
  _this._showPopup();
431
429
  });
432
- _defineProperty(_assertThisInitialized(_this), "_filterChangeHandler", function (e) {
430
+ _defineProperty(_this, "_filterChangeHandler", function (e) {
433
431
  _this._setFilter(e.currentTarget.value, e);
434
432
  });
435
- _defineProperty(_assertThisInitialized(_this), "_setFilter", function (value, event) {
433
+ _defineProperty(_this, "_setFilter", function (value, event) {
436
434
  var _this$_popup4;
437
435
  if (_this.isInputMode() && !_this.state.focused) {
438
436
  return;
@@ -462,7 +460,7 @@ var Select = /*#__PURE__*/function (_Component) {
462
460
  _this._showPopup();
463
461
  });
464
462
  });
465
- _defineProperty(_assertThisInitialized(_this), "_redrawPopup", function () {
463
+ _defineProperty(_this, "_redrawPopup", function () {
466
464
  if (_this.props.multiple) {
467
465
  setTimeout(function () {
468
466
  _this.isInputMode() && _this.clearFilter();
@@ -470,7 +468,7 @@ var Select = /*#__PURE__*/function (_Component) {
470
468
  }, 0);
471
469
  }
472
470
  });
473
- _defineProperty(_assertThisInitialized(_this), "_listSelectHandler", function (selected, event) {
471
+ _defineProperty(_this, "_listSelectHandler", function (selected, event) {
474
472
  var _this$props$tryKeepOp;
475
473
  var opts = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
476
474
  var isItem = function isItem(item) {
@@ -554,7 +552,7 @@ var Select = /*#__PURE__*/function (_Component) {
554
552
  });
555
553
  }
556
554
  });
557
- _defineProperty(_assertThisInitialized(_this), "_listSelectAllHandler", function () {
555
+ _defineProperty(_this, "_listSelectAllHandler", function () {
558
556
  var isSelectAll = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
559
557
  var isItem = function isItem(item) {
560
558
  return List.isItemType(List.ListProps.Type.ITEM, item);
@@ -598,7 +596,7 @@ var Select = /*#__PURE__*/function (_Component) {
598
596
  };
599
597
  }, _this._redrawPopup);
600
598
  });
601
- _defineProperty(_assertThisInitialized(_this), "_onCloseAttempt", function (event, isEsc) {
599
+ _defineProperty(_this, "_onCloseAttempt", function (event, isEsc) {
602
600
  if (_this.isInputMode()) {
603
601
  if (!_this.props.allowAny) {
604
602
  if (_this.props.hideSelected || !_this.state.selected || _this.props.multiple) {
@@ -613,10 +611,10 @@ var Select = /*#__PURE__*/function (_Component) {
613
611
  _this._hidePopup(isEsc);
614
612
  }
615
613
  });
616
- _defineProperty(_assertThisInitialized(_this), "clearFilter", function (e) {
614
+ _defineProperty(_this, "clearFilter", function (e) {
617
615
  _this._setFilter('', e);
618
616
  });
619
- _defineProperty(_assertThisInitialized(_this), "clear", function (event) {
617
+ _defineProperty(_this, "clear", function (event) {
620
618
  if (event) {
621
619
  event.stopPropagation();
622
620
  }
@@ -632,13 +630,14 @@ var Select = /*#__PURE__*/function (_Component) {
632
630
  });
633
631
  return false;
634
632
  });
635
- _defineProperty(_assertThisInitialized(_this), "filter", void 0);
636
- _defineProperty(_assertThisInitialized(_this), "filterRef", function (el) {
633
+ _defineProperty(_this, "filter", void 0);
634
+ _defineProperty(_this, "filterRef", function (el) {
637
635
  _this.filter = el;
638
636
  });
639
637
  return _this;
640
638
  }
641
- _createClass(Select, [{
639
+ _inherits(Select, _Component);
640
+ return _createClass(Select, [{
642
641
  key: "componentDidUpdate",
643
642
  value: function componentDidUpdate(prevProps, prevState) {
644
643
  var _this$state = this.state,
@@ -1170,7 +1169,6 @@ var Select = /*#__PURE__*/function (_Component) {
1170
1169
  return nextState;
1171
1170
  }
1172
1171
  }]);
1173
- return Select;
1174
1172
  }(Component);
1175
1173
  _defineProperty(Select, "defaultProps", {
1176
1174
  data: [],
@@ -25,8 +25,8 @@ import 'core-js/modules/es.string.starts-with.js';
25
25
  import '../global/memoize.js';
26
26
  import 'core-js/modules/es.array.iterator.js';
27
27
  import 'core-js/modules/es.map.js';
28
- import 'core-js/modules/web.dom-collections.iterator.js';
29
28
  import 'core-js/modules/es.weak-map.js';
29
+ import 'core-js/modules/web.dom-collections.iterator.js';
30
30
  import '../link/clickableLink.js';
31
31
  import '../global/controls-height.js';
32
32
  import '../_helpers/button__classes.js';
@@ -36,14 +36,14 @@ import '../global/composeRefs.js';
36
36
  import 'core-js/modules/web.dom-collections.for-each.js';
37
37
  import '../control-label/control-label.js';
38
38
  import 'sniffr';
39
- import 'core-js/modules/es.array.includes.js';
40
- import 'core-js/modules/es.string.includes.js';
41
- import 'core-js/modules/es.array.map.js';
42
39
  import 'core-js/modules/es.symbol.js';
43
40
  import 'core-js/modules/es.symbol.description.js';
41
+ import 'core-js/modules/es.array.find.js';
44
42
  import 'core-js/modules/es.array.find-index.js';
43
+ import 'core-js/modules/es.array.includes.js';
44
+ import 'core-js/modules/es.array.map.js';
45
45
  import 'core-js/modules/es.object.assign.js';
46
- import 'core-js/modules/es.array.find.js';
46
+ import 'core-js/modules/es.string.includes.js';
47
47
  import 'react-virtualized/dist/es/List';
48
48
  import 'react-virtualized/dist/es/AutoSizer';
49
49
  import 'react-virtualized/dist/es/WindowScroller';
@@ -54,8 +54,8 @@ import 'core-js/modules/es.array.reduce.js';
54
54
  import 'core-js/modules/es.object.entries.js';
55
55
  import '../global/schedule-raf.js';
56
56
  import '../global/dom.js';
57
- import 'core-js/modules/es.string.split.js';
58
57
  import 'core-js/modules/es.set.js';
58
+ import 'core-js/modules/es.string.split.js';
59
59
  import '../shortcuts/shortcuts.js';
60
60
  import '../shortcuts/core.js';
61
61
  import 'core-js/modules/es.array.slice.js';
@@ -1,10 +1,10 @@
1
- import { _ as _defineProperty, a as _inherits, b as _createSuper, c as _classCallCheck, d as _assertThisInitialized, f as _createClass } from '../_helpers/_rollupPluginBabelHelpers.js';
1
+ import { _ as _defineProperty, a as _inherits, b as _createClass, f as _classCallCheck, g as _callSuper } from '../_helpers/_rollupPluginBabelHelpers.js';
2
2
  import 'core-js/modules/es.array.concat.js';
3
3
  import 'core-js/modules/es.array.filter.js';
4
- import 'core-js/modules/es.object.to-string.js';
5
4
  import 'core-js/modules/es.array.index-of.js';
6
5
  import 'core-js/modules/es.array.reduce.js';
7
6
  import 'core-js/modules/es.array.slice.js';
7
+ import 'core-js/modules/es.object.to-string.js';
8
8
  import React, { PureComponent } from 'react';
9
9
  import classNames from 'classnames';
10
10
  import searchIcon from '@jetbrains/icons/search';
@@ -38,26 +38,26 @@ import 'core-js/modules/es.string.replace.js';
38
38
  import 'core-js/modules/es.string.starts-with.js';
39
39
  import 'core-js/modules/es.array.iterator.js';
40
40
  import 'core-js/modules/es.map.js';
41
- import 'core-js/modules/web.dom-collections.iterator.js';
42
41
  import 'core-js/modules/es.weak-map.js';
43
- import 'core-js/modules/web.dom-collections.for-each.js';
42
+ import 'core-js/modules/web.dom-collections.iterator.js';
44
43
  import 'core-js/modules/es.object.entries.js';
45
44
  import 'core-js/modules/es.regexp.to-string.js';
45
+ import 'core-js/modules/web.dom-collections.for-each.js';
46
46
  import 'react-dom';
47
47
  import '../global/schedule-raf.js';
48
48
  import '../global/data-tests.js';
49
49
  import '../tab-trap/tab-trap.js';
50
50
  import 'core-js/modules/es.array.includes.js';
51
- import 'core-js/modules/es.string.includes.js';
52
- import 'core-js/modules/es.array.sort.js';
53
51
  import 'core-js/modules/es.array.map.js';
52
+ import 'core-js/modules/es.array.sort.js';
53
+ import 'core-js/modules/es.string.includes.js';
54
54
  import 'core-js/modules/es.object.assign.js';
55
- import 'core-js/modules/es.string.split.js';
56
55
  import 'core-js/modules/es.set.js';
56
+ import 'core-js/modules/es.string.split.js';
57
57
  import 'core-js/modules/es.symbol.js';
58
58
  import 'core-js/modules/es.symbol.description.js';
59
- import 'core-js/modules/es.array.find-index.js';
60
59
  import 'core-js/modules/es.array.find.js';
60
+ import 'core-js/modules/es.array.find-index.js';
61
61
  import 'react-virtualized/dist/es/List';
62
62
  import 'react-virtualized/dist/es/AutoSizer';
63
63
  import 'react-virtualized/dist/es/WindowScroller';
@@ -103,45 +103,43 @@ var TOOLBAR_HEIGHT = 49;
103
103
  function noop() {}
104
104
  var FilterWithShortcuts = shortcutsHOC(SelectFilter);
105
105
  var SelectPopup = /*#__PURE__*/function (_PureComponent) {
106
- _inherits(SelectPopup, _PureComponent);
107
- var _super = _createSuper(SelectPopup);
108
106
  function SelectPopup() {
109
107
  var _this;
110
108
  _classCallCheck(this, SelectPopup);
111
109
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
112
110
  args[_key] = arguments[_key];
113
111
  }
114
- _this = _super.call.apply(_super, [this].concat(args));
115
- _defineProperty(_assertThisInitialized(_this), "state", {
112
+ _this = _callSuper(this, SelectPopup, [].concat(args));
113
+ _defineProperty(_this, "state", {
116
114
  popupFilterShortcutsOptions: {
117
115
  modal: true,
118
116
  disabled: true
119
117
  },
120
118
  tagsActiveIndex: null
121
119
  });
122
- _defineProperty(_assertThisInitialized(_this), "isClickingPopup", false);
120
+ _defineProperty(_this, "isClickingPopup", false);
123
121
  // This flag is set to true while an item in the popup is being clicked
124
- _defineProperty(_assertThisInitialized(_this), "filter", void 0);
125
- _defineProperty(_assertThisInitialized(_this), "caret", void 0);
126
- _defineProperty(_assertThisInitialized(_this), "onFilterFocus", function () {
122
+ _defineProperty(_this, "filter", void 0);
123
+ _defineProperty(_this, "caret", void 0);
124
+ _defineProperty(_this, "onFilterFocus", function () {
127
125
  _this._togglePopupFilterShortcuts(false);
128
126
  _this.setState({
129
127
  tagsActiveIndex: null
130
128
  });
131
129
  });
132
- _defineProperty(_assertThisInitialized(_this), "popupFilterOnBlur", function () {
130
+ _defineProperty(_this, "popupFilterOnBlur", function () {
133
131
  if (_this.state.tagsActiveIndex === null) {
134
132
  _this._togglePopupFilterShortcuts(true);
135
133
  }
136
134
  });
137
- _defineProperty(_assertThisInitialized(_this), "mouseDownHandler", function () {
135
+ _defineProperty(_this, "mouseDownHandler", function () {
138
136
  _this.isClickingPopup = true;
139
137
  });
140
- _defineProperty(_assertThisInitialized(_this), "mouseUpHandler", function () {
138
+ _defineProperty(_this, "mouseUpHandler", function () {
141
139
  _this.isClickingPopup = false;
142
140
  });
143
- _defineProperty(_assertThisInitialized(_this), "popup", void 0);
144
- _defineProperty(_assertThisInitialized(_this), "onListSelect", function (selected, event, opts) {
141
+ _defineProperty(_this, "popup", void 0);
142
+ _defineProperty(_this, "onListSelect", function (selected, event, opts) {
145
143
  var getSelectItemEvent = function getSelectItemEvent() {
146
144
  var customEvent = document.createEvent('Event');
147
145
  customEvent.initEvent('select', true, false);
@@ -153,19 +151,19 @@ var SelectPopup = /*#__PURE__*/function (_PureComponent) {
153
151
  };
154
152
  _this.props.onSelect(selected, getSelectItemEvent(), opts);
155
153
  });
156
- _defineProperty(_assertThisInitialized(_this), "tabPress", function (event) {
154
+ _defineProperty(_this, "tabPress", function (event) {
157
155
  _this.props.onCloseAttempt(event, true);
158
156
  });
159
- _defineProperty(_assertThisInitialized(_this), "onClickHandler", function () {
157
+ _defineProperty(_this, "onClickHandler", function () {
160
158
  var _this$filter;
161
159
  return (_this$filter = _this.filter) === null || _this$filter === void 0 ? void 0 : _this$filter.focus();
162
160
  });
163
- _defineProperty(_assertThisInitialized(_this), "handleRemoveTag", memoize(function (tag) {
161
+ _defineProperty(_this, "handleRemoveTag", memoize(function (tag) {
164
162
  return function (event) {
165
163
  return _this.removeTag(tag, event);
166
164
  };
167
165
  }));
168
- _defineProperty(_assertThisInitialized(_this), "handleTagClick", memoize(function (tag) {
166
+ _defineProperty(_this, "handleTagClick", memoize(function (tag) {
169
167
  return function () {
170
168
  if (Array.isArray(_this.props.selected)) {
171
169
  _this.setState({
@@ -174,17 +172,17 @@ var SelectPopup = /*#__PURE__*/function (_PureComponent) {
174
172
  }
175
173
  };
176
174
  }));
177
- _defineProperty(_assertThisInitialized(_this), "handleListResize", function () {
175
+ _defineProperty(_this, "handleListResize", function () {
178
176
  _this.forceUpdate();
179
177
  });
180
- _defineProperty(_assertThisInitialized(_this), "handleSelectAll", function () {
178
+ _defineProperty(_this, "handleSelectAll", function () {
181
179
  if (Array.isArray(_this.props.selected)) {
182
180
  _this.props.onSelectAll(_this.props.data.filter(function (item) {
183
181
  return !item.disabled;
184
182
  }).length !== _this.props.selected.length);
185
183
  }
186
184
  });
187
- _defineProperty(_assertThisInitialized(_this), "getSelectAll", function () {
185
+ _defineProperty(_this, "getSelectAll", function () {
188
186
  var _multiple$renderSelec;
189
187
  var multiple = _this.props.multiple;
190
188
  var activeFilters = _this.props.data.filter(function (item) {
@@ -204,7 +202,7 @@ var SelectPopup = /*#__PURE__*/function (_PureComponent) {
204
202
  // inside `render` function which can be called N times
205
203
  // and should be fast as possible.
206
204
  // Cache invalidates each time hidden or userDefinedMaxHeight changes
207
- _defineProperty(_assertThisInitialized(_this), "_adjustListMaxHeight", memoizeOne(function (hidden, userDefinedMaxHeight, ringPopupTarget) {
205
+ _defineProperty(_this, "_adjustListMaxHeight", memoizeOne(function (hidden, userDefinedMaxHeight, ringPopupTarget) {
208
206
  if (hidden) {
209
207
  return userDefinedMaxHeight;
210
208
  }
@@ -223,22 +221,22 @@ var SelectPopup = /*#__PURE__*/function (_PureComponent) {
223
221
  return Math.max(maxHeight, (_maxHeightForDirectio = maxHeightForDirection(direction, anchorNode, getStyles(containerNode).position !== 'static' ? containerNode : null)) !== null && _maxHeightForDirectio !== void 0 ? _maxHeightForDirectio : 0);
224
222
  }, minMaxHeight), userDefinedMaxHeight) : userDefinedMaxHeight;
225
223
  }));
226
- _defineProperty(_assertThisInitialized(_this), "popupRef", function (el) {
224
+ _defineProperty(_this, "popupRef", function (el) {
227
225
  _this.popup = el;
228
226
  });
229
- _defineProperty(_assertThisInitialized(_this), "list", void 0);
230
- _defineProperty(_assertThisInitialized(_this), "listRef", function (el) {
227
+ _defineProperty(_this, "list", void 0);
228
+ _defineProperty(_this, "listRef", function (el) {
231
229
  _this.list = el;
232
230
  });
233
- _defineProperty(_assertThisInitialized(_this), "filterRef", function (el) {
231
+ _defineProperty(_this, "filterRef", function (el) {
234
232
  _this.filter = el;
235
233
  _this.caret = el && new Caret(el);
236
234
  });
237
- _defineProperty(_assertThisInitialized(_this), "shortcutsScope", getUID('select-popup-'));
238
- _defineProperty(_assertThisInitialized(_this), "shortcutsMap", {
235
+ _defineProperty(_this, "shortcutsScope", getUID('select-popup-'));
236
+ _defineProperty(_this, "shortcutsMap", {
239
237
  tab: _this.tabPress
240
238
  });
241
- _defineProperty(_assertThisInitialized(_this), "popupFilterShortcutsMap", {
239
+ _defineProperty(_this, "popupFilterShortcutsMap", {
242
240
  up: function up(event) {
243
241
  return _this.list && _this.list.upHandler(event);
244
242
  },
@@ -275,7 +273,8 @@ var SelectPopup = /*#__PURE__*/function (_PureComponent) {
275
273
  });
276
274
  return _this;
277
275
  }
278
- _createClass(SelectPopup, [{
276
+ _inherits(SelectPopup, _PureComponent);
277
+ return _createClass(SelectPopup, [{
279
278
  key: "componentDidMount",
280
279
  value: function componentDidMount() {
281
280
  window.document.addEventListener('mouseup', this.mouseUpHandler);
@@ -552,7 +551,6 @@ var SelectPopup = /*#__PURE__*/function (_PureComponent) {
552
551
  });
553
552
  }
554
553
  }]);
555
- return SelectPopup;
556
554
  }(PureComponent);
557
555
  _defineProperty(SelectPopup, "defaultProps", {
558
556
  data: [],
@@ -1,14 +1,14 @@
1
- import { f as _createClass, c as _classCallCheck, _ as _defineProperty } from '../_helpers/_rollupPluginBabelHelpers.js';
1
+ import { b as _createClass, f as _classCallCheck, _ as _defineProperty } from '../_helpers/_rollupPluginBabelHelpers.js';
2
+ import 'core-js/modules/es.array.concat.js';
3
+ import 'core-js/modules/es.array.find-index.js';
2
4
  import 'core-js/modules/es.array.includes.js';
3
- import 'core-js/modules/es.string.includes.js';
4
- import 'core-js/modules/es.object.assign.js';
5
+ import 'core-js/modules/es.array.map.js';
5
6
  import 'core-js/modules/es.array.slice.js';
6
7
  import 'core-js/modules/es.array.splice.js';
7
- import 'core-js/modules/es.array.map.js';
8
- import 'core-js/modules/es.array.concat.js';
8
+ import 'core-js/modules/es.object.assign.js';
9
9
  import 'core-js/modules/es.regexp.exec.js';
10
+ import 'core-js/modules/es.string.includes.js';
10
11
  import 'core-js/modules/es.string.match.js';
11
- import 'core-js/modules/es.array.find-index.js';
12
12
  import Combokeys from 'combokeys';
13
13
  import sniffr from '../global/sniffer.js';
14
14
  import 'sniffr';
@@ -57,7 +57,7 @@ var Shortcuts = /*#__PURE__*/function () {
57
57
  this.setFilter();
58
58
  this.setScope();
59
59
  }
60
- _createClass(Shortcuts, [{
60
+ return _createClass(Shortcuts, [{
61
61
  key: "bind",
62
62
  value:
63
63
  /**
@@ -242,7 +242,6 @@ var Shortcuts = /*#__PURE__*/function () {
242
242
  this.combokeys.reset();
243
243
  }
244
244
  }]);
245
- return Shortcuts;
246
245
  }();
247
246
  var shortcuts = new Shortcuts();
248
247
 
@@ -1,4 +1,4 @@
1
- import { a as _inherits, b as _createSuper, f as _createClass, _ as _defineProperty, c as _classCallCheck, d as _assertThisInitialized, g as _objectWithoutProperties } from '../_helpers/_rollupPluginBabelHelpers.js';
1
+ import { a as _inherits, b as _createClass, _ as _defineProperty, c as _objectWithoutProperties, f as _classCallCheck, g as _callSuper } from '../_helpers/_rollupPluginBabelHelpers.js';
2
2
  import 'core-js/modules/es.array.concat.js';
3
3
  import React from 'react';
4
4
  import PropTypes from 'prop-types';
@@ -8,14 +8,14 @@ import 'core-js/modules/es.object.to-string.js';
8
8
  import 'core-js/modules/es.regexp.to-string.js';
9
9
  import 'core-js/modules/es.array.map.js';
10
10
  import './core.js';
11
+ import 'core-js/modules/es.array.find-index.js';
11
12
  import 'core-js/modules/es.array.includes.js';
12
- import 'core-js/modules/es.string.includes.js';
13
- import 'core-js/modules/es.object.assign.js';
14
13
  import 'core-js/modules/es.array.slice.js';
15
14
  import 'core-js/modules/es.array.splice.js';
15
+ import 'core-js/modules/es.object.assign.js';
16
16
  import 'core-js/modules/es.regexp.exec.js';
17
+ import 'core-js/modules/es.string.includes.js';
17
18
  import 'core-js/modules/es.string.match.js';
18
- import 'core-js/modules/es.array.find-index.js';
19
19
  import 'combokeys';
20
20
  import '../global/sniffer.js';
21
21
  import 'sniffr';
@@ -24,19 +24,18 @@ var _excluded = ["rgShortcutsOptions", "rgShortcutsMap"];
24
24
  function shortcutsHOC(ComposedComponent) {
25
25
  var _WithShortcuts;
26
26
  return _WithShortcuts = /*#__PURE__*/function (_React$Component) {
27
- _inherits(WithShortcuts, _React$Component);
28
- var _super = _createSuper(WithShortcuts);
29
27
  function WithShortcuts() {
30
28
  var _this;
31
29
  _classCallCheck(this, WithShortcuts);
32
30
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
33
31
  args[_key] = arguments[_key];
34
32
  }
35
- _this = _super.call.apply(_super, [this].concat(args));
36
- _defineProperty(_assertThisInitialized(_this), "_shortcutsScopeUid", getUID('rg-shortcuts-'));
33
+ _this = _callSuper(this, WithShortcuts, [].concat(args));
34
+ _defineProperty(_this, "_shortcutsScopeUid", getUID('rg-shortcuts-'));
37
35
  return _this;
38
36
  }
39
- _createClass(WithShortcuts, [{
37
+ _inherits(WithShortcuts, _React$Component);
38
+ return _createClass(WithShortcuts, [{
40
39
  key: "render",
41
40
  value: function render() {
42
41
  var _this$props = this.props,
@@ -51,7 +50,6 @@ function shortcutsHOC(ComposedComponent) {
51
50
  }, /*#__PURE__*/React.createElement(ComposedComponent, props));
52
51
  }
53
52
  }]);
54
- return WithShortcuts;
55
53
  }(React.Component), _defineProperty(_WithShortcuts, "propTypes", {
56
54
  rgShortcutsOptions: PropTypes.object,
57
55
  rgShortcutsMap: PropTypes.object