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:
@@ -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());
|
||||
|
||||
@@ -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) {}
|
||||
|
||||
|
||||
@@ -87,8 +87,8 @@ export default {
|
||||
SectionComponent,
|
||||
TextFieldModule,
|
||||
BadgeModule,
|
||||
A11yTitleDirective,
|
||||
],
|
||||
declarations: [A11yTitleDirective],
|
||||
providers: [
|
||||
{
|
||||
provide: I18nService,
|
||||
|
||||
@@ -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) {}
|
||||
|
||||
|
||||
@@ -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) {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user