@agnos-ui/angular-bootstrap 0.8.1 → 0.9.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.
Files changed (46) hide show
  1. package/fesm2022/agnos-ui-angular-bootstrap.mjs +164 -110
  2. package/fesm2022/agnos-ui-angular-bootstrap.mjs.map +1 -1
  3. package/index.d.ts +6450 -40
  4. package/package.json +5 -5
  5. package/agnos-ui-angular.module.d.ts +0 -20
  6. package/components/accordion/accordion.component.d.ts +0 -257
  7. package/components/accordion/accordion.gen.d.ts +0 -442
  8. package/components/accordion/index.d.ts +0 -2
  9. package/components/alert/alert.component.d.ts +0 -140
  10. package/components/alert/alert.gen.d.ts +0 -191
  11. package/components/alert/index.d.ts +0 -2
  12. package/components/carousel/carousel.component.d.ts +0 -207
  13. package/components/carousel/carousel.gen.d.ts +0 -358
  14. package/components/carousel/index.d.ts +0 -2
  15. package/components/collapse/collapse.component.d.ts +0 -83
  16. package/components/collapse/collapse.gen.d.ts +0 -150
  17. package/components/collapse/index.d.ts +0 -2
  18. package/components/modal/index.d.ts +0 -3
  19. package/components/modal/modal.component.d.ts +0 -220
  20. package/components/modal/modal.gen.d.ts +0 -355
  21. package/components/modal/modal.service.d.ts +0 -21
  22. package/components/pagination/index.d.ts +0 -2
  23. package/components/pagination/pagination.component.d.ts +0 -379
  24. package/components/pagination/pagination.gen.d.ts +0 -584
  25. package/components/progressbar/index.d.ts +0 -2
  26. package/components/progressbar/progressbar.component.d.ts +0 -118
  27. package/components/progressbar/progressbar.gen.d.ts +0 -196
  28. package/components/rating/index.d.ts +0 -2
  29. package/components/rating/rating.component.d.ts +0 -144
  30. package/components/rating/rating.gen.d.ts +0 -270
  31. package/components/select/index.d.ts +0 -2
  32. package/components/select/select.component.d.ts +0 -198
  33. package/components/select/select.gen.d.ts +0 -433
  34. package/components/slider/index.d.ts +0 -2
  35. package/components/slider/slider.component.d.ts +0 -234
  36. package/components/slider/slider.gen.d.ts +0 -511
  37. package/components/toast/index.d.ts +0 -4
  38. package/components/toast/toast.component.d.ts +0 -155
  39. package/components/toast/toast.gen.d.ts +0 -308
  40. package/components/toast/toaster.component.d.ts +0 -17
  41. package/components/toast/toaster.service.d.ts +0 -7
  42. package/components/tree/index.d.ts +0 -2
  43. package/components/tree/tree.component.d.ts +0 -145
  44. package/components/tree/tree.gen.d.ts +0 -216
  45. package/config.d.ts +0 -27
  46. package/config.gen.d.ts +0 -62
@@ -1,358 +0,0 @@
1
- import type { PropsConfig, WidgetSlotContext, SlotContent, Directive, Widget } from '@agnos-ui/angular-headless';
2
- import type { EmblaPluginType, EmblaPluginsType, EmblaCarouselType } from 'embla-carousel';
3
- /**
4
- * Retrieve a shallow copy of the default Carousel config
5
- * @returns the default Carousel config
6
- */
7
- declare const export_getCarouselDefaultConfig: () => CarouselProps<any>;
8
- export { export_getCarouselDefaultConfig as getCarouselDefaultConfig };
9
- /**
10
- * Create a Carousel with given config props
11
- *
12
- * @template SlideData - The type of the data for each slide.
13
- * @param config - an optional carousel config
14
- * @returns a CarouselWidget
15
- */
16
- declare const export_createCarousel: <SlideData extends {
17
- id: string;
18
- }>(config?: PropsConfig<CarouselProps<SlideData>>) => CarouselWidget<SlideData>;
19
- export { export_createCarousel as createCarousel };
20
- /**
21
- * Represents the context for a carousel.
22
- *
23
- * @template SlideData - The type of data used by each slide in the carousel.
24
- */
25
- export type CarouselContext<SlideData extends {
26
- id: string;
27
- }> = WidgetSlotContext<CarouselWidget<SlideData>>;
28
- /**
29
- * Represents the context for a carousel slide.
30
- *
31
- * @template SlideData - The type of data used by each slide in the carousel.
32
- */
33
- export type CarouselSlideContext<SlideData extends {
34
- id: string;
35
- }> = WidgetSlotContext<CarouselWidget<SlideData>> & SlideData;
36
- /**
37
- * Represents the state of a carousel component.
38
- *
39
- * @template SlideData - The type of data used by each slide in the carousel.
40
- */
41
- export interface CarouselState<SlideData extends {
42
- id: string;
43
- }> {
44
- /**
45
- * is the carousel currently scrolling
46
- */
47
- scrolling: boolean;
48
- /**
49
- * can carousel scroll to previous slide
50
- */
51
- canScrollPrev: boolean;
52
- /**
53
- * can carousel scroll to next slide
54
- */
55
- canScrollNext: boolean;
56
- /**
57
- * selected scroll snap
58
- */
59
- selectedScrollSnap: number;
60
- /**
61
- * is the carousel initialized
62
- */
63
- initialized: boolean;
64
- /**
65
- * If `true`, 'previous' and 'next' navigation arrows will be visible.
66
- */
67
- showNavigationArrows: boolean;
68
- /**
69
- * If `true`, navigation indicators at the bottom of the slide will be visible.
70
- */
71
- showNavigationIndicators: boolean;
72
- /**
73
- * Choose content direction between `ltr` and `rtl`
74
- *
75
- * @see {@link https://www.embla-carousel.com/api/options/#direction}
76
- * @defaultValue `'ltr'`
77
- */
78
- direction: 'ltr' | 'rtl';
79
- /**
80
- * CSS classes to be applied on the widget main container
81
- *
82
- * @defaultValue `''`
83
- */
84
- className: string;
85
- /**
86
- * Class name to apply to the container of the carousel.
87
- *
88
- * @defaultValue `''`
89
- */
90
- containerClass: string;
91
- /**
92
- * Class name to apply to each slide in the carousel.
93
- *
94
- * @defaultValue `''`
95
- */
96
- slideClass: string | ((slideContext: {
97
- id: string;
98
- index: number;
99
- active: boolean;
100
- }) => string);
101
- /**
102
- * The data for each slide in the carousel.
103
- *
104
- * @defaultValue `[]`
105
- */
106
- slidesData: SlideData[];
107
- /**
108
- * The structure of the carousel.
109
- *
110
- * @defaultValue `undefined`
111
- */
112
- structure: SlotContent<CarouselContext<SlideData>>;
113
- /**
114
- * The navigation layer of the carousel.
115
- *
116
- * @defaultValue `undefined`
117
- */
118
- navigation: SlotContent<CarouselContext<SlideData>>;
119
- /**
120
- * The content of each slide in the carousel.
121
- *
122
- * @defaultValue `undefined`
123
- */
124
- slide: SlotContent<CarouselSlideContext<SlideData>>;
125
- /**
126
- * The aria-live attribute value for the carousel container.
127
- *
128
- * @defaultValue `'polite'`
129
- */
130
- ariaLive: string;
131
- }
132
- /**
133
- * Interface representing the properties for a carousel component.
134
- *
135
- * @template SlideData - The type of data used by each slide in the carousel.
136
- */
137
- export interface CarouselProps<SlideData extends {
138
- id: string;
139
- }> {
140
- /**
141
- * Plugins to extend the carousel with additional features
142
- * @defaultValue `[]`
143
- */
144
- plugins: EmblaPluginType[];
145
- /**
146
- * Aria label for navigation indicators
147
- */
148
- ariaIndicatorLabel: (index: number) => string;
149
- /**
150
- * Aria label for previous button
151
- */
152
- ariaPrevLabel: string;
153
- /**
154
- * Aria label for next button
155
- */
156
- ariaNextLabel: string;
157
- /**
158
- * Align the slides relative to the carousel viewport
159
- *
160
- * @see {@link https://www.embla-carousel.com/api/options/#align}
161
- * @defaultValue `'center'`
162
- */
163
- align: 'start' | 'center' | 'end';
164
- /**
165
- * Enables choosing a custom container element which holds the slides. By default, Embla will choose the first direct child element of the root element. Provide a valid CSS selector string.
166
- *
167
- * @see {@link https://www.embla-carousel.com/api/options/#container}
168
- */
169
- container: string | null;
170
- /**
171
- * Clear leading and trailing empty space that causes excessive scrolling
172
- *
173
- * @see {@link https://www.embla-carousel.com/api/options/#containScroll}
174
- * @defaultValue `'trimSnaps'`
175
- */
176
- containScroll: false | 'trimSnaps' | 'keepSnaps';
177
- /**
178
- * Choose content direction between `ltr` and `rtl`
179
- *
180
- * @see {@link https://www.embla-carousel.com/api/options/#direction}
181
- * @defaultValue `'ltr'`
182
- */
183
- direction: 'ltr' | 'rtl';
184
- /**
185
- * Enables momentum scrolling
186
- *
187
- * @see {@link https://www.embla-carousel.com/api/options/#dragFree}
188
- * @defaultValue `false`
189
- */
190
- dragFree: boolean;
191
- /**
192
- * Drag threshold in pixels
193
- *
194
- * @see {@link https://www.embla-carousel.com/api/options/#dragThreshold}
195
- * @defaultValue `10`
196
- */
197
- dragThreshold: number;
198
- /**
199
- * Set scroll duration when triggered by any of the API methods
200
- *
201
- * @see {@link https://www.embla-carousel.com/api/options/#duration}
202
- * @defaultValue `25`
203
- */
204
- duration: number;
205
- /**
206
- * Enables infinite looping
207
- *
208
- * @see {@link https://www.embla-carousel.com/api/options/#loop}
209
- * @defaultValue `false`
210
- */
211
- loop: boolean;
212
- /**
213
- * Allow the carousel to skip scroll snaps if it's dragged vigorously
214
- *
215
- * @see {@link https://www.embla-carousel.com/api/options/#skipsnaps}
216
- * @defaultValue `false`
217
- */
218
- skipSnaps: boolean;
219
- /**
220
- * If `true`, 'previous' and 'next' navigation arrows will be visible.
221
- */
222
- showNavigationArrows: boolean;
223
- /**
224
- * If `true`, navigation indicators at the bottom of the slide will be visible.
225
- */
226
- showNavigationIndicators: boolean;
227
- /**
228
- * CSS classes to be applied on the widget main container
229
- *
230
- * @defaultValue `''`
231
- */
232
- className: string;
233
- /**
234
- * Class name to apply to the container of the carousel.
235
- *
236
- * @defaultValue `''`
237
- */
238
- containerClass: string;
239
- /**
240
- * Class name to apply to each slide in the carousel.
241
- *
242
- * @defaultValue `''`
243
- */
244
- slideClass: string | ((slideContext: {
245
- id: string;
246
- index: number;
247
- active: boolean;
248
- }) => string);
249
- /**
250
- * The data for each slide in the carousel.
251
- *
252
- * @defaultValue `[]`
253
- */
254
- slidesData: SlideData[];
255
- /**
256
- * The structure of the carousel.
257
- *
258
- * @defaultValue `undefined`
259
- */
260
- structure: SlotContent<CarouselContext<SlideData>>;
261
- /**
262
- * The navigation layer of the carousel.
263
- *
264
- * @defaultValue `undefined`
265
- */
266
- navigation: SlotContent<CarouselContext<SlideData>>;
267
- /**
268
- * The content of each slide in the carousel.
269
- *
270
- * @defaultValue `undefined`
271
- */
272
- slide: SlotContent<CarouselSlideContext<SlideData>>;
273
- /**
274
- * The aria-live attribute value for the carousel container.
275
- *
276
- * @defaultValue `'polite'`
277
- */
278
- ariaLive: string;
279
- }
280
- /**
281
- * Represents the directives for a carousel component.
282
- */
283
- export interface CarouselDirectives {
284
- /**
285
- * A directive to be applied to each slide in the carousel.
286
- */
287
- slide: Directive<{
288
- id: string;
289
- index: number;
290
- }>;
291
- /**
292
- * A directive to be applied to container of the carousel.
293
- */
294
- container: Directive;
295
- /**
296
- * the root directive
297
- */
298
- root: Directive;
299
- /**
300
- * A directive to be applied to a navigation button allowing to scroll to the previous slide.
301
- */
302
- scrollPrev: Directive;
303
- /**
304
- * A directive to be applied to a navigation button allowing to scroll to the next slide.
305
- */
306
- scrollNext: Directive;
307
- /**
308
- * A directive to be applied to a tab list allowing to navigate to the corresponding slide.
309
- * This directive adds the role `tablist` and is recommended to be used together with {@link tabIndicator}.
310
- */
311
- tabList: Directive;
312
- /**
313
- * A directive to be applied to a navigation indicator allowing to scroll to the corresponding slide.
314
- * As this directive adds the role `tab` to the element, it is recommended to use it on a button or a link and the parent element should have the {@link tabList} directive attached.
315
- */
316
- tabIndicator: Directive<{
317
- index: number;
318
- id: string;
319
- jump?: boolean;
320
- }>;
321
- }
322
- /**
323
- * Represents a carousel widget with specific properties, state, API, and directives.
324
- *
325
- * @template SlideData - The type of the data for each slide.
326
- */
327
- export type CarouselWidget<SlideData extends {
328
- id: string;
329
- }> = Widget<CarouselProps<SlideData>, CarouselState<SlideData>, CarouselApi, CarouselDirectives>;
330
- /**
331
- * Represents the API for a carousel component.
332
- */
333
- export interface CarouselApi {
334
- /**
335
- * Scroll to the previous snap point if possible.
336
- * @param jump - scroll instantly
337
- */
338
- scrollPrev: (jump?: boolean) => void;
339
- /**
340
- * Scroll to the next snap point if possible.
341
- * @param jump - scroll instantly
342
- */
343
- scrollNext: (jump?: boolean) => void;
344
- /**
345
- * Scroll to a snap point by index
346
- * @param index - the snap point index
347
- * @param jump - scroll instantly
348
- */
349
- scrollTo: (index: number, jump?: boolean) => void;
350
- /**
351
- * Retrieve the enabled plugins
352
- */
353
- plugins: () => EmblaPluginsType | undefined;
354
- /**
355
- * Retrieve the inner EmblaApi object
356
- */
357
- emblaApi: () => EmblaCarouselType | undefined;
358
- }
@@ -1,2 +0,0 @@
1
- export * from './carousel.gen';
2
- export * from './carousel.component';
@@ -1,83 +0,0 @@
1
- import { BaseWidgetDirective } from '@agnos-ui/angular-headless';
2
- import type { CollapseWidget } from '@agnos-ui/core-bootstrap/components/collapse';
3
- import { type OnInit } from '@angular/core';
4
- import * as i0 from "@angular/core";
5
- /**
6
- * Directive to control the collapse behavior of an element.
7
- */
8
- export declare class CollapseDirective extends BaseWidgetDirective<CollapseWidget> {
9
- /**
10
- * If `true`, collapse opening will be animated at init time.
11
- *
12
- * @defaultValue `false`
13
- */
14
- readonly animatedOnInit: import("@angular/core").InputSignalWithTransform<boolean | undefined, unknown>;
15
- /**
16
- * If `true`, collapse closing and opening will be animated.
17
- *
18
- * @defaultValue `true`
19
- */
20
- readonly animated: import("@angular/core").InputSignalWithTransform<boolean | undefined, unknown>;
21
- /**
22
- * CSS classes to be applied on the widget main container
23
- *
24
- * @defaultValue `''`
25
- */
26
- readonly className: import("@angular/core").InputSignal<string | undefined>;
27
- /**
28
- * If `true`, collapse will be done horizontally.
29
- *
30
- * @defaultValue `false`
31
- */
32
- readonly horizontal: import("@angular/core").InputSignalWithTransform<boolean | undefined, unknown>;
33
- /**
34
- * If `true` the collapse is visible to the user
35
- *
36
- * @defaultValue `true`
37
- */
38
- readonly visible: import("@angular/core").InputSignalWithTransform<boolean | undefined, unknown>;
39
- /**
40
- * id of the collapse
41
- *
42
- * @defaultValue `''`
43
- */
44
- readonly id: import("@angular/core").InputSignal<string | undefined>;
45
- /**
46
- * Callback called when the collapse visibility changed.
47
- *
48
- * @defaultValue
49
- * ```ts
50
- * () => {}
51
- * ```
52
- * @param visible - The new visibility state of the collapse.
53
- */
54
- readonly visibleChange: import("@angular/core").OutputEmitterRef<boolean>;
55
- /**
56
- * Callback called when the collapse is hidden.
57
- *
58
- * @defaultValue
59
- * ```ts
60
- * () => {}
61
- * ```
62
- */
63
- readonly hidden: import("@angular/core").OutputEmitterRef<void>;
64
- /**
65
- * Callback called when the collapse is shown.
66
- *
67
- * @defaultValue
68
- * ```ts
69
- * () => {}
70
- * ```
71
- */
72
- readonly shown: import("@angular/core").OutputEmitterRef<void>;
73
- constructor();
74
- static ɵfac: i0.ɵɵFactoryDeclaration<CollapseDirective, never>;
75
- static ɵdir: i0.ɵɵDirectiveDeclaration<CollapseDirective, "[auCollapse]", ["auCollapse"], { "animatedOnInit": { "alias": "auAnimatedOnInit"; "required": false; "isSignal": true; }; "animated": { "alias": "auAnimated"; "required": false; "isSignal": true; }; "className": { "alias": "auClassName"; "required": false; "isSignal": true; }; "horizontal": { "alias": "auHorizontal"; "required": false; "isSignal": true; }; "visible": { "alias": "auVisible"; "required": false; "isSignal": true; }; "id": { "alias": "auId"; "required": false; "isSignal": true; }; }, { "visibleChange": "auVisibleChange"; "hidden": "auHidden"; "shown": "auShown"; }, never, never, true, never>;
76
- }
77
- export declare class CollapseTriggerDirective implements OnInit {
78
- readonly auCollapseTrigger: import("@angular/core").InputSignal<CollapseDirective>;
79
- private readonly injector;
80
- ngOnInit(): Promise<void>;
81
- static ɵfac: i0.ɵɵFactoryDeclaration<CollapseTriggerDirective, never>;
82
- static ɵdir: i0.ɵɵDirectiveDeclaration<CollapseTriggerDirective, "[auCollapseTrigger]", never, { "auCollapseTrigger": { "alias": "auCollapseTrigger"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
83
- }
@@ -1,150 +0,0 @@
1
- import type { PropsConfig, Directive, Widget } from '@agnos-ui/angular-headless';
2
- /**
3
- * Retrieve a shallow copy of the default collapse config
4
- * @returns the default collapse config
5
- */
6
- declare const export_getCollapseDefaultConfig: () => CollapseProps;
7
- export { export_getCollapseDefaultConfig as getCollapseDefaultConfig };
8
- /**
9
- * Create an CollapseWidget with given config props
10
- * @param config - an optional collapse config
11
- * @returns an CollapseWidget
12
- */
13
- declare const export_createCollapse: (config?: PropsConfig<CollapseProps>) => CollapseWidget;
14
- export { export_createCollapse as createCollapse };
15
- /**
16
- * Represents the state of a collapse component.
17
- * Extends the properties and state from `CollapseCommonPropsAndState`.
18
- */
19
- export interface CollapseState {
20
- /**
21
- * Is `true` when the collapse is hidden. Compared to `visible`, this is updated after the transition is executed.
22
- */
23
- hidden: boolean;
24
- /**
25
- * CSS classes to be applied on the widget main container
26
- *
27
- * @defaultValue `''`
28
- */
29
- className: string;
30
- /**
31
- * If `true`, collapse will be done horizontally.
32
- *
33
- * @defaultValue `false`
34
- */
35
- horizontal: boolean;
36
- /**
37
- * If `true` the collapse is visible to the user
38
- *
39
- * @defaultValue `true`
40
- */
41
- visible: boolean;
42
- }
43
- /**
44
- * Properties for the Collapse component.
45
- */
46
- export interface CollapseProps {
47
- /**
48
- * Callback called when the collapse visibility changed.
49
- *
50
- * @defaultValue
51
- * ```ts
52
- * () => {}
53
- * ```
54
- * @param visible - The new visibility state of the collapse.
55
- */
56
- onVisibleChange: (visible: boolean) => void;
57
- /**
58
- * Callback called when the collapse is hidden.
59
- *
60
- * @defaultValue
61
- * ```ts
62
- * () => {}
63
- * ```
64
- */
65
- onHidden: () => void;
66
- /**
67
- * Callback called when the collapse is shown.
68
- *
69
- * @defaultValue
70
- * ```ts
71
- * () => {}
72
- * ```
73
- */
74
- onShown: () => void;
75
- /**
76
- * If `true`, collapse opening will be animated at init time.
77
- *
78
- * @defaultValue `false`
79
- */
80
- animatedOnInit: boolean;
81
- /**
82
- * If `true`, collapse closing and opening will be animated.
83
- *
84
- * @defaultValue `true`
85
- */
86
- animated: boolean;
87
- /**
88
- * id of the collapse
89
- *
90
- * @defaultValue `''`
91
- */
92
- id: string;
93
- /**
94
- * CSS classes to be applied on the widget main container
95
- *
96
- * @defaultValue `''`
97
- */
98
- className: string;
99
- /**
100
- * If `true`, collapse will be done horizontally.
101
- *
102
- * @defaultValue `false`
103
- */
104
- horizontal: boolean;
105
- /**
106
- * If `true` the collapse is visible to the user
107
- *
108
- * @defaultValue `true`
109
- */
110
- visible: boolean;
111
- }
112
- /**
113
- * Interface representing the API for a collapsible component.
114
- */
115
- export interface CollapseApi {
116
- /**
117
- * Triggers collapse closing programmatically.
118
- */
119
- close(): void;
120
- /**
121
- * Triggers the collapse content to be displayed for the user.
122
- */
123
- open(): void;
124
- /**
125
- * Toggles the collapse content visibility.
126
- */
127
- toggle(): void;
128
- }
129
- /**
130
- * Interface representing the directives used in a collapse component.
131
- */
132
- export interface CollapseDirectives {
133
- /**
134
- * Directive to apply the collapse.
135
- */
136
- collapseDirective: Directive;
137
- /**
138
- * Directive to apply to a trigger;
139
- */
140
- triggerDirective: Directive;
141
- }
142
- /**
143
- * Represents a widget for handling collapse functionality.
144
- *
145
- * This type defines the structure of a CollapseWidget, which includes properties, state, API, and directives
146
- * necessary for managing the collapse behavior in the UI.
147
- *
148
- * @type {Widget<CollapseProps, CollapseState, CollapseApi, CollapseDirectives>}
149
- */
150
- export type CollapseWidget = Widget<CollapseProps, CollapseState, CollapseApi, CollapseDirectives>;
@@ -1,2 +0,0 @@
1
- export * from './collapse.component';
2
- export * from './collapse.gen';
@@ -1,3 +0,0 @@
1
- export * from './modal.component';
2
- export * from './modal.gen';
3
- export * from './modal.service';