intelica-library-project 20.0.7 → 20.0.9

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.
@@ -2180,6 +2180,7 @@ class Shared {
2180
2180
  container,
2181
2181
  ...(options?.height && { height: options.height }),
2182
2182
  ...(options?.width && { width: options.width }),
2183
+ }, {
2183
2184
  ...(options?.onMessage && { onMessage: this.toSdkMessageListener(options.onMessage) }),
2184
2185
  });
2185
2186
  }
@@ -2198,8 +2199,10 @@ class Shared {
2198
2199
  container,
2199
2200
  ...(options?.height && { height: options.height }),
2200
2201
  ...(options?.width && { width: options.width }),
2202
+ }, {
2203
+ ...(sdkParameters ? { parameters: sdkParameters } : {}),
2201
2204
  ...(options?.onMessage && { onMessage: this.toSdkMessageListener(options.onMessage) }),
2202
- }, sdkParameters ? { parameters: sdkParameters } : undefined);
2205
+ });
2203
2206
  }
2204
2207
  toSdkMessageListener(emit) {
2205
2208
  return (changeEvent) => {
@@ -2402,7 +2405,7 @@ class DashboardQsInteractiveComponent {
2402
2405
  return;
2403
2406
  this.isLoading.set(true);
2404
2407
  this.sharedService.setDashboardParameters(this.dashboardRef, params)
2405
- .finally(() => setTimeout(() => this.isLoading.set(false), 2000));
2408
+ .catch(() => this.isLoading.set(false));
2406
2409
  });
2407
2410
  }
2408
2411
  ngAfterViewInit() {
@@ -2418,7 +2421,7 @@ class DashboardQsInteractiveComponent {
2418
2421
  height: this.height() ?? `${window.innerHeight - 50}px`,
2419
2422
  onMessage: event => {
2420
2423
  dispatchQuicksightEvent(event, this);
2421
- if (event.eventName === QuicksightEventName.CONTENT_LOADED || event.eventName === QuicksightEventName.ERROR_OCCURRED)
2424
+ if (event.eventName === QuicksightEventName.CONTENT_LOADED || event.eventName === QuicksightEventName.ERROR_OCCURRED || event.eventName === QuicksightEventName.PARAMETERS_CHANGED)
2422
2425
  this.isLoading.set(false);
2423
2426
  },
2424
2427
  });