@tetacom/ng-components 1.0.91 → 1.0.93

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.
@@ -6482,6 +6482,7 @@ class FormsUtil {
6482
6482
  const validators = [];
6483
6483
  if (column.required) {
6484
6484
  validators.push(Validators.required);
6485
+ validators.push(FormsUtil.validatorNotEmpty);
6485
6486
  }
6486
6487
  if (column.minValue != null) {
6487
6488
  validators.push(Validators.min(column.minValue));
@@ -6491,6 +6492,12 @@ class FormsUtil {
6491
6492
  }
6492
6493
  return validators;
6493
6494
  }
6495
+ static validatorNotEmpty(control) {
6496
+ if (control.value?.toString()?.trim()?.length <= 0) {
6497
+ return { required: true };
6498
+ }
6499
+ return null;
6500
+ }
6494
6501
  }
6495
6502
 
6496
6503
  const TOGGLE_CONTROL_VALUE_ACCESSOR = {
@@ -6631,7 +6638,8 @@ class PropertyGridItemComponent {
6631
6638
  name: this.column.name,
6632
6639
  });
6633
6640
  }
6634
- ngOnInit() { }
6641
+ ngOnInit() {
6642
+ }
6635
6643
  ngOnDestroy() {
6636
6644
  this._alive = false;
6637
6645
  this._formSub?.unsubscribe();