@agnos-ui/angular-bootstrap 0.8.1 → 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 +156 -94
- 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 -207
- 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,584 +0,0 @@
|
|
|
1
|
-
import type { WidgetSlotContext, SlotContent, Widget, WidgetFactory, Directive } from '@agnos-ui/angular-headless';
|
|
2
|
-
/**
|
|
3
|
-
* Retrieve a shallow copy of the default Pagination config
|
|
4
|
-
* @returns the default Pagination config
|
|
5
|
-
*/
|
|
6
|
-
declare const export_getPaginationDefaultConfig: () => PaginationProps;
|
|
7
|
-
export { export_getPaginationDefaultConfig as getPaginationDefaultConfig };
|
|
8
|
-
/**
|
|
9
|
-
* A type for the slot context of the pagination widget
|
|
10
|
-
*/
|
|
11
|
-
export interface PaginationContext extends WidgetSlotContext<PaginationWidget> {
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* A type for the slot context of the pagination widget when the slot is the number label
|
|
15
|
-
*/
|
|
16
|
-
export interface PaginationNumberContext extends PaginationContext {
|
|
17
|
-
/**
|
|
18
|
-
* Displayed page
|
|
19
|
-
*/
|
|
20
|
-
displayedPage: number;
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* Represents the state of a pagination component.
|
|
24
|
-
*/
|
|
25
|
-
export interface PaginationState {
|
|
26
|
-
/**
|
|
27
|
-
* The number of pages.
|
|
28
|
-
*/
|
|
29
|
-
pageCount: number;
|
|
30
|
-
/**
|
|
31
|
-
* The current pages, the number in the Array is the number of the page.
|
|
32
|
-
*/
|
|
33
|
-
pages: number[];
|
|
34
|
-
/**
|
|
35
|
-
* true if the previous link need to be disabled
|
|
36
|
-
*/
|
|
37
|
-
previousDisabled: boolean;
|
|
38
|
-
/**
|
|
39
|
-
* true if the next link need to be disabled
|
|
40
|
-
*/
|
|
41
|
-
nextDisabled: boolean;
|
|
42
|
-
/**
|
|
43
|
-
* The label for each "Page" page link.
|
|
44
|
-
*/
|
|
45
|
-
pagesLabel: string[];
|
|
46
|
-
/** The hrefs for each "Page" page link */
|
|
47
|
-
pagesHrefs: string[];
|
|
48
|
-
/** The hrefs for the direction links */
|
|
49
|
-
directionsHrefs: DirectionsHrefs;
|
|
50
|
-
/** The aria-live text */
|
|
51
|
-
ariaLiveLabelText: string;
|
|
52
|
-
/**
|
|
53
|
-
* The current page.
|
|
54
|
-
*
|
|
55
|
-
* Page numbers start with `1`.
|
|
56
|
-
*
|
|
57
|
-
* @defaultValue `1`
|
|
58
|
-
*/
|
|
59
|
-
page: number;
|
|
60
|
-
/**
|
|
61
|
-
* The label for the nav element.
|
|
62
|
-
*
|
|
63
|
-
* for I18n, we suggest to use the global configuration
|
|
64
|
-
* override any configuration parameters provided for this
|
|
65
|
-
*
|
|
66
|
-
* @defaultValue `'Page navigation'`
|
|
67
|
-
*/
|
|
68
|
-
ariaLabel: string;
|
|
69
|
-
/**
|
|
70
|
-
* The label for the "active" page.
|
|
71
|
-
* for I18n, we suggest to use the global configuration
|
|
72
|
-
* override any configuration parameters provided for this
|
|
73
|
-
*
|
|
74
|
-
* @defaultValue
|
|
75
|
-
* ```ts
|
|
76
|
-
* '(current)'
|
|
77
|
-
* ```
|
|
78
|
-
*/
|
|
79
|
-
activeLabel: string;
|
|
80
|
-
/**
|
|
81
|
-
* The label for the "First" page button.
|
|
82
|
-
* for I18n, we suggest to use the global configuration
|
|
83
|
-
* override any configuration parameters provided for this
|
|
84
|
-
*
|
|
85
|
-
* @defaultValue
|
|
86
|
-
* ```ts
|
|
87
|
-
* 'Action link for first page'
|
|
88
|
-
* ```
|
|
89
|
-
*/
|
|
90
|
-
ariaFirstLabel: string;
|
|
91
|
-
/**
|
|
92
|
-
* The label for the "Previous" page button.
|
|
93
|
-
* for I18n, we suggest to use the global configuration
|
|
94
|
-
* override any configuration parameters provided for this
|
|
95
|
-
*
|
|
96
|
-
* @defaultValue
|
|
97
|
-
* ```ts
|
|
98
|
-
* 'Action link for previous page'
|
|
99
|
-
* ```
|
|
100
|
-
*/
|
|
101
|
-
ariaPreviousLabel: string;
|
|
102
|
-
/**
|
|
103
|
-
* The label for the "Next" page button.
|
|
104
|
-
* for I18n, we suggest to use the global configuration
|
|
105
|
-
* override any configuration parameters provided for this
|
|
106
|
-
*
|
|
107
|
-
* @defaultValue
|
|
108
|
-
* ```ts
|
|
109
|
-
* 'Action link for next page'
|
|
110
|
-
* ```
|
|
111
|
-
*/
|
|
112
|
-
ariaNextLabel: string;
|
|
113
|
-
/**
|
|
114
|
-
* The label for the "Last" page button.
|
|
115
|
-
* for I18n, we suggest to use the global configuration
|
|
116
|
-
* override any configuration parameters provided for this
|
|
117
|
-
*
|
|
118
|
-
* @defaultValue
|
|
119
|
-
* ```ts
|
|
120
|
-
* 'Action link for last page'
|
|
121
|
-
* ```
|
|
122
|
-
*/
|
|
123
|
-
ariaLastLabel: string;
|
|
124
|
-
/**
|
|
125
|
-
* The label for the "Ellipsis" page.
|
|
126
|
-
* for I18n, we suggest to use the global configuration
|
|
127
|
-
* override any configuration parameters provided for this
|
|
128
|
-
*
|
|
129
|
-
* @defaultValue `'Ellipsis page element'`
|
|
130
|
-
*/
|
|
131
|
-
ariaEllipsisLabel: string;
|
|
132
|
-
/**
|
|
133
|
-
* If `true`, pagination links will be disabled.
|
|
134
|
-
*
|
|
135
|
-
* @defaultValue `false`
|
|
136
|
-
*/
|
|
137
|
-
disabled: boolean;
|
|
138
|
-
/**
|
|
139
|
-
* If `true`, the "Next" and "Previous" page links are shown.
|
|
140
|
-
*
|
|
141
|
-
* @defaultValue `true`
|
|
142
|
-
*/
|
|
143
|
-
directionLinks: boolean;
|
|
144
|
-
/**
|
|
145
|
-
* If `true`, the "First" and "Last" page links are shown.
|
|
146
|
-
*
|
|
147
|
-
* @defaultValue `false`
|
|
148
|
-
*/
|
|
149
|
-
boundaryLinks: boolean;
|
|
150
|
-
/**
|
|
151
|
-
* CSS classes to be applied on the widget main container
|
|
152
|
-
*
|
|
153
|
-
* @defaultValue `''`
|
|
154
|
-
*/
|
|
155
|
-
className: string;
|
|
156
|
-
/**
|
|
157
|
-
* The template to use for the structure of the pagination component
|
|
158
|
-
* The default structure uses {@link PaginationProps.ellipsisLabel|ellipsisLabel}, {@link PaginationProps.firstPageLabel|firstPageLabel},
|
|
159
|
-
* {@link PaginationProps.previousPageLabel|previousPageLabel}, {@link PaginationProps.nextPageLabel|nextPageLabel},
|
|
160
|
-
* {@link PaginationProps.lastPageLabel|lastPageLabel}, {@link PaginationProps.pagesDisplay|pagesDisplay},
|
|
161
|
-
* {@link PaginationProps.numberLabel|numberLabel},
|
|
162
|
-
*/
|
|
163
|
-
structure: SlotContent<PaginationContext>;
|
|
164
|
-
/**
|
|
165
|
-
* The template to use for the ellipsis slot
|
|
166
|
-
* for I18n, we suggest to use the global configuration
|
|
167
|
-
* override any configuration parameters provided for this
|
|
168
|
-
*
|
|
169
|
-
* @defaultValue `'…'`
|
|
170
|
-
*/
|
|
171
|
-
ellipsisLabel: SlotContent<PaginationContext>;
|
|
172
|
-
/**
|
|
173
|
-
* The template to use for the first slot
|
|
174
|
-
* for I18n, we suggest to use the global configuration
|
|
175
|
-
* override any configuration parameters provided for this
|
|
176
|
-
*
|
|
177
|
-
* @defaultValue `'«'`
|
|
178
|
-
*/
|
|
179
|
-
firstPageLabel: SlotContent<PaginationContext>;
|
|
180
|
-
/**
|
|
181
|
-
* The template to use for the previous slot
|
|
182
|
-
* for I18n, we suggest to use the global configuration
|
|
183
|
-
* override any configuration parameters provided for this
|
|
184
|
-
*
|
|
185
|
-
* @defaultValue `'‹'`
|
|
186
|
-
*/
|
|
187
|
-
previousPageLabel: SlotContent<PaginationContext>;
|
|
188
|
-
/**
|
|
189
|
-
* The template to use for the next slot
|
|
190
|
-
* for I18n, we suggest to use the global configuration
|
|
191
|
-
* override any configuration parameters provided for this
|
|
192
|
-
*
|
|
193
|
-
* @defaultValue `'›'`
|
|
194
|
-
*/
|
|
195
|
-
nextPageLabel: SlotContent<PaginationContext>;
|
|
196
|
-
/**
|
|
197
|
-
* The template to use for the last slot
|
|
198
|
-
* for I18n, we suggest to use the global configuration
|
|
199
|
-
* override any configuration parameters provided for this
|
|
200
|
-
*
|
|
201
|
-
* @defaultValue `'»'`
|
|
202
|
-
*/
|
|
203
|
-
lastPageLabel: SlotContent<PaginationContext>;
|
|
204
|
-
/**
|
|
205
|
-
* The template to use for the pages slot
|
|
206
|
-
* To use to customize the pages view
|
|
207
|
-
* override any configuration parameters provided for this
|
|
208
|
-
*/
|
|
209
|
-
pagesDisplay: SlotContent<PaginationContext>;
|
|
210
|
-
/**
|
|
211
|
-
* The template to use for the number slot
|
|
212
|
-
* override any configuration parameters provided for this
|
|
213
|
-
* for I18n, we suggest to use the global configuration
|
|
214
|
-
* @param displayedPage - The current page number
|
|
215
|
-
*
|
|
216
|
-
* @defaultValue
|
|
217
|
-
* ```ts
|
|
218
|
-
* ({displayedPage}: PaginationNumberContext) => `${displayedPage}`
|
|
219
|
-
* ```
|
|
220
|
-
*/
|
|
221
|
-
numberLabel: SlotContent<PaginationNumberContext>;
|
|
222
|
-
/**
|
|
223
|
-
* The pagination display size.
|
|
224
|
-
*
|
|
225
|
-
* Bootstrap currently supports small and large sizes.
|
|
226
|
-
*
|
|
227
|
-
* @defaultValue `null`
|
|
228
|
-
*/
|
|
229
|
-
size: 'sm' | 'lg' | null;
|
|
230
|
-
}
|
|
231
|
-
/**
|
|
232
|
-
* Represents the properties for the Pagination component.
|
|
233
|
-
*/
|
|
234
|
-
export interface PaginationProps {
|
|
235
|
-
/**
|
|
236
|
-
* The number of items in your paginated collection.
|
|
237
|
-
*
|
|
238
|
-
* Note, that this is not the number of pages. Page numbers are calculated dynamically based on
|
|
239
|
-
* `collectionSize` and `pageSize`.
|
|
240
|
-
*
|
|
241
|
-
* Ex. if you have 100 items in your collection and displaying 20 items per page, you'll end up with 5 pages.
|
|
242
|
-
*
|
|
243
|
-
* Whatever the collectionSize the page number is of minimum 1.
|
|
244
|
-
*
|
|
245
|
-
* @defaultValue `0`
|
|
246
|
-
*/
|
|
247
|
-
collectionSize: number;
|
|
248
|
-
/**
|
|
249
|
-
* The number of items per page.
|
|
250
|
-
* @remarks min value is 1
|
|
251
|
-
*
|
|
252
|
-
* @defaultValue `10`
|
|
253
|
-
*/
|
|
254
|
-
pageSize: number;
|
|
255
|
-
/**
|
|
256
|
-
* An event fired when the page is changed.
|
|
257
|
-
*
|
|
258
|
-
* Event payload is the number of the newly selected page.
|
|
259
|
-
*
|
|
260
|
-
* Page numbers start with `1`.
|
|
261
|
-
* @defaultValue
|
|
262
|
-
* ```ts
|
|
263
|
-
* () => {}
|
|
264
|
-
* ```
|
|
265
|
-
*/
|
|
266
|
-
onPageChange: (page: number) => void;
|
|
267
|
-
/**
|
|
268
|
-
* pagesFactory returns a function computing the array of pages to be displayed
|
|
269
|
-
* as number (-1 are treated as ellipsis).
|
|
270
|
-
* Use Page slot to customize the pages view and not this
|
|
271
|
-
* @param page - The current page number
|
|
272
|
-
* @param pageCount - The total number of pages
|
|
273
|
-
*
|
|
274
|
-
* @defaultValue
|
|
275
|
-
* ```ts
|
|
276
|
-
* (_page: number, pageCount: number) => {
|
|
277
|
-
* const pages: number[] = [];
|
|
278
|
-
* for (let i = 1; i <= pageCount; i++) {
|
|
279
|
-
* pages.push(i);
|
|
280
|
-
* }
|
|
281
|
-
* return pages;
|
|
282
|
-
* }
|
|
283
|
-
* ```
|
|
284
|
-
*/
|
|
285
|
-
pagesFactory: (page: number, pageCount: number) => number[];
|
|
286
|
-
/**
|
|
287
|
-
* Provide the label for each "Page" page button.
|
|
288
|
-
* This is used for accessibility purposes.
|
|
289
|
-
* for I18n, we suggest to use the global configuration
|
|
290
|
-
* override any configuration parameters provided for this
|
|
291
|
-
* @param processPage - The current page number
|
|
292
|
-
* @param pageCount - The total number of pages
|
|
293
|
-
*
|
|
294
|
-
* @defaultValue
|
|
295
|
-
* ```ts
|
|
296
|
-
* (processPage: number, pageCount: number) => `Page ${processPage} of ${pageCount}`
|
|
297
|
-
* ```
|
|
298
|
-
*/
|
|
299
|
-
ariaPageLabel: (processPage: number, pageCount: number) => string;
|
|
300
|
-
/**
|
|
301
|
-
* Provide the label for the aria-live element
|
|
302
|
-
* This is used for accessibility purposes.
|
|
303
|
-
* for I18n, we suggest to use the global configuration
|
|
304
|
-
* override any configuration parameters provided for this
|
|
305
|
-
* @param currentPage - The current page number
|
|
306
|
-
* @param pageCount - The total number of pages
|
|
307
|
-
*
|
|
308
|
-
* @defaultValue
|
|
309
|
-
* ```ts
|
|
310
|
-
* (currentPage: number) => `Current page is ${currentPage}`
|
|
311
|
-
* ```
|
|
312
|
-
*/
|
|
313
|
-
ariaLiveLabel: (currentPage: number, pageCount: number) => string;
|
|
314
|
-
/**
|
|
315
|
-
* Factory function providing the href for a "Page" page anchor,
|
|
316
|
-
* based on the current page number
|
|
317
|
-
* @param pageNumber - The index to use in the link
|
|
318
|
-
*
|
|
319
|
-
* @defaultValue
|
|
320
|
-
* ```ts
|
|
321
|
-
* (_page: number) => PAGE_LINK_DEFAULT
|
|
322
|
-
* ```
|
|
323
|
-
*/
|
|
324
|
-
pageLink: (pageNumber: number) => string;
|
|
325
|
-
/**
|
|
326
|
-
* The current page.
|
|
327
|
-
*
|
|
328
|
-
* Page numbers start with `1`.
|
|
329
|
-
*
|
|
330
|
-
* @defaultValue `1`
|
|
331
|
-
*/
|
|
332
|
-
page: number;
|
|
333
|
-
/**
|
|
334
|
-
* The label for the nav element.
|
|
335
|
-
*
|
|
336
|
-
* for I18n, we suggest to use the global configuration
|
|
337
|
-
* override any configuration parameters provided for this
|
|
338
|
-
*
|
|
339
|
-
* @defaultValue `'Page navigation'`
|
|
340
|
-
*/
|
|
341
|
-
ariaLabel: string;
|
|
342
|
-
/**
|
|
343
|
-
* The label for the "active" page.
|
|
344
|
-
* for I18n, we suggest to use the global configuration
|
|
345
|
-
* override any configuration parameters provided for this
|
|
346
|
-
*
|
|
347
|
-
* @defaultValue
|
|
348
|
-
* ```ts
|
|
349
|
-
* '(current)'
|
|
350
|
-
* ```
|
|
351
|
-
*/
|
|
352
|
-
activeLabel: string;
|
|
353
|
-
/**
|
|
354
|
-
* The label for the "First" page button.
|
|
355
|
-
* for I18n, we suggest to use the global configuration
|
|
356
|
-
* override any configuration parameters provided for this
|
|
357
|
-
*
|
|
358
|
-
* @defaultValue
|
|
359
|
-
* ```ts
|
|
360
|
-
* 'Action link for first page'
|
|
361
|
-
* ```
|
|
362
|
-
*/
|
|
363
|
-
ariaFirstLabel: string;
|
|
364
|
-
/**
|
|
365
|
-
* The label for the "Previous" page button.
|
|
366
|
-
* for I18n, we suggest to use the global configuration
|
|
367
|
-
* override any configuration parameters provided for this
|
|
368
|
-
*
|
|
369
|
-
* @defaultValue
|
|
370
|
-
* ```ts
|
|
371
|
-
* 'Action link for previous page'
|
|
372
|
-
* ```
|
|
373
|
-
*/
|
|
374
|
-
ariaPreviousLabel: string;
|
|
375
|
-
/**
|
|
376
|
-
* The label for the "Next" page button.
|
|
377
|
-
* for I18n, we suggest to use the global configuration
|
|
378
|
-
* override any configuration parameters provided for this
|
|
379
|
-
*
|
|
380
|
-
* @defaultValue
|
|
381
|
-
* ```ts
|
|
382
|
-
* 'Action link for next page'
|
|
383
|
-
* ```
|
|
384
|
-
*/
|
|
385
|
-
ariaNextLabel: string;
|
|
386
|
-
/**
|
|
387
|
-
* The label for the "Last" page button.
|
|
388
|
-
* for I18n, we suggest to use the global configuration
|
|
389
|
-
* override any configuration parameters provided for this
|
|
390
|
-
*
|
|
391
|
-
* @defaultValue
|
|
392
|
-
* ```ts
|
|
393
|
-
* 'Action link for last page'
|
|
394
|
-
* ```
|
|
395
|
-
*/
|
|
396
|
-
ariaLastLabel: string;
|
|
397
|
-
/**
|
|
398
|
-
* The label for the "Ellipsis" page.
|
|
399
|
-
* for I18n, we suggest to use the global configuration
|
|
400
|
-
* override any configuration parameters provided for this
|
|
401
|
-
*
|
|
402
|
-
* @defaultValue `'Ellipsis page element'`
|
|
403
|
-
*/
|
|
404
|
-
ariaEllipsisLabel: string;
|
|
405
|
-
/**
|
|
406
|
-
* If `true`, pagination links will be disabled.
|
|
407
|
-
*
|
|
408
|
-
* @defaultValue `false`
|
|
409
|
-
*/
|
|
410
|
-
disabled: boolean;
|
|
411
|
-
/**
|
|
412
|
-
* If `true`, the "Next" and "Previous" page links are shown.
|
|
413
|
-
*
|
|
414
|
-
* @defaultValue `true`
|
|
415
|
-
*/
|
|
416
|
-
directionLinks: boolean;
|
|
417
|
-
/**
|
|
418
|
-
* If `true`, the "First" and "Last" page links are shown.
|
|
419
|
-
*
|
|
420
|
-
* @defaultValue `false`
|
|
421
|
-
*/
|
|
422
|
-
boundaryLinks: boolean;
|
|
423
|
-
/**
|
|
424
|
-
* CSS classes to be applied on the widget main container
|
|
425
|
-
*
|
|
426
|
-
* @defaultValue `''`
|
|
427
|
-
*/
|
|
428
|
-
className: string;
|
|
429
|
-
/**
|
|
430
|
-
* The template to use for the structure of the pagination component
|
|
431
|
-
* The default structure uses {@link PaginationProps.ellipsisLabel|ellipsisLabel}, {@link PaginationProps.firstPageLabel|firstPageLabel},
|
|
432
|
-
* {@link PaginationProps.previousPageLabel|previousPageLabel}, {@link PaginationProps.nextPageLabel|nextPageLabel},
|
|
433
|
-
* {@link PaginationProps.lastPageLabel|lastPageLabel}, {@link PaginationProps.pagesDisplay|pagesDisplay},
|
|
434
|
-
* {@link PaginationProps.numberLabel|numberLabel},
|
|
435
|
-
*/
|
|
436
|
-
structure: SlotContent<PaginationContext>;
|
|
437
|
-
/**
|
|
438
|
-
* The template to use for the ellipsis slot
|
|
439
|
-
* for I18n, we suggest to use the global configuration
|
|
440
|
-
* override any configuration parameters provided for this
|
|
441
|
-
*
|
|
442
|
-
* @defaultValue `'…'`
|
|
443
|
-
*/
|
|
444
|
-
ellipsisLabel: SlotContent<PaginationContext>;
|
|
445
|
-
/**
|
|
446
|
-
* The template to use for the first slot
|
|
447
|
-
* for I18n, we suggest to use the global configuration
|
|
448
|
-
* override any configuration parameters provided for this
|
|
449
|
-
*
|
|
450
|
-
* @defaultValue `'«'`
|
|
451
|
-
*/
|
|
452
|
-
firstPageLabel: SlotContent<PaginationContext>;
|
|
453
|
-
/**
|
|
454
|
-
* The template to use for the previous slot
|
|
455
|
-
* for I18n, we suggest to use the global configuration
|
|
456
|
-
* override any configuration parameters provided for this
|
|
457
|
-
*
|
|
458
|
-
* @defaultValue `'‹'`
|
|
459
|
-
*/
|
|
460
|
-
previousPageLabel: SlotContent<PaginationContext>;
|
|
461
|
-
/**
|
|
462
|
-
* The template to use for the next slot
|
|
463
|
-
* for I18n, we suggest to use the global configuration
|
|
464
|
-
* override any configuration parameters provided for this
|
|
465
|
-
*
|
|
466
|
-
* @defaultValue `'›'`
|
|
467
|
-
*/
|
|
468
|
-
nextPageLabel: SlotContent<PaginationContext>;
|
|
469
|
-
/**
|
|
470
|
-
* The template to use for the last slot
|
|
471
|
-
* for I18n, we suggest to use the global configuration
|
|
472
|
-
* override any configuration parameters provided for this
|
|
473
|
-
*
|
|
474
|
-
* @defaultValue `'»'`
|
|
475
|
-
*/
|
|
476
|
-
lastPageLabel: SlotContent<PaginationContext>;
|
|
477
|
-
/**
|
|
478
|
-
* The template to use for the pages slot
|
|
479
|
-
* To use to customize the pages view
|
|
480
|
-
* override any configuration parameters provided for this
|
|
481
|
-
*/
|
|
482
|
-
pagesDisplay: SlotContent<PaginationContext>;
|
|
483
|
-
/**
|
|
484
|
-
* The template to use for the number slot
|
|
485
|
-
* override any configuration parameters provided for this
|
|
486
|
-
* for I18n, we suggest to use the global configuration
|
|
487
|
-
* @param displayedPage - The current page number
|
|
488
|
-
*
|
|
489
|
-
* @defaultValue
|
|
490
|
-
* ```ts
|
|
491
|
-
* ({displayedPage}: PaginationNumberContext) => `${displayedPage}`
|
|
492
|
-
* ```
|
|
493
|
-
*/
|
|
494
|
-
numberLabel: SlotContent<PaginationNumberContext>;
|
|
495
|
-
/**
|
|
496
|
-
* The pagination display size.
|
|
497
|
-
*
|
|
498
|
-
* Bootstrap currently supports small and large sizes.
|
|
499
|
-
*
|
|
500
|
-
* @defaultValue `null`
|
|
501
|
-
*/
|
|
502
|
-
size: 'sm' | 'lg' | null;
|
|
503
|
-
}
|
|
504
|
-
/**
|
|
505
|
-
* Represents a pagination widget component.
|
|
506
|
-
*
|
|
507
|
-
* This type defines a widget that handles pagination functionality,
|
|
508
|
-
* including properties, state, api and directives specific to pagination.
|
|
509
|
-
*/
|
|
510
|
-
export type PaginationWidget = Widget<PaginationProps, PaginationState, PaginationApi, PaginationDirectives>;
|
|
511
|
-
/**
|
|
512
|
-
* Create a PaginationWidget with given config props
|
|
513
|
-
* @param config - an optional alert config
|
|
514
|
-
* @returns a PaginationWidget
|
|
515
|
-
*/
|
|
516
|
-
declare const export_createPagination: WidgetFactory<PaginationWidget>;
|
|
517
|
-
export { export_createPagination as createPagination };
|
|
518
|
-
/**
|
|
519
|
-
* Interface representing the hrefs for pagination navigation links.
|
|
520
|
-
*/
|
|
521
|
-
export interface DirectionsHrefs {
|
|
522
|
-
/**
|
|
523
|
-
* The href for the 'Previous' navigation link
|
|
524
|
-
*/
|
|
525
|
-
previous: string;
|
|
526
|
-
/**
|
|
527
|
-
* The href for the 'Next' direction link
|
|
528
|
-
*/
|
|
529
|
-
next: string;
|
|
530
|
-
}
|
|
531
|
-
/**
|
|
532
|
-
* Interface representing pagination API for navigating through pages.
|
|
533
|
-
*/
|
|
534
|
-
export interface PaginationApi {
|
|
535
|
-
/**
|
|
536
|
-
* To "go" to a specific page
|
|
537
|
-
* @param page - The page number to select
|
|
538
|
-
*/
|
|
539
|
-
select(page: number): void;
|
|
540
|
-
/**
|
|
541
|
-
* To "go" to the first page
|
|
542
|
-
*/
|
|
543
|
-
first(): void;
|
|
544
|
-
/**
|
|
545
|
-
* To "go" to the previous page
|
|
546
|
-
*/
|
|
547
|
-
previous(): void;
|
|
548
|
-
/**
|
|
549
|
-
* To "go" to the next page
|
|
550
|
-
*/
|
|
551
|
-
next(): void;
|
|
552
|
-
/**
|
|
553
|
-
* To "go" to the last page
|
|
554
|
-
*/
|
|
555
|
-
last(): void;
|
|
556
|
-
}
|
|
557
|
-
/**
|
|
558
|
-
* Interface representing the directives for pagination components.
|
|
559
|
-
*/
|
|
560
|
-
export interface PaginationDirectives {
|
|
561
|
-
/**
|
|
562
|
-
* A directive to be applied to each page link
|
|
563
|
-
* This will handle the click, tabindex and aria attributes
|
|
564
|
-
*/
|
|
565
|
-
pageLink: Directive<{
|
|
566
|
-
page: number;
|
|
567
|
-
}>;
|
|
568
|
-
/**
|
|
569
|
-
* A directive to be applied on the previous link
|
|
570
|
-
*/
|
|
571
|
-
pagePrev: Directive;
|
|
572
|
-
/**
|
|
573
|
-
* A directive to be applied on the first link
|
|
574
|
-
*/
|
|
575
|
-
pageFirst: Directive;
|
|
576
|
-
/**
|
|
577
|
-
* A directive to be applied on the next link
|
|
578
|
-
*/
|
|
579
|
-
pageNext: Directive;
|
|
580
|
-
/**
|
|
581
|
-
* A directive to be applied on the Last link
|
|
582
|
-
*/
|
|
583
|
-
pageLast: Directive;
|
|
584
|
-
}
|
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
import { BaseWidgetDirective } from '@agnos-ui/angular-headless';
|
|
2
|
-
import type { SlotContent } from '@agnos-ui/angular-headless';
|
|
3
|
-
import { TemplateRef } from '@angular/core';
|
|
4
|
-
import type { ProgressbarContext, ProgressbarWidget } from './progressbar.gen';
|
|
5
|
-
import type { BSContextualClass } from '@agnos-ui/core-bootstrap/types';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
/**
|
|
8
|
-
* Directive that provides a template reference for the progress bar context.
|
|
9
|
-
* This directive provides a template reference for the {@link ProgressbarContext}.
|
|
10
|
-
*/
|
|
11
|
-
export declare class ProgressbarBodyDirective {
|
|
12
|
-
templateRef: TemplateRef<any>;
|
|
13
|
-
static ngTemplateContextGuard(_dir: ProgressbarStructureDirective, context: unknown): context is ProgressbarContext;
|
|
14
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ProgressbarBodyDirective, never>;
|
|
15
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<ProgressbarBodyDirective, "ng-template[auProgressbarBody]", never, {}, {}, never, never, true, never>;
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* Directive to define the structure of a progress bar.
|
|
19
|
-
*
|
|
20
|
-
* This directive provides a template reference for the {@link ProgressbarContext}.
|
|
21
|
-
*/
|
|
22
|
-
export declare class ProgressbarStructureDirective {
|
|
23
|
-
templateRef: TemplateRef<any>;
|
|
24
|
-
static ngTemplateContextGuard(_dir: ProgressbarStructureDirective, context: unknown): context is ProgressbarContext;
|
|
25
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ProgressbarStructureDirective, never>;
|
|
26
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<ProgressbarStructureDirective, "ng-template[auProgressbarStructure]", never, {}, {}, never, never, true, never>;
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* Represents the default slot structure for the progress bar component.
|
|
30
|
-
*/
|
|
31
|
-
export declare const progressbarDefaultSlotStructure: SlotContent<ProgressbarContext>;
|
|
32
|
-
/**
|
|
33
|
-
* ProgressbarComponent is a UI component that extends the BaseWidgetDirective
|
|
34
|
-
* to create a customizable progress bar widget. It provides various inputs
|
|
35
|
-
* to configure the appearance and behavior of the progress bar.
|
|
36
|
-
*
|
|
37
|
-
*/
|
|
38
|
-
export declare class ProgressbarComponent extends BaseWidgetDirective<ProgressbarWidget> {
|
|
39
|
-
/**
|
|
40
|
-
* The aria label.
|
|
41
|
-
*
|
|
42
|
-
* @defaultValue `'Progressbar'`
|
|
43
|
-
*/
|
|
44
|
-
readonly ariaLabel: import("@angular/core").InputSignal<string | undefined>;
|
|
45
|
-
/**
|
|
46
|
-
* The minimum value.
|
|
47
|
-
*
|
|
48
|
-
* @defaultValue `0`
|
|
49
|
-
*/
|
|
50
|
-
readonly min: import("@angular/core").InputSignalWithTransform<number | undefined, unknown>;
|
|
51
|
-
/**
|
|
52
|
-
* The maximum value.
|
|
53
|
-
*
|
|
54
|
-
* @defaultValue `100`
|
|
55
|
-
*/
|
|
56
|
-
readonly max: import("@angular/core").InputSignalWithTransform<number | undefined, unknown>;
|
|
57
|
-
/**
|
|
58
|
-
* The current value.
|
|
59
|
-
*
|
|
60
|
-
* @defaultValue `0`
|
|
61
|
-
*/
|
|
62
|
-
readonly value: import("@angular/core").InputSignalWithTransform<number | undefined, unknown>;
|
|
63
|
-
/**
|
|
64
|
-
* CSS classes to be applied on the widget main container
|
|
65
|
-
*
|
|
66
|
-
* @defaultValue `''`
|
|
67
|
-
*/
|
|
68
|
-
readonly className: import("@angular/core").InputSignal<string | undefined>;
|
|
69
|
-
/**
|
|
70
|
-
* Label of the progress.
|
|
71
|
-
*/
|
|
72
|
-
readonly children: import("@angular/core").InputSignal<SlotContent<ProgressbarContext>>;
|
|
73
|
-
readonly slotDefaultFromContent: import("@angular/core").Signal<ProgressbarBodyDirective | undefined>;
|
|
74
|
-
/**
|
|
75
|
-
* Global template for the Progressbar.
|
|
76
|
-
*/
|
|
77
|
-
readonly structure: import("@angular/core").InputSignal<SlotContent<ProgressbarContext>>;
|
|
78
|
-
readonly slotStructureFromContent: import("@angular/core").Signal<ProgressbarStructureDirective | undefined>;
|
|
79
|
-
/**
|
|
80
|
-
* Height of the progressbar, can be any valid css height value.
|
|
81
|
-
*
|
|
82
|
-
* @defaultValue `''`
|
|
83
|
-
*/
|
|
84
|
-
readonly height: import("@angular/core").InputSignal<string | undefined>;
|
|
85
|
-
/**
|
|
86
|
-
* If `true`, animates a striped progressbar.
|
|
87
|
-
* Takes effect only for browsers supporting CSS3 animations, and if `striped` is `true`.
|
|
88
|
-
*
|
|
89
|
-
* @defaultValue `false`
|
|
90
|
-
*/
|
|
91
|
-
readonly animated: import("@angular/core").InputSignalWithTransform<boolean | undefined, unknown>;
|
|
92
|
-
/**
|
|
93
|
-
* If `true`, shows a striped progressbar.
|
|
94
|
-
*
|
|
95
|
-
* @defaultValue `false`
|
|
96
|
-
*/
|
|
97
|
-
readonly striped: import("@angular/core").InputSignalWithTransform<boolean | undefined, unknown>;
|
|
98
|
-
/**
|
|
99
|
-
* Return the value for the 'aria-valuetext' attribute.
|
|
100
|
-
* @param value - current value
|
|
101
|
-
* @param minimum - minimum value
|
|
102
|
-
* @param maximum - maximum value
|
|
103
|
-
*
|
|
104
|
-
* @defaultValue
|
|
105
|
-
* ```ts
|
|
106
|
-
* () => undefined
|
|
107
|
-
* ```
|
|
108
|
-
*/
|
|
109
|
-
readonly ariaValueTextFn: import("@angular/core").InputSignal<((value: number, minimum: number, maximum: number) => string | undefined) | undefined>;
|
|
110
|
-
/**
|
|
111
|
-
* Type of the progressbar, following bootstrap types.
|
|
112
|
-
*/
|
|
113
|
-
readonly type: import("@angular/core").InputSignal<BSContextualClass | undefined>;
|
|
114
|
-
readonly slotChildren: import("@angular/core").Signal<TemplateRef<void> | undefined>;
|
|
115
|
-
constructor();
|
|
116
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ProgressbarComponent, never>;
|
|
117
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ProgressbarComponent, "[auProgressbar]", never, { "ariaLabel": { "alias": "auAriaLabel"; "required": false; "isSignal": true; }; "min": { "alias": "auMin"; "required": false; "isSignal": true; }; "max": { "alias": "auMax"; "required": false; "isSignal": true; }; "value": { "alias": "auValue"; "required": false; "isSignal": true; }; "className": { "alias": "auClassName"; "required": false; "isSignal": true; }; "children": { "alias": "auChildren"; "required": false; "isSignal": true; }; "structure": { "alias": "auStructure"; "required": false; "isSignal": true; }; "height": { "alias": "auHeight"; "required": false; "isSignal": true; }; "animated": { "alias": "auAnimated"; "required": false; "isSignal": true; }; "striped": { "alias": "auStriped"; "required": false; "isSignal": true; }; "ariaValueTextFn": { "alias": "auAriaValueTextFn"; "required": false; "isSignal": true; }; "type": { "alias": "auType"; "required": false; "isSignal": true; }; }, {}, ["slotDefaultFromContent", "slotStructureFromContent"], ["*"], true, never>;
|
|
118
|
-
}
|