@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.
- package/bundles/coolon-angular-ui-powerups.umd.js +10 -10
- package/bundles/coolon-angular-ui-powerups.umd.js.map +1 -1
- package/bundles/coolon-angular-ui-powerups.umd.min.js +1 -1
- package/bundles/coolon-angular-ui-powerups.umd.min.js.map +1 -1
- package/coolon-angular-ui-powerups.metadata.json +1 -1
- package/esm2015/lib/components/components.module.ngfactory.js.map +1 -1
- package/esm2015/lib/components/forms/string-input/string-input.component.js +10 -10
- package/esm2015/lib/components/forms/string-input/string-input.component.js.map +1 -1
- package/esm2015/lib/components/forms/string-input/string-input.component.metadata.json +1 -1
- package/esm5/lib/components/components.module.ngfactory.js.map +1 -1
- package/esm5/lib/components/forms/string-input/string-input.component.js +10 -10
- package/esm5/lib/components/forms/string-input/string-input.component.js.map +1 -1
- package/fesm2015/coolon-angular-ui-powerups.js +10 -10
- package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
- package/fesm5/coolon-angular-ui-powerups.js +10 -10
- package/fesm5/coolon-angular-ui-powerups.js.map +1 -1
- package/lib/components/forms/string-input/string-input.component.d.ts +2 -2
- package/package.json +1 -1
|
@@ -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).
|
|
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=\"
|
|
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
|
-
|
|
872
|
-
|
|
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, "
|
|
877
|
+
], StringInputComponent.prototype, "enableClearModel", void 0);
|
|
878
878
|
__decorate([
|
|
879
|
-
StoreInValueModel('
|
|
879
|
+
StoreInValueModel('enableClearModel'),
|
|
880
880
|
__metadata("design:type", Boolean)
|
|
881
|
-
], StringInputComponent.prototype, "
|
|
881
|
+
], StringInputComponent.prototype, "enableClear", void 0);
|
|
882
882
|
return StringInputComponent;
|
|
883
883
|
}(AbstractInputComponent));
|
|
884
884
|
if (false) {
|
|
885
885
|
/** @type {?} */
|
|
886
|
-
StringInputComponent.prototype.
|
|
886
|
+
StringInputComponent.prototype.enableClearModel;
|
|
887
887
|
/** @type {?} */
|
|
888
|
-
StringInputComponent.prototype.
|
|
888
|
+
StringInputComponent.prototype.enableClear;
|
|
889
889
|
/** @type {?} */
|
|
890
890
|
StringInputComponent.prototype.clearCommand;
|
|
891
891
|
}
|