100479: Removed the default input values to make it possible to override them in themes

This commit is contained in:
Alexandre Vryghem
2023-03-24 16:47:42 +01:00
parent d6147e5236
commit 1752b1afd4
6 changed files with 10 additions and 14 deletions

View File

@@ -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');
} }
} }

View File

@@ -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');
} }
} }

View File

@@ -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';

View File

@@ -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';

View File

@@ -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');
} }
} }

View File

@@ -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