@jetbrains/ring-ui 5.0.127 → 5.0.128
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/alert/alert.js +2 -1
- package/components/alert/container.js +2 -1
- package/components/auth/auth__core.js +2 -1
- package/components/auth/request-builder.js +2 -1
- package/components/auth/response-parser.js +2 -1
- package/components/auth/token-validator.js +2 -1
- package/components/auth-dialog/auth-dialog.js +2 -1
- package/components/avatar/avatar.js +2 -1
- package/components/badge/badge.js +2 -1
- package/components/button/button.js +2 -1
- package/components/button-group/button-group.js +2 -1
- package/components/button-group/caption.js +2 -1
- package/components/button-set/button-set.js +2 -1
- package/components/button-toolbar/button-toolbar.js +2 -1
- package/components/caret/caret.js +2 -1
- package/components/checkbox/checkbox.js +2 -1
- package/components/code/code.js +2 -1
- package/components/confirm/confirm.js +2 -1
- package/components/content-layout/content-layout.js +2 -1
- package/components/content-layout/sidebar.js +2 -1
- package/components/data-list/data-list.js +2 -1
- package/components/data-list/item.js +2 -1
- package/components/date-picker/date-input.js +2 -1
- package/components/date-picker/date-picker.js +2 -1
- package/components/date-picker/date-popup.js +2 -1
- package/components/date-picker/day.js +2 -1
- package/components/date-picker/month-slider.js +2 -1
- package/components/date-picker/years.js +2 -1
- package/components/dialog/dialog.d.ts +4 -16
- package/components/dialog/dialog.js +6 -3
- package/components/dropdown/dropdown.js +2 -1
- package/components/error-bubble/error-bubble.js +2 -1
- package/components/error-message/error-message.js +2 -1
- package/components/footer/footer.js +1 -0
- package/components/global/react-dom-renderer.js +2 -1
- package/components/grid/col.js +2 -1
- package/components/grid/grid.js +2 -1
- package/components/grid/row.js +2 -1
- package/components/group/group.js +2 -1
- package/components/header/logo.js +2 -1
- package/components/header/profile.js +2 -1
- package/components/header/services-link.js +2 -1
- package/components/header/services.js +2 -1
- package/components/header/smart-profile.js +2 -1
- package/components/header/smart-services.js +2 -1
- package/components/header/tray-icon.js +2 -1
- package/components/header/tray.js +2 -1
- package/components/hub-source/hub-source.js +2 -1
- package/components/icon/icon.js +2 -1
- package/components/input/input.js +2 -1
- package/components/island/island.js +2 -1
- package/components/island-legacy/content-legacy.js +2 -1
- package/components/island-legacy/header-legacy.js +2 -1
- package/components/island-legacy/island-legacy.js +2 -1
- package/components/link/clickableLink.js +2 -1
- package/components/list/list.js +2 -1
- package/components/list/list__hint.js +2 -1
- package/components/list/list__users-groups-source.js +2 -1
- package/components/loader/loader.js +2 -1
- package/components/loader/loader__core.js +2 -1
- package/components/loader-screen/loader-screen.js +2 -1
- package/components/login-dialog/login-dialog.js +2 -1
- package/components/message/message.js +2 -1
- package/components/pager/pager.js +2 -1
- package/components/panel/panel.js +2 -1
- package/components/permissions/permissions.js +2 -1
- package/components/permissions/permissions__cache.js +2 -1
- package/components/popup/popup.js +2 -1
- package/components/popup-menu/popup-menu.js +2 -1
- package/components/progress-bar/progress-bar.js +2 -1
- package/components/query-assist/query-assist.js +4 -3
- package/components/radio/radio.js +2 -1
- package/components/radio/radio__item.js +2 -1
- package/components/select/select.js +2 -1
- package/components/select/select__filter.js +2 -1
- package/components/select/select__popup.js +4 -2
- package/components/shortcuts/shortcuts.js +2 -1
- package/components/storage/storage__fallback.js +2 -1
- package/components/tab-trap/tab-trap.js +2 -1
- package/components/table/cell.js +2 -1
- package/components/table/header-cell.js +2 -1
- package/components/table/header.js +2 -1
- package/components/table/multitable.js +2 -1
- package/components/table/row.js +3 -2
- package/components/table/table.js +4 -2
- package/components/tabs/smart-tabs.js +2 -1
- package/components/tabs/tab.js +2 -1
- package/components/tag/tag.js +2 -1
- package/components/tags-input/tags-input.d.ts +1 -1
- package/components/tags-input/tags-input.js +3 -2
- package/components/tags-list/tags-list.js +2 -1
- package/components/text/text.js +2 -1
- package/components/tooltip/tooltip.js +2 -1
- package/components/user-agreement/user-agreement.js +2 -1
- package/components/user-card/card.js +2 -1
- package/components/user-card/smart-user-card-tooltip.d.ts +1 -1
- package/components/user-card/smart-user-card-tooltip.js +2 -1
- package/components/user-card/tooltip.js +2 -1
- package/dist/_helpers/_rollupPluginBabelHelpers.js +1 -29
- package/dist/_helpers/anchor.js +1 -1
- package/dist/_helpers/card.js +44 -47
- package/dist/_helpers/footer.js +1 -0
- package/dist/_helpers/select__filter.js +10 -13
- package/dist/_helpers/services-link.js +10 -10
- package/dist/_helpers/sidebar.js +34 -37
- package/dist/_helpers/theme.js +1 -1
- package/dist/_helpers/title.js +12 -16
- package/dist/alert/alert.js +63 -66
- package/dist/alert/container.js +5 -5
- package/dist/alert-service/alert-service.js +5 -7
- package/dist/analytics/analytics.js +1 -2
- package/dist/analytics/analytics__custom-plugin.js +6 -8
- package/dist/auth/auth.js +1 -1
- package/dist/auth/auth__core.js +26 -26
- package/dist/auth/background-flow.js +4 -5
- package/dist/auth/iframe-flow.js +12 -12
- package/dist/auth/landing.js +1 -1
- package/dist/auth/request-builder.js +3 -5
- package/dist/auth/response-parser.js +5 -6
- package/dist/auth/storage.js +12 -12
- package/dist/auth/token-validator.js +13 -16
- package/dist/auth/window-flow.js +18 -19
- package/dist/auth-dialog/auth-dialog.js +54 -57
- package/dist/auth-dialog-service/auth-dialog-service.js +1 -1
- package/dist/auth-ng/auth-ng.js +1 -1
- package/dist/avatar/avatar.js +30 -33
- package/dist/avatar-ng/avatar-ng.js +1 -1
- package/dist/badge/badge.js +10 -10
- package/dist/badge-ng/badge-ng.js +1 -1
- package/dist/breadcrumb-ng/breadcrumb-ng.js +0 -1
- package/dist/button/button.js +24 -27
- package/dist/button-group/button-group.js +5 -5
- package/dist/button-group/caption.js +4 -4
- package/dist/button-ng/button-ng.js +68 -69
- package/dist/button-set/button-set.js +6 -6
- package/dist/button-toolbar/button-toolbar.js +6 -6
- package/dist/caret/caret.js +2 -4
- package/dist/checkbox/checkbox.js +27 -30
- package/dist/checkbox-ng/checkbox-ng.js +0 -1
- package/dist/code/code.js +17 -21
- package/dist/confirm/confirm.js +31 -34
- package/dist/confirm-ng/confirm-ng.js +1 -1
- package/dist/confirm-service/confirm-service.js +1 -1
- package/dist/content-layout/content-layout.js +17 -20
- package/dist/contenteditable/contenteditable.js +11 -11
- package/dist/data-list/data-list.js +49 -55
- package/dist/data-list/item.js +64 -67
- package/dist/data-list/selection.js +0 -1
- package/dist/data-list/title.js +1 -1
- package/dist/data-list-ng/data-list-ng.js +1 -1
- package/dist/date-picker/date-input.js +39 -42
- package/dist/date-picker/date-picker.js +162 -165
- package/dist/date-picker/date-popup.js +119 -119
- package/dist/date-picker/day.js +34 -38
- package/dist/date-picker/month-names.js +11 -14
- package/dist/date-picker/month-slider.js +24 -28
- package/dist/date-picker/month.js +1 -1
- package/dist/date-picker/months.js +1 -1
- package/dist/date-picker/years.js +9 -13
- package/dist/dialog/dialog.d.ts +4 -16
- package/dist/dialog/dialog.js +68 -65
- package/dist/dialog-ng/dialog-ng.js +21 -22
- package/dist/docked-panel-ng/docked-panel-ng.js +0 -1
- package/dist/dropdown/dropdown.js +101 -104
- package/dist/dropdown-menu/dropdown-menu.js +1 -1
- package/dist/editable-heading/editable-heading.js +1 -1
- package/dist/error-bubble/error-bubble.js +6 -6
- package/dist/error-message/error-message.js +10 -10
- package/dist/error-message-ng/error-message-ng.js +0 -1
- package/dist/footer-ng/footer-ng.js +19 -21
- package/dist/global/angular-component-factory.js +2 -3
- package/dist/global/dom.js +1 -5
- package/dist/global/focus-sensor-hoc.js +58 -61
- package/dist/global/listeners.js +1 -5
- package/dist/global/react-dom-renderer.js +8 -12
- package/dist/global/rerender-hoc.js +1 -5
- package/dist/global/ring-angular-component.js +1 -3
- package/dist/grid/col.js +13 -14
- package/dist/grid/grid.js +5 -5
- package/dist/grid/row.js +16 -17
- package/dist/group/group.js +5 -5
- package/dist/header/header.js +10 -10
- package/dist/header/logo.js +9 -9
- package/dist/header/profile.js +58 -58
- package/dist/header/services.js +19 -22
- package/dist/header/smart-profile.js +40 -43
- package/dist/header/smart-services.js +28 -31
- package/dist/header/tray-icon.js +6 -6
- package/dist/header/tray.js +5 -5
- package/dist/heading/heading.js +1 -1
- package/dist/heading-ng/heading-ng.js +1 -1
- package/dist/http/http.js +111 -107
- package/dist/http/http.mock.js +3 -4
- package/dist/hub-source/hub-source.js +7 -9
- package/dist/hub-source/hub-source__user.js +0 -1
- package/dist/hub-source/hub-source__users-groups.js +4 -5
- package/dist/icon/icon.js +18 -18
- package/dist/icon/icon__svg.js +1 -1
- package/dist/icon-ng/icon-ng.js +0 -1
- package/dist/input/input.js +35 -38
- package/dist/input-ng/input-ng.js +25 -26
- package/dist/island/adaptive-island-hoc.js +21 -25
- package/dist/island/content.js +62 -65
- package/dist/island/header.js +11 -11
- package/dist/island/island.js +8 -8
- package/dist/island-legacy/content-legacy.js +5 -5
- package/dist/island-legacy/header-legacy.js +5 -5
- package/dist/island-legacy/island-legacy.js +5 -5
- package/dist/link/clickableLink.js +27 -30
- package/dist/link/link.js +16 -16
- package/dist/list/list.js +389 -391
- package/dist/list/list__custom.js +6 -10
- package/dist/list/list__hint.js +3 -4
- package/dist/list/list__item.js +4 -7
- package/dist/list/list__link.js +1 -1
- package/dist/list/list__users-groups-source.js +3 -3
- package/dist/loader/loader.js +16 -19
- package/dist/loader/loader__core.js +62 -62
- package/dist/loader-inline/loader-inline.js +6 -6
- package/dist/loader-ng/loader-ng.js +3 -4
- package/dist/loader-screen/loader-screen.js +6 -6
- package/dist/loader-screen-ng/loader-screen-ng.js +0 -1
- package/dist/login-dialog/login-dialog.js +55 -58
- package/dist/login-dialog/service.js +1 -1
- package/dist/markdown/code.js +0 -1
- package/dist/markdown/markdown.js +1 -1
- package/dist/message/message.js +22 -25
- package/dist/old-browsers-message/white-list.js +2 -2
- package/dist/pager/pager.js +55 -58
- package/dist/pager-ng/pager-ng.js +1 -1
- package/dist/panel/panel.js +5 -5
- package/dist/panel-ng/panel-ng.js +0 -1
- package/dist/permissions/permissions.js +14 -16
- package/dist/permissions/permissions__cache.js +4 -6
- package/dist/permissions-ng/permissions-ng.js +1 -1
- package/dist/place-under-ng/place-under-ng.js +0 -1
- package/dist/popup/popup.js +118 -121
- package/dist/popup/popup.target.js +1 -1
- package/dist/popup/position.js +0 -1
- package/dist/popup-menu/popup-menu.js +19 -22
- package/dist/progress-bar/progress-bar.js +41 -44
- package/dist/progress-bar-ng/progress-bar-ng.js +1 -1
- package/dist/promised-click-ng/promised-click-ng.js +0 -1
- package/dist/query-assist/query-assist.js +507 -501
- package/dist/query-assist/query-assist__suggestions.js +1 -1
- package/dist/query-assist-ng/query-assist-ng.js +1 -1
- package/dist/radio/radio.js +10 -13
- package/dist/radio/radio__item.js +19 -22
- package/dist/select/select.js +350 -349
- package/dist/select/select__popup.js +148 -152
- package/dist/select-ng/select-ng.js +1 -1
- package/dist/select-ng/select-ng__lazy.js +4 -4
- package/dist/select-ng/select-ng__options.js +14 -15
- package/dist/shortcuts/core.js +35 -36
- package/dist/shortcuts/shortcuts-hoc.js +7 -11
- package/dist/shortcuts/shortcuts.js +10 -11
- package/dist/shortcuts-hint-ng/shortcuts-hint-ng.js +0 -1
- package/dist/shortcuts-ng/shortcuts-ng.js +0 -1
- package/dist/sidebar-ng/sidebar-ng.js +0 -1
- package/dist/storage/storage.js +1 -1
- package/dist/storage/storage__fallback.js +8 -10
- package/dist/storage/storage__local.js +2 -2
- package/dist/style.css +1 -1
- package/dist/tab-trap/tab-trap.js +84 -86
- package/dist/table/cell.js +6 -6
- package/dist/table/disable-hover-hoc.js +23 -25
- package/dist/table/header-cell.js +28 -31
- package/dist/table/header.js +58 -61
- package/dist/table/multitable.js +91 -95
- package/dist/table/row-with-focus-sensor.js +15 -18
- package/dist/table/row.js +51 -54
- package/dist/table/selection-shortcuts-hoc.js +145 -147
- package/dist/table/selection.js +7 -9
- package/dist/table/smart-table.js +21 -24
- package/dist/table/table.js +103 -109
- package/dist/table-legacy-ng/table-legacy-ng.js +1 -1
- package/dist/table-legacy-ng/table-legacy-ng__pager.js +1 -1
- package/dist/table-legacy-ng/table-legacy-ng__selection.js +1 -3
- package/dist/table-legacy-ng/table-legacy-ng__toolbar.js +0 -1
- package/dist/table-ng/smart-table-ng.js +1 -1
- package/dist/table-ng/table-ng.js +1 -1
- package/dist/tabs/collapsible-more.js +1 -1
- package/dist/tabs/collapsible-tab.js +1 -1
- package/dist/tabs/dumb-tabs.js +46 -49
- package/dist/tabs/smart-tabs.js +10 -10
- package/dist/tabs/tab.js +7 -8
- package/dist/tag/tag.js +42 -45
- package/dist/tags-input/tags-input.d.ts +1 -1
- package/dist/tags-input/tags-input.js +214 -213
- package/dist/tags-input-ng/tags-input-ng.js +1 -1
- package/dist/tags-list/tags-list.js +20 -20
- package/dist/template-ng/template-ng.js +25 -26
- package/dist/text/text.js +6 -6
- package/dist/toggle/toggle.js +19 -19
- package/dist/toggle-ng/toggle-ng.js +1 -1
- package/dist/tooltip/tooltip.js +86 -89
- package/dist/tooltip-ng/tooltip-ng.js +1 -1
- package/dist/user-agreement/service.js +207 -205
- package/dist/user-agreement/user-agreement.js +39 -42
- package/dist/user-card/smart-user-card-tooltip.d.ts +1 -1
- package/dist/user-card/smart-user-card-tooltip.js +32 -35
- package/dist/user-card/tooltip.js +26 -26
- package/dist/user-card-ng/user-card-ng.js +1 -1
- package/package.json +15 -15
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { _ as _defineProperty } from '../_helpers/_rollupPluginBabelHelpers.js';
|
|
2
1
|
import angular from 'angular';
|
|
3
2
|
import React from 'react';
|
|
4
3
|
import { unmountComponentAtNode, render } from './react-render-adapter.js';
|
|
@@ -17,6 +16,8 @@ function createAngularComponent(Component) {
|
|
|
17
16
|
bindings[key] = '<';
|
|
18
17
|
});
|
|
19
18
|
class AngularComponent extends RingAngularComponent {
|
|
19
|
+
static bindings = bindings;
|
|
20
|
+
static transclude = true;
|
|
20
21
|
$postLink() {
|
|
21
22
|
const {
|
|
22
23
|
$transclude
|
|
@@ -63,8 +64,6 @@ function createAngularComponent(Component) {
|
|
|
63
64
|
}) : null), container);
|
|
64
65
|
}
|
|
65
66
|
}
|
|
66
|
-
_defineProperty(AngularComponent, "bindings", bindings);
|
|
67
|
-
_defineProperty(AngularComponent, "transclude", true);
|
|
68
67
|
AngularComponent.$inject = ['$scope', '$element', '$transclude'];
|
|
69
68
|
return AngularComponent;
|
|
70
69
|
}
|
package/dist/global/dom.js
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { _ as _defineProperty } from '../_helpers/_rollupPluginBabelHelpers.js';
|
|
2
|
-
|
|
3
1
|
/**
|
|
4
2
|
* @name DOM
|
|
5
3
|
*/
|
|
@@ -88,9 +86,7 @@ function resetRootStyleProperties() {
|
|
|
88
86
|
Object.keys(properties).forEach(key => rootStyle.removeProperty(key));
|
|
89
87
|
}
|
|
90
88
|
class Listeners {
|
|
91
|
-
|
|
92
|
-
_defineProperty(this, "_all", new Set());
|
|
93
|
-
}
|
|
89
|
+
_all = new Set();
|
|
94
90
|
add(el, event, handler, options) {
|
|
95
91
|
el.addEventListener(event, handler, options);
|
|
96
92
|
const dispatchFn = () => el.removeEventListener(event, handler, options);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as
|
|
1
|
+
import { _ as _extends } from '../_helpers/_rollupPluginBabelHelpers.js';
|
|
2
2
|
import React, { Component } from 'react';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import { refObject } from './prop-types.js';
|
|
@@ -22,66 +22,9 @@ function extractPropTypes(_ref) {
|
|
|
22
22
|
}
|
|
23
23
|
function focusSensorHOC(ComposedComponent) {
|
|
24
24
|
class FocusSensor extends Component {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
focused: this.props.focused
|
|
29
|
-
});
|
|
30
|
-
_defineProperty(this, "node", void 0);
|
|
31
|
-
_defineProperty(this, "_skipNextCapture", false);
|
|
32
|
-
_defineProperty(this, "onRefUpdate", node => {
|
|
33
|
-
if (node) {
|
|
34
|
-
this.node = node;
|
|
35
|
-
}
|
|
36
|
-
});
|
|
37
|
-
_defineProperty(this, "onFocusCapture", _ref2 => {
|
|
38
|
-
let {
|
|
39
|
-
target
|
|
40
|
-
} = _ref2;
|
|
41
|
-
if (this._skipNextCapture) {
|
|
42
|
-
this._skipNextCapture = false;
|
|
43
|
-
return;
|
|
44
|
-
}
|
|
45
|
-
const focused = target instanceof Node && this.node?.contains(target);
|
|
46
|
-
if (focused && !this.state.focused) {
|
|
47
|
-
this.setState({
|
|
48
|
-
focused: true
|
|
49
|
-
});
|
|
50
|
-
this.props.onFocus?.();
|
|
51
|
-
}
|
|
52
|
-
});
|
|
53
|
-
_defineProperty(this, "onBlurCapture", _ref3 => {
|
|
54
|
-
let {
|
|
55
|
-
target
|
|
56
|
-
} = _ref3;
|
|
57
|
-
const {
|
|
58
|
-
state: {
|
|
59
|
-
focused
|
|
60
|
-
},
|
|
61
|
-
node
|
|
62
|
-
} = this;
|
|
63
|
-
if (focused) {
|
|
64
|
-
setTimeout(() => {
|
|
65
|
-
const blurred = target instanceof Node && node?.contains(target) && !node.contains(document.activeElement);
|
|
66
|
-
if (blurred) {
|
|
67
|
-
this.setState({
|
|
68
|
-
focused: false
|
|
69
|
-
});
|
|
70
|
-
this.props.onBlur?.();
|
|
71
|
-
}
|
|
72
|
-
}, 1);
|
|
73
|
-
}
|
|
74
|
-
});
|
|
75
|
-
_defineProperty(this, "onFocusRestore", () => {
|
|
76
|
-
this._skipNextCapture = true;
|
|
77
|
-
this.node?.focus({
|
|
78
|
-
preventScroll: !this.props.scrollOnTableFocus
|
|
79
|
-
});
|
|
80
|
-
});
|
|
81
|
-
_defineProperty(this, "onFocusReset", () => {
|
|
82
|
-
this.node?.blur();
|
|
83
|
-
});
|
|
84
|
-
}
|
|
25
|
+
state = {
|
|
26
|
+
focused: this.props.focused
|
|
27
|
+
};
|
|
85
28
|
componentDidMount() {
|
|
86
29
|
const {
|
|
87
30
|
props: {
|
|
@@ -116,6 +59,60 @@ function focusSensorHOC(ComposedComponent) {
|
|
|
116
59
|
document.removeEventListener('focus', this.onFocusCapture, true);
|
|
117
60
|
document.removeEventListener('blur', this.onBlurCapture, true);
|
|
118
61
|
}
|
|
62
|
+
node;
|
|
63
|
+
_skipNextCapture = false;
|
|
64
|
+
onRefUpdate = node => {
|
|
65
|
+
if (node) {
|
|
66
|
+
this.node = node;
|
|
67
|
+
}
|
|
68
|
+
};
|
|
69
|
+
onFocusCapture = _ref2 => {
|
|
70
|
+
let {
|
|
71
|
+
target
|
|
72
|
+
} = _ref2;
|
|
73
|
+
if (this._skipNextCapture) {
|
|
74
|
+
this._skipNextCapture = false;
|
|
75
|
+
return;
|
|
76
|
+
}
|
|
77
|
+
const focused = target instanceof Node && this.node?.contains(target);
|
|
78
|
+
if (focused && !this.state.focused) {
|
|
79
|
+
this.setState({
|
|
80
|
+
focused: true
|
|
81
|
+
});
|
|
82
|
+
this.props.onFocus?.();
|
|
83
|
+
}
|
|
84
|
+
};
|
|
85
|
+
onBlurCapture = _ref3 => {
|
|
86
|
+
let {
|
|
87
|
+
target
|
|
88
|
+
} = _ref3;
|
|
89
|
+
const {
|
|
90
|
+
state: {
|
|
91
|
+
focused
|
|
92
|
+
},
|
|
93
|
+
node
|
|
94
|
+
} = this;
|
|
95
|
+
if (focused) {
|
|
96
|
+
setTimeout(() => {
|
|
97
|
+
const blurred = target instanceof Node && node?.contains(target) && !node.contains(document.activeElement);
|
|
98
|
+
if (blurred) {
|
|
99
|
+
this.setState({
|
|
100
|
+
focused: false
|
|
101
|
+
});
|
|
102
|
+
this.props.onBlur?.();
|
|
103
|
+
}
|
|
104
|
+
}, 1);
|
|
105
|
+
}
|
|
106
|
+
};
|
|
107
|
+
onFocusRestore = () => {
|
|
108
|
+
this._skipNextCapture = true;
|
|
109
|
+
this.node?.focus({
|
|
110
|
+
preventScroll: !this.props.scrollOnTableFocus
|
|
111
|
+
});
|
|
112
|
+
};
|
|
113
|
+
onFocusReset = () => {
|
|
114
|
+
this.node?.blur();
|
|
115
|
+
};
|
|
119
116
|
render() {
|
|
120
117
|
const {
|
|
121
118
|
autofocus,
|
package/dist/global/listeners.js
CHANGED
|
@@ -1,9 +1,5 @@
|
|
|
1
|
-
import { _ as _defineProperty } from '../_helpers/_rollupPluginBabelHelpers.js';
|
|
2
|
-
|
|
3
1
|
class Listeners {
|
|
4
|
-
|
|
5
|
-
_defineProperty(this, "_all", new Map());
|
|
6
|
-
}
|
|
2
|
+
_all = new Map();
|
|
7
3
|
trigger() {
|
|
8
4
|
for (var _len = arguments.length, _ref = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
9
5
|
_ref[_key] = arguments[_key];
|
|
@@ -1,15 +1,11 @@
|
|
|
1
|
-
import { _ as _defineProperty } from '../_helpers/_rollupPluginBabelHelpers.js';
|
|
2
1
|
import React, { Component } from 'react';
|
|
3
2
|
import PropTypes from 'prop-types';
|
|
4
3
|
|
|
5
4
|
class Renderer extends Component {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
this.node = node;
|
|
11
|
-
});
|
|
12
|
-
}
|
|
5
|
+
static propTypes = {
|
|
6
|
+
className: PropTypes.string,
|
|
7
|
+
nodes: PropTypes.array
|
|
8
|
+
};
|
|
13
9
|
componentDidMount() {
|
|
14
10
|
const {
|
|
15
11
|
nodes
|
|
@@ -21,6 +17,10 @@ class Renderer extends Component {
|
|
|
21
17
|
nodes.forEach(nodeToRender => fragment.appendChild(nodeToRender));
|
|
22
18
|
this.node.appendChild(fragment);
|
|
23
19
|
}
|
|
20
|
+
node;
|
|
21
|
+
nodeRef = node => {
|
|
22
|
+
this.node = node;
|
|
23
|
+
};
|
|
24
24
|
render() {
|
|
25
25
|
const {
|
|
26
26
|
className
|
|
@@ -31,9 +31,5 @@ class Renderer extends Component {
|
|
|
31
31
|
});
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
|
-
_defineProperty(Renderer, "propTypes", {
|
|
35
|
-
className: PropTypes.string,
|
|
36
|
-
nodes: PropTypes.array
|
|
37
|
-
});
|
|
38
34
|
|
|
39
35
|
export { Renderer as default };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { _ as _defineProperty } from '../_helpers/_rollupPluginBabelHelpers.js';
|
|
2
1
|
import { createElement } from 'react';
|
|
3
2
|
import { render } from './react-render-adapter.js';
|
|
4
3
|
import composeRefs from './composeRefs.js';
|
|
@@ -12,10 +11,7 @@ import 'react-dom';
|
|
|
12
11
|
*/
|
|
13
12
|
function rerenderHOC(ComposedComponent) {
|
|
14
13
|
return class Rerenderer extends ComposedComponent {
|
|
15
|
-
|
|
16
|
-
super(...arguments);
|
|
17
|
-
_defineProperty(this, "_propsCache", this.props);
|
|
18
|
-
}
|
|
14
|
+
_propsCache = this.props;
|
|
19
15
|
rerender() {
|
|
20
16
|
let props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
21
17
|
let callback = arguments.length > 1 ? arguments[1] : undefined;
|
|
@@ -1,15 +1,13 @@
|
|
|
1
|
-
import { _ as _defineProperty } from '../_helpers/_rollupPluginBabelHelpers.js';
|
|
2
|
-
|
|
3
1
|
class RingAngularComponent {
|
|
4
2
|
static get controller() {
|
|
5
3
|
return this;
|
|
6
4
|
}
|
|
5
|
+
$inject = {};
|
|
7
6
|
constructor() {
|
|
8
7
|
var _this$constructor$$in;
|
|
9
8
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
10
9
|
args[_key] = arguments[_key];
|
|
11
10
|
}
|
|
12
|
-
_defineProperty(this, "$inject", {});
|
|
13
11
|
((_this$constructor$$in = this.constructor.$inject) !== null && _this$constructor$$in !== void 0 ? _this$constructor$$in : []).forEach((injectName, i) => {
|
|
14
12
|
this.$inject[injectName] = args[i];
|
|
15
13
|
});
|
package/dist/grid/col.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { _ as _defineProperty } from '../_helpers/_rollupPluginBabelHelpers.js';
|
|
2
1
|
import React, { Component } from 'react';
|
|
3
2
|
import PropTypes from 'prop-types';
|
|
4
3
|
import classNames from 'classnames';
|
|
@@ -30,6 +29,19 @@ function getClassNames(props) {
|
|
|
30
29
|
});
|
|
31
30
|
}
|
|
32
31
|
class Col extends Component {
|
|
32
|
+
static propTypes = {
|
|
33
|
+
xs: ModifierType,
|
|
34
|
+
sm: ModifierType,
|
|
35
|
+
md: ModifierType,
|
|
36
|
+
lg: ModifierType,
|
|
37
|
+
xsOffset: PropTypes.number,
|
|
38
|
+
smOffset: PropTypes.number,
|
|
39
|
+
mdOffset: PropTypes.number,
|
|
40
|
+
lgOffset: PropTypes.number,
|
|
41
|
+
reverse: PropTypes.bool,
|
|
42
|
+
className: PropTypes.string,
|
|
43
|
+
children: PropTypes.node
|
|
44
|
+
};
|
|
33
45
|
render() {
|
|
34
46
|
const {
|
|
35
47
|
children,
|
|
@@ -45,18 +57,5 @@ class Col extends Component {
|
|
|
45
57
|
}, children);
|
|
46
58
|
}
|
|
47
59
|
}
|
|
48
|
-
_defineProperty(Col, "propTypes", {
|
|
49
|
-
xs: ModifierType,
|
|
50
|
-
sm: ModifierType,
|
|
51
|
-
md: ModifierType,
|
|
52
|
-
lg: ModifierType,
|
|
53
|
-
xsOffset: PropTypes.number,
|
|
54
|
-
smOffset: PropTypes.number,
|
|
55
|
-
mdOffset: PropTypes.number,
|
|
56
|
-
lgOffset: PropTypes.number,
|
|
57
|
-
reverse: PropTypes.bool,
|
|
58
|
-
className: PropTypes.string,
|
|
59
|
-
children: PropTypes.node
|
|
60
|
-
});
|
|
61
60
|
|
|
62
61
|
export { Col as default };
|
package/dist/grid/grid.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as
|
|
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 };
|
package/dist/group/group.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as
|
|
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 };
|
package/dist/header/header.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as
|
|
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 };
|
package/dist/header/logo.js
CHANGED
|
@@ -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 };
|
package/dist/header/profile.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as
|
|
2
|
-
import 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 };
|
package/dist/header/services.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as
|
|
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
|
-
|
|
62
|
-
|
|
63
|
-
|
|
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 };
|