@jetbrains/ring-ui-built 7.0.65 → 7.0.70
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.
- package/components/_helpers/anchor.js +12 -17
- package/components/_helpers/avatar-info.js +4 -5
- package/components/_helpers/button.classes.js +20 -21
- package/components/_helpers/caption.js +3 -3
- package/components/_helpers/card.js +26 -32
- package/components/_helpers/dialog-body-scroll-preventer.js +1 -2
- package/components/_helpers/icon-svg.js +9 -12
- package/components/_helpers/input.js +78 -86
- package/components/_helpers/loader-core.js +260 -0
- package/components/_helpers/query-assist-suggestions.js +0 -1
- package/components/_helpers/select-filter.js +19 -26
- package/components/_helpers/services-link.js +9 -12
- package/components/_helpers/sidebar.js +36 -44
- package/components/_helpers/tab-link.js +9 -11
- package/components/_helpers/theme.js +20 -24
- package/components/_helpers/title.js +12 -17
- package/components/alert/alert.js +41 -49
- package/components/alert/container.js +9 -12
- package/components/alert-service/alert-service.js +23 -32
- package/components/analytics/analytics-custom-plugin.js +12 -17
- package/components/analytics/analytics.js +1 -3
- package/components/auth/auth-core.js +128 -170
- package/components/auth/auth.js +3 -10
- package/components/auth/background-flow.js +5 -8
- package/components/auth/down-notification.js +9 -17
- package/components/auth/iframe-flow.js +13 -19
- package/components/auth/request-builder.js +4 -9
- package/components/auth/response-parser.js +9 -12
- package/components/auth/storage.js +12 -18
- package/components/auth/token-validator.js +19 -30
- package/components/auth/window-flow.js +22 -27
- package/components/auth-dialog/auth-dialog.js +40 -48
- package/components/auth-dialog-service/auth-dialog-service.js +10 -13
- package/components/avatar/avatar.figma.js +6 -6
- package/components/avatar/avatar.js +58 -59
- package/components/avatar/fallback-avatar.js +8 -11
- package/components/avatar-stack/avatar-stack.figma.js +10 -11
- package/components/avatar-stack/avatar-stack.js +25 -31
- package/components/banner/banner.js +0 -6
- package/components/breadcrumbs/breadcrumbs.figma.js +8 -6
- package/components/breadcrumbs/breadcrumbs.js +4 -5
- package/components/button/button.figma.js +15 -10
- package/components/button/button.js +59 -64
- package/components/button-group/button-group.js +11 -15
- package/components/button-group/caption.js +0 -1
- package/components/button-set/button-set.js +9 -12
- package/components/button-toolbar/button-toolbar.js +8 -11
- package/components/caret/caret.js +20 -28
- package/components/checkbox/checkbox-group.figma.js +8 -10
- package/components/checkbox/checkbox.figma.js +5 -5
- package/components/checkbox/checkbox.js +27 -35
- package/components/clipboard/clipboard-fallback.js +3 -3
- package/components/clipboard/clipboard.js +3 -16
- package/components/code/code.js +8 -14
- package/components/collapse/collapse-content.js +10 -15
- package/components/collapse/collapse-control.js +5 -7
- package/components/collapse/collapse.js +9 -11
- package/components/collapse/utils.js +1 -1
- package/components/confirm/confirm.js +17 -26
- package/components/confirm-service/confirm-service.js +30 -31
- package/components/content-layout/content-layout.js +21 -28
- package/components/content-layout/sidebar.js +0 -2
- package/components/contenteditable/contenteditable.js +23 -28
- package/components/control-help/control-help.js +8 -10
- package/components/control-label/control-label.js +12 -17
- package/components/data-list/data-list.js +57 -65
- package/components/data-list/data-list.mock.js +0 -4
- package/components/data-list/item.js +65 -72
- package/components/data-list/selection.js +11 -19
- package/components/data-list/title.js +0 -4
- package/components/date-picker/consts.js +3 -4
- package/components/date-picker/date-input.js +25 -33
- package/components/date-picker/date-picker.js +179 -193
- package/components/date-picker/date-popup.js +135 -127
- package/components/date-picker/day.d.ts +1 -1
- package/components/date-picker/day.js +24 -30
- package/components/date-picker/month-names.js +7 -12
- package/components/date-picker/month-slider.js +16 -22
- package/components/date-picker/month.js +3 -5
- package/components/date-picker/months.js +6 -6
- package/components/date-picker/weekdays.js +0 -1
- package/components/date-picker/years.js +20 -26
- package/components/dialog/dialog-body-scroll-preventer.js +0 -1
- package/components/dialog/dialog.js +73 -83
- package/components/dropdown/anchor.js +0 -4
- package/components/dropdown/dropdown.js +98 -114
- package/components/dropdown-menu/dropdown-menu.js +80 -79
- package/components/editable-heading/editable-heading.js +48 -54
- package/components/error-bubble/error-bubble.figma.js +4 -4
- package/components/error-bubble/error-bubble.js +9 -13
- package/components/error-message/error-message.js +1 -6
- package/components/footer/footer.js +11 -15
- package/components/global/compose-refs.js +1 -4
- package/components/global/compose.js +1 -4
- package/components/global/configuration.js +3 -3
- package/components/global/controls-height.js +0 -1
- package/components/global/create-stateful-context.js +10 -14
- package/components/global/data-tests.js +2 -10
- package/components/global/dom.js +6 -19
- package/components/global/focus-sensor-hoc.js +74 -87
- package/components/global/fuzzy-highlight.js +3 -8
- package/components/global/get-uid.js +1 -1
- package/components/global/inject-styles.js +5 -6
- package/components/global/listeners.js +2 -11
- package/components/global/memoize.js +0 -2
- package/components/global/normalize-indent.js +2 -6
- package/components/global/promise-with-timeout.js +4 -5
- package/components/global/react-dom-renderer.js +4 -9
- package/components/global/rerender-hoc.js +8 -11
- package/components/global/schedule-raf.js +1 -2
- package/components/global/theme.js +0 -5
- package/components/global/trivial-template-tag.js +1 -6
- package/components/global/url.js +2 -6
- package/components/global/use-event-callback.js +2 -3
- package/components/grid/col.js +7 -18
- package/components/grid/grid.js +9 -14
- package/components/grid/row.js +7 -11
- package/components/group/group.js +9 -12
- package/components/header/header-icon.js +8 -13
- package/components/header/header.js +16 -27
- package/components/header/links.js +7 -10
- package/components/header/logo.js +12 -16
- package/components/header/profile.js +73 -83
- package/components/header/services-link.js +0 -2
- package/components/header/services.js +32 -43
- package/components/header/smart-profile.js +44 -59
- package/components/header/smart-services.js +33 -45
- package/components/header/tray.js +8 -10
- package/components/heading/heading.js +27 -27
- package/components/http/http.js +120 -125
- package/components/http/http.mock.js +6 -10
- package/components/hub-source/hub-source-user.js +6 -13
- package/components/hub-source/hub-source-users-groups.js +8 -12
- package/components/hub-source/hub-source.js +8 -10
- package/components/i18n/i18n-context.js +4 -7
- package/components/i18n/i18n.js +5 -5
- package/components/icon/icon-svg.js +0 -4
- package/components/icon/icon.js +28 -32
- package/components/icon/index.js +0 -4
- package/components/input/input.figma.js +8 -8
- package/components/input/input.js +0 -4
- package/components/island/adaptive-island-hoc.js +19 -23
- package/components/island/content.js +70 -75
- package/components/island/header.js +21 -21
- package/components/island/island.js +11 -14
- package/components/link/clickable-link.js +30 -37
- package/components/link/link.js +27 -29
- package/components/list/list-custom.js +6 -11
- package/components/list/list-item.js +49 -56
- package/components/list/list-separator.js +0 -1
- package/components/list/list-title.js +0 -1
- package/components/list/list-users-groups-source.js +14 -22
- package/components/list/list.classes.js +8 -9
- package/components/list/list.js +387 -404
- package/components/loader/loader-core.js +2 -265
- package/components/loader/loader.d.ts +8 -0
- package/components/loader/loader.js +43 -29
- package/components/loader-inline/loader-inline.js +9 -12
- package/components/loader-screen/loader-screen.js +10 -14
- package/components/login-dialog/login-dialog.js +46 -54
- package/components/login-dialog/service.js +13 -15
- package/components/message/message.js +65 -79
- package/components/old-browsers-message/old-browsers-message-stop.js +0 -3
- package/components/old-browsers-message/old-browsers-message.js +1 -4
- package/components/old-browsers-message/white-list.js +5 -7
- package/components/pager/pager.js +73 -88
- package/components/panel/panel.js +9 -12
- package/components/permissions/permissions-cache.js +6 -8
- package/components/permissions/permissions.js +19 -21
- package/components/popup/popup.js +136 -145
- package/components/popup/popup.target.js +8 -10
- package/components/popup/position-css.js +19 -27
- package/components/popup/position.js +22 -28
- package/components/popup-menu/popup-menu.js +27 -37
- package/components/progress-bar/progress-bar.js +26 -32
- package/components/query-assist/query-assist-suggestions.js +0 -6
- package/components/query-assist/query-assist.js +432 -468
- package/components/radio/radio-item.js +30 -40
- package/components/radio/radio.js +6 -10
- package/components/scrollable-section/scrollable-section.js +7 -10
- package/components/select/select-filter.js +0 -6
- package/components/select/select-popup.js +155 -174
- package/components/select/select.js +464 -479
- package/components/shortcuts/core.js +40 -45
- package/components/shortcuts/shortcut-title.js +0 -1
- package/components/shortcuts/shortcuts-hoc.js +9 -15
- package/components/shortcuts/shortcuts.js +3 -5
- package/components/slider/slider.js +53 -66
- package/components/slider/slider.utils.js +1 -4
- package/components/storage/storage-local.js +2 -8
- package/components/storage/storage.js +0 -5
- package/components/style.css +1 -1
- package/components/tab-trap/tab-trap.js +21 -30
- package/components/table/cell.js +3 -4
- package/components/table/disable-hover-hoc.js +24 -28
- package/components/table/header-cell.js +30 -38
- package/components/table/header.js +20 -28
- package/components/table/multitable.js +81 -101
- package/components/table/row-with-focus-sensor.js +17 -28
- package/components/table/row.js +89 -99
- package/components/table/selection-adapter.js +0 -2
- package/components/table/selection-shortcuts-hoc.js +159 -161
- package/components/table/selection.js +23 -31
- package/components/table/simple-table.js +16 -22
- package/components/table/smart-table.js +19 -26
- package/components/table/table.js +137 -146
- package/components/tabs/collapsible-more.js +34 -47
- package/components/tabs/collapsible-tab.js +28 -33
- package/components/tabs/collapsible-tabs.js +18 -26
- package/components/tabs/custom-item.js +3 -6
- package/components/tabs/dumb-tabs.js +48 -64
- package/components/tabs/smart-tabs.js +14 -23
- package/components/tabs/tab-link.js +0 -2
- package/components/tabs/tab.js +0 -1
- package/components/tabs/tabs.js +0 -7
- package/components/tag/tag.js +30 -35
- package/components/tags-input/tags-input.js +192 -218
- package/components/tags-list/tags-list.js +26 -31
- package/components/text/text.js +16 -19
- package/components/toggle/toggle.js +19 -23
- package/components/tooltip/tooltip.js +110 -121
- package/components/upload/upload.js +19 -28
- package/components/user-agreement/service.js +247 -252
- package/components/user-agreement/toolbox.eula.js +160 -1
- package/components/user-agreement/user-agreement.js +23 -32
- package/components/user-card/card.js +0 -5
- package/components/user-card/smart-user-card-tooltip.js +41 -50
- package/components/user-card/tooltip.js +32 -38
- package/components/user-card/user-card.js +0 -5
- package/package.json +9 -3
- package/components/_helpers/_rollupPluginBabelHelpers.js +0 -72
package/components/grid/row.js
CHANGED
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
import { a as _objectWithoutProperties } from '../_helpers/_rollupPluginBabelHelpers.js';
|
|
2
|
-
import 'core-js/modules/es.array.reverse.js';
|
|
3
1
|
import { jsx } from 'react/jsx-runtime';
|
|
4
2
|
import { Component } from 'react';
|
|
5
3
|
import classNames from 'classnames';
|
|
6
4
|
import { s as styles } from '../_helpers/grid.js';
|
|
7
5
|
|
|
8
|
-
const _excluded = ["children", "className", "reverse"];
|
|
9
6
|
const modifierKeys = ['start', 'center', 'end',
|
|
10
7
|
// text-align, justify-content
|
|
11
8
|
'around', 'between',
|
|
@@ -22,20 +19,19 @@ const modifierKeys = ['start', 'center', 'end',
|
|
|
22
19
|
function getModifierClassNames(props) {
|
|
23
20
|
return modifierKeys.reduce((result, key) => {
|
|
24
21
|
if (props[key]) {
|
|
25
|
-
return result.concat(styles[
|
|
22
|
+
return result.concat(styles[`${key}-${props[key]}`]);
|
|
26
23
|
}
|
|
27
24
|
return result;
|
|
28
25
|
}, []);
|
|
29
26
|
}
|
|
30
27
|
class Row extends Component {
|
|
31
28
|
render() {
|
|
32
|
-
const
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
restProps = _objectWithoutProperties(_this$props, _excluded);
|
|
29
|
+
const {
|
|
30
|
+
children,
|
|
31
|
+
className,
|
|
32
|
+
reverse,
|
|
33
|
+
...restProps
|
|
34
|
+
} = this.props;
|
|
39
35
|
const classes = classNames(className, styles.row, getModifierClassNames(restProps), {
|
|
40
36
|
[styles.reverse]: reverse
|
|
41
37
|
});
|
|
@@ -1,29 +1,26 @@
|
|
|
1
|
-
import { a as _objectWithoutProperties, b as _objectSpread2 } from '../_helpers/_rollupPluginBabelHelpers.js';
|
|
2
1
|
import { jsx } from 'react/jsx-runtime';
|
|
3
2
|
import { Component } from 'react';
|
|
4
3
|
import classNames from 'classnames';
|
|
5
4
|
|
|
6
5
|
var styles = {"group":"ring-group-group"};
|
|
7
6
|
|
|
8
|
-
const _excluded = ["children", "className"];
|
|
9
7
|
/**
|
|
10
8
|
* @name Group
|
|
11
9
|
*/
|
|
12
10
|
class Group extends Component {
|
|
13
11
|
render() {
|
|
14
|
-
const
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
restProps = _objectWithoutProperties(_this$props, _excluded);
|
|
12
|
+
const {
|
|
13
|
+
children,
|
|
14
|
+
className,
|
|
15
|
+
...restProps
|
|
16
|
+
} = this.props;
|
|
20
17
|
const classes = classNames(styles.group, className);
|
|
21
|
-
return jsx("span",
|
|
22
|
-
"data-test": 'ring-group'
|
|
23
|
-
|
|
18
|
+
return jsx("span", {
|
|
19
|
+
"data-test": 'ring-group',
|
|
20
|
+
...restProps,
|
|
24
21
|
className: classes,
|
|
25
22
|
children: children
|
|
26
|
-
})
|
|
23
|
+
});
|
|
27
24
|
}
|
|
28
25
|
}
|
|
29
26
|
|
|
@@ -1,40 +1,35 @@
|
|
|
1
|
-
import { a as _objectWithoutProperties, b as _objectSpread2 } from '../_helpers/_rollupPluginBabelHelpers.js';
|
|
2
1
|
import { jsx } from 'react/jsx-runtime';
|
|
3
2
|
import { Component } from 'react';
|
|
4
3
|
import classNames from 'classnames';
|
|
5
4
|
import { Button } from '../button/button.js';
|
|
6
5
|
import { s as styles } from '../_helpers/header.js';
|
|
7
|
-
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
8
6
|
import '@jetbrains/icons/chevron-down';
|
|
9
7
|
import '@jetbrains/icons/chevron-12px-down';
|
|
10
8
|
import 'util-deprecate';
|
|
11
9
|
import '../icon/icon.js';
|
|
12
10
|
import '../icon/icon.constants.js';
|
|
13
11
|
import '../_helpers/icon-svg.js';
|
|
14
|
-
import 'core-js/modules/es.regexp.exec.js';
|
|
15
|
-
import 'core-js/modules/es.string.replace.js';
|
|
16
12
|
import '../global/memoize.js';
|
|
17
13
|
import '../link/clickable-link.js';
|
|
18
14
|
import '../global/controls-height.js';
|
|
19
15
|
import '../global/configuration.js';
|
|
20
16
|
import '../_helpers/button.classes.js';
|
|
21
17
|
|
|
22
|
-
const _excluded = ["className", "rotatable"];
|
|
23
18
|
class HeaderIcon extends Component {
|
|
24
19
|
render() {
|
|
25
|
-
const
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
restProps = _objectWithoutProperties(_this$props, _excluded);
|
|
20
|
+
const {
|
|
21
|
+
className,
|
|
22
|
+
rotatable: rotatable,
|
|
23
|
+
...restProps
|
|
24
|
+
} = this.props;
|
|
31
25
|
const classes = classNames(styles.icon, className, {
|
|
32
26
|
[styles.rotatable]: rotatable,
|
|
33
27
|
[styles.rotated]: rotatable && restProps.active
|
|
34
28
|
});
|
|
35
|
-
return jsx(Button,
|
|
29
|
+
return jsx(Button, {
|
|
30
|
+
...restProps,
|
|
36
31
|
className: classes
|
|
37
|
-
})
|
|
32
|
+
});
|
|
38
33
|
}
|
|
39
34
|
}
|
|
40
35
|
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { _ as _defineProperty, a as _objectWithoutProperties, b as _objectSpread2 } from '../_helpers/_rollupPluginBabelHelpers.js';
|
|
2
1
|
import { jsx } from 'react/jsx-runtime';
|
|
3
2
|
import { Component } from 'react';
|
|
4
3
|
import classNames from 'classnames';
|
|
@@ -11,12 +10,9 @@ export { default as Profile } from './profile.js';
|
|
|
11
10
|
export { default as SmartProfile } from './smart-profile.js';
|
|
12
11
|
export { default as Services } from './services.js';
|
|
13
12
|
export { default as SmartServices } from './smart-services.js';
|
|
14
|
-
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
15
13
|
import 'react-dom';
|
|
16
14
|
import '../popup/popup.target.js';
|
|
17
15
|
import '../popup/popup.js';
|
|
18
|
-
import 'core-js/modules/es.regexp.exec.js';
|
|
19
|
-
import 'core-js/modules/es.string.replace.js';
|
|
20
16
|
import '../global/get-uid.js';
|
|
21
17
|
import '../global/schedule-raf.js';
|
|
22
18
|
import '../global/dom.js';
|
|
@@ -29,7 +25,6 @@ import '../global/data-tests.js';
|
|
|
29
25
|
import '../tab-trap/tab-trap.js';
|
|
30
26
|
import '../global/configuration.js';
|
|
31
27
|
import '../popup/position.js';
|
|
32
|
-
import 'core-js/modules/es.array.sort.js';
|
|
33
28
|
import '../popup/popup.consts.js';
|
|
34
29
|
import '../popup/position-css.js';
|
|
35
30
|
import '../icon/icon.js';
|
|
@@ -50,8 +45,6 @@ import '../avatar/avatar-size.js';
|
|
|
50
45
|
import '../avatar/fallback-avatar.js';
|
|
51
46
|
import '../dropdown-menu/dropdown-menu.js';
|
|
52
47
|
import '../list/list.js';
|
|
53
|
-
import 'core-js/modules/es.symbol.description.js';
|
|
54
|
-
import 'core-js/modules/es.string.trim.js';
|
|
55
48
|
import 'react-virtualized/dist/es/List';
|
|
56
49
|
import 'react-virtualized/dist/es/AutoSizer';
|
|
57
50
|
import 'react-virtualized/dist/es/WindowScroller';
|
|
@@ -95,9 +88,6 @@ import '../auth/response-parser.js';
|
|
|
95
88
|
import '../auth/down-notification.js';
|
|
96
89
|
import '../group/group.js';
|
|
97
90
|
import '../auth/auth-core.js';
|
|
98
|
-
import 'core-js/modules/web.url.js';
|
|
99
|
-
import 'core-js/modules/web.url.to-json.js';
|
|
100
|
-
import 'core-js/modules/web.url-search-params.js';
|
|
101
91
|
import '../global/listeners.js';
|
|
102
92
|
import '../http/http.js';
|
|
103
93
|
import '../global/promise-with-timeout.js';
|
|
@@ -110,7 +100,6 @@ import '../auth/token-validator.js';
|
|
|
110
100
|
import '@jetbrains/icons/services-20px';
|
|
111
101
|
import '../_helpers/services-link.js';
|
|
112
102
|
|
|
113
|
-
const _excluded = ["children", "className", "spaced", "theme", "vertical"];
|
|
114
103
|
/**
|
|
115
104
|
* @name Header
|
|
116
105
|
*/
|
|
@@ -118,24 +107,29 @@ const _excluded = ["children", "className", "spaced", "theme", "vertical"];
|
|
|
118
107
|
* Displays a configurable page header. See available presentation options in the knobs panel.
|
|
119
108
|
*/
|
|
120
109
|
class Header extends Component {
|
|
110
|
+
static defaultProps = {
|
|
111
|
+
spaced: true,
|
|
112
|
+
theme: Theme.DARK,
|
|
113
|
+
vertical: false
|
|
114
|
+
};
|
|
121
115
|
render() {
|
|
122
|
-
const
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
restProps = _objectWithoutProperties(_this$props, _excluded);
|
|
116
|
+
const {
|
|
117
|
+
children,
|
|
118
|
+
className,
|
|
119
|
+
spaced,
|
|
120
|
+
theme,
|
|
121
|
+
vertical,
|
|
122
|
+
...restProps
|
|
123
|
+
} = this.props;
|
|
131
124
|
const classes = classNames(vertical ? styles.headerVertical : styles.header, className, {
|
|
132
125
|
[styles.headerSpaced]: spaced && !vertical
|
|
133
126
|
});
|
|
134
127
|
const overrideOuterTheme = theme !== Theme.LIGHT;
|
|
135
|
-
const header = jsx("header",
|
|
128
|
+
const header = jsx("header", {
|
|
129
|
+
...restProps,
|
|
136
130
|
className: classes,
|
|
137
131
|
children: children
|
|
138
|
-
})
|
|
132
|
+
});
|
|
139
133
|
if (overrideOuterTheme) {
|
|
140
134
|
return jsx(ThemeProvider, {
|
|
141
135
|
theme: theme,
|
|
@@ -145,10 +139,5 @@ class Header extends Component {
|
|
|
145
139
|
return header;
|
|
146
140
|
}
|
|
147
141
|
}
|
|
148
|
-
_defineProperty(Header, "defaultProps", {
|
|
149
|
-
spaced: true,
|
|
150
|
-
theme: Theme.DARK,
|
|
151
|
-
vertical: false
|
|
152
|
-
});
|
|
153
142
|
|
|
154
143
|
export { Header as default };
|
|
@@ -1,21 +1,18 @@
|
|
|
1
|
-
import { a as _objectWithoutProperties, b as _objectSpread2 } from '../_helpers/_rollupPluginBabelHelpers.js';
|
|
2
1
|
import { jsx } from 'react/jsx-runtime';
|
|
3
2
|
import classNames from 'classnames';
|
|
4
3
|
import ScrollableSection from '../scrollable-section/scrollable-section.js';
|
|
5
4
|
import { s as styles } from '../_helpers/header.js';
|
|
6
|
-
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
7
5
|
import 'react';
|
|
8
6
|
|
|
9
|
-
const _excluded = ["className"];
|
|
10
7
|
// currently only supports vertical header
|
|
11
|
-
function Links(
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
8
|
+
function Links({
|
|
9
|
+
className,
|
|
10
|
+
...restProps
|
|
11
|
+
}) {
|
|
12
|
+
return jsx(ScrollableSection, {
|
|
13
|
+
...restProps,
|
|
17
14
|
className: classNames(styles.links, className)
|
|
18
|
-
})
|
|
15
|
+
});
|
|
19
16
|
}
|
|
20
17
|
|
|
21
18
|
export { Links as default };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { _ as _defineProperty, a as _objectWithoutProperties, b as _objectSpread2 } from '../_helpers/_rollupPluginBabelHelpers.js';
|
|
2
1
|
import { jsx } from 'react/jsx-runtime';
|
|
3
2
|
import { PureComponent } from 'react';
|
|
4
3
|
import classNames from 'classnames';
|
|
@@ -7,30 +6,27 @@ import { s as styles } from '../_helpers/header.js';
|
|
|
7
6
|
import { Size } from '../icon/icon.constants.js';
|
|
8
7
|
import 'util-deprecate';
|
|
9
8
|
import '../_helpers/icon-svg.js';
|
|
10
|
-
import 'core-js/modules/es.regexp.exec.js';
|
|
11
|
-
import 'core-js/modules/es.string.replace.js';
|
|
12
9
|
import '../global/memoize.js';
|
|
13
|
-
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
14
10
|
|
|
15
|
-
const _excluded = ["className"];
|
|
16
11
|
class Logo extends PureComponent {
|
|
12
|
+
static defaultProps = {
|
|
13
|
+
size: Size.Size48,
|
|
14
|
+
suppressSizeWarning: true
|
|
15
|
+
};
|
|
16
|
+
static Size = Size;
|
|
17
17
|
render() {
|
|
18
|
-
const
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
restProps = _objectWithoutProperties(_this$props, _excluded);
|
|
18
|
+
const {
|
|
19
|
+
className,
|
|
20
|
+
...restProps
|
|
21
|
+
} = this.props;
|
|
23
22
|
const classes = classNames(styles.logo, className);
|
|
24
23
|
return jsx("div", {
|
|
25
24
|
className: classes,
|
|
26
|
-
children: jsx(Icon,
|
|
25
|
+
children: jsx(Icon, {
|
|
26
|
+
...restProps
|
|
27
|
+
})
|
|
27
28
|
});
|
|
28
29
|
}
|
|
29
30
|
}
|
|
30
|
-
_defineProperty(Logo, "defaultProps", {
|
|
31
|
-
size: Size.Size48,
|
|
32
|
-
suppressSizeWarning: true
|
|
33
|
-
});
|
|
34
|
-
_defineProperty(Logo, "Size", Size);
|
|
35
31
|
|
|
36
32
|
export { Logo as default };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { _ as _defineProperty, a as _objectWithoutProperties, b as _objectSpread2 } from '../_helpers/_rollupPluginBabelHelpers.js';
|
|
2
1
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
3
2
|
import { PureComponent } from 'react';
|
|
4
3
|
import classNames from 'classnames';
|
|
@@ -10,11 +9,8 @@ import { I18nContext } from '../i18n/i18n-context.js';
|
|
|
10
9
|
import { isTruthy } from '../global/typescript-utils.js';
|
|
11
10
|
import { s as styles } from '../_helpers/header.js';
|
|
12
11
|
import { Size } from '../avatar/avatar-size.js';
|
|
13
|
-
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
14
12
|
import 'util-deprecate';
|
|
15
13
|
import '../global/url.js';
|
|
16
|
-
import 'core-js/modules/es.regexp.exec.js';
|
|
17
|
-
import 'core-js/modules/es.string.replace.js';
|
|
18
14
|
import '../global/dom.js';
|
|
19
15
|
import '../global/memoize.js';
|
|
20
16
|
import '../_helpers/avatar-info.js';
|
|
@@ -30,8 +26,6 @@ import '../global/controls-height.js';
|
|
|
30
26
|
import '../global/configuration.js';
|
|
31
27
|
import '../_helpers/button.classes.js';
|
|
32
28
|
import '../list/list.js';
|
|
33
|
-
import 'core-js/modules/es.symbol.description.js';
|
|
34
|
-
import 'core-js/modules/es.string.trim.js';
|
|
35
29
|
import 'react-virtualized/dist/es/List';
|
|
36
30
|
import 'react-virtualized/dist/es/AutoSizer';
|
|
37
31
|
import 'react-virtualized/dist/es/WindowScroller';
|
|
@@ -67,57 +61,85 @@ import '../popup/popup.js';
|
|
|
67
61
|
import 'react-dom';
|
|
68
62
|
import '../tab-trap/tab-trap.js';
|
|
69
63
|
import '../popup/position.js';
|
|
70
|
-
import 'core-js/modules/es.array.sort.js';
|
|
71
64
|
import '../popup/popup.consts.js';
|
|
72
65
|
import '../popup/popup.target.js';
|
|
73
66
|
import '../popup/position-css.js';
|
|
74
67
|
import '../i18n/i18n.js';
|
|
75
68
|
|
|
76
|
-
const _excluded = ["className", "activeClassName", "closeOnSelect", "hasUpdates", "onLogout", "user", "profileUrl", "LinkComponent", "onSwitchUser", "renderPopupItems", "onRevertPostponement", "showApplyChangedUser", "showName", "showLogIn", "showLogOut", "showSwitchUser", "renderGuest", "translations", "size", "round", "loading", "onLogin", "menuProps", "onShow", "onHide"];
|
|
77
69
|
const rgItemType = PopupMenu.ListProps.Type.LINK;
|
|
78
70
|
class Profile extends PureComponent {
|
|
71
|
+
static defaultProps = {
|
|
72
|
+
closeOnSelect: true,
|
|
73
|
+
renderPopupItems: items => items,
|
|
74
|
+
size: Size.Size32,
|
|
75
|
+
renderGuest: ({
|
|
76
|
+
loading,
|
|
77
|
+
onLogin,
|
|
78
|
+
className,
|
|
79
|
+
translations
|
|
80
|
+
}) => jsx(I18nContext.Consumer, {
|
|
81
|
+
children: ({
|
|
82
|
+
translate
|
|
83
|
+
}) => {
|
|
84
|
+
var _translations$login;
|
|
85
|
+
return jsx("div", {
|
|
86
|
+
className: classNames(styles.profileEmpty, className),
|
|
87
|
+
children: jsx(Button, {
|
|
88
|
+
primary: true,
|
|
89
|
+
"data-test": 'ring-header-login-button',
|
|
90
|
+
disabled: loading,
|
|
91
|
+
loader: loading,
|
|
92
|
+
onClick: onLogin,
|
|
93
|
+
children: (_translations$login = translations?.login) !== null && _translations$login !== void 0 ? _translations$login : translate('login')
|
|
94
|
+
})
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
})
|
|
98
|
+
};
|
|
99
|
+
static contextType = I18nContext;
|
|
100
|
+
static Size = Size;
|
|
79
101
|
render() {
|
|
80
|
-
var _translations$applyCh, _translations$
|
|
81
|
-
const
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
props = _objectWithoutProperties(_this$props, _excluded);
|
|
102
|
+
var _translations$applyCh, _translations$login2, _translations$profile, _translations$switchU, _translations$logout;
|
|
103
|
+
const {
|
|
104
|
+
className,
|
|
105
|
+
activeClassName,
|
|
106
|
+
closeOnSelect,
|
|
107
|
+
hasUpdates,
|
|
108
|
+
onLogout,
|
|
109
|
+
user,
|
|
110
|
+
profileUrl,
|
|
111
|
+
LinkComponent,
|
|
112
|
+
onSwitchUser,
|
|
113
|
+
renderPopupItems,
|
|
114
|
+
onRevertPostponement,
|
|
115
|
+
showApplyChangedUser,
|
|
116
|
+
showName,
|
|
117
|
+
showLogIn,
|
|
118
|
+
showLogOut,
|
|
119
|
+
showSwitchUser,
|
|
120
|
+
renderGuest,
|
|
121
|
+
translations,
|
|
122
|
+
size,
|
|
123
|
+
round,
|
|
124
|
+
loading,
|
|
125
|
+
onLogin,
|
|
126
|
+
menuProps,
|
|
127
|
+
onShow,
|
|
128
|
+
onHide,
|
|
129
|
+
...props
|
|
130
|
+
} = this.props;
|
|
110
131
|
const {
|
|
111
132
|
translate
|
|
112
133
|
} = this.context;
|
|
113
134
|
if (!user) {
|
|
114
|
-
return jsx("div",
|
|
135
|
+
return jsx("div", {
|
|
136
|
+
...props,
|
|
115
137
|
className: classNames(styles.profileEmpty, className),
|
|
116
138
|
children: jsx(Avatar, {
|
|
117
139
|
size: size,
|
|
118
140
|
round: round
|
|
119
141
|
})
|
|
120
|
-
})
|
|
142
|
+
});
|
|
121
143
|
}
|
|
122
144
|
if (user.guest) {
|
|
123
145
|
return renderGuest(this.props);
|
|
@@ -142,32 +164,33 @@ class Profile extends PureComponent {
|
|
|
142
164
|
});
|
|
143
165
|
const items = [showApplyChangedUser && {
|
|
144
166
|
rgItemType,
|
|
145
|
-
label: (_translations$applyCh = translations
|
|
167
|
+
label: (_translations$applyCh = translations?.applyChangedUser) !== null && _translations$applyCh !== void 0 ? _translations$applyCh : translate('applyChangedUser'),
|
|
146
168
|
className: styles.profileMenuItem,
|
|
147
169
|
onClick: onRevertPostponement
|
|
148
170
|
}, showLogIn && {
|
|
149
171
|
rgItemType,
|
|
150
|
-
label: (_translations$
|
|
172
|
+
label: (_translations$login2 = translations?.login) !== null && _translations$login2 !== void 0 ? _translations$login2 : translate('login'),
|
|
151
173
|
className: styles.profileMenuItem,
|
|
152
174
|
onClick: onRevertPostponement
|
|
153
175
|
}, {
|
|
154
176
|
rgItemType: PopupMenu.ListProps.Type.LINK,
|
|
155
|
-
label: (_translations$profile = translations
|
|
177
|
+
label: (_translations$profile = translations?.profile) !== null && _translations$profile !== void 0 ? _translations$profile : translate('profile'),
|
|
156
178
|
target: '_self',
|
|
157
179
|
// Full page reload in Angular
|
|
158
180
|
href: profileUrl,
|
|
159
181
|
LinkComponent
|
|
160
182
|
}, showSwitchUser && {
|
|
161
183
|
rgItemType,
|
|
162
|
-
label: (_translations$switchU = translations
|
|
184
|
+
label: (_translations$switchU = translations?.switchUser) !== null && _translations$switchU !== void 0 ? _translations$switchU : translate('switchUser'),
|
|
163
185
|
className: styles.profileMenuItem,
|
|
164
186
|
onClick: onSwitchUser
|
|
165
187
|
}, showLogOut && {
|
|
166
188
|
rgItemType,
|
|
167
|
-
label: (_translations$logout = translations
|
|
189
|
+
label: (_translations$logout = translations?.logout) !== null && _translations$logout !== void 0 ? _translations$logout : translate('logout'),
|
|
168
190
|
onClick: onLogout
|
|
169
191
|
}].filter(isTruthy);
|
|
170
|
-
return jsx(DropdownMenu,
|
|
192
|
+
return jsx(DropdownMenu, {
|
|
193
|
+
...props,
|
|
171
194
|
onShow: onShow,
|
|
172
195
|
onHide: onHide,
|
|
173
196
|
title: user.name,
|
|
@@ -176,48 +199,15 @@ class Profile extends PureComponent {
|
|
|
176
199
|
"data-test": 'ring-profile',
|
|
177
200
|
className: classNames(styles.profile, className),
|
|
178
201
|
activeClassName: activeClassName,
|
|
179
|
-
menuProps:
|
|
202
|
+
menuProps: {
|
|
180
203
|
closeOnSelect,
|
|
181
204
|
left: -2,
|
|
182
205
|
top: -8,
|
|
183
|
-
sidePadding: 32
|
|
184
|
-
|
|
185
|
-
}));
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
_defineProperty(Profile, "defaultProps", {
|
|
189
|
-
closeOnSelect: true,
|
|
190
|
-
renderPopupItems: items => items,
|
|
191
|
-
size: Size.Size32,
|
|
192
|
-
renderGuest: _ref => {
|
|
193
|
-
let {
|
|
194
|
-
loading,
|
|
195
|
-
onLogin,
|
|
196
|
-
className,
|
|
197
|
-
translations
|
|
198
|
-
} = _ref;
|
|
199
|
-
return jsx(I18nContext.Consumer, {
|
|
200
|
-
children: _ref2 => {
|
|
201
|
-
var _translations$login2;
|
|
202
|
-
let {
|
|
203
|
-
translate
|
|
204
|
-
} = _ref2;
|
|
205
|
-
return jsx("div", {
|
|
206
|
-
className: classNames(styles.profileEmpty, className),
|
|
207
|
-
children: jsx(Button, {
|
|
208
|
-
primary: true,
|
|
209
|
-
"data-test": 'ring-header-login-button',
|
|
210
|
-
disabled: loading,
|
|
211
|
-
loader: loading,
|
|
212
|
-
onClick: onLogin,
|
|
213
|
-
children: (_translations$login2 = translations === null || translations === void 0 ? void 0 : translations.login) !== null && _translations$login2 !== void 0 ? _translations$login2 : translate('login')
|
|
214
|
-
})
|
|
215
|
-
});
|
|
206
|
+
sidePadding: 32,
|
|
207
|
+
...menuProps
|
|
216
208
|
}
|
|
217
209
|
});
|
|
218
210
|
}
|
|
219
|
-
}
|
|
220
|
-
_defineProperty(Profile, "contextType", I18nContext);
|
|
221
|
-
_defineProperty(Profile, "Size", Size);
|
|
211
|
+
}
|
|
222
212
|
|
|
223
213
|
export { Profile as default };
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import '../_helpers/_rollupPluginBabelHelpers.js';
|
|
2
1
|
import 'react/jsx-runtime';
|
|
3
2
|
import 'react';
|
|
4
3
|
import '../link/link.js';
|
|
5
4
|
export { S as default } from '../_helpers/services-link.js';
|
|
6
5
|
import 'classnames';
|
|
7
6
|
import '../global/data-tests.js';
|
|
8
|
-
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
9
7
|
import '../link/clickable-link.js';
|
|
10
8
|
import '../_helpers/link.js';
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import { _ as _defineProperty, a as _objectWithoutProperties, b as _objectSpread2 } from '../_helpers/_rollupPluginBabelHelpers.js';
|
|
2
|
-
import 'core-js/modules/es.array.sort.js';
|
|
3
|
-
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
4
1
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
5
2
|
import { PureComponent } from 'react';
|
|
6
3
|
import servicesIcon from '@jetbrains/icons/services-20px';
|
|
@@ -20,8 +17,6 @@ import 'util-deprecate';
|
|
|
20
17
|
import '../icon/icon.js';
|
|
21
18
|
import '../icon/icon.constants.js';
|
|
22
19
|
import '../_helpers/icon-svg.js';
|
|
23
|
-
import 'core-js/modules/es.regexp.exec.js';
|
|
24
|
-
import 'core-js/modules/es.string.replace.js';
|
|
25
20
|
import '../global/memoize.js';
|
|
26
21
|
import '../link/clickable-link.js';
|
|
27
22
|
import '../global/controls-height.js';
|
|
@@ -45,49 +40,52 @@ import '../_helpers/header.js';
|
|
|
45
40
|
import '../link/link.js';
|
|
46
41
|
import '../_helpers/link.js';
|
|
47
42
|
|
|
48
|
-
const _excluded = ["clientId", "loading", "services", "initShown", "theme"];
|
|
49
43
|
const makeAnchor = loading => {
|
|
50
|
-
const Anchor =
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
"aria-label": 'Services'
|
|
59
|
-
});
|
|
60
|
-
};
|
|
44
|
+
const Anchor = ({
|
|
45
|
+
active
|
|
46
|
+
}) => jsx(HeaderIcon, {
|
|
47
|
+
loader: loading,
|
|
48
|
+
active: active,
|
|
49
|
+
icon: servicesIcon,
|
|
50
|
+
"aria-label": 'Services'
|
|
51
|
+
});
|
|
61
52
|
return Anchor;
|
|
62
53
|
};
|
|
63
54
|
class Services extends PureComponent {
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
55
|
+
static sort = (a, b) => {
|
|
56
|
+
const aApplicationName = a.applicationName || '';
|
|
57
|
+
const bApplicationName = b.applicationName || '';
|
|
58
|
+
return aApplicationName.localeCompare(bApplicationName) || a.name.localeCompare(b.name);
|
|
59
|
+
};
|
|
60
|
+
static defaultProps = {
|
|
61
|
+
theme: Theme.DARK
|
|
62
|
+
};
|
|
63
|
+
static Link = ServicesLink;
|
|
64
|
+
serviceIsActive = service => service.id === this.props.clientId;
|
|
68
65
|
render() {
|
|
69
|
-
const
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
props = _objectWithoutProperties(_this$props, _excluded);
|
|
66
|
+
const {
|
|
67
|
+
clientId,
|
|
68
|
+
loading,
|
|
69
|
+
services,
|
|
70
|
+
initShown,
|
|
71
|
+
theme,
|
|
72
|
+
...props
|
|
73
|
+
} = this.props;
|
|
78
74
|
if (!services) {
|
|
79
|
-
return jsx(HeaderIcon,
|
|
75
|
+
return jsx(HeaderIcon, {
|
|
76
|
+
...props,
|
|
80
77
|
loader: loading,
|
|
81
78
|
active: loading,
|
|
82
79
|
icon: servicesIcon,
|
|
83
80
|
"aria-label": 'Services'
|
|
84
|
-
})
|
|
81
|
+
});
|
|
85
82
|
}
|
|
86
83
|
const sortedServices = [...services].sort(Services.sort);
|
|
87
84
|
const servicesWithIcons = sortedServices.filter(service => service.iconUrl && service.homeUrl);
|
|
88
85
|
const servicesWithOutIcons = sortedServices.filter(service => !service.iconUrl && service.homeUrl);
|
|
89
86
|
const separatorIsRequired = servicesWithIcons.length !== 0 && servicesWithOutIcons.length !== 0;
|
|
90
|
-
return jsx(Dropdown,
|
|
87
|
+
return jsx(Dropdown, {
|
|
88
|
+
...props,
|
|
91
89
|
anchor: makeAnchor(loading),
|
|
92
90
|
initShown: initShown,
|
|
93
91
|
children: jsxs(Popup, {
|
|
@@ -113,17 +111,8 @@ class Services extends PureComponent {
|
|
|
113
111
|
}, service.id);
|
|
114
112
|
})]
|
|
115
113
|
})
|
|
116
|
-
})
|
|
114
|
+
});
|
|
117
115
|
}
|
|
118
116
|
}
|
|
119
|
-
_defineProperty(Services, "sort", (a, b) => {
|
|
120
|
-
const aApplicationName = a.applicationName || '';
|
|
121
|
-
const bApplicationName = b.applicationName || '';
|
|
122
|
-
return aApplicationName.localeCompare(bApplicationName) || a.name.localeCompare(b.name);
|
|
123
|
-
});
|
|
124
|
-
_defineProperty(Services, "defaultProps", {
|
|
125
|
-
theme: Theme.DARK
|
|
126
|
-
});
|
|
127
|
-
_defineProperty(Services, "Link", ServicesLink);
|
|
128
117
|
|
|
129
118
|
export { Services as default };
|