@smartbit4all/ng-client 3.3.133 → 3.3.135

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.
@@ -12953,6 +12953,7 @@ class SmartComponentLayoutComponent {
12953
12953
  }
12954
12954
  if (deepEqual(this.smartComponentLayout, this.currentLayout)) {
12955
12955
  // no layout change, keep current state
12956
+ this.smartComponentLayout = this.currentLayout;
12956
12957
  return;
12957
12958
  }
12958
12959
  // layout changed, render, but save current
@@ -15015,6 +15016,7 @@ class SmartComponentApiClient {
15015
15016
  }
15016
15017
  if (this.uuid && this.uuid !== comp.uuid)
15017
15018
  comp.uuid = this.uuid;
15019
+ SmartComponentLayoutUtility.getGrids(comp).forEach((grid) => this.setupGridServices(grid));
15018
15020
  });
15019
15021
  // for handling embedded forms
15020
15022
  this.handleQueryList(this.getSmartComponentLayoutsQL(), (form) => {
@@ -15036,10 +15038,7 @@ class SmartComponentApiClient {
15036
15038
  this.handleQueryList(this.getSmartGridsQL(), (grid) => {
15037
15039
  if (grid) {
15038
15040
  if (grid.smartGrid) {
15039
- grid.smartGrid.uiActionService = this.uiActionService;
15040
- grid.smartGrid.uiActionDescriptorService = this.uiActionDescriptorService;
15041
- grid.smartGrid.serviceToUse = this;
15042
- grid.smartGrid.viewContextService = this.viewContext;
15041
+ this.setupGridServices(grid);
15043
15042
  grid.setupToolbar();
15044
15043
  if (grid.toolbar) {
15045
15044
  this.initActions();
@@ -15052,6 +15051,14 @@ class SmartComponentApiClient {
15052
15051
  }
15053
15052
  }
15054
15053
  }
15054
+ setupGridServices(grid) {
15055
+ if (grid.smartGrid && !grid.smartGrid.uiActionService) {
15056
+ grid.smartGrid.uiActionService = this.uiActionService;
15057
+ grid.smartGrid.uiActionDescriptorService = this.uiActionDescriptorService;
15058
+ grid.smartGrid.serviceToUse = this;
15059
+ grid.smartGrid.viewContextService = this.viewContext;
15060
+ }
15061
+ }
15055
15062
  handleQueryListSimple(ql, handler) {
15056
15063
  handler();
15057
15064
  ql.changes.pipe(takeUntil(this._destroy$)).subscribe(() => handler());
@@ -15501,6 +15508,7 @@ class SmartComponentApiClient {
15501
15508
  changedWidgets.forEach((key) => {
15502
15509
  const reference = widgets.get(key);
15503
15510
  if (reference instanceof SmartGridComponent) {
15511
+ this.setupGridServices(reference);
15504
15512
  reference.refresh();
15505
15513
  }
15506
15514
  else if (reference instanceof SmarttreeGenericService) {