intelica-library-components 1.1.171 → 1.1.172

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.
@@ -6318,17 +6318,21 @@ class DashboardQsInteractiveComponent {
6318
6318
  });
6319
6319
  effect(() => {
6320
6320
  const id = this.dashboardId();
6321
+ console.log('[DashboardQS] effect:embed → id:', id, 'viewReady:', this.viewReady(), 'lastEmbeddedId:', this.lastEmbeddedId);
6321
6322
  if (!this.viewReady() || !id)
6322
6323
  return;
6323
6324
  if (id === this.lastEmbeddedId)
6324
6325
  return;
6325
6326
  this.lastEmbeddedId = id;
6327
+ console.log('[DashboardQS] flow: RECARGAR dashboard (firstEmbed) → id:', id, 'parameters:', this.parameters());
6326
6328
  this.firstEmbed(id);
6327
6329
  });
6328
6330
  effect(() => {
6329
6331
  const params = this.parameters();
6332
+ console.log('[DashboardQS] effect:params → parameters:', params, 'hasDashboardRef:', !!this.dashboardRef);
6330
6333
  if (!this.dashboardRef || !params)
6331
6334
  return;
6335
+ console.log('[DashboardQS] flow: SOLO actualizar parámetros (setDashboardParameters) → parameters:', params);
6332
6336
  this.isLoading.set(true);
6333
6337
  this.sharedService.setDashboardParameters(this.dashboardRef, params)
6334
6338
  .finally(() => this.isLoading.set(false));
@@ -6341,6 +6345,8 @@ class DashboardQsInteractiveComponent {
6341
6345
  const container = this.containers.first?.nativeElement;
6342
6346
  if (!container)
6343
6347
  return;
6348
+ container.replaceChildren();
6349
+ this.dashboardRef = null;
6344
6350
  this.isLoading.set(true);
6345
6351
  try {
6346
6352
  this.dashboardRef = await this.sharedService.embedDashboardInteractive({ dashboardId, parameters: this.parameters() }, container, { height: this.height() ?? `${window.innerHeight - 50}px` });