Merge pull request #11952 from d2eight/master
Add configure appearance to the country autocomplete
This commit is contained in:
commit
a4a23b9f38
@ -15,7 +15,7 @@
|
|||||||
limitations under the License.
|
limitations under the License.
|
||||||
|
|
||||||
-->
|
-->
|
||||||
<mat-form-field [formGroup]="countryFormGroup" class="mat-block" subscriptSizing="{{subscriptSizing}}">
|
<mat-form-field [formGroup]="countryFormGroup" class="mat-block" subscriptSizing="{{subscriptSizing}}" [appearance]="appearance">
|
||||||
<mat-label>{{ labelText }}</mat-label>
|
<mat-label>{{ labelText }}</mat-label>
|
||||||
<input matInput type="text"
|
<input matInput type="text"
|
||||||
#countryInput
|
#countryInput
|
||||||
|
|||||||
@ -28,7 +28,7 @@ import {
|
|||||||
import { isNotEmptyStr } from '@core/utils';
|
import { isNotEmptyStr } from '@core/utils';
|
||||||
import { Observable, of } from 'rxjs';
|
import { Observable, of } from 'rxjs';
|
||||||
import { debounceTime, distinctUntilChanged, map, share, switchMap, tap } from 'rxjs/operators';
|
import { debounceTime, distinctUntilChanged, map, share, switchMap, tap } from 'rxjs/operators';
|
||||||
import { SubscriptSizing } from '@angular/material/form-field';
|
import { SubscriptSizing, MatFormFieldAppearance } from '@angular/material/form-field';
|
||||||
import { coerceBoolean } from '@shared/decorators/coercion';
|
import { coerceBoolean } from '@shared/decorators/coercion';
|
||||||
import { TranslateService } from '@ngx-translate/core';
|
import { TranslateService } from '@ngx-translate/core';
|
||||||
|
|
||||||
@ -71,6 +71,9 @@ export class CountryAutocompleteComponent implements OnInit, ControlValueAccesso
|
|||||||
@coerceBoolean()
|
@coerceBoolean()
|
||||||
required = false;
|
required = false;
|
||||||
|
|
||||||
|
@Input()
|
||||||
|
appearance: MatFormFieldAppearance = 'fill';
|
||||||
|
|
||||||
@Input()
|
@Input()
|
||||||
subscriptSizing: SubscriptSizing = 'fixed';
|
subscriptSizing: SubscriptSizing = 'fixed';
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user