Commit 704534e7 authored by LAVENIER's avatar LAVENIER
Browse files

Release v0.13.17

parent d53913f7
{
"name": "@sumaris-net/ngx-components",
"description": "SUMARiS Angular components",
"version": "0.13.16",
"version": "0.13.17",
"author": "contact@e-is.pro",
"license": "AGPL-3.0",
"readmeFilename": "README.md",
......
......@@ -8,12 +8,11 @@
<div matPrefix><ng-content select="[matPrefix]"></ng-content></div>
<!-- readonly -->
<ng-container *ngIf="readonly; else writable">
<ng-container *ngIf="_readonly; else writable">
<input matInput hidden type="text"
[placeholder]="placeholder"
[formControl]="formControl"
readonly>
<ion-label>{{ displayWith(value) }}&nbsp;</ion-label>
[formControl]="formControl" readonly>
<ion-text>{{displayWith(value)}}</ion-text>
</ng-container>
<ng-template #writable>
......@@ -89,7 +88,6 @@
[placeholder]="placeholder"
[appAutofocus]="autofocus"
[tabindex]="_tabindex"
[readonly]="readonly"
[required]="required"
(click)="onClick.emit($event)"
(focus)="filterInputTextFocusInEvent($event)"
......
......@@ -133,6 +133,7 @@ export class MatAutocompleteField implements OnInit, InputElement, OnDestroy, Co
private _itemCount: number;
private _reload$ = new Subject<any>();
_readonly = false;
_tabindex: number;
matSelectItems$: Observable<any[]>;
$inputItems = new BehaviorSubject<any[]>(undefined);
......@@ -161,7 +162,6 @@ export class MatAutocompleteField implements OnInit, InputElement, OnDestroy, Co
@Input() suggestFn: SuggestFn<any, any>;
@Input() required = false;
@Input() mobile: boolean;
@Input() readonly = false;
@Input() clearable = false;
@Input() debounceTime: number = null;
@Input() displayWith: DisplayFn | null;
......@@ -200,6 +200,15 @@ export class MatAutocompleteField implements OnInit, InputElement, OnDestroy, Co
return this._filter$.value;
}
@Input() set readonly(value: boolean){
this._readonly = value;
this.markForCheck();
}
get readonly(): boolean {
return this._readonly;
}
@Input() set tabindex(value: number) {
this._tabindex = value;
this.markForCheck();
......@@ -566,6 +575,7 @@ export class MatAutocompleteField implements OnInit, InputElement, OnDestroy, Co
}
setDisabledState(isDisabled: boolean): void {
this.enabled
this.cd.markForCheck();
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment