<div class="autocomplete-container">
    <input
      type="text"
      [formControl]="searchText"
      [placeholder]="placeholder"
      (focus)="showAllOptions()"
    />
    <ul *ngIf="showDropdown">
      <li *ngFor="let option of filteredOptions" (click)="selectOption(option)">
        {{ option[label] }}
      </li>
      <li *ngIf="filteredOptions.length === 0" class="no-results">
        No se encontraron resultados
      </li>
    </ul>
    
  </div>
  