mirror of
https://github.com/bitwarden/browser
synced 2026-01-17 07:53:46 +00:00
* Move vault-timeout-input to @bitwarden/auth/angular Move vault-timeout-input.component.ts to @bitwarden/auth/angular/vault-timeout-input Expose via barrel file Fix imports on clients * Add dependencies to package.json Not necessary right now, but good practice for once we move to building each package independently * Make VaultTimeoutInputComponent a standalone component * Update selector to present team ownership * Use new standalone on web Move vault-timeout-input.component.html to @bitwarden/auth/angular/vault-timeout-input/ Delete old vault-timeout-input.component on web Register new component on loose-components-module Update used selector in preferences.component * Remove unneeded export of VaultTimeoutInputComponent --------- Co-authored-by: Daniel James Smith <djsmith85@users.noreply.github.com>
23 lines
648 B
TypeScript
23 lines
648 B
TypeScript
import { Component } from "@angular/core";
|
|
import { NG_VALIDATORS, NG_VALUE_ACCESSOR } from "@angular/forms";
|
|
|
|
import { VaultTimeoutInputComponent as VaultTimeoutInputComponentBase } from "@bitwarden/auth/angular";
|
|
|
|
@Component({
|
|
selector: "app-vault-timeout-input",
|
|
templateUrl: "vault-timeout-input.component.html",
|
|
providers: [
|
|
{
|
|
provide: NG_VALUE_ACCESSOR,
|
|
multi: true,
|
|
useExisting: VaultTimeoutInputComponent,
|
|
},
|
|
{
|
|
provide: NG_VALIDATORS,
|
|
multi: true,
|
|
useExisting: VaultTimeoutInputComponent,
|
|
},
|
|
],
|
|
})
|
|
export class VaultTimeoutInputComponent extends VaultTimeoutInputComponentBase {}
|