@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.
Files changed (46) hide show
  1. package/fesm2022/agnos-ui-angular-bootstrap.mjs +156 -94
  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,191 +0,0 @@
1
- import type { WidgetSlotContext, SlotContent, TransitionFn, Widget, WidgetFactory, Directive } from '@agnos-ui/angular-headless';
2
- import type { BSContextualClass } from '@agnos-ui/core-bootstrap/types';
3
- /**
4
- * Retrieve a shallow copy of the default Alert config
5
- * @returns the default Alert config
6
- */
7
- declare const export_getAlertDefaultConfig: () => AlertProps;
8
- export { export_getAlertDefaultConfig as getAlertDefaultConfig };
9
- /**
10
- * Represents the context for an Alert component.
11
- */
12
- export interface AlertContext extends WidgetSlotContext<AlertWidget> {
13
- }
14
- /**
15
- * Represents the state of an alert component.
16
- */
17
- export interface AlertState {
18
- /**
19
- * Is `true` when the alert is hidden. Compared to `visible`, this is updated after the transition is executed.
20
- */
21
- hidden: boolean;
22
- /**
23
- * If `true`, alert can be dismissed by the user.
24
- * The close button (×) will be displayed and you can be notified of the event with the (close) output.
25
- *
26
- * @defaultValue `true`
27
- */
28
- dismissible: boolean;
29
- /**
30
- * If `true` the alert is visible to the user
31
- *
32
- * @defaultValue `true`
33
- */
34
- visible: boolean;
35
- /**
36
- * Accessibility close button label
37
- *
38
- * @defaultValue `'Close'`
39
- */
40
- ariaCloseButtonLabel: string;
41
- /**
42
- * CSS classes to be applied on the widget main container
43
- *
44
- * @defaultValue `''`
45
- */
46
- className: string;
47
- /**
48
- * Global template for the alert component
49
- */
50
- structure: SlotContent<AlertContext>;
51
- /**
52
- * Template for the alert content
53
- */
54
- children: SlotContent<AlertContext>;
55
- /**
56
- * Type of the alert, following bootstrap types.
57
- *
58
- * @defaultValue `'primary'`
59
- */
60
- type: BSContextualClass;
61
- }
62
- /**
63
- * Represents the properties for the Alert component.
64
- */
65
- export interface AlertProps {
66
- /**
67
- * The transition function will be executed when the alert is displayed or hidden.
68
- *
69
- * Depending on the value of `animatedOnInit`, the animation can be optionally skipped during the showing process.
70
- *
71
- * @defaultValue `fadeTransition`
72
- */
73
- transition: TransitionFn;
74
- /**
75
- * Callback called when the alert visibility changed.
76
- *
77
- * @defaultValue
78
- * ```ts
79
- * () => {}
80
- * ```
81
- */
82
- onVisibleChange: (visible: boolean) => void;
83
- /**
84
- * Callback called when the alert is hidden.
85
- *
86
- * @defaultValue
87
- * ```ts
88
- * () => {}
89
- * ```
90
- */
91
- onHidden: () => void;
92
- /**
93
- * Callback called when the alert is shown.
94
- *
95
- * @defaultValue
96
- * ```ts
97
- * () => {}
98
- * ```
99
- */
100
- onShown: () => void;
101
- /**
102
- * If `true`, alert opening will be animated.
103
- *
104
- * Animation is triggered when the `.open()` function is called
105
- * or the visible prop is changed
106
- *
107
- * @defaultValue `false`
108
- */
109
- animatedOnInit: boolean;
110
- /**
111
- * If `true`, alert closing will be animated.
112
- *
113
- * Animation is triggered when clicked on the close button (×),
114
- * via the `.close()` function or the visible prop is changed
115
- *
116
- * @defaultValue `true`
117
- */
118
- animated: boolean;
119
- /**
120
- * If `true`, alert can be dismissed by the user.
121
- * The close button (×) will be displayed and you can be notified of the event with the (close) output.
122
- *
123
- * @defaultValue `true`
124
- */
125
- dismissible: boolean;
126
- /**
127
- * If `true` the alert is visible to the user
128
- *
129
- * @defaultValue `true`
130
- */
131
- visible: boolean;
132
- /**
133
- * Accessibility close button label
134
- *
135
- * @defaultValue `'Close'`
136
- */
137
- ariaCloseButtonLabel: string;
138
- /**
139
- * CSS classes to be applied on the widget main container
140
- *
141
- * @defaultValue `''`
142
- */
143
- className: string;
144
- /**
145
- * Global template for the alert component
146
- */
147
- structure: SlotContent<AlertContext>;
148
- /**
149
- * Template for the alert content
150
- */
151
- children: SlotContent<AlertContext>;
152
- /**
153
- * Type of the alert, following bootstrap types.
154
- *
155
- * @defaultValue `'primary'`
156
- */
157
- type: BSContextualClass;
158
- }
159
- /**
160
- * Represents an alert widget component.
161
- */
162
- export type AlertWidget = Widget<AlertProps, AlertState, AlertApi, AlertDirectives>;
163
- /**
164
- * Create an AlertWidget with given config props
165
- * @param config - an optional alert config
166
- * @returns an AlertWidget
167
- */
168
- declare const export_createAlert: WidgetFactory<AlertWidget>;
169
- export { export_createAlert as createAlert };
170
- /**
171
- * Represents the API for an alert component.
172
- */
173
- export interface AlertApi {
174
- /**
175
- * Triggers alert closing programmatically (same as clicking on the close button (×)).
176
- */
177
- close(): void;
178
- /**
179
- * Triggers the alert to be displayed for the user.
180
- */
181
- open(): void;
182
- }
183
- /**
184
- * Represents the directives for an alert component.
185
- */
186
- export interface AlertDirectives {
187
- /**
188
- * the transition directive, piloting what is the visual effect of going from hidden to visible
189
- */
190
- transitionDirective: Directive;
191
- }
@@ -1,2 +0,0 @@
1
- export * from './alert.component';
2
- export * from './alert.gen';
@@ -1,207 +0,0 @@
1
- import { BaseWidgetDirective, type SlotContent } from '@agnos-ui/angular-headless';
2
- import type { CarouselContext, CarouselSlideContext, CarouselWidget } from './carousel.gen';
3
- import type { InputSignal } from '@angular/core';
4
- import { TemplateRef } from '@angular/core';
5
- import type { EmblaPluginType } from 'embla-carousel';
6
- import * as i0 from "@angular/core";
7
- /**
8
- * Directive that provides a template reference for the carousel structure using the {@link CarouselContext}.
9
- */
10
- export declare class CarouselStructureDirective<SlideData extends {
11
- id: string;
12
- }> {
13
- templateRef: TemplateRef<any>;
14
- static ngTemplateContextGuard<SlideData extends {
15
- id: string;
16
- }>(_dir: CarouselStructureDirective<SlideData>, context: unknown): context is CarouselContext<SlideData>;
17
- static ɵfac: i0.ɵɵFactoryDeclaration<CarouselStructureDirective<any>, never>;
18
- static ɵdir: i0.ɵɵDirectiveDeclaration<CarouselStructureDirective<any>, "ng-template[auCarouselStructure]", never, {}, {}, never, never, true, never>;
19
- }
20
- /**
21
- * Directive that provides a template reference for the carousel navigation using the {@link CarouselContext}.
22
- */
23
- export declare class CarouselNavigationDirective<SlideData extends {
24
- id: string;
25
- }> {
26
- templateRef: TemplateRef<any>;
27
- static ngTemplateContextGuard<SlideData extends {
28
- id: string;
29
- }>(_dir: CarouselNavigationDirective<SlideData>, context: unknown): context is CarouselContext<SlideData>;
30
- static ɵfac: i0.ɵɵFactoryDeclaration<CarouselNavigationDirective<any>, never>;
31
- static ɵdir: i0.ɵɵDirectiveDeclaration<CarouselNavigationDirective<any>, "ng-template[auCarouselNavigation]", never, {}, {}, never, never, true, never>;
32
- }
33
- /**
34
- * Directive that provides a template reference for the carousel slide using the {@link CarouselSlideContext}.
35
- */
36
- export declare class CarouselSlideDirective<SlideData extends {
37
- id: string;
38
- }> {
39
- templateRef: TemplateRef<any>;
40
- static ngTemplateContextGuard<SlideData extends {
41
- id: string;
42
- }>(_dir: CarouselSlideDirective<SlideData>, context: unknown): context is CarouselSlideContext<SlideData>;
43
- static ɵfac: i0.ɵɵFactoryDeclaration<CarouselSlideDirective<any>, never>;
44
- static ɵdir: i0.ɵɵDirectiveDeclaration<CarouselSlideDirective<any>, "ng-template[auCarouselSlide]", never, {}, {}, never, never, true, never>;
45
- }
46
- /**
47
- * The default slot for the structure
48
- */
49
- export declare const carouselDefaultSlotStructure: SlotContent<CarouselContext<any>>;
50
- /**
51
- * The default slot for the navigation
52
- */
53
- export declare const carouselDefaultSlotNavigation: SlotContent<CarouselContext<any>>;
54
- /**
55
- * CarouselComponent is an Angular Component that extends {@link BaseWidgetDirective}<{@link CarouselWidget}>
56
- * to create a customizable carousel widget. It provides various inputs (see {@link CarouselProps})
57
- * to configure the appearance and behavior of the carousel.
58
- */
59
- export declare class CarouselComponent<SlideData extends {
60
- id: string;
61
- }> extends BaseWidgetDirective<CarouselWidget<SlideData>> {
62
- /**
63
- * Aria label for navigation indicators
64
- */
65
- readonly ariaIndicatorLabel: InputSignal<((index: number) => string) | undefined>;
66
- /**
67
- * Aria label for previous button
68
- */
69
- readonly ariaPrevLabel: InputSignal<string | undefined>;
70
- /**
71
- * Aria label for next button
72
- */
73
- readonly ariaNextLabel: InputSignal<string | undefined>;
74
- /**
75
- * Choose content direction between `ltr` and `rtl`
76
- *
77
- * @see {@link https://www.embla-carousel.com/api/options/#direction}
78
- * @defaultValue `'ltr'`
79
- */
80
- readonly direction: InputSignal<"ltr" | "rtl" | undefined>;
81
- /**
82
- * Enables momentum scrolling
83
- *
84
- * @see {@link https://www.embla-carousel.com/api/options/#dragFree}
85
- * @defaultValue `false`
86
- */
87
- readonly dragFree: import("@angular/core").InputSignalWithTransform<boolean | undefined, unknown>;
88
- /**
89
- * Drag threshold in pixels
90
- *
91
- * @see {@link https://www.embla-carousel.com/api/options/#dragThreshold}
92
- * @defaultValue `10`
93
- */
94
- readonly dragThreshold: import("@angular/core").InputSignalWithTransform<number | undefined, unknown>;
95
- /**
96
- * Set scroll duration when triggered by any of the API methods
97
- *
98
- * @see {@link https://www.embla-carousel.com/api/options/#duration}
99
- * @defaultValue `25`
100
- */
101
- readonly duration: import("@angular/core").InputSignalWithTransform<number | undefined, unknown>;
102
- /**
103
- * Enables infinite looping
104
- *
105
- * @see {@link https://www.embla-carousel.com/api/options/#loop}
106
- * @defaultValue `false`
107
- */
108
- readonly loop: import("@angular/core").InputSignalWithTransform<boolean | undefined, unknown>;
109
- /**
110
- * Allow the carousel to skip scroll snaps if it's dragged vigorously
111
- *
112
- * @see {@link https://www.embla-carousel.com/api/options/#skipsnaps}
113
- * @defaultValue `false`
114
- */
115
- readonly skipSnaps: import("@angular/core").InputSignalWithTransform<boolean | undefined, unknown>;
116
- /**
117
- * If `true`, 'previous' and 'next' navigation arrows will be visible.
118
- */
119
- readonly showNavigationArrows: import("@angular/core").InputSignalWithTransform<boolean | undefined, unknown>;
120
- /**
121
- * If `true`, navigation indicators at the bottom of the slide will be visible.
122
- */
123
- readonly showNavigationIndicators: import("@angular/core").InputSignalWithTransform<boolean | undefined, unknown>;
124
- /**
125
- * Plugins to extend the carousel with additional features
126
- * @defaultValue `[]`
127
- */
128
- readonly plugins: InputSignal<EmblaPluginType[] | undefined>;
129
- /**
130
- * Align the slides relative to the carousel viewport
131
- *
132
- * @see {@link https://www.embla-carousel.com/api/options/#align}
133
- * @defaultValue `'center'`
134
- */
135
- readonly align: InputSignal<"start" | "center" | "end" | undefined>;
136
- /**
137
- * 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.
138
- *
139
- * @see {@link https://www.embla-carousel.com/api/options/#container}
140
- */
141
- readonly container: InputSignal<string | null | undefined>;
142
- /**
143
- * Clear leading and trailing empty space that causes excessive scrolling
144
- *
145
- * @see {@link https://www.embla-carousel.com/api/options/#containScroll}
146
- * @defaultValue `'trimSnaps'`
147
- */
148
- readonly containScroll: InputSignal<false | "trimSnaps" | "keepSnaps" | undefined>;
149
- /**
150
- * CSS classes to be applied on the widget main container
151
- *
152
- * @defaultValue `''`
153
- */
154
- readonly className: InputSignal<string | undefined>;
155
- /**
156
- * Class name to apply to the container of the carousel.
157
- *
158
- * @defaultValue `''`
159
- */
160
- readonly containerClass: InputSignal<string | undefined>;
161
- /**
162
- * Class name to apply to each slide in the carousel.
163
- *
164
- * @defaultValue `''`
165
- */
166
- readonly slideClass: InputSignal<string | ((slideContext: {
167
- id: string;
168
- index: number;
169
- active: boolean;
170
- }) => string) | undefined>;
171
- /**
172
- * The aria-live attribute value for the carousel container.
173
- *
174
- * @defaultValue `'polite'`
175
- */
176
- readonly ariaLive: InputSignal<string | undefined>;
177
- /**
178
- * The data for each slide in the carousel.
179
- *
180
- * @defaultValue `[]`
181
- */
182
- readonly slidesData: InputSignal<SlideData[] | undefined>;
183
- /**
184
- * The structure of the carousel.
185
- *
186
- * @defaultValue `undefined`
187
- */
188
- readonly structure: InputSignal<SlotContent<CarouselContext<SlideData>>>;
189
- /**
190
- * The navigation layer of the carousel.
191
- *
192
- * @defaultValue `undefined`
193
- */
194
- readonly navigation: InputSignal<SlotContent<CarouselContext<SlideData>>>;
195
- /**
196
- * The content of each slide in the carousel.
197
- *
198
- * @defaultValue `undefined`
199
- */
200
- readonly slide: InputSignal<SlotContent<CarouselSlideContext<SlideData>>>;
201
- readonly slotSlideFromContent: import("@angular/core").Signal<CarouselSlideDirective<any> | undefined>;
202
- readonly slotStructureFromContent: import("@angular/core").Signal<CarouselStructureDirective<any> | undefined>;
203
- readonly slotNavigationFromContent: import("@angular/core").Signal<CarouselNavigationDirective<any> | undefined>;
204
- constructor();
205
- static ɵfac: i0.ɵɵFactoryDeclaration<CarouselComponent<any>, never>;
206
- static ɵcmp: i0.ɵɵComponentDeclaration<CarouselComponent<any>, "[auCarousel]", never, { "ariaIndicatorLabel": { "alias": "auAriaIndicatorLabel"; "required": false; "isSignal": true; }; "ariaPrevLabel": { "alias": "auAriaPrevLabel"; "required": false; "isSignal": true; }; "ariaNextLabel": { "alias": "auAriaNextLabel"; "required": false; "isSignal": true; }; "direction": { "alias": "auDirection"; "required": false; "isSignal": true; }; "dragFree": { "alias": "auDragFree"; "required": false; "isSignal": true; }; "dragThreshold": { "alias": "auDragThreshold"; "required": false; "isSignal": true; }; "duration": { "alias": "auDuration"; "required": false; "isSignal": true; }; "loop": { "alias": "auLoop"; "required": false; "isSignal": true; }; "skipSnaps": { "alias": "auSkipSnaps"; "required": false; "isSignal": true; }; "showNavigationArrows": { "alias": "auShowNavigationArrows"; "required": false; "isSignal": true; }; "showNavigationIndicators": { "alias": "auShowNavigationIndicators"; "required": false; "isSignal": true; }; "plugins": { "alias": "auPlugins"; "required": false; "isSignal": true; }; "align": { "alias": "auAlign"; "required": false; "isSignal": true; }; "container": { "alias": "auContainer"; "required": false; "isSignal": true; }; "containScroll": { "alias": "auContainScroll"; "required": false; "isSignal": true; }; "className": { "alias": "auClassName"; "required": false; "isSignal": true; }; "containerClass": { "alias": "auContainerClass"; "required": false; "isSignal": true; }; "slideClass": { "alias": "auSlideClass"; "required": false; "isSignal": true; }; "ariaLive": { "alias": "auAriaLive"; "required": false; "isSignal": true; }; "slidesData": { "alias": "auSlidesData"; "required": false; "isSignal": true; }; "structure": { "alias": "auStructure"; "required": false; "isSignal": true; }; "navigation": { "alias": "auNavigation"; "required": false; "isSignal": true; }; "slide": { "alias": "auSlide"; "required": false; "isSignal": true; }; }, {}, ["slotSlideFromContent", "slotStructureFromContent", "slotNavigationFromContent"], never, true, never>;
207
- }