@jetbrains/ring-ui 4.1.1 → 4.1.2

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 (314) hide show
  1. package/dist/_helpers/_rollupPluginBabelHelpers.js +34 -0
  2. package/dist/_helpers/anchor.js +32 -0
  3. package/dist/_helpers/badge.js +3 -0
  4. package/dist/_helpers/button-group.js +3 -0
  5. package/dist/_helpers/button-set.js +3 -0
  6. package/dist/_helpers/button-toolbar.js +3 -0
  7. package/dist/_helpers/button__classes.js +39 -0
  8. package/dist/_helpers/card.js +75 -0
  9. package/dist/_helpers/checkbox.js +3 -0
  10. package/dist/_helpers/date-picker.js +3 -0
  11. package/dist/_helpers/dialog__body-scroll-preventer.js +57 -0
  12. package/dist/_helpers/error-message.js +3 -0
  13. package/dist/_helpers/footer.js +121 -0
  14. package/dist/_helpers/grid.js +3 -0
  15. package/dist/_helpers/group.js +3 -0
  16. package/dist/_helpers/header.js +3 -0
  17. package/dist/_helpers/icon.js +3 -0
  18. package/dist/_helpers/inject-styles.js +22 -0
  19. package/dist/_helpers/input.js +3 -0
  20. package/dist/_helpers/island.js +3 -0
  21. package/dist/_helpers/link.js +3 -0
  22. package/dist/_helpers/list.js +3 -0
  23. package/dist/_helpers/loader-screen.js +3 -0
  24. package/dist/_helpers/panel.js +3 -0
  25. package/dist/_helpers/query-assist__suggestions.js +95 -0
  26. package/dist/_helpers/radio.js +3 -0
  27. package/dist/_helpers/select__filter.js +76 -0
  28. package/dist/_helpers/services-link.js +40 -0
  29. package/dist/_helpers/sidebar.js +125 -0
  30. package/dist/_helpers/table.js +3 -0
  31. package/dist/_helpers/tabs.js +3 -0
  32. package/dist/_helpers/title.js +99 -0
  33. package/dist/alert/alert.js +260 -0
  34. package/dist/alert/container.js +48 -0
  35. package/dist/alert-service/alert-service.js +170 -0
  36. package/dist/analytics/analytics.js +116 -0
  37. package/dist/analytics/analytics__custom-plugin.js +127 -0
  38. package/dist/analytics/analytics__fus-plugin.js +101 -0
  39. package/dist/analytics/analytics__ga-plugin.js +66 -0
  40. package/dist/analytics/analytics__plugin-utils.js +79 -0
  41. package/dist/analytics-ng/analytics-ng.js +94 -0
  42. package/dist/auth/auth.js +93 -0
  43. package/dist/auth/auth__core.js +1025 -0
  44. package/dist/auth/background-flow.js +122 -0
  45. package/dist/auth/down-notification.js +114 -0
  46. package/dist/auth/iframe-flow.js +150 -0
  47. package/dist/auth/landing-entry.js +5 -0
  48. package/dist/auth/landing.js +87 -0
  49. package/dist/auth/request-builder.js +75 -0
  50. package/dist/auth/response-parser.js +117 -0
  51. package/dist/auth/storage.js +280 -0
  52. package/dist/auth/token-validator.js +176 -0
  53. package/dist/auth/window-flow.js +133 -0
  54. package/dist/auth-dialog/auth-dialog.js +134 -0
  55. package/dist/auth-dialog-service/auth-dialog-service.js +68 -0
  56. package/dist/auth-ng/auth-ng.js +203 -0
  57. package/dist/auth-ng/auth-ng.mock.js +33 -0
  58. package/dist/autofocus-ng/autofocus-ng.js +50 -0
  59. package/dist/avatar/avatar-example-datauri.js +26 -0
  60. package/dist/avatar/avatar.js +161 -0
  61. package/dist/avatar/fallback-avatar.js +141 -0
  62. package/dist/avatar-editor-ng/avatar-editor-ng.js +164 -0
  63. package/dist/avatar-editor-ng/avatar-editor-ng__template.js +30 -0
  64. package/dist/avatar-ng/avatar-ng.js +18 -0
  65. package/dist/badge/badge.js +50 -0
  66. package/dist/badge-ng/badge-ng.js +16 -0
  67. package/dist/breadcrumb-ng/breadcrumb-ng.js +61 -0
  68. package/dist/button/button.js +123 -0
  69. package/dist/button/button__classes.js +5 -0
  70. package/dist/button-group/button-group.js +30 -0
  71. package/dist/button-group/caption.js +24 -0
  72. package/dist/button-group-ng/button-group-ng.js +38 -0
  73. package/dist/button-ng/button-ng.js +223 -0
  74. package/dist/button-set/button-set.js +26 -0
  75. package/dist/button-set-ng/button-set-ng.js +19 -0
  76. package/dist/button-toolbar/button-toolbar.js +29 -0
  77. package/dist/button-toolbar-ng/button-toolbar-ng.js +23 -0
  78. package/dist/caret/caret.js +264 -0
  79. package/dist/checkbox/checkbox.js +108 -0
  80. package/dist/checkbox-ng/checkbox-ng.js +55 -0
  81. package/dist/code/code.js +136 -0
  82. package/dist/compiler-ng/compiler-ng.js +53 -0
  83. package/dist/confirm/confirm.js +125 -0
  84. package/dist/confirm-ng/confirm-ng.js +66 -0
  85. package/dist/confirm-service/confirm-service.js +114 -0
  86. package/dist/content-layout/content-layout.js +65 -0
  87. package/dist/content-layout/sidebar.js +6 -0
  88. package/dist/contenteditable/contenteditable.js +78 -0
  89. package/dist/data-list/data-list.js +206 -0
  90. package/dist/data-list/data-list.mock.js +190 -0
  91. package/dist/data-list/item.js +227 -0
  92. package/dist/data-list/selection.js +101 -0
  93. package/dist/data-list/title.js +18 -0
  94. package/dist/data-list-ng/data-list-ng.js +59 -0
  95. package/dist/date-picker/consts.js +69 -0
  96. package/dist/date-picker/date-input.js +173 -0
  97. package/dist/date-picker/date-picker.js +365 -0
  98. package/dist/date-picker/date-popup.js +482 -0
  99. package/dist/date-picker/day.js +119 -0
  100. package/dist/date-picker/formats.js +3 -0
  101. package/dist/date-picker/month-names.js +99 -0
  102. package/dist/date-picker/month-slider.js +83 -0
  103. package/dist/date-picker/month.js +54 -0
  104. package/dist/date-picker/months.js +121 -0
  105. package/dist/date-picker/weekdays.js +32 -0
  106. package/dist/date-picker/years.js +109 -0
  107. package/dist/dialog/dialog.js +200 -0
  108. package/dist/dialog/dialog__body-scroll-preventer.js +2 -0
  109. package/dist/dialog-ng/dialog-ng.js +601 -0
  110. package/dist/dialog-ng/dialog-ng__template.js +71 -0
  111. package/dist/docked-panel-ng/docked-panel-ng.js +170 -0
  112. package/dist/dropdown/anchor.js +17 -0
  113. package/dist/dropdown/dropdown.js +234 -0
  114. package/dist/dropdown-menu/dropdown-menu.js +175 -0
  115. package/dist/error-bubble/error-bubble.js +57 -0
  116. package/dist/error-message/error-message.js +55 -0
  117. package/dist/error-message-ng/error-message-ng.js +53 -0
  118. package/dist/footer/footer.js +11 -0
  119. package/dist/footer-ng/footer-ng.js +75 -0
  120. package/dist/form-ng/form-ng.js +169 -0
  121. package/dist/global/angular-component-factory.js +82 -0
  122. package/dist/global/compose.js +9 -0
  123. package/dist/global/composeRefs.js +15 -0
  124. package/dist/global/conic-gradient.js +35 -0
  125. package/dist/global/create-stateful-context.js +54 -0
  126. package/dist/global/data-tests.js +22 -0
  127. package/dist/global/dom.js +124 -0
  128. package/dist/global/focus-sensor-hoc.js +145 -0
  129. package/dist/global/fuzzy-highlight.js +67 -0
  130. package/dist/global/get-event-key.js +111 -0
  131. package/dist/global/get-uid.js +15 -0
  132. package/dist/global/inject-styles.js +17 -0
  133. package/dist/global/linear-function.js +17 -0
  134. package/dist/global/listeners.js +42 -0
  135. package/dist/global/memoize.js +18 -0
  136. package/dist/global/normalize-indent.js +28 -0
  137. package/dist/global/promise-with-timeout.js +13 -0
  138. package/dist/global/radial-gradient-mask.js +49 -0
  139. package/dist/global/react-dom-renderer.js +45 -0
  140. package/dist/global/rerender-hoc.js +51 -0
  141. package/dist/global/ring-angular-component.js +24 -0
  142. package/dist/global/schedule-raf.js +31 -0
  143. package/dist/global/sniffer.js +6 -0
  144. package/dist/global/supports-css.js +20 -0
  145. package/dist/global/theme.js +54 -0
  146. package/dist/global/trivial-template-tag.js +15 -0
  147. package/dist/global/url.js +163 -0
  148. package/dist/global/variables_dark.js +57 -0
  149. package/dist/grid/col.js +60 -0
  150. package/dist/grid/grid.js +33 -0
  151. package/dist/grid/row.js +64 -0
  152. package/dist/group/group.js +31 -0
  153. package/dist/group-ng/group-ng.js +11 -0
  154. package/dist/header/header.js +147 -0
  155. package/dist/header/logo.js +38 -0
  156. package/dist/header/profile.js +217 -0
  157. package/dist/header/services-link.js +11 -0
  158. package/dist/header/services.js +136 -0
  159. package/dist/header/smart-profile.js +230 -0
  160. package/dist/header/smart-services.js +160 -0
  161. package/dist/header/tray-icon.js +45 -0
  162. package/dist/header/tray.js +31 -0
  163. package/dist/heading/heading.js +73 -0
  164. package/dist/http/http.js +216 -0
  165. package/dist/http/http.mock.js +65 -0
  166. package/dist/hub-source/hub-source.js +130 -0
  167. package/dist/hub-source/hub-source__user.js +28 -0
  168. package/dist/hub-source/hub-source__users-groups.js +62 -0
  169. package/dist/icon/icon.js +105 -0
  170. package/dist/icon/icon__constants.js +33 -0
  171. package/dist/icon/icon__svg.js +81 -0
  172. package/dist/icon/index.js +10 -0
  173. package/dist/icon-ng/icon-ng.js +89 -0
  174. package/dist/input/input.js +228 -0
  175. package/dist/input-ng/input-ng.js +166 -0
  176. package/dist/island/adaptive-island-hoc.js +47 -0
  177. package/dist/island/content.js +156 -0
  178. package/dist/island/header.js +83 -0
  179. package/dist/island/island.js +50 -0
  180. package/dist/island-legacy/content-legacy.js +26 -0
  181. package/dist/island-legacy/header-legacy.js +28 -0
  182. package/dist/island-legacy/island-legacy.js +28 -0
  183. package/dist/island-ng/island-content-ng.js +56 -0
  184. package/dist/island-ng/island-header-ng.js +32 -0
  185. package/dist/island-ng/island-ng-class-fixer.js +9 -0
  186. package/dist/island-ng/island-ng.js +31 -0
  187. package/dist/link/clickableLink.js +63 -0
  188. package/dist/link/link.js +114 -0
  189. package/dist/link-ng/link-ng.js +25 -0
  190. package/dist/list/consts.js +26 -0
  191. package/dist/list/list.js +812 -0
  192. package/dist/list/list__custom.js +85 -0
  193. package/dist/list/list__hint.js +26 -0
  194. package/dist/list/list__item.js +204 -0
  195. package/dist/list/list__link.js +64 -0
  196. package/dist/list/list__separator.js +30 -0
  197. package/dist/list/list__title.js +39 -0
  198. package/dist/list/list__users-groups-source.js +128 -0
  199. package/dist/loader/loader.js +70 -0
  200. package/dist/loader/loader__core.js +272 -0
  201. package/dist/loader-inline/inject-styles.js +11 -0
  202. package/dist/loader-inline/loader-inline.js +56 -0
  203. package/dist/loader-inline-ng/loader-inline-ng.js +42 -0
  204. package/dist/loader-ng/loader-ng.js +43 -0
  205. package/dist/loader-screen/loader-screen.js +43 -0
  206. package/dist/loader-screen-ng/loader-screen-ng.js +99 -0
  207. package/dist/login-dialog/login-dialog.js +186 -0
  208. package/dist/login-dialog/service.js +69 -0
  209. package/dist/markdown/code.js +30 -0
  210. package/dist/markdown/heading.js +23 -0
  211. package/dist/markdown/link.js +30 -0
  212. package/dist/markdown/markdown.js +73 -0
  213. package/dist/message/message.js +233 -0
  214. package/dist/message-bundle-ng/message-bundle-ng.js +111 -0
  215. package/dist/old-browsers-message/old-browsers-message.js +100 -0
  216. package/dist/old-browsers-message/old-browsers-message__stop.js +4 -0
  217. package/dist/old-browsers-message/white-list.js +33 -0
  218. package/dist/pager/pager.js +361 -0
  219. package/dist/pager-ng/pager-ng.js +96 -0
  220. package/dist/panel/panel.js +31 -0
  221. package/dist/panel-ng/panel-ng.js +16 -0
  222. package/dist/permissions/permissions.js +200 -0
  223. package/dist/permissions/permissions__cache.js +272 -0
  224. package/dist/permissions-ng/permissions-ng.js +274 -0
  225. package/dist/place-under-ng/place-under-ng.js +157 -0
  226. package/dist/popup/popup.consts.js +41 -0
  227. package/dist/popup/popup.js +389 -0
  228. package/dist/popup/popup.target.js +26 -0
  229. package/dist/popup/position.js +279 -0
  230. package/dist/popup-menu/popup-menu.js +115 -0
  231. package/dist/progress-bar/progress-bar.js +113 -0
  232. package/dist/progress-bar-ng/progress-bar-ng.js +15 -0
  233. package/dist/promised-click-ng/promised-click-ng.js +126 -0
  234. package/dist/proxy-attrs/proxy-attrs.js +19 -0
  235. package/dist/query-assist/query-assist.js +1092 -0
  236. package/dist/query-assist/query-assist__suggestions.js +47 -0
  237. package/dist/query-assist-ng/query-assist-ng.js +82 -0
  238. package/dist/radio/radio.js +41 -0
  239. package/dist/radio/radio__item.js +77 -0
  240. package/dist/radio-ng/radio-ng.js +63 -0
  241. package/dist/save-field-ng/save-field-ng.js +335 -0
  242. package/dist/save-field-ng/save-field-ng__template.js +34 -0
  243. package/dist/select/select.js +1336 -0
  244. package/dist/select/select__filter.js +54 -0
  245. package/dist/select/select__popup.js +546 -0
  246. package/dist/select-ng/select-ng.js +621 -0
  247. package/dist/select-ng/select-ng__lazy.js +150 -0
  248. package/dist/select-ng/select-ng__options.js +145 -0
  249. package/dist/shortcuts/core.js +245 -0
  250. package/dist/shortcuts/shortcut-title.js +51 -0
  251. package/dist/shortcuts/shortcuts-hoc.js +41 -0
  252. package/dist/shortcuts/shortcuts.js +72 -0
  253. package/dist/shortcuts-hint-ng/shortcuts-hint-ng.js +120 -0
  254. package/dist/shortcuts-hint-ng/shortcuts-hint-ng__template.js +50 -0
  255. package/dist/shortcuts-ng/shortcuts-ng.js +261 -0
  256. package/dist/sidebar-ng/sidebar-ng.js +111 -0
  257. package/dist/sidebar-ng/sidebar-ng__button-template.js +20 -0
  258. package/dist/sidebar-ng/sidebar-ng__template.js +12 -0
  259. package/dist/storage/storage.js +56 -0
  260. package/dist/storage/storage__fallback.js +214 -0
  261. package/dist/storage/storage__local.js +151 -0
  262. package/dist/style.css +1 -0
  263. package/dist/tab-trap/tab-trap.js +176 -0
  264. package/dist/table/cell.js +25 -0
  265. package/dist/table/disable-hover-hoc.js +53 -0
  266. package/dist/table/header-cell.js +90 -0
  267. package/dist/table/header.js +191 -0
  268. package/dist/table/multitable.js +140 -0
  269. package/dist/table/row-with-focus-sensor.js +81 -0
  270. package/dist/table/row.js +271 -0
  271. package/dist/table/selection-adapter.js +14 -0
  272. package/dist/table/selection-shortcuts-hoc.js +214 -0
  273. package/dist/table/selection.js +221 -0
  274. package/dist/table/smart-table.js +119 -0
  275. package/dist/table/table.js +404 -0
  276. package/dist/table-legacy-ng/table-legacy-ng.js +501 -0
  277. package/dist/table-legacy-ng/table-legacy-ng__pager.js +122 -0
  278. package/dist/table-legacy-ng/table-legacy-ng__selection-navigate-actions.js +123 -0
  279. package/dist/table-legacy-ng/table-legacy-ng__selection.js +179 -0
  280. package/dist/table-legacy-ng/table-legacy-ng__toolbar.js +56 -0
  281. package/dist/table-ng/smart-table-ng.js +65 -0
  282. package/dist/table-ng/table-ng.js +64 -0
  283. package/dist/tabs/collapsible-more.js +196 -0
  284. package/dist/tabs/collapsible-tab.js +90 -0
  285. package/dist/tabs/collapsible-tabs.js +360 -0
  286. package/dist/tabs/custom-item.js +13 -0
  287. package/dist/tabs/dumb-tabs.js +161 -0
  288. package/dist/tabs/smart-tabs.js +104 -0
  289. package/dist/tabs/tab-link.js +41 -0
  290. package/dist/tabs/tab.js +32 -0
  291. package/dist/tabs/tabs.js +69 -0
  292. package/dist/tabs-ng/tabs-ng.js +193 -0
  293. package/dist/tabs-ng/tabs-ng__template.js +40 -0
  294. package/dist/tag/tag.js +196 -0
  295. package/dist/tags-input/tags-input.js +478 -0
  296. package/dist/tags-input-ng/tags-input-ng.js +89 -0
  297. package/dist/tags-list/tags-list.js +93 -0
  298. package/dist/template-ng/template-ng.js +70 -0
  299. package/dist/text/text.js +36 -0
  300. package/dist/theme-ng/theme-ng.js +44 -0
  301. package/dist/title-ng/title-ng.js +114 -0
  302. package/dist/toggle/toggle.js +77 -0
  303. package/dist/toggle-ng/toggle-ng.js +16 -0
  304. package/dist/tooltip/tooltip.js +207 -0
  305. package/dist/tooltip-ng/tooltip-ng.js +98 -0
  306. package/dist/user-agreement/service.js +409 -0
  307. package/dist/user-agreement/toolbox.eula.js +162 -0
  308. package/dist/user-agreement/user-agreement.js +167 -0
  309. package/dist/user-card/card.js +17 -0
  310. package/dist/user-card/smart-user-card-tooltip.js +112 -0
  311. package/dist/user-card/tooltip.js +93 -0
  312. package/dist/user-card/user-card.js +49 -0
  313. package/dist/user-card-ng/user-card-ng.js +59 -0
  314. package/package.json +2 -2
@@ -0,0 +1,76 @@
1
+ import { _ as _defineProperty, a as _extends } from './_rollupPluginBabelHelpers.js';
2
+ import React, { Component } from 'react';
3
+ import PropTypes from 'prop-types';
4
+ import classNames from 'classnames';
5
+ import Input from '../input/input.js';
6
+ import sniffr from '../global/sniffer.js';
7
+ import { ActiveItemContext } from '../list/list.js';
8
+
9
+ var modules_b607bec2 = {"unit":"8px","filterWithTags":"filterWithTags_rui_7e99","filterWrapper":"filterWrapper_rui_7e99","filterWithTagsFocused":"filterWithTagsFocused_rui_7e99","filter":"filter_rui_7e99","filterIcon":"filterIcon_rui_7e99","bottomLine":"bottomLine_rui_7e99","message":"message_rui_7e99","selectAll":"selectAll_rui_7e99"};
10
+
11
+ function noop() {}
12
+
13
+ class SelectFilter extends Component {
14
+ constructor() {
15
+ super(...arguments);
16
+
17
+ _defineProperty(this, "inputRef", el => {
18
+ this.input = el;
19
+ this.props.inputRef(el);
20
+ });
21
+ }
22
+
23
+ componentWillUnmount() {
24
+ this.blur();
25
+ }
26
+
27
+ focus() {
28
+ const {
29
+ input
30
+ } = this;
31
+
32
+ if (input && input !== document.activeElement) {
33
+ sniffr.browser.name === 'firefox' ? input.select() : input.focus();
34
+ }
35
+ }
36
+
37
+ blur() {
38
+ if (this.input && this.input === document.activeElement) {
39
+ this.input.blur();
40
+ }
41
+ }
42
+
43
+ render() {
44
+ const {
45
+ className,
46
+ listId,
47
+ ...restProps
48
+ } = this.props;
49
+ const classes = classNames(modules_b607bec2.filter, className);
50
+ return /*#__PURE__*/React.createElement(ActiveItemContext.ValueContext.Consumer, null, activeItemId => /*#__PURE__*/React.createElement(Input, _extends({}, restProps, {
51
+ "aria-owns": listId,
52
+ "aria-activedescendant": activeItemId,
53
+ autoComplete: "off",
54
+ autoFocus: true,
55
+ borderless: true,
56
+ inputRef: this.inputRef,
57
+ className: classes
58
+ })));
59
+ }
60
+
61
+ }
62
+
63
+ _defineProperty(SelectFilter, "propTypes", {
64
+ placeholder: PropTypes.string,
65
+ className: PropTypes.string,
66
+ inputRef: PropTypes.func,
67
+ listId: PropTypes.string,
68
+ activeItemId: PropTypes.string
69
+ });
70
+
71
+ _defineProperty(SelectFilter, "defaultProps", {
72
+ placeholder: 'Filter items',
73
+ inputRef: noop
74
+ });
75
+
76
+ export { SelectFilter as S, modules_b607bec2 as m };
@@ -0,0 +1,40 @@
1
+ import { _ as _defineProperty, a as _extends } from './_rollupPluginBabelHelpers.js';
2
+ import React, { PureComponent } from 'react';
3
+ import PropTypes from 'prop-types';
4
+ import Link from '../link/link.js';
5
+
6
+ var modules_74a7bf8b = {"unit":"8px","services":"services_rui_5879","active":"active_rui_5879","item":"item_rui_5879","itemLogo":"itemLogo_rui_5879","activeItem":"activeItem_rui_5879 item_rui_5879 active_rui_5879","line":"line_rui_5879","itemStacked":"itemStacked_rui_5879","activeItemStacked":"activeItemStacked_rui_5879 itemStacked_rui_5879 active_rui_5879"};
7
+
8
+ class ServicesLink extends PureComponent {
9
+ render() {
10
+ const {
11
+ service,
12
+ ...props
13
+ } = this.props;
14
+ return /*#__PURE__*/React.createElement(Link, _extends({
15
+ target: "_self",
16
+ href: service.homeUrl
17
+ }, props), WrapText => service.iconUrl ? [/*#__PURE__*/React.createElement("span", {
18
+ key: "icon",
19
+ className: modules_74a7bf8b.itemLogo,
20
+ style: {
21
+ backgroundImage: `url(${service.iconUrl})`
22
+ }
23
+ }), /*#__PURE__*/React.createElement("div", {
24
+ key: "text"
25
+ }, /*#__PURE__*/React.createElement(WrapText, null, service.name))] : /*#__PURE__*/React.createElement(WrapText, null, service.name));
26
+ }
27
+
28
+ }
29
+
30
+ _defineProperty(ServicesLink, "propTypes", {
31
+ isActive: PropTypes.bool,
32
+ service: PropTypes.shape({
33
+ applicationName: PropTypes.string,
34
+ iconUrl: PropTypes.string,
35
+ homeUrl: PropTypes.string,
36
+ name: PropTypes.string
37
+ })
38
+ });
39
+
40
+ export { ServicesLink as S, modules_74a7bf8b as m };
@@ -0,0 +1,125 @@
1
+ import { _ as _defineProperty, a as _extends } from './_rollupPluginBabelHelpers.js';
2
+ import React, { Component } from 'react';
3
+ import PropTypes from 'prop-types';
4
+ import classNames from 'classnames';
5
+ import { Waypoint } from 'react-waypoint';
6
+
7
+ var modules_b8a9dd4f = {"unit":"8px","extra-small-screen-media":"(max-width:639px)","small-screen-media":"(min-width:640px) and (max-width:959px)","sidebarWidth":"240px","contentLayout":"contentLayout_rui_6771","contentLayoutContent":"contentLayoutContent_rui_6771","sidebarContainer":"sidebarContainer_rui_6771","sidebarContainerRight":"sidebarContainerRight_rui_6771","sidebar":"sidebar_rui_6771","sidebarRight":"sidebarRight_rui_6771","sidebarFixedTop":"sidebarFixedTop_rui_6771","sidebarFixedBottom":"sidebarFixedBottom_rui_6771","bottomMarker":"bottomMarker_rui_6771","contentLayoutResponsive":"contentLayoutResponsive_rui_6771"};
8
+
9
+ const ABOVE = 'above';
10
+ const INSIDE = 'inside';
11
+ class Sidebar extends Component {
12
+ constructor() {
13
+ super(...arguments);
14
+
15
+ _defineProperty(this, "state", {
16
+ topIsOutside: true,
17
+ bottomIsOutside: true
18
+ });
19
+
20
+ _defineProperty(this, "handleTopWaypoint", _ref => {
21
+ let {
22
+ currentPosition
23
+ } = _ref;
24
+ this.setState({
25
+ topIsOutside: currentPosition === ABOVE
26
+ });
27
+ });
28
+
29
+ _defineProperty(this, "handleBottomWaypoint", _ref2 => {
30
+ let {
31
+ currentPosition,
32
+ waypointTop
33
+ } = _ref2;
34
+ this.setState({
35
+ sidebarVisibleHeight: waypointTop,
36
+ bottomIsOutside: currentPosition !== INSIDE
37
+ });
38
+ });
39
+
40
+ _defineProperty(this, "sidebarRef", node => {
41
+ this.sidebarNode = node;
42
+ });
43
+ }
44
+
45
+ shouldUseFixation() {
46
+ const {
47
+ contentNode
48
+ } = this.props;
49
+ const {
50
+ sidebarNode
51
+ } = this;
52
+
53
+ if (!contentNode || !sidebarNode) {
54
+ return false;
55
+ }
56
+
57
+ return contentNode.offsetHeight >= sidebarNode.offsetHeight;
58
+ }
59
+
60
+ shouldFixateBottom() {
61
+ const {
62
+ topIsOutside,
63
+ bottomIsOutside
64
+ } = this.state;
65
+ return !bottomIsOutside && topIsOutside && this.shouldUseFixation();
66
+ }
67
+
68
+ render() {
69
+ const {
70
+ right,
71
+ children,
72
+ className,
73
+ containerClassName,
74
+ fixedClassName,
75
+ contentNode,
76
+ ...restProps
77
+ } = this.props;
78
+ const {
79
+ topIsOutside,
80
+ bottomIsOutside,
81
+ sidebarVisibleHeight
82
+ } = this.state;
83
+ const shouldFixateTop = bottomIsOutside && topIsOutside && this.shouldUseFixation();
84
+ const shouldFixateBottom = this.shouldFixateBottom();
85
+ const containerClasses = classNames(modules_b8a9dd4f.sidebarContainer, containerClassName, {
86
+ [modules_b8a9dd4f.sidebarContainerRight]: right
87
+ });
88
+ const classes = classNames(modules_b8a9dd4f.sidebar, className, {
89
+ [modules_b8a9dd4f.sidebarRight]: right,
90
+ [modules_b8a9dd4f.sidebarFixedTop]: shouldFixateTop,
91
+ [modules_b8a9dd4f.sidebarFixedBottom]: shouldFixateBottom,
92
+ [fixedClassName]: shouldFixateTop || shouldFixateBottom
93
+ });
94
+ const style = {
95
+ maxHeight: shouldFixateBottom && sidebarVisibleHeight ? `${sidebarVisibleHeight}px` : null
96
+ };
97
+ return /*#__PURE__*/React.createElement("aside", {
98
+ className: containerClasses,
99
+ ref: this.sidebarRef
100
+ }, /*#__PURE__*/React.createElement(Waypoint, {
101
+ onEnter: this.handleTopWaypoint,
102
+ onLeave: this.handleTopWaypoint
103
+ }), /*#__PURE__*/React.createElement("div", _extends({}, restProps, {
104
+ style: style,
105
+ className: classes
106
+ }), children), /*#__PURE__*/React.createElement("div", {
107
+ className: modules_b8a9dd4f.bottomMarker
108
+ }, /*#__PURE__*/React.createElement(Waypoint, {
109
+ onEnter: this.handleBottomWaypoint,
110
+ onLeave: this.handleBottomWaypoint
111
+ })));
112
+ }
113
+
114
+ }
115
+
116
+ _defineProperty(Sidebar, "propTypes", {
117
+ right: PropTypes.bool,
118
+ children: PropTypes.node,
119
+ className: PropTypes.string,
120
+ containerClassName: PropTypes.string,
121
+ fixedClassName: PropTypes.string,
122
+ contentNode: PropTypes.object
123
+ });
124
+
125
+ export { Sidebar as S, modules_b8a9dd4f as m };
@@ -0,0 +1,3 @@
1
+ var modules_1db4bbca = {"unit":"8px","height":"32px","compensate":"2px","compensated":"30px","top":"-3px","row":"row_rui_3e32","dragHandle":"dragHandle_rui_3e32","tableWrapper":"tableWrapper_rui_3e32","table":"table_rui_3e32","userSelectNone":"userSelectNone_rui_3e32","headerCell":"headerCell_rui_3e32 fontSmallerLower_rui_750f fontSmaller_rui_750f fontLower_rui_750f font_rui_750f","headerCellSorted":"headerCellSorted_rui_3e32","headerCellSortable":"headerCellSortable_rui_3e32","sorter":"sorter_rui_3e32","sortedUp":"sortedUp_rui_3e32","icon":"icon_rui_3e32","caption":"caption_rui_3e32","tableHead":"tableHead_rui_3e32","subHeaderFixed":"subHeaderFixed_rui_3e32","subHeader":"subHeader_rui_3e32","disabledHover":"disabledHover_rui_3e32","rowSelected":"rowSelected_rui_3e32","rowFocused":"rowFocused_rui_3e32","cell":"cell_rui_3e32 ellipsis_rui_750f","loadingOverlay":"loadingOverlay_rui_3e32","cellUnlimited":"cellUnlimited_rui_3e32","cellRight":"cellRight_rui_3e32","metaColumn":"metaColumn_rui_3e32","headerMetaColumn":"headerMetaColumn_rui_3e32","visibleDragHandle":"visibleDragHandle_rui_3e32","rowCollapseExpandButton":"rowCollapseExpandButton_rui_3e32","draggingRow":"draggingRow_rui_3e32","tableMessage":"tableMessage_rui_3e32"};
2
+
3
+ export { modules_1db4bbca as m };
@@ -0,0 +1,3 @@
1
+ var modules_02138f4a = {"unit":"8px","line-shadow":"inset 0 -1px 0 0","selected-line-shadow":"inset 0 -3px 0 0","tabs":"tabs_rui_cbfd font_rui_750f","titles":"titles_rui_cbfd","light":"light_rui_cbfd","dark":"dark_rui_cbfd","title":"title_rui_cbfd font_rui_750f","selected":"selected_rui_cbfd","collapsed":"collapsed_rui_cbfd","titleLegacy":"titleLegacy_rui_cbfd","visible":"visible_rui_cbfd","container":"container_rui_cbfd","hidden":"hidden_rui_cbfd","hiddenBold":"hiddenBold_rui_cbfd","hiddenRegular":"hiddenRegular_rui_cbfd","tabCounter":"tabCounter_rui_cbfd","autoCollapseContainer":"autoCollapseContainer_rui_cbfd","autoCollapse":"autoCollapse_rui_cbfd","rendered":"rendered_rui_cbfd","adjusted":"adjusted_rui_cbfd","measure":"measure_rui_cbfd","morePopup":"morePopup_rui_cbfd","chevron":"chevron_rui_cbfd","morePopupBeforeEnd":"morePopupBeforeEnd_rui_cbfd"};
2
+
3
+ export { modules_02138f4a as m };
@@ -0,0 +1,99 @@
1
+ import { _ as _defineProperty } from './_rollupPluginBabelHelpers.js';
2
+ import React, { PureComponent } from 'react';
3
+ import PropTypes from 'prop-types';
4
+ import classNames from 'classnames';
5
+ import focusSensorHOC from '../global/focus-sensor-hoc.js';
6
+ import Checkbox from '../checkbox/checkbox.js';
7
+ import getUID from '../global/get-uid.js';
8
+
9
+ var modules_09d014b4 = {"unit":"8px","height":"32px","compensate":"2px","dataListWrapper":"dataListWrapper_rui_dd45","dataList":"dataList_rui_dd45","itemContent":"itemContent_rui_dd45","title":"title_rui_dd45","titleSelected":"titleSelected_rui_dd45","titleFocused":"titleFocused_rui_dd45","showMore":"showMore_rui_dd45","boxes":"boxes_rui_dd45","checkboxBox":"checkboxBox_rui_dd45","collapseButton":"collapseButton_rui_dd45","collapseIcon":"collapseIcon_rui_dd45","loadingOverlay":"loadingOverlay_rui_dd45","showMoreLoader":"showMoreLoader_rui_dd45"};
10
+
11
+ class Title extends PureComponent {
12
+ constructor() {
13
+ super(...arguments);
14
+
15
+ _defineProperty(this, "id", getUID('data-list-title'));
16
+
17
+ _defineProperty(this, "onCheckboxFocus", () => {
18
+ this.props.onFocusRestore();
19
+ });
20
+
21
+ _defineProperty(this, "onCheckboxChange", () => {
22
+ this.toggleSelection();
23
+ });
24
+ }
25
+
26
+ toggleSelection() {
27
+ const {
28
+ selectable,
29
+ selected,
30
+ onSelect
31
+ } = this.props;
32
+
33
+ if (selectable) {
34
+ onSelect(!selected);
35
+ }
36
+ }
37
+
38
+ render() {
39
+ const {
40
+ className,
41
+ title,
42
+ offset,
43
+ showFocus,
44
+ innerRef,
45
+ selectable,
46
+ selected,
47
+ collapserExpander
48
+ } = this.props;
49
+ const classes = classNames(className, {
50
+ [modules_09d014b4.title]: true,
51
+ [modules_09d014b4.titleFocused]: showFocus,
52
+ [modules_09d014b4.titleSelected]: selected
53
+ });
54
+ return /*#__PURE__*/React.createElement("div", {
55
+ id: this.id,
56
+ className: classes,
57
+ style: {
58
+ paddingLeft: offset
59
+ },
60
+ ref: innerRef
61
+ }, /*#__PURE__*/React.createElement("div", {
62
+ className: modules_09d014b4.boxes
63
+ }, selectable && /*#__PURE__*/React.createElement("div", {
64
+ className: modules_09d014b4.checkboxBox
65
+ }, /*#__PURE__*/React.createElement(Checkbox, {
66
+ "aria-labelledby": this.id,
67
+ className: showFocus ? 'ring-checkbox_focus' : '',
68
+ checked: selected,
69
+ onFocus: this.onCheckboxFocus,
70
+ onChange: this.onCheckboxChange,
71
+ tabIndex: "-1"
72
+ })), collapserExpander), title);
73
+ }
74
+
75
+ }
76
+
77
+ _defineProperty(Title, "propTypes", {
78
+ className: PropTypes.string,
79
+ title: PropTypes.node,
80
+ offset: PropTypes.number,
81
+ selectable: PropTypes.bool,
82
+ selected: PropTypes.bool,
83
+ onSelect: PropTypes.func,
84
+ showFocus: PropTypes.bool,
85
+ collapserExpander: PropTypes.node,
86
+ innerRef: PropTypes.oneOfType([PropTypes.object, PropTypes.string, PropTypes.func]),
87
+ // focusSensorHOC
88
+ onFocusRestore: PropTypes.func
89
+ });
90
+
91
+ _defineProperty(Title, "defaultProps", {
92
+ selectable: false,
93
+ selected: false,
94
+ showFocus: false
95
+ });
96
+
97
+ var Title$1 = focusSensorHOC(Title);
98
+
99
+ export { Title$1 as T, modules_09d014b4 as m };
@@ -0,0 +1,260 @@
1
+ import { _ as _defineProperty } from '../_helpers/_rollupPluginBabelHelpers.js';
2
+ import React, { PureComponent } from 'react';
3
+ import classNames from 'classnames';
4
+ import PropTypes from 'prop-types';
5
+ import exceptionIcon from '@jetbrains/icons/exception';
6
+ import checkmarkIcon from '@jetbrains/icons/checkmark';
7
+ import warningIcon from '@jetbrains/icons/warning';
8
+ import closeIcon from '@jetbrains/icons/close';
9
+ import Icon from '../icon/icon.js';
10
+ import LoaderInline from '../loader-inline/loader-inline.js';
11
+ import { getRect } from '../global/dom.js';
12
+ import joinDataTestAttributes from '../global/data-tests.js';
13
+ export { default as Container } from './container.js';
14
+ import 'util-deprecate';
15
+ import '../icon/icon__constants.js';
16
+ import '../_helpers/icon.js';
17
+ import '../icon/icon__svg.js';
18
+ import '../global/memoize.js';
19
+ import '../global/theme.js';
20
+ import '../_helpers/inject-styles.js';
21
+ import '../global/conic-gradient.js';
22
+ import 'conic-gradient';
23
+ import '../global/supports-css.js';
24
+ import '../global/inject-styles.js';
25
+ import '../global/radial-gradient-mask.js';
26
+ import '../global/get-uid.js';
27
+ import 'react-dom';
28
+
29
+ var modules_e02b3280 = {"unit":"8px","animation-duration":".3s","animation-easing":"ease-out","alert":"alert_rui_9b21","alertInline":"alertInline_rui_9b21","error":"error_rui_9b21","icon":"icon_rui_9b21","caption":"caption_rui_9b21","link":"link_rui_9b21","withCloseButton":"withCloseButton_rui_9b21","badge":"badge_rui_9b21","loader":"loader_rui_9b21","close":"close_rui_9b21","animationOpen":"animationOpen_rui_9b21","show":"show_rui_9b21","animationClosing":"animationClosing_rui_9b21","animationShaking":"animationShaking_rui_9b21","shaking":"shaking_rui_9b21"};
30
+
31
+ const ANIMATION_TIME = 500;
32
+ /**
33
+ * @name Alert
34
+ */
35
+
36
+ /**
37
+ * List of available alert types.
38
+ * @enum {string}
39
+ */
40
+
41
+ const Type = {
42
+ ERROR: 'error',
43
+ MESSAGE: 'message',
44
+ SUCCESS: 'success',
45
+ WARNING: 'warning',
46
+ LOADING: 'loading'
47
+ };
48
+ /**
49
+ * Lookup table of alert type to icon modifier.
50
+ * @type {Object.<Type, string>}
51
+ */
52
+
53
+ const TypeToIcon = {
54
+ [Type.ERROR]: exceptionIcon,
55
+ [Type.SUCCESS]: checkmarkIcon,
56
+ [Type.WARNING]: warningIcon
57
+ };
58
+ /**
59
+ * Lookup table of alert type to icon color.
60
+ * @type {Object.<Type, Icon.Color>}
61
+ */
62
+
63
+ const TypeToIconColor = {
64
+ [Type.ERROR]: Icon.Color.RED,
65
+ [Type.SUCCESS]: Icon.Color.GREEN,
66
+ [Type.WARNING]: Icon.Color.WHITE
67
+ };
68
+ /**
69
+ * @constructor
70
+ * @name Alert
71
+ * @extends {ReactComponent}
72
+ */
73
+
74
+ /**
75
+ * **Alert** is a component for displaying contextual notifications. If you want to display a stack of notifications, use **Alerts** instead.
76
+ */
77
+
78
+ class Alert extends PureComponent {
79
+ constructor() {
80
+ var _this;
81
+
82
+ super(...arguments);
83
+ _this = this;
84
+
85
+ _defineProperty(this, "state", {
86
+ height: null
87
+ });
88
+
89
+ _defineProperty(this, "closeRequest", function () {
90
+ _this.startCloseAnimation();
91
+
92
+ return _this.props.onCloseRequest(...arguments);
93
+ });
94
+
95
+ _defineProperty(this, "startCloseAnimation", () => {
96
+ const height = getRect(this.node).height;
97
+ this.setState({
98
+ height
99
+ });
100
+ });
101
+
102
+ _defineProperty(this, "_handleCaptionsLinksClick", evt => {
103
+ if (evt.target.matches('a')) {
104
+ this.closeRequest(evt);
105
+ }
106
+ });
107
+
108
+ _defineProperty(this, "storeAlertRef", node => {
109
+ this.node = node;
110
+ });
111
+ }
112
+
113
+ componentDidMount() {
114
+ if (this.props.timeout > 0) {
115
+ this.hideTimeout = setTimeout(this.closeRequest, this.props.timeout);
116
+ }
117
+ }
118
+
119
+ componentDidUpdate() {
120
+ if (this.props.isClosing) {
121
+ this._close();
122
+ }
123
+ }
124
+
125
+ componentWillUnmount() {
126
+ clearTimeout(this.hideTimeout);
127
+ }
128
+
129
+ _close() {
130
+ this.startCloseAnimation();
131
+ setTimeout(() => {
132
+ this.props.onClose();
133
+ }, ANIMATION_TIME);
134
+ }
135
+ /**
136
+ * @param {SyntheticEvent} evt
137
+ * @private
138
+ */
139
+
140
+
141
+ /**
142
+ * @private
143
+ */
144
+ _getCaption() {
145
+ return /*#__PURE__*/React.createElement("span", {
146
+ className: classNames(modules_e02b3280.caption, this.props.captionClassName, {
147
+ [modules_e02b3280.withCloseButton]: this.props.closeable
148
+ }),
149
+ onClick: this._handleCaptionsLinksClick // We only process clicks on `a` elements, see above
150
+ ,
151
+ role: "presentation"
152
+ }, this.props.children);
153
+ }
154
+ /**
155
+ * @private
156
+ * @return {XML|string}
157
+ */
158
+
159
+
160
+ _getIcon() {
161
+ const glyph = TypeToIcon[this.props.type];
162
+
163
+ if (glyph) {
164
+ return /*#__PURE__*/React.createElement(Icon, {
165
+ glyph: glyph,
166
+ className: modules_e02b3280.icon,
167
+ color: TypeToIconColor[this.props.type] || Icon.Color.DEFAULT
168
+ });
169
+ } else if (this.props.type === Type.LOADING) {
170
+ return /*#__PURE__*/React.createElement(LoaderInline, {
171
+ className: modules_e02b3280.loader,
172
+ theme: LoaderInline.Theme.DARK
173
+ });
174
+ }
175
+
176
+ return '';
177
+ }
178
+
179
+ render() {
180
+ const {
181
+ type,
182
+ inline,
183
+ isClosing,
184
+ isShaking,
185
+ closeButtonClassName,
186
+ showWithAnimation,
187
+ className,
188
+ 'data-test': dataTest
189
+ } = this.props;
190
+ const classes = classNames(className, {
191
+ [modules_e02b3280.alert]: true,
192
+ [modules_e02b3280.animationOpen]: showWithAnimation,
193
+ [modules_e02b3280.error]: type === 'error',
194
+ [modules_e02b3280.alertInline]: inline,
195
+ [modules_e02b3280.animationClosing]: isClosing,
196
+ [modules_e02b3280.animationShaking]: isShaking
197
+ });
198
+ const style = this.state.height ? {
199
+ marginBottom: -this.state.height
200
+ } : null;
201
+ return /*#__PURE__*/React.createElement("div", {
202
+ className: classes,
203
+ "data-test": joinDataTestAttributes('alert', dataTest),
204
+ "data-test-type": type,
205
+ style: style,
206
+ ref: this.storeAlertRef
207
+ }, this._getIcon(), this._getCaption(), this.props.closeable ? /*#__PURE__*/React.createElement("button", {
208
+ type: "button",
209
+ className: classNames(modules_e02b3280.close, closeButtonClassName),
210
+ "data-test": "alert-close",
211
+ "aria-label": "close alert",
212
+ onClick: this.closeRequest
213
+ }, /*#__PURE__*/React.createElement(Icon, {
214
+ glyph: closeIcon
215
+ })) : '');
216
+ }
217
+
218
+ }
219
+
220
+ _defineProperty(Alert, "propTypes", {
221
+ timeout: PropTypes.number,
222
+
223
+ /**
224
+ * Fires when alert starts closing if timeout is out or user clicks "Close" button
225
+ */
226
+ onCloseRequest: PropTypes.func,
227
+ onClose: PropTypes.func,
228
+ isShaking: PropTypes.bool,
229
+ isClosing: PropTypes.bool,
230
+
231
+ /**
232
+ * Whether an alert is rendered inside an **Alerts** container
233
+ * or standalone.
234
+ */
235
+ inline: PropTypes.bool,
236
+ showWithAnimation: PropTypes.bool,
237
+ closeable: PropTypes.bool,
238
+ type: PropTypes.oneOf(Object.values(Type)),
239
+ children: PropTypes.node,
240
+ className: PropTypes.string,
241
+ captionClassName: PropTypes.string,
242
+ closeButtonClassName: PropTypes.string,
243
+ 'data-test': PropTypes.string
244
+ });
245
+
246
+ _defineProperty(Alert, "defaultProps", {
247
+ closeable: true,
248
+ showWithAnimation: true,
249
+ type: Type.MESSAGE,
250
+ inline: true,
251
+ isClosing: false,
252
+ isShaking: false,
253
+ timeout: 0,
254
+ onClose: () => {},
255
+ onCloseRequest: () => {}
256
+ });
257
+
258
+ _defineProperty(Alert, "Type", Type);
259
+
260
+ export { ANIMATION_TIME, Alert as default };
@@ -0,0 +1,48 @@
1
+ import { _ as _defineProperty, a as _extends } from '../_helpers/_rollupPluginBabelHelpers.js';
2
+ import React, { PureComponent, Children, cloneElement } from 'react';
3
+ import { createPortal } from 'react-dom';
4
+ import classNames from 'classnames';
5
+ import PropTypes from 'prop-types';
6
+
7
+ var modules_fc8df42d = {"unit":"8px","alert":"alert_rui_9b21","alertContainer":"alertContainer_rui_3f27","alertInContainer":"alertInContainer_rui_3f27 alert_rui_9b21"};
8
+
9
+ /**
10
+ * @name Alert Container
11
+ * @description Displays a stack of alerts on top of the page.
12
+ * @extends {PureComponent}
13
+ */
14
+
15
+ class Alerts extends PureComponent {
16
+ render() {
17
+ const {
18
+ children,
19
+ className,
20
+ ...restProps
21
+ } = this.props;
22
+ const classes = classNames(modules_fc8df42d.alertContainer, className);
23
+ const show = Children.count(children) > 0;
24
+
25
+ if (!show) {
26
+ return null;
27
+ }
28
+
29
+ return /*#__PURE__*/createPortal( /*#__PURE__*/React.createElement("div", _extends({
30
+ "data-test": "alert-container",
31
+ className: classes,
32
+ "aria-live": "polite"
33
+ }, restProps), Children.map(children, child => {
34
+ const alertClassNames = classNames(modules_fc8df42d.alertInContainer, child.props.className);
35
+ return /*#__PURE__*/cloneElement(child, {
36
+ className: alertClassNames
37
+ });
38
+ })), document.body);
39
+ }
40
+
41
+ }
42
+
43
+ _defineProperty(Alerts, "propTypes", {
44
+ children: PropTypes.node,
45
+ className: PropTypes.string
46
+ });
47
+
48
+ export { Alerts as default };