intelica-library-components 1.1.154 → 1.1.155

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.
@@ -6206,7 +6206,7 @@ class DashboardQsComponent {
6206
6206
  routeData = toSignal(this.route.data, { initialValue: this.route.snapshot.data });
6207
6207
  dashboardId = computed(() => this.dashboardIdInput() ?? this.routeData()['dashboardId'], ...(ngDevMode ? [{ debugName: "dashboardId" }] : []));
6208
6208
  parameters = computed(() => this.parametersInput() ?? this.routeData()['parameters'], ...(ngDevMode ? [{ debugName: "parameters" }] : []));
6209
- height = computed(() => this.heightInput() ?? this.routeData()['height'] ?? '700px', ...(ngDevMode ? [{ debugName: "height" }] : []));
6209
+ height = computed(() => this.heightInput() ?? this.routeData()['height'], ...(ngDevMode ? [{ debugName: "height" }] : []));
6210
6210
  isLoading = signal(true, ...(ngDevMode ? [{ debugName: "isLoading" }] : []));
6211
6211
  isLoadingChange = output();
6212
6212
  viewReady = signal(false, ...(ngDevMode ? [{ debugName: "viewReady" }] : []));
@@ -6229,8 +6229,9 @@ class DashboardQsComponent {
6229
6229
  if (!container)
6230
6230
  return;
6231
6231
  this.isLoading.set(true);
6232
+ const height = window.innerHeight - 50;
6232
6233
  try {
6233
- await this.sharedService.embedDashboard({ dashboardId, parameters: this.parameters() }, container, { height: this.height() });
6234
+ await this.sharedService.embedDashboard({ dashboardId, parameters: this.parameters() }, container, { height: this.height() ?? `${height}px` });
6234
6235
  }
6235
6236
  catch (error) {
6236
6237
  console.error('Error embedding dashboard:', error);