mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 01:54:15 +00:00
100479: Removed the default input values to make it possible to override them in themes
This commit is contained in:
@@ -7,7 +7,7 @@ import { FooterComponent } from './footer.component';
|
|||||||
*/
|
*/
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'ds-themed-footer',
|
selector: 'ds-themed-footer',
|
||||||
styleUrls: ['footer.component.scss'],
|
styleUrls: [],
|
||||||
templateUrl: '../shared/theme-support/themed.component.html',
|
templateUrl: '../shared/theme-support/themed.component.html',
|
||||||
})
|
})
|
||||||
export class ThemedFooterComponent extends ThemedComponent<FooterComponent> {
|
export class ThemedFooterComponent extends ThemedComponent<FooterComponent> {
|
||||||
@@ -20,6 +20,6 @@ export class ThemedFooterComponent extends ThemedComponent<FooterComponent> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
protected importUnthemedComponent(): Promise<any> {
|
protected importUnthemedComponent(): Promise<any> {
|
||||||
return import(`./footer.component`);
|
return import('./footer.component');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -3,11 +3,11 @@ import { ThemedComponent } from '../shared/theme-support/themed.component';
|
|||||||
import { HeaderNavbarWrapperComponent } from './header-navbar-wrapper.component';
|
import { HeaderNavbarWrapperComponent } from './header-navbar-wrapper.component';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Themed wrapper for BreadcrumbsComponent
|
* Themed wrapper for {@link HeaderNavbarWrapperComponent}
|
||||||
*/
|
*/
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'ds-themed-header-navbar-wrapper',
|
selector: 'ds-themed-header-navbar-wrapper',
|
||||||
styleUrls: ['./themed-header-navbar-wrapper.component.scss'],
|
styleUrls: [],
|
||||||
templateUrl: '../shared/theme-support/themed.component.html',
|
templateUrl: '../shared/theme-support/themed.component.html',
|
||||||
})
|
})
|
||||||
export class ThemedHeaderNavbarWrapperComponent extends ThemedComponent<HeaderNavbarWrapperComponent> {
|
export class ThemedHeaderNavbarWrapperComponent extends ThemedComponent<HeaderNavbarWrapperComponent> {
|
||||||
@@ -20,6 +20,6 @@ export class ThemedHeaderNavbarWrapperComponent extends ThemedComponent<HeaderNa
|
|||||||
}
|
}
|
||||||
|
|
||||||
protected importUnthemedComponent(): Promise<any> {
|
protected importUnthemedComponent(): Promise<any> {
|
||||||
return import(`./header-navbar-wrapper.component`);
|
return import('./header-navbar-wrapper.component');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -8,8 +8,6 @@ import { Component } from '@angular/core';
|
|||||||
templateUrl: '../shared/theme-support/themed.component.html',
|
templateUrl: '../shared/theme-support/themed.component.html',
|
||||||
})
|
})
|
||||||
export class ThemedHomePageComponent extends ThemedComponent<HomePageComponent> {
|
export class ThemedHomePageComponent extends ThemedComponent<HomePageComponent> {
|
||||||
protected inAndOutputNames: (keyof HomePageComponent & keyof this)[];
|
|
||||||
|
|
||||||
|
|
||||||
protected getComponentName(): string {
|
protected getComponentName(): string {
|
||||||
return 'HomePageComponent';
|
return 'HomePageComponent';
|
||||||
|
@@ -11,7 +11,6 @@ import { MyDSpacePageComponent } from './my-dspace-page.component';
|
|||||||
templateUrl: './../shared/theme-support/themed.component.html'
|
templateUrl: './../shared/theme-support/themed.component.html'
|
||||||
})
|
})
|
||||||
export class ThemedMyDSpacePageComponent extends ThemedComponent<MyDSpacePageComponent> {
|
export class ThemedMyDSpacePageComponent extends ThemedComponent<MyDSpacePageComponent> {
|
||||||
protected inAndOutputNames: (keyof MyDSpacePageComponent & keyof this)[];
|
|
||||||
|
|
||||||
protected getComponentName(): string {
|
protected getComponentName(): string {
|
||||||
return 'MyDSpacePageComponent';
|
return 'MyDSpacePageComponent';
|
||||||
|
@@ -28,19 +28,18 @@ export class ThemedConfigurationSearchPageComponent extends ThemedComponent<Conf
|
|||||||
/**
|
/**
|
||||||
* True when the search component should show results on the current page
|
* True when the search component should show results on the current page
|
||||||
*/
|
*/
|
||||||
@Input() inPlaceSearch = true;
|
@Input() inPlaceSearch: boolean;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Whether or not the search bar should be visible
|
* Whether or not the search bar should be visible
|
||||||
*/
|
*/
|
||||||
@Input()
|
@Input() searchEnabled: boolean;
|
||||||
searchEnabled = true;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The width of the sidebar (bootstrap columns)
|
* The width of the sidebar (bootstrap columns)
|
||||||
*/
|
*/
|
||||||
@Input()
|
@Input()
|
||||||
sideBarWidth = 3;
|
sideBarWidth: number;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The currently applied configuration (determines title of search)
|
* The currently applied configuration (determines title of search)
|
||||||
@@ -66,7 +65,7 @@ export class ThemedConfigurationSearchPageComponent extends ThemedComponent<Conf
|
|||||||
}
|
}
|
||||||
|
|
||||||
protected importUnthemedComponent(): Promise<any> {
|
protected importUnthemedComponent(): Promise<any> {
|
||||||
return import(`./configuration-search-page.component`);
|
return import('./configuration-search-page.component');
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@@ -127,7 +127,7 @@ export class SearchComponent implements OnInit {
|
|||||||
/**
|
/**
|
||||||
* List of available view mode
|
* List of available view mode
|
||||||
*/
|
*/
|
||||||
@Input() useUniquePageId: false;
|
@Input() useUniquePageId: boolean;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* List of available view mode
|
* List of available view mode
|
||||||
|
Reference in New Issue
Block a user