@coolon/angular-ui-powerups 0.0.133 → 0.0.134

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.
@@ -1029,7 +1029,7 @@
1029
1029
  function () {
1030
1030
  _this.valueModel.value = null;
1031
1031
  }));
1032
- _this.clearCommand.disableWhile(chain(_this.valueModel).isNil());
1032
+ _this.clearCommand.disableWhile(chain.stringValue(_this.valueModel).isBlank());
1033
1033
  return _this;
1034
1034
  }
1035
1035
  /**
@@ -1043,31 +1043,31 @@
1043
1043
  StringInputComponent.decorators = [
1044
1044
  { type: core.Component, args: [{
1045
1045
  selector: 'aup-string-input',
1046
- template: "<mat-form-field appearance=\"standard\" [floatLabel]=\"floatLabel\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <input matInput\n placeholder=\"{{placeholder}}\"\n [(ngModel)]=\"valueModel.value\"\n [disabled]=\"!enabled.value\"\n (keydown.enter)=\"notifyEnterKey()\"\n (keydown.escape)=\"notifyEscapeKey()\"\n [pectinFocusBinding]=\"valueModel\"\n [errorStateMatcher]=\"errorStateMatcher\"\n >\n <mat-hint *ngIf=\"hint\">{{hint}}</mat-hint>\n <mat-error *ngIf=\"hasErrors\">{{firstError}}</mat-error>\n <button mat-button mat-icon-button matSuffix *ngIf=\"allowClear && clearCommand.enabled.value\" [pectinCommand]=\"clearCommand\">\n <mat-icon>close</mat-icon>\n </button>\n</mat-form-field>\n\n",
1047
- styles: [":host{display:block}input,mat-form-field{width:100%}input mat-hint.faux-error,mat-form-field mat-hint.faux-error{color:#f44336}"]
1046
+ template: "<mat-form-field appearance=\"standard\" [floatLabel]=\"floatLabel\">\n <mat-label *ngIf=\"label\">{{label}}</mat-label>\n <input matInput\n placeholder=\"{{placeholder}}\"\n [(ngModel)]=\"valueModel.value\"\n [disabled]=\"!enabled.value\"\n (keydown.enter)=\"notifyEnterKey()\"\n (keydown.escape)=\"notifyEscapeKey()\"\n [pectinFocusBinding]=\"valueModel\"\n [errorStateMatcher]=\"errorStateMatcher\"\n >\n <mat-hint *ngIf=\"hint\">{{hint}}</mat-hint>\n <mat-error *ngIf=\"hasErrors\">{{firstError}}</mat-error>\n <button mat-button mat-icon-button matSuffix *ngIf=\"enableClear\" [pectinCommand]=\"clearCommand\">\n <mat-icon>close</mat-icon>\n </button>\n</mat-form-field>\n\n",
1047
+ styles: [":host{display:block}input,mat-form-field{width:100%}input mat-hint.faux-error,mat-form-field mat-hint.faux-error{color:#f44336}button[disabled]{visibility:hidden}"]
1048
1048
  }] }
1049
1049
  ];
1050
1050
  /** @nocollapse */
1051
1051
  StringInputComponent.ctorParameters = function () { return []; };
1052
1052
  StringInputComponent.propDecorators = {
1053
- allowClearModel: [{ type: core.Input }],
1054
- allowClear: [{ type: core.Input }]
1053
+ enableClearModel: [{ type: core.Input }],
1054
+ enableClear: [{ type: core.Input }]
1055
1055
  };
1056
1056
  __decorate([
1057
1057
  pectin.UseDelegate({ defaultValue: false }),
1058
1058
  __metadata("design:type", pectin.ValueModel)
1059
- ], StringInputComponent.prototype, "allowClearModel", void 0);
1059
+ ], StringInputComponent.prototype, "enableClearModel", void 0);
1060
1060
  __decorate([
1061
- pectin.StoreInValueModel('allowClearModel'),
1061
+ pectin.StoreInValueModel('enableClearModel'),
1062
1062
  __metadata("design:type", Boolean)
1063
- ], StringInputComponent.prototype, "allowClear", void 0);
1063
+ ], StringInputComponent.prototype, "enableClear", void 0);
1064
1064
  return StringInputComponent;
1065
1065
  }(AbstractInputComponent));
1066
1066
  if (false) {
1067
1067
  /** @type {?} */
1068
- StringInputComponent.prototype.allowClearModel;
1068
+ StringInputComponent.prototype.enableClearModel;
1069
1069
  /** @type {?} */
1070
- StringInputComponent.prototype.allowClear;
1070
+ StringInputComponent.prototype.enableClear;
1071
1071
  /** @type {?} */
1072
1072
  StringInputComponent.prototype.clearCommand;
1073
1073
  }