intelica-library-components 1.1.131 → 1.1.133

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.
@@ -6432,11 +6432,11 @@ class BreadCrumbComponent {
6432
6432
  fullItems = input([], ...(ngDevMode ? [{ debugName: "fullItems" }] : []));
6433
6433
  itemClick = output();
6434
6434
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: BreadCrumbComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
6435
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.3.21", type: BreadCrumbComponent, isStandalone: true, selector: "intelica-bread-crumb", inputs: { fullItems: { classPropertyName: "fullItems", publicName: "fullItems", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { itemClick: "itemClick" }, ngImport: i0, template: "<p-breadcrumb class=\"prBreadcrumb\" [model]=\"fullItems()\">\r\n <ng-template pTemplate=\"item\" let-item>\r\n <!-- @if (item.routerLink) {\r\n <a [routerLink]=\"item.routerLink\" [pTooltip]=\"item.tooltip\" tooltipStyleClass=\"prTooltip\"\r\n [tooltipPosition]=\"item.tooltipPosition\" [tooltipStyleClass]=\"item.tooltipStyleClass\">\r\n <span>{{ item.label }}</span>\r\n </a>\r\n } @else { -->\r\n <a class=\"breadcrumb-action\" [pTooltip]=\"item.tooltip\" tooltipStyleClass=\"prTooltip\"\r\n [tooltipPosition]=\"item.tooltipPosition\" [tooltipStyleClass]=\"item.tooltipStyleClass\"\r\n (click)=\"itemClick.emit(item)\">\r\n <span>{{ item.label }}</span>\r\n <span>asdsad</span>\r\n </a>\r\n <!-- } -->\r\n </ng-template>\r\n <ng-template pTemplate=\"separator\">\r\n <span class=\"breadcrumb-separator\">\r\n <i class=\"icon icon-arrow-right icon--xs\"></i>\r\n </span>\r\n </ng-template>\r\n</p-breadcrumb>", dependencies: [{ kind: "component", type: Breadcrumb, selector: "p-breadcrumb", inputs: ["model", "style", "styleClass", "home", "homeAriaLabel"], outputs: ["onItemClick"] }, { kind: "directive", type: Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "autoHide", "fitContent", "hideOnEscape", "pTooltip", "tooltipDisabled", "tooltipOptions", "appendTo", "ptTooltip"] }] });
6435
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.3.21", type: BreadCrumbComponent, isStandalone: true, selector: "intelica-bread-crumb", inputs: { fullItems: { classPropertyName: "fullItems", publicName: "fullItems", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { itemClick: "itemClick" }, ngImport: i0, template: "<p-breadcrumb class=\"prBreadcrumb\" [model]=\"fullItems()\">\r\n <ng-template pTemplate=\"item\" let-item>\r\n <a [routerLink]=\"item.routerLink\" [pTooltip]=\"item.tooltip\" tooltipStyleClass=\"prTooltip\"\r\n [tooltipPosition]=\"item.tooltipPosition\" [tooltipStyleClass]=\"item.tooltipStyleClass\">\r\n <span>{{ item.label }}</span>\r\n </a>\r\n </ng-template>\r\n <ng-template pTemplate=\"separator\">\r\n <span class=\"breadcrumb-separator\">\r\n <i class=\"icon icon-arrow-right icon--xs\"></i>\r\n </span>\r\n </ng-template>\r\n</p-breadcrumb>", dependencies: [{ kind: "component", type: Breadcrumb, selector: "p-breadcrumb", inputs: ["model", "style", "styleClass", "home", "homeAriaLabel"], outputs: ["onItemClick"] }, { kind: "directive", type: RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "directive", type: Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "autoHide", "fitContent", "hideOnEscape", "pTooltip", "tooltipDisabled", "tooltipOptions", "appendTo", "ptTooltip"] }] });
6436
6436
  }
6437
6437
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: BreadCrumbComponent, decorators: [{
6438
6438
  type: Component,
6439
- args: [{ selector: 'intelica-bread-crumb', imports: [Breadcrumb, RouterLink, Tooltip,], template: "<p-breadcrumb class=\"prBreadcrumb\" [model]=\"fullItems()\">\r\n <ng-template pTemplate=\"item\" let-item>\r\n <!-- @if (item.routerLink) {\r\n <a [routerLink]=\"item.routerLink\" [pTooltip]=\"item.tooltip\" tooltipStyleClass=\"prTooltip\"\r\n [tooltipPosition]=\"item.tooltipPosition\" [tooltipStyleClass]=\"item.tooltipStyleClass\">\r\n <span>{{ item.label }}</span>\r\n </a>\r\n } @else { -->\r\n <a class=\"breadcrumb-action\" [pTooltip]=\"item.tooltip\" tooltipStyleClass=\"prTooltip\"\r\n [tooltipPosition]=\"item.tooltipPosition\" [tooltipStyleClass]=\"item.tooltipStyleClass\"\r\n (click)=\"itemClick.emit(item)\">\r\n <span>{{ item.label }}</span>\r\n <span>asdsad</span>\r\n </a>\r\n <!-- } -->\r\n </ng-template>\r\n <ng-template pTemplate=\"separator\">\r\n <span class=\"breadcrumb-separator\">\r\n <i class=\"icon icon-arrow-right icon--xs\"></i>\r\n </span>\r\n </ng-template>\r\n</p-breadcrumb>" }]
6439
+ args: [{ selector: 'intelica-bread-crumb', imports: [Breadcrumb, RouterLink, Tooltip,], template: "<p-breadcrumb class=\"prBreadcrumb\" [model]=\"fullItems()\">\r\n <ng-template pTemplate=\"item\" let-item>\r\n <a [routerLink]=\"item.routerLink\" [pTooltip]=\"item.tooltip\" tooltipStyleClass=\"prTooltip\"\r\n [tooltipPosition]=\"item.tooltipPosition\" [tooltipStyleClass]=\"item.tooltipStyleClass\">\r\n <span>{{ item.label }}</span>\r\n </a>\r\n </ng-template>\r\n <ng-template pTemplate=\"separator\">\r\n <span class=\"breadcrumb-separator\">\r\n <i class=\"icon icon-arrow-right icon--xs\"></i>\r\n </span>\r\n </ng-template>\r\n</p-breadcrumb>" }]
6440
6440
  }], propDecorators: { fullItems: [{ type: i0.Input, args: [{ isSignal: true, alias: "fullItems", required: false }] }], itemClick: [{ type: i0.Output, args: ["itemClick"] }] } });
6441
6441
 
6442
6442
  class TitleComponent {
@@ -8518,27 +8518,23 @@ class Shared {
8518
8518
  getEmbedUrl(dashboardId) {
8519
8519
  return this.http.get(`${this.path}/embed-url/${dashboardId}`);
8520
8520
  }
8521
- getEmbedVisualUrls(request) {
8521
+ getEmbedVisualUrl(request) {
8522
8522
  let params = new HttpParams()
8523
8523
  .set('dashboardId', request.dashboardId)
8524
- .set('sheetId', request.sheetId);
8525
- request.visualIds.forEach(id => {
8526
- params = params.append('visualIds', id);
8527
- });
8524
+ .set('sheetId', request.sheetId)
8525
+ .set('visualId', request.visualId);
8528
8526
  Object.entries(request.parameters).forEach(([key, values]) => {
8529
8527
  values.forEach(value => {
8530
8528
  params = params.append(`parameters[${key}]`, value);
8531
8529
  });
8532
8530
  });
8533
- return this.http.get(`${this.path}/embed-visual-urls`, { params });
8531
+ return this.http.get(`${this.path}/embed-visual-url`, { params });
8534
8532
  }
8535
8533
  getEmbedVisualUrlsAnonymous(request) {
8536
8534
  let params = new HttpParams()
8537
8535
  .set('dashboardId', request.dashboardId)
8538
- .set('sheetId', request.sheetId);
8539
- request.visualIds.forEach(id => {
8540
- params = params.append('visualIds', id);
8541
- });
8536
+ .set('sheetId', request.sheetId)
8537
+ .set('visualId', request.visualId);
8542
8538
  Object.entries(request.parameters).forEach(([key, values]) => {
8543
8539
  values.forEach(value => {
8544
8540
  params = params.append(`parameters[${key}]`, value);
@@ -8564,14 +8560,14 @@ class Shared {
8564
8560
  ...(options?.width && { width: options.width }),
8565
8561
  }, { scaleToContainer: true, fitToIframeWidth: false });
8566
8562
  }
8567
- async createEmbedVisualsContext(items) {
8568
- const embeddingContext = await createEmbeddingContext();
8569
- await Promise.all(items.map(item => embeddingContext.embedVisual({
8570
- url: item.url,
8571
- container: item.container,
8572
- ...(item.height && { height: item.height }),
8573
- ...(item.width && { width: item.width }),
8574
- }, { scaleToContainer: true, fitToIframeWidth: false })));
8563
+ async embedSequentialVisuals(dashboardId, sheetId, parameters, configs, onVisualLoaded) {
8564
+ for (const config of configs) {
8565
+ const { visual } = await firstValueFrom(this.getEmbedVisualUrl({ dashboardId, sheetId, visualId: config.visualId, parameters }));
8566
+ if (!visual)
8567
+ continue;
8568
+ await this.createEmbedVisualContext(visual.embedUrl, config.container.nativeElement);
8569
+ onVisualLoaded?.(config.visualId);
8570
+ }
8575
8571
  }
8576
8572
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: Shared, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
8577
8573
  static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: Shared, providedIn: 'root' });