intelica-library-components 1.1.161 → 1.1.162

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.
@@ -6285,21 +6285,29 @@ class DashboardQsInteractiveComponent {
6285
6285
  isLoadingChange = output();
6286
6286
  viewReady = signal(false, ...(ngDevMode ? [{ debugName: "viewReady" }] : []));
6287
6287
  dashboardRef = null;
6288
+ lastEmbeddedId = undefined;
6288
6289
  constructor() {
6289
6290
  effect(() => {
6290
6291
  this.isLoadingChange.emit(this.isLoading());
6291
6292
  });
6292
6293
  effect(() => {
6293
6294
  const id = this.dashboardId();
6295
+ console.log('🟢 firstEmbed effect', { id, viewReady: this.viewReady(), lastEmbeddedId: this.lastEmbeddedId });
6294
6296
  if (!this.viewReady() || !id)
6295
6297
  return;
6298
+ if (id === this.lastEmbeddedId)
6299
+ return;
6300
+ this.lastEmbeddedId = id;
6296
6301
  this.firstEmbed(id);
6297
6302
  });
6298
6303
  effect(() => {
6299
6304
  const params = this.parameters();
6305
+ console.log('🟠 params effect', { params, hasRef: !!this.dashboardRef });
6300
6306
  if (!this.dashboardRef || !params)
6301
6307
  return;
6302
- this.sharedService.setDashboardParameters(this.dashboardRef, params);
6308
+ this.sharedService.setDashboardParameters(this.dashboardRef, params)
6309
+ .then(r => console.log('🟠 setParameters OK', r))
6310
+ .catch(e => console.error('🟠 setParameters ERR', e));
6303
6311
  });
6304
6312
  }
6305
6313
  ngAfterViewInit() {