@alfresco/aca-content 7.3.0-20847639282 → 7.3.0-20911283577

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.
@@ -18,7 +18,7 @@ import { Actions, createEffect, ofType, provideEffects } from '@ngrx/effects';
18
18
  import { map, mergeMap, catchError, take, first, delay, switchMap, expand, concatMap, tap, debounceTime, filter, distinctUntilChanged, startWith, toArray, retryWhen, finalize, skipWhile } from 'rxjs/operators';
19
19
  import * as i1$2 from '@angular/material/dialog';
20
20
  import { MatDialog, MAT_DIALOG_DATA, MatDialogModule, MAT_DIALOG_DEFAULT_OPTIONS } from '@angular/material/dialog';
21
- import { of, Subject, zip, from, timer, EMPTY, forkJoin, fromEvent, BehaviorSubject, Observable, combineLatest, filter as filter$1, withLatestFrom, map as map$1, startWith as startWith$1, ReplaySubject, switchMap as switchMap$1, take as take$1, catchError as catchError$1, merge as merge$1, throwError } from 'rxjs';
21
+ import { of, Subject, zip, from, timer, EMPTY, forkJoin, fromEvent, BehaviorSubject, Observable, combineLatest, filter as filter$1, withLatestFrom, map as map$1, startWith as startWith$1, ReplaySubject, switchMap as switchMap$1, take as take$1, catchError as catchError$1, throwError } from 'rxjs';
22
22
  import * as i9 from '@alfresco/js-api';
23
23
  import { NodesApi, SitePaging, SizeDetails, SearchApi, QueriesApi, Pagination, PeopleApi, SharedlinksApi } from '@alfresco/js-api';
24
24
  import * as i1$3 from '@angular/router';
@@ -7986,8 +7986,11 @@ class SearchResultsComponent extends PageComponent {
7986
7986
  this.queryBuilder.configUpdated.pipe(takeUntilDestroyed()).subscribe((searchConfig) => {
7987
7987
  this.searchConfig = searchConfig;
7988
7988
  });
7989
- this.areFiltersActive$ = merge$1(this.queryBuilder.queryFragmentsUpdate, this.queryBuilder.userFacetBucketsUpdate).pipe(takeUntilDestroyed(), map((v) => {
7990
- return Object.values(v).some((filterValue) => (Array.isArray(filterValue) ? filterValue.length > 0 : !!filterValue));
7989
+ this.areFiltersActive$ = combineLatest([this.queryBuilder.queryFragmentsUpdate, this.queryBuilder.userFacetBucketsUpdate]).pipe(takeUntilDestroyed(), map((filters) => {
7990
+ const [queryFragments, userFacetBuckets] = filters.map((rawFilter) => {
7991
+ return Object.values(rawFilter).some((filterValue) => (Array.isArray(filterValue) ? filterValue.length > 0 : !!filterValue));
7992
+ });
7993
+ return queryFragments || userFacetBuckets;
7991
7994
  }));
7992
7995
  }
7993
7996
  ngOnInit() {