@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.
- package/esm2020/lib/smart-client/smart-component-api-client.mjs +9 -13
- package/esm2020/lib/smart-form/smartform.component.mjs +1 -2
- package/fesm2015/smartbit4all-ng-client.mjs +10 -14
- package/fesm2015/smartbit4all-ng-client.mjs.map +1 -1
- package/fesm2020/smartbit4all-ng-client.mjs +8 -13
- package/fesm2020/smartbit4all-ng-client.mjs.map +1 -1
- package/package.json +1 -1
- package/smartbit4all-ng-client-3.1.83.tgz +0 -0
- package/smartbit4all-ng-client-3.1.81.tgz +0 -0
|
@@ -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.
|
|
13477
|
-
|
|
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) {
|