@jetbrains/ring-ui-built 6.0.5-beta.0 → 6.0.7-beta.0
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/README.md +10 -6
- package/components/_helpers/input.js +2 -2
- package/components/_helpers/select__filter.js +1 -1
- package/components/alert/alert.js +2 -0
- package/components/alert-service/alert-service.js +2 -0
- package/components/analytics/analytics__custom-plugin.js +1 -2
- package/components/auth/auth.js +3 -0
- package/components/auth/auth__core.js +38 -35
- package/components/auth/background-flow.js +3 -2
- package/components/auth/down-notification.js +2 -0
- package/components/auth/iframe-flow.js +7 -3
- package/components/auth/request-builder.d.ts +1 -0
- package/components/auth/request-builder.js +4 -1
- package/components/auth/response-parser.js +1 -0
- package/components/auth/storage.js +11 -4
- package/components/auth/token-validator.js +5 -3
- package/components/auth/window-flow.js +4 -3
- package/components/auth-dialog/auth-dialog.js +2 -0
- package/components/auth-dialog-service/auth-dialog-service.js +2 -0
- package/components/avatar/avatar.js +3 -0
- package/components/avatar/fallback-avatar.js +1 -0
- package/components/caret/caret.js +5 -4
- package/components/clipboard/clipboard-fallback.js +3 -3
- package/components/clipboard/clipboard.js +2 -0
- package/components/code/code.d.ts +1 -0
- package/components/code/code.js +0 -1
- package/components/confirm/confirm.js +2 -0
- package/components/confirm-service/confirm-service.js +2 -0
- package/components/data-list/data-list.js +7 -2
- package/components/data-list/item.js +1 -0
- package/components/data-list/selection.js +2 -0
- package/components/date-picker/date-picker.js +3 -1
- package/components/date-picker/date-popup.js +2 -2
- package/components/dialog/dialog.js +2 -0
- package/components/dropdown/dropdown.js +2 -2
- package/components/dropdown-menu/dropdown-menu.js +5 -0
- package/components/editable-heading/editable-heading.d.ts +1 -1
- package/components/editable-heading/editable-heading.js +68 -37
- package/components/error-bubble/error-bubble.js +2 -0
- package/components/global/dom.js +1 -0
- package/components/global/focus-sensor-hoc.js +6 -6
- package/components/global/normalize-indent.js +0 -1
- package/components/global/react-dom-renderer.js +1 -0
- package/components/global/schedule-raf.js +1 -1
- package/components/global/theme.js +2 -0
- package/components/global/url.js +1 -0
- package/components/grid/col.js +0 -1
- package/components/grid/grid.js +0 -1
- package/components/grid/row.js +7 -2
- package/components/header/header.js +5 -0
- package/components/header/profile.js +6 -0
- package/components/header/services.js +2 -0
- package/components/header/smart-profile.js +5 -0
- package/components/header/smart-services.js +5 -2
- package/components/http/http.js +1 -0
- package/components/http/http.mock.js +1 -0
- package/components/hub-source/hub-source.js +2 -0
- package/components/hub-source/hub-source__user.js +1 -0
- package/components/hub-source/hub-source__users-groups.js +2 -0
- package/components/island/content.js +1 -1
- package/components/island/header.js +1 -0
- package/components/list/list.d.ts +0 -1
- package/components/list/list.js +10 -3
- package/components/list/list__item.js +3 -0
- package/components/list/list__users-groups-source.js +5 -0
- package/components/loader/loader.js +3 -1
- package/components/loader/loader__core.js +21 -7
- package/components/loader-screen/loader-screen.js +2 -0
- package/components/login-dialog/login-dialog.js +4 -0
- package/components/login-dialog/service.js +4 -0
- package/components/message/message.js +2 -0
- package/components/old-browsers-message/white-list.js +2 -2
- package/components/pager/pager.js +9 -4
- package/components/permissions/permissions.js +1 -0
- package/components/popup/popup.js +5 -0
- package/components/popup/position.js +1 -0
- package/components/popup-menu/popup-menu.js +5 -0
- package/components/progress-bar/progress-bar.d.ts +6 -0
- package/components/progress-bar/progress-bar.js +11 -4
- package/components/query-assist/query-assist.js +18 -12
- package/components/query-assist/query-assist__suggestions.js +5 -0
- package/components/select/select.js +27 -2
- package/components/select/select__filter.js +5 -0
- package/components/select/select__popup.js +5 -0
- package/components/shortcuts/core.js +2 -0
- package/components/shortcuts/shortcuts-hoc.js +2 -0
- package/components/shortcuts/shortcuts.js +2 -0
- package/components/storage/storage.js +3 -0
- package/components/storage/storage__fallback.js +5 -2
- package/components/storage/storage__local.js +2 -0
- package/components/style.css +1 -1
- package/components/tab-trap/tab-trap.js +2 -1
- package/components/table/multitable.js +8 -7
- package/components/table/row-with-focus-sensor.js +6 -4
- package/components/table/row.js +2 -0
- package/components/table/selection-shortcuts-hoc.js +12 -11
- package/components/table/selection.js +1 -0
- package/components/table/smart-table.js +4 -0
- package/components/table/table.js +4 -0
- package/components/tabs/collapsible-more.js +5 -0
- package/components/tabs/collapsible-tabs.js +5 -0
- package/components/tabs/dumb-tabs.js +5 -0
- package/components/tabs/smart-tabs.js +5 -0
- package/components/tabs/tabs.js +5 -0
- package/components/tag/tag.js +1 -1
- package/components/tags-input/tags-input.js +12 -7
- package/components/tooltip/tooltip.js +4 -2
- package/components/user-agreement/service.js +3 -0
- package/components/user-agreement/user-agreement.js +2 -0
- package/components/user-card/card.js +4 -0
- package/components/user-card/smart-user-card-tooltip.js +4 -0
- package/components/user-card/tooltip.js +4 -0
- package/components/user-card/user-card.js +4 -0
- package/package.json +4 -13
- package/typings.d.ts +0 -54
- package/babel.config.js +0 -25
- package/jslint-xml.js +0 -38
- package/postcss.config.js +0 -20
- package/webpack.config.js +0 -118
@@ -5,6 +5,7 @@ import 'core-js/modules/es.object.to-string.js';
|
|
5
5
|
import React, { Component } from 'react';
|
6
6
|
import PropTypes from 'prop-types';
|
7
7
|
import { isNodeInVisiblePartOfPage } from '../global/dom.js';
|
8
|
+
import 'core-js/modules/es.object.assign.js';
|
8
9
|
import 'core-js/modules/web.dom-collections.for-each.js';
|
9
10
|
import 'core-js/modules/es.regexp.exec.js';
|
10
11
|
import 'core-js/modules/es.string.split.js';
|
@@ -115,7 +116,7 @@ var TabTrap = /*#__PURE__*/function (_Component) {
|
|
115
116
|
} else if (!this.props.trapDisabled && (!this.node || !this.node.contains(this.previousFocusedNode))) {
|
116
117
|
var _this$trapButtonNode;
|
117
118
|
this.trapWithoutFocus = true;
|
118
|
-
(_this$trapButtonNode = this.trapButtonNode) === null || _this$trapButtonNode === void 0
|
119
|
+
(_this$trapButtonNode = this.trapButtonNode) === null || _this$trapButtonNode === void 0 || _this$trapButtonNode.focus();
|
119
120
|
}
|
120
121
|
}
|
121
122
|
}, {
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import { _ as _defineProperty, a as _inherits, b as _createSuper, c as _classCallCheck, k as _assertThisInitialized, d as _createClass } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
2
|
import 'core-js/modules/es.array.concat.js';
|
3
|
+
import 'core-js/modules/es.array.find-index.js';
|
3
4
|
import 'core-js/modules/es.object.to-string.js';
|
4
5
|
import 'core-js/modules/web.dom-collections.for-each.js';
|
5
6
|
import 'core-js/modules/es.array.map.js';
|
@@ -30,14 +31,14 @@ var MultiTable = /*#__PURE__*/function (_PureComponent) {
|
|
30
31
|
var newSelection = currentTable.selection.moveUp();
|
31
32
|
if (newSelection) {
|
32
33
|
var _currentTable$onSelec;
|
33
|
-
(_currentTable$onSelec = currentTable.onSelect) === null || _currentTable$onSelec === void 0
|
34
|
+
(_currentTable$onSelec = currentTable.onSelect) === null || _currentTable$onSelec === void 0 || _currentTable$onSelec.call(currentTable, newSelection);
|
34
35
|
} else if (prevTable) {
|
35
36
|
var _currentTable$onSelec2;
|
36
|
-
(_currentTable$onSelec2 = currentTable.onSelect) === null || _currentTable$onSelec2 === void 0
|
37
|
+
(_currentTable$onSelec2 = currentTable.onSelect) === null || _currentTable$onSelec2 === void 0 || _currentTable$onSelec2.call(currentTable, currentTable.selection.resetFocus());
|
37
38
|
newSelection = prevTable.selection.moveUp();
|
38
39
|
if (newSelection) {
|
39
40
|
var _prevTable$onSelect;
|
40
|
-
(_prevTable$onSelect = prevTable.onSelect) === null || _prevTable$onSelect === void 0
|
41
|
+
(_prevTable$onSelect = prevTable.onSelect) === null || _prevTable$onSelect === void 0 || _prevTable$onSelect.call(prevTable, newSelection);
|
41
42
|
}
|
42
43
|
}
|
43
44
|
return false;
|
@@ -53,14 +54,14 @@ var MultiTable = /*#__PURE__*/function (_PureComponent) {
|
|
53
54
|
var newSelection = currentTable.selection.moveDown();
|
54
55
|
if (newSelection) {
|
55
56
|
var _currentTable$onSelec3;
|
56
|
-
(_currentTable$onSelec3 = currentTable.onSelect) === null || _currentTable$onSelec3 === void 0
|
57
|
+
(_currentTable$onSelec3 = currentTable.onSelect) === null || _currentTable$onSelec3 === void 0 || _currentTable$onSelec3.call(currentTable, newSelection);
|
57
58
|
} else if (nextTable) {
|
58
59
|
var _currentTable$onSelec4;
|
59
|
-
(_currentTable$onSelec4 = currentTable.onSelect) === null || _currentTable$onSelec4 === void 0
|
60
|
+
(_currentTable$onSelec4 = currentTable.onSelect) === null || _currentTable$onSelec4 === void 0 || _currentTable$onSelec4.call(currentTable, currentTable.selection.resetFocus());
|
60
61
|
newSelection = nextTable.selection.moveDown();
|
61
62
|
if (newSelection) {
|
62
63
|
var _nextTable$onSelect;
|
63
|
-
(_nextTable$onSelect = nextTable.onSelect) === null || _nextTable$onSelect === void 0
|
64
|
+
(_nextTable$onSelect = nextTable.onSelect) === null || _nextTable$onSelect === void 0 || _nextTable$onSelect.call(nextTable, newSelection);
|
64
65
|
}
|
65
66
|
}
|
66
67
|
return false;
|
@@ -112,7 +113,7 @@ var MultiTable = /*#__PURE__*/function (_PureComponent) {
|
|
112
113
|
});
|
113
114
|
if (currentFocused.includes(prevFocused)) {
|
114
115
|
var _prevProps$children$p, _prevProps$children$p2;
|
115
|
-
(_prevProps$children$p = (_prevProps$children$p2 = prevProps.children[prevFocusedIndex].props).onSelect) === null || _prevProps$children$p === void 0
|
116
|
+
(_prevProps$children$p = (_prevProps$children$p2 = prevProps.children[prevFocusedIndex].props).onSelect) === null || _prevProps$children$p === void 0 || _prevProps$children$p.call(_prevProps$children$p2, prevFocused.resetFocus());
|
116
117
|
}
|
117
118
|
}
|
118
119
|
}
|
@@ -41,6 +41,7 @@ import 'react-dom';
|
|
41
41
|
import '../global/get-uid.js';
|
42
42
|
import '../global/schedule-raf.js';
|
43
43
|
import '../global/dom.js';
|
44
|
+
import 'core-js/modules/es.object.assign.js';
|
44
45
|
import 'core-js/modules/es.array.filter.js';
|
45
46
|
import 'core-js/modules/es.string.split.js';
|
46
47
|
import 'core-js/modules/es.set.js';
|
@@ -51,6 +52,7 @@ import 'core-js/modules/es.string.includes.js';
|
|
51
52
|
import 'core-js/modules/es.array.slice.js';
|
52
53
|
import 'core-js/modules/es.array.splice.js';
|
53
54
|
import 'core-js/modules/es.string.match.js';
|
55
|
+
import 'core-js/modules/es.array.find-index.js';
|
54
56
|
import 'combokeys';
|
55
57
|
import '../global/sniffer.js';
|
56
58
|
import 'sniffr';
|
@@ -81,19 +83,19 @@ var RowWithFocusSensorCallbacks = /*#__PURE__*/function (_PureComponent) {
|
|
81
83
|
_defineProperty(_assertThisInitialized(_this), "RowWithFocusSensor", getContainer());
|
82
84
|
_defineProperty(_assertThisInitialized(_this), "onFocus", function () {
|
83
85
|
var _this$props$onFocus, _this$props;
|
84
|
-
(_this$props$onFocus = (_this$props = _this.props).onFocus) === null || _this$props$onFocus === void 0
|
86
|
+
(_this$props$onFocus = (_this$props = _this.props).onFocus) === null || _this$props$onFocus === void 0 || _this$props$onFocus.call(_this$props, _this.props.item);
|
85
87
|
});
|
86
88
|
_defineProperty(_assertThisInitialized(_this), "onSelect", function (item, selected) {
|
87
89
|
var _this$props$onSelect, _this$props2;
|
88
|
-
(_this$props$onSelect = (_this$props2 = _this.props).onSelect) === null || _this$props$onSelect === void 0
|
90
|
+
(_this$props$onSelect = (_this$props2 = _this.props).onSelect) === null || _this$props$onSelect === void 0 || _this$props$onSelect.call(_this$props2, item, selected);
|
89
91
|
});
|
90
92
|
_defineProperty(_assertThisInitialized(_this), "onCollapse", function () {
|
91
93
|
var _this$props$onCollaps, _this$props3;
|
92
|
-
(_this$props$onCollaps = (_this$props3 = _this.props).onCollapse) === null || _this$props$onCollaps === void 0
|
94
|
+
(_this$props$onCollaps = (_this$props3 = _this.props).onCollapse) === null || _this$props$onCollaps === void 0 || _this$props$onCollaps.call(_this$props3, _this.props.item);
|
93
95
|
});
|
94
96
|
_defineProperty(_assertThisInitialized(_this), "onExpand", function () {
|
95
97
|
var _this$props$onExpand, _this$props4;
|
96
|
-
(_this$props$onExpand = (_this$props4 = _this.props).onExpand) === null || _this$props$onExpand === void 0
|
98
|
+
(_this$props$onExpand = (_this$props4 = _this.props).onExpand) === null || _this$props$onExpand === void 0 || _this$props$onExpand.call(_this$props4, _this.props.item);
|
97
99
|
});
|
98
100
|
return _this;
|
99
101
|
}
|
package/components/table/row.js
CHANGED
@@ -42,6 +42,7 @@ import 'core-js/modules/es.regexp.to-string.js';
|
|
42
42
|
import 'react-dom';
|
43
43
|
import '../global/schedule-raf.js';
|
44
44
|
import '../global/dom.js';
|
45
|
+
import 'core-js/modules/es.object.assign.js';
|
45
46
|
import 'core-js/modules/es.array.filter.js';
|
46
47
|
import 'core-js/modules/es.string.split.js';
|
47
48
|
import 'core-js/modules/es.set.js';
|
@@ -52,6 +53,7 @@ import 'core-js/modules/es.string.includes.js';
|
|
52
53
|
import 'core-js/modules/es.array.slice.js';
|
53
54
|
import 'core-js/modules/es.array.splice.js';
|
54
55
|
import 'core-js/modules/es.string.match.js';
|
56
|
+
import 'core-js/modules/es.array.find-index.js';
|
55
57
|
import 'combokeys';
|
56
58
|
import '../global/sniffer.js';
|
57
59
|
import 'sniffr';
|
@@ -8,6 +8,7 @@ import 'core-js/modules/es.object.to-string.js';
|
|
8
8
|
import 'core-js/modules/es.set.js';
|
9
9
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
10
10
|
import 'core-js/modules/es.array.filter.js';
|
11
|
+
import 'core-js/modules/es.array.index-of.js';
|
11
12
|
|
12
13
|
var _excluded = ["selection", "selectable", "onSelect", "shortcutsMap"],
|
13
14
|
_excluded2 = ["selection", "selectable", "onSelect", "shortcuts"];
|
@@ -40,7 +41,7 @@ function selectionShortcutsHOC(ComposedComponent) {
|
|
40
41
|
onSelect = _this$props.onSelect;
|
41
42
|
var newSelection = selection.moveUp();
|
42
43
|
if (newSelection) {
|
43
|
-
onSelect === null || onSelect === void 0
|
44
|
+
onSelect === null || onSelect === void 0 || onSelect(newSelection);
|
44
45
|
}
|
45
46
|
return false;
|
46
47
|
});
|
@@ -50,7 +51,7 @@ function selectionShortcutsHOC(ComposedComponent) {
|
|
50
51
|
onSelect = _this$props2.onSelect;
|
51
52
|
var newSelection = selection.moveDown();
|
52
53
|
if (newSelection) {
|
53
|
-
onSelect === null || onSelect === void 0
|
54
|
+
onSelect === null || onSelect === void 0 || onSelect(newSelection);
|
54
55
|
}
|
55
56
|
return false;
|
56
57
|
});
|
@@ -82,9 +83,9 @@ function selectionShortcutsHOC(ComposedComponent) {
|
|
82
83
|
var newSelection = _this.shiftSelect(selection);
|
83
84
|
var newMovedSelection = newSelection.moveUp();
|
84
85
|
if (newMovedSelection) {
|
85
|
-
onSelect === null || onSelect === void 0
|
86
|
+
onSelect === null || onSelect === void 0 || onSelect(newMovedSelection);
|
86
87
|
} else {
|
87
|
-
onSelect === null || onSelect === void 0
|
88
|
+
onSelect === null || onSelect === void 0 || onSelect(newSelection);
|
88
89
|
}
|
89
90
|
});
|
90
91
|
_defineProperty(_assertThisInitialized(_this), "onShiftDownPress", function (e) {
|
@@ -99,9 +100,9 @@ function selectionShortcutsHOC(ComposedComponent) {
|
|
99
100
|
var newSelection = _this.shiftSelect(selection);
|
100
101
|
var newMovedSelection = newSelection.moveDown();
|
101
102
|
if (newMovedSelection) {
|
102
|
-
onSelect === null || onSelect === void 0
|
103
|
+
onSelect === null || onSelect === void 0 || onSelect(newMovedSelection);
|
103
104
|
} else {
|
104
|
-
onSelect === null || onSelect === void 0
|
105
|
+
onSelect === null || onSelect === void 0 || onSelect(newSelection);
|
105
106
|
}
|
106
107
|
});
|
107
108
|
_defineProperty(_assertThisInitialized(_this), "onHomePress", function () {
|
@@ -110,7 +111,7 @@ function selectionShortcutsHOC(ComposedComponent) {
|
|
110
111
|
onSelect = _this$props5.onSelect;
|
111
112
|
var newSelection = selection.moveStart();
|
112
113
|
if (newSelection) {
|
113
|
-
onSelect === null || onSelect === void 0
|
114
|
+
onSelect === null || onSelect === void 0 || onSelect(newSelection);
|
114
115
|
}
|
115
116
|
return false;
|
116
117
|
});
|
@@ -120,7 +121,7 @@ function selectionShortcutsHOC(ComposedComponent) {
|
|
120
121
|
onSelect = _this$props6.onSelect;
|
121
122
|
var newSelection = selection.moveEnd();
|
122
123
|
if (newSelection) {
|
123
|
-
onSelect === null || onSelect === void 0
|
124
|
+
onSelect === null || onSelect === void 0 || onSelect(newSelection);
|
124
125
|
}
|
125
126
|
return false;
|
126
127
|
});
|
@@ -132,14 +133,14 @@ function selectionShortcutsHOC(ComposedComponent) {
|
|
132
133
|
if (!selectable) {
|
133
134
|
return true;
|
134
135
|
}
|
135
|
-
onSelect === null || onSelect === void 0
|
136
|
+
onSelect === null || onSelect === void 0 || onSelect(selection.toggleSelection());
|
136
137
|
return false;
|
137
138
|
});
|
138
139
|
_defineProperty(_assertThisInitialized(_this), "onEscPress", function () {
|
139
140
|
var _this$props8 = _this.props,
|
140
141
|
selection = _this$props8.selection,
|
141
142
|
onSelect = _this$props8.onSelect;
|
142
|
-
onSelect === null || onSelect === void 0
|
143
|
+
onSelect === null || onSelect === void 0 || onSelect(selection.reset());
|
143
144
|
//this.restoreFocusWithoutScroll();
|
144
145
|
});
|
145
146
|
_defineProperty(_assertThisInitialized(_this), "onCmdAPress", function () {
|
@@ -150,7 +151,7 @@ function selectionShortcutsHOC(ComposedComponent) {
|
|
150
151
|
if (!selectable) {
|
151
152
|
return true;
|
152
153
|
}
|
153
|
-
onSelect === null || onSelect === void 0
|
154
|
+
onSelect === null || onSelect === void 0 || onSelect(selection.selectAll());
|
154
155
|
return false;
|
155
156
|
});
|
156
157
|
_defineProperty(_assertThisInitialized(_this), "shortcutsMap", {
|
@@ -4,6 +4,7 @@ import 'core-js/modules/es.object.to-string.js';
|
|
4
4
|
import 'core-js/modules/es.set.js';
|
5
5
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
6
6
|
import 'core-js/modules/es.array.filter.js';
|
7
|
+
import 'core-js/modules/es.array.index-of.js';
|
7
8
|
|
8
9
|
var Selection = /*#__PURE__*/function () {
|
9
10
|
function Selection() {
|
@@ -18,10 +18,12 @@ import '../shortcuts/shortcuts.js';
|
|
18
18
|
import '../shortcuts/core.js';
|
19
19
|
import 'core-js/modules/es.array.includes.js';
|
20
20
|
import 'core-js/modules/es.string.includes.js';
|
21
|
+
import 'core-js/modules/es.object.assign.js';
|
21
22
|
import 'core-js/modules/es.array.slice.js';
|
22
23
|
import 'core-js/modules/es.array.splice.js';
|
23
24
|
import 'core-js/modules/es.regexp.exec.js';
|
24
25
|
import 'core-js/modules/es.string.match.js';
|
26
|
+
import 'core-js/modules/es.array.find-index.js';
|
25
27
|
import 'combokeys';
|
26
28
|
import '../global/sniffer.js';
|
27
29
|
import 'sniffr';
|
@@ -30,6 +32,7 @@ import '../global/data-tests.js';
|
|
30
32
|
import 'core-js/modules/es.array.reduce.js';
|
31
33
|
import 'core-js/modules/es.object.entries.js';
|
32
34
|
import '../loader/loader__core.js';
|
35
|
+
import 'core-js/modules/es.array.fill.js';
|
33
36
|
import 'core-js/modules/es.array.filter.js';
|
34
37
|
import '../global/dom.js';
|
35
38
|
import 'core-js/modules/es.string.split.js';
|
@@ -74,6 +77,7 @@ import 'core-js/modules/es.array.sort.js';
|
|
74
77
|
import '../popup/popup.consts.js';
|
75
78
|
import '../popup/popup.target.js';
|
76
79
|
import './cell.js';
|
80
|
+
import 'core-js/modules/es.array.index-of.js';
|
77
81
|
|
78
82
|
var _Table$propTypes;
|
79
83
|
var _ref = (_Table$propTypes = TableContainer.propTypes) !== null && _Table$propTypes !== void 0 ? _Table$propTypes : {};
|
@@ -23,10 +23,12 @@ import 'core-js/modules/es.regexp.to-string.js';
|
|
23
23
|
import '../shortcuts/core.js';
|
24
24
|
import 'core-js/modules/es.array.includes.js';
|
25
25
|
import 'core-js/modules/es.string.includes.js';
|
26
|
+
import 'core-js/modules/es.object.assign.js';
|
26
27
|
import 'core-js/modules/es.array.slice.js';
|
27
28
|
import 'core-js/modules/es.array.splice.js';
|
28
29
|
import 'core-js/modules/es.regexp.exec.js';
|
29
30
|
import 'core-js/modules/es.string.match.js';
|
31
|
+
import 'core-js/modules/es.array.find-index.js';
|
30
32
|
import 'combokeys';
|
31
33
|
import '../global/sniffer.js';
|
32
34
|
import 'sniffr';
|
@@ -34,12 +36,14 @@ import '../global/data-tests.js';
|
|
34
36
|
import 'core-js/modules/es.array.reduce.js';
|
35
37
|
import 'core-js/modules/es.object.entries.js';
|
36
38
|
import '../loader/loader__core.js';
|
39
|
+
import 'core-js/modules/es.array.fill.js';
|
37
40
|
import 'core-js/modules/es.array.filter.js';
|
38
41
|
import '../global/dom.js';
|
39
42
|
import 'core-js/modules/es.string.split.js';
|
40
43
|
import 'core-js/modules/es.array.iterator.js';
|
41
44
|
import 'core-js/modules/es.set.js';
|
42
45
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
46
|
+
import 'core-js/modules/es.array.index-of.js';
|
43
47
|
import '../checkbox/checkbox.js';
|
44
48
|
import '@jetbrains/icons/checkmark-14px';
|
45
49
|
import '@jetbrains/icons/remove-14px';
|
@@ -24,6 +24,7 @@ import 'react-dom';
|
|
24
24
|
import '../global/get-uid.js';
|
25
25
|
import '../global/schedule-raf.js';
|
26
26
|
import '../global/dom.js';
|
27
|
+
import 'core-js/modules/es.object.assign.js';
|
27
28
|
import 'core-js/modules/es.array.filter.js';
|
28
29
|
import 'core-js/modules/es.string.split.js';
|
29
30
|
import 'core-js/modules/es.array.iterator.js';
|
@@ -36,6 +37,7 @@ import 'core-js/modules/es.string.includes.js';
|
|
36
37
|
import 'core-js/modules/es.array.slice.js';
|
37
38
|
import 'core-js/modules/es.array.splice.js';
|
38
39
|
import 'core-js/modules/es.string.match.js';
|
40
|
+
import 'core-js/modules/es.array.find-index.js';
|
39
41
|
import 'combokeys';
|
40
42
|
import '../global/sniffer.js';
|
41
43
|
import 'sniffr';
|
@@ -48,6 +50,7 @@ import '../popup/popup.target.js';
|
|
48
50
|
import '../list/list.js';
|
49
51
|
import 'core-js/modules/es.symbol.js';
|
50
52
|
import 'core-js/modules/es.symbol.description.js';
|
53
|
+
import 'core-js/modules/es.array.find.js';
|
51
54
|
import 'react-virtualized/dist/es/List';
|
52
55
|
import 'react-virtualized/dist/es/AutoSizer';
|
53
56
|
import 'react-virtualized/dist/es/WindowScroller';
|
@@ -61,9 +64,11 @@ import '../global/create-stateful-context.js';
|
|
61
64
|
import '../list/list__link.js';
|
62
65
|
import '../_helpers/list.js';
|
63
66
|
import '../list/list__item.js';
|
67
|
+
import 'core-js/modules/es.array.index-of.js';
|
64
68
|
import '../avatar/avatar.js';
|
65
69
|
import '../global/url.js';
|
66
70
|
import '../avatar/fallback-avatar.js';
|
71
|
+
import 'core-js/modules/es.array.from.js';
|
67
72
|
import '../checkbox/checkbox.js';
|
68
73
|
import '@jetbrains/icons/checkmark-14px';
|
69
74
|
import '@jetbrains/icons/remove-14px';
|
@@ -1,8 +1,10 @@
|
|
1
1
|
import { j as _slicedToArray, l as _toConsumableArray } from '../_helpers/_rollupPluginBabelHelpers.js';
|
2
|
+
import 'core-js/modules/es.array.find-index.js';
|
2
3
|
import 'core-js/modules/es.array.filter.js';
|
3
4
|
import 'core-js/modules/es.object.to-string.js';
|
4
5
|
import 'core-js/modules/es.array.slice.js';
|
5
6
|
import 'core-js/modules/es.array.reduce.js';
|
7
|
+
import 'core-js/modules/es.array.find.js';
|
6
8
|
import 'core-js/modules/es.regexp.exec.js';
|
7
9
|
import 'core-js/modules/es.string.replace.js';
|
8
10
|
import 'core-js/modules/es.array.map.js';
|
@@ -29,6 +31,7 @@ import 'react-dom';
|
|
29
31
|
import '../global/get-uid.js';
|
30
32
|
import '../global/schedule-raf.js';
|
31
33
|
import '../global/dom.js';
|
34
|
+
import 'core-js/modules/es.object.assign.js';
|
32
35
|
import 'core-js/modules/es.string.split.js';
|
33
36
|
import 'core-js/modules/es.array.iterator.js';
|
34
37
|
import 'core-js/modules/es.set.js';
|
@@ -62,9 +65,11 @@ import '../global/create-stateful-context.js';
|
|
62
65
|
import '../list/list__link.js';
|
63
66
|
import '../_helpers/list.js';
|
64
67
|
import '../list/list__item.js';
|
68
|
+
import 'core-js/modules/es.array.index-of.js';
|
65
69
|
import '../avatar/avatar.js';
|
66
70
|
import '../global/url.js';
|
67
71
|
import '../avatar/fallback-avatar.js';
|
72
|
+
import 'core-js/modules/es.array.from.js';
|
68
73
|
import '../checkbox/checkbox.js';
|
69
74
|
import '@jetbrains/icons/checkmark-14px';
|
70
75
|
import '@jetbrains/icons/remove-14px';
|
@@ -4,6 +4,7 @@ import 'core-js/modules/es.array.filter.js';
|
|
4
4
|
import 'core-js/modules/es.object.to-string.js';
|
5
5
|
import 'core-js/modules/es.promise.js';
|
6
6
|
import 'core-js/modules/es.array.map.js';
|
7
|
+
import 'core-js/modules/es.array.find.js';
|
7
8
|
import React, { PureComponent } from 'react';
|
8
9
|
import PropTypes from 'prop-types';
|
9
10
|
import classNames from 'classnames';
|
@@ -21,6 +22,7 @@ import 'core-js/modules/es.object.entries.js';
|
|
21
22
|
import '../link/link.js';
|
22
23
|
import '../link/clickableLink.js';
|
23
24
|
import '../_helpers/link.js';
|
25
|
+
import 'core-js/modules/es.array.find-index.js';
|
24
26
|
import 'core-js/modules/es.array.slice.js';
|
25
27
|
import 'core-js/modules/es.regexp.exec.js';
|
26
28
|
import 'core-js/modules/es.string.replace.js';
|
@@ -36,6 +38,7 @@ import 'react-dom';
|
|
36
38
|
import '../global/get-uid.js';
|
37
39
|
import '../global/schedule-raf.js';
|
38
40
|
import '../global/dom.js';
|
41
|
+
import 'core-js/modules/es.object.assign.js';
|
39
42
|
import 'core-js/modules/es.string.split.js';
|
40
43
|
import 'core-js/modules/es.set.js';
|
41
44
|
import '../shortcuts/shortcuts.js';
|
@@ -64,9 +67,11 @@ import '../global/create-stateful-context.js';
|
|
64
67
|
import '../list/list__link.js';
|
65
68
|
import '../_helpers/list.js';
|
66
69
|
import '../list/list__item.js';
|
70
|
+
import 'core-js/modules/es.array.index-of.js';
|
67
71
|
import '../avatar/avatar.js';
|
68
72
|
import '../global/url.js';
|
69
73
|
import '../avatar/fallback-avatar.js';
|
74
|
+
import 'core-js/modules/es.array.from.js';
|
70
75
|
import '../checkbox/checkbox.js';
|
71
76
|
import '@jetbrains/icons/checkmark-14px';
|
72
77
|
import '@jetbrains/icons/remove-14px';
|
@@ -10,6 +10,7 @@ import 'core-js/modules/es.array.concat.js';
|
|
10
10
|
import 'core-js/modules/es.array.filter.js';
|
11
11
|
import 'core-js/modules/es.promise.js';
|
12
12
|
import 'core-js/modules/es.array.map.js';
|
13
|
+
import 'core-js/modules/es.array.find.js';
|
13
14
|
import 'classnames';
|
14
15
|
import '../global/memoize.js';
|
15
16
|
import 'core-js/modules/es.array.iterator.js';
|
@@ -21,6 +22,7 @@ import '../link/link.js';
|
|
21
22
|
import '../link/clickableLink.js';
|
22
23
|
import '../_helpers/link.js';
|
23
24
|
import './collapsible-tabs.js';
|
25
|
+
import 'core-js/modules/es.array.find-index.js';
|
24
26
|
import 'core-js/modules/es.array.slice.js';
|
25
27
|
import 'core-js/modules/es.regexp.exec.js';
|
26
28
|
import 'core-js/modules/es.string.replace.js';
|
@@ -36,6 +38,7 @@ import 'react-dom';
|
|
36
38
|
import '../global/get-uid.js';
|
37
39
|
import '../global/schedule-raf.js';
|
38
40
|
import '../global/dom.js';
|
41
|
+
import 'core-js/modules/es.object.assign.js';
|
39
42
|
import 'core-js/modules/es.string.split.js';
|
40
43
|
import 'core-js/modules/es.set.js';
|
41
44
|
import '../shortcuts/shortcuts.js';
|
@@ -64,9 +67,11 @@ import '../global/create-stateful-context.js';
|
|
64
67
|
import '../list/list__link.js';
|
65
68
|
import '../_helpers/list.js';
|
66
69
|
import '../list/list__item.js';
|
70
|
+
import 'core-js/modules/es.array.index-of.js';
|
67
71
|
import '../avatar/avatar.js';
|
68
72
|
import '../global/url.js';
|
69
73
|
import '../avatar/fallback-avatar.js';
|
74
|
+
import 'core-js/modules/es.array.from.js';
|
70
75
|
import '../checkbox/checkbox.js';
|
71
76
|
import '@jetbrains/icons/checkmark-14px';
|
72
77
|
import '@jetbrains/icons/remove-14px';
|
package/components/tabs/tabs.js
CHANGED
@@ -9,6 +9,7 @@ import 'core-js/modules/es.array.filter.js';
|
|
9
9
|
import 'core-js/modules/es.object.to-string.js';
|
10
10
|
import 'core-js/modules/es.promise.js';
|
11
11
|
import 'core-js/modules/es.array.map.js';
|
12
|
+
import 'core-js/modules/es.array.find.js';
|
12
13
|
import 'react';
|
13
14
|
import 'classnames';
|
14
15
|
import '../global/memoize.js';
|
@@ -24,6 +25,7 @@ import '../link/link.js';
|
|
24
25
|
import '../link/clickableLink.js';
|
25
26
|
import '../_helpers/link.js';
|
26
27
|
import './collapsible-tabs.js';
|
28
|
+
import 'core-js/modules/es.array.find-index.js';
|
27
29
|
import 'core-js/modules/es.array.slice.js';
|
28
30
|
import 'core-js/modules/es.regexp.exec.js';
|
29
31
|
import 'core-js/modules/es.string.replace.js';
|
@@ -39,6 +41,7 @@ import 'react-dom';
|
|
39
41
|
import '../global/get-uid.js';
|
40
42
|
import '../global/schedule-raf.js';
|
41
43
|
import '../global/dom.js';
|
44
|
+
import 'core-js/modules/es.object.assign.js';
|
42
45
|
import 'core-js/modules/es.string.split.js';
|
43
46
|
import 'core-js/modules/es.set.js';
|
44
47
|
import '../shortcuts/shortcuts.js';
|
@@ -67,9 +70,11 @@ import '../global/create-stateful-context.js';
|
|
67
70
|
import '../list/list__link.js';
|
68
71
|
import '../_helpers/list.js';
|
69
72
|
import '../list/list__item.js';
|
73
|
+
import 'core-js/modules/es.array.index-of.js';
|
70
74
|
import '../avatar/avatar.js';
|
71
75
|
import '../global/url.js';
|
72
76
|
import '../avatar/fallback-avatar.js';
|
77
|
+
import 'core-js/modules/es.array.from.js';
|
73
78
|
import '../checkbox/checkbox.js';
|
74
79
|
import '@jetbrains/icons/checkmark-14px';
|
75
80
|
import '@jetbrains/icons/remove-14px';
|
package/components/tag/tag.js
CHANGED
@@ -64,7 +64,7 @@ var Tag = /*#__PURE__*/function (_PureComponent) {
|
|
64
64
|
}
|
65
65
|
if (this.state.focused) {
|
66
66
|
var _this$tagNode;
|
67
|
-
(_this$tagNode = this.tagNode) === null || _this$tagNode === void 0
|
67
|
+
(_this$tagNode = this.tagNode) === null || _this$tagNode === void 0 || _this$tagNode.focus();
|
68
68
|
}
|
69
69
|
this.setDocumentClickListener(this.state.focused);
|
70
70
|
}
|
@@ -6,7 +6,9 @@ import 'core-js/modules/es.array.iterator.js';
|
|
6
6
|
import 'core-js/modules/es.map.js';
|
7
7
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
8
8
|
import 'core-js/modules/es.array.map.js';
|
9
|
+
import 'core-js/modules/es.array.index-of.js';
|
9
10
|
import 'core-js/modules/es.promise.js';
|
11
|
+
import 'core-js/modules/es.object.assign.js';
|
10
12
|
import React, { Component, PureComponent } from 'react';
|
11
13
|
import PropTypes from 'prop-types';
|
12
14
|
import classNames from 'classnames';
|
@@ -23,6 +25,7 @@ import { ControlLabel } from '../control-label/control-label.js';
|
|
23
25
|
import 'core-js/modules/es.array.reduce.js';
|
24
26
|
import 'core-js/modules/es.string.trim.js';
|
25
27
|
import 'core-js/modules/es.regexp.exec.js';
|
28
|
+
import 'core-js/modules/es.array.find.js';
|
26
29
|
import 'core-js/modules/es.string.replace.js';
|
27
30
|
import 'core-js/modules/web.dom-collections.for-each.js';
|
28
31
|
import 'core-js/modules/es.array.slice.js';
|
@@ -52,6 +55,7 @@ import '../global/dom.js';
|
|
52
55
|
import 'core-js/modules/es.string.split.js';
|
53
56
|
import 'core-js/modules/es.set.js';
|
54
57
|
import '../avatar/fallback-avatar.js';
|
58
|
+
import 'core-js/modules/es.array.from.js';
|
55
59
|
import 'core-js/modules/es.regexp.to-string.js';
|
56
60
|
import '../popup/popup.js';
|
57
61
|
import 'react-dom';
|
@@ -61,6 +65,7 @@ import '../shortcuts/core.js';
|
|
61
65
|
import 'core-js/modules/es.array.includes.js';
|
62
66
|
import 'core-js/modules/es.string.includes.js';
|
63
67
|
import 'core-js/modules/es.array.splice.js';
|
68
|
+
import 'core-js/modules/es.array.find-index.js';
|
64
69
|
import 'combokeys';
|
65
70
|
import '../global/sniffer.js';
|
66
71
|
import 'sniffr';
|
@@ -137,7 +142,7 @@ var TagsInput = /*#__PURE__*/function (_PureComponent) {
|
|
137
142
|
_defineProperty(_assertThisInitialized(_this), "caret", void 0);
|
138
143
|
_defineProperty(_assertThisInitialized(_this), "focusInput", function () {
|
139
144
|
var _this$getInputNode;
|
140
|
-
(_this$getInputNode = _this.getInputNode()) === null || _this$getInputNode === void 0
|
145
|
+
(_this$getInputNode = _this.getInputNode()) === null || _this$getInputNode === void 0 || _this$getInputNode.focus();
|
141
146
|
});
|
142
147
|
_defineProperty(_assertThisInitialized(_this), "focus", function () {
|
143
148
|
_this.focusInput();
|
@@ -150,8 +155,8 @@ var TagsInput = /*#__PURE__*/function (_PureComponent) {
|
|
150
155
|
var isUniqueTag = _this.state.tags.filter(function (item) {
|
151
156
|
return tag.key === item.key;
|
152
157
|
}).length === 0;
|
153
|
-
(_this$select = _this.select) === null || _this$select === void 0
|
154
|
-
(_this$select2 = _this.select) === null || _this$select2 === void 0
|
158
|
+
(_this$select = _this.select) === null || _this$select === void 0 || _this$select.clear();
|
159
|
+
(_this$select2 = _this.select) === null || _this$select2 === void 0 || _this$select2.filterValue('');
|
155
160
|
if (isUniqueTag) {
|
156
161
|
_this.setState(function (prevState) {
|
157
162
|
return {
|
@@ -169,7 +174,7 @@ var TagsInput = /*#__PURE__*/function (_PureComponent) {
|
|
169
174
|
if (event.target !== _this.node && event.target.parentElement !== _this.node) {
|
170
175
|
return;
|
171
176
|
}
|
172
|
-
(_this$select3 = _this.select) === null || _this$select3 === void 0
|
177
|
+
(_this$select3 = _this.select) === null || _this$select3 === void 0 || _this$select3._clickHandler();
|
173
178
|
});
|
174
179
|
_defineProperty(_assertThisInitialized(_this), "filterExistingTags", function (suggestions) {
|
175
180
|
var tagsMap = new Map(_this.state.tags.map(function (tag) {
|
@@ -282,7 +287,7 @@ var TagsInput = /*#__PURE__*/function (_PureComponent) {
|
|
282
287
|
if (_this.state.activeIndex === _this.state.tags.length - 1) {
|
283
288
|
if (!_this.props.disabled) {
|
284
289
|
var _this$getInputNode4;
|
285
|
-
(_this$getInputNode4 = _this.getInputNode()) === null || _this$getInputNode4 === void 0
|
290
|
+
(_this$getInputNode4 = _this.getInputNode()) === null || _this$getInputNode4 === void 0 || _this$getInputNode4.focus();
|
286
291
|
_this.setActiveIndex();
|
287
292
|
}
|
288
293
|
} else {
|
@@ -296,7 +301,7 @@ var TagsInput = /*#__PURE__*/function (_PureComponent) {
|
|
296
301
|
var _this$select5;
|
297
302
|
event.preventDefault();
|
298
303
|
var tagsLength = _this.state.tags.length;
|
299
|
-
(_this$select5 = _this.select) === null || _this$select5 === void 0
|
304
|
+
(_this$select5 = _this.select) === null || _this$select5 === void 0 || _this$select5._hidePopup(true); // otherwise confirmation may be overlapped by popup
|
300
305
|
_this.onRemoveTag(_this.state.tags[tagsLength - 1]);
|
301
306
|
return false;
|
302
307
|
}
|
@@ -339,7 +344,7 @@ var TagsInput = /*#__PURE__*/function (_PureComponent) {
|
|
339
344
|
var _this$select6;
|
340
345
|
this.focusInput();
|
341
346
|
this.loadSuggestions();
|
342
|
-
(_this$select6 = this.select) === null || _this$select6 === void 0
|
347
|
+
(_this$select6 = this.select) === null || _this$select6 === void 0 || _this$select6._showPopup();
|
343
348
|
}
|
344
349
|
}
|
345
350
|
}, {
|
@@ -20,9 +20,11 @@ import 'core-js/modules/es.array.map.js';
|
|
20
20
|
import '../shortcuts/core.js';
|
21
21
|
import 'core-js/modules/es.array.includes.js';
|
22
22
|
import 'core-js/modules/es.string.includes.js';
|
23
|
+
import 'core-js/modules/es.object.assign.js';
|
23
24
|
import 'core-js/modules/es.array.slice.js';
|
24
25
|
import 'core-js/modules/es.array.splice.js';
|
25
26
|
import 'core-js/modules/es.string.match.js';
|
27
|
+
import 'core-js/modules/es.array.find-index.js';
|
26
28
|
import 'combokeys';
|
27
29
|
import '../global/sniffer.js';
|
28
30
|
import 'sniffr';
|
@@ -99,7 +101,7 @@ var Tooltip = /*#__PURE__*/function (_Component) {
|
|
99
101
|
return;
|
100
102
|
}
|
101
103
|
}
|
102
|
-
(_this$context = _this.context) === null || _this$context === void 0
|
104
|
+
(_this$context = _this.context) === null || _this$context === void 0 || _this$context.onNestedTooltipShow();
|
103
105
|
_this.setState({
|
104
106
|
showPopup: true
|
105
107
|
});
|
@@ -107,7 +109,7 @@ var Tooltip = /*#__PURE__*/function (_Component) {
|
|
107
109
|
_defineProperty(_assertThisInitialized(_this), "hidePopup", function () {
|
108
110
|
var _this$context2;
|
109
111
|
clearTimeout(_this.timeout);
|
110
|
-
(_this$context2 = _this.context) === null || _this$context2 === void 0
|
112
|
+
(_this$context2 = _this.context) === null || _this$context2 === void 0 || _this$context2.onNestedTooltipHide();
|
111
113
|
_this.setState({
|
112
114
|
showPopup: false
|
113
115
|
});
|
@@ -16,6 +16,7 @@ import '../storage/storage__local.js';
|
|
16
16
|
import '../storage/storage__fallback.js';
|
17
17
|
import 'core-js/modules/es.reflect.delete-property.js';
|
18
18
|
import 'core-js/modules/es.array.concat.js';
|
19
|
+
import 'core-js/modules/es.array.index-of.js';
|
19
20
|
import 'deep-equal';
|
20
21
|
import 'core-js/modules/es.array.map.js';
|
21
22
|
import 'core-js/modules/es.array.filter.js';
|
@@ -47,6 +48,7 @@ import 'core-js/modules/es.map.js';
|
|
47
48
|
import 'core-js/modules/es.weak-map.js';
|
48
49
|
import '../loader-inline/loader-inline.js';
|
49
50
|
import '../global/dom.js';
|
51
|
+
import 'core-js/modules/es.object.assign.js';
|
50
52
|
import 'core-js/modules/web.dom-collections.for-each.js';
|
51
53
|
import 'core-js/modules/es.string.split.js';
|
52
54
|
import 'core-js/modules/es.set.js';
|
@@ -64,6 +66,7 @@ import 'core-js/modules/es.string.includes.js';
|
|
64
66
|
import 'core-js/modules/es.array.slice.js';
|
65
67
|
import 'core-js/modules/es.array.splice.js';
|
66
68
|
import 'core-js/modules/es.string.match.js';
|
69
|
+
import 'core-js/modules/es.array.find-index.js';
|
67
70
|
import 'combokeys';
|
68
71
|
import '../global/sniffer.js';
|
69
72
|
import 'sniffr';
|
@@ -23,10 +23,12 @@ import 'core-js/modules/es.array.map.js';
|
|
23
23
|
import '../shortcuts/core.js';
|
24
24
|
import 'core-js/modules/es.array.includes.js';
|
25
25
|
import 'core-js/modules/es.string.includes.js';
|
26
|
+
import 'core-js/modules/es.object.assign.js';
|
26
27
|
import 'core-js/modules/es.array.slice.js';
|
27
28
|
import 'core-js/modules/es.array.splice.js';
|
28
29
|
import 'core-js/modules/es.regexp.exec.js';
|
29
30
|
import 'core-js/modules/es.string.match.js';
|
31
|
+
import 'core-js/modules/es.array.find-index.js';
|
30
32
|
import 'combokeys';
|
31
33
|
import '../global/sniffer.js';
|
32
34
|
import 'sniffr';
|