Skip to content

Commit

Permalink
Maybe IT will be passed with vanilla search component
Browse files Browse the repository at this point in the history
  • Loading branch information
milanmajchrak committed Feb 15, 2024
1 parent 25f0aa1 commit 2357b57
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/app/shared/search/themed-search.component.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { Component, EventEmitter, Input, Output } from '@angular/core';
import { ThemedComponent } from '../theme-support/themed.component';
import { SearchComponent } from './search.component';
import { SearchConfigurationOption } from './search-switch-configuration/search-configuration-option.model';
import { Context } from '../../core/shared/context.model';
import { CollectionElementLinkType } from '../object-collection/collection-element-link.type';
Expand All @@ -8,7 +9,6 @@ import { ViewMode } from '../../core/shared/view-mode.model';
import { SearchObjects } from './models/search-objects.model';
import { DSpaceObject } from '../../core/shared/dspace-object.model';
import { ListableObject } from '../object-collection/shared/listable-object.model';
import { ClarinSearchComponent } from './clarin-search/clarin-search.component';

/**
* Themed wrapper for {@link SearchComponent}
Expand All @@ -18,8 +18,8 @@ import { ClarinSearchComponent } from './clarin-search/clarin-search.component';
styleUrls: [],
templateUrl: '../theme-support/themed.component.html',
})
export class ThemedSearchComponent extends ThemedComponent<ClarinSearchComponent> {
protected inAndOutputNames: (keyof ClarinSearchComponent & keyof this)[] = ['configurationList', 'context', 'configuration', 'fixedFilterQuery', 'useCachedVersionIfAvailable', 'inPlaceSearch', 'linkType', 'paginationId', 'searchEnabled', 'sideBarWidth', 'searchFormPlaceholder', 'selectable', 'selectionConfig', 'showCsvExport', 'showSidebar', 'showThumbnails', 'showViewModes', 'useUniquePageId', 'viewModeList', 'showScopeSelector', 'resultFound', 'deselectObject', 'selectObject', 'trackStatistics', 'query'];
export class ThemedSearchComponent extends ThemedComponent<SearchComponent> {
protected inAndOutputNames: (keyof SearchComponent & keyof this)[] = ['configurationList', 'context', 'configuration', 'fixedFilterQuery', 'useCachedVersionIfAvailable', 'inPlaceSearch', 'linkType', 'paginationId', 'searchEnabled', 'sideBarWidth', 'searchFormPlaceholder', 'selectable', 'selectionConfig', 'showCsvExport', 'showSidebar', 'showThumbnails', 'showViewModes', 'useUniquePageId', 'viewModeList', 'showScopeSelector', 'resultFound', 'deselectObject', 'selectObject', 'trackStatistics', 'query'];

@Input() configurationList: SearchConfigurationOption[];

Expand Down Expand Up @@ -72,14 +72,14 @@ export class ThemedSearchComponent extends ThemedComponent<ClarinSearchComponent
@Output() selectObject: EventEmitter<ListableObject> = new EventEmitter();

protected getComponentName(): string {
return 'ClarinSearchComponent';
return 'SearchComponent';
}

protected importThemedComponent(themeName: string): Promise<any> {
return import(`../../../themes/${themeName}/app/shared/search/search.component`);
return import(`../../../themes/${themeName}/app/shared/search/clarin-search/search.component`);
}

protected importUnthemedComponent(): Promise<any> {
return import('./clarin-search/clarin-search.component');
return import('./search.component');
}
}

0 comments on commit 2357b57

Please sign in to comment.