tuain-ng-forms-lib 15.0.22 → 15.0.23
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/classes/forms/field.mjs +5 -2
- package/esm2020/lib/components/elements/field.component.mjs +1 -1
- package/fesm2015/tuain-ng-forms-lib.mjs +10 -7
- package/fesm2015/tuain-ng-forms-lib.mjs.map +1 -1
- package/fesm2020/tuain-ng-forms-lib.mjs +4 -1
- package/fesm2020/tuain-ng-forms-lib.mjs.map +1 -1
- package/lib/components/elements/field.component.d.ts +1 -0
- package/package.json +1 -1
|
@@ -859,6 +859,7 @@ class FieldDescriptor extends FormElement {
|
|
|
859
859
|
this.defaultEditable = this.enabled;
|
|
860
860
|
this.required = fld.required ?? false;
|
|
861
861
|
this.outputOnly = fld.outputOnly ?? false;
|
|
862
|
+
this.minLength = fld.minLength ?? 0;
|
|
862
863
|
this.maxLength = fld.maxLength || (this._captureType === 'TEXTAREA' ? BIG_MAX_LENGTH : STD_MAX_LENGTH);
|
|
863
864
|
this.intrinsicErrorMessage = this._formConfig?.fieldValidations?.[this._fieldType]?.message
|
|
864
865
|
?? this._formConfig?.fieldValidations?.DEFAULT?.message ?? '';
|
|
@@ -930,7 +931,9 @@ class FieldDescriptor extends FormElement {
|
|
|
930
931
|
this.setAttr(attrs$1._maxValue, maxValue);
|
|
931
932
|
}
|
|
932
933
|
get minLength() { return this._minLength; }
|
|
933
|
-
set minLength(requiredMinLength) {
|
|
934
|
+
set minLength(requiredMinLength) {
|
|
935
|
+
this.setAttr(attrs$1._minLength, requiredMinLength ? +requiredMinLength : null);
|
|
936
|
+
}
|
|
934
937
|
get minValue() { return this._minValue; }
|
|
935
938
|
set minValue(inputMinValue) {
|
|
936
939
|
let minValue = inputMinValue;
|