mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-18 23:43:01 +00:00
45 lines
1.1 KiB
TypeScript
45 lines
1.1 KiB
TypeScript
import {
|
|
Component,
|
|
Input,
|
|
} from '@angular/core';
|
|
|
|
import { AuthMethodType } from '../../core/auth/models/auth.method-type';
|
|
import { ThemedComponent } from '../theme-support/themed.component';
|
|
import { LogInComponent } from './log-in.component';
|
|
|
|
/**
|
|
* Themed wrapper for {@link LogInComponent}
|
|
*/
|
|
@Component({
|
|
selector: 'ds-log-in',
|
|
styleUrls: [],
|
|
templateUrl: './../theme-support/themed.component.html',
|
|
standalone: true,
|
|
imports: [LogInComponent],
|
|
})
|
|
export class ThemedLogInComponent extends ThemedComponent<LogInComponent> {
|
|
|
|
@Input() isStandalonePage: boolean;
|
|
|
|
@Input() excludedAuthMethod: AuthMethodType;
|
|
|
|
@Input() showRegisterLink = true;
|
|
|
|
protected inAndOutputNames: (keyof LogInComponent & keyof this)[] = [
|
|
'isStandalonePage', 'excludedAuthMethod', 'showRegisterLink',
|
|
];
|
|
|
|
protected getComponentName(): string {
|
|
return 'LogInComponent';
|
|
}
|
|
|
|
protected importThemedComponent(themeName: string): Promise<any> {
|
|
return import(`../../../themes/${themeName}/app/shared/log-in/log-in.component`);
|
|
}
|
|
|
|
protected importUnthemedComponent(): Promise<any> {
|
|
return import('./log-in.component');
|
|
}
|
|
|
|
}
|