-
Notifications
You must be signed in to change notification settings - Fork 566
Expand file tree
/
Copy paththemed-search-results.component.ts
More file actions
81 lines (57 loc) · 2.8 KB
/
Copy paththemed-search-results.component.ts
File metadata and controls
81 lines (57 loc) · 2.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
import {
Component,
EventEmitter,
Input,
Output,
} from '@angular/core';
import { SortOptions } from '@dspace/core/cache/models/sort-options.model';
import { PaginatedList } from '@dspace/core/data/paginated-list.model';
import { RemoteData } from '@dspace/core/data/remote-data';
import { Context } from '@dspace/core/shared/context.model';
import { DSpaceObject } from '@dspace/core/shared/dspace-object.model';
import { ListableObject } from '@dspace/core/shared/object-collection/listable-object.model';
import { PaginatedSearchOptions } from '@dspace/core/shared/search/models/paginated-search-options.model';
import { SearchResult } from '@dspace/core/shared/search/models/search-result.model';
import { ViewMode } from '@dspace/core/shared/view-mode.model';
import { CollectionElementLinkType } from '../../object-collection/collection-element-link.type';
import { ThemedComponent } from '../../theme-support/themed.component';
import {
SearchResultsComponent,
SelectionConfig,
} from './search-results.component';
/**
* Themed wrapper for SearchResultsComponent
*/
@Component({
selector: 'ds-search-results',
templateUrl: '../../theme-support/themed.component.html',
})
export class ThemedSearchResultsComponent extends ThemedComponent<SearchResultsComponent> {
protected inAndOutputNames: (keyof SearchResultsComponent & keyof this)[] = ['linkType', 'searchResults', 'searchConfig', 'showCsvExport', 'showThumbnails', 'sortConfig', 'viewMode', 'configuration', 'disableHeader', 'selectable', 'context', 'hidePaginationDetail', 'selectionConfig', 'contentChange', 'deselectObject', 'selectObject', 'spellCheckSuggestions'];
@Input() linkType: CollectionElementLinkType;
@Input() searchResults: RemoteData<PaginatedList<SearchResult<DSpaceObject>>>;
@Input() searchConfig: PaginatedSearchOptions;
@Input() showCsvExport: boolean;
@Input() showThumbnails: boolean;
@Input() spellCheckSuggestions: string[];
@Input() sortConfig: SortOptions;
@Input() viewMode: ViewMode;
@Input() configuration: string;
@Input() disableHeader: boolean;
@Input() selectable: boolean;
@Input() context: Context;
@Input() hidePaginationDetail: boolean;
@Input() selectionConfig: SelectionConfig;
@Output() contentChange: EventEmitter<ListableObject> = new EventEmitter();
@Output() deselectObject: EventEmitter<ListableObject> = new EventEmitter();
@Output() selectObject: EventEmitter<ListableObject> = new EventEmitter();
protected getComponentName(): string {
return 'SearchResultsComponent';
}
protected importThemedComponent(themeName: string): Promise<any> {
return import(`../../../../themes/${themeName}/app/shared/search/search-results/search-results.component`);
}
protected importUnthemedComponent(): Promise<any> {
return import('./search-results.component');
}
}