@jetbrains/ring-ui 5.0.49 → 5.0.51
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.
|
@@ -800,7 +800,7 @@ export default class QueryAssist extends Component {
|
|
|
800
800
|
|
|
801
801
|
<PopupMenu hidden={!this.state.showPopup} onCloseAttempt={this.closePopup} ref={this.popupRef} anchorElement={this.node} keepMounted attached className={this.props.popupClassName} directions={[PopupMenu.PopupProps.Directions.BOTTOM_RIGHT]} data={useCustomItemRender ? this.state.suggestions : this.renderSuggestions()} data-test="ring-query-assist-popup" hint={this.props.hint} hintOnSelection={this.props.hintOnSelection} left={this.getPopupOffset(this.state.suggestions)} maxHeight={PopupMenu.PopupProps.MaxHeight.SCREEN} onMouseDown={this.trackPopupMouseState} onMouseUp={this.trackPopupMouseState} onSelect={item => this.handleComplete(item)}/>
|
|
802
802
|
|
|
803
|
-
{glass && huge && (<div className={styles.rightSearchButton}>
|
|
803
|
+
{glass && huge && (<div className={styles.rightSearchButton} data-test="query-assist-search-button">
|
|
804
804
|
<Icon glyph={searchIcon} className={styles.rightSearchIcon} title={this.props.translations.searchTitle} onClick={this.handleApply} ref={this.glassRef} data-test="query-assist-search-icon"/>
|
|
805
805
|
</div>)}
|
|
806
806
|
</div>
|
|
@@ -778,9 +778,12 @@ export default class Select extends Component {
|
|
|
778
778
|
const ariaProps = this.state.showPopup
|
|
779
779
|
? {
|
|
780
780
|
'aria-owns': this.listId,
|
|
781
|
-
'aria-activedescendant': activeItemId
|
|
781
|
+
'aria-activedescendant': activeItemId,
|
|
782
|
+
'aria-label': this.props.label ?? undefined
|
|
782
783
|
}
|
|
783
|
-
: {
|
|
784
|
+
: {
|
|
785
|
+
'aria-label': this.props.label ?? undefined
|
|
786
|
+
};
|
|
784
787
|
switch (this.props.type) {
|
|
785
788
|
case Type.INPUT_WITHOUT_CONTROLS:
|
|
786
789
|
case Type.INPUT: return (<div ref={this.nodeRef} className={classNames(classes, styles.inputMode)} data-test={dataTests('ring-select', dataTest)}>
|
|
@@ -860,7 +860,8 @@ class QueryAssist extends Component {
|
|
|
860
860
|
onMouseUp: this.trackPopupMouseState,
|
|
861
861
|
onSelect: item => this.handleComplete(item)
|
|
862
862
|
}), glass && huge && /*#__PURE__*/React.createElement("div", {
|
|
863
|
-
className: modules_da7ab055.rightSearchButton
|
|
863
|
+
className: modules_da7ab055.rightSearchButton,
|
|
864
|
+
"data-test": "query-assist-search-button"
|
|
864
865
|
}, /*#__PURE__*/React.createElement(Icon, {
|
|
865
866
|
glyph: searchIcon,
|
|
866
867
|
className: modules_da7ab055.rightSearchIcon,
|
package/dist/select/select.js
CHANGED
|
@@ -911,7 +911,7 @@ class Select extends Component {
|
|
|
911
911
|
};
|
|
912
912
|
}
|
|
913
913
|
renderSelect(activeItemId) {
|
|
914
|
-
var _this$_popup5, _this$_popup5$list;
|
|
914
|
+
var _this$props$label2, _this$props$label3, _this$_popup5, _this$_popup5$list;
|
|
915
915
|
const dataTest = this.props['data-test'];
|
|
916
916
|
const {
|
|
917
917
|
shortcutsEnabled
|
|
@@ -927,8 +927,11 @@ class Select extends Component {
|
|
|
927
927
|
}, icons);
|
|
928
928
|
const ariaProps = this.state.showPopup ? {
|
|
929
929
|
'aria-owns': this.listId,
|
|
930
|
-
'aria-activedescendant': activeItemId
|
|
931
|
-
|
|
930
|
+
'aria-activedescendant': activeItemId,
|
|
931
|
+
'aria-label': (_this$props$label2 = this.props.label) !== null && _this$props$label2 !== void 0 ? _this$props$label2 : undefined
|
|
932
|
+
} : {
|
|
933
|
+
'aria-label': (_this$props$label3 = this.props.label) !== null && _this$props$label3 !== void 0 ? _this$props$label3 : undefined
|
|
934
|
+
};
|
|
932
935
|
switch (this.props.type) {
|
|
933
936
|
case Type.INPUT_WITHOUT_CONTROLS:
|
|
934
937
|
case Type.INPUT:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jetbrains/ring-ui",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.51",
|
|
4
4
|
"description": "JetBrains UI library",
|
|
5
5
|
"author": "JetBrains",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -259,5 +259,5 @@
|
|
|
259
259
|
"node": ">=14.0",
|
|
260
260
|
"npm": ">=6.0.0"
|
|
261
261
|
},
|
|
262
|
-
"gitHead": "
|
|
262
|
+
"gitHead": "ded81421e50b16b0b3939a51b372fee92deae595"
|
|
263
263
|
}
|