intelica-library-project 20.0.6 → 20.0.7

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,7 +2180,7 @@ class Shared {
2180
2180
  container,
2181
2181
  ...(options?.height && { height: options.height }),
2182
2182
  ...(options?.width && { width: options.width }),
2183
- ...(options?.onChange && { onChange: this.toSdkChangeListener(options.onChange) }),
2183
+ ...(options?.onMessage && { onMessage: this.toSdkMessageListener(options.onMessage) }),
2184
2184
  });
2185
2185
  }
2186
2186
  async embedDashboard(command, container, options) {
@@ -2198,10 +2198,10 @@ class Shared {
2198
2198
  container,
2199
2199
  ...(options?.height && { height: options.height }),
2200
2200
  ...(options?.width && { width: options.width }),
2201
- ...(options?.onChange && { onChange: this.toSdkChangeListener(options.onChange) }),
2201
+ ...(options?.onMessage && { onMessage: this.toSdkMessageListener(options.onMessage) }),
2202
2202
  }, sdkParameters ? { parameters: sdkParameters } : undefined);
2203
2203
  }
2204
- toSdkChangeListener(emit) {
2204
+ toSdkMessageListener(emit) {
2205
2205
  return (changeEvent) => {
2206
2206
  emit({
2207
2207
  eventName: changeEvent?.eventName,
@@ -2340,7 +2340,7 @@ class DashboardQsComponent {
2340
2340
  try {
2341
2341
  await this.sharedService.embedDashboard({ dashboardId, parameters }, container, {
2342
2342
  height: this.height() ?? `${window.innerHeight - 50}px`,
2343
- onChange: event => {
2343
+ onMessage: event => {
2344
2344
  dispatchQuicksightEvent(event, this);
2345
2345
  if (event.eventName === QuicksightEventName.CONTENT_LOADED || event.eventName === QuicksightEventName.ERROR_OCCURRED)
2346
2346
  this.isLoading.set(false);
@@ -2416,7 +2416,7 @@ class DashboardQsInteractiveComponent {
2416
2416
  try {
2417
2417
  this.dashboardRef = await this.sharedService.embedDashboardInteractive({ dashboardId, parameters: this.parameters() }, container, {
2418
2418
  height: this.height() ?? `${window.innerHeight - 50}px`,
2419
- onChange: event => {
2419
+ onMessage: event => {
2420
2420
  dispatchQuicksightEvent(event, this);
2421
2421
  if (event.eventName === QuicksightEventName.CONTENT_LOADED || event.eventName === QuicksightEventName.ERROR_OCCURRED)
2422
2422
  this.isLoading.set(false);