@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
@@ -18,11 +18,11 @@ import { ToggleSwitchModule } from '@exhaustive-ui/core/toggleswitch';
18
18
  @Component({
19
19
  template: `
20
20
  <div class="card flex justify-center">
21
- <p-toggle-switch [(ngModel)]="checked" />
21
+ <p-toggle-switch [(ngModel)]="checked" ariaLabel="Notifications" />
22
22
  </div>
23
23
  `,
24
24
  standalone: true,
25
- imports: [ToggleSwitchModule, FormsModule]
25
+ imports: [FormsModule, ToggleSwitchModule]
26
26
  })
27
27
  export class ToggleswitchBasicDemo {
28
28
  checked: boolean = false;
@@ -41,11 +41,11 @@ import { ToggleSwitchModule } from '@exhaustive-ui/core/toggleswitch';
41
41
  @Component({
42
42
  template: `
43
43
  <div class="card flex justify-center">
44
- <p-toggle-switch [(ngModel)]="checked" [disabled]="true" />
44
+ <p-toggle-switch [(ngModel)]="checked" [disabled]="true" ariaLabel="Notifications" />
45
45
  </div>
46
46
  `,
47
47
  standalone: true,
48
- imports: [ToggleSwitchModule, FormsModule]
48
+ imports: [FormsModule, ToggleSwitchModule]
49
49
  })
50
50
  export class ToggleswitchDisabledDemo {
51
51
  checked: boolean = false;
@@ -64,11 +64,11 @@ import { ToggleSwitchModule } from '@exhaustive-ui/core/toggleswitch';
64
64
  @Component({
65
65
  template: `
66
66
  <div class="card flex justify-center">
67
- <p-toggle-switch [(ngModel)]="checked" [invalid]="!checked" />
67
+ <p-toggle-switch [(ngModel)]="checked" [invalid]="!checked" ariaLabel="Notifications" />
68
68
  </div>
69
69
  `,
70
70
  standalone: true,
71
- imports: [ToggleSwitchModule, FormsModule]
71
+ imports: [FormsModule, ToggleSwitchModule]
72
72
  })
73
73
  export class ToggleswitchInvalidDemo {
74
74
  checked: boolean = false;
@@ -87,11 +87,11 @@ import { ToggleSwitchModule } from '@exhaustive-ui/core/toggleswitch';
87
87
  @Component({
88
88
  template: `
89
89
  <div class="card flex justify-center">
90
- <p-toggle-switch [(ngModel)]="checked" />
90
+ <p-toggle-switch [(ngModel)]="checked" ariaLabel="Notifications" />
91
91
  </div>
92
92
  `,
93
93
  standalone: true,
94
- imports: [ToggleSwitchModule, FormsModule]
94
+ imports: [FormsModule, ToggleSwitchModule]
95
95
  })
96
96
  export class ToggleswitchPreselectionDemo {
97
97
  checked: boolean = true;
@@ -104,12 +104,13 @@ ToggleSwitch can also be used with reactive forms. In this case, the formControl
104
104
 
105
105
  ```typescript
106
106
  import { Component, inject } from '@angular/core';
107
- import { ReactiveFormsModule } from '@angular/forms';
108
- import { MessageModule } from '@exhaustive-ui/core/message';
109
- import { ToastModule } from '@exhaustive-ui/core/toast';
107
+ import { FormBuilder, FormGroup, Validators, ReactiveFormsModule } from '@angular/forms';
108
+ import { CommonModule } from '@angular/common';
109
+ import { MessageService } from '@exhaustive-ui/core/api';
110
110
  import { ToggleSwitchModule } from '@exhaustive-ui/core/toggleswitch';
111
+ import { ToastModule } from '@exhaustive-ui/core/toast';
112
+ import { MessageModule } from '@exhaustive-ui/core/message';
111
113
  import { ButtonModule } from '@exhaustive-ui/core/button';
112
- import { MessageService } from '@exhaustive-ui/core/api';
113
114
 
114
115
  @Component({
115
116
  template: `
@@ -117,7 +118,7 @@ import { MessageService } from '@exhaustive-ui/core/api';
117
118
  <div class="card flex justify-center">
118
119
  <form [formGroup]="exampleForm" (ngSubmit)="onSubmit()" class="flex flex-col gap-4 w-48">
119
120
  <div class="flex flex-col items-center gap-2">
120
- <p-toggle-switch name="activation" formControlName="activation" [invalid]="isInvalid('activation')" />
121
+ <p-toggle-switch name="activation" formControlName="activation" [invalid]="isInvalid('activation')" ariaLabel="Notifications" />
121
122
  @if (isInvalid('activation')) {
122
123
  <p-message severity="error" size="small" variant="simple">Activation is required.</p-message>
123
124
  }
@@ -127,17 +128,22 @@ import { MessageService } from '@exhaustive-ui/core/api';
127
128
  </div>
128
129
  `,
129
130
  standalone: true,
130
- imports: [MessageModule, ToastModule, ToggleSwitchModule, ButtonModule, ReactiveFormsModule]
131
+ imports: [CommonModule, ReactiveFormsModule, ToggleSwitchModule, ToastModule, MessageModule, ButtonModule],
132
+ providers: [MessageService]
131
133
  })
132
134
  export class ToggleswitchReactiveformsDemo {
135
+ private fb = inject(FormBuilder);
136
+
133
137
  messageService = inject(MessageService);
138
+
134
139
  exampleForm: FormGroup | undefined;
140
+
135
141
  formSubmitted: boolean = false;
136
142
 
137
143
  constructor() {
138
144
  this.exampleForm = this.fb.group({
139
- activation: ['', Validators.required]
140
- });
145
+ activation: ['', Validators.required]
146
+ });
141
147
  }
142
148
 
143
149
  onSubmit() {
@@ -163,11 +169,11 @@ ToggleSwitch can also be used with Angular Signal Forms , the @angular/forms/sig
163
169
  ```typescript
164
170
  import { Component, inject, signal } from '@angular/core';
165
171
  import { form, FormField, required, submit } from '@angular/forms/signals';
166
- import { MessageModule } from '@exhaustive-ui/core/message';
167
- import { ToastModule } from '@exhaustive-ui/core/toast';
172
+ import { MessageService } from '@exhaustive-ui/core/api';
168
173
  import { ToggleSwitchModule } from '@exhaustive-ui/core/toggleswitch';
169
174
  import { ButtonModule } from '@exhaustive-ui/core/button';
170
- import { MessageService } from '@exhaustive-ui/core/api';
175
+ import { ToastModule } from '@exhaustive-ui/core/toast';
176
+ import { MessageModule } from '@exhaustive-ui/core/message';
171
177
 
172
178
  @Component({
173
179
  template: `
@@ -175,7 +181,7 @@ import { MessageService } from '@exhaustive-ui/core/api';
175
181
  <div class="card flex justify-center">
176
182
  <form novalidate (submit)="onSubmit($event)" class="flex flex-col gap-4 w-48">
177
183
  <div class="flex flex-col items-center gap-2">
178
- <p-toggle-switch [formField]="exampleForm.activation" />
184
+ <p-toggle-switch [formField]="exampleForm.activation" ariaLabel="Notifications" />
179
185
  @let activation = exampleForm.activation();
180
186
  @if (activation.invalid() && activation.touched()) {
181
187
  <p-message severity="error" size="small" variant="simple">Activation is required.</p-message>
@@ -186,11 +192,14 @@ import { MessageService } from '@exhaustive-ui/core/api';
186
192
  </div>
187
193
  `,
188
194
  standalone: true,
189
- imports: [MessageModule, ToastModule, ToggleSwitchModule, ButtonModule, FormField]
195
+ imports: [FormField, ToggleSwitchModule, ButtonModule, ToastModule, MessageModule],
196
+ providers: [MessageService]
190
197
  })
191
198
  export class ToggleswitchSignalformsDemo {
192
199
  messageService = inject(MessageService);
200
+
193
201
  model = signal({ activation: false });
202
+
194
203
  exampleForm = form(this.model, (f) => {
195
204
  required(f.activation);
196
205
  });
@@ -211,13 +220,14 @@ The handle template is available to display custom content.
211
220
 
212
221
  ```typescript
213
222
  import { Component } from '@angular/core';
223
+ import { CommonModule } from '@angular/common';
214
224
  import { FormsModule } from '@angular/forms';
215
225
  import { ToggleSwitchModule } from '@exhaustive-ui/core/toggleswitch';
216
226
 
217
227
  @Component({
218
228
  template: `
219
229
  <div class="card flex justify-center gap-4">
220
- <p-toggle-switch [(ngModel)]="checked">
230
+ <p-toggle-switch [(ngModel)]="checked" ariaLabel="Notifications">
221
231
  <ng-template #handle let-checked="checked">
222
232
  <i [ngClass]="['text-xs!', 'pi', checked ? 'pi-check' : 'pi-times']"></i>
223
233
  </ng-template>
@@ -225,7 +235,7 @@ import { ToggleSwitchModule } from '@exhaustive-ui/core/toggleswitch';
225
235
  </div>
226
236
  `,
227
237
  standalone: true,
228
- imports: [ToggleSwitchModule, FormsModule]
238
+ imports: [CommonModule, FormsModule, ToggleSwitchModule]
229
239
  })
230
240
  export class ToggleswitchTemplateDemo {
231
241
  checked: boolean = false;
@@ -236,12 +246,13 @@ export class ToggleswitchTemplateDemo {
236
246
 
237
247
  ```typescript
238
248
  import { Component, inject } from '@angular/core';
249
+ import { CommonModule } from '@angular/common';
239
250
  import { FormsModule } from '@angular/forms';
240
- import { MessageModule } from '@exhaustive-ui/core/message';
241
- import { ToastModule } from '@exhaustive-ui/core/toast';
251
+ import { MessageService } from '@exhaustive-ui/core/api';
242
252
  import { ToggleSwitchModule } from '@exhaustive-ui/core/toggleswitch';
253
+ import { ToastModule } from '@exhaustive-ui/core/toast';
254
+ import { MessageModule } from '@exhaustive-ui/core/message';
243
255
  import { ButtonModule } from '@exhaustive-ui/core/button';
244
- import { MessageService } from '@exhaustive-ui/core/api';
245
256
 
246
257
  @Component({
247
258
  template: `
@@ -249,7 +260,7 @@ import { MessageService } from '@exhaustive-ui/core/api';
249
260
  <div class="card flex justify-center">
250
261
  <form #exampleForm="ngForm" (ngSubmit)="onSubmit(exampleForm)" class="flex flex-col gap-4 w-48">
251
262
  <div class="flex flex-col items-center gap-2">
252
- <p-toggle-switch #model="ngModel" [(ngModel)]="checked" name="activation" [invalid]="model.invalid && exampleForm.submitted" required />
263
+ <p-toggle-switch #model="ngModel" [(ngModel)]="checked" name="activation" [invalid]="model.invalid && exampleForm.submitted" required ariaLabel="Notifications" />
253
264
  @if (model.invalid && exampleForm.submitted) {
254
265
  <p-message severity="error" size="small" variant="simple">Activation is required.</p-message>
255
266
  }
@@ -259,10 +270,12 @@ import { MessageService } from '@exhaustive-ui/core/api';
259
270
  </div>
260
271
  `,
261
272
  standalone: true,
262
- imports: [MessageModule, ToastModule, ToggleSwitchModule, ButtonModule, FormsModule]
273
+ imports: [CommonModule, FormsModule, ToggleSwitchModule, ToastModule, MessageModule, ButtonModule],
274
+ providers: [MessageService]
263
275
  })
264
276
  export class ToggleswitchTemplatedrivenformsDemo {
265
277
  messageService = inject(MessageService);
278
+
266
279
  checked: boolean;
267
280
 
268
281
  onSubmit(form: any) {
@@ -12,22 +12,22 @@ Toolbar is a grouping component for buttons and other content. Its content can b
12
12
 
13
13
  ```typescript
14
14
  import { Component, OnInit } from '@angular/core';
15
+ import { MenuItem } from '@exhaustive-ui/core/api';
16
+ import { ToolbarModule } from '@exhaustive-ui/core/toolbar';
15
17
  import { ButtonModule } from '@exhaustive-ui/core/button';
16
- import { IconFieldModule } from '@exhaustive-ui/core/iconfield';
17
- import { InputIconModule } from '@exhaustive-ui/core/inputicon';
18
18
  import { SplitButtonModule } from '@exhaustive-ui/core/splitbutton';
19
- import { ToolbarModule } from '@exhaustive-ui/core/toolbar';
20
19
  import { InputTextModule } from '@exhaustive-ui/core/inputtext';
21
- import { MenuItem } from '@exhaustive-ui/core/api';
20
+ import { IconFieldModule } from '@exhaustive-ui/core/iconfield';
21
+ import { InputIconModule } from '@exhaustive-ui/core/inputicon';
22
22
 
23
23
  @Component({
24
24
  template: `
25
25
  <div class="card">
26
26
  <p-toolbar>
27
27
  <ng-template #start>
28
- <p-button icon="pi pi-plus" class="mr-2" text severity="secondary" />
29
- <p-button icon="pi pi-print" class="mr-2" text severity="secondary" />
30
- <p-button icon="pi pi-upload" text severity="secondary" />
28
+ <p-button icon="pi pi-plus" ariaLabel="New" class="mr-2" text severity="secondary" />
29
+ <p-button icon="pi pi-print" ariaLabel="Print" class="mr-2" text severity="secondary" />
30
+ <p-button icon="pi pi-upload" ariaLabel="Upload" text severity="secondary" />
31
31
  </ng-template>
32
32
  <ng-template #center>
33
33
  <p-icon-field iconPosition="left">
@@ -42,7 +42,7 @@ import { MenuItem } from '@exhaustive-ui/core/api';
42
42
  </div>
43
43
  `,
44
44
  standalone: true,
45
- imports: [ButtonModule, IconFieldModule, InputIconModule, SplitButtonModule, ToolbarModule, InputTextModule]
45
+ imports: [ToolbarModule, ButtonModule, SplitButtonModule, InputTextModule, IconFieldModule, InputIconModule]
46
46
  })
47
47
  export class ToolbarBasicDemo implements OnInit {
48
48
  items: MenuItem[] | undefined;
@@ -68,9 +68,9 @@ Content can also be placed using the start , center and end templates.
68
68
 
69
69
  ```typescript
70
70
  import { Component } from '@angular/core';
71
- import { AvatarModule } from '@exhaustive-ui/core/avatar';
72
- import { ButtonModule } from '@exhaustive-ui/core/button';
73
71
  import { ToolbarModule } from '@exhaustive-ui/core/toolbar';
72
+ import { ButtonModule } from '@exhaustive-ui/core/button';
73
+ import { AvatarModule } from '@exhaustive-ui/core/avatar';
74
74
 
75
75
  @Component({
76
76
  template: `
@@ -115,16 +115,17 @@ import { ToolbarModule } from '@exhaustive-ui/core/toolbar';
115
115
  <ng-template #end>
116
116
  <div class="flex items-center gap-2">
117
117
  <p-button label="Share" severity="contrast" size="small" />
118
- <p-avatar image="https://exhaustive-ui.com/demo/avatar/amyelsner.png" [style]="{ width: '32px', height: '32px' }" />
118
+ <p-avatar image="https://exhaustive-ui.com/demo/avatar/amyelsner.png" ariaLabel="Amy Elsner" [style]="{ width: '32px', height: '32px' }" />
119
119
  </div>
120
120
  </ng-template>
121
121
  </p-toolbar>
122
122
  </div>
123
123
  `,
124
124
  standalone: true,
125
- imports: [AvatarModule, ButtonModule, ToolbarModule]
125
+ imports: [ToolbarModule, ButtonModule, AvatarModule]
126
126
  })
127
- export class ToolbarCustomDemo {}
127
+ export class ToolbarCustomDemo {
128
+ }
128
129
  ```
129
130
 
130
131
  ## Toolbar
@@ -135,11 +136,11 @@ Toolbar is a grouping component for buttons and other content.
135
136
 
136
137
  | Name | Type | Default | Description |
137
138
  |------|------|---------|-------------|
138
- | dt | InputSignal<Object> | undefined | Defines scoped design tokens of the component. |
139
- | unstyled | InputSignal<boolean> | undefined | Indicates whether the component should be rendered without styles. |
140
- | pt | InputSignal<ToolbarPassThrough> | undefined | Used to pass attributes to DOM elements inside the component. |
141
- | ptOptions | InputSignal<PassThroughOptions> | undefined | Used to configure passthrough(pt) options of the component. |
142
- | ariaLabelledBy | InputSignal<string> | ... | Defines a string value that labels an interactive element. |
139
+ | dt | Object | undefined | Defines scoped design tokens of the component. |
140
+ | unstyled | boolean | undefined | Indicates whether the component should be rendered without styles. |
141
+ | pt | ToolbarPassThrough | undefined | Used to pass attributes to DOM elements inside the component. |
142
+ | ptOptions | PassThroughOptions | undefined | Used to configure passthrough(pt) options of the component. |
143
+ | ariaLabelledBy | string | - | Defines a string value that labels an interactive element. |
143
144
 
144
145
  ### Templates
145
146
 
@@ -25,7 +25,8 @@ import { TooltipModule } from '@exhaustive-ui/core/tooltip';
25
25
  standalone: true,
26
26
  imports: [InputTextModule, TooltipModule]
27
27
  })
28
- export class TooltipAutohideDemo {}
28
+ export class TooltipAutohideDemo {
29
+ }
29
30
  ```
30
31
 
31
32
  ## Custom
@@ -34,6 +35,7 @@ Tooltip can use either a string or a TemplateRef .
34
35
 
35
36
  ```typescript
36
37
  import { Component } from '@angular/core';
38
+ import { CommonModule } from '@angular/common';
37
39
  import { ButtonModule } from '@exhaustive-ui/core/button';
38
40
  import { TooltipModule } from '@exhaustive-ui/core/tooltip';
39
41
 
@@ -50,9 +52,10 @@ import { TooltipModule } from '@exhaustive-ui/core/tooltip';
50
52
  </div>
51
53
  `,
52
54
  standalone: true,
53
- imports: [ButtonModule, TooltipModule]
55
+ imports: [CommonModule, ButtonModule, TooltipModule]
54
56
  })
55
- export class TooltipCustomDemo {}
57
+ export class TooltipCustomDemo {
58
+ }
56
59
  ```
57
60
 
58
61
  ## Delay
@@ -73,7 +76,8 @@ import { TooltipModule } from '@exhaustive-ui/core/tooltip';
73
76
  standalone: true,
74
77
  imports: [ButtonModule, TooltipModule]
75
78
  })
76
- export class TooltipDelayDemo {}
79
+ export class TooltipDelayDemo {
80
+ }
77
81
  ```
78
82
 
79
83
  ## Event
@@ -94,7 +98,8 @@ import { TooltipModule } from '@exhaustive-ui/core/tooltip';
94
98
  standalone: true,
95
99
  imports: [InputTextModule, TooltipModule]
96
100
  })
97
- export class TooltipEventDemo {}
101
+ export class TooltipEventDemo {
102
+ }
98
103
  ```
99
104
 
100
105
  ## Tooltip Options
@@ -116,7 +121,12 @@ import { TooltipModule } from '@exhaustive-ui/core/tooltip';
116
121
  imports: [InputTextModule, TooltipModule]
117
122
  })
118
123
  export class TooltipOptionsDemo {
119
- tooltipOptions: any;
124
+ tooltipOptions = {
125
+ showDelay: 150,
126
+ autoHide: false,
127
+ tooltipEvent: 'hover',
128
+ tooltipPosition: 'left'
129
+ };
120
130
  }
121
131
  ```
122
132
 
@@ -141,7 +151,8 @@ import { TooltipModule } from '@exhaustive-ui/core/tooltip';
141
151
  standalone: true,
142
152
  imports: [InputTextModule, TooltipModule]
143
153
  })
144
- export class TooltipPositionDemo {}
154
+ export class TooltipPositionDemo {
155
+ }
145
156
  ```
146
157
 
147
158
  ## Tooltip
@@ -152,31 +163,31 @@ Tooltip directive provides advisory information for a component.
152
163
 
153
164
  | Name | Type | Default | Description |
154
165
  |------|------|---------|-------------|
155
- | dt | InputSignal<Object> | undefined | Defines scoped design tokens of the component. |
156
- | unstyled | InputSignal<boolean> | undefined | Indicates whether the component should be rendered without styles. |
157
- | pt | InputSignal<TooltipPassThroughOptions<unknown>> | undefined | Used to pass attributes to DOM elements inside the component. |
158
- | ptOptions | InputSignal<PassThroughOptions> | undefined | Used to configure passthrough(pt) options of the component. |
159
- | tooltipPosition | InputSignal<string> | ... | Position of the tooltip. |
160
- | tooltipEvent | InputSignal<"focus" \| "hover" \| "both"> | ... | Event to show the tooltip. |
161
- | positionStyle | InputSignal<string> | ... | Type of CSS position. |
162
- | tooltipStyleClass | InputSignal<string> | ... | Style class of the tooltip. |
163
- | tooltipZIndex | InputSignal<string> | ... | Whether the z-index should be managed automatically to always go on top or have a fixed value. |
164
- | escape | InputSignalWithTransform<boolean, unknown> | ... | By default the tooltip contents are rendered as text. Set to false to support html tags in the content. |
165
- | showDelay | InputSignalWithTransform<number, unknown> | ... | Delay to show the tooltip in milliseconds. |
166
- | hideDelay | InputSignalWithTransform<number, unknown> | ... | Delay to hide the tooltip in milliseconds. |
167
- | life | InputSignalWithTransform<number, unknown> | ... | Time to wait in milliseconds to hide the tooltip even it is active. |
168
- | positionTop | InputSignalWithTransform<number, unknown> | ... | Specifies the additional vertical offset of the tooltip from its default position. |
169
- | positionLeft | InputSignalWithTransform<number, unknown> | ... | Specifies the additional horizontal offset of the tooltip from its default position. |
170
- | autoHide | InputSignalWithTransform<boolean, unknown> | ... | Whether to hide tooltip when hovering over tooltip content. |
171
- | fitContent | InputSignalWithTransform<boolean, unknown> | ... | Automatically adjusts the element position when there is not enough space on the selected position. |
172
- | hideOnEscape | InputSignalWithTransform<boolean, unknown> | ... | Whether to hide tooltip on escape key press. |
173
- | showOnEllipsis | InputSignalWithTransform<boolean, unknown> | ... | Whether to show the tooltip only when the target text overflows (e.g., ellipsis is active). |
174
- | content | InputSignal<string \| TemplateRef<HTMLElement>> | ... | Content of the tooltip. |
175
- | disabled | InputSignal<boolean> | false | When present, it specifies that the component should be disabled. |
176
- | tooltipOptions | InputSignal<TooltipOptions> | ... | Specifies the tooltip configuration options for the component. |
177
- | appendTo | InputSignal<any> | 'self' | 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). |
178
- | pTooltipPT | InputSignal<TooltipPassThrough> | undefined | Used to pass attributes to DOM elements inside the Tooltip component. |
179
- | pTooltipUnstyled | InputSignal<boolean> | undefined | Indicates whether the component should be rendered without styles. |
166
+ | dt | Object | undefined | Defines scoped design tokens of the component. |
167
+ | unstyled | boolean | undefined | Indicates whether the component should be rendered without styles. |
168
+ | pt | TooltipPassThroughOptions<unknown> | undefined | Used to pass attributes to DOM elements inside the component. |
169
+ | ptOptions | PassThroughOptions | undefined | Used to configure passthrough(pt) options of the component. |
170
+ | tooltipPosition | string | - | Position of the tooltip. |
171
+ | tooltipEvent | "focus" \| "hover" \| "both" | 'hover' | Event to show the tooltip. |
172
+ | positionStyle | string | - | Type of CSS position. |
173
+ | tooltipStyleClass | string | - | Style class of the tooltip. |
174
+ | tooltipZIndex | string | - | Whether the z-index should be managed automatically to always go on top or have a fixed value. |
175
+ | escape | boolean | true | By default the tooltip contents are rendered as text. Set to false to support html tags in the content. |
176
+ | showDelay | number | - | Delay to show the tooltip in milliseconds. |
177
+ | hideDelay | number | - | Delay to hide the tooltip in milliseconds. |
178
+ | life | number | - | Time to wait in milliseconds to hide the tooltip even it is active. |
179
+ | positionTop | number | - | Specifies the additional vertical offset of the tooltip from its default position. |
180
+ | positionLeft | number | - | Specifies the additional horizontal offset of the tooltip from its default position. |
181
+ | autoHide | boolean | true | Whether to hide tooltip when hovering over tooltip content. |
182
+ | fitContent | boolean | true | Automatically adjusts the element position when there is not enough space on the selected position. |
183
+ | hideOnEscape | boolean | true | Whether to hide tooltip on escape key press. |
184
+ | showOnEllipsis | boolean | false | Whether to show the tooltip only when the target text overflows (e.g., ellipsis is active). |
185
+ | content | string \| TemplateRef<HTMLElement> | - | Content of the tooltip. |
186
+ | disabled | boolean | false | When present, it specifies that the component should be disabled. |
187
+ | tooltipOptions | TooltipOptions | - | Specifies the tooltip configuration options for the component. |
188
+ | appendTo | any | 'self' | 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). |
189
+ | pTooltipPT | TooltipPassThrough | undefined | Used to pass attributes to DOM elements inside the Tooltip component. |
190
+ | pTooltipUnstyled | boolean | undefined | Indicates whether the component should be rendered without styles. |
180
191
 
181
192
  ## Pass Through Options
182
193