UNPKG

1.56 kBTypeScriptView Raw
1import { ChangeDetectorRef, OnInit, TemplateRef, ViewContainerRef, NgZone } from "@angular/core";
2import { CompleterItem } from "../components/completer-item";
3import { CompleterData } from "../services/completer-data";
4import { CompleterList, CtrCompleter } from "./ctr-completer";
5export declare class CtrListContext {
6 results: CompleterItem[] | null;
7 searching: boolean;
8 searchInitialized: boolean;
9 isOpen: boolean;
10 constructor(results: CompleterItem[] | null, searching: boolean, searchInitialized: boolean, isOpen: boolean);
11}
12export declare class CtrList implements OnInit, CompleterList {
13 private completer;
14 private templateRef;
15 private viewContainer;
16 private cd;
17 private zone;
18 ctrListMinSearchLength: number;
19 ctrListPause: number;
20 ctrListAutoMatch: boolean;
21 ctrListAutoHighlight: boolean;
22 ctrListDisplaySearching: boolean;
23 private _dataService;
24 private term;
25 private searchTimer;
26 private clearTimer;
27 private ctx;
28 private _initialValue;
29 private viewRef;
30 constructor(completer: CtrCompleter, templateRef: TemplateRef<CtrListContext>, viewContainer: ViewContainerRef, cd: ChangeDetectorRef, zone: NgZone);
31 ngOnInit(): void;
32 set dataService(newService: CompleterData);
33 set initialValue(value: any);
34 search(term: string): void;
35 clear(): void;
36 open(): void;
37 isOpen(open: boolean): void;
38 private _clear;
39 private searchTimerComplete;
40 private refreshTemplate;
41 private getBestMatchIndex;
42 private dataServiceSubscribe;
43}