@smartbit4all/ng-client 3.1.80 → 3.1.81
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.
- package/esm2020/lib/smart-client/smart-component-api-client.mjs +13 -1
- package/esm2020/lib/smart-form/smartform.component.mjs +2 -1
- package/fesm2015/smartbit4all-ng-client.mjs +14 -1
- package/fesm2015/smartbit4all-ng-client.mjs.map +1 -1
- package/fesm2020/smartbit4all-ng-client.mjs +13 -0
- package/fesm2020/smartbit4all-ng-client.mjs.map +1 -1
- package/package.json +1 -1
- package/smartbit4all-ng-client-3.1.81.tgz +0 -0
- package/smartbit4all-ng-client-3.1.80.tgz +0 -0
|
@@ -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) {
|
|
@@ -13470,6 +13471,18 @@ let SmartComponentApiClient = class SmartComponentApiClient {
|
|
|
13470
13471
|
if (this.model?.data) {
|
|
13471
13472
|
this.data = this.model?.data;
|
|
13472
13473
|
}
|
|
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
|
+
}
|
|
13473
13486
|
}
|
|
13474
13487
|
initActions() {
|
|
13475
13488
|
if (this.model?.actions) {
|