import { OnDestroy, OnInit } from '@angular/core'; import { FormControl } from '@angular/forms'; import { Observable, Subject } from 'rxjs'; import { GalaxyCoreInput } from '../core/core-input.directive'; import { GalaxyInputValidator, GalaxyPasswordInputInterface } from './../input.interface'; import * as i0 from "@angular/core"; export declare class PasswordInputComponent extends GalaxyCoreInput implements OnInit, OnDestroy { class: string; /** Show password strength indicator. */ showPasswordStrength: boolean; /** Show confirm password input */ confirmPassword: boolean; config?: GalaxyPasswordInputInterface; confirmPasswordFormControl: FormControl; confirmPasswordValidator: GalaxyInputValidator[]; currentType: string; currentIcon: string; passwordStrength$: Observable; strengthLabel$: Observable; destroy$: Subject; ngOnInit(): void; ngOnDestroy(): void; setupControl(): void; /** * Add listeners for value changes. If either value changes, we should compare the two values to see if they match. */ private addListenersForPasswordMatching; /** * Toggles the visibility of the inputs */ togglePasswordVisibility(): void; /** * Calculates the password strength base on the following: * Strong: * - Must contain 1 lowercase character * - Must contain 1 uppercase letter * - Must conatin 1 numeric character * - Must contain 1 special character * - Must be 8 characters or longer * Medium: * - lowercase characters and uppercase characters * - lowercase characters and numeric characters * - uppercase characters and numberic characters * - Must be 6 characters or longer * Will return strong, medium or weak * @param password - Password to check */ private calculatePasswordStrength; private getStrengthKey; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; }