@smartbit4all/ng-client 3.1.51 → 3.1.53
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-component-layout/smart-component-layout.component.mjs +12 -6
- package/fesm2015/smartbit4all-ng-client.mjs +12 -5
- package/fesm2015/smartbit4all-ng-client.mjs.map +1 -1
- package/fesm2020/smartbit4all-ng-client.mjs +11 -5
- package/fesm2020/smartbit4all-ng-client.mjs.map +1 -1
- package/lib/smart-component-layout/smart-component-layout.component.d.ts +4 -3
- package/package.json +1 -1
- package/smartbit4all-ng-client-3.1.53.tgz +0 -0
- package/smartbit4all-ng-client-3.1.51.tgz +0 -0
|
@@ -11824,14 +11824,14 @@ class SmartComponentLayoutComponent {
|
|
|
11824
11824
|
this.layoutService = layoutService;
|
|
11825
11825
|
this._destroy$ = new Subject();
|
|
11826
11826
|
}
|
|
11827
|
-
|
|
11827
|
+
ngAfterViewInit() {
|
|
11828
|
+
if (this.smartFormList?.first) {
|
|
11829
|
+
this.setFormComponent(this.smartFormList?.first);
|
|
11830
|
+
}
|
|
11828
11831
|
this.smartFormList.changes
|
|
11829
11832
|
.pipe(takeUntil(this._destroy$))
|
|
11830
11833
|
.subscribe((list) => {
|
|
11831
|
-
|
|
11832
|
-
this.smartFormComponent = list.first;
|
|
11833
|
-
this.bindForm();
|
|
11834
|
-
}
|
|
11834
|
+
this.setFormComponent(list.first);
|
|
11835
11835
|
});
|
|
11836
11836
|
this.smartGridList.changes
|
|
11837
11837
|
.pipe(takeUntil(this._destroy$))
|
|
@@ -11909,6 +11909,12 @@ class SmartComponentLayoutComponent {
|
|
|
11909
11909
|
};
|
|
11910
11910
|
this.bindForm();
|
|
11911
11911
|
}
|
|
11912
|
+
setFormComponent(comp) {
|
|
11913
|
+
if (!this.smartFormComponent) {
|
|
11914
|
+
this.smartFormComponent = comp;
|
|
11915
|
+
this.bindForm();
|
|
11916
|
+
}
|
|
11917
|
+
}
|
|
11912
11918
|
bindForm() {
|
|
11913
11919
|
if (this.smartForm && this.smartFormComponent) {
|
|
11914
11920
|
this.parent?.addForm(
|