@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,511 +0,0 @@
|
|
|
1
|
-
import type { WidgetSlotContext, SlotContent, Widget, WidgetFactory, Directive } from '@agnos-ui/angular-headless';
|
|
2
|
-
/**
|
|
3
|
-
* Retrieve a shallow copy of the default Slider config
|
|
4
|
-
* @returns the default Slider config
|
|
5
|
-
*/
|
|
6
|
-
declare const export_getSliderDefaultConfig: () => SliderProps;
|
|
7
|
-
export { export_getSliderDefaultConfig as getSliderDefaultConfig };
|
|
8
|
-
/**
|
|
9
|
-
* Represents the context for a Slider component.
|
|
10
|
-
* This type is an alias for `WidgetSlotContext<SliderWidget>`.
|
|
11
|
-
*/
|
|
12
|
-
export interface SliderContext extends WidgetSlotContext<SliderWidget> {
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* Represents the context for a slider slot label, extending the base `SliderContext`
|
|
16
|
-
* with an additional `value` property.
|
|
17
|
-
*/
|
|
18
|
-
export interface SliderSlotLabelContext extends SliderContext {
|
|
19
|
-
/**
|
|
20
|
-
* the value of the handle the label is attached to
|
|
21
|
-
*/
|
|
22
|
-
value: number;
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* Represents the context for a slider slot handle.
|
|
26
|
-
* This type extends the `SliderContext` and includes an additional `item` property of type `SliderHandle`.
|
|
27
|
-
*/
|
|
28
|
-
export interface SliderSlotHandleContext extends SliderContext {
|
|
29
|
-
/**
|
|
30
|
-
* the handle context
|
|
31
|
-
*/
|
|
32
|
-
item: SliderHandle;
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* Represents the context for a slider tick slot
|
|
36
|
-
*/
|
|
37
|
-
export interface SliderSlotTickContext extends SliderContext {
|
|
38
|
-
/**
|
|
39
|
-
* tick context
|
|
40
|
-
*/
|
|
41
|
-
tick: SliderTick;
|
|
42
|
-
}
|
|
43
|
-
/**
|
|
44
|
-
* Represents the state of a slider component.
|
|
45
|
-
*/
|
|
46
|
-
export interface SliderState {
|
|
47
|
-
/**
|
|
48
|
-
* Sorted slider values
|
|
49
|
-
*/
|
|
50
|
-
sortedValues: number[];
|
|
51
|
-
/**
|
|
52
|
-
* Combined label left offset in %
|
|
53
|
-
*/
|
|
54
|
-
combinedLabelPositionLeft: number;
|
|
55
|
-
/**
|
|
56
|
-
* Combined label top offset in %
|
|
57
|
-
*/
|
|
58
|
-
combinedLabelPositionTop: number;
|
|
59
|
-
/**
|
|
60
|
-
* If true, the minimum label will be visible
|
|
61
|
-
*/
|
|
62
|
-
minValueLabelDisplay: boolean;
|
|
63
|
-
/**
|
|
64
|
-
* If true, the maximum label will be visible
|
|
65
|
-
*/
|
|
66
|
-
maxValueLabelDisplay: boolean;
|
|
67
|
-
/**
|
|
68
|
-
* If true, the label when the handles are close is visible
|
|
69
|
-
*/
|
|
70
|
-
combinedLabelDisplay: boolean;
|
|
71
|
-
/**
|
|
72
|
-
* Array of the sorted handles to display
|
|
73
|
-
*/
|
|
74
|
-
sortedHandles: SliderHandle[];
|
|
75
|
-
/**
|
|
76
|
-
* Array of objects representing progress display options
|
|
77
|
-
*/
|
|
78
|
-
progressDisplayOptions: ProgressDisplayOptions[];
|
|
79
|
-
/**
|
|
80
|
-
* Array of objects representing handle display options
|
|
81
|
-
*/
|
|
82
|
-
handleDisplayOptions: HandleDisplayOptions[];
|
|
83
|
-
/**
|
|
84
|
-
* Check if the slider is interactive, meaning it is not disabled or readonly
|
|
85
|
-
*/
|
|
86
|
-
interactive: boolean;
|
|
87
|
-
/**
|
|
88
|
-
* Array of ticks to display on the slider component
|
|
89
|
-
*/
|
|
90
|
-
ticks: SliderTick[];
|
|
91
|
-
/**
|
|
92
|
-
* Minimum value that can be assigned to the slider
|
|
93
|
-
*
|
|
94
|
-
* @defaultValue `0`
|
|
95
|
-
*/
|
|
96
|
-
min: number;
|
|
97
|
-
/**
|
|
98
|
-
* Maximum value that can be assigned to the slider
|
|
99
|
-
*
|
|
100
|
-
* @defaultValue `100`
|
|
101
|
-
*/
|
|
102
|
-
max: number;
|
|
103
|
-
/**
|
|
104
|
-
* Unit value between slider steps
|
|
105
|
-
*
|
|
106
|
-
* @defaultValue `1`
|
|
107
|
-
*/
|
|
108
|
-
stepSize: number;
|
|
109
|
-
/**
|
|
110
|
-
* If `true` slider value cannot be changed but the slider is still focusable
|
|
111
|
-
*
|
|
112
|
-
* @defaultValue `false`
|
|
113
|
-
*/
|
|
114
|
-
readonly: boolean;
|
|
115
|
-
/**
|
|
116
|
-
* If `true` slider value cannot be changed and the slider cannot be focused
|
|
117
|
-
*
|
|
118
|
-
* @defaultValue `false`
|
|
119
|
-
*/
|
|
120
|
-
disabled: boolean;
|
|
121
|
-
/**
|
|
122
|
-
* If `true` is vertically positioned otherwise it is horizontal
|
|
123
|
-
*
|
|
124
|
-
* @defaultValue `false`
|
|
125
|
-
*/
|
|
126
|
-
vertical: boolean;
|
|
127
|
-
/**
|
|
128
|
-
* Current slider values
|
|
129
|
-
*
|
|
130
|
-
* @defaultValue `[0]`
|
|
131
|
-
*/
|
|
132
|
-
values: number[];
|
|
133
|
-
/**
|
|
134
|
-
* If `true` the value labels are displayed on the slider
|
|
135
|
-
*
|
|
136
|
-
* @defaultValue `true`
|
|
137
|
-
*/
|
|
138
|
-
showValueLabels: boolean;
|
|
139
|
-
/**
|
|
140
|
-
* If `true` the min and max labels are displayed on the slider
|
|
141
|
-
*
|
|
142
|
-
* @defaultValue `true`
|
|
143
|
-
*/
|
|
144
|
-
showMinMaxLabels: boolean;
|
|
145
|
-
/**
|
|
146
|
-
* If `true` the ticks are displayed on the slider
|
|
147
|
-
*
|
|
148
|
-
* @defaultValue `false`
|
|
149
|
-
*/
|
|
150
|
-
showTicks: boolean;
|
|
151
|
-
/**
|
|
152
|
-
* It `true` slider display is inversed
|
|
153
|
-
*
|
|
154
|
-
* @defaultValue `false`
|
|
155
|
-
*/
|
|
156
|
-
rtl: boolean;
|
|
157
|
-
/**
|
|
158
|
-
* CSS classes to be applied on the widget main container
|
|
159
|
-
*
|
|
160
|
-
* @defaultValue `''`
|
|
161
|
-
*/
|
|
162
|
-
className: string;
|
|
163
|
-
/**
|
|
164
|
-
* Slot to change the default display of the slider
|
|
165
|
-
*/
|
|
166
|
-
structure: SlotContent<SliderContext>;
|
|
167
|
-
/**
|
|
168
|
-
* Slot to change the default labels of the slider
|
|
169
|
-
*
|
|
170
|
-
* @defaultValue
|
|
171
|
-
* ```ts
|
|
172
|
-
* ({value}: SliderSlotLabelContext) => '' + value
|
|
173
|
-
* ```
|
|
174
|
-
*/
|
|
175
|
-
label: SlotContent<SliderSlotLabelContext>;
|
|
176
|
-
/**
|
|
177
|
-
* Slot to change the handlers
|
|
178
|
-
*/
|
|
179
|
-
handle: SlotContent<SliderSlotHandleContext>;
|
|
180
|
-
/**
|
|
181
|
-
* Slot to change the ticks
|
|
182
|
-
*/
|
|
183
|
-
tick: SlotContent<SliderSlotTickContext>;
|
|
184
|
-
}
|
|
185
|
-
/**
|
|
186
|
-
* Represents the properties for the Slider component.
|
|
187
|
-
*/
|
|
188
|
-
export interface SliderProps {
|
|
189
|
-
/**
|
|
190
|
-
* Return the value for the 'aria-label' attribute for the handle
|
|
191
|
-
* @param sortedIndex - index of the handle in the sorted list
|
|
192
|
-
*
|
|
193
|
-
* @defaultValue
|
|
194
|
-
* ```ts
|
|
195
|
-
* () => 'Value'
|
|
196
|
-
* ```
|
|
197
|
-
*/
|
|
198
|
-
ariaLabel: (sortedIndex: number) => string;
|
|
199
|
-
/**
|
|
200
|
-
* Return the value for the 'aria-labelledBy' attribute for the handle
|
|
201
|
-
* @param sortedIndex - index of the handle in the sorted list
|
|
202
|
-
*
|
|
203
|
-
* @defaultValue
|
|
204
|
-
* ```ts
|
|
205
|
-
* () => ''
|
|
206
|
-
* ```
|
|
207
|
-
*/
|
|
208
|
-
ariaLabelledBy: (sortedIndex: number) => string;
|
|
209
|
-
/**
|
|
210
|
-
* Return the value for the 'aria-valuetext' attribute for the handle
|
|
211
|
-
* @param value - value of the handle
|
|
212
|
-
* @param sortedIndex - index of the handle in the sorted list
|
|
213
|
-
*
|
|
214
|
-
* @defaultValue
|
|
215
|
-
* ```ts
|
|
216
|
-
* (value: number) => ''
|
|
217
|
-
* ```
|
|
218
|
-
*/
|
|
219
|
-
ariaValueText: (value: number, sortedIndex: number) => string;
|
|
220
|
-
/**
|
|
221
|
-
* An event emitted when slider values are changed
|
|
222
|
-
*
|
|
223
|
-
* Event payload equals to the updated slider values
|
|
224
|
-
*
|
|
225
|
-
* @defaultValue
|
|
226
|
-
* ```ts
|
|
227
|
-
* () => {}
|
|
228
|
-
* ```
|
|
229
|
-
*/
|
|
230
|
-
onValuesChange: (values: number[]) => void;
|
|
231
|
-
/**
|
|
232
|
-
* Unit value between the ticks
|
|
233
|
-
* If value is set to `0` the {@link stepSize} is used to space the ticks
|
|
234
|
-
*
|
|
235
|
-
* @defaultValue `0`
|
|
236
|
-
*/
|
|
237
|
-
tickInterval: number;
|
|
238
|
-
/**
|
|
239
|
-
* If `true` the tick values are displayed on the slider
|
|
240
|
-
*
|
|
241
|
-
* @defaultValue `true`
|
|
242
|
-
*/
|
|
243
|
-
showTickValues: boolean;
|
|
244
|
-
/**
|
|
245
|
-
* Minimum value that can be assigned to the slider
|
|
246
|
-
*
|
|
247
|
-
* @defaultValue `0`
|
|
248
|
-
*/
|
|
249
|
-
min: number;
|
|
250
|
-
/**
|
|
251
|
-
* Maximum value that can be assigned to the slider
|
|
252
|
-
*
|
|
253
|
-
* @defaultValue `100`
|
|
254
|
-
*/
|
|
255
|
-
max: number;
|
|
256
|
-
/**
|
|
257
|
-
* Unit value between slider steps
|
|
258
|
-
*
|
|
259
|
-
* @defaultValue `1`
|
|
260
|
-
*/
|
|
261
|
-
stepSize: number;
|
|
262
|
-
/**
|
|
263
|
-
* If `true` slider value cannot be changed but the slider is still focusable
|
|
264
|
-
*
|
|
265
|
-
* @defaultValue `false`
|
|
266
|
-
*/
|
|
267
|
-
readonly: boolean;
|
|
268
|
-
/**
|
|
269
|
-
* If `true` slider value cannot be changed and the slider cannot be focused
|
|
270
|
-
*
|
|
271
|
-
* @defaultValue `false`
|
|
272
|
-
*/
|
|
273
|
-
disabled: boolean;
|
|
274
|
-
/**
|
|
275
|
-
* If `true` is vertically positioned otherwise it is horizontal
|
|
276
|
-
*
|
|
277
|
-
* @defaultValue `false`
|
|
278
|
-
*/
|
|
279
|
-
vertical: boolean;
|
|
280
|
-
/**
|
|
281
|
-
* Current slider values
|
|
282
|
-
*
|
|
283
|
-
* @defaultValue `[0]`
|
|
284
|
-
*/
|
|
285
|
-
values: number[];
|
|
286
|
-
/**
|
|
287
|
-
* If `true` the value labels are displayed on the slider
|
|
288
|
-
*
|
|
289
|
-
* @defaultValue `true`
|
|
290
|
-
*/
|
|
291
|
-
showValueLabels: boolean;
|
|
292
|
-
/**
|
|
293
|
-
* If `true` the min and max labels are displayed on the slider
|
|
294
|
-
*
|
|
295
|
-
* @defaultValue `true`
|
|
296
|
-
*/
|
|
297
|
-
showMinMaxLabels: boolean;
|
|
298
|
-
/**
|
|
299
|
-
* If `true` the ticks are displayed on the slider
|
|
300
|
-
*
|
|
301
|
-
* @defaultValue `false`
|
|
302
|
-
*/
|
|
303
|
-
showTicks: boolean;
|
|
304
|
-
/**
|
|
305
|
-
* It `true` slider display is inversed
|
|
306
|
-
*
|
|
307
|
-
* @defaultValue `false`
|
|
308
|
-
*/
|
|
309
|
-
rtl: boolean;
|
|
310
|
-
/**
|
|
311
|
-
* CSS classes to be applied on the widget main container
|
|
312
|
-
*
|
|
313
|
-
* @defaultValue `''`
|
|
314
|
-
*/
|
|
315
|
-
className: string;
|
|
316
|
-
/**
|
|
317
|
-
* Slot to change the default display of the slider
|
|
318
|
-
*/
|
|
319
|
-
structure: SlotContent<SliderContext>;
|
|
320
|
-
/**
|
|
321
|
-
* Slot to change the default labels of the slider
|
|
322
|
-
*
|
|
323
|
-
* @defaultValue
|
|
324
|
-
* ```ts
|
|
325
|
-
* ({value}: SliderSlotLabelContext) => '' + value
|
|
326
|
-
* ```
|
|
327
|
-
*/
|
|
328
|
-
label: SlotContent<SliderSlotLabelContext>;
|
|
329
|
-
/**
|
|
330
|
-
* Slot to change the handlers
|
|
331
|
-
*/
|
|
332
|
-
handle: SlotContent<SliderSlotHandleContext>;
|
|
333
|
-
/**
|
|
334
|
-
* Slot to change the ticks
|
|
335
|
-
*/
|
|
336
|
-
tick: SlotContent<SliderSlotTickContext>;
|
|
337
|
-
}
|
|
338
|
-
/**
|
|
339
|
-
* Represents a slider widget component.
|
|
340
|
-
*/
|
|
341
|
-
export type SliderWidget = Widget<SliderProps, SliderState, object, SliderDirectives>;
|
|
342
|
-
/**
|
|
343
|
-
* Create a Slider with given config props
|
|
344
|
-
* @param config - an optional slider config
|
|
345
|
-
* @returns a SliderWidget
|
|
346
|
-
*/
|
|
347
|
-
declare const export_createSlider: WidgetFactory<SliderWidget>;
|
|
348
|
-
export { export_createSlider as createSlider };
|
|
349
|
-
/**
|
|
350
|
-
* Options for displaying progress in a slider component.
|
|
351
|
-
*/
|
|
352
|
-
export interface ProgressDisplayOptions {
|
|
353
|
-
/**
|
|
354
|
-
* Right offset of the progress in %
|
|
355
|
-
*/
|
|
356
|
-
left: number | null;
|
|
357
|
-
/**
|
|
358
|
-
* Left offset of the progress in %
|
|
359
|
-
*/
|
|
360
|
-
right: number | null;
|
|
361
|
-
/**
|
|
362
|
-
* Top offset of the progress in %
|
|
363
|
-
*/
|
|
364
|
-
top: number | null;
|
|
365
|
-
/**
|
|
366
|
-
* Bottom offset of the progress in %
|
|
367
|
-
*/
|
|
368
|
-
bottom: number | null;
|
|
369
|
-
/**
|
|
370
|
-
* Width of the progress in %
|
|
371
|
-
*/
|
|
372
|
-
width: number;
|
|
373
|
-
/**
|
|
374
|
-
* Height of the progress in %
|
|
375
|
-
*/
|
|
376
|
-
height: number;
|
|
377
|
-
/**
|
|
378
|
-
* Id of the progress
|
|
379
|
-
*/
|
|
380
|
-
id: number;
|
|
381
|
-
}
|
|
382
|
-
/**
|
|
383
|
-
* Options for displaying a handle in a slider component.
|
|
384
|
-
*/
|
|
385
|
-
export interface HandleDisplayOptions {
|
|
386
|
-
/**
|
|
387
|
-
* Left offset of the handle in %
|
|
388
|
-
*/
|
|
389
|
-
left: number | null;
|
|
390
|
-
/**
|
|
391
|
-
* Top offset of the handle in %
|
|
392
|
-
*/
|
|
393
|
-
top: number | null;
|
|
394
|
-
}
|
|
395
|
-
/**
|
|
396
|
-
* Represents a handle in a slider component.
|
|
397
|
-
*/
|
|
398
|
-
export interface SliderHandle {
|
|
399
|
-
/**
|
|
400
|
-
* Value of the handle
|
|
401
|
-
*/
|
|
402
|
-
value: number;
|
|
403
|
-
/**
|
|
404
|
-
* Handle id
|
|
405
|
-
*/
|
|
406
|
-
id: number;
|
|
407
|
-
/**
|
|
408
|
-
* ariaLabel of the handle
|
|
409
|
-
*/
|
|
410
|
-
ariaLabel: string | undefined;
|
|
411
|
-
/**
|
|
412
|
-
* ariaValueText of the handle
|
|
413
|
-
*/
|
|
414
|
-
ariaValueText: string | undefined;
|
|
415
|
-
/**
|
|
416
|
-
* aria-labelledBy of the handle
|
|
417
|
-
*/
|
|
418
|
-
ariaLabelledBy: string | undefined;
|
|
419
|
-
}
|
|
420
|
-
/**
|
|
421
|
-
* Represents a tick in a slider component.
|
|
422
|
-
*/
|
|
423
|
-
export interface SliderTick {
|
|
424
|
-
/**
|
|
425
|
-
* CSS classes to be applied on the tick
|
|
426
|
-
*/
|
|
427
|
-
className?: string | null;
|
|
428
|
-
/**
|
|
429
|
-
* Visualized optional explanation of the label
|
|
430
|
-
*/
|
|
431
|
-
legend?: string | null;
|
|
432
|
-
/**
|
|
433
|
-
* Position of the tick in percent
|
|
434
|
-
*/
|
|
435
|
-
position: number;
|
|
436
|
-
/**
|
|
437
|
-
* If `true` the tick has selected style
|
|
438
|
-
*/
|
|
439
|
-
selected: boolean;
|
|
440
|
-
/**
|
|
441
|
-
* Value of the tick
|
|
442
|
-
*/
|
|
443
|
-
value: number;
|
|
444
|
-
/**
|
|
445
|
-
* If `true` the tick label is displayed
|
|
446
|
-
*/
|
|
447
|
-
displayLabel: boolean;
|
|
448
|
-
}
|
|
449
|
-
/**
|
|
450
|
-
* Interface representing various directives used in the slider component.
|
|
451
|
-
*/
|
|
452
|
-
export interface SliderDirectives {
|
|
453
|
-
/**
|
|
454
|
-
* Directive to get the slider component elementRef
|
|
455
|
-
*/
|
|
456
|
-
sliderDirective: Directive;
|
|
457
|
-
/**
|
|
458
|
-
* Directive used to style the progress display for each handle
|
|
459
|
-
*/
|
|
460
|
-
progressDisplayDirective: Directive<{
|
|
461
|
-
option: ProgressDisplayOptions;
|
|
462
|
-
}>;
|
|
463
|
-
/**
|
|
464
|
-
* Directive to apply to the slider clickable area, to directly move the handle to a given specific position
|
|
465
|
-
*/
|
|
466
|
-
clickableAreaDirective: Directive;
|
|
467
|
-
/**
|
|
468
|
-
* Directive to apply handle events handlers
|
|
469
|
-
*/
|
|
470
|
-
handleEventsDirective: Directive<{
|
|
471
|
-
item: {
|
|
472
|
-
id: number;
|
|
473
|
-
};
|
|
474
|
-
}>;
|
|
475
|
-
/**
|
|
476
|
-
* Directive to apply to the slider handle if any
|
|
477
|
-
*/
|
|
478
|
-
handleDirective: Directive<{
|
|
479
|
-
item: SliderHandle;
|
|
480
|
-
}>;
|
|
481
|
-
/**
|
|
482
|
-
* Directive to get the minLabel elementRef
|
|
483
|
-
*/
|
|
484
|
-
minLabelDirective: Directive;
|
|
485
|
-
/**
|
|
486
|
-
* Directive to get the maxLabel elementRef
|
|
487
|
-
*/
|
|
488
|
-
maxLabelDirective: Directive;
|
|
489
|
-
/**
|
|
490
|
-
* Directive to apply to the handle when combined label display is active
|
|
491
|
-
*/
|
|
492
|
-
combinedHandleLabelDisplayDirective: Directive;
|
|
493
|
-
/**
|
|
494
|
-
* Directive to apply to the handle when combined label display is not active
|
|
495
|
-
*/
|
|
496
|
-
handleLabelDisplayDirective: Directive<{
|
|
497
|
-
index: number;
|
|
498
|
-
}>;
|
|
499
|
-
/**
|
|
500
|
-
* Directive to apply to the slider tick
|
|
501
|
-
*/
|
|
502
|
-
tickDirective: Directive<{
|
|
503
|
-
tick: SliderTick;
|
|
504
|
-
}>;
|
|
505
|
-
/**
|
|
506
|
-
* Directive to apply to the slider tick label
|
|
507
|
-
*/
|
|
508
|
-
tickLabelDirective: Directive<{
|
|
509
|
-
tick: SliderTick;
|
|
510
|
-
}>;
|
|
511
|
-
}
|
|
@@ -1,155 +0,0 @@
|
|
|
1
|
-
import type { SlotContent, TransitionFn } from '@agnos-ui/angular-headless';
|
|
2
|
-
import { BaseWidgetDirective } from '@agnos-ui/angular-headless';
|
|
3
|
-
import { TemplateRef } from '@angular/core';
|
|
4
|
-
import type { ToastContext, ToastWidget } from './toast.gen';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
/**
|
|
7
|
-
* Directive to represent the body of a toast notification.
|
|
8
|
-
* This directive uses a template reference to render the {@link ToastContext}.
|
|
9
|
-
*/
|
|
10
|
-
export declare class ToastBodyDirective {
|
|
11
|
-
templateRef: TemplateRef<any>;
|
|
12
|
-
static ngTemplateContextGuard(_dir: ToastBodyDirective, context: unknown): context is ToastContext;
|
|
13
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ToastBodyDirective, never>;
|
|
14
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<ToastBodyDirective, "ng-template[auToastBody]", never, {}, {}, never, never, true, never>;
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* Directive to define the structure of a toast component.
|
|
18
|
-
* This directive uses a template reference to render the {@link ToastContext}.
|
|
19
|
-
*/
|
|
20
|
-
export declare class ToastStructureDirective {
|
|
21
|
-
templateRef: TemplateRef<any>;
|
|
22
|
-
static ngTemplateContextGuard(_dir: ToastStructureDirective, context: unknown): context is ToastContext;
|
|
23
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ToastStructureDirective, never>;
|
|
24
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<ToastStructureDirective, "ng-template[auToastStructure]", never, {}, {}, never, never, true, never>;
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* Directive representing the header of a toast component.
|
|
28
|
-
* This directive uses a template reference to render the {@link ToastContext}.
|
|
29
|
-
*/
|
|
30
|
-
export declare class ToastHeaderDirective {
|
|
31
|
-
templateRef: TemplateRef<any>;
|
|
32
|
-
static ngTemplateContextGuard(_dir: ToastHeaderDirective, context: unknown): context is ToastContext;
|
|
33
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ToastHeaderDirective, never>;
|
|
34
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<ToastHeaderDirective, "ng-template[auToastHeader]", never, {}, {}, never, never, true, never>;
|
|
35
|
-
}
|
|
36
|
-
/**
|
|
37
|
-
* Represents the default slot structure for the toast component.
|
|
38
|
-
*/
|
|
39
|
-
export declare const toastDefaultSlotStructure: SlotContent<ToastContext>;
|
|
40
|
-
/**
|
|
41
|
-
* The `ToastComponent` is a UI component that displays a toast notification.
|
|
42
|
-
* It extends the `BaseWidgetDirective` and provides various configurable properties
|
|
43
|
-
* and events to control the behavior and appearance of the toast.
|
|
44
|
-
*/
|
|
45
|
-
export declare class ToastComponent extends BaseWidgetDirective<ToastWidget> {
|
|
46
|
-
/**
|
|
47
|
-
* If `true`, alert can be dismissed by the user.
|
|
48
|
-
* The close button (×) will be displayed and you can be notified of the event with the (close) output.
|
|
49
|
-
*
|
|
50
|
-
* @defaultValue `true`
|
|
51
|
-
*/
|
|
52
|
-
readonly dismissible: import("@angular/core").InputSignalWithTransform<boolean | undefined, unknown>;
|
|
53
|
-
/**
|
|
54
|
-
* The transition function will be executed when the alert is displayed or hidden.
|
|
55
|
-
*
|
|
56
|
-
* Depending on the value of `animatedOnInit`, the animation can be optionally skipped during the showing process.
|
|
57
|
-
*
|
|
58
|
-
* @defaultValue `fadeTransition`
|
|
59
|
-
*/
|
|
60
|
-
readonly transition: import("@angular/core").InputSignal<TransitionFn | undefined>;
|
|
61
|
-
/**
|
|
62
|
-
* If `true` the alert is visible to the user
|
|
63
|
-
*
|
|
64
|
-
* @defaultValue `true`
|
|
65
|
-
*/
|
|
66
|
-
readonly visible: import("@angular/core").InputSignalWithTransform<boolean | undefined, unknown>;
|
|
67
|
-
/**
|
|
68
|
-
* If `true`, alert opening will be animated.
|
|
69
|
-
*
|
|
70
|
-
* Animation is triggered when the `.open()` function is called
|
|
71
|
-
* or the visible prop is changed
|
|
72
|
-
*
|
|
73
|
-
* @defaultValue `false`
|
|
74
|
-
*/
|
|
75
|
-
readonly animatedOnInit: import("@angular/core").InputSignalWithTransform<boolean | undefined, unknown>;
|
|
76
|
-
/**
|
|
77
|
-
* If `true`, alert closing will be animated.
|
|
78
|
-
*
|
|
79
|
-
* Animation is triggered when clicked on the close button (×),
|
|
80
|
-
* via the `.close()` function or the visible prop is changed
|
|
81
|
-
*
|
|
82
|
-
* @defaultValue `true`
|
|
83
|
-
*/
|
|
84
|
-
readonly animated: import("@angular/core").InputSignalWithTransform<boolean | undefined, unknown>;
|
|
85
|
-
/**
|
|
86
|
-
* If `true` automatically hides the toast after the delay.
|
|
87
|
-
*
|
|
88
|
-
* @defaultValue `true`
|
|
89
|
-
*/
|
|
90
|
-
readonly autoHide: import("@angular/core").InputSignalWithTransform<boolean | undefined, unknown>;
|
|
91
|
-
/**
|
|
92
|
-
* Delay in milliseconds before hiding the toast.
|
|
93
|
-
*
|
|
94
|
-
* @defaultValue `5000`
|
|
95
|
-
*/
|
|
96
|
-
readonly delay: import("@angular/core").InputSignalWithTransform<number | undefined, unknown>;
|
|
97
|
-
/**
|
|
98
|
-
* Accessibility close button label
|
|
99
|
-
*
|
|
100
|
-
* @defaultValue `'Close'`
|
|
101
|
-
*/
|
|
102
|
-
readonly ariaCloseButtonLabel: import("@angular/core").InputSignal<string | undefined>;
|
|
103
|
-
/**
|
|
104
|
-
* Template for the toast content
|
|
105
|
-
*/
|
|
106
|
-
readonly children: import("@angular/core").InputSignal<SlotContent<ToastContext>>;
|
|
107
|
-
readonly slotDefaultFromContent: import("@angular/core").Signal<ToastBodyDirective | undefined>;
|
|
108
|
-
/**
|
|
109
|
-
* Global template for the toast component
|
|
110
|
-
*/
|
|
111
|
-
readonly structure: import("@angular/core").InputSignal<SlotContent<ToastContext>>;
|
|
112
|
-
readonly slotStructureFromContent: import("@angular/core").Signal<ToastStructureDirective | undefined>;
|
|
113
|
-
/**
|
|
114
|
-
* Header template for the toast component
|
|
115
|
-
*/
|
|
116
|
-
readonly header: import("@angular/core").InputSignal<SlotContent<ToastContext>>;
|
|
117
|
-
readonly slotHeaderFromContent: import("@angular/core").Signal<ToastHeaderDirective | undefined>;
|
|
118
|
-
/**
|
|
119
|
-
* Callback called when the alert visibility changed.
|
|
120
|
-
*
|
|
121
|
-
* @defaultValue
|
|
122
|
-
* ```ts
|
|
123
|
-
* () => {}
|
|
124
|
-
* ```
|
|
125
|
-
*/
|
|
126
|
-
readonly visibleChange: import("@angular/core").OutputEmitterRef<boolean>;
|
|
127
|
-
/**
|
|
128
|
-
* Callback called when the alert is hidden.
|
|
129
|
-
*
|
|
130
|
-
* @defaultValue
|
|
131
|
-
* ```ts
|
|
132
|
-
* () => {}
|
|
133
|
-
* ```
|
|
134
|
-
*/
|
|
135
|
-
readonly hidden: import("@angular/core").OutputEmitterRef<void>;
|
|
136
|
-
/**
|
|
137
|
-
* Callback called when the alert is shown.
|
|
138
|
-
*
|
|
139
|
-
* @defaultValue
|
|
140
|
-
* ```ts
|
|
141
|
-
* () => {}
|
|
142
|
-
* ```
|
|
143
|
-
*/
|
|
144
|
-
readonly shown: import("@angular/core").OutputEmitterRef<void>;
|
|
145
|
-
/**
|
|
146
|
-
* CSS classes to be applied on the widget main container
|
|
147
|
-
*
|
|
148
|
-
* @defaultValue `''`
|
|
149
|
-
*/
|
|
150
|
-
readonly className: import("@angular/core").InputSignal<string | undefined>;
|
|
151
|
-
readonly slotChildren: import("@angular/core").Signal<TemplateRef<void> | undefined>;
|
|
152
|
-
constructor();
|
|
153
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ToastComponent, never>;
|
|
154
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ToastComponent, "[auToast]", never, { "dismissible": { "alias": "auDismissible"; "required": false; "isSignal": true; }; "transition": { "alias": "auTransition"; "required": false; "isSignal": true; }; "visible": { "alias": "auVisible"; "required": false; "isSignal": true; }; "animatedOnInit": { "alias": "auAnimatedOnInit"; "required": false; "isSignal": true; }; "animated": { "alias": "auAnimated"; "required": false; "isSignal": true; }; "autoHide": { "alias": "auAutoHide"; "required": false; "isSignal": true; }; "delay": { "alias": "auDelay"; "required": false; "isSignal": true; }; "ariaCloseButtonLabel": { "alias": "auAriaCloseButtonLabel"; "required": false; "isSignal": true; }; "children": { "alias": "auChildren"; "required": false; "isSignal": true; }; "structure": { "alias": "auStructure"; "required": false; "isSignal": true; }; "header": { "alias": "auHeader"; "required": false; "isSignal": true; }; "className": { "alias": "auClassName"; "required": false; "isSignal": true; }; }, { "visibleChange": "auVisibleChange"; "hidden": "auHidden"; "shown": "auShown"; }, ["slotDefaultFromContent", "slotStructureFromContent", "slotHeaderFromContent"], ["*"], true, never>;
|
|
155
|
-
}
|