@stemy/ngx-dynamic-form 13.3.6 → 13.3.8

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.
@@ -355,6 +355,9 @@ function collectPathAble(start, getter) {
355
355
  }
356
356
  return parts;
357
357
  }
358
+ function getDynamicPath(start) {
359
+ return collectPathAble(start, t => t.id).join(".");
360
+ }
358
361
  const MIN_INPUT_NUM = -999999999;
359
362
  const MAX_INPUT_NUM = 999999999;
360
363
  const EDITOR_FORMATS = ["php", "json", "html", "css", "scss"];
@@ -869,7 +872,10 @@ class DynamicFormService extends DynamicFormService$1 {
869
872
  rows: property.rows || 10,
870
873
  wrap: property.wrap || false,
871
874
  autoComplete: property.autoComplete || "off",
872
- multiple: property.type == "array"
875
+ multiple: property.type == "array",
876
+ minLength: isNaN(property.minLength) ? 0 : property.minLength,
877
+ maxLength: isNaN(property.maxLength) ? MAX_INPUT_NUM : property.maxLength,
878
+ placeholder: property.placeholder || ""
873
879
  });
874
880
  }
875
881
  getFormDatepickerConfig(property, schema) {
@@ -1864,5 +1870,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.8", ngImpor
1864
1870
  * Generated bundle index. Do not edit.
1865
1871
  */
1866
1872
 
1867
- export { AsyncSubmitDirective, DynamicBaseFormArrayComponent, DynamicBaseFormComponent, DynamicBaseFormControlComponent, DynamicBaseFormControlContainerComponent, DynamicBaseFormGroupComponent, DynamicBaseSelectComponent, DynamicEditorModel, DynamicFormArrayGroupModel, DynamicFormArrayModel, DynamicFormGroupModel, DynamicFormOption, DynamicFormService, DynamicSelectModel, EDITOR_FORMATS, FormSelectSubject, FormSubject, MAX_INPUT_NUM, MIN_INPUT_NUM, NgxDynamicFormModule, createFormArray, createFormCheckbox, createFormDate, createFormEditor, createFormFile, createFormGroup, createFormInput, createFormSelect, createFormTextarea, customizeFormModel, getFormComponent, mergeFormModels, replaceSpecialChars, validateItemsMaxLength, validateItemsMaxValue, validateItemsMinLength, validateItemsMinValue, validateJSON, validatePhone, validateRequiredTranslation };
1873
+ export { AsyncSubmitDirective, DynamicBaseFormArrayComponent, DynamicBaseFormComponent, DynamicBaseFormControlComponent, DynamicBaseFormControlContainerComponent, DynamicBaseFormGroupComponent, DynamicBaseSelectComponent, DynamicEditorModel, DynamicFormArrayGroupModel, DynamicFormArrayModel, DynamicFormGroupModel, DynamicFormOption, DynamicFormService, DynamicSelectModel, EDITOR_FORMATS, FormSelectSubject, FormSubject, MAX_INPUT_NUM, MIN_INPUT_NUM, NgxDynamicFormModule, collectPathAble, createFormArray, createFormCheckbox, createFormDate, createFormEditor, createFormFile, createFormGroup, createFormInput, createFormSelect, createFormTextarea, customizeFormModel, getDynamicPath, getFormComponent, mergeFormModels, replaceSpecialChars, validateItemsMaxLength, validateItemsMaxValue, validateItemsMinLength, validateItemsMinValue, validateJSON, validatePhone, validateRequiredTranslation };
1868
1874
  //# sourceMappingURL=stemy-ngx-dynamic-form.mjs.map