@elderbyte/ngx-starter 22.3.0 → 22.3.1

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.
@@ -6,7 +6,7 @@ import * as i1 from '@angular/platform-browser';
6
6
  import { DomSanitizer } from '@angular/platform-browser';
7
7
  import { Duration, Period, TemporalQueries, LocalTime, Instant, LocalDate, nativeJs, ZoneId, DateTimeFormatter, convert, ZonedDateTime, Temporal as Temporal$1 } from '@js-joda/core';
8
8
  import { LoggerFactory } from '@elderbyte/ts-logger';
9
- import { timer, defer, ReplaySubject, concat, finalize, exhaustMap, BehaviorSubject, Subject, of, throwError, switchMap, combineLatest, EMPTY, merge, forkJoin, mergeWith, Observable, from, toArray, zip, mergeMap as mergeMap$1, fromEvent, mergeAll, skipUntil, filter as filter$1, map as map$1, combineLatestWith as combineLatestWith$1, tap as tap$1, takeUntil as takeUntil$1, NEVER } from 'rxjs';
9
+ import { timer, defer, ReplaySubject, concat, finalize, exhaustMap, BehaviorSubject, Subject, of, throwError, switchMap, combineLatest, EMPTY, merge, forkJoin, mergeWith, Observable, from, toArray, zip, mergeMap as mergeMap$1, fromEvent, skipUntil, filter as filter$1, map as map$1, combineLatestWith as combineLatestWith$1, tap as tap$1, takeUntil as takeUntil$1, NEVER } from 'rxjs';
10
10
  import { tap, takeUntil, takeWhile, map, filter, distinctUntilChanged, debounceTime, catchError, first, take, switchMap as switchMap$1, mergeMap, expand, reduce, combineLatestWith, startWith, skip, delay, share, debounce, timeout, skipWhile } from 'rxjs/operators';
11
11
  import { Temporal } from '@js-temporal/polyfill';
12
12
  import * as i1$1 from '@angular/common/http';
@@ -16715,9 +16715,10 @@ class DataViewDndGroupControllerService {
16715
16715
  */
16716
16716
  this.itemDropped$ = new Subject();
16717
16717
  this._dropViews$
16718
- .pipe(takeUntilDestroyed(),
16719
- // merge all itemDropEvent streams from each child into one main itemDropEvent stream
16720
- mergeMap$1((views) => this.getItemDropObservables(views)), mergeAll())
16718
+ .pipe(
16719
+ // Merge all itemDropEvent streams from each child into one main itemDropEvent stream.
16720
+ // Replace previous subscriptions whenever the group's drop views change.
16721
+ switchMap$1((views) => merge(...this.getItemDropObservables(views))), takeUntilDestroyed())
16721
16722
  .subscribe((event) => this.handleItemDrop(event));
16722
16723
  }
16723
16724
  /***************************************************************************