@smartbit4all/ng-client 3.1.88 → 3.1.89

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.
@@ -13501,23 +13501,25 @@ let SmartComponentApiClient = class SmartComponentApiClient {
13501
13501
  this._destroy$.complete();
13502
13502
  }
13503
13503
  _ngAfterViewInit() {
13504
- if (!this.getSmartComponentLayoutsQL()) {
13505
- console.warn('SmartComponentLayoutsQL not available!');
13506
- return;
13507
- }
13508
- // TODO maybe we should set comp.parent, not comp.smartComponentLayout.parentComponent..
13509
- this.getSmartComponentLayoutsQL().forEach((comp) => {
13510
- if (comp.smartComponentLayout) {
13511
- SmartComponentLayoutUtility.setParent(comp.smartComponentLayout, this);
13512
- }
13513
- });
13514
- this.getSmartComponentLayoutsQL()
13515
- .changes.pipe(takeUntil(this._destroy$))
13516
- .subscribe((list) => list.forEach((comp) => {
13517
- if (comp.smartComponentLayout) {
13518
- SmartComponentLayoutUtility.setParent(comp.smartComponentLayout, this);
13504
+ if (this.useQueryLists) {
13505
+ if (!this.getSmartComponentLayoutsQL()) {
13506
+ console.warn('SmartComponentLayoutsQL not available!');
13507
+ return;
13519
13508
  }
13520
- }));
13509
+ // TODO maybe we should set comp.parent, not comp.smartComponentLayout.parentComponent..
13510
+ this.getSmartComponentLayoutsQL().forEach((comp) => {
13511
+ if (comp.smartComponentLayout) {
13512
+ SmartComponentLayoutUtility.setParent(comp.smartComponentLayout, this);
13513
+ }
13514
+ });
13515
+ this.getSmartComponentLayoutsQL()
13516
+ .changes.pipe(takeUntil(this._destroy$))
13517
+ .subscribe((list) => list.forEach((comp) => {
13518
+ if (comp.smartComponentLayout) {
13519
+ SmartComponentLayoutUtility.setParent(comp.smartComponentLayout, this);
13520
+ }
13521
+ }));
13522
+ }
13521
13523
  }
13522
13524
  getWidgets() {
13523
13525
  if (this.useQueryLists) {