@firestitch/2fa 12.0.8 → 12.1.0

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 (72) hide show
  1. package/app/modules/code-input/code-input.module.d.ts +8 -0
  2. package/app/modules/code-input/components/code-input/code-input.component.d.ts +13 -0
  3. package/app/modules/code-input/components/code-input/index.d.ts +1 -0
  4. package/app/modules/code-input/index.d.ts +1 -0
  5. package/app/modules/manage/components/2fa-manage/2fa-manage.component.d.ts +26 -0
  6. package/app/modules/manage/components/2fa-manage/index.d.ts +1 -0
  7. package/app/modules/manage/components/app/app.component.d.ts +31 -0
  8. package/app/modules/manage/components/app/index.d.ts +1 -0
  9. package/app/modules/manage/components/defaulted/defaulted.component.d.ts +5 -0
  10. package/app/modules/manage/components/defaulted/index.d.ts +1 -0
  11. package/app/modules/manage/components/email/email.component.d.ts +25 -0
  12. package/app/modules/manage/components/email/index.d.ts +1 -0
  13. package/app/modules/manage/components/emails/emails.component.d.ts +17 -0
  14. package/app/modules/manage/components/emails/index.d.ts +1 -0
  15. package/app/modules/manage/components/manage-methods/index.d.ts +1 -0
  16. package/app/modules/manage/components/manage-methods/manage-methods.component.d.ts +31 -0
  17. package/app/modules/manage/components/number/index.d.ts +1 -0
  18. package/app/modules/manage/components/number/number.component.d.ts +26 -0
  19. package/app/modules/manage/components/numbers/index.d.ts +1 -0
  20. package/app/modules/manage/components/numbers/numbers.component.d.ts +18 -0
  21. package/app/modules/manage/components/verification-methods/index.d.ts +1 -0
  22. package/app/modules/manage/components/verification-methods/verification-methods.component.d.ts +18 -0
  23. package/app/modules/manage/fs-2f-manage.module.d.ts +31 -0
  24. package/app/modules/manage/services/index.d.ts +1 -0
  25. package/app/modules/manage/services/two-factor-manage.service.d.ts +39 -0
  26. package/app/modules/verification/components/2fa-verification/2fa-verification.component.d.ts +31 -0
  27. package/app/modules/verification/components/2fa-verification-code/2fa-verification-code.component.d.ts +17 -0
  28. package/app/{components → modules/verification/components}/2fa-verification-methods/2fa-verification-methods.component.d.ts +7 -7
  29. package/app/modules/verification/fs-2fa-verification.module.d.ts +23 -0
  30. package/bundles/firestitch-2fa.umd.js +975 -127
  31. package/bundles/firestitch-2fa.umd.js.map +1 -1
  32. package/esm2015/app/modules/code-input/code-input.module.js +26 -0
  33. package/esm2015/app/modules/code-input/components/code-input/code-input.component.js +36 -0
  34. package/esm2015/app/modules/code-input/components/code-input/index.js +2 -0
  35. package/esm2015/app/modules/code-input/index.js +2 -0
  36. package/esm2015/app/modules/manage/components/2fa-manage/2fa-manage.component.js +92 -0
  37. package/esm2015/app/modules/manage/components/2fa-manage/index.js +2 -0
  38. package/esm2015/app/modules/manage/components/app/app.component.js +82 -0
  39. package/esm2015/app/modules/manage/components/app/index.js +2 -0
  40. package/esm2015/app/modules/manage/components/defaulted/defaulted.component.js +16 -0
  41. package/esm2015/app/modules/manage/components/defaulted/index.js +2 -0
  42. package/esm2015/app/modules/manage/components/email/email.component.js +79 -0
  43. package/esm2015/app/modules/manage/components/email/index.js +2 -0
  44. package/esm2015/app/modules/manage/components/emails/emails.component.js +43 -0
  45. package/esm2015/app/modules/manage/components/emails/index.js +2 -0
  46. package/esm2015/app/modules/manage/components/manage-methods/index.js +2 -0
  47. package/esm2015/app/modules/manage/components/manage-methods/manage-methods.component.js +118 -0
  48. package/esm2015/app/modules/manage/components/number/index.js +2 -0
  49. package/esm2015/app/modules/manage/components/number/number.component.js +81 -0
  50. package/esm2015/app/modules/manage/components/numbers/index.js +2 -0
  51. package/esm2015/app/modules/manage/components/numbers/numbers.component.js +44 -0
  52. package/esm2015/app/modules/manage/components/verification-methods/index.js +2 -0
  53. package/esm2015/app/modules/manage/components/verification-methods/verification-methods.component.js +63 -0
  54. package/esm2015/app/modules/manage/fs-2f-manage.module.js +108 -0
  55. package/esm2015/app/modules/manage/services/index.js +2 -0
  56. package/esm2015/app/modules/manage/services/two-factor-manage.service.js +123 -0
  57. package/esm2015/app/modules/verification/components/2fa-verification/2fa-verification.component.js +109 -0
  58. package/esm2015/app/modules/verification/components/2fa-verification-code/2fa-verification-code.component.js +57 -0
  59. package/esm2015/app/modules/verification/components/2fa-verification-methods/2fa-verification-methods.component.js +73 -0
  60. package/esm2015/app/modules/verification/fs-2fa-verification.module.js +88 -0
  61. package/esm2015/public_api.js +5 -7
  62. package/fesm2015/firestitch-2fa.js +841 -75
  63. package/fesm2015/firestitch-2fa.js.map +1 -1
  64. package/package.json +1 -1
  65. package/public_api.d.ts +4 -2
  66. package/app/components/2fa-verification/2fa-verification.component.d.ts +0 -32
  67. package/app/components/2fa-verification-code/2fa-verification-code.component.d.ts +0 -18
  68. package/app/fs-2fa.module.d.ts +0 -23
  69. package/esm2015/app/components/2fa-verification/2fa-verification.component.js +0 -106
  70. package/esm2015/app/components/2fa-verification-code/2fa-verification-code.component.js +0 -60
  71. package/esm2015/app/components/2fa-verification-methods/2fa-verification-methods.component.js +0 -73
  72. package/esm2015/app/fs-2fa.module.js +0 -88
@@ -0,0 +1,8 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./components/code-input/code-input.component";
3
+ import * as i2 from "angular-code-input";
4
+ export declare class CodeInputModule {
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<CodeInputModule, never>;
6
+ static ɵmod: i0.ɵɵNgModuleDeclaration<CodeInputModule, [typeof i1.CodeInputComponent], [typeof i2.CodeInputModule], [typeof i1.CodeInputComponent]>;
7
+ static ɵinj: i0.ɵɵInjectorDeclaration<CodeInputModule>;
8
+ }
@@ -0,0 +1,13 @@
1
+ import { EventEmitter } from '@angular/core';
2
+ import { CodeInputComponent as AngularCodeInputComponent } from 'angular-code-input';
3
+ import * as i0 from "@angular/core";
4
+ export declare class CodeInputComponent {
5
+ angularCodeInputComponent: AngularCodeInputComponent;
6
+ codeLength: number;
7
+ code: any;
8
+ codeCompleted: EventEmitter<any>;
9
+ codeChanged: EventEmitter<any>;
10
+ focus(): void;
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<CodeInputComponent, never>;
12
+ static ɵcmp: i0.ɵɵComponentDeclaration<CodeInputComponent, "app-code-input", never, { "codeLength": "codeLength"; "code": "code"; }, { "codeCompleted": "codeCompleted"; "codeChanged": "codeChanged"; }, never, never>;
13
+ }
@@ -0,0 +1 @@
1
+ export * from './code-input.component';
@@ -0,0 +1 @@
1
+ export * from './code-input.module';
@@ -0,0 +1,26 @@
1
+ import { ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
2
+ import { MatDialog } from '@angular/material/dialog';
3
+ import { Observable } from 'rxjs';
4
+ import { TwoFactorManageService } from '../../services';
5
+ import * as i0 from "@angular/core";
6
+ export declare class Fs2faManageComponent implements OnDestroy, OnInit {
7
+ private _cdRef;
8
+ private _dialog;
9
+ private _twoFactorManageService;
10
+ accountVerify: () => Observable<any>;
11
+ defaultCountry: string;
12
+ verificationMethodsFetch: () => Observable<any[]>;
13
+ verificationMethodDelete: (verificationMethod: any) => Observable<any>;
14
+ verificationMethodCreate: (verificationMethod: any) => Observable<any>;
15
+ verificationMethodVerify: (verificationMethod: any) => Observable<any>;
16
+ verificationMethodResend: () => Observable<any>;
17
+ statuses: any;
18
+ private _destroy$;
19
+ constructor(_cdRef: ChangeDetectorRef, _dialog: MatDialog, _twoFactorManageService: TwoFactorManageService);
20
+ ngOnInit(): void;
21
+ manage(): void;
22
+ reload(): void;
23
+ ngOnDestroy(): void;
24
+ static ɵfac: i0.ɵɵFactoryDeclaration<Fs2faManageComponent, never>;
25
+ static ɵcmp: i0.ɵɵComponentDeclaration<Fs2faManageComponent, "fs-2fa-manage", never, { "accountVerify": "accountVerify"; "defaultCountry": "defaultCountry"; "verificationMethodsFetch": "verificationMethodsFetch"; "verificationMethodDelete": "verificationMethodDelete"; "verificationMethodCreate": "verificationMethodCreate"; "verificationMethodVerify": "verificationMethodVerify"; "verificationMethodResend": "verificationMethodResend"; }, {}, never, never>;
26
+ }
@@ -0,0 +1 @@
1
+ export * from './2fa-manage.component';
@@ -0,0 +1,31 @@
1
+ import { ChangeDetectorRef, OnInit } from '@angular/core';
2
+ import { MatDialogRef } from '@angular/material/dialog';
3
+ import { FsFormDirective } from '@firestitch/form';
4
+ import { FsMessage } from '@firestitch/message';
5
+ import { TwoFactorManageService } from '../../services';
6
+ import * as i0 from "@angular/core";
7
+ export declare class AppComponent implements OnInit {
8
+ private _data;
9
+ private _dialogRef;
10
+ private _cdRef;
11
+ private _message;
12
+ form: FsFormDirective;
13
+ twoFactorManageService: TwoFactorManageService;
14
+ mode: 'qr-code' | 'code-input';
15
+ accountId: any;
16
+ qrCodeUrl: any;
17
+ code: any;
18
+ default: any;
19
+ appType: 'google' | 'authy';
20
+ constructor(_data: any, _dialogRef: MatDialogRef<AppComponent>, _cdRef: ChangeDetectorRef, _message: FsMessage);
21
+ ngOnInit(): void;
22
+ appTypeGoogle(): void;
23
+ appTypeAuthy(): void;
24
+ appTypeSelect(appType: any): void;
25
+ codeCompleted(): void;
26
+ codeChanged(code: any): void;
27
+ next(): void;
28
+ verify: () => import("rxjs").Observable<any>;
29
+ static ɵfac: i0.ɵɵFactoryDeclaration<AppComponent, never>;
30
+ static ɵcmp: i0.ɵɵComponentDeclaration<AppComponent, "ng-component", never, {}, {}, never, never>;
31
+ }
@@ -0,0 +1 @@
1
+ export * from './app.component';
@@ -0,0 +1,5 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class DefaultedComponent {
3
+ static ɵfac: i0.ɵɵFactoryDeclaration<DefaultedComponent, never>;
4
+ static ɵcmp: i0.ɵɵComponentDeclaration<DefaultedComponent, "app-defaulted", never, {}, {}, never, never>;
5
+ }
@@ -0,0 +1 @@
1
+ export * from './defaulted.component';
@@ -0,0 +1,25 @@
1
+ import { ChangeDetectorRef } from '@angular/core';
2
+ import { MatDialogRef } from '@angular/material/dialog';
3
+ import { FsMessage } from '@firestitch/message';
4
+ import { FsFormDirective } from '@firestitch/form';
5
+ import { TwoFactorManageService } from '../../services';
6
+ import * as i0 from "@angular/core";
7
+ export declare class EmailComponent {
8
+ private _data;
9
+ private _dialogRef;
10
+ private _cdRef;
11
+ private _message;
12
+ form: FsFormDirective;
13
+ email: any;
14
+ code: any;
15
+ default: any;
16
+ verificationMethod: any;
17
+ twoFactorManageService: TwoFactorManageService;
18
+ constructor(_data: any, _dialogRef: MatDialogRef<EmailComponent>, _cdRef: ChangeDetectorRef, _message: FsMessage);
19
+ resend(): void;
20
+ submit: () => import("rxjs").Observable<any>;
21
+ codeCompleted(): void;
22
+ codeChanged(code: any): void;
23
+ static ɵfac: i0.ɵɵFactoryDeclaration<EmailComponent, never>;
24
+ static ɵcmp: i0.ɵɵComponentDeclaration<EmailComponent, "ng-component", never, {}, {}, never, never>;
25
+ }
@@ -0,0 +1 @@
1
+ export * from './email.component';
@@ -0,0 +1,17 @@
1
+ import { MatDialogRef } from '@angular/material/dialog';
2
+ import { FsMessage } from '@firestitch/message';
3
+ import { FsVerificationMethodType } from '../../../../enums/verification-method-type.enum';
4
+ import { TwoFactorManageService } from '../../services';
5
+ import * as i0 from "@angular/core";
6
+ export declare class EmailsComponent {
7
+ private _data;
8
+ private _dialogRef;
9
+ private _message;
10
+ twoFactorManageService: TwoFactorManageService;
11
+ FsVerificationMethodType: typeof FsVerificationMethodType;
12
+ constructor(_data: any, _dialogRef: MatDialogRef<EmailsComponent>, _message: FsMessage);
13
+ add(): void;
14
+ deleted(): void;
15
+ static ɵfac: i0.ɵɵFactoryDeclaration<EmailsComponent, never>;
16
+ static ɵcmp: i0.ɵɵComponentDeclaration<EmailsComponent, "ng-component", never, {}, {}, never, never>;
17
+ }
@@ -0,0 +1 @@
1
+ export * from './emails.component';
@@ -0,0 +1 @@
1
+ export * from './manage-methods.component';
@@ -0,0 +1,31 @@
1
+ import { ChangeDetectorRef, OnInit, OnDestroy } from '@angular/core';
2
+ import { MatDialog } from '@angular/material/dialog';
3
+ import { FsMessage } from '@firestitch/message';
4
+ import * as i0 from "@angular/core";
5
+ export declare class ManageMethodsComponent implements OnInit, OnDestroy {
6
+ private _data;
7
+ private _cdRef;
8
+ private _dialog;
9
+ private _message;
10
+ verificationMethods: any;
11
+ private _destroy$;
12
+ private _defaultCountry;
13
+ private _twoFactorManageService;
14
+ constructor(_data: any, _cdRef: ChangeDetectorRef, _dialog: MatDialog, _message: FsMessage);
15
+ ngOnInit(): void;
16
+ get defaultSms(): boolean;
17
+ get defaultApp(): boolean;
18
+ get defaultEmail(): boolean;
19
+ get textHasVerificationMethod(): boolean;
20
+ get appHasVerificationMethod(): boolean;
21
+ get emailHasVerificationMethod(): boolean;
22
+ textMessageManage(): void;
23
+ textMessageAdd(): void;
24
+ emailMessageManage(): void;
25
+ emailMessageAdd(): void;
26
+ appRemove(): void;
27
+ appAdd(): void;
28
+ ngOnDestroy(): void;
29
+ static ɵfac: i0.ɵɵFactoryDeclaration<ManageMethodsComponent, never>;
30
+ static ɵcmp: i0.ɵɵComponentDeclaration<ManageMethodsComponent, "ng-component", never, {}, {}, never, never>;
31
+ }
@@ -0,0 +1 @@
1
+ export * from './number.component';
@@ -0,0 +1,26 @@
1
+ import { ChangeDetectorRef } from '@angular/core';
2
+ import { MatDialogRef } from '@angular/material/dialog';
3
+ import { FsMessage } from '@firestitch/message';
4
+ import { FsFormDirective } from '@firestitch/form';
5
+ import { TwoFactorManageService } from '../../services';
6
+ import * as i0 from "@angular/core";
7
+ export declare class NumberComponent {
8
+ private _data;
9
+ private _dialogRef;
10
+ private _cdRef;
11
+ private _message;
12
+ form: FsFormDirective;
13
+ phone: any;
14
+ code: any;
15
+ default: any;
16
+ verificationMethod: any;
17
+ defaultCountry: any;
18
+ twoFactorManageService: TwoFactorManageService;
19
+ constructor(_data: any, _dialogRef: MatDialogRef<NumberComponent>, _cdRef: ChangeDetectorRef, _message: FsMessage);
20
+ resend(): void;
21
+ submit: () => import("rxjs").Observable<any>;
22
+ codeCompleted(): void;
23
+ codeChanged(code: any): void;
24
+ static ɵfac: i0.ɵɵFactoryDeclaration<NumberComponent, never>;
25
+ static ɵcmp: i0.ɵɵComponentDeclaration<NumberComponent, "ng-component", never, {}, {}, never, never>;
26
+ }
@@ -0,0 +1 @@
1
+ export * from './numbers.component';
@@ -0,0 +1,18 @@
1
+ import { MatDialogRef } from '@angular/material/dialog';
2
+ import { FsMessage } from '@firestitch/message';
3
+ import { FsVerificationMethodType } from '../../../../enums/verification-method-type.enum';
4
+ import { TwoFactorManageService } from '../../services';
5
+ import * as i0 from "@angular/core";
6
+ export declare class NumbersComponent {
7
+ private _data;
8
+ private _dialogRef;
9
+ private _message;
10
+ defaultCountry: any;
11
+ twoFactorManageService: TwoFactorManageService;
12
+ FsVerificationMethodType: typeof FsVerificationMethodType;
13
+ constructor(_data: any, _dialogRef: MatDialogRef<NumbersComponent>, _message: FsMessage);
14
+ add(): void;
15
+ deleted(): void;
16
+ static ɵfac: i0.ɵɵFactoryDeclaration<NumbersComponent, never>;
17
+ static ɵcmp: i0.ɵɵComponentDeclaration<NumbersComponent, "ng-component", never, {}, {}, never, never>;
18
+ }
@@ -0,0 +1 @@
1
+ export * from './verification-methods.component';
@@ -0,0 +1,18 @@
1
+ import { OnInit, EventEmitter } from '@angular/core';
2
+ import { FsListConfig } from '@firestitch/list';
3
+ import { FsPrompt } from '@firestitch/prompt';
4
+ import { IFsVerificationMethod } from '../../../../interfaces/verification-method.interface';
5
+ import { TwoFactorManageService } from '../../services';
6
+ import * as i0 from "@angular/core";
7
+ export declare class VerificationMethodsComponent implements OnInit {
8
+ private _prompt;
9
+ twoFactorManageService: TwoFactorManageService;
10
+ type: any;
11
+ deleted: EventEmitter<IFsVerificationMethod>;
12
+ listConfig: FsListConfig;
13
+ textMessageAdd: () => void;
14
+ constructor(_prompt: FsPrompt);
15
+ ngOnInit(): void;
16
+ static ɵfac: i0.ɵɵFactoryDeclaration<VerificationMethodsComponent, never>;
17
+ static ɵcmp: i0.ɵɵComponentDeclaration<VerificationMethodsComponent, "app-verification-methods", never, { "twoFactorManageService": "twoFactorManageService"; "type": "type"; }, { "deleted": "deleted"; }, never, never>;
18
+ }
@@ -0,0 +1,31 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./components/2fa-manage/2fa-manage.component";
3
+ import * as i2 from "./components/manage-methods/manage-methods.component";
4
+ import * as i3 from "./components/numbers/numbers.component";
5
+ import * as i4 from "./components/app/app.component";
6
+ import * as i5 from "./components/email/email.component";
7
+ import * as i6 from "./components/verification-methods/verification-methods.component";
8
+ import * as i7 from "./components/number/number.component";
9
+ import * as i8 from "./components/emails/emails.component";
10
+ import * as i9 from "./components/defaulted/defaulted.component";
11
+ import * as i10 from "@angular/common";
12
+ import * as i11 from "@angular/forms";
13
+ import * as i12 from "@angular/material/button";
14
+ import * as i13 from "@angular/material/dialog";
15
+ import * as i14 from "@angular/material/input";
16
+ import * as i15 from "@angular/material/icon";
17
+ import * as i16 from "@angular/material/checkbox";
18
+ import * as i17 from "@firestitch/dialog";
19
+ import * as i18 from "@firestitch/list";
20
+ import * as i19 from "@firestitch/form";
21
+ import * as i20 from "@firestitch/label";
22
+ import * as i21 from "@firestitch/phone";
23
+ import * as i22 from "@firestitch/skeleton";
24
+ import * as i23 from "@firestitch/country";
25
+ import * as i24 from "../code-input/code-input.module";
26
+ import * as i25 from "ng-qrcode";
27
+ export declare class Fs2faManageModule {
28
+ static ɵfac: i0.ɵɵFactoryDeclaration<Fs2faManageModule, never>;
29
+ static ɵmod: i0.ɵɵNgModuleDeclaration<Fs2faManageModule, [typeof i1.Fs2faManageComponent, typeof i2.ManageMethodsComponent, typeof i3.NumbersComponent, typeof i4.AppComponent, typeof i5.EmailComponent, typeof i6.VerificationMethodsComponent, typeof i7.NumberComponent, typeof i8.EmailsComponent, typeof i9.DefaultedComponent], [typeof i10.CommonModule, typeof i11.FormsModule, typeof i12.MatButtonModule, typeof i13.MatDialogModule, typeof i14.MatInputModule, typeof i15.MatIconModule, typeof i16.MatCheckboxModule, typeof i17.FsDialogModule, typeof i18.FsListModule, typeof i19.FsFormModule, typeof i20.FsLabelModule, typeof i21.FsPhoneModule, typeof i22.FsSkeletonModule, typeof i23.FsCountryModule, typeof i24.CodeInputModule, typeof i25.QrCodeModule], [typeof i1.Fs2faManageComponent]>;
30
+ static ɵinj: i0.ɵɵInjectorDeclaration<Fs2faManageModule>;
31
+ }
@@ -0,0 +1 @@
1
+ export * from './two-factor-manage.service';
@@ -0,0 +1,39 @@
1
+ import { OnDestroy } from '@angular/core';
2
+ import { MatDialog } from '@angular/material/dialog';
3
+ import { Observable } from 'rxjs';
4
+ import * as i0 from "@angular/core";
5
+ export declare class TwoFactorManageService implements OnDestroy {
6
+ private _dialog;
7
+ private _destroy$;
8
+ private _verificationMethodFetch;
9
+ private _verificationMethodCreate;
10
+ private _verificationMethodDelete;
11
+ private _verificationMethodVerify;
12
+ private _verificationMethodResend;
13
+ private _accountVerify;
14
+ private _verificationMethods$;
15
+ constructor(_dialog: MatDialog);
16
+ get verificationMethods$(): Observable<any[]>;
17
+ get verificationMethods(): any[];
18
+ get hasVerificationMethods(): boolean;
19
+ getVerificationMethods(type: any): any[];
20
+ hasVerificationMethod(type: any): boolean;
21
+ registerVerificationMethodResend(value: any): void;
22
+ registerVerificationMethodFetch(value: any): void;
23
+ registerVerificationMethodDelete(value: any): void;
24
+ registerVerificationMethodCreate(value: any): void;
25
+ registerVerificationMethodVerify(value: any): void;
26
+ registerAccountVerify(value: any): void;
27
+ verificationMethodDelete(verificationMethod: any): Observable<any>;
28
+ verificationMethodVerify(verificationMethod: any): Observable<any>;
29
+ verificationMethodCreate(verificationMethod: any): Observable<any>;
30
+ verificationMethodResend(): Observable<any>;
31
+ verificationMethodFetch(): void;
32
+ accountVerify(): Observable<any>;
33
+ ngOnDestroy(): void;
34
+ addSms(defaultCountry: any): Observable<any>;
35
+ addEmail(): Observable<any>;
36
+ addApp(): Observable<any>;
37
+ static ɵfac: i0.ɵɵFactoryDeclaration<TwoFactorManageService, never>;
38
+ static ɵprov: i0.ɵɵInjectableDeclaration<TwoFactorManageService>;
39
+ }
@@ -0,0 +1,31 @@
1
+ import { AfterViewInit, ChangeDetectorRef, EventEmitter, OnDestroy, OnInit } from '@angular/core';
2
+ import { FsDialog } from '@firestitch/dialog';
3
+ import { IFsVerificationMethod } from '../../../../interfaces/verification-method.interface';
4
+ import { IFsVerificationProvider } from '../../../../interfaces/verification-provider.interface';
5
+ import { FsVerificationMethodType } from '../../../../enums/verification-method-type.enum';
6
+ import { Fs2faVerificationCodeComponent } from '../2fa-verification-code/2fa-verification-code.component';
7
+ import * as i0 from "@angular/core";
8
+ export declare class Fs2faVerificationComponent implements OnDestroy, AfterViewInit, OnInit {
9
+ verificationProvider: IFsVerificationProvider;
10
+ private _cdRef;
11
+ private _dialog;
12
+ verificationCodeComponent: Fs2faVerificationCodeComponent;
13
+ method: IFsVerificationMethod;
14
+ verified: EventEmitter<unknown>;
15
+ codeChanged: EventEmitter<unknown>;
16
+ codeCompleted: EventEmitter<unknown>;
17
+ resendInProgress: boolean;
18
+ code: string;
19
+ trustedDevice: boolean;
20
+ FsVerificationMethodType: typeof FsVerificationMethodType;
21
+ private _destroy$;
22
+ constructor(verificationProvider: IFsVerificationProvider, _cdRef: ChangeDetectorRef, _dialog: FsDialog);
23
+ ngOnInit(): void;
24
+ ngOnDestroy(): void;
25
+ verify(): void;
26
+ ngAfterViewInit(): void;
27
+ resend(): void;
28
+ showVerificationMethods(): void;
29
+ static ɵfac: i0.ɵɵFactoryDeclaration<Fs2faVerificationComponent, never>;
30
+ static ɵcmp: i0.ɵɵComponentDeclaration<Fs2faVerificationComponent, "fs-2fa-verification", never, { "method": "method"; }, { "verified": "verified"; "codeChanged": "codeChanged"; "codeCompleted": "codeCompleted"; }, never, never>;
31
+ }
@@ -0,0 +1,17 @@
1
+ import { EventEmitter } from '@angular/core';
2
+ import { CodeInputComponent } from '../../../../modules/code-input/components/code-input';
3
+ import { FsVerificationMethodType } from '../../../../enums/verification-method-type.enum';
4
+ import { IFsVerificationMethod } from '../../../../interfaces/verification-method.interface';
5
+ import * as i0 from "@angular/core";
6
+ export declare class Fs2faVerificationCodeComponent {
7
+ codeInputComponent: CodeInputComponent;
8
+ method: IFsVerificationMethod;
9
+ code: any;
10
+ codeChanged: EventEmitter<string>;
11
+ codeCompleted: EventEmitter<void>;
12
+ FsVerificationMethodType: typeof FsVerificationMethodType;
13
+ codeChange(code: any): void;
14
+ focus(): void;
15
+ static ɵfac: i0.ɵɵFactoryDeclaration<Fs2faVerificationCodeComponent, never>;
16
+ static ɵcmp: i0.ɵɵComponentDeclaration<Fs2faVerificationCodeComponent, "fs-2fa-verification-code", never, { "method": "method"; "code": "code"; }, { "codeChanged": "codeChanged"; "codeCompleted": "codeCompleted"; }, never, never>;
17
+ }
@@ -1,10 +1,10 @@
1
1
  import { MatDialogRef } from '@angular/material/dialog';
2
2
  import { Observable } from 'rxjs';
3
- import { FsVerificationMethodType } from '../../enums/verification-method-type.enum';
4
- import { IFsVerificationProvider } from '../../interfaces/verification-provider.interface';
5
- import { IFsVerificationMethod } from '../../interfaces/verification-method.interface';
3
+ import { FsVerificationMethodType } from '../../../../enums/verification-method-type.enum';
4
+ import { IFsVerificationProvider } from '../../../../interfaces/verification-provider.interface';
5
+ import { IFsVerificationMethod } from '../../../../interfaces/verification-method.interface';
6
6
  import * as i0 from "@angular/core";
7
- export declare class Fs2FaVerificationMethodsComponent {
7
+ export declare class Fs2faVerificationMethodsComponent {
8
8
  private _verificationProvider;
9
9
  private _dialogData;
10
10
  private _dialogRef;
@@ -13,11 +13,11 @@ export declare class Fs2FaVerificationMethodsComponent {
13
13
  code: string;
14
14
  methods$: Observable<Record<string, IFsVerificationMethod[]>>;
15
15
  readonly verificationMethodType: typeof FsVerificationMethodType;
16
- constructor(_verificationProvider: IFsVerificationProvider, _dialogData: any, _dialogRef: MatDialogRef<Fs2FaVerificationMethodsComponent>);
16
+ constructor(_verificationProvider: IFsVerificationProvider, _dialogData: any, _dialogRef: MatDialogRef<Fs2faVerificationMethodsComponent>);
17
17
  compareWith(o1: any, o2: any): boolean;
18
18
  setVerificationMethod: () => Observable<IFsVerificationMethod>;
19
19
  private _setActiveMethod;
20
20
  private _initMethods;
21
- static ɵfac: i0.ɵɵFactoryDeclaration<Fs2FaVerificationMethodsComponent, never>;
22
- static ɵcmp: i0.ɵɵComponentDeclaration<Fs2FaVerificationMethodsComponent, "ng-component", never, {}, {}, never, never>;
21
+ static ɵfac: i0.ɵɵFactoryDeclaration<Fs2faVerificationMethodsComponent, never>;
22
+ static ɵcmp: i0.ɵɵComponentDeclaration<Fs2faVerificationMethodsComponent, "ng-component", never, {}, {}, never, never>;
23
23
  }
@@ -0,0 +1,23 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./components/2fa-verification/2fa-verification.component";
3
+ import * as i2 from "./components/2fa-verification-code/2fa-verification-code.component";
4
+ import * as i3 from "./components/2fa-verification-methods/2fa-verification-methods.component";
5
+ import * as i4 from "@angular/common";
6
+ import * as i5 from "@angular/forms";
7
+ import * as i6 from "@angular/material/form-field";
8
+ import * as i7 from "@angular/material/input";
9
+ import * as i8 from "@angular/material/button";
10
+ import * as i9 from "@firestitch/form";
11
+ import * as i10 from "@firestitch/radiogroup";
12
+ import * as i11 from "@firestitch/dialog";
13
+ import * as i12 from "../code-input/code-input.module";
14
+ import * as i13 from "@angular/material/checkbox";
15
+ import * as i14 from "@angular/material/progress-spinner";
16
+ import * as i15 from "@firestitch/skeleton";
17
+ import * as i16 from "@angular/material/icon";
18
+ import * as i17 from "@angular/material/radio";
19
+ export declare class Fs2faVerificationModule {
20
+ static ɵfac: i0.ɵɵFactoryDeclaration<Fs2faVerificationModule, never>;
21
+ static ɵmod: i0.ɵɵNgModuleDeclaration<Fs2faVerificationModule, [typeof i1.Fs2faVerificationComponent, typeof i2.Fs2faVerificationCodeComponent, typeof i3.Fs2faVerificationMethodsComponent], [typeof i4.CommonModule, typeof i5.FormsModule, typeof i6.MatFormFieldModule, typeof i7.MatInputModule, typeof i8.MatButtonModule, typeof i9.FsFormModule, typeof i10.FsRadioGroupModule, typeof i11.FsDialogModule, typeof i12.CodeInputModule, typeof i13.MatCheckboxModule, typeof i14.MatProgressSpinnerModule, typeof i15.FsSkeletonModule, typeof i15.FsSkeletonModule, typeof i16.MatIconModule, typeof i17.MatRadioModule], [typeof i1.Fs2faVerificationComponent]>;
22
+ static ɵinj: i0.ɵɵInjectorDeclaration<Fs2faVerificationModule>;
23
+ }