1 | import { Observable } from 'rxjs';
|
2 | import * as i0 from "@angular/core";
|
3 | /**
|
4 | * Search component service, connects your code to a page-level search component.
|
5 | */
|
6 | export declare class NbSearchService {
|
7 | private searchSubmittings$;
|
8 | private searchActivations$;
|
9 | private searchDeactivations$;
|
10 | private searchInput$;
|
11 | /***
|
12 | * Activate (open) search component
|
13 | * @param {string} searchType
|
14 | * @param {string} tag
|
15 | */
|
16 | activateSearch(searchType: string, tag?: string): void;
|
17 | /**
|
18 | * Deactibate (close) search component
|
19 | * @param {string} searchType
|
20 | * @param {string} tag
|
21 | */
|
22 | deactivateSearch(searchType: string, tag?: string): void;
|
23 | /**
|
24 | * Trigger search submit
|
25 | * @param {string} term
|
26 | * @param {string} tag
|
27 | */
|
28 | submitSearch(term: string, tag?: string): void;
|
29 | /**
|
30 | * Trigger search submit by input event
|
31 | * @param {string} term
|
32 | * @param {string} tag
|
33 | */
|
34 | searchInput(term: string, tag?: string): void;
|
35 | /**
|
36 | * Subscribe to 'activate' event
|
37 | * @returns Observable<{searchType: string; tag?: string}>
|
38 | */
|
39 | onSearchActivate(): Observable<{
|
40 | searchType: string;
|
41 | tag?: string;
|
42 | }>;
|
43 | /**
|
44 | * Subscribe to 'deactivate' event
|
45 | * @returns Observable<{searchType: string; tag?: string}>
|
46 | */
|
47 | onSearchDeactivate(): Observable<{
|
48 | searchType: string;
|
49 | tag?: string;
|
50 | }>;
|
51 | /**
|
52 | * Subscribe to 'submit' event (when submit button clicked)
|
53 | * @returns Observable<{term: string; tag?: string}>
|
54 | */
|
55 | onSearchSubmit(): Observable<{
|
56 | term: string;
|
57 | tag?: string;
|
58 | }>;
|
59 | /**
|
60 | * Subscribe to input event
|
61 | * @returns Observable<{term: string; tag?: string}>
|
62 | */
|
63 | onSearchInput(): Observable<{
|
64 | term: string;
|
65 | tag?: string;
|
66 | }>;
|
67 | static ɵfac: i0.ɵɵFactoryDeclaration<NbSearchService, never>;
|
68 | static ɵprov: i0.ɵɵInjectableDeclaration<NbSearchService>;
|
69 | }
|