@@ -13,7 +13,6 @@ import '../../vscode-option/index.js';
1313import { VscodeOption } from '../../vscode-option/index.js' ;
1414import { VscElement } from '../VscElement.js' ;
1515import { filterOptionsByPattern , highlightRanges } from './helpers.js' ;
16- import { chevronDownIcon } from './template-elements.js' ;
1716import type { InternalOption , Option , FilterMethod } from './types.js' ;
1817import { OptionListController } from './OptionListController.js' ;
1918
@@ -246,7 +245,7 @@ export class VscodeSelectBase extends VscElement {
246245 protected _isPlaceholderOptionActive = false ;
247246
248247 @state ( )
249- private _isBeingFiltered = false ;
248+ protected _isBeingFiltered = false ;
250249
251250 @state ( )
252251 protected _optionListScrollPos = 0 ;
@@ -722,69 +721,8 @@ export class VscodeSelectBase extends VscElement {
722721 return html `${ nothing } ` ;
723722 }
724723
725- private _renderMultiSelectLabel ( ) {
726- switch ( this . _opts . selectedIndexes . length ) {
727- case 0 :
728- return html `< span class ="select-face-badge no-item "
729- > No items selected</ span
730- > ` ;
731- case 1 :
732- return html `< span class ="select-face-badge "> 1 item selected</ span > ` ;
733- default :
734- return html `< span class ="select-face-badge "
735- > ${ this . _opts . selectedIndexes . length } items selected</ span
736- > ` ;
737- }
738- }
739-
740724 protected _renderComboboxFace ( ) : TemplateResult {
741- let inputVal = '' ;
742-
743- if ( this . _isBeingFiltered ) {
744- inputVal = this . _opts . filterPattern ;
745- } else {
746- const op = this . _opts . getSelectedOption ( ) ;
747- inputVal = op ?. label ?? '' ;
748- }
749-
750- const activeDescendant =
751- this . _opts . activeIndex > - 1 ? `op-${ this . _opts . activeIndex } ` : '' ;
752- const expanded = this . open ? 'true' : 'false' ;
753-
754- return html `
755- < div class ="combobox-face face ">
756- ${ this . _multiple ? this . _renderMultiSelectLabel ( ) : nothing }
757- < input
758- aria-activedescendant =${ activeDescendant }
759- aria-autocomplete ="list"
760- aria-controls="select-listbox"
761- aria-expanded=${ expanded }
762- aria-haspopup="listbox"
763- aria-label=${ ifDefined ( this . label ) }
764- class="combobox-input"
765- role="combobox"
766- spellcheck="false"
767- type="text"
768- autocomplete="off"
769- .value=${ inputVal }
770- @focus=${ this . _onComboboxInputFocus }
771- @blur=${ this . _onComboboxInputBlur }
772- @input=${ this . _onComboboxInputInput }
773- @click=${ this . _onComboboxInputClick }
774- @keydown=${ this . _onComboboxInputSpaceKeyDown }
775- >
776- < button
777- aria-label ="Open the list of options "
778- class ="combobox-button "
779- type ="button "
780- @click =${ this . _onComboboxButtonClick }
781- @keydown =${ this . _onComboboxButtonKeyDown }
782- tabindex="-1"
783- >
784- ${ chevronDownIcon }
785- </ button >
786- </ div >
787- ` ;
725+ return html `${ nothing } ` ;
788726 }
789727
790728 protected _renderDropdownControls ( ) : TemplateResult {
0 commit comments