diff --git a/CHANGELOG.md b/CHANGELOG.md index 3f0573b..432bc17 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,14 @@ # Changelog +## 1.7.2 +* Enhancement: Allow setting type of the search input field with `@Input() type` + [#138](https://github.com/bithost-gmbh/ngx-mat-select-search/issues/138) + + Thanks to @botoxparty + +* Enhancement: Tested and update peer dependency compatibility to allow + `@angular/core`: `^8.0.0`, `@angular/material`: `^8.0.0` + ## 1.7.1 * Enhancement: allow disabling scrolling active element into view when option list changes with `@Input() disableScrollToActiveOnOptionsChanged` [#130](https://github.com/bithost-gmbh/ngx-mat-select-search/issues/130) diff --git a/README.md b/README.md index b6581c1..a63a6a8 100644 --- a/README.md +++ b/README.md @@ -82,9 +82,8 @@ In order to change the labels, use the inputs specified in the [API](#api) secti ### Compatibility -* `@angular/core`: `^5.0.0 || ^6.0.0 || ^7.0.0`, -* `@angular/cdk`: `^5.0.0 || ^6.0.0 || ^7.0.0`, -* `@angular/material`: `^5.0.0 || ^6.0.0 || ^7.0.0`, +* `@angular/core`: `^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0`, +* `@angular/material`: `^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0`, * `rxjs`: `^5.5.2 || ^6.0.0` ### API @@ -96,6 +95,9 @@ Furthermore, it provides the following inputs: /** Label of the search placeholder */ @Input() placeholderLabel = 'Suche'; + /** Type of the search input field */ + @Input() type = "text"; + /** Label to be shown when no entries are found. Set to null if no message should be shown. */ @Input() noEntriesFoundLabel = 'Keine Optionen gefunden'; diff --git a/package-lock.json b/package-lock.json index baa0576..01140bf 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "ngx-mat-select-search", - "version": "1.7.1", + "version": "1.7.2", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 908f560..82579ac 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "ngx-mat-select-search", "description": "Angular component providing an input field for searching / filtering MatSelect options of the Angular Material library.", - "version": "1.7.1", + "version": "1.7.2", "license": "MIT", "scripts": { "ng": "ng", @@ -33,9 +33,8 @@ ], "homepage": "https://github.com/bithost-gmbh/ngx-mat-select-search", "peerDependencies": { - "@angular/core": "^5.0.0 || ^6.0.0 || ^7.0.0", - "@angular/cdk": "^5.0.0 || ^6.0.0 || ^7.0.0", - "@angular/material": "^5.0.0 || ^6.0.0 || ^7.0.0", + "@angular/core": "^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0", + "@angular/material": "^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0", "rxjs": "^5.5.2 || ^6.0.0" }, "devDependencies": { diff --git a/src/app/mat-select-search/mat-select-search.component.html b/src/app/mat-select-search/mat-select-search.component.html index 6e82764..7a859d6 100755 --- a/src/app/mat-select-search/mat-select-search.component.html +++ b/src/app/mat-select-search/mat-select-search.component.html @@ -9,6 +9,7 @@