diff --git a/libs/feature/search/src/lib/favorites/favorite-star/favorite-star.component.ts b/libs/feature/search/src/lib/favorites/favorite-star/favorite-star.component.ts index 7dc7e6a6f4..a6a9a1e8a1 100644 --- a/libs/feature/search/src/lib/favorites/favorite-star/favorite-star.component.ts +++ b/libs/feature/search/src/lib/favorites/favorite-star/favorite-star.component.ts @@ -39,7 +39,7 @@ export class FavoriteStarComponent implements AfterViewInit, OnDestroy { map((favorites) => favorites.indexOf(this.record.uniqueIdentifier) > -1) ) isAnonymous$ = this.platformService.isAnonymous() - record_: CatalogRecord + record_: Partial favoriteCount: number | null loading = false loginUrl = this.authService.loginUrl diff --git a/libs/feature/search/src/lib/filter-dropdown/filter-dropdown.component.ts b/libs/feature/search/src/lib/filter-dropdown/filter-dropdown.component.ts index 4406b373d4..8e36fb08b5 100644 --- a/libs/feature/search/src/lib/filter-dropdown/filter-dropdown.component.ts +++ b/libs/feature/search/src/lib/filter-dropdown/filter-dropdown.component.ts @@ -10,7 +10,7 @@ import { catchError, filter, map, startWith } from 'rxjs/operators' import { SearchFacade } from '../state/search.facade' import { SearchService } from '../utils/service/search.service' import { FieldsService } from '../utils/service/fields.service' -import { FieldAvailableValue } from '../utils/service/fields' +import { FieldAvailableValue, FieldValue } from '../utils/service/fields' @Component({ selector: 'gn-ui-filter-dropdown', @@ -31,11 +31,11 @@ export class FilterDropdownComponent implements OnInit { filter((selected) => !!selected), startWith([]), catchError(() => of([])) - ) + ) as Observable - onSelectedValues(values: (string | number)[]) { + onSelectedValues(values: unknown[]) { this.fieldsService - .buildFiltersFromFieldValues({ [this.fieldName]: values }) + .buildFiltersFromFieldValues({ [this.fieldName]: values as FieldValue[] }) .subscribe((filters) => this.searchService.updateFilters(filters)) } diff --git a/libs/ui/inputs/src/index.ts b/libs/ui/inputs/src/index.ts index 4bda2ddfb1..18bb63073a 100644 --- a/libs/ui/inputs/src/index.ts +++ b/libs/ui/inputs/src/index.ts @@ -19,3 +19,4 @@ export * from './lib/viewport-intersector/viewport-intersector.component' export * from './lib/checkbox/checkbox.component' export * from './lib/search-input/search-input.component' export * from './lib/date-range-picker/date-range-picker.component' +export * from './lib/editable-label/editable-label.directive' diff --git a/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.html b/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.html index 227b9f17b5..e542a23dfa 100644 --- a/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.html +++ b/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.html @@ -6,7 +6,7 @@ [placeholder]="placeholder" [formControl]="control" [matAutocomplete]="auto" - (keyup.enter)="handleEnter($event.target.value)" + (keyup.enter)="handleEnter(searchInput.value)" />