bitwarden-estensione-browser/libs/components/src/form-field/suffix.directive.ts

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

19 lines
437 B
TypeScript
Raw Normal View History

2022-06-02 09:34:13 +02:00
import { Directive, HostBinding, Input } from "@angular/core";
import { PrefixClasses } from "./prefix.directive";
@Directive({
selector: "[bitSuffix]",
})
export class BitSuffixDirective {
@HostBinding("class") @Input() get classList() {
return PrefixClasses.concat([
"tw-rounded-l-none",
"tw-border-l-0",
!this.last ? "tw-rounded-r-none" : "",
]).filter((c) => c != "");
}
@Input() last = false;
}