@smartbit4all/ng-client 3.1.81 → 3.1.83

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