@jetbrains/ring-ui-built 6.0.27 → 6.0.29

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.js +19 -21
  58. package/components/date-picker/date-popup.js +23 -25
  59. package/components/date-picker/day.js +14 -16
  60. package/components/date-picker/month-names.js +7 -9
  61. package/components/date-picker/month-slider.js +10 -12
  62. package/components/date-picker/month.js +5 -5
  63. package/components/date-picker/months.js +4 -4
  64. package/components/date-picker/weekdays.js +3 -3
  65. package/components/date-picker/years.js +12 -14
  66. package/components/dialog/dialog.js +18 -20
  67. package/components/dropdown/anchor.js +1 -1
  68. package/components/dropdown/dropdown.js +13 -15
  69. package/components/dropdown-menu/dropdown-menu.js +10 -10
  70. package/components/editable-heading/editable-heading.js +5 -5
  71. package/components/error-bubble/error-bubble.js +11 -13
  72. package/components/error-message/error-message.js +6 -8
  73. package/components/footer/footer.js +2 -2
  74. package/components/global/create-stateful-context.js +1 -1
  75. package/components/global/data-tests.js +3 -3
  76. package/components/global/dom.js +7 -8
  77. package/components/global/focus-sensor-hoc.js +15 -17
  78. package/components/global/fuzzy-highlight.js +2 -2
  79. package/components/global/get-uid.js +1 -1
  80. package/components/global/inject-styles.js +1 -1
  81. package/components/global/listeners.js +4 -5
  82. package/components/global/memoize.js +1 -1
  83. package/components/global/normalize-indent.js +5 -5
  84. package/components/global/react-dom-renderer.js +7 -9
  85. package/components/global/rerender-hoc.js +5 -7
  86. package/components/global/theme.js +7 -7
  87. package/components/global/trivial-template-tag.js +2 -2
  88. package/components/global/url.js +1 -1
  89. package/components/grid/col.js +7 -9
  90. package/components/grid/grid.js +6 -8
  91. package/components/grid/row.js +5 -7
  92. package/components/group/group.js +4 -6
  93. package/components/header/header.js +13 -14
  94. package/components/header/logo.js +5 -7
  95. package/components/header/profile.js +12 -14
  96. package/components/header/services-link.js +2 -2
  97. package/components/header/services.js +12 -14
  98. package/components/header/smart-profile.js +17 -18
  99. package/components/header/smart-services.js +16 -17
  100. package/components/header/tray-icon.js +5 -7
  101. package/components/header/tray.js +4 -6
  102. package/components/heading/heading.js +1 -1
  103. package/components/http/http.js +11 -13
  104. package/components/http/http.mock.js +15 -17
  105. package/components/hub-source/hub-source.js +4 -5
  106. package/components/hub-source/hub-source__user.js +6 -6
  107. package/components/hub-source/hub-source__users-groups.js +4 -5
  108. package/components/i18n/i18n.js +1 -1
  109. package/components/icon/icon.js +5 -7
  110. package/components/icon/icon__svg.js +1 -1
  111. package/components/icon/index.js +1 -1
  112. package/components/input/input.js +1 -1
  113. package/components/island/adaptive-island-hoc.js +6 -8
  114. package/components/island/content.js +13 -15
  115. package/components/island/header.js +4 -6
  116. package/components/island/island.js +6 -8
  117. package/components/island-legacy/content-legacy.js +4 -6
  118. package/components/island-legacy/header-legacy.js +4 -6
  119. package/components/island-legacy/island-legacy.js +4 -6
  120. package/components/link/clickableLink.js +5 -7
  121. package/components/link/link.js +6 -8
  122. package/components/list/list.js +47 -49
  123. package/components/list/list__custom.js +6 -8
  124. package/components/list/list__hint.js +4 -6
  125. package/components/list/list__item.js +13 -15
  126. package/components/list/list__link.js +5 -7
  127. package/components/list/list__separator.js +4 -6
  128. package/components/list/list__title.js +4 -6
  129. package/components/list/list__users-groups-source.js +11 -13
  130. package/components/loader/loader.js +9 -11
  131. package/components/loader/loader__core.js +7 -9
  132. package/components/loader-inline/loader-inline.js +6 -8
  133. package/components/loader-screen/loader-screen.js +7 -9
  134. package/components/login-dialog/login-dialog.js +12 -14
  135. package/components/login-dialog/service.js +7 -7
  136. package/components/markdown/markdown.js +4 -6
  137. package/components/message/message.js +17 -19
  138. package/components/old-browsers-message/old-browsers-message.js +1 -1
  139. package/components/old-browsers-message/old-browsers-message__stop.js +1 -1
  140. package/components/old-browsers-message/white-list.js +2 -2
  141. package/components/pager/pager.js +16 -18
  142. package/components/panel/panel.js +4 -6
  143. package/components/permissions/permissions.js +4 -5
  144. package/components/permissions/permissions__cache.js +2 -3
  145. package/components/popup/popup.js +33 -35
  146. package/components/popup/popup.target.js +1 -1
  147. package/components/popup/position.js +9 -9
  148. package/components/popup-menu/popup-menu.js +14 -16
  149. package/components/progress-bar/progress-bar.js +8 -10
  150. package/components/query-assist/query-assist.js +64 -66
  151. package/components/query-assist/query-assist__suggestions.js +6 -6
  152. package/components/radio/radio.js +5 -7
  153. package/components/radio/radio__item.js +9 -11
  154. package/components/select/select.js +48 -50
  155. package/components/select/select__filter.js +6 -6
  156. package/components/select/select__popup.js +36 -38
  157. package/components/shortcuts/core.js +7 -8
  158. package/components/shortcuts/shortcuts-hoc.js +8 -10
  159. package/components/shortcuts/shortcuts.js +8 -10
  160. package/components/slider/slider.js +6 -6
  161. package/components/slider/slider.utils.js +4 -4
  162. package/components/storage/storage.js +8 -8
  163. package/components/storage/storage__fallback.js +5 -6
  164. package/components/storage/storage__local.js +9 -10
  165. package/components/style.css +1 -1
  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 +1 -1
@@ -1,4 +1,4 @@
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 React, { createContext, Component } from 'react';
4
4
  import { interpolateLinear } from '../global/linear-function.js';
@@ -10,19 +10,17 @@ var ScrollHandlerContext = /*#__PURE__*/createContext(null);
10
10
  function adaptiveIslandHOC(ComposedComponent) {
11
11
  var _AdaptiveIsland;
12
12
  return _AdaptiveIsland = /*#__PURE__*/function (_Component) {
13
- _inherits(AdaptiveIsland, _Component);
14
- var _super = _createSuper(AdaptiveIsland);
15
13
  function AdaptiveIsland() {
16
14
  var _this;
17
15
  _classCallCheck(this, AdaptiveIsland);
18
16
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
19
17
  args[_key] = arguments[_key];
20
18
  }
21
- _this = _super.call.apply(_super, [this].concat(args));
22
- _defineProperty(_assertThisInitialized(_this), "state", {
19
+ _this = _callSuper(this, AdaptiveIsland, [].concat(args));
20
+ _defineProperty(_this, "state", {
23
21
  phase: null
24
22
  });
25
- _defineProperty(_assertThisInitialized(_this), "onContentScroll", function (_ref) {
23
+ _defineProperty(_this, "onContentScroll", function (_ref) {
26
24
  var _this$state$phase;
27
25
  var scrollTop = _ref.scrollTop,
28
26
  scrollHeight = _ref.scrollHeight,
@@ -36,7 +34,8 @@ function adaptiveIslandHOC(ComposedComponent) {
36
34
  });
37
35
  return _this;
38
36
  }
39
- _createClass(AdaptiveIsland, [{
37
+ _inherits(AdaptiveIsland, _Component);
38
+ return _createClass(AdaptiveIsland, [{
40
39
  key: "render",
41
40
  value: function render() {
42
41
  return /*#__PURE__*/React.createElement(PhaseContext.Provider, {
@@ -46,7 +45,6 @@ function adaptiveIslandHOC(ComposedComponent) {
46
45
  }, /*#__PURE__*/React.createElement(ComposedComponent, this.props)));
47
46
  }
48
47
  }]);
49
- return AdaptiveIsland;
50
48
  }(Component), _defineProperty(_AdaptiveIsland, "propTypes", ComposedComponent.propTypes), _AdaptiveIsland;
51
49
  }
52
50
 
@@ -1,4 +1,4 @@
1
- import { _ as _defineProperty, a as _inherits, b as _createSuper, c as _classCallCheck, d as _assertThisInitialized, f as _createClass, g as _objectWithoutProperties, i as _extends } from '../_helpers/_rollupPluginBabelHelpers.js';
1
+ import { _ as _defineProperty, a as _inherits, b as _createClass, c as _objectWithoutProperties, e as _extends, f as _classCallCheck, g as _callSuper } from '../_helpers/_rollupPluginBabelHelpers.js';
2
2
  import 'core-js/modules/es.array.concat.js';
3
3
  import React, { Component, forwardRef } from 'react';
4
4
  import PropTypes from 'prop-types';
@@ -14,34 +14,32 @@ var scheduleScrollAction = scheduleRAF();
14
14
  var noop = function noop() {};
15
15
  var END_DISTANCE = 16;
16
16
  var Content = /*#__PURE__*/function (_Component) {
17
- _inherits(Content, _Component);
18
- var _super = _createSuper(Content);
19
17
  function Content() {
20
18
  var _this;
21
19
  _classCallCheck(this, Content);
22
20
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
23
21
  args[_key] = arguments[_key];
24
22
  }
25
- _this = _super.call.apply(_super, [this].concat(args));
26
- _defineProperty(_assertThisInitialized(_this), "state", {
23
+ _this = _callSuper(this, Content, [].concat(args));
24
+ _defineProperty(_this, "state", {
27
25
  scrolledToTop: true,
28
26
  scrolledToBottom: false
29
27
  });
30
- _defineProperty(_assertThisInitialized(_this), "resizeDetector", createResizeDetector({
28
+ _defineProperty(_this, "resizeDetector", createResizeDetector({
31
29
  strategy: 'scroll'
32
30
  }));
33
- _defineProperty(_assertThisInitialized(_this), "wrapperNode", void 0);
34
- _defineProperty(_assertThisInitialized(_this), "setWrapper", function (node) {
31
+ _defineProperty(_this, "wrapperNode", void 0);
32
+ _defineProperty(_this, "setWrapper", function (node) {
35
33
  if (!node) {
36
34
  return;
37
35
  }
38
36
  _this.wrapperNode = node;
39
37
  _this.resizeDetector.listenTo(node, _this.calculateScrollPosition);
40
38
  });
41
- _defineProperty(_assertThisInitialized(_this), "calculateScrollPosition", function () {
39
+ _defineProperty(_this, "calculateScrollPosition", function () {
42
40
  return scheduleScrollAction(function () {
43
- var _assertThisInitialize = _assertThisInitialized(_this),
44
- scrollableNode = _assertThisInitialize.scrollableNode;
41
+ var _this2 = _this,
42
+ scrollableNode = _this2.scrollableNode;
45
43
  if (!scrollableNode) {
46
44
  return;
47
45
  }
@@ -61,8 +59,8 @@ var Content = /*#__PURE__*/function (_Component) {
61
59
  });
62
60
  });
63
61
  });
64
- _defineProperty(_assertThisInitialized(_this), "scrollableNode", void 0);
65
- _defineProperty(_assertThisInitialized(_this), "setScrollableNodeAndCalculatePosition", function (node) {
62
+ _defineProperty(_this, "scrollableNode", void 0);
63
+ _defineProperty(_this, "setScrollableNodeAndCalculatePosition", function (node) {
66
64
  if (!node) {
67
65
  return;
68
66
  }
@@ -71,7 +69,8 @@ var Content = /*#__PURE__*/function (_Component) {
71
69
  });
72
70
  return _this;
73
71
  }
74
- _createClass(Content, [{
72
+ _inherits(Content, _Component);
73
+ return _createClass(Content, [{
75
74
  key: "componentWillUnmount",
76
75
  value: function componentWillUnmount() {
77
76
  this.scrollableNode = null;
@@ -118,7 +117,6 @@ var Content = /*#__PURE__*/function (_Component) {
118
117
  }, children), !fade && children));
119
118
  }
120
119
  }]);
121
- return Content;
122
120
  }(Component);
123
121
  _defineProperty(Content, "propTypes", {
124
122
  children: PropTypes.node,
@@ -1,4 +1,4 @@
1
- import { _ as _defineProperty, a as _inherits, b as _createSuper, c as _classCallCheck, f as _createClass, g as _objectWithoutProperties, i as _extends } from '../_helpers/_rollupPluginBabelHelpers.js';
1
+ import { _ as _defineProperty, a as _inherits, b as _createClass, c as _objectWithoutProperties, e as _extends, f as _classCallCheck, g as _callSuper } from '../_helpers/_rollupPluginBabelHelpers.js';
2
2
  import 'core-js/modules/es.array.concat.js';
3
3
  import React, { Component } from 'react';
4
4
  import PropTypes from 'prop-types';
@@ -29,13 +29,12 @@ var End = {
29
29
  };
30
30
  var BORDER_APPEAR_PHASE = 0.5;
31
31
  var Header = /*#__PURE__*/function (_Component) {
32
- _inherits(Header, _Component);
33
- var _super = _createSuper(Header);
34
32
  function Header() {
35
33
  _classCallCheck(this, Header);
36
- return _super.apply(this, arguments);
34
+ return _callSuper(this, Header, arguments);
37
35
  }
38
- _createClass(Header, [{
36
+ _inherits(Header, _Component);
37
+ return _createClass(Header, [{
39
38
  key: "style",
40
39
  value: function style(name) {
41
40
  var _this$props$phase;
@@ -76,7 +75,6 @@ var Header = /*#__PURE__*/function (_Component) {
76
75
  }, children), !wrapWithTitle && children);
77
76
  }
78
77
  }]);
79
- return Header;
80
78
  }(Component);
81
79
  _defineProperty(Header, "propTypes", {
82
80
  children: PropTypes.node,
@@ -1,4 +1,4 @@
1
- import { _ as _defineProperty, a as _inherits, b as _createSuper, c as _classCallCheck, f as _createClass, g as _objectWithoutProperties, i as _extends } from '../_helpers/_rollupPluginBabelHelpers.js';
1
+ import { _ as _defineProperty, a as _inherits, b as _createClass, c as _objectWithoutProperties, e as _extends, f as _classCallCheck, g as _callSuper } from '../_helpers/_rollupPluginBabelHelpers.js';
2
2
  import React, { Component } from 'react';
3
3
  import PropTypes from 'prop-types';
4
4
  import classNames from 'classnames';
@@ -7,10 +7,10 @@ import adaptiveIslandHOC from './adaptive-island-hoc.js';
7
7
  import { m as modules_e6a056e1 } from '../_helpers/island.js';
8
8
  export { default as Header } from './header.js';
9
9
  export { default as Content } from './content.js';
10
+ import 'core-js/modules/es.array.concat.js';
10
11
  import 'core-js/modules/es.array.reduce.js';
11
- import 'core-js/modules/es.object.to-string.js';
12
12
  import 'core-js/modules/es.object.entries.js';
13
- import 'core-js/modules/es.array.concat.js';
13
+ import 'core-js/modules/es.object.to-string.js';
14
14
  import '../global/linear-function.js';
15
15
  import 'element-resize-detector';
16
16
  import '../global/schedule-raf.js';
@@ -20,13 +20,12 @@ var _excluded = ["children", "className", "narrow", "withoutPaddings", "data-tes
20
20
  * @name Island
21
21
  */
22
22
  var Island = /*#__PURE__*/function (_Component) {
23
- _inherits(Island, _Component);
24
- var _super = _createSuper(Island);
25
23
  function Island() {
26
24
  _classCallCheck(this, Island);
27
- return _super.apply(this, arguments);
25
+ return _callSuper(this, Island, arguments);
28
26
  }
29
- _createClass(Island, [{
27
+ _inherits(Island, _Component);
28
+ return _createClass(Island, [{
30
29
  key: "render",
31
30
  value: function render() {
32
31
  var _this$props = this.props,
@@ -46,7 +45,6 @@ var Island = /*#__PURE__*/function (_Component) {
46
45
  }), children);
47
46
  }
48
47
  }]);
49
- return Island;
50
48
  }(Component);
51
49
  _defineProperty(Island, "propTypes", {
52
50
  children: PropTypes.node,
@@ -1,17 +1,16 @@
1
- import { _ as _defineProperty, a as _inherits, b as _createSuper, c as _classCallCheck, f as _createClass, g as _objectWithoutProperties, i as _extends } from '../_helpers/_rollupPluginBabelHelpers.js';
1
+ import { _ as _defineProperty, a as _inherits, b as _createClass, c as _objectWithoutProperties, e as _extends, f as _classCallCheck, g as _callSuper } from '../_helpers/_rollupPluginBabelHelpers.js';
2
2
  import React, { PureComponent } from 'react';
3
3
  import PropTypes from 'prop-types';
4
4
  import classNames from 'classnames';
5
5
 
6
6
  var _excluded = ["children", "className"];
7
7
  var Content = /*#__PURE__*/function (_PureComponent) {
8
- _inherits(Content, _PureComponent);
9
- var _super = _createSuper(Content);
10
8
  function Content() {
11
9
  _classCallCheck(this, Content);
12
- return _super.apply(this, arguments);
10
+ return _callSuper(this, Content, arguments);
13
11
  }
14
- _createClass(Content, [{
12
+ _inherits(Content, _PureComponent);
13
+ return _createClass(Content, [{
15
14
  key: "render",
16
15
  value: function render() {
17
16
  var _this$props = this.props,
@@ -24,7 +23,6 @@ var Content = /*#__PURE__*/function (_PureComponent) {
24
23
  }), children);
25
24
  }
26
25
  }]);
27
- return Content;
28
26
  }(PureComponent);
29
27
  _defineProperty(Content, "propTypes", {
30
28
  className: PropTypes.string,
@@ -1,17 +1,16 @@
1
- import { _ as _defineProperty, a as _inherits, b as _createSuper, c as _classCallCheck, f as _createClass, g as _objectWithoutProperties, i as _extends } from '../_helpers/_rollupPluginBabelHelpers.js';
1
+ import { _ as _defineProperty, a as _inherits, b as _createClass, c as _objectWithoutProperties, e as _extends, f as _classCallCheck, g as _callSuper } from '../_helpers/_rollupPluginBabelHelpers.js';
2
2
  import React, { PureComponent } from 'react';
3
3
  import PropTypes from 'prop-types';
4
4
  import classNames from 'classnames';
5
5
 
6
6
  var _excluded = ["children", "className"];
7
7
  var Header = /*#__PURE__*/function (_PureComponent) {
8
- _inherits(Header, _PureComponent);
9
- var _super = _createSuper(Header);
10
8
  function Header() {
11
9
  _classCallCheck(this, Header);
12
- return _super.apply(this, arguments);
10
+ return _callSuper(this, Header, arguments);
13
11
  }
14
- _createClass(Header, [{
12
+ _inherits(Header, _PureComponent);
13
+ return _createClass(Header, [{
15
14
  key: "render",
16
15
  value: function render() {
17
16
  var _this$props = this.props,
@@ -26,7 +25,6 @@ var Header = /*#__PURE__*/function (_PureComponent) {
26
25
  }, children));
27
26
  }
28
27
  }]);
29
- return Header;
30
28
  }(PureComponent);
31
29
  _defineProperty(Header, "propTypes", {
32
30
  className: PropTypes.string,
@@ -1,4 +1,4 @@
1
- import { _ as _defineProperty, a as _inherits, b as _createSuper, c as _classCallCheck, f as _createClass, g as _objectWithoutProperties, i as _extends } from '../_helpers/_rollupPluginBabelHelpers.js';
1
+ import { _ as _defineProperty, a as _inherits, b as _createClass, c as _objectWithoutProperties, e as _extends, f as _classCallCheck, g as _callSuper } from '../_helpers/_rollupPluginBabelHelpers.js';
2
2
  import React, { PureComponent } from 'react';
3
3
  import PropTypes from 'prop-types';
4
4
  import classNames from 'classnames';
@@ -7,13 +7,12 @@ export { default as Content } from './content-legacy.js';
7
7
 
8
8
  var _excluded = ["children", "className"];
9
9
  var Island = /*#__PURE__*/function (_PureComponent) {
10
- _inherits(Island, _PureComponent);
11
- var _super = _createSuper(Island);
12
10
  function Island() {
13
11
  _classCallCheck(this, Island);
14
- return _super.apply(this, arguments);
12
+ return _callSuper(this, Island, arguments);
15
13
  }
16
- _createClass(Island, [{
14
+ _inherits(Island, _PureComponent);
15
+ return _createClass(Island, [{
17
16
  key: "render",
18
17
  value: function render() {
19
18
  var _this$props = this.props,
@@ -26,7 +25,6 @@ var Island = /*#__PURE__*/function (_PureComponent) {
26
25
  }), children);
27
26
  }
28
27
  }]);
29
- return Island;
30
28
  }(PureComponent);
31
29
  _defineProperty(Island, "propTypes", {
32
30
  className: PropTypes.string,
@@ -1,4 +1,4 @@
1
- import { _ as _defineProperty, a as _inherits, b as _createSuper, c as _classCallCheck, d as _assertThisInitialized, f as _createClass, g as _objectWithoutProperties, i as _extends } from '../_helpers/_rollupPluginBabelHelpers.js';
1
+ import { _ as _defineProperty, a as _inherits, b as _createClass, c as _objectWithoutProperties, e as _extends, f as _classCallCheck, g as _callSuper } from '../_helpers/_rollupPluginBabelHelpers.js';
2
2
  import 'core-js/modules/es.array.concat.js';
3
3
  import React, { PureComponent } from 'react';
4
4
  import PropTypes from 'prop-types';
@@ -10,16 +10,14 @@ var isPlainLeftClick = function isPlainLeftClick(e) {
10
10
  return e.button === LEFT_BUTTON && !e.altKey && !e.ctrlKey && !e.metaKey && !e.shiftKey;
11
11
  };
12
12
  var ClickableLink = /*#__PURE__*/function (_PureComponent) {
13
- _inherits(ClickableLink, _PureComponent);
14
- var _super = _createSuper(ClickableLink);
15
13
  function ClickableLink() {
16
14
  var _this;
17
15
  _classCallCheck(this, ClickableLink);
18
16
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
19
17
  args[_key] = arguments[_key];
20
18
  }
21
- _this = _super.call.apply(_super, [this].concat(args));
22
- _defineProperty(_assertThisInitialized(_this), "onClick", function (e) {
19
+ _this = _callSuper(this, ClickableLink, [].concat(args));
20
+ _defineProperty(_this, "onClick", function (e) {
23
21
  var _this$props = _this.props,
24
22
  onClick = _this$props.onClick,
25
23
  onConditionalClick = _this$props.onConditionalClick,
@@ -38,7 +36,8 @@ var ClickableLink = /*#__PURE__*/function (_PureComponent) {
38
36
  });
39
37
  return _this;
40
38
  }
41
- _createClass(ClickableLink, [{
39
+ _inherits(ClickableLink, _PureComponent);
40
+ return _createClass(ClickableLink, [{
42
41
  key: "render",
43
42
  value: function render() {
44
43
  var _this$props2 = this.props;
@@ -55,7 +54,6 @@ var ClickableLink = /*#__PURE__*/function (_PureComponent) {
55
54
  }), children);
56
55
  }
57
56
  }]);
58
- return ClickableLink;
59
57
  }(PureComponent);
60
58
  _defineProperty(ClickableLink, "propTypes", {
61
59
  onClick: PropTypes.func,
@@ -1,27 +1,26 @@
1
- import { _ as _defineProperty, a as _inherits, b as _createSuper, c as _classCallCheck, f as _createClass, g as _objectWithoutProperties, h as _objectSpread2, i as _extends } from '../_helpers/_rollupPluginBabelHelpers.js';
1
+ import { _ as _defineProperty, a as _inherits, b as _createClass, c as _objectWithoutProperties, d as _objectSpread2, e as _extends, f as _classCallCheck, g as _callSuper } from '../_helpers/_rollupPluginBabelHelpers.js';
2
2
  import React, { PureComponent } from 'react';
3
3
  import PropTypes from 'prop-types';
4
4
  import classNames from 'classnames';
5
5
  import joinDataTestAttributes from '../global/data-tests.js';
6
6
  import ClickableLink from './clickableLink.js';
7
7
  import { m as modules_607b0772 } from '../_helpers/link.js';
8
+ import 'core-js/modules/es.array.concat.js';
8
9
  import 'core-js/modules/es.array.reduce.js';
9
- import 'core-js/modules/es.object.to-string.js';
10
10
  import 'core-js/modules/es.object.entries.js';
11
- import 'core-js/modules/es.array.concat.js';
11
+ import 'core-js/modules/es.object.to-string.js';
12
12
 
13
13
  var _excluded = ["active", "inherit", "pseudo", "hover", "className", "data-test", "href", "children", "onPlainLeftClick", "onClick"];
14
14
  function linkHOC(ComposedComponent) {
15
15
  var _Link;
16
16
  var isCustom = typeof ComposedComponent !== 'string' && ComposedComponent !== ClickableLink;
17
17
  return _Link = /*#__PURE__*/function (_PureComponent) {
18
- _inherits(Link, _PureComponent);
19
- var _super = _createSuper(Link);
20
18
  function Link() {
21
19
  _classCallCheck(this, Link);
22
- return _super.apply(this, arguments);
20
+ return _callSuper(this, Link, arguments);
23
21
  }
24
- _createClass(Link, [{
22
+ _inherits(Link, _PureComponent);
23
+ return _createClass(Link, [{
25
24
  key: "render",
26
25
  value: function render() {
27
26
  var _this$props = this.props,
@@ -67,7 +66,6 @@ function linkHOC(ComposedComponent) {
67
66
  }), children);
68
67
  }
69
68
  }]);
70
- return Link;
71
69
  }(PureComponent), _defineProperty(_Link, "propTypes", {
72
70
  className: PropTypes.string,
73
71
  active: PropTypes.bool,
@@ -1,14 +1,14 @@
1
- import { _ as _defineProperty, a as _inherits, b as _createSuper, c as _classCallCheck, d as _assertThisInitialized, g as _objectWithoutProperties, i as _extends, f as _createClass, h as _objectSpread2 } from '../_helpers/_rollupPluginBabelHelpers.js';
2
- import 'core-js/modules/es.array.includes.js';
3
- import 'core-js/modules/es.string.includes.js';
4
- import 'core-js/modules/es.array.map.js';
5
- import 'core-js/modules/es.array.concat.js';
1
+ import { _ as _defineProperty, a as _inherits, b as _createClass, d as _objectSpread2, f as _classCallCheck, g as _callSuper, c as _objectWithoutProperties, e as _extends } from '../_helpers/_rollupPluginBabelHelpers.js';
6
2
  import 'core-js/modules/es.symbol.js';
7
3
  import 'core-js/modules/es.symbol.description.js';
8
- import 'core-js/modules/es.object.to-string.js';
4
+ import 'core-js/modules/es.array.concat.js';
5
+ import 'core-js/modules/es.array.find.js';
9
6
  import 'core-js/modules/es.array.find-index.js';
7
+ import 'core-js/modules/es.array.includes.js';
8
+ import 'core-js/modules/es.array.map.js';
10
9
  import 'core-js/modules/es.object.assign.js';
11
- import 'core-js/modules/es.array.find.js';
10
+ import 'core-js/modules/es.object.to-string.js';
11
+ import 'core-js/modules/es.string.includes.js';
12
12
  import React, { Component } from 'react';
13
13
  import PropTypes from 'prop-types';
14
14
  import classNames from 'classnames';
@@ -38,13 +38,13 @@ import 'core-js/modules/es.object.entries.js';
38
38
  import 'core-js/modules/es.regexp.to-string.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.array.filter.js';
45
44
  import 'core-js/modules/es.regexp.exec.js';
46
- import 'core-js/modules/es.string.split.js';
47
45
  import 'core-js/modules/es.set.js';
46
+ import 'core-js/modules/es.string.split.js';
47
+ import 'core-js/modules/web.dom-collections.for-each.js';
48
48
  import '../shortcuts/core.js';
49
49
  import 'core-js/modules/es.array.slice.js';
50
50
  import 'core-js/modules/es.array.splice.js';
@@ -108,16 +108,14 @@ var ActiveItemContext = createStatefulContext(undefined, 'ActiveItem');
108
108
  * Displays a list of items.
109
109
  */
110
110
  var List = /*#__PURE__*/function (_Component) {
111
- _inherits(List, _Component);
112
- var _super = _createSuper(List);
113
111
  function List() {
114
112
  var _this;
115
113
  _classCallCheck(this, List);
116
114
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
117
115
  args[_key] = arguments[_key];
118
116
  }
119
- _this = _super.call.apply(_super, [this].concat(args));
120
- _defineProperty(_assertThisInitialized(_this), "state", {
117
+ _this = _callSuper(this, List, [].concat(args));
118
+ _defineProperty(_this, "state", {
121
119
  activeIndex: null,
122
120
  prevActiveIndex: null,
123
121
  prevData: [],
@@ -128,12 +126,12 @@ var List = /*#__PURE__*/function (_Component) {
128
126
  disabledHover: false,
129
127
  scrolledToBottom: false
130
128
  });
131
- _defineProperty(_assertThisInitialized(_this), "scheduleScrollListener", scheduleRAF());
132
- _defineProperty(_assertThisInitialized(_this), "scheduleHoverListener", scheduleRAF());
133
- _defineProperty(_assertThisInitialized(_this), "virtualizedList", void 0);
134
- _defineProperty(_assertThisInitialized(_this), "unmounted", void 0);
135
- _defineProperty(_assertThisInitialized(_this), "container", void 0);
136
- _defineProperty(_assertThisInitialized(_this), "hoverHandler", memoize(function (index) {
129
+ _defineProperty(_this, "scheduleScrollListener", scheduleRAF());
130
+ _defineProperty(_this, "scheduleHoverListener", scheduleRAF());
131
+ _defineProperty(_this, "virtualizedList", void 0);
132
+ _defineProperty(_this, "unmounted", void 0);
133
+ _defineProperty(_this, "container", void 0);
134
+ _defineProperty(_this, "hoverHandler", memoize(function (index) {
137
135
  return function () {
138
136
  return _this.scheduleHoverListener(function () {
139
137
  if (_this.state.disabledHover) {
@@ -150,10 +148,10 @@ var List = /*#__PURE__*/function (_Component) {
150
148
  };
151
149
  }));
152
150
  // eslint-disable-next-line @typescript-eslint/no-magic-numbers
153
- _defineProperty(_assertThisInitialized(_this), "_bufferSize", 10);
151
+ _defineProperty(_this, "_bufferSize", 10);
154
152
  // keep X items above and below of the visible area
155
153
  // reuse size cache for similar items
156
- _defineProperty(_assertThisInitialized(_this), "sizeCacheKey", function (index) {
154
+ _defineProperty(_this, "sizeCacheKey", function (index) {
157
155
  if (index === 0 || index === _this.props.data.length + 1) {
158
156
  return Type.MARGIN;
159
157
  }
@@ -176,15 +174,15 @@ var List = /*#__PURE__*/function (_Component) {
176
174
  return Type.ITEM;
177
175
  }
178
176
  });
179
- _defineProperty(_assertThisInitialized(_this), "_cache", new CellMeasurerCache({
177
+ _defineProperty(_this, "_cache", new CellMeasurerCache({
180
178
  defaultHeight: _this.defaultItemHeight(),
181
179
  fixedWidth: true,
182
180
  keyMapper: _this.sizeCacheKey
183
181
  }));
184
- _defineProperty(_assertThisInitialized(_this), "_hasActivatableItems", memoizeOne(function (items) {
182
+ _defineProperty(_this, "_hasActivatableItems", memoizeOne(function (items) {
185
183
  return items.some(isActivatable);
186
184
  }));
187
- _defineProperty(_assertThisInitialized(_this), "activateFirst", function () {
185
+ _defineProperty(_this, "activateFirst", function () {
188
186
  var firstActivatableIndex = _this.props.data.findIndex(isActivatable);
189
187
  if (firstActivatableIndex >= 0) {
190
188
  _this.setState({
@@ -194,7 +192,7 @@ var List = /*#__PURE__*/function (_Component) {
194
192
  });
195
193
  }
196
194
  });
197
- _defineProperty(_assertThisInitialized(_this), "selectHandler", memoize(function (index) {
195
+ _defineProperty(_this, "selectHandler", memoize(function (index) {
198
196
  return function (event) {
199
197
  var tryKeepOpen = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
200
198
  var item = _this.props.data[index];
@@ -210,12 +208,12 @@ var List = /*#__PURE__*/function (_Component) {
210
208
  }
211
209
  };
212
210
  }));
213
- _defineProperty(_assertThisInitialized(_this), "checkboxHandler", memoize(function (index) {
211
+ _defineProperty(_this, "checkboxHandler", memoize(function (index) {
214
212
  return function (event) {
215
213
  return _this.selectHandler(index)(event, true);
216
214
  };
217
215
  }));
218
- _defineProperty(_assertThisInitialized(_this), "upHandler", function (e) {
216
+ _defineProperty(_this, "upHandler", function (e) {
219
217
  var _this$props = _this.props,
220
218
  data = _this$props.data,
221
219
  disableMoveOverflow = _this$props.disableMoveOverflow;
@@ -232,7 +230,7 @@ var List = /*#__PURE__*/function (_Component) {
232
230
  }
233
231
  _this.moveHandler(newIndex, _this.upHandler, e);
234
232
  });
235
- _defineProperty(_assertThisInitialized(_this), "downHandler", function (e) {
233
+ _defineProperty(_this, "downHandler", function (e) {
236
234
  var _this$props2 = _this.props,
237
235
  data = _this$props2.data,
238
236
  disableMoveOverflow = _this$props2.disableMoveOverflow,
@@ -252,20 +250,20 @@ var List = /*#__PURE__*/function (_Component) {
252
250
  }
253
251
  _this.moveHandler(newIndex, _this.downHandler, e);
254
252
  });
255
- _defineProperty(_assertThisInitialized(_this), "homeHandler", function (e) {
253
+ _defineProperty(_this, "homeHandler", function (e) {
256
254
  _this.moveHandler(0, _this.downHandler, e);
257
255
  });
258
- _defineProperty(_assertThisInitialized(_this), "endHandler", function (e) {
256
+ _defineProperty(_this, "endHandler", function (e) {
259
257
  _this.moveHandler(_this.props.data.length - 1, _this.upHandler, e);
260
258
  });
261
- _defineProperty(_assertThisInitialized(_this), "onDocumentMouseMove", function () {
259
+ _defineProperty(_this, "onDocumentMouseMove", function () {
262
260
  if (_this.state.disabledHover) {
263
261
  _this.setState({
264
262
  disabledHover: false
265
263
  });
266
264
  }
267
265
  });
268
- _defineProperty(_assertThisInitialized(_this), "onDocumentKeyDown", function (e) {
266
+ _defineProperty(_this, "onDocumentKeyDown", function (e) {
269
267
  var metaKeys = [16, 17, 18, 19, 20, 91]; // eslint-disable-line @typescript-eslint/no-magic-numbers
270
268
  if (!_this.state.disabledHover && !metaKeys.includes(e.keyCode)) {
271
269
  _this.setState({
@@ -273,17 +271,17 @@ var List = /*#__PURE__*/function (_Component) {
273
271
  });
274
272
  }
275
273
  });
276
- _defineProperty(_assertThisInitialized(_this), "mouseHandler", function () {
274
+ _defineProperty(_this, "mouseHandler", function () {
277
275
  _this.setState({
278
276
  scrolling: false
279
277
  });
280
278
  });
281
- _defineProperty(_assertThisInitialized(_this), "scrollHandler", function () {
279
+ _defineProperty(_this, "scrollHandler", function () {
282
280
  _this.setState({
283
281
  scrolling: true
284
282
  }, _this.scrollEndHandler);
285
283
  });
286
- _defineProperty(_assertThisInitialized(_this), "enterHandler", function (event, shortcut) {
284
+ _defineProperty(_this, "enterHandler", function (event, shortcut) {
287
285
  if (_this.state.activeIndex !== null) {
288
286
  var item = _this.props.data[_this.state.activeIndex];
289
287
  _this.selectHandler(_this.state.activeIndex)(event);
@@ -301,13 +299,13 @@ var List = /*#__PURE__*/function (_Component) {
301
299
  return true; // propagate event to the parent component (e.g., QueryAssist)
302
300
  }
303
301
  });
304
- _defineProperty(_assertThisInitialized(_this), "clearSelected", function () {
302
+ _defineProperty(_this, "clearSelected", function () {
305
303
  _this.setState({
306
304
  activeIndex: null,
307
305
  needScrollToActive: false
308
306
  });
309
307
  });
310
- _defineProperty(_assertThisInitialized(_this), "scrollEndHandler", function () {
308
+ _defineProperty(_this, "scrollEndHandler", function () {
311
309
  return _this.scheduleScrollListener(function () {
312
310
  var innerContainer = _this.inner;
313
311
  if (innerContainer) {
@@ -326,14 +324,14 @@ var List = /*#__PURE__*/function (_Component) {
326
324
  }
327
325
  });
328
326
  });
329
- _defineProperty(_assertThisInitialized(_this), "checkOverflow", function () {
327
+ _defineProperty(_this, "checkOverflow", function () {
330
328
  if (_this.inner) {
331
329
  _this.setState({
332
330
  hasOverflow: _this.inner.scrollHeight - _this.inner.clientHeight > 1
333
331
  });
334
332
  }
335
333
  });
336
- _defineProperty(_assertThisInitialized(_this), "renderItem", function (_ref) {
334
+ _defineProperty(_this, "renderItem", function (_ref) {
337
335
  var _ref$index = _ref.index,
338
336
  index = _ref$index === void 0 ? 1 : _ref$index,
339
337
  style = _ref.style,
@@ -441,20 +439,20 @@ var List = /*#__PURE__*/function (_Component) {
441
439
  role: "cell"
442
440
  }, el));
443
441
  });
444
- _defineProperty(_assertThisInitialized(_this), "addItemDataTestToProp", function (props) {
442
+ _defineProperty(_this, "addItemDataTestToProp", function (props) {
445
443
  props['data-test'] = joinDataTestAttributes('ring-list-item', props['data-test']);
446
444
  return props;
447
445
  });
448
- _defineProperty(_assertThisInitialized(_this), "virtualizedListRef", function (el) {
446
+ _defineProperty(_this, "virtualizedListRef", function (el) {
449
447
  _this.virtualizedList = el;
450
448
  });
451
- _defineProperty(_assertThisInitialized(_this), "containerRef", function (el) {
449
+ _defineProperty(_this, "containerRef", function (el) {
452
450
  _this.container = el;
453
451
  });
454
- _defineProperty(_assertThisInitialized(_this), "_inner", void 0);
455
- _defineProperty(_assertThisInitialized(_this), "id", getUID('list-'));
456
- _defineProperty(_assertThisInitialized(_this), "shortcutsScope", _this.id);
457
- _defineProperty(_assertThisInitialized(_this), "shortcutsMap", {
452
+ _defineProperty(_this, "_inner", void 0);
453
+ _defineProperty(_this, "id", getUID('list-'));
454
+ _defineProperty(_this, "shortcutsScope", _this.id);
455
+ _defineProperty(_this, "shortcutsMap", {
458
456
  up: _this.upHandler,
459
457
  down: _this.downHandler,
460
458
  home: _this.homeHandler,
@@ -467,7 +465,8 @@ var List = /*#__PURE__*/function (_Component) {
467
465
  });
468
466
  return _this;
469
467
  }
470
- _createClass(List, [{
468
+ _inherits(List, _Component);
469
+ return _createClass(List, [{
471
470
  key: "componentDidMount",
472
471
  value: function componentDidMount() {
473
472
  document.addEventListener('mousemove', this.onDocumentMouseMove);
@@ -750,7 +749,6 @@ var List = /*#__PURE__*/function (_Component) {
750
749
  return nextState;
751
750
  }
752
751
  }]);
753
- return List;
754
752
  }(Component);
755
753
  _defineProperty(List, "propTypes", {
756
754
  id: PropTypes.string,