Adds quick filters from document detail

This commit is contained in:
shamoon
2023-05-27 23:16:33 -07:00
parent 97cf3b2079
commit 74c965d21d
13 changed files with 2647 additions and 51 deletions
@@ -85,9 +85,15 @@ export class SelectComponent extends AbstractInputComponent<number> {
@Input()
bindLabel: string = 'name'
@Input()
showFilter: boolean = false
@Output()
createNew = new EventEmitter<string>()
@Output()
filterDocuments = new EventEmitter<any[]>()
public addItemRef: (name) => void
private _lastSearchTerm: string
@@ -134,4 +140,8 @@ export class SelectComponent extends AbstractInputComponent<number> {
this.clearLastSearchTerm()
}, 3000)
}
onFilterDocuments() {
this.filterDocuments.emit([this.items.find((i) => i.id === this.value)])
}
}