mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 10:04:11 +00:00
45 lines
1.3 KiB
TypeScript
45 lines
1.3 KiB
TypeScript
import {
|
|
Component,
|
|
Input,
|
|
} from '@angular/core';
|
|
import { Observable } from 'rxjs';
|
|
|
|
import { ThemedComponent } from '../../shared/theme-support/themed.component';
|
|
import { AdminSidebarComponent } from './admin-sidebar.component';
|
|
|
|
/**
|
|
* Themed wrapper for AdminSidebarComponent
|
|
*/
|
|
@Component({
|
|
selector: 'ds-themed-admin-sidebar',
|
|
styleUrls: [],
|
|
templateUrl: '../../shared/theme-support/themed.component.html',
|
|
standalone: true,
|
|
})
|
|
export class ThemedAdminSidebarComponent extends ThemedComponent<AdminSidebarComponent> {
|
|
|
|
/**
|
|
* Observable that emits the width of the sidebar when expanded
|
|
*/
|
|
@Input() expandedSidebarWidth$: Observable<string>;
|
|
|
|
/**
|
|
* Observable that emits the width of the sidebar when collapsed
|
|
*/
|
|
@Input() collapsedSidebarWidth$: Observable<string>;
|
|
|
|
protected inAndOutputNames: (keyof AdminSidebarComponent & keyof this)[] = ['collapsedSidebarWidth$', 'expandedSidebarWidth$'];
|
|
|
|
protected getComponentName(): string {
|
|
return 'AdminSidebarComponent';
|
|
}
|
|
|
|
protected importThemedComponent(themeName: string): Promise<any> {
|
|
return import(`../../../themes/${themeName}/app/admin/admin-sidebar/admin-sidebar.component`);
|
|
}
|
|
|
|
protected importUnthemedComponent(): Promise<any> {
|
|
return import('./admin-sidebar.component');
|
|
}
|
|
}
|