Enhancement: ignore diacritics, support multiple substring matching for UI filtering (#13021)

This commit is contained in:
shamoon
2026-06-17 05:58:55 -07:00
committed by GitHub
parent ad1b54ce88
commit 8bd620d8ab
15 changed files with 102 additions and 7 deletions
@@ -13,6 +13,7 @@ import {
import { RouterModule } from '@angular/router'
import { NgSelectModule } from '@ng-select/ng-select'
import { NgxBootstrapIconsModule } from 'ngx-bootstrap-icons'
import { matchesSearchText } from 'src/app/utils/text-search'
import { AbstractInputComponent } from '../abstract-input'
@Component({
@@ -99,6 +100,9 @@ export class SelectComponent extends AbstractInputComponent<number> {
@Input()
bindLabel: string = 'name'
public searchFn = (term: string, item: any): boolean =>
matchesSearchText(item?.[this.bindLabel], term)
@Input()
showFilter: boolean = false