source: trip-planner-front/node_modules/primeng/esm2020/password/password.mjs@ 1ad8e64

Last change on this file since 1ad8e64 was 59329aa, checked in by Ema <ema_spirova@…>, 3 years ago

adding photos

  • Property mode set to 100644
File size: 75.3 KB
Line 
1import { NgModule, Directive, HostListener, Input, ViewEncapsulation, ChangeDetectionStrategy, ContentChildren, Component, ViewChild, forwardRef, Output, EventEmitter } from '@angular/core';
2import { CommonModule } from '@angular/common';
3import { animate, style, transition, trigger } from '@angular/animations';
4import { NG_VALUE_ACCESSOR } from '@angular/forms';
5import { DomHandler, ConnectedOverlayScrollHandler } from 'primeng/dom';
6import { PrimeTemplate, TranslationKeys, SharedModule } from 'primeng/api';
7import { ZIndexUtils } from 'primeng/utils';
8import { InputTextModule } from 'primeng/inputtext';
9import * as i0 from "@angular/core";
10import * as i1 from "primeng/api";
11import * as i2 from "@angular/common";
12import * as i3 from "primeng/inputtext";
13export class PasswordDirective {
14 constructor(el, zone) {
15 this.el = el;
16 this.zone = zone;
17 this.promptLabel = 'Enter a password';
18 this.weakLabel = 'Weak';
19 this.mediumLabel = 'Medium';
20 this.strongLabel = 'Strong';
21 this.feedback = true;
22 }
23 set showPassword(show) {
24 this.el.nativeElement.type = show ? 'text' : 'password';
25 }
26 ngDoCheck() {
27 this.updateFilledState();
28 }
29 onInput(e) {
30 this.updateFilledState();
31 }
32 updateFilledState() {
33 this.filled = this.el.nativeElement.value && this.el.nativeElement.value.length;
34 }
35 createPanel() {
36 this.panel = document.createElement('div');
37 this.panel.className = 'p-password-panel p-component p-password-panel-overlay p-connected-overlay';
38 this.meter = document.createElement('div');
39 this.meter.className = 'p-password-meter';
40 this.info = document.createElement('div');
41 this.info.className = 'p-password-info';
42 this.info.textContent = this.promptLabel;
43 this.panel.appendChild(this.meter);
44 this.panel.appendChild(this.info);
45 this.panel.style.minWidth = DomHandler.getOuterWidth(this.el.nativeElement) + 'px';
46 document.body.appendChild(this.panel);
47 }
48 showOverlay() {
49 if (this.feedback) {
50 if (!this.panel) {
51 this.createPanel();
52 }
53 this.panel.style.zIndex = String(++DomHandler.zindex);
54 this.panel.style.display = 'block';
55 this.zone.runOutsideAngular(() => {
56 setTimeout(() => {
57 DomHandler.addClass(this.panel, 'p-connected-overlay-visible');
58 this.bindScrollListener();
59 this.bindDocumentResizeListener();
60 }, 1);
61 });
62 DomHandler.absolutePosition(this.panel, this.el.nativeElement);
63 }
64 }
65 hideOverlay() {
66 if (this.feedback && this.panel) {
67 DomHandler.addClass(this.panel, 'p-connected-overlay-hidden');
68 DomHandler.removeClass(this.panel, 'p-connected-overlay-visible');
69 this.unbindScrollListener();
70 this.unbindDocumentResizeListener();
71 this.zone.runOutsideAngular(() => {
72 setTimeout(() => {
73 this.ngOnDestroy();
74 }, 150);
75 });
76 }
77 }
78 onFocus() {
79 this.showOverlay();
80 }
81 onBlur() {
82 this.hideOverlay();
83 }
84 onKeyup(e) {
85 if (this.feedback) {
86 let value = e.target.value, label = null, meterPos = null;
87 if (value.length === 0) {
88 label = this.promptLabel;
89 meterPos = '0px 0px';
90 }
91 else {
92 var score = this.testStrength(value);
93 if (score < 30) {
94 label = this.weakLabel;
95 meterPos = '0px -10px';
96 }
97 else if (score >= 30 && score < 80) {
98 label = this.mediumLabel;
99 meterPos = '0px -20px';
100 }
101 else if (score >= 80) {
102 label = this.strongLabel;
103 meterPos = '0px -30px';
104 }
105 }
106 if (!this.panel || !DomHandler.hasClass(this.panel, 'p-connected-overlay-visible')) {
107 this.showOverlay();
108 }
109 this.meter.style.backgroundPosition = meterPos;
110 this.info.textContent = label;
111 }
112 }
113 testStrength(str) {
114 let grade = 0;
115 let val;
116 val = str.match('[0-9]');
117 grade += this.normalize(val ? val.length : 1 / 4, 1) * 25;
118 val = str.match('[a-zA-Z]');
119 grade += this.normalize(val ? val.length : 1 / 2, 3) * 10;
120 val = str.match('[!@#$%^&*?_~.,;=]');
121 grade += this.normalize(val ? val.length : 1 / 6, 1) * 35;
122 val = str.match('[A-Z]');
123 grade += this.normalize(val ? val.length : 1 / 6, 1) * 30;
124 grade *= str.length / 8;
125 return grade > 100 ? 100 : grade;
126 }
127 normalize(x, y) {
128 let diff = x - y;
129 if (diff <= 0)
130 return x / y;
131 else
132 return 1 + 0.5 * (x / (x + y / 4));
133 }
134 get disabled() {
135 return this.el.nativeElement.disabled;
136 }
137 bindScrollListener() {
138 if (!this.scrollHandler) {
139 this.scrollHandler = new ConnectedOverlayScrollHandler(this.el.nativeElement, () => {
140 if (DomHandler.hasClass(this.panel, 'p-connected-overlay-visible')) {
141 this.hideOverlay();
142 }
143 });
144 }
145 this.scrollHandler.bindScrollListener();
146 }
147 unbindScrollListener() {
148 if (this.scrollHandler) {
149 this.scrollHandler.unbindScrollListener();
150 }
151 }
152 bindDocumentResizeListener() {
153 this.documentResizeListener = this.onWindowResize.bind(this);
154 window.addEventListener('resize', this.documentResizeListener);
155 }
156 unbindDocumentResizeListener() {
157 if (this.documentResizeListener) {
158 window.removeEventListener('resize', this.documentResizeListener);
159 this.documentResizeListener = null;
160 }
161 }
162 onWindowResize() {
163 this.hideOverlay();
164 }
165 ngOnDestroy() {
166 if (this.panel) {
167 if (this.scrollHandler) {
168 this.scrollHandler.destroy();
169 this.scrollHandler = null;
170 }
171 this.unbindDocumentResizeListener();
172 document.body.removeChild(this.panel);
173 this.panel = null;
174 this.meter = null;
175 this.info = null;
176 }
177 }
178}
179PasswordDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: PasswordDirective, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Directive });
180PasswordDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.0.0", type: PasswordDirective, selector: "[pPassword]", inputs: { promptLabel: "promptLabel", weakLabel: "weakLabel", mediumLabel: "mediumLabel", strongLabel: "strongLabel", feedback: "feedback", showPassword: "showPassword" }, host: { listeners: { "input": "onInput($event)", "focus": "onFocus()", "blur": "onBlur()", "keyup": "onKeyup($event)" }, properties: { "class.p-filled": "filled" }, classAttribute: "p-inputtext p-component p-element" }, ngImport: i0 });
181i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: PasswordDirective, decorators: [{
182 type: Directive,
183 args: [{
184 selector: '[pPassword]',
185 host: {
186 'class': 'p-inputtext p-component p-element',
187 '[class.p-filled]': 'filled'
188 }
189 }]
190 }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.NgZone }]; }, propDecorators: { promptLabel: [{
191 type: Input
192 }], weakLabel: [{
193 type: Input
194 }], mediumLabel: [{
195 type: Input
196 }], strongLabel: [{
197 type: Input
198 }], feedback: [{
199 type: Input
200 }], showPassword: [{
201 type: Input
202 }], onInput: [{
203 type: HostListener,
204 args: ['input', ['$event']]
205 }], onFocus: [{
206 type: HostListener,
207 args: ['focus']
208 }], onBlur: [{
209 type: HostListener,
210 args: ['blur']
211 }], onKeyup: [{
212 type: HostListener,
213 args: ['keyup', ['$event']]
214 }] } });
215export const Password_VALUE_ACCESSOR = {
216 provide: NG_VALUE_ACCESSOR,
217 useExisting: forwardRef(() => Password),
218 multi: true
219};
220export class Password {
221 constructor(cd, config, el, overlayService) {
222 this.cd = cd;
223 this.config = config;
224 this.el = el;
225 this.overlayService = overlayService;
226 this.mediumRegex = '^(((?=.*[a-z])(?=.*[A-Z]))|((?=.*[a-z])(?=.*[0-9]))|((?=.*[A-Z])(?=.*[0-9])))(?=.{6,})';
227 this.strongRegex = '^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.{8,})';
228 this.feedback = true;
229 this.showTransitionOptions = '.12s cubic-bezier(0, 0, 0.2, 1)';
230 this.hideTransitionOptions = '.1s linear';
231 this.onFocus = new EventEmitter();
232 this.onBlur = new EventEmitter();
233 this.overlayVisible = false;
234 this.focused = false;
235 this.unmasked = false;
236 this.value = null;
237 this.onModelChange = () => { };
238 this.onModelTouched = () => { };
239 }
240 ngAfterContentInit() {
241 this.templates.forEach((item) => {
242 switch (item.getType()) {
243 case 'content':
244 this.contentTemplate = item.template;
245 break;
246 case 'header':
247 this.headerTemplate = item.template;
248 break;
249 case 'footer':
250 this.footerTemplate = item.template;
251 break;
252 default:
253 this.contentTemplate = item.template;
254 break;
255 }
256 });
257 }
258 ngOnInit() {
259 this.infoText = this.promptText();
260 this.mediumCheckRegExp = new RegExp(this.mediumRegex);
261 this.strongCheckRegExp = new RegExp(this.strongRegex);
262 this.translationSubscription = this.config.translationObserver.subscribe(() => {
263 this.updateUI(this.value || "");
264 });
265 }
266 onAnimationStart(event) {
267 switch (event.toState) {
268 case 'visible':
269 this.overlay = event.element;
270 ZIndexUtils.set('overlay', this.overlay, this.config.zIndex.overlay);
271 this.appendContainer();
272 this.alignOverlay();
273 this.bindScrollListener();
274 this.bindResizeListener();
275 break;
276 case 'void':
277 this.unbindScrollListener();
278 this.unbindResizeListener();
279 this.overlay = null;
280 break;
281 }
282 }
283 onAnimationEnd(event) {
284 switch (event.toState) {
285 case 'void':
286 ZIndexUtils.clear(event.element);
287 break;
288 }
289 }
290 appendContainer() {
291 if (this.appendTo) {
292 if (this.appendTo === 'body')
293 document.body.appendChild(this.overlay);
294 else
295 document.getElementById(this.appendTo).appendChild(this.overlay);
296 }
297 }
298 alignOverlay() {
299 if (this.appendTo) {
300 this.overlay.style.minWidth = DomHandler.getOuterWidth(this.input.nativeElement) + 'px';
301 DomHandler.absolutePosition(this.overlay, this.input.nativeElement);
302 }
303 else {
304 DomHandler.relativePosition(this.overlay, this.input.nativeElement);
305 }
306 }
307 onInput(event) {
308 this.value = event.target.value;
309 this.onModelChange(this.value);
310 this.onModelTouched();
311 }
312 onInputFocus(event) {
313 this.focused = true;
314 if (this.feedback) {
315 this.overlayVisible = true;
316 }
317 this.onFocus.emit(event);
318 }
319 onInputBlur(event) {
320 this.focused = false;
321 if (this.feedback) {
322 this.overlayVisible = false;
323 }
324 this.onBlur.emit(event);
325 }
326 onKeyUp(event) {
327 if (this.feedback) {
328 let value = event.target.value;
329 this.updateUI(value);
330 if (!this.overlayVisible) {
331 this.overlayVisible = true;
332 }
333 }
334 }
335 updateUI(value) {
336 let label = null;
337 let meter = null;
338 switch (this.testStrength(value)) {
339 case 1:
340 label = this.weakText();
341 meter = {
342 strength: 'weak',
343 width: '33.33%'
344 };
345 break;
346 case 2:
347 label = this.mediumText();
348 meter = {
349 strength: 'medium',
350 width: '66.66%'
351 };
352 break;
353 case 3:
354 label = this.strongText();
355 meter = {
356 strength: 'strong',
357 width: '100%'
358 };
359 break;
360 default:
361 label = this.promptText();
362 meter = null;
363 break;
364 }
365 this.meter = meter;
366 this.infoText = label;
367 }
368 onMaskToggle() {
369 this.unmasked = !this.unmasked;
370 }
371 onOverlayClick(event) {
372 this.overlayService.add({
373 originalEvent: event,
374 target: this.el.nativeElement
375 });
376 }
377 testStrength(str) {
378 let level = 0;
379 if (this.strongCheckRegExp.test(str))
380 level = 3;
381 else if (this.mediumCheckRegExp.test(str))
382 level = 2;
383 else if (str.length)
384 level = 1;
385 return level;
386 }
387 writeValue(value) {
388 if (value === undefined)
389 this.value = null;
390 else
391 this.value = value;
392 if (this.feedback)
393 this.updateUI(this.value || "");
394 this.cd.markForCheck();
395 }
396 registerOnChange(fn) {
397 this.onModelChange = fn;
398 }
399 registerOnTouched(fn) {
400 this.onModelTouched = fn;
401 }
402 setDisabledState(val) {
403 this.disabled = val;
404 }
405 bindScrollListener() {
406 if (!this.scrollHandler) {
407 this.scrollHandler = new ConnectedOverlayScrollHandler(this.input.nativeElement, () => {
408 if (this.overlayVisible) {
409 this.overlayVisible = false;
410 }
411 });
412 }
413 this.scrollHandler.bindScrollListener();
414 }
415 bindResizeListener() {
416 if (!this.resizeListener) {
417 this.resizeListener = () => {
418 if (this.overlayVisible) {
419 this.overlayVisible = false;
420 }
421 };
422 window.addEventListener('resize', this.resizeListener);
423 }
424 }
425 unbindScrollListener() {
426 if (this.scrollHandler) {
427 this.scrollHandler.unbindScrollListener();
428 }
429 }
430 unbindResizeListener() {
431 if (this.resizeListener) {
432 window.removeEventListener('resize', this.resizeListener);
433 this.resizeListener = null;
434 }
435 }
436 unbindOutsideClickListener() {
437 if (this.outsideClickListener) {
438 document.removeEventListener('click', this.outsideClickListener);
439 this.outsideClickListener = null;
440 }
441 }
442 containerClass() {
443 return { 'p-password p-component p-inputwrapper': true,
444 'p-input-icon-right': this.toggleMask
445 };
446 }
447 inputFieldClass() {
448 return { 'p-password-input': true,
449 'p-disabled': this.disabled
450 };
451 }
452 toggleIconClass() {
453 return this.unmasked ? 'pi pi-eye-slash' : 'pi pi-eye';
454 }
455 strengthClass() {
456 return `p-password-strength ${this.meter ? this.meter.strength : ''}`;
457 }
458 filled() {
459 return (this.value != null && this.value.toString().length > 0);
460 }
461 promptText() {
462 return this.promptLabel || this.getTranslation(TranslationKeys.PASSWORD_PROMPT);
463 }
464 weakText() {
465 return this.weakLabel || this.getTranslation(TranslationKeys.WEAK);
466 }
467 mediumText() {
468 return this.mediumLabel || this.getTranslation(TranslationKeys.MEDIUM);
469 }
470 strongText() {
471 return this.strongLabel || this.getTranslation(TranslationKeys.STRONG);
472 }
473 restoreAppend() {
474 if (this.overlay && this.appendTo) {
475 if (this.appendTo === 'body')
476 document.body.removeChild(this.overlay);
477 else
478 document.getElementById(this.appendTo).removeChild(this.overlay);
479 }
480 }
481 inputType() {
482 return this.unmasked ? 'text' : 'password';
483 }
484 getTranslation(option) {
485 return this.config.getTranslation(option);
486 }
487 ngOnDestroy() {
488 if (this.overlay) {
489 ZIndexUtils.clear(this.overlay);
490 this.overlay = null;
491 }
492 this.restoreAppend();
493 this.unbindResizeListener();
494 if (this.scrollHandler) {
495 this.scrollHandler.destroy();
496 this.scrollHandler = null;
497 }
498 if (this.translationSubscription) {
499 this.translationSubscription.unsubscribe();
500 }
501 }
502}
503Password.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: Password, deps: [{ token: i0.ChangeDetectorRef }, { token: i1.PrimeNGConfig }, { token: i0.ElementRef }, { token: i1.OverlayService }], target: i0.ɵɵFactoryTarget.Component });
504Password.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.0", type: Password, selector: "p-password", inputs: { 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" }, outputs: { onFocus: "onFocus", onBlur: "onBlur" }, host: { properties: { "class.p-inputwrapper-filled": "filled()", "class.p-inputwrapper-focus": "focused" }, classAttribute: "p-element p-inputwrapper" }, providers: [Password_VALUE_ACCESSOR], queries: [{ propertyName: "templates", predicate: PrimeTemplate }], viewQueries: [{ propertyName: "input", first: true, predicate: ["input"], descendants: true }], ngImport: i0, template: `
505 <div [ngClass]="containerClass()" [ngStyle]="style" [class]="styleClass">
506 <input #input [attr.id]="inputId" pInputText [ngClass]="inputFieldClass()" [ngStyle]="inputStyle" [class]="inputStyleClass" [attr.type]="inputType()" [attr.placeholder]="placeholder" [value]="value" (input)="onInput($event)" (focus)="onInputFocus($event)"
507 (blur)="onInputBlur($event)" (keyup)="onKeyUp($event)" />
508 <i *ngIf="toggleMask" [ngClass]="toggleIconClass()" (click)="onMaskToggle()"></i>
509 <div #overlay *ngIf="overlayVisible" [ngClass]="'p-password-panel p-component'" (click)="onOverlayClick($event)"
510 [@overlayAnimation]="{value: 'visible', params: {showTransitionParams: showTransitionOptions, hideTransitionParams: hideTransitionOptions}}" (@overlayAnimation.start)="onAnimationStart($event)" (@overlayAnimation.done)="onAnimationEnd($event)">
511 <ng-container *ngTemplateOutlet="headerTemplate"></ng-container>
512 <ng-container *ngIf="contentTemplate; else content">
513 <ng-container *ngTemplateOutlet="contentTemplate"></ng-container>
514 </ng-container>
515 <ng-template #content>
516 <div class="p-password-meter">
517 <div [ngClass]="strengthClass()" [ngStyle]="{'width': meter ? meter.width : ''}"></div>
518 </div>
519 <div className="p-password-info">{{infoText}}</div>
520 </ng-template>
521 <ng-container *ngTemplateOutlet="footerTemplate"></ng-container>
522 </div>
523 </div>
524 `, isInline: true, styles: [".p-password{position:relative;display:inline-flex}.p-password-panel{position:absolute;top:0;left:0}.p-password .p-password-panel{min-width:100%}.p-password-meter{height:10px}.p-password-strength{height:100%;width:0%;transition:width 1s ease-in-out}.p-fluid .p-password{display:flex}\n"], directives: [{ type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { type: i3.InputText, selector: "[pInputText]" }, { type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], animations: [
525 trigger('overlayAnimation', [
526 transition(':enter', [
527 style({ opacity: 0, transform: 'scaleY(0.8)' }),
528 animate('{{showTransitionParams}}')
529 ]),
530 transition(':leave', [
531 animate('{{hideTransitionParams}}', style({ opacity: 0 }))
532 ])
533 ])
534 ], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
535i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: Password, decorators: [{
536 type: Component,
537 args: [{ selector: 'p-password', template: `
538 <div [ngClass]="containerClass()" [ngStyle]="style" [class]="styleClass">
539 <input #input [attr.id]="inputId" pInputText [ngClass]="inputFieldClass()" [ngStyle]="inputStyle" [class]="inputStyleClass" [attr.type]="inputType()" [attr.placeholder]="placeholder" [value]="value" (input)="onInput($event)" (focus)="onInputFocus($event)"
540 (blur)="onInputBlur($event)" (keyup)="onKeyUp($event)" />
541 <i *ngIf="toggleMask" [ngClass]="toggleIconClass()" (click)="onMaskToggle()"></i>
542 <div #overlay *ngIf="overlayVisible" [ngClass]="'p-password-panel p-component'" (click)="onOverlayClick($event)"
543 [@overlayAnimation]="{value: 'visible', params: {showTransitionParams: showTransitionOptions, hideTransitionParams: hideTransitionOptions}}" (@overlayAnimation.start)="onAnimationStart($event)" (@overlayAnimation.done)="onAnimationEnd($event)">
544 <ng-container *ngTemplateOutlet="headerTemplate"></ng-container>
545 <ng-container *ngIf="contentTemplate; else content">
546 <ng-container *ngTemplateOutlet="contentTemplate"></ng-container>
547 </ng-container>
548 <ng-template #content>
549 <div class="p-password-meter">
550 <div [ngClass]="strengthClass()" [ngStyle]="{'width': meter ? meter.width : ''}"></div>
551 </div>
552 <div className="p-password-info">{{infoText}}</div>
553 </ng-template>
554 <ng-container *ngTemplateOutlet="footerTemplate"></ng-container>
555 </div>
556 </div>
557 `, animations: [
558 trigger('overlayAnimation', [
559 transition(':enter', [
560 style({ opacity: 0, transform: 'scaleY(0.8)' }),
561 animate('{{showTransitionParams}}')
562 ]),
563 transition(':leave', [
564 animate('{{hideTransitionParams}}', style({ opacity: 0 }))
565 ])
566 ])
567 ], host: {
568 'class': 'p-element p-inputwrapper',
569 '[class.p-inputwrapper-filled]': 'filled()',
570 '[class.p-inputwrapper-focus]': 'focused'
571 }, providers: [Password_VALUE_ACCESSOR], changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, styles: [".p-password{position:relative;display:inline-flex}.p-password-panel{position:absolute;top:0;left:0}.p-password .p-password-panel{min-width:100%}.p-password-meter{height:10px}.p-password-strength{height:100%;width:0%;transition:width 1s ease-in-out}.p-fluid .p-password{display:flex}\n"] }]
572 }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i1.PrimeNGConfig }, { type: i0.ElementRef }, { type: i1.OverlayService }]; }, propDecorators: { disabled: [{
573 type: Input
574 }], promptLabel: [{
575 type: Input
576 }], mediumRegex: [{
577 type: Input
578 }], strongRegex: [{
579 type: Input
580 }], weakLabel: [{
581 type: Input
582 }], mediumLabel: [{
583 type: Input
584 }], strongLabel: [{
585 type: Input
586 }], inputId: [{
587 type: Input
588 }], feedback: [{
589 type: Input
590 }], appendTo: [{
591 type: Input
592 }], toggleMask: [{
593 type: Input
594 }], inputStyleClass: [{
595 type: Input
596 }], styleClass: [{
597 type: Input
598 }], style: [{
599 type: Input
600 }], inputStyle: [{
601 type: Input
602 }], showTransitionOptions: [{
603 type: Input
604 }], hideTransitionOptions: [{
605 type: Input
606 }], placeholder: [{
607 type: Input
608 }], input: [{
609 type: ViewChild,
610 args: ['input']
611 }], onFocus: [{
612 type: Output
613 }], onBlur: [{
614 type: Output
615 }], templates: [{
616 type: ContentChildren,
617 args: [PrimeTemplate]
618 }] } });
619export class PasswordModule {
620}
621PasswordModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: PasswordModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
622PasswordModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: PasswordModule, declarations: [PasswordDirective, Password], imports: [CommonModule, InputTextModule], exports: [PasswordDirective, Password, SharedModule] });
623PasswordModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: PasswordModule, imports: [[CommonModule, InputTextModule], SharedModule] });
624i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: PasswordModule, decorators: [{
625 type: NgModule,
626 args: [{
627 imports: [CommonModule, InputTextModule],
628 exports: [PasswordDirective, Password, SharedModule],
629 declarations: [PasswordDirective, Password]
630 }]
631 }] });
632//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGFzc3dvcmQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi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MucGFuZWwuYXBwZW5kQ2hpbGQodGhpcy5tZXRlcik7XG4gICAgICAgIHRoaXMucGFuZWwuYXBwZW5kQ2hpbGQodGhpcy5pbmZvKTtcbiAgICAgICAgdGhpcy5wYW5lbC5zdHlsZS5taW5XaWR0aCA9IERvbUhhbmRsZXIuZ2V0T3V0ZXJXaWR0aCh0aGlzLmVsLm5hdGl2ZUVsZW1lbnQpICsgJ3B4JztcbiAgICAgICAgZG9jdW1lbnQuYm9keS5hcHBlbmRDaGlsZCh0aGlzLnBhbmVsKTtcbiAgICB9XG5cbiAgICBzaG93T3ZlcmxheSgpIHtcbiAgICAgICAgaWYgKHRoaXMuZmVlZGJhY2spIHtcbiAgICAgICAgICAgIGlmICghdGhpcy5wYW5lbCkge1xuICAgICAgICAgICAgICAgIHRoaXMuY3JlYXRlUGFuZWwoKTtcbiAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgdGhpcy5wYW5lbC5zdHlsZS56SW5kZXggPSBTdHJpbmcoKytEb21IYW5kbGVyLnppbmRleCk7XG4gICAgICAgICAgICB0aGlzLnBhbmVsLnN0eWxlLmRpc3BsYXkgPSAnYmxvY2snO1xuICAgICAgICAgICAgdGhpcy56b25lLnJ1bk91dHNpZGVBbmd1bGFyKCgpID0+IHtcblxuICAgICAgICAgICAgICAgIHNldFRpbWVvdXQoKCkgPT4ge1xuICAgICAgICAgICAgICAgICAgICBEb21IYW5kbGVyLmFkZENsYXNzKHRoaXMucGFuZWwsICdwLWNvbm5lY3RlZC1vdmVybGF5LXZpc2libGUnKTtcbiAgICAgICAgICAgICAgICAgICAgdGhpcy5iaW5kU2Nyb2xsTGlzdGVuZXIoKTtcbiAgICAgICAgICAgICAgICAgICAgdGhpcy5iaW5kRG9jdW1lbnRSZXNpemVMaXN0ZW5lcigpO1xuICAgICAgICAgICAgICAgIH0sIDEpO1xuICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICBEb21IYW5kbGVyLmFic29sdXRlUG9zaXRpb24odGhpcy5wYW5lbCwgdGhpcy5lbC5uYXRpdmVFbGVtZW50KTtcbiAgICAgICAgfVxuICAgIH1cblxuICAgIGhpZGVPdmVybGF5KCkge1xuICAgICAgICBpZiAodGhpcy5mZWVkYmFjayAmJiB0aGlzLnBhbmVsKSB7XG4gICAgICAgICAgICBEb21IYW5kbGVyLmFkZENsYXNzKHRoaXMucGFuZWwsICdwLWNvbm5lY3RlZC1vdmVybGF5LWhpZGRlbicpO1xuICAgICAgICAgICAgRG9tSGFuZGxlci5yZW1vdmVDbGFzcyh0aGlzLnBhbmVsLCAncC1jb25uZWN0ZWQtb3ZlcmxheS12aXNpYmxlJyk7XG4gICAgICAgICAgICB0aGlzLnVuYmluZFNjcm9sbExpc3RlbmVyKCk7XG4gICAgICAgICAgICB0aGlzLnVuYmluZERvY3VtZW50UmVzaXplTGlzdGVuZXIoKTtcblxuICAgICAgICAgICAgdGhpcy56b25lLnJ1bk91dHNpZGVBbmd1bGFyKCgpID0+IHtcbiAgICAgICAgICAgICAgICBzZXRUaW1lb3V0KCgpID0+IHtcbiAgICAgICAgICAgICAgICAgICAgdGhpcy5uZ09uRGVzdHJveSgpO1xuICAgICAgICAgICAgICAgIH0sIDE1MCk7XG4gICAgICAgICAgICB9KTtcbiAgICAgICAgfVxuICAgIH1cblxuICAgIEBIb3N0TGlzdGVuZXIoJ2ZvY3VzJylcbiAgICBvbkZvY3VzKCkge1xuICAgICAgICB0aGlzLnNob3dPdmVybGF5KCk7XG4gICAgfVxuXG4gICAgQEhvc3RMaXN0ZW5lcignYmx1cicpXG4gICAgb25CbHVyKCkge1xuICAgICAgICB0aGlzLmhpZGVPdmVybGF5KCk7XG4gICAgfVxuXG4gICAgQEhvc3RMaXN0ZW5lcigna2V5dXAnLCBbJyRldmVudCddKVxuICAgIG9uS2V5dXAoZSkge1xuICAgICAgICBpZiAodGhpcy5mZWVkYmFjaykge1xuICAgICAgICAgICAgbGV0IHZhbHVlID0gZS50YXJnZXQudmFsdWUsXG4gICAgICAgICAgICBsYWJlbCA9IG51bGwsXG4gICAgICAgICAgICBtZXRlclBvcyA9IG51bGw7XG5cbiAgICAgICAgICAgIGlmICh2YWx1ZS5sZW5ndGggPT09IDApIHtcbiAgICAgICAgICAgICAgICBsYWJlbCA9IHRoaXMucHJvbXB0TGFiZWw7XG4gICAgICAgICAgICAgICAgbWV0ZXJQb3MgPSAnMHB4IDBweCc7XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICBlbHNlIHtcbiAgICAgICAgICAgICAgICB2YXIgc2NvcmUgPSB0aGlzLnRlc3RTdHJlbmd0aCh2YWx1ZSk7XG5cbiAgICAgICAgICAgICAgICBpZiAoc2NvcmUgPCAzMCkge1xuICAgICAgICAgICAgICAgICAgICBsYWJlbCA9IHRoaXMud2Vha0xhYmVsO1xuICAgICAgICAgICAgICAgICAgICBtZXRlclBvcyA9ICcwcHggLTEwcHgnO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICBlbHNlIGlmIChzY29yZSA+PSAzMCAmJiBzY29yZSA8IDgwKSB7XG4gICAgICAgICAgICAgICAgICAgIGxhYmVsID0gdGhpcy5tZWRpdW1MYWJlbDtcbiAgICAgICAgICAgICAgICAgICAgbWV0ZXJQb3MgPSAnMHB4IC0yMHB4JztcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgZWxzZSBpZiAoc2NvcmUgPj0gODApIHtcbiAgICAgICAgICAgICAgICAgICAgbGFiZWwgPSB0aGlzLnN0cm9uZ0xhYmVsO1xuICAgICAgICAgICAgICAgICAgICBtZXRlclBvcyA9ICcwcHggLTMwcHgnO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgaWYgKCF0aGlzLnBhbmVsIHx8ICFEb21IYW5kbGVyLmhhc0NsYXNzKHRoaXMucGFuZWwsICdwLWNvbm5lY3RlZC1vdmVybGF5LXZpc2libGUnKSkge1xuICAgICAgICAgICAgICAgIHRoaXMuc2hvd092ZXJsYXko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ICAgICAgICAgICAgYnJlYWs7XG5cbiAgICAgICAgICAgICAgICBkZWZhdWx0OlxuICAgICAgICAgICAgICAgICAgICB0aGlzLmNvbnRlbnRUZW1wbGF0ZSA9IGl0ZW0udGVtcGxhdGU7XG4gICAgICAgICAgICAgICAgYnJlYWs7XG4gICAgICAgICAgICB9XG4gICAgICAgIH0pO1xuICAgIH1cblxuICAgIG5nT25Jbml0KCkge1xuICAgICAgICB0aGlzLmluZm9UZXh0ID0gdGhpcy5wcm9tcHRUZXh0KCk7XG4gICAgICAgIHRoaXMubWVkaXVtQ2hlY2tSZWdFeHAgPSBuZXcgUmVnRXhwKHRoaXMubWVkaXVtUmVnZXgpO1xuICAgICAgICB0aGlzLnN0cm9uZ0NoZWNrUmVnRXhwID0gbmV3IFJlZ0V4cCh0aGlzLnN0cm9uZ1JlZ2V4KTtcbiAgICAgICAgdGhpcy50cmFuc2xhdGlvblN1YnNjcmlwdGlvbiA9IHRoaXMuY29uZmlnLnRyYW5zbGF0aW9uT2JzZXJ2ZXIuc3Vic2NyaWJlKCgpID0+IHtcbiAgICAgICAgICAgIHRoaXMudXBkYXRlVUkodGhpcy52YWx1ZSB8fCBcIlwiKTtcbiAgICAgICAgfSk7XG4gICAgfVxuXG4gICAgb25BbmltYXRpb25TdGFydChldmVudCkge1xuICAgICAgICBzd2l0Y2goZXZlbnQudG9TdGF0ZSkge1xuICAgICAgICAgICAgY2FzZSAndmlzaWJsZSc6XG4gICAgICAgICAgICAgICAgdGhpcy5vdmVybGF5ID0gZXZlbnQuZWxlbWVudDtcbiAgICAgICAgICAgICAgICBaSW5kZXhVdGlscy5zZXQoJ292ZXJsYXknLCB0aGlzLm92ZXJsYXksIHRoaXMuY29uZmlnLnpJbmRleC5vdmVybGF5KTtcbiAgICAgICAgICAgICAgICB0aGlzLmFwcGVuZENvbnRhaW5lcigpO1xuICAgICAgICAgICAgICAgIHRoaXMuYWxpZ25PdmVybGF5KCk7XG4gICAgICAgICAgICAgICAgdGhpcy5iaW5kU2Nyb2xsTGlzdGVuZXIoKTtcbiAgICAgICAgICAgICAgICB0aGlzLmJpbmRSZXNpemVMaXN0ZW5lcigpO1xuICAgICAgICAgICAgYnJlYWs7XG5cbiAgICAgICAgICAgIGNhc2UgJ3ZvaWQnOlxuICAgICAgICAgICAgICAgIHRoaXMudW5iaW5kU2Nyb2xsTGlzdGVuZXIoKTtcbiAgICAgICAgICAgICAgICB0aGlzLnVuYmluZFJlc2l6ZUxpc3RlbmVyKCk7XG4gICAgICAgICAgICAgICAgdGhpcy5vdmVybGF5ID0gbnVsbDtcbiAgICAgICAgICAgIGJyZWFrO1xuICAgICAgICB9XG4gICAgfVxuXG4gICAgb25BbmltYXRpb25FbmQoZXZlbnQpIHtcbiAgICAgICAgc3dpdGNoKGV2ZW50LnRvU3RhdGUpIHtcbiAgICAgICAgICAgIGNhc2UgJ3ZvaWQnOlxuICAgICAgICAgICAgICAgIFpJbmRleFV0aWxzLmNsZWFyKGV2ZW50LmVsZW1lbnQpO1xuICAgICAgICAgICAgYnJlYWs7XG4gICAgICAgIH1cbiAgICB9XG5cbiAgICBhcHBlbmRDb250YWluZXIoKSB7XG4gICAgICAgIGlmICh0aGlzLmFwcGVuZFRvKSB7XG4gICAgICAgICAgICBpZiAodGhpcy5hcHBlbmRUbyA9PT0gJ2JvZHknKVxuICAgICAgICAgICAgICAgIGRvY3VtZW50LmJvZHkuYXBwZW5kQ2hpbGQodGhpcy5vdmVybGF5KTtcbiAgICAgICAgICAgIGVsc2VcbiAgICAgICAgICAgICAgICBkb2N1bWVudC5nZXRFbGVtZW50QnlJZCh0aGlzLmFwcGVuZFRvKS5hcHBlbmRDaGlsZCh0aGlzLm92ZXJsYXkpO1xuICAgICAgICB9XG4gICAgfVxuXG4gICAgYWxpZ25PdmVybGF5KCkge1xuICAgICAgICBpZiAodGhpcy5hcHBlbmRUbykge1xuICAgICAgICAgICAgdGhpcy5vdmVybGF5LnN0eWxlLm1pbldpZHRoID0gRG9tSGFuZGxlci5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iYWNrKSB7XG4gICAgICAgICAgICBsZXQgdmFsdWUgPSBldmVudC50YXJnZXQudmFsdWU7XG4gICAgICAgICAgICB0aGlzLnVwZGF0ZVVJKHZhbHVlKTtcblxuICAgICAgICAgICAgaWYgKCF0aGlzLm92ZXJsYXlWaXNpYmxlKSB7XG4gICAgICAgICAgICAgICAgdGhpcy5vdmVybGF5VmlzaWJsZSA9IHRydWU7XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICB9XG5cbiAgICB1cGRhdGVVSSh2YWx1ZSkge1xuICAgICAgICBsZXQgbGFiZWwgPSBudWxsO1xuICAgICAgICBsZXQgbWV0ZXIgPSBudWxsO1xuXG4gICAgICAgIHN3aXRjaCAodGhpcy50ZXN0U3RyZW5ndGgodmFsdWUpKSB7XG4gICAgICAgICAgICBjYXNlIDE6XG4gICAgICAgICAgICAgICAgbGFiZWwgPSB0aGlzLndlYWtUZXh0KCk7XG4gICAgICAgICAgICAgICAgbWV0ZXIgPSB7XG4gICAgICAgICAgICAgICAgICAgIHN0cmVuZ3RoOiAnd2VhaycsXG4gICAgICAgICAgICAgICAgICAgIHdpZHRoOiAnMzMuMzMlJ1xuICAgICAgICAgICAgICAgIH07XG4gICAgICAgICAgICAgICAgYnJlYWs7XG5cbiAgICAgICAgICAgIGNhc2UgMjpcbiAgICAgICAgICAgICAgICBsYWJlbCA9IHRoaXMubWVkaXVtVGV4dCgpO1xuICAgICAgICAgICAgICAgIG1ldGVyID0ge1xuICAgICAgICAgICAgICAgICAgICBzdHJlbmd0aDogJ21lZGl1bScsXG4gICAgICAgICAgICAgICAgICAgIHdpZHRoOiAnNjYuNjYlJ1xuICAgICAgICAgICAgICAgIH07XG4gICAgICAgICAgICAgICAgYnJlYWs7XG5cbiAgICAgICAgICAgIGNhc2UgMzpcbiAgICAgICAgICAgICAgICBsYWJlbCA9IHRoaXMuc3Ryb25nVGV4dCgpO1xuICAgICAgICAgICAgICAgIG1ldGVyID0ge1xuICAgICAgICAgICAgICAgICAgICBzdHJlbmd0aDogJ3N0cm9uZycsXG4gICAgICAgICAgICAgICAgICAgIHdpZHRoOiAnMTAwJSdcbiAgICAgICAgICAgICAgICB9O1xuICAgICAgICAgICAgICAgIGJyZWFrO1xuXG4gICAgICAgICAgICBkZWZhdWx0OlxuICAgICAgICAgICAgICAgIGxhYmVsID0gdGhpcy5wcm9tcHRUZXh0KCk7XG4gICAgICAgICAgICAgICAgbWV0ZXIgPSBudWxsO1xuICAgICAgICAgICAgICAgIGJyZWFrO1xuICAgICAgICB9XG5cbiAgICAgICAgdGhpcy5tZXRlciA9IG1ldGVyO1xuICAgICAgICB0aGlzLmluZm9UZXh0ID0gbGFiZWw7XG4gICAgfVxuXG4gICAgb25NYXNrVG9nZ2xlKCkge1xuICAgICAgICB0aGlzLnVubWFza2VkID0gIXRoaXMudW5tYXNrZWQ7XG4gICAgfVxuXG4gICAgb25PdmVybGF5Q2xpY2soZXZlbnQpIHtcbiAgICAgICAgdGhpcy5vdmVybGF5U2VydmljZS5hZGQoe1xuICAgICAgICAgICAgb3JpZ2luYWxFdmVudDogZXZlbnQsXG4gICAgICAgICAgICB0YXJnZXQ6IHRoaXMuZWwubmF0aXZlRWxlbWVudFxuICAgICAgICB9KTtcbiAgICB9XG5cbiAgICB0ZXN0U3RyZW5ndGgoc3RyKSB7XG4gICAgICAgIGxldCBsZXZlbCA9IDA7XG5cbiAgICAgICAgaWYgKHRoaXMuc3Ryb25nQ2hlY2tSZWdFeHAudGVzdChzdHIpKVxuICAgICAgICAgICAgbGV2ZWwgPSAzO1xuICAgICAgICBlbHNlIGlmICh0aGlzLm1lZGl1bUNoZWNrUmVnRXhwLnRlc3Qoc3RyKSlcbiAgICAgICAgICAgIGxldmVsID0gMjtcbiAgICAgICAgZWxzZSBpZiAoc3RyLmxlbmd0aClcbiAgICAgICAgICAgIGxldmVsID0gMTtcblxuICAgICAgICByZXR1cm4gbGV2ZWw7XG4gICAgfVxuXG4gICAgd3JpdGVWYWx1ZSh2YWx1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5kZXhVdGlscy5jbGVhcih0aGlzLm92ZXJsYXkpO1xuICAgICAgICAgICAgdGhpcy5vdmVybGF5ID0gbnVsbDtcbiAgICAgICAgfVxuXG4gICAgICAgIHRoaXMucmVzdG9yZUFwcGVuZCgpO1xuICAgICAgICB0aGlzLnVuYmluZFJlc2l6ZUxpc3RlbmVyKCk7XG5cbiAgICAgICAgaWYgKHRoaXMuc2Nyb2xsSGFuZGxlcikge1xuICAgICAgICAgICAgdGhpcy5zY3JvbGxIYW5kbGVyLmRlc3Ryb3koKTtcbiAgICAgICAgICAgIHRoaXMuc2Nyb2xsSGFuZGxlciA9IG51bGw7XG4gICAgICAgIH1cblxuICAgICAgICBpZiAodGhpcy50cmFuc2xhdGlvblN1YnNjcmlwdGlvbikge1xuICAgICAgICAgICAgdGhpcy50cmFuc2xhdGlvblN1YnNjcmlwdGlvbi51bnN1YnNjcmliZSgpO1xuICAgICAgICB9XG4gICAgfVxufVxuXG5ATmdNb2R1bGUoe1xuICAgIGltcG9ydHM6IFtDb21tb25Nb2R1bGUsIElucHV0VGV4dE1vZHVsZV0sXG4gICAgZXhwb3J0czogW1Bhc3N3b3JkRGlyZWN0aXZlLCBQYXNzd29yZCwgU2hhcmVkTW9kdWxlXSxcbiAgICBkZWNsYXJhdGlvbnM6IFtQYXNzd29yZERpcmVjdGl2ZSwgUGFzc3dvcmRdXG59KVxuZXhwb3J0IGNsYXNzIFBhc3N3b3JkTW9kdWxlIHsgfVxuIl19
Note: See TracBrowser for help on using the repository browser.