<commit_before>include ./menu

.slds-lookup.slds-form-element(data-select="single", data-scope="single", [class.slds-is-open]="expanded")
  label.slds-form-element__label([attr.for]="inputId")
    ng-content(select="[nglLookupLabel]")
  .slds-form-element__control.slds-input-has-icon.slds-input-has-icon--right
    .slds-pill_container(*ngIf="pick")
      ngl-pill((nglPillRemove)="clear()") {{resolveLabel(pick)}}
    input.slds-input.slds-lookup__search-input(#lookupInput, [id]="inputId", type="text", [ngClass]="{'slds-hide': pick}", aria-autocomplete="list", role="combobox", 
                     [attr.aria-expanded]="expanded", [attr.aria-activedescendant]="optionId(activeIndex)",
                     [ngModel]="inputValue", (ngModelChange)="onInputChange($event)", (keydown.Esc)="close($event)", [placeholder]="placeholder || ''",
                     (keydown.ArrowDown)="moveActive($event, 1)", (keydown.ArrowUp)="moveActive($event, -1)", (keydown.Enter)="pickActive($event)")

  .slds-lookup__menu(*ngIf="expanded", role="listbox")
    +lookup-list()(*ngIf="!itemTemplate")
      |{{resolveLabel(item)}}
    +lookup-list()(*ngIf="itemTemplate")
      template([ngTemplateOutlet]="itemTemplate.templateRef", [ngOutletContext]="{ $implicit: item }")<commit_msg>refactor(lookup): make sure `aria-expanded` is always a boolean<commit_after>include ./menu

.slds-lookup.slds-form-element(data-select="single", data-scope="single", [class.slds-is-open]="expanded")
  label.slds-form-element__label([attr.for]="inputId")
    ng-content(select="[nglLookupLabel]")
  .slds-form-element__control.slds-input-has-icon.slds-input-has-icon--right
    .slds-pill_container(*ngIf="pick")
      ngl-pill((nglPillRemove)="clear()") {{resolveLabel(pick)}}
    input.slds-input.slds-lookup__search-input(#lookupInput, [id]="inputId", type="text", [ngClass]="{'slds-hide': pick}", aria-autocomplete="list", role="combobox", 
                     [attr.aria-expanded]="!!expanded", [attr.aria-activedescendant]="optionId(activeIndex)",
                     [ngModel]="inputValue", (ngModelChange)="onInputChange($event)", (keydown.Esc)="close($event)", [placeholder]="placeholder || ''",
                     (keydown.ArrowDown)="moveActive($event, 1)", (keydown.ArrowUp)="moveActive($event, -1)", (keydown.Enter)="pickActive($event)")

  .slds-lookup__menu(*ngIf="expanded", role="listbox")
    +lookup-list()(*ngIf="!itemTemplate")
      |{{resolveLabel(item)}}
    +lookup-list()(*ngIf="itemTemplate")
      template([ngTemplateOutlet]="itemTemplate.templateRef", [ngOutletContext]="{ $implicit: item }")
{'fraction_non_alphanumeric': 0.21, 'fraction_numerical': 0.0015384615384615385, 'mean_word_length': 5.237410071942446, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5684935', 'n_tokens_mistral': 910, 'n_tokens_neox': 891, 'n_words': 83}