mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 10:04:11 +00:00
Fixed in/outputs that changed for themed components
This commit is contained in:
@@ -2,6 +2,8 @@ import { Component, Input } from '@angular/core';
|
|||||||
import { ThemedComponent } from '../../theme-support/themed.component';
|
import { ThemedComponent } from '../../theme-support/themed.component';
|
||||||
import { SearchFiltersComponent } from './search-filters.component';
|
import { SearchFiltersComponent } from './search-filters.component';
|
||||||
import { Observable } from 'rxjs/internal/Observable';
|
import { Observable } from 'rxjs/internal/Observable';
|
||||||
|
import { RemoteData } from '../../../core/data/remote-data';
|
||||||
|
import { SearchFilterConfig } from '../models/search-filter-config.model';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Themed wrapper for SearchFiltersComponent
|
* Themed wrapper for SearchFiltersComponent
|
||||||
@@ -17,9 +19,10 @@ export class ThemedSearchFiltersComponent extends ThemedComponent<SearchFiltersC
|
|||||||
@Input() currentScope: string;
|
@Input() currentScope: string;
|
||||||
@Input() inPlaceSearch;
|
@Input() inPlaceSearch;
|
||||||
@Input() refreshFilters: Observable<any>;
|
@Input() refreshFilters: Observable<any>;
|
||||||
|
@Input() filters: Observable<RemoteData<SearchFilterConfig[]>>;
|
||||||
|
|
||||||
protected inAndOutputNames: (keyof SearchFiltersComponent & keyof this)[] = [
|
protected inAndOutputNames: (keyof SearchFiltersComponent & keyof this)[] = [
|
||||||
'currentConfiguration', 'currentScope', 'inPlaceSearch', 'refreshFilters'];
|
'filters', 'currentConfiguration', 'currentScope', 'inPlaceSearch', 'refreshFilters'];
|
||||||
|
|
||||||
protected getComponentName(): string {
|
protected getComponentName(): string {
|
||||||
return 'SearchFiltersComponent';
|
return 'SearchFiltersComponent';
|
||||||
|
@@ -5,7 +5,9 @@ import { SearchConfigurationOption } from '../search-switch-configuration/search
|
|||||||
import { SortOptions } from '../../../core/cache/models/sort-options.model';
|
import { SortOptions } from '../../../core/cache/models/sort-options.model';
|
||||||
import { ViewMode } from '../../../core/shared/view-mode.model';
|
import { ViewMode } from '../../../core/shared/view-mode.model';
|
||||||
import { PaginatedSearchOptions } from '../models/paginated-search-options.model';
|
import { PaginatedSearchOptions } from '../models/paginated-search-options.model';
|
||||||
import { Observable } from 'rxjs';
|
import { BehaviorSubject, Observable } from 'rxjs';
|
||||||
|
import { RemoteData } from '../../../core/data/remote-data';
|
||||||
|
import { SearchFilterConfig } from '../models/search-filter-config.model';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Themed wrapper for SearchSidebarComponent
|
* Themed wrapper for SearchSidebarComponent
|
||||||
@@ -21,20 +23,21 @@ export class ThemedSearchSidebarComponent extends ThemedComponent<SearchSidebarC
|
|||||||
@Input() configurationList: SearchConfigurationOption[];
|
@Input() configurationList: SearchConfigurationOption[];
|
||||||
@Input() currentScope: string;
|
@Input() currentScope: string;
|
||||||
@Input() currentSortOption: SortOptions;
|
@Input() currentSortOption: SortOptions;
|
||||||
|
@Input() filters: Observable<RemoteData<SearchFilterConfig[]>>;
|
||||||
@Input() resultCount;
|
@Input() resultCount;
|
||||||
@Input() viewModeList: ViewMode[];
|
@Input() viewModeList: ViewMode[];
|
||||||
@Input() showViewModes = true;
|
@Input() showViewModes = true;
|
||||||
@Input() inPlaceSearch;
|
@Input() inPlaceSearch;
|
||||||
@Input() searchOptions: PaginatedSearchOptions;
|
@Input() searchOptions: PaginatedSearchOptions;
|
||||||
@Input() sortOptionsList: SortOptions[];
|
@Input() sortOptionsList: SortOptions[];
|
||||||
@Input() refreshFilters: Observable<any>;
|
@Input() refreshFilters: BehaviorSubject<boolean>;
|
||||||
@Output() toggleSidebar = new EventEmitter<boolean>();
|
@Output() toggleSidebar = new EventEmitter<boolean>();
|
||||||
@Output() changeConfiguration: EventEmitter<SearchConfigurationOption> = new EventEmitter<SearchConfigurationOption>();
|
@Output() changeConfiguration: EventEmitter<SearchConfigurationOption> = new EventEmitter<SearchConfigurationOption>();
|
||||||
@Output() changeViewMode: EventEmitter<ViewMode> = new EventEmitter<ViewMode>();
|
@Output() changeViewMode: EventEmitter<ViewMode> = new EventEmitter<ViewMode>();
|
||||||
|
|
||||||
protected inAndOutputNames: (keyof SearchSidebarComponent & keyof this)[] = [
|
protected inAndOutputNames: (keyof SearchSidebarComponent & keyof this)[] = [
|
||||||
'configuration', 'configurationList', 'currentScope', 'currentSortOption',
|
'configuration', 'configurationList', 'currentScope', 'currentSortOption',
|
||||||
'resultCount', 'viewModeList', 'showViewModes', 'inPlaceSearch',
|
'resultCount', 'filters', 'viewModeList', 'showViewModes', 'inPlaceSearch',
|
||||||
'searchOptions', 'sortOptionsList', 'refreshFilters', 'toggleSidebar', 'changeConfiguration', 'changeViewMode'];
|
'searchOptions', 'sortOptionsList', 'refreshFilters', 'toggleSidebar', 'changeConfiguration', 'changeViewMode'];
|
||||||
|
|
||||||
protected getComponentName(): string {
|
protected getComponentName(): string {
|
||||||
|
Reference in New Issue
Block a user