@paperless/angular 1.25.0 → 1.25.2
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.
|
@@ -12,7 +12,7 @@ import { OverlayModule as OverlayModule$1, OverlayConfig } from '@angular/cdk/ov
|
|
|
12
12
|
import { PlatformModule } from '@angular/cdk/platform';
|
|
13
13
|
import { PortalModule, CdkPortal, ComponentPortal } from '@angular/cdk/portal';
|
|
14
14
|
import { untilDestroyed, UntilDestroy } from '@ngneat/until-destroy';
|
|
15
|
-
import { startWith, pairwise, map, filter, debounce } from 'rxjs/operators';
|
|
15
|
+
import { startWith, tap, pairwise, map, filter, debounce } from 'rxjs/operators';
|
|
16
16
|
import { objectGetByPath, isTableColumnSizesKey } from '@paperless/core';
|
|
17
17
|
import { v4 } from 'uuid';
|
|
18
18
|
import * as i1$2 from '@angular/platform-browser';
|
|
@@ -2264,17 +2264,13 @@ let BaseTableComponent = class BaseTableComponent extends BaseFormComponent {
|
|
|
2264
2264
|
selectedRows: this.parsedDefaultTableValues.selectedRows,
|
|
2265
2265
|
});
|
|
2266
2266
|
this.tableOptions.valueChanges
|
|
2267
|
-
.pipe(untilDestroyed(this), startWith(this.tableOptions.value), pairwise(), map(([previous, next]) =>
|
|
2268
|
-
this._getChanges(previous, next),
|
|
2269
|
-
next,
|
|
2270
|
-
]), filter(([changes]) => !!changes), debounce(([changes]) => {
|
|
2267
|
+
.pipe(untilDestroyed(this), startWith(this.tableOptions.value), tap((value) => this.tableOptionsChange.next(value)), pairwise(), map(([previous, next]) => this._getChanges(previous, next)), filter((changes) => !!changes), debounce((changes) => {
|
|
2271
2268
|
if (changes?.query && Object.keys(changes)?.length === 1) {
|
|
2272
2269
|
return timer(300);
|
|
2273
2270
|
}
|
|
2274
2271
|
return timer(0);
|
|
2275
2272
|
}))
|
|
2276
|
-
.subscribe((
|
|
2277
|
-
this.tableOptionsChange.next(values);
|
|
2273
|
+
.subscribe((changes) => {
|
|
2278
2274
|
if (changes?.page) {
|
|
2279
2275
|
this._refresh();
|
|
2280
2276
|
return;
|