${
this.value
? html`
${this._renderSelectionLoading()}
`
: nothing
}
`
: nothing
}
`;
}
_renderSelectionLoading() {
const loading = this.querySelector('[slot=loading_indicator]');
if (loading) {
const copy = loading.cloneNode(true) as HTMLElement;
copy.setAttribute('slot', 'loading_indicator');
copy.setAttribute('style', 'height: 100%; max-width: 24px;');
return copy;
}
return html`
${this._renderSearchField()}
${until(this._renderOptions(), html`
${this.renderLoading()}
`)}
`;
}
_renderMobilePicker() {
return html`
this._controlClick()}">
${this._isMobile ? this._renderMobileControl(controlIcon) : this._renderDesktopControl(controlIcon)}
`;
}
_renderDesktopControl(controlIcon: ClassInfo): unknown {
return html`