intelica-library-components 1.1.133 → 1.1.135

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.
@@ -8562,6 +8562,7 @@ class Shared {
8562
8562
  }
8563
8563
  async embedSequentialVisuals(dashboardId, sheetId, parameters, configs, onVisualLoaded) {
8564
8564
  for (const config of configs) {
8565
+ config.container?.nativeElement?.replaceChildren();
8565
8566
  const { visual } = await firstValueFrom(this.getEmbedVisualUrl({ dashboardId, sheetId, visualId: config.visualId, parameters }));
8566
8567
  if (!visual)
8567
8568
  continue;
@@ -8569,6 +8570,18 @@ class Shared {
8569
8570
  onVisualLoaded?.(config.visualId);
8570
8571
  }
8571
8572
  }
8573
+ buildVisualParameters(maps) {
8574
+ return maps.reduce((acc, { key, values, accessor }) => {
8575
+ const list = values?.map(accessor) ?? [];
8576
+ if (list.length)
8577
+ acc[key] = [list.join(',')];
8578
+ return acc;
8579
+ }, {});
8580
+ }
8581
+ async loadVisualSet(dashboardId, sheetId, parameters, configs, loaded) {
8582
+ loaded.set(new Set());
8583
+ await this.embedSequentialVisuals(dashboardId, sheetId, parameters, configs, id => loaded.update(s => new Set(s).add(id)));
8584
+ }
8572
8585
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: Shared, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
8573
8586
  static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: Shared, providedIn: 'root' });
8574
8587
  }