@smartbit4all/ng-client 3.1.81 → 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.
@@ -13465,24 +13465,27 @@ let SmartComponentApiClient = class SmartComponentApiClient {
13465
13465
  initComponentByModel() {
13466
13466
  this.initData();
13467
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
+ }
13468
13483
  // TODO: layout, valueSet, widgets
13469
13484
  }
13470
13485
  initData() {
13471
13486
  if (this.model?.data) {
13472
13487
  this.data = this.model?.data;
13473
13488
  }
13474
- if (this.useQueryLists) {
13475
- this.getAllFormComponents()?.forEach((form) => {
13476
- if (form.getForm()) {
13477
- // FormGroup already created -> refresh
13478
- form.refresh();
13479
- }
13480
- else if (form.smartForm) {
13481
- // FormGroup not created yet -> construct
13482
- form.constructForm();
13483
- }
13484
- });
13485
- }
13486
13489
  }
13487
13490
  initActions() {
13488
13491
  if (this.model?.actions) {