29 lines
708 B
HTML
29 lines
708 B
HTML
<mat-form-field [appearance]="appearance()" floatLabel="always">
|
|
<mat-label><ng-content select="pi-label"></ng-content></mat-label>
|
|
|
|
<ng-container matSuffix>
|
|
<pi-icon icon="email" size="small"></pi-icon>
|
|
</ng-container>
|
|
|
|
<input
|
|
[value]="value()"
|
|
(input)="value.set($any($event.target).value)"
|
|
(focus)="onFocus()"
|
|
(blur)="onBlur()"
|
|
[placeholder]="placeholder()!"
|
|
autocomplete="username email"
|
|
type="email"
|
|
matInput
|
|
pi-autofocus
|
|
[isAutofocusSelected]="isAutofocus()"
|
|
/>
|
|
</mat-form-field>
|
|
|
|
@if (enableErrorMessage() && hasError()) {
|
|
<mat-error>
|
|
@for (message of errorMessages(); track message) {
|
|
{{ message | translate }}
|
|
}
|
|
</mat-error>
|
|
}
|