@jetbrains/ring-ui 4.1.9 → 4.1.13
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-ng/select-ng__lazy.js +3 -3
- package/dist/_helpers/badge.js +1 -1
- package/dist/_helpers/button-group.js +1 -1
- package/dist/_helpers/button__classes.js +1 -1
- package/dist/_helpers/card.js +1 -1
- package/dist/_helpers/checkbox.js +1 -1
- package/dist/_helpers/date-picker.js +1 -1
- package/dist/_helpers/dialog__body-scroll-preventer.js +1 -1
- package/dist/_helpers/error-message.js +1 -1
- package/dist/_helpers/footer.js +1 -1
- package/dist/_helpers/grid.js +1 -1
- package/dist/_helpers/header.js +1 -1
- package/dist/_helpers/icon.js +1 -1
- package/dist/_helpers/input.js +1 -1
- package/dist/_helpers/island.js +1 -1
- package/dist/_helpers/link.js +1 -1
- package/dist/_helpers/list.js +1 -1
- package/dist/_helpers/panel.js +1 -1
- package/dist/_helpers/query-assist__suggestions.js +1 -1
- package/dist/_helpers/radio.js +1 -1
- package/dist/_helpers/select__filter.js +1 -1
- package/dist/_helpers/services-link.js +1 -1
- package/dist/_helpers/sidebar.js +1 -1
- package/dist/_helpers/table.js +1 -1
- package/dist/_helpers/tabs.js +1 -1
- package/dist/_helpers/title.js +1 -1
- package/dist/alert/alert.js +1 -1
- package/dist/alert/container.js +1 -1
- package/dist/auth/auth__core.js +2 -4
- package/dist/auth/down-notification.js +1 -1
- package/dist/auth-dialog/auth-dialog.js +1 -1
- package/dist/avatar/avatar.js +1 -1
- package/dist/breadcrumb-ng/breadcrumb-ng.js +1 -1
- package/dist/button-ng/button-ng.js +1 -1
- package/dist/code/code.js +1 -1
- package/dist/confirm/confirm.js +1 -1
- package/dist/date-picker/date-picker.js +1 -1
- package/dist/dialog-ng/dialog-ng.js +3 -5
- package/dist/docked-panel-ng/docked-panel-ng.js +1 -1
- package/dist/error-bubble/error-bubble.js +1 -1
- package/dist/header/smart-profile.js +2 -4
- package/dist/heading/heading.js +1 -1
- package/dist/list/list__item.js +1 -1
- package/dist/loader/loader__core.js +1 -1
- package/dist/login-dialog/login-dialog.js +1 -1
- package/dist/markdown/markdown.js +1 -1
- package/dist/message/message.js +5 -9
- package/dist/pager/pager.js +1 -1
- package/dist/popup/popup.js +1 -1
- package/dist/progress-bar/progress-bar.js +1 -1
- package/dist/query-assist/query-assist.js +4 -6
- package/dist/select/select.js +3 -5
- package/dist/select-ng/select-ng__lazy.js +8 -4
- package/dist/style.css +1 -1
- package/dist/tag/tag.js +1 -1
- package/dist/tags-input/tags-input.js +1 -1
- package/dist/text/text.js +1 -1
- package/dist/toggle/toggle.js +1 -1
- package/dist/tooltip/tooltip.js +2 -6
- package/dist/user-agreement/user-agreement.js +1 -1
- package/package.json +33 -33
|
@@ -46,7 +46,7 @@ import '../auth/response-parser.js';
|
|
|
46
46
|
import 'es6-error';
|
|
47
47
|
import '../global/url.js';
|
|
48
48
|
|
|
49
|
-
var modules_45da1992 = {"unit":"8px","iFrame":"
|
|
49
|
+
var modules_45da1992 = {"unit":"8px","iFrame":"iFrame_rui_ea66","dialogContent":"dialogContent_rui_ea66","nonOpaqueLoader":"nonOpaqueLoader_rui_ea66","fallbackLinkContainer":"fallbackLinkContainer_rui_ea66"};
|
|
50
50
|
|
|
51
51
|
const HUB_AUTH_PAGE_LOGIN_STARTED = 'HUB_AUTH_PAGE_LOGIN_STARTED';
|
|
52
52
|
const HUB_AUTH_PAGE_LOGIN_DIMENSIONS = 'HUB_AUTH_PAGE_LOGIN_DIMENSIONS';
|
|
@@ -21,7 +21,7 @@ import '../_helpers/link.js';
|
|
|
21
21
|
import '../heading/heading.js';
|
|
22
22
|
import 'util-deprecate';
|
|
23
23
|
|
|
24
|
-
var modules_9c709e64 = {"unit":"8px","p-margin":"10px","inline":"
|
|
24
|
+
var modules_9c709e64 = {"unit":"8px","p-margin":"10px","inline":"inline_rui_bc15","markdown":"markdown_rui_bc15 font_rui_750f"};
|
|
25
25
|
|
|
26
26
|
/**
|
|
27
27
|
* @name Markdown
|
package/dist/message/message.js
CHANGED
|
@@ -31,7 +31,7 @@ import '../global/theme.js';
|
|
|
31
31
|
import '../link/clickableLink.js';
|
|
32
32
|
import '../_helpers/button__classes.js';
|
|
33
33
|
|
|
34
|
-
var modules_8b837449 = {"unit":"8px","padding":"12px","message":"
|
|
34
|
+
var modules_8b837449 = {"unit":"8px","padding":"12px","message":"message_rui_059d","icon":"icon_rui_059d","title":"title_rui_059d fontLower_rui_750f font_rui_750f","description":"description_rui_059d fontSmallerLower_rui_750f fontSmaller_rui_750f fontLower_rui_750f font_rui_750f","button":"button_rui_059d","tail":"tail_rui_059d"};
|
|
35
35
|
|
|
36
36
|
/**
|
|
37
37
|
* @name Message
|
|
@@ -117,16 +117,12 @@ class Message extends Component {
|
|
|
117
117
|
}));
|
|
118
118
|
|
|
119
119
|
_defineProperty(this, "popupRef", el => {
|
|
120
|
-
var _this$popup;
|
|
121
|
-
|
|
122
120
|
this.popup = el;
|
|
123
|
-
this.node =
|
|
121
|
+
this.node = this.popup?.node;
|
|
124
122
|
});
|
|
125
123
|
}
|
|
126
124
|
|
|
127
125
|
getTailOffset() {
|
|
128
|
-
var _this$popup2;
|
|
129
|
-
|
|
130
126
|
const DEFAULT_OFFSET = 32;
|
|
131
127
|
const {
|
|
132
128
|
popupProps
|
|
@@ -136,7 +132,7 @@ class Message extends Component {
|
|
|
136
132
|
return this.props.tailOffset;
|
|
137
133
|
}
|
|
138
134
|
|
|
139
|
-
const anchor =
|
|
135
|
+
const anchor = popupProps?.anchorElement || this.popup?.parent;
|
|
140
136
|
|
|
141
137
|
if (!anchor) {
|
|
142
138
|
return DEFAULT_OFFSET;
|
|
@@ -145,8 +141,8 @@ class Message extends Component {
|
|
|
145
141
|
const offset = Math.floor(anchor.offsetWidth / 2);
|
|
146
142
|
const isOpenedToRight = [Directions.TOP_RIGHT, Directions.BOTTOM_RIGHT].includes(this.state.direction);
|
|
147
143
|
|
|
148
|
-
if (popupProps
|
|
149
|
-
return offset -
|
|
144
|
+
if (popupProps?.left && isOpenedToRight) {
|
|
145
|
+
return offset - popupProps?.left;
|
|
150
146
|
}
|
|
151
147
|
|
|
152
148
|
return offset;
|
package/dist/pager/pager.js
CHANGED
|
@@ -86,7 +86,7 @@ import '../caret/caret.js';
|
|
|
86
86
|
import '../text/text.js';
|
|
87
87
|
import '../_helpers/select__filter.js';
|
|
88
88
|
|
|
89
|
-
var modules_1a5f0d42 = {"unit":"8px","pager":"
|
|
89
|
+
var modules_1a5f0d42 = {"unit":"8px","pager":"pager_rui_3568","links":"links_rui_3568","link":"link_rui_3568","linkDisabled":"linkDisabled_rui_3568"};
|
|
90
90
|
|
|
91
91
|
class Pager extends PureComponent {
|
|
92
92
|
constructor() {
|
package/dist/popup/popup.js
CHANGED
|
@@ -18,7 +18,7 @@ import 'combokeys';
|
|
|
18
18
|
import '../global/sniffer.js';
|
|
19
19
|
import 'sniffr';
|
|
20
20
|
|
|
21
|
-
var modules_2f69e2e2 = {"popup":"
|
|
21
|
+
var modules_2f69e2e2 = {"popup":"popup_rui_2e17 font_rui_750f","hidden":"hidden_rui_2e17","showing":"showing_rui_2e17","attached":"attached_rui_2e17"};
|
|
22
22
|
|
|
23
23
|
const stop = e => e.stopPropagation();
|
|
24
24
|
|
|
@@ -4,7 +4,7 @@ import PropTypes from 'prop-types';
|
|
|
4
4
|
import classNames from 'classnames';
|
|
5
5
|
import Theme from '../global/theme.js';
|
|
6
6
|
|
|
7
|
-
var modules_fb7af416 = {"unit":"8px","light":"
|
|
7
|
+
var modules_fb7af416 = {"unit":"8px","light":"light_rui_2960","progressBar":"progressBar_rui_2960","dark":"dark_rui_2960","line":"line_rui_2960","globalMode":"globalMode_rui_2960","progress-bar":"progressBar_rui_2960"};
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* @name Progress Bar
|
|
@@ -266,7 +266,7 @@ class QueryAssist extends Component {
|
|
|
266
266
|
super.setState(state, () => {
|
|
267
267
|
this._pushHistory(state);
|
|
268
268
|
|
|
269
|
-
resolve
|
|
269
|
+
resolve?.();
|
|
270
270
|
});
|
|
271
271
|
});
|
|
272
272
|
|
|
@@ -654,17 +654,15 @@ class QueryAssist extends Component {
|
|
|
654
654
|
}
|
|
655
655
|
|
|
656
656
|
_pushHistory(state) {
|
|
657
|
-
var _this$historyStack$;
|
|
658
|
-
|
|
659
657
|
const queryIsSet = ('query' in state);
|
|
660
|
-
const queryIsSame =
|
|
658
|
+
const queryIsSame = this.historyStack[0]?.query === state.query;
|
|
661
659
|
|
|
662
660
|
if (queryIsSet && !queryIsSame) {
|
|
663
|
-
var _this$caret$getPositi
|
|
661
|
+
var _this$caret$getPositi;
|
|
664
662
|
|
|
665
663
|
this.historyStack.unshift({
|
|
666
664
|
query: state.query,
|
|
667
|
-
caret: (_this$caret$getPositi =
|
|
665
|
+
caret: (_this$caret$getPositi = this.caret?.getPosition({
|
|
668
666
|
avoidFocus: true
|
|
669
667
|
})) !== null && _this$caret$getPositi !== void 0 ? _this$caret$getPositi : -1
|
|
670
668
|
});
|
package/dist/select/select.js
CHANGED
|
@@ -78,7 +78,7 @@ import '../caret/caret.js';
|
|
|
78
78
|
import '../text/text.js';
|
|
79
79
|
import '../_helpers/select__filter.js';
|
|
80
80
|
|
|
81
|
-
var modules_9d0de074 = {"unit":"8px","select":"
|
|
81
|
+
var modules_9d0de074 = {"unit":"8px","select":"select_rui_a8b4","value":"value_rui_a8b4 ellipsis_rui_750f font_rui_750f","icons":"icons_rui_a8b4","toolbar":"toolbar_rui_a8b4","button":"button_rui_a8b4","buttonSpaced":"buttonSpaced_rui_a8b4","inputMode":"inputMode_rui_a8b4","buttonMode":"buttonMode_rui_a8b4","selectedIcon":"selectedIcon_rui_a8b4 resetButton_rui_750f","clearIcon":"clearIcon_rui_a8b4","sizeS":"sizeS_rui_a8b4","sizeM":"sizeM_rui_a8b4","sizeL":"sizeL_rui_a8b4","sizeFULL":"sizeFULL_rui_a8b4","sizeAUTO":"sizeAUTO_rui_a8b4","materialMode":"materialMode_rui_a8b4","open":"open_rui_a8b4","buttonContainer":"buttonContainer_rui_a8b4","buttonValue":"buttonValue_rui_a8b4 ellipsis_rui_750f","buttonValueOpen":"buttonValueOpen_rui_a8b4","label":"label_rui_a8b4","disabled":"disabled_rui_a8b4","selectedLabel":"selectedLabel_rui_a8b4","avatar":"avatar_rui_a8b4","popup":"popup_rui_a8b4","chevron":"chevron_rui_a8b4","chevronIcon":"chevronIcon_rui_a8b4"};
|
|
82
82
|
|
|
83
83
|
/**
|
|
84
84
|
* @name Select
|
|
@@ -998,7 +998,7 @@ class Select extends Component {
|
|
|
998
998
|
} = this.props;
|
|
999
999
|
const icons = [];
|
|
1000
1000
|
|
|
1001
|
-
if (selected
|
|
1001
|
+
if (selected?.icon) {
|
|
1002
1002
|
icons.push( /*#__PURE__*/React.createElement("button", {
|
|
1003
1003
|
title: "Toggle options popup",
|
|
1004
1004
|
type: "button",
|
|
@@ -1063,8 +1063,6 @@ class Select extends Component {
|
|
|
1063
1063
|
}
|
|
1064
1064
|
|
|
1065
1065
|
renderSelect(activeItemId) {
|
|
1066
|
-
var _this$_popup, _this$_popup$list;
|
|
1067
|
-
|
|
1068
1066
|
const dataTest = this.props['data-test'];
|
|
1069
1067
|
const {
|
|
1070
1068
|
shortcutsEnabled
|
|
@@ -1113,7 +1111,7 @@ class Select extends Component {
|
|
|
1113
1111
|
onKeyDown: this.props.onKeyDown,
|
|
1114
1112
|
"data-test": "ring-select__focus",
|
|
1115
1113
|
enableShortcuts: shortcutsEnabled ? Object.keys({ ...this.getShortcutsMap(),
|
|
1116
|
-
...
|
|
1114
|
+
...this._popup?.list?.shortcutsMap
|
|
1117
1115
|
}) : undefined
|
|
1118
1116
|
})), this.props.type === Type.INPUT && iconsNode, this._renderPopup());
|
|
1119
1117
|
|
|
@@ -115,11 +115,15 @@ class SelectLazy {
|
|
|
115
115
|
}
|
|
116
116
|
|
|
117
117
|
attachEvents() {
|
|
118
|
-
this.container.addEventListener('click', this.onClick
|
|
118
|
+
this.container.addEventListener('click', this.onClick, {
|
|
119
|
+
capture: true
|
|
120
|
+
});
|
|
119
121
|
}
|
|
120
122
|
|
|
121
123
|
detachEvents() {
|
|
122
|
-
this.container.removeEventListener('click', this.onClick
|
|
124
|
+
this.container.removeEventListener('click', this.onClick, {
|
|
125
|
+
capture: true
|
|
126
|
+
});
|
|
123
127
|
}
|
|
124
128
|
|
|
125
129
|
render(props) {
|
|
@@ -138,11 +142,11 @@ class SelectLazy {
|
|
|
138
142
|
|
|
139
143
|
if (this.type === 'dropdown') {
|
|
140
144
|
this.ctrl.selectInstance = render(this.reactSelect, this.container);
|
|
145
|
+
|
|
146
|
+
this.ctrl.selectInstance._openPopupIfClosed();
|
|
141
147
|
} else {
|
|
142
148
|
this.ctrl.selectInstance = hydrate(this.reactSelect, this.container);
|
|
143
149
|
}
|
|
144
|
-
|
|
145
|
-
this.ctrl.selectInstance._openPopupIfClosed();
|
|
146
150
|
}
|
|
147
151
|
|
|
148
152
|
}
|