@ux-aspects/ux-aspects
Version:
Open source user interface framework for building modern, responsive, mobile big data applications
19 lines (18 loc) • 683 B
TypeScript
import { BehaviorSubject, Subject } from 'rxjs';
import { FacetEvent } from './facet-events';
import { Facet } from './models/facet';
import * as i0 from "@angular/core";
export declare class FacetService {
/** The list of active facets */
facets$: BehaviorSubject<Facet[]>;
/** Emit all the events when they occur */
events$: Subject<FacetEvent>;
select(facet: Facet): void;
deselect(facet: Facet): void;
deselectAll(): void;
toggle(facet: Facet): void;
isSelected(facet: Facet): boolean;
private isFacetMatch;
static ɵfac: i0.ɵɵFactoryDeclaration<FacetService, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<FacetService>;
}