@exhaustive-ui/mcp 22.4.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 (205) hide show
  1. package/README.md +13 -1
  2. package/data/cards/accordion.md +91 -0
  3. package/data/cards/animateonscroll.md +155 -0
  4. package/data/cards/autocomplete.md +109 -0
  5. package/data/cards/autofocus.md +36 -0
  6. package/data/cards/avatar.md +45 -0
  7. package/data/cards/badge.md +44 -0
  8. package/data/cards/blockui.md +51 -0
  9. package/data/cards/breadcrumb.md +56 -0
  10. package/data/cards/button.md +83 -0
  11. package/data/cards/card.md +49 -0
  12. package/data/cards/carousel.md +101 -0
  13. package/data/cards/cascadeselect.md +77 -0
  14. package/data/cards/chart.md +105 -0
  15. package/data/cards/checkbox.md +59 -0
  16. package/data/cards/chip.md +50 -0
  17. package/data/cards/classnames.md +91 -0
  18. package/data/cards/colorpicker.md +52 -0
  19. package/data/cards/confirmdialog.md +119 -0
  20. package/data/cards/confirmpopup.md +96 -0
  21. package/data/cards/contextmenu.md +60 -0
  22. package/data/cards/dataview.md +134 -0
  23. package/data/cards/datepicker.md +103 -0
  24. package/data/cards/dialog.md +89 -0
  25. package/data/cards/divider.md +55 -0
  26. package/data/cards/dock.md +106 -0
  27. package/data/cards/dragdrop.md +106 -0
  28. package/data/cards/drawer.md +62 -0
  29. package/data/cards/dynamicdialog.md +103 -0
  30. package/data/cards/editor.md +55 -0
  31. package/data/cards/fieldset.md +54 -0
  32. package/data/cards/fileinput.md +72 -0
  33. package/data/cards/fileupload.md +88 -0
  34. package/data/cards/floatlabel.md +41 -0
  35. package/data/cards/fluid.md +49 -0
  36. package/data/cards/focustrap.md +64 -0
  37. package/data/cards/galleria.md +94 -0
  38. package/data/cards/iconfield.md +45 -0
  39. package/data/cards/iftalabel.md +38 -0
  40. package/data/cards/image.md +58 -0
  41. package/data/cards/imagecompare.md +45 -0
  42. package/data/cards/inplace.md +56 -0
  43. package/data/cards/inputgroup.md +77 -0
  44. package/data/cards/inputmask.md +71 -0
  45. package/data/cards/inputnumber.md +78 -0
  46. package/data/cards/inputotp.md +60 -0
  47. package/data/cards/inputtext.md +41 -0
  48. package/data/cards/keyfilter.md +49 -0
  49. package/data/cards/knob.md +55 -0
  50. package/data/cards/listbox.md +105 -0
  51. package/data/cards/megamenu.md +96 -0
  52. package/data/cards/menu.md +64 -0
  53. package/data/cards/menubar.md +102 -0
  54. package/data/cards/message.md +51 -0
  55. package/data/cards/metergroup.md +53 -0
  56. package/data/cards/multiselect.md +115 -0
  57. package/data/cards/orderlist.md +96 -0
  58. package/data/cards/organizationchart.md +84 -0
  59. package/data/cards/overlay.md +63 -0
  60. package/data/cards/paginator.md +62 -0
  61. package/data/cards/panel.md +57 -0
  62. package/data/cards/panelmenu.md +94 -0
  63. package/data/cards/password.md +81 -0
  64. package/data/cards/picklist.md +106 -0
  65. package/data/cards/popover.md +53 -0
  66. package/data/cards/progressbar.md +42 -0
  67. package/data/cards/progressspinner.md +38 -0
  68. package/data/cards/radiobutton.md +52 -0
  69. package/data/cards/rating.md +56 -0
  70. package/data/cards/ripple.md +37 -0
  71. package/data/cards/scroller.md +32 -0
  72. package/data/cards/scrollpanel.md +50 -0
  73. package/data/cards/scrolltop.md +48 -0
  74. package/data/cards/select.md +108 -0
  75. package/data/cards/selectbutton.md +64 -0
  76. package/data/cards/skeleton.md +54 -0
  77. package/data/cards/slider.md +52 -0
  78. package/data/cards/speeddial.md +102 -0
  79. package/data/cards/splitbutton.md +96 -0
  80. package/data/cards/splitter.md +52 -0
  81. package/data/cards/stepper.md +125 -0
  82. package/data/cards/styleclass.md +46 -0
  83. package/data/cards/table.md +305 -0
  84. package/data/cards/tabs.md +97 -0
  85. package/data/cards/tag.md +41 -0
  86. package/data/cards/terminal.md +76 -0
  87. package/data/cards/textarea.md +45 -0
  88. package/data/cards/tieredmenu.md +121 -0
  89. package/data/cards/timeline.md +58 -0
  90. package/data/cards/toast.md +58 -0
  91. package/data/cards/togglebutton.md +59 -0
  92. package/data/cards/toggleswitch.md +52 -0
  93. package/data/cards/toolbar.md +74 -0
  94. package/data/cards/tooltip.md +43 -0
  95. package/data/cards/tree.md +93 -0
  96. package/data/cards/treeselect.md +98 -0
  97. package/data/cards/treetable.md +231 -0
  98. package/data/components/accordion.md +31 -23
  99. package/data/components/animateonscroll.md +18 -15
  100. package/data/components/autocomplete.md +162 -93
  101. package/data/components/autofocus.md +9 -7
  102. package/data/components/avatar.md +56 -43
  103. package/data/components/badge.md +27 -18
  104. package/data/components/blockui.md +15 -8
  105. package/data/components/breadcrumb.md +20 -14
  106. package/data/components/button.md +121 -94
  107. package/data/components/card.md +12 -10
  108. package/data/components/carousel.md +75 -53
  109. package/data/components/cascadeselect.md +271 -238
  110. package/data/components/chart.md +88 -74
  111. package/data/components/checkbox.md +107 -97
  112. package/data/components/chip.md +20 -16
  113. package/data/components/classnames.md +22 -4
  114. package/data/components/colorpicker.md +54 -36
  115. package/data/components/confirmdialog.md +146 -43
  116. package/data/components/confirmpopup.md +95 -22
  117. package/data/components/contextmenu.md +110 -39
  118. package/data/components/dataview.md +176 -83
  119. package/data/components/datepicker.md +171 -141
  120. package/data/components/dialog.md +80 -68
  121. package/data/components/divider.md +17 -12
  122. package/data/components/dock.md +65 -29
  123. package/data/components/dragdrop.md +26 -12
  124. package/data/components/drawer.md +67 -48
  125. package/data/components/dynamicdialog.md +22 -13
  126. package/data/components/editor.md +42 -33
  127. package/data/components/fieldset.md +20 -17
  128. package/data/components/fileinput.md +92 -35
  129. package/data/components/fileupload.md +101 -61
  130. package/data/components/floatlabel.md +20 -11
  131. package/data/components/fluid.md +11 -9
  132. package/data/components/focustrap.md +11 -7
  133. package/data/components/galleria.md +231 -90
  134. package/data/components/iconfield.md +23 -15
  135. package/data/components/iftalabel.md +15 -9
  136. package/data/components/image.md +31 -26
  137. package/data/components/imagecompare.md +8 -6
  138. package/data/components/inplace.md +27 -22
  139. package/data/components/inputgroup.md +53 -29
  140. package/data/components/inputmask.md +107 -85
  141. package/data/components/inputnumber.md +128 -90
  142. package/data/components/inputotp.md +55 -42
  143. package/data/components/inputtext.md +72 -50
  144. package/data/components/keyfilter.md +6 -3
  145. package/data/components/knob.md +70 -58
  146. package/data/components/listbox.md +171 -141
  147. package/data/components/llms.md +4 -0
  148. package/data/components/megamenu.md +24 -23
  149. package/data/components/menu.md +37 -34
  150. package/data/components/menubar.md +27 -22
  151. package/data/components/message.md +44 -32
  152. package/data/components/metergroup.md +48 -17
  153. package/data/components/multiselect.md +232 -168
  154. package/data/components/orderlist.md +55 -48
  155. package/data/components/organizationchart.md +182 -13
  156. package/data/components/overlay.md +31 -26
  157. package/data/components/paginator.md +49 -34
  158. package/data/components/panel.md +23 -19
  159. package/data/components/panelmenu.md +51 -25
  160. package/data/components/password.md +104 -91
  161. package/data/components/picklist.md +93 -71
  162. package/data/components/popover.md +68 -46
  163. package/data/components/progressbar.md +28 -22
  164. package/data/components/progressspinner.md +13 -11
  165. package/data/components/radiobutton.md +69 -35
  166. package/data/components/rating.md +48 -40
  167. package/data/components/ripple.md +8 -6
  168. package/data/components/scroller.md +29 -29
  169. package/data/components/scrollpanel.md +9 -7
  170. package/data/components/scrolltop.md +20 -18
  171. package/data/components/select.md +248 -169
  172. package/data/components/selectbutton.md +118 -56
  173. package/data/components/skeleton.md +22 -18
  174. package/data/components/slider.md +73 -49
  175. package/data/components/speeddial.md +77 -59
  176. package/data/components/splitbutton.md +354 -329
  177. package/data/components/splitter.md +22 -18
  178. package/data/components/stepper.md +38 -21
  179. package/data/components/styleclass.md +12 -6
  180. package/data/components/table.md +524 -315
  181. package/data/components/tabs.md +44 -26
  182. package/data/components/tag.md +18 -14
  183. package/data/components/terminal.md +38 -27
  184. package/data/components/textarea.md +82 -47
  185. package/data/components/tieredmenu.md +34 -29
  186. package/data/components/timeline.md +29 -28
  187. package/data/components/toast.md +115 -57
  188. package/data/components/togglebutton.md +53 -39
  189. package/data/components/toggleswitch.md +41 -28
  190. package/data/components/toolbar.md +19 -18
  191. package/data/components/tooltip.md +43 -32
  192. package/data/components/tree.md +114 -81
  193. package/data/components/treeselect.md +176 -174
  194. package/data/components/treetable.md +1250 -1045
  195. package/data/components.json +4134 -4088
  196. package/data/llms-full.txt +8979 -6437
  197. package/data/llms.txt +100 -96
  198. package/data/manifest.json +183 -15
  199. package/data/pages/llms.md +29 -0
  200. package/data/pages/tailwind.md +20 -10
  201. package/data/snapshot.json +2 -2
  202. package/dist/index.d.mts +37 -2
  203. package/dist/index.mjs +1395 -1079
  204. package/dist/index.mjs.map +1 -1
  205. package/package.json +1 -1
@@ -18,11 +18,11 @@ import { SliderModule } from '@exhaustive-ui/core/slider';
18
18
  @Component({
19
19
  template: `
20
20
  <div class="card flex justify-center">
21
- <p-slider [(ngModel)]="value" class="w-56" />
21
+ <p-slider [(ngModel)]="value" class="w-56" ariaLabel="Volume" />
22
22
  </div>
23
23
  `,
24
24
  standalone: true,
25
- imports: [SliderModule, FormsModule]
25
+ imports: [FormsModule, SliderModule]
26
26
  })
27
27
  export class SliderBasicDemo {
28
28
  value!: number;
@@ -36,8 +36,8 @@ Image filter implementation using multiple sliders.
36
36
  ```typescript
37
37
  import { Component } from '@angular/core';
38
38
  import { FormsModule } from '@angular/forms';
39
- import { SelectButtonModule } from '@exhaustive-ui/core/selectbutton';
40
39
  import { SliderModule } from '@exhaustive-ui/core/slider';
40
+ import { SelectButtonModule } from '@exhaustive-ui/core/selectbutton';
41
41
 
42
42
  @Component({
43
43
  template: `
@@ -45,17 +45,29 @@ import { SliderModule } from '@exhaustive-ui/core/slider';
45
45
  <div class="flex flex-col items-center">
46
46
  <img alt="user header" class="w-full md:w-80 rounded-sm mb-6" src="https://exhaustive-ui.com/demo/card-vue.jpg" [style]="filterStyle" />
47
47
  <p-select-button [(ngModel)]="filter" [options]="filterOptions" optionLabel="label" optionValue="value" class="mb-4" />
48
- <p-slider [(ngModel)]="filterValues[filter]" class="w-56" [min]="0" [max]="200" />
48
+ <p-slider [(ngModel)]="filterValues[filter]" class="w-56" [min]="0" [max]="200" ariaLabel="Filter intensity" />
49
49
  </div>
50
50
  </div>
51
51
  `,
52
52
  standalone: true,
53
- imports: [SelectButtonModule, SliderModule, FormsModule]
53
+ imports: [FormsModule, SliderModule, SelectButtonModule]
54
54
  })
55
55
  export class SliderFilterDemo {
56
56
  filter: number = 0;
57
+
57
58
  filterValues: number[] = [100, 100, 0];
58
- filterOptions: any;
59
+
60
+ filterOptions: any = [
61
+ { label: 'Contrast', value: 0 },
62
+ { label: 'Brightness', value: 1 },
63
+ { label: 'Sepia', value: 2 }
64
+ ];
65
+
66
+ get filterStyle() {
67
+ return {
68
+ filter: `contrast(${this.filterValues[0]}%) brightness(${this.filterValues[1]}%) sepia(${this.filterValues[2]}%)`
69
+ };
70
+ }
59
71
  }
60
72
  ```
61
73
 
@@ -73,13 +85,13 @@ import { InputTextModule } from '@exhaustive-ui/core/inputtext';
73
85
  template: `
74
86
  <div class="card flex justify-center">
75
87
  <div>
76
- <input type="text" pInputText [(ngModel)]="value" class="w-full mb-4" />
77
- <p-slider [(ngModel)]="value" class="w-full" />
88
+ <input type="text" pInputText [(ngModel)]="value" class="w-full mb-4" aria-label="Volume" />
89
+ <p-slider [(ngModel)]="value" class="w-full" ariaLabel="Volume" />
78
90
  </div>
79
91
  </div>
80
92
  `,
81
93
  standalone: true,
82
- imports: [SliderModule, InputTextModule, FormsModule]
94
+ imports: [FormsModule, SliderModule, InputTextModule]
83
95
  })
84
96
  export class SliderInputDemo {
85
97
  value: number = 50;
@@ -98,11 +110,11 @@ import { SliderModule } from '@exhaustive-ui/core/slider';
98
110
  @Component({
99
111
  template: `
100
112
  <div class="card flex justify-center">
101
- <p-slider [(ngModel)]="rangeValues" [range]="true" class="w-56" />
113
+ <p-slider [(ngModel)]="rangeValues" [range]="true" class="w-56" ariaLabel="Range" />
102
114
  </div>
103
115
  `,
104
116
  standalone: true,
105
- imports: [SliderModule, FormsModule]
117
+ imports: [FormsModule, SliderModule]
106
118
  })
107
119
  export class SliderRangeDemo {
108
120
  rangeValues: number[] = [20, 80];
@@ -115,12 +127,13 @@ Slider can also be used with reactive forms. In this case, the formControlName p
115
127
 
116
128
  ```typescript
117
129
  import { Component, inject } from '@angular/core';
118
- import { ReactiveFormsModule } from '@angular/forms';
119
- import { MessageModule } from '@exhaustive-ui/core/message';
130
+ import { FormBuilder, FormGroup, Validators, ReactiveFormsModule } from '@angular/forms';
131
+ import { CommonModule } from '@angular/common';
132
+ import { MessageService } from '@exhaustive-ui/core/api';
120
133
  import { SliderModule } from '@exhaustive-ui/core/slider';
121
134
  import { ToastModule } from '@exhaustive-ui/core/toast';
135
+ import { MessageModule } from '@exhaustive-ui/core/message';
122
136
  import { ButtonModule } from '@exhaustive-ui/core/button';
123
- import { MessageService } from '@exhaustive-ui/core/api';
124
137
 
125
138
  @Component({
126
139
  template: `
@@ -128,7 +141,7 @@ import { MessageService } from '@exhaustive-ui/core/api';
128
141
  <div class="card flex justify-center">
129
142
  <form [formGroup]="exampleForm" (ngSubmit)="onSubmit()" class="flex flex-col gap-4">
130
143
  <div class="flex flex-col gap-4">
131
- <p-slider formControlName="value" class="w-56" />
144
+ <p-slider formControlName="value" class="w-56" ariaLabel="Volume" />
132
145
  @if (isInvalid('value')) {
133
146
  <p-message severity="error" size="small" variant="simple">Must be greater than 25.</p-message>
134
147
  }
@@ -138,17 +151,22 @@ import { MessageService } from '@exhaustive-ui/core/api';
138
151
  </div>
139
152
  `,
140
153
  standalone: true,
141
- imports: [MessageModule, SliderModule, ToastModule, ButtonModule, ReactiveFormsModule]
154
+ imports: [CommonModule, ReactiveFormsModule, SliderModule, ToastModule, MessageModule, ButtonModule],
155
+ providers: [MessageService]
142
156
  })
143
157
  export class SliderReactiveformsDemo {
158
+ private fb = inject(FormBuilder);
159
+
144
160
  messageService = inject(MessageService);
161
+
145
162
  exampleForm: FormGroup | undefined;
163
+
146
164
  formSubmitted: boolean = false;
147
165
 
148
166
  constructor() {
149
167
  this.exampleForm = this.fb.group({
150
- value: ['', Validators.required]
151
- });
168
+ value: ['', Validators.required]
169
+ });
152
170
  }
153
171
 
154
172
  onSubmit() {
@@ -174,11 +192,11 @@ Slider can also be used with Angular Signal Forms , the @angular/forms/signals A
174
192
  ```typescript
175
193
  import { Component, inject, signal } from '@angular/core';
176
194
  import { form, FormField, submit, validate } from '@angular/forms/signals';
177
- import { MessageModule } from '@exhaustive-ui/core/message';
195
+ import { MessageService } from '@exhaustive-ui/core/api';
178
196
  import { SliderModule } from '@exhaustive-ui/core/slider';
179
- import { ToastModule } from '@exhaustive-ui/core/toast';
180
197
  import { ButtonModule } from '@exhaustive-ui/core/button';
181
- import { MessageService } from '@exhaustive-ui/core/api';
198
+ import { ToastModule } from '@exhaustive-ui/core/toast';
199
+ import { MessageModule } from '@exhaustive-ui/core/message';
182
200
 
183
201
  @Component({
184
202
  template: `
@@ -186,7 +204,7 @@ import { MessageService } from '@exhaustive-ui/core/api';
186
204
  <div class="card flex justify-center">
187
205
  <form novalidate (submit)="onSubmit($event)" class="flex flex-col gap-4">
188
206
  <div class="flex flex-col gap-4">
189
- <p-slider [formField]="exampleForm.value" class="w-56" />
207
+ <p-slider [formField]="exampleForm.value" class="w-56" ariaLabel="Volume" />
190
208
  @let value = exampleForm.value();
191
209
  @if (value.invalid() && value.touched()) {
192
210
  <p-message severity="error" size="small" variant="simple">Must be greater than 25.</p-message>
@@ -197,11 +215,14 @@ import { MessageService } from '@exhaustive-ui/core/api';
197
215
  </div>
198
216
  `,
199
217
  standalone: true,
200
- imports: [MessageModule, SliderModule, ToastModule, ButtonModule, FormField]
218
+ imports: [FormField, SliderModule, ButtonModule, ToastModule, MessageModule],
219
+ providers: [MessageService]
201
220
  })
202
221
  export class SliderSignalformsDemo {
203
222
  messageService = inject(MessageService);
223
+
204
224
  model = signal({ value: 0 });
225
+
205
226
  exampleForm = form(this.model, (f) => {
206
227
  // min() would also set the start of the slider range, so the lower bound is checked by a validator
207
228
  validate(f.value, ({ value }) => (value() > 25 ? null : { kind: 'min' }));
@@ -229,11 +250,11 @@ import { SliderModule } from '@exhaustive-ui/core/slider';
229
250
  @Component({
230
251
  template: `
231
252
  <div class="card flex justify-center">
232
- <p-slider [(ngModel)]="value" [step]="20" class="w-56" />
253
+ <p-slider [(ngModel)]="value" [step]="20" class="w-56" ariaLabel="Volume" />
233
254
  </div>
234
255
  `,
235
256
  standalone: true,
236
- imports: [SliderModule, FormsModule]
257
+ imports: [FormsModule, SliderModule]
237
258
  })
238
259
  export class SliderStepDemo {
239
260
  value: number = 20;
@@ -245,11 +266,12 @@ export class SliderStepDemo {
245
266
  ```typescript
246
267
  import { Component, inject } from '@angular/core';
247
268
  import { FormsModule } from '@angular/forms';
248
- import { MessageModule } from '@exhaustive-ui/core/message';
269
+ import { CommonModule } from '@angular/common';
270
+ import { MessageService } from '@exhaustive-ui/core/api';
249
271
  import { SliderModule } from '@exhaustive-ui/core/slider';
250
272
  import { ToastModule } from '@exhaustive-ui/core/toast';
273
+ import { MessageModule } from '@exhaustive-ui/core/message';
251
274
  import { ButtonModule } from '@exhaustive-ui/core/button';
252
- import { MessageService } from '@exhaustive-ui/core/api';
253
275
 
254
276
  @Component({
255
277
  template: `
@@ -257,7 +279,7 @@ import { MessageService } from '@exhaustive-ui/core/api';
257
279
  <div class="card flex justify-center">
258
280
  <form #exampleForm="ngForm" (ngSubmit)="onSubmit(exampleForm)" class="flex justify-center flex-col gap-4">
259
281
  <div class="flex flex-col gap-4">
260
- <p-slider #model="ngModel" [(ngModel)]="value" class="w-56" required [invalid]="model.invalid && (model.touched || exampleForm.submitted)" name="slider" />
282
+ <p-slider #model="ngModel" [(ngModel)]="value" class="w-56" required [invalid]="model.invalid && (model.touched || exampleForm.submitted)" name="slider" ariaLabel="Volume" />
261
283
  @if (model.invalid && (model.touched || exampleForm.submitted)) {
262
284
  <p-message severity="error" size="small" variant="simple">Must be greater than 25.</p-message>
263
285
  }
@@ -267,10 +289,12 @@ import { MessageService } from '@exhaustive-ui/core/api';
267
289
  </div>
268
290
  `,
269
291
  standalone: true,
270
- imports: [MessageModule, SliderModule, ToastModule, ButtonModule, FormsModule]
292
+ imports: [CommonModule, FormsModule, SliderModule, ToastModule, MessageModule, ButtonModule],
293
+ providers: [MessageService]
271
294
  })
272
295
  export class SliderTemplatedrivenformsDemo {
273
296
  messageService = inject(MessageService);
297
+
274
298
  value: any;
275
299
 
276
300
  onSubmit(form: any) {
@@ -294,11 +318,11 @@ import { SliderModule } from '@exhaustive-ui/core/slider';
294
318
  @Component({
295
319
  template: `
296
320
  <div class="card flex justify-center">
297
- <p-slider [(ngModel)]="value" orientation="vertical" class="h-56" />
321
+ <p-slider [(ngModel)]="value" orientation="vertical" class="h-56" ariaLabel="Volume" />
298
322
  </div>
299
323
  `,
300
324
  standalone: true,
301
- imports: [SliderModule, FormsModule]
325
+ imports: [FormsModule, SliderModule]
302
326
  })
303
327
  export class SliderVerticalDemo {
304
328
  value: number = 50;
@@ -313,24 +337,24 @@ Slider is a component to provide input with a drag handle.
313
337
 
314
338
  | Name | Type | Default | Description |
315
339
  |------|------|---------|-------------|
316
- | dt | InputSignal<Object> | undefined | Defines scoped design tokens of the component. |
317
- | unstyled | InputSignal<boolean> | undefined | Indicates whether the component should be rendered without styles. |
318
- | pt | InputSignal<SliderPassThrough> | undefined | Used to pass attributes to DOM elements inside the component. |
319
- | ptOptions | InputSignal<PassThroughOptions> | undefined | Used to configure passthrough(pt) options of the component. |
320
- | required | InputSignalWithTransform<boolean, unknown> | false | There must be a value (if set). |
321
- | invalid | InputSignalWithTransform<boolean, unknown> | false | When present, it specifies that the component should have invalid state style. |
322
- | disabled | InputSignalWithTransform<boolean, unknown> | false | When present, it specifies that the component should have disabled state style. |
323
- | name | InputSignal<string> | undefined | When present, it specifies that the name of the input. |
324
- | animate | InputSignalWithTransform<boolean, unknown> | ... | When enabled, displays an animation on click of the slider bar. |
325
- | min | InputSignalWithTransform<number, unknown> | ... | Mininum boundary value. |
326
- | max | InputSignalWithTransform<number, unknown> | ... | Maximum boundary value. |
327
- | orientation | InputSignal<"vertical" \| "horizontal"> | ... | Orientation of the slider. |
328
- | step | InputSignalWithTransform<number, unknown> | ... | Step factor to increment/decrement the value. |
329
- | range | InputSignalWithTransform<boolean, unknown> | ... | When specified, allows two boundary values to be picked. |
330
- | ariaLabel | InputSignal<string> | ... | Defines a string that labels the input for accessibility. |
331
- | ariaLabelledBy | InputSignal<string> | ... | Establishes relationships between the component and label(s) where its value should be one or more element IDs. |
332
- | tabindex | InputSignalWithTransform<number, unknown> | ... | Index of the element in tabbing order. |
333
- | autofocus | InputSignalWithTransform<boolean, unknown> | ... | When present, it specifies that the component should automatically get focus on load. |
340
+ | dt | Object | undefined | Defines scoped design tokens of the component. |
341
+ | unstyled | boolean | undefined | Indicates whether the component should be rendered without styles. |
342
+ | pt | SliderPassThrough | undefined | Used to pass attributes to DOM elements inside the component. |
343
+ | ptOptions | PassThroughOptions | undefined | Used to configure passthrough(pt) options of the component. |
344
+ | required | boolean | false | There must be a value (if set). |
345
+ | invalid | boolean | false | When present, it specifies that the component should have invalid state style. |
346
+ | disabled | boolean | false | When present, it specifies that the component should have disabled state style. |
347
+ | name | string | undefined | When present, it specifies that the name of the input. |
348
+ | animate | boolean | - | When enabled, displays an animation on click of the slider bar. |
349
+ | min | number | 0 | Mininum boundary value. |
350
+ | max | number | 100 | Maximum boundary value. |
351
+ | orientation | "vertical" \| "horizontal" | 'horizontal' | Orientation of the slider. |
352
+ | step | number | - | Step factor to increment/decrement the value. |
353
+ | range | boolean | - | When specified, allows two boundary values to be picked. |
354
+ | ariaLabel | string | - | Defines a string that labels the input for accessibility. |
355
+ | ariaLabelledBy | string | - | Establishes relationships between the component and label(s) where its value should be one or more element IDs. |
356
+ | tabindex | number | 0 | Index of the element in tabbing order. |
357
+ | autofocus | boolean | - | When present, it specifies that the component should automatically get focus on load. |
334
358
 
335
359
  ### Emits
336
360
 
@@ -12,25 +12,27 @@ Items can be displayed around the button when type is set to circle . Additional
12
12
 
13
13
  ```typescript
14
14
  import { Component, OnInit, inject } from '@angular/core';
15
+ import { RouterModule } from '@angular/router';
16
+ import { MenuItem, MessageService } from '@exhaustive-ui/core/api';
15
17
  import { SpeedDialModule } from '@exhaustive-ui/core/speeddial';
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: `
21
22
  <div class="card">
22
23
  <div style="position:relative; height: 500px;" class="flex items-center justify-center">
23
24
  <p-toast />
24
- <p-speed-dial [model]="items" [radius]="80" type="circle" [style]="{ position: 'absolute' }" [buttonProps]="{ severity: 'warn', rounded: true }" />
25
+ <p-speed-dial [model]="items" ariaLabel="Actions" [radius]="80" type="circle" [style]="{ position: 'absolute' }" [buttonProps]="{ severity: 'warn', rounded: true }" />
25
26
  </div>
26
27
  </div>
27
28
  `,
28
29
  standalone: true,
29
- imports: [SpeedDialModule, ToastModule],
30
+ imports: [SpeedDialModule, ToastModule, RouterModule],
30
31
  providers: [MessageService]
31
32
  })
32
33
  export class SpeeddialCircleDemo implements OnInit {
33
34
  private messageService = inject(MessageService);
35
+
34
36
  items: MenuItem[] | undefined;
35
37
 
36
38
  ngOnInit() {
@@ -73,28 +75,30 @@ SpeedDial items are defined with the model property based on MenuModel API. Defa
73
75
 
74
76
  ```typescript
75
77
  import { Component, OnInit, inject } from '@angular/core';
78
+ import { RouterModule } from '@angular/router';
79
+ import { MenuItem, MessageService } from '@exhaustive-ui/core/api';
76
80
  import { SpeedDialModule } from '@exhaustive-ui/core/speeddial';
77
81
  import { ToastModule } from '@exhaustive-ui/core/toast';
78
- import { MenuItem, MessageService } from '@exhaustive-ui/core/api';
79
82
 
80
83
  @Component({
81
84
  template: `
82
85
  <div class="card">
83
86
  <div style="height: 500px; position: relative;">
84
87
  <p-toast />
85
- <p-speed-dial [model]="items" direction="up" [style]="{ position: 'absolute', left: 'calc(50% - 2rem)', bottom: 0 }" />
86
- <p-speed-dial [model]="items" direction="down" [style]="{ position: 'absolute', left: 'calc(50% - 2rem)', top: 0 }" />
87
- <p-speed-dial [model]="items" direction="left" [style]="{ position: 'absolute', top: 'calc(50% - 2rem)', right: 0 }" />
88
- <p-speed-dial [model]="items" direction="right" [style]="{ position: 'absolute', top: 'calc(50% - 2rem)', left: 0 }" />
88
+ <p-speed-dial [model]="items" ariaLabel="Actions" direction="up" [style]="{ position: 'absolute', left: 'calc(50% - 2rem)', bottom: 0 }" />
89
+ <p-speed-dial [model]="items" ariaLabel="Actions" direction="down" [style]="{ position: 'absolute', left: 'calc(50% - 2rem)', top: 0 }" />
90
+ <p-speed-dial [model]="items" ariaLabel="Actions" direction="left" [style]="{ position: 'absolute', top: 'calc(50% - 2rem)', right: 0 }" />
91
+ <p-speed-dial [model]="items" ariaLabel="Actions" direction="right" [style]="{ position: 'absolute', top: 'calc(50% - 2rem)', left: 0 }" />
89
92
  </div>
90
93
  </div>
91
94
  `,
92
95
  standalone: true,
93
- imports: [SpeedDialModule, ToastModule],
96
+ imports: [SpeedDialModule, ToastModule, RouterModule],
94
97
  providers: [MessageService]
95
98
  })
96
99
  export class SpeeddialLinearDemo implements OnInit {
97
100
  private messageService = inject(MessageService);
101
+
98
102
  items: MenuItem[] | undefined;
99
103
 
100
104
  ngOnInit() {
@@ -137,25 +141,27 @@ Adding mask property displays a modal layer behind the popup items.
137
141
 
138
142
  ```typescript
139
143
  import { Component, OnInit, inject } from '@angular/core';
144
+ import { RouterModule } from '@angular/router';
145
+ import { MenuItem, MessageService } from '@exhaustive-ui/core/api';
140
146
  import { SpeedDialModule } from '@exhaustive-ui/core/speeddial';
141
147
  import { ToastModule } from '@exhaustive-ui/core/toast';
142
- import { MenuItem, MessageService } from '@exhaustive-ui/core/api';
143
148
 
144
149
  @Component({
145
150
  template: `
146
151
  <div class="card p-4">
147
152
  <div [style]="{ position: 'relative', height: '350px' }">
148
153
  <p-toast />
149
- <p-speed-dial [model]="items" direction="up" mask [style]="{ position: 'absolute', right: '1rem', bottom: '1rem' }" />
154
+ <p-speed-dial [model]="items" ariaLabel="Actions" direction="up" mask [style]="{ position: 'absolute', right: '1rem', bottom: '1rem' }" />
150
155
  </div>
151
156
  </div>
152
157
  `,
153
158
  standalone: true,
154
- imports: [SpeedDialModule, ToastModule],
159
+ imports: [SpeedDialModule, ToastModule, RouterModule],
155
160
  providers: [MessageService]
156
161
  })
157
162
  export class SpeeddialMaskDemo implements OnInit {
158
163
  private messageService = inject(MessageService);
164
+
159
165
  items: MenuItem[] | undefined;
160
166
 
161
167
  ngOnInit() {
@@ -198,28 +204,30 @@ When type is defined as quarter-circle , items are displayed in a half-circle ar
198
204
 
199
205
  ```typescript
200
206
  import { Component, OnInit, inject } from '@angular/core';
207
+ import { RouterModule } from '@angular/router';
208
+ import { MenuItem, MessageService } from '@exhaustive-ui/core/api';
201
209
  import { SpeedDialModule } from '@exhaustive-ui/core/speeddial';
202
210
  import { ToastModule } from '@exhaustive-ui/core/toast';
203
- import { MenuItem, MessageService } from '@exhaustive-ui/core/api';
204
211
 
205
212
  @Component({
206
213
  template: `
207
214
  <div class="card">
208
215
  <div style="position: relative; height: 500px">
209
216
  <p-toast />
210
- <p-speed-dial [model]="items" [radius]="120" type="quarter-circle" direction="up-left" [style]="{ position: 'absolute', right: 0, bottom: 0 }" />
211
- <p-speed-dial [model]="items" [radius]="120" type="quarter-circle" direction="up-right" [style]="{ position: 'absolute', left: 0, bottom: 0 }" />
212
- <p-speed-dial [model]="items" [radius]="120" type="quarter-circle" direction="down-left" [style]="{ position: 'absolute', right: 0, top: 0 }" />
213
- <p-speed-dial [model]="items" [radius]="120" type="quarter-circle" direction="down-right" [style]="{ position: 'absolute', left: 0, top: 0 }" />
217
+ <p-speed-dial [model]="items" ariaLabel="Actions" [radius]="120" type="quarter-circle" direction="up-left" [style]="{ position: 'absolute', right: 0, bottom: 0 }" />
218
+ <p-speed-dial [model]="items" ariaLabel="Actions" [radius]="120" type="quarter-circle" direction="up-right" [style]="{ position: 'absolute', left: 0, bottom: 0 }" />
219
+ <p-speed-dial [model]="items" ariaLabel="Actions" [radius]="120" type="quarter-circle" direction="down-left" [style]="{ position: 'absolute', right: 0, top: 0 }" />
220
+ <p-speed-dial [model]="items" ariaLabel="Actions" [radius]="120" type="quarter-circle" direction="down-right" [style]="{ position: 'absolute', left: 0, top: 0 }" />
214
221
  </div>
215
222
  </div>
216
223
  `,
217
224
  standalone: true,
218
- imports: [SpeedDialModule, ToastModule],
225
+ imports: [SpeedDialModule, ToastModule, RouterModule],
219
226
  providers: [MessageService]
220
227
  })
221
228
  export class SpeeddialQuartercircleDemo implements OnInit {
222
229
  private messageService = inject(MessageService);
230
+
223
231
  items: MenuItem[] | undefined;
224
232
 
225
233
  ngOnInit() {
@@ -262,28 +270,30 @@ When type is defined as semi-circle , items are displayed in a half-circle aroun
262
270
 
263
271
  ```typescript
264
272
  import { Component, OnInit, inject } from '@angular/core';
273
+ import { RouterModule } from '@angular/router';
274
+ import { MenuItem, MessageService } from '@exhaustive-ui/core/api';
265
275
  import { SpeedDialModule } from '@exhaustive-ui/core/speeddial';
266
276
  import { ToastModule } from '@exhaustive-ui/core/toast';
267
- import { MenuItem, MessageService } from '@exhaustive-ui/core/api';
268
277
 
269
278
  @Component({
270
279
  template: `
271
280
  <div class="card">
272
281
  <div style="position: relative; height: 500px">
273
282
  <p-toast />
274
- <p-speed-dial [model]="items" [radius]="80" type="semi-circle" direction="down" [style]="{ position: 'absolute', left: 'calc(50% - 2rem)', top: 0 }" />
275
- <p-speed-dial [model]="items" [radius]="80" type="semi-circle" direction="right" [style]="{ position: 'absolute', top: 'calc(50% - 2rem)', left: 0 }" />
276
- <p-speed-dial [model]="items" [radius]="80" type="semi-circle" direction="left" [style]="{ position: 'absolute', top: 'calc(50% - 2rem)', right: 0 }" />
277
- <p-speed-dial [model]="items" [radius]="80" type="semi-circle" direction="up" [style]="{ position: 'absolute', left: 'calc(50% - 2rem)', bottom: 0 }" />
283
+ <p-speed-dial [model]="items" ariaLabel="Actions" [radius]="80" type="semi-circle" direction="down" [style]="{ position: 'absolute', left: 'calc(50% - 2rem)', top: 0 }" />
284
+ <p-speed-dial [model]="items" ariaLabel="Actions" [radius]="80" type="semi-circle" direction="right" [style]="{ position: 'absolute', top: 'calc(50% - 2rem)', left: 0 }" />
285
+ <p-speed-dial [model]="items" ariaLabel="Actions" [radius]="80" type="semi-circle" direction="left" [style]="{ position: 'absolute', top: 'calc(50% - 2rem)', right: 0 }" />
286
+ <p-speed-dial [model]="items" ariaLabel="Actions" [radius]="80" type="semi-circle" direction="up" [style]="{ position: 'absolute', left: 'calc(50% - 2rem)', bottom: 0 }" />
278
287
  </div>
279
288
  </div>
280
289
  `,
281
290
  standalone: true,
282
- imports: [SpeedDialModule, ToastModule],
291
+ imports: [SpeedDialModule, ToastModule, RouterModule],
283
292
  providers: [MessageService]
284
293
  })
285
294
  export class SpeeddialSemicircleDemo implements OnInit {
286
295
  private messageService = inject(MessageService);
296
+
287
297
  items: MenuItem[] | undefined;
288
298
 
289
299
  ngOnInit() {
@@ -326,10 +336,12 @@ SpeedDial offers item customization with the item template that receives the men
326
336
 
327
337
  ```typescript
328
338
  import { Component, OnInit, inject } from '@angular/core';
329
- import { ButtonModule } from '@exhaustive-ui/core/button';
339
+ import { Router } from '@angular/router';
340
+ import { CommonModule } from '@angular/common';
341
+ import { MenuItem, MessageService } from '@exhaustive-ui/core/api';
330
342
  import { SpeedDialModule } from '@exhaustive-ui/core/speeddial';
331
343
  import { ToastModule } from '@exhaustive-ui/core/toast';
332
- import { MenuItem, MessageService } from '@exhaustive-ui/core/api';
344
+ import { ButtonModule } from '@exhaustive-ui/core/button';
333
345
 
334
346
  @Component({
335
347
  template: `
@@ -338,7 +350,7 @@ import { MenuItem, MessageService } from '@exhaustive-ui/core/api';
338
350
  <p-toast />
339
351
  <p-speed-dial [model]="items" direction="up" [transitionDelay]="80" style="position: 'absolute'">
340
352
  <ng-template #button let-toggleCallback="toggleCallback">
341
- <p-button outlined styleClass="border" (click)="toggleCallback($event)">
353
+ <p-button outlined styleClass="border" ariaLabel="Actions" (click)="toggleCallback($event)">
342
354
  <svg width="31" height="33" viewBox="0 0 31 33" fill="none" xmlns="http://www.w3.org/2000/svg">
343
355
  <path d="M15.1934 0V0V0L0.0391235 5.38288L2.35052 25.3417L15.1934 32.427V32.427V32.427L28.0364 25.3417L30.3478 5.38288L15.1934 0Z" fill="var(--p-primary-color)" />
344
356
  <mask id="mask0_1_52" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="0" y="0" width="31" height="33">
@@ -383,11 +395,13 @@ import { MenuItem, MessageService } from '@exhaustive-ui/core/api';
383
395
  </div>
384
396
  `,
385
397
  standalone: true,
386
- imports: [ButtonModule, SpeedDialModule, ToastModule],
398
+ imports: [CommonModule, SpeedDialModule, ToastModule, ButtonModule],
387
399
  providers: [MessageService]
388
400
  })
389
401
  export class SpeeddialTemplateDemo implements OnInit {
390
402
  private messageService = inject(MessageService);
403
+ private router = inject(Router);
404
+
391
405
  items: MenuItem[] | undefined;
392
406
 
393
407
  ngOnInit() {
@@ -438,26 +452,30 @@ Items display a tooltip on hover when a standalone Tooltip is present with a tar
438
452
 
439
453
  ```typescript
440
454
  import { Component, OnInit, inject } from '@angular/core';
455
+ import { Router } from '@angular/router';
456
+ import { RouterModule } from '@angular/router';
457
+ import { MenuItem, MessageService } from '@exhaustive-ui/core/api';
441
458
  import { SpeedDialModule } from '@exhaustive-ui/core/speeddial';
442
459
  import { ToastModule } from '@exhaustive-ui/core/toast';
443
- import { MenuItem, MessageService } from '@exhaustive-ui/core/api';
444
460
 
445
461
  @Component({
446
462
  template: `
447
463
  <div class="card">
448
464
  <div [style]="{ position: 'relative', height: '350px' }">
449
465
  <p-toast />
450
- <p-speed-dial [model]="items" direction="up" [style]="{ position: 'absolute', right: 0, bottom: 0 }" [buttonProps]="{ severity: 'help', rounded: true }" [tooltipOptions]="{ tooltipPosition: 'left' }" />
451
- <p-speed-dial [model]="items" direction="up" [style]="{ position: 'absolute', left: 0, bottom: 0 }" [buttonProps]="{ severity: 'danger', rounded: true }" [tooltipOptions]="{ tooltipPosition: 'right' }" />
466
+ <p-speed-dial [model]="items" ariaLabel="Actions" direction="up" [style]="{ position: 'absolute', right: 0, bottom: 0 }" [buttonProps]="{ severity: 'help', rounded: true }" [tooltipOptions]="{ tooltipPosition: 'left' }" />
467
+ <p-speed-dial [model]="items" ariaLabel="Actions" direction="up" [style]="{ position: 'absolute', left: 0, bottom: 0 }" [buttonProps]="{ severity: 'danger', rounded: true }" [tooltipOptions]="{ tooltipPosition: 'right' }" />
452
468
  </div>
453
469
  </div>
454
470
  `,
455
471
  standalone: true,
456
- imports: [SpeedDialModule, ToastModule],
472
+ imports: [SpeedDialModule, ToastModule, RouterModule],
457
473
  providers: [MessageService]
458
474
  })
459
475
  export class SpeeddialTooltipDemo implements OnInit {
460
476
  private messageService = inject(MessageService);
477
+ private router = inject(Router);
478
+
461
479
  items: MenuItem[] | undefined;
462
480
 
463
481
  ngOnInit() {
@@ -509,33 +527,33 @@ When pressed, a floating action button can display multiple primary actions that
509
527
 
510
528
  | Name | Type | Default | Description |
511
529
  |------|------|---------|-------------|
512
- | dt | InputSignal<Object> | undefined | Defines scoped design tokens of the component. |
513
- | unstyled | InputSignal<boolean> | undefined | Indicates whether the component should be rendered without styles. |
514
- | pt | InputSignal<SpeedDialPassThrough> | undefined | Used to pass attributes to DOM elements inside the component. |
515
- | ptOptions | InputSignal<PassThroughOptions> | undefined | Used to configure passthrough(pt) options of the component. |
516
- | id | InputSignal<string> | ... | List of items id. |
517
- | model | InputSignal<MenuItem[]> | ... | MenuModel instance to define the action items. |
518
- | visible | ModelSignal<boolean> | false | Specifies the visibility of the overlay, supports one or two-way binding as well. Emits `visibleChange` with the new value when the visibility of element changed. |
519
- | style | InputSignal<{ [klass: string]: any }> | ... | Inline style of the element. |
520
- | className | InputSignal<string> | ... | Style class of the element. |
521
- | direction | InputSignal<"left" \| "right" \| "down" \| "up" \| "up-left" \| "up-right" \| "down-left" \| "down-right"> | ... | Specifies the opening direction of actions. |
522
- | transitionDelay | InputSignalWithTransform<number, unknown> | ... | Transition delay step for each action item. |
523
- | type | InputSignal<"circle" \| "linear" \| "semi-circle" \| "quarter-circle"> | ... | Specifies the opening type of actions. |
524
- | radius | InputSignalWithTransform<number, unknown> | ... | Radius for *circle types. |
525
- | mask | InputSignalWithTransform<boolean, unknown> | ... | Whether to show a mask element behind the speeddial. |
526
- | disabled | InputSignalWithTransform<boolean, unknown> | ... | Whether the component is disabled. |
527
- | hideOnClickOutside | InputSignalWithTransform<boolean, unknown> | ... | Whether the actions close when clicked outside. |
528
- | buttonStyle | InputSignal<{ [klass: string]: any }> | ... | Inline style of the button element. |
529
- | buttonClassName | InputSignal<string> | ... | Style class of the button element. |
530
- | maskStyle | InputSignal<{ [klass: string]: any }> | ... | Inline style of the mask element. |
531
- | maskClassName | InputSignal<string> | ... | Style class of the mask element. |
532
- | showIcon | InputSignal<string> | ... | Show icon of the button element. |
533
- | hideIcon | InputSignal<string> | ... | Hide icon of the button element. |
534
- | rotateAnimation | InputSignalWithTransform<boolean, unknown> | ... | Defined to rotate showIcon when hideIcon is not present. |
535
- | ariaLabel | InputSignal<string> | ... | Defines a string value that labels an interactive element. |
536
- | ariaLabelledBy | InputSignal<string> | ... | Identifier of the underlying input element. |
537
- | tooltipOptions | InputSignal<TooltipOptions> | ... | Whether to display the tooltip on items. The modifiers of Tooltip can be used like an object in it. Valid keys are 'event' and 'position'. |
538
- | buttonProps | InputSignal<ButtonProps> | ... | Used to pass all properties of the ButtonProps to the Button component. |
530
+ | dt | Object | undefined | Defines scoped design tokens of the component. |
531
+ | unstyled | boolean | undefined | Indicates whether the component should be rendered without styles. |
532
+ | pt | SpeedDialPassThrough | undefined | Used to pass attributes to DOM elements inside the component. |
533
+ | ptOptions | PassThroughOptions | undefined | Used to configure passthrough(pt) options of the component. |
534
+ | id | string | - | List of items id. |
535
+ | model | MenuItem[] | - | MenuModel instance to define the action items. |
536
+ | visible | boolean | false | Specifies the visibility of the overlay, supports one or two-way binding as well. Emits `visibleChange` with the new value when the visibility of element changed. |
537
+ | style | { [klass: string]: any } | - | Inline style of the element. |
538
+ | className | string | - | Style class of the element. |
539
+ | direction | "left" \| "right" \| "down" \| "up" \| "up-left" \| "up-right" \| "down-left" \| "down-right" | 'up' | Specifies the opening direction of actions. |
540
+ | transitionDelay | number | 30 | Transition delay step for each action item. |
541
+ | type | "circle" \| "linear" \| "semi-circle" \| "quarter-circle" | 'linear' | Specifies the opening type of actions. |
542
+ | radius | number | 0 | Radius for *circle types. |
543
+ | mask | boolean | false | Whether to show a mask element behind the speeddial. |
544
+ | disabled | boolean | false | Whether the component is disabled. |
545
+ | hideOnClickOutside | boolean | true | Whether the actions close when clicked outside. |
546
+ | buttonStyle | { [klass: string]: any } | - | Inline style of the button element. |
547
+ | buttonClassName | string | - | Style class of the button element. |
548
+ | maskStyle | { [klass: string]: any } | - | Inline style of the mask element. |
549
+ | maskClassName | string | - | Style class of the mask element. |
550
+ | showIcon | string | - | Show icon of the button element. |
551
+ | hideIcon | string | - | Hide icon of the button element. |
552
+ | rotateAnimation | boolean | true | Defined to rotate showIcon when hideIcon is not present. |
553
+ | ariaLabel | string | - | Defines a string value that labels an interactive element. |
554
+ | ariaLabelledBy | string | - | Identifier of the underlying input element. |
555
+ | tooltipOptions | TooltipOptions | - | Whether to display the tooltip on items. The modifiers of Tooltip can be used like an object in it. Valid keys are 'event' and 'position'. |
556
+ | buttonProps | ButtonProps | - | Used to pass all properties of the ButtonProps to the Button component. |
539
557
 
540
558
  ### Emits
541
559