@magic-xpa/gui 4.801.0-dev481.244 → 4.801.0-dev481.245

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.
@@ -10310,9 +10310,11 @@ class Property {
10310
10310
  this.setValue(result);
10311
10311
  }
10312
10312
  if (this._id === PropInterface.PROP_TYPE_CUSTOM_VALIDATORS) {
10313
- yield this.computeCustomValidators();
10314
- result = this.GetArrayValuesForCustomValidationProperties();
10315
- this.setValue(result);
10313
+ let evaluated = yield this.computeCustomValidators();
10314
+ if (evaluated) {
10315
+ result = this.GetArrayValuesForCustomValidationProperties();
10316
+ this.setValue(result);
10317
+ }
10316
10318
  }
10317
10319
  else if (this._expId > 0) {
10318
10320
  if (this.ShouldBeComputedOnce() && this._expAlreadyComputedOnce)
@@ -10704,6 +10706,7 @@ class Property {
10704
10706
  computeCustomValidators() {
10705
10707
  return __awaiter(this, void 0, void 0, function* () {
10706
10708
  let mgControl = this._parentObj;
10709
+ let evaluated = true;
10707
10710
  if (mgControl.ModifiedByUser || mgControl.ValidateControl || this.GetTaskByParentObject().IsInRecompute()) {
10708
10711
  for (let [customPropertyKey, customValidatorProperty] of this.customValidatorProperties) {
10709
10712
  let len = 255;
@@ -10719,9 +10722,17 @@ class Property {
10719
10722
  else
10720
10723
  errString = customValidatorProperty._errorMessage;
10721
10724
  }
10725
+ evaluated = true;
10722
10726
  this.customValidatorValues.set(customPropertyKey, new CustomValidator(!InValid, errString));
10723
10727
  }
10724
10728
  }
10729
+ else {
10730
+ if (mgControl.isRepeatable()) {
10731
+ this.customValidatorValues.clear();
10732
+ evaluated = false;
10733
+ }
10734
+ }
10735
+ return evaluated;
10725
10736
  });
10726
10737
  }
10727
10738
  onCustomProperties() {