@theseam/ui-common 1.0.2-beta.17 → 1.0.2-beta.20

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.
@@ -4,8 +4,8 @@ import { hasProperty, notNullOrUndefined, isNullOrUndefined, withoutProperty, wr
4
4
  import { visit, BREAK } from 'graphql/language';
5
5
  import * as i0 from '@angular/core';
6
6
  import { isDevMode, InjectionToken, Optional, Inject, Injectable, EventEmitter } from '@angular/core';
7
- import { Observable, EMPTY, merge, from, defer, of, combineLatest, Subscription, Subject, BehaviorSubject, isObservable } from 'rxjs';
8
- import { switchMap, auditTime, map, tap, take, concatMap, filter, toArray, distinctUntilChanged, finalize, catchError, shareReplay, startWith, skip } from 'rxjs/operators';
7
+ import { Observable, EMPTY, from, defer, of, combineLatest, Subscription, Subject, BehaviorSubject, isObservable } from 'rxjs';
8
+ import { switchMap, tap, take, concatMap, filter, toArray, map, auditTime, distinctUntilChanged, finalize, catchError, shareReplay, startWith, skip } from 'rxjs/operators';
9
9
  import * as i1 from 'apollo-angular';
10
10
  import { gql, provideApollo } from 'apollo-angular';
11
11
  import { THESEAM_COLUMNS_DATA_FILTER_DATE_TEXT_SEARCH_TYPES, getFormattedDateForComparison, THESEAM_COLUMNS_DATA_FILTER_DATE_RANGE_SEARCH_TYPES, THESEAM_COLUMNS_DATA_FILTER_NUMERIC_TEXT_SEARCH_TYPES, THESEAM_COLUMNS_DATA_FILTER_NUMERIC_RANGE_SEARCH_TYPES, THESEAM_COLUMNS_DATA_FILTER_TEXT_TEXT_SEARCH_TYPES } from '@theseam/ui-common/datatable';
@@ -616,10 +616,7 @@ function createPageInfoObservable(datatable$, defaultPageSize = 20) {
616
616
  return EMPTY;
617
617
  }
618
618
  handlePageInfo(getPageInfo(dt, defaultPageSize));
619
- // `page` does not emit when the page size changes (e.g. on
620
- // window resize). Merging the `resize` event is a workaround.
621
- const resize$ = dt.resize.pipe(auditTime(100), map(() => dt.pageInfo));
622
- return merge(dt.page, resize$).pipe(tap((p) => handlePageInfo(p)));
619
+ return dt.page.pipe(tap((p) => handlePageInfo(p)));
623
620
  }))
624
621
  .subscribe();
625
622
  return () => {