intelica-library-components 1.1.134 → 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.
|
@@ -8570,6 +8570,18 @@ class Shared {
|
|
|
8570
8570
|
onVisualLoaded?.(config.visualId);
|
|
8571
8571
|
}
|
|
8572
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
|
+
}
|
|
8573
8585
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: Shared, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
8574
8586
|
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: Shared, providedIn: 'root' });
|
|
8575
8587
|
}
|