@jetbrains/ring-ui 4.1.28 → 4.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/components/alert/alert.test.js +2 -2
- package/components/alert-service/alert-service.js +1 -1
- package/components/analytics/analytics__ga-plugin.js +1 -0
- package/components/auth-dialog-service/auth-dialog-service.js +1 -1
- package/components/confirm-service/confirm-service.js +1 -1
- package/components/confirm-service/confirm-service.test.js +1 -1
- package/components/global/angular-component-factory.js +1 -1
- package/components/global/react-render-adapter.js +36 -0
- package/components/global/rerender-hoc.js +5 -2
- package/components/login-dialog/service.js +2 -1
- package/components/select/select.examples.js +27 -0
- package/components/select/select__popup.js +10 -4
- package/components/select-ng/select-ng.js +16 -5
- package/components/select-ng/select-ng__lazy.js +11 -6
- package/components/select-ng/select-ng__lazy.test.js +3 -1
- package/components/table/table.examples.js +3 -1
- package/components/tooltip-ng/tooltip-ng.js +13 -10
- package/components/user-agreement/service.js +1 -1
- package/dist/alert-service/alert-service.js +2 -1
- package/dist/analytics/analytics__ga-plugin.js +1 -0
- package/dist/auth/auth.js +1 -0
- package/dist/auth/auth__core.js +1 -0
- package/dist/auth/down-notification.js +1 -0
- package/dist/auth/iframe-flow.js +2 -1
- package/dist/auth/landing.js +1 -0
- package/dist/auth/storage.js +1 -0
- package/dist/auth-dialog-service/auth-dialog-service.js +3 -2
- package/dist/auth-ng/auth-ng.js +1 -0
- package/dist/avatar-editor-ng/avatar-editor-ng.js +1 -0
- package/dist/avatar-ng/avatar-ng.js +1 -0
- package/dist/badge-ng/badge-ng.js +1 -0
- package/dist/confirm-ng/confirm-ng.js +2 -1
- package/dist/confirm-service/confirm-service.js +3 -2
- package/dist/data-list-ng/data-list-ng.js +1 -0
- package/dist/global/angular-component-factory.js +2 -1
- package/dist/global/react-render-adapter.js +41 -0
- package/dist/global/rerender-hoc.js +5 -2
- package/dist/header/header.js +1 -0
- package/dist/header/smart-profile.js +1 -0
- package/dist/header/smart-services.js +1 -0
- package/dist/login-dialog/service.js +3 -2
- package/dist/pager/pager.js +2 -0
- package/dist/pager-ng/pager-ng.js +2 -0
- package/dist/permissions-ng/permissions-ng.js +1 -0
- package/dist/progress-bar-ng/progress-bar-ng.js +1 -0
- package/dist/query-assist/query-assist.js +2 -0
- package/dist/query-assist-ng/query-assist-ng.js +2 -0
- package/dist/select/select.js +2 -0
- package/dist/select/select__popup.js +7 -2
- package/dist/select-ng/select-ng.js +20 -6
- package/dist/select-ng/select-ng__lazy.js +11 -8
- package/dist/storage/storage.js +1 -0
- package/dist/storage/storage__local.js +1 -0
- package/dist/table-legacy-ng/table-legacy-ng.js +2 -0
- package/dist/table-legacy-ng/table-legacy-ng__pager.js +2 -0
- package/dist/table-ng/smart-table-ng.js +1 -0
- package/dist/table-ng/table-ng.js +1 -0
- package/dist/tags-input/tags-input.js +2 -0
- package/dist/tags-input-ng/tags-input-ng.js +2 -0
- package/dist/toggle-ng/toggle-ng.js +1 -0
- package/dist/tooltip-ng/tooltip-ng.js +11 -7
- package/dist/user-agreement/service.js +2 -1
- package/dist/user-card-ng/user-card-ng.js +1 -0
- package/package.json +26 -26
|
@@ -43,6 +43,7 @@ import '../link/clickableLink.js';
|
|
|
43
43
|
import '../_helpers/link.js';
|
|
44
44
|
import '../group/group.js';
|
|
45
45
|
import '../_helpers/group.js';
|
|
46
|
+
import '../global/react-render-adapter.js';
|
|
46
47
|
import '../global/listeners.js';
|
|
47
48
|
import '../http/http.js';
|
|
48
49
|
import '../global/promise-with-timeout.js';
|
|
@@ -13,6 +13,7 @@ import 'es6-error';
|
|
|
13
13
|
import '../global/url.js';
|
|
14
14
|
import '../auth/down-notification.js';
|
|
15
15
|
import '../alert-service/alert-service.js';
|
|
16
|
+
import '../global/react-render-adapter.js';
|
|
16
17
|
import 'react-dom';
|
|
17
18
|
import '../global/get-uid.js';
|
|
18
19
|
import '../alert/alert.js';
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { unmountComponentAtNode, render } from 'react-
|
|
2
|
+
import { unmountComponentAtNode, render } from '../global/react-render-adapter.js';
|
|
3
3
|
import LoginDialog from './login-dialog.js';
|
|
4
|
-
import '../_helpers/_rollupPluginBabelHelpers.js';
|
|
5
4
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
5
|
+
import 'react-dom';
|
|
6
|
+
import '../_helpers/_rollupPluginBabelHelpers.js';
|
|
6
7
|
import 'prop-types';
|
|
7
8
|
import '../dialog/dialog.js';
|
|
8
9
|
import 'classnames';
|
package/dist/pager/pager.js
CHANGED
|
@@ -71,6 +71,8 @@ import '../list/consts.js';
|
|
|
71
71
|
import '../input/input.js';
|
|
72
72
|
import '../_helpers/input.js';
|
|
73
73
|
import '../global/rerender-hoc.js';
|
|
74
|
+
import '../global/react-render-adapter.js';
|
|
75
|
+
import '../global/composeRefs.js';
|
|
74
76
|
import '../global/fuzzy-highlight.js';
|
|
75
77
|
import '../select/select__popup.js';
|
|
76
78
|
import '@jetbrains/icons/search';
|
|
@@ -4,6 +4,7 @@ import '../_helpers/_rollupPluginBabelHelpers.js';
|
|
|
4
4
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
5
5
|
import 'angular';
|
|
6
6
|
import 'react';
|
|
7
|
+
import '../global/react-render-adapter.js';
|
|
7
8
|
import 'react-dom';
|
|
8
9
|
import '../global/ring-angular-component.js';
|
|
9
10
|
import '../global/react-dom-renderer.js';
|
|
@@ -76,6 +77,7 @@ import '../list/consts.js';
|
|
|
76
77
|
import '../input/input.js';
|
|
77
78
|
import '../_helpers/input.js';
|
|
78
79
|
import '../global/rerender-hoc.js';
|
|
80
|
+
import '../global/composeRefs.js';
|
|
79
81
|
import '../global/fuzzy-highlight.js';
|
|
80
82
|
import '../select/select__popup.js';
|
|
81
83
|
import '@jetbrains/icons/search';
|
|
@@ -14,6 +14,7 @@ import 'react';
|
|
|
14
14
|
import 'prop-types';
|
|
15
15
|
import '../alert-service/alert-service.js';
|
|
16
16
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
17
|
+
import '../global/react-render-adapter.js';
|
|
17
18
|
import 'react-dom';
|
|
18
19
|
import '../global/get-uid.js';
|
|
19
20
|
import '../alert/alert.js';
|
|
@@ -4,6 +4,7 @@ import '../_helpers/_rollupPluginBabelHelpers.js';
|
|
|
4
4
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
5
5
|
import 'angular';
|
|
6
6
|
import 'react';
|
|
7
|
+
import '../global/react-render-adapter.js';
|
|
7
8
|
import 'react-dom';
|
|
8
9
|
import '../global/ring-angular-component.js';
|
|
9
10
|
import '../global/react-dom-renderer.js';
|
|
@@ -71,6 +71,8 @@ import 'conic-gradient';
|
|
|
71
71
|
import '../global/supports-css.js';
|
|
72
72
|
import '../global/inject-styles.js';
|
|
73
73
|
import '../global/radial-gradient-mask.js';
|
|
74
|
+
import '../global/react-render-adapter.js';
|
|
75
|
+
import '../global/composeRefs.js';
|
|
74
76
|
import '@jetbrains/icons/chevron-10px';
|
|
75
77
|
import '../_helpers/button__classes.js';
|
|
76
78
|
|
|
@@ -4,6 +4,7 @@ import '../_helpers/_rollupPluginBabelHelpers.js';
|
|
|
4
4
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
5
5
|
import 'angular';
|
|
6
6
|
import 'react';
|
|
7
|
+
import '../global/react-render-adapter.js';
|
|
7
8
|
import 'react-dom';
|
|
8
9
|
import '../global/ring-angular-component.js';
|
|
9
10
|
import '../global/react-dom-renderer.js';
|
|
@@ -74,6 +75,7 @@ import '../global/supports-css.js';
|
|
|
74
75
|
import '../global/inject-styles.js';
|
|
75
76
|
import '../global/radial-gradient-mask.js';
|
|
76
77
|
import '../global/rerender-hoc.js';
|
|
78
|
+
import '../global/composeRefs.js';
|
|
77
79
|
import '../button/button.js';
|
|
78
80
|
import '@jetbrains/icons/chevron-10px';
|
|
79
81
|
import '../_helpers/button__classes.js';
|
package/dist/select/select.js
CHANGED
|
@@ -65,6 +65,8 @@ import '../list/list__separator.js';
|
|
|
65
65
|
import '../list/list__hint.js';
|
|
66
66
|
import '../list/consts.js';
|
|
67
67
|
import '../_helpers/input.js';
|
|
68
|
+
import '../global/react-render-adapter.js';
|
|
69
|
+
import '../global/composeRefs.js';
|
|
68
70
|
import '@jetbrains/icons/search';
|
|
69
71
|
import '../loader-inline/loader-inline.js';
|
|
70
72
|
import '../_helpers/inject-styles.js';
|
|
@@ -158,6 +158,8 @@ class SelectPopup extends PureComponent {
|
|
|
158
158
|
_defineProperty(this, "handleSelectAll", () => this.props.onSelectAll(this.props.data.filter(item => !item.disabled).length !== this.props.selected.length));
|
|
159
159
|
|
|
160
160
|
_defineProperty(this, "getSelectAll", () => {
|
|
161
|
+
var _this$props$multiple$, _this$props$multiple;
|
|
162
|
+
|
|
161
163
|
const activeFilters = this.props.data.filter(item => !item.disabled);
|
|
162
164
|
return /*#__PURE__*/React.createElement("div", {
|
|
163
165
|
className: modules_b607bec2.selectAll
|
|
@@ -165,7 +167,7 @@ class SelectPopup extends PureComponent {
|
|
|
165
167
|
text: true,
|
|
166
168
|
inline: true,
|
|
167
169
|
onClick: this.handleSelectAll
|
|
168
|
-
}, activeFilters.length !== this.props.selected.length ? 'Select all' : 'Deselect all'), /*#__PURE__*/React.createElement(Text, {
|
|
170
|
+
}, activeFilters.length !== this.props.selected.length ? this.props.multiple.selectAllLabel || 'Select all' : this.props.multiple.deselectAllLabel || 'Deselect all'), ((_this$props$multiple$ = (_this$props$multiple = this.props.multiple).renderSelectedItemsDescription) === null || _this$props$multiple$ === void 0 ? void 0 : _this$props$multiple$.call(_this$props$multiple, this.props.selected, activeFilters.length)) || /*#__PURE__*/React.createElement(Text, {
|
|
169
171
|
info: true
|
|
170
172
|
}, "".concat(this.props.selected.length, " selected")));
|
|
171
173
|
});
|
|
@@ -502,7 +504,10 @@ _defineProperty(SelectPopup, "propTypes", {
|
|
|
502
504
|
multiple: PropTypes.oneOfType([PropTypes.bool, PropTypes.shape({
|
|
503
505
|
label: PropTypes.string,
|
|
504
506
|
limit: PropTypes.number,
|
|
505
|
-
selectAll: PropTypes.bool
|
|
507
|
+
selectAll: PropTypes.bool,
|
|
508
|
+
selectAllLabel: PropTypes.string,
|
|
509
|
+
deselectAllLabel: PropTypes.string,
|
|
510
|
+
renderSelectedItemsDescription: PropTypes.func
|
|
506
511
|
})]),
|
|
507
512
|
left: PropTypes.bool,
|
|
508
513
|
loading: PropTypes.bool,
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
+
import { a as _extends } from '../_helpers/_rollupPluginBabelHelpers.js';
|
|
1
2
|
import angular from 'angular';
|
|
2
3
|
import React from 'react';
|
|
3
|
-
import { unmountComponentAtNode, render } from 'react-
|
|
4
|
+
import { unmountComponentAtNode, render } from '../global/react-render-adapter.js';
|
|
4
5
|
import getEventKey from '../global/get-event-key.js';
|
|
5
6
|
import Select, { RerenderableSelect } from '../select/select.js';
|
|
6
7
|
import MessageBundle from '../message-bundle-ng/message-bundle-ng.js';
|
|
7
8
|
import SelectNgOptions from './select-ng__options.js';
|
|
8
9
|
import SelectLazy from './select-ng__lazy.js';
|
|
9
|
-
import '../_helpers/_rollupPluginBabelHelpers.js';
|
|
10
10
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
11
|
+
import 'react-dom';
|
|
11
12
|
import 'core-js/modules/es.string.replace.js';
|
|
12
13
|
import 'classnames';
|
|
13
14
|
import 'prop-types';
|
|
@@ -68,6 +69,7 @@ import '../list/consts.js';
|
|
|
68
69
|
import '../input/input.js';
|
|
69
70
|
import '../_helpers/input.js';
|
|
70
71
|
import '../global/rerender-hoc.js';
|
|
72
|
+
import '../global/composeRefs.js';
|
|
71
73
|
import '../global/fuzzy-highlight.js';
|
|
72
74
|
import '../select/select__popup.js';
|
|
73
75
|
import '@jetbrains/icons/search';
|
|
@@ -439,9 +441,19 @@ angularModule.directive('rgSelect', function rgSelectDirective() {
|
|
|
439
441
|
return sizes[ctrl.size] || sizes.FULL;
|
|
440
442
|
}
|
|
441
443
|
|
|
444
|
+
function selectRef(instance) {
|
|
445
|
+
if (instance != null) {
|
|
446
|
+
ctrl.selectInstance = instance;
|
|
447
|
+
}
|
|
448
|
+
}
|
|
449
|
+
|
|
442
450
|
function reRenderSelect(props) {
|
|
443
|
-
|
|
444
|
-
|
|
451
|
+
var _ctrl$selectInstance;
|
|
452
|
+
|
|
453
|
+
if ((_ctrl$selectInstance = ctrl.selectInstance) !== null && _ctrl$selectInstance !== void 0 && _ctrl$selectInstance.node) {
|
|
454
|
+
ctrl.selectInstance.rerender({ ...props,
|
|
455
|
+
ref: selectRef
|
|
456
|
+
});
|
|
445
457
|
}
|
|
446
458
|
}
|
|
447
459
|
/**
|
|
@@ -588,9 +600,11 @@ angularModule.directive('rgSelect', function rgSelectDirective() {
|
|
|
588
600
|
ctrl.config = angular.extend({}, ctrl.defaultConfig, ctrl.config || {});
|
|
589
601
|
|
|
590
602
|
if (getType() === 'suggest' || getType() === 'input') {
|
|
591
|
-
|
|
603
|
+
render( /*#__PURE__*/React.createElement(RerenderableSelect, _extends({
|
|
604
|
+
ref: selectRef
|
|
605
|
+
}, ctrl.config)), container);
|
|
592
606
|
} else {
|
|
593
|
-
ctrl.selectInstance = new SelectLazy(container, ctrl.config, ctrl, getType());
|
|
607
|
+
ctrl.selectInstance = new SelectLazy(container, ctrl.config, ctrl, getType(), selectRef);
|
|
594
608
|
} // Preserve existing contents of the directive
|
|
595
609
|
|
|
596
610
|
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { _ as _defineProperty } from '../_helpers/_rollupPluginBabelHelpers.js';
|
|
1
|
+
import { _ as _defineProperty, a as _extends } from '../_helpers/_rollupPluginBabelHelpers.js';
|
|
2
2
|
import angular from 'angular';
|
|
3
|
-
import { render, hydrate } from 'react-dom';
|
|
4
3
|
import React from 'react';
|
|
4
|
+
import { render, hydrate } from '../global/react-render-adapter.js';
|
|
5
5
|
import { RerenderableSelect } from '../select/select.js';
|
|
6
6
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
7
|
+
import 'react-dom';
|
|
7
8
|
import 'core-js/modules/es.string.replace.js';
|
|
8
9
|
import 'classnames';
|
|
9
10
|
import 'prop-types';
|
|
@@ -65,6 +66,7 @@ import '../list/consts.js';
|
|
|
65
66
|
import '../input/input.js';
|
|
66
67
|
import '../_helpers/input.js';
|
|
67
68
|
import '../global/rerender-hoc.js';
|
|
69
|
+
import '../global/composeRefs.js';
|
|
68
70
|
import '../global/fuzzy-highlight.js';
|
|
69
71
|
import '../select/select__popup.js';
|
|
70
72
|
import '@jetbrains/icons/search';
|
|
@@ -83,7 +85,7 @@ import '../text/text.js';
|
|
|
83
85
|
import '../_helpers/select__filter.js';
|
|
84
86
|
|
|
85
87
|
class SelectLazy {
|
|
86
|
-
constructor(container, props, ctrl, type) {
|
|
88
|
+
constructor(container, props, ctrl, type, selectRef) {
|
|
87
89
|
_defineProperty(this, "onClick", () => {
|
|
88
90
|
this._clickHandler();
|
|
89
91
|
});
|
|
@@ -93,6 +95,7 @@ class SelectLazy {
|
|
|
93
95
|
this.props = props || {};
|
|
94
96
|
this.type = type;
|
|
95
97
|
this.node = container;
|
|
98
|
+
this.selectRef = selectRef;
|
|
96
99
|
this._popup = {
|
|
97
100
|
isVisible: angular.noop
|
|
98
101
|
};
|
|
@@ -129,7 +132,9 @@ class SelectLazy {
|
|
|
129
132
|
}
|
|
130
133
|
|
|
131
134
|
render(props) {
|
|
132
|
-
this.reactSelect = /*#__PURE__*/React.createElement(RerenderableSelect,
|
|
135
|
+
this.reactSelect = /*#__PURE__*/React.createElement(RerenderableSelect, _extends({
|
|
136
|
+
ref: this.selectRef
|
|
137
|
+
}, Object.assign({}, this.props, props || {})));
|
|
133
138
|
this.props = this.reactSelect.props;
|
|
134
139
|
|
|
135
140
|
if (this.type !== 'dropdown') {
|
|
@@ -143,11 +148,9 @@ class SelectLazy {
|
|
|
143
148
|
this.detachEvents();
|
|
144
149
|
|
|
145
150
|
if (this.type === 'dropdown') {
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
this.ctrl.selectInstance._openPopupIfClosed();
|
|
151
|
+
render(this.reactSelect, this.container);
|
|
149
152
|
} else {
|
|
150
|
-
|
|
153
|
+
hydrate(this.reactSelect, this.container);
|
|
151
154
|
}
|
|
152
155
|
}
|
|
153
156
|
|
package/dist/storage/storage.js
CHANGED
|
@@ -4,6 +4,7 @@ import 'core-js/modules/web.dom-collections.iterator.js';
|
|
|
4
4
|
import '../alert-service/alert-service.js';
|
|
5
5
|
import '../_helpers/_rollupPluginBabelHelpers.js';
|
|
6
6
|
import 'react';
|
|
7
|
+
import '../global/react-render-adapter.js';
|
|
7
8
|
import 'react-dom';
|
|
8
9
|
import '../global/get-uid.js';
|
|
9
10
|
import '../alert/alert.js';
|
|
@@ -2,6 +2,7 @@ import 'core-js/modules/web.dom-collections.iterator.js';
|
|
|
2
2
|
import alertService from '../alert-service/alert-service.js';
|
|
3
3
|
import '../_helpers/_rollupPluginBabelHelpers.js';
|
|
4
4
|
import 'react';
|
|
5
|
+
import '../global/react-render-adapter.js';
|
|
5
6
|
import 'react-dom';
|
|
6
7
|
import '../global/get-uid.js';
|
|
7
8
|
import '../alert/alert.js';
|
|
@@ -23,6 +23,7 @@ import '../global/schedule-raf.js';
|
|
|
23
23
|
import '../pager-ng/pager-ng.js';
|
|
24
24
|
import '../global/angular-component-factory.js';
|
|
25
25
|
import 'react';
|
|
26
|
+
import '../global/react-render-adapter.js';
|
|
26
27
|
import 'react-dom';
|
|
27
28
|
import '../global/react-dom-renderer.js';
|
|
28
29
|
import 'prop-types';
|
|
@@ -88,6 +89,7 @@ import '../list/consts.js';
|
|
|
88
89
|
import '../input/input.js';
|
|
89
90
|
import '../_helpers/input.js';
|
|
90
91
|
import '../global/rerender-hoc.js';
|
|
92
|
+
import '../global/composeRefs.js';
|
|
91
93
|
import '../global/fuzzy-highlight.js';
|
|
92
94
|
import '../select/select__popup.js';
|
|
93
95
|
import '@jetbrains/icons/search';
|
|
@@ -5,6 +5,7 @@ import '../global/angular-component-factory.js';
|
|
|
5
5
|
import '../_helpers/_rollupPluginBabelHelpers.js';
|
|
6
6
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
7
7
|
import 'react';
|
|
8
|
+
import '../global/react-render-adapter.js';
|
|
8
9
|
import 'react-dom';
|
|
9
10
|
import '../global/ring-angular-component.js';
|
|
10
11
|
import '../global/react-dom-renderer.js';
|
|
@@ -78,6 +79,7 @@ import '../list/consts.js';
|
|
|
78
79
|
import '../input/input.js';
|
|
79
80
|
import '../_helpers/input.js';
|
|
80
81
|
import '../global/rerender-hoc.js';
|
|
82
|
+
import '../global/composeRefs.js';
|
|
81
83
|
import '../global/fuzzy-highlight.js';
|
|
82
84
|
import '../select/select__popup.js';
|
|
83
85
|
import '@jetbrains/icons/search';
|
|
@@ -4,6 +4,7 @@ import '../_helpers/_rollupPluginBabelHelpers.js';
|
|
|
4
4
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
5
5
|
import 'angular';
|
|
6
6
|
import 'react';
|
|
7
|
+
import '../global/react-render-adapter.js';
|
|
7
8
|
import 'react-dom';
|
|
8
9
|
import '../global/ring-angular-component.js';
|
|
9
10
|
import '../global/react-dom-renderer.js';
|
|
@@ -4,6 +4,7 @@ import '../_helpers/_rollupPluginBabelHelpers.js';
|
|
|
4
4
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
5
5
|
import 'angular';
|
|
6
6
|
import 'react';
|
|
7
|
+
import '../global/react-render-adapter.js';
|
|
7
8
|
import 'react-dom';
|
|
8
9
|
import '../global/ring-angular-component.js';
|
|
9
10
|
import '../global/react-dom-renderer.js';
|
|
@@ -80,6 +80,8 @@ import '../shortcuts/shortcuts-hoc.js';
|
|
|
80
80
|
import '../text/text.js';
|
|
81
81
|
import '../_helpers/select__filter.js';
|
|
82
82
|
import '../tag/tag.js';
|
|
83
|
+
import '../global/react-render-adapter.js';
|
|
84
|
+
import '../global/composeRefs.js';
|
|
83
85
|
|
|
84
86
|
var modules_5aa8aaf3 = {"tagsInput":"tagsInput_rui_1a67","tagsInputLegacyMode":"tagsInputLegacyMode_rui_1a67","tagsList":"tagsList_rui_1a67","tag":"tag_rui_1a67","tagsInputDisabled":"tagsInputDisabled_rui_1a67","underline":"underline_rui_1a67","tagsInputFocused":"tagsInputFocused_rui_1a67","tagsSelect":"tagsSelect_rui_1a67","focusUnderline":"focusUnderline_rui_1a67"};
|
|
85
87
|
|
|
@@ -4,6 +4,7 @@ import '../_helpers/_rollupPluginBabelHelpers.js';
|
|
|
4
4
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
5
5
|
import 'angular';
|
|
6
6
|
import 'react';
|
|
7
|
+
import '../global/react-render-adapter.js';
|
|
7
8
|
import 'react-dom';
|
|
8
9
|
import '../global/ring-angular-component.js';
|
|
9
10
|
import '../global/react-dom-renderer.js';
|
|
@@ -69,6 +70,7 @@ import '../list/consts.js';
|
|
|
69
70
|
import '../input/input.js';
|
|
70
71
|
import '../_helpers/input.js';
|
|
71
72
|
import '../global/rerender-hoc.js';
|
|
73
|
+
import '../global/composeRefs.js';
|
|
72
74
|
import '../global/fuzzy-highlight.js';
|
|
73
75
|
import '../select/select__popup.js';
|
|
74
76
|
import '@jetbrains/icons/search';
|
|
@@ -4,6 +4,7 @@ import '../_helpers/_rollupPluginBabelHelpers.js';
|
|
|
4
4
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
5
5
|
import 'angular';
|
|
6
6
|
import 'react';
|
|
7
|
+
import '../global/react-render-adapter.js';
|
|
7
8
|
import 'react-dom';
|
|
8
9
|
import '../global/ring-angular-component.js';
|
|
9
10
|
import '../global/react-dom-renderer.js';
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import angular from 'angular';
|
|
2
2
|
import { createElement } from 'react';
|
|
3
|
-
import { render } from 'react-dom';
|
|
4
3
|
import classNames from 'classnames';
|
|
4
|
+
import { render } from '../global/react-render-adapter.js';
|
|
5
5
|
import Popup from '../popup/popup.js';
|
|
6
|
-
import '../_helpers/_rollupPluginBabelHelpers.js';
|
|
7
6
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
7
|
+
import 'react-dom';
|
|
8
|
+
import '../_helpers/_rollupPluginBabelHelpers.js';
|
|
8
9
|
import 'core-js/modules/es.string.replace.js';
|
|
9
10
|
import 'prop-types';
|
|
10
11
|
import '../global/get-uid.js';
|
|
@@ -65,11 +66,14 @@ name.factory('RgTooltipPopup', function RgTooltipPopupDirective() {
|
|
|
65
66
|
trapFocus: false
|
|
66
67
|
};
|
|
67
68
|
|
|
68
|
-
this.renderPopup = props => {
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
69
|
+
this.renderPopup = props => render( /*#__PURE__*/createElement(Popup, { ...this.defaultProps,
|
|
70
|
+
...props,
|
|
71
|
+
ref: instance => {
|
|
72
|
+
if (instance != null) {
|
|
73
|
+
this.popup = instance;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}, this.text), this.wrapperElement);
|
|
73
77
|
|
|
74
78
|
this.displayTooltip = customClass => {
|
|
75
79
|
const text = textGetter();
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { _ as _defineProperty } from '../_helpers/_rollupPluginBabelHelpers.js';
|
|
2
2
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
3
3
|
import React from 'react';
|
|
4
|
-
import { render, unmountComponentAtNode } from 'react-
|
|
4
|
+
import { render, unmountComponentAtNode } from '../global/react-render-adapter.js';
|
|
5
5
|
import ActualStorage from '../storage/storage.js';
|
|
6
6
|
import alertService from '../alert-service/alert-service.js';
|
|
7
7
|
import Link from '../link/link.js';
|
|
8
8
|
import Alert from '../alert/alert.js';
|
|
9
9
|
import Group from '../group/group.js';
|
|
10
10
|
import UserAgreement from './user-agreement.js';
|
|
11
|
+
import 'react-dom';
|
|
11
12
|
import '../storage/storage__local.js';
|
|
12
13
|
import '../global/get-uid.js';
|
|
13
14
|
import 'classnames';
|
|
@@ -5,6 +5,7 @@ import UserCardTooltip from '../user-card/tooltip.js';
|
|
|
5
5
|
import '../_helpers/_rollupPluginBabelHelpers.js';
|
|
6
6
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
7
7
|
import 'react';
|
|
8
|
+
import '../global/react-render-adapter.js';
|
|
8
9
|
import 'react-dom';
|
|
9
10
|
import '../global/ring-angular-component.js';
|
|
10
11
|
import '../global/react-dom-renderer.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jetbrains/ring-ui",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.2.2",
|
|
4
4
|
"description": "JetBrains UI library",
|
|
5
5
|
"author": "JetBrains",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -70,31 +70,31 @@
|
|
|
70
70
|
"@babel/cli": "^7.17.6",
|
|
71
71
|
"@babel/eslint-parser": "^7.17.0",
|
|
72
72
|
"@jetbrains/eslint-config": "^5.3.2",
|
|
73
|
-
"@jetbrains/generator-ring-ui": "^4.1.
|
|
73
|
+
"@jetbrains/generator-ring-ui": "^4.1.10",
|
|
74
74
|
"@jetbrains/stylelint-config": "^3.0.2",
|
|
75
75
|
"@primer/octicons": "^17.0.0",
|
|
76
76
|
"@rollup/plugin-babel": "^5.3.1",
|
|
77
77
|
"@rollup/plugin-replace": "^4.0.0",
|
|
78
|
-
"@storybook/addon-a11y": "6.
|
|
79
|
-
"@storybook/addon-docs": "6.
|
|
80
|
-
"@storybook/addon-essentials": "6.4.
|
|
81
|
-
"@storybook/addon-storyshots": "6.
|
|
82
|
-
"@storybook/addon-storyshots-puppeteer": "6.
|
|
83
|
-
"@storybook/addon-storysource": "6.
|
|
84
|
-
"@storybook/addons": "6.
|
|
85
|
-
"@storybook/builder-webpack5": "6.
|
|
86
|
-
"@storybook/client-api": "6.
|
|
87
|
-
"@storybook/core": "6.
|
|
88
|
-
"@storybook/html": "6.
|
|
89
|
-
"@storybook/manager-webpack5": "
|
|
90
|
-
"@storybook/source-loader": "6.
|
|
91
|
-
"@storybook/theming": "6.
|
|
92
|
-
"@testing-library/react": "^
|
|
93
|
-
"@testing-library/user-event": "^
|
|
78
|
+
"@storybook/addon-a11y": "6.5.0-alpha.59",
|
|
79
|
+
"@storybook/addon-docs": "6.5.0-alpha.59",
|
|
80
|
+
"@storybook/addon-essentials": "6.4.20",
|
|
81
|
+
"@storybook/addon-storyshots": "6.5.0-alpha.59",
|
|
82
|
+
"@storybook/addon-storyshots-puppeteer": "6.5.0-alpha.59",
|
|
83
|
+
"@storybook/addon-storysource": "6.5.0-alpha.59",
|
|
84
|
+
"@storybook/addons": "6.5.0-alpha.64",
|
|
85
|
+
"@storybook/builder-webpack5": "6.5.0-alpha.64",
|
|
86
|
+
"@storybook/client-api": "6.5.0-alpha.59",
|
|
87
|
+
"@storybook/core": "6.5.0-alpha.64",
|
|
88
|
+
"@storybook/html": "6.5.0-alpha.59",
|
|
89
|
+
"@storybook/manager-webpack5": "6.5.0-alpha.59",
|
|
90
|
+
"@storybook/source-loader": "6.5.0-alpha.59",
|
|
91
|
+
"@storybook/theming": "6.5.0-alpha.59",
|
|
92
|
+
"@testing-library/react": "^13.0.0",
|
|
93
|
+
"@testing-library/user-event": "^14.1.0",
|
|
94
94
|
"@wojtekmaj/enzyme-adapter-react-17": "^0.6.7",
|
|
95
95
|
"angular": "^1.8.2",
|
|
96
96
|
"angular-mocks": "^1.8.2",
|
|
97
|
-
"angular-route": "^1.8.
|
|
97
|
+
"angular-route": "^1.8.3",
|
|
98
98
|
"babel-plugin-react-docgen": "^4.2.1",
|
|
99
99
|
"babel-plugin-require-context-hook": "^1.0.0",
|
|
100
100
|
"chai": "^4.3.6",
|
|
@@ -132,9 +132,9 @@
|
|
|
132
132
|
"pinst": "^3.0.0",
|
|
133
133
|
"puppeteer": "^13.5.1",
|
|
134
134
|
"raw-loader": "^4.0.2",
|
|
135
|
-
"react": "^
|
|
136
|
-
"react-dom": "^
|
|
137
|
-
"react-test-renderer": "^
|
|
135
|
+
"react": "^18.0.0",
|
|
136
|
+
"react-dom": "^18.0.0",
|
|
137
|
+
"react-test-renderer": "^18.0.0",
|
|
138
138
|
"regenerator-runtime": "^0.13.9",
|
|
139
139
|
"rollup": "^2.70.1",
|
|
140
140
|
"rollup-plugin-clear": "^2.0.7",
|
|
@@ -147,7 +147,7 @@
|
|
|
147
147
|
"teamcity-service-messages": "^0.1.12",
|
|
148
148
|
"terser-webpack-plugin": "^5.3.1",
|
|
149
149
|
"wallaby-webpack": "^3.9.16",
|
|
150
|
-
"webpack": "^5.
|
|
150
|
+
"webpack": "^5.72.0",
|
|
151
151
|
"webpack-cli": "^4.9.2",
|
|
152
152
|
"xmlappend": "^1.0.4",
|
|
153
153
|
"yo": "^4.3.0"
|
|
@@ -156,7 +156,7 @@
|
|
|
156
156
|
"core-js": ">=3.0.0",
|
|
157
157
|
"react": ">=16.8.0",
|
|
158
158
|
"react-dom": ">=16.8.0",
|
|
159
|
-
"webpack": "^5.
|
|
159
|
+
"webpack": "^5.72.0"
|
|
160
160
|
},
|
|
161
161
|
"peerDependenciesMeta": {
|
|
162
162
|
"webpack": {
|
|
@@ -184,7 +184,7 @@
|
|
|
184
184
|
"deep-equal": "^2.0.4",
|
|
185
185
|
"element-resize-detector": "^1.2.4",
|
|
186
186
|
"es6-error": "^4.1.1",
|
|
187
|
-
"eslint-plugin-react-hooks": "^4.
|
|
187
|
+
"eslint-plugin-react-hooks": "^4.4.0",
|
|
188
188
|
"extricate-loader": "^3.0.0",
|
|
189
189
|
"fastdom": "^1.0.10",
|
|
190
190
|
"file-loader": "^6.2.0",
|
|
@@ -221,5 +221,5 @@
|
|
|
221
221
|
"node": ">=7.4",
|
|
222
222
|
"npm": ">=6.0.0"
|
|
223
223
|
},
|
|
224
|
-
"gitHead": "
|
|
224
|
+
"gitHead": "e83463856025904b6b4d8409f1460b9b1b9ceaec"
|
|
225
225
|
}
|