@smartbit4all/ng-client 3.1.80 → 3.1.82

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.
@@ -5155,6 +5155,7 @@ class SmartformComponent {
5155
5155
  }
5156
5156
  refresh() {
5157
5157
  this.service.setValuesFromModel();
5158
+ this.service.applyConstraints();
5158
5159
  }
5159
5160
  constructForm() {
5160
5161
  if (!this.smartForm) {
@@ -13464,6 +13465,21 @@ let SmartComponentApiClient = class SmartComponentApiClient {
13464
13465
  initComponentByModel() {
13465
13466
  this.initData();
13466
13467
  this.initActions();
13468
+ if (this.useQueryLists) {
13469
+ this.getAllFormComponents()?.forEach((form) => {
13470
+ if (form.smartForm) {
13471
+ form.smartForm.componentModel = this.model;
13472
+ if (form.getForm()) {
13473
+ // FormGroup already created -> refresh
13474
+ form.refresh();
13475
+ }
13476
+ else {
13477
+ // FormGroup not created yet -> construct
13478
+ form.constructForm();
13479
+ }
13480
+ }
13481
+ });
13482
+ }
13467
13483
  // TODO: layout, valueSet, widgets
13468
13484
  }
13469
13485
  initData() {