@smartbit4all/ng-client 3.1.14 → 3.1.15

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.
@@ -7920,6 +7920,10 @@ class UiActionService {
7920
7920
  }
7921
7921
  else {
7922
7922
  this.uiActionModel.serviceToUse.submitForm(validate);
7923
+ if (validate &&
7924
+ this.uiActionModel.serviceToUse.getInvalidFields().invalidFieldKeys.length) {
7925
+ return;
7926
+ }
7923
7927
  }
7924
7928
  }
7925
7929
  if (uiAction.confirm) {
@@ -12556,6 +12560,20 @@ let SmartComponentApiClient = class SmartComponentApiClient {
12556
12560
  };
12557
12561
  this.uiActionService.execute(uiAction, options);
12558
12562
  }
12563
+ getInvalidFields() {
12564
+ let aggregatedInvalidFields = {
12565
+ invalidFieldKeys: [],
12566
+ invalidFieldNames: [],
12567
+ };
12568
+ for (let entry of this.formWidgets.widgets) {
12569
+ let invalidFieldsOfForm = entry[1]?.getInvalidFields();
12570
+ if (invalidFieldsOfForm) {
12571
+ invalidFieldsOfForm.invalidFieldKeys.forEach((key) => aggregatedInvalidFields.invalidFieldKeys.push(key));
12572
+ invalidFieldsOfForm.invalidFieldNames.forEach((key) => aggregatedInvalidFields.invalidFieldNames.push(key));
12573
+ }
12574
+ }
12575
+ return aggregatedInvalidFields;
12576
+ }
12559
12577
  //#region UseUiAction
12560
12578
  getAdditionalParams(uiAction) {
12561
12579
  return {