Merge pull request #7951 from kalutkaz/queueAutocompleteHint
Queue autocomplete add input hint
This commit is contained in:
commit
b74fa21b60
@ -15,7 +15,8 @@
|
|||||||
limitations under the License.
|
limitations under the License.
|
||||||
|
|
||||||
-->
|
-->
|
||||||
<mat-form-field [formGroup]="selectQueueFormGroup" class="mat-block autocomplete-queue">
|
<mat-form-field [formGroup]="selectQueueFormGroup"
|
||||||
|
class="mat-block autocomplete-queue">
|
||||||
<input matInput type="text" placeholder="{{ 'queue.queue-name' | translate }}"
|
<input matInput type="text" placeholder="{{ 'queue.queue-name' | translate }}"
|
||||||
#queueInput
|
#queueInput
|
||||||
formControlName="queueName"
|
formControlName="queueName"
|
||||||
@ -50,6 +51,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</mat-option>
|
</mat-option>
|
||||||
</mat-autocomplete>
|
</mat-autocomplete>
|
||||||
|
<mat-hint *ngIf = "autocompleteHint">{{ autocompleteHint | translate }}</mat-hint>
|
||||||
<mat-error *ngIf="selectQueueFormGroup.get('queueName').hasError('required')">
|
<mat-error *ngIf="selectQueueFormGroup.get('queueName').hasError('required')">
|
||||||
{{ 'queue.queue-required' | translate }}
|
{{ 'queue.queue-required' | translate }}
|
||||||
</mat-error>
|
</mat-error>
|
||||||
|
|||||||
@ -19,6 +19,7 @@
|
|||||||
.mat-option-text {
|
.mat-option-text {
|
||||||
display: inline;
|
display: inline;
|
||||||
}
|
}
|
||||||
|
|
||||||
.queue-option-description {
|
.queue-option-description {
|
||||||
display: block;
|
display: block;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
@ -27,3 +28,27 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
:host ::ng-deep {
|
||||||
|
.mat-form-field {
|
||||||
|
.mat-form-field-wrapper {
|
||||||
|
padding-bottom: 0px;
|
||||||
|
|
||||||
|
.mat-form-field-underline {
|
||||||
|
position: initial !important;
|
||||||
|
display: block;
|
||||||
|
margin-top: -1px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mat-form-field-subscript-wrapper,
|
||||||
|
.mat-form-field-ripple {
|
||||||
|
position: initial !important;
|
||||||
|
display: table;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mat-form-field-subscript-wrapper {
|
||||||
|
min-height: calc(1em + 1px);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
@ -54,6 +54,9 @@ export class QueueAutocompleteComponent implements ControlValueAccessor, OnInit
|
|||||||
@Input()
|
@Input()
|
||||||
requiredText: string;
|
requiredText: string;
|
||||||
|
|
||||||
|
@Input()
|
||||||
|
autocompleteHint: string;
|
||||||
|
|
||||||
private requiredValue: boolean;
|
private requiredValue: boolean;
|
||||||
get required(): boolean {
|
get required(): boolean {
|
||||||
return this.requiredValue;
|
return this.requiredValue;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user