@@ -8,37 +8,41 @@ import { PaginatedSearchOptions } from '../models/paginated-search-options.model
88import { BehaviorSubject , Observable } from 'rxjs' ;
99import { RemoteData } from '../../../core/data/remote-data' ;
1010import { SearchFilterConfig } from '../models/search-filter-config.model' ;
11+ import { AppliedFilter } from '../models/applied-filter.model' ;
1112
1213/**
1314 * Themed wrapper for SearchSidebarComponent
1415 */
1516@Component ( {
1617 selector : 'ds-themed-search-sidebar' ,
17- styleUrls : [ ] ,
1818 templateUrl : '../../theme-support/themed.component.html' ,
1919} )
2020export class ThemedSearchSidebarComponent extends ThemedComponent < SearchSidebarComponent > {
2121
22- @Input ( ) configuration ;
22+ @Input ( ) configuration : string ;
2323 @Input ( ) configurationList : SearchConfigurationOption [ ] ;
2424 @Input ( ) currentScope : string ;
2525 @Input ( ) currentSortOption : SortOptions ;
2626 @Input ( ) filters : Observable < RemoteData < SearchFilterConfig [ ] > > ;
27- @Input ( ) resultCount ;
27+ @Input ( ) resultCount : number ;
2828 @Input ( ) viewModeList : ViewMode [ ] ;
29- @Input ( ) showViewModes = true ;
30- @Input ( ) inPlaceSearch ;
29+ @Input ( ) showViewModes : boolean ;
30+ @Input ( ) inPlaceSearch : boolean ;
3131 @Input ( ) searchOptions : PaginatedSearchOptions ;
3232 @Input ( ) sortOptionsList : SortOptions [ ] ;
3333 @Input ( ) refreshFilters : BehaviorSubject < boolean > ;
34- @Output ( ) toggleSidebar = new EventEmitter < boolean > ( ) ;
35- @Output ( ) changeConfiguration : EventEmitter < SearchConfigurationOption > = new EventEmitter < SearchConfigurationOption > ( ) ;
36- @Output ( ) changeViewMode : EventEmitter < ViewMode > = new EventEmitter < ViewMode > ( ) ;
34+ @Output ( ) toggleSidebar : EventEmitter < boolean > = new EventEmitter ( ) ;
35+ @Output ( ) changeConfiguration : EventEmitter < SearchConfigurationOption > = new EventEmitter ( ) ;
36+ @Output ( ) changeAppliedFilters : EventEmitter < Map < string , AppliedFilter [ ] > > = new EventEmitter ( ) ;
37+ @Output ( ) changeViewMode : EventEmitter < ViewMode > = new EventEmitter ( ) ;
3738
3839 protected inAndOutputNames : ( keyof SearchSidebarComponent & keyof this) [ ] = [
3940 'configuration' , 'configurationList' , 'currentScope' , 'currentSortOption' ,
4041 'resultCount' , 'filters' , 'viewModeList' , 'showViewModes' , 'inPlaceSearch' ,
41- 'searchOptions' , 'sortOptionsList' , 'refreshFilters' , 'toggleSidebar' , 'changeConfiguration' , 'changeViewMode' ] ;
42+ 'searchOptions' , 'sortOptionsList' , 'refreshFilters' , 'toggleSidebar' , 'changeConfiguration' ,
43+ 'changeAppliedFilters' ,
44+ 'changeViewMode' ,
45+ ] ;
4246
4347 protected getComponentName ( ) : string {
4448 return 'SearchSidebarComponent' ;
0 commit comments