@firestitch/2fa 12.4.4 → 12.5.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.
- package/app/modules/{manage → defaulted}/components/defaulted/defaulted.component.d.ts +0 -0
- package/app/modules/{manage → defaulted}/components/defaulted/index.d.ts +0 -0
- package/app/modules/defaulted/defaulted.module.d.ts +7 -0
- package/app/modules/manage/components/verification-methods/verification-methods.component.d.ts +2 -0
- package/app/modules/manage/fs-2f-manage.module.d.ts +19 -19
- package/app/modules/verification-methods/components/verification-methods/verification-methods.component.d.ts +21 -0
- package/app/modules/verification-methods/fs-2f-verification-methods.module.d.ts +14 -0
- package/bundles/firestitch-2fa.umd.js +133 -15
- package/bundles/firestitch-2fa.umd.js.map +1 -1
- package/esm2015/app/modules/{manage → defaulted}/components/defaulted/defaulted.component.js +1 -1
- package/esm2015/app/modules/defaulted/components/defaulted/index.js +2 -0
- package/esm2015/app/modules/defaulted/defaulted.module.js +18 -0
- package/esm2015/app/modules/manage/components/app/app.component.js +3 -2
- package/esm2015/app/modules/manage/components/email/email.component.js +3 -2
- package/esm2015/app/modules/manage/components/manage-methods/manage-methods.component.js +1 -1
- package/esm2015/app/modules/manage/components/number/number.component.js +3 -2
- package/esm2015/app/modules/manage/components/verification-methods/verification-methods.component.js +5 -3
- package/esm2015/app/modules/manage/fs-2f-manage.module.js +7 -6
- package/esm2015/app/modules/verification-methods/components/verification-methods/verification-methods.component.js +66 -0
- package/esm2015/app/modules/verification-methods/fs-2f-verification-methods.module.js +48 -0
- package/esm2015/public_api.js +3 -1
- package/fesm2015/firestitch-2fa.js +125 -17
- package/fesm2015/firestitch-2fa.js.map +1 -1
- package/package.json +1 -1
- package/public_api.d.ts +2 -0
- package/esm2015/app/modules/manage/components/defaulted/index.js +0 -2
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./components/defaulted/defaulted.component";
|
|
3
|
+
export declare class DefautledModule {
|
|
4
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DefautledModule, never>;
|
|
5
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DefautledModule, [typeof i1.DefaultedComponent], never, [typeof i1.DefaultedComponent]>;
|
|
6
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<DefautledModule>;
|
|
7
|
+
}
|
package/app/modules/manage/components/verification-methods/verification-methods.component.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import { FsListConfig } from '@firestitch/list';
|
|
|
3
3
|
import { FsPrompt } from '@firestitch/prompt';
|
|
4
4
|
import { IFsVerificationMethod } from '../../../../interfaces/verification-method.interface';
|
|
5
5
|
import { TwoFactorManageService } from '../../services';
|
|
6
|
+
import { VerificationMethodType } from '../../../../enums/verification-method-type.enum';
|
|
6
7
|
import * as i0 from "@angular/core";
|
|
7
8
|
export declare class VerificationMethodsComponent implements OnInit {
|
|
8
9
|
private _prompt;
|
|
@@ -10,6 +11,7 @@ export declare class VerificationMethodsComponent implements OnInit {
|
|
|
10
11
|
type: any;
|
|
11
12
|
deleted: EventEmitter<IFsVerificationMethod>;
|
|
12
13
|
listConfig: FsListConfig;
|
|
14
|
+
VerificationMethodType: typeof VerificationMethodType;
|
|
13
15
|
textMessageAdd: () => void;
|
|
14
16
|
constructor(_prompt: FsPrompt);
|
|
15
17
|
ngOnInit(): void;
|
|
@@ -7,26 +7,26 @@ import * as i5 from "./components/email/email.component";
|
|
|
7
7
|
import * as i6 from "./components/verification-methods/verification-methods.component";
|
|
8
8
|
import * as i7 from "./components/number/number.component";
|
|
9
9
|
import * as i8 from "./components/emails/emails.component";
|
|
10
|
-
import * as i9 from "
|
|
11
|
-
import * as i10 from "@angular/
|
|
12
|
-
import * as i11 from "@angular/
|
|
13
|
-
import * as i12 from "@angular/material/
|
|
14
|
-
import * as i13 from "@angular/material/
|
|
15
|
-
import * as i14 from "@angular/material/
|
|
16
|
-
import * as i15 from "@angular/material/
|
|
17
|
-
import * as i16 from "@
|
|
18
|
-
import * as i17 from "@firestitch/
|
|
19
|
-
import * as i18 from "@firestitch/
|
|
20
|
-
import * as i19 from "@firestitch/
|
|
21
|
-
import * as i20 from "@firestitch/
|
|
22
|
-
import * as i21 from "@firestitch/
|
|
23
|
-
import * as i22 from "@firestitch/
|
|
24
|
-
import * as i23 from "
|
|
25
|
-
import * as i24 from "
|
|
26
|
-
import * as i25 from "
|
|
27
|
-
import * as i26 from "../
|
|
10
|
+
import * as i9 from "@angular/common";
|
|
11
|
+
import * as i10 from "@angular/forms";
|
|
12
|
+
import * as i11 from "@angular/material/button";
|
|
13
|
+
import * as i12 from "@angular/material/dialog";
|
|
14
|
+
import * as i13 from "@angular/material/input";
|
|
15
|
+
import * as i14 from "@angular/material/icon";
|
|
16
|
+
import * as i15 from "@angular/material/checkbox";
|
|
17
|
+
import * as i16 from "@firestitch/dialog";
|
|
18
|
+
import * as i17 from "@firestitch/list";
|
|
19
|
+
import * as i18 from "@firestitch/form";
|
|
20
|
+
import * as i19 from "@firestitch/label";
|
|
21
|
+
import * as i20 from "@firestitch/phone";
|
|
22
|
+
import * as i21 from "@firestitch/skeleton";
|
|
23
|
+
import * as i22 from "@firestitch/country";
|
|
24
|
+
import * as i23 from "../code-input/code-input.module";
|
|
25
|
+
import * as i24 from "ng-qrcode";
|
|
26
|
+
import * as i25 from "../resend/resend.module";
|
|
27
|
+
import * as i26 from "../defaulted/defaulted.module";
|
|
28
28
|
export declare class Fs2faManageModule {
|
|
29
29
|
static ɵfac: i0.ɵɵFactoryDeclaration<Fs2faManageModule, never>;
|
|
30
|
-
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.
|
|
30
|
+
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.CommonModule, typeof i10.FormsModule, typeof i11.MatButtonModule, typeof i12.MatDialogModule, typeof i13.MatInputModule, typeof i14.MatIconModule, typeof i15.MatCheckboxModule, typeof i16.FsDialogModule, typeof i17.FsListModule, typeof i18.FsFormModule, typeof i19.FsLabelModule, typeof i20.FsPhoneModule, typeof i21.FsSkeletonModule, typeof i22.FsCountryModule, typeof i23.CodeInputModule, typeof i24.QrCodeModule, typeof i25.ResendModule, typeof i26.DefautledModule], [typeof i1.Fs2faManageComponent]>;
|
|
31
31
|
static ɵinj: i0.ɵɵInjectorDeclaration<Fs2faManageModule>;
|
|
32
32
|
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { FsListComponent, FsListConfig } from '@firestitch/list';
|
|
3
|
+
import { FsPrompt } from '@firestitch/prompt';
|
|
4
|
+
import { Observable } from 'rxjs';
|
|
5
|
+
import { IFsVerificationMethod } from '../../../../interfaces/verification-method.interface';
|
|
6
|
+
import { VerificationMethodType } from '../../../../enums/verification-method-type.enum';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export declare class VerificationMethodsComponent implements OnInit {
|
|
9
|
+
private _prompt;
|
|
10
|
+
list: FsListComponent;
|
|
11
|
+
accountVerify: () => Observable<any>;
|
|
12
|
+
verificationMethodsFetch: (query: any) => Observable<IFsVerificationMethod[]>;
|
|
13
|
+
verificationMethodDelete: (verificationMethod: IFsVerificationMethod) => Observable<any>;
|
|
14
|
+
listConfig: FsListConfig;
|
|
15
|
+
VerificationMethodType: typeof VerificationMethodType;
|
|
16
|
+
textMessageAdd: () => void;
|
|
17
|
+
constructor(_prompt: FsPrompt);
|
|
18
|
+
ngOnInit(): void;
|
|
19
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<VerificationMethodsComponent, never>;
|
|
20
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<VerificationMethodsComponent, "fs-2fa-verification-methods", never, { "accountVerify": "accountVerify"; "verificationMethodsFetch": "verificationMethodsFetch"; "verificationMethodDelete": "verificationMethodDelete"; }, {}, never, never>;
|
|
21
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./components/verification-methods/verification-methods.component";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
import * as i3 from "@angular/forms";
|
|
5
|
+
import * as i4 from "@angular/material/icon";
|
|
6
|
+
import * as i5 from "@firestitch/list";
|
|
7
|
+
import * as i6 from "@firestitch/phone";
|
|
8
|
+
import * as i7 from "@firestitch/country";
|
|
9
|
+
import * as i8 from "../defaulted/defaulted.module";
|
|
10
|
+
export declare class Fs2faVerificationMethodsModule {
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<Fs2faVerificationMethodsModule, never>;
|
|
12
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<Fs2faVerificationMethodsModule, [typeof i1.VerificationMethodsComponent], [typeof i2.CommonModule, typeof i3.FormsModule, typeof i4.MatIconModule, typeof i5.FsListModule, typeof i6.FsPhoneModule, typeof i7.FsCountryModule, typeof i8.DefautledModule], [typeof i1.VerificationMethodsComponent]>;
|
|
13
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<Fs2faVerificationMethodsModule>;
|
|
14
|
+
}
|
|
@@ -491,7 +491,7 @@
|
|
|
491
491
|
var _this = this;
|
|
492
492
|
this.appType = appType;
|
|
493
493
|
this.twoFactorManageService.verificationMethodCreate({
|
|
494
|
-
type:
|
|
494
|
+
type: exports.VerificationMethodType.App,
|
|
495
495
|
default: this.default,
|
|
496
496
|
})
|
|
497
497
|
.subscribe(function (response) {
|
|
@@ -554,7 +554,7 @@
|
|
|
554
554
|
_this._dialogRef.close(verificationMethod);
|
|
555
555
|
})) :
|
|
556
556
|
_this.twoFactorManageService.verificationMethodCreate({
|
|
557
|
-
type:
|
|
557
|
+
type: exports.VerificationMethodType.Email,
|
|
558
558
|
email: _this.email,
|
|
559
559
|
default: _this.default,
|
|
560
560
|
})
|
|
@@ -621,7 +621,7 @@
|
|
|
621
621
|
_this._dialogRef.close(verificationMethod);
|
|
622
622
|
})) :
|
|
623
623
|
_this.twoFactorManageService.verificationMethodCreate({
|
|
624
|
-
type:
|
|
624
|
+
type: exports.VerificationMethodType.Sms,
|
|
625
625
|
phoneNumber: _this.phone.number,
|
|
626
626
|
phoneCode: _this.phone.countryCode,
|
|
627
627
|
phoneCountry: _this.phone.isoCode,
|
|
@@ -837,10 +837,11 @@
|
|
|
837
837
|
}]
|
|
838
838
|
}] });
|
|
839
839
|
|
|
840
|
-
var VerificationMethodsComponent = /** @class */ (function () {
|
|
840
|
+
var VerificationMethodsComponent$1 = /** @class */ (function () {
|
|
841
841
|
function VerificationMethodsComponent(_prompt) {
|
|
842
842
|
this._prompt = _prompt;
|
|
843
843
|
this.deleted = new i0.EventEmitter();
|
|
844
|
+
this.VerificationMethodType = exports.VerificationMethodType;
|
|
844
845
|
}
|
|
845
846
|
VerificationMethodsComponent.prototype.ngOnInit = function () {
|
|
846
847
|
var _this = this;
|
|
@@ -873,9 +874,9 @@
|
|
|
873
874
|
};
|
|
874
875
|
return VerificationMethodsComponent;
|
|
875
876
|
}());
|
|
876
|
-
VerificationMethodsComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: VerificationMethodsComponent, deps: [{ token: i1__namespace$3.FsPrompt }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
877
|
-
VerificationMethodsComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: VerificationMethodsComponent, selector: "app-verification-methods", inputs: { twoFactorManageService: "twoFactorManageService", type: "type" }, outputs: { deleted: "deleted" }, ngImport: i0__namespace, template: "<fs-list [config]=\"listConfig\">\n <fs-list-column class=\"col-name\">\n <ng-template fs-list-cell let-row=\"row\">\n <div class=\"row\">\n <ng-container *ngIf=\"row.type ===
|
|
878
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: VerificationMethodsComponent, decorators: [{
|
|
877
|
+
VerificationMethodsComponent$1.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: VerificationMethodsComponent$1, deps: [{ token: i1__namespace$3.FsPrompt }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
878
|
+
VerificationMethodsComponent$1.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: VerificationMethodsComponent$1, selector: "app-verification-methods", inputs: { twoFactorManageService: "twoFactorManageService", type: "type" }, outputs: { deleted: "deleted" }, ngImport: i0__namespace, template: "<fs-list [config]=\"listConfig\">\n <fs-list-column class=\"col-name\">\n <ng-template fs-list-cell let-row=\"row\">\n <div class=\"row\">\n <ng-container *ngIf=\"row.type === VerificationMethodType.Sms\">\n <fs-country [code]=\"row.phoneCountry\" [showName]=\"false\"></fs-country> {{row.phoneNumber | fsPhone}}\n </ng-container>\n\n <ng-container *ngIf=\"row.type === VerificationMethodType.Email\">\n {{row.email}}\n </ng-container>\n \n <app-defaulted *ngIf=\"row.default\"></app-defaulted>\n </div>\n </ng-template>\n </fs-list-column>\n</fs-list>", styles: [":host ::ng-deep .col-name .row{display:flex;align-items:center}fs-country{margin-right:5px}app-defaulted{margin-left:5px}\n"], components: [{ type: i2__namespace$1.FsListComponent, selector: "fs-list", inputs: ["config", "loaderLines"], outputs: ["filtersReady"] }, { type: i3__namespace$3.FsCountryComponent, selector: "fs-country", inputs: ["code", "showIcon", "showName", "region", "width"] }, { type: DefaultedComponent, selector: "app-defaulted" }], directives: [{ type: i2__namespace$1.FsListColumnDirective, selector: "fs-list-column", inputs: ["show", "title", "name", "customize", "sortable", "sortableDefault", "direction", "align", "width", "class"] }, { type: i2__namespace$1.FsListCellDirective, selector: "[fs-list-cell]", inputs: ["colspan", "align", "class"] }, { type: i9__namespace$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "fsPhone": i7__namespace.FsPhonePipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
|
|
879
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: VerificationMethodsComponent$1, decorators: [{
|
|
879
880
|
type: i0.Component,
|
|
880
881
|
args: [{
|
|
881
882
|
selector: 'app-verification-methods',
|
|
@@ -913,7 +914,7 @@
|
|
|
913
914
|
return NumbersComponent;
|
|
914
915
|
}());
|
|
915
916
|
NumbersComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: NumbersComponent, deps: [{ token: i1.MAT_DIALOG_DATA }, { token: i1__namespace.MatDialogRef }, { token: i2__namespace.FsMessage }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
916
|
-
NumbersComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: NumbersComponent, selector: "ng-component", ngImport: i0__namespace, template: "<fs-dialog>\n <h1 mat-dialog-title>\n Text Message Numbers\n </h1>\n <mat-dialog-content>\n <app-verification-methods\n [type]=\"VerificationMethodType.Sms\"\n [twoFactorManageService]=\"twoFactorManageService\"\n (deleted)=\"deleted()\">\n </app-verification-methods>\n </mat-dialog-content>\n <mat-dialog-actions>\n <button\n mat-button\n type=\"button\"\n color=\"primary\"\n [mat-dialog-close]=\"undefined\">\n Close\n </button>\n <button\n mat-button\n (click)=\"add()\"\n type=\"button\">\n Add Number\n </button>\n </mat-dialog-actions>\n</fs-dialog>\n", styles: [""], components: [{ type: i3__namespace.FsDialogComponent, selector: "fs-dialog", inputs: ["mobileMode"] }, { type: VerificationMethodsComponent, selector: "app-verification-methods", inputs: ["twoFactorManageService", "type"], outputs: ["deleted"] }, { type: i5__namespace$1.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }], directives: [{ type: i1__namespace.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { type: i1__namespace.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { type: i1__namespace.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]" }, { type: i1__namespace.MatDialogClose, selector: "[mat-dialog-close], [matDialogClose]", inputs: ["type", "mat-dialog-close", "aria-label", "matDialogClose"], exportAs: ["matDialogClose"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
|
|
917
|
+
NumbersComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: NumbersComponent, selector: "ng-component", ngImport: i0__namespace, template: "<fs-dialog>\n <h1 mat-dialog-title>\n Text Message Numbers\n </h1>\n <mat-dialog-content>\n <app-verification-methods\n [type]=\"VerificationMethodType.Sms\"\n [twoFactorManageService]=\"twoFactorManageService\"\n (deleted)=\"deleted()\">\n </app-verification-methods>\n </mat-dialog-content>\n <mat-dialog-actions>\n <button\n mat-button\n type=\"button\"\n color=\"primary\"\n [mat-dialog-close]=\"undefined\">\n Close\n </button>\n <button\n mat-button\n (click)=\"add()\"\n type=\"button\">\n Add Number\n </button>\n </mat-dialog-actions>\n</fs-dialog>\n", styles: [""], components: [{ type: i3__namespace.FsDialogComponent, selector: "fs-dialog", inputs: ["mobileMode"] }, { type: VerificationMethodsComponent$1, selector: "app-verification-methods", inputs: ["twoFactorManageService", "type"], outputs: ["deleted"] }, { type: i5__namespace$1.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }], directives: [{ type: i1__namespace.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { type: i1__namespace.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { type: i1__namespace.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]" }, { type: i1__namespace.MatDialogClose, selector: "[mat-dialog-close], [matDialogClose]", inputs: ["type", "mat-dialog-close", "aria-label", "matDialogClose"], exportAs: ["matDialogClose"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
|
|
917
918
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: NumbersComponent, decorators: [{
|
|
918
919
|
type: i0.Component,
|
|
919
920
|
args: [{
|
|
@@ -949,7 +950,7 @@
|
|
|
949
950
|
return EmailsComponent;
|
|
950
951
|
}());
|
|
951
952
|
EmailsComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: EmailsComponent, deps: [{ token: i1.MAT_DIALOG_DATA }, { token: i1__namespace.MatDialogRef }, { token: i2__namespace.FsMessage }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
952
|
-
EmailsComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: EmailsComponent, selector: "ng-component", ngImport: i0__namespace, template: "<fs-dialog>\n <h1 mat-dialog-title>\n Emails\n </h1>\n <mat-dialog-content>\n <app-verification-methods\n [type]=\"VerificationMethodType.Email\"\n [twoFactorManageService]=\"twoFactorManageService\"\n (deleted)=\"deleted()\">\n </app-verification-methods>\n </mat-dialog-content>\n <mat-dialog-actions>\n <button\n mat-button\n type=\"button\"\n color=\"primary\"\n [mat-dialog-close]=\"undefined\">\n Close\n </button>\n <button\n mat-button\n (click)=\"add()\"\n type=\"button\">\n Add Email\n </button>\n </mat-dialog-actions>\n</fs-dialog>\n", styles: [""], components: [{ type: i3__namespace.FsDialogComponent, selector: "fs-dialog", inputs: ["mobileMode"] }, { type: VerificationMethodsComponent, selector: "app-verification-methods", inputs: ["twoFactorManageService", "type"], outputs: ["deleted"] }, { type: i5__namespace$1.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }], directives: [{ type: i1__namespace.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { type: i1__namespace.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { type: i1__namespace.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]" }, { type: i1__namespace.MatDialogClose, selector: "[mat-dialog-close], [matDialogClose]", inputs: ["type", "mat-dialog-close", "aria-label", "matDialogClose"], exportAs: ["matDialogClose"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
|
|
953
|
+
EmailsComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: EmailsComponent, selector: "ng-component", ngImport: i0__namespace, template: "<fs-dialog>\n <h1 mat-dialog-title>\n Emails\n </h1>\n <mat-dialog-content>\n <app-verification-methods\n [type]=\"VerificationMethodType.Email\"\n [twoFactorManageService]=\"twoFactorManageService\"\n (deleted)=\"deleted()\">\n </app-verification-methods>\n </mat-dialog-content>\n <mat-dialog-actions>\n <button\n mat-button\n type=\"button\"\n color=\"primary\"\n [mat-dialog-close]=\"undefined\">\n Close\n </button>\n <button\n mat-button\n (click)=\"add()\"\n type=\"button\">\n Add Email\n </button>\n </mat-dialog-actions>\n</fs-dialog>\n", styles: [""], components: [{ type: i3__namespace.FsDialogComponent, selector: "fs-dialog", inputs: ["mobileMode"] }, { type: VerificationMethodsComponent$1, selector: "app-verification-methods", inputs: ["twoFactorManageService", "type"], outputs: ["deleted"] }, { type: i5__namespace$1.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }], directives: [{ type: i1__namespace.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { type: i1__namespace.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { type: i1__namespace.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]" }, { type: i1__namespace.MatDialogClose, selector: "[mat-dialog-close], [matDialogClose]", inputs: ["type", "mat-dialog-close", "aria-label", "matDialogClose"], exportAs: ["matDialogClose"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
|
|
953
954
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: EmailsComponent, decorators: [{
|
|
954
955
|
type: i0.Component,
|
|
955
956
|
args: [{
|
|
@@ -1195,6 +1196,24 @@
|
|
|
1195
1196
|
type: i0.Input
|
|
1196
1197
|
}] } });
|
|
1197
1198
|
|
|
1199
|
+
var DefautledModule = /** @class */ (function () {
|
|
1200
|
+
function DefautledModule() {
|
|
1201
|
+
}
|
|
1202
|
+
return DefautledModule;
|
|
1203
|
+
}());
|
|
1204
|
+
DefautledModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: DefautledModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
1205
|
+
DefautledModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: DefautledModule, declarations: [DefaultedComponent], exports: [DefaultedComponent] });
|
|
1206
|
+
DefautledModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: DefautledModule });
|
|
1207
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: DefautledModule, decorators: [{
|
|
1208
|
+
type: i0.NgModule,
|
|
1209
|
+
args: [{
|
|
1210
|
+
declarations: [
|
|
1211
|
+
DefaultedComponent,
|
|
1212
|
+
],
|
|
1213
|
+
exports: [DefaultedComponent],
|
|
1214
|
+
}]
|
|
1215
|
+
}] });
|
|
1216
|
+
|
|
1198
1217
|
var Fs2faManageModule = /** @class */ (function () {
|
|
1199
1218
|
function Fs2faManageModule() {
|
|
1200
1219
|
}
|
|
@@ -1206,10 +1225,9 @@
|
|
|
1206
1225
|
NumbersComponent,
|
|
1207
1226
|
AppComponent,
|
|
1208
1227
|
EmailComponent,
|
|
1209
|
-
VerificationMethodsComponent,
|
|
1228
|
+
VerificationMethodsComponent$1,
|
|
1210
1229
|
NumberComponent,
|
|
1211
|
-
EmailsComponent,
|
|
1212
|
-
DefaultedComponent], imports: [i9$1.CommonModule,
|
|
1230
|
+
EmailsComponent], imports: [i9$1.CommonModule,
|
|
1213
1231
|
i9.FormsModule,
|
|
1214
1232
|
i5$1.MatButtonModule,
|
|
1215
1233
|
i1.MatDialogModule,
|
|
@@ -1225,7 +1243,8 @@
|
|
|
1225
1243
|
i3$3.FsCountryModule,
|
|
1226
1244
|
CodeInputModule,
|
|
1227
1245
|
i4$1.QrCodeModule,
|
|
1228
|
-
ResendModule
|
|
1246
|
+
ResendModule,
|
|
1247
|
+
DefautledModule], exports: [Fs2faManageComponent] });
|
|
1229
1248
|
Fs2faManageModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: Fs2faManageModule, imports: [[
|
|
1230
1249
|
i9$1.CommonModule,
|
|
1231
1250
|
i9.FormsModule,
|
|
@@ -1244,6 +1263,7 @@
|
|
|
1244
1263
|
CodeInputModule,
|
|
1245
1264
|
i4$1.QrCodeModule,
|
|
1246
1265
|
ResendModule,
|
|
1266
|
+
DefautledModule,
|
|
1247
1267
|
]] });
|
|
1248
1268
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: Fs2faManageModule, decorators: [{
|
|
1249
1269
|
type: i0.NgModule,
|
|
@@ -1266,6 +1286,7 @@
|
|
|
1266
1286
|
CodeInputModule,
|
|
1267
1287
|
i4$1.QrCodeModule,
|
|
1268
1288
|
ResendModule,
|
|
1289
|
+
DefautledModule,
|
|
1269
1290
|
],
|
|
1270
1291
|
declarations: [
|
|
1271
1292
|
Fs2faManageComponent,
|
|
@@ -1273,15 +1294,110 @@
|
|
|
1273
1294
|
NumbersComponent,
|
|
1274
1295
|
AppComponent,
|
|
1275
1296
|
EmailComponent,
|
|
1276
|
-
VerificationMethodsComponent,
|
|
1297
|
+
VerificationMethodsComponent$1,
|
|
1277
1298
|
NumberComponent,
|
|
1278
1299
|
EmailsComponent,
|
|
1279
|
-
DefaultedComponent,
|
|
1280
1300
|
],
|
|
1281
1301
|
exports: [Fs2faManageComponent],
|
|
1282
1302
|
}]
|
|
1283
1303
|
}] });
|
|
1284
1304
|
|
|
1305
|
+
var VerificationMethodsComponent = /** @class */ (function () {
|
|
1306
|
+
function VerificationMethodsComponent(_prompt) {
|
|
1307
|
+
this._prompt = _prompt;
|
|
1308
|
+
this.VerificationMethodType = exports.VerificationMethodType;
|
|
1309
|
+
}
|
|
1310
|
+
VerificationMethodsComponent.prototype.ngOnInit = function () {
|
|
1311
|
+
var _this = this;
|
|
1312
|
+
this.listConfig = {
|
|
1313
|
+
paging: false,
|
|
1314
|
+
rowActions: [
|
|
1315
|
+
{
|
|
1316
|
+
click: function (verificationMethod) {
|
|
1317
|
+
_this._prompt.confirm({
|
|
1318
|
+
title: 'Confirm',
|
|
1319
|
+
template: 'Would you like to delete this verification method?',
|
|
1320
|
+
})
|
|
1321
|
+
.pipe(operators.switchMap(function () { return _this.accountVerify(); }), operators.switchMap(function () { return _this.verificationMethodDelete(verificationMethod); }))
|
|
1322
|
+
.subscribe(function () {
|
|
1323
|
+
_this.list.reload();
|
|
1324
|
+
});
|
|
1325
|
+
},
|
|
1326
|
+
label: 'Delete',
|
|
1327
|
+
},
|
|
1328
|
+
],
|
|
1329
|
+
fetch: function (query) {
|
|
1330
|
+
return _this.verificationMethodsFetch(query)
|
|
1331
|
+
.pipe(operators.map(function (verificationMethods) { return ({
|
|
1332
|
+
data: verificationMethods,
|
|
1333
|
+
}); }));
|
|
1334
|
+
},
|
|
1335
|
+
};
|
|
1336
|
+
};
|
|
1337
|
+
return VerificationMethodsComponent;
|
|
1338
|
+
}());
|
|
1339
|
+
VerificationMethodsComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: VerificationMethodsComponent, deps: [{ token: i1__namespace$3.FsPrompt }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1340
|
+
VerificationMethodsComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: VerificationMethodsComponent, selector: "fs-2fa-verification-methods", inputs: { accountVerify: "accountVerify", verificationMethodsFetch: "verificationMethodsFetch", verificationMethodDelete: "verificationMethodDelete" }, viewQueries: [{ propertyName: "list", first: true, predicate: i2$1.FsListComponent, descendants: true }], ngImport: i0__namespace, template: "<fs-list [config]=\"listConfig\">\n <fs-list-column class=\"col-icon\" width=\"1%\">\n <ng-template fs-list-cell let-row=\"row\">\n <ng-container *ngIf=\"row.type === VerificationMethodType.Sms\">\n <mat-icon>textsms</mat-icon>\n </ng-container>\n\n <ng-container *ngIf=\"row.type === VerificationMethodType.Email\">\n <mat-icon>email</mat-icon>\n </ng-container>\n\n <ng-container *ngIf=\"row.type === VerificationMethodType.App\">\n <mat-icon>phone_iphone</mat-icon>\n </ng-container>\n </ng-template>\n </fs-list-column>\n <fs-list-column class=\"col-name\">\n <ng-template fs-list-cell let-row=\"row\">\n <div class=\"row\">\n <ng-container *ngIf=\"row.type === VerificationMethodType.Sms\">\n <div class=\"row\">\n <fs-country [code]=\"row.phoneCountry\" [showName]=\"false\"></fs-country> \n <span>{{row.phoneNumber | fsPhone}}</span>\n </div>\n </ng-container>\n\n <ng-container *ngIf=\"row.type === VerificationMethodType.Email\">\n {{row.email}}\n </ng-container>\n\n <ng-container *ngIf=\"row.type === VerificationMethodType.App\">\n App\n </ng-container>\n\n <app-defaulted *ngIf=\"row.default\"></app-defaulted>\n </div>\n </ng-template>\n </fs-list-column>\n</fs-list>", styles: [":host ::ng-deep .col-name .row{display:flex;align-items:center}:host ::ng-deep .col-name fs-country img{display:flex}fs-country{margin-right:5px}app-defaulted{margin-left:5px}\n"], components: [{ type: i2__namespace$1.FsListComponent, selector: "fs-list", inputs: ["config", "loaderLines"], outputs: ["filtersReady"] }, { type: i4__namespace.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { type: i3__namespace$3.FsCountryComponent, selector: "fs-country", inputs: ["code", "showIcon", "showName", "region", "width"] }, { type: DefaultedComponent, selector: "app-defaulted" }], directives: [{ type: i2__namespace$1.FsListColumnDirective, selector: "fs-list-column", inputs: ["show", "title", "name", "customize", "sortable", "sortableDefault", "direction", "align", "width", "class"] }, { type: i2__namespace$1.FsListCellDirective, selector: "[fs-list-cell]", inputs: ["colspan", "align", "class"] }, { type: i9__namespace$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "fsPhone": i7__namespace.FsPhonePipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
|
|
1341
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: VerificationMethodsComponent, decorators: [{
|
|
1342
|
+
type: i0.Component,
|
|
1343
|
+
args: [{
|
|
1344
|
+
selector: 'fs-2fa-verification-methods',
|
|
1345
|
+
templateUrl: './verification-methods.component.html',
|
|
1346
|
+
styleUrls: ['./verification-methods.component.scss'],
|
|
1347
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
1348
|
+
}]
|
|
1349
|
+
}], ctorParameters: function () { return [{ type: i1__namespace$3.FsPrompt }]; }, propDecorators: { list: [{
|
|
1350
|
+
type: i0.ViewChild,
|
|
1351
|
+
args: [i2$1.FsListComponent]
|
|
1352
|
+
}], accountVerify: [{
|
|
1353
|
+
type: i0.Input
|
|
1354
|
+
}], verificationMethodsFetch: [{
|
|
1355
|
+
type: i0.Input
|
|
1356
|
+
}], verificationMethodDelete: [{
|
|
1357
|
+
type: i0.Input
|
|
1358
|
+
}] } });
|
|
1359
|
+
|
|
1360
|
+
var Fs2faVerificationMethodsModule = /** @class */ (function () {
|
|
1361
|
+
function Fs2faVerificationMethodsModule() {
|
|
1362
|
+
}
|
|
1363
|
+
return Fs2faVerificationMethodsModule;
|
|
1364
|
+
}());
|
|
1365
|
+
Fs2faVerificationMethodsModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: Fs2faVerificationMethodsModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
1366
|
+
Fs2faVerificationMethodsModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: Fs2faVerificationMethodsModule, declarations: [VerificationMethodsComponent], imports: [i9$1.CommonModule,
|
|
1367
|
+
i9.FormsModule,
|
|
1368
|
+
i4.MatIconModule,
|
|
1369
|
+
i2$1.FsListModule,
|
|
1370
|
+
i7.FsPhoneModule,
|
|
1371
|
+
i3$3.FsCountryModule,
|
|
1372
|
+
DefautledModule], exports: [VerificationMethodsComponent] });
|
|
1373
|
+
Fs2faVerificationMethodsModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: Fs2faVerificationMethodsModule, imports: [[
|
|
1374
|
+
i9$1.CommonModule,
|
|
1375
|
+
i9.FormsModule,
|
|
1376
|
+
i4.MatIconModule,
|
|
1377
|
+
i2$1.FsListModule,
|
|
1378
|
+
i7.FsPhoneModule,
|
|
1379
|
+
i3$3.FsCountryModule,
|
|
1380
|
+
DefautledModule,
|
|
1381
|
+
]] });
|
|
1382
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: Fs2faVerificationMethodsModule, decorators: [{
|
|
1383
|
+
type: i0.NgModule,
|
|
1384
|
+
args: [{
|
|
1385
|
+
imports: [
|
|
1386
|
+
i9$1.CommonModule,
|
|
1387
|
+
i9.FormsModule,
|
|
1388
|
+
i4.MatIconModule,
|
|
1389
|
+
i2$1.FsListModule,
|
|
1390
|
+
i7.FsPhoneModule,
|
|
1391
|
+
i3$3.FsCountryModule,
|
|
1392
|
+
DefautledModule,
|
|
1393
|
+
],
|
|
1394
|
+
declarations: [
|
|
1395
|
+
VerificationMethodsComponent,
|
|
1396
|
+
],
|
|
1397
|
+
exports: [VerificationMethodsComponent],
|
|
1398
|
+
}]
|
|
1399
|
+
}] });
|
|
1400
|
+
|
|
1285
1401
|
/**
|
|
1286
1402
|
* Generated bundle index. Do not edit.
|
|
1287
1403
|
*/
|
|
@@ -1289,7 +1405,9 @@
|
|
|
1289
1405
|
exports.Fs2faManageComponent = Fs2faManageComponent;
|
|
1290
1406
|
exports.Fs2faManageModule = Fs2faManageModule;
|
|
1291
1407
|
exports.Fs2faVerificationComponent = Fs2faVerificationComponent;
|
|
1408
|
+
exports.Fs2faVerificationMethodsModule = Fs2faVerificationMethodsModule;
|
|
1292
1409
|
exports.Fs2faVerificationModule = Fs2faVerificationModule;
|
|
1410
|
+
exports.VerificationMethodsComponent = VerificationMethodsComponent;
|
|
1293
1411
|
|
|
1294
1412
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
1295
1413
|
|