osl-base-extended 1.1.50 → 1.1.52
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.
|
@@ -2328,7 +2328,9 @@ class OslSearchbar {
|
|
|
2328
2328
|
searchControl = new FormControl('');
|
|
2329
2329
|
ngOnInit() {
|
|
2330
2330
|
this.searchControl.valueChanges.pipe(debounceTime$1(300), distinctUntilChanged$1()).subscribe(value => {
|
|
2331
|
-
|
|
2331
|
+
if (value) {
|
|
2332
|
+
this.onSearch.emit(value);
|
|
2333
|
+
}
|
|
2332
2334
|
});
|
|
2333
2335
|
}
|
|
2334
2336
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: OslSearchbar, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
@@ -2654,13 +2656,13 @@ class OslSetup {
|
|
|
2654
2656
|
this.gridRef.pageSize = state.pageSize;
|
|
2655
2657
|
this.gridRef.setRestorePage(state.page);
|
|
2656
2658
|
}
|
|
2657
|
-
if (this.searchbar) {
|
|
2659
|
+
if (this.searchbar && state.searchValue) {
|
|
2660
|
+
this._isRestoring = true;
|
|
2658
2661
|
this.searchbar.searchControl.setValue(state.searchValue, { emitEvent: false });
|
|
2659
2662
|
}
|
|
2660
2663
|
// Trigger the same code path as a real search so the parent re-fetches with the correct
|
|
2661
2664
|
// page + searchValue in a single unified event — no new events, no application changes needed.
|
|
2662
2665
|
if (state.searchValue) {
|
|
2663
|
-
this._isRestoring = true;
|
|
2664
2666
|
this.onSearchSetup(state.searchValue);
|
|
2665
2667
|
}
|
|
2666
2668
|
else {
|