[59329aa] | 1 | import { ElementRef, OnDestroy, DoCheck, NgZone, OnInit, QueryList, TemplateRef, AfterContentInit, ChangeDetectorRef, EventEmitter } from '@angular/core';
|
---|
| 2 | import { OverlayService, PrimeNGConfig } from 'primeng/api';
|
---|
| 3 | import { Subscription } from 'rxjs';
|
---|
| 4 | import * as i0 from "@angular/core";
|
---|
| 5 | import * as i1 from "@angular/common";
|
---|
| 6 | import * as i2 from "primeng/inputtext";
|
---|
| 7 | import * as i3 from "primeng/api";
|
---|
| 8 | export declare class PasswordDirective implements OnDestroy, DoCheck {
|
---|
| 9 | el: ElementRef;
|
---|
| 10 | zone: NgZone;
|
---|
| 11 | promptLabel: string;
|
---|
| 12 | weakLabel: string;
|
---|
| 13 | mediumLabel: string;
|
---|
| 14 | strongLabel: string;
|
---|
| 15 | feedback: boolean;
|
---|
| 16 | set showPassword(show: boolean);
|
---|
| 17 | panel: HTMLDivElement;
|
---|
| 18 | meter: any;
|
---|
| 19 | info: any;
|
---|
| 20 | filled: boolean;
|
---|
| 21 | scrollHandler: any;
|
---|
| 22 | documentResizeListener: any;
|
---|
| 23 | constructor(el: ElementRef, zone: NgZone);
|
---|
| 24 | ngDoCheck(): void;
|
---|
| 25 | onInput(e: any): void;
|
---|
| 26 | updateFilledState(): void;
|
---|
| 27 | createPanel(): void;
|
---|
| 28 | showOverlay(): void;
|
---|
| 29 | hideOverlay(): void;
|
---|
| 30 | onFocus(): void;
|
---|
| 31 | onBlur(): void;
|
---|
| 32 | onKeyup(e: any): void;
|
---|
| 33 | testStrength(str: string): number;
|
---|
| 34 | normalize(x: any, y: any): number;
|
---|
| 35 | get disabled(): boolean;
|
---|
| 36 | bindScrollListener(): void;
|
---|
| 37 | unbindScrollListener(): void;
|
---|
| 38 | bindDocumentResizeListener(): void;
|
---|
| 39 | unbindDocumentResizeListener(): void;
|
---|
| 40 | onWindowResize(): void;
|
---|
| 41 | ngOnDestroy(): void;
|
---|
| 42 | static ɵfac: i0.ɵɵFactoryDeclaration<PasswordDirective, never>;
|
---|
| 43 | static ɵdir: i0.ɵɵDirectiveDeclaration<PasswordDirective, "[pPassword]", never, { "promptLabel": "promptLabel"; "weakLabel": "weakLabel"; "mediumLabel": "mediumLabel"; "strongLabel": "strongLabel"; "feedback": "feedback"; "showPassword": "showPassword"; }, {}, never>;
|
---|
| 44 | }
|
---|
| 45 | export declare const Password_VALUE_ACCESSOR: any;
|
---|
| 46 | export declare class Password implements AfterContentInit, OnInit {
|
---|
| 47 | private cd;
|
---|
| 48 | private config;
|
---|
| 49 | el: ElementRef;
|
---|
| 50 | overlayService: OverlayService;
|
---|
| 51 | disabled: boolean;
|
---|
| 52 | promptLabel: string;
|
---|
| 53 | mediumRegex: string;
|
---|
| 54 | strongRegex: string;
|
---|
| 55 | weakLabel: string;
|
---|
| 56 | mediumLabel: string;
|
---|
| 57 | strongLabel: string;
|
---|
| 58 | inputId: string;
|
---|
| 59 | feedback: boolean;
|
---|
| 60 | appendTo: any;
|
---|
| 61 | toggleMask: boolean;
|
---|
| 62 | inputStyleClass: string;
|
---|
| 63 | styleClass: string;
|
---|
| 64 | style: any;
|
---|
| 65 | inputStyle: any;
|
---|
| 66 | showTransitionOptions: string;
|
---|
| 67 | hideTransitionOptions: string;
|
---|
| 68 | placeholder: string;
|
---|
| 69 | input: ElementRef;
|
---|
| 70 | onFocus: EventEmitter<any>;
|
---|
| 71 | onBlur: EventEmitter<any>;
|
---|
| 72 | contentTemplate: TemplateRef<any>;
|
---|
| 73 | footerTemplate: TemplateRef<any>;
|
---|
| 74 | headerTemplate: TemplateRef<any>;
|
---|
| 75 | templates: QueryList<any>;
|
---|
| 76 | overlayVisible: boolean;
|
---|
| 77 | meter: any;
|
---|
| 78 | infoText: string;
|
---|
| 79 | focused: boolean;
|
---|
| 80 | unmasked: boolean;
|
---|
| 81 | mediumCheckRegExp: any;
|
---|
| 82 | strongCheckRegExp: any;
|
---|
| 83 | resizeListener: any;
|
---|
| 84 | outsideClickListener: any;
|
---|
| 85 | scrollHandler: any;
|
---|
| 86 | overlay: any;
|
---|
| 87 | value: string;
|
---|
| 88 | onModelChange: Function;
|
---|
| 89 | onModelTouched: Function;
|
---|
| 90 | translationSubscription: Subscription;
|
---|
| 91 | constructor(cd: ChangeDetectorRef, config: PrimeNGConfig, el: ElementRef, overlayService: OverlayService);
|
---|
| 92 | ngAfterContentInit(): void;
|
---|
| 93 | ngOnInit(): void;
|
---|
| 94 | onAnimationStart(event: any): void;
|
---|
| 95 | onAnimationEnd(event: any): void;
|
---|
| 96 | appendContainer(): void;
|
---|
| 97 | alignOverlay(): void;
|
---|
| 98 | onInput(event: any): void;
|
---|
| 99 | onInputFocus(event: Event): void;
|
---|
| 100 | onInputBlur(event: Event): void;
|
---|
| 101 | onKeyUp(event: any): void;
|
---|
| 102 | updateUI(value: any): void;
|
---|
| 103 | onMaskToggle(): void;
|
---|
| 104 | onOverlayClick(event: any): void;
|
---|
| 105 | testStrength(str: any): number;
|
---|
| 106 | writeValue(value: any): void;
|
---|
| 107 | registerOnChange(fn: Function): void;
|
---|
| 108 | registerOnTouched(fn: Function): void;
|
---|
| 109 | setDisabledState(val: boolean): void;
|
---|
| 110 | bindScrollListener(): void;
|
---|
| 111 | bindResizeListener(): void;
|
---|
| 112 | unbindScrollListener(): void;
|
---|
| 113 | unbindResizeListener(): void;
|
---|
| 114 | unbindOutsideClickListener(): void;
|
---|
| 115 | containerClass(): {
|
---|
| 116 | 'p-password p-component p-inputwrapper': boolean;
|
---|
| 117 | 'p-input-icon-right': boolean;
|
---|
| 118 | };
|
---|
| 119 | inputFieldClass(): {
|
---|
| 120 | 'p-password-input': boolean;
|
---|
| 121 | 'p-disabled': boolean;
|
---|
| 122 | };
|
---|
| 123 | toggleIconClass(): "pi pi-eye-slash" | "pi pi-eye";
|
---|
| 124 | strengthClass(): string;
|
---|
| 125 | filled(): boolean;
|
---|
| 126 | promptText(): any;
|
---|
| 127 | weakText(): any;
|
---|
| 128 | mediumText(): any;
|
---|
| 129 | strongText(): any;
|
---|
| 130 | restoreAppend(): void;
|
---|
| 131 | inputType(): "text" | "password";
|
---|
| 132 | getTranslation(option: string): any;
|
---|
| 133 | ngOnDestroy(): void;
|
---|
| 134 | static ɵfac: i0.ɵɵFactoryDeclaration<Password, never>;
|
---|
| 135 | 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>;
|
---|
| 136 | }
|
---|
| 137 | export declare class PasswordModule {
|
---|
| 138 | static ɵfac: i0.ɵɵFactoryDeclaration<PasswordModule, never>;
|
---|
| 139 | static ɵmod: i0.ɵɵNgModuleDeclaration<PasswordModule, [typeof PasswordDirective, typeof Password], [typeof i1.CommonModule, typeof i2.InputTextModule], [typeof PasswordDirective, typeof Password, typeof i3.SharedModule]>;
|
---|
| 140 | static ɵinj: i0.ɵɵInjectorDeclaration<PasswordModule>;
|
---|
| 141 | }
|
---|