@coolon/angular-ui-powerups 2.0.0-alpha.14 → 2.0.0-alpha.16

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.16](https://bitbucket.org/coolon/angular-ui-powerups/compare/v2.0.0-alpha.15...v2.0.0-alpha.16) (2020-08-07)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * made auto-complete actually work ([1f40b6c](https://bitbucket.org/coolon/angular-ui-powerups/commit/1f40b6c5b5e867650629cbdc94b0e7f7a34dd50f))
11
+
12
+ ## [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)
13
+
14
+
15
+ ### Bug Fixes
16
+
17
+ * moved immer to dev dependencies ([c102b23](https://bitbucket.org/coolon/angular-ui-powerups/commit/c102b23133da1c23534a28f2cc120608b95a33e9))
18
+
5
19
  ## [2.0.0-alpha.14](https://bitbucket.org/coolon/angular-ui-powerups/compare/v2.0.0-alpha.13...v2.0.0-alpha.14) (2020-08-06)
6
20
 
7
21
  ## [2.0.0-alpha.13](https://bitbucket.org/coolon/angular-ui-powerups/compare/v2.0.0-alpha.12...v2.0.0-alpha.13) (2020-07-31)
@@ -1018,13 +1018,21 @@
1018
1018
  .select(function (option) {
1019
1019
  return ___default__default.isEmpty(_this.filterValue.value) || _this.optionLabelFormat(option).toString().toLowerCase().includes(lowerCaseFilterValue.value);
1020
1020
  }, { dependsOn: lowerCaseFilterValue });
1021
+ var txo = new pectin.TransactionObserver().onEvent(function (e) { return console.log(e.name, e.payload); });
1022
+ txo.observe('this.valueModel', _this.valueModel);
1021
1023
  return _this;
1022
1024
  }
1023
1025
  AutocompleteInputComponent.prototype.ngOnInit = function () {
1024
1026
  };
1027
+ AutocompleteInputComponent.prototype.formatOption = function (option) {
1028
+ return this.optionLabelFormat(option);
1029
+ };
1025
1030
  AutocompleteInputComponent.prototype.updateFilter = function ($event) {
1026
1031
  this.filterValue.value = $event;
1027
1032
  };
1033
+ AutocompleteInputComponent.prototype.onSelect = function ($event) {
1034
+ this.valueModel.value = $event.option.value;
1035
+ };
1028
1036
  __decorate([
1029
1037
  core.Input(), pectin.TrackExternal(),
1030
1038
  __metadata("design:type", pectin.ListModel)
@@ -1052,7 +1060,7 @@
1052
1060
  AutocompleteInputComponent = __decorate([
1053
1061
  core.Component({
1054
1062
  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",
1063
+ 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
1064
  styles: [":host{display:inline-block}mat-form-field{width:100%}"]
1057
1065
  }),
1058
1066
  __metadata("design:paramtypes", [])