@nova-ui/dashboards
Version:
Nova Dashboards is a framework designed to provide feature developers with a common solution for presenting data coming from various sources within a single view, as well as a set of predefined widget visualizations that are 100% configuration-driven and
28 lines (27 loc) • 1.37 kB
TypeScript
import { OnChanges, OnDestroy, OnInit, SimpleChanges } from "@angular/core";
import { Subject } from "rxjs";
import { EventBus, IDataSource, IEvent } from "@nova-ui/bits";
import { IWidgetSearchConfiguration } from "./types";
import * as i0 from "@angular/core";
export declare class WidgetSearchComponent implements OnInit, OnDestroy, OnChanges {
private dataSource;
eventBus: EventBus<IEvent>;
static lateLoadKey: string;
static defaultSearchDebounce: number;
configuration: IWidgetSearchConfiguration;
searchValue: string;
enabled: boolean;
searchTerm$: Subject<string>;
readonly destroy$: Subject<void>;
private searchTermSubscription;
constructor(dataSource: IDataSource, eventBus: EventBus<IEvent>);
ngOnInit(): void;
ngOnChanges(changes: SimpleChanges): void;
onSearchInputChanged(searchTerm: string): void;
onSearch(searchTerm: string): void;
ngOnDestroy(): void;
private registerFilters;
private handleSearchTermSubscription;
static ɵfac: i0.ɵɵFactoryDeclaration<WidgetSearchComponent, [{ optional: true; }, null]>;
static ɵcmp: i0.ɵɵComponentDeclaration<WidgetSearchComponent, "nui-widget-search", never, { "configuration": { "alias": "configuration"; "required": false; }; "searchValue": { "alias": "searchValue"; "required": false; }; }, {}, never, never, false, never>;
}