intelica-library-components 1.1.132 → 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.
|
@@ -8518,27 +8518,23 @@ class Shared {
|
|
|
8518
8518
|
getEmbedUrl(dashboardId) {
|
|
8519
8519
|
return this.http.get(`${this.path}/embed-url/${dashboardId}`);
|
|
8520
8520
|
}
|
|
8521
|
-
|
|
8521
|
+
getEmbedVisualUrl(request) {
|
|
8522
8522
|
let params = new HttpParams()
|
|
8523
8523
|
.set('dashboardId', request.dashboardId)
|
|
8524
|
-
.set('sheetId', request.sheetId)
|
|
8525
|
-
|
|
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-
|
|
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
|
-
|
|
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
|
|
8568
|
-
const
|
|
8569
|
-
|
|
8570
|
-
|
|
8571
|
-
|
|
8572
|
-
|
|
8573
|
-
|
|
8574
|
-
}
|
|
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' });
|