@coolon/angular-ui-powerups 2.0.0-alpha.15 → 2.0.0-alpha.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,20 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ## [2.0.0-alpha.17](https://bitbucket.org/coolon/angular-ui-powerups/compare/v2.0.0-alpha.16...v2.0.0-alpha.17) (2020-08-07)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * removed debug from autocomplete ([c75dc89](https://bitbucket.org/coolon/angular-ui-powerups/commit/c75dc89123747755fa027d6e6367808d48d9cd97))
11
+
12
+ ## [2.0.0-alpha.16](https://bitbucket.org/coolon/angular-ui-powerups/compare/v2.0.0-alpha.15...v2.0.0-alpha.16) (2020-08-07)
13
+
14
+
15
+ ### Bug Fixes
16
+
17
+ * made auto-complete actually work ([1f40b6c](https://bitbucket.org/coolon/angular-ui-powerups/commit/1f40b6c5b5e867650629cbdc94b0e7f7a34dd50f))
18
+
5
19
  ## [2.0.0-alpha.15](https://bitbucket.org/coolon/angular-ui-powerups/compare/v2.0.0-alpha.14...v2.0.0-alpha.15) (2020-08-06)
6
20
 
7
21
 
@@ -1022,9 +1022,15 @@
1022
1022
  }
1023
1023
  AutocompleteInputComponent.prototype.ngOnInit = function () {
1024
1024
  };
1025
+ AutocompleteInputComponent.prototype.formatOption = function (option) {
1026
+ return this.optionLabelFormat(option);
1027
+ };
1025
1028
  AutocompleteInputComponent.prototype.updateFilter = function ($event) {
1026
1029
  this.filterValue.value = $event;
1027
1030
  };
1031
+ AutocompleteInputComponent.prototype.onSelect = function ($event) {
1032
+ this.valueModel.value = $event.option.value;
1033
+ };
1028
1034
  __decorate([
1029
1035
  core.Input(), pectin.TrackExternal(),
1030
1036
  __metadata("design:type", pectin.ListModel)
@@ -1052,7 +1058,7 @@
1052
1058
  AutocompleteInputComponent = __decorate([
1053
1059
  core.Component({
1054
1060
  selector: 'aup-autocomplete-input',
1055
- template: "<mat-form-field appearance=\"standard\" [floatLabel]=\"floatLabel\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <input type=\"string\"\n matInput\n [matAutocomplete]=\"autocomplete\"\n placeholder=\"{{placeholder}}\"\n [ngModel]=\"optionLabelFormat(valueModel.value)\"\n (ngModelChange)=\"updateFilter($event)\"\n [disabled]=\"!enabled.value\"\n (keydown.enter)=\"notifyEnterKey()\"\n (keydown.escape)=\"notifyEscapeKey()\"\n [pectinFocusBinding]=\"focusContext\"\n [errorStateMatcher]=\"errorStateMatcher\"\n >\n <mat-autocomplete #autocomplete [displayWith]=\"optionLabelFormat\" [autoActiveFirstOption]=\"true\">\n <mat-option *ngFor=\"let option of filteredOptions.value; let i = index\"\n [value]=\"option\"\n >{{optionLabelFormat(option)}}</mat-option>\n <mat-option *ngIf=\"allowNil\">{{placeholder}}</mat-option>\n </mat-autocomplete>\n\n <mat-hint *ngIf=\"showHint\">{{hint}}</mat-hint>\n <mat-error *ngIf=\"hasErrors\">{{firstError}}</mat-error>\n</mat-form-field>\n",
1061
+ template: "<mat-form-field appearance=\"standard\" [floatLabel]=\"floatLabel\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <input type=\"string\"\n matInput\n [matAutocomplete]=\"autocomplete\"\n placeholder=\"{{placeholder}}\"\n [ngModel]=\"valueModel.value\"\n (ngModelChange)=\"updateFilter($event)\"\n [disabled]=\"!enabled.value\"\n (keydown.enter)=\"notifyEnterKey()\"\n (keydown.escape)=\"notifyEscapeKey()\"\n [pectinFocusBinding]=\"focusContext\"\n [errorStateMatcher]=\"errorStateMatcher\"\n >\n <mat-autocomplete #autocomplete [displayWith]=\"optionLabelFormat\" [autoActiveFirstOption]=\"true\" (optionSelected)=\"onSelect($event)\">\n <mat-option *ngFor=\"let option of filteredOptions.value; let i = index\"\n [value]=\"option\"\n >{{formatOption(option)}}</mat-option>\n <mat-option *ngIf=\"allowNil\">{{placeholder}}</mat-option>\n </mat-autocomplete>\n\n <mat-hint *ngIf=\"showHint\">{{hint}}</mat-hint>\n <mat-error *ngIf=\"hasErrors\">{{firstError}}</mat-error>\n</mat-form-field>\n",
1056
1062
  styles: [":host{display:inline-block}mat-form-field{width:100%}"]
1057
1063
  }),
1058
1064
  __metadata("design:paramtypes", [])