(category: string)
| 223 | |
| 224 | // Deselect all facets in a category |
| 225 | function deselectCategory(category: string): void { |
| 226 | const categoryFacets = getFacetsInCategory(category) |
| 227 | const remaining = selectedFacetIds.value.filter(f => !categoryFacets.includes(f)) |
| 228 | // Don't allow deselecting all facets |
| 229 | if (remaining.length > 0) { |
| 230 | selectedFacetIds.value = remaining |
| 231 | } |
| 232 | } |
| 233 | |
| 234 | // Select all facets globally |
| 235 | function selectAll(): void { |
no test coverage detected