1 | import { AfterViewInit, OnInit } from '@angular/core';
|
2 | import { NgbScrollSpyProcessChanges, NgbScrollToOptions } from './scrollspy.service';
|
3 | import { Observable } from 'rxjs';
|
4 | import * as i0 from "@angular/core";
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 | export interface NgbScrollSpyRef {
|
11 | get active(): string;
|
12 | get active$(): Observable<string>;
|
13 | scrollTo(fragment: string | HTMLElement, options?: NgbScrollToOptions): void;
|
14 | }
|
15 |
|
16 |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 | export declare class NgbScrollSpyItem implements OnInit {
|
23 | private _changeDetector;
|
24 | private _scrollSpyMenu;
|
25 | private _scrollSpyAPI;
|
26 | private _destroyRef;
|
27 | private _isActive;
|
28 | |
29 |
|
30 |
|
31 |
|
32 |
|
33 |
|
34 |
|
35 |
|
36 |
|
37 |
|
38 |
|
39 | set data(data: NgbScrollSpy | string | [NgbScrollSpy, string, string?]);
|
40 | |
41 |
|
42 |
|
43 | fragment: string;
|
44 | |
45 |
|
46 |
|
47 | parent: string | undefined;
|
48 | ngOnInit(): void;
|
49 | |
50 |
|
51 |
|
52 | _activate(): void;
|
53 | |
54 |
|
55 |
|
56 | _deactivate(): void;
|
57 | |
58 |
|
59 |
|
60 | isActive(): boolean;
|
61 | |
62 |
|
63 |
|
64 | scrollTo(options?: NgbScrollToOptions): void;
|
65 | static ɵfac: i0.ɵɵFactoryDeclaration<NgbScrollSpyItem, never>;
|
66 | static ɵdir: i0.ɵɵDirectiveDeclaration<NgbScrollSpyItem, "[ngbScrollSpyItem]", ["ngbScrollSpyItem"], { "data": { "alias": "ngbScrollSpyItem"; "required": false; }; "fragment": { "alias": "fragment"; "required": false; }; "parent": { "alias": "parent"; "required": false; }; }, {}, never, never, true, never>;
|
67 | }
|
68 |
|
69 |
|
70 |
|
71 |
|
72 |
|
73 |
|
74 | export declare class NgbScrollSpyMenu implements NgbScrollSpyRef, AfterViewInit {
|
75 | private _scrollSpyRef;
|
76 | private _destroyRef;
|
77 | private _map;
|
78 | private _lastActiveItem;
|
79 | private _items;
|
80 | set scrollSpy(scrollSpy: NgbScrollSpy);
|
81 | get active(): string;
|
82 | get active$(): Observable<string>;
|
83 | scrollTo(fragment: string, options?: NgbScrollToOptions): void;
|
84 | getItem(id: string): NgbScrollSpyItem | undefined;
|
85 | ngAfterViewInit(): void;
|
86 | private _rebuildMap;
|
87 | static ɵfac: i0.ɵɵFactoryDeclaration<NgbScrollSpyMenu, never>;
|
88 | static ɵdir: i0.ɵɵDirectiveDeclaration<NgbScrollSpyMenu, "[ngbScrollSpyMenu]", never, { "scrollSpy": { "alias": "ngbScrollSpyMenu"; "required": false; }; }, {}, ["_items"], never, true, never>;
|
89 | }
|
90 |
|
91 |
|
92 |
|
93 |
|
94 |
|
95 |
|
96 |
|
97 | export declare class NgbScrollSpy implements NgbScrollSpyRef, AfterViewInit {
|
98 | static ngAcceptInputType_scrollBehavior: string;
|
99 | private _initialFragment;
|
100 | private _service;
|
101 | private _nativeElement;
|
102 | |
103 |
|
104 |
|
105 |
|
106 |
|
107 | processChanges: NgbScrollSpyProcessChanges;
|
108 | |
109 |
|
110 |
|
111 | rootMargin: string;
|
112 | |
113 |
|
114 |
|
115 | scrollBehavior: 'auto' | 'smooth';
|
116 | |
117 |
|
118 |
|
119 | threshold: number | number[];
|
120 | set active(fragment: string);
|
121 | |
122 |
|
123 |
|
124 |
|
125 |
|
126 | activeChange: Observable<string>;
|
127 | |
128 |
|
129 |
|
130 | get active(): string;
|
131 | |
132 |
|
133 |
|
134 | get active$(): Observable<string>;
|
135 | ngAfterViewInit(): void;
|
136 | |
137 |
|
138 |
|
139 | _registerFragment(fragment: NgbScrollSpyFragment): void;
|
140 | |
141 |
|
142 |
|
143 | _unregisterFragment(fragment: NgbScrollSpyFragment): void;
|
144 | |
145 |
|
146 |
|
147 |
|
148 | scrollTo(fragment: string | HTMLElement, options?: NgbScrollToOptions): void;
|
149 | static ɵfac: i0.ɵɵFactoryDeclaration<NgbScrollSpy, never>;
|
150 | static ɵdir: i0.ɵɵDirectiveDeclaration<NgbScrollSpy, "[ngbScrollSpy]", ["ngbScrollSpy"], { "processChanges": { "alias": "processChanges"; "required": false; }; "rootMargin": { "alias": "rootMargin"; "required": false; }; "scrollBehavior": { "alias": "scrollBehavior"; "required": false; }; "threshold": { "alias": "threshold"; "required": false; }; "active": { "alias": "active"; "required": false; }; }, { "activeChange": "activeChange"; }, never, never, true, never>;
|
151 | }
|
152 |
|
153 |
|
154 |
|
155 |
|
156 |
|
157 | export declare class NgbScrollSpyFragment implements AfterViewInit {
|
158 | private _destroyRef;
|
159 | private _scrollSpy;
|
160 | |
161 |
|
162 |
|
163 |
|
164 | id: string;
|
165 | ngAfterViewInit(): void;
|
166 | static ɵfac: i0.ɵɵFactoryDeclaration<NgbScrollSpyFragment, never>;
|
167 | static ɵdir: i0.ɵɵDirectiveDeclaration<NgbScrollSpyFragment, "[ngbScrollSpyFragment]", never, { "id": { "alias": "ngbScrollSpyFragment"; "required": false; }; }, {}, never, never, true, never>;
|
168 | }
|