@porscheinformatik/clr-addons 13.3.0 → 13.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.
package/fesm2020/clr-addons.mjs
CHANGED
|
@@ -6,7 +6,7 @@ import * as i3$1 from '@angular/forms';
|
|
|
6
6
|
import { FormsModule, NG_VALIDATORS, NgControl, NG_VALUE_ACCESSOR } from '@angular/forms';
|
|
7
7
|
import * as i2 from '@clr/angular';
|
|
8
8
|
import { ClarityModule, ClrFormsModule, ClrDropdown, ClrForm, ClrAlert, ClrAxis, ClrSide, ClrAlignment, ClrPopoverToggleService, ClrPopoverEventsService, ClrPopoverPositionService, ClrIconModule, ClrDropdownModule, ClrDatagridPagination, ClrDatagridFilter } from '@clr/angular';
|
|
9
|
-
import { Subject, BehaviorSubject, timer, asyncScheduler, interval, of, ReplaySubject, takeUntil as takeUntil$1 } from 'rxjs';
|
|
9
|
+
import { Subject, BehaviorSubject, timer, asyncScheduler, interval, of, ReplaySubject, takeUntil as takeUntil$1, delay } from 'rxjs';
|
|
10
10
|
import { takeUntil, observeOn, take } from 'rxjs/operators';
|
|
11
11
|
import * as i3 from '@angular/router';
|
|
12
12
|
import { RouterModule } from '@angular/router';
|
|
@@ -4681,7 +4681,9 @@ class StatePersistenceKeyDirective {
|
|
|
4681
4681
|
}
|
|
4682
4682
|
}
|
|
4683
4683
|
initDatagridPersister() {
|
|
4684
|
-
|
|
4684
|
+
// delay is needed, as onDestroy the filters emit empty values.
|
|
4685
|
+
// So delay it to the end of the current cycle, so the directive is also destroyed before it gets the next values
|
|
4686
|
+
this.datagrid.refresh.pipe(delay(0), takeUntil(this.destroy$)).subscribe(dgState => {
|
|
4685
4687
|
const state = this.getVolatileDataState();
|
|
4686
4688
|
state.currentPage = dgState.page?.current;
|
|
4687
4689
|
state.columns = state.columns || {};
|