import { EventEmitter, OnInit } from '@angular/core'; import { FormBuilder, FormGroup } from '@angular/forms'; import { KnoraApiConnection } from '@dasch-swiss/dsp-js'; import { Session, SessionService } from '../../../core/session.service'; import { NotificationService } from '../../services/notification.service'; export declare class LoginFormComponent implements OnInit { private _dspApiConnection; private _notification; private _sessionService; private _fb; /** * Navigate to the defined url (or path) after successful login * * @param navigate */ navigate?: string; /** * Set your theme color here, * it will be used in the progress-indicator and the buttons * * @param color */ color?: string; /** * Set whether or not you want icons to display in the input fields * * @param icons */ icons?: boolean; /** * Emits true when the login process was successful and false in case of error * * @param loginSuccess * */ loginSuccess: EventEmitter; /** * Emits true when the logout process was successful and false in case of error * * @param logoutSuccess * */ logoutSuccess: EventEmitter; session: Session; form: FormGroup; loading: boolean; isError: boolean; loginFailed: boolean; loginErrorServer: boolean; formLabel: { title: string; name: string; pw: string; submit: string; retry: string; logout: string; remember: string; forgot_pw: string; error: { failed: string; server: string; }; }; formErrors: { username: string; password: string; }; validationMessages: { username: { required: string; }; password: { required: string; }; }; constructor(_dspApiConnection: KnoraApiConnection, _notification: NotificationService, _sessionService: SessionService, _fb: FormBuilder); ngOnInit(): void; buildLoginForm(): void; /** * @ignore * * Login and set session */ login(): void; /** * @ignore * * Logout and destroy session * */ logout(): void; }