diff --git a/origin-dex/src/app/app.component.ts b/origin-dex/src/app/app.component.ts index 239d0ee..a199bc7 100644 --- a/origin-dex/src/app/app.component.ts +++ b/origin-dex/src/app/app.component.ts @@ -77,7 +77,6 @@ import { MatListModule } from '@angular/material/list'; } .content { - padding: 20px; height: 100%; overflow: auto; } diff --git a/origin-dex/src/app/app.config.ts b/origin-dex/src/app/app.config.ts index 78cce75..17c2f8d 100644 --- a/origin-dex/src/app/app.config.ts +++ b/origin-dex/src/app/app.config.ts @@ -9,7 +9,7 @@ import { provideClientHydration } from '@angular/platform-browser'; export const appConfig: ApplicationConfig = { providers: [ provideZoneChangeDetection({ eventCoalescing: true }), - provideRouter(routes, withDebugTracing()), + provideRouter(routes), provideClientHydration(), provideHttpClient( withFetch(), diff --git a/origin-dex/src/app/features/pokemon/pokemon-carousel/pokemon-carousel.component.ts b/origin-dex/src/app/features/pokemon/pokemon-carousel/pokemon-carousel.component.ts index 3464dc9..a52a391 100644 --- a/origin-dex/src/app/features/pokemon/pokemon-carousel/pokemon-carousel.component.ts +++ b/origin-dex/src/app/features/pokemon/pokemon-carousel/pokemon-carousel.component.ts @@ -3,10 +3,21 @@ import { CommonModule } from '@angular/common'; import { MatCardModule } from '@angular/material/card'; import { MatIconModule } from '@angular/material/icon'; import { MatButtonModule } from '@angular/material/button'; +import { MatAutocompleteModule } from '@angular/material/autocomplete'; +import { MatInputModule } from '@angular/material/input'; +import { MatFormFieldModule } from '@angular/material/form-field'; +import { FormControl, ReactiveFormsModule } from '@angular/forms'; import { PokemonService } from '../../../core/services/pokemon.service'; import { Pokemon } from '../../../core/models/pokemon.model'; import { PokemonCellComponent } from '../pokemon-cell/pokemon-cell.component'; import { PokemonDetailsComponent } from '../pokemon-details/pokemon-details.component'; +import { map, startWith } from 'rxjs/operators'; +import { Observable } from 'rxjs'; + +interface PokemonSearchResult { + pokemon: Pokemon; + boxNumber: number; +} @Component({ selector: 'app-pokemon-carousel', @@ -16,10 +27,37 @@ import { PokemonDetailsComponent } from '../pokemon-details/pokemon-details.comp MatCardModule, MatIconModule, MatButtonModule, + MatAutocompleteModule, + MatInputModule, + MatFormFieldModule, + ReactiveFormsModule, PokemonCellComponent, PokemonDetailsComponent ], template: ` +