intelica-library-components 1.1.152 → 1.1.154

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.
@@ -6164,7 +6164,7 @@ class Shared {
6164
6164
  });
6165
6165
  }
6166
6166
  async embedDashboard(command, container, options) {
6167
- const { embedUrl } = await firstValueFrom(this.getEmbedUrl(command));
6167
+ const embedUrl = await firstValueFrom(this.getEmbedUrl(command));
6168
6168
  await this.createEmbedContext(embedUrl, container, options);
6169
6169
  }
6170
6170
  async createEmbedVisualContext(embedUrl, container, options) {
@@ -6200,13 +6200,20 @@ class DashboardQsComponent {
6200
6200
  sharedService = inject(Shared);
6201
6201
  route = inject(ActivatedRoute);
6202
6202
  containers;
6203
+ dashboardIdInput = input(undefined, ...(ngDevMode ? [{ debugName: "dashboardIdInput", alias: 'dashboardId' }] : [{ alias: 'dashboardId' }]));
6204
+ parametersInput = input(undefined, ...(ngDevMode ? [{ debugName: "parametersInput", alias: 'parameters' }] : [{ alias: 'parameters' }]));
6205
+ heightInput = input(undefined, ...(ngDevMode ? [{ debugName: "heightInput", alias: 'height' }] : [{ alias: 'height' }]));
6203
6206
  routeData = toSignal(this.route.data, { initialValue: this.route.snapshot.data });
6204
- dashboardId = computed(() => this.routeData()['dashboardId'], ...(ngDevMode ? [{ debugName: "dashboardId" }] : []));
6205
- parameters = computed(() => this.routeData()['parameters'], ...(ngDevMode ? [{ debugName: "parameters" }] : []));
6206
- height = computed(() => this.routeData()['height'] ?? '700px', ...(ngDevMode ? [{ debugName: "height" }] : []));
6207
+ dashboardId = computed(() => this.dashboardIdInput() ?? this.routeData()['dashboardId'], ...(ngDevMode ? [{ debugName: "dashboardId" }] : []));
6208
+ parameters = computed(() => this.parametersInput() ?? this.routeData()['parameters'], ...(ngDevMode ? [{ debugName: "parameters" }] : []));
6209
+ height = computed(() => this.heightInput() ?? this.routeData()['height'] ?? '700px', ...(ngDevMode ? [{ debugName: "height" }] : []));
6207
6210
  isLoading = signal(true, ...(ngDevMode ? [{ debugName: "isLoading" }] : []));
6211
+ isLoadingChange = output();
6208
6212
  viewReady = signal(false, ...(ngDevMode ? [{ debugName: "viewReady" }] : []));
6209
6213
  constructor() {
6214
+ effect(() => {
6215
+ this.isLoadingChange.emit(this.isLoading());
6216
+ });
6210
6217
  effect(() => {
6211
6218
  const id = this.dashboardId();
6212
6219
  if (!this.viewReady() || !id)
@@ -6223,8 +6230,7 @@ class DashboardQsComponent {
6223
6230
  return;
6224
6231
  this.isLoading.set(true);
6225
6232
  try {
6226
- const height = window.innerHeight - 50;
6227
- await this.sharedService.embedDashboard({ dashboardId: dashboardId, parameters: this.parameters() }, container, { height: `${height}px` });
6233
+ await this.sharedService.embedDashboard({ dashboardId, parameters: this.parameters() }, container, { height: this.height() });
6228
6234
  }
6229
6235
  catch (error) {
6230
6236
  console.error('Error embedding dashboard:', error);
@@ -6234,7 +6240,7 @@ class DashboardQsComponent {
6234
6240
  }
6235
6241
  }
6236
6242
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: DashboardQsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
6237
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.23", type: DashboardQsComponent, isStandalone: true, selector: "intelica-dashboard-qs", viewQueries: [{ propertyName: "containers", predicate: ["visualContainer"], descendants: true }], ngImport: i0, template: "<div #visualContainer [style.height]=\"height()\" [class.hidden]=\"isLoading()\"></div>" });
6243
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.3.23", type: DashboardQsComponent, isStandalone: true, selector: "intelica-dashboard-qs", inputs: { dashboardIdInput: { classPropertyName: "dashboardIdInput", publicName: "dashboardId", isSignal: true, isRequired: false, transformFunction: null }, parametersInput: { classPropertyName: "parametersInput", publicName: "parameters", isSignal: true, isRequired: false, transformFunction: null }, heightInput: { classPropertyName: "heightInput", publicName: "height", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { isLoadingChange: "isLoadingChange" }, viewQueries: [{ propertyName: "containers", predicate: ["visualContainer"], descendants: true }], ngImport: i0, template: "<div #visualContainer [style.height]=\"height()\" [class.hidden]=\"isLoading()\"></div>" });
6238
6244
  }
6239
6245
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: DashboardQsComponent, decorators: [{
6240
6246
  type: Component,
@@ -6242,7 +6248,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.23", ngImpo
6242
6248
  }], ctorParameters: () => [], propDecorators: { containers: [{
6243
6249
  type: ViewChildren,
6244
6250
  args: ['visualContainer']
6245
- }] } });
6251
+ }], dashboardIdInput: [{ type: i0.Input, args: [{ isSignal: true, alias: "dashboardId", required: false }] }], parametersInput: [{ type: i0.Input, args: [{ isSignal: true, alias: "parameters", required: false }] }], heightInput: [{ type: i0.Input, args: [{ isSignal: true, alias: "height", required: false }] }], isLoadingChange: [{ type: i0.Output, args: ["isLoadingChange"] }] } });
6246
6252
 
6247
6253
  class CheckboxFilterDirective extends FilterDirective {
6248
6254
  constructor() {