rd-outer-component 0.0.86 → 0.0.87
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/esm2020/lib/modules/custom-input-amount/custom-input-amount.component.mjs +6 -3
- package/fesm2015/rd-outer-component.mjs +5 -2
- package/fesm2015/rd-outer-component.mjs.map +1 -1
- package/fesm2020/rd-outer-component.mjs +5 -2
- package/fesm2020/rd-outer-component.mjs.map +1 -1
- package/lib/modules/custom-input-amount/custom-input-amount.component.d.ts +2 -1
- package/package.json +1 -1
|
@@ -741,6 +741,7 @@ class CustomInputAmountComponent {
|
|
|
741
741
|
this.errorMessages = {
|
|
742
742
|
invalid: 'Please enter a valid number',
|
|
743
743
|
};
|
|
744
|
+
this.clearError = true;
|
|
744
745
|
this.blur = new EventEmitter();
|
|
745
746
|
this.focus = new EventEmitter();
|
|
746
747
|
this.valueChange = new EventEmitter();
|
|
@@ -800,7 +801,7 @@ class CustomInputAmountComponent {
|
|
|
800
801
|
onBlur() {
|
|
801
802
|
this.touched = true;
|
|
802
803
|
this.onTouched();
|
|
803
|
-
if (this.control) {
|
|
804
|
+
if (this.control && this.clearError) {
|
|
804
805
|
const errors = this.validate(this.control);
|
|
805
806
|
this.control.setErrors(errors);
|
|
806
807
|
this.onValidatorChange();
|
|
@@ -861,7 +862,7 @@ class CustomInputAmountComponent {
|
|
|
861
862
|
}
|
|
862
863
|
}
|
|
863
864
|
CustomInputAmountComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CustomInputAmountComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
864
|
-
CustomInputAmountComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: CustomInputAmountComponent, selector: "app-rd-input-amount", inputs: { lang: "lang", label: "label", symbol: "symbol", name: "name", disabled: "disabled", min: "min", max: "max", nzPrecision: "nzPrecision", allowNegativeNumbers: "allowNegativeNumbers", required: "required", nzSize: "nzSize", errorMessages: "errorMessages" }, outputs: { blur: "blur", focus: "focus", valueChange: "valueChange" }, providers: [
|
|
865
|
+
CustomInputAmountComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: CustomInputAmountComponent, selector: "app-rd-input-amount", inputs: { lang: "lang", label: "label", symbol: "symbol", name: "name", disabled: "disabled", min: "min", max: "max", nzPrecision: "nzPrecision", allowNegativeNumbers: "allowNegativeNumbers", required: "required", nzSize: "nzSize", errorMessages: "errorMessages", clearError: "clearError" }, outputs: { blur: "blur", focus: "focus", valueChange: "valueChange" }, providers: [
|
|
865
866
|
{
|
|
866
867
|
provide: NG_VALUE_ACCESSOR,
|
|
867
868
|
useExisting: forwardRef(() => CustomInputAmountComponent),
|
|
@@ -911,6 +912,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
911
912
|
type: Input
|
|
912
913
|
}], errorMessages: [{
|
|
913
914
|
type: Input
|
|
915
|
+
}], clearError: [{
|
|
916
|
+
type: Input
|
|
914
917
|
}], blur: [{
|
|
915
918
|
type: Output
|
|
916
919
|
}], focus: [{
|