@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.
@@ -847,7 +847,7 @@ var StringInputComponent = /** @class */ (function (_super) {
847
847
  function () {
848
848
  _this.valueModel.value = null;
849
849
  }));
850
- _this.clearCommand.disableWhile(chain(_this.valueModel).isNil());
850
+ _this.clearCommand.disableWhile(chain.stringValue(_this.valueModel).isBlank());
851
851
  return _this;
852
852
  }
853
853
  /**
@@ -861,31 +861,31 @@ var StringInputComponent = /** @class */ (function (_super) {
861
861
  StringInputComponent.decorators = [
862
862
  { type: Component, args: [{
863
863
  selector: 'aup-string-input',
864
- 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",
865
- styles: [":host{display:block}input,mat-form-field{width:100%}input mat-hint.faux-error,mat-form-field mat-hint.faux-error{color:#f44336}"]
864
+ 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",
865
+ 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}"]
866
866
  }] }
867
867
  ];
868
868
  /** @nocollapse */
869
869
  StringInputComponent.ctorParameters = function () { return []; };
870
870
  StringInputComponent.propDecorators = {
871
- allowClearModel: [{ type: Input }],
872
- allowClear: [{ type: Input }]
871
+ enableClearModel: [{ type: Input }],
872
+ enableClear: [{ type: Input }]
873
873
  };
874
874
  __decorate([
875
875
  UseDelegate({ defaultValue: false }),
876
876
  __metadata("design:type", ValueModel)
877
- ], StringInputComponent.prototype, "allowClearModel", void 0);
877
+ ], StringInputComponent.prototype, "enableClearModel", void 0);
878
878
  __decorate([
879
- StoreInValueModel('allowClearModel'),
879
+ StoreInValueModel('enableClearModel'),
880
880
  __metadata("design:type", Boolean)
881
- ], StringInputComponent.prototype, "allowClear", void 0);
881
+ ], StringInputComponent.prototype, "enableClear", void 0);
882
882
  return StringInputComponent;
883
883
  }(AbstractInputComponent));
884
884
  if (false) {
885
885
  /** @type {?} */
886
- StringInputComponent.prototype.allowClearModel;
886
+ StringInputComponent.prototype.enableClearModel;
887
887
  /** @type {?} */
888
- StringInputComponent.prototype.allowClear;
888
+ StringInputComponent.prototype.enableClear;
889
889
  /** @type {?} */
890
890
  StringInputComponent.prototype.clearCommand;
891
891
  }