1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-11 22:13:32 +00:00

fixes for form-field module

This commit is contained in:
Vicki League
2025-06-25 15:55:06 -04:00
parent 40eb0195e9
commit 3c47eb8900
5 changed files with 9 additions and 9 deletions

View File

@@ -18,7 +18,7 @@ import { I18nPipe } from "@bitwarden/ui-common";
imports: [I18nPipe],
})
export class BitErrorSummary {
readonly formGroup = input<UntypedFormGroup>(undefined);
readonly formGroup = input<UntypedFormGroup>();
get errorCount(): number {
return this.getErrorCount(this.formGroup());

View File

@@ -18,7 +18,7 @@ let nextId = 0;
export class BitErrorComponent {
@HostBinding() id = `bit-error-${nextId++}`;
readonly error = input<[string, any]>(undefined);
readonly error = input<[string, any]>();
constructor(private i18nService: I18nService) {}

View File

@@ -87,8 +87,8 @@ export default {
SectionComponent,
TextFieldModule,
BadgeModule,
A11yTitleDirective,
],
declarations: [A11yTitleDirective],
providers: [
{
provide: I18nService,

View File

@@ -1,15 +1,15 @@
import { Directive, input, OnInit, Optional } from "@angular/core";
import { Directive, OnInit, Optional } from "@angular/core";
import { BitIconButtonComponent } from "../icon-button/icon-button.component";
@Directive({
selector: "[bitPrefix]",
host: {
"[attr.class]": "classList()",
"[class]": "classList()",
},
})
export class BitPrefixDirective implements OnInit {
readonly classList = input(["tw-text-muted"]);
readonly classList = ["tw-text-muted"];
constructor(@Optional() private iconButtonComponent: BitIconButtonComponent) {}

View File

@@ -1,15 +1,15 @@
import { Directive, input, OnInit, Optional } from "@angular/core";
import { Directive, OnInit, Optional } from "@angular/core";
import { BitIconButtonComponent } from "../icon-button/icon-button.component";
@Directive({
selector: "[bitSuffix]",
host: {
"[attr.class]": "classList()",
"[class]": "classList",
},
})
export class BitSuffixDirective implements OnInit {
readonly classList = input(["tw-text-muted"]);
readonly classList = ["tw-text-muted"];
constructor(@Optional() private iconButtonComponent: BitIconButtonComponent) {}