@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
@@ -1,5 +1,11 @@
1
- import type { WidgetSlotContext, SlotContent, Widget, Directive } from '@agnos-ui/angular-headless';
1
+ import type { WidgetSlotContext, SlotContent, 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 Progressbar config
5
+ * @returns the default Progressbar config
6
+ */
7
+ declare const export_getProgressbarDefaultConfig: () => ProgressbarProps;
8
+ export { export_getProgressbarDefaultConfig as getProgressbarDefaultConfig };
3
9
  export type ProgressbarContext = WidgetSlotContext<ProgressbarWidget>;
4
10
  export interface ProgressbarState {
5
11
  /**
@@ -20,22 +26,32 @@ export interface ProgressbarState {
20
26
  ariaValueText: string | undefined;
21
27
  /**
22
28
  * The minimum value.
29
+ *
30
+ * @defaultValue `0`
23
31
  */
24
32
  min: number;
25
33
  /**
26
34
  * The maximum value.
35
+ *
36
+ * @defaultValue `100`
27
37
  */
28
38
  max: number;
29
39
  /**
30
40
  * The current value.
41
+ *
42
+ * @defaultValue `0`
31
43
  */
32
44
  value: number;
33
45
  /**
34
46
  * The aria label.
47
+ *
48
+ * @defaultValue `'Progressbar'`
35
49
  */
36
50
  ariaLabel: string;
37
51
  /**
38
52
  * CSS classes to be applied on the widget main container
53
+ *
54
+ * @defaultValue `''`
39
55
  */
40
56
  className: string;
41
57
  /**
@@ -48,15 +64,21 @@ export interface ProgressbarState {
48
64
  children: SlotContent<ProgressbarContext>;
49
65
  /**
50
66
  * Height of the progressbar, can be any valid css height value.
67
+ *
68
+ * @defaultValue `''`
51
69
  */
52
70
  height: string;
53
71
  /**
54
72
  * If `true`, shows a striped progressbar.
73
+ *
74
+ * @defaultValue `false`
55
75
  */
56
76
  striped: boolean;
57
77
  /**
58
78
  * If `true`, animates a striped progressbar.
59
79
  * Takes effect only for browsers supporting CSS3 animations, and if `striped` is `true`.
80
+ *
81
+ * @defaultValue `false`
60
82
  */
61
83
  animated: boolean;
62
84
  /**
@@ -67,26 +89,44 @@ export interface ProgressbarState {
67
89
  export interface ProgressbarProps {
68
90
  /**
69
91
  * Return the value for the 'aria-valuetext' attribute.
92
+ * @param value - current value
93
+ * @param minimum - minimum value
94
+ * @param maximum - maximum value
95
+ *
96
+ * @defaultValue
97
+ * ```ts
98
+ * () => undefined
99
+ * ```
70
100
  */
71
101
  ariaValueTextFn: (value: number, minimum: number, maximum: number) => string | undefined;
72
102
  /**
73
103
  * The minimum value.
104
+ *
105
+ * @defaultValue `0`
74
106
  */
75
107
  min: number;
76
108
  /**
77
109
  * The maximum value.
110
+ *
111
+ * @defaultValue `100`
78
112
  */
79
113
  max: number;
80
114
  /**
81
115
  * The current value.
116
+ *
117
+ * @defaultValue `0`
82
118
  */
83
119
  value: number;
84
120
  /**
85
121
  * The aria label.
122
+ *
123
+ * @defaultValue `'Progressbar'`
86
124
  */
87
125
  ariaLabel: string;
88
126
  /**
89
127
  * CSS classes to be applied on the widget main container
128
+ *
129
+ * @defaultValue `''`
90
130
  */
91
131
  className: string;
92
132
  /**
@@ -99,15 +139,21 @@ export interface ProgressbarProps {
99
139
  children: SlotContent<ProgressbarContext>;
100
140
  /**
101
141
  * Height of the progressbar, can be any valid css height value.
142
+ *
143
+ * @defaultValue `''`
102
144
  */
103
145
  height: string;
104
146
  /**
105
147
  * If `true`, shows a striped progressbar.
148
+ *
149
+ * @defaultValue `false`
106
150
  */
107
151
  striped: boolean;
108
152
  /**
109
153
  * If `true`, animates a striped progressbar.
110
154
  * Takes effect only for browsers supporting CSS3 animations, and if `striped` is `true`.
155
+ *
156
+ * @defaultValue `false`
111
157
  */
112
158
  animated: boolean;
113
159
  /**
@@ -116,6 +162,13 @@ export interface ProgressbarProps {
116
162
  type: BSContextualClass | undefined;
117
163
  }
118
164
  export type ProgressbarWidget = Widget<ProgressbarProps, ProgressbarState, ProgressbarApi, object, ProgressbarDirectives>;
165
+ /**
166
+ * Create a Progressbar with given config props
167
+ * @param config - an optional progressbar config
168
+ * @returns a ProgressbarWidget
169
+ */
170
+ declare const export_createProgressbar: WidgetFactory<ProgressbarWidget>;
171
+ export { export_createProgressbar as createProgressbar };
119
172
  export interface ProgressbarDirectives {
120
173
  /**
121
174
  * A directive to be applied to the main container that handles aria attributes.
@@ -1,2 +1,2 @@
1
1
  export * from './rating.component';
2
- export * from './rating';
2
+ export * from './rating.gen';
@@ -3,7 +3,7 @@ import { BaseWidgetDirective } from '@agnos-ui/angular-headless';
3
3
  import type { AfterContentChecked } from '@angular/core';
4
4
  import { EventEmitter, TemplateRef } from '@angular/core';
5
5
  import type { ControlValueAccessor } from '@angular/forms';
6
- import type { RatingWidget, StarContext } from './rating';
6
+ import type { RatingWidget, StarContext } from './rating.gen';
7
7
  import * as i0 from "@angular/core";
8
8
  export declare class RatingStarDirective {
9
9
  templateRef: TemplateRef<any>;
@@ -17,68 +17,113 @@ export declare class RatingComponent extends BaseWidgetDirective<RatingWidget> i
17
17
  onTouched: () => void;
18
18
  /**
19
19
  * Return the value for the 'aria-valuetext' attribute.
20
+ * @param rating - Current rating value.
21
+ * @param maxRating - maxRating value.
22
+ *
23
+ * @defaultValue
24
+ * ```ts
25
+ * (rating: number, maxRating: number) => `${rating} out of ${maxRating}`
26
+ * ```
20
27
  */
21
28
  ariaValueTextFn: ((rating: number, maxRating: number) => string) | undefined;
22
29
  /**
23
30
  * If `true`, the rating is disabled.
31
+ *
32
+ * @defaultValue `false`
24
33
  */
25
34
  disabled: boolean | undefined;
26
35
  /**
27
36
  * The maximum rating that can be given.
37
+ *
38
+ * @defaultValue `10`
28
39
  */
29
40
  maxRating: number | undefined;
30
41
  /**
31
42
  * The current rating. Could be a decimal value like `3.75`.
43
+ *
44
+ * @defaultValue `0`
32
45
  */
33
46
  rating: number | undefined;
34
47
  /**
35
48
  * If `true`, the rating can't be changed.
49
+ *
50
+ * @defaultValue `false`
36
51
  */
37
52
  readonly: boolean | undefined;
38
53
  /**
39
54
  * Define if the rating can be reset.
40
55
  *
41
56
  * If set to true, the user can 'unset' the rating value by cliking on the current rating value.
57
+ *
58
+ * @defaultValue `true`
42
59
  */
43
60
  resettable: boolean | undefined;
44
61
  /**
45
62
  * The template to override the way each star is displayed.
63
+ *
64
+ * @defaultValue
65
+ * ```ts
66
+ * ({fill}: StarContext) => String.fromCharCode(fill === 100 ? 9733 : 9734)
67
+ * ```
46
68
  */
47
69
  star: SlotContent<StarContext>;
48
70
  slotStarFromContent: RatingStarDirective | undefined;
49
71
  /**
50
72
  * Allows setting a custom rating tabindex.
51
73
  * If the component is disabled, `tabindex` will still be set to `-1`.
74
+ *
75
+ * @defaultValue `0`
52
76
  */
53
77
  tabindex: number | undefined;
54
78
  /**
55
79
  * CSS classes to be applied on the widget main container
80
+ *
81
+ * @defaultValue `''`
56
82
  */
57
83
  className: string | undefined;
58
84
  /**
59
85
  * The aria label
86
+ *
87
+ * @defaultValue `'Rating'`
60
88
  */
61
89
  ariaLabel: string | undefined;
62
90
  /**
63
91
  * The aria labelled by
92
+ *
93
+ * @defaultValue `''`
64
94
  */
65
95
  ariaLabelledBy: string | undefined;
66
96
  /**
67
97
  * An event emitted when the user is hovering over a given rating.
68
98
  *
69
99
  * Event payload is equal to the rating being hovered over.
100
+ *
101
+ * @defaultValue
102
+ * ```ts
103
+ * () => {}
104
+ * ```
70
105
  */
71
106
  hover: EventEmitter<number>;
72
107
  /**
73
108
  * An event emitted when the user stops hovering over a given rating.
74
109
  *
75
110
  * Event payload is equal to the rating of the last item being hovered over.
111
+ *
112
+ * @defaultValue
113
+ * ```ts
114
+ * () => {}
115
+ * ```
76
116
  */
77
117
  leave: EventEmitter<number>;
78
118
  /**
79
119
  * An event emitted when the rating is changed.
80
120
  *
81
121
  * Event payload is equal to the newly selected rating.
122
+ *
123
+ * @defaultValue
124
+ * ```ts
125
+ * () => {}
126
+ * ```
82
127
  */
83
128
  ratingChange: EventEmitter<number>;
84
129
  writeValue(value: any): void;
@@ -1,4 +1,10 @@
1
- import type { SlotContent, Widget, Directive } from '@agnos-ui/angular-headless';
1
+ import type { SlotContent, Widget, WidgetFactory, Directive } from '@agnos-ui/angular-headless';
2
+ /**
3
+ * Retrieve a shallow copy of the default Rating config
4
+ * @returns the default Rating config
5
+ */
6
+ declare const export_getRatingDefaultConfig: () => RatingProps;
7
+ export { export_getRatingDefaultConfig as getRatingDefaultConfig };
2
8
  export interface RatingState {
3
9
  /**
4
10
  * the aria value of the rating
@@ -18,116 +24,191 @@ export interface RatingState {
18
24
  stars: StarContext[];
19
25
  /**
20
26
  * The current rating. Could be a decimal value like `3.75`.
27
+ *
28
+ * @defaultValue `0`
21
29
  */
22
30
  rating: number;
23
31
  /**
24
32
  * The maximum rating that can be given.
33
+ *
34
+ * @defaultValue `10`
25
35
  */
26
36
  maxRating: number;
27
37
  /**
28
38
  * If `true`, the rating is disabled.
39
+ *
40
+ * @defaultValue `false`
29
41
  */
30
42
  disabled: boolean;
31
43
  /**
32
44
  * If `true`, the rating can't be changed.
45
+ *
46
+ * @defaultValue `false`
33
47
  */
34
48
  readonly: boolean;
35
49
  /**
36
50
  * Define if the rating can be reset.
37
51
  *
38
52
  * If set to true, the user can 'unset' the rating value by cliking on the current rating value.
53
+ *
54
+ * @defaultValue `true`
39
55
  */
40
56
  resettable: boolean;
41
57
  /**
42
58
  * Allows setting a custom rating tabindex.
43
59
  * If the component is disabled, `tabindex` will still be set to `-1`.
60
+ *
61
+ * @defaultValue `0`
44
62
  */
45
63
  tabindex: number;
46
64
  /**
47
65
  * The aria label
66
+ *
67
+ * @defaultValue `'Rating'`
48
68
  */
49
69
  ariaLabel: string;
50
70
  /**
51
71
  * The aria labelled by
72
+ *
73
+ * @defaultValue `''`
52
74
  */
53
75
  ariaLabelledBy: string;
54
76
  /**
55
77
  * CSS classes to be applied on the widget main container
78
+ *
79
+ * @defaultValue `''`
56
80
  */
57
81
  className: string;
58
82
  /**
59
83
  * The template to override the way each star is displayed.
84
+ *
85
+ * @defaultValue
86
+ * ```ts
87
+ * ({fill}: StarContext) => String.fromCharCode(fill === 100 ? 9733 : 9734)
88
+ * ```
60
89
  */
61
90
  star: SlotContent<StarContext>;
62
91
  }
63
92
  export interface RatingProps {
64
93
  /**
65
94
  * Return the value for the 'aria-valuetext' attribute.
95
+ * @param rating - Current rating value.
96
+ * @param maxRating - maxRating value.
97
+ *
98
+ * @defaultValue
99
+ * ```ts
100
+ * (rating: number, maxRating: number) => `${rating} out of ${maxRating}`
101
+ * ```
66
102
  */
67
103
  ariaValueTextFn: (rating: number, maxRating: number) => string;
68
104
  /**
69
105
  * An event emitted when the rating is changed.
70
106
  *
71
107
  * Event payload is equal to the newly selected rating.
108
+ *
109
+ * @defaultValue
110
+ * ```ts
111
+ * () => {}
112
+ * ```
72
113
  */
73
114
  onRatingChange: (rating: number) => void;
74
115
  /**
75
116
  * An event emitted when the user is hovering over a given rating.
76
117
  *
77
118
  * Event payload is equal to the rating being hovered over.
119
+ *
120
+ * @defaultValue
121
+ * ```ts
122
+ * () => {}
123
+ * ```
78
124
  */
79
125
  onHover: (rating: number) => void;
80
126
  /**
81
127
  * An event emitted when the user stops hovering over a given rating.
82
128
  *
83
129
  * Event payload is equal to the rating of the last item being hovered over.
130
+ *
131
+ * @defaultValue
132
+ * ```ts
133
+ * () => {}
134
+ * ```
84
135
  */
85
136
  onLeave: (rating: number) => void;
86
137
  /**
87
138
  * The current rating. Could be a decimal value like `3.75`.
139
+ *
140
+ * @defaultValue `0`
88
141
  */
89
142
  rating: number;
90
143
  /**
91
144
  * The maximum rating that can be given.
145
+ *
146
+ * @defaultValue `10`
92
147
  */
93
148
  maxRating: number;
94
149
  /**
95
150
  * If `true`, the rating is disabled.
151
+ *
152
+ * @defaultValue `false`
96
153
  */
97
154
  disabled: boolean;
98
155
  /**
99
156
  * If `true`, the rating can't be changed.
157
+ *
158
+ * @defaultValue `false`
100
159
  */
101
160
  readonly: boolean;
102
161
  /**
103
162
  * Define if the rating can be reset.
104
163
  *
105
164
  * If set to true, the user can 'unset' the rating value by cliking on the current rating value.
165
+ *
166
+ * @defaultValue `true`
106
167
  */
107
168
  resettable: boolean;
108
169
  /**
109
170
  * Allows setting a custom rating tabindex.
110
171
  * If the component is disabled, `tabindex` will still be set to `-1`.
172
+ *
173
+ * @defaultValue `0`
111
174
  */
112
175
  tabindex: number;
113
176
  /**
114
177
  * The aria label
178
+ *
179
+ * @defaultValue `'Rating'`
115
180
  */
116
181
  ariaLabel: string;
117
182
  /**
118
183
  * The aria labelled by
184
+ *
185
+ * @defaultValue `''`
119
186
  */
120
187
  ariaLabelledBy: string;
121
188
  /**
122
189
  * CSS classes to be applied on the widget main container
190
+ *
191
+ * @defaultValue `''`
123
192
  */
124
193
  className: string;
125
194
  /**
126
195
  * The template to override the way each star is displayed.
196
+ *
197
+ * @defaultValue
198
+ * ```ts
199
+ * ({fill}: StarContext) => String.fromCharCode(fill === 100 ? 9733 : 9734)
200
+ * ```
127
201
  */
128
202
  star: SlotContent<StarContext>;
129
203
  }
130
204
  export type RatingWidget = Widget<RatingProps, RatingState, object, RatingActions, RatingDirectives>;
205
+ /**
206
+ * Create a RatingWidget with given config props
207
+ * @param config - an optional rating config
208
+ * @returns a RatingWidget
209
+ */
210
+ declare const export_createRating: WidgetFactory<RatingWidget>;
211
+ export { export_createRating as createRating };
131
212
  export interface StarContext {
132
213
  /**
133
214
  * indicates how much the current star is filled, from 0 to 100
@@ -156,12 +237,14 @@ export interface RatingActions {
156
237
  * Method to be used when a star is clicked.
157
238
  *
158
239
  * To be used in the onclick event of a star
240
+ * @param index - Star index, starting from 1
159
241
  */
160
242
  click(index: number): void;
161
243
  /**
162
244
  * Method to be used when the mouse enter in a star.
163
245
  *
164
246
  * To be used in the onmouseenter of a star
247
+ * @param index - Star index, starting from 1
165
248
  */
166
249
  hover(index: number): void;
167
250
  /**
@@ -1,2 +1,2 @@
1
1
  export * from './select.component';
2
- export * from './select';
2
+ export * from './select.gen';
@@ -3,7 +3,7 @@ import { BaseWidgetDirective } from '@agnos-ui/angular-headless';
3
3
  import type { AfterContentChecked } from '@angular/core';
4
4
  import { EventEmitter, TemplateRef } from '@angular/core';
5
5
  import type { Placement } from '@floating-ui/dom';
6
- import type { ItemContext, SelectItemContext, SelectWidget } from './select';
6
+ import type { ItemContext, SelectItemContext, SelectWidget } from './select.gen';
7
7
  import * as i0 from "@angular/core";
8
8
  export declare class SelectBadgeLabelDirective<Item> {
9
9
  templateRef: TemplateRef<any>;
@@ -20,6 +20,8 @@ export declare class SelectItemLabelDirective<Item> {
20
20
  export declare class SelectComponent<Item> extends BaseWidgetDirective<SelectWidget<Item>> implements AfterContentChecked {
21
21
  /**
22
22
  * aria-label used for the input inside the select
23
+ *
24
+ * @defaultValue `'Select'`
23
25
  */
24
26
  ariaLabel: string | undefined;
25
27
  /**
@@ -28,80 +30,144 @@ export declare class SelectComponent<Item> extends BaseWidgetDirective<SelectWid
28
30
  id: string | undefined;
29
31
  /**
30
32
  * List of available items for the dropdown
33
+ *
34
+ * @defaultValue `[]`
31
35
  */
32
36
  items: Item[] | undefined;
33
37
  /**
34
38
  * List of allowed placements for the dropdown.
35
39
  * This refers to the [allowedPlacements from floating UI](https://floating-ui.com/docs/autoPlacement#allowedplacements), given the different [Placement possibilities](https://floating-ui.com/docs/computePosition#placement).
40
+ *
41
+ * @defaultValue
42
+ * ```ts
43
+ * ['bottom-start', 'top-start', 'bottom-end', 'top-end']
44
+ * ```
36
45
  */
37
46
  allowedPlacements: Placement[] | undefined;
38
47
  /**
39
48
  * true if the select is open
49
+ *
50
+ * @defaultValue `false`
40
51
  */
41
52
  open: boolean | undefined;
42
53
  /**
43
54
  * Filtered text to be display in the filter input
55
+ *
56
+ * @defaultValue `''`
44
57
  */
45
58
  filterText: string | undefined;
46
59
  /**
47
60
  * CSS classes to be applied on the widget main container
61
+ *
62
+ * @defaultValue `''`
48
63
  */
49
64
  className: string | undefined;
50
65
  /**
51
66
  * true if the select is disabled
67
+ *
68
+ * @defaultValue `false`
52
69
  */
53
70
  disabled: boolean | undefined;
54
71
  /**
55
72
  * List of selected item ids
73
+ *
74
+ * @defaultValue `[]`
56
75
  */
57
76
  selected: Item[] | undefined;
58
77
  /**
59
78
  * true if a loading process is being done
79
+ *
80
+ * @defaultValue `false`
60
81
  */
61
82
  loading: boolean | undefined;
62
83
  /**
63
84
  * Custom function to get the id of an item
64
85
  * By default, the item is returned
86
+ *
87
+ * @defaultValue
88
+ * ```ts
89
+ * (item: any) => '' + item
90
+ * ```
65
91
  */
66
92
  itemIdFn: ((item: Item) => string) | undefined;
67
93
  /**
68
94
  * Class to be added on the dropdown menu container
95
+ *
96
+ * @defaultValue `''`
69
97
  */
70
98
  menuClassName: string | undefined;
71
99
  /**
72
100
  * The template to override the way each badge on the left of the input is displayed.
73
101
  * This define the content of the badge inside the badge container.
102
+ *
103
+ * @defaultValue
104
+ * ```ts
105
+ * ({itemContext}: SelectItemContext<any>) => itemContext.item
106
+ * ```
74
107
  */
75
108
  badgeLabel: SlotContent<SelectItemContext<Item>>;
76
109
  slotSelectBadgeLabelFromContent: SelectBadgeLabelDirective<Item> | undefined;
77
110
  /**
78
111
  * The template to override the way each item is displayed in the list.
79
112
  * This define the content of the badge inside the badge container.
113
+ *
114
+ * @defaultValue
115
+ * ```ts
116
+ * ({itemContext}: SelectItemContext<any>) => itemContext.item
117
+ * ```
80
118
  */
81
119
  itemLabel: SlotContent<SelectItemContext<Item>>;
82
120
  slotSelectItemLabelFromContent: SelectItemLabelDirective<Item> | undefined;
83
121
  /**
84
122
  * Callback called when the text filter change
123
+ * @param text - Filtered text
124
+ *
125
+ * @defaultValue
126
+ * ```ts
127
+ * () => {}
128
+ * ```
85
129
  */
86
130
  filterTextChange: EventEmitter<string>;
87
131
  /**
88
132
  * Callback called when the selection change
133
+ *
134
+ * @defaultValue
135
+ * ```ts
136
+ * () => {}
137
+ * ```
89
138
  */
90
139
  selectedChange: EventEmitter<Item[]>;
91
140
  /**
92
141
  * Callback called dropdown open state change
142
+ * @param isOpen - updated open state
143
+ *
144
+ * @defaultValue
145
+ * ```ts
146
+ * () => {}
147
+ * ```
93
148
  */
94
149
  openChange: EventEmitter<boolean>;
95
150
  /**
96
151
  * Class to be added on menu items
152
+ *
153
+ * @defaultValue `''`
97
154
  */
98
155
  menuItemClassName: string | undefined;
99
156
  /**
100
157
  * Class to be added on selected items (displayed in the input zone)
158
+ *
159
+ * @defaultValue `''`
101
160
  */
102
161
  badgeClassName: string | undefined;
103
162
  /**
104
163
  * Retrieves navigable elements within an HTML element containing badges and the input.
164
+ *
165
+ * @param node - HTMLElement that contains the badges and the input
166
+ *
167
+ * @defaultValue
168
+ * ```ts
169
+ * (node: HTMLElement) => node.querySelectorAll('.au-select-badge,input')
170
+ * ```
105
171
  */
106
172
  navSelector: ((node: HTMLElement) => NodeListOf<HTMLSpanElement | HTMLInputElement>) | undefined;
107
173
  readonly _widget: import("@agnos-ui/angular-headless").AngularWidget<SelectWidget<Item>>;