mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-5163] Fix placeholder on Form widgets (#5812)
This commit is contained in:
@@ -12,7 +12,7 @@
|
|||||||
[max]="maxDate"
|
[max]="maxDate"
|
||||||
(focusout)="onDateChanged($event.srcElement.value)"
|
(focusout)="onDateChanged($event.srcElement.value)"
|
||||||
(dateChange)="onDateChanged($event)"
|
(dateChange)="onDateChanged($event)"
|
||||||
placeholder="{{field.placeholder}}">
|
[placeholder]="field.placeholder">
|
||||||
<mat-datetimepicker-toggle matSuffix [for]="datetimePicker" [disabled]="field.readOnly"></mat-datetimepicker-toggle>
|
<mat-datetimepicker-toggle matSuffix [for]="datetimePicker" [disabled]="field.readOnly"></mat-datetimepicker-toggle>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
<error-widget [error]="field.validationSummary"></error-widget>
|
<error-widget [error]="field.validationSummary"></error-widget>
|
||||||
|
@@ -5,7 +5,9 @@
|
|||||||
.mat-form-field-suffix {
|
.mat-form-field-suffix {
|
||||||
top: 26px;
|
top: 26px;
|
||||||
}
|
}
|
||||||
|
.mat-form-field-label-wrapper {
|
||||||
|
top: 20px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -11,7 +11,7 @@
|
|||||||
[max]="maxDate"
|
[max]="maxDate"
|
||||||
(focusout)="onDateChanged($event.srcElement.value)"
|
(focusout)="onDateChanged($event.srcElement.value)"
|
||||||
(dateChange)="onDateChanged($event)"
|
(dateChange)="onDateChanged($event)"
|
||||||
placeholder="{{field.placeholder}}">
|
[placeholder]="field.placeholder">
|
||||||
<mat-datepicker-toggle matSuffix [for]="datePicker" [disabled]="field.readOnly" ></mat-datepicker-toggle>
|
<mat-datepicker-toggle matSuffix [for]="datePicker" [disabled]="field.readOnly" ></mat-datepicker-toggle>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
<error-widget [error]="field.validationSummary"></error-widget>
|
<error-widget [error]="field.validationSummary"></error-widget>
|
||||||
|
@@ -5,5 +5,8 @@
|
|||||||
.mat-form-field-suffix {
|
.mat-form-field-suffix {
|
||||||
top: 26px;
|
top: 26px;
|
||||||
}
|
}
|
||||||
|
.mat-form-field-label-wrapper {
|
||||||
|
top: 20px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -11,7 +11,7 @@
|
|||||||
[(ngModel)]="field.value"
|
[(ngModel)]="field.value"
|
||||||
(ngModelChange)="onFieldChanged(field)"
|
(ngModelChange)="onFieldChanged(field)"
|
||||||
[disabled]="field.readOnly || readOnly"
|
[disabled]="field.readOnly || readOnly"
|
||||||
placeholder="{{field.placeholder}}">
|
[placeholder]="field.placeholder">
|
||||||
</textarea>
|
</textarea>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
<div *ngIf="field.maxLength > 0" class="adf-multiline-word-counter">
|
<div *ngIf="field.maxLength > 0" class="adf-multiline-word-counter">
|
||||||
|
@@ -2,6 +2,9 @@
|
|||||||
|
|
||||||
&-multiline-text-widget {
|
&-multiline-text-widget {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
.mat-form-field-label-wrapper {
|
||||||
|
top: 20px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&-multiline-word-counter {
|
&-multiline-word-counter {
|
||||||
|
@@ -12,7 +12,7 @@
|
|||||||
[(ngModel)]="field.value"
|
[(ngModel)]="field.value"
|
||||||
(ngModelChange)="onFieldChanged(field)"
|
(ngModelChange)="onFieldChanged(field)"
|
||||||
[disabled]="field.readOnly"
|
[disabled]="field.readOnly"
|
||||||
placeholder="{{field.placeholder}}">
|
[placeholder]="field.placeholder">
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
<error-widget [error]="field.validationSummary" ></error-widget>
|
<error-widget [error]="field.validationSummary" ></error-widget>
|
||||||
<error-widget *ngIf="isInvalidFieldRequired()" required="{{ 'FORM.FIELD.REQUIRED' | translate }}"></error-widget>
|
<error-widget *ngIf="isInvalidFieldRequired()" required="{{ 'FORM.FIELD.REQUIRED' | translate }}"></error-widget>
|
||||||
|
@@ -3,5 +3,8 @@
|
|||||||
.adf {
|
.adf {
|
||||||
&-number-widget {
|
&-number-widget {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
.mat-form-field-label-wrapper {
|
||||||
|
top: 20px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -3,5 +3,8 @@
|
|||||||
.adf {
|
.adf {
|
||||||
&-text-widget {
|
&-text-widget {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
.mat-form-field-label-wrapper {
|
||||||
|
top: 20px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -11,7 +11,7 @@
|
|||||||
[max]="maxDate"
|
[max]="maxDate"
|
||||||
(focusout)="onDateChanged($event.srcElement.value)"
|
(focusout)="onDateChanged($event.srcElement.value)"
|
||||||
(dateChange)="onDateChanged($event)"
|
(dateChange)="onDateChanged($event)"
|
||||||
placeholder="{{field.placeholder}}">
|
[placeholder]="field.placeholder">
|
||||||
<mat-datepicker-toggle matSuffix [for]="datePicker" [disabled]="field.readOnly" ></mat-datepicker-toggle>
|
<mat-datepicker-toggle matSuffix [for]="datePicker" [disabled]="field.readOnly" ></mat-datepicker-toggle>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
<error-widget [error]="field.validationSummary"></error-widget>
|
<error-widget [error]="field.validationSummary"></error-widget>
|
||||||
|
@@ -4,5 +4,8 @@
|
|||||||
.mat-form-field-suffix {
|
.mat-form-field-suffix {
|
||||||
top: 26px;
|
top: 26px;
|
||||||
}
|
}
|
||||||
|
.mat-form-field-label-wrapper {
|
||||||
|
top: 20px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user