You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
142 lines
5.5 KiB
142 lines
5.5 KiB
import { ElementRef, OnDestroy, DoCheck, NgZone, OnInit, QueryList, TemplateRef, AfterContentInit, ChangeDetectorRef, EventEmitter } from '@angular/core';
|
|
import { OverlayService, PrimeNGConfig } from 'primeng/api';
|
|
import { Subscription } from 'rxjs';
|
|
import * as i0 from "@angular/core";
|
|
import * as i1 from "@angular/common";
|
|
import * as i2 from "primeng/inputtext";
|
|
import * as i3 from "primeng/api";
|
|
export declare class PasswordDirective implements OnDestroy, DoCheck {
|
|
el: ElementRef;
|
|
zone: NgZone;
|
|
promptLabel: string;
|
|
weakLabel: string;
|
|
mediumLabel: string;
|
|
strongLabel: string;
|
|
feedback: boolean;
|
|
set showPassword(show: boolean);
|
|
panel: HTMLDivElement;
|
|
meter: any;
|
|
info: any;
|
|
filled: boolean;
|
|
scrollHandler: any;
|
|
documentResizeListener: any;
|
|
constructor(el: ElementRef, zone: NgZone);
|
|
ngDoCheck(): void;
|
|
onInput(e: any): void;
|
|
updateFilledState(): void;
|
|
createPanel(): void;
|
|
showOverlay(): void;
|
|
hideOverlay(): void;
|
|
onFocus(): void;
|
|
onBlur(): void;
|
|
onKeyup(e: any): void;
|
|
testStrength(str: string): number;
|
|
normalize(x: any, y: any): number;
|
|
get disabled(): boolean;
|
|
bindScrollListener(): void;
|
|
unbindScrollListener(): void;
|
|
bindDocumentResizeListener(): void;
|
|
unbindDocumentResizeListener(): void;
|
|
onWindowResize(): void;
|
|
ngOnDestroy(): void;
|
|
static ɵfac: i0.ɵɵFactoryDeclaration<PasswordDirective, never>;
|
|
static ɵdir: i0.ɵɵDirectiveDeclaration<PasswordDirective, "[pPassword]", never, { "promptLabel": "promptLabel"; "weakLabel": "weakLabel"; "mediumLabel": "mediumLabel"; "strongLabel": "strongLabel"; "feedback": "feedback"; "showPassword": "showPassword"; }, {}, never>;
|
|
}
|
|
export declare const Password_VALUE_ACCESSOR: any;
|
|
export declare class Password implements AfterContentInit, OnInit {
|
|
private cd;
|
|
private config;
|
|
el: ElementRef;
|
|
overlayService: OverlayService;
|
|
disabled: boolean;
|
|
promptLabel: string;
|
|
mediumRegex: string;
|
|
strongRegex: string;
|
|
weakLabel: string;
|
|
mediumLabel: string;
|
|
strongLabel: string;
|
|
inputId: string;
|
|
feedback: boolean;
|
|
appendTo: any;
|
|
toggleMask: boolean;
|
|
inputStyleClass: string;
|
|
styleClass: string;
|
|
style: any;
|
|
inputStyle: any;
|
|
showTransitionOptions: string;
|
|
hideTransitionOptions: string;
|
|
placeholder: string;
|
|
input: ElementRef;
|
|
onFocus: EventEmitter<any>;
|
|
onBlur: EventEmitter<any>;
|
|
contentTemplate: TemplateRef<any>;
|
|
footerTemplate: TemplateRef<any>;
|
|
headerTemplate: TemplateRef<any>;
|
|
templates: QueryList<any>;
|
|
overlayVisible: boolean;
|
|
meter: any;
|
|
infoText: string;
|
|
focused: boolean;
|
|
unmasked: boolean;
|
|
mediumCheckRegExp: any;
|
|
strongCheckRegExp: any;
|
|
resizeListener: any;
|
|
outsideClickListener: any;
|
|
scrollHandler: any;
|
|
overlay: any;
|
|
value: string;
|
|
onModelChange: Function;
|
|
onModelTouched: Function;
|
|
translationSubscription: Subscription;
|
|
constructor(cd: ChangeDetectorRef, config: PrimeNGConfig, el: ElementRef, overlayService: OverlayService);
|
|
ngAfterContentInit(): void;
|
|
ngOnInit(): void;
|
|
onAnimationStart(event: any): void;
|
|
onAnimationEnd(event: any): void;
|
|
appendContainer(): void;
|
|
alignOverlay(): void;
|
|
onInput(event: any): void;
|
|
onInputFocus(event: Event): void;
|
|
onInputBlur(event: Event): void;
|
|
onKeyDown(event: KeyboardEvent): void;
|
|
onKeyUp(event: any): void;
|
|
updateUI(value: any): void;
|
|
onMaskToggle(): void;
|
|
onOverlayClick(event: any): void;
|
|
testStrength(str: any): number;
|
|
writeValue(value: any): void;
|
|
registerOnChange(fn: Function): void;
|
|
registerOnTouched(fn: Function): void;
|
|
setDisabledState(val: boolean): void;
|
|
bindScrollListener(): void;
|
|
bindResizeListener(): void;
|
|
unbindScrollListener(): void;
|
|
unbindResizeListener(): void;
|
|
unbindOutsideClickListener(): void;
|
|
containerClass(): {
|
|
'p-password p-component p-inputwrapper': boolean;
|
|
'p-input-icon-right': boolean;
|
|
};
|
|
inputFieldClass(): {
|
|
'p-password-input': boolean;
|
|
'p-disabled': boolean;
|
|
};
|
|
toggleIconClass(): "pi pi-eye-slash" | "pi pi-eye";
|
|
strengthClass(): string;
|
|
filled(): boolean;
|
|
promptText(): any;
|
|
weakText(): any;
|
|
mediumText(): any;
|
|
strongText(): any;
|
|
restoreAppend(): void;
|
|
inputType(): "text" | "password";
|
|
getTranslation(option: string): any;
|
|
ngOnDestroy(): void;
|
|
static ɵfac: i0.ɵɵFactoryDeclaration<Password, never>;
|
|
static ɵcmp: i0.ɵɵComponentDeclaration<Password, "p-password", never, { "disabled": "disabled"; "promptLabel": "promptLabel"; "mediumRegex": "mediumRegex"; "strongRegex": "strongRegex"; "weakLabel": "weakLabel"; "mediumLabel": "mediumLabel"; "strongLabel": "strongLabel"; "inputId": "inputId"; "feedback": "feedback"; "appendTo": "appendTo"; "toggleMask": "toggleMask"; "inputStyleClass": "inputStyleClass"; "styleClass": "styleClass"; "style": "style"; "inputStyle": "inputStyle"; "showTransitionOptions": "showTransitionOptions"; "hideTransitionOptions": "hideTransitionOptions"; "placeholder": "placeholder"; }, { "onFocus": "onFocus"; "onBlur": "onBlur"; }, ["templates"], never>;
|
|
}
|
|
export declare class PasswordModule {
|
|
static ɵfac: i0.ɵɵFactoryDeclaration<PasswordModule, never>;
|
|
static ɵmod: i0.ɵɵNgModuleDeclaration<PasswordModule, [typeof PasswordDirective, typeof Password], [typeof i1.CommonModule, typeof i2.InputTextModule], [typeof PasswordDirective, typeof Password, typeof i3.SharedModule]>;
|
|
static ɵinj: i0.ɵɵInjectorDeclaration<PasswordModule>;
|
|
}
|