1
0
mirror of https://github.com/bitwarden/browser synced 2026-01-03 00:53:23 +00:00

[CL-707] Migrate CL codebase to signals (#15340)

This commit is contained in:
Vicki League
2025-07-16 08:39:37 -04:00
committed by GitHub
parent 97ec9a6339
commit 6811ea4c0b
124 changed files with 944 additions and 809 deletions

View File

@@ -1,23 +1,19 @@
// FIXME: Update this file to be type safe and remove this and next line
// @ts-strict-ignore
import { Component, Input, booleanAttribute } from "@angular/core";
import { Component, booleanAttribute, input } from "@angular/core";
import { Option } from "./option";
import { MappedOptionComponent } from "./option";
@Component({
selector: "bit-option",
template: `<ng-template><ng-content></ng-content></ng-template>`,
})
export class OptionComponent<T = unknown> implements Option<T> {
@Input()
icon?: string;
export class OptionComponent<T = unknown> implements MappedOptionComponent<T> {
readonly icon = input<string>();
@Input({ required: true })
value: T;
readonly value = input.required<T>();
@Input({ required: true })
label: string;
readonly label = input.required<string>();
@Input({ transform: booleanAttribute })
disabled: boolean;
readonly disabled = input(undefined, { transform: booleanAttribute });
}