1 | import { EventEmitter, OnChanges, SimpleChanges, TemplateRef } from '@angular/core';
|
2 | import * as i0 from "@angular/core";
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 |
|
15 |
|
16 | export interface NgbPaginationLinkContext {
|
17 | |
18 |
|
19 |
|
20 | currentPage: number;
|
21 | |
22 |
|
23 |
|
24 | disabled: boolean;
|
25 | }
|
26 |
|
27 |
|
28 |
|
29 |
|
30 |
|
31 |
|
32 |
|
33 | export interface NgbPaginationNumberContext extends NgbPaginationLinkContext {
|
34 | |
35 |
|
36 |
|
37 | $implicit: number;
|
38 | }
|
39 |
|
40 |
|
41 |
|
42 |
|
43 |
|
44 |
|
45 | export interface NgbPaginationPagesContext {
|
46 | |
47 |
|
48 |
|
49 | $implicit: number;
|
50 | |
51 |
|
52 |
|
53 | disabled: boolean;
|
54 | |
55 |
|
56 |
|
57 | pages: number[];
|
58 | }
|
59 |
|
60 |
|
61 |
|
62 |
|
63 |
|
64 | export declare class NgbPaginationEllipsis {
|
65 | templateRef: TemplateRef<any>;
|
66 | static ɵfac: i0.ɵɵFactoryDeclaration<NgbPaginationEllipsis, never>;
|
67 | static ɵdir: i0.ɵɵDirectiveDeclaration<NgbPaginationEllipsis, "ng-template[ngbPaginationEllipsis]", never, {}, {}, never, never, true, never>;
|
68 | }
|
69 |
|
70 |
|
71 |
|
72 |
|
73 |
|
74 | export declare class NgbPaginationFirst {
|
75 | templateRef: TemplateRef<any>;
|
76 | static ɵfac: i0.ɵɵFactoryDeclaration<NgbPaginationFirst, never>;
|
77 | static ɵdir: i0.ɵɵDirectiveDeclaration<NgbPaginationFirst, "ng-template[ngbPaginationFirst]", never, {}, {}, never, never, true, never>;
|
78 | }
|
79 |
|
80 |
|
81 |
|
82 |
|
83 |
|
84 | export declare class NgbPaginationLast {
|
85 | templateRef: TemplateRef<any>;
|
86 | static ɵfac: i0.ɵɵFactoryDeclaration<NgbPaginationLast, never>;
|
87 | static ɵdir: i0.ɵɵDirectiveDeclaration<NgbPaginationLast, "ng-template[ngbPaginationLast]", never, {}, {}, never, never, true, never>;
|
88 | }
|
89 |
|
90 |
|
91 |
|
92 |
|
93 |
|
94 | export declare class NgbPaginationNext {
|
95 | templateRef: TemplateRef<any>;
|
96 | static ɵfac: i0.ɵɵFactoryDeclaration<NgbPaginationNext, never>;
|
97 | static ɵdir: i0.ɵɵDirectiveDeclaration<NgbPaginationNext, "ng-template[ngbPaginationNext]", never, {}, {}, never, never, true, never>;
|
98 | }
|
99 |
|
100 |
|
101 |
|
102 |
|
103 |
|
104 | export declare class NgbPaginationNumber {
|
105 | templateRef: TemplateRef<any>;
|
106 | static ɵfac: i0.ɵɵFactoryDeclaration<NgbPaginationNumber, never>;
|
107 | static ɵdir: i0.ɵɵDirectiveDeclaration<NgbPaginationNumber, "ng-template[ngbPaginationNumber]", never, {}, {}, never, never, true, never>;
|
108 | }
|
109 |
|
110 |
|
111 |
|
112 |
|
113 |
|
114 | export declare class NgbPaginationPrevious {
|
115 | templateRef: TemplateRef<any>;
|
116 | static ɵfac: i0.ɵɵFactoryDeclaration<NgbPaginationPrevious, never>;
|
117 | static ɵdir: i0.ɵɵDirectiveDeclaration<NgbPaginationPrevious, "ng-template[ngbPaginationPrevious]", never, {}, {}, never, never, true, never>;
|
118 | }
|
119 |
|
120 |
|
121 |
|
122 |
|
123 |
|
124 | export declare class NgbPaginationPages {
|
125 | templateRef: TemplateRef<any>;
|
126 | static ɵfac: i0.ɵɵFactoryDeclaration<NgbPaginationPages, never>;
|
127 | static ɵdir: i0.ɵɵDirectiveDeclaration<NgbPaginationPages, "ng-template[ngbPaginationPages]", never, {}, {}, never, never, true, never>;
|
128 | }
|
129 |
|
130 |
|
131 |
|
132 | export declare class NgbPagination implements OnChanges {
|
133 | private _config;
|
134 | pageCount: number;
|
135 | pages: number[];
|
136 | tplEllipsis?: NgbPaginationEllipsis;
|
137 | tplFirst?: NgbPaginationFirst;
|
138 | tplLast?: NgbPaginationLast;
|
139 | tplNext?: NgbPaginationNext;
|
140 | tplNumber?: NgbPaginationNumber;
|
141 | tplPrevious?: NgbPaginationPrevious;
|
142 | tplPages?: NgbPaginationPages;
|
143 | |
144 |
|
145 |
|
146 | disabled: boolean;
|
147 | |
148 |
|
149 |
|
150 | boundaryLinks: boolean;
|
151 | |
152 |
|
153 |
|
154 | directionLinks: boolean;
|
155 | |
156 |
|
157 |
|
158 | ellipses: boolean;
|
159 | |
160 |
|
161 |
|
162 |
|
163 |
|
164 | rotate: boolean;
|
165 | |
166 |
|
167 |
|
168 |
|
169 |
|
170 |
|
171 |
|
172 | collectionSize: number;
|
173 | |
174 |
|
175 |
|
176 | maxSize: number;
|
177 | |
178 |
|
179 |
|
180 |
|
181 |
|
182 | page: number;
|
183 | |
184 |
|
185 |
|
186 | pageSize: number;
|
187 | |
188 |
|
189 |
|
190 |
|
191 |
|
192 |
|
193 |
|
194 | pageChange: EventEmitter<number>;
|
195 | |
196 |
|
197 |
|
198 |
|
199 |
|
200 |
|
201 |
|
202 | size: string | null;
|
203 | hasPrevious(): boolean;
|
204 | hasNext(): boolean;
|
205 | nextDisabled(): boolean;
|
206 | previousDisabled(): boolean;
|
207 | selectPage(pageNumber: number): void;
|
208 | ngOnChanges(changes: SimpleChanges): void;
|
209 | isEllipsis(pageNumber: any): boolean;
|
210 | |
211 |
|
212 |
|
213 | private _applyEllipses;
|
214 | |
215 |
|
216 |
|
217 |
|
218 |
|
219 |
|
220 |
|
221 |
|
222 | private _applyRotation;
|
223 | |
224 |
|
225 |
|
226 | private _applyPagination;
|
227 | private _setPageInRange;
|
228 | private _updatePages;
|
229 | static ɵfac: i0.ɵɵFactoryDeclaration<NgbPagination, never>;
|
230 | static ɵcmp: i0.ɵɵComponentDeclaration<NgbPagination, "ngb-pagination", never, { "disabled": { "alias": "disabled"; "required": false; }; "boundaryLinks": { "alias": "boundaryLinks"; "required": false; }; "directionLinks": { "alias": "directionLinks"; "required": false; }; "ellipses": { "alias": "ellipses"; "required": false; }; "rotate": { "alias": "rotate"; "required": false; }; "collectionSize": { "alias": "collectionSize"; "required": true; }; "maxSize": { "alias": "maxSize"; "required": false; }; "page": { "alias": "page"; "required": false; }; "pageSize": { "alias": "pageSize"; "required": false; }; "size": { "alias": "size"; "required": false; }; }, { "pageChange": "pageChange"; }, ["tplEllipsis", "tplFirst", "tplLast", "tplNext", "tplNumber", "tplPrevious", "tplPages"], never, true, never>;
|
231 | }
|