@jetbrains/ring-ui 5.0.127 → 5.0.128

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 (304) hide show
  1. package/components/alert/alert.js +2 -1
  2. package/components/alert/container.js +2 -1
  3. package/components/auth/auth__core.js +2 -1
  4. package/components/auth/request-builder.js +2 -1
  5. package/components/auth/response-parser.js +2 -1
  6. package/components/auth/token-validator.js +2 -1
  7. package/components/auth-dialog/auth-dialog.js +2 -1
  8. package/components/avatar/avatar.js +2 -1
  9. package/components/badge/badge.js +2 -1
  10. package/components/button/button.js +2 -1
  11. package/components/button-group/button-group.js +2 -1
  12. package/components/button-group/caption.js +2 -1
  13. package/components/button-set/button-set.js +2 -1
  14. package/components/button-toolbar/button-toolbar.js +2 -1
  15. package/components/caret/caret.js +2 -1
  16. package/components/checkbox/checkbox.js +2 -1
  17. package/components/code/code.js +2 -1
  18. package/components/confirm/confirm.js +2 -1
  19. package/components/content-layout/content-layout.js +2 -1
  20. package/components/content-layout/sidebar.js +2 -1
  21. package/components/data-list/data-list.js +2 -1
  22. package/components/data-list/item.js +2 -1
  23. package/components/date-picker/date-input.js +2 -1
  24. package/components/date-picker/date-picker.js +2 -1
  25. package/components/date-picker/date-popup.js +2 -1
  26. package/components/date-picker/day.js +2 -1
  27. package/components/date-picker/month-slider.js +2 -1
  28. package/components/date-picker/years.js +2 -1
  29. package/components/dialog/dialog.d.ts +4 -16
  30. package/components/dialog/dialog.js +6 -3
  31. package/components/dropdown/dropdown.js +2 -1
  32. package/components/error-bubble/error-bubble.js +2 -1
  33. package/components/error-message/error-message.js +2 -1
  34. package/components/footer/footer.js +1 -0
  35. package/components/global/react-dom-renderer.js +2 -1
  36. package/components/grid/col.js +2 -1
  37. package/components/grid/grid.js +2 -1
  38. package/components/grid/row.js +2 -1
  39. package/components/group/group.js +2 -1
  40. package/components/header/logo.js +2 -1
  41. package/components/header/profile.js +2 -1
  42. package/components/header/services-link.js +2 -1
  43. package/components/header/services.js +2 -1
  44. package/components/header/smart-profile.js +2 -1
  45. package/components/header/smart-services.js +2 -1
  46. package/components/header/tray-icon.js +2 -1
  47. package/components/header/tray.js +2 -1
  48. package/components/hub-source/hub-source.js +2 -1
  49. package/components/icon/icon.js +2 -1
  50. package/components/input/input.js +2 -1
  51. package/components/island/island.js +2 -1
  52. package/components/island-legacy/content-legacy.js +2 -1
  53. package/components/island-legacy/header-legacy.js +2 -1
  54. package/components/island-legacy/island-legacy.js +2 -1
  55. package/components/link/clickableLink.js +2 -1
  56. package/components/list/list.js +2 -1
  57. package/components/list/list__hint.js +2 -1
  58. package/components/list/list__users-groups-source.js +2 -1
  59. package/components/loader/loader.js +2 -1
  60. package/components/loader/loader__core.js +2 -1
  61. package/components/loader-screen/loader-screen.js +2 -1
  62. package/components/login-dialog/login-dialog.js +2 -1
  63. package/components/message/message.js +2 -1
  64. package/components/pager/pager.js +2 -1
  65. package/components/panel/panel.js +2 -1
  66. package/components/permissions/permissions.js +2 -1
  67. package/components/permissions/permissions__cache.js +2 -1
  68. package/components/popup/popup.js +2 -1
  69. package/components/popup-menu/popup-menu.js +2 -1
  70. package/components/progress-bar/progress-bar.js +2 -1
  71. package/components/query-assist/query-assist.js +4 -3
  72. package/components/radio/radio.js +2 -1
  73. package/components/radio/radio__item.js +2 -1
  74. package/components/select/select.js +2 -1
  75. package/components/select/select__filter.js +2 -1
  76. package/components/select/select__popup.js +4 -2
  77. package/components/shortcuts/shortcuts.js +2 -1
  78. package/components/storage/storage__fallback.js +2 -1
  79. package/components/tab-trap/tab-trap.js +2 -1
  80. package/components/table/cell.js +2 -1
  81. package/components/table/header-cell.js +2 -1
  82. package/components/table/header.js +2 -1
  83. package/components/table/multitable.js +2 -1
  84. package/components/table/row.js +3 -2
  85. package/components/table/table.js +4 -2
  86. package/components/tabs/smart-tabs.js +2 -1
  87. package/components/tabs/tab.js +2 -1
  88. package/components/tag/tag.js +2 -1
  89. package/components/tags-input/tags-input.d.ts +1 -1
  90. package/components/tags-input/tags-input.js +3 -2
  91. package/components/tags-list/tags-list.js +2 -1
  92. package/components/text/text.js +2 -1
  93. package/components/tooltip/tooltip.js +2 -1
  94. package/components/user-agreement/user-agreement.js +2 -1
  95. package/components/user-card/card.js +2 -1
  96. package/components/user-card/smart-user-card-tooltip.d.ts +1 -1
  97. package/components/user-card/smart-user-card-tooltip.js +2 -1
  98. package/components/user-card/tooltip.js +2 -1
  99. package/dist/_helpers/_rollupPluginBabelHelpers.js +1 -29
  100. package/dist/_helpers/anchor.js +1 -1
  101. package/dist/_helpers/card.js +44 -47
  102. package/dist/_helpers/footer.js +1 -0
  103. package/dist/_helpers/select__filter.js +10 -13
  104. package/dist/_helpers/services-link.js +10 -10
  105. package/dist/_helpers/sidebar.js +34 -37
  106. package/dist/_helpers/theme.js +1 -1
  107. package/dist/_helpers/title.js +12 -16
  108. package/dist/alert/alert.js +63 -66
  109. package/dist/alert/container.js +5 -5
  110. package/dist/alert-service/alert-service.js +5 -7
  111. package/dist/analytics/analytics.js +1 -2
  112. package/dist/analytics/analytics__custom-plugin.js +6 -8
  113. package/dist/auth/auth.js +1 -1
  114. package/dist/auth/auth__core.js +26 -26
  115. package/dist/auth/background-flow.js +4 -5
  116. package/dist/auth/iframe-flow.js +12 -12
  117. package/dist/auth/landing.js +1 -1
  118. package/dist/auth/request-builder.js +3 -5
  119. package/dist/auth/response-parser.js +5 -6
  120. package/dist/auth/storage.js +12 -12
  121. package/dist/auth/token-validator.js +13 -16
  122. package/dist/auth/window-flow.js +18 -19
  123. package/dist/auth-dialog/auth-dialog.js +54 -57
  124. package/dist/auth-dialog-service/auth-dialog-service.js +1 -1
  125. package/dist/auth-ng/auth-ng.js +1 -1
  126. package/dist/avatar/avatar.js +30 -33
  127. package/dist/avatar-ng/avatar-ng.js +1 -1
  128. package/dist/badge/badge.js +10 -10
  129. package/dist/badge-ng/badge-ng.js +1 -1
  130. package/dist/breadcrumb-ng/breadcrumb-ng.js +0 -1
  131. package/dist/button/button.js +24 -27
  132. package/dist/button-group/button-group.js +5 -5
  133. package/dist/button-group/caption.js +4 -4
  134. package/dist/button-ng/button-ng.js +68 -69
  135. package/dist/button-set/button-set.js +6 -6
  136. package/dist/button-toolbar/button-toolbar.js +6 -6
  137. package/dist/caret/caret.js +2 -4
  138. package/dist/checkbox/checkbox.js +27 -30
  139. package/dist/checkbox-ng/checkbox-ng.js +0 -1
  140. package/dist/code/code.js +17 -21
  141. package/dist/confirm/confirm.js +31 -34
  142. package/dist/confirm-ng/confirm-ng.js +1 -1
  143. package/dist/confirm-service/confirm-service.js +1 -1
  144. package/dist/content-layout/content-layout.js +17 -20
  145. package/dist/contenteditable/contenteditable.js +11 -11
  146. package/dist/data-list/data-list.js +49 -55
  147. package/dist/data-list/item.js +64 -67
  148. package/dist/data-list/selection.js +0 -1
  149. package/dist/data-list/title.js +1 -1
  150. package/dist/data-list-ng/data-list-ng.js +1 -1
  151. package/dist/date-picker/date-input.js +39 -42
  152. package/dist/date-picker/date-picker.js +162 -165
  153. package/dist/date-picker/date-popup.js +119 -119
  154. package/dist/date-picker/day.js +34 -38
  155. package/dist/date-picker/month-names.js +11 -14
  156. package/dist/date-picker/month-slider.js +24 -28
  157. package/dist/date-picker/month.js +1 -1
  158. package/dist/date-picker/months.js +1 -1
  159. package/dist/date-picker/years.js +9 -13
  160. package/dist/dialog/dialog.d.ts +4 -16
  161. package/dist/dialog/dialog.js +68 -65
  162. package/dist/dialog-ng/dialog-ng.js +21 -22
  163. package/dist/docked-panel-ng/docked-panel-ng.js +0 -1
  164. package/dist/dropdown/dropdown.js +101 -104
  165. package/dist/dropdown-menu/dropdown-menu.js +1 -1
  166. package/dist/editable-heading/editable-heading.js +1 -1
  167. package/dist/error-bubble/error-bubble.js +6 -6
  168. package/dist/error-message/error-message.js +10 -10
  169. package/dist/error-message-ng/error-message-ng.js +0 -1
  170. package/dist/footer-ng/footer-ng.js +19 -21
  171. package/dist/global/angular-component-factory.js +2 -3
  172. package/dist/global/dom.js +1 -5
  173. package/dist/global/focus-sensor-hoc.js +58 -61
  174. package/dist/global/listeners.js +1 -5
  175. package/dist/global/react-dom-renderer.js +8 -12
  176. package/dist/global/rerender-hoc.js +1 -5
  177. package/dist/global/ring-angular-component.js +1 -3
  178. package/dist/grid/col.js +13 -14
  179. package/dist/grid/grid.js +5 -5
  180. package/dist/grid/row.js +16 -17
  181. package/dist/group/group.js +5 -5
  182. package/dist/header/header.js +10 -10
  183. package/dist/header/logo.js +9 -9
  184. package/dist/header/profile.js +58 -58
  185. package/dist/header/services.js +19 -22
  186. package/dist/header/smart-profile.js +40 -43
  187. package/dist/header/smart-services.js +28 -31
  188. package/dist/header/tray-icon.js +6 -6
  189. package/dist/header/tray.js +5 -5
  190. package/dist/heading/heading.js +1 -1
  191. package/dist/heading-ng/heading-ng.js +1 -1
  192. package/dist/http/http.js +111 -107
  193. package/dist/http/http.mock.js +3 -4
  194. package/dist/hub-source/hub-source.js +7 -9
  195. package/dist/hub-source/hub-source__user.js +0 -1
  196. package/dist/hub-source/hub-source__users-groups.js +4 -5
  197. package/dist/icon/icon.js +18 -18
  198. package/dist/icon/icon__svg.js +1 -1
  199. package/dist/icon-ng/icon-ng.js +0 -1
  200. package/dist/input/input.js +35 -38
  201. package/dist/input-ng/input-ng.js +25 -26
  202. package/dist/island/adaptive-island-hoc.js +21 -25
  203. package/dist/island/content.js +62 -65
  204. package/dist/island/header.js +11 -11
  205. package/dist/island/island.js +8 -8
  206. package/dist/island-legacy/content-legacy.js +5 -5
  207. package/dist/island-legacy/header-legacy.js +5 -5
  208. package/dist/island-legacy/island-legacy.js +5 -5
  209. package/dist/link/clickableLink.js +27 -30
  210. package/dist/link/link.js +16 -16
  211. package/dist/list/list.js +389 -391
  212. package/dist/list/list__custom.js +6 -10
  213. package/dist/list/list__hint.js +3 -4
  214. package/dist/list/list__item.js +4 -7
  215. package/dist/list/list__link.js +1 -1
  216. package/dist/list/list__users-groups-source.js +3 -3
  217. package/dist/loader/loader.js +16 -19
  218. package/dist/loader/loader__core.js +62 -62
  219. package/dist/loader-inline/loader-inline.js +6 -6
  220. package/dist/loader-ng/loader-ng.js +3 -4
  221. package/dist/loader-screen/loader-screen.js +6 -6
  222. package/dist/loader-screen-ng/loader-screen-ng.js +0 -1
  223. package/dist/login-dialog/login-dialog.js +55 -58
  224. package/dist/login-dialog/service.js +1 -1
  225. package/dist/markdown/code.js +0 -1
  226. package/dist/markdown/markdown.js +1 -1
  227. package/dist/message/message.js +22 -25
  228. package/dist/old-browsers-message/white-list.js +2 -2
  229. package/dist/pager/pager.js +55 -58
  230. package/dist/pager-ng/pager-ng.js +1 -1
  231. package/dist/panel/panel.js +5 -5
  232. package/dist/panel-ng/panel-ng.js +0 -1
  233. package/dist/permissions/permissions.js +14 -16
  234. package/dist/permissions/permissions__cache.js +4 -6
  235. package/dist/permissions-ng/permissions-ng.js +1 -1
  236. package/dist/place-under-ng/place-under-ng.js +0 -1
  237. package/dist/popup/popup.js +118 -121
  238. package/dist/popup/popup.target.js +1 -1
  239. package/dist/popup/position.js +0 -1
  240. package/dist/popup-menu/popup-menu.js +19 -22
  241. package/dist/progress-bar/progress-bar.js +41 -44
  242. package/dist/progress-bar-ng/progress-bar-ng.js +1 -1
  243. package/dist/promised-click-ng/promised-click-ng.js +0 -1
  244. package/dist/query-assist/query-assist.js +507 -501
  245. package/dist/query-assist/query-assist__suggestions.js +1 -1
  246. package/dist/query-assist-ng/query-assist-ng.js +1 -1
  247. package/dist/radio/radio.js +10 -13
  248. package/dist/radio/radio__item.js +19 -22
  249. package/dist/select/select.js +350 -349
  250. package/dist/select/select__popup.js +148 -152
  251. package/dist/select-ng/select-ng.js +1 -1
  252. package/dist/select-ng/select-ng__lazy.js +4 -4
  253. package/dist/select-ng/select-ng__options.js +14 -15
  254. package/dist/shortcuts/core.js +35 -36
  255. package/dist/shortcuts/shortcuts-hoc.js +7 -11
  256. package/dist/shortcuts/shortcuts.js +10 -11
  257. package/dist/shortcuts-hint-ng/shortcuts-hint-ng.js +0 -1
  258. package/dist/shortcuts-ng/shortcuts-ng.js +0 -1
  259. package/dist/sidebar-ng/sidebar-ng.js +0 -1
  260. package/dist/storage/storage.js +1 -1
  261. package/dist/storage/storage__fallback.js +8 -10
  262. package/dist/storage/storage__local.js +2 -2
  263. package/dist/style.css +1 -1
  264. package/dist/tab-trap/tab-trap.js +84 -86
  265. package/dist/table/cell.js +6 -6
  266. package/dist/table/disable-hover-hoc.js +23 -25
  267. package/dist/table/header-cell.js +28 -31
  268. package/dist/table/header.js +58 -61
  269. package/dist/table/multitable.js +91 -95
  270. package/dist/table/row-with-focus-sensor.js +15 -18
  271. package/dist/table/row.js +51 -54
  272. package/dist/table/selection-shortcuts-hoc.js +145 -147
  273. package/dist/table/selection.js +7 -9
  274. package/dist/table/smart-table.js +21 -24
  275. package/dist/table/table.js +103 -109
  276. package/dist/table-legacy-ng/table-legacy-ng.js +1 -1
  277. package/dist/table-legacy-ng/table-legacy-ng__pager.js +1 -1
  278. package/dist/table-legacy-ng/table-legacy-ng__selection.js +1 -3
  279. package/dist/table-legacy-ng/table-legacy-ng__toolbar.js +0 -1
  280. package/dist/table-ng/smart-table-ng.js +1 -1
  281. package/dist/table-ng/table-ng.js +1 -1
  282. package/dist/tabs/collapsible-more.js +1 -1
  283. package/dist/tabs/collapsible-tab.js +1 -1
  284. package/dist/tabs/dumb-tabs.js +46 -49
  285. package/dist/tabs/smart-tabs.js +10 -10
  286. package/dist/tabs/tab.js +7 -8
  287. package/dist/tag/tag.js +42 -45
  288. package/dist/tags-input/tags-input.d.ts +1 -1
  289. package/dist/tags-input/tags-input.js +214 -213
  290. package/dist/tags-input-ng/tags-input-ng.js +1 -1
  291. package/dist/tags-list/tags-list.js +20 -20
  292. package/dist/template-ng/template-ng.js +25 -26
  293. package/dist/text/text.js +6 -6
  294. package/dist/toggle/toggle.js +19 -19
  295. package/dist/toggle-ng/toggle-ng.js +1 -1
  296. package/dist/tooltip/tooltip.js +86 -89
  297. package/dist/tooltip-ng/tooltip-ng.js +1 -1
  298. package/dist/user-agreement/service.js +207 -205
  299. package/dist/user-agreement/user-agreement.js +39 -42
  300. package/dist/user-card/smart-user-card-tooltip.d.ts +1 -1
  301. package/dist/user-card/smart-user-card-tooltip.js +32 -35
  302. package/dist/user-card/tooltip.js +26 -26
  303. package/dist/user-card-ng/user-card-ng.js +1 -1
  304. package/package.json +15 -15
@@ -1,4 +1,3 @@
1
- import { _ as _defineProperty } from '../_helpers/_rollupPluginBabelHelpers.js';
2
1
  import angular from 'angular';
3
2
  import React from 'react';
4
3
  import { unmountComponentAtNode, render } from './react-render-adapter.js';
@@ -17,6 +16,8 @@ function createAngularComponent(Component) {
17
16
  bindings[key] = '<';
18
17
  });
19
18
  class AngularComponent extends RingAngularComponent {
19
+ static bindings = bindings;
20
+ static transclude = true;
20
21
  $postLink() {
21
22
  const {
22
23
  $transclude
@@ -63,8 +64,6 @@ function createAngularComponent(Component) {
63
64
  }) : null), container);
64
65
  }
65
66
  }
66
- _defineProperty(AngularComponent, "bindings", bindings);
67
- _defineProperty(AngularComponent, "transclude", true);
68
67
  AngularComponent.$inject = ['$scope', '$element', '$transclude'];
69
68
  return AngularComponent;
70
69
  }
@@ -1,5 +1,3 @@
1
- import { _ as _defineProperty } from '../_helpers/_rollupPluginBabelHelpers.js';
2
-
3
1
  /**
4
2
  * @name DOM
5
3
  */
@@ -88,9 +86,7 @@ function resetRootStyleProperties() {
88
86
  Object.keys(properties).forEach(key => rootStyle.removeProperty(key));
89
87
  }
90
88
  class Listeners {
91
- constructor() {
92
- _defineProperty(this, "_all", new Set());
93
- }
89
+ _all = new Set();
94
90
  add(el, event, handler, options) {
95
91
  el.addEventListener(event, handler, options);
96
92
  const dispatchFn = () => el.removeEventListener(event, handler, options);
@@ -1,4 +1,4 @@
1
- import { _ as _defineProperty, a as _extends } from '../_helpers/_rollupPluginBabelHelpers.js';
1
+ import { _ as _extends } from '../_helpers/_rollupPluginBabelHelpers.js';
2
2
  import React, { Component } from 'react';
3
3
  import PropTypes from 'prop-types';
4
4
  import { refObject } from './prop-types.js';
@@ -22,66 +22,9 @@ function extractPropTypes(_ref) {
22
22
  }
23
23
  function focusSensorHOC(ComposedComponent) {
24
24
  class FocusSensor extends Component {
25
- constructor() {
26
- super(...arguments);
27
- _defineProperty(this, "state", {
28
- focused: this.props.focused
29
- });
30
- _defineProperty(this, "node", void 0);
31
- _defineProperty(this, "_skipNextCapture", false);
32
- _defineProperty(this, "onRefUpdate", node => {
33
- if (node) {
34
- this.node = node;
35
- }
36
- });
37
- _defineProperty(this, "onFocusCapture", _ref2 => {
38
- let {
39
- target
40
- } = _ref2;
41
- if (this._skipNextCapture) {
42
- this._skipNextCapture = false;
43
- return;
44
- }
45
- const focused = target instanceof Node && this.node?.contains(target);
46
- if (focused && !this.state.focused) {
47
- this.setState({
48
- focused: true
49
- });
50
- this.props.onFocus?.();
51
- }
52
- });
53
- _defineProperty(this, "onBlurCapture", _ref3 => {
54
- let {
55
- target
56
- } = _ref3;
57
- const {
58
- state: {
59
- focused
60
- },
61
- node
62
- } = this;
63
- if (focused) {
64
- setTimeout(() => {
65
- const blurred = target instanceof Node && node?.contains(target) && !node.contains(document.activeElement);
66
- if (blurred) {
67
- this.setState({
68
- focused: false
69
- });
70
- this.props.onBlur?.();
71
- }
72
- }, 1);
73
- }
74
- });
75
- _defineProperty(this, "onFocusRestore", () => {
76
- this._skipNextCapture = true;
77
- this.node?.focus({
78
- preventScroll: !this.props.scrollOnTableFocus
79
- });
80
- });
81
- _defineProperty(this, "onFocusReset", () => {
82
- this.node?.blur();
83
- });
84
- }
25
+ state = {
26
+ focused: this.props.focused
27
+ };
85
28
  componentDidMount() {
86
29
  const {
87
30
  props: {
@@ -116,6 +59,60 @@ function focusSensorHOC(ComposedComponent) {
116
59
  document.removeEventListener('focus', this.onFocusCapture, true);
117
60
  document.removeEventListener('blur', this.onBlurCapture, true);
118
61
  }
62
+ node;
63
+ _skipNextCapture = false;
64
+ onRefUpdate = node => {
65
+ if (node) {
66
+ this.node = node;
67
+ }
68
+ };
69
+ onFocusCapture = _ref2 => {
70
+ let {
71
+ target
72
+ } = _ref2;
73
+ if (this._skipNextCapture) {
74
+ this._skipNextCapture = false;
75
+ return;
76
+ }
77
+ const focused = target instanceof Node && this.node?.contains(target);
78
+ if (focused && !this.state.focused) {
79
+ this.setState({
80
+ focused: true
81
+ });
82
+ this.props.onFocus?.();
83
+ }
84
+ };
85
+ onBlurCapture = _ref3 => {
86
+ let {
87
+ target
88
+ } = _ref3;
89
+ const {
90
+ state: {
91
+ focused
92
+ },
93
+ node
94
+ } = this;
95
+ if (focused) {
96
+ setTimeout(() => {
97
+ const blurred = target instanceof Node && node?.contains(target) && !node.contains(document.activeElement);
98
+ if (blurred) {
99
+ this.setState({
100
+ focused: false
101
+ });
102
+ this.props.onBlur?.();
103
+ }
104
+ }, 1);
105
+ }
106
+ };
107
+ onFocusRestore = () => {
108
+ this._skipNextCapture = true;
109
+ this.node?.focus({
110
+ preventScroll: !this.props.scrollOnTableFocus
111
+ });
112
+ };
113
+ onFocusReset = () => {
114
+ this.node?.blur();
115
+ };
119
116
  render() {
120
117
  const {
121
118
  autofocus,
@@ -1,9 +1,5 @@
1
- import { _ as _defineProperty } from '../_helpers/_rollupPluginBabelHelpers.js';
2
-
3
1
  class Listeners {
4
- constructor() {
5
- _defineProperty(this, "_all", new Map());
6
- }
2
+ _all = new Map();
7
3
  trigger() {
8
4
  for (var _len = arguments.length, _ref = new Array(_len), _key = 0; _key < _len; _key++) {
9
5
  _ref[_key] = arguments[_key];
@@ -1,15 +1,11 @@
1
- import { _ as _defineProperty } from '../_helpers/_rollupPluginBabelHelpers.js';
2
1
  import React, { Component } from 'react';
3
2
  import PropTypes from 'prop-types';
4
3
 
5
4
  class Renderer extends Component {
6
- constructor() {
7
- super(...arguments);
8
- _defineProperty(this, "node", void 0);
9
- _defineProperty(this, "nodeRef", node => {
10
- this.node = node;
11
- });
12
- }
5
+ static propTypes = {
6
+ className: PropTypes.string,
7
+ nodes: PropTypes.array
8
+ };
13
9
  componentDidMount() {
14
10
  const {
15
11
  nodes
@@ -21,6 +17,10 @@ class Renderer extends Component {
21
17
  nodes.forEach(nodeToRender => fragment.appendChild(nodeToRender));
22
18
  this.node.appendChild(fragment);
23
19
  }
20
+ node;
21
+ nodeRef = node => {
22
+ this.node = node;
23
+ };
24
24
  render() {
25
25
  const {
26
26
  className
@@ -31,9 +31,5 @@ class Renderer extends Component {
31
31
  });
32
32
  }
33
33
  }
34
- _defineProperty(Renderer, "propTypes", {
35
- className: PropTypes.string,
36
- nodes: PropTypes.array
37
- });
38
34
 
39
35
  export { Renderer as default };
@@ -1,4 +1,3 @@
1
- import { _ as _defineProperty } from '../_helpers/_rollupPluginBabelHelpers.js';
2
1
  import { createElement } from 'react';
3
2
  import { render } from './react-render-adapter.js';
4
3
  import composeRefs from './composeRefs.js';
@@ -12,10 +11,7 @@ import 'react-dom';
12
11
  */
13
12
  function rerenderHOC(ComposedComponent) {
14
13
  return class Rerenderer extends ComposedComponent {
15
- constructor() {
16
- super(...arguments);
17
- _defineProperty(this, "_propsCache", this.props);
18
- }
14
+ _propsCache = this.props;
19
15
  rerender() {
20
16
  let props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
21
17
  let callback = arguments.length > 1 ? arguments[1] : undefined;
@@ -1,15 +1,13 @@
1
- import { _ as _defineProperty } from '../_helpers/_rollupPluginBabelHelpers.js';
2
-
3
1
  class RingAngularComponent {
4
2
  static get controller() {
5
3
  return this;
6
4
  }
5
+ $inject = {};
7
6
  constructor() {
8
7
  var _this$constructor$$in;
9
8
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
10
9
  args[_key] = arguments[_key];
11
10
  }
12
- _defineProperty(this, "$inject", {});
13
11
  ((_this$constructor$$in = this.constructor.$inject) !== null && _this$constructor$$in !== void 0 ? _this$constructor$$in : []).forEach((injectName, i) => {
14
12
  this.$inject[injectName] = args[i];
15
13
  });
package/dist/grid/col.js CHANGED
@@ -1,4 +1,3 @@
1
- import { _ as _defineProperty } from '../_helpers/_rollupPluginBabelHelpers.js';
2
1
  import React, { Component } from 'react';
3
2
  import PropTypes from 'prop-types';
4
3
  import classNames from 'classnames';
@@ -30,6 +29,19 @@ function getClassNames(props) {
30
29
  });
31
30
  }
32
31
  class Col extends Component {
32
+ static propTypes = {
33
+ xs: ModifierType,
34
+ sm: ModifierType,
35
+ md: ModifierType,
36
+ lg: ModifierType,
37
+ xsOffset: PropTypes.number,
38
+ smOffset: PropTypes.number,
39
+ mdOffset: PropTypes.number,
40
+ lgOffset: PropTypes.number,
41
+ reverse: PropTypes.bool,
42
+ className: PropTypes.string,
43
+ children: PropTypes.node
44
+ };
33
45
  render() {
34
46
  const {
35
47
  children,
@@ -45,18 +57,5 @@ class Col extends Component {
45
57
  }, children);
46
58
  }
47
59
  }
48
- _defineProperty(Col, "propTypes", {
49
- xs: ModifierType,
50
- sm: ModifierType,
51
- md: ModifierType,
52
- lg: ModifierType,
53
- xsOffset: PropTypes.number,
54
- smOffset: PropTypes.number,
55
- mdOffset: PropTypes.number,
56
- lgOffset: PropTypes.number,
57
- reverse: PropTypes.bool,
58
- className: PropTypes.string,
59
- children: PropTypes.node
60
- });
61
60
 
62
61
  export { Col as default };
package/dist/grid/grid.js CHANGED
@@ -1,4 +1,4 @@
1
- import { _ as _defineProperty, a as _extends } from '../_helpers/_rollupPluginBabelHelpers.js';
1
+ import { _ as _extends } from '../_helpers/_rollupPluginBabelHelpers.js';
2
2
  import React, { Component } from 'react';
3
3
  import PropTypes from 'prop-types';
4
4
  import classNames from 'classnames';
@@ -10,6 +10,10 @@ export { default as Col } from './col.js';
10
10
  * @name Grid
11
11
  */
12
12
  class Grid extends Component {
13
+ static propTypes = {
14
+ className: PropTypes.string,
15
+ children: PropTypes.node
16
+ };
13
17
  render() {
14
18
  const {
15
19
  children,
@@ -22,9 +26,5 @@ class Grid extends Component {
22
26
  }), children);
23
27
  }
24
28
  }
25
- _defineProperty(Grid, "propTypes", {
26
- className: PropTypes.string,
27
- children: PropTypes.node
28
- });
29
29
 
30
30
  export { Grid };
package/dist/grid/row.js CHANGED
@@ -1,4 +1,3 @@
1
- import { _ as _defineProperty } from '../_helpers/_rollupPluginBabelHelpers.js';
2
1
  import React, { Component } from 'react';
3
2
  import PropTypes from 'prop-types';
4
3
  import classNames from 'classnames';
@@ -21,6 +20,22 @@ function getModifierClassNames(props) {
21
20
  }, []);
22
21
  }
23
22
  class Row extends Component {
23
+ static propTypes = {
24
+ reverse: PropTypes.bool,
25
+ start: ModifierType,
26
+ center: ModifierType,
27
+ end: ModifierType,
28
+ top: ModifierType,
29
+ middle: ModifierType,
30
+ baseline: ModifierType,
31
+ bottom: ModifierType,
32
+ around: ModifierType,
33
+ between: ModifierType,
34
+ first: ModifierType,
35
+ last: ModifierType,
36
+ className: PropTypes.string,
37
+ children: PropTypes.node
38
+ };
24
39
  render() {
25
40
  const {
26
41
  children,
@@ -36,21 +51,5 @@ class Row extends Component {
36
51
  }, children);
37
52
  }
38
53
  }
39
- _defineProperty(Row, "propTypes", {
40
- reverse: PropTypes.bool,
41
- start: ModifierType,
42
- center: ModifierType,
43
- end: ModifierType,
44
- top: ModifierType,
45
- middle: ModifierType,
46
- baseline: ModifierType,
47
- bottom: ModifierType,
48
- around: ModifierType,
49
- between: ModifierType,
50
- first: ModifierType,
51
- last: ModifierType,
52
- className: PropTypes.string,
53
- children: PropTypes.node
54
- });
55
54
 
56
55
  export { Row as default };
@@ -1,4 +1,4 @@
1
- import { _ as _defineProperty, a as _extends } from '../_helpers/_rollupPluginBabelHelpers.js';
1
+ import { _ as _extends } from '../_helpers/_rollupPluginBabelHelpers.js';
2
2
  import React, { Component } from 'react';
3
3
  import PropTypes from 'prop-types';
4
4
  import classNames from 'classnames';
@@ -8,6 +8,10 @@ import { m as modules_d9da30c7 } from '../_helpers/group.js';
8
8
  * @name Group
9
9
  */
10
10
  class Group extends Component {
11
+ static propTypes = {
12
+ children: PropTypes.node,
13
+ className: PropTypes.string
14
+ };
11
15
  render() {
12
16
  const {
13
17
  children,
@@ -20,9 +24,5 @@ class Group extends Component {
20
24
  }), children);
21
25
  }
22
26
  }
23
- _defineProperty(Group, "propTypes", {
24
- children: PropTypes.node,
25
- className: PropTypes.string
26
- });
27
27
 
28
28
  export { Group as default };
@@ -1,4 +1,4 @@
1
- import { _ as _defineProperty, a as _extends } from '../_helpers/_rollupPluginBabelHelpers.js';
1
+ import { _ as _extends } from '../_helpers/_rollupPluginBabelHelpers.js';
2
2
  import React, { Component } from 'react';
3
3
  import PropTypes from 'prop-types';
4
4
  import classNames from 'classnames';
@@ -110,6 +110,15 @@ import '../_helpers/services-link.js';
110
110
  * Displays a configurable page header. See available presentation options in the knobs panel.
111
111
  */
112
112
  class Header extends Component {
113
+ static propTypes = {
114
+ className: PropTypes.string,
115
+ children: PropTypes.node,
116
+ spaced: PropTypes.bool
117
+ };
118
+ static defaultProps = {
119
+ spaced: true,
120
+ theme: Theme.DARK
121
+ };
113
122
  render() {
114
123
  const {
115
124
  children,
@@ -133,14 +142,5 @@ class Header extends Component {
133
142
  return header;
134
143
  }
135
144
  }
136
- _defineProperty(Header, "propTypes", {
137
- className: PropTypes.string,
138
- children: PropTypes.node,
139
- spaced: PropTypes.bool
140
- });
141
- _defineProperty(Header, "defaultProps", {
142
- spaced: true,
143
- theme: Theme.DARK
144
- });
145
145
 
146
146
  export { Header as default };
@@ -1,16 +1,24 @@
1
- import { _ as _defineProperty } from '../_helpers/_rollupPluginBabelHelpers.js';
2
1
  import React, { PureComponent } from 'react';
3
2
  import PropTypes from 'prop-types';
4
3
  import classNames from 'classnames';
5
4
  import Icon from '../icon/icon.js';
6
5
  import { m as modules_47759f5e } from '../_helpers/header.js';
7
6
  import { Size } from '../icon/icon__constants.js';
7
+ import '../_helpers/_rollupPluginBabelHelpers.js';
8
8
  import 'util-deprecate';
9
9
  import '../_helpers/icon.js';
10
10
  import '../icon/icon__svg.js';
11
11
  import '../global/memoize.js';
12
12
 
13
13
  class Logo extends PureComponent {
14
+ static propTypes = {
15
+ className: PropTypes.string
16
+ };
17
+ static defaultProps = {
18
+ size: Size.Size48,
19
+ suppressSizeWarning: true
20
+ };
21
+ static Size = Size;
14
22
  render() {
15
23
  const {
16
24
  className,
@@ -22,13 +30,5 @@ class Logo extends PureComponent {
22
30
  }, /*#__PURE__*/React.createElement(Icon, restProps));
23
31
  }
24
32
  }
25
- _defineProperty(Logo, "propTypes", {
26
- className: PropTypes.string
27
- });
28
- _defineProperty(Logo, "defaultProps", {
29
- size: Size.Size48,
30
- suppressSizeWarning: true
31
- });
32
- _defineProperty(Logo, "Size", Size);
33
33
 
34
34
  export { Logo as default };
@@ -1,5 +1,5 @@
1
- import { _ as _defineProperty, a as _extends } from '../_helpers/_rollupPluginBabelHelpers.js';
2
- import React, { Component, PureComponent } from 'react';
1
+ import { _ as _extends } from '../_helpers/_rollupPluginBabelHelpers.js';
2
+ import React, { PureComponent, Component } from 'react';
3
3
  import PropTypes from 'prop-types';
4
4
  import classNames from 'classnames';
5
5
  import Avatar, { Size } from '../avatar/avatar.js';
@@ -65,6 +65,62 @@ import '../popup/popup.target.js';
65
65
 
66
66
  const rgItemType = PopupMenu.ListProps.Type.LINK;
67
67
  class Profile extends PureComponent {
68
+ static propTypes = {
69
+ className: PropTypes.string,
70
+ closeOnSelect: PropTypes.bool,
71
+ hasUpdates: PropTypes.bool,
72
+ loading: PropTypes.bool,
73
+ onLogin: PropTypes.func,
74
+ onLogout: PropTypes.func,
75
+ onSwitchUser: PropTypes.func,
76
+ profileUrl: PropTypes.string,
77
+ renderPopupItems: PropTypes.func,
78
+ LinkComponent: PropTypes.oneOfType([PropTypes.instanceOf(Component), PropTypes.func, PropTypes.string]),
79
+ translations: PropTypes.shape({
80
+ profile: PropTypes.string,
81
+ login: PropTypes.string,
82
+ logout: PropTypes.string,
83
+ applyChangedUser: PropTypes.string,
84
+ switchUser: PropTypes.string
85
+ }),
86
+ user: PropTypes.shape({
87
+ guest: PropTypes.bool,
88
+ profile: PropTypes.object,
89
+ name: PropTypes.string
90
+ }),
91
+ size: PropTypes.number,
92
+ round: PropTypes.bool,
93
+ showLogIn: PropTypes.bool,
94
+ showLogOut: PropTypes.bool,
95
+ showSwitchUser: PropTypes.bool,
96
+ showApplyChangedUser: PropTypes.bool,
97
+ onRevertPostponement: PropTypes.func,
98
+ renderGuest: PropTypes.func
99
+ };
100
+ static defaultProps = {
101
+ closeOnSelect: true,
102
+ renderPopupItems: items => items,
103
+ translations: {},
104
+ size: Size.Size32,
105
+ renderGuest: _ref => {
106
+ let {
107
+ loading,
108
+ onLogin,
109
+ className,
110
+ translations
111
+ } = _ref;
112
+ return /*#__PURE__*/React.createElement("div", {
113
+ className: classNames(modules_47759f5e.profileEmpty, className)
114
+ }, /*#__PURE__*/React.createElement(Button, {
115
+ primary: true,
116
+ "data-test": "ring-header-login-button",
117
+ disabled: loading,
118
+ loader: loading,
119
+ onClick: onLogin
120
+ }, translations.login || 'Log in...'));
121
+ }
122
+ };
123
+ static Size = Size;
68
124
  render() {
69
125
  const {
70
126
  className,
@@ -152,61 +208,5 @@ class Profile extends PureComponent {
152
208
  }));
153
209
  }
154
210
  }
155
- _defineProperty(Profile, "propTypes", {
156
- className: PropTypes.string,
157
- closeOnSelect: PropTypes.bool,
158
- hasUpdates: PropTypes.bool,
159
- loading: PropTypes.bool,
160
- onLogin: PropTypes.func,
161
- onLogout: PropTypes.func,
162
- onSwitchUser: PropTypes.func,
163
- profileUrl: PropTypes.string,
164
- renderPopupItems: PropTypes.func,
165
- LinkComponent: PropTypes.oneOfType([PropTypes.instanceOf(Component), PropTypes.func, PropTypes.string]),
166
- translations: PropTypes.shape({
167
- profile: PropTypes.string,
168
- login: PropTypes.string,
169
- logout: PropTypes.string,
170
- applyChangedUser: PropTypes.string,
171
- switchUser: PropTypes.string
172
- }),
173
- user: PropTypes.shape({
174
- guest: PropTypes.bool,
175
- profile: PropTypes.object,
176
- name: PropTypes.string
177
- }),
178
- size: PropTypes.number,
179
- round: PropTypes.bool,
180
- showLogIn: PropTypes.bool,
181
- showLogOut: PropTypes.bool,
182
- showSwitchUser: PropTypes.bool,
183
- showApplyChangedUser: PropTypes.bool,
184
- onRevertPostponement: PropTypes.func,
185
- renderGuest: PropTypes.func
186
- });
187
- _defineProperty(Profile, "defaultProps", {
188
- closeOnSelect: true,
189
- renderPopupItems: items => items,
190
- translations: {},
191
- size: Size.Size32,
192
- renderGuest: _ref => {
193
- let {
194
- loading,
195
- onLogin,
196
- className,
197
- translations
198
- } = _ref;
199
- return /*#__PURE__*/React.createElement("div", {
200
- className: classNames(modules_47759f5e.profileEmpty, className)
201
- }, /*#__PURE__*/React.createElement(Button, {
202
- primary: true,
203
- "data-test": "ring-header-login-button",
204
- disabled: loading,
205
- loader: loading,
206
- onClick: onLogin
207
- }, translations.login || 'Log in...'));
208
- }
209
- });
210
- _defineProperty(Profile, "Size", Size);
211
211
 
212
212
  export { Profile as default };
@@ -1,4 +1,4 @@
1
- import { _ as _defineProperty, a as _extends } from '../_helpers/_rollupPluginBabelHelpers.js';
1
+ import { _ as _extends } from '../_helpers/_rollupPluginBabelHelpers.js';
2
2
  import React, { PureComponent } from 'react';
3
3
  import PropTypes from 'prop-types';
4
4
  import servicesIcon from '@jetbrains/icons/services-20px';
@@ -58,10 +58,24 @@ const makeAnchor = loading => {
58
58
  return Anchor;
59
59
  };
60
60
  class Services extends PureComponent {
61
- constructor() {
62
- super(...arguments);
63
- _defineProperty(this, "serviceIsActive", service => service.id === this.props.clientId);
64
- }
61
+ static sort = (a, b) => {
62
+ const aApplicationName = a.applicationName || '';
63
+ const bApplicationName = b.applicationName || '';
64
+ return aApplicationName.localeCompare(bApplicationName) || a.name.localeCompare(b.name);
65
+ };
66
+ static propTypes = {
67
+ className: PropTypes.string,
68
+ clientId: PropTypes.string,
69
+ initShown: PropTypes.bool,
70
+ loading: PropTypes.bool,
71
+ onClick: PropTypes.func,
72
+ services: PropTypes.arrayOf(ServicesLink.propTypes.service)
73
+ };
74
+ static defaultProps = {
75
+ theme: Theme.DARK
76
+ };
77
+ static Link = ServicesLink;
78
+ serviceIsActive = service => service.id === this.props.clientId;
65
79
  render() {
66
80
  const {
67
81
  clientId,
@@ -113,22 +127,5 @@ class Services extends PureComponent {
113
127
  })));
114
128
  }
115
129
  }
116
- _defineProperty(Services, "sort", (a, b) => {
117
- const aApplicationName = a.applicationName || '';
118
- const bApplicationName = b.applicationName || '';
119
- return aApplicationName.localeCompare(bApplicationName) || a.name.localeCompare(b.name);
120
- });
121
- _defineProperty(Services, "propTypes", {
122
- className: PropTypes.string,
123
- clientId: PropTypes.string,
124
- initShown: PropTypes.bool,
125
- loading: PropTypes.bool,
126
- onClick: PropTypes.func,
127
- services: PropTypes.arrayOf(ServicesLink.propTypes.service)
128
- });
129
- _defineProperty(Services, "defaultProps", {
130
- theme: Theme.DARK
131
- });
132
- _defineProperty(Services, "Link", ServicesLink);
133
130
 
134
131
  export { Services as default };