mirror of
https://github.com/bitwarden/browser
synced 2025-12-12 06:13:38 +00:00
Auth - Prefer signal & change detection (#16950)
This commit is contained in:
@@ -33,6 +33,8 @@ import { AccountComponent } from "./account.component";
|
|||||||
import { CurrentAccountComponent } from "./current-account.component";
|
import { CurrentAccountComponent } from "./current-account.component";
|
||||||
import { AccountSwitcherService } from "./services/account-switcher.service";
|
import { AccountSwitcherService } from "./services/account-switcher.service";
|
||||||
|
|
||||||
|
// FIXME(https://bitwarden.atlassian.net/browse/CL-764): Migrate to OnPush
|
||||||
|
// eslint-disable-next-line @angular-eslint/prefer-on-push-component-change-detection
|
||||||
@Component({
|
@Component({
|
||||||
templateUrl: "account-switcher.component.html",
|
templateUrl: "account-switcher.component.html",
|
||||||
imports: [
|
imports: [
|
||||||
|
|||||||
@@ -13,13 +13,19 @@ import { BiometricsService } from "@bitwarden/key-management";
|
|||||||
|
|
||||||
import { AccountSwitcherService, AvailableAccount } from "./services/account-switcher.service";
|
import { AccountSwitcherService, AvailableAccount } from "./services/account-switcher.service";
|
||||||
|
|
||||||
|
// FIXME(https://bitwarden.atlassian.net/browse/CL-764): Migrate to OnPush
|
||||||
|
// eslint-disable-next-line @angular-eslint/prefer-on-push-component-change-detection
|
||||||
@Component({
|
@Component({
|
||||||
selector: "auth-account",
|
selector: "auth-account",
|
||||||
templateUrl: "account.component.html",
|
templateUrl: "account.component.html",
|
||||||
imports: [CommonModule, JslibModule, AvatarModule, ItemModule],
|
imports: [CommonModule, JslibModule, AvatarModule, ItemModule],
|
||||||
})
|
})
|
||||||
export class AccountComponent {
|
export class AccountComponent {
|
||||||
|
// FIXME(https://bitwarden.atlassian.net/browse/CL-903): Migrate to Signals
|
||||||
|
// eslint-disable-next-line @angular-eslint/prefer-signals
|
||||||
@Input() account: AvailableAccount;
|
@Input() account: AvailableAccount;
|
||||||
|
// FIXME(https://bitwarden.atlassian.net/browse/CL-903): Migrate to Signals
|
||||||
|
// eslint-disable-next-line @angular-eslint/prefer-output-emitter-ref
|
||||||
@Output() loading = new EventEmitter<boolean>();
|
@Output() loading = new EventEmitter<boolean>();
|
||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
|
|||||||
@@ -21,6 +21,8 @@ export type CurrentAccount = {
|
|||||||
avatarColor: string;
|
avatarColor: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// FIXME(https://bitwarden.atlassian.net/browse/CL-764): Migrate to OnPush
|
||||||
|
// eslint-disable-next-line @angular-eslint/prefer-on-push-component-change-detection
|
||||||
@Component({
|
@Component({
|
||||||
selector: "app-current-account",
|
selector: "app-current-account",
|
||||||
templateUrl: "current-account.component.html",
|
templateUrl: "current-account.component.html",
|
||||||
|
|||||||
@@ -13,6 +13,8 @@ import {
|
|||||||
IconButtonModule,
|
IconButtonModule,
|
||||||
} from "@bitwarden/components";
|
} from "@bitwarden/components";
|
||||||
|
|
||||||
|
// FIXME(https://bitwarden.atlassian.net/browse/CL-764): Migrate to OnPush
|
||||||
|
// eslint-disable-next-line @angular-eslint/prefer-on-push-component-change-detection
|
||||||
@Component({
|
@Component({
|
||||||
templateUrl: "set-pin.component.html",
|
templateUrl: "set-pin.component.html",
|
||||||
imports: [
|
imports: [
|
||||||
|
|||||||
@@ -41,6 +41,8 @@ import { PopupRouterCacheService } from "../../../platform/popup/view-cache/popu
|
|||||||
|
|
||||||
import { AccountSecurityComponent } from "./account-security.component";
|
import { AccountSecurityComponent } from "./account-security.component";
|
||||||
|
|
||||||
|
// FIXME(https://bitwarden.atlassian.net/browse/CL-764): Migrate to OnPush
|
||||||
|
// eslint-disable-next-line @angular-eslint/prefer-on-push-component-change-detection
|
||||||
@Component({
|
@Component({
|
||||||
selector: "app-pop-out",
|
selector: "app-pop-out",
|
||||||
template: ` <ng-content></ng-content>`,
|
template: ` <ng-content></ng-content>`,
|
||||||
|
|||||||
@@ -78,6 +78,8 @@ import { SetPinComponent } from "../components/set-pin.component";
|
|||||||
|
|
||||||
import { AwaitDesktopDialogComponent } from "./await-desktop-dialog.component";
|
import { AwaitDesktopDialogComponent } from "./await-desktop-dialog.component";
|
||||||
|
|
||||||
|
// FIXME(https://bitwarden.atlassian.net/browse/CL-764): Migrate to OnPush
|
||||||
|
// eslint-disable-next-line @angular-eslint/prefer-on-push-component-change-detection
|
||||||
@Component({
|
@Component({
|
||||||
templateUrl: "account-security.component.html",
|
templateUrl: "account-security.component.html",
|
||||||
imports: [
|
imports: [
|
||||||
|
|||||||
@@ -3,6 +3,8 @@ import { Component } from "@angular/core";
|
|||||||
import { JslibModule } from "@bitwarden/angular/jslib.module";
|
import { JslibModule } from "@bitwarden/angular/jslib.module";
|
||||||
import { ButtonModule, DialogModule, DialogService } from "@bitwarden/components";
|
import { ButtonModule, DialogModule, DialogService } from "@bitwarden/components";
|
||||||
|
|
||||||
|
// FIXME(https://bitwarden.atlassian.net/browse/CL-764): Migrate to OnPush
|
||||||
|
// eslint-disable-next-line @angular-eslint/prefer-on-push-component-change-detection
|
||||||
@Component({
|
@Component({
|
||||||
templateUrl: "await-desktop-dialog.component.html",
|
templateUrl: "await-desktop-dialog.component.html",
|
||||||
imports: [JslibModule, ButtonModule, DialogModule],
|
imports: [JslibModule, ButtonModule, DialogModule],
|
||||||
|
|||||||
@@ -7,6 +7,8 @@ import { PopOutComponent } from "../../../platform/popup/components/pop-out.comp
|
|||||||
import { PopupHeaderComponent } from "../../../platform/popup/layout/popup-header.component";
|
import { PopupHeaderComponent } from "../../../platform/popup/layout/popup-header.component";
|
||||||
import { PopupPageComponent } from "../../../platform/popup/layout/popup-page.component";
|
import { PopupPageComponent } from "../../../platform/popup/layout/popup-page.component";
|
||||||
|
|
||||||
|
// FIXME(https://bitwarden.atlassian.net/browse/CL-764): Migrate to OnPush
|
||||||
|
// eslint-disable-next-line @angular-eslint/prefer-on-push-component-change-detection
|
||||||
@Component({
|
@Component({
|
||||||
standalone: true,
|
standalone: true,
|
||||||
selector: "extension-device-management",
|
selector: "extension-device-management",
|
||||||
|
|||||||
@@ -12,6 +12,8 @@ import {
|
|||||||
FormFieldModule,
|
FormFieldModule,
|
||||||
IconButtonModule,
|
IconButtonModule,
|
||||||
} from "@bitwarden/components";
|
} from "@bitwarden/components";
|
||||||
|
// FIXME(https://bitwarden.atlassian.net/browse/CL-764): Migrate to OnPush
|
||||||
|
// eslint-disable-next-line @angular-eslint/prefer-on-push-component-change-detection
|
||||||
@Component({
|
@Component({
|
||||||
templateUrl: "set-pin.component.html",
|
templateUrl: "set-pin.component.html",
|
||||||
imports: [
|
imports: [
|
||||||
|
|||||||
@@ -20,6 +20,8 @@ import {
|
|||||||
|
|
||||||
import { UserVerificationComponent } from "../app/components/user-verification.component";
|
import { UserVerificationComponent } from "../app/components/user-verification.component";
|
||||||
|
|
||||||
|
// FIXME(https://bitwarden.atlassian.net/browse/CL-764): Migrate to OnPush
|
||||||
|
// eslint-disable-next-line @angular-eslint/prefer-on-push-component-change-detection
|
||||||
@Component({
|
@Component({
|
||||||
selector: "app-delete-account",
|
selector: "app-delete-account",
|
||||||
templateUrl: "delete-account.component.html",
|
templateUrl: "delete-account.component.html",
|
||||||
|
|||||||
@@ -12,6 +12,8 @@ import { SharedModule } from "../../../shared";
|
|||||||
import { EmergencyAccessModule } from "../emergency-access.module";
|
import { EmergencyAccessModule } from "../emergency-access.module";
|
||||||
import { EmergencyAccessService } from "../services/emergency-access.service";
|
import { EmergencyAccessService } from "../services/emergency-access.service";
|
||||||
|
|
||||||
|
// FIXME(https://bitwarden.atlassian.net/browse/CL-764): Migrate to OnPush
|
||||||
|
// eslint-disable-next-line @angular-eslint/prefer-on-push-component-change-detection
|
||||||
@Component({
|
@Component({
|
||||||
imports: [SharedModule, EmergencyAccessModule],
|
imports: [SharedModule, EmergencyAccessModule],
|
||||||
templateUrl: "accept-emergency.component.html",
|
templateUrl: "accept-emergency.component.html",
|
||||||
|
|||||||
@@ -11,18 +11,24 @@ import { RouterService } from "../../../core/router.service";
|
|||||||
|
|
||||||
import { deepLinkGuard } from "./deep-link.guard";
|
import { deepLinkGuard } from "./deep-link.guard";
|
||||||
|
|
||||||
|
// FIXME(https://bitwarden.atlassian.net/browse/CL-764): Migrate to OnPush
|
||||||
|
// eslint-disable-next-line @angular-eslint/prefer-on-push-component-change-detection
|
||||||
@Component({
|
@Component({
|
||||||
template: "",
|
template: "",
|
||||||
standalone: false,
|
standalone: false,
|
||||||
})
|
})
|
||||||
export class GuardedRouteTestComponent {}
|
export class GuardedRouteTestComponent {}
|
||||||
|
|
||||||
|
// FIXME(https://bitwarden.atlassian.net/browse/CL-764): Migrate to OnPush
|
||||||
|
// eslint-disable-next-line @angular-eslint/prefer-on-push-component-change-detection
|
||||||
@Component({
|
@Component({
|
||||||
template: "",
|
template: "",
|
||||||
standalone: false,
|
standalone: false,
|
||||||
})
|
})
|
||||||
export class LockTestComponent {}
|
export class LockTestComponent {}
|
||||||
|
|
||||||
|
// FIXME(https://bitwarden.atlassian.net/browse/CL-764): Migrate to OnPush
|
||||||
|
// eslint-disable-next-line @angular-eslint/prefer-on-push-component-change-detection
|
||||||
@Component({
|
@Component({
|
||||||
template: "",
|
template: "",
|
||||||
standalone: false,
|
standalone: false,
|
||||||
|
|||||||
@@ -16,6 +16,8 @@ import { BaseAcceptComponent } from "../../common/base.accept.component";
|
|||||||
|
|
||||||
import { AcceptOrganizationInviteService } from "./accept-organization.service";
|
import { AcceptOrganizationInviteService } from "./accept-organization.service";
|
||||||
|
|
||||||
|
// FIXME(https://bitwarden.atlassian.net/browse/CL-764): Migrate to OnPush
|
||||||
|
// eslint-disable-next-line @angular-eslint/prefer-on-push-component-change-detection
|
||||||
@Component({
|
@Component({
|
||||||
templateUrl: "accept-organization.component.html",
|
templateUrl: "accept-organization.component.html",
|
||||||
standalone: false,
|
standalone: false,
|
||||||
|
|||||||
@@ -10,6 +10,8 @@ import { I18nService } from "@bitwarden/common/platform/abstractions/i18n.servic
|
|||||||
import { PlatformUtilsService } from "@bitwarden/common/platform/abstractions/platform-utils.service";
|
import { PlatformUtilsService } from "@bitwarden/common/platform/abstractions/platform-utils.service";
|
||||||
import { ToastService } from "@bitwarden/components";
|
import { ToastService } from "@bitwarden/components";
|
||||||
|
|
||||||
|
// FIXME(https://bitwarden.atlassian.net/browse/CL-764): Migrate to OnPush
|
||||||
|
// eslint-disable-next-line @angular-eslint/prefer-on-push-component-change-detection
|
||||||
@Component({
|
@Component({
|
||||||
selector: "app-recover-delete",
|
selector: "app-recover-delete",
|
||||||
templateUrl: "recover-delete.component.html",
|
templateUrl: "recover-delete.component.html",
|
||||||
|
|||||||
@@ -16,6 +16,8 @@ import { LogService } from "@bitwarden/common/platform/abstractions/log.service"
|
|||||||
import { ValidationService } from "@bitwarden/common/platform/abstractions/validation.service";
|
import { ValidationService } from "@bitwarden/common/platform/abstractions/validation.service";
|
||||||
import { ToastService } from "@bitwarden/components";
|
import { ToastService } from "@bitwarden/components";
|
||||||
|
|
||||||
|
// FIXME(https://bitwarden.atlassian.net/browse/CL-764): Migrate to OnPush
|
||||||
|
// eslint-disable-next-line @angular-eslint/prefer-on-push-component-change-detection
|
||||||
@Component({
|
@Component({
|
||||||
selector: "app-recover-two-factor",
|
selector: "app-recover-two-factor",
|
||||||
templateUrl: "recover-two-factor.component.html",
|
templateUrl: "recover-two-factor.component.html",
|
||||||
|
|||||||
@@ -19,6 +19,8 @@ import { DeleteAccountDialogComponent } from "./delete-account-dialog.component"
|
|||||||
import { ProfileComponent } from "./profile.component";
|
import { ProfileComponent } from "./profile.component";
|
||||||
import { SetAccountVerifyDevicesDialogComponent } from "./set-account-verify-devices-dialog.component";
|
import { SetAccountVerifyDevicesDialogComponent } from "./set-account-verify-devices-dialog.component";
|
||||||
|
|
||||||
|
// FIXME(https://bitwarden.atlassian.net/browse/CL-764): Migrate to OnPush
|
||||||
|
// eslint-disable-next-line @angular-eslint/prefer-on-push-component-change-detection
|
||||||
@Component({
|
@Component({
|
||||||
templateUrl: "account.component.html",
|
templateUrl: "account.component.html",
|
||||||
imports: [
|
imports: [
|
||||||
|
|||||||
@@ -32,6 +32,8 @@ type ChangeAvatarDialogData = {
|
|||||||
profile: ProfileResponse;
|
profile: ProfileResponse;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// FIXME(https://bitwarden.atlassian.net/browse/CL-764): Migrate to OnPush
|
||||||
|
// eslint-disable-next-line @angular-eslint/prefer-on-push-component-change-detection
|
||||||
@Component({
|
@Component({
|
||||||
templateUrl: "change-avatar-dialog.component.html",
|
templateUrl: "change-avatar-dialog.component.html",
|
||||||
encapsulation: ViewEncapsulation.None,
|
encapsulation: ViewEncapsulation.None,
|
||||||
@@ -40,6 +42,8 @@ type ChangeAvatarDialogData = {
|
|||||||
export class ChangeAvatarDialogComponent implements OnInit, OnDestroy {
|
export class ChangeAvatarDialogComponent implements OnInit, OnDestroy {
|
||||||
profile: ProfileResponse;
|
profile: ProfileResponse;
|
||||||
|
|
||||||
|
// FIXME(https://bitwarden.atlassian.net/browse/CL-903): Migrate to Signals
|
||||||
|
// eslint-disable-next-line @angular-eslint/prefer-signals
|
||||||
@ViewChild("colorPicker") colorPickerElement: ElementRef<HTMLElement>;
|
@ViewChild("colorPicker") colorPickerElement: ElementRef<HTMLElement>;
|
||||||
|
|
||||||
loading = false;
|
loading = false;
|
||||||
|
|||||||
@@ -17,6 +17,8 @@ import { KdfConfigService, KeyService } from "@bitwarden/key-management";
|
|||||||
|
|
||||||
import { SharedModule } from "../../../shared";
|
import { SharedModule } from "../../../shared";
|
||||||
|
|
||||||
|
// FIXME(https://bitwarden.atlassian.net/browse/CL-764): Migrate to OnPush
|
||||||
|
// eslint-disable-next-line @angular-eslint/prefer-on-push-component-change-detection
|
||||||
@Component({
|
@Component({
|
||||||
selector: "app-change-email",
|
selector: "app-change-email",
|
||||||
templateUrl: "change-email.component.html",
|
templateUrl: "change-email.component.html",
|
||||||
|
|||||||
@@ -9,6 +9,8 @@ import { I18nPipe } from "@bitwarden/ui-common";
|
|||||||
/**
|
/**
|
||||||
* Component for the Danger Zone section of the Account/Organization Settings page.
|
* Component for the Danger Zone section of the Account/Organization Settings page.
|
||||||
*/
|
*/
|
||||||
|
// FIXME(https://bitwarden.atlassian.net/browse/CL-764): Migrate to OnPush
|
||||||
|
// eslint-disable-next-line @angular-eslint/prefer-on-push-component-change-detection
|
||||||
@Component({
|
@Component({
|
||||||
selector: "app-danger-zone",
|
selector: "app-danger-zone",
|
||||||
templateUrl: "danger-zone.component.html",
|
templateUrl: "danger-zone.component.html",
|
||||||
|
|||||||
@@ -12,6 +12,8 @@ import { DialogService, ToastService } from "@bitwarden/components";
|
|||||||
|
|
||||||
import { SharedModule } from "../../../shared";
|
import { SharedModule } from "../../../shared";
|
||||||
|
|
||||||
|
// FIXME(https://bitwarden.atlassian.net/browse/CL-764): Migrate to OnPush
|
||||||
|
// eslint-disable-next-line @angular-eslint/prefer-on-push-component-change-detection
|
||||||
@Component({
|
@Component({
|
||||||
templateUrl: "deauthorize-sessions.component.html",
|
templateUrl: "deauthorize-sessions.component.html",
|
||||||
imports: [SharedModule, UserVerificationFormInputComponent],
|
imports: [SharedModule, UserVerificationFormInputComponent],
|
||||||
|
|||||||
@@ -12,6 +12,8 @@ import { DialogRef, DialogService, ToastService } from "@bitwarden/components";
|
|||||||
|
|
||||||
import { SharedModule } from "../../../shared";
|
import { SharedModule } from "../../../shared";
|
||||||
|
|
||||||
|
// FIXME(https://bitwarden.atlassian.net/browse/CL-764): Migrate to OnPush
|
||||||
|
// eslint-disable-next-line @angular-eslint/prefer-on-push-component-change-detection
|
||||||
@Component({
|
@Component({
|
||||||
templateUrl: "delete-account-dialog.component.html",
|
templateUrl: "delete-account-dialog.component.html",
|
||||||
imports: [SharedModule, UserVerificationFormInputComponent],
|
imports: [SharedModule, UserVerificationFormInputComponent],
|
||||||
|
|||||||
@@ -23,6 +23,8 @@ import { AccountFingerprintComponent } from "../../../shared/components/account-
|
|||||||
|
|
||||||
import { ChangeAvatarDialogComponent } from "./change-avatar-dialog.component";
|
import { ChangeAvatarDialogComponent } from "./change-avatar-dialog.component";
|
||||||
|
|
||||||
|
// FIXME(https://bitwarden.atlassian.net/browse/CL-764): Migrate to OnPush
|
||||||
|
// eslint-disable-next-line @angular-eslint/prefer-on-push-component-change-detection
|
||||||
@Component({
|
@Component({
|
||||||
selector: "app-profile",
|
selector: "app-profile",
|
||||||
templateUrl: "profile.component.html",
|
templateUrl: "profile.component.html",
|
||||||
|
|||||||
@@ -5,6 +5,8 @@ import { Component, EventEmitter, Input, Output } from "@angular/core";
|
|||||||
|
|
||||||
import { AvatarModule } from "@bitwarden/components";
|
import { AvatarModule } from "@bitwarden/components";
|
||||||
|
|
||||||
|
// FIXME(https://bitwarden.atlassian.net/browse/CL-764): Migrate to OnPush
|
||||||
|
// eslint-disable-next-line @angular-eslint/prefer-on-push-component-change-detection
|
||||||
@Component({
|
@Component({
|
||||||
selector: "selectable-avatar",
|
selector: "selectable-avatar",
|
||||||
template: `<span
|
template: `<span
|
||||||
@@ -30,12 +32,26 @@ import { AvatarModule } from "@bitwarden/components";
|
|||||||
imports: [NgClass, AvatarModule],
|
imports: [NgClass, AvatarModule],
|
||||||
})
|
})
|
||||||
export class SelectableAvatarComponent {
|
export class SelectableAvatarComponent {
|
||||||
|
// FIXME(https://bitwarden.atlassian.net/browse/CL-903): Migrate to Signals
|
||||||
|
// eslint-disable-next-line @angular-eslint/prefer-signals
|
||||||
@Input() id: string;
|
@Input() id: string;
|
||||||
|
// FIXME(https://bitwarden.atlassian.net/browse/CL-903): Migrate to Signals
|
||||||
|
// eslint-disable-next-line @angular-eslint/prefer-signals
|
||||||
@Input() text: string;
|
@Input() text: string;
|
||||||
|
// FIXME(https://bitwarden.atlassian.net/browse/CL-903): Migrate to Signals
|
||||||
|
// eslint-disable-next-line @angular-eslint/prefer-signals
|
||||||
@Input() title: string;
|
@Input() title: string;
|
||||||
|
// FIXME(https://bitwarden.atlassian.net/browse/CL-903): Migrate to Signals
|
||||||
|
// eslint-disable-next-line @angular-eslint/prefer-signals
|
||||||
@Input() color: string;
|
@Input() color: string;
|
||||||
|
// FIXME(https://bitwarden.atlassian.net/browse/CL-903): Migrate to Signals
|
||||||
|
// eslint-disable-next-line @angular-eslint/prefer-signals
|
||||||
@Input() border = false;
|
@Input() border = false;
|
||||||
|
// FIXME(https://bitwarden.atlassian.net/browse/CL-903): Migrate to Signals
|
||||||
|
// eslint-disable-next-line @angular-eslint/prefer-signals
|
||||||
@Input() selected = false;
|
@Input() selected = false;
|
||||||
|
// FIXME(https://bitwarden.atlassian.net/browse/CL-903): Migrate to Signals
|
||||||
|
// eslint-disable-next-line @angular-eslint/prefer-output-emitter-ref
|
||||||
@Output() select = new EventEmitter<string>();
|
@Output() select = new EventEmitter<string>();
|
||||||
|
|
||||||
onFire() {
|
onFire() {
|
||||||
|
|||||||
@@ -27,6 +27,8 @@ import {
|
|||||||
ToastService,
|
ToastService,
|
||||||
} from "@bitwarden/components";
|
} from "@bitwarden/components";
|
||||||
|
|
||||||
|
// FIXME(https://bitwarden.atlassian.net/browse/CL-764): Migrate to OnPush
|
||||||
|
// eslint-disable-next-line @angular-eslint/prefer-on-push-component-change-detection
|
||||||
@Component({
|
@Component({
|
||||||
templateUrl: "./set-account-verify-devices-dialog.component.html",
|
templateUrl: "./set-account-verify-devices-dialog.component.html",
|
||||||
imports: [
|
imports: [
|
||||||
|
|||||||
@@ -25,6 +25,8 @@ type EmergencyAccessConfirmDialogData = {
|
|||||||
/** user public key */
|
/** user public key */
|
||||||
publicKey: Uint8Array;
|
publicKey: Uint8Array;
|
||||||
};
|
};
|
||||||
|
// FIXME(https://bitwarden.atlassian.net/browse/CL-764): Migrate to OnPush
|
||||||
|
// eslint-disable-next-line @angular-eslint/prefer-on-push-component-change-detection
|
||||||
@Component({
|
@Component({
|
||||||
templateUrl: "emergency-access-confirm.component.html",
|
templateUrl: "emergency-access-confirm.component.html",
|
||||||
imports: [SharedModule],
|
imports: [SharedModule],
|
||||||
|
|||||||
@@ -35,6 +35,8 @@ export enum EmergencyAccessAddEditDialogResult {
|
|||||||
Canceled = "canceled",
|
Canceled = "canceled",
|
||||||
Deleted = "deleted",
|
Deleted = "deleted",
|
||||||
}
|
}
|
||||||
|
// FIXME(https://bitwarden.atlassian.net/browse/CL-764): Migrate to OnPush
|
||||||
|
// eslint-disable-next-line @angular-eslint/prefer-on-push-component-change-detection
|
||||||
@Component({
|
@Component({
|
||||||
templateUrl: "emergency-access-add-edit.component.html",
|
templateUrl: "emergency-access-add-edit.component.html",
|
||||||
imports: [SharedModule, PremiumBadgeComponent],
|
imports: [SharedModule, PremiumBadgeComponent],
|
||||||
|
|||||||
@@ -42,6 +42,8 @@ import {
|
|||||||
EmergencyAccessTakeoverDialogResultType,
|
EmergencyAccessTakeoverDialogResultType,
|
||||||
} from "./takeover/emergency-access-takeover-dialog.component";
|
} from "./takeover/emergency-access-takeover-dialog.component";
|
||||||
|
|
||||||
|
// FIXME(https://bitwarden.atlassian.net/browse/CL-764): Migrate to OnPush
|
||||||
|
// eslint-disable-next-line @angular-eslint/prefer-on-push-component-change-detection
|
||||||
@Component({
|
@Component({
|
||||||
templateUrl: "emergency-access.component.html",
|
templateUrl: "emergency-access.component.html",
|
||||||
imports: [SharedModule, HeaderModule, PremiumBadgeComponent],
|
imports: [SharedModule, HeaderModule, PremiumBadgeComponent],
|
||||||
|
|||||||
@@ -48,6 +48,8 @@ export type EmergencyAccessTakeoverDialogResultType =
|
|||||||
*
|
*
|
||||||
* @link https://bitwarden.com/help/emergency-access/
|
* @link https://bitwarden.com/help/emergency-access/
|
||||||
*/
|
*/
|
||||||
|
// FIXME(https://bitwarden.atlassian.net/browse/CL-764): Migrate to OnPush
|
||||||
|
// eslint-disable-next-line @angular-eslint/prefer-on-push-component-change-detection
|
||||||
@Component({
|
@Component({
|
||||||
selector: "auth-emergency-access-takeover-dialog",
|
selector: "auth-emergency-access-takeover-dialog",
|
||||||
templateUrl: "./emergency-access-takeover-dialog.component.html",
|
templateUrl: "./emergency-access-takeover-dialog.component.html",
|
||||||
@@ -61,6 +63,8 @@ export type EmergencyAccessTakeoverDialogResultType =
|
|||||||
],
|
],
|
||||||
})
|
})
|
||||||
export class EmergencyAccessTakeoverDialogComponent implements OnInit {
|
export class EmergencyAccessTakeoverDialogComponent implements OnInit {
|
||||||
|
// FIXME(https://bitwarden.atlassian.net/browse/CL-903): Migrate to Signals
|
||||||
|
// eslint-disable-next-line @angular-eslint/prefer-signals
|
||||||
@ViewChild(InputPasswordComponent)
|
@ViewChild(InputPasswordComponent)
|
||||||
inputPasswordComponent: InputPasswordComponent | undefined = undefined;
|
inputPasswordComponent: InputPasswordComponent | undefined = undefined;
|
||||||
|
|
||||||
|
|||||||
@@ -14,6 +14,8 @@ import { EmergencyAccessService } from "../../../emergency-access";
|
|||||||
|
|
||||||
import { EmergencyViewDialogComponent } from "./emergency-view-dialog.component";
|
import { EmergencyViewDialogComponent } from "./emergency-view-dialog.component";
|
||||||
|
|
||||||
|
// FIXME(https://bitwarden.atlassian.net/browse/CL-764): Migrate to OnPush
|
||||||
|
// eslint-disable-next-line @angular-eslint/prefer-on-push-component-change-detection
|
||||||
@Component({
|
@Component({
|
||||||
templateUrl: "emergency-access-view.component.html",
|
templateUrl: "emergency-access-view.component.html",
|
||||||
providers: [{ provide: CipherFormConfigService, useClass: DefaultCipherFormConfigService }],
|
providers: [{ provide: CipherFormConfigService, useClass: DefaultCipherFormConfigService }],
|
||||||
|
|||||||
@@ -35,6 +35,8 @@ class PremiumUpgradePromptNoop implements PremiumUpgradePromptService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// FIXME(https://bitwarden.atlassian.net/browse/CL-764): Migrate to OnPush
|
||||||
|
// eslint-disable-next-line @angular-eslint/prefer-on-push-component-change-detection
|
||||||
@Component({
|
@Component({
|
||||||
selector: "app-emergency-view-dialog",
|
selector: "app-emergency-view-dialog",
|
||||||
templateUrl: "emergency-view-dialog.component.html",
|
templateUrl: "emergency-view-dialog.component.html",
|
||||||
|
|||||||
@@ -23,6 +23,8 @@ export type ApiKeyDialogData = {
|
|||||||
apiKeyWarning: string;
|
apiKeyWarning: string;
|
||||||
apiKeyDescription: string;
|
apiKeyDescription: string;
|
||||||
};
|
};
|
||||||
|
// FIXME(https://bitwarden.atlassian.net/browse/CL-764): Migrate to OnPush
|
||||||
|
// eslint-disable-next-line @angular-eslint/prefer-on-push-component-change-detection
|
||||||
@Component({
|
@Component({
|
||||||
templateUrl: "api-key.component.html",
|
templateUrl: "api-key.component.html",
|
||||||
imports: [SharedModule, UserVerificationFormInputComponent],
|
imports: [SharedModule, UserVerificationFormInputComponent],
|
||||||
|
|||||||
@@ -10,6 +10,8 @@ import { I18nPipe } from "@bitwarden/ui-common";
|
|||||||
|
|
||||||
import { WebauthnLoginSettingsModule } from "../../webauthn-login-settings";
|
import { WebauthnLoginSettingsModule } from "../../webauthn-login-settings";
|
||||||
|
|
||||||
|
// FIXME(https://bitwarden.atlassian.net/browse/CL-764): Migrate to OnPush
|
||||||
|
// eslint-disable-next-line @angular-eslint/prefer-on-push-component-change-detection
|
||||||
@Component({
|
@Component({
|
||||||
selector: "app-password-settings",
|
selector: "app-password-settings",
|
||||||
templateUrl: "password-settings.component.html",
|
templateUrl: "password-settings.component.html",
|
||||||
|
|||||||
@@ -13,6 +13,8 @@ import { SharedModule } from "../../../shared";
|
|||||||
|
|
||||||
import { ApiKeyComponent } from "./api-key.component";
|
import { ApiKeyComponent } from "./api-key.component";
|
||||||
|
|
||||||
|
// FIXME(https://bitwarden.atlassian.net/browse/CL-764): Migrate to OnPush
|
||||||
|
// eslint-disable-next-line @angular-eslint/prefer-on-push-component-change-detection
|
||||||
@Component({
|
@Component({
|
||||||
templateUrl: "security-keys.component.html",
|
templateUrl: "security-keys.component.html",
|
||||||
imports: [SharedModule, ChangeKdfModule],
|
imports: [SharedModule, ChangeKdfModule],
|
||||||
|
|||||||
@@ -5,6 +5,8 @@ import { UserVerificationService } from "@bitwarden/common/auth/abstractions/use
|
|||||||
import { HeaderModule } from "../../../layouts/header/header.module";
|
import { HeaderModule } from "../../../layouts/header/header.module";
|
||||||
import { SharedModule } from "../../../shared";
|
import { SharedModule } from "../../../shared";
|
||||||
|
|
||||||
|
// FIXME(https://bitwarden.atlassian.net/browse/CL-764): Migrate to OnPush
|
||||||
|
// eslint-disable-next-line @angular-eslint/prefer-on-push-component-change-detection
|
||||||
@Component({
|
@Component({
|
||||||
templateUrl: "security.component.html",
|
templateUrl: "security.component.html",
|
||||||
imports: [SharedModule, HeaderModule],
|
imports: [SharedModule, HeaderModule],
|
||||||
|
|||||||
@@ -15,6 +15,8 @@ import {
|
|||||||
} from "@bitwarden/components";
|
} from "@bitwarden/components";
|
||||||
import { I18nPipe } from "@bitwarden/ui-common";
|
import { I18nPipe } from "@bitwarden/ui-common";
|
||||||
|
|
||||||
|
// FIXME(https://bitwarden.atlassian.net/browse/CL-764): Migrate to OnPush
|
||||||
|
// eslint-disable-next-line @angular-eslint/prefer-on-push-component-change-detection
|
||||||
@Component({
|
@Component({
|
||||||
selector: "app-two-factor-recovery",
|
selector: "app-two-factor-recovery",
|
||||||
templateUrl: "two-factor-recovery.component.html",
|
templateUrl: "two-factor-recovery.component.html",
|
||||||
|
|||||||
@@ -53,6 +53,8 @@ declare global {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// FIXME(https://bitwarden.atlassian.net/browse/CL-764): Migrate to OnPush
|
||||||
|
// eslint-disable-next-line @angular-eslint/prefer-on-push-component-change-detection
|
||||||
@Component({
|
@Component({
|
||||||
selector: "app-two-factor-setup-authenticator",
|
selector: "app-two-factor-setup-authenticator",
|
||||||
templateUrl: "two-factor-setup-authenticator.component.html",
|
templateUrl: "two-factor-setup-authenticator.component.html",
|
||||||
@@ -76,6 +78,8 @@ export class TwoFactorSetupAuthenticatorComponent
|
|||||||
extends TwoFactorSetupMethodBaseComponent
|
extends TwoFactorSetupMethodBaseComponent
|
||||||
implements OnInit, OnDestroy
|
implements OnInit, OnDestroy
|
||||||
{
|
{
|
||||||
|
// FIXME(https://bitwarden.atlassian.net/browse/CL-903): Migrate to Signals
|
||||||
|
// eslint-disable-next-line @angular-eslint/prefer-output-emitter-ref
|
||||||
@Output() onChangeStatus = new EventEmitter<boolean>();
|
@Output() onChangeStatus = new EventEmitter<boolean>();
|
||||||
type = TwoFactorProviderType.Authenticator;
|
type = TwoFactorProviderType.Authenticator;
|
||||||
key: string;
|
key: string;
|
||||||
|
|||||||
@@ -30,6 +30,8 @@ import { I18nPipe } from "@bitwarden/ui-common";
|
|||||||
|
|
||||||
import { TwoFactorSetupMethodBaseComponent } from "./two-factor-setup-method-base.component";
|
import { TwoFactorSetupMethodBaseComponent } from "./two-factor-setup-method-base.component";
|
||||||
|
|
||||||
|
// FIXME(https://bitwarden.atlassian.net/browse/CL-764): Migrate to OnPush
|
||||||
|
// eslint-disable-next-line @angular-eslint/prefer-on-push-component-change-detection
|
||||||
@Component({
|
@Component({
|
||||||
selector: "app-two-factor-setup-duo",
|
selector: "app-two-factor-setup-duo",
|
||||||
templateUrl: "two-factor-setup-duo.component.html",
|
templateUrl: "two-factor-setup-duo.component.html",
|
||||||
@@ -51,6 +53,8 @@ export class TwoFactorSetupDuoComponent
|
|||||||
extends TwoFactorSetupMethodBaseComponent
|
extends TwoFactorSetupMethodBaseComponent
|
||||||
implements OnInit
|
implements OnInit
|
||||||
{
|
{
|
||||||
|
// FIXME(https://bitwarden.atlassian.net/browse/CL-903): Migrate to Signals
|
||||||
|
// eslint-disable-next-line @angular-eslint/prefer-output-emitter-ref
|
||||||
@Output() onChangeStatus: EventEmitter<boolean> = new EventEmitter();
|
@Output() onChangeStatus: EventEmitter<boolean> = new EventEmitter();
|
||||||
|
|
||||||
type = TwoFactorProviderType.Duo;
|
type = TwoFactorProviderType.Duo;
|
||||||
|
|||||||
@@ -33,6 +33,8 @@ import { I18nPipe } from "@bitwarden/ui-common";
|
|||||||
|
|
||||||
import { TwoFactorSetupMethodBaseComponent } from "./two-factor-setup-method-base.component";
|
import { TwoFactorSetupMethodBaseComponent } from "./two-factor-setup-method-base.component";
|
||||||
|
|
||||||
|
// FIXME(https://bitwarden.atlassian.net/browse/CL-764): Migrate to OnPush
|
||||||
|
// eslint-disable-next-line @angular-eslint/prefer-on-push-component-change-detection
|
||||||
@Component({
|
@Component({
|
||||||
selector: "app-two-factor-setup-email",
|
selector: "app-two-factor-setup-email",
|
||||||
templateUrl: "two-factor-setup-email.component.html",
|
templateUrl: "two-factor-setup-email.component.html",
|
||||||
@@ -54,6 +56,8 @@ export class TwoFactorSetupEmailComponent
|
|||||||
extends TwoFactorSetupMethodBaseComponent
|
extends TwoFactorSetupMethodBaseComponent
|
||||||
implements OnInit
|
implements OnInit
|
||||||
{
|
{
|
||||||
|
// FIXME(https://bitwarden.atlassian.net/browse/CL-903): Migrate to Signals
|
||||||
|
// eslint-disable-next-line @angular-eslint/prefer-output-emitter-ref
|
||||||
@Output() onChangeStatus: EventEmitter<boolean> = new EventEmitter();
|
@Output() onChangeStatus: EventEmitter<boolean> = new EventEmitter();
|
||||||
type = TwoFactorProviderType.Email;
|
type = TwoFactorProviderType.Email;
|
||||||
sentEmail: string = "";
|
sentEmail: string = "";
|
||||||
|
|||||||
@@ -17,6 +17,8 @@ import { DialogService, ToastService } from "@bitwarden/components";
|
|||||||
*/
|
*/
|
||||||
@Directive({})
|
@Directive({})
|
||||||
export abstract class TwoFactorSetupMethodBaseComponent {
|
export abstract class TwoFactorSetupMethodBaseComponent {
|
||||||
|
// FIXME(https://bitwarden.atlassian.net/browse/CL-903): Migrate to Signals
|
||||||
|
// eslint-disable-next-line @angular-eslint/prefer-output-emitter-ref
|
||||||
@Output() onUpdated = new EventEmitter<boolean>();
|
@Output() onUpdated = new EventEmitter<boolean>();
|
||||||
|
|
||||||
type: TwoFactorProviderType | undefined;
|
type: TwoFactorProviderType | undefined;
|
||||||
|
|||||||
@@ -43,6 +43,8 @@ interface Key {
|
|||||||
removePromise: Promise<TwoFactorWebAuthnResponse> | null;
|
removePromise: Promise<TwoFactorWebAuthnResponse> | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// FIXME(https://bitwarden.atlassian.net/browse/CL-764): Migrate to OnPush
|
||||||
|
// eslint-disable-next-line @angular-eslint/prefer-on-push-component-change-detection
|
||||||
@Component({
|
@Component({
|
||||||
selector: "app-two-factor-setup-webauthn",
|
selector: "app-two-factor-setup-webauthn",
|
||||||
templateUrl: "two-factor-setup-webauthn.component.html",
|
templateUrl: "two-factor-setup-webauthn.component.html",
|
||||||
|
|||||||
@@ -44,6 +44,8 @@ interface Key {
|
|||||||
existingKey: string;
|
existingKey: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// FIXME(https://bitwarden.atlassian.net/browse/CL-764): Migrate to OnPush
|
||||||
|
// eslint-disable-next-line @angular-eslint/prefer-on-push-component-change-detection
|
||||||
@Component({
|
@Component({
|
||||||
selector: "app-two-factor-setup-yubikey",
|
selector: "app-two-factor-setup-yubikey",
|
||||||
templateUrl: "two-factor-setup-yubikey.component.html",
|
templateUrl: "two-factor-setup-yubikey.component.html",
|
||||||
|
|||||||
@@ -45,6 +45,8 @@ import { TwoFactorSetupWebAuthnComponent } from "./two-factor-setup-webauthn.com
|
|||||||
import { TwoFactorSetupYubiKeyComponent } from "./two-factor-setup-yubikey.component";
|
import { TwoFactorSetupYubiKeyComponent } from "./two-factor-setup-yubikey.component";
|
||||||
import { TwoFactorVerifyComponent } from "./two-factor-verify.component";
|
import { TwoFactorVerifyComponent } from "./two-factor-verify.component";
|
||||||
|
|
||||||
|
// FIXME(https://bitwarden.atlassian.net/browse/CL-764): Migrate to OnPush
|
||||||
|
// eslint-disable-next-line @angular-eslint/prefer-on-push-component-change-detection
|
||||||
@Component({
|
@Component({
|
||||||
selector: "app-two-factor-setup",
|
selector: "app-two-factor-setup",
|
||||||
templateUrl: "two-factor-setup.component.html",
|
templateUrl: "two-factor-setup.component.html",
|
||||||
|
|||||||
@@ -28,6 +28,8 @@ type TwoFactorVerifyDialogData = {
|
|||||||
organizationId: string;
|
organizationId: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// FIXME(https://bitwarden.atlassian.net/browse/CL-764): Migrate to OnPush
|
||||||
|
// eslint-disable-next-line @angular-eslint/prefer-on-push-component-change-detection
|
||||||
@Component({
|
@Component({
|
||||||
selector: "app-two-factor-verify",
|
selector: "app-two-factor-verify",
|
||||||
templateUrl: "two-factor-verify.component.html",
|
templateUrl: "two-factor-verify.component.html",
|
||||||
@@ -43,6 +45,8 @@ type TwoFactorVerifyDialogData = {
|
|||||||
export class TwoFactorVerifyComponent {
|
export class TwoFactorVerifyComponent {
|
||||||
type: TwoFactorProviderType;
|
type: TwoFactorProviderType;
|
||||||
organizationId: string;
|
organizationId: string;
|
||||||
|
// FIXME(https://bitwarden.atlassian.net/browse/CL-903): Migrate to Signals
|
||||||
|
// eslint-disable-next-line @angular-eslint/prefer-output-emitter-ref
|
||||||
@Output() onAuthed = new EventEmitter<AuthResponse<TwoFactorResponse>>();
|
@Output() onAuthed = new EventEmitter<AuthResponse<TwoFactorResponse>>();
|
||||||
|
|
||||||
formPromise: Promise<TwoFactorResponse> | undefined;
|
formPromise: Promise<TwoFactorResponse> | undefined;
|
||||||
|
|||||||
@@ -16,6 +16,8 @@ import {
|
|||||||
ToastService,
|
ToastService,
|
||||||
} from "@bitwarden/components";
|
} from "@bitwarden/components";
|
||||||
|
|
||||||
|
// FIXME(https://bitwarden.atlassian.net/browse/CL-764): Migrate to OnPush
|
||||||
|
// eslint-disable-next-line @angular-eslint/prefer-on-push-component-change-detection
|
||||||
@Component({
|
@Component({
|
||||||
selector: "app-verify-email",
|
selector: "app-verify-email",
|
||||||
templateUrl: "verify-email.component.html",
|
templateUrl: "verify-email.component.html",
|
||||||
@@ -24,7 +26,11 @@ import {
|
|||||||
export class VerifyEmailComponent {
|
export class VerifyEmailComponent {
|
||||||
actionPromise: Promise<unknown>;
|
actionPromise: Promise<unknown>;
|
||||||
|
|
||||||
|
// FIXME(https://bitwarden.atlassian.net/browse/CL-903): Migrate to Signals
|
||||||
|
// eslint-disable-next-line @angular-eslint/prefer-output-emitter-ref
|
||||||
@Output() onVerified = new EventEmitter<boolean>();
|
@Output() onVerified = new EventEmitter<boolean>();
|
||||||
|
// FIXME(https://bitwarden.atlassian.net/browse/CL-903): Migrate to Signals
|
||||||
|
// eslint-disable-next-line @angular-eslint/prefer-output-emitter-ref
|
||||||
@Output() onDismiss = new EventEmitter<void>();
|
@Output() onDismiss = new EventEmitter<void>();
|
||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
|
|||||||
@@ -32,6 +32,8 @@ type Step =
|
|||||||
| "credentialCreationFailed"
|
| "credentialCreationFailed"
|
||||||
| "credentialNaming";
|
| "credentialNaming";
|
||||||
|
|
||||||
|
// FIXME(https://bitwarden.atlassian.net/browse/CL-764): Migrate to OnPush
|
||||||
|
// eslint-disable-next-line @angular-eslint/prefer-on-push-component-change-detection
|
||||||
@Component({
|
@Component({
|
||||||
templateUrl: "create-credential-dialog.component.html",
|
templateUrl: "create-credential-dialog.component.html",
|
||||||
standalone: false,
|
standalone: false,
|
||||||
|
|||||||
@@ -24,6 +24,8 @@ export interface DeleteCredentialDialogParams {
|
|||||||
credentialId: string;
|
credentialId: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// FIXME(https://bitwarden.atlassian.net/browse/CL-764): Migrate to OnPush
|
||||||
|
// eslint-disable-next-line @angular-eslint/prefer-on-push-component-change-detection
|
||||||
@Component({
|
@Component({
|
||||||
templateUrl: "delete-credential-dialog.component.html",
|
templateUrl: "delete-credential-dialog.component.html",
|
||||||
standalone: false,
|
standalone: false,
|
||||||
|
|||||||
@@ -21,6 +21,8 @@ export interface EnableEncryptionDialogParams {
|
|||||||
credentialId: string;
|
credentialId: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// FIXME(https://bitwarden.atlassian.net/browse/CL-764): Migrate to OnPush
|
||||||
|
// eslint-disable-next-line @angular-eslint/prefer-on-push-component-change-detection
|
||||||
@Component({
|
@Component({
|
||||||
templateUrl: "enable-encryption-dialog.component.html",
|
templateUrl: "enable-encryption-dialog.component.html",
|
||||||
standalone: false,
|
standalone: false,
|
||||||
|
|||||||
@@ -17,6 +17,8 @@ import { openCreateCredentialDialog } from "./create-credential-dialog/create-cr
|
|||||||
import { openDeleteCredentialDialogComponent } from "./delete-credential-dialog/delete-credential-dialog.component";
|
import { openDeleteCredentialDialogComponent } from "./delete-credential-dialog/delete-credential-dialog.component";
|
||||||
import { openEnableCredentialDialogComponent } from "./enable-encryption-dialog/enable-encryption-dialog.component";
|
import { openEnableCredentialDialogComponent } from "./enable-encryption-dialog/enable-encryption-dialog.component";
|
||||||
|
|
||||||
|
// FIXME(https://bitwarden.atlassian.net/browse/CL-764): Migrate to OnPush
|
||||||
|
// eslint-disable-next-line @angular-eslint/prefer-on-push-component-change-detection
|
||||||
@Component({
|
@Component({
|
||||||
selector: "app-webauthn-login-settings",
|
selector: "app-webauthn-login-settings",
|
||||||
templateUrl: "webauthn-login-settings.component.html",
|
templateUrl: "webauthn-login-settings.component.html",
|
||||||
|
|||||||
@@ -21,6 +21,8 @@ import {
|
|||||||
/**
|
/**
|
||||||
* @deprecated Jan 24, 2024: Use new libs/auth UserVerificationDialogComponent instead.
|
* @deprecated Jan 24, 2024: Use new libs/auth UserVerificationDialogComponent instead.
|
||||||
*/
|
*/
|
||||||
|
// FIXME(https://bitwarden.atlassian.net/browse/CL-764): Migrate to OnPush
|
||||||
|
// eslint-disable-next-line @angular-eslint/prefer-on-push-component-change-detection
|
||||||
@Component({
|
@Component({
|
||||||
templateUrl: "user-verification-prompt.component.html",
|
templateUrl: "user-verification-prompt.component.html",
|
||||||
standalone: false,
|
standalone: false,
|
||||||
|
|||||||
@@ -8,6 +8,8 @@ import { UserVerificationComponent as BaseComponent } from "@bitwarden/angular/a
|
|||||||
* @deprecated Jan 24, 2024: Use new libs/auth UserVerificationDialogComponent or UserVerificationFormInputComponent instead.
|
* @deprecated Jan 24, 2024: Use new libs/auth UserVerificationDialogComponent or UserVerificationFormInputComponent instead.
|
||||||
* Each client specific component should eventually be converted over to use one of these new components.
|
* Each client specific component should eventually be converted over to use one of these new components.
|
||||||
*/
|
*/
|
||||||
|
// FIXME(https://bitwarden.atlassian.net/browse/CL-764): Migrate to OnPush
|
||||||
|
// eslint-disable-next-line @angular-eslint/prefer-on-push-component-change-detection
|
||||||
@Component({
|
@Component({
|
||||||
selector: "app-user-verification",
|
selector: "app-user-verification",
|
||||||
templateUrl: "user-verification.component.html",
|
templateUrl: "user-verification.component.html",
|
||||||
|
|||||||
@@ -13,6 +13,8 @@ import { LogService } from "@bitwarden/common/platform/abstractions/log.service"
|
|||||||
import { PlatformUtilsService } from "@bitwarden/common/platform/abstractions/platform-utils.service";
|
import { PlatformUtilsService } from "@bitwarden/common/platform/abstractions/platform-utils.service";
|
||||||
import { ToastService } from "@bitwarden/components";
|
import { ToastService } from "@bitwarden/components";
|
||||||
|
|
||||||
|
// FIXME(https://bitwarden.atlassian.net/browse/CL-764): Migrate to OnPush
|
||||||
|
// eslint-disable-next-line @angular-eslint/prefer-on-push-component-change-detection
|
||||||
@Component({
|
@Component({
|
||||||
selector: "app-verify-email-token",
|
selector: "app-verify-email-token",
|
||||||
templateUrl: "verify-email-token.component.html",
|
templateUrl: "verify-email-token.component.html",
|
||||||
|
|||||||
@@ -11,6 +11,8 @@ import { I18nService } from "@bitwarden/common/platform/abstractions/i18n.servic
|
|||||||
import { PlatformUtilsService } from "@bitwarden/common/platform/abstractions/platform-utils.service";
|
import { PlatformUtilsService } from "@bitwarden/common/platform/abstractions/platform-utils.service";
|
||||||
import { ToastService } from "@bitwarden/components";
|
import { ToastService } from "@bitwarden/components";
|
||||||
|
|
||||||
|
// FIXME(https://bitwarden.atlassian.net/browse/CL-764): Migrate to OnPush
|
||||||
|
// eslint-disable-next-line @angular-eslint/prefer-on-push-component-change-detection
|
||||||
@Component({
|
@Component({
|
||||||
selector: "app-verify-recover-delete",
|
selector: "app-verify-recover-delete",
|
||||||
templateUrl: "verify-recover-delete.component.html",
|
templateUrl: "verify-recover-delete.component.html",
|
||||||
|
|||||||
@@ -58,6 +58,8 @@ interface SelectOptions {
|
|||||||
|
|
||||||
const defaultSigningAlgorithm = "http://www.w3.org/2001/04/xmldsig-more#rsa-sha256";
|
const defaultSigningAlgorithm = "http://www.w3.org/2001/04/xmldsig-more#rsa-sha256";
|
||||||
|
|
||||||
|
// FIXME(https://bitwarden.atlassian.net/browse/CL-764): Migrate to OnPush
|
||||||
|
// eslint-disable-next-line @angular-eslint/prefer-on-push-component-change-detection
|
||||||
@Component({
|
@Component({
|
||||||
selector: "app-org-manage-sso",
|
selector: "app-org-manage-sso",
|
||||||
templateUrl: "sso.component.html",
|
templateUrl: "sso.component.html",
|
||||||
|
|||||||
@@ -9,6 +9,8 @@ import { ButtonModule } from "@bitwarden/components";
|
|||||||
* This component is used to display a message to the user that their authentication session has expired.
|
* This component is used to display a message to the user that their authentication session has expired.
|
||||||
* It provides a button to navigate to the login page.
|
* It provides a button to navigate to the login page.
|
||||||
*/
|
*/
|
||||||
|
// FIXME(https://bitwarden.atlassian.net/browse/CL-764): Migrate to OnPush
|
||||||
|
// eslint-disable-next-line @angular-eslint/prefer-on-push-component-change-detection
|
||||||
@Component({
|
@Component({
|
||||||
selector: "app-authentication-timeout",
|
selector: "app-authentication-timeout",
|
||||||
imports: [CommonModule, JslibModule, ButtonModule, RouterModule],
|
imports: [CommonModule, JslibModule, ButtonModule, RouterModule],
|
||||||
|
|||||||
@@ -9,13 +9,19 @@ import {
|
|||||||
TwoFactorAuthWebAuthnIcon,
|
TwoFactorAuthWebAuthnIcon,
|
||||||
} from "@bitwarden/assets/svg";
|
} from "@bitwarden/assets/svg";
|
||||||
|
|
||||||
|
// FIXME(https://bitwarden.atlassian.net/browse/CL-764): Migrate to OnPush
|
||||||
|
// eslint-disable-next-line @angular-eslint/prefer-on-push-component-change-detection
|
||||||
@Component({
|
@Component({
|
||||||
selector: "auth-two-factor-icon",
|
selector: "auth-two-factor-icon",
|
||||||
templateUrl: "./two-factor-icon.component.html",
|
templateUrl: "./two-factor-icon.component.html",
|
||||||
standalone: false,
|
standalone: false,
|
||||||
})
|
})
|
||||||
export class TwoFactorIconComponent {
|
export class TwoFactorIconComponent {
|
||||||
|
// FIXME(https://bitwarden.atlassian.net/browse/CL-903): Migrate to Signals
|
||||||
|
// eslint-disable-next-line @angular-eslint/prefer-signals
|
||||||
@Input() provider: any;
|
@Input() provider: any;
|
||||||
|
// FIXME(https://bitwarden.atlassian.net/browse/CL-903): Migrate to Signals
|
||||||
|
// eslint-disable-next-line @angular-eslint/prefer-signals
|
||||||
@Input() name: string;
|
@Input() name: string;
|
||||||
|
|
||||||
protected readonly IconProviderMap: { [key: number | string]: Icon } = {
|
protected readonly IconProviderMap: { [key: number | string]: Icon } = {
|
||||||
|
|||||||
@@ -26,6 +26,8 @@ import { KeyService } from "@bitwarden/key-management";
|
|||||||
})
|
})
|
||||||
export class UserVerificationComponent implements ControlValueAccessor, OnInit, OnDestroy {
|
export class UserVerificationComponent implements ControlValueAccessor, OnInit, OnDestroy {
|
||||||
private _invalidSecret = false;
|
private _invalidSecret = false;
|
||||||
|
// FIXME(https://bitwarden.atlassian.net/browse/CL-903): Migrate to Signals
|
||||||
|
// eslint-disable-next-line @angular-eslint/prefer-signals
|
||||||
@Input()
|
@Input()
|
||||||
get invalidSecret() {
|
get invalidSecret() {
|
||||||
return this._invalidSecret;
|
return this._invalidSecret;
|
||||||
@@ -43,6 +45,8 @@ export class UserVerificationComponent implements ControlValueAccessor, OnInit,
|
|||||||
}
|
}
|
||||||
this.secret.updateValueAndValidity({ emitEvent: false });
|
this.secret.updateValueAndValidity({ emitEvent: false });
|
||||||
}
|
}
|
||||||
|
// FIXME(https://bitwarden.atlassian.net/browse/CL-903): Migrate to Signals
|
||||||
|
// eslint-disable-next-line @angular-eslint/prefer-output-emitter-ref
|
||||||
@Output() invalidSecretChange = new EventEmitter<boolean>();
|
@Output() invalidSecretChange = new EventEmitter<boolean>();
|
||||||
|
|
||||||
hasMasterPassword = true;
|
hasMasterPassword = true;
|
||||||
|
|||||||
@@ -8,6 +8,8 @@ import { I18nPipe } from "@bitwarden/ui-common";
|
|||||||
import { DeviceDisplayData } from "./device-management.component";
|
import { DeviceDisplayData } from "./device-management.component";
|
||||||
|
|
||||||
/** Displays user devices in an item list view */
|
/** Displays user devices in an item list view */
|
||||||
|
// FIXME(https://bitwarden.atlassian.net/browse/CL-764): Migrate to OnPush
|
||||||
|
// eslint-disable-next-line @angular-eslint/prefer-on-push-component-change-detection
|
||||||
@Component({
|
@Component({
|
||||||
standalone: true,
|
standalone: true,
|
||||||
selector: "auth-device-management-item-group",
|
selector: "auth-device-management-item-group",
|
||||||
@@ -15,7 +17,11 @@ import { DeviceDisplayData } from "./device-management.component";
|
|||||||
imports: [BadgeModule, CommonModule, ItemModule, I18nPipe],
|
imports: [BadgeModule, CommonModule, ItemModule, I18nPipe],
|
||||||
})
|
})
|
||||||
export class DeviceManagementItemGroupComponent {
|
export class DeviceManagementItemGroupComponent {
|
||||||
|
// FIXME(https://bitwarden.atlassian.net/browse/CL-903): Migrate to Signals
|
||||||
|
// eslint-disable-next-line @angular-eslint/prefer-signals
|
||||||
@Input() devices: DeviceDisplayData[] = [];
|
@Input() devices: DeviceDisplayData[] = [];
|
||||||
|
// FIXME(https://bitwarden.atlassian.net/browse/CL-903): Migrate to Signals
|
||||||
|
// eslint-disable-next-line @angular-eslint/prefer-output-emitter-ref
|
||||||
@Output() onAuthRequestAnswered = new EventEmitter<DevicePendingAuthRequest>();
|
@Output() onAuthRequestAnswered = new EventEmitter<DevicePendingAuthRequest>();
|
||||||
|
|
||||||
protected answerAuthRequest(pendingAuthRequest: DevicePendingAuthRequest | null) {
|
protected answerAuthRequest(pendingAuthRequest: DevicePendingAuthRequest | null) {
|
||||||
|
|||||||
@@ -15,6 +15,8 @@ import {
|
|||||||
import { DeviceDisplayData } from "./device-management.component";
|
import { DeviceDisplayData } from "./device-management.component";
|
||||||
|
|
||||||
/** Displays user devices in a sortable table view */
|
/** Displays user devices in a sortable table view */
|
||||||
|
// FIXME(https://bitwarden.atlassian.net/browse/CL-764): Migrate to OnPush
|
||||||
|
// eslint-disable-next-line @angular-eslint/prefer-on-push-component-change-detection
|
||||||
@Component({
|
@Component({
|
||||||
standalone: true,
|
standalone: true,
|
||||||
selector: "auth-device-management-table",
|
selector: "auth-device-management-table",
|
||||||
@@ -22,7 +24,11 @@ import { DeviceDisplayData } from "./device-management.component";
|
|||||||
imports: [BadgeModule, ButtonModule, CommonModule, JslibModule, LinkModule, TableModule],
|
imports: [BadgeModule, ButtonModule, CommonModule, JslibModule, LinkModule, TableModule],
|
||||||
})
|
})
|
||||||
export class DeviceManagementTableComponent implements OnChanges {
|
export class DeviceManagementTableComponent implements OnChanges {
|
||||||
|
// FIXME(https://bitwarden.atlassian.net/browse/CL-903): Migrate to Signals
|
||||||
|
// eslint-disable-next-line @angular-eslint/prefer-signals
|
||||||
@Input() devices: DeviceDisplayData[] = [];
|
@Input() devices: DeviceDisplayData[] = [];
|
||||||
|
// FIXME(https://bitwarden.atlassian.net/browse/CL-903): Migrate to Signals
|
||||||
|
// eslint-disable-next-line @angular-eslint/prefer-output-emitter-ref
|
||||||
@Output() onAuthRequestAnswered = new EventEmitter<DevicePendingAuthRequest>();
|
@Output() onAuthRequestAnswered = new EventEmitter<DevicePendingAuthRequest>();
|
||||||
|
|
||||||
protected tableDataSource = new TableDataSource<DeviceDisplayData>();
|
protected tableDataSource = new TableDataSource<DeviceDisplayData>();
|
||||||
|
|||||||
@@ -50,6 +50,8 @@ export interface DeviceDisplayData {
|
|||||||
* - Medium to Large screens = `bit-table` view
|
* - Medium to Large screens = `bit-table` view
|
||||||
* - Small screens = `bit-item-group` view
|
* - Small screens = `bit-item-group` view
|
||||||
*/
|
*/
|
||||||
|
// FIXME(https://bitwarden.atlassian.net/browse/CL-764): Migrate to OnPush
|
||||||
|
// eslint-disable-next-line @angular-eslint/prefer-on-push-component-change-detection
|
||||||
@Component({
|
@Component({
|
||||||
standalone: true,
|
standalone: true,
|
||||||
selector: "auth-device-management",
|
selector: "auth-device-management",
|
||||||
|
|||||||
@@ -20,6 +20,8 @@ import {
|
|||||||
} from "@bitwarden/components";
|
} from "@bitwarden/components";
|
||||||
import { I18nPipe } from "@bitwarden/ui-common";
|
import { I18nPipe } from "@bitwarden/ui-common";
|
||||||
|
|
||||||
|
// FIXME(https://bitwarden.atlassian.net/browse/CL-764): Migrate to OnPush
|
||||||
|
// eslint-disable-next-line @angular-eslint/prefer-on-push-component-change-detection
|
||||||
@Component({
|
@Component({
|
||||||
selector: "environment-selector",
|
selector: "environment-selector",
|
||||||
templateUrl: "environment-selector.component.html",
|
templateUrl: "environment-selector.component.html",
|
||||||
|
|||||||
@@ -13,6 +13,8 @@ import { LogService } from "@bitwarden/common/platform/abstractions/log.service"
|
|||||||
|
|
||||||
import { activeAuthGuard } from "./active-auth.guard";
|
import { activeAuthGuard } from "./active-auth.guard";
|
||||||
|
|
||||||
|
// FIXME(https://bitwarden.atlassian.net/browse/CL-764): Migrate to OnPush
|
||||||
|
// eslint-disable-next-line @angular-eslint/prefer-on-push-component-change-detection
|
||||||
@Component({ template: "", standalone: false })
|
@Component({ template: "", standalone: false })
|
||||||
class EmptyComponent {}
|
class EmptyComponent {}
|
||||||
|
|
||||||
|
|||||||
@@ -33,6 +33,8 @@ export interface LoginApprovalDialogParams {
|
|||||||
notificationId: string;
|
notificationId: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// FIXME(https://bitwarden.atlassian.net/browse/CL-764): Migrate to OnPush
|
||||||
|
// eslint-disable-next-line @angular-eslint/prefer-on-push-component-change-detection
|
||||||
@Component({
|
@Component({
|
||||||
templateUrl: "login-approval-dialog.component.html",
|
templateUrl: "login-approval-dialog.component.html",
|
||||||
imports: [AsyncActionsModule, ButtonModule, CommonModule, DialogModule, JslibModule],
|
imports: [AsyncActionsModule, ButtonModule, CommonModule, DialogModule, JslibModule],
|
||||||
|
|||||||
@@ -31,6 +31,8 @@ import {
|
|||||||
import { KeyService } from "@bitwarden/key-management";
|
import { KeyService } from "@bitwarden/key-management";
|
||||||
|
|
||||||
export type State = "assert" | "assertFailed";
|
export type State = "assert" | "assertFailed";
|
||||||
|
// FIXME(https://bitwarden.atlassian.net/browse/CL-764): Migrate to OnPush
|
||||||
|
// eslint-disable-next-line @angular-eslint/prefer-on-push-component-change-detection
|
||||||
@Component({
|
@Component({
|
||||||
selector: "app-login-via-webauthn",
|
selector: "app-login-via-webauthn",
|
||||||
templateUrl: "login-via-webauthn.component.html",
|
templateUrl: "login-via-webauthn.component.html",
|
||||||
|
|||||||
@@ -39,12 +39,16 @@ import { ChangePasswordService } from "./change-password.service.abstraction";
|
|||||||
* and by design to maintain a strong security posture as some flows could have the user
|
* and by design to maintain a strong security posture as some flows could have the user
|
||||||
* end up at a change password without having one before.
|
* end up at a change password without having one before.
|
||||||
*/
|
*/
|
||||||
|
// FIXME(https://bitwarden.atlassian.net/browse/CL-764): Migrate to OnPush
|
||||||
|
// eslint-disable-next-line @angular-eslint/prefer-on-push-component-change-detection
|
||||||
@Component({
|
@Component({
|
||||||
selector: "auth-change-password",
|
selector: "auth-change-password",
|
||||||
templateUrl: "change-password.component.html",
|
templateUrl: "change-password.component.html",
|
||||||
imports: [InputPasswordComponent, I18nPipe, CalloutComponent, CommonModule],
|
imports: [InputPasswordComponent, I18nPipe, CalloutComponent, CommonModule],
|
||||||
})
|
})
|
||||||
export class ChangePasswordComponent implements OnInit {
|
export class ChangePasswordComponent implements OnInit {
|
||||||
|
// FIXME(https://bitwarden.atlassian.net/browse/CL-903): Migrate to Signals
|
||||||
|
// eslint-disable-next-line @angular-eslint/prefer-signals
|
||||||
@Input() inputPasswordFlow: InputPasswordFlow = InputPasswordFlow.ChangePassword;
|
@Input() inputPasswordFlow: InputPasswordFlow = InputPasswordFlow.ChangePassword;
|
||||||
|
|
||||||
activeAccount: Account | null = null;
|
activeAccount: Account | null = null;
|
||||||
|
|||||||
@@ -45,6 +45,8 @@ import {
|
|||||||
SetInitialPasswordUserType,
|
SetInitialPasswordUserType,
|
||||||
} from "./set-initial-password.service.abstraction";
|
} from "./set-initial-password.service.abstraction";
|
||||||
|
|
||||||
|
// FIXME(https://bitwarden.atlassian.net/browse/CL-764): Migrate to OnPush
|
||||||
|
// eslint-disable-next-line @angular-eslint/prefer-on-push-component-change-detection
|
||||||
@Component({
|
@Component({
|
||||||
standalone: true,
|
standalone: true,
|
||||||
templateUrl: "set-initial-password.component.html",
|
templateUrl: "set-initial-password.component.html",
|
||||||
|
|||||||
@@ -9,6 +9,8 @@ export type FingerprintDialogData = {
|
|||||||
fingerprint: string[];
|
fingerprint: string[];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// FIXME(https://bitwarden.atlassian.net/browse/CL-764): Migrate to OnPush
|
||||||
|
// eslint-disable-next-line @angular-eslint/prefer-on-push-component-change-detection
|
||||||
@Component({
|
@Component({
|
||||||
templateUrl: "fingerprint-dialog.component.html",
|
templateUrl: "fingerprint-dialog.component.html",
|
||||||
imports: [JslibModule, ButtonModule, DialogModule],
|
imports: [JslibModule, ButtonModule, DialogModule],
|
||||||
|
|||||||
@@ -99,6 +99,8 @@ interface InputPasswordForm {
|
|||||||
rotateUserKey?: FormControl<boolean>;
|
rotateUserKey?: FormControl<boolean>;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// FIXME(https://bitwarden.atlassian.net/browse/CL-764): Migrate to OnPush
|
||||||
|
// eslint-disable-next-line @angular-eslint/prefer-on-push-component-change-detection
|
||||||
@Component({
|
@Component({
|
||||||
selector: "auth-input-password",
|
selector: "auth-input-password",
|
||||||
templateUrl: "./input-password.component.html",
|
templateUrl: "./input-password.component.html",
|
||||||
@@ -118,24 +120,48 @@ interface InputPasswordForm {
|
|||||||
],
|
],
|
||||||
})
|
})
|
||||||
export class InputPasswordComponent implements OnInit {
|
export class InputPasswordComponent implements OnInit {
|
||||||
|
// FIXME(https://bitwarden.atlassian.net/browse/CL-903): Migrate to Signals
|
||||||
|
// eslint-disable-next-line @angular-eslint/prefer-signals
|
||||||
@ViewChild(PasswordStrengthV2Component) passwordStrengthComponent:
|
@ViewChild(PasswordStrengthV2Component) passwordStrengthComponent:
|
||||||
| PasswordStrengthV2Component
|
| PasswordStrengthV2Component
|
||||||
| undefined = undefined;
|
| undefined = undefined;
|
||||||
|
|
||||||
|
// FIXME(https://bitwarden.atlassian.net/browse/CL-903): Migrate to Signals
|
||||||
|
// eslint-disable-next-line @angular-eslint/prefer-output-emitter-ref
|
||||||
@Output() onPasswordFormSubmit = new EventEmitter<PasswordInputResult>();
|
@Output() onPasswordFormSubmit = new EventEmitter<PasswordInputResult>();
|
||||||
|
// FIXME(https://bitwarden.atlassian.net/browse/CL-903): Migrate to Signals
|
||||||
|
// eslint-disable-next-line @angular-eslint/prefer-output-emitter-ref
|
||||||
@Output() onSecondaryButtonClick = new EventEmitter<void>();
|
@Output() onSecondaryButtonClick = new EventEmitter<void>();
|
||||||
|
// FIXME(https://bitwarden.atlassian.net/browse/CL-903): Migrate to Signals
|
||||||
|
// eslint-disable-next-line @angular-eslint/prefer-output-emitter-ref
|
||||||
@Output() isSubmitting = new EventEmitter<boolean>();
|
@Output() isSubmitting = new EventEmitter<boolean>();
|
||||||
|
|
||||||
|
// FIXME(https://bitwarden.atlassian.net/browse/CL-903): Migrate to Signals
|
||||||
|
// eslint-disable-next-line @angular-eslint/prefer-signals
|
||||||
@Input({ required: true }) flow!: InputPasswordFlow;
|
@Input({ required: true }) flow!: InputPasswordFlow;
|
||||||
|
|
||||||
|
// FIXME(https://bitwarden.atlassian.net/browse/CL-903): Migrate to Signals
|
||||||
|
// eslint-disable-next-line @angular-eslint/prefer-signals
|
||||||
@Input({ transform: (val: string) => val?.trim().toLowerCase() }) email?: string;
|
@Input({ transform: (val: string) => val?.trim().toLowerCase() }) email?: string;
|
||||||
|
// FIXME(https://bitwarden.atlassian.net/browse/CL-903): Migrate to Signals
|
||||||
|
// eslint-disable-next-line @angular-eslint/prefer-signals
|
||||||
@Input() userId?: UserId;
|
@Input() userId?: UserId;
|
||||||
|
// FIXME(https://bitwarden.atlassian.net/browse/CL-903): Migrate to Signals
|
||||||
|
// eslint-disable-next-line @angular-eslint/prefer-signals
|
||||||
@Input() loading = false;
|
@Input() loading = false;
|
||||||
|
// FIXME(https://bitwarden.atlassian.net/browse/CL-903): Migrate to Signals
|
||||||
|
// eslint-disable-next-line @angular-eslint/prefer-signals
|
||||||
@Input() masterPasswordPolicyOptions?: MasterPasswordPolicyOptions;
|
@Input() masterPasswordPolicyOptions?: MasterPasswordPolicyOptions;
|
||||||
|
|
||||||
|
// FIXME(https://bitwarden.atlassian.net/browse/CL-903): Migrate to Signals
|
||||||
|
// eslint-disable-next-line @angular-eslint/prefer-signals
|
||||||
@Input() inlineButtons = false;
|
@Input() inlineButtons = false;
|
||||||
|
// FIXME(https://bitwarden.atlassian.net/browse/CL-903): Migrate to Signals
|
||||||
|
// eslint-disable-next-line @angular-eslint/prefer-signals
|
||||||
@Input() primaryButtonText?: Translation;
|
@Input() primaryButtonText?: Translation;
|
||||||
protected primaryButtonTextStr: string = "";
|
protected primaryButtonTextStr: string = "";
|
||||||
|
// FIXME(https://bitwarden.atlassian.net/browse/CL-903): Migrate to Signals
|
||||||
|
// eslint-disable-next-line @angular-eslint/prefer-signals
|
||||||
@Input() secondaryButtonText?: Translation;
|
@Input() secondaryButtonText?: Translation;
|
||||||
protected secondaryButtonTextStr: string = "";
|
protected secondaryButtonTextStr: string = "";
|
||||||
|
|
||||||
|
|||||||
@@ -50,6 +50,8 @@ enum State {
|
|||||||
ExistingUserUntrustedDevice,
|
ExistingUserUntrustedDevice,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// FIXME(https://bitwarden.atlassian.net/browse/CL-764): Migrate to OnPush
|
||||||
|
// eslint-disable-next-line @angular-eslint/prefer-on-push-component-change-detection
|
||||||
@Component({
|
@Component({
|
||||||
templateUrl: "./login-decryption-options.component.html",
|
templateUrl: "./login-decryption-options.component.html",
|
||||||
imports: [
|
imports: [
|
||||||
|
|||||||
@@ -56,6 +56,8 @@ const matchOptions: IsActiveMatchOptions = {
|
|||||||
matrixParams: "ignored",
|
matrixParams: "ignored",
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// FIXME(https://bitwarden.atlassian.net/browse/CL-764): Migrate to OnPush
|
||||||
|
// eslint-disable-next-line @angular-eslint/prefer-on-push-component-change-detection
|
||||||
@Component({
|
@Component({
|
||||||
templateUrl: "./login-via-auth-request.component.html",
|
templateUrl: "./login-via-auth-request.component.html",
|
||||||
imports: [ButtonModule, CommonModule, JslibModule, LinkModule, RouterModule],
|
imports: [ButtonModule, CommonModule, JslibModule, LinkModule, RouterModule],
|
||||||
|
|||||||
@@ -8,6 +8,8 @@ import { DefaultServerSettingsService } from "@bitwarden/common/platform/service
|
|||||||
// eslint-disable-next-line no-restricted-imports
|
// eslint-disable-next-line no-restricted-imports
|
||||||
import { LinkModule } from "@bitwarden/components";
|
import { LinkModule } from "@bitwarden/components";
|
||||||
|
|
||||||
|
// FIXME(https://bitwarden.atlassian.net/browse/CL-764): Migrate to OnPush
|
||||||
|
// eslint-disable-next-line @angular-eslint/prefer-on-push-component-change-detection
|
||||||
@Component({
|
@Component({
|
||||||
imports: [CommonModule, JslibModule, LinkModule, RouterModule],
|
imports: [CommonModule, JslibModule, LinkModule, RouterModule],
|
||||||
template: `
|
template: `
|
||||||
|
|||||||
@@ -67,6 +67,8 @@ export enum LoginUiState {
|
|||||||
MASTER_PASSWORD_ENTRY = "MasterPasswordEntry",
|
MASTER_PASSWORD_ENTRY = "MasterPasswordEntry",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// FIXME(https://bitwarden.atlassian.net/browse/CL-764): Migrate to OnPush
|
||||||
|
// eslint-disable-next-line @angular-eslint/prefer-on-push-component-change-detection
|
||||||
@Component({
|
@Component({
|
||||||
templateUrl: "./login.component.html",
|
templateUrl: "./login.component.html",
|
||||||
imports: [
|
imports: [
|
||||||
@@ -83,6 +85,8 @@ export enum LoginUiState {
|
|||||||
],
|
],
|
||||||
})
|
})
|
||||||
export class LoginComponent implements OnInit, OnDestroy {
|
export class LoginComponent implements OnInit, OnDestroy {
|
||||||
|
// FIXME(https://bitwarden.atlassian.net/browse/CL-903): Migrate to Signals
|
||||||
|
// eslint-disable-next-line @angular-eslint/prefer-signals
|
||||||
@ViewChild("masterPasswordInputRef") masterPasswordInputRef: ElementRef | undefined;
|
@ViewChild("masterPasswordInputRef") masterPasswordInputRef: ElementRef | undefined;
|
||||||
|
|
||||||
private destroy$ = new Subject<void>();
|
private destroy$ = new Subject<void>();
|
||||||
|
|||||||
@@ -30,6 +30,8 @@ import { NewDeviceVerificationComponentService } from "./new-device-verification
|
|||||||
/**
|
/**
|
||||||
* Component for verifying a new device via a one-time password (OTP).
|
* Component for verifying a new device via a one-time password (OTP).
|
||||||
*/
|
*/
|
||||||
|
// FIXME(https://bitwarden.atlassian.net/browse/CL-764): Migrate to OnPush
|
||||||
|
// eslint-disable-next-line @angular-eslint/prefer-on-push-component-change-detection
|
||||||
@Component({
|
@Component({
|
||||||
selector: "app-new-device-verification",
|
selector: "app-new-device-verification",
|
||||||
templateUrl: "./new-device-verification.component.html",
|
templateUrl: "./new-device-verification.component.html",
|
||||||
|
|||||||
@@ -10,13 +10,19 @@ import { I18nService } from "@bitwarden/common/platform/abstractions/i18n.servic
|
|||||||
// eslint-disable-next-line no-restricted-imports
|
// eslint-disable-next-line no-restricted-imports
|
||||||
import { CalloutModule } from "@bitwarden/components";
|
import { CalloutModule } from "@bitwarden/components";
|
||||||
|
|
||||||
|
// FIXME(https://bitwarden.atlassian.net/browse/CL-764): Migrate to OnPush
|
||||||
|
// eslint-disable-next-line @angular-eslint/prefer-on-push-component-change-detection
|
||||||
@Component({
|
@Component({
|
||||||
selector: "auth-password-callout",
|
selector: "auth-password-callout",
|
||||||
templateUrl: "password-callout.component.html",
|
templateUrl: "password-callout.component.html",
|
||||||
imports: [CommonModule, JslibModule, CalloutModule],
|
imports: [CommonModule, JslibModule, CalloutModule],
|
||||||
})
|
})
|
||||||
export class PasswordCalloutComponent {
|
export class PasswordCalloutComponent {
|
||||||
|
// FIXME(https://bitwarden.atlassian.net/browse/CL-903): Migrate to Signals
|
||||||
|
// eslint-disable-next-line @angular-eslint/prefer-signals
|
||||||
@Input() message = "masterPasswordPolicyInEffect";
|
@Input() message = "masterPasswordPolicyInEffect";
|
||||||
|
// FIXME(https://bitwarden.atlassian.net/browse/CL-903): Migrate to Signals
|
||||||
|
// eslint-disable-next-line @angular-eslint/prefer-signals
|
||||||
@Input() policy: MasterPasswordPolicyOptions;
|
@Input() policy: MasterPasswordPolicyOptions;
|
||||||
|
|
||||||
constructor(private i18nService: I18nService) {}
|
constructor(private i18nService: I18nService) {}
|
||||||
|
|||||||
@@ -22,6 +22,8 @@ import {
|
|||||||
ToastService,
|
ToastService,
|
||||||
} from "@bitwarden/components";
|
} from "@bitwarden/components";
|
||||||
|
|
||||||
|
// FIXME(https://bitwarden.atlassian.net/browse/CL-764): Migrate to OnPush
|
||||||
|
// eslint-disable-next-line @angular-eslint/prefer-on-push-component-change-detection
|
||||||
@Component({
|
@Component({
|
||||||
templateUrl: "./password-hint.component.html",
|
templateUrl: "./password-hint.component.html",
|
||||||
imports: [
|
imports: [
|
||||||
|
|||||||
@@ -25,12 +25,16 @@ import { SelfHostedEnvConfigDialogComponent } from "../../self-hosted-env-config
|
|||||||
* Component for selecting the environment to register with in the email verification registration flow.
|
* Component for selecting the environment to register with in the email verification registration flow.
|
||||||
* Outputs the selected region to the parent component so it can respond as necessary.
|
* Outputs the selected region to the parent component so it can respond as necessary.
|
||||||
*/
|
*/
|
||||||
|
// FIXME(https://bitwarden.atlassian.net/browse/CL-764): Migrate to OnPush
|
||||||
|
// eslint-disable-next-line @angular-eslint/prefer-on-push-component-change-detection
|
||||||
@Component({
|
@Component({
|
||||||
selector: "auth-registration-env-selector",
|
selector: "auth-registration-env-selector",
|
||||||
templateUrl: "registration-env-selector.component.html",
|
templateUrl: "registration-env-selector.component.html",
|
||||||
imports: [CommonModule, JslibModule, ReactiveFormsModule, FormFieldModule, SelectModule],
|
imports: [CommonModule, JslibModule, ReactiveFormsModule, FormFieldModule, SelectModule],
|
||||||
})
|
})
|
||||||
export class RegistrationEnvSelectorComponent implements OnInit, OnDestroy {
|
export class RegistrationEnvSelectorComponent implements OnInit, OnDestroy {
|
||||||
|
// FIXME(https://bitwarden.atlassian.net/browse/CL-903): Migrate to Signals
|
||||||
|
// eslint-disable-next-line @angular-eslint/prefer-output-emitter-ref
|
||||||
@Output() selectedRegionChange = new EventEmitter<RegionConfig | Region.SelfHosted | null>();
|
@Output() selectedRegionChange = new EventEmitter<RegionConfig | Region.SelfHosted | null>();
|
||||||
|
|
||||||
ServerEnvironmentType = Region;
|
ServerEnvironmentType = Region;
|
||||||
|
|||||||
@@ -31,6 +31,8 @@ import { PasswordInputResult } from "../../input-password/password-input-result"
|
|||||||
|
|
||||||
import { RegistrationFinishService } from "./registration-finish.service";
|
import { RegistrationFinishService } from "./registration-finish.service";
|
||||||
|
|
||||||
|
// FIXME(https://bitwarden.atlassian.net/browse/CL-764): Migrate to OnPush
|
||||||
|
// eslint-disable-next-line @angular-eslint/prefer-on-push-component-change-detection
|
||||||
@Component({
|
@Component({
|
||||||
selector: "auth-registration-finish",
|
selector: "auth-registration-finish",
|
||||||
templateUrl: "./registration-finish.component.html",
|
templateUrl: "./registration-finish.component.html",
|
||||||
|
|||||||
@@ -19,6 +19,8 @@ export interface RegistrationLinkExpiredComponentData {
|
|||||||
loginRoute: string;
|
loginRoute: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// FIXME(https://bitwarden.atlassian.net/browse/CL-764): Migrate to OnPush
|
||||||
|
// eslint-disable-next-line @angular-eslint/prefer-on-push-component-change-detection
|
||||||
@Component({
|
@Component({
|
||||||
selector: "auth-registration-link-expired",
|
selector: "auth-registration-link-expired",
|
||||||
templateUrl: "./registration-link-expired.component.html",
|
templateUrl: "./registration-link-expired.component.html",
|
||||||
|
|||||||
@@ -18,6 +18,8 @@ export interface RegistrationStartSecondaryComponentData {
|
|||||||
loginRoute: string;
|
loginRoute: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// FIXME(https://bitwarden.atlassian.net/browse/CL-764): Migrate to OnPush
|
||||||
|
// eslint-disable-next-line @angular-eslint/prefer-on-push-component-change-detection
|
||||||
@Component({
|
@Component({
|
||||||
selector: "auth-registration-start-secondary",
|
selector: "auth-registration-start-secondary",
|
||||||
templateUrl: "./registration-start-secondary.component.html",
|
templateUrl: "./registration-start-secondary.component.html",
|
||||||
|
|||||||
@@ -40,6 +40,8 @@ const DEFAULT_MARKETING_EMAILS_PREF_BY_REGION: Record<Region, boolean> = {
|
|||||||
[Region.SelfHosted]: false,
|
[Region.SelfHosted]: false,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// FIXME(https://bitwarden.atlassian.net/browse/CL-764): Migrate to OnPush
|
||||||
|
// eslint-disable-next-line @angular-eslint/prefer-on-push-component-change-detection
|
||||||
@Component({
|
@Component({
|
||||||
selector: "auth-registration-start",
|
selector: "auth-registration-start",
|
||||||
templateUrl: "./registration-start.component.html",
|
templateUrl: "./registration-start.component.html",
|
||||||
@@ -57,6 +59,8 @@ const DEFAULT_MARKETING_EMAILS_PREF_BY_REGION: Record<Region, boolean> = {
|
|||||||
],
|
],
|
||||||
})
|
})
|
||||||
export class RegistrationStartComponent implements OnInit, OnDestroy {
|
export class RegistrationStartComponent implements OnInit, OnDestroy {
|
||||||
|
// FIXME(https://bitwarden.atlassian.net/browse/CL-903): Migrate to Signals
|
||||||
|
// eslint-disable-next-line @angular-eslint/prefer-output-emitter-ref
|
||||||
@Output() registrationStartStateChange = new EventEmitter<RegistrationStartState>();
|
@Output() registrationStartStateChange = new EventEmitter<RegistrationStartState>();
|
||||||
|
|
||||||
state: RegistrationStartState = RegistrationStartState.USER_DATA_ENTRY;
|
state: RegistrationStartState = RegistrationStartState.USER_DATA_ENTRY;
|
||||||
|
|||||||
@@ -54,6 +54,8 @@ function selfHostedEnvSettingsFormValidator(): ValidatorFn {
|
|||||||
/**
|
/**
|
||||||
* Dialog for configuring self-hosted environment settings.
|
* Dialog for configuring self-hosted environment settings.
|
||||||
*/
|
*/
|
||||||
|
// FIXME(https://bitwarden.atlassian.net/browse/CL-764): Migrate to OnPush
|
||||||
|
// eslint-disable-next-line @angular-eslint/prefer-on-push-component-change-detection
|
||||||
@Component({
|
@Component({
|
||||||
selector: "self-hosted-env-config-dialog",
|
selector: "self-hosted-env-config-dialog",
|
||||||
templateUrl: "self-hosted-env-config-dialog.component.html",
|
templateUrl: "self-hosted-env-config-dialog.component.html",
|
||||||
|
|||||||
@@ -62,6 +62,8 @@ interface QueryParams {
|
|||||||
/**
|
/**
|
||||||
* This component handles the SSO flow.
|
* This component handles the SSO flow.
|
||||||
*/
|
*/
|
||||||
|
// FIXME(https://bitwarden.atlassian.net/browse/CL-764): Migrate to OnPush
|
||||||
|
// eslint-disable-next-line @angular-eslint/prefer-on-push-component-change-detection
|
||||||
@Component({
|
@Component({
|
||||||
templateUrl: "sso.component.html",
|
templateUrl: "sso.component.html",
|
||||||
imports: [
|
imports: [
|
||||||
|
|||||||
@@ -14,6 +14,8 @@ import {
|
|||||||
AsyncActionsModule,
|
AsyncActionsModule,
|
||||||
} from "@bitwarden/components";
|
} from "@bitwarden/components";
|
||||||
|
|
||||||
|
// FIXME(https://bitwarden.atlassian.net/browse/CL-764): Migrate to OnPush
|
||||||
|
// eslint-disable-next-line @angular-eslint/prefer-on-push-component-change-detection
|
||||||
@Component({
|
@Component({
|
||||||
selector: "app-two-factor-auth-authenticator",
|
selector: "app-two-factor-auth-authenticator",
|
||||||
templateUrl: "two-factor-auth-authenticator.component.html",
|
templateUrl: "two-factor-auth-authenticator.component.html",
|
||||||
@@ -32,7 +34,11 @@ import {
|
|||||||
providers: [],
|
providers: [],
|
||||||
})
|
})
|
||||||
export class TwoFactorAuthAuthenticatorComponent {
|
export class TwoFactorAuthAuthenticatorComponent {
|
||||||
|
// FIXME(https://bitwarden.atlassian.net/browse/CL-903): Migrate to Signals
|
||||||
|
// eslint-disable-next-line @angular-eslint/prefer-signals
|
||||||
@Input({ required: true }) tokenFormControl: FormControl | undefined = undefined;
|
@Input({ required: true }) tokenFormControl: FormControl | undefined = undefined;
|
||||||
|
// FIXME(https://bitwarden.atlassian.net/browse/CL-903): Migrate to Signals
|
||||||
|
// eslint-disable-next-line @angular-eslint/prefer-output-emitter-ref
|
||||||
@Output() tokenChange = new EventEmitter<{ token: string }>();
|
@Output() tokenChange = new EventEmitter<{ token: string }>();
|
||||||
|
|
||||||
onTokenChange(event: Event) {
|
onTokenChange(event: Event) {
|
||||||
|
|||||||
@@ -25,6 +25,8 @@ import {
|
|||||||
TwoFactorAuthDuoComponentService,
|
TwoFactorAuthDuoComponentService,
|
||||||
} from "./two-factor-auth-duo-component.service";
|
} from "./two-factor-auth-duo-component.service";
|
||||||
|
|
||||||
|
// FIXME(https://bitwarden.atlassian.net/browse/CL-764): Migrate to OnPush
|
||||||
|
// eslint-disable-next-line @angular-eslint/prefer-on-push-component-change-detection
|
||||||
@Component({
|
@Component({
|
||||||
selector: "app-two-factor-auth-duo",
|
selector: "app-two-factor-auth-duo",
|
||||||
template: "",
|
template: "",
|
||||||
@@ -43,7 +45,11 @@ import {
|
|||||||
providers: [],
|
providers: [],
|
||||||
})
|
})
|
||||||
export class TwoFactorAuthDuoComponent implements OnInit {
|
export class TwoFactorAuthDuoComponent implements OnInit {
|
||||||
|
// FIXME(https://bitwarden.atlassian.net/browse/CL-903): Migrate to Signals
|
||||||
|
// eslint-disable-next-line @angular-eslint/prefer-output-emitter-ref
|
||||||
@Output() tokenEmitter = new EventEmitter<string>();
|
@Output() tokenEmitter = new EventEmitter<string>();
|
||||||
|
// FIXME(https://bitwarden.atlassian.net/browse/CL-903): Migrate to Signals
|
||||||
|
// eslint-disable-next-line @angular-eslint/prefer-signals
|
||||||
@Input() providerData: any;
|
@Input() providerData: any;
|
||||||
|
|
||||||
duoFramelessUrl: string | undefined = undefined;
|
duoFramelessUrl: string | undefined = undefined;
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ export class TwoFactorAuthEmailComponentCacheService {
|
|||||||
/**
|
/**
|
||||||
* Signal for the cached email state.
|
* Signal for the cached email state.
|
||||||
*/
|
*/
|
||||||
private emailCache: WritableSignal<TwoFactorAuthEmailComponentCache | null> =
|
private readonly emailCache: WritableSignal<TwoFactorAuthEmailComponentCache | null> =
|
||||||
this.viewCacheService.signal<TwoFactorAuthEmailComponentCache | null>({
|
this.viewCacheService.signal<TwoFactorAuthEmailComponentCache | null>({
|
||||||
key: TWO_FACTOR_AUTH_EMAIL_COMPONENT_CACHE_KEY,
|
key: TWO_FACTOR_AUTH_EMAIL_COMPONENT_CACHE_KEY,
|
||||||
initialValue: null,
|
initialValue: null,
|
||||||
|
|||||||
@@ -26,6 +26,8 @@ import {
|
|||||||
|
|
||||||
import { TwoFactorAuthEmailComponentCacheService } from "./two-factor-auth-email-component-cache.service";
|
import { TwoFactorAuthEmailComponentCacheService } from "./two-factor-auth-email-component-cache.service";
|
||||||
|
|
||||||
|
// FIXME(https://bitwarden.atlassian.net/browse/CL-764): Migrate to OnPush
|
||||||
|
// eslint-disable-next-line @angular-eslint/prefer-on-push-component-change-detection
|
||||||
@Component({
|
@Component({
|
||||||
selector: "app-two-factor-auth-email",
|
selector: "app-two-factor-auth-email",
|
||||||
templateUrl: "two-factor-auth-email.component.html",
|
templateUrl: "two-factor-auth-email.component.html",
|
||||||
@@ -49,7 +51,11 @@ import { TwoFactorAuthEmailComponentCacheService } from "./two-factor-auth-email
|
|||||||
],
|
],
|
||||||
})
|
})
|
||||||
export class TwoFactorAuthEmailComponent implements OnInit {
|
export class TwoFactorAuthEmailComponent implements OnInit {
|
||||||
|
// FIXME(https://bitwarden.atlassian.net/browse/CL-903): Migrate to Signals
|
||||||
|
// eslint-disable-next-line @angular-eslint/prefer-signals
|
||||||
@Input({ required: true }) tokenFormControl: FormControl | undefined = undefined;
|
@Input({ required: true }) tokenFormControl: FormControl | undefined = undefined;
|
||||||
|
// FIXME(https://bitwarden.atlassian.net/browse/CL-903): Migrate to Signals
|
||||||
|
// eslint-disable-next-line @angular-eslint/prefer-output-emitter-ref
|
||||||
@Output() tokenChange = new EventEmitter<{ token: string }>();
|
@Output() tokenChange = new EventEmitter<{ token: string }>();
|
||||||
|
|
||||||
twoFactorEmail: string | undefined = undefined;
|
twoFactorEmail: string | undefined = undefined;
|
||||||
|
|||||||
@@ -32,6 +32,8 @@ export interface WebAuthnResult {
|
|||||||
remember?: boolean;
|
remember?: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// FIXME(https://bitwarden.atlassian.net/browse/CL-764): Migrate to OnPush
|
||||||
|
// eslint-disable-next-line @angular-eslint/prefer-on-push-component-change-detection
|
||||||
@Component({
|
@Component({
|
||||||
selector: "app-two-factor-auth-webauthn",
|
selector: "app-two-factor-auth-webauthn",
|
||||||
templateUrl: "two-factor-auth-webauthn.component.html",
|
templateUrl: "two-factor-auth-webauthn.component.html",
|
||||||
@@ -50,7 +52,11 @@ export interface WebAuthnResult {
|
|||||||
providers: [],
|
providers: [],
|
||||||
})
|
})
|
||||||
export class TwoFactorAuthWebAuthnComponent implements OnInit, OnDestroy {
|
export class TwoFactorAuthWebAuthnComponent implements OnInit, OnDestroy {
|
||||||
|
// FIXME(https://bitwarden.atlassian.net/browse/CL-903): Migrate to Signals
|
||||||
|
// eslint-disable-next-line @angular-eslint/prefer-output-emitter-ref
|
||||||
@Output() webAuthnResultEmitter = new EventEmitter<WebAuthnResult>();
|
@Output() webAuthnResultEmitter = new EventEmitter<WebAuthnResult>();
|
||||||
|
// FIXME(https://bitwarden.atlassian.net/browse/CL-903): Migrate to Signals
|
||||||
|
// eslint-disable-next-line @angular-eslint/prefer-output-emitter-ref
|
||||||
@Output() webAuthnInNewTabEmitter = new EventEmitter<boolean>();
|
@Output() webAuthnInNewTabEmitter = new EventEmitter<boolean>();
|
||||||
|
|
||||||
webAuthnReady = false;
|
webAuthnReady = false;
|
||||||
|
|||||||
@@ -14,6 +14,8 @@ import {
|
|||||||
AsyncActionsModule,
|
AsyncActionsModule,
|
||||||
} from "@bitwarden/components";
|
} from "@bitwarden/components";
|
||||||
|
|
||||||
|
// FIXME(https://bitwarden.atlassian.net/browse/CL-764): Migrate to OnPush
|
||||||
|
// eslint-disable-next-line @angular-eslint/prefer-on-push-component-change-detection
|
||||||
@Component({
|
@Component({
|
||||||
selector: "app-two-factor-auth-yubikey",
|
selector: "app-two-factor-auth-yubikey",
|
||||||
templateUrl: "two-factor-auth-yubikey.component.html",
|
templateUrl: "two-factor-auth-yubikey.component.html",
|
||||||
@@ -32,5 +34,7 @@ import {
|
|||||||
providers: [],
|
providers: [],
|
||||||
})
|
})
|
||||||
export class TwoFactorAuthYubikeyComponent {
|
export class TwoFactorAuthYubikeyComponent {
|
||||||
|
// FIXME(https://bitwarden.atlassian.net/browse/CL-903): Migrate to Signals
|
||||||
|
// eslint-disable-next-line @angular-eslint/prefer-signals
|
||||||
@Input({ required: true }) tokenFormControl: FormControl | undefined = undefined;
|
@Input({ required: true }) tokenFormControl: FormControl | undefined = undefined;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ export class TwoFactorAuthComponentCacheService {
|
|||||||
/**
|
/**
|
||||||
* Signal for the cached TwoFactorAuthData.
|
* Signal for the cached TwoFactorAuthData.
|
||||||
*/
|
*/
|
||||||
private twoFactorAuthComponentCache: WritableSignal<TwoFactorAuthComponentCache | null> =
|
private readonly twoFactorAuthComponentCache: WritableSignal<TwoFactorAuthComponentCache | null> =
|
||||||
this.viewCacheService.signal<TwoFactorAuthComponentCache | null>({
|
this.viewCacheService.signal<TwoFactorAuthComponentCache | null>({
|
||||||
key: TWO_FACTOR_AUTH_COMPONENT_CACHE_KEY,
|
key: TWO_FACTOR_AUTH_COMPONENT_CACHE_KEY,
|
||||||
initialValue: null,
|
initialValue: null,
|
||||||
|
|||||||
@@ -46,6 +46,8 @@ import { TwoFactorAuthComponentCacheService } from "./two-factor-auth-component-
|
|||||||
import { TwoFactorAuthComponentService } from "./two-factor-auth-component.service";
|
import { TwoFactorAuthComponentService } from "./two-factor-auth-component.service";
|
||||||
import { TwoFactorAuthComponent } from "./two-factor-auth.component";
|
import { TwoFactorAuthComponent } from "./two-factor-auth.component";
|
||||||
|
|
||||||
|
// FIXME(https://bitwarden.atlassian.net/browse/CL-764): Migrate to OnPush
|
||||||
|
// eslint-disable-next-line @angular-eslint/prefer-on-push-component-change-detection
|
||||||
@Component({ standalone: false })
|
@Component({ standalone: false })
|
||||||
class TestTwoFactorComponent extends TwoFactorAuthComponent {}
|
class TestTwoFactorComponent extends TwoFactorAuthComponent {}
|
||||||
|
|
||||||
|
|||||||
@@ -75,6 +75,8 @@ import {
|
|||||||
TwoFactorOptionsDialogResult,
|
TwoFactorOptionsDialogResult,
|
||||||
} from "./two-factor-options.component";
|
} from "./two-factor-options.component";
|
||||||
|
|
||||||
|
// FIXME(https://bitwarden.atlassian.net/browse/CL-764): Migrate to OnPush
|
||||||
|
// eslint-disable-next-line @angular-eslint/prefer-on-push-component-change-detection
|
||||||
@Component({
|
@Component({
|
||||||
selector: "app-two-factor-auth",
|
selector: "app-two-factor-auth",
|
||||||
templateUrl: "two-factor-auth.component.html",
|
templateUrl: "two-factor-auth.component.html",
|
||||||
@@ -99,6 +101,8 @@ import {
|
|||||||
],
|
],
|
||||||
})
|
})
|
||||||
export class TwoFactorAuthComponent implements OnInit, OnDestroy {
|
export class TwoFactorAuthComponent implements OnInit, OnDestroy {
|
||||||
|
// FIXME(https://bitwarden.atlassian.net/browse/CL-903): Migrate to Signals
|
||||||
|
// eslint-disable-next-line @angular-eslint/prefer-signals
|
||||||
@ViewChild("continueButton", { read: ElementRef, static: false }) continueButton:
|
@ViewChild("continueButton", { read: ElementRef, static: false }) continueButton:
|
||||||
| ElementRef
|
| ElementRef
|
||||||
| undefined = undefined;
|
| undefined = undefined;
|
||||||
@@ -114,6 +118,8 @@ export class TwoFactorAuthComponent implements OnInit, OnDestroy {
|
|||||||
twoFactorProviders: Map<TwoFactorProviderType, { [key: string]: string }> | null = null;
|
twoFactorProviders: Map<TwoFactorProviderType, { [key: string]: string }> | null = null;
|
||||||
selectedProviderData: { [key: string]: string } | undefined;
|
selectedProviderData: { [key: string]: string } | undefined;
|
||||||
|
|
||||||
|
// FIXME(https://bitwarden.atlassian.net/browse/CL-903): Migrate to Signals
|
||||||
|
// eslint-disable-next-line @angular-eslint/prefer-signals
|
||||||
@ViewChild("duoComponent") duoComponent!: TwoFactorAuthDuoComponent;
|
@ViewChild("duoComponent") duoComponent!: TwoFactorAuthDuoComponent;
|
||||||
|
|
||||||
form = this.formBuilder.group({
|
form = this.formBuilder.group({
|
||||||
|
|||||||
@@ -11,6 +11,8 @@ import { LoginStrategyServiceAbstraction } from "../../common";
|
|||||||
|
|
||||||
import { TwoFactorAuthGuard } from "./two-factor-auth.guard";
|
import { TwoFactorAuthGuard } from "./two-factor-auth.guard";
|
||||||
|
|
||||||
|
// FIXME(https://bitwarden.atlassian.net/browse/CL-764): Migrate to OnPush
|
||||||
|
// eslint-disable-next-line @angular-eslint/prefer-on-push-component-change-detection
|
||||||
@Component({ template: "", standalone: true })
|
@Component({ template: "", standalone: true })
|
||||||
export class EmptyComponent {}
|
export class EmptyComponent {}
|
||||||
|
|
||||||
|
|||||||
@@ -30,6 +30,8 @@ export type TwoFactorOptionsDialogResult = {
|
|||||||
type: TwoFactorProviderType;
|
type: TwoFactorProviderType;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// FIXME(https://bitwarden.atlassian.net/browse/CL-764): Migrate to OnPush
|
||||||
|
// eslint-disable-next-line @angular-eslint/prefer-on-push-component-change-detection
|
||||||
@Component({
|
@Component({
|
||||||
selector: "app-two-factor-options",
|
selector: "app-two-factor-options",
|
||||||
templateUrl: "two-factor-options.component.html",
|
templateUrl: "two-factor-options.component.html",
|
||||||
|
|||||||
@@ -30,6 +30,8 @@ import {
|
|||||||
} from "./user-verification-dialog.types";
|
} from "./user-verification-dialog.types";
|
||||||
import { UserVerificationFormInputComponent } from "./user-verification-form-input.component";
|
import { UserVerificationFormInputComponent } from "./user-verification-form-input.component";
|
||||||
|
|
||||||
|
// FIXME(https://bitwarden.atlassian.net/browse/CL-764): Migrate to OnPush
|
||||||
|
// eslint-disable-next-line @angular-eslint/prefer-on-push-component-change-detection
|
||||||
@Component({
|
@Component({
|
||||||
templateUrl: "user-verification-dialog.component.html",
|
templateUrl: "user-verification-dialog.component.html",
|
||||||
imports: [
|
imports: [
|
||||||
|
|||||||
@@ -40,6 +40,8 @@ import { ActiveClientVerificationOption } from "./active-client-verification-opt
|
|||||||
* This is exposed to the parent component via the ControlValueAccessor interface (e.g. bind it to a FormControl).
|
* This is exposed to the parent component via the ControlValueAccessor interface (e.g. bind it to a FormControl).
|
||||||
* Use UserVerificationService to verify the user's input.
|
* Use UserVerificationService to verify the user's input.
|
||||||
*/
|
*/
|
||||||
|
// FIXME(https://bitwarden.atlassian.net/browse/CL-764): Migrate to OnPush
|
||||||
|
// eslint-disable-next-line @angular-eslint/prefer-on-push-component-change-detection
|
||||||
@Component({
|
@Component({
|
||||||
selector: "app-user-verification-form-input",
|
selector: "app-user-verification-form-input",
|
||||||
templateUrl: "user-verification-form-input.component.html",
|
templateUrl: "user-verification-form-input.component.html",
|
||||||
@@ -69,8 +71,12 @@ import { ActiveClientVerificationOption } from "./active-client-verification-opt
|
|||||||
],
|
],
|
||||||
})
|
})
|
||||||
export class UserVerificationFormInputComponent implements ControlValueAccessor, OnInit, OnDestroy {
|
export class UserVerificationFormInputComponent implements ControlValueAccessor, OnInit, OnDestroy {
|
||||||
|
// FIXME(https://bitwarden.atlassian.net/browse/CL-903): Migrate to Signals
|
||||||
|
// eslint-disable-next-line @angular-eslint/prefer-signals
|
||||||
@Input() verificationType: "server" | "client" = "server"; // server represents original behavior
|
@Input() verificationType: "server" | "client" = "server"; // server represents original behavior
|
||||||
private _invalidSecret = false;
|
private _invalidSecret = false;
|
||||||
|
// FIXME(https://bitwarden.atlassian.net/browse/CL-903): Migrate to Signals
|
||||||
|
// eslint-disable-next-line @angular-eslint/prefer-signals
|
||||||
@Input()
|
@Input()
|
||||||
get invalidSecret() {
|
get invalidSecret() {
|
||||||
return this._invalidSecret;
|
return this._invalidSecret;
|
||||||
@@ -88,11 +94,17 @@ export class UserVerificationFormInputComponent implements ControlValueAccessor,
|
|||||||
}
|
}
|
||||||
this.secret.updateValueAndValidity({ emitEvent: false });
|
this.secret.updateValueAndValidity({ emitEvent: false });
|
||||||
}
|
}
|
||||||
|
// FIXME(https://bitwarden.atlassian.net/browse/CL-903): Migrate to Signals
|
||||||
|
// eslint-disable-next-line @angular-eslint/prefer-output-emitter-ref
|
||||||
@Output() invalidSecretChange = new EventEmitter<boolean>();
|
@Output() invalidSecretChange = new EventEmitter<boolean>();
|
||||||
|
|
||||||
|
// FIXME(https://bitwarden.atlassian.net/browse/CL-903): Migrate to Signals
|
||||||
|
// eslint-disable-next-line @angular-eslint/prefer-output-emitter-ref
|
||||||
@Output() activeClientVerificationOptionChange =
|
@Output() activeClientVerificationOptionChange =
|
||||||
new EventEmitter<ActiveClientVerificationOption>();
|
new EventEmitter<ActiveClientVerificationOption>();
|
||||||
|
|
||||||
|
// FIXME(https://bitwarden.atlassian.net/browse/CL-903): Migrate to Signals
|
||||||
|
// eslint-disable-next-line @angular-eslint/prefer-output-emitter-ref
|
||||||
@Output() biometricsVerificationResultChange = new EventEmitter<boolean>();
|
@Output() biometricsVerificationResultChange = new EventEmitter<boolean>();
|
||||||
|
|
||||||
readonly Icons = { UserVerificationBiometricsIcon };
|
readonly Icons = { UserVerificationBiometricsIcon };
|
||||||
|
|||||||
@@ -44,6 +44,8 @@ type VaultTimeoutForm = FormGroup<{
|
|||||||
|
|
||||||
type VaultTimeoutFormValue = VaultTimeoutForm["value"];
|
type VaultTimeoutFormValue = VaultTimeoutForm["value"];
|
||||||
|
|
||||||
|
// FIXME(https://bitwarden.atlassian.net/browse/CL-764): Migrate to OnPush
|
||||||
|
// eslint-disable-next-line @angular-eslint/prefer-on-push-component-change-detection
|
||||||
@Component({
|
@Component({
|
||||||
selector: "auth-vault-timeout-input",
|
selector: "auth-vault-timeout-input",
|
||||||
templateUrl: "vault-timeout-input.component.html",
|
templateUrl: "vault-timeout-input.component.html",
|
||||||
@@ -110,6 +112,8 @@ export class VaultTimeoutInputComponent
|
|||||||
}),
|
}),
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// FIXME(https://bitwarden.atlassian.net/browse/CL-903): Migrate to Signals
|
||||||
|
// eslint-disable-next-line @angular-eslint/prefer-signals
|
||||||
@Input() vaultTimeoutOptions: VaultTimeoutOption[];
|
@Input() vaultTimeoutOptions: VaultTimeoutOption[];
|
||||||
|
|
||||||
vaultTimeoutPolicy: Policy;
|
vaultTimeoutPolicy: Policy;
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ const LOGIN_VIA_AUTH_CACHE_KEY = "login-via-auth-request-form-cache";
|
|||||||
export class LoginViaAuthRequestCacheService {
|
export class LoginViaAuthRequestCacheService {
|
||||||
private viewCacheService: ViewCacheService = inject(ViewCacheService);
|
private viewCacheService: ViewCacheService = inject(ViewCacheService);
|
||||||
|
|
||||||
private defaultLoginViaAuthRequestCache: WritableSignal<LoginViaAuthRequestView | null> =
|
private readonly defaultLoginViaAuthRequestCache: WritableSignal<LoginViaAuthRequestView | null> =
|
||||||
this.viewCacheService.signal<LoginViaAuthRequestView | null>({
|
this.viewCacheService.signal<LoginViaAuthRequestView | null>({
|
||||||
key: LOGIN_VIA_AUTH_CACHE_KEY,
|
key: LOGIN_VIA_AUTH_CACHE_KEY,
|
||||||
initialValue: null,
|
initialValue: null,
|
||||||
|
|||||||
Reference in New Issue
Block a user