import { OnInit } from '@angular/core'; import { AfterViewInit } from '@angular/core'; import { OnChanges } from '@angular/core'; import { SimpleChanges } from '@angular/core'; import { OnDestroy } from '@angular/core'; import { EventEmitter } from '@angular/core'; import { MatDialog } from '@angular/material/dialog'; import { MatIconRegistry } from '@angular/material/icon'; import { DomSanitizer } from '@angular/platform-browser'; import { LayoutIds } from './enums/layout-ids.enum'; import { FormIds } from './enums/form-ids.enum'; import { UserPolicies } from './enums/user-policies.enum'; import { DynamicBuilderComponent } from './dynamic-builder/dynamic-builder.component'; export declare class LoginFormComponent implements OnInit, OnChanges, AfterViewInit, OnDestroy { dialog: MatDialog; sanitizer: DomSanitizer; iconRegistry: MatIconRegistry; layouts: any; theme: string; pwdPolicies: any; icons: any; buttons: any; actions: any; errors: any; labels: any; classes: any; fixedWidth: boolean; googleStyle: boolean; googleTheme: string; customLayouts: any; customUsrPolicy: string; customPwdPolicies: any; hidePwdPolicyOnLogin: boolean; customIcons: any; customButtons: any; customActions: any; customErrors: any; customLabels: any; customClasses: any; initialized: EventEmitter; signUp: EventEmitter; login: EventEmitter; loginSocial: EventEmitter; forgotPwd: EventEmitter; sendResetPwd: EventEmitter; sendFirstPwd: EventEmitter; saveMfaKey: EventEmitter; sendMfaCode: EventEmitter; stepUsr: EventEmitter; stepPwd: EventEmitter; formId: string; formProperties: any; defaultLoginForm: DynamicBuilderComponent; loginParams: any; loginFields: any[]; usrForm: DynamicBuilderComponent; usrParams: any; usrFields: any[]; pwdForm: DynamicBuilderComponent; pwdParams: any; pwdFields: any[]; mfaParams: any; mfaFields: any[]; username: string; isFirst: boolean; code: string; qrCode: string; userInfo: string; userImage: string; selectedTab: number; closeModalEvent: EventEmitter; userPolicies: typeof UserPolicies; formIds: typeof FormIds; layoutIds: typeof LayoutIds; private modalFirstSub; private modalLostSub; private modalSaveMfaKeySub; private modalSendMfaCodeSub; constructor(dialog: MatDialog, sanitizer: DomSanitizer, iconRegistry: MatIconRegistry); ngOnInit(): void; ngAfterViewInit(): void; ngOnChanges(changes: SimpleChanges): void; ngOnDestroy(): void; /** Emit `$event` object containing username and password properties. * * @example * var username : string = $event.username; * var password : string = $event.password; */ onClickLogin($event: any): void; /** Emit `$event` object containing username, password and social properties. * * @param social Name of the social provider * @example * var username : string = $event.username; * var password : string = $event.password; * var social : string = $event.social; */ onClickLoginSocial(social: string): void; /** Emit a click event on the sign up button. */ onClickSignUp(): void; /** Emit `$event` object containing username property. * * @example * var username : string = $event.username; */ onClickForgotPassword(): void; /** Show password form either to initialize first password or to reset forgot password. * * @param isFirst Initialize first password or reset forgot password */ showPwdForm(isFirst: boolean): void; /** Show MFA setup form to initialize first TOTP (Time-based One-time Password). * * @param code * @param qrCode */ showMfaSetupForm(code: string, qrCode: string): void; /** Show MFA form to get verification code. */ showMfaForm(): void; /** Hide password form. */ hidePwdForm(updatePwdField?: string): void; /** Hide MFA setup form. */ hideMfaSetupForm(): void; /** Hide MFA form. */ hideMfaForm(): void; /** Show password input (for google-style form). */ showPwdStep(userInfo?: string, userImage?: string): void; /** Content management */ getForm(): any; setForm(obj: any): void; onClickNextStep(currentStep: number, $event?: any): void; onClickPrevStep(currentStep: number): void; /** Emit `$event` object containing password property. * * @example * var username : string = $event.username; * var newPassword : string = $event.password; */ tabFirstPwd($event: any): void; /** Emit `$event` object containing password and code properties. * * @example * var username : string = $event.username; * var newPassword : string = $event.password; * var verificationCode : string = $event.code; */ tabLostPwd($event: any): void; /** Emit `$event` object containing code property. * * @example * var verificationCode : string = $event.code; */ tabSaveMfaKey($event: any): void; /** Emit `$event` object containing code property. * * @example * var verificationCode : string = $event.code; */ tabSendMfaCode($event: any): void; /** Emit `$event` object containing password property. * * @example * var username : string = $event.username; * var newPassword : string = $event.password; */ modalFirstPwd(dialogRef: any): void; /** Emit `$event` object containing password and code properties. * * @example * var username : string = $event.username; * var newPassword : string = $event.password; * var verificationCode : string = $event.code; */ modalLostPwd(dialogRef: any): void; /** Emit `$event` object containing code property. * * @example * var verificationCode : string = $event.code; */ modalSaveMfaKey(dialogRef: any): void; /** Emit `$event` object containing code property. * * @example * var verificationCode : string = $event.code; */ modalSendMfaCode(dialogRef: any): void; onClickCloseTab($event: any): void; private openModal; private showLayout; private closeLayout; private closeModal; private openTab; private closeTab; private getEventResponse; private initLayouts; private initTheme; private initIcons; private initButtons; private initActions; private initErrors; private initPolicies; private initLabels; private initClasses; private initFormProperties; private initMfaParameters; private initMfaForm; private initLoginParameters; private initLoginForm; private initUsernameField; private initPasswordField; private initVerificationCodeField; }