@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.
- package/fesm2022/theseam-ui-common-datatable.mjs +8 -0
- package/fesm2022/theseam-ui-common-datatable.mjs.map +1 -1
- package/fesm2022/theseam-ui-common-graphql.mjs +3 -6
- package/fesm2022/theseam-ui-common-graphql.mjs.map +1 -1
- package/fesm2022/theseam-ui-common-loading.mjs +84 -19
- package/fesm2022/theseam-ui-common-loading.mjs.map +1 -1
- package/fesm2022/theseam-ui-common-menu.mjs +13 -0
- package/fesm2022/theseam-ui-common-menu.mjs.map +1 -1
- package/fesm2022/theseam-ui-common-story-helpers.mjs +1 -36
- package/fesm2022/theseam-ui-common-story-helpers.mjs.map +1 -1
- package/fesm2022/theseam-ui-common-testing.mjs +13 -8
- package/fesm2022/theseam-ui-common-testing.mjs.map +1 -1
- package/graphql/index.d.ts +1 -1
- package/loading/index.d.ts +32 -4
- package/menu/index.d.ts +6 -0
- package/package.json +1 -1
- package/story-helpers/index.d.ts +1 -34
- package/testing/index.d.ts +12 -9
|
@@ -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,
|
|
8
|
-
import { switchMap,
|
|
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
|
-
|
|
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 () => {
|