@agnos-ui/angular-bootstrap 0.8.0 → 0.9.0-next.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/agnos-ui-angular-bootstrap.mjs +154 -92
- package/fesm2022/agnos-ui-angular-bootstrap.mjs.map +1 -1
- package/index.d.ts +6450 -40
- package/package.json +5 -5
- package/agnos-ui-angular.module.d.ts +0 -20
- package/components/accordion/accordion.component.d.ts +0 -257
- package/components/accordion/accordion.gen.d.ts +0 -442
- package/components/accordion/index.d.ts +0 -2
- package/components/alert/alert.component.d.ts +0 -140
- package/components/alert/alert.gen.d.ts +0 -191
- package/components/alert/index.d.ts +0 -2
- package/components/carousel/carousel.component.d.ts +0 -205
- package/components/carousel/carousel.gen.d.ts +0 -358
- package/components/carousel/index.d.ts +0 -2
- package/components/collapse/collapse.component.d.ts +0 -83
- package/components/collapse/collapse.gen.d.ts +0 -150
- package/components/collapse/index.d.ts +0 -2
- package/components/modal/index.d.ts +0 -3
- package/components/modal/modal.component.d.ts +0 -220
- package/components/modal/modal.gen.d.ts +0 -355
- package/components/modal/modal.service.d.ts +0 -21
- package/components/pagination/index.d.ts +0 -2
- package/components/pagination/pagination.component.d.ts +0 -379
- package/components/pagination/pagination.gen.d.ts +0 -584
- package/components/progressbar/index.d.ts +0 -2
- package/components/progressbar/progressbar.component.d.ts +0 -118
- package/components/progressbar/progressbar.gen.d.ts +0 -196
- package/components/rating/index.d.ts +0 -2
- package/components/rating/rating.component.d.ts +0 -144
- package/components/rating/rating.gen.d.ts +0 -270
- package/components/select/index.d.ts +0 -2
- package/components/select/select.component.d.ts +0 -198
- package/components/select/select.gen.d.ts +0 -433
- package/components/slider/index.d.ts +0 -2
- package/components/slider/slider.component.d.ts +0 -234
- package/components/slider/slider.gen.d.ts +0 -511
- package/components/toast/index.d.ts +0 -4
- package/components/toast/toast.component.d.ts +0 -155
- package/components/toast/toast.gen.d.ts +0 -308
- package/components/toast/toaster.component.d.ts +0 -17
- package/components/toast/toaster.service.d.ts +0 -7
- package/components/tree/index.d.ts +0 -2
- package/components/tree/tree.component.d.ts +0 -145
- package/components/tree/tree.gen.d.ts +0 -216
- package/config.d.ts +0 -27
- package/config.gen.d.ts +0 -62
|
@@ -1,379 +0,0 @@
|
|
|
1
|
-
import type { SlotContent } from '@agnos-ui/angular-headless';
|
|
2
|
-
import { BaseWidgetDirective } from '@agnos-ui/angular-headless';
|
|
3
|
-
import { TemplateRef } from '@angular/core';
|
|
4
|
-
import type { PaginationContext, PaginationNumberContext, PaginationWidget } from './pagination.gen';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
/**
|
|
7
|
-
* A directive to use to give the 'ellipsis' link template to the pagination component
|
|
8
|
-
* This directive provides a template reference for the {@link PaginationContext}.
|
|
9
|
-
*/
|
|
10
|
-
export declare class PaginationEllipsisDirective {
|
|
11
|
-
templateRef: TemplateRef<any>;
|
|
12
|
-
static ngTemplateContextGuard(_dir: PaginationEllipsisDirective, context: unknown): context is PaginationContext;
|
|
13
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<PaginationEllipsisDirective, never>;
|
|
14
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<PaginationEllipsisDirective, "ng-template[auPaginationEllipsis]", never, {}, {}, never, never, true, never>;
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* A directive to use to give the 'first' link template to the pagination component
|
|
18
|
-
* This directive provides a template reference for the {@link PaginationContext}.
|
|
19
|
-
*/
|
|
20
|
-
export declare class PaginationFirstDirective {
|
|
21
|
-
templateRef: TemplateRef<any>;
|
|
22
|
-
static ngTemplateContextGuard(_dir: PaginationFirstDirective, context: unknown): context is PaginationContext;
|
|
23
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<PaginationFirstDirective, never>;
|
|
24
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<PaginationFirstDirective, "ng-template[auPaginationFirst]", never, {}, {}, never, never, true, never>;
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* A directive to use to give the 'last' link template to the pagination component
|
|
28
|
-
* This directive provides a template reference for the {@link PaginationContext}.
|
|
29
|
-
*/
|
|
30
|
-
export declare class PaginationLastDirective {
|
|
31
|
-
templateRef: TemplateRef<any>;
|
|
32
|
-
static ngTemplateContextGuard(_dir: PaginationLastDirective, context: unknown): context is PaginationContext;
|
|
33
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<PaginationLastDirective, never>;
|
|
34
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<PaginationLastDirective, "ng-template[auPaginationLast]", never, {}, {}, never, never, true, never>;
|
|
35
|
-
}
|
|
36
|
-
/**
|
|
37
|
-
* A directive to use to give the 'next' link template to the pagination component
|
|
38
|
-
* This directive provides a template reference for the {@link PaginationContext}.
|
|
39
|
-
*/
|
|
40
|
-
export declare class PaginationNextDirective {
|
|
41
|
-
templateRef: TemplateRef<any>;
|
|
42
|
-
static ngTemplateContextGuard(_dir: PaginationNextDirective, context: unknown): context is PaginationContext;
|
|
43
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<PaginationNextDirective, never>;
|
|
44
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<PaginationNextDirective, "ng-template[auPaginationNext]", never, {}, {}, never, never, true, never>;
|
|
45
|
-
}
|
|
46
|
-
/**
|
|
47
|
-
* A directive to use to give the page 'number' template to the pagination component
|
|
48
|
-
* This directive provides a template reference for the {@link PaginationNumberContext}.
|
|
49
|
-
*/
|
|
50
|
-
export declare class PaginationNumberDirective {
|
|
51
|
-
templateRef: TemplateRef<any>;
|
|
52
|
-
static ngTemplateContextGuard(_dir: PaginationNumberDirective, context: unknown): context is PaginationNumberContext;
|
|
53
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<PaginationNumberDirective, never>;
|
|
54
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<PaginationNumberDirective, "ng-template[auPaginationNumber]", never, {}, {}, never, never, true, never>;
|
|
55
|
-
}
|
|
56
|
-
/**
|
|
57
|
-
* A directive to use to give the 'previous' link template to the pagination component
|
|
58
|
-
* This directive provides a template reference for the {@link PaginationContext}.
|
|
59
|
-
*/
|
|
60
|
-
export declare class PaginationPreviousDirective {
|
|
61
|
-
templateRef: TemplateRef<any>;
|
|
62
|
-
static ngTemplateContextGuard(_dir: PaginationPreviousDirective, context: unknown): context is PaginationContext;
|
|
63
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<PaginationPreviousDirective, never>;
|
|
64
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<PaginationPreviousDirective, "ng-template[auPaginationPrevious]", never, {}, {}, never, never, true, never>;
|
|
65
|
-
}
|
|
66
|
-
/**
|
|
67
|
-
* A directive to use to give the 'Pages' template for the Pages slot
|
|
68
|
-
* This directive provides a template reference for the {@link PaginationContext}.
|
|
69
|
-
*/
|
|
70
|
-
export declare class PaginationPagesDirective {
|
|
71
|
-
templateRef: TemplateRef<any>;
|
|
72
|
-
static ngTemplateContextGuard(_dir: PaginationPagesDirective, context: unknown): context is PaginationContext;
|
|
73
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<PaginationPagesDirective, never>;
|
|
74
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<PaginationPagesDirective, "ng-template[auPaginationPages]", never, {}, {}, never, never, true, never>;
|
|
75
|
-
}
|
|
76
|
-
/**
|
|
77
|
-
* Directive to provide the slot structure for the pagination widget.
|
|
78
|
-
* This directive provides a template reference for the {@link PaginationContext}.
|
|
79
|
-
*/
|
|
80
|
-
export declare class PaginationStructureDirective {
|
|
81
|
-
templateRef: TemplateRef<any>;
|
|
82
|
-
static ngTemplateContextGuard(_dir: PaginationStructureDirective, context: unknown): context is PaginationContext;
|
|
83
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<PaginationStructureDirective, never>;
|
|
84
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<PaginationStructureDirective, "ng-template[auPaginationStructure]", never, {}, {}, never, never, true, never>;
|
|
85
|
-
}
|
|
86
|
-
/**
|
|
87
|
-
* The default slot for the pages
|
|
88
|
-
*/
|
|
89
|
-
export declare const paginationDefaultSlotPages: SlotContent<PaginationContext>;
|
|
90
|
-
/**
|
|
91
|
-
* The default slot for the structure
|
|
92
|
-
*/
|
|
93
|
-
export declare const paginationDefaultSlotStructure: SlotContent<PaginationContext>;
|
|
94
|
-
/**
|
|
95
|
-
* The `PaginationComponent` is an Angular component that extends the `BaseWidgetDirective`
|
|
96
|
-
* to provide a customizable pagination widget. It includes various input properties
|
|
97
|
-
* to configure labels, templates, and behavior for accessibility and internationalization (i18n).
|
|
98
|
-
*/
|
|
99
|
-
export declare class PaginationComponent extends BaseWidgetDirective<PaginationWidget> {
|
|
100
|
-
/**
|
|
101
|
-
* Provide the label for each "Page" page button.
|
|
102
|
-
* This is used for accessibility purposes.
|
|
103
|
-
* for I18n, we suggest to use the global configuration
|
|
104
|
-
* override any configuration parameters provided for this
|
|
105
|
-
* @param processPage - The current page number
|
|
106
|
-
* @param pageCount - The total number of pages
|
|
107
|
-
*
|
|
108
|
-
* @defaultValue
|
|
109
|
-
* ```ts
|
|
110
|
-
* (processPage: number, pageCount: number) => `Page ${processPage} of ${pageCount}`
|
|
111
|
-
* ```
|
|
112
|
-
*/
|
|
113
|
-
readonly ariaPageLabel: import("@angular/core").InputSignal<((processPage: number, pageCount: number) => string) | undefined>;
|
|
114
|
-
/**
|
|
115
|
-
* Provide the label for the aria-live element
|
|
116
|
-
* This is used for accessibility purposes.
|
|
117
|
-
* for I18n, we suggest to use the global configuration
|
|
118
|
-
* override any configuration parameters provided for this
|
|
119
|
-
* @param currentPage - The current page number
|
|
120
|
-
* @param pageCount - The total number of pages
|
|
121
|
-
*
|
|
122
|
-
* @defaultValue
|
|
123
|
-
* ```ts
|
|
124
|
-
* (currentPage: number) => `Current page is ${currentPage}`
|
|
125
|
-
* ```
|
|
126
|
-
*/
|
|
127
|
-
readonly ariaLiveLabel: import("@angular/core").InputSignal<((currentPage: number, pageCount: number) => string) | undefined>;
|
|
128
|
-
/**
|
|
129
|
-
* The label for the nav element.
|
|
130
|
-
*
|
|
131
|
-
* for I18n, we suggest to use the global configuration
|
|
132
|
-
* override any configuration parameters provided for this
|
|
133
|
-
*
|
|
134
|
-
* @defaultValue `'Page navigation'`
|
|
135
|
-
*/
|
|
136
|
-
readonly ariaLabel: import("@angular/core").InputSignal<string | undefined>;
|
|
137
|
-
/**
|
|
138
|
-
* The label for the "active" page.
|
|
139
|
-
* for I18n, we suggest to use the global configuration
|
|
140
|
-
* override any configuration parameters provided for this
|
|
141
|
-
*
|
|
142
|
-
* @defaultValue
|
|
143
|
-
* ```ts
|
|
144
|
-
* '(current)'
|
|
145
|
-
* ```
|
|
146
|
-
*/
|
|
147
|
-
readonly activeLabel: import("@angular/core").InputSignal<string | undefined>;
|
|
148
|
-
/**
|
|
149
|
-
* The label for the "First" page button.
|
|
150
|
-
* for I18n, we suggest to use the global configuration
|
|
151
|
-
* override any configuration parameters provided for this
|
|
152
|
-
*
|
|
153
|
-
* @defaultValue
|
|
154
|
-
* ```ts
|
|
155
|
-
* 'Action link for first page'
|
|
156
|
-
* ```
|
|
157
|
-
*/
|
|
158
|
-
readonly ariaFirstLabel: import("@angular/core").InputSignal<string | undefined>;
|
|
159
|
-
/**
|
|
160
|
-
* The label for the "Previous" page button.
|
|
161
|
-
* for I18n, we suggest to use the global configuration
|
|
162
|
-
* override any configuration parameters provided for this
|
|
163
|
-
*
|
|
164
|
-
* @defaultValue
|
|
165
|
-
* ```ts
|
|
166
|
-
* 'Action link for previous page'
|
|
167
|
-
* ```
|
|
168
|
-
*/
|
|
169
|
-
readonly ariaPreviousLabel: import("@angular/core").InputSignal<string | undefined>;
|
|
170
|
-
/**
|
|
171
|
-
* The label for the "Next" page button.
|
|
172
|
-
* for I18n, we suggest to use the global configuration
|
|
173
|
-
* override any configuration parameters provided for this
|
|
174
|
-
*
|
|
175
|
-
* @defaultValue
|
|
176
|
-
* ```ts
|
|
177
|
-
* 'Action link for next page'
|
|
178
|
-
* ```
|
|
179
|
-
*/
|
|
180
|
-
readonly ariaNextLabel: import("@angular/core").InputSignal<string | undefined>;
|
|
181
|
-
/**
|
|
182
|
-
* The label for the "Last" page button.
|
|
183
|
-
* for I18n, we suggest to use the global configuration
|
|
184
|
-
* override any configuration parameters provided for this
|
|
185
|
-
*
|
|
186
|
-
* @defaultValue
|
|
187
|
-
* ```ts
|
|
188
|
-
* 'Action link for last page'
|
|
189
|
-
* ```
|
|
190
|
-
*/
|
|
191
|
-
readonly ariaLastLabel: import("@angular/core").InputSignal<string | undefined>;
|
|
192
|
-
/**
|
|
193
|
-
* The label for the "Ellipsis" page.
|
|
194
|
-
* for I18n, we suggest to use the global configuration
|
|
195
|
-
* override any configuration parameters provided for this
|
|
196
|
-
*
|
|
197
|
-
* @defaultValue `'Ellipsis page element'`
|
|
198
|
-
*/
|
|
199
|
-
readonly ariaEllipsisLabel: import("@angular/core").InputSignal<string | undefined>;
|
|
200
|
-
/**
|
|
201
|
-
* Factory function providing the href for a "Page" page anchor,
|
|
202
|
-
* based on the current page number
|
|
203
|
-
* @param pageNumber - The index to use in the link
|
|
204
|
-
*
|
|
205
|
-
* @defaultValue
|
|
206
|
-
* ```ts
|
|
207
|
-
* (_page: number) => PAGE_LINK_DEFAULT
|
|
208
|
-
* ```
|
|
209
|
-
*/
|
|
210
|
-
readonly pageLink: import("@angular/core").InputSignal<((pageNumber: number) => string) | undefined>;
|
|
211
|
-
/**
|
|
212
|
-
* The template to use for the ellipsis slot
|
|
213
|
-
* for I18n, we suggest to use the global configuration
|
|
214
|
-
* override any configuration parameters provided for this
|
|
215
|
-
*
|
|
216
|
-
* @defaultValue `'…'`
|
|
217
|
-
*/
|
|
218
|
-
readonly ellipsisLabel: import("@angular/core").InputSignal<SlotContent<PaginationContext>>;
|
|
219
|
-
readonly slotEllipsisFromContent: import("@angular/core").Signal<PaginationEllipsisDirective | undefined>;
|
|
220
|
-
/**
|
|
221
|
-
* The template to use for the first slot
|
|
222
|
-
* for I18n, we suggest to use the global configuration
|
|
223
|
-
* override any configuration parameters provided for this
|
|
224
|
-
*
|
|
225
|
-
* @defaultValue `'«'`
|
|
226
|
-
*/
|
|
227
|
-
readonly firstPageLabel: import("@angular/core").InputSignal<SlotContent<PaginationContext>>;
|
|
228
|
-
readonly slotFirstFromContent: import("@angular/core").Signal<PaginationFirstDirective | undefined>;
|
|
229
|
-
/**
|
|
230
|
-
* The template to use for the previous slot
|
|
231
|
-
* for I18n, we suggest to use the global configuration
|
|
232
|
-
* override any configuration parameters provided for this
|
|
233
|
-
*
|
|
234
|
-
* @defaultValue `'‹'`
|
|
235
|
-
*/
|
|
236
|
-
readonly previousPageLabel: import("@angular/core").InputSignal<SlotContent<PaginationContext>>;
|
|
237
|
-
readonly slotPreviousFromContent: import("@angular/core").Signal<PaginationPreviousDirective | undefined>;
|
|
238
|
-
/**
|
|
239
|
-
* The template to use for the next slot
|
|
240
|
-
* for I18n, we suggest to use the global configuration
|
|
241
|
-
* override any configuration parameters provided for this
|
|
242
|
-
*
|
|
243
|
-
* @defaultValue `'›'`
|
|
244
|
-
*/
|
|
245
|
-
readonly nextPageLabel: import("@angular/core").InputSignal<SlotContent<PaginationContext>>;
|
|
246
|
-
readonly slotNextFromContent: import("@angular/core").Signal<PaginationNextDirective | undefined>;
|
|
247
|
-
/**
|
|
248
|
-
* The template to use for the last slot
|
|
249
|
-
* for I18n, we suggest to use the global configuration
|
|
250
|
-
* override any configuration parameters provided for this
|
|
251
|
-
*
|
|
252
|
-
* @defaultValue `'»'`
|
|
253
|
-
*/
|
|
254
|
-
readonly lastPageLabel: import("@angular/core").InputSignal<SlotContent<PaginationContext>>;
|
|
255
|
-
readonly slotLastFromContent: import("@angular/core").Signal<PaginationLastDirective | undefined>;
|
|
256
|
-
/**
|
|
257
|
-
* The template to use for the pages slot
|
|
258
|
-
* To use to customize the pages view
|
|
259
|
-
* override any configuration parameters provided for this
|
|
260
|
-
*/
|
|
261
|
-
readonly pagesDisplay: import("@angular/core").InputSignal<SlotContent<PaginationContext>>;
|
|
262
|
-
readonly slotPagesFromContent: import("@angular/core").Signal<PaginationPagesDirective | undefined>;
|
|
263
|
-
/**
|
|
264
|
-
* The template to use for the number slot
|
|
265
|
-
* override any configuration parameters provided for this
|
|
266
|
-
* for I18n, we suggest to use the global configuration
|
|
267
|
-
* @param displayedPage - The current page number
|
|
268
|
-
*
|
|
269
|
-
* @defaultValue
|
|
270
|
-
* ```ts
|
|
271
|
-
* ({displayedPage}: PaginationNumberContext) => `${displayedPage}`
|
|
272
|
-
* ```
|
|
273
|
-
*/
|
|
274
|
-
readonly numberLabel: import("@angular/core").InputSignal<SlotContent<PaginationNumberContext>>;
|
|
275
|
-
readonly slotNumberLabelFromContent: import("@angular/core").Signal<PaginationNumberDirective | undefined>;
|
|
276
|
-
/**
|
|
277
|
-
* The template to use for the structure of the pagination component
|
|
278
|
-
* The default structure uses {@link PaginationProps.ellipsisLabel|ellipsisLabel}, {@link PaginationProps.firstPageLabel|firstPageLabel},
|
|
279
|
-
* {@link PaginationProps.previousPageLabel|previousPageLabel}, {@link PaginationProps.nextPageLabel|nextPageLabel},
|
|
280
|
-
* {@link PaginationProps.lastPageLabel|lastPageLabel}, {@link PaginationProps.pagesDisplay|pagesDisplay},
|
|
281
|
-
* {@link PaginationProps.numberLabel|numberLabel},
|
|
282
|
-
*/
|
|
283
|
-
readonly structure: import("@angular/core").InputSignal<SlotContent<PaginationContext>>;
|
|
284
|
-
readonly slotStructureFromContent: import("@angular/core").Signal<PaginationStructureDirective | undefined>;
|
|
285
|
-
/**
|
|
286
|
-
* If `true`, pagination links will be disabled.
|
|
287
|
-
*
|
|
288
|
-
* @defaultValue `false`
|
|
289
|
-
*/
|
|
290
|
-
readonly disabled: import("@angular/core").InputSignalWithTransform<boolean | undefined, unknown>;
|
|
291
|
-
/**
|
|
292
|
-
* If `true`, the "First" and "Last" page links are shown.
|
|
293
|
-
*
|
|
294
|
-
* @defaultValue `false`
|
|
295
|
-
*/
|
|
296
|
-
readonly boundaryLinks: import("@angular/core").InputSignalWithTransform<boolean | undefined, unknown>;
|
|
297
|
-
/**
|
|
298
|
-
* If `true`, the "Next" and "Previous" page links are shown.
|
|
299
|
-
*
|
|
300
|
-
* @defaultValue `true`
|
|
301
|
-
*/
|
|
302
|
-
readonly directionLinks: import("@angular/core").InputSignalWithTransform<boolean | undefined, unknown>;
|
|
303
|
-
/**
|
|
304
|
-
* The number of items in your paginated collection.
|
|
305
|
-
*
|
|
306
|
-
* Note, that this is not the number of pages. Page numbers are calculated dynamically based on
|
|
307
|
-
* `collectionSize` and `pageSize`.
|
|
308
|
-
*
|
|
309
|
-
* Ex. if you have 100 items in your collection and displaying 20 items per page, you'll end up with 5 pages.
|
|
310
|
-
*
|
|
311
|
-
* Whatever the collectionSize the page number is of minimum 1.
|
|
312
|
-
*
|
|
313
|
-
* @defaultValue `0`
|
|
314
|
-
*/
|
|
315
|
-
readonly collectionSize: import("@angular/core").InputSignalWithTransform<number | undefined, unknown>;
|
|
316
|
-
/**
|
|
317
|
-
* The current page.
|
|
318
|
-
*
|
|
319
|
-
* Page numbers start with `1`.
|
|
320
|
-
*
|
|
321
|
-
* @defaultValue `1`
|
|
322
|
-
*/
|
|
323
|
-
readonly page: import("@angular/core").InputSignalWithTransform<number | undefined, unknown>;
|
|
324
|
-
/**
|
|
325
|
-
* The number of items per page.
|
|
326
|
-
* @remarks min value is 1
|
|
327
|
-
*
|
|
328
|
-
* @defaultValue `10`
|
|
329
|
-
*/
|
|
330
|
-
readonly pageSize: import("@angular/core").InputSignalWithTransform<number | undefined, unknown>;
|
|
331
|
-
/**
|
|
332
|
-
* The pagination display size.
|
|
333
|
-
*
|
|
334
|
-
* Bootstrap currently supports small and large sizes.
|
|
335
|
-
*
|
|
336
|
-
* @defaultValue `null`
|
|
337
|
-
*/
|
|
338
|
-
readonly size: import("@angular/core").InputSignal<"sm" | "lg" | null | undefined>;
|
|
339
|
-
/**
|
|
340
|
-
* pagesFactory returns a function computing the array of pages to be displayed
|
|
341
|
-
* as number (-1 are treated as ellipsis).
|
|
342
|
-
* Use Page slot to customize the pages view and not this
|
|
343
|
-
* @param page - The current page number
|
|
344
|
-
* @param pageCount - The total number of pages
|
|
345
|
-
*
|
|
346
|
-
* @defaultValue
|
|
347
|
-
* ```ts
|
|
348
|
-
* (_page: number, pageCount: number) => {
|
|
349
|
-
* const pages: number[] = [];
|
|
350
|
-
* for (let i = 1; i <= pageCount; i++) {
|
|
351
|
-
* pages.push(i);
|
|
352
|
-
* }
|
|
353
|
-
* return pages;
|
|
354
|
-
* }
|
|
355
|
-
* ```
|
|
356
|
-
*/
|
|
357
|
-
readonly pagesFactory: import("@angular/core").InputSignal<((page: number, pageCount: number) => number[]) | undefined>;
|
|
358
|
-
/**
|
|
359
|
-
* An event fired when the page is changed.
|
|
360
|
-
*
|
|
361
|
-
* Event payload is the number of the newly selected page.
|
|
362
|
-
*
|
|
363
|
-
* Page numbers start with `1`.
|
|
364
|
-
* @defaultValue
|
|
365
|
-
* ```ts
|
|
366
|
-
* () => {}
|
|
367
|
-
* ```
|
|
368
|
-
*/
|
|
369
|
-
readonly pageChange: import("@angular/core").OutputEmitterRef<number>;
|
|
370
|
-
/**
|
|
371
|
-
* CSS classes to be applied on the widget main container
|
|
372
|
-
*
|
|
373
|
-
* @defaultValue `''`
|
|
374
|
-
*/
|
|
375
|
-
readonly className: import("@angular/core").InputSignal<string | undefined>;
|
|
376
|
-
constructor();
|
|
377
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<PaginationComponent, never>;
|
|
378
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PaginationComponent, "[auPagination]", never, { "ariaPageLabel": { "alias": "auAriaPageLabel"; "required": false; "isSignal": true; }; "ariaLiveLabel": { "alias": "auAriaLiveLabel"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "auAriaLabel"; "required": false; "isSignal": true; }; "activeLabel": { "alias": "auActiveLabel"; "required": false; "isSignal": true; }; "ariaFirstLabel": { "alias": "auAriaFirstLabel"; "required": false; "isSignal": true; }; "ariaPreviousLabel": { "alias": "auAriaPreviousLabel"; "required": false; "isSignal": true; }; "ariaNextLabel": { "alias": "auAriaNextLabel"; "required": false; "isSignal": true; }; "ariaLastLabel": { "alias": "auAriaLastLabel"; "required": false; "isSignal": true; }; "ariaEllipsisLabel": { "alias": "auAriaEllipsisLabel"; "required": false; "isSignal": true; }; "pageLink": { "alias": "auPageLink"; "required": false; "isSignal": true; }; "ellipsisLabel": { "alias": "auEllipsisLabel"; "required": false; "isSignal": true; }; "firstPageLabel": { "alias": "auFirstPageLabel"; "required": false; "isSignal": true; }; "previousPageLabel": { "alias": "auPreviousPageLabel"; "required": false; "isSignal": true; }; "nextPageLabel": { "alias": "auNextPageLabel"; "required": false; "isSignal": true; }; "lastPageLabel": { "alias": "auLastPageLabel"; "required": false; "isSignal": true; }; "pagesDisplay": { "alias": "auPagesDisplay"; "required": false; "isSignal": true; }; "numberLabel": { "alias": "auNumberLabel"; "required": false; "isSignal": true; }; "structure": { "alias": "auStructure"; "required": false; "isSignal": true; }; "disabled": { "alias": "auDisabled"; "required": false; "isSignal": true; }; "boundaryLinks": { "alias": "auBoundaryLinks"; "required": false; "isSignal": true; }; "directionLinks": { "alias": "auDirectionLinks"; "required": false; "isSignal": true; }; "collectionSize": { "alias": "auCollectionSize"; "required": false; "isSignal": true; }; "page": { "alias": "auPage"; "required": false; "isSignal": true; }; "pageSize": { "alias": "auPageSize"; "required": false; "isSignal": true; }; "size": { "alias": "auSize"; "required": false; "isSignal": true; }; "pagesFactory": { "alias": "auPagesFactory"; "required": false; "isSignal": true; }; "className": { "alias": "auClassName"; "required": false; "isSignal": true; }; }, { "pageChange": "auPageChange"; }, ["slotEllipsisFromContent", "slotFirstFromContent", "slotPreviousFromContent", "slotNextFromContent", "slotLastFromContent", "slotPagesFromContent", "slotNumberLabelFromContent", "slotStructureFromContent"], never, true, never>;
|
|
379
|
-
}
|