@smartbit4all/ng-client 3.3.134 → 3.3.136

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.
@@ -14905,6 +14905,7 @@ class SmartComponentApiClient {
14905
14905
  this.renderer = renderer;
14906
14906
  this._destroy$ = new Subject();
14907
14907
  this.detectChange = new SmartSubject(this._destroy$);
14908
+ this._ngAfterViewInitPerformed = false;
14908
14909
  this.uiActionModels = [];
14909
14910
  this.dataChanged = new SmartSubject(this._destroy$);
14910
14911
  // Contained Widgets
@@ -15016,6 +15017,7 @@ class SmartComponentApiClient {
15016
15017
  }
15017
15018
  if (this.uuid && this.uuid !== comp.uuid)
15018
15019
  comp.uuid = this.uuid;
15020
+ SmartComponentLayoutUtility.getGrids(comp).forEach((grid) => this.setupGridServices(grid));
15019
15021
  });
15020
15022
  // for handling embedded forms
15021
15023
  this.handleQueryList(this.getSmartComponentLayoutsQL(), (form) => {
@@ -15037,10 +15039,7 @@ class SmartComponentApiClient {
15037
15039
  this.handleQueryList(this.getSmartGridsQL(), (grid) => {
15038
15040
  if (grid) {
15039
15041
  if (grid.smartGrid) {
15040
- grid.smartGrid.uiActionService = this.uiActionService;
15041
- grid.smartGrid.uiActionDescriptorService = this.uiActionDescriptorService;
15042
- grid.smartGrid.serviceToUse = this;
15043
- grid.smartGrid.viewContextService = this.viewContext;
15042
+ this.setupGridServices(grid);
15044
15043
  grid.setupToolbar();
15045
15044
  if (grid.toolbar) {
15046
15045
  this.initActions();
@@ -15053,6 +15052,22 @@ class SmartComponentApiClient {
15053
15052
  }
15054
15053
  }
15055
15054
  }
15055
+ setupGridServices(grid) {
15056
+ if (grid.smartGrid) {
15057
+ if (!grid.smartGrid.uiActionService) {
15058
+ grid.smartGrid.uiActionService = this.uiActionService;
15059
+ }
15060
+ if (!grid.smartGrid.uiActionDescriptorService) {
15061
+ grid.smartGrid.uiActionDescriptorService = this.uiActionDescriptorService;
15062
+ }
15063
+ if (!grid.smartGrid.serviceToUse) {
15064
+ grid.smartGrid.serviceToUse = this;
15065
+ }
15066
+ if (!grid.smartGrid.viewContextService) {
15067
+ grid.smartGrid.viewContextService = this.viewContext;
15068
+ }
15069
+ }
15070
+ }
15056
15071
  handleQueryListSimple(ql, handler) {
15057
15072
  handler();
15058
15073
  ql.changes.pipe(takeUntil(this._destroy$)).subscribe(() => handler());
@@ -15502,6 +15517,7 @@ class SmartComponentApiClient {
15502
15517
  changedWidgets.forEach((key) => {
15503
15518
  const reference = widgets.get(key);
15504
15519
  if (reference instanceof SmartGridComponent) {
15520
+ this.setupGridServices(reference);
15505
15521
  reference.refresh();
15506
15522
  }
15507
15523
  else if (reference instanceof SmarttreeGenericService) {