@firestitch/2fa 15.0.0 → 15.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/app/enums/index.d.ts +1 -1
- package/app/enums/verification-method-type.enum.d.ts +5 -5
- package/app/interfaces/index.d.ts +1 -1
- package/app/interfaces/verification-method.interface.d.ts +11 -11
- package/app/modules/code-input/code-input.module.d.ts +11 -11
- package/app/modules/code-input/components/code-input/code-input.component.d.ts +15 -15
- package/app/modules/code-input/components/code-input/index.d.ts +1 -1
- package/app/modules/code-input/index.d.ts +1 -1
- package/app/modules/defaulted/components/defaulted/defaulted.component.d.ts +5 -5
- package/app/modules/defaulted/components/defaulted/index.d.ts +1 -1
- package/app/modules/defaulted/defaulted.module.d.ts +7 -7
- package/app/modules/manage/components/2fa-manage/2fa-manage.component.d.ts +30 -30
- package/app/modules/manage/components/2fa-manage/index.d.ts +1 -1
- package/app/modules/manage/components/app/app.component.d.ts +32 -32
- package/app/modules/manage/components/app/index.d.ts +1 -1
- package/app/modules/manage/components/email/email.component.d.ts +27 -27
- package/app/modules/manage/components/email/index.d.ts +1 -1
- package/app/modules/manage/components/emails/emails.component.d.ts +19 -19
- package/app/modules/manage/components/emails/index.d.ts +1 -1
- package/app/modules/manage/components/manage-methods/index.d.ts +1 -1
- package/app/modules/manage/components/manage-methods/manage-methods.component.d.ts +35 -35
- package/app/modules/manage/components/number/index.d.ts +1 -1
- package/app/modules/manage/components/number/number.component.d.ts +28 -28
- package/app/modules/manage/components/numbers/index.d.ts +1 -1
- package/app/modules/manage/components/numbers/numbers.component.d.ts +20 -20
- package/app/modules/manage/fs-2f-manage.module.d.ts +33 -33
- package/app/modules/manage/services/index.d.ts +1 -1
- package/app/modules/manage/services/two-factor-manage.service.d.ts +52 -52
- package/app/modules/resend/components/resend/index.d.ts +1 -1
- package/app/modules/resend/components/resend/resend.component.d.ts +14 -14
- package/app/modules/resend/resend.module.d.ts +9 -9
- package/app/modules/verification/components/2fa-verification/2fa-verification.component.d.ts +39 -39
- package/app/modules/verification/components/2fa-verification-code/2fa-verification-code.component.d.ts +22 -22
- package/app/modules/verification/components/2fa-verification-methods/2fa-verification-methods.component.d.ts +22 -22
- package/app/modules/verification/directives/2fa-verification-resend.directive.d.ts +11 -11
- package/app/modules/verification/directives/index.d.ts +1 -1
- package/app/modules/verification/fs-2fa-verification.module.d.ts +25 -25
- package/app/modules/verification-methods/components/verification-methods/index.d.ts +1 -1
- package/app/modules/verification-methods/components/verification-methods/verification-methods.component.d.ts +26 -26
- package/app/modules/verification-methods/fs-2f-verification-methods.module.d.ts +14 -14
- package/app/modules/verification-methods/index.d.ts +1 -1
- package/esm2020/app/enums/index.mjs +1 -1
- package/esm2020/app/enums/verification-method-type.enum.mjs +6 -6
- package/esm2020/app/interfaces/index.mjs +1 -1
- package/esm2020/app/interfaces/verification-method.interface.mjs +1 -1
- package/esm2020/app/modules/code-input/code-input.module.mjs +35 -35
- package/esm2020/app/modules/code-input/components/code-input/code-input.component.mjs +39 -39
- package/esm2020/app/modules/code-input/components/code-input/index.mjs +1 -1
- package/esm2020/app/modules/code-input/index.mjs +1 -1
- package/esm2020/app/modules/defaulted/components/defaulted/defaulted.component.mjs +10 -10
- package/esm2020/app/modules/defaulted/components/defaulted/index.mjs +1 -1
- package/esm2020/app/modules/defaulted/defaulted.module.mjs +17 -17
- package/esm2020/app/modules/manage/components/2fa-manage/2fa-manage.component.mjs +97 -97
- package/esm2020/app/modules/manage/components/2fa-manage/index.mjs +1 -1
- package/esm2020/app/modules/manage/components/app/app.component.mjs +83 -83
- package/esm2020/app/modules/manage/components/app/index.mjs +1 -1
- package/esm2020/app/modules/manage/components/email/email.component.mjs +82 -82
- package/esm2020/app/modules/manage/components/email/index.mjs +1 -1
- package/esm2020/app/modules/manage/components/emails/emails.component.mjs +46 -46
- package/esm2020/app/modules/manage/components/emails/index.mjs +1 -1
- package/esm2020/app/modules/manage/components/manage-methods/index.mjs +1 -1
- package/esm2020/app/modules/manage/components/manage-methods/manage-methods.component.mjs +124 -124
- package/esm2020/app/modules/manage/components/number/index.mjs +1 -1
- package/esm2020/app/modules/manage/components/number/number.component.mjs +86 -86
- package/esm2020/app/modules/manage/components/numbers/index.mjs +1 -1
- package/esm2020/app/modules/manage/components/numbers/numbers.component.mjs +47 -47
- package/esm2020/app/modules/manage/fs-2f-manage.module.mjs +115 -115
- package/esm2020/app/modules/manage/services/index.mjs +1 -1
- package/esm2020/app/modules/manage/services/two-factor-manage.service.mjs +160 -160
- package/esm2020/app/modules/resend/components/resend/index.mjs +1 -1
- package/esm2020/app/modules/resend/components/resend/resend.component.mjs +34 -34
- package/esm2020/app/modules/resend/resend.module.mjs +27 -27
- package/esm2020/app/modules/verification/components/2fa-verification/2fa-verification.component.mjs +120 -120
- package/esm2020/app/modules/verification/components/2fa-verification-code/2fa-verification-code.component.mjs +59 -59
- package/esm2020/app/modules/verification/components/2fa-verification-methods/2fa-verification-methods.component.mjs +55 -55
- package/esm2020/app/modules/verification/directives/2fa-verification-resend.directive.mjs +31 -31
- package/esm2020/app/modules/verification/directives/index.mjs +1 -1
- package/esm2020/app/modules/verification/fs-2fa-verification.module.mjs +94 -94
- package/esm2020/app/modules/verification-methods/components/verification-methods/index.mjs +1 -1
- package/esm2020/app/modules/verification-methods/components/verification-methods/verification-methods.component.mjs +116 -116
- package/esm2020/app/modules/verification-methods/fs-2f-verification-methods.module.mjs +45 -45
- package/esm2020/app/modules/verification-methods/index.mjs +1 -1
- package/esm2020/firestitch-2fa.mjs +4 -4
- package/esm2020/public_api.mjs +8 -8
- package/fesm2015/firestitch-2fa.mjs +1248 -1248
- package/fesm2020/firestitch-2fa.mjs +1234 -1234
- package/index.d.ts +5 -5
- package/package.json +1 -1
- package/public_api.d.ts +9 -9
package/esm2020/app/modules/verification/components/2fa-verification/2fa-verification.component.mjs
CHANGED
|
@@ -1,121 +1,121 @@
|
|
|
1
|
-
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, EventEmitter, Input, Output, ViewChild, } from '@angular/core';
|
|
2
|
-
import { ControlContainer, NgForm } from '@angular/forms';
|
|
3
|
-
import { FsDialog } from '@firestitch/dialog';
|
|
4
|
-
import { FsMessage } from '@firestitch/message';
|
|
5
|
-
import { Subject } from 'rxjs';
|
|
6
|
-
import { filter, finalize, switchMap, tap } from 'rxjs/operators';
|
|
7
|
-
import { VerificationMethodType } from '../../../../enums/verification-method-type.enum';
|
|
8
|
-
import { Fs2faVerificationCodeComponent } from '../2fa-verification-code/2fa-verification-code.component';
|
|
9
|
-
import { Fs2faVerificationMethodsComponent } from '../2fa-verification-methods/2fa-verification-methods.component';
|
|
10
|
-
import * as i0 from "@angular/core";
|
|
11
|
-
import * as i1 from "@firestitch/dialog";
|
|
12
|
-
import * as i2 from "@firestitch/message";
|
|
13
|
-
import * as i3 from "@angular/common";
|
|
14
|
-
import * as i4 from "@angular/forms";
|
|
15
|
-
import * as i5 from "@angular/material/checkbox";
|
|
16
|
-
import * as i6 from "@firestitch/form";
|
|
17
|
-
import * as i7 from "../2fa-verification-code/2fa-verification-code.component";
|
|
18
|
-
import * as i8 from "@firestitch/phone";
|
|
19
|
-
export class Fs2faVerificationComponent {
|
|
20
|
-
constructor(_cdRef, _dialog, _message) {
|
|
21
|
-
this._cdRef = _cdRef;
|
|
22
|
-
this._dialog = _dialog;
|
|
23
|
-
this._message = _message;
|
|
24
|
-
this.showTrustedDevice = true;
|
|
25
|
-
this.trustDevice = true;
|
|
26
|
-
this.formatRecipient = false;
|
|
27
|
-
this.verified = new EventEmitter();
|
|
28
|
-
this.codeChanged = new EventEmitter();
|
|
29
|
-
this.codeCompleted = new EventEmitter();
|
|
30
|
-
this.trustDeviceChange = new EventEmitter();
|
|
31
|
-
this.code = '';
|
|
32
|
-
this.VerificationMethodType = VerificationMethodType;
|
|
33
|
-
this._destroy$ = new Subject();
|
|
34
|
-
}
|
|
35
|
-
get recipient() {
|
|
36
|
-
if (this.verificationMethod.type === VerificationMethodType.Email) {
|
|
37
|
-
return this.verificationMethod.email;
|
|
38
|
-
}
|
|
39
|
-
if (this.verificationMethod.type === VerificationMethodType.Sms) {
|
|
40
|
-
return this.verificationMethod.phoneNumber;
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
codeComplete(code) {
|
|
44
|
-
this.code = code;
|
|
45
|
-
this.codeCompleted.emit(this.code);
|
|
46
|
-
}
|
|
47
|
-
ngOnDestroy() {
|
|
48
|
-
this._destroy$.next();
|
|
49
|
-
this._destroy$.complete();
|
|
50
|
-
}
|
|
51
|
-
ngAfterViewInit() {
|
|
52
|
-
this.verificationCodeComponent.focus();
|
|
53
|
-
}
|
|
54
|
-
resendCode() {
|
|
55
|
-
return this.resend()
|
|
56
|
-
.pipe(tap(() => {
|
|
57
|
-
this.code = '';
|
|
58
|
-
this._message.success('Resent Code');
|
|
59
|
-
}), finalize(() => {
|
|
60
|
-
this.verificationCodeComponent.focus();
|
|
61
|
-
}));
|
|
62
|
-
}
|
|
63
|
-
showVerificationMethods() {
|
|
64
|
-
this.getVerificationMethods()
|
|
65
|
-
.pipe(switchMap((verificationMethods) => {
|
|
66
|
-
return this._dialog.open(Fs2faVerificationMethodsComponent, {
|
|
67
|
-
data: {
|
|
68
|
-
verificationMethod: this.verificationMethod,
|
|
69
|
-
verificationMethods,
|
|
70
|
-
selectVerificationMethod: this.selectVerificationMethod,
|
|
71
|
-
},
|
|
72
|
-
})
|
|
73
|
-
.afterClosed()
|
|
74
|
-
.pipe(filter((verificationMethod) => !!verificationMethod));
|
|
75
|
-
}))
|
|
76
|
-
.subscribe((verificationMethod) => {
|
|
77
|
-
this.verificationMethod = verificationMethod;
|
|
78
|
-
this.code = '';
|
|
79
|
-
this._cdRef.markForCheck();
|
|
80
|
-
setTimeout(() => {
|
|
81
|
-
this.verificationCodeComponent.focus();
|
|
82
|
-
});
|
|
83
|
-
});
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
Fs2faVerificationComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: Fs2faVerificationComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i1.FsDialog }, { token: i2.FsMessage }], target: i0.ɵɵFactoryTarget.Component });
|
|
87
|
-
Fs2faVerificationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: Fs2faVerificationComponent, selector: "fs-2fa-verification", inputs: { verificationMethod: "verificationMethod", resend: "resend", showTrustedDevice: "showTrustedDevice", trustDevice: "trustDevice", codeLength: "codeLength", trustDays: "trustDays", formatRecipient: "formatRecipient", getVerificationMethods: "getVerificationMethods", selectVerificationMethod: "selectVerificationMethod" }, outputs: { verified: "verified", codeChanged: "codeChanged", codeCompleted: "codeCompleted", trustDeviceChange: "trustDeviceChange" }, viewQueries: [{ propertyName: "verificationCodeComponent", first: true, predicate: Fs2faVerificationCodeComponent, descendants: true }], ngImport: i0, template: "<div class=\"code-container\">\n <fs-2fa-verification-code\n [recipient]=\"(formatRecipient && verificationMethod.type === VerificationMethodType.Sms) ? (recipient | fsPhone) : recipient\"\n [type]=\"verificationMethod.type\"\n [code]=\"code\"\n [codeLength]=\"codeLength\"\n (codeChanged)=\"codeChanged.emit($event)\"\n (codeCompleted)=\"codeComplete($event)\">\n </fs-2fa-verification-code>\n</div>\n\n<div class=\"additional\">\n <div \n class=\"trust-device\"\n *ngIf=\"showTrustedDevice\">\n <mat-checkbox\n name=\"trust-device\"\n [(ngModel)]=\"trustDevice\"\n (ngModelChange)=\"trustDeviceChange.emit($event)\">\n <div class=\"small\">\n Bypass verification \n <ng-container *ngIf=\"trustDays\">for {{trustDays}} days</ng-container> \n <ng-container *ngIf=\"!trustDays\">for future signins</ng-container> \n unless cookies are cleared\n </div>\n </mat-checkbox>\n </div>\n</div>", styles: [":host ::ng-deep .mat-checkbox{margin:2px 0}:host ::ng-deep .mat-checkbox .mat-checkbox-label{line-height:normal}:host ::ng-deep .mat-checkbox .mat-checkbox-layout{white-space:normal}.code-container{text-align:center}.additional{display:flex;justify-content:space-between;align-items:center;margin:4px 0 5px}.additional small{color:inherit}.additional .resend{cursor:pointer;text-transform:none}.additional .resend mat-spinner{display:inline-block;vertical-align:middle}\n"], dependencies: [{ kind: "directive", type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i4.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i5.MatCheckbox, selector: "mat-checkbox", inputs: ["disableRipple", "color", "tabIndex"], exportAs: ["matCheckbox"] }, { kind: "directive", type: i6.FsFormNoFsValidatorsDirective, selector: "[ngModel]:not([required]):not([fsFormRequired]):not([fsFormCompare]):not([fsFormDateRange]):not([fsFormEmail]):not([fsFormEmails]):not([fsFormFunction]):not([fsFormGreater]):not([fsFormGreaterEqual]):not([fsFormInteger]):not([fsFormLesser]):not([fsFormMax]):not([fsFormMaxLength]):not([fsFormMin]):not([fsFormMinLength]):not([fsFormNumeric]):not([fsFormPattern]):not([fsFormPhone]):not([fsFormUrl]):not([validate])" }, { kind: "component", type: i7.Fs2faVerificationCodeComponent, selector: "fs-2fa-verification-code", inputs: ["type", "recipient", "codeLength", "code"], outputs: ["codeChanged", "codeCompleted"] }, { kind: "pipe", type: i8.FsPhonePipe, name: "fsPhone" }], viewProviders: [{ provide: ControlContainer, useExisting: NgForm }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
88
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: Fs2faVerificationComponent, decorators: [{
|
|
89
|
-
type: Component,
|
|
90
|
-
args: [{ selector: 'fs-2fa-verification', changeDetection: ChangeDetectionStrategy.OnPush, viewProviders: [{ provide: ControlContainer, useExisting: NgForm }], template: "<div class=\"code-container\">\n <fs-2fa-verification-code\n [recipient]=\"(formatRecipient && verificationMethod.type === VerificationMethodType.Sms) ? (recipient | fsPhone) : recipient\"\n [type]=\"verificationMethod.type\"\n [code]=\"code\"\n [codeLength]=\"codeLength\"\n (codeChanged)=\"codeChanged.emit($event)\"\n (codeCompleted)=\"codeComplete($event)\">\n </fs-2fa-verification-code>\n</div>\n\n<div class=\"additional\">\n <div \n class=\"trust-device\"\n *ngIf=\"showTrustedDevice\">\n <mat-checkbox\n name=\"trust-device\"\n [(ngModel)]=\"trustDevice\"\n (ngModelChange)=\"trustDeviceChange.emit($event)\">\n <div class=\"small\">\n Bypass verification \n <ng-container *ngIf=\"trustDays\">for {{trustDays}} days</ng-container> \n <ng-container *ngIf=\"!trustDays\">for future signins</ng-container> \n unless cookies are cleared\n </div>\n </mat-checkbox>\n </div>\n</div>", styles: [":host ::ng-deep .mat-checkbox{margin:2px 0}:host ::ng-deep .mat-checkbox .mat-checkbox-label{line-height:normal}:host ::ng-deep .mat-checkbox .mat-checkbox-layout{white-space:normal}.code-container{text-align:center}.additional{display:flex;justify-content:space-between;align-items:center;margin:4px 0 5px}.additional small{color:inherit}.additional .resend{cursor:pointer;text-transform:none}.additional .resend mat-spinner{display:inline-block;vertical-align:middle}\n"] }]
|
|
91
|
-
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i1.FsDialog }, { type: i2.FsMessage }]; }, propDecorators: { verificationCodeComponent: [{
|
|
92
|
-
type: ViewChild,
|
|
93
|
-
args: [Fs2faVerificationCodeComponent]
|
|
94
|
-
}], verificationMethod: [{
|
|
95
|
-
type: Input
|
|
96
|
-
}], resend: [{
|
|
97
|
-
type: Input
|
|
98
|
-
}], showTrustedDevice: [{
|
|
99
|
-
type: Input
|
|
100
|
-
}], trustDevice: [{
|
|
101
|
-
type: Input
|
|
102
|
-
}], codeLength: [{
|
|
103
|
-
type: Input
|
|
104
|
-
}], trustDays: [{
|
|
105
|
-
type: Input
|
|
106
|
-
}], formatRecipient: [{
|
|
107
|
-
type: Input
|
|
108
|
-
}], getVerificationMethods: [{
|
|
109
|
-
type: Input
|
|
110
|
-
}], selectVerificationMethod: [{
|
|
111
|
-
type: Input
|
|
112
|
-
}], verified: [{
|
|
113
|
-
type: Output
|
|
114
|
-
}], codeChanged: [{
|
|
115
|
-
type: Output
|
|
116
|
-
}], codeCompleted: [{
|
|
117
|
-
type: Output
|
|
118
|
-
}], trustDeviceChange: [{
|
|
119
|
-
type: Output
|
|
120
|
-
}] } });
|
|
1
|
+
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, EventEmitter, Input, Output, ViewChild, } from '@angular/core';
|
|
2
|
+
import { ControlContainer, NgForm } from '@angular/forms';
|
|
3
|
+
import { FsDialog } from '@firestitch/dialog';
|
|
4
|
+
import { FsMessage } from '@firestitch/message';
|
|
5
|
+
import { Subject } from 'rxjs';
|
|
6
|
+
import { filter, finalize, switchMap, tap } from 'rxjs/operators';
|
|
7
|
+
import { VerificationMethodType } from '../../../../enums/verification-method-type.enum';
|
|
8
|
+
import { Fs2faVerificationCodeComponent } from '../2fa-verification-code/2fa-verification-code.component';
|
|
9
|
+
import { Fs2faVerificationMethodsComponent } from '../2fa-verification-methods/2fa-verification-methods.component';
|
|
10
|
+
import * as i0 from "@angular/core";
|
|
11
|
+
import * as i1 from "@firestitch/dialog";
|
|
12
|
+
import * as i2 from "@firestitch/message";
|
|
13
|
+
import * as i3 from "@angular/common";
|
|
14
|
+
import * as i4 from "@angular/forms";
|
|
15
|
+
import * as i5 from "@angular/material/checkbox";
|
|
16
|
+
import * as i6 from "@firestitch/form";
|
|
17
|
+
import * as i7 from "../2fa-verification-code/2fa-verification-code.component";
|
|
18
|
+
import * as i8 from "@firestitch/phone";
|
|
19
|
+
export class Fs2faVerificationComponent {
|
|
20
|
+
constructor(_cdRef, _dialog, _message) {
|
|
21
|
+
this._cdRef = _cdRef;
|
|
22
|
+
this._dialog = _dialog;
|
|
23
|
+
this._message = _message;
|
|
24
|
+
this.showTrustedDevice = true;
|
|
25
|
+
this.trustDevice = true;
|
|
26
|
+
this.formatRecipient = false;
|
|
27
|
+
this.verified = new EventEmitter();
|
|
28
|
+
this.codeChanged = new EventEmitter();
|
|
29
|
+
this.codeCompleted = new EventEmitter();
|
|
30
|
+
this.trustDeviceChange = new EventEmitter();
|
|
31
|
+
this.code = '';
|
|
32
|
+
this.VerificationMethodType = VerificationMethodType;
|
|
33
|
+
this._destroy$ = new Subject();
|
|
34
|
+
}
|
|
35
|
+
get recipient() {
|
|
36
|
+
if (this.verificationMethod.type === VerificationMethodType.Email) {
|
|
37
|
+
return this.verificationMethod.email;
|
|
38
|
+
}
|
|
39
|
+
if (this.verificationMethod.type === VerificationMethodType.Sms) {
|
|
40
|
+
return this.verificationMethod.phoneNumber;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
codeComplete(code) {
|
|
44
|
+
this.code = code;
|
|
45
|
+
this.codeCompleted.emit(this.code);
|
|
46
|
+
}
|
|
47
|
+
ngOnDestroy() {
|
|
48
|
+
this._destroy$.next();
|
|
49
|
+
this._destroy$.complete();
|
|
50
|
+
}
|
|
51
|
+
ngAfterViewInit() {
|
|
52
|
+
this.verificationCodeComponent.focus();
|
|
53
|
+
}
|
|
54
|
+
resendCode() {
|
|
55
|
+
return this.resend()
|
|
56
|
+
.pipe(tap(() => {
|
|
57
|
+
this.code = '';
|
|
58
|
+
this._message.success('Resent Code');
|
|
59
|
+
}), finalize(() => {
|
|
60
|
+
this.verificationCodeComponent.focus();
|
|
61
|
+
}));
|
|
62
|
+
}
|
|
63
|
+
showVerificationMethods() {
|
|
64
|
+
this.getVerificationMethods()
|
|
65
|
+
.pipe(switchMap((verificationMethods) => {
|
|
66
|
+
return this._dialog.open(Fs2faVerificationMethodsComponent, {
|
|
67
|
+
data: {
|
|
68
|
+
verificationMethod: this.verificationMethod,
|
|
69
|
+
verificationMethods,
|
|
70
|
+
selectVerificationMethod: this.selectVerificationMethod,
|
|
71
|
+
},
|
|
72
|
+
})
|
|
73
|
+
.afterClosed()
|
|
74
|
+
.pipe(filter((verificationMethod) => !!verificationMethod));
|
|
75
|
+
}))
|
|
76
|
+
.subscribe((verificationMethod) => {
|
|
77
|
+
this.verificationMethod = verificationMethod;
|
|
78
|
+
this.code = '';
|
|
79
|
+
this._cdRef.markForCheck();
|
|
80
|
+
setTimeout(() => {
|
|
81
|
+
this.verificationCodeComponent.focus();
|
|
82
|
+
});
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
Fs2faVerificationComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: Fs2faVerificationComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i1.FsDialog }, { token: i2.FsMessage }], target: i0.ɵɵFactoryTarget.Component });
|
|
87
|
+
Fs2faVerificationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: Fs2faVerificationComponent, selector: "fs-2fa-verification", inputs: { verificationMethod: "verificationMethod", resend: "resend", showTrustedDevice: "showTrustedDevice", trustDevice: "trustDevice", codeLength: "codeLength", trustDays: "trustDays", formatRecipient: "formatRecipient", getVerificationMethods: "getVerificationMethods", selectVerificationMethod: "selectVerificationMethod" }, outputs: { verified: "verified", codeChanged: "codeChanged", codeCompleted: "codeCompleted", trustDeviceChange: "trustDeviceChange" }, viewQueries: [{ propertyName: "verificationCodeComponent", first: true, predicate: Fs2faVerificationCodeComponent, descendants: true }], ngImport: i0, template: "<div class=\"code-container\">\n <fs-2fa-verification-code\n [recipient]=\"(formatRecipient && verificationMethod.type === VerificationMethodType.Sms) ? (recipient | fsPhone) : recipient\"\n [type]=\"verificationMethod.type\"\n [code]=\"code\"\n [codeLength]=\"codeLength\"\n (codeChanged)=\"codeChanged.emit($event)\"\n (codeCompleted)=\"codeComplete($event)\">\n </fs-2fa-verification-code>\n</div>\n\n<div class=\"additional\">\n <div \n class=\"trust-device\"\n *ngIf=\"showTrustedDevice\">\n <mat-checkbox\n name=\"trust-device\"\n [(ngModel)]=\"trustDevice\"\n (ngModelChange)=\"trustDeviceChange.emit($event)\">\n <div class=\"small\">\n Bypass verification \n <ng-container *ngIf=\"trustDays\">for {{trustDays}} days</ng-container> \n <ng-container *ngIf=\"!trustDays\">for future signins</ng-container> \n unless cookies are cleared\n </div>\n </mat-checkbox>\n </div>\n</div>", styles: [":host ::ng-deep .mat-checkbox{margin:2px 0}:host ::ng-deep .mat-checkbox .mat-checkbox-label{line-height:normal}:host ::ng-deep .mat-checkbox .mat-checkbox-layout{white-space:normal}.code-container{text-align:center}.additional{display:flex;justify-content:space-between;align-items:center;margin:4px 0 5px}.additional small{color:inherit}.additional .resend{cursor:pointer;text-transform:none}.additional .resend mat-spinner{display:inline-block;vertical-align:middle}\n"], dependencies: [{ kind: "directive", type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i4.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i5.MatCheckbox, selector: "mat-checkbox", inputs: ["disableRipple", "color", "tabIndex"], exportAs: ["matCheckbox"] }, { kind: "directive", type: i6.FsFormNoFsValidatorsDirective, selector: "[ngModel]:not([required]):not([fsFormRequired]):not([fsFormCompare]):not([fsFormDateRange]):not([fsFormEmail]):not([fsFormEmails]):not([fsFormFunction]):not([fsFormGreater]):not([fsFormGreaterEqual]):not([fsFormInteger]):not([fsFormLesser]):not([fsFormMax]):not([fsFormMaxLength]):not([fsFormMin]):not([fsFormMinLength]):not([fsFormNumeric]):not([fsFormPattern]):not([fsFormPhone]):not([fsFormUrl]):not([validate])" }, { kind: "component", type: i7.Fs2faVerificationCodeComponent, selector: "fs-2fa-verification-code", inputs: ["type", "recipient", "codeLength", "code"], outputs: ["codeChanged", "codeCompleted"] }, { kind: "pipe", type: i8.FsPhonePipe, name: "fsPhone" }], viewProviders: [{ provide: ControlContainer, useExisting: NgForm }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
88
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: Fs2faVerificationComponent, decorators: [{
|
|
89
|
+
type: Component,
|
|
90
|
+
args: [{ selector: 'fs-2fa-verification', changeDetection: ChangeDetectionStrategy.OnPush, viewProviders: [{ provide: ControlContainer, useExisting: NgForm }], template: "<div class=\"code-container\">\n <fs-2fa-verification-code\n [recipient]=\"(formatRecipient && verificationMethod.type === VerificationMethodType.Sms) ? (recipient | fsPhone) : recipient\"\n [type]=\"verificationMethod.type\"\n [code]=\"code\"\n [codeLength]=\"codeLength\"\n (codeChanged)=\"codeChanged.emit($event)\"\n (codeCompleted)=\"codeComplete($event)\">\n </fs-2fa-verification-code>\n</div>\n\n<div class=\"additional\">\n <div \n class=\"trust-device\"\n *ngIf=\"showTrustedDevice\">\n <mat-checkbox\n name=\"trust-device\"\n [(ngModel)]=\"trustDevice\"\n (ngModelChange)=\"trustDeviceChange.emit($event)\">\n <div class=\"small\">\n Bypass verification \n <ng-container *ngIf=\"trustDays\">for {{trustDays}} days</ng-container> \n <ng-container *ngIf=\"!trustDays\">for future signins</ng-container> \n unless cookies are cleared\n </div>\n </mat-checkbox>\n </div>\n</div>", styles: [":host ::ng-deep .mat-checkbox{margin:2px 0}:host ::ng-deep .mat-checkbox .mat-checkbox-label{line-height:normal}:host ::ng-deep .mat-checkbox .mat-checkbox-layout{white-space:normal}.code-container{text-align:center}.additional{display:flex;justify-content:space-between;align-items:center;margin:4px 0 5px}.additional small{color:inherit}.additional .resend{cursor:pointer;text-transform:none}.additional .resend mat-spinner{display:inline-block;vertical-align:middle}\n"] }]
|
|
91
|
+
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i1.FsDialog }, { type: i2.FsMessage }]; }, propDecorators: { verificationCodeComponent: [{
|
|
92
|
+
type: ViewChild,
|
|
93
|
+
args: [Fs2faVerificationCodeComponent]
|
|
94
|
+
}], verificationMethod: [{
|
|
95
|
+
type: Input
|
|
96
|
+
}], resend: [{
|
|
97
|
+
type: Input
|
|
98
|
+
}], showTrustedDevice: [{
|
|
99
|
+
type: Input
|
|
100
|
+
}], trustDevice: [{
|
|
101
|
+
type: Input
|
|
102
|
+
}], codeLength: [{
|
|
103
|
+
type: Input
|
|
104
|
+
}], trustDays: [{
|
|
105
|
+
type: Input
|
|
106
|
+
}], formatRecipient: [{
|
|
107
|
+
type: Input
|
|
108
|
+
}], getVerificationMethods: [{
|
|
109
|
+
type: Input
|
|
110
|
+
}], selectVerificationMethod: [{
|
|
111
|
+
type: Input
|
|
112
|
+
}], verified: [{
|
|
113
|
+
type: Output
|
|
114
|
+
}], codeChanged: [{
|
|
115
|
+
type: Output
|
|
116
|
+
}], codeCompleted: [{
|
|
117
|
+
type: Output
|
|
118
|
+
}], trustDeviceChange: [{
|
|
119
|
+
type: Output
|
|
120
|
+
}] } });
|
|
121
121
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMmZhLXZlcmlmaWNhdGlvbi5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9zcmMvYXBwL21vZHVsZXMvdmVyaWZpY2F0aW9uL2NvbXBvbmVudHMvMmZhLXZlcmlmaWNhdGlvbi8yZmEtdmVyaWZpY2F0aW9uLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3NyYy9hcHAvbW9kdWxlcy92ZXJpZmljYXRpb24vY29tcG9uZW50cy8yZmEtdmVyaWZpY2F0aW9uLzJmYS12ZXJpZmljYXRpb24uY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5nc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cG9uZW50LmZvY3VzKCk7ICBcbiAgICAgICAgfSksXG4gICAgICApO1xuICB9XG5cbiAgcHVibGljIHNob3dWZXJpZmljYXRpb25NZXRob2RzKCk6IHZvaWQge1xuICAgIHRoaXMuZ2V0VmVyaWZpY2F0aW9uTWV0aG9kcygpXG4gICAgICAucGlwZShcbiAgICAgICAgc3dpdGNoTWFwKCh2ZXJpZmljYXRpb25NZXRob2RzKSA9PiB7XG4gICAgICAgICAgcmV0dXJuIHRoaXMuX2RpYWxvZy5vcGVuKFxuICAgICAgICAgICAgRnMyZmFWZXJpZmljYXRpb25NZXRob2RzQ29tcG9uZW50LFxuICAgICAgICAgICAge1xuICAgICAgICAgICAgICBkYXRhOiB7XG4gICAgICAgICAgICAgICAgdmVyaWZpY2F0aW9uTWV0aG9kOiB0aGlzLnZlcmlmaWNhdGlvbk1ldGhvZCxcbiAgICAgICAgICAgICAgICB2ZXJpZmljYXRpb25NZXRob2RzLFxuICAgICAgICAgICAgICAgIHNlbGVjdFZlcmlmaWNhdGlvbk1ldGhvZDogdGhpcy5zZWxlY3RWZXJpZmljYXRpb25NZXRob2QsXG4gICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICB9LFxuICAgICAgICAgIClcbiAgICAgICAgICAgIC5hZnRlckNsb3NlZCgpXG4gICAgICAgICAgICAucGlwZShcbiAgICAgICAgICAgICAgZmlsdGVyKCh2ZXJpZmljYXRpb25NZXRob2QpID0+ICEhdmVyaWZpY2F0aW9uTWV0aG9kKSxcbiAgICAgICAgICAgICk7XG4gICAgICAgIH0pLFxuICAgICAgKVxuICAgICAgLnN1YnNjcmliZSgodmVyaWZpY2F0aW9uTWV0aG9kKSA9PiB7XG4gICAgICAgIHRoaXMudmVyaWZpY2F0aW9uTWV0aG9kID0gdmVyaWZpY2F0aW9uTWV0aG9kO1xuICAgICAgICB0aGlzLmNvZGUgPSAnJztcbiAgICAgICAgdGhpcy5fY2RSZWYubWFya0ZvckNoZWNrKCk7XG5cbiAgICAgICAgc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ICAgICAgIEJ5cGFzcyB2ZXJpZmljYXRpb24gXG4gICAgICAgIDxuZy1jb250YWluZXIgKm5nSWY9XCJ0cnVzdERheXNcIj5mb3Ige3t0cnVzdERheXN9fSBkYXlzPC9uZy1jb250YWluZXI+ICBcbiAgICAgICAgPG5nLWNvbnRhaW5lciAqbmdJZj1cIiF0cnVzdERheXNcIj5mb3IgZnV0dXJlIHNpZ25pbnM8L25nLWNvbnRhaW5lcj4gXG4gICAgICAgIHVubGVzcyBjb29raWVzIGFyZSBjbGVhcmVkXG4gICAgICA8L2Rpdj5cbiAgICA8L21hdC1jaGVja2JveD5cbiAgPC9kaXY+XG48L2Rpdj4iXX0=
|
|
@@ -1,60 +1,60 @@
|
|
|
1
|
-
import { ChangeDetectionStrategy, Component, EventEmitter, Input, Output, ViewChild, } from '@angular/core';
|
|
2
|
-
import { ControlContainer, NgForm } from '@angular/forms';
|
|
3
|
-
import { FsFormDirective } from '@firestitch/form';
|
|
4
|
-
import { VerificationMethodType } from '../../../../enums/verification-method-type.enum';
|
|
5
|
-
import { CodeInputComponent } from '../../../../modules/code-input/components/code-input';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
import * as i1 from "@firestitch/form";
|
|
8
|
-
import * as i2 from "@angular/common";
|
|
9
|
-
import * as i3 from "../../../code-input/components/code-input/code-input.component";
|
|
10
|
-
export class Fs2faVerificationCodeComponent {
|
|
11
|
-
constructor(_form) {
|
|
12
|
-
this._form = _form;
|
|
13
|
-
this.codeChanged = new EventEmitter();
|
|
14
|
-
this.codeCompleted = new EventEmitter();
|
|
15
|
-
this.VerificationMethodType = VerificationMethodType;
|
|
16
|
-
}
|
|
17
|
-
codeComplete(code) {
|
|
18
|
-
this.codeCompleted.emit(code);
|
|
19
|
-
}
|
|
20
|
-
codeChange(code) {
|
|
21
|
-
this.code = code;
|
|
22
|
-
this.codeChanged.emit(this.code);
|
|
23
|
-
this._form.dirty();
|
|
24
|
-
}
|
|
25
|
-
focus() {
|
|
26
|
-
this.codeInputComponent.focus();
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
Fs2faVerificationCodeComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: Fs2faVerificationCodeComponent, deps: [{ token: i1.FsFormDirective }], target: i0.ɵɵFactoryTarget.Component });
|
|
30
|
-
Fs2faVerificationCodeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: Fs2faVerificationCodeComponent, selector: "fs-2fa-verification-code", inputs: { type: "type", recipient: "recipient", codeLength: "codeLength", code: "code" }, outputs: { codeChanged: "codeChanged", codeCompleted: "codeCompleted" }, viewQueries: [{ propertyName: "codeInputComponent", first: true, predicate: CodeInputComponent, descendants: true }], ngImport: i0, template: "<ng-container *ngIf=\"type === VerificationMethodType.Sms\">\n <p class=\"description\">\n A text message with a verification code was just sent to <span style=\"white-space: nowrap;\">{{ recipient }}</span> to verify it's you.\n </p>\n\n <ng-container *ngTemplateOutlet=\"input\"></ng-container>\n</ng-container>\n\n<ng-container *ngIf=\"type === VerificationMethodType.Email\">\n <p class=\"description\">\n An email with a verification code was just sent to {{ recipient }} to verify it's you.\n </p>\n <ng-container *ngTemplateOutlet=\"input\"></ng-container>\n</ng-container>\n\n<ng-container *ngIf=\"type === VerificationMethodType.App\">\n <p class=\"description\">\n Enter the verification code generated by your 2 factor authenticator app to verify it's you.\n </p>\n <ng-container *ngTemplateOutlet=\"input\"></ng-container>\n</ng-container>\n\n<ng-template #input> \n <app-code-input \n [code]=\"code\"\n [codeLength]=\"codeLength\"\n (codeChanged)=\"codeChange($event)\"\n (codeCompleted)=\"codeComplete($event)\">\n </app-code-input> \n</ng-template> ", styles: ["mat-form-field{width:100%}mat-form-field ::ng-deep .mat-form-field-subscript-wrapper{min-height:unset!important}mat-form-field ::ng-deep .mat-form-field-subscript-wrapper .fs-form-error{padding-bottom:5px}app-code-input{margin-bottom:5px}\n"], dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: i3.CodeInputComponent, selector: "app-code-input", inputs: ["codeLength", "code"], outputs: ["codeCompleted", "codeChanged"] }], viewProviders: [
|
|
31
|
-
{
|
|
32
|
-
provide: ControlContainer,
|
|
33
|
-
useExisting: NgForm,
|
|
34
|
-
},
|
|
35
|
-
], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
36
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: Fs2faVerificationCodeComponent, decorators: [{
|
|
37
|
-
type: Component,
|
|
38
|
-
args: [{ selector: 'fs-2fa-verification-code', changeDetection: ChangeDetectionStrategy.OnPush, viewProviders: [
|
|
39
|
-
{
|
|
40
|
-
provide: ControlContainer,
|
|
41
|
-
useExisting: NgForm,
|
|
42
|
-
},
|
|
43
|
-
], template: "<ng-container *ngIf=\"type === VerificationMethodType.Sms\">\n <p class=\"description\">\n A text message with a verification code was just sent to <span style=\"white-space: nowrap;\">{{ recipient }}</span> to verify it's you.\n </p>\n\n <ng-container *ngTemplateOutlet=\"input\"></ng-container>\n</ng-container>\n\n<ng-container *ngIf=\"type === VerificationMethodType.Email\">\n <p class=\"description\">\n An email with a verification code was just sent to {{ recipient }} to verify it's you.\n </p>\n <ng-container *ngTemplateOutlet=\"input\"></ng-container>\n</ng-container>\n\n<ng-container *ngIf=\"type === VerificationMethodType.App\">\n <p class=\"description\">\n Enter the verification code generated by your 2 factor authenticator app to verify it's you.\n </p>\n <ng-container *ngTemplateOutlet=\"input\"></ng-container>\n</ng-container>\n\n<ng-template #input> \n <app-code-input \n [code]=\"code\"\n [codeLength]=\"codeLength\"\n (codeChanged)=\"codeChange($event)\"\n (codeCompleted)=\"codeComplete($event)\">\n </app-code-input> \n</ng-template> ", styles: ["mat-form-field{width:100%}mat-form-field ::ng-deep .mat-form-field-subscript-wrapper{min-height:unset!important}mat-form-field ::ng-deep .mat-form-field-subscript-wrapper .fs-form-error{padding-bottom:5px}app-code-input{margin-bottom:5px}\n"] }]
|
|
44
|
-
}], ctorParameters: function () { return [{ type: i1.FsFormDirective }]; }, propDecorators: { codeInputComponent: [{
|
|
45
|
-
type: ViewChild,
|
|
46
|
-
args: [CodeInputComponent]
|
|
47
|
-
}], type: [{
|
|
48
|
-
type: Input
|
|
49
|
-
}], recipient: [{
|
|
50
|
-
type: Input
|
|
51
|
-
}], codeLength: [{
|
|
52
|
-
type: Input
|
|
53
|
-
}], code: [{
|
|
54
|
-
type: Input
|
|
55
|
-
}], codeChanged: [{
|
|
56
|
-
type: Output
|
|
57
|
-
}], codeCompleted: [{
|
|
58
|
-
type: Output
|
|
59
|
-
}] } });
|
|
1
|
+
import { ChangeDetectionStrategy, Component, EventEmitter, Input, Output, ViewChild, } from '@angular/core';
|
|
2
|
+
import { ControlContainer, NgForm } from '@angular/forms';
|
|
3
|
+
import { FsFormDirective } from '@firestitch/form';
|
|
4
|
+
import { VerificationMethodType } from '../../../../enums/verification-method-type.enum';
|
|
5
|
+
import { CodeInputComponent } from '../../../../modules/code-input/components/code-input';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
import * as i1 from "@firestitch/form";
|
|
8
|
+
import * as i2 from "@angular/common";
|
|
9
|
+
import * as i3 from "../../../code-input/components/code-input/code-input.component";
|
|
10
|
+
export class Fs2faVerificationCodeComponent {
|
|
11
|
+
constructor(_form) {
|
|
12
|
+
this._form = _form;
|
|
13
|
+
this.codeChanged = new EventEmitter();
|
|
14
|
+
this.codeCompleted = new EventEmitter();
|
|
15
|
+
this.VerificationMethodType = VerificationMethodType;
|
|
16
|
+
}
|
|
17
|
+
codeComplete(code) {
|
|
18
|
+
this.codeCompleted.emit(code);
|
|
19
|
+
}
|
|
20
|
+
codeChange(code) {
|
|
21
|
+
this.code = code;
|
|
22
|
+
this.codeChanged.emit(this.code);
|
|
23
|
+
this._form.dirty();
|
|
24
|
+
}
|
|
25
|
+
focus() {
|
|
26
|
+
this.codeInputComponent.focus();
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
Fs2faVerificationCodeComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: Fs2faVerificationCodeComponent, deps: [{ token: i1.FsFormDirective }], target: i0.ɵɵFactoryTarget.Component });
|
|
30
|
+
Fs2faVerificationCodeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: Fs2faVerificationCodeComponent, selector: "fs-2fa-verification-code", inputs: { type: "type", recipient: "recipient", codeLength: "codeLength", code: "code" }, outputs: { codeChanged: "codeChanged", codeCompleted: "codeCompleted" }, viewQueries: [{ propertyName: "codeInputComponent", first: true, predicate: CodeInputComponent, descendants: true }], ngImport: i0, template: "<ng-container *ngIf=\"type === VerificationMethodType.Sms\">\n <p class=\"description\">\n A text message with a verification code was just sent to <span style=\"white-space: nowrap;\">{{ recipient }}</span> to verify it's you.\n </p>\n\n <ng-container *ngTemplateOutlet=\"input\"></ng-container>\n</ng-container>\n\n<ng-container *ngIf=\"type === VerificationMethodType.Email\">\n <p class=\"description\">\n An email with a verification code was just sent to {{ recipient }} to verify it's you.\n </p>\n <ng-container *ngTemplateOutlet=\"input\"></ng-container>\n</ng-container>\n\n<ng-container *ngIf=\"type === VerificationMethodType.App\">\n <p class=\"description\">\n Enter the verification code generated by your 2 factor authenticator app to verify it's you.\n </p>\n <ng-container *ngTemplateOutlet=\"input\"></ng-container>\n</ng-container>\n\n<ng-template #input> \n <app-code-input \n [code]=\"code\"\n [codeLength]=\"codeLength\"\n (codeChanged)=\"codeChange($event)\"\n (codeCompleted)=\"codeComplete($event)\">\n </app-code-input> \n</ng-template> ", styles: ["mat-form-field{width:100%}mat-form-field ::ng-deep .mat-form-field-subscript-wrapper{min-height:unset!important}mat-form-field ::ng-deep .mat-form-field-subscript-wrapper .fs-form-error{padding-bottom:5px}app-code-input{margin-bottom:5px}\n"], dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: i3.CodeInputComponent, selector: "app-code-input", inputs: ["codeLength", "code"], outputs: ["codeCompleted", "codeChanged"] }], viewProviders: [
|
|
31
|
+
{
|
|
32
|
+
provide: ControlContainer,
|
|
33
|
+
useExisting: NgForm,
|
|
34
|
+
},
|
|
35
|
+
], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
36
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: Fs2faVerificationCodeComponent, decorators: [{
|
|
37
|
+
type: Component,
|
|
38
|
+
args: [{ selector: 'fs-2fa-verification-code', changeDetection: ChangeDetectionStrategy.OnPush, viewProviders: [
|
|
39
|
+
{
|
|
40
|
+
provide: ControlContainer,
|
|
41
|
+
useExisting: NgForm,
|
|
42
|
+
},
|
|
43
|
+
], template: "<ng-container *ngIf=\"type === VerificationMethodType.Sms\">\n <p class=\"description\">\n A text message with a verification code was just sent to <span style=\"white-space: nowrap;\">{{ recipient }}</span> to verify it's you.\n </p>\n\n <ng-container *ngTemplateOutlet=\"input\"></ng-container>\n</ng-container>\n\n<ng-container *ngIf=\"type === VerificationMethodType.Email\">\n <p class=\"description\">\n An email with a verification code was just sent to {{ recipient }} to verify it's you.\n </p>\n <ng-container *ngTemplateOutlet=\"input\"></ng-container>\n</ng-container>\n\n<ng-container *ngIf=\"type === VerificationMethodType.App\">\n <p class=\"description\">\n Enter the verification code generated by your 2 factor authenticator app to verify it's you.\n </p>\n <ng-container *ngTemplateOutlet=\"input\"></ng-container>\n</ng-container>\n\n<ng-template #input> \n <app-code-input \n [code]=\"code\"\n [codeLength]=\"codeLength\"\n (codeChanged)=\"codeChange($event)\"\n (codeCompleted)=\"codeComplete($event)\">\n </app-code-input> \n</ng-template> ", styles: ["mat-form-field{width:100%}mat-form-field ::ng-deep .mat-form-field-subscript-wrapper{min-height:unset!important}mat-form-field ::ng-deep .mat-form-field-subscript-wrapper .fs-form-error{padding-bottom:5px}app-code-input{margin-bottom:5px}\n"] }]
|
|
44
|
+
}], ctorParameters: function () { return [{ type: i1.FsFormDirective }]; }, propDecorators: { codeInputComponent: [{
|
|
45
|
+
type: ViewChild,
|
|
46
|
+
args: [CodeInputComponent]
|
|
47
|
+
}], type: [{
|
|
48
|
+
type: Input
|
|
49
|
+
}], recipient: [{
|
|
50
|
+
type: Input
|
|
51
|
+
}], codeLength: [{
|
|
52
|
+
type: Input
|
|
53
|
+
}], code: [{
|
|
54
|
+
type: Input
|
|
55
|
+
}], codeChanged: [{
|
|
56
|
+
type: Output
|
|
57
|
+
}], codeCompleted: [{
|
|
58
|
+
type: Output
|
|
59
|
+
}] } });
|
|
60
60
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMmZhLXZlcmlmaWNhdGlvbi1jb2RlLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3NyYy9hcHAvbW9kdWxlcy92ZXJpZmljYXRpb24vY29tcG9uZW50cy8yZmEtdmVyaWZpY2F0aW9uLWNvZGUvMmZhLXZlcmlmaWNhdGlvbi1jb2RlLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3NyYy9hcHAvbW9kdWxlcy92ZXJpZmljYXRpb24vY29tcG9uZW50cy8yZmEtdmVyaWZpY2F0aW9uLWNvZGUvMmZhLXZlcmlmaWNhdGlvbi1jb2RlLmNvbXBvbmVudC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