Update UI Packages

Align with Lidarr
This commit is contained in:
Qstick
2023-01-23 22:53:16 -06:00
parent fbdc9f3a13
commit 1caa49c895
330 changed files with 3555 additions and 4096 deletions
@@ -57,12 +57,12 @@ class AuthorSearchInput extends Component {
setAutosuggestRef = (ref) => {
this._autosuggest = ref;
}
};
focusInput = (event) => {
event.preventDefault();
this._autosuggest.input.focus();
}
};
getSectionSuggestions(section) {
return section.suggestions;
@@ -154,7 +154,7 @@ class AuthorSearchInput extends Component {
}
this.setState({ value: newValue });
}
};
onKeyDown = (event) => {
if (event.shiftKey || event.altKey || event.ctrlKey) {
@@ -199,11 +199,11 @@ class AuthorSearchInput extends Component {
this._autosuggest.input.blur();
this.reset();
}
};
onBlur = () => {
this.reset();
}
};
onSuggestionsFetchRequested = ({ value }) => {
if (!this.state.loading) {
@@ -268,14 +268,14 @@ class AuthorSearchInput extends Component {
this.getWorker().postMessage(payload);
}
}
};
onSuggestionsClearRequested = () => {
this.setState({
suggestions: [],
loading: false
});
}
};
onSuggestionSelected = (event, { suggestion }) => {
if (suggestion.type === ADD_NEW_TYPE) {
@@ -283,7 +283,7 @@ class AuthorSearchInput extends Component {
} else {
this.goToItem(suggestion);
}
}
};
//
// Render