@jetbrains/ring-ui 5.0.84 → 5.0.85
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/date-picker/date-picker.js +3 -8
- package/components/dropdown/dropdown.d.ts +3 -0
- package/components/dropdown/dropdown.js +12 -1
- package/components/shortcuts/core.js +1 -1
- package/dist/analytics/analytics__custom-plugin.js +2 -4
- package/dist/analytics/analytics__fus-plugin.js +2 -4
- package/dist/analytics/analytics__ga-plugin.js +1 -2
- package/dist/auth/auth.js +3 -1
- package/dist/auth/auth__core.js +57 -94
- package/dist/auth/iframe-flow.js +1 -2
- package/dist/auth/landing.js +1 -2
- package/dist/auth/request-builder.js +1 -2
- package/dist/auth/token-validator.js +2 -6
- package/dist/auth/window-flow.js +2 -4
- package/dist/button/button.js +1 -2
- package/dist/caret/caret.js +13 -16
- package/dist/content-layout/content-layout.js +1 -2
- package/dist/data-list/data-list.js +3 -6
- package/dist/data-list/item.js +1 -1
- package/dist/date-picker/date-picker.js +8 -13
- package/dist/date-picker/date-popup.js +1 -2
- package/dist/dialog-ng/dialog-ng.js +2 -3
- package/dist/dropdown/dropdown.d.ts +3 -0
- package/dist/dropdown/dropdown.js +15 -6
- package/dist/editable-heading/editable-heading.js +1 -3
- package/dist/global/focus-sensor-hoc.js +8 -13
- package/dist/global/normalize-indent.js +2 -2
- package/dist/global/react-render-adapter.js +1 -4
- package/dist/global/rerender-hoc.js +1 -2
- package/dist/global/schedule-raf.js +1 -2
- package/dist/header/smart-profile.js +2 -3
- package/dist/header/smart-services.js +3 -6
- package/dist/http/http.js +7 -13
- package/dist/hub-source/hub-source__user.js +2 -3
- package/dist/icon/icon.js +1 -2
- package/dist/input/input.js +3 -6
- package/dist/island/content.js +1 -2
- package/dist/list/list__users-groups-source.js +7 -10
- package/dist/loader/loader.js +1 -2
- package/dist/loader/loader__core.js +1 -2
- package/dist/markdown/code.js +2 -3
- package/dist/message/message.js +4 -6
- package/dist/pager/pager.js +4 -8
- package/dist/permissions/permissions__cache.js +1 -1
- package/dist/popup/popup.js +2 -4
- package/dist/popup/position.js +2 -3
- package/dist/query-assist/query-assist.js +29 -41
- package/dist/select/select.js +10 -17
- package/dist/select/select__popup.js +3 -10
- package/dist/select-ng/select-ng.js +1 -2
- package/dist/select-ng/select-ng__lazy.js +1 -2
- package/dist/shortcuts/core.js +2 -3
- package/dist/tab-trap/tab-trap.js +2 -4
- package/dist/table/header.js +2 -2
- package/dist/table/multitable.js +7 -14
- package/dist/table/row-with-focus-sensor.js +4 -8
- package/dist/table/selection-shortcuts-hoc.js +11 -11
- package/dist/tabs/collapsible-tabs.js +1 -1
- package/dist/tabs/dumb-tabs.js +1 -2
- package/dist/tag/tag.js +1 -2
- package/dist/tags-input/tags-input.js +13 -23
- package/dist/tooltip/tooltip.js +2 -4
- package/package.json +9 -9
|
@@ -138,10 +138,9 @@ class SelectLazy {
|
|
|
138
138
|
_clickHandler() {
|
|
139
139
|
this.detachEvents();
|
|
140
140
|
if (this.type === 'dropdown') {
|
|
141
|
-
var _this$selectInstance, _this$selectInstance$;
|
|
142
141
|
render(this.reactSelect, this.container);
|
|
143
142
|
// Hack for React17, where click event is not triggered on just rendered Select node
|
|
144
|
-
|
|
143
|
+
this.selectInstance?._openPopupIfClosed?.();
|
|
145
144
|
} else {
|
|
146
145
|
hydrate(this.reactSelect, this.container);
|
|
147
146
|
}
|
package/dist/shortcuts/core.js
CHANGED
|
@@ -38,7 +38,7 @@ class Shortcuts {
|
|
|
38
38
|
return false;
|
|
39
39
|
}
|
|
40
40
|
// stop for input, select, and textarea
|
|
41
|
-
return element.matches('input,select,textarea') || element.contentEditable === 'true';
|
|
41
|
+
return element.matches('input:not([type=checkbox]),select,textarea') || element.contentEditable === 'true';
|
|
42
42
|
});
|
|
43
43
|
this.setFilter();
|
|
44
44
|
this.setScope();
|
|
@@ -167,8 +167,7 @@ class Shortcuts {
|
|
|
167
167
|
};
|
|
168
168
|
}
|
|
169
169
|
hasKey(key, scope) {
|
|
170
|
-
|
|
171
|
-
return !!((_this$_scopes$scope = this._scopes[scope]) !== null && _this$_scopes$scope !== void 0 && _this$_scopes$scope[key]);
|
|
170
|
+
return !!this._scopes[scope]?.[key];
|
|
172
171
|
}
|
|
173
172
|
_getKeyboardEventType(params) {
|
|
174
173
|
if (!params.type && sniffr.os.name === 'windows') {
|
|
@@ -63,7 +63,6 @@ class TabTrap extends Component {
|
|
|
63
63
|
}
|
|
64
64
|
});
|
|
65
65
|
_defineProperty(this, "handleBlurIfWithoutFocus", event => {
|
|
66
|
-
var _this$node;
|
|
67
66
|
if (!this.trapWithoutFocus) {
|
|
68
67
|
return;
|
|
69
68
|
}
|
|
@@ -72,7 +71,7 @@ class TabTrap extends Component {
|
|
|
72
71
|
if (!newFocused) {
|
|
73
72
|
return;
|
|
74
73
|
}
|
|
75
|
-
if (newFocused instanceof Element &&
|
|
74
|
+
if (newFocused instanceof Element && this.node?.contains(newFocused)) {
|
|
76
75
|
return;
|
|
77
76
|
}
|
|
78
77
|
this.focusLast();
|
|
@@ -90,9 +89,8 @@ class TabTrap extends Component {
|
|
|
90
89
|
if (this.props.autoFocusFirst) {
|
|
91
90
|
this.focusFirst();
|
|
92
91
|
} else if (!this.props.trapDisabled && (!this.node || !this.node.contains(this.previousFocusedNode))) {
|
|
93
|
-
var _this$trapButtonNode;
|
|
94
92
|
this.trapWithoutFocus = true;
|
|
95
|
-
|
|
93
|
+
this.trapButtonNode?.focus();
|
|
96
94
|
}
|
|
97
95
|
}
|
|
98
96
|
componentWillUnmount() {
|
package/dist/table/header.js
CHANGED
|
@@ -63,8 +63,8 @@ class Header extends PureComponent {
|
|
|
63
63
|
calculateColumnsWidths(columnsRowNode) {
|
|
64
64
|
var _columnsRowNode$child;
|
|
65
65
|
this.setState({
|
|
66
|
-
headerWidth: columnsRowNode
|
|
67
|
-
widths: [...((_columnsRowNode$child = columnsRowNode
|
|
66
|
+
headerWidth: columnsRowNode?.clientWidth,
|
|
67
|
+
widths: [...((_columnsRowNode$child = columnsRowNode?.childNodes) !== null && _columnsRowNode$child !== void 0 ? _columnsRowNode$child : [])].map(column => column instanceof Element ? column.clientWidth : 0)
|
|
68
68
|
});
|
|
69
69
|
}
|
|
70
70
|
createCells() {
|
package/dist/table/multitable.js
CHANGED
|
@@ -21,15 +21,12 @@ class MultiTable extends PureComponent {
|
|
|
21
21
|
const prevTable = tables[tableIndex - 1] ? tables[tableIndex - 1].props : null;
|
|
22
22
|
let newSelection = currentTable.selection.moveUp();
|
|
23
23
|
if (newSelection) {
|
|
24
|
-
|
|
25
|
-
(_currentTable$onSelec = currentTable.onSelect) === null || _currentTable$onSelec === void 0 ? void 0 : _currentTable$onSelec.call(currentTable, newSelection);
|
|
24
|
+
currentTable.onSelect?.(newSelection);
|
|
26
25
|
} else if (prevTable) {
|
|
27
|
-
|
|
28
|
-
(_currentTable$onSelec2 = currentTable.onSelect) === null || _currentTable$onSelec2 === void 0 ? void 0 : _currentTable$onSelec2.call(currentTable, currentTable.selection.resetFocus());
|
|
26
|
+
currentTable.onSelect?.(currentTable.selection.resetFocus());
|
|
29
27
|
newSelection = prevTable.selection.moveUp();
|
|
30
28
|
if (newSelection) {
|
|
31
|
-
|
|
32
|
-
(_prevTable$onSelect = prevTable.onSelect) === null || _prevTable$onSelect === void 0 ? void 0 : _prevTable$onSelect.call(prevTable, newSelection);
|
|
29
|
+
prevTable.onSelect?.(newSelection);
|
|
33
30
|
}
|
|
34
31
|
}
|
|
35
32
|
return false;
|
|
@@ -50,15 +47,12 @@ class MultiTable extends PureComponent {
|
|
|
50
47
|
const nextTable = tables[tableIndex + 1] ? tables[tableIndex + 1].props : null;
|
|
51
48
|
let newSelection = currentTable.selection.moveDown();
|
|
52
49
|
if (newSelection) {
|
|
53
|
-
|
|
54
|
-
(_currentTable$onSelec3 = currentTable.onSelect) === null || _currentTable$onSelec3 === void 0 ? void 0 : _currentTable$onSelec3.call(currentTable, newSelection);
|
|
50
|
+
currentTable.onSelect?.(newSelection);
|
|
55
51
|
} else if (nextTable) {
|
|
56
|
-
|
|
57
|
-
(_currentTable$onSelec4 = currentTable.onSelect) === null || _currentTable$onSelec4 === void 0 ? void 0 : _currentTable$onSelec4.call(currentTable, currentTable.selection.resetFocus());
|
|
52
|
+
currentTable.onSelect?.(currentTable.selection.resetFocus());
|
|
58
53
|
newSelection = nextTable.selection.moveDown();
|
|
59
54
|
if (newSelection) {
|
|
60
|
-
|
|
61
|
-
(_nextTable$onSelect = nextTable.onSelect) === null || _nextTable$onSelect === void 0 ? void 0 : _nextTable$onSelect.call(nextTable, newSelection);
|
|
55
|
+
nextTable.onSelect?.(newSelection);
|
|
62
56
|
}
|
|
63
57
|
}
|
|
64
58
|
return false;
|
|
@@ -108,8 +102,7 @@ class MultiTable extends PureComponent {
|
|
|
108
102
|
const currentSelections = this.props.children.map(element => element.props.selection);
|
|
109
103
|
const currentFocused = currentSelections.filter(selection => selection.getFocused());
|
|
110
104
|
if (currentFocused.includes(prevFocused)) {
|
|
111
|
-
|
|
112
|
-
(_prevProps$children$p = (_prevProps$children$p2 = prevProps.children[prevFocusedIndex].props).onSelect) === null || _prevProps$children$p === void 0 ? void 0 : _prevProps$children$p.call(_prevProps$children$p2, prevFocused.resetFocus());
|
|
105
|
+
prevProps.children[prevFocusedIndex].props.onSelect?.(prevFocused.resetFocus());
|
|
113
106
|
}
|
|
114
107
|
}
|
|
115
108
|
}
|
|
@@ -50,20 +50,16 @@ class RowWithFocusSensorCallbacks extends PureComponent {
|
|
|
50
50
|
super(...arguments);
|
|
51
51
|
_defineProperty(this, "RowWithFocusSensor", getContainer());
|
|
52
52
|
_defineProperty(this, "onFocus", () => {
|
|
53
|
-
|
|
54
|
-
(_this$props$onFocus = (_this$props = this.props).onFocus) === null || _this$props$onFocus === void 0 ? void 0 : _this$props$onFocus.call(_this$props, this.props.item);
|
|
53
|
+
this.props.onFocus?.(this.props.item);
|
|
55
54
|
});
|
|
56
55
|
_defineProperty(this, "onSelect", (item, selected) => {
|
|
57
|
-
|
|
58
|
-
(_this$props$onSelect = (_this$props2 = this.props).onSelect) === null || _this$props$onSelect === void 0 ? void 0 : _this$props$onSelect.call(_this$props2, item, selected);
|
|
56
|
+
this.props.onSelect?.(item, selected);
|
|
59
57
|
});
|
|
60
58
|
_defineProperty(this, "onCollapse", () => {
|
|
61
|
-
|
|
62
|
-
(_this$props$onCollaps = (_this$props3 = this.props).onCollapse) === null || _this$props$onCollaps === void 0 ? void 0 : _this$props$onCollaps.call(_this$props3, this.props.item);
|
|
59
|
+
this.props.onCollapse?.(this.props.item);
|
|
63
60
|
});
|
|
64
61
|
_defineProperty(this, "onExpand", () => {
|
|
65
|
-
|
|
66
|
-
(_this$props$onExpand = (_this$props4 = this.props).onExpand) === null || _this$props$onExpand === void 0 ? void 0 : _this$props$onExpand.call(_this$props4, this.props.item);
|
|
62
|
+
this.props.onExpand?.(this.props.item);
|
|
67
63
|
});
|
|
68
64
|
}
|
|
69
65
|
render() {
|
|
@@ -30,7 +30,7 @@ function selectionShortcutsHOC(ComposedComponent) {
|
|
|
30
30
|
} = this.props;
|
|
31
31
|
const newSelection = selection.moveUp();
|
|
32
32
|
if (newSelection) {
|
|
33
|
-
onSelect
|
|
33
|
+
onSelect?.(newSelection);
|
|
34
34
|
}
|
|
35
35
|
return false;
|
|
36
36
|
});
|
|
@@ -41,7 +41,7 @@ function selectionShortcutsHOC(ComposedComponent) {
|
|
|
41
41
|
} = this.props;
|
|
42
42
|
const newSelection = selection.moveDown();
|
|
43
43
|
if (newSelection) {
|
|
44
|
-
onSelect
|
|
44
|
+
onSelect?.(newSelection);
|
|
45
45
|
}
|
|
46
46
|
return false;
|
|
47
47
|
});
|
|
@@ -76,9 +76,9 @@ function selectionShortcutsHOC(ComposedComponent) {
|
|
|
76
76
|
const newSelection = this.shiftSelect(selection);
|
|
77
77
|
const newMovedSelection = newSelection.moveUp();
|
|
78
78
|
if (newMovedSelection) {
|
|
79
|
-
onSelect
|
|
79
|
+
onSelect?.(newMovedSelection);
|
|
80
80
|
} else {
|
|
81
|
-
onSelect
|
|
81
|
+
onSelect?.(newSelection);
|
|
82
82
|
}
|
|
83
83
|
});
|
|
84
84
|
_defineProperty(this, "onShiftDownPress", e => {
|
|
@@ -94,9 +94,9 @@ function selectionShortcutsHOC(ComposedComponent) {
|
|
|
94
94
|
const newSelection = this.shiftSelect(selection);
|
|
95
95
|
const newMovedSelection = newSelection.moveDown();
|
|
96
96
|
if (newMovedSelection) {
|
|
97
|
-
onSelect
|
|
97
|
+
onSelect?.(newMovedSelection);
|
|
98
98
|
} else {
|
|
99
|
-
onSelect
|
|
99
|
+
onSelect?.(newSelection);
|
|
100
100
|
}
|
|
101
101
|
});
|
|
102
102
|
_defineProperty(this, "onHomePress", () => {
|
|
@@ -106,7 +106,7 @@ function selectionShortcutsHOC(ComposedComponent) {
|
|
|
106
106
|
} = this.props;
|
|
107
107
|
const newSelection = selection.moveStart();
|
|
108
108
|
if (newSelection) {
|
|
109
|
-
onSelect
|
|
109
|
+
onSelect?.(newSelection);
|
|
110
110
|
}
|
|
111
111
|
return false;
|
|
112
112
|
});
|
|
@@ -117,7 +117,7 @@ function selectionShortcutsHOC(ComposedComponent) {
|
|
|
117
117
|
} = this.props;
|
|
118
118
|
const newSelection = selection.moveEnd();
|
|
119
119
|
if (newSelection) {
|
|
120
|
-
onSelect
|
|
120
|
+
onSelect?.(newSelection);
|
|
121
121
|
}
|
|
122
122
|
return false;
|
|
123
123
|
});
|
|
@@ -130,7 +130,7 @@ function selectionShortcutsHOC(ComposedComponent) {
|
|
|
130
130
|
if (!selectable) {
|
|
131
131
|
return true;
|
|
132
132
|
}
|
|
133
|
-
onSelect
|
|
133
|
+
onSelect?.(selection.toggleSelection());
|
|
134
134
|
return false;
|
|
135
135
|
});
|
|
136
136
|
_defineProperty(this, "onEscPress", () => {
|
|
@@ -138,7 +138,7 @@ function selectionShortcutsHOC(ComposedComponent) {
|
|
|
138
138
|
selection,
|
|
139
139
|
onSelect
|
|
140
140
|
} = this.props;
|
|
141
|
-
onSelect
|
|
141
|
+
onSelect?.(selection.reset());
|
|
142
142
|
//this.restoreFocusWithoutScroll();
|
|
143
143
|
});
|
|
144
144
|
_defineProperty(this, "onCmdAPress", () => {
|
|
@@ -150,7 +150,7 @@ function selectionShortcutsHOC(ComposedComponent) {
|
|
|
150
150
|
if (!selectable) {
|
|
151
151
|
return true;
|
|
152
152
|
}
|
|
153
|
-
onSelect
|
|
153
|
+
onSelect?.(selection.selectAll());
|
|
154
154
|
return false;
|
|
155
155
|
});
|
|
156
156
|
_defineProperty(this, "shortcutsMap", {
|
|
@@ -206,7 +206,7 @@ const CollapsibleTabs = _ref => {
|
|
|
206
206
|
const measureTask = fastdom.measure(() => {
|
|
207
207
|
var _container$children;
|
|
208
208
|
const container = measureRef.current;
|
|
209
|
-
const descendants = [...((_container$children = container
|
|
209
|
+
const descendants = [...((_container$children = container?.children) !== null && _container$children !== void 0 ? _container$children : [])];
|
|
210
210
|
const moreButton = descendants.pop();
|
|
211
211
|
let moreButtonWidth = moreButton.offsetWidth;
|
|
212
212
|
const {
|
package/dist/tabs/dumb-tabs.js
CHANGED
|
@@ -8,7 +8,6 @@ import { m as modules_02138f4a } from '../_helpers/tabs.js';
|
|
|
8
8
|
import TabLink from './tab-link.js';
|
|
9
9
|
import CollapsibleTabs from './collapsible-tabs.js';
|
|
10
10
|
import { CustomItem } from './custom-item.js';
|
|
11
|
-
export { CustomItem } from './custom-item.js';
|
|
12
11
|
import '../link/link.js';
|
|
13
12
|
import 'focus-visible';
|
|
14
13
|
import '../link/clickableLink.js';
|
|
@@ -148,4 +147,4 @@ _defineProperty(Tabs, "defaultProps", {
|
|
|
148
147
|
onSelect() {}
|
|
149
148
|
});
|
|
150
149
|
|
|
151
|
-
export { Tabs as default };
|
|
150
|
+
export { CustomItem, Tabs as default };
|
package/dist/tag/tag.js
CHANGED
|
@@ -46,8 +46,7 @@ class Tag extends PureComponent {
|
|
|
46
46
|
});
|
|
47
47
|
}
|
|
48
48
|
if (this.state.focused) {
|
|
49
|
-
|
|
50
|
-
(_this$tagNode = this.tagNode) === null || _this$tagNode === void 0 ? void 0 : _this$tagNode.focus();
|
|
49
|
+
this.tagNode?.focus();
|
|
51
50
|
}
|
|
52
51
|
this.setDocumentClickListener(this.state.focused);
|
|
53
52
|
}
|
|
@@ -110,17 +110,15 @@ class TagsInput extends PureComponent {
|
|
|
110
110
|
_defineProperty(this, "input", void 0);
|
|
111
111
|
_defineProperty(this, "caret", void 0);
|
|
112
112
|
_defineProperty(this, "focusInput", () => {
|
|
113
|
-
|
|
114
|
-
(_this$getInputNode = this.getInputNode()) === null || _this$getInputNode === void 0 ? void 0 : _this$getInputNode.focus();
|
|
113
|
+
this.getInputNode()?.focus();
|
|
115
114
|
});
|
|
116
115
|
_defineProperty(this, "addTag", tag => {
|
|
117
|
-
var _this$select, _this$select2;
|
|
118
116
|
if (tag == null) {
|
|
119
117
|
return;
|
|
120
118
|
}
|
|
121
119
|
const isUniqueTag = this.state.tags.filter(item => tag.key === item.key).length === 0;
|
|
122
|
-
|
|
123
|
-
|
|
120
|
+
this.select?.clear();
|
|
121
|
+
this.select?.filterValue('');
|
|
124
122
|
if (isUniqueTag) {
|
|
125
123
|
this.setState(prevState => ({
|
|
126
124
|
tags: prevState.tags.concat([tag])
|
|
@@ -132,11 +130,10 @@ class TagsInput extends PureComponent {
|
|
|
132
130
|
}
|
|
133
131
|
});
|
|
134
132
|
_defineProperty(this, "clickHandler", event => {
|
|
135
|
-
var _this$select3;
|
|
136
133
|
if (event.target !== this.node && event.target.parentElement !== this.node) {
|
|
137
134
|
return;
|
|
138
135
|
}
|
|
139
|
-
|
|
136
|
+
this.select?._clickHandler();
|
|
140
137
|
});
|
|
141
138
|
_defineProperty(this, "filterExistingTags", suggestions => {
|
|
142
139
|
const tagsMap = new Map(this.state.tags.map(tag => [tag.key, tag]));
|
|
@@ -191,22 +188,20 @@ class TagsInput extends PureComponent {
|
|
|
191
188
|
}
|
|
192
189
|
});
|
|
193
190
|
_defineProperty(this, "handleKeyDown", event => {
|
|
194
|
-
var _this$select4, _this$select4$_popup;
|
|
195
191
|
const key = getEventKey(event);
|
|
196
192
|
const isInputFocused = () => {
|
|
197
|
-
var _this$getInputNode$ta
|
|
198
|
-
return event.target instanceof Element && event.target.matches((_this$getInputNode$ta =
|
|
193
|
+
var _this$getInputNode$ta;
|
|
194
|
+
return event.target instanceof Element && event.target.matches((_this$getInputNode$ta = this.getInputNode()?.tagName) !== null && _this$getInputNode$ta !== void 0 ? _this$getInputNode$ta : '');
|
|
199
195
|
};
|
|
200
196
|
if (key === ' ' && this.props.allowAddNewTags) {
|
|
201
|
-
var _this$getInputNode3;
|
|
202
197
|
event.stopPropagation();
|
|
203
|
-
const value =
|
|
198
|
+
const value = this.getInputNode()?.value;
|
|
204
199
|
if (value != null && value !== '') {
|
|
205
200
|
this.handleTagCreation(value);
|
|
206
201
|
}
|
|
207
202
|
return true;
|
|
208
203
|
}
|
|
209
|
-
if (
|
|
204
|
+
if (this.select?._popup?.isVisible()) {
|
|
210
205
|
return true;
|
|
211
206
|
}
|
|
212
207
|
if (key === 'ArrowLeft') {
|
|
@@ -219,8 +214,7 @@ class TagsInput extends PureComponent {
|
|
|
219
214
|
if (key === 'ArrowRight' && !isInputFocused()) {
|
|
220
215
|
if (this.state.activeIndex === this.state.tags.length - 1) {
|
|
221
216
|
if (!this.props.disabled) {
|
|
222
|
-
|
|
223
|
-
(_this$getInputNode4 = this.getInputNode()) === null || _this$getInputNode4 === void 0 ? void 0 : _this$getInputNode4.focus();
|
|
217
|
+
this.getInputNode()?.focus();
|
|
224
218
|
this.setActiveIndex();
|
|
225
219
|
}
|
|
226
220
|
} else {
|
|
@@ -229,12 +223,10 @@ class TagsInput extends PureComponent {
|
|
|
229
223
|
return false;
|
|
230
224
|
}
|
|
231
225
|
if (!this.props.disabled) {
|
|
232
|
-
|
|
233
|
-
if (key === 'Backspace' && !((_this$getInputNode5 = this.getInputNode()) !== null && _this$getInputNode5 !== void 0 && _this$getInputNode5.value)) {
|
|
234
|
-
var _this$select5;
|
|
226
|
+
if (key === 'Backspace' && !this.getInputNode()?.value) {
|
|
235
227
|
event.preventDefault();
|
|
236
228
|
const tagsLength = this.state.tags.length;
|
|
237
|
-
|
|
229
|
+
this.select?._hidePopup(true); // otherwise confirmation may be overlapped by popup
|
|
238
230
|
this.onRemoveTag(this.state.tags[tagsLength - 1]);
|
|
239
231
|
return false;
|
|
240
232
|
}
|
|
@@ -281,16 +273,14 @@ class TagsInput extends PureComponent {
|
|
|
281
273
|
}
|
|
282
274
|
componentDidMount() {
|
|
283
275
|
if (this.props.autoOpen && !this.props.disabled) {
|
|
284
|
-
var _this$select6;
|
|
285
276
|
this.focusInput();
|
|
286
277
|
this.loadSuggestions();
|
|
287
|
-
|
|
278
|
+
this.select?._showPopup();
|
|
288
279
|
}
|
|
289
280
|
}
|
|
290
281
|
getInputNode() {
|
|
291
282
|
if (!this.input) {
|
|
292
|
-
|
|
293
|
-
this.input = (_this$select7 = this.select) === null || _this$select7 === void 0 ? void 0 : _this$select7.filter;
|
|
283
|
+
this.input = this.select?.filter;
|
|
294
284
|
if (this.input) {
|
|
295
285
|
this.caret = new Caret(this.input);
|
|
296
286
|
}
|
package/dist/tooltip/tooltip.js
CHANGED
|
@@ -53,7 +53,6 @@ class Tooltip extends Component {
|
|
|
53
53
|
}
|
|
54
54
|
});
|
|
55
55
|
_defineProperty(this, "showPopup", () => {
|
|
56
|
-
var _this$context;
|
|
57
56
|
if (this.props.selfOverflowOnly) {
|
|
58
57
|
const {
|
|
59
58
|
containerNode
|
|
@@ -73,15 +72,14 @@ class Tooltip extends Component {
|
|
|
73
72
|
return;
|
|
74
73
|
}
|
|
75
74
|
}
|
|
76
|
-
|
|
75
|
+
this.context?.onNestedTooltipShow();
|
|
77
76
|
this.setState({
|
|
78
77
|
showPopup: true
|
|
79
78
|
});
|
|
80
79
|
});
|
|
81
80
|
_defineProperty(this, "hidePopup", () => {
|
|
82
|
-
var _this$context2;
|
|
83
81
|
clearTimeout(this.timeout);
|
|
84
|
-
|
|
82
|
+
this.context?.onNestedTooltipHide();
|
|
85
83
|
this.setState({
|
|
86
84
|
showPopup: false
|
|
87
85
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jetbrains/ring-ui",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.85",
|
|
4
4
|
"description": "JetBrains UI library",
|
|
5
5
|
"author": "JetBrains",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
},
|
|
74
74
|
"readmeFilename": "README.md",
|
|
75
75
|
"devDependencies": {
|
|
76
|
-
"@babel/cli": "^7.
|
|
76
|
+
"@babel/cli": "^7.20.7",
|
|
77
77
|
"@babel/eslint-parser": "^7.19.1",
|
|
78
78
|
"@jetbrains/eslint-config": "^5.4.1",
|
|
79
79
|
"@jetbrains/stylelint-config": "^3.0.2",
|
|
@@ -87,15 +87,15 @@
|
|
|
87
87
|
"@storybook/addon-storyshots": "6.5.15",
|
|
88
88
|
"@storybook/addon-storyshots-puppeteer": "6.5.15",
|
|
89
89
|
"@storybook/addon-storysource": "6.5.15",
|
|
90
|
-
"@storybook/addons": "6.5.
|
|
90
|
+
"@storybook/addons": "6.5.15",
|
|
91
91
|
"@storybook/builder-webpack5": "6.5.15",
|
|
92
92
|
"@storybook/client-api": "6.5.15",
|
|
93
93
|
"@storybook/core": "6.5.15",
|
|
94
94
|
"@storybook/html": "6.5.15",
|
|
95
|
-
"@storybook/manager-webpack5": "6.5.
|
|
95
|
+
"@storybook/manager-webpack5": "6.5.15",
|
|
96
96
|
"@storybook/react": "6.5.15",
|
|
97
|
-
"@storybook/source-loader": "6.5.
|
|
98
|
-
"@storybook/theming": "6.5.
|
|
97
|
+
"@storybook/source-loader": "6.5.15",
|
|
98
|
+
"@storybook/theming": "6.5.15",
|
|
99
99
|
"@testing-library/react": "^13.4.0",
|
|
100
100
|
"@testing-library/user-event": "^14.4.3",
|
|
101
101
|
"@types/chai": "^4.3.4",
|
|
@@ -157,7 +157,7 @@
|
|
|
157
157
|
"react-test-renderer": "^18.2.0",
|
|
158
158
|
"regenerator-runtime": "^0.13.11",
|
|
159
159
|
"rimraf": "^3.0.2",
|
|
160
|
-
"rollup": "^3.
|
|
160
|
+
"rollup": "^3.8.0",
|
|
161
161
|
"rollup-plugin-clear": "^2.0.7",
|
|
162
162
|
"rollup-plugin-styles": "^4.0.0",
|
|
163
163
|
"sinon": "^15.0.1",
|
|
@@ -194,7 +194,7 @@
|
|
|
194
194
|
}
|
|
195
195
|
},
|
|
196
196
|
"dependencies": {
|
|
197
|
-
"@babel/core": "^7.20.
|
|
197
|
+
"@babel/core": "^7.20.7",
|
|
198
198
|
"@babel/preset-typescript": "^7.18.6",
|
|
199
199
|
"@jetbrains/babel-preset-jetbrains": "^2.3.2",
|
|
200
200
|
"@jetbrains/icons": "^3.20.0",
|
|
@@ -259,5 +259,5 @@
|
|
|
259
259
|
"node": ">=14.0",
|
|
260
260
|
"npm": ">=6.0.0"
|
|
261
261
|
},
|
|
262
|
-
"gitHead": "
|
|
262
|
+
"gitHead": "86abbc1e15ee106158a7e2b791b2faaa082f6960"
|
|
263
263
|
}
|