@energycap/components 0.40.2-rxjs-7-upgrade.20241217-1226 → 0.41.0

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.
@@ -8092,7 +8092,7 @@ class DialogService {
8092
8092
  * @example
8093
8093
  // From typescript
8094
8094
  try {
8095
- const result = await this.dialogService.openDialog(MyComponent, 'small', myContext, options).toPromise();
8095
+ const result = await lastValueFrom(this.dialogService.openDialog(MyComponent, 'small', myContext, options));
8096
8096
  // do something with result
8097
8097
  } catch(error) {
8098
8098
  // do something with error
@@ -8102,7 +8102,7 @@ class DialogService {
8102
8102
  options = options || {};
8103
8103
  options.size = size;
8104
8104
  const event = new DialogOpenStartEvent(content, context, options);
8105
- const complete = this.events.pipe(skipWhile(e => !(e instanceof DialogCloseEvent) || e.eventId !== event.eventId), map(e => e.dialogResult), take(1) //mark the observable as complete as soon as any closeEvent happens for this particular dialogOpen event, allowing toPromise to work
8105
+ const complete = this.events.pipe(skipWhile(e => !(e instanceof DialogCloseEvent) || e.eventId !== event.eventId), map(e => e.dialogResult), take(1) //mark the observable as complete as soon as any closeEvent happens for this particular dialogOpen event, allowing lastValueFrom to work
8106
8106
  );
8107
8107
  this.triggerEvent(event);
8108
8108
  return complete;