@firestitch/2fa 13.0.1 → 13.1.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.
Files changed (95) hide show
  1. package/app/enums/index.d.ts +1 -1
  2. package/app/enums/verification-method-type.enum.d.ts +5 -5
  3. package/app/interfaces/index.d.ts +1 -1
  4. package/app/interfaces/verification-method.interface.d.ts +11 -11
  5. package/app/modules/code-input/code-input.module.d.ts +11 -11
  6. package/app/modules/code-input/components/code-input/code-input.component.d.ts +14 -14
  7. package/app/modules/code-input/components/code-input/index.d.ts +1 -1
  8. package/app/modules/code-input/index.d.ts +1 -1
  9. package/app/modules/defaulted/components/defaulted/defaulted.component.d.ts +5 -5
  10. package/app/modules/defaulted/components/defaulted/index.d.ts +1 -1
  11. package/app/modules/defaulted/defaulted.module.d.ts +7 -7
  12. package/app/modules/manage/components/2fa-manage/2fa-manage.component.d.ts +30 -30
  13. package/app/modules/manage/components/2fa-manage/index.d.ts +1 -1
  14. package/app/modules/manage/components/app/app.component.d.ts +32 -32
  15. package/app/modules/manage/components/app/index.d.ts +1 -1
  16. package/app/modules/manage/components/email/email.component.d.ts +27 -27
  17. package/app/modules/manage/components/email/index.d.ts +1 -1
  18. package/app/modules/manage/components/emails/emails.component.d.ts +19 -19
  19. package/app/modules/manage/components/emails/index.d.ts +1 -1
  20. package/app/modules/manage/components/manage-methods/index.d.ts +1 -1
  21. package/app/modules/manage/components/manage-methods/manage-methods.component.d.ts +35 -35
  22. package/app/modules/manage/components/number/index.d.ts +1 -1
  23. package/app/modules/manage/components/number/number.component.d.ts +28 -28
  24. package/app/modules/manage/components/numbers/index.d.ts +1 -1
  25. package/app/modules/manage/components/numbers/numbers.component.d.ts +20 -20
  26. package/app/modules/manage/fs-2f-manage.module.d.ts +33 -33
  27. package/app/modules/manage/services/index.d.ts +1 -1
  28. package/app/modules/manage/services/two-factor-manage.service.d.ts +52 -52
  29. package/app/modules/resend/components/resend/index.d.ts +1 -1
  30. package/app/modules/resend/components/resend/resend.component.d.ts +14 -14
  31. package/app/modules/resend/resend.module.d.ts +9 -9
  32. package/app/modules/verification/components/2fa-verification/2fa-verification.component.d.ts +39 -39
  33. package/app/modules/verification/components/2fa-verification-code/2fa-verification-code.component.d.ts +21 -21
  34. package/app/modules/verification/components/2fa-verification-methods/2fa-verification-methods.component.d.ts +22 -22
  35. package/app/modules/verification/directives/2fa-verification-resend.directive.d.ts +11 -11
  36. package/app/modules/verification/directives/index.d.ts +1 -1
  37. package/app/modules/verification/fs-2fa-verification.module.d.ts +25 -25
  38. package/app/modules/verification-methods/components/verification-methods/index.d.ts +1 -1
  39. package/app/modules/verification-methods/components/verification-methods/verification-methods.component.d.ts +26 -26
  40. package/app/modules/verification-methods/fs-2f-verification-methods.module.d.ts +14 -14
  41. package/app/modules/verification-methods/index.d.ts +1 -1
  42. package/esm2020/app/enums/index.mjs +1 -1
  43. package/esm2020/app/enums/verification-method-type.enum.mjs +6 -6
  44. package/esm2020/app/interfaces/index.mjs +1 -1
  45. package/esm2020/app/interfaces/verification-method.interface.mjs +1 -1
  46. package/esm2020/app/modules/code-input/code-input.module.mjs +37 -37
  47. package/esm2020/app/modules/code-input/components/code-input/code-input.component.mjs +36 -36
  48. package/esm2020/app/modules/code-input/components/code-input/index.mjs +1 -1
  49. package/esm2020/app/modules/code-input/index.mjs +1 -1
  50. package/esm2020/app/modules/defaulted/components/defaulted/defaulted.component.mjs +10 -10
  51. package/esm2020/app/modules/defaulted/components/defaulted/index.mjs +1 -1
  52. package/esm2020/app/modules/defaulted/defaulted.module.mjs +17 -17
  53. package/esm2020/app/modules/manage/components/2fa-manage/2fa-manage.component.mjs +97 -97
  54. package/esm2020/app/modules/manage/components/2fa-manage/index.mjs +1 -1
  55. package/esm2020/app/modules/manage/components/app/app.component.mjs +84 -84
  56. package/esm2020/app/modules/manage/components/app/index.mjs +1 -1
  57. package/esm2020/app/modules/manage/components/email/email.component.mjs +78 -78
  58. package/esm2020/app/modules/manage/components/email/index.mjs +1 -1
  59. package/esm2020/app/modules/manage/components/emails/emails.component.mjs +46 -46
  60. package/esm2020/app/modules/manage/components/emails/index.mjs +1 -1
  61. package/esm2020/app/modules/manage/components/manage-methods/index.mjs +1 -1
  62. package/esm2020/app/modules/manage/components/manage-methods/manage-methods.component.mjs +124 -124
  63. package/esm2020/app/modules/manage/components/number/index.mjs +1 -1
  64. package/esm2020/app/modules/manage/components/number/number.component.mjs +82 -82
  65. package/esm2020/app/modules/manage/components/numbers/index.mjs +1 -1
  66. package/esm2020/app/modules/manage/components/numbers/numbers.component.mjs +47 -47
  67. package/esm2020/app/modules/manage/fs-2f-manage.module.mjs +118 -117
  68. package/esm2020/app/modules/manage/services/index.mjs +1 -1
  69. package/esm2020/app/modules/manage/services/two-factor-manage.service.mjs +160 -160
  70. package/esm2020/app/modules/resend/components/resend/index.mjs +1 -1
  71. package/esm2020/app/modules/resend/components/resend/resend.component.mjs +34 -34
  72. package/esm2020/app/modules/resend/resend.module.mjs +29 -29
  73. package/esm2020/app/modules/verification/components/2fa-verification/2fa-verification.component.mjs +123 -123
  74. package/esm2020/app/modules/verification/components/2fa-verification-code/2fa-verification-code.component.mjs +56 -56
  75. package/esm2020/app/modules/verification/components/2fa-verification-methods/2fa-verification-methods.component.mjs +55 -55
  76. package/esm2020/app/modules/verification/directives/2fa-verification-resend.directive.mjs +31 -31
  77. package/esm2020/app/modules/verification/directives/index.mjs +1 -1
  78. package/esm2020/app/modules/verification/fs-2fa-verification.module.mjs +96 -96
  79. package/esm2020/app/modules/verification-methods/components/verification-methods/index.mjs +1 -1
  80. package/esm2020/app/modules/verification-methods/components/verification-methods/verification-methods.component.mjs +116 -116
  81. package/esm2020/app/modules/verification-methods/fs-2f-verification-methods.module.mjs +47 -47
  82. package/esm2020/app/modules/verification-methods/index.mjs +1 -1
  83. package/esm2020/firestitch-2fa.mjs +4 -4
  84. package/esm2020/public_api.mjs +8 -8
  85. package/fesm2015/firestitch-2fa.mjs +1249 -1275
  86. package/fesm2015/firestitch-2fa.mjs.map +1 -1
  87. package/fesm2020/firestitch-2fa.mjs +1236 -1262
  88. package/fesm2020/firestitch-2fa.mjs.map +1 -1
  89. package/firestitch-2fa.d.ts +5 -5
  90. package/package.json +1 -1
  91. package/public_api.d.ts +9 -9
  92. package/app/modules/manage/components/qr-code/index.d.ts +0 -1
  93. package/app/modules/manage/components/qr-code/qr-code.component.d.ts +0 -11
  94. package/esm2020/app/modules/manage/components/qr-code/index.mjs +0 -2
  95. package/esm2020/app/modules/manage/components/qr-code/qr-code.component.mjs +0 -32
@@ -1,124 +1,124 @@
1
- import { ChangeDetectionStrategy, ChangeDetectorRef, Component, EventEmitter, Input, Output, ViewChild, } from '@angular/core';
2
- import { ControlContainer, NgForm } from '@angular/forms';
3
- import { Subject } from 'rxjs';
4
- import { FsMessage } from '@firestitch/message';
5
- import { FsDialog } from '@firestitch/dialog';
6
- import { filter, finalize, takeUntil, tap } from 'rxjs/operators';
7
- import { Fs2faVerificationMethodsComponent } from '../2fa-verification-methods/2fa-verification-methods.component';
8
- import { VerificationMethodType } from '../../../../enums/verification-method-type.enum';
9
- import { Fs2faVerificationCodeComponent } from '../2fa-verification-code/2fa-verification-code.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 "../2fa-verification-code/2fa-verification-code.component";
14
- import * as i4 from "@angular/material/checkbox";
15
- import * as i5 from "@angular/common";
16
- import * as i6 from "@angular/forms";
17
- import * as i7 from "@firestitch/form";
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
- ngOnInit() {
44
- this.codeChanged
45
- .pipe(takeUntil(this._destroy$))
46
- .subscribe((code) => {
47
- this.code = code;
48
- });
49
- }
50
- ngOnDestroy() {
51
- this._destroy$.next();
52
- this._destroy$.complete();
53
- }
54
- ngAfterViewInit() {
55
- this.verificationCodeComponent.focus();
56
- }
57
- resendCode() {
58
- return this.resend()
59
- .pipe(tap(() => {
60
- this.code = '';
61
- this._message.success('Resent Code');
62
- }), finalize(() => {
63
- this.verificationCodeComponent.focus();
64
- }));
65
- }
66
- showVerificationMethods() {
67
- this.getVerificationMethods()
68
- .subscribe((verificationMethods) => {
69
- this._dialog.open(Fs2faVerificationMethodsComponent, {
70
- data: {
71
- verificationMethod: this.verificationMethod,
72
- verificationMethods,
73
- selectVerificationMethod: this.selectVerificationMethod,
74
- }
75
- })
76
- .afterClosed()
77
- .pipe(filter((verificationMethod) => !!verificationMethod))
78
- .subscribe((verificationMethod) => {
79
- this.verificationMethod = verificationMethod;
80
- this.code = '';
81
- this._cdRef.markForCheck();
82
- setTimeout(() => {
83
- this.verificationCodeComponent.focus();
84
- });
85
- });
86
- });
87
- }
88
- }
89
- Fs2faVerificationComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: Fs2faVerificationComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i1.FsDialog }, { token: i2.FsMessage }], target: i0.ɵɵFactoryTarget.Component });
90
- Fs2faVerificationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.4.0", 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)=\"codeCompleted.emit()\">\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"], components: [{ type: i3.Fs2faVerificationCodeComponent, selector: "fs-2fa-verification-code", inputs: ["type", "recipient", "codeLength", "code"], outputs: ["codeChanged", "codeCompleted"] }, { type: i4.MatCheckbox, selector: "mat-checkbox", inputs: ["disableRipple", "color", "tabIndex", "aria-label", "aria-labelledby", "aria-describedby", "id", "required", "labelPosition", "name", "value", "checked", "disabled", "indeterminate"], outputs: ["change", "indeterminateChange"], exportAs: ["matCheckbox"] }], directives: [{ type: i5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i6.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i6.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i7.FsFormNoFsValidatorsDirective, selector: "[ngModel]:not([required]):not([fsFormRequired]):not([fsFormCompare]):not([fsFormDateRange]):not([fsFormEmail]):not([fsFormEmails]):not([fsFormFunction]):not([fsFormGreater]):not([fsFormInteger]):not([fsFormLesser]):not([fsFormMax]):not([fsFormMaxLength]):not([fsFormMin]):not([fsFormMinLength]):not([fsFormNumeric]):not([fsFormPattern]):not([fsFormPhone]):not([fsFormUrl]):not([validate])" }], pipes: { "fsPhone": i8.FsPhonePipe }, viewProviders: [{ provide: ControlContainer, useExisting: NgForm }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
91
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: Fs2faVerificationComponent, decorators: [{
92
- type: Component,
93
- 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)=\"codeCompleted.emit()\">\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"] }]
94
- }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i1.FsDialog }, { type: i2.FsMessage }]; }, propDecorators: { verificationCodeComponent: [{
95
- type: ViewChild,
96
- args: [Fs2faVerificationCodeComponent]
97
- }], verificationMethod: [{
98
- type: Input
99
- }], resend: [{
100
- type: Input
101
- }], showTrustedDevice: [{
102
- type: Input
103
- }], trustDevice: [{
104
- type: Input
105
- }], codeLength: [{
106
- type: Input
107
- }], trustDays: [{
108
- type: Input
109
- }], formatRecipient: [{
110
- type: Input
111
- }], getVerificationMethods: [{
112
- type: Input
113
- }], selectVerificationMethod: [{
114
- type: Input
115
- }], verified: [{
116
- type: Output
117
- }], codeChanged: [{
118
- type: Output
119
- }], codeCompleted: [{
120
- type: Output
121
- }], trustDeviceChange: [{
122
- type: Output
123
- }] } });
1
+ import { ChangeDetectionStrategy, ChangeDetectorRef, Component, EventEmitter, Input, Output, ViewChild, } from '@angular/core';
2
+ import { ControlContainer, NgForm } from '@angular/forms';
3
+ import { Subject } from 'rxjs';
4
+ import { FsMessage } from '@firestitch/message';
5
+ import { FsDialog } from '@firestitch/dialog';
6
+ import { filter, finalize, takeUntil, tap } from 'rxjs/operators';
7
+ import { Fs2faVerificationMethodsComponent } from '../2fa-verification-methods/2fa-verification-methods.component';
8
+ import { VerificationMethodType } from '../../../../enums/verification-method-type.enum';
9
+ import { Fs2faVerificationCodeComponent } from '../2fa-verification-code/2fa-verification-code.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 "../2fa-verification-code/2fa-verification-code.component";
14
+ import * as i4 from "@angular/material/checkbox";
15
+ import * as i5 from "@angular/common";
16
+ import * as i6 from "@angular/forms";
17
+ import * as i7 from "@firestitch/form";
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
+ ngOnInit() {
44
+ this.codeChanged
45
+ .pipe(takeUntil(this._destroy$))
46
+ .subscribe((code) => {
47
+ this.code = code;
48
+ });
49
+ }
50
+ ngOnDestroy() {
51
+ this._destroy$.next();
52
+ this._destroy$.complete();
53
+ }
54
+ ngAfterViewInit() {
55
+ this.verificationCodeComponent.focus();
56
+ }
57
+ resendCode() {
58
+ return this.resend()
59
+ .pipe(tap(() => {
60
+ this.code = '';
61
+ this._message.success('Resent Code');
62
+ }), finalize(() => {
63
+ this.verificationCodeComponent.focus();
64
+ }));
65
+ }
66
+ showVerificationMethods() {
67
+ this.getVerificationMethods()
68
+ .subscribe((verificationMethods) => {
69
+ this._dialog.open(Fs2faVerificationMethodsComponent, {
70
+ data: {
71
+ verificationMethod: this.verificationMethod,
72
+ verificationMethods,
73
+ selectVerificationMethod: this.selectVerificationMethod,
74
+ }
75
+ })
76
+ .afterClosed()
77
+ .pipe(filter((verificationMethod) => !!verificationMethod))
78
+ .subscribe((verificationMethod) => {
79
+ this.verificationMethod = verificationMethod;
80
+ this.code = '';
81
+ this._cdRef.markForCheck();
82
+ setTimeout(() => {
83
+ this.verificationCodeComponent.focus();
84
+ });
85
+ });
86
+ });
87
+ }
88
+ }
89
+ Fs2faVerificationComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: Fs2faVerificationComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i1.FsDialog }, { token: i2.FsMessage }], target: i0.ɵɵFactoryTarget.Component });
90
+ Fs2faVerificationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.4.0", 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)=\"codeCompleted.emit()\">\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"], components: [{ type: i3.Fs2faVerificationCodeComponent, selector: "fs-2fa-verification-code", inputs: ["type", "recipient", "codeLength", "code"], outputs: ["codeChanged", "codeCompleted"] }, { type: i4.MatCheckbox, selector: "mat-checkbox", inputs: ["disableRipple", "color", "tabIndex", "aria-label", "aria-labelledby", "aria-describedby", "id", "required", "labelPosition", "name", "value", "checked", "disabled", "indeterminate"], outputs: ["change", "indeterminateChange"], exportAs: ["matCheckbox"] }], directives: [{ type: i5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i6.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i6.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i7.FsFormNoFsValidatorsDirective, selector: "[ngModel]:not([required]):not([fsFormRequired]):not([fsFormCompare]):not([fsFormDateRange]):not([fsFormEmail]):not([fsFormEmails]):not([fsFormFunction]):not([fsFormGreater]):not([fsFormInteger]):not([fsFormLesser]):not([fsFormMax]):not([fsFormMaxLength]):not([fsFormMin]):not([fsFormMinLength]):not([fsFormNumeric]):not([fsFormPattern]):not([fsFormPhone]):not([fsFormUrl]):not([validate])" }], pipes: { "fsPhone": i8.FsPhonePipe }, viewProviders: [{ provide: ControlContainer, useExisting: NgForm }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
91
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: Fs2faVerificationComponent, decorators: [{
92
+ type: Component,
93
+ 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)=\"codeCompleted.emit()\">\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"] }]
94
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i1.FsDialog }, { type: i2.FsMessage }]; }, propDecorators: { verificationCodeComponent: [{
95
+ type: ViewChild,
96
+ args: [Fs2faVerificationCodeComponent]
97
+ }], verificationMethod: [{
98
+ type: Input
99
+ }], resend: [{
100
+ type: Input
101
+ }], showTrustedDevice: [{
102
+ type: Input
103
+ }], trustDevice: [{
104
+ type: Input
105
+ }], codeLength: [{
106
+ type: Input
107
+ }], trustDays: [{
108
+ type: Input
109
+ }], formatRecipient: [{
110
+ type: Input
111
+ }], getVerificationMethods: [{
112
+ type: Input
113
+ }], selectVerificationMethod: [{
114
+ type: Input
115
+ }], verified: [{
116
+ type: Output
117
+ }], codeChanged: [{
118
+ type: Output
119
+ }], codeCompleted: [{
120
+ type: Output
121
+ }], trustDeviceChange: [{
122
+ type: Output
123
+ }] } });
124
124
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMmZhLXZlcmlmaWNhdGlvbi5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9zcmMvYXBwL21vZHVsZXMvdmVyaWZpY2F0aW9uL2NvbXBvbmVudHMvMmZhLXZlcmlmaWNhdGlvbi8yZmEtdmVyaWZpY2F0aW9uLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3NyYy9hcHAvbW9kdWxlcy92ZXJpZmljYXRpb24vY29tcG9uZW50cy8yZmEtdmVyaWZpY2F0aW9uLzJmYS12ZXJpZmljYXRpb24uY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUVMLHVCQUF1QixFQUN2QixpQkFBaUIsRUFDakIsU0FBUyxFQUNULFlBQVksRUFDWixLQUFLLEVBR0ws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bFwiPlxuICAgICAgICBCeXBhc3MgdmVyaWZpY2F0aW9uIFxuICAgICAgICA8bmctY29udGFpbmVyICpuZ0lmPVwidHJ1c3REYXlzXCI+Zm9yIHt7dHJ1c3REYXlzfX0gZGF5czwvbmctY29udGFpbmVyPiAgXG4gICAgICAgIDxuZy1jb250YWluZXIgKm5nSWY9XCIhdHJ1c3REYXlzXCI+Zm9yIGZ1dHVyZSBzaWduaW5zPC9uZy1jb250YWluZXI+IFxuICAgICAgICB1bmxlc3MgY29va2llcyBhcmUgY2xlYXJlZFxuICAgICAgPC9kaXY+XG4gICAgPC9tYXQtY2hlY2tib3g+XG4gIDwvZGl2PlxuPC9kaXY+Il19
@@ -1,57 +1,57 @@
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 { CodeInputComponent } from '../../../../modules/code-input/components/code-input';
5
- import { VerificationMethodType } from '../../../../enums/verification-method-type.enum';
6
- import * as i0 from "@angular/core";
7
- import * as i1 from "@firestitch/form";
8
- import * as i2 from "../../../code-input/components/code-input/code-input.component";
9
- import * as i3 from "@angular/common";
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
- codeChange(code) {
18
- this.code = code;
19
- this.codeChanged.emit(this.code);
20
- this._form.dirty();
21
- }
22
- focus() {
23
- this.codeInputComponent.focus();
24
- }
25
- }
26
- Fs2faVerificationCodeComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: Fs2faVerificationCodeComponent, deps: [{ token: i1.FsFormDirective }], target: i0.ɵɵFactoryTarget.Component });
27
- Fs2faVerificationCodeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.4.0", 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)=\"codeCompleted.emit()\">\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"], components: [{ type: i2.CodeInputComponent, selector: "app-code-input", inputs: ["codeLength", "code"], outputs: ["codeCompleted", "codeChanged"] }], directives: [{ type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], viewProviders: [
28
- {
29
- provide: ControlContainer,
30
- useExisting: NgForm,
31
- },
32
- ], changeDetection: i0.ChangeDetectionStrategy.OnPush });
33
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: Fs2faVerificationCodeComponent, decorators: [{
34
- type: Component,
35
- args: [{ selector: 'fs-2fa-verification-code', changeDetection: ChangeDetectionStrategy.OnPush, viewProviders: [
36
- {
37
- provide: ControlContainer,
38
- useExisting: NgForm,
39
- },
40
- ], 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)=\"codeCompleted.emit()\">\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"] }]
41
- }], ctorParameters: function () { return [{ type: i1.FsFormDirective }]; }, propDecorators: { codeInputComponent: [{
42
- type: ViewChild,
43
- args: [CodeInputComponent]
44
- }], type: [{
45
- type: Input
46
- }], recipient: [{
47
- type: Input
48
- }], codeLength: [{
49
- type: Input
50
- }], code: [{
51
- type: Input
52
- }], codeChanged: [{
53
- type: Output
54
- }], codeCompleted: [{
55
- type: Output
56
- }] } });
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 { CodeInputComponent } from '../../../../modules/code-input/components/code-input';
5
+ import { VerificationMethodType } from '../../../../enums/verification-method-type.enum';
6
+ import * as i0 from "@angular/core";
7
+ import * as i1 from "@firestitch/form";
8
+ import * as i2 from "../../../code-input/components/code-input/code-input.component";
9
+ import * as i3 from "@angular/common";
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
+ codeChange(code) {
18
+ this.code = code;
19
+ this.codeChanged.emit(this.code);
20
+ this._form.dirty();
21
+ }
22
+ focus() {
23
+ this.codeInputComponent.focus();
24
+ }
25
+ }
26
+ Fs2faVerificationCodeComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: Fs2faVerificationCodeComponent, deps: [{ token: i1.FsFormDirective }], target: i0.ɵɵFactoryTarget.Component });
27
+ Fs2faVerificationCodeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.4.0", 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)=\"codeCompleted.emit()\">\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"], components: [{ type: i2.CodeInputComponent, selector: "app-code-input", inputs: ["codeLength", "code"], outputs: ["codeCompleted", "codeChanged"] }], directives: [{ type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], viewProviders: [
28
+ {
29
+ provide: ControlContainer,
30
+ useExisting: NgForm,
31
+ },
32
+ ], changeDetection: i0.ChangeDetectionStrategy.OnPush });
33
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: Fs2faVerificationCodeComponent, decorators: [{
34
+ type: Component,
35
+ args: [{ selector: 'fs-2fa-verification-code', changeDetection: ChangeDetectionStrategy.OnPush, viewProviders: [
36
+ {
37
+ provide: ControlContainer,
38
+ useExisting: NgForm,
39
+ },
40
+ ], 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)=\"codeCompleted.emit()\">\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"] }]
41
+ }], ctorParameters: function () { return [{ type: i1.FsFormDirective }]; }, propDecorators: { codeInputComponent: [{
42
+ type: ViewChild,
43
+ args: [CodeInputComponent]
44
+ }], type: [{
45
+ type: Input
46
+ }], recipient: [{
47
+ type: Input
48
+ }], codeLength: [{
49
+ type: Input
50
+ }], code: [{
51
+ type: Input
52
+ }], codeChanged: [{
53
+ type: Output
54
+ }], codeCompleted: [{
55
+ type: Output
56
+ }] } });
57
57
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMmZhLXZlcmlmaWNhdGlvbi1jb2RlLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3NyYy9hcHAvbW9kdWxlcy92ZXJpZmljYXRpb24vY29tcG9uZW50cy8yZmEtdmVyaWZpY2F0aW9uLWNvZGUvMmZhLXZlcmlmaWNhdGlvbi1jb2RlLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4u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