@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
|
@@ -1029,7 +1029,7 @@
|
|
|
1029
1029
|
function () {
|
|
1030
1030
|
_this.valueModel.value = null;
|
|
1031
1031
|
}));
|
|
1032
|
-
_this.clearCommand.disableWhile(chain(_this.valueModel).
|
|
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=\"
|
|
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
|
-
|
|
1054
|
-
|
|
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, "
|
|
1059
|
+
], StringInputComponent.prototype, "enableClearModel", void 0);
|
|
1060
1060
|
__decorate([
|
|
1061
|
-
pectin.StoreInValueModel('
|
|
1061
|
+
pectin.StoreInValueModel('enableClearModel'),
|
|
1062
1062
|
__metadata("design:type", Boolean)
|
|
1063
|
-
], StringInputComponent.prototype, "
|
|
1063
|
+
], StringInputComponent.prototype, "enableClear", void 0);
|
|
1064
1064
|
return StringInputComponent;
|
|
1065
1065
|
}(AbstractInputComponent));
|
|
1066
1066
|
if (false) {
|
|
1067
1067
|
/** @type {?} */
|
|
1068
|
-
StringInputComponent.prototype.
|
|
1068
|
+
StringInputComponent.prototype.enableClearModel;
|
|
1069
1069
|
/** @type {?} */
|
|
1070
|
-
StringInputComponent.prototype.
|
|
1070
|
+
StringInputComponent.prototype.enableClear;
|
|
1071
1071
|
/** @type {?} */
|
|
1072
1072
|
StringInputComponent.prototype.clearCommand;
|
|
1073
1073
|
}
|