@agnos-ui/angular-bootstrap 0.4.0-next.1 → 0.4.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 (80) hide show
  1. package/README.md +1 -1
  2. package/components/accordion/accordion.component.d.ts +38 -1
  3. package/components/accordion/accordion.gen.d.ts +77 -5
  4. package/components/accordion/index.d.ts +1 -1
  5. package/components/alert/alert.component.d.ts +32 -1
  6. package/components/alert/alert.gen.d.ts +61 -7
  7. package/components/alert/index.d.ts +1 -1
  8. package/components/modal/index.d.ts +1 -1
  9. package/components/modal/modal.component.d.ts +56 -4
  10. package/components/modal/modal.gen.d.ts +123 -23
  11. package/components/modal/modal.service.d.ts +1 -1
  12. package/components/pagination/index.d.ts +1 -1
  13. package/components/pagination/pagination.component.d.ts +104 -18
  14. package/components/pagination/pagination.gen.d.ts +188 -18
  15. package/components/progressbar/index.d.ts +1 -1
  16. package/components/progressbar/progressbar.component.d.ts +25 -1
  17. package/components/progressbar/progressbar.gen.d.ts +54 -1
  18. package/components/rating/index.d.ts +1 -1
  19. package/components/rating/rating.component.d.ts +46 -1
  20. package/components/rating/rating.gen.d.ts +84 -1
  21. package/components/select/index.d.ts +1 -1
  22. package/components/select/select.component.d.ts +67 -1
  23. package/components/select/select.gen.d.ts +121 -1
  24. package/components/slider/index.d.ts +1 -1
  25. package/components/slider/slider.component.d.ts +49 -1
  26. package/components/slider/slider.gen.d.ts +98 -3
  27. package/components/toast/index.d.ts +1 -1
  28. package/components/toast/toast.component.d.ts +35 -1
  29. package/components/toast/toast.gen.d.ts +65 -7
  30. package/esm2022/components/accordion/accordion.component.mjs +12 -2
  31. package/esm2022/components/accordion/accordion.gen.mjs +33 -2
  32. package/esm2022/components/accordion/index.mjs +2 -2
  33. package/esm2022/components/alert/alert.component.mjs +17 -2
  34. package/esm2022/components/alert/alert.gen.mjs +15 -2
  35. package/esm2022/components/alert/index.mjs +2 -2
  36. package/esm2022/components/modal/index.mjs +2 -2
  37. package/esm2022/components/modal/modal.component.mjs +28 -3
  38. package/esm2022/components/modal/modal.gen.mjs +27 -2
  39. package/esm2022/components/modal/modal.service.mjs +1 -1
  40. package/esm2022/components/pagination/index.mjs +2 -2
  41. package/esm2022/components/pagination/pagination.component.mjs +6 -2
  42. package/esm2022/components/pagination/pagination.gen.mjs +15 -2
  43. package/esm2022/components/progressbar/index.mjs +2 -2
  44. package/esm2022/components/progressbar/progressbar.component.mjs +2 -2
  45. package/esm2022/components/progressbar/progressbar.gen.mjs +15 -2
  46. package/esm2022/components/rating/index.mjs +2 -2
  47. package/esm2022/components/rating/rating.component.mjs +17 -2
  48. package/esm2022/components/rating/rating.gen.mjs +15 -2
  49. package/esm2022/components/select/index.mjs +2 -2
  50. package/esm2022/components/select/select.component.mjs +19 -2
  51. package/esm2022/components/select/select.gen.mjs +15 -2
  52. package/esm2022/components/slider/index.mjs +2 -2
  53. package/esm2022/components/slider/slider.component.mjs +7 -2
  54. package/esm2022/components/slider/slider.gen.mjs +15 -2
  55. package/esm2022/components/toast/index.mjs +2 -2
  56. package/esm2022/components/toast/toast.component.mjs +17 -2
  57. package/esm2022/components/toast/toast.gen.mjs +15 -2
  58. package/esm2022/index.mjs +3 -3
  59. package/fesm2022/agnos-ui-angular-bootstrap.mjs +251 -40
  60. package/fesm2022/agnos-ui-angular-bootstrap.mjs.map +1 -1
  61. package/index.d.ts +2 -2
  62. package/package.json +5 -5
  63. package/components/accordion/accordion.d.ts +0 -6
  64. package/components/alert/alert.d.ts +0 -5
  65. package/components/modal/modal.d.ts +0 -6
  66. package/components/pagination/pagination.d.ts +0 -5
  67. package/components/progressbar/progressbar.d.ts +0 -5
  68. package/components/rating/rating.d.ts +0 -5
  69. package/components/select/select.d.ts +0 -5
  70. package/components/slider/slider.d.ts +0 -5
  71. package/components/toast/toast.d.ts +0 -5
  72. package/esm2022/components/accordion/accordion.mjs +0 -5
  73. package/esm2022/components/alert/alert.mjs +0 -4
  74. package/esm2022/components/modal/modal.mjs +0 -5
  75. package/esm2022/components/pagination/pagination.mjs +0 -4
  76. package/esm2022/components/progressbar/progressbar.mjs +0 -4
  77. package/esm2022/components/rating/rating.mjs +0 -4
  78. package/esm2022/components/select/select.mjs +0 -4
  79. package/esm2022/components/slider/slider.mjs +0 -4
  80. package/esm2022/components/toast/toast.mjs +0 -4
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # @agnos-ui/angular
1
+ # @agnos-ui/angular-bootstrap
2
2
 
3
3
  [![npm](https://img.shields.io/npm/v/@agnos-ui/angular-bootstrap)](https://www.npmjs.com/package/@agnos-ui/angular-bootstrap)
4
4
 
@@ -2,7 +2,7 @@ import type { SlotContent, TransitionFn } from '@agnos-ui/angular-headless';
2
2
  import { BaseWidgetDirective, ComponentTemplate } from '@agnos-ui/angular-headless';
3
3
  import type { AfterContentChecked, AfterViewInit } from '@angular/core';
4
4
  import { EventEmitter, TemplateRef } from '@angular/core';
5
- import type { AccordionItemContext, AccordionItemProps, AccordionItemWidget, AccordionWidget } from './accordion';
5
+ import type { AccordionItemContext, AccordionItemProps, AccordionItemWidget, AccordionWidget } from './accordion.gen';
6
6
  import * as i0 from "@angular/core";
7
7
  export declare class AccordionBodyDirective {
8
8
  templateRef: TemplateRef<any>;
@@ -63,6 +63,8 @@ export declare class AccordionItemComponent extends BaseWidgetDirective<Accordio
63
63
  transition: TransitionFn | undefined;
64
64
  /**
65
65
  * CSS classes to be applied on the widget main container
66
+ *
67
+ * @defaultValue `''`
66
68
  */
67
69
  className: string | undefined;
68
70
  /**
@@ -132,34 +134,57 @@ export declare class AccordionItemComponent extends BaseWidgetDirective<Accordio
132
134
  export declare class AccordionDirective extends BaseWidgetDirective<AccordionWidget> {
133
135
  /**
134
136
  * If `true`, only one accordion-item at the time can stay open.
137
+ *
138
+ * @defaultValue `false`
135
139
  */
136
140
  closeOthers: boolean | undefined;
137
141
  /**
138
142
  * CSS classes to be applied on the widget main container
143
+ *
144
+ * @defaultValue `''`
139
145
  */
140
146
  className: string | undefined;
141
147
  /**
142
148
  * An event fired when an item is shown.
143
149
  *
144
150
  * Event payload is the id of the item.
151
+ *
152
+ * @defaultValue
153
+ * ```ts
154
+ * () => {}
155
+ * ```
145
156
  */
146
157
  itemShown: EventEmitter<string>;
147
158
  /**
148
159
  * An event fired when an item is hidden.
149
160
  *
150
161
  * Event payload is the id of the item.
162
+ *
163
+ * @defaultValue
164
+ * ```ts
165
+ * () => {}
166
+ * ```
151
167
  */
152
168
  itemHidden: EventEmitter<string>;
153
169
  /**
154
170
  * If `true`, the accordion-item body container will be removed from the DOM when the accordion-item is collapsed. It will be just hidden otherwise.
171
+ *
172
+ * @defaultValue `true`
155
173
  */
156
174
  itemDestroyOnHide: boolean | undefined;
157
175
  /**
158
176
  * If `true`, accordion-item will be animated.
177
+ *
178
+ * @defaultValue `true`
159
179
  */
160
180
  itemAnimated: boolean | undefined;
161
181
  /**
162
182
  * The transition to use for the accordion-item body-container when the accordion-item is toggled.
183
+ *
184
+ * @defaultValue
185
+ * ```ts
186
+ * collapseVerticalTransition
187
+ * ```
163
188
  */
164
189
  itemTransition: TransitionFn | undefined;
165
190
  /**
@@ -173,27 +198,39 @@ export declare class AccordionDirective extends BaseWidgetDirective<AccordionWid
173
198
  itemStructure: SlotContent<AccordionItemContext>;
174
199
  /**
175
200
  * CSS classes to add on the accordion-item DOM element.
201
+ *
202
+ * @defaultValue `''`
176
203
  */
177
204
  itemClassName: string | undefined;
178
205
  /**
179
206
  * CSS classes to add on the accordion-item header DOM element.
207
+ *
208
+ * @defaultValue `''`
180
209
  */
181
210
  itemHeaderClassName: string | undefined;
182
211
  /**
183
212
  * CSS classes to add on the accordion-item toggle button DOM element.
213
+ *
214
+ * @defaultValue `''`
184
215
  */
185
216
  itemButtonClassName: string | undefined;
186
217
  /**
187
218
  * CSS classes to add on the accordion-item body container DOM element.
188
219
  * The accordion-item body container is the DOM element on what the itemTransition is applied.
220
+ *
221
+ * @defaultValue `''`
189
222
  */
190
223
  itemBodyContainerClassName: string | undefined;
191
224
  /**
192
225
  * CSS classes to add on the accordion-item body DOM element.
226
+ *
227
+ * @defaultValue `''`
193
228
  */
194
229
  itemBodyClassName: string | undefined;
195
230
  /**
196
231
  * The html tag to use for the accordion-item-header.
232
+ *
233
+ * @defaultValue `''`
197
234
  */
198
235
  itemHeadingTag: string | undefined;
199
236
  readonly _widget: import("@agnos-ui/angular-headless").AngularWidget<AccordionWidget>;
@@ -1,4 +1,10 @@
1
- import type { WidgetSlotContext, SlotContent, TransitionFn, Widget, PropsConfig, Directive } from '@agnos-ui/angular-headless';
1
+ import type { WidgetSlotContext, SlotContent, TransitionFn, Widget, WidgetFactory, ConfigValidator, PropsConfig, Directive } from '@agnos-ui/angular-headless';
2
+ /**
3
+ * Retrieve a shallow copy of the default accordion config
4
+ * @returns the default accordion config
5
+ */
6
+ declare const export_getAccordionDefaultConfig: () => AccordionProps;
7
+ export { export_getAccordionDefaultConfig as getAccordionDefaultConfig };
2
8
  export type AccordionItemContext = WidgetSlotContext<AccordionItemWidget>;
3
9
  export interface AccordionState {
4
10
  /**
@@ -7,6 +13,8 @@ export interface AccordionState {
7
13
  itemWidgets: AccordionItemWidget[];
8
14
  /**
9
15
  * CSS classes to be applied on the widget main container
16
+ *
17
+ * @defaultValue `''`
10
18
  */
11
19
  className: string;
12
20
  /**
@@ -20,61 +28,96 @@ export interface AccordionState {
20
28
  itemStructure: SlotContent<AccordionItemContext>;
21
29
  }
22
30
  export interface AccordionProps {
31
+ /**
32
+ * The transition to use for the accordion-item body-container when the accordion-item is toggled.
33
+ *
34
+ * @defaultValue
35
+ * ```ts
36
+ * collapseVerticalTransition
37
+ * ```
38
+ */
39
+ itemTransition: TransitionFn;
23
40
  /**
24
41
  * If `true`, only one accordion-item at the time can stay open.
42
+ *
43
+ * @defaultValue `false`
25
44
  */
26
45
  closeOthers: boolean;
27
46
  /**
28
47
  * An event fired when an item is shown.
29
48
  *
30
49
  * Event payload is the id of the item.
50
+ *
51
+ * @defaultValue
52
+ * ```ts
53
+ * () => {}
54
+ * ```
31
55
  */
32
56
  onItemShown: (itemId: string) => void;
33
57
  /**
34
58
  * An event fired when an item is hidden.
35
59
  *
36
60
  * Event payload is the id of the item.
61
+ *
62
+ * @defaultValue
63
+ * ```ts
64
+ * () => {}
65
+ * ```
37
66
  */
38
67
  onItemHidden: (itemId: string) => void;
39
68
  /**
40
69
  * If `true`, the accordion-item body container will be removed from the DOM when the accordion-item is collapsed. It will be just hidden otherwise.
70
+ *
71
+ * @defaultValue `true`
41
72
  */
42
73
  itemDestroyOnHide: boolean;
43
74
  /**
44
75
  * If `true`, accordion-item will be animated.
76
+ *
77
+ * @defaultValue `true`
45
78
  */
46
79
  itemAnimated: boolean;
47
- /**
48
- * The transition to use for the accordion-item body-container when the accordion-item is toggled.
49
- */
50
- itemTransition: TransitionFn;
51
80
  /**
52
81
  * CSS classes to add on the accordion-item DOM element.
82
+ *
83
+ * @defaultValue `''`
53
84
  */
54
85
  itemClassName: string;
55
86
  /**
56
87
  * CSS classes to add on the accordion-item header DOM element.
88
+ *
89
+ * @defaultValue `''`
57
90
  */
58
91
  itemHeaderClassName: string;
59
92
  /**
60
93
  * CSS classes to add on the accordion-item toggle button DOM element.
94
+ *
95
+ * @defaultValue `''`
61
96
  */
62
97
  itemButtonClassName: string;
63
98
  /**
64
99
  * CSS classes to add on the accordion-item body container DOM element.
65
100
  * The accordion-item body container is the DOM element on what the itemTransition is applied.
101
+ *
102
+ * @defaultValue `''`
66
103
  */
67
104
  itemBodyContainerClassName: string;
68
105
  /**
69
106
  * CSS classes to add on the accordion-item body DOM element.
107
+ *
108
+ * @defaultValue `''`
70
109
  */
71
110
  itemBodyClassName: string;
72
111
  /**
73
112
  * The html tag to use for the accordion-item-header.
113
+ *
114
+ * @defaultValue `''`
74
115
  */
75
116
  itemHeadingTag: string;
76
117
  /**
77
118
  * CSS classes to be applied on the widget main container
119
+ *
120
+ * @defaultValue `''`
78
121
  */
79
122
  className: string;
80
123
  /**
@@ -130,6 +173,8 @@ export interface AccordionItemState {
130
173
  headingTag: string;
131
174
  /**
132
175
  * CSS classes to be applied on the widget main container
176
+ *
177
+ * @defaultValue `''`
133
178
  */
134
179
  className: string;
135
180
  /**
@@ -217,6 +262,8 @@ export interface AccordionItemProps {
217
262
  headingTag: string;
218
263
  /**
219
264
  * CSS classes to be applied on the widget main container
265
+ *
266
+ * @defaultValue `''`
220
267
  */
221
268
  className: string;
222
269
  /**
@@ -242,6 +289,31 @@ export interface AccordionItemProps {
242
289
  header: SlotContent<AccordionItemContext>;
243
290
  }
244
291
  export type AccordionItemWidget = Widget<AccordionItemProps, AccordionItemState, AccordionItemApi, AccordionItemActions, AccordionItemDirectives>;
292
+ /**
293
+ * Create an AccordionItemWidget with given config props
294
+ * @param config - an optional AccordionItem config
295
+ * @returns an AccordionItemWidget
296
+ */
297
+ declare const export_createAccordionItem: WidgetFactory<AccordionItemWidget>;
298
+ export { export_createAccordionItem as createAccordionItem };
299
+ /**
300
+ * Create an AccordionWidget with given config props
301
+ * @param config - an optional accordion config
302
+ * @returns an AccordionWidget
303
+ */
304
+ declare const export_createAccordion: WidgetFactory<AccordionWidget>;
305
+ export { export_createAccordion as createAccordion };
306
+ /**
307
+ * Create an accordion WidgetFactory based on a item factory and the list of item props that should inherit from the parent accordion
308
+ *
309
+ * @param itemFactory - the item factory
310
+ * @param accordionItemProps - the list of item props
311
+ * @param accordionConfig - the default accordion config
312
+ * @param accordionValidator - the validator of props
313
+ * @returns the accordion widget factory
314
+ */
315
+ declare const export_factoryCreateAccordion: (itemFactory?: WidgetFactory<AccordionItemWidget>, accordionItemProps?: string[], accordionConfig?: AccordionProps, accordionValidator?: ConfigValidator<AccordionProps>) => WidgetFactory<AccordionWidget>;
316
+ export { export_factoryCreateAccordion as factoryCreateAccordion };
245
317
  export interface AccordionApi {
246
318
  /**
247
319
  * Given the itemId, will expand the corresponding accordion-item.
@@ -1,2 +1,2 @@
1
- export * from './accordion';
2
1
  export * from './accordion.component';
2
+ export * from './accordion.gen';
@@ -1,6 +1,6 @@
1
1
  import type { SlotContent, TransitionFn } from '@agnos-ui/angular-headless';
2
2
  import { BaseWidgetDirective, ComponentTemplate } from '@agnos-ui/angular-headless';
3
- import type { AlertContext, AlertProps, AlertWidget } from './alert';
3
+ import type { AlertContext, AlertProps, AlertWidget } from './alert.gen';
4
4
  import { type WritableSignal } from '@amadeus-it-group/tansu';
5
5
  import type { AfterContentChecked } from '@angular/core';
6
6
  import { EventEmitter, TemplateRef } from '@angular/core';
@@ -28,21 +28,29 @@ export type PartialAlertProps = Partial<AlertProps>;
28
28
  export declare class AlertComponent extends BaseWidgetDirective<AlertWidget> implements AfterContentChecked {
29
29
  /**
30
30
  * Type of the alert, following bootstrap types.
31
+ *
32
+ * @defaultValue `'primary'`
31
33
  */
32
34
  type: BSContextualClass | undefined;
33
35
  /**
34
36
  * If `true`, alert can be dismissed by the user.
35
37
  * The close button (×) will be displayed and you can be notified of the event with the (close) output.
38
+ *
39
+ * @defaultValue `true`
36
40
  */
37
41
  dismissible: boolean | undefined;
38
42
  /**
39
43
  * The transition function will be executed when the alert is displayed or hidden.
40
44
  *
41
45
  * Depending on the value of `animatedOnInit`, the animation can be optionally skipped during the showing process.
46
+ *
47
+ * @defaultValue `fadeTransition`
42
48
  */
43
49
  transition: TransitionFn | undefined;
44
50
  /**
45
51
  * If `true` the alert is visible to the user
52
+ *
53
+ * @defaultValue `true`
46
54
  */
47
55
  visible: boolean | undefined;
48
56
  /**
@@ -50,6 +58,8 @@ export declare class AlertComponent extends BaseWidgetDirective<AlertWidget> imp
50
58
  *
51
59
  * Animation is triggered when the `.open()` function is called
52
60
  * or the visible prop is changed
61
+ *
62
+ * @defaultValue `false`
53
63
  */
54
64
  animatedOnInit: boolean | undefined;
55
65
  /**
@@ -57,10 +67,14 @@ export declare class AlertComponent extends BaseWidgetDirective<AlertWidget> imp
57
67
  *
58
68
  * Animation is triggered when clicked on the close button (×),
59
69
  * via the `.close()` function or the visible prop is changed
70
+ *
71
+ * @defaultValue `true`
60
72
  */
61
73
  animated: boolean | undefined;
62
74
  /**
63
75
  * Accessibility close button label
76
+ *
77
+ * @defaultValue `'Close'`
64
78
  */
65
79
  ariaCloseButtonLabel: string | undefined;
66
80
  /**
@@ -75,19 +89,36 @@ export declare class AlertComponent extends BaseWidgetDirective<AlertWidget> imp
75
89
  slotStructureFromContent: AlertStructureDirective | undefined;
76
90
  /**
77
91
  * Callback called when the alert visibility changed.
92
+ *
93
+ * @defaultValue
94
+ * ```ts
95
+ * () => {}
96
+ * ```
78
97
  */
79
98
  visibleChange: EventEmitter<boolean>;
80
99
  /**
81
100
  * Callback called when the alert is hidden.
101
+ *
102
+ * @defaultValue
103
+ * ```ts
104
+ * () => {}
105
+ * ```
82
106
  */
83
107
  hidden: EventEmitter<void>;
84
108
  /**
85
109
  * Callback called when the alert is shown.
110
+ *
111
+ * @defaultValue
112
+ * ```ts
113
+ * () => {}
114
+ * ```
86
115
  */
87
116
  shown: EventEmitter<void>;
88
117
  readonly defaultSlots: WritableSignal<PartialAlertProps>;
89
118
  /**
90
119
  * CSS classes to be applied on the widget main container
120
+ *
121
+ * @defaultValue `''`
91
122
  */
92
123
  className: string | undefined;
93
124
  readonly _widget: import("@agnos-ui/angular-headless").AngularWidget<AlertWidget>;
@@ -1,5 +1,11 @@
1
- import type { WidgetSlotContext, SlotContent, TransitionFn, Widget, Directive } from '@agnos-ui/angular-headless';
1
+ import type { WidgetSlotContext, SlotContent, TransitionFn, Widget, WidgetFactory, Directive } from '@agnos-ui/angular-headless';
2
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 };
3
9
  export type AlertContext = WidgetSlotContext<AlertWidget>;
4
10
  export interface AlertState {
5
11
  /**
@@ -9,18 +15,26 @@ export interface AlertState {
9
15
  /**
10
16
  * If `true`, alert can be dismissed by the user.
11
17
  * The close button (×) will be displayed and you can be notified of the event with the (close) output.
18
+ *
19
+ * @defaultValue `true`
12
20
  */
13
21
  dismissible: boolean;
14
22
  /**
15
23
  * If `true` the alert is visible to the user
24
+ *
25
+ * @defaultValue `true`
16
26
  */
17
27
  visible: boolean;
18
28
  /**
19
29
  * Accessibility close button label
30
+ *
31
+ * @defaultValue `'Close'`
20
32
  */
21
33
  ariaCloseButtonLabel: string;
22
34
  /**
23
35
  * CSS classes to be applied on the widget main container
36
+ *
37
+ * @defaultValue `''`
24
38
  */
25
39
  className: string;
26
40
  /**
@@ -33,33 +47,54 @@ export interface AlertState {
33
47
  children: SlotContent<AlertContext>;
34
48
  /**
35
49
  * Type of the alert, following bootstrap types.
50
+ *
51
+ * @defaultValue `'primary'`
36
52
  */
37
53
  type: BSContextualClass;
38
54
  }
39
55
  export interface AlertProps {
56
+ /**
57
+ * The transition function will be executed when the alert is displayed or hidden.
58
+ *
59
+ * Depending on the value of `animatedOnInit`, the animation can be optionally skipped during the showing process.
60
+ *
61
+ * @defaultValue `fadeTransition`
62
+ */
63
+ transition: TransitionFn;
40
64
  /**
41
65
  * Callback called when the alert visibility changed.
66
+ *
67
+ * @defaultValue
68
+ * ```ts
69
+ * () => {}
70
+ * ```
42
71
  */
43
72
  onVisibleChange: (visible: boolean) => void;
44
73
  /**
45
74
  * Callback called when the alert is hidden.
75
+ *
76
+ * @defaultValue
77
+ * ```ts
78
+ * () => {}
79
+ * ```
46
80
  */
47
81
  onHidden: () => void;
48
82
  /**
49
83
  * Callback called when the alert is shown.
50
- */
51
- onShown: () => void;
52
- /**
53
- * The transition function will be executed when the alert is displayed or hidden.
54
84
  *
55
- * Depending on the value of `animatedOnInit`, the animation can be optionally skipped during the showing process.
85
+ * @defaultValue
86
+ * ```ts
87
+ * () => {}
88
+ * ```
56
89
  */
57
- transition: TransitionFn;
90
+ onShown: () => void;
58
91
  /**
59
92
  * If `true`, alert opening will be animated.
60
93
  *
61
94
  * Animation is triggered when the `.open()` function is called
62
95
  * or the visible prop is changed
96
+ *
97
+ * @defaultValue `false`
63
98
  */
64
99
  animatedOnInit: boolean;
65
100
  /**
@@ -67,23 +102,33 @@ export interface AlertProps {
67
102
  *
68
103
  * Animation is triggered when clicked on the close button (×),
69
104
  * via the `.close()` function or the visible prop is changed
105
+ *
106
+ * @defaultValue `true`
70
107
  */
71
108
  animated: boolean;
72
109
  /**
73
110
  * If `true`, alert can be dismissed by the user.
74
111
  * The close button (×) will be displayed and you can be notified of the event with the (close) output.
112
+ *
113
+ * @defaultValue `true`
75
114
  */
76
115
  dismissible: boolean;
77
116
  /**
78
117
  * If `true` the alert is visible to the user
118
+ *
119
+ * @defaultValue `true`
79
120
  */
80
121
  visible: boolean;
81
122
  /**
82
123
  * Accessibility close button label
124
+ *
125
+ * @defaultValue `'Close'`
83
126
  */
84
127
  ariaCloseButtonLabel: string;
85
128
  /**
86
129
  * CSS classes to be applied on the widget main container
130
+ *
131
+ * @defaultValue `''`
87
132
  */
88
133
  className: string;
89
134
  /**
@@ -96,10 +141,19 @@ export interface AlertProps {
96
141
  children: SlotContent<AlertContext>;
97
142
  /**
98
143
  * Type of the alert, following bootstrap types.
144
+ *
145
+ * @defaultValue `'primary'`
99
146
  */
100
147
  type: BSContextualClass;
101
148
  }
102
149
  export type AlertWidget = Widget<AlertProps, AlertState, AlertApi, object, AlertDirectives>;
150
+ /**
151
+ * Create an AlertWidget with given config props
152
+ * @param config - an optional alert config
153
+ * @returns an AlertWidget
154
+ */
155
+ declare const export_createAlert: WidgetFactory<AlertWidget>;
156
+ export { export_createAlert as createAlert };
103
157
  export interface AlertApi {
104
158
  /**
105
159
  * Triggers alert closing programmatically (same as clicking on the close button (×)).
@@ -1,2 +1,2 @@
1
- export * from './alert';
2
1
  export * from './alert.component';
2
+ export * from './alert.gen';
@@ -1,3 +1,3 @@
1
- export * from './modal';
2
1
  export * from './modal.component';
2
+ export * from './modal.gen';
3
3
  export * from './modal.service';