@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
@@ -12,9 +12,10 @@ SplitButton has a default action button and a collection of additional options d
12
12
 
13
13
  ```typescript
14
14
  import { Component, inject } from '@angular/core';
15
+ import { RouterModule } from '@angular/router';
16
+ import { MenuItem, MessageService } from '@exhaustive-ui/core/api';
15
17
  import { SplitButtonModule } from '@exhaustive-ui/core/splitbutton';
16
18
  import { ToastModule } from '@exhaustive-ui/core/toast';
17
- import { MenuItem, MessageService } from '@exhaustive-ui/core/api';
18
19
 
19
20
  @Component({
20
21
  template: `
@@ -24,30 +25,32 @@ import { MenuItem, MessageService } from '@exhaustive-ui/core/api';
24
25
  </div>
25
26
  `,
26
27
  standalone: true,
27
- imports: [SplitButtonModule, ToastModule],
28
+ imports: [SplitButtonModule, ToastModule, RouterModule],
28
29
  providers: [MessageService]
29
30
  })
30
31
  export class SplitbuttonBasicDemo {
31
32
  private messageService = inject(MessageService);
32
33
 
34
+ items: MenuItem[];
35
+
33
36
  constructor() {
34
37
  this.items = [
35
- {
36
- label: 'Update',
37
- command: () => {
38
- this.update();
39
- }
40
- },
41
- {
42
- label: 'Delete',
43
- command: () => {
44
- this.delete();
45
- }
46
- },
47
- { label: 'Angular.dev', url: 'https://angular.dev' },
48
- { separator: true },
49
- { label: 'Upload', routerLink: ['/fileupload'] }
50
- ];
38
+ {
39
+ label: 'Update',
40
+ command: () => {
41
+ this.update();
42
+ }
43
+ },
44
+ {
45
+ label: 'Delete',
46
+ command: () => {
47
+ this.delete();
48
+ }
49
+ },
50
+ { label: 'Angular.dev', url: 'https://angular.dev' },
51
+ { separator: true },
52
+ { label: 'Upload', routerLink: ['/fileupload'] }
53
+ ];
51
54
  }
52
55
 
53
56
  save() {
@@ -70,9 +73,10 @@ When the disabled attribute is present, the element is uneditable and unfocused.
70
73
 
71
74
  ```typescript
72
75
  import { Component, inject } from '@angular/core';
76
+ import { RouterModule } from '@angular/router';
77
+ import { MenuItem, MessageService } from '@exhaustive-ui/core/api';
73
78
  import { SplitButtonModule } from '@exhaustive-ui/core/splitbutton';
74
79
  import { ToastModule } from '@exhaustive-ui/core/toast';
75
- import { MenuItem, MessageService } from '@exhaustive-ui/core/api';
76
80
 
77
81
  @Component({
78
82
  template: `
@@ -82,30 +86,32 @@ import { MenuItem, MessageService } from '@exhaustive-ui/core/api';
82
86
  </div>
83
87
  `,
84
88
  standalone: true,
85
- imports: [SplitButtonModule, ToastModule],
89
+ imports: [SplitButtonModule, ToastModule, RouterModule],
86
90
  providers: [MessageService]
87
91
  })
88
92
  export class SplitbuttonDisabledDemo {
89
93
  private messageService = inject(MessageService);
90
94
 
95
+ items: MenuItem[];
96
+
91
97
  constructor() {
92
98
  this.items = [
93
- {
94
- label: 'Update',
95
- command: () => {
96
- this.update();
97
- }
98
- },
99
- {
100
- label: 'Delete',
101
- command: () => {
102
- this.delete();
103
- }
104
- },
105
- { label: 'Angular.dev', url: 'https://angular.dev' },
106
- { separator: true },
107
- { label: 'Upload', routerLink: ['/fileupload'] }
108
- ];
99
+ {
100
+ label: 'Update',
101
+ command: () => {
102
+ this.update();
103
+ }
104
+ },
105
+ {
106
+ label: 'Delete',
107
+ command: () => {
108
+ this.delete();
109
+ }
110
+ },
111
+ { label: 'Angular.dev', url: 'https://angular.dev' },
112
+ { separator: true },
113
+ { label: 'Upload', routerLink: ['/fileupload'] }
114
+ ];
109
115
  }
110
116
 
111
117
  save(severity: string) {
@@ -128,9 +134,9 @@ The buttons and menuitems have support to display icons.
128
134
 
129
135
  ```typescript
130
136
  import { Component, inject } from '@angular/core';
137
+ import { MenuItem, MessageService } from '@exhaustive-ui/core/api';
131
138
  import { SplitButtonModule } from '@exhaustive-ui/core/splitbutton';
132
139
  import { ToastModule } from '@exhaustive-ui/core/toast';
133
- import { MenuItem, MessageService } from '@exhaustive-ui/core/api';
134
140
 
135
141
  @Component({
136
142
  template: `
@@ -145,35 +151,36 @@ import { MenuItem, MessageService } from '@exhaustive-ui/core/api';
145
151
  })
146
152
  export class SplitbuttonIconsDemo {
147
153
  private messageService = inject(MessageService);
154
+
148
155
  items: MenuItem[];
149
156
 
150
157
  constructor() {
151
158
  this.items = [
152
- {
153
- label: 'Update',
154
- icon: 'pi pi-refresh',
155
- command: () => {
156
- this.messageService.add({ severity: 'success', summary: 'Updated', detail: 'Data Updated', life: 3000 });
157
- }
158
- },
159
- {
160
- label: 'Delete',
161
- icon: 'pi pi-times',
162
- command: () => {
163
- this.messageService.add({ severity: 'warn', summary: 'Delete', detail: 'Data Deleted', life: 3000 });
164
- }
165
- },
166
- {
167
- separator: true
168
- },
169
- {
170
- label: 'Quit',
171
- icon: 'pi pi-power-off',
172
- command: () => {
173
- window.open('https://angular.io/', '_blank');
174
- }
175
- }
176
- ];
159
+ {
160
+ label: 'Update',
161
+ icon: 'pi pi-refresh',
162
+ command: () => {
163
+ this.messageService.add({ severity: 'success', summary: 'Updated', detail: 'Data Updated', life: 3000 });
164
+ }
165
+ },
166
+ {
167
+ label: 'Delete',
168
+ icon: 'pi pi-times',
169
+ command: () => {
170
+ this.messageService.add({ severity: 'warn', summary: 'Delete', detail: 'Data Deleted', life: 3000 });
171
+ }
172
+ },
173
+ {
174
+ separator: true
175
+ },
176
+ {
177
+ label: 'Quit',
178
+ icon: 'pi pi-power-off',
179
+ command: () => {
180
+ window.open('https://angular.io/', '_blank');
181
+ }
182
+ }
183
+ ];
177
184
  }
178
185
  }
179
186
  ```
@@ -184,9 +191,9 @@ SplitButton has a default action button and a collection of additional options d
184
191
 
185
192
  ```typescript
186
193
  import { Component, inject } from '@angular/core';
194
+ import { MenuItem, MessageService } from '@exhaustive-ui/core/api';
187
195
  import { SplitButtonModule } from '@exhaustive-ui/core/splitbutton';
188
196
  import { ToastModule } from '@exhaustive-ui/core/toast';
189
- import { MenuItem, MessageService } from '@exhaustive-ui/core/api';
190
197
 
191
198
  @Component({
192
199
  template: `
@@ -201,135 +208,136 @@ import { MenuItem, MessageService } from '@exhaustive-ui/core/api';
201
208
  })
202
209
  export class SplitbuttonNestedDemo {
203
210
  private messageService = inject(MessageService);
211
+
204
212
  items: MenuItem[];
205
213
 
206
214
  constructor() {
207
215
  this.items = [
216
+ {
217
+ label: 'File',
218
+ icon: 'pi pi-fw pi-file',
219
+ items: [
208
220
  {
209
- label: 'File',
210
- icon: 'pi pi-fw pi-file',
221
+ label: 'New',
222
+ icon: 'pi pi-fw pi-plus',
211
223
  items: [
212
224
  {
213
- label: 'New',
214
- icon: 'pi pi-fw pi-plus',
215
- items: [
216
- {
217
- label: 'Bookmark',
218
- icon: 'pi pi-fw pi-bookmark'
219
- },
220
- {
221
- label: 'Video',
222
- icon: 'pi pi-fw pi-video'
223
- }
224
- ]
225
+ label: 'Bookmark',
226
+ icon: 'pi pi-fw pi-bookmark'
225
227
  },
226
228
  {
227
- label: 'Delete',
228
- icon: 'pi pi-fw pi-trash'
229
- },
230
- {
231
- separator: true
232
- },
233
- {
234
- label: 'Export',
235
- icon: 'pi pi-fw pi-external-link'
229
+ label: 'Video',
230
+ icon: 'pi pi-fw pi-video'
236
231
  }
237
232
  ]
238
233
  },
239
234
  {
240
- label: 'Edit',
241
- icon: 'pi pi-fw pi-pencil',
235
+ label: 'Delete',
236
+ icon: 'pi pi-fw pi-trash'
237
+ },
238
+ {
239
+ separator: true
240
+ },
241
+ {
242
+ label: 'Export',
243
+ icon: 'pi pi-fw pi-external-link'
244
+ }
245
+ ]
246
+ },
247
+ {
248
+ label: 'Edit',
249
+ icon: 'pi pi-fw pi-pencil',
250
+ items: [
251
+ {
252
+ label: 'Left',
253
+ icon: 'pi pi-fw pi-align-left'
254
+ },
255
+ {
256
+ label: 'Right',
257
+ icon: 'pi pi-fw pi-align-right'
258
+ },
259
+ {
260
+ label: 'Center',
261
+ icon: 'pi pi-fw pi-align-center'
262
+ },
263
+ {
264
+ label: 'Justify',
265
+ icon: 'pi pi-fw pi-align-justify'
266
+ }
267
+ ]
268
+ },
269
+ {
270
+ label: 'Users',
271
+ icon: 'pi pi-fw pi-user',
272
+ items: [
273
+ {
274
+ label: 'New',
275
+ icon: 'pi pi-fw pi-user-plus'
276
+ },
277
+ {
278
+ label: 'Delete',
279
+ icon: 'pi pi-fw pi-user-minus'
280
+ },
281
+ {
282
+ label: 'Search',
283
+ icon: 'pi pi-fw pi-users',
242
284
  items: [
243
285
  {
244
- label: 'Left',
245
- icon: 'pi pi-fw pi-align-left'
246
- },
247
- {
248
- label: 'Right',
249
- icon: 'pi pi-fw pi-align-right'
250
- },
251
- {
252
- label: 'Center',
253
- icon: 'pi pi-fw pi-align-center'
286
+ label: 'Filter',
287
+ icon: 'pi pi-fw pi-filter',
288
+ items: [
289
+ {
290
+ label: 'Print',
291
+ icon: 'pi pi-fw pi-print'
292
+ }
293
+ ]
254
294
  },
255
295
  {
256
- label: 'Justify',
257
- icon: 'pi pi-fw pi-align-justify'
296
+ icon: 'pi pi-fw pi-bars',
297
+ label: 'List'
258
298
  }
259
299
  ]
260
- },
300
+ }
301
+ ]
302
+ },
303
+ {
304
+ label: 'Events',
305
+ icon: 'pi pi-fw pi-calendar',
306
+ items: [
261
307
  {
262
- label: 'Users',
263
- icon: 'pi pi-fw pi-user',
308
+ label: 'Edit',
309
+ icon: 'pi pi-fw pi-pencil',
264
310
  items: [
265
311
  {
266
- label: 'New',
267
- icon: 'pi pi-fw pi-user-plus'
312
+ label: 'Save',
313
+ icon: 'pi pi-fw pi-calendar-plus'
268
314
  },
269
315
  {
270
316
  label: 'Delete',
271
- icon: 'pi pi-fw pi-user-minus'
272
- },
273
- {
274
- label: 'Search',
275
- icon: 'pi pi-fw pi-users',
276
- items: [
277
- {
278
- label: 'Filter',
279
- icon: 'pi pi-fw pi-filter',
280
- items: [
281
- {
282
- label: 'Print',
283
- icon: 'pi pi-fw pi-print'
284
- }
285
- ]
286
- },
287
- {
288
- icon: 'pi pi-fw pi-bars',
289
- label: 'List'
290
- }
291
- ]
317
+ icon: 'pi pi-fw pi-calendar-minus'
292
318
  }
293
319
  ]
294
320
  },
295
321
  {
296
- label: 'Events',
297
- icon: 'pi pi-fw pi-calendar',
322
+ label: 'Archieve',
323
+ icon: 'pi pi-fw pi-calendar-times',
298
324
  items: [
299
325
  {
300
- label: 'Edit',
301
- icon: 'pi pi-fw pi-pencil',
302
- items: [
303
- {
304
- label: 'Save',
305
- icon: 'pi pi-fw pi-calendar-plus'
306
- },
307
- {
308
- label: 'Delete',
309
- icon: 'pi pi-fw pi-calendar-minus'
310
- }
311
- ]
312
- },
313
- {
314
- label: 'Archieve',
315
- icon: 'pi pi-fw pi-calendar-times',
316
- items: [
317
- {
318
- label: 'Remove',
319
- icon: 'pi pi-fw pi-calendar-minus'
320
- }
321
- ]
326
+ label: 'Remove',
327
+ icon: 'pi pi-fw pi-calendar-minus'
322
328
  }
323
329
  ]
324
- },
325
- {
326
- separator: true
327
- },
328
- {
329
- label: 'Quit',
330
- icon: 'pi pi-fw pi-power-off'
331
330
  }
332
- ];
331
+ ]
332
+ },
333
+ {
334
+ separator: true
335
+ },
336
+ {
337
+ label: 'Quit',
338
+ icon: 'pi pi-fw pi-power-off'
339
+ }
340
+ ];
333
341
  }
334
342
 
335
343
  save(severity: string) {
@@ -344,9 +352,10 @@ Outlined buttons display a border without a background initially.
344
352
 
345
353
  ```typescript
346
354
  import { Component, inject } from '@angular/core';
355
+ import { RouterModule } from '@angular/router';
356
+ import { MenuItem, MessageService } from '@exhaustive-ui/core/api';
347
357
  import { SplitButtonModule } from '@exhaustive-ui/core/splitbutton';
348
358
  import { ToastModule } from '@exhaustive-ui/core/toast';
349
- import { MenuItem, MessageService } from '@exhaustive-ui/core/api';
350
359
 
351
360
  @Component({
352
361
  template: `
@@ -363,31 +372,32 @@ import { MenuItem, MessageService } from '@exhaustive-ui/core/api';
363
372
  </div>
364
373
  `,
365
374
  standalone: true,
366
- imports: [SplitButtonModule, ToastModule],
375
+ imports: [SplitButtonModule, ToastModule, RouterModule],
367
376
  providers: [MessageService]
368
377
  })
369
378
  export class SplitbuttonOutlinedDemo {
370
379
  private messageService = inject(MessageService);
380
+
371
381
  items: MenuItem[];
372
382
 
373
383
  constructor() {
374
384
  this.items = [
375
- {
376
- label: 'Update',
377
- command: () => {
378
- this.update();
379
- }
380
- },
381
- {
382
- label: 'Delete',
383
- command: () => {
384
- this.delete();
385
- }
386
- },
387
- { label: 'Angular.dev', url: 'https://angular.dev' },
388
- { separator: true },
389
- { label: 'Upload', routerLink: ['/fileupload'] }
390
- ];
385
+ {
386
+ label: 'Update',
387
+ command: () => {
388
+ this.update();
389
+ }
390
+ },
391
+ {
392
+ label: 'Delete',
393
+ command: () => {
394
+ this.delete();
395
+ }
396
+ },
397
+ { label: 'Angular.dev', url: 'https://angular.dev' },
398
+ { separator: true },
399
+ { label: 'Upload', routerLink: ['/fileupload'] }
400
+ ];
391
401
  }
392
402
 
393
403
  save(severity: string) {
@@ -410,9 +420,10 @@ Raised buttons display a shadow to indicate elevation.
410
420
 
411
421
  ```typescript
412
422
  import { Component, inject } from '@angular/core';
423
+ import { RouterModule } from '@angular/router';
424
+ import { MenuItem, MessageService } from '@exhaustive-ui/core/api';
413
425
  import { SplitButtonModule } from '@exhaustive-ui/core/splitbutton';
414
426
  import { ToastModule } from '@exhaustive-ui/core/toast';
415
- import { MenuItem, MessageService } from '@exhaustive-ui/core/api';
416
427
 
417
428
  @Component({
418
429
  template: `
@@ -429,31 +440,32 @@ import { MenuItem, MessageService } from '@exhaustive-ui/core/api';
429
440
  </div>
430
441
  `,
431
442
  standalone: true,
432
- imports: [SplitButtonModule, ToastModule],
443
+ imports: [SplitButtonModule, ToastModule, RouterModule],
433
444
  providers: [MessageService]
434
445
  })
435
446
  export class SplitbuttonRaisedDemo {
436
447
  private messageService = inject(MessageService);
448
+
437
449
  items: MenuItem[];
438
450
 
439
451
  constructor() {
440
452
  this.items = [
441
- {
442
- label: 'Update',
443
- command: () => {
444
- this.update();
445
- }
446
- },
447
- {
448
- label: 'Delete',
449
- command: () => {
450
- this.delete();
451
- }
452
- },
453
- { label: 'Angular.dev', url: 'https://angular.dev' },
454
- { separator: true },
455
- { label: 'Upload', routerLink: ['/fileupload'] }
456
- ];
453
+ {
454
+ label: 'Update',
455
+ command: () => {
456
+ this.update();
457
+ }
458
+ },
459
+ {
460
+ label: 'Delete',
461
+ command: () => {
462
+ this.delete();
463
+ }
464
+ },
465
+ { label: 'Angular.dev', url: 'https://angular.dev' },
466
+ { separator: true },
467
+ { label: 'Upload', routerLink: ['/fileupload'] }
468
+ ];
457
469
  }
458
470
 
459
471
  save(severity: string) {
@@ -476,9 +488,10 @@ Text buttons can be displayed as raised as well for elevation.
476
488
 
477
489
  ```typescript
478
490
  import { Component, inject } from '@angular/core';
491
+ import { RouterModule } from '@angular/router';
492
+ import { MenuItem, MessageService } from '@exhaustive-ui/core/api';
479
493
  import { SplitButtonModule } from '@exhaustive-ui/core/splitbutton';
480
494
  import { ToastModule } from '@exhaustive-ui/core/toast';
481
- import { MenuItem, MessageService } from '@exhaustive-ui/core/api';
482
495
 
483
496
  @Component({
484
497
  template: `
@@ -495,31 +508,32 @@ import { MenuItem, MessageService } from '@exhaustive-ui/core/api';
495
508
  </div>
496
509
  `,
497
510
  standalone: true,
498
- imports: [SplitButtonModule, ToastModule],
511
+ imports: [SplitButtonModule, ToastModule, RouterModule],
499
512
  providers: [MessageService]
500
513
  })
501
514
  export class SplitbuttonRaisedtextDemo {
502
515
  private messageService = inject(MessageService);
516
+
503
517
  items: MenuItem[];
504
518
 
505
519
  constructor() {
506
520
  this.items = [
507
- {
508
- label: 'Update',
509
- command: () => {
510
- this.update();
511
- }
512
- },
513
- {
514
- label: 'Delete',
515
- command: () => {
516
- this.delete();
517
- }
518
- },
519
- { label: 'Angular.dev', url: 'https://angular.dev' },
520
- { separator: true },
521
- { label: 'Upload', routerLink: ['/fileupload'] }
522
- ];
521
+ {
522
+ label: 'Update',
523
+ command: () => {
524
+ this.update();
525
+ }
526
+ },
527
+ {
528
+ label: 'Delete',
529
+ command: () => {
530
+ this.delete();
531
+ }
532
+ },
533
+ { label: 'Angular.dev', url: 'https://angular.dev' },
534
+ { separator: true },
535
+ { label: 'Upload', routerLink: ['/fileupload'] }
536
+ ];
523
537
  }
524
538
 
525
539
  save(severity: string) {
@@ -546,9 +560,10 @@ Rounded buttons have a circular border radius.
546
560
 
547
561
  ```typescript
548
562
  import { Component, inject } from '@angular/core';
563
+ import { RouterModule } from '@angular/router';
564
+ import { MenuItem, MessageService } from '@exhaustive-ui/core/api';
549
565
  import { SplitButtonModule } from '@exhaustive-ui/core/splitbutton';
550
566
  import { ToastModule } from '@exhaustive-ui/core/toast';
551
- import { MenuItem, MessageService } from '@exhaustive-ui/core/api';
552
567
 
553
568
  @Component({
554
569
  template: `
@@ -565,31 +580,32 @@ import { MenuItem, MessageService } from '@exhaustive-ui/core/api';
565
580
  </div>
566
581
  `,
567
582
  standalone: true,
568
- imports: [SplitButtonModule, ToastModule],
583
+ imports: [SplitButtonModule, ToastModule, RouterModule],
569
584
  providers: [MessageService]
570
585
  })
571
586
  export class SplitbuttonRoundedDemo {
572
587
  private messageService = inject(MessageService);
588
+
573
589
  items: MenuItem[];
574
590
 
575
591
  constructor() {
576
592
  this.items = [
577
- {
578
- label: 'Update',
579
- command: () => {
580
- this.update();
581
- }
582
- },
583
- {
584
- label: 'Delete',
585
- command: () => {
586
- this.delete();
587
- }
588
- },
589
- { label: 'Angular.dev', url: 'https://angular.dev' },
590
- { separator: true },
591
- { label: 'Upload', routerLink: ['/fileupload'] }
592
- ];
593
+ {
594
+ label: 'Update',
595
+ command: () => {
596
+ this.update();
597
+ }
598
+ },
599
+ {
600
+ label: 'Delete',
601
+ command: () => {
602
+ this.delete();
603
+ }
604
+ },
605
+ { label: 'Angular.dev', url: 'https://angular.dev' },
606
+ { separator: true },
607
+ { label: 'Upload', routerLink: ['/fileupload'] }
608
+ ];
593
609
  }
594
610
 
595
611
  save(severity: string) {
@@ -612,9 +628,10 @@ The severity property defines the type of button.
612
628
 
613
629
  ```typescript
614
630
  import { Component, inject } from '@angular/core';
631
+ import { RouterModule } from '@angular/router';
632
+ import { MenuItem, MessageService } from '@exhaustive-ui/core/api';
615
633
  import { SplitButtonModule } from '@exhaustive-ui/core/splitbutton';
616
634
  import { ToastModule } from '@exhaustive-ui/core/toast';
617
- import { MenuItem, MessageService } from '@exhaustive-ui/core/api';
618
635
 
619
636
  @Component({
620
637
  template: `
@@ -631,31 +648,32 @@ import { MenuItem, MessageService } from '@exhaustive-ui/core/api';
631
648
  </div>
632
649
  `,
633
650
  standalone: true,
634
- imports: [SplitButtonModule, ToastModule],
651
+ imports: [SplitButtonModule, ToastModule, RouterModule],
635
652
  providers: [MessageService]
636
653
  })
637
654
  export class SplitbuttonSeverityDemo {
638
655
  private messageService = inject(MessageService);
656
+
639
657
  items: MenuItem[];
640
658
 
641
659
  constructor() {
642
660
  this.items = [
643
- {
644
- label: 'Update',
645
- command: () => {
646
- this.update();
647
- }
648
- },
649
- {
650
- label: 'Delete',
651
- command: () => {
652
- this.delete();
653
- }
654
- },
655
- { label: 'Angular.dev', url: 'https://angular.dev' },
656
- { separator: true },
657
- { label: 'Upload', routerLink: ['/fileupload'] }
658
- ];
661
+ {
662
+ label: 'Update',
663
+ command: () => {
664
+ this.update();
665
+ }
666
+ },
667
+ {
668
+ label: 'Delete',
669
+ command: () => {
670
+ this.delete();
671
+ }
672
+ },
673
+ { label: 'Angular.dev', url: 'https://angular.dev' },
674
+ { separator: true },
675
+ { label: 'Upload', routerLink: ['/fileupload'] }
676
+ ];
659
677
  }
660
678
 
661
679
  save() {
@@ -678,9 +696,10 @@ SplitButton provides small and large sizes as alternatives to the standard.
678
696
 
679
697
  ```typescript
680
698
  import { Component, inject } from '@angular/core';
699
+ import { RouterModule } from '@angular/router';
700
+ import { MenuItem, MessageService } from '@exhaustive-ui/core/api';
681
701
  import { SplitButtonModule } from '@exhaustive-ui/core/splitbutton';
682
702
  import { ToastModule } from '@exhaustive-ui/core/toast';
683
- import { MenuItem, MessageService } from '@exhaustive-ui/core/api';
684
703
 
685
704
  @Component({
686
705
  template: `
@@ -692,30 +711,32 @@ import { MenuItem, MessageService } from '@exhaustive-ui/core/api';
692
711
  </div>
693
712
  `,
694
713
  standalone: true,
695
- imports: [SplitButtonModule, ToastModule],
714
+ imports: [SplitButtonModule, ToastModule, RouterModule],
696
715
  providers: [MessageService]
697
716
  })
698
717
  export class SplitbuttonSizesDemo {
699
718
  private messageService = inject(MessageService);
700
719
 
720
+ items: MenuItem[];
721
+
701
722
  constructor() {
702
723
  this.items = [
703
- {
704
- label: 'Update',
705
- command: () => {
706
- this.update();
707
- }
708
- },
709
- {
710
- label: 'Delete',
711
- command: () => {
712
- this.delete();
713
- }
714
- },
715
- { label: 'Angular.dev', url: 'https://angular.dev' },
716
- { separator: true },
717
- { label: 'Upload', routerLink: ['/fileupload'] }
718
- ];
724
+ {
725
+ label: 'Update',
726
+ command: () => {
727
+ this.update();
728
+ }
729
+ },
730
+ {
731
+ label: 'Delete',
732
+ command: () => {
733
+ this.delete();
734
+ }
735
+ },
736
+ { label: 'Angular.dev', url: 'https://angular.dev' },
737
+ { separator: true },
738
+ { label: 'Upload', routerLink: ['/fileupload'] }
739
+ ];
719
740
  }
720
741
 
721
742
  save(severity: string) {
@@ -738,9 +759,10 @@ SplitButton has a default action button and a collection of additional options d
738
759
 
739
760
  ```typescript
740
761
  import { Component, inject } from '@angular/core';
762
+ import { RouterModule } from '@angular/router';
763
+ import { MenuItem, MessageService } from '@exhaustive-ui/core/api';
741
764
  import { SplitButtonModule } from '@exhaustive-ui/core/splitbutton';
742
765
  import { ToastModule } from '@exhaustive-ui/core/toast';
743
- import { MenuItem, MessageService } from '@exhaustive-ui/core/api';
744
766
 
745
767
  @Component({
746
768
  template: `
@@ -757,31 +779,32 @@ import { MenuItem, MessageService } from '@exhaustive-ui/core/api';
757
779
  </div>
758
780
  `,
759
781
  standalone: true,
760
- imports: [SplitButtonModule, ToastModule],
782
+ imports: [SplitButtonModule, ToastModule, RouterModule],
761
783
  providers: [MessageService]
762
784
  })
763
785
  export class SplitbuttonTemplateDemo {
764
786
  private messageService = inject(MessageService);
787
+
765
788
  items: MenuItem[];
766
789
 
767
790
  constructor() {
768
791
  this.items = [
769
- {
770
- label: 'Update',
771
- command: () => {
772
- this.update();
773
- }
774
- },
775
- {
776
- label: 'Delete',
777
- command: () => {
778
- this.delete();
779
- }
780
- },
781
- { label: 'Angular.dev', url: 'https://angular.dev' },
782
- { separator: true },
783
- { label: 'Upload', routerLink: ['/fileupload'] }
784
- ];
792
+ {
793
+ label: 'Update',
794
+ command: () => {
795
+ this.update();
796
+ }
797
+ },
798
+ {
799
+ label: 'Delete',
800
+ command: () => {
801
+ this.delete();
802
+ }
803
+ },
804
+ { label: 'Angular.dev', url: 'https://angular.dev' },
805
+ { separator: true },
806
+ { label: 'Upload', routerLink: ['/fileupload'] }
807
+ ];
785
808
  }
786
809
 
787
810
  save() {
@@ -804,9 +827,10 @@ Text buttons are displayed as textual elements.
804
827
 
805
828
  ```typescript
806
829
  import { Component, inject } from '@angular/core';
830
+ import { RouterModule } from '@angular/router';
831
+ import { MenuItem, MessageService } from '@exhaustive-ui/core/api';
807
832
  import { SplitButtonModule } from '@exhaustive-ui/core/splitbutton';
808
833
  import { ToastModule } from '@exhaustive-ui/core/toast';
809
- import { MenuItem, MessageService } from '@exhaustive-ui/core/api';
810
834
 
811
835
  @Component({
812
836
  template: `
@@ -823,31 +847,32 @@ import { MenuItem, MessageService } from '@exhaustive-ui/core/api';
823
847
  </div>
824
848
  `,
825
849
  standalone: true,
826
- imports: [SplitButtonModule, ToastModule],
850
+ imports: [SplitButtonModule, ToastModule, RouterModule],
827
851
  providers: [MessageService]
828
852
  })
829
853
  export class SplitbuttonTextDemo {
830
854
  private messageService = inject(MessageService);
855
+
831
856
  items: MenuItem[];
832
857
 
833
858
  constructor() {
834
859
  this.items = [
835
- {
836
- label: 'Update',
837
- command: () => {
838
- this.update();
839
- }
840
- },
841
- {
842
- label: 'Delete',
843
- command: () => {
844
- this.delete();
845
- }
846
- },
847
- { label: 'Angular.dev', url: 'https://angular.dev' },
848
- { separator: true },
849
- { label: 'Upload', routerLink: ['/fileupload'] }
850
- ];
860
+ {
861
+ label: 'Update',
862
+ command: () => {
863
+ this.update();
864
+ }
865
+ },
866
+ {
867
+ label: 'Delete',
868
+ command: () => {
869
+ this.delete();
870
+ }
871
+ },
872
+ { label: 'Angular.dev', url: 'https://angular.dev' },
873
+ { separator: true },
874
+ { label: 'Upload', routerLink: ['/fileupload'] }
875
+ ];
851
876
  }
852
877
 
853
878
  save(severity: string) {
@@ -872,33 +897,33 @@ SplitButton groups a set of commands in an overlay with a default command.
872
897
 
873
898
  | Name | Type | Default | Description |
874
899
  |------|------|---------|-------------|
875
- | dt | InputSignal<Object> | undefined | Defines scoped design tokens of the component. |
876
- | unstyled | InputSignal<boolean> | undefined | Indicates whether the component should be rendered without styles. |
877
- | pt | InputSignal<SplitButtonPassThrough> | undefined | Used to pass attributes to DOM elements inside the component. |
878
- | ptOptions | InputSignal<PassThroughOptions> | undefined | Used to configure passthrough(pt) options of the component. |
879
- | model | InputSignal<MenuItem[]> | ... | MenuModel instance to define the overlay items. |
880
- | severity | InputSignal<ButtonSeverity> | ... | Defines the style of the button. |
881
- | raised | InputSignalWithTransform<boolean, unknown> | ... | Add a shadow to indicate elevation. |
882
- | rounded | InputSignalWithTransform<boolean, unknown> | ... | Add a circular border radius to the button. |
883
- | text | InputSignalWithTransform<boolean, unknown> | ... | Add a textual class to the button without a background initially. |
884
- | outlined | InputSignalWithTransform<boolean, unknown> | ... | Add a border class without a background initially. |
885
- | size | InputSignal<"small" \| "large"> | ... | Defines the size of the button. |
886
- | icon | InputSignal<string> | ... | Name of the icon. |
887
- | iconPos | InputSignal<SplitButtonIconPosition> | ... | Position of the icon. |
888
- | label | InputSignal<string> | ... | Text of the button. |
889
- | tooltip | InputSignal<string> | ... | Tooltip for the main button. |
890
- | tooltipOptions | InputSignal<TooltipOptions> | ... | Tooltip options for the main button. |
891
- | menuStyle | InputSignal<{ [klass: string]: any }> | ... | Inline style of the overlay menu. |
892
- | menuStyleClass | InputSignal<string> | ... | Style class of the overlay menu. |
893
- | dropdownIcon | InputSignal<string> | ... | Name of the dropdown icon. |
894
- | appendTo | InputSignal<any> | 'body' | Target element to attach the overlay, valid values are "body" or a local ng-template variable of another element (note: use binding with brackets for template variables, e.g. [appendTo]="mydiv" for a div element having #mydiv as variable name). |
895
- | expandAriaLabel | InputSignal<string> | ... | Defines a string that labels the expand button for accessibility. |
896
- | motionOptions | InputSignal<MotionOptions> | ... | The motion options. |
897
- | autofocus | InputSignalWithTransform<boolean, unknown> | ... | When present, it specifies that the component should automatically get focus on load. |
898
- | disabled | InputSignalWithTransform<boolean, unknown> | ... | When present, it specifies that the element should be disabled. |
899
- | tabindex | InputSignalWithTransform<number, unknown> | ... | Index of the element in tabbing order. |
900
- | menuButtonDisabled | InputSignalWithTransform<boolean, unknown> | ... | When present, it specifies that the menu button element should be disabled. |
901
- | buttonDisabled | InputSignalWithTransform<boolean, unknown> | ... | When present, it specifies that the button element should be disabled. |
900
+ | dt | Object | undefined | Defines scoped design tokens of the component. |
901
+ | unstyled | boolean | undefined | Indicates whether the component should be rendered without styles. |
902
+ | pt | SplitButtonPassThrough | undefined | Used to pass attributes to DOM elements inside the component. |
903
+ | ptOptions | PassThroughOptions | undefined | Used to configure passthrough(pt) options of the component. |
904
+ | model | MenuItem[] | - | MenuModel instance to define the overlay items. |
905
+ | severity | ButtonSeverity | - | Defines the style of the button. |
906
+ | raised | boolean | false | Add a shadow to indicate elevation. |
907
+ | rounded | boolean | false | Add a circular border radius to the button. |
908
+ | text | boolean | false | Add a textual class to the button without a background initially. |
909
+ | outlined | boolean | false | Add a border class without a background initially. |
910
+ | size | "small" \| "large" | - | Defines the size of the button. |
911
+ | icon | string | - | Name of the icon. |
912
+ | iconPos | SplitButtonIconPosition | 'left' | Position of the icon. |
913
+ | label | string | - | Text of the button. |
914
+ | tooltip | string | - | Tooltip for the main button. |
915
+ | tooltipOptions | TooltipOptions | - | Tooltip options for the main button. |
916
+ | menuStyle | { [klass: string]: any } | - | Inline style of the overlay menu. |
917
+ | menuStyleClass | string | - | Style class of the overlay menu. |
918
+ | dropdownIcon | string | - | Name of the dropdown icon. |
919
+ | appendTo | any | 'body' | Target element to attach the overlay, valid values are "body" or a local ng-template variable of another element (note: use binding with brackets for template variables, e.g. [appendTo]="mydiv" for a div element having #mydiv as variable name). |
920
+ | expandAriaLabel | string | - | Defines a string that labels the expand button for accessibility. |
921
+ | motionOptions | MotionOptions | - | The motion options. |
922
+ | autofocus | boolean | - | When present, it specifies that the component should automatically get focus on load. |
923
+ | disabled | boolean | - | When present, it specifies that the element should be disabled. |
924
+ | tabindex | number | - | Index of the element in tabbing order. |
925
+ | menuButtonDisabled | boolean | false | When present, it specifies that the menu button element should be disabled. |
926
+ | buttonDisabled | boolean | false | When present, it specifies that the button element should be disabled. |
902
927
 
903
928
  ### Emits
904
929