Commits
Alexandre Vryghem authored ac40726b18b Merge
1 + | import { |
2 + | Component, |
3 + | Input, |
4 + | } from '@angular/core'; |
5 + | |
6 + | import { EPerson } from '../../core/eperson/models/eperson.model'; |
7 + | import { ThemedComponent } from '../../shared/theme-support/themed.component'; |
8 + | import { ProfilePageMetadataFormComponent } from './profile-page-metadata-form.component'; |
9 + | |
10 + | /** |
11 + | * Themed wrapper for {@link ProfilePageMetadataFormComponent} |
12 + | */ |
13 + | @Component({ |
14 + | selector: 'ds-themed-profile-page-metadata-form', |
15 + | templateUrl: '../../shared/theme-support/themed.component.html', |
16 + | standalone: true, |
17 + | }) |
18 + | export class ThemedProfilePageMetadataFormComponent extends ThemedComponent<ProfilePageMetadataFormComponent> { |
19 + | |
20 + | @Input() user: EPerson; |
21 + | |
22 + | protected inAndOutputNames: (keyof ProfilePageMetadataFormComponent & keyof this)[] = [ |
23 + | 'user', |
24 + | ]; |
25 + | |
26 + | protected getComponentName(): string { |
27 + | return 'ProfilePageMetadataFormComponent'; |
28 + | } |
29 + | |
30 + | protected importThemedComponent(themeName: string): Promise<any> { |
31 + | return import(`../../../themes/${themeName}/app/profile-page/profile-page-metadata-form/profile-page-metadata-form.component`); |
32 + | } |
33 + | |
34 + | protected importUnthemedComponent(): Promise<any> { |
35 + | return import('./profile-page-metadata-form.component'); |
36 + | } |
37 + | |
38 + | } |