ng-inail-common 1.0.441 → 1.0.443
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/ng-inail-common.umd.js +4 -2
- package/bundles/ng-inail-common.umd.js.map +1 -1
- package/bundles/ng-inail-common.umd.min.js +1 -1
- package/bundles/ng-inail-common.umd.min.js.map +1 -1
- package/esm2015/lib/components/ux/textarea/textarea.component.js +7 -3
- package/esm5/lib/components/ux/textarea/textarea.component.js +7 -3
- package/fesm2015/ng-inail-common.js +4 -2
- package/fesm2015/ng-inail-common.js.map +1 -1
- package/fesm5/ng-inail-common.js +4 -2
- package/fesm5/ng-inail-common.js.map +1 -1
- package/lib/components/ux/textarea/textarea.component.d.ts +1 -0
- package/ng-inail-common.metadata.json +1 -1
- package/package.json +1 -1
|
@@ -2590,6 +2590,7 @@
|
|
|
2590
2590
|
function TextareaComponent() {
|
|
2591
2591
|
var _this = _super.call(this) || this;
|
|
2592
2592
|
_this.valueChange = new i0.EventEmitter();
|
|
2593
|
+
_this.selfValidation = true;
|
|
2593
2594
|
return _this;
|
|
2594
2595
|
}
|
|
2595
2596
|
/**
|
|
@@ -2657,7 +2658,7 @@
|
|
|
2657
2658
|
* @return {?}
|
|
2658
2659
|
*/
|
|
2659
2660
|
function () {
|
|
2660
|
-
return (this.hasError || isNotEmptyOrNull(this.descError) || this.isTextTooLong()) === true;
|
|
2661
|
+
return (this.hasError || isNotEmptyOrNull(this.descError) || (this.isTextTooLong() && this.selfValidation)) === true;
|
|
2661
2662
|
};
|
|
2662
2663
|
/**
|
|
2663
2664
|
* @return {?}
|
|
@@ -2688,7 +2689,7 @@
|
|
|
2688
2689
|
* @return {?}
|
|
2689
2690
|
*/
|
|
2690
2691
|
function () {
|
|
2691
|
-
return (isEmptyOrNull(this.descError) && this.isTextTooLong())
|
|
2692
|
+
return (isEmptyOrNull(this.descError) && this.isTextTooLong() && this.selfValidation)
|
|
2692
2693
|
? "Il testo non può essere lungo di " + this.maxlength + " caratteri"
|
|
2693
2694
|
: this.descError;
|
|
2694
2695
|
};
|
|
@@ -2731,6 +2732,7 @@
|
|
|
2731
2732
|
rows: [{ type: i0.Input }],
|
|
2732
2733
|
cols: [{ type: i0.Input }],
|
|
2733
2734
|
preventPasting: [{ type: i0.Input }],
|
|
2735
|
+
selfValidation: [{ type: i0.Input }],
|
|
2734
2736
|
value: [{ type: i0.Input }]
|
|
2735
2737
|
};
|
|
2736
2738
|
return TextareaComponent;
|