1 | import { ElementRef, EventEmitter, OnDestroy, AfterViewInit, QueryList } from '@angular/core';
|
2 | import { NbBooleanInput } from '../helpers';
|
3 | import { NbLayoutScrollService } from '../../services/scroll.service';
|
4 | import { NbLayoutRulerService } from '../../services/ruler.service';
|
5 | import { NbListItemComponent } from './list.component';
|
6 | import * as i0 from "@angular/core";
|
7 | export declare class NbScrollableContainerDimensions {
|
8 | scrollTop: number;
|
9 | scrollHeight: number;
|
10 | clientHeight: number;
|
11 | }
|
12 |
|
13 |
|
14 |
|
15 |
|
16 |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 |
|
25 |
|
26 |
|
27 |
|
28 |
|
29 |
|
30 |
|
31 |
|
32 |
|
33 |
|
34 |
|
35 |
|
36 |
|
37 |
|
38 |
|
39 |
|
40 | export declare class NbInfiniteListDirective implements AfterViewInit, OnDestroy {
|
41 | private elementRef;
|
42 | private scrollService;
|
43 | private dimensionsService;
|
44 | private destroy$;
|
45 | private lastScrollPosition;
|
46 | windowScroll: boolean;
|
47 | private get elementScroll();
|
48 | private elementScroll$;
|
49 | private windowScroll$;
|
50 | private bottomThreshold$;
|
51 | private topThreshold$;
|
52 | private throttleTime$;
|
53 | |
54 |
|
55 |
|
56 |
|
57 | threshold: number;
|
58 | |
59 |
|
60 |
|
61 |
|
62 | set throttleTime(value: number);
|
63 | get throttleTime(): number;
|
64 | |
65 |
|
66 |
|
67 |
|
68 | set listenWindowScroll(value: any);
|
69 | static ngAcceptInputType_listenWindowScroll: NbBooleanInput;
|
70 | |
71 |
|
72 |
|
73 | bottomThreshold: EventEmitter<any>;
|
74 | |
75 |
|
76 |
|
77 | topThreshold: EventEmitter<any>;
|
78 | onElementScroll(): void;
|
79 | listItems: QueryList<NbListItemComponent>;
|
80 | constructor(elementRef: ElementRef, scrollService: NbLayoutScrollService, dimensionsService: NbLayoutRulerService);
|
81 | ngAfterViewInit(): void;
|
82 | ngOnDestroy(): void;
|
83 | checkPosition({ scrollHeight, scrollTop, clientHeight }: NbScrollableContainerDimensions): void;
|
84 | private getContainerDimensions;
|
85 | private inSyncWithDom;
|
86 | static ɵfac: i0.ɵɵFactoryDeclaration<NbInfiniteListDirective, never>;
|
87 | static ɵdir: i0.ɵɵDirectiveDeclaration<NbInfiniteListDirective, "[nbInfiniteList]", never, { "threshold": { "alias": "threshold"; "required": false; }; "throttleTime": { "alias": "throttleTime"; "required": false; }; "listenWindowScroll": { "alias": "listenWindowScroll"; "required": false; }; }, { "bottomThreshold": "bottomThreshold"; "topThreshold": "topThreshold"; }, ["listItems"], never, false, never>;
|
88 | }
|