@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,4 @@
|
|
|
1
|
-
import { _ as
|
|
1
|
+
import { _ as _extends } from '../_helpers/_rollupPluginBabelHelpers.js';
|
|
2
2
|
import React, { PureComponent } from 'react';
|
|
3
3
|
import classNames from 'classnames';
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
@@ -9,6 +9,11 @@ import { m as modules_fd849143 } from '../_helpers/button-set.js';
|
|
|
9
9
|
* @name Button Set
|
|
10
10
|
*/
|
|
11
11
|
class ButtonSet extends PureComponent {
|
|
12
|
+
static propTypes = {
|
|
13
|
+
children: PropTypes.node,
|
|
14
|
+
className: PropTypes.string,
|
|
15
|
+
'data-test': PropTypes.string
|
|
16
|
+
};
|
|
12
17
|
render() {
|
|
13
18
|
const {
|
|
14
19
|
className,
|
|
@@ -23,10 +28,5 @@ class ButtonSet extends PureComponent {
|
|
|
23
28
|
}), children);
|
|
24
29
|
}
|
|
25
30
|
}
|
|
26
|
-
_defineProperty(ButtonSet, "propTypes", {
|
|
27
|
-
children: PropTypes.node,
|
|
28
|
-
className: PropTypes.string,
|
|
29
|
-
'data-test': PropTypes.string
|
|
30
|
-
});
|
|
31
31
|
|
|
32
32
|
export { ButtonSet as default };
|
|
@@ -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 classNames from 'classnames';
|
|
@@ -9,6 +9,11 @@ import { m as modules_34154ec0 } from '../_helpers/button-toolbar.js';
|
|
|
9
9
|
* @name Button Toolbar
|
|
10
10
|
*/
|
|
11
11
|
class ButtonToolbar extends PureComponent {
|
|
12
|
+
static propTypes = {
|
|
13
|
+
children: PropTypes.node,
|
|
14
|
+
className: PropTypes.string,
|
|
15
|
+
'data-test': PropTypes.string
|
|
16
|
+
};
|
|
12
17
|
render() {
|
|
13
18
|
const {
|
|
14
19
|
className,
|
|
@@ -22,10 +27,5 @@ class ButtonToolbar extends PureComponent {
|
|
|
22
27
|
}));
|
|
23
28
|
}
|
|
24
29
|
}
|
|
25
|
-
_defineProperty(ButtonToolbar, "propTypes", {
|
|
26
|
-
children: PropTypes.node,
|
|
27
|
-
className: PropTypes.string,
|
|
28
|
-
'data-test': PropTypes.string
|
|
29
|
-
});
|
|
30
30
|
|
|
31
31
|
export { ButtonToolbar as default };
|
package/dist/caret/caret.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { _ as _defineProperty } from '../_helpers/_rollupPluginBabelHelpers.js';
|
|
2
1
|
import { getRect } from '../global/dom.js';
|
|
3
2
|
|
|
4
3
|
/**
|
|
@@ -9,7 +8,7 @@ class Caret {
|
|
|
9
8
|
* Line endings RegExp
|
|
10
9
|
* @type {RegExp}
|
|
11
10
|
*/
|
|
12
|
-
|
|
11
|
+
static returnRE = /\r/g;
|
|
13
12
|
/**
|
|
14
13
|
* Line endings normalizer
|
|
15
14
|
* Borrowed from jQuery
|
|
@@ -20,8 +19,8 @@ class Caret {
|
|
|
20
19
|
static normalizeNewlines(value) {
|
|
21
20
|
return typeof value === 'string' ? value.replace(this.returnRE, '') : value;
|
|
22
21
|
}
|
|
22
|
+
target;
|
|
23
23
|
constructor(target) {
|
|
24
|
-
_defineProperty(this, "target", void 0);
|
|
25
24
|
this.target = target;
|
|
26
25
|
}
|
|
27
26
|
isContentEditable() {
|
|
@@ -221,6 +220,5 @@ class Caret {
|
|
|
221
220
|
return offset;
|
|
222
221
|
}
|
|
223
222
|
}
|
|
224
|
-
_defineProperty(Caret, "returnRE", /\r/g);
|
|
225
223
|
|
|
226
224
|
export { Caret as default };
|
|
@@ -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 classNames from 'classnames';
|
|
@@ -21,16 +21,25 @@ import '../global/memoize.js';
|
|
|
21
21
|
* Displays a checkbox.
|
|
22
22
|
*/
|
|
23
23
|
class Checkbox extends PureComponent {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
24
|
+
static propTypes = {
|
|
25
|
+
name: PropTypes.string,
|
|
26
|
+
label: PropTypes.string,
|
|
27
|
+
className: PropTypes.string,
|
|
28
|
+
containerClassName: PropTypes.string,
|
|
29
|
+
containerStyle: PropTypes.object,
|
|
30
|
+
cellClassName: PropTypes.string,
|
|
31
|
+
labelClassName: PropTypes.string,
|
|
32
|
+
defaultChecked: PropTypes.bool,
|
|
33
|
+
checked: PropTypes.bool,
|
|
34
|
+
indeterminate: PropTypes.bool,
|
|
35
|
+
disabled: PropTypes.bool,
|
|
36
|
+
onChange: PropTypes.func,
|
|
37
|
+
children: PropTypes.node,
|
|
38
|
+
inputRef: PropTypes.oneOfType([PropTypes.func, refObject(PropTypes.instanceOf(HTMLInputElement))])
|
|
39
|
+
};
|
|
40
|
+
static defaultProps = {
|
|
41
|
+
indeterminate: false
|
|
42
|
+
};
|
|
34
43
|
componentDidMount() {
|
|
35
44
|
if (this.input != null) {
|
|
36
45
|
this.input.indeterminate = this.props.indeterminate;
|
|
@@ -44,6 +53,13 @@ class Checkbox extends PureComponent {
|
|
|
44
53
|
this.input.indeterminate = this.props.indeterminate;
|
|
45
54
|
}
|
|
46
55
|
}
|
|
56
|
+
input;
|
|
57
|
+
inputRef = el => {
|
|
58
|
+
if (el != null) {
|
|
59
|
+
el.indeterminate = this.props.indeterminate;
|
|
60
|
+
}
|
|
61
|
+
this.input = el;
|
|
62
|
+
};
|
|
47
63
|
render() {
|
|
48
64
|
const {
|
|
49
65
|
children,
|
|
@@ -83,24 +99,5 @@ class Checkbox extends PureComponent {
|
|
|
83
99
|
}, label || children));
|
|
84
100
|
}
|
|
85
101
|
}
|
|
86
|
-
_defineProperty(Checkbox, "propTypes", {
|
|
87
|
-
name: PropTypes.string,
|
|
88
|
-
label: PropTypes.string,
|
|
89
|
-
className: PropTypes.string,
|
|
90
|
-
containerClassName: PropTypes.string,
|
|
91
|
-
containerStyle: PropTypes.object,
|
|
92
|
-
cellClassName: PropTypes.string,
|
|
93
|
-
labelClassName: PropTypes.string,
|
|
94
|
-
defaultChecked: PropTypes.bool,
|
|
95
|
-
checked: PropTypes.bool,
|
|
96
|
-
indeterminate: PropTypes.bool,
|
|
97
|
-
disabled: PropTypes.bool,
|
|
98
|
-
onChange: PropTypes.func,
|
|
99
|
-
children: PropTypes.node,
|
|
100
|
-
inputRef: PropTypes.oneOfType([PropTypes.func, refObject(PropTypes.instanceOf(HTMLInputElement))])
|
|
101
|
-
});
|
|
102
|
-
_defineProperty(Checkbox, "defaultProps", {
|
|
103
|
-
indeterminate: false
|
|
104
|
-
});
|
|
105
102
|
|
|
106
103
|
export { Checkbox as default };
|
|
@@ -5,7 +5,6 @@ import proxyAttrs from '../proxy-attrs/proxy-attrs.js';
|
|
|
5
5
|
import { m as modules_3199090e } from '../_helpers/checkbox.js';
|
|
6
6
|
import '../icon/icon__constants.js';
|
|
7
7
|
import '../template-ng/template-ng.js';
|
|
8
|
-
import '../_helpers/_rollupPluginBabelHelpers.js';
|
|
9
8
|
import '../global/ring-angular-component.js';
|
|
10
9
|
import '../_helpers/icon.js';
|
|
11
10
|
|
package/dist/code/code.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
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';
|
|
@@ -22,16 +21,29 @@ const registerLanguage = memoize(async language => {
|
|
|
22
21
|
* @name Code
|
|
23
22
|
*/
|
|
24
23
|
class Code extends PureComponent {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
24
|
+
static propTypes = {
|
|
25
|
+
className: PropTypes.string,
|
|
26
|
+
code: PropTypes.string.isRequired,
|
|
27
|
+
inline: PropTypes.bool,
|
|
28
|
+
softWrap: PropTypes.bool,
|
|
29
|
+
language: PropTypes.string,
|
|
30
|
+
replacer: PropTypes.func,
|
|
31
|
+
codeRef: PropTypes.oneOfType([PropTypes.shape({
|
|
32
|
+
current: PropTypes.instanceOf(Element)
|
|
33
|
+
}), PropTypes.func])
|
|
34
|
+
};
|
|
35
|
+
static defaultProps = {
|
|
36
|
+
inline: false,
|
|
37
|
+
softWrap: false,
|
|
38
|
+
replacer: noop
|
|
39
|
+
};
|
|
29
40
|
componentDidMount() {
|
|
30
41
|
this.highlight();
|
|
31
42
|
}
|
|
32
43
|
componentDidUpdate() {
|
|
33
44
|
this.highlight();
|
|
34
45
|
}
|
|
46
|
+
code;
|
|
35
47
|
async highlight() {
|
|
36
48
|
const codeRef = this.codeRef;
|
|
37
49
|
if (codeRef == null) {
|
|
@@ -96,22 +108,6 @@ class Code extends PureComponent {
|
|
|
96
108
|
}, normalizeIndent(code)));
|
|
97
109
|
}
|
|
98
110
|
}
|
|
99
|
-
_defineProperty(Code, "propTypes", {
|
|
100
|
-
className: PropTypes.string,
|
|
101
|
-
code: PropTypes.string.isRequired,
|
|
102
|
-
inline: PropTypes.bool,
|
|
103
|
-
softWrap: PropTypes.bool,
|
|
104
|
-
language: PropTypes.string,
|
|
105
|
-
replacer: PropTypes.func,
|
|
106
|
-
codeRef: PropTypes.oneOfType([PropTypes.shape({
|
|
107
|
-
current: PropTypes.instanceOf(Element)
|
|
108
|
-
}), PropTypes.func])
|
|
109
|
-
});
|
|
110
|
-
_defineProperty(Code, "defaultProps", {
|
|
111
|
-
inline: false,
|
|
112
|
-
softWrap: false,
|
|
113
|
-
replacer: noop
|
|
114
|
-
});
|
|
115
111
|
const code = trivialTemplateTag(source => /*#__PURE__*/React.createElement(Code, {
|
|
116
112
|
code: source
|
|
117
113
|
}));
|
package/dist/confirm/confirm.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
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 Dialog from '../dialog/dialog.js';
|
|
@@ -7,6 +6,7 @@ import '../island/island.js';
|
|
|
7
6
|
import Panel from '../panel/panel.js';
|
|
8
7
|
import HeaderWrapper from '../island/header.js';
|
|
9
8
|
import ContentWrapper from '../island/content.js';
|
|
9
|
+
import '../_helpers/_rollupPluginBabelHelpers.js';
|
|
10
10
|
import 'react-dom';
|
|
11
11
|
import 'classnames';
|
|
12
12
|
import '@jetbrains/icons/close';
|
|
@@ -46,14 +46,36 @@ var modules_4c9c3a3a = {"unit":"i__const_unit_0","light":"light_rui_2cda","descr
|
|
|
46
46
|
* @name Confirm
|
|
47
47
|
*/
|
|
48
48
|
class Confirm extends PureComponent {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
49
|
+
static propTypes = {
|
|
50
|
+
className: PropTypes.string,
|
|
51
|
+
text: PropTypes.string,
|
|
52
|
+
description: PropTypes.node,
|
|
53
|
+
show: PropTypes.bool,
|
|
54
|
+
rejectOnEsc: PropTypes.bool,
|
|
55
|
+
inProgress: PropTypes.bool,
|
|
56
|
+
cancelIsDefault: PropTypes.bool,
|
|
57
|
+
confirmLabel: PropTypes.string,
|
|
58
|
+
rejectLabel: PropTypes.string,
|
|
59
|
+
onConfirm: PropTypes.func,
|
|
60
|
+
onReject: PropTypes.func
|
|
61
|
+
};
|
|
62
|
+
static defaultProps = {
|
|
63
|
+
text: null,
|
|
64
|
+
description: null,
|
|
65
|
+
show: false,
|
|
66
|
+
rejectOnEsc: true,
|
|
67
|
+
inProgress: false,
|
|
68
|
+
cancelIsDefault: false,
|
|
69
|
+
confirmLabel: 'OK',
|
|
70
|
+
rejectLabel: 'Cancel',
|
|
71
|
+
onConfirm: () => {},
|
|
72
|
+
onReject: () => {}
|
|
73
|
+
};
|
|
74
|
+
onEscPress = () => {
|
|
75
|
+
if (this.props.rejectOnEsc) {
|
|
76
|
+
this.props.onReject();
|
|
77
|
+
}
|
|
78
|
+
};
|
|
57
79
|
render() {
|
|
58
80
|
const {
|
|
59
81
|
show,
|
|
@@ -90,30 +112,5 @@ class Confirm extends PureComponent {
|
|
|
90
112
|
}, rejectLabel)));
|
|
91
113
|
}
|
|
92
114
|
}
|
|
93
|
-
_defineProperty(Confirm, "propTypes", {
|
|
94
|
-
className: PropTypes.string,
|
|
95
|
-
text: PropTypes.string,
|
|
96
|
-
description: PropTypes.node,
|
|
97
|
-
show: PropTypes.bool,
|
|
98
|
-
rejectOnEsc: PropTypes.bool,
|
|
99
|
-
inProgress: PropTypes.bool,
|
|
100
|
-
cancelIsDefault: PropTypes.bool,
|
|
101
|
-
confirmLabel: PropTypes.string,
|
|
102
|
-
rejectLabel: PropTypes.string,
|
|
103
|
-
onConfirm: PropTypes.func,
|
|
104
|
-
onReject: PropTypes.func
|
|
105
|
-
});
|
|
106
|
-
_defineProperty(Confirm, "defaultProps", {
|
|
107
|
-
text: null,
|
|
108
|
-
description: null,
|
|
109
|
-
show: false,
|
|
110
|
-
rejectOnEsc: true,
|
|
111
|
-
inProgress: false,
|
|
112
|
-
cancelIsDefault: false,
|
|
113
|
-
confirmLabel: 'OK',
|
|
114
|
-
rejectLabel: 'Cancel',
|
|
115
|
-
onConfirm: () => {},
|
|
116
|
-
onReject: () => {}
|
|
117
|
-
});
|
|
118
115
|
|
|
119
116
|
export { Confirm as default };
|
|
@@ -5,9 +5,9 @@ import 'react';
|
|
|
5
5
|
import '../global/react-render-adapter.js';
|
|
6
6
|
import 'react-dom';
|
|
7
7
|
import '../confirm/confirm.js';
|
|
8
|
-
import '../_helpers/_rollupPluginBabelHelpers.js';
|
|
9
8
|
import 'prop-types';
|
|
10
9
|
import '../dialog/dialog.js';
|
|
10
|
+
import '../_helpers/_rollupPluginBabelHelpers.js';
|
|
11
11
|
import 'classnames';
|
|
12
12
|
import '@jetbrains/icons/close';
|
|
13
13
|
import '../island/island.js';
|
|
@@ -3,9 +3,9 @@ import { render } from '../global/react-render-adapter.js';
|
|
|
3
3
|
import Confirm from '../confirm/confirm.js';
|
|
4
4
|
import { ControlsHeightContext, getGlobalControlsHeight } from '../global/controls-height.js';
|
|
5
5
|
import 'react-dom';
|
|
6
|
-
import '../_helpers/_rollupPluginBabelHelpers.js';
|
|
7
6
|
import 'prop-types';
|
|
8
7
|
import '../dialog/dialog.js';
|
|
8
|
+
import '../_helpers/_rollupPluginBabelHelpers.js';
|
|
9
9
|
import 'classnames';
|
|
10
10
|
import '@jetbrains/icons/close';
|
|
11
11
|
import '../island/island.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as
|
|
1
|
+
import { _ as _extends } from '../_helpers/_rollupPluginBabelHelpers.js';
|
|
2
2
|
import React, { Component, cloneElement } from 'react';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import classNames from 'classnames';
|
|
@@ -9,17 +9,23 @@ import 'react-waypoint';
|
|
|
9
9
|
* @name Content Layout
|
|
10
10
|
*/
|
|
11
11
|
class ContentLayout extends Component {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
12
|
+
static propTypes = {
|
|
13
|
+
children: PropTypes.node,
|
|
14
|
+
className: PropTypes.string,
|
|
15
|
+
contentClassName: PropTypes.string,
|
|
16
|
+
responsive: PropTypes.bool
|
|
17
|
+
};
|
|
18
|
+
static defaultProps = {
|
|
19
|
+
responsive: true
|
|
20
|
+
};
|
|
21
|
+
state = {
|
|
22
|
+
contentNode: null
|
|
23
|
+
};
|
|
24
|
+
saveContentNode = contentNode => {
|
|
25
|
+
this.setState({
|
|
26
|
+
contentNode
|
|
16
27
|
});
|
|
17
|
-
|
|
18
|
-
this.setState({
|
|
19
|
-
contentNode
|
|
20
|
-
});
|
|
21
|
-
});
|
|
22
|
-
}
|
|
28
|
+
};
|
|
23
29
|
render() {
|
|
24
30
|
const {
|
|
25
31
|
children,
|
|
@@ -46,14 +52,5 @@ class ContentLayout extends Component {
|
|
|
46
52
|
}, contentChildren));
|
|
47
53
|
}
|
|
48
54
|
}
|
|
49
|
-
_defineProperty(ContentLayout, "propTypes", {
|
|
50
|
-
children: PropTypes.node,
|
|
51
|
-
className: PropTypes.string,
|
|
52
|
-
contentClassName: PropTypes.string,
|
|
53
|
-
responsive: PropTypes.bool
|
|
54
|
-
});
|
|
55
|
-
_defineProperty(ContentLayout, "defaultProps", {
|
|
56
|
-
responsive: true
|
|
57
|
-
});
|
|
58
55
|
|
|
59
56
|
export { Sidebar, ContentLayout as default };
|
|
@@ -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 { renderToStaticMarkup } from 'react-dom/server';
|
|
@@ -16,6 +16,16 @@ const commonPropTypes = {
|
|
|
16
16
|
inputRef: PropTypes.oneOfType([PropTypes.func, PropTypes.object])
|
|
17
17
|
};
|
|
18
18
|
class ContentEditableBase extends Component {
|
|
19
|
+
static propTypes = {
|
|
20
|
+
...commonPropTypes,
|
|
21
|
+
__html: PropTypes.string
|
|
22
|
+
};
|
|
23
|
+
static defaultProps = {
|
|
24
|
+
disabled: false,
|
|
25
|
+
tabIndex: 0,
|
|
26
|
+
onInput: noop,
|
|
27
|
+
onComponentUpdate: noop
|
|
28
|
+
};
|
|
19
29
|
shouldComponentUpdate(nextProps) {
|
|
20
30
|
return nextProps.disabled !== this.props.disabled || nextProps.__html !== this.props.__html;
|
|
21
31
|
}
|
|
@@ -46,16 +56,6 @@ class ContentEditableBase extends Component {
|
|
|
46
56
|
}));
|
|
47
57
|
}
|
|
48
58
|
}
|
|
49
|
-
_defineProperty(ContentEditableBase, "propTypes", {
|
|
50
|
-
...commonPropTypes,
|
|
51
|
-
__html: PropTypes.string
|
|
52
|
-
});
|
|
53
|
-
_defineProperty(ContentEditableBase, "defaultProps", {
|
|
54
|
-
disabled: false,
|
|
55
|
-
tabIndex: 0,
|
|
56
|
-
onInput: noop,
|
|
57
|
-
onComponentUpdate: noop
|
|
58
|
-
});
|
|
59
59
|
const ContentEditable = _ref => {
|
|
60
60
|
let {
|
|
61
61
|
children,
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import React, { PureComponent, Component } from 'react';
|
|
1
|
+
import React, { Component, PureComponent } from 'react';
|
|
3
2
|
import PropTypes from 'prop-types';
|
|
4
3
|
import classNames from 'classnames';
|
|
5
4
|
import focusSensorHOC from '../global/focus-sensor-hoc.js';
|
|
@@ -12,6 +11,7 @@ import { refObject } from '../global/prop-types.js';
|
|
|
12
11
|
import Item, { moreLessButtonStates } from './item.js';
|
|
13
12
|
import { m as modules_09d014b4 } from '../_helpers/title.js';
|
|
14
13
|
import Selection from './selection.js';
|
|
14
|
+
import '../_helpers/_rollupPluginBabelHelpers.js';
|
|
15
15
|
import '../global/composeRefs.js';
|
|
16
16
|
import '../table/selection.js';
|
|
17
17
|
import '../shortcuts/core.js';
|
|
@@ -46,47 +46,12 @@ import '@jetbrains/icons/remove-14px';
|
|
|
46
46
|
import '../_helpers/checkbox.js';
|
|
47
47
|
|
|
48
48
|
class DataList extends PureComponent {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
onSelect
|
|
56
|
-
} = this.props;
|
|
57
|
-
onSelect(selection.focus(item));
|
|
58
|
-
});
|
|
59
|
-
_defineProperty(this, "onItemSelect", (item, selected) => {
|
|
60
|
-
const {
|
|
61
|
-
selection,
|
|
62
|
-
onSelect
|
|
63
|
-
} = this.props;
|
|
64
|
-
if (selected) {
|
|
65
|
-
onSelect(selection.select(item));
|
|
66
|
-
} else {
|
|
67
|
-
onSelect(selection.deselect(item));
|
|
68
|
-
}
|
|
69
|
-
});
|
|
70
|
-
_defineProperty(this, "onEqualPress", () => {
|
|
71
|
-
const {
|
|
72
|
-
selection,
|
|
73
|
-
itemFormatter
|
|
74
|
-
} = this.props;
|
|
75
|
-
const focused = selection.getFocused();
|
|
76
|
-
if (focused == null) {
|
|
77
|
-
throw new Error('No focused item');
|
|
78
|
-
}
|
|
79
|
-
const item = itemFormatter(focused);
|
|
80
|
-
if (item.collapsed) {
|
|
81
|
-
item.onExpand?.();
|
|
82
|
-
} else {
|
|
83
|
-
item.onCollapse?.();
|
|
84
|
-
}
|
|
85
|
-
});
|
|
86
|
-
_defineProperty(this, "shortcutsMap", {
|
|
87
|
-
'=': this.onEqualPress
|
|
88
|
-
});
|
|
89
|
-
}
|
|
49
|
+
static defaultProps = {
|
|
50
|
+
loading: false,
|
|
51
|
+
onItemMoreLess: () => {},
|
|
52
|
+
itemMoreLessState: () => moreLessButtonStates.UNUSED,
|
|
53
|
+
remoteSelection: false
|
|
54
|
+
};
|
|
90
55
|
componentDidUpdate(prevProps) {
|
|
91
56
|
const {
|
|
92
57
|
data,
|
|
@@ -103,6 +68,44 @@ class DataList extends PureComponent {
|
|
|
103
68
|
onSelect(selection.resetSelection());
|
|
104
69
|
}
|
|
105
70
|
}
|
|
71
|
+
shortcutsScope = getUID('ring-data-list-');
|
|
72
|
+
onItemFocus = item => {
|
|
73
|
+
const {
|
|
74
|
+
selection,
|
|
75
|
+
onSelect
|
|
76
|
+
} = this.props;
|
|
77
|
+
onSelect(selection.focus(item));
|
|
78
|
+
};
|
|
79
|
+
onItemSelect = (item, selected) => {
|
|
80
|
+
const {
|
|
81
|
+
selection,
|
|
82
|
+
onSelect
|
|
83
|
+
} = this.props;
|
|
84
|
+
if (selected) {
|
|
85
|
+
onSelect(selection.select(item));
|
|
86
|
+
} else {
|
|
87
|
+
onSelect(selection.deselect(item));
|
|
88
|
+
}
|
|
89
|
+
};
|
|
90
|
+
onEqualPress = () => {
|
|
91
|
+
const {
|
|
92
|
+
selection,
|
|
93
|
+
itemFormatter
|
|
94
|
+
} = this.props;
|
|
95
|
+
const focused = selection.getFocused();
|
|
96
|
+
if (focused == null) {
|
|
97
|
+
throw new Error('No focused item');
|
|
98
|
+
}
|
|
99
|
+
const item = itemFormatter(focused);
|
|
100
|
+
if (item.collapsed) {
|
|
101
|
+
item.onExpand?.();
|
|
102
|
+
} else {
|
|
103
|
+
item.onCollapse?.();
|
|
104
|
+
}
|
|
105
|
+
};
|
|
106
|
+
shortcutsMap = {
|
|
107
|
+
'=': this.onEqualPress
|
|
108
|
+
};
|
|
106
109
|
render() {
|
|
107
110
|
const {
|
|
108
111
|
data,
|
|
@@ -165,12 +168,6 @@ class DataList extends PureComponent {
|
|
|
165
168
|
}, /*#__PURE__*/React.createElement(Loader, null)));
|
|
166
169
|
}
|
|
167
170
|
}
|
|
168
|
-
_defineProperty(DataList, "defaultProps", {
|
|
169
|
-
loading: false,
|
|
170
|
-
onItemMoreLess: () => {},
|
|
171
|
-
itemMoreLessState: () => moreLessButtonStates.UNUSED,
|
|
172
|
-
remoteSelection: false
|
|
173
|
-
});
|
|
174
171
|
DataList.propTypes = {
|
|
175
172
|
className: PropTypes.string,
|
|
176
173
|
data: PropTypes.array.isRequired,
|
|
@@ -190,15 +187,12 @@ DataList.propTypes = {
|
|
|
190
187
|
const getContainer = () => disableHoverHOC(selectionShortcutsHOC(focusSensorHOC(DataList)));
|
|
191
188
|
// eslint-disable-next-line react/no-multi-comp
|
|
192
189
|
class DataListContainer extends Component {
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
_defineProperty(this, "DataList", getContainer());
|
|
197
|
-
}
|
|
190
|
+
static propTypes = getContainer().propTypes;
|
|
191
|
+
// https://stackoverflow.com/a/53882322/6304152
|
|
192
|
+
DataList = getContainer();
|
|
198
193
|
render() {
|
|
199
194
|
return /*#__PURE__*/React.createElement(this.DataList, this.props);
|
|
200
195
|
}
|
|
201
196
|
}
|
|
202
|
-
_defineProperty(DataListContainer, "propTypes", getContainer().propTypes);
|
|
203
197
|
|
|
204
198
|
export { DataListContainer as default };
|