@exhaustive-ui/mcp 22.5.0 → 22.6.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 (199) hide show
  1. package/data/cards/accordion.md +5 -2
  2. package/data/cards/animateonscroll.md +8 -5
  3. package/data/cards/autocomplete.md +8 -3
  4. package/data/cards/autofocus.md +4 -2
  5. package/data/cards/avatar.md +4 -2
  6. package/data/cards/badge.md +2 -1
  7. package/data/cards/breadcrumb.md +3 -1
  8. package/data/cards/button.md +8 -2
  9. package/data/cards/card.md +2 -1
  10. package/data/cards/carousel.md +7 -5
  11. package/data/cards/cascadeselect.md +2 -6
  12. package/data/cards/chart.md +9 -7
  13. package/data/cards/checkbox.md +4 -3
  14. package/data/cards/chip.md +2 -1
  15. package/data/cards/classnames.md +21 -3
  16. package/data/cards/colorpicker.md +2 -1
  17. package/data/cards/confirmdialog.md +35 -5
  18. package/data/cards/confirmpopup.md +25 -3
  19. package/data/cards/contextmenu.md +1 -7
  20. package/data/cards/dataview.md +28 -9
  21. package/data/cards/datepicker.md +4 -3
  22. package/data/cards/dialog.md +3 -3
  23. package/data/cards/divider.md +2 -1
  24. package/data/cards/dock.md +24 -3
  25. package/data/cards/dragdrop.md +5 -1
  26. package/data/cards/drawer.md +3 -3
  27. package/data/cards/dynamicdialog.md +41 -14
  28. package/data/cards/editor.md +1 -1
  29. package/data/cards/fieldset.md +2 -1
  30. package/data/cards/fileinput.md +1 -1
  31. package/data/cards/fileupload.md +7 -8
  32. package/data/cards/floatlabel.md +1 -1
  33. package/data/cards/fluid.md +7 -5
  34. package/data/cards/focustrap.md +6 -2
  35. package/data/cards/galleria.md +18 -25
  36. package/data/cards/iconfield.md +3 -2
  37. package/data/cards/iftalabel.md +1 -1
  38. package/data/cards/image.md +4 -2
  39. package/data/cards/imagecompare.md +4 -3
  40. package/data/cards/inplace.md +2 -1
  41. package/data/cards/inputgroup.md +14 -3
  42. package/data/cards/inputmask.md +2 -2
  43. package/data/cards/inputnumber.md +4 -3
  44. package/data/cards/inputotp.md +2 -2
  45. package/data/cards/inputtext.md +2 -2
  46. package/data/cards/keyfilter.md +2 -1
  47. package/data/cards/knob.md +3 -2
  48. package/data/cards/listbox.md +5 -3
  49. package/data/cards/megamenu.md +7 -8
  50. package/data/cards/menu.md +3 -7
  51. package/data/cards/menubar.md +3 -7
  52. package/data/cards/message.md +2 -1
  53. package/data/cards/metergroup.md +3 -7
  54. package/data/cards/multiselect.md +5 -9
  55. package/data/cards/orderlist.md +6 -4
  56. package/data/cards/organizationchart.md +33 -6
  57. package/data/cards/overlay.md +2 -1
  58. package/data/cards/paginator.md +2 -1
  59. package/data/cards/panel.md +2 -1
  60. package/data/cards/panelmenu.md +4 -13
  61. package/data/cards/password.md +6 -3
  62. package/data/cards/picklist.md +9 -5
  63. package/data/cards/popover.md +6 -5
  64. package/data/cards/progressbar.md +4 -3
  65. package/data/cards/progressspinner.md +2 -1
  66. package/data/cards/radiobutton.md +4 -3
  67. package/data/cards/rating.md +1 -1
  68. package/data/cards/ripple.md +2 -1
  69. package/data/cards/scrollpanel.md +2 -1
  70. package/data/cards/scrolltop.md +5 -3
  71. package/data/cards/select.md +2 -1
  72. package/data/cards/selectbutton.md +6 -2
  73. package/data/cards/skeleton.md +2 -1
  74. package/data/cards/slider.md +4 -3
  75. package/data/cards/speeddial.md +7 -4
  76. package/data/cards/splitbutton.md +21 -18
  77. package/data/cards/splitter.md +2 -1
  78. package/data/cards/stepper.md +8 -3
  79. package/data/cards/styleclass.md +4 -2
  80. package/data/cards/table.md +46 -11
  81. package/data/cards/tabs.md +2 -1
  82. package/data/cards/tag.md +2 -1
  83. package/data/cards/terminal.md +31 -22
  84. package/data/cards/textarea.md +3 -2
  85. package/data/cards/tieredmenu.md +1 -6
  86. package/data/cards/timeline.md +5 -5
  87. package/data/cards/toast.md +7 -8
  88. package/data/cards/togglebutton.md +1 -1
  89. package/data/cards/toggleswitch.md +4 -3
  90. package/data/cards/toolbar.md +8 -8
  91. package/data/cards/tooltip.md +2 -1
  92. package/data/cards/tree.md +3 -6
  93. package/data/cards/treeselect.md +6 -7
  94. package/data/cards/treetable.md +52 -31
  95. package/data/components/accordion.md +31 -23
  96. package/data/components/animateonscroll.md +18 -15
  97. package/data/components/autocomplete.md +162 -93
  98. package/data/components/autofocus.md +9 -7
  99. package/data/components/avatar.md +56 -43
  100. package/data/components/badge.md +27 -18
  101. package/data/components/blockui.md +15 -8
  102. package/data/components/breadcrumb.md +20 -14
  103. package/data/components/button.md +121 -94
  104. package/data/components/card.md +12 -10
  105. package/data/components/carousel.md +75 -53
  106. package/data/components/cascadeselect.md +271 -238
  107. package/data/components/chart.md +88 -74
  108. package/data/components/checkbox.md +107 -73
  109. package/data/components/chip.md +20 -16
  110. package/data/components/classnames.md +22 -4
  111. package/data/components/colorpicker.md +54 -36
  112. package/data/components/confirmdialog.md +146 -43
  113. package/data/components/confirmpopup.md +95 -22
  114. package/data/components/contextmenu.md +110 -39
  115. package/data/components/dataview.md +176 -83
  116. package/data/components/datepicker.md +171 -141
  117. package/data/components/dialog.md +80 -68
  118. package/data/components/divider.md +17 -12
  119. package/data/components/dock.md +63 -27
  120. package/data/components/dragdrop.md +26 -12
  121. package/data/components/drawer.md +67 -48
  122. package/data/components/dynamicdialog.md +22 -13
  123. package/data/components/editor.md +42 -33
  124. package/data/components/fieldset.md +20 -17
  125. package/data/components/fileinput.md +92 -35
  126. package/data/components/fileupload.md +101 -61
  127. package/data/components/floatlabel.md +20 -11
  128. package/data/components/fluid.md +11 -9
  129. package/data/components/focustrap.md +11 -7
  130. package/data/components/galleria.md +224 -83
  131. package/data/components/iconfield.md +23 -15
  132. package/data/components/iftalabel.md +15 -9
  133. package/data/components/image.md +31 -26
  134. package/data/components/imagecompare.md +8 -6
  135. package/data/components/inplace.md +27 -22
  136. package/data/components/inputgroup.md +53 -29
  137. package/data/components/inputmask.md +107 -85
  138. package/data/components/inputnumber.md +127 -89
  139. package/data/components/inputotp.md +55 -42
  140. package/data/components/inputtext.md +72 -50
  141. package/data/components/keyfilter.md +6 -3
  142. package/data/components/knob.md +70 -58
  143. package/data/components/listbox.md +171 -141
  144. package/data/components/megamenu.md +24 -23
  145. package/data/components/menu.md +37 -34
  146. package/data/components/menubar.md +27 -22
  147. package/data/components/message.md +44 -32
  148. package/data/components/metergroup.md +48 -17
  149. package/data/components/multiselect.md +232 -168
  150. package/data/components/orderlist.md +55 -48
  151. package/data/components/organizationchart.md +182 -13
  152. package/data/components/overlay.md +31 -26
  153. package/data/components/paginator.md +49 -34
  154. package/data/components/panel.md +23 -19
  155. package/data/components/panelmenu.md +51 -25
  156. package/data/components/password.md +104 -91
  157. package/data/components/picklist.md +92 -70
  158. package/data/components/popover.md +68 -46
  159. package/data/components/progressbar.md +28 -22
  160. package/data/components/progressspinner.md +13 -11
  161. package/data/components/radiobutton.md +69 -35
  162. package/data/components/rating.md +48 -40
  163. package/data/components/ripple.md +8 -6
  164. package/data/components/scroller.md +29 -29
  165. package/data/components/scrollpanel.md +9 -7
  166. package/data/components/scrolltop.md +20 -18
  167. package/data/components/select.md +248 -169
  168. package/data/components/selectbutton.md +118 -56
  169. package/data/components/skeleton.md +22 -18
  170. package/data/components/slider.md +73 -49
  171. package/data/components/speeddial.md +77 -59
  172. package/data/components/splitbutton.md +354 -329
  173. package/data/components/splitter.md +22 -18
  174. package/data/components/stepper.md +38 -21
  175. package/data/components/styleclass.md +12 -6
  176. package/data/components/table.md +523 -314
  177. package/data/components/tabs.md +44 -26
  178. package/data/components/tag.md +18 -14
  179. package/data/components/terminal.md +38 -27
  180. package/data/components/textarea.md +82 -47
  181. package/data/components/tieredmenu.md +34 -29
  182. package/data/components/timeline.md +29 -28
  183. package/data/components/toast.md +115 -57
  184. package/data/components/togglebutton.md +53 -39
  185. package/data/components/toggleswitch.md +41 -28
  186. package/data/components/toolbar.md +19 -18
  187. package/data/components/tooltip.md +43 -32
  188. package/data/components/tree.md +114 -81
  189. package/data/components/treeselect.md +176 -174
  190. package/data/components/treetable.md +1250 -1045
  191. package/data/components.json +4122 -4080
  192. package/data/llms-full.txt +8784 -6249
  193. package/data/manifest.json +154 -15
  194. package/data/pages/tailwind.md +20 -10
  195. package/data/snapshot.json +2 -2
  196. package/dist/index.d.mts +2 -0
  197. package/dist/index.mjs +3 -3
  198. package/dist/index.mjs.map +1 -1
  199. package/package.json +1 -1
@@ -8,13 +8,13 @@ Screen Reader Toast component use alert role that implicitly defines aria-live a
8
8
 
9
9
  ## Basic
10
10
 
11
- Toasts are displayed by calling the add and addAll method provided by the messageService . A single toast is specified by the Message interface that defines various properties such as severity , summary and detail .
11
+ Toasts are displayed by calling the add and addAll method provided by the messageService . A single toast is specified by the ToastMessageOptions interface that defines various properties such as severity , summary and detail .
12
12
 
13
13
  ```typescript
14
14
  import { Component, inject } from '@angular/core';
15
- import { ButtonModule } from '@exhaustive-ui/core/button';
16
- import { ToastModule } from '@exhaustive-ui/core/toast';
17
15
  import { MessageService } from '@exhaustive-ui/core/api';
16
+ import { ToastModule } from '@exhaustive-ui/core/toast';
17
+ import { ButtonModule } from '@exhaustive-ui/core/button';
18
18
 
19
19
  @Component({
20
20
  template: `
@@ -24,11 +24,15 @@ import { MessageService } from '@exhaustive-ui/core/api';
24
24
  </div>
25
25
  `,
26
26
  standalone: true,
27
- imports: [ButtonModule, ToastModule],
27
+ imports: [ToastModule, ButtonModule],
28
28
  providers: [MessageService]
29
29
  })
30
30
  export class ToastBasicDemo {
31
31
  private messageService = inject(MessageService);
32
+
33
+ show() {
34
+ this.messageService.add({ severity: 'info', summary: 'Info', detail: 'Message Content', life: 3000 });
35
+ }
32
36
  }
33
37
  ```
34
38
 
@@ -38,9 +42,9 @@ Clicking the close icon on the toast, removes it manually. Same can also be achi
38
42
 
39
43
  ```typescript
40
44
  import { Component, inject } from '@angular/core';
41
- import { ButtonModule } from '@exhaustive-ui/core/button';
42
- import { ToastModule } from '@exhaustive-ui/core/toast';
43
45
  import { MessageService } from '@exhaustive-ui/core/api';
46
+ import { Toast } from '@exhaustive-ui/core/toast';
47
+ import { ButtonModule } from '@exhaustive-ui/core/button';
44
48
 
45
49
  @Component({
46
50
  template: `
@@ -51,12 +55,16 @@ import { MessageService } from '@exhaustive-ui/core/api';
51
55
  </div>
52
56
  `,
53
57
  standalone: true,
54
- imports: [ButtonModule, ToastModule],
58
+ imports: [Toast, ButtonModule],
55
59
  providers: [MessageService]
56
60
  })
57
61
  export class ToastClearDemo {
58
62
  private messageService = inject(MessageService);
59
63
 
64
+ show() {
65
+ this.messageService.add({ key: 'myKey', severity: 'success', summary: 'Message 1', detail: 'Message Content' });
66
+ }
67
+
60
68
  clear() {
61
69
  this.messageService.clear();
62
70
  }
@@ -69,10 +77,10 @@ Headless mode allows you to customize the entire user interface instead of the d
69
77
 
70
78
  ```typescript
71
79
  import { Component, inject, signal } from '@angular/core';
72
- import { ButtonModule } from '@exhaustive-ui/core/button';
73
- import { ProgressBarModule } from '@exhaustive-ui/core/progressbar';
74
- import { ToastModule } from '@exhaustive-ui/core/toast';
75
80
  import { MessageService } from '@exhaustive-ui/core/api';
81
+ import { ToastModule } from '@exhaustive-ui/core/toast';
82
+ import { ButtonModule } from '@exhaustive-ui/core/button';
83
+ import { ProgressBar } from '@exhaustive-ui/core/progressbar';
76
84
 
77
85
  @Component({
78
86
  template: `
@@ -99,14 +107,17 @@ import { MessageService } from '@exhaustive-ui/core/api';
99
107
  </div>
100
108
  `,
101
109
  standalone: true,
102
- imports: [ButtonModule, ProgressBarModule, ToastModule],
110
+ imports: [ToastModule, ButtonModule, ProgressBar],
103
111
  providers: [MessageService]
104
112
  })
105
113
  export class ToastHeadlessDemo {
106
114
  private messageService = inject(MessageService);
115
+
107
116
  visible: boolean = false;
117
+
108
118
  progress = signal(0);
109
- interval: any = null;
119
+
120
+ interval = null;
110
121
 
111
122
  showConfirm() {
112
123
  if (!this.visible) {
@@ -119,16 +130,16 @@ export class ToastHeadlessDemo {
119
130
  });
120
131
  this.visible = true;
121
132
  this.progress.set(0);
122
-
133
+
123
134
  if (this.interval) {
124
135
  clearInterval(this.interval);
125
136
  }
126
-
137
+
127
138
  this.interval = setInterval(() => {
128
139
  if (this.progress() <= 100) {
129
140
  this.progress.update((v) => v + 20);
130
141
  }
131
-
142
+
132
143
  if (this.progress() >= 100) {
133
144
  this.progress.set(100);
134
145
  clearInterval(this.interval);
@@ -149,9 +160,9 @@ A toast disappears after 3000ms by default, set the life option on either the me
149
160
 
150
161
  ```typescript
151
162
  import { Component, inject } from '@angular/core';
152
- import { ButtonModule } from '@exhaustive-ui/core/button';
153
- import { ToastModule } from '@exhaustive-ui/core/toast';
154
163
  import { MessageService } from '@exhaustive-ui/core/api';
164
+ import { ToastModule } from '@exhaustive-ui/core/toast';
165
+ import { ButtonModule } from '@exhaustive-ui/core/button';
155
166
 
156
167
  @Component({
157
168
  template: `
@@ -162,12 +173,16 @@ import { MessageService } from '@exhaustive-ui/core/api';
162
173
  </div>
163
174
  `,
164
175
  standalone: true,
165
- imports: [ButtonModule, ToastModule],
176
+ imports: [ToastModule, ButtonModule],
166
177
  providers: [MessageService]
167
178
  })
168
179
  export class ToastLifeDemo {
169
180
  private messageService = inject(MessageService);
170
181
 
182
+ showLife() {
183
+ this.messageService.add({ severity: 'info', summary: 'Life', detail: 'I show for 10000ms' });
184
+ }
185
+
171
186
  showLifeLong() {
172
187
  this.messageService.add({ severity: 'info', summary: 'Life', detail: 'I show for 20000ms', life: 20000 });
173
188
  }
@@ -176,14 +191,14 @@ export class ToastLifeDemo {
176
191
 
177
192
  ## Multiple
178
193
 
179
- Multiple toasts are displayed by passing an array to the showAll method of the messageService .
194
+ Multiple toasts are displayed by passing an array to the addAll method of the messageService .
180
195
 
181
196
  ```typescript
182
197
  import { Component, inject } from '@angular/core';
183
- import { ButtonModule } from '@exhaustive-ui/core/button';
184
- import { ToastModule } from '@exhaustive-ui/core/toast';
185
- import { RippleModule } from '@exhaustive-ui/core/ripple';
186
198
  import { MessageService } from '@exhaustive-ui/core/api';
199
+ import { ToastModule } from '@exhaustive-ui/core/toast';
200
+ import { ButtonModule } from '@exhaustive-ui/core/button';
201
+ import { Ripple } from '@exhaustive-ui/core/ripple';
187
202
 
188
203
  @Component({
189
204
  template: `
@@ -193,11 +208,20 @@ import { MessageService } from '@exhaustive-ui/core/api';
193
208
  </div>
194
209
  `,
195
210
  standalone: true,
196
- imports: [ButtonModule, ToastModule, RippleModule],
211
+ imports: [ToastModule, ButtonModule, Ripple],
197
212
  providers: [MessageService]
198
213
  })
199
214
  export class ToastMultipleDemo {
200
215
  private messageService = inject(MessageService);
216
+
217
+ show() {
218
+ this.messageService.addAll([
219
+ { severity: 'success', summary: 'Message 1', detail: 'Message Content' },
220
+ { severity: 'info', summary: 'Message 2', detail: 'Message Content' },
221
+ { severity: 'warn', summary: 'Message 3', detail: 'Message Content' },
222
+ { severity: 'error', summary: 'Message 4', detail: 'Message Content' }
223
+ ]);
224
+ }
201
225
  }
202
226
  ```
203
227
 
@@ -207,10 +231,10 @@ Location of the toast is customized with the position property. Valid values are
207
231
 
208
232
  ```typescript
209
233
  import { Component, inject } from '@angular/core';
210
- import { ButtonModule } from '@exhaustive-ui/core/button';
211
- import { ToastModule } from '@exhaustive-ui/core/toast';
212
- import { RippleModule } from '@exhaustive-ui/core/ripple';
213
234
  import { MessageService } from '@exhaustive-ui/core/api';
235
+ import { ToastModule } from '@exhaustive-ui/core/toast';
236
+ import { ButtonModule } from '@exhaustive-ui/core/button';
237
+ import { Ripple } from '@exhaustive-ui/core/ripple';
214
238
 
215
239
  @Component({
216
240
  template: `
@@ -226,12 +250,22 @@ import { MessageService } from '@exhaustive-ui/core/api';
226
250
  </div>
227
251
  `,
228
252
  standalone: true,
229
- imports: [ButtonModule, ToastModule, RippleModule],
253
+ imports: [ToastModule, ButtonModule, Ripple],
230
254
  providers: [MessageService]
231
255
  })
232
256
  export class ToastPositionDemo {
233
257
  private messageService = inject(MessageService);
234
258
 
259
+ showTopLeft() {
260
+ this.messageService.add({
261
+ severity: 'info',
262
+ summary: 'Info Message',
263
+ detail: 'Message Content',
264
+ key: 'tl',
265
+ life: 3000
266
+ });
267
+ }
268
+
235
269
  showBottomLeft() {
236
270
  this.messageService.add({
237
271
  severity: 'warn',
@@ -260,9 +294,9 @@ Toast styling can be adjusted per screen size with the breakpoints option. The v
260
294
 
261
295
  ```typescript
262
296
  import { Component, inject } from '@angular/core';
297
+ import { MessageService } from '@exhaustive-ui/core/api';
263
298
  import { ButtonModule } from '@exhaustive-ui/core/button';
264
299
  import { ToastModule } from '@exhaustive-ui/core/toast';
265
- import { MessageService } from '@exhaustive-ui/core/api';
266
300
 
267
301
  @Component({
268
302
  template: `
@@ -272,11 +306,15 @@ import { MessageService } from '@exhaustive-ui/core/api';
272
306
  </div>
273
307
  `,
274
308
  standalone: true,
275
- imports: [ButtonModule, ToastModule],
309
+ imports: [ToastModule, ButtonModule],
276
310
  providers: [MessageService]
277
311
  })
278
312
  export class ToastResponsiveDemo {
279
313
  private messageService = inject(MessageService);
314
+
315
+ show() {
316
+ this.messageService.add({ severity: 'contrast', summary: 'Success', detail: 'Message Content' });
317
+ }
280
318
  }
281
319
  ```
282
320
 
@@ -286,10 +324,10 @@ The severity option specifies the type of the message. There are four types of m
286
324
 
287
325
  ```typescript
288
326
  import { Component, inject } from '@angular/core';
289
- import { ButtonModule } from '@exhaustive-ui/core/button';
290
- import { ToastModule } from '@exhaustive-ui/core/toast';
291
- import { RippleModule } from '@exhaustive-ui/core/ripple';
292
327
  import { MessageService } from '@exhaustive-ui/core/api';
328
+ import { ToastModule } from '@exhaustive-ui/core/toast';
329
+ import { ButtonModule } from '@exhaustive-ui/core/button';
330
+ import { Ripple } from '@exhaustive-ui/core/ripple';
293
331
 
294
332
  @Component({
295
333
  template: `
@@ -304,12 +342,16 @@ import { MessageService } from '@exhaustive-ui/core/api';
304
342
  </div>
305
343
  `,
306
344
  standalone: true,
307
- imports: [ButtonModule, ToastModule, RippleModule],
345
+ imports: [ToastModule, ButtonModule, Ripple],
308
346
  providers: [MessageService]
309
347
  })
310
348
  export class ToastSeverityDemo {
311
349
  private messageService = inject(MessageService);
312
350
 
351
+ showSuccess() {
352
+ this.messageService.add({ severity: 'success', summary: 'Success', detail: 'Message Content' });
353
+ }
354
+
313
355
  showInfo() {
314
356
  this.messageService.add({ severity: 'info', summary: 'Info', detail: 'Message Content' });
315
357
  }
@@ -338,10 +380,10 @@ A toast disappears after the time defined by the life option, set sticky option
338
380
 
339
381
  ```typescript
340
382
  import { Component, inject } from '@angular/core';
341
- import { ButtonModule } from '@exhaustive-ui/core/button';
342
- import { ToastModule } from '@exhaustive-ui/core/toast';
343
- import { RippleModule } from '@exhaustive-ui/core/ripple';
344
383
  import { MessageService } from '@exhaustive-ui/core/api';
384
+ import { ToastModule } from '@exhaustive-ui/core/toast';
385
+ import { ButtonModule } from '@exhaustive-ui/core/button';
386
+ import { Ripple } from '@exhaustive-ui/core/ripple';
345
387
 
346
388
  @Component({
347
389
  template: `
@@ -354,12 +396,16 @@ import { MessageService } from '@exhaustive-ui/core/api';
354
396
  </div>
355
397
  `,
356
398
  standalone: true,
357
- imports: [ButtonModule, ToastModule, RippleModule],
399
+ imports: [ToastModule, ButtonModule, Ripple],
358
400
  providers: [MessageService]
359
401
  })
360
402
  export class ToastStickyDemo {
361
403
  private messageService = inject(MessageService);
362
404
 
405
+ show() {
406
+ this.messageService.add({ severity: 'info', summary: 'Sticky', detail: 'Message Content', sticky: true });
407
+ }
408
+
363
409
  clear() {
364
410
  this.messageService.clear();
365
411
  }
@@ -372,9 +418,9 @@ A page may have multiple toast components, in case you'd like to target a specif
372
418
 
373
419
  ```typescript
374
420
  import { Component, inject } from '@angular/core';
375
- import { ButtonModule } from '@exhaustive-ui/core/button';
376
- import { ToastModule } from '@exhaustive-ui/core/toast';
377
421
  import { MessageService } from '@exhaustive-ui/core/api';
422
+ import { ToastModule } from '@exhaustive-ui/core/toast';
423
+ import { ButtonModule } from '@exhaustive-ui/core/button';
378
424
 
379
425
  @Component({
380
426
  template: `
@@ -386,12 +432,17 @@ import { MessageService } from '@exhaustive-ui/core/api';
386
432
  </div>
387
433
  `,
388
434
  standalone: true,
389
- imports: [ButtonModule, ToastModule],
435
+ imports: [ToastModule, ButtonModule],
390
436
  providers: [MessageService]
391
437
  })
392
438
  export class ToastTargetDemo {
393
439
  private messageService = inject(MessageService);
394
440
 
441
+ showToast1() {
442
+ this.messageService.clear();
443
+ this.messageService.add({ key: 'toast1', severity: 'success', summary: 'Success', detail: 'key: toast1' });
444
+ }
445
+
395
446
  showToast2() {
396
447
  this.messageService.clear();
397
448
  this.messageService.add({ key: 'toast2', severity: 'warn', summary: 'Warning', detail: 'key: toast2' });
@@ -405,10 +456,10 @@ Templating allows customizing the content where the message instance is availabl
405
456
 
406
457
  ```typescript
407
458
  import { Component, inject } from '@angular/core';
408
- import { AvatarModule } from '@exhaustive-ui/core/avatar';
409
- import { ButtonModule } from '@exhaustive-ui/core/button';
410
- import { ToastModule } from '@exhaustive-ui/core/toast';
411
459
  import { MessageService } from '@exhaustive-ui/core/api';
460
+ import { ToastModule } from '@exhaustive-ui/core/toast';
461
+ import { ButtonModule } from '@exhaustive-ui/core/button';
462
+ import { AvatarModule } from '@exhaustive-ui/core/avatar';
412
463
 
413
464
  @Component({
414
465
  template: `
@@ -429,12 +480,19 @@ import { MessageService } from '@exhaustive-ui/core/api';
429
480
  </div>
430
481
  `,
431
482
  standalone: true,
432
- imports: [AvatarModule, ButtonModule, ToastModule],
483
+ imports: [ToastModule, ButtonModule, AvatarModule],
433
484
  providers: [MessageService]
434
485
  })
435
486
  export class ToastTemplateDemo {
436
487
  private messageService = inject(MessageService);
437
488
 
489
+ visible: boolean = false;
490
+
491
+ onConfirm() {
492
+ this.messageService.clear('confirm');
493
+ this.visible = false;
494
+ }
495
+
438
496
  onReject() {
439
497
  this.messageService.clear('confirm');
440
498
  this.visible = false;
@@ -462,19 +520,19 @@ Toast is used to display messages in an overlay.
462
520
 
463
521
  | Name | Type | Default | Description |
464
522
  |------|------|---------|-------------|
465
- | dt | InputSignal<Object> | undefined | Defines scoped design tokens of the component. |
466
- | unstyled | InputSignal<boolean> | undefined | Indicates whether the component should be rendered without styles. |
467
- | pt | InputSignal<ToastPassThrough> | undefined | Used to pass attributes to DOM elements inside the component. |
468
- | ptOptions | InputSignal<PassThroughOptions> | undefined | Used to configure passthrough(pt) options of the component. |
469
- | key | InputSignal<string> | ... | Key of the message in case message is targeted to a specific toast component. |
470
- | autoZIndex | InputSignalWithTransform<boolean, unknown> | ... | Whether to automatically manage layering. |
471
- | baseZIndex | InputSignalWithTransform<number, unknown> | ... | Base zIndex value to use in layering. |
472
- | life | InputSignalWithTransform<number, unknown> | ... | The default time to display messages for in milliseconds. |
473
- | position | InputSignal<ToastPositionType> | ... | Position of the toast in viewport. |
474
- | preventOpenDuplicates | InputSignalWithTransform<boolean, unknown> | ... | It does not add the new message if there is already a toast displayed with the same content |
475
- | preventDuplicates | InputSignalWithTransform<boolean, unknown> | ... | Displays only once a message with the same content. |
476
- | motionOptions | InputSignal<MotionOptions> | ... | The motion options. |
477
- | breakpoints | InputSignal<{ [key: string]: any }> | ... | Object literal to define styles per screen size. |
523
+ | dt | Object | undefined | Defines scoped design tokens of the component. |
524
+ | unstyled | boolean | undefined | Indicates whether the component should be rendered without styles. |
525
+ | pt | ToastPassThrough | undefined | Used to pass attributes to DOM elements inside the component. |
526
+ | ptOptions | PassThroughOptions | undefined | Used to configure passthrough(pt) options of the component. |
527
+ | key | string | - | Key of the message in case message is targeted to a specific toast component. |
528
+ | autoZIndex | boolean | true | Whether to automatically manage layering. |
529
+ | baseZIndex | number | 0 | Base zIndex value to use in layering. |
530
+ | life | number | 3000 | The default time to display messages for in milliseconds. |
531
+ | position | ToastPositionType | 'top-right' | Position of the toast in viewport. |
532
+ | preventOpenDuplicates | boolean | false | It does not add the new message if there is already a toast displayed with the same content |
533
+ | preventDuplicates | boolean | false | Displays only once a message with the same content. |
534
+ | motionOptions | MotionOptions | - | The motion options. |
535
+ | breakpoints | { [key: string]: any } | - | Object literal to define styles per screen size. |
478
536
 
479
537
  ### Emits
480
538
 
@@ -22,7 +22,7 @@ import { ToggleButtonModule } from '@exhaustive-ui/core/togglebutton';
22
22
  </div>
23
23
  `,
24
24
  standalone: true,
25
- imports: [ToggleButtonModule, FormsModule]
25
+ imports: [FormsModule, ToggleButtonModule]
26
26
  })
27
27
  export class TogglebuttonBasicDemo {
28
28
  checked: boolean = false;
@@ -45,7 +45,7 @@ import { ToggleButtonModule } from '@exhaustive-ui/core/togglebutton';
45
45
  </div>
46
46
  `,
47
47
  standalone: true,
48
- imports: [ToggleButtonModule, FormsModule]
48
+ imports: [FormsModule, ToggleButtonModule]
49
49
  })
50
50
  export class TogglebuttonCustomizedDemo {
51
51
  checked: boolean = false;
@@ -68,7 +68,7 @@ import { ToggleButtonModule } from '@exhaustive-ui/core/togglebutton';
68
68
  </div>
69
69
  `,
70
70
  standalone: true,
71
- imports: [ToggleButtonModule, FormsModule]
71
+ imports: [FormsModule, ToggleButtonModule]
72
72
  })
73
73
  export class TogglebuttonDisabledDemo {
74
74
  checked: boolean = false;
@@ -91,7 +91,7 @@ import { ToggleButtonModule } from '@exhaustive-ui/core/togglebutton';
91
91
  </div>
92
92
  `,
93
93
  standalone: true,
94
- imports: [ToggleButtonModule, FormsModule]
94
+ imports: [FormsModule, ToggleButtonModule]
95
95
  })
96
96
  export class TogglebuttonFluidDemo {
97
97
  checked: boolean = false;
@@ -114,7 +114,7 @@ import { ToggleButtonModule } from '@exhaustive-ui/core/togglebutton';
114
114
  </div>
115
115
  `,
116
116
  standalone: true,
117
- imports: [ToggleButtonModule, FormsModule]
117
+ imports: [FormsModule, ToggleButtonModule]
118
118
  })
119
119
  export class TogglebuttonInvalidDemo {
120
120
  checked: boolean = false;
@@ -126,13 +126,14 @@ export class TogglebuttonInvalidDemo {
126
126
  ToggleButton can also be used with reactive forms. In this case, the formControlName property is used to bind the component to a form control.
127
127
 
128
128
  ```typescript
129
+ import { CommonModule } from '@angular/common';
129
130
  import { Component, inject } from '@angular/core';
130
- import { ReactiveFormsModule } from '@angular/forms';
131
+ import { FormBuilder, FormGroup, ReactiveFormsModule, Validators } from '@angular/forms';
132
+ import { MessageService } from '@exhaustive-ui/core/api';
133
+ import { ButtonModule } from '@exhaustive-ui/core/button';
131
134
  import { MessageModule } from '@exhaustive-ui/core/message';
132
135
  import { ToastModule } from '@exhaustive-ui/core/toast';
133
136
  import { ToggleButtonModule } from '@exhaustive-ui/core/togglebutton';
134
- import { ButtonModule } from '@exhaustive-ui/core/button';
135
- import { MessageService } from '@exhaustive-ui/core/api';
136
137
 
137
138
  @Component({
138
139
  template: `
@@ -150,17 +151,22 @@ import { MessageService } from '@exhaustive-ui/core/api';
150
151
  </div>
151
152
  `,
152
153
  standalone: true,
153
- imports: [MessageModule, ToastModule, ToggleButtonModule, ButtonModule, ReactiveFormsModule]
154
+ imports: [CommonModule, ReactiveFormsModule, ToggleButtonModule, ToastModule, MessageModule, ButtonModule],
155
+ providers: [MessageService]
154
156
  })
155
157
  export class TogglebuttonReactiveformsDemo {
158
+ private fb = inject(FormBuilder);
159
+
156
160
  messageService = inject(MessageService);
161
+
157
162
  exampleForm: FormGroup | undefined;
163
+
158
164
  formSubmitted: boolean = false;
159
165
 
160
166
  constructor() {
161
167
  this.exampleForm = this.fb.group({
162
- checked: [false, Validators.requiredTrue]
163
- });
168
+ checked: [false, Validators.requiredTrue]
169
+ });
164
170
  }
165
171
 
166
172
  onSubmit() {
@@ -186,11 +192,11 @@ ToggleButton can also be used with Angular Signal Forms , the @angular/forms/sig
186
192
  ```typescript
187
193
  import { Component, inject, signal } from '@angular/core';
188
194
  import { form, FormField, required, submit } from '@angular/forms/signals';
189
- import { MessageModule } from '@exhaustive-ui/core/message';
190
- import { ToastModule } from '@exhaustive-ui/core/toast';
195
+ import { MessageService } from '@exhaustive-ui/core/api';
191
196
  import { ToggleButtonModule } from '@exhaustive-ui/core/togglebutton';
192
197
  import { ButtonModule } from '@exhaustive-ui/core/button';
193
- import { MessageService } from '@exhaustive-ui/core/api';
198
+ import { ToastModule } from '@exhaustive-ui/core/toast';
199
+ import { MessageModule } from '@exhaustive-ui/core/message';
194
200
 
195
201
  @Component({
196
202
  template: `
@@ -209,11 +215,14 @@ import { MessageService } from '@exhaustive-ui/core/api';
209
215
  </div>
210
216
  `,
211
217
  standalone: true,
212
- imports: [MessageModule, ToastModule, ToggleButtonModule, ButtonModule, FormField]
218
+ imports: [FormField, ToggleButtonModule, ButtonModule, ToastModule, MessageModule],
219
+ providers: [MessageService]
213
220
  })
214
221
  export class TogglebuttonSignalformsDemo {
215
222
  messageService = inject(MessageService);
223
+
216
224
  model = signal({ checked: false });
225
+
217
226
  exampleForm = form(this.model, (f) => {
218
227
  // required() rejects false, like Validators.requiredTrue
219
228
  required(f.checked);
@@ -247,11 +256,13 @@ import { ToggleButtonModule } from '@exhaustive-ui/core/togglebutton';
247
256
  </div>
248
257
  `,
249
258
  standalone: true,
250
- imports: [ToggleButtonModule, FormsModule]
259
+ imports: [FormsModule, ToggleButtonModule]
251
260
  })
252
261
  export class TogglebuttonSizesDemo {
253
262
  value1: boolean = false;
263
+
254
264
  value2: boolean = false;
265
+
255
266
  value3: boolean = false;
256
267
  }
257
268
  ```
@@ -259,13 +270,14 @@ export class TogglebuttonSizesDemo {
259
270
  ## templatedrivenforms-doc
260
271
 
261
272
  ```typescript
273
+ import { CommonModule } from '@angular/common';
262
274
  import { Component, inject } from '@angular/core';
263
275
  import { FormsModule } from '@angular/forms';
276
+ import { MessageService } from '@exhaustive-ui/core/api';
277
+ import { ButtonModule } from '@exhaustive-ui/core/button';
264
278
  import { MessageModule } from '@exhaustive-ui/core/message';
265
279
  import { ToastModule } from '@exhaustive-ui/core/toast';
266
280
  import { ToggleButtonModule } from '@exhaustive-ui/core/togglebutton';
267
- import { ButtonModule } from '@exhaustive-ui/core/button';
268
- import { MessageService } from '@exhaustive-ui/core/api';
269
281
 
270
282
  @Component({
271
283
  template: `
@@ -285,10 +297,12 @@ import { MessageService } from '@exhaustive-ui/core/api';
285
297
  </div>
286
298
  `,
287
299
  standalone: true,
288
- imports: [MessageModule, ToastModule, ToggleButtonModule, ButtonModule, FormsModule]
300
+ imports: [CommonModule, FormsModule, ToggleButtonModule, ToastModule, MessageModule, ButtonModule],
301
+ providers: [MessageService]
289
302
  })
290
303
  export class TogglebuttonTemplatedrivenformsDemo {
291
304
  messageService = inject(MessageService);
305
+
292
306
  checked: boolean;
293
307
 
294
308
  onSubmit(form: any) {
@@ -308,26 +322,26 @@ ToggleButton is used to select a boolean value using a button.
308
322
 
309
323
  | Name | Type | Default | Description |
310
324
  |------|------|---------|-------------|
311
- | dt | InputSignal<Object> | undefined | Defines scoped design tokens of the component. |
312
- | unstyled | InputSignal<boolean> | undefined | Indicates whether the component should be rendered without styles. |
313
- | pt | InputSignal<ToggleButtonPassThrough> | undefined | Used to pass attributes to DOM elements inside the component. |
314
- | ptOptions | InputSignal<PassThroughOptions> | undefined | Used to configure passthrough(pt) options of the component. |
315
- | required | InputSignalWithTransform<boolean, unknown> | false | There must be a value (if set). |
316
- | invalid | InputSignalWithTransform<boolean, unknown> | false | When present, it specifies that the component should have invalid state style. |
317
- | disabled | InputSignalWithTransform<boolean, unknown> | false | When present, it specifies that the component should have disabled state style. |
318
- | name | InputSignal<string> | undefined | When present, it specifies that the name of the input. |
319
- | onLabel | InputSignal<string> | ... | Label for the on state. |
320
- | offLabel | InputSignal<string> | ... | Label for the off state. |
321
- | onIcon | InputSignal<string> | ... | Icon for the on state. |
322
- | offIcon | InputSignal<string> | ... | Icon for the off state. |
323
- | ariaLabel | InputSignal<string> | ... | Defines a string that labels the input for accessibility. |
324
- | ariaLabelledBy | InputSignal<string> | ... | Establishes relationships between the component and label(s) where its value should be one or more element IDs. |
325
- | tabindex | InputSignalWithTransform<number, unknown> | ... | Index of the element in tabbing order. |
326
- | iconPos | InputSignal<"left" \| "right"> | ... | Position of the icon. |
327
- | autofocus | InputSignalWithTransform<boolean, unknown> | ... | When present, it specifies that the component should automatically get focus on load. |
328
- | size | InputSignal<"small" \| "large"> | ... | Defines the size of the component. |
329
- | allowEmpty | InputSignal<boolean> | ... | Whether selection can not be cleared. |
330
- | fluid | InputSignalWithTransform<boolean, unknown> | undefined | Spans 100% width of the container when enabled. |
325
+ | dt | Object | undefined | Defines scoped design tokens of the component. |
326
+ | unstyled | boolean | undefined | Indicates whether the component should be rendered without styles. |
327
+ | pt | ToggleButtonPassThrough | undefined | Used to pass attributes to DOM elements inside the component. |
328
+ | ptOptions | PassThroughOptions | undefined | Used to configure passthrough(pt) options of the component. |
329
+ | required | boolean | false | There must be a value (if set). |
330
+ | invalid | boolean | false | When present, it specifies that the component should have invalid state style. |
331
+ | disabled | boolean | false | When present, it specifies that the component should have disabled state style. |
332
+ | name | string | undefined | When present, it specifies that the name of the input. |
333
+ | onLabel | string | 'Yes' | Label for the on state. |
334
+ | offLabel | string | 'No' | Label for the off state. |
335
+ | onIcon | string | - | Icon for the on state. |
336
+ | offIcon | string | - | Icon for the off state. |
337
+ | ariaLabel | string | - | Defines a string that labels the input for accessibility. |
338
+ | ariaLabelledBy | string | - | Establishes relationships between the component and label(s) where its value should be one or more element IDs. |
339
+ | tabindex | number | 0 | Index of the element in tabbing order. |
340
+ | iconPos | "left" \| "right" | 'left' | Position of the icon. |
341
+ | autofocus | boolean | - | When present, it specifies that the component should automatically get focus on load. |
342
+ | size | "small" \| "large" | - | Defines the size of the component. |
343
+ | allowEmpty | boolean | - | Whether selection can not be cleared. |
344
+ | fluid | boolean | undefined | Spans 100% width of the container when enabled. |
331
345
 
332
346
  ### Emits
333
347