<div class="mdl-textfield mdl-js-textfield text-widget {{field.className}}"
     [class.text-widget__invalid]="!field.isValid">
    <label [attr.for]="field.id">{{field.name}}<span *ngIf="isRequired()">*</span></label>
    <input class="mdl-textfield__input"
           type="text"
           [attr.id]="field.id"
           [attr.required]="isRequired()"
           [value]="field.value"
           [(ngModel)]="field.value"
           (ngModelChange)="onFieldChanged(field)"
           [disabled]="field.readOnly"
           [textMask]="{mask: mask, isReversed: isMaskReversed}"
           placeholder="{{field.placeholder}}">
    <span *ngIf="field.validationSummary" class="mdl-textfield__error">{{field.validationSummary}}</span>
</div>
