tuain-ng-forms-lib 15.0.23 → 15.0.25

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.
@@ -903,6 +903,16 @@ class FieldDescriptor extends FormElement {
903
903
  return false;
904
904
  }
905
905
  ;
906
+ const arrayFieldTypes = this._formConfig.arrayFieldTypes ?? null;
907
+ if (arrayFieldTypes && Object.keys(arrayFieldTypes).includes(this._fieldType)) {
908
+ let arraySize = arrayFieldTypes[this._fieldType];
909
+ arraySize = !Number.isNaN(+arraySize) ? +arraySize : 0;
910
+ if (arraySize === 0) {
911
+ return (Array.isArray(fieldCurrentValue) && fieldCurrentValue.length === 0);
912
+ }
913
+ return (Array.isArray(fieldCurrentValue) && fieldCurrentValue.length < arraySize);
914
+ }
915
+ ;
906
916
  return fieldCurrentValue === '';
907
917
  }
908
918
  get error() { return { type: this._errorType, code: this._errorCode, message: this._errorMessage }; }
@@ -2705,7 +2715,7 @@ class LibEventManagerService {
2705
2715
 
2706
2716
  class LibFileManagementService {
2707
2717
  openFile(fileBase64Data, fileName, fileType) { }
2708
- saveFileFromURL(fileUrl, fullFileName = null) { }
2718
+ saveFileFromURL(fileUrl, fileName = null, fileType = null) { }
2709
2719
  saveFile(fileBase64Data, fileName, fileType) { }
2710
2720
  printPdfFile(pdfBufferData) { }
2711
2721
  }