@indigina/ui-kit 1.1.220 → 1.1.221
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.
|
@@ -6790,9 +6790,10 @@ class KitGlobalSearchComponent {
|
|
|
6790
6790
|
}
|
|
6791
6791
|
ngOnInit() {
|
|
6792
6792
|
combineLatest([
|
|
6793
|
-
this.textbox().valueChange.pipe(debounceTime(500), distinctUntilChanged()),
|
|
6793
|
+
this.textbox().valueChange.pipe(debounceTime(500), distinctUntilChanged(), map((text) => text.trim())),
|
|
6794
6794
|
this.selectedFilters$,
|
|
6795
6795
|
]).pipe(filter(([text, _,]) => text.length > 2 && !this.isClearing)).subscribe(([text, filters,]) => {
|
|
6796
|
+
this.searchValue = text;
|
|
6796
6797
|
this.isLoading.set(true);
|
|
6797
6798
|
this.showPropmts.set(false);
|
|
6798
6799
|
this.searchFn()(text, filters).subscribe(searchRusult => {
|
|
@@ -6842,6 +6843,7 @@ class KitGlobalSearchComponent {
|
|
|
6842
6843
|
this.router.navigate(routeConfig.commands, {
|
|
6843
6844
|
...routeConfig.extras,
|
|
6844
6845
|
queryParams: {
|
|
6846
|
+
...routeConfig.extras?.queryParams,
|
|
6845
6847
|
search: this.searchValue,
|
|
6846
6848
|
},
|
|
6847
6849
|
queryParamsHandling: 'replace',
|