@jetbrains/ring-ui 5.0.148 → 5.0.150
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/select/select.js +1 -1
- package/components/tags-input/tags-input.d.ts +2 -0
- package/components/tags-input/tags-input.js +2 -1
- package/dist/_helpers/card.js +5 -5
- package/dist/analytics/analytics__custom-plugin.js +2 -6
- package/dist/analytics/analytics__ga-plugin.js +1 -2
- package/dist/auth/auth__core.js +63 -100
- 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/caret/caret.js +13 -16
- package/dist/clipboard/clipboard-fallback.js +3 -3
- package/dist/data-list/data-list.js +3 -6
- package/dist/data-list/item.js +1 -1
- package/dist/date-picker/date-input.js +5 -6
- package/dist/date-picker/date-picker.js +6 -7
- package/dist/date-picker/date-popup.js +2 -3
- package/dist/dialog-ng/dialog-ng.js +2 -3
- package/dist/dropdown/dropdown.js +2 -4
- package/dist/editable-heading/editable-heading.js +2 -2
- 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/profile.js +6 -6
- 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/input/input.js +4 -7
- 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 +6 -8
- package/dist/old-browsers-message/white-list.js +2 -2
- package/dist/pager/pager.js +12 -16
- package/dist/permissions/permissions__cache.js +1 -1
- package/dist/popup/popup.js +1 -2
- package/dist/popup/position.js +1 -1
- package/dist/query-assist/query-assist.js +34 -46
- package/dist/select/select.js +11 -18
- 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 +1 -2
- package/dist/style.css +1 -1
- 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/tag/tag.js +1 -2
- package/dist/tags-input/tags-input.d.ts +2 -0
- package/dist/tags-input/tags-input.js +16 -24
- package/dist/tooltip/tooltip.js +2 -4
- package/dist/user-agreement/user-agreement.js +8 -8
- package/package.json +34 -34
|
@@ -114,10 +114,7 @@ class SelectPopup extends PureComponent {
|
|
|
114
114
|
isClickingPopup = false; // This flag is set to true while an item in the popup is being clicked
|
|
115
115
|
filter;
|
|
116
116
|
focusFilter() {
|
|
117
|
-
setTimeout(() =>
|
|
118
|
-
var _this$filter;
|
|
119
|
-
return (_this$filter = this.filter) === null || _this$filter === void 0 ? void 0 : _this$filter.focus();
|
|
120
|
-
});
|
|
117
|
+
setTimeout(() => this.filter?.focus());
|
|
121
118
|
}
|
|
122
119
|
isEventTargetFilter(event) {
|
|
123
120
|
return event.target instanceof Element && event.target.matches('input,textarea');
|
|
@@ -221,10 +218,7 @@ class SelectPopup extends PureComponent {
|
|
|
221
218
|
tabPress = event => {
|
|
222
219
|
this.props.onCloseAttempt(event, true);
|
|
223
220
|
};
|
|
224
|
-
onClickHandler = () =>
|
|
225
|
-
var _this$filter2;
|
|
226
|
-
return (_this$filter2 = this.filter) === null || _this$filter2 === void 0 ? void 0 : _this$filter2.focus();
|
|
227
|
-
};
|
|
221
|
+
onClickHandler = () => this.filter?.focus();
|
|
228
222
|
getFilter() {
|
|
229
223
|
if (this.props.filter || this.props.tags) {
|
|
230
224
|
return /*#__PURE__*/React.createElement("div", {
|
|
@@ -341,7 +335,6 @@ class SelectPopup extends PureComponent {
|
|
|
341
335
|
}
|
|
342
336
|
};
|
|
343
337
|
getSelectAll = () => {
|
|
344
|
-
var _multiple$renderSelec;
|
|
345
338
|
const multiple = this.props.multiple;
|
|
346
339
|
const activeFilters = this.props.data.filter(item => !item.disabled);
|
|
347
340
|
return Array.isArray(this.props.selected) && /*#__PURE__*/React.createElement("div", {
|
|
@@ -350,7 +343,7 @@ class SelectPopup extends PureComponent {
|
|
|
350
343
|
text: true,
|
|
351
344
|
inline: true,
|
|
352
345
|
onClick: this.handleSelectAll
|
|
353
|
-
}, activeFilters.length !== this.props.selected.length ? multiple.selectAllLabel || 'Select all' : multiple.deselectAllLabel || 'Deselect all'),
|
|
346
|
+
}, activeFilters.length !== this.props.selected.length ? multiple.selectAllLabel || 'Select all' : multiple.deselectAllLabel || 'Deselect all'), multiple.renderSelectedItemsDescription?.(this.props.selected, activeFilters.length) || /*#__PURE__*/React.createElement(Text, {
|
|
354
347
|
info: true
|
|
355
348
|
}, `${this.props.selected.length} selected`));
|
|
356
349
|
};
|
|
@@ -408,8 +408,7 @@ angularModule.directive('rgSelect', function rgSelectDirective() {
|
|
|
408
408
|
}
|
|
409
409
|
}
|
|
410
410
|
function reRenderSelect(props) {
|
|
411
|
-
|
|
412
|
-
if ((_ctrl$selectInstance = ctrl.selectInstance) !== null && _ctrl$selectInstance !== void 0 && _ctrl$selectInstance.node) {
|
|
411
|
+
if (ctrl.selectInstance?.node) {
|
|
413
412
|
ctrl.selectInstance.rerender({
|
|
414
413
|
...props,
|
|
415
414
|
ref: selectRef
|
|
@@ -141,9 +141,8 @@ class SelectLazy {
|
|
|
141
141
|
if (this.type === 'dropdown') {
|
|
142
142
|
render( /*#__PURE__*/cloneElement(this.reactSelect, {
|
|
143
143
|
ref: node => {
|
|
144
|
-
var _node$_openPopupIfClo;
|
|
145
144
|
this.selectRef(node);
|
|
146
|
-
node
|
|
145
|
+
node?._openPopupIfClosed?.();
|
|
147
146
|
}
|
|
148
147
|
}), this.container);
|
|
149
148
|
} else {
|
package/dist/shortcuts/core.js
CHANGED
|
@@ -158,8 +158,7 @@ class Shortcuts {
|
|
|
158
158
|
};
|
|
159
159
|
}
|
|
160
160
|
hasKey(key, scope) {
|
|
161
|
-
|
|
162
|
-
return !!((_this$_scopes$scope = this._scopes[scope]) !== null && _this$_scopes$scope !== void 0 && _this$_scopes$scope[key]);
|
|
161
|
+
return !!this._scopes[scope]?.[key];
|
|
163
162
|
}
|
|
164
163
|
_defaultFilter = (e, element, key) => {
|
|
165
164
|
// if the element or its parents have the class "ring-js-shortcuts" then no need to stop
|