@jetbrains/ring-ui 5.0.127 → 5.0.129

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 (310) 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.d.ts +1 -0
  85. package/components/table/row.js +6 -4
  86. package/components/table/smart-table.d.ts +1 -0
  87. package/components/table/table.d.ts +2 -0
  88. package/components/table/table.js +8 -4
  89. package/components/tabs/smart-tabs.js +2 -1
  90. package/components/tabs/tab.js +2 -1
  91. package/components/tag/tag.js +2 -1
  92. package/components/tags-input/tags-input.d.ts +1 -1
  93. package/components/tags-input/tags-input.js +3 -2
  94. package/components/tags-list/tags-list.js +2 -1
  95. package/components/text/text.js +2 -1
  96. package/components/tooltip/tooltip.js +2 -1
  97. package/components/user-agreement/user-agreement.js +2 -1
  98. package/components/user-card/card.js +2 -1
  99. package/components/user-card/smart-user-card-tooltip.d.ts +1 -1
  100. package/components/user-card/smart-user-card-tooltip.js +2 -1
  101. package/components/user-card/tooltip.js +2 -1
  102. package/dist/_helpers/_rollupPluginBabelHelpers.js +1 -29
  103. package/dist/_helpers/anchor.js +1 -1
  104. package/dist/_helpers/card.js +44 -47
  105. package/dist/_helpers/footer.js +1 -0
  106. package/dist/_helpers/select__filter.js +10 -13
  107. package/dist/_helpers/services-link.js +10 -10
  108. package/dist/_helpers/sidebar.js +34 -37
  109. package/dist/_helpers/theme.js +1 -1
  110. package/dist/_helpers/title.js +12 -16
  111. package/dist/alert/alert.js +63 -66
  112. package/dist/alert/container.js +5 -5
  113. package/dist/alert-service/alert-service.js +5 -7
  114. package/dist/analytics/analytics.js +1 -2
  115. package/dist/analytics/analytics__custom-plugin.js +6 -8
  116. package/dist/auth/auth.js +1 -1
  117. package/dist/auth/auth__core.js +26 -26
  118. package/dist/auth/background-flow.js +4 -5
  119. package/dist/auth/iframe-flow.js +12 -12
  120. package/dist/auth/landing.js +1 -1
  121. package/dist/auth/request-builder.js +3 -5
  122. package/dist/auth/response-parser.js +5 -6
  123. package/dist/auth/storage.js +12 -12
  124. package/dist/auth/token-validator.js +13 -16
  125. package/dist/auth/window-flow.js +18 -19
  126. package/dist/auth-dialog/auth-dialog.js +54 -57
  127. package/dist/auth-dialog-service/auth-dialog-service.js +1 -1
  128. package/dist/auth-ng/auth-ng.js +1 -1
  129. package/dist/avatar/avatar.js +30 -33
  130. package/dist/avatar-ng/avatar-ng.js +1 -1
  131. package/dist/badge/badge.js +10 -10
  132. package/dist/badge-ng/badge-ng.js +1 -1
  133. package/dist/breadcrumb-ng/breadcrumb-ng.js +0 -1
  134. package/dist/button/button.js +24 -27
  135. package/dist/button-group/button-group.js +5 -5
  136. package/dist/button-group/caption.js +4 -4
  137. package/dist/button-ng/button-ng.js +68 -69
  138. package/dist/button-set/button-set.js +6 -6
  139. package/dist/button-toolbar/button-toolbar.js +6 -6
  140. package/dist/caret/caret.js +2 -4
  141. package/dist/checkbox/checkbox.js +27 -30
  142. package/dist/checkbox-ng/checkbox-ng.js +0 -1
  143. package/dist/code/code.js +17 -21
  144. package/dist/confirm/confirm.js +31 -34
  145. package/dist/confirm-ng/confirm-ng.js +1 -1
  146. package/dist/confirm-service/confirm-service.js +1 -1
  147. package/dist/content-layout/content-layout.js +17 -20
  148. package/dist/contenteditable/contenteditable.js +11 -11
  149. package/dist/data-list/data-list.js +49 -55
  150. package/dist/data-list/item.js +64 -67
  151. package/dist/data-list/selection.js +0 -1
  152. package/dist/data-list/title.js +1 -1
  153. package/dist/data-list-ng/data-list-ng.js +1 -1
  154. package/dist/date-picker/date-input.js +39 -42
  155. package/dist/date-picker/date-picker.js +162 -165
  156. package/dist/date-picker/date-popup.js +119 -119
  157. package/dist/date-picker/day.js +34 -38
  158. package/dist/date-picker/month-names.js +11 -14
  159. package/dist/date-picker/month-slider.js +24 -28
  160. package/dist/date-picker/month.js +1 -1
  161. package/dist/date-picker/months.js +1 -1
  162. package/dist/date-picker/years.js +9 -13
  163. package/dist/dialog/dialog.d.ts +4 -16
  164. package/dist/dialog/dialog.js +68 -65
  165. package/dist/dialog-ng/dialog-ng.js +21 -22
  166. package/dist/docked-panel-ng/docked-panel-ng.js +0 -1
  167. package/dist/dropdown/dropdown.js +101 -104
  168. package/dist/dropdown-menu/dropdown-menu.js +1 -1
  169. package/dist/editable-heading/editable-heading.js +1 -1
  170. package/dist/error-bubble/error-bubble.js +6 -6
  171. package/dist/error-message/error-message.js +10 -10
  172. package/dist/error-message-ng/error-message-ng.js +0 -1
  173. package/dist/footer-ng/footer-ng.js +19 -21
  174. package/dist/global/angular-component-factory.js +2 -3
  175. package/dist/global/dom.js +1 -5
  176. package/dist/global/focus-sensor-hoc.js +58 -61
  177. package/dist/global/listeners.js +1 -5
  178. package/dist/global/react-dom-renderer.js +8 -12
  179. package/dist/global/rerender-hoc.js +1 -5
  180. package/dist/global/ring-angular-component.js +1 -3
  181. package/dist/grid/col.js +13 -14
  182. package/dist/grid/grid.js +5 -5
  183. package/dist/grid/row.js +16 -17
  184. package/dist/group/group.js +5 -5
  185. package/dist/header/header.js +10 -10
  186. package/dist/header/logo.js +9 -9
  187. package/dist/header/profile.js +58 -58
  188. package/dist/header/services.js +19 -22
  189. package/dist/header/smart-profile.js +40 -43
  190. package/dist/header/smart-services.js +28 -31
  191. package/dist/header/tray-icon.js +6 -6
  192. package/dist/header/tray.js +5 -5
  193. package/dist/heading/heading.js +1 -1
  194. package/dist/heading-ng/heading-ng.js +1 -1
  195. package/dist/http/http.js +111 -107
  196. package/dist/http/http.mock.js +3 -4
  197. package/dist/hub-source/hub-source.js +7 -9
  198. package/dist/hub-source/hub-source__user.js +0 -1
  199. package/dist/hub-source/hub-source__users-groups.js +4 -5
  200. package/dist/icon/icon.js +18 -18
  201. package/dist/icon/icon__svg.js +1 -1
  202. package/dist/icon-ng/icon-ng.js +0 -1
  203. package/dist/input/input.js +35 -38
  204. package/dist/input-ng/input-ng.js +25 -26
  205. package/dist/island/adaptive-island-hoc.js +21 -25
  206. package/dist/island/content.js +62 -65
  207. package/dist/island/header.js +11 -11
  208. package/dist/island/island.js +8 -8
  209. package/dist/island-legacy/content-legacy.js +5 -5
  210. package/dist/island-legacy/header-legacy.js +5 -5
  211. package/dist/island-legacy/island-legacy.js +5 -5
  212. package/dist/link/clickableLink.js +27 -30
  213. package/dist/link/link.js +16 -16
  214. package/dist/list/list.js +389 -391
  215. package/dist/list/list__custom.js +6 -10
  216. package/dist/list/list__hint.js +3 -4
  217. package/dist/list/list__item.js +4 -7
  218. package/dist/list/list__link.js +1 -1
  219. package/dist/list/list__users-groups-source.js +3 -3
  220. package/dist/loader/loader.js +16 -19
  221. package/dist/loader/loader__core.js +62 -62
  222. package/dist/loader-inline/loader-inline.js +6 -6
  223. package/dist/loader-ng/loader-ng.js +3 -4
  224. package/dist/loader-screen/loader-screen.js +6 -6
  225. package/dist/loader-screen-ng/loader-screen-ng.js +0 -1
  226. package/dist/login-dialog/login-dialog.js +55 -58
  227. package/dist/login-dialog/service.js +1 -1
  228. package/dist/markdown/code.js +0 -1
  229. package/dist/markdown/markdown.js +1 -1
  230. package/dist/message/message.js +22 -25
  231. package/dist/old-browsers-message/white-list.js +2 -2
  232. package/dist/pager/pager.js +55 -58
  233. package/dist/pager-ng/pager-ng.js +1 -1
  234. package/dist/panel/panel.js +5 -5
  235. package/dist/panel-ng/panel-ng.js +0 -1
  236. package/dist/permissions/permissions.js +14 -16
  237. package/dist/permissions/permissions__cache.js +4 -6
  238. package/dist/permissions-ng/permissions-ng.js +1 -1
  239. package/dist/place-under-ng/place-under-ng.js +0 -1
  240. package/dist/popup/popup.js +118 -121
  241. package/dist/popup/popup.target.js +1 -1
  242. package/dist/popup/position.js +0 -1
  243. package/dist/popup-menu/popup-menu.js +19 -22
  244. package/dist/progress-bar/progress-bar.js +41 -44
  245. package/dist/progress-bar-ng/progress-bar-ng.js +1 -1
  246. package/dist/promised-click-ng/promised-click-ng.js +0 -1
  247. package/dist/query-assist/query-assist.js +507 -501
  248. package/dist/query-assist/query-assist__suggestions.js +1 -1
  249. package/dist/query-assist-ng/query-assist-ng.js +1 -1
  250. package/dist/radio/radio.js +10 -13
  251. package/dist/radio/radio__item.js +19 -22
  252. package/dist/select/select.js +350 -349
  253. package/dist/select/select__popup.js +148 -152
  254. package/dist/select-ng/select-ng.js +1 -1
  255. package/dist/select-ng/select-ng__lazy.js +4 -4
  256. package/dist/select-ng/select-ng__options.js +14 -15
  257. package/dist/shortcuts/core.js +35 -36
  258. package/dist/shortcuts/shortcuts-hoc.js +7 -11
  259. package/dist/shortcuts/shortcuts.js +10 -11
  260. package/dist/shortcuts-hint-ng/shortcuts-hint-ng.js +0 -1
  261. package/dist/shortcuts-ng/shortcuts-ng.js +0 -1
  262. package/dist/sidebar-ng/sidebar-ng.js +0 -1
  263. package/dist/storage/storage.js +1 -1
  264. package/dist/storage/storage__fallback.js +8 -10
  265. package/dist/storage/storage__local.js +2 -2
  266. package/dist/style.css +1 -1
  267. package/dist/tab-trap/tab-trap.js +84 -86
  268. package/dist/table/cell.js +6 -6
  269. package/dist/table/disable-hover-hoc.js +23 -25
  270. package/dist/table/header-cell.js +28 -31
  271. package/dist/table/header.js +58 -61
  272. package/dist/table/multitable.js +91 -95
  273. package/dist/table/row-with-focus-sensor.js +15 -18
  274. package/dist/table/row.d.ts +1 -0
  275. package/dist/table/row.js +54 -55
  276. package/dist/table/selection-shortcuts-hoc.js +145 -147
  277. package/dist/table/selection.js +7 -9
  278. package/dist/table/smart-table.d.ts +1 -0
  279. package/dist/table/smart-table.js +21 -24
  280. package/dist/table/table.d.ts +2 -0
  281. package/dist/table/table.js +107 -109
  282. package/dist/table-legacy-ng/table-legacy-ng.js +1 -1
  283. package/dist/table-legacy-ng/table-legacy-ng__pager.js +1 -1
  284. package/dist/table-legacy-ng/table-legacy-ng__selection.js +1 -3
  285. package/dist/table-legacy-ng/table-legacy-ng__toolbar.js +0 -1
  286. package/dist/table-ng/smart-table-ng.js +1 -1
  287. package/dist/table-ng/table-ng.js +1 -1
  288. package/dist/tabs/collapsible-more.js +1 -1
  289. package/dist/tabs/collapsible-tab.js +1 -1
  290. package/dist/tabs/dumb-tabs.js +46 -49
  291. package/dist/tabs/smart-tabs.js +10 -10
  292. package/dist/tabs/tab.js +7 -8
  293. package/dist/tag/tag.js +42 -45
  294. package/dist/tags-input/tags-input.d.ts +1 -1
  295. package/dist/tags-input/tags-input.js +214 -213
  296. package/dist/tags-input-ng/tags-input-ng.js +1 -1
  297. package/dist/tags-list/tags-list.js +20 -20
  298. package/dist/template-ng/template-ng.js +25 -26
  299. package/dist/text/text.js +6 -6
  300. package/dist/toggle/toggle.js +19 -19
  301. package/dist/toggle-ng/toggle-ng.js +1 -1
  302. package/dist/tooltip/tooltip.js +86 -89
  303. package/dist/tooltip-ng/tooltip-ng.js +1 -1
  304. package/dist/user-agreement/service.js +207 -205
  305. package/dist/user-agreement/user-agreement.js +39 -42
  306. package/dist/user-card/smart-user-card-tooltip.d.ts +1 -1
  307. package/dist/user-card/smart-user-card-tooltip.js +32 -35
  308. package/dist/user-card/tooltip.js +26 -26
  309. package/dist/user-card-ng/user-card-ng.js +1 -1
  310. package/package.json +17 -17
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 };
@@ -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 '../auth/auth.js';
@@ -97,42 +97,48 @@ import '../_helpers/header.js';
97
97
 
98
98
  const CERTIFICATE_MISMATCH_HEADER = 'x-client-certificate-token-mismatch';
99
99
  class SmartProfile extends PureComponent {
100
- constructor() {
101
- super(...arguments);
102
- _defineProperty(this, "state", {
103
- user: null,
104
- size: Profile.defaultProps.size,
105
- isLogoutPostponed: false,
106
- isUserChangePostponed: false
107
- });
108
- _defineProperty(this, "login", async () => {
109
- this.setState({
110
- loading: true
111
- });
112
- try {
113
- await this.props.auth.login();
114
- } catch (err) {
115
- // do nothing
116
- } finally {
117
- this.setState({
118
- loading: false
119
- });
120
- }
121
- });
122
- _defineProperty(this, "logout", () => this.props.auth.logout());
123
- _defineProperty(this, "switchUser", () => this.props.auth.switchUser());
124
- _defineProperty(this, "onRevertPostponement", () => {
125
- if (this.state.isLogoutPostponed) {
126
- this.props.auth.login();
127
- }
128
- if (this.state.isUserChangePostponed) {
129
- this.props.auth.updateUser();
130
- }
131
- });
132
- }
100
+ static propTypes = {
101
+ auth: PropTypes.instanceOf(Auth).isRequired,
102
+ className: PropTypes.string,
103
+ translations: PropTypes.object,
104
+ profileUrl: PropTypes.string,
105
+ size: Profile.propTypes.size,
106
+ round: Profile.propTypes.round
107
+ };
108
+ state = {
109
+ user: null,
110
+ size: Profile.defaultProps.size,
111
+ isLogoutPostponed: false,
112
+ isUserChangePostponed: false
113
+ };
133
114
  componentDidMount() {
134
115
  this.requestUser();
135
116
  }
117
+ static Size = Profile.Size;
118
+ login = async () => {
119
+ this.setState({
120
+ loading: true
121
+ });
122
+ try {
123
+ await this.props.auth.login();
124
+ } catch (err) {
125
+ // do nothing
126
+ } finally {
127
+ this.setState({
128
+ loading: false
129
+ });
130
+ }
131
+ };
132
+ logout = () => this.props.auth.logout();
133
+ switchUser = () => this.props.auth.switchUser();
134
+ onRevertPostponement = () => {
135
+ if (this.state.isLogoutPostponed) {
136
+ this.props.auth.login();
137
+ }
138
+ if (this.state.isUserChangePostponed) {
139
+ this.props.auth.updateUser();
140
+ }
141
+ };
136
142
  async requestUser() {
137
143
  try {
138
144
  const {
@@ -203,14 +209,5 @@ class SmartProfile extends PureComponent {
203
209
  }, props));
204
210
  }
205
211
  }
206
- _defineProperty(SmartProfile, "propTypes", {
207
- auth: PropTypes.instanceOf(Auth).isRequired,
208
- className: PropTypes.string,
209
- translations: PropTypes.object,
210
- profileUrl: PropTypes.string,
211
- size: Profile.propTypes.size,
212
- round: Profile.propTypes.round
213
- });
214
- _defineProperty(SmartProfile, "Size", Profile.Size);
215
212
 
216
213
  export { SmartProfile 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 '../auth/auth.js';
@@ -74,31 +74,14 @@ import '../_helpers/services-link.js';
74
74
 
75
75
  function noop() {}
76
76
  class SmartServices extends Component {
77
- constructor() {
78
- super(...arguments);
79
- _defineProperty(this, "state", {
80
- visible: true,
81
- loading: false,
82
- services: null
83
- });
84
- _defineProperty(this, "http", void 0);
85
- _defineProperty(this, "stopLoading", () => {
86
- this.setState({
87
- loading: false
88
- });
89
- });
90
- _defineProperty(this, "getServicesContent", () => {
91
- this.setState({
92
- loading: true
93
- });
94
- this.getServices(SmartServices.allFields)?.then(services => {
95
- this.setState({
96
- services
97
- });
98
- this.stopLoading();
99
- }).catch(this.stopLoading);
100
- });
101
- }
77
+ static propTypes = {
78
+ auth: PropTypes.instanceOf(Auth).isRequired
79
+ };
80
+ state = {
81
+ visible: true,
82
+ loading: false,
83
+ services: null
84
+ };
102
85
  componentDidMount() {
103
86
  const {
104
87
  auth
@@ -112,6 +95,25 @@ class SmartServices extends Component {
112
95
  }
113
96
  }).catch(noop);
114
97
  }
98
+ static allFields = 'id,name,applicationName,homeUrl,iconUrl';
99
+ static countFields = 'key';
100
+ http;
101
+ stopLoading = () => {
102
+ this.setState({
103
+ loading: false
104
+ });
105
+ };
106
+ getServicesContent = () => {
107
+ this.setState({
108
+ loading: true
109
+ });
110
+ this.getServices(SmartServices.allFields)?.then(services => {
111
+ this.setState({
112
+ services
113
+ });
114
+ this.stopLoading();
115
+ }).catch(this.stopLoading);
116
+ };
115
117
  getServices(fields) {
116
118
  return this.http?.get(`services/header?fields=${fields}`);
117
119
  }
@@ -137,10 +139,5 @@ class SmartServices extends Component {
137
139
  }));
138
140
  }
139
141
  }
140
- _defineProperty(SmartServices, "propTypes", {
141
- auth: PropTypes.instanceOf(Auth).isRequired
142
- });
143
- _defineProperty(SmartServices, "allFields", 'id,name,applicationName,homeUrl,iconUrl');
144
- _defineProperty(SmartServices, "countFields", 'key');
145
142
 
146
143
  export { SmartServices 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';
@@ -17,6 +17,11 @@ import '../global/controls-height.js';
17
17
  import '../_helpers/button__classes.js';
18
18
 
19
19
  class TrayIcon extends Component {
20
+ static propTypes = {
21
+ ...Button.propTypes,
22
+ icon: PropTypes.oneOfType([PropTypes.string, PropTypes.elementType]).isRequired,
23
+ rotatable: PropTypes.bool
24
+ };
20
25
  render() {
21
26
  const {
22
27
  className,
@@ -32,10 +37,5 @@ class TrayIcon extends Component {
32
37
  }));
33
38
  }
34
39
  }
35
- _defineProperty(TrayIcon, "propTypes", {
36
- ...Button.propTypes,
37
- icon: PropTypes.oneOfType([PropTypes.string, PropTypes.elementType]).isRequired,
38
- rotatable: PropTypes.bool
39
- });
40
40
 
41
41
  export { TrayIcon 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, Children } from 'react';
3
3
  import PropTypes from 'prop-types';
4
4
  import classNames from 'classnames';
@@ -8,6 +8,10 @@ const wrapChild = child => child && /*#__PURE__*/React.createElement("div", {
8
8
  className: modules_47759f5e.trayItem
9
9
  }, child);
10
10
  class Tray extends Component {
11
+ static propTypes = {
12
+ className: PropTypes.string,
13
+ children: PropTypes.node
14
+ };
11
15
  render() {
12
16
  const {
13
17
  children,
@@ -20,9 +24,5 @@ class Tray extends Component {
20
24
  }), Children.map(children, wrapChild));
21
25
  }
22
26
  }
23
- _defineProperty(Tray, "propTypes", {
24
- className: PropTypes.string,
25
- children: PropTypes.node
26
- });
27
27
 
28
28
  export { Tray as default };
@@ -1,4 +1,4 @@
1
- import { a as _extends } from '../_helpers/_rollupPluginBabelHelpers.js';
1
+ import { _ as _extends } from '../_helpers/_rollupPluginBabelHelpers.js';
2
2
  import React, { memo } from 'react';
3
3
  import PropTypes from 'prop-types';
4
4
  import classNames from 'classnames';
@@ -1,6 +1,5 @@
1
1
  import angularComponentFactory from '../global/angular-component-factory.js';
2
2
  import Heading from '../heading/heading.js';
3
- import '../_helpers/_rollupPluginBabelHelpers.js';
4
3
  import 'angular';
5
4
  import 'react';
6
5
  import '../global/react-render-adapter.js';
@@ -8,6 +7,7 @@ import 'react-dom';
8
7
  import '../global/ring-angular-component.js';
9
8
  import '../global/react-dom-renderer.js';
10
9
  import 'prop-types';
10
+ import '../_helpers/_rollupPluginBabelHelpers.js';
11
11
  import 'classnames';
12
12
  import 'util-deprecate';
13
13