@smartbit4all/ng-client 3.1.53 → 3.1.54

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.
@@ -11833,13 +11833,13 @@ class SmartComponentLayoutComponent {
11833
11833
  .subscribe((list) => {
11834
11834
  this.setFormComponent(list.first);
11835
11835
  });
11836
+ if (this.smartGridList?.first) {
11837
+ this.setGridComponent(this.smartGridList?.first);
11838
+ }
11836
11839
  this.smartGridList.changes
11837
11840
  .pipe(takeUntil(this._destroy$))
11838
11841
  .subscribe((list) => {
11839
- if (!this.smartGridComponent) {
11840
- this.smartGridComponent = list.first;
11841
- this.bindGrid();
11842
- }
11842
+ this.setGridComponent(list.first);
11843
11843
  });
11844
11844
  this.smartFilterList.changes
11845
11845
  .pipe(takeUntil(this._destroy$))
@@ -11946,6 +11946,12 @@ class SmartComponentLayoutComponent {
11946
11946
  };
11947
11947
  this.bindGrid();
11948
11948
  }
11949
+ setGridComponent(comp) {
11950
+ if (!this.smartGridComponent) {
11951
+ this.smartGridComponent = comp;
11952
+ this.bindGrid();
11953
+ }
11954
+ }
11949
11955
  bindGrid() {
11950
11956
  if (this.smartGrid && this.smartGridComponent) {
11951
11957
  this.smartGrid = this.parent?.addGrid(this.smartGrid, {