@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
@@ -7,7 +7,9 @@ pDraggable and pDroppable directives apply drag-drop behaviors to any element.
7
7
  pDraggable and pDroppable are attached to a target element to add drag-drop behavior. The value of a Directive attribute is required and it defines the scope to match draggables with droppables. Droppable scope can also be an array to accept multiple droppables.
8
8
 
9
9
  ```typescript
10
+ import { CommonModule } from '@angular/common';
10
11
  import { Component, OnInit } from '@angular/core';
12
+ import { DragDropModule } from '@exhaustive-ui/core/dragdrop';
11
13
  import { Product } from '@/domain/product';
12
14
 
13
15
  @Component({
@@ -31,11 +33,13 @@ import { Product } from '@/domain/product';
31
33
  </div>
32
34
  `,
33
35
  standalone: true,
34
- imports: []
36
+ imports: [CommonModule, DragDropModule]
35
37
  })
36
38
  export class DragdropBasicDemo implements OnInit {
37
39
  availableProducts: Product[] | undefined;
40
+
38
41
  selectedProducts: Product[] | undefined;
42
+
39
43
  draggedProduct: Product | undefined | null;
40
44
 
41
45
  ngOnInit() {
@@ -81,11 +85,13 @@ export class DragdropBasicDemo implements OnInit {
81
85
  Drag and Drop to Table
82
86
 
83
87
  ```typescript
88
+ import { CommonModule } from '@angular/common';
84
89
  import { Component, OnInit, inject } from '@angular/core';
85
- import { Table, TableModule } from '@exhaustive-ui/core/table';
90
+ import { DragDropModule } from '@exhaustive-ui/core/dragdrop';
91
+ import { TableModule } from '@exhaustive-ui/core/table';
86
92
  import { TagModule } from '@exhaustive-ui/core/tag';
87
- import { ProductService } from '@/service/productservice';
88
93
  import { Product } from '@/domain/product';
94
+ import { ProductService } from '@/service/productservice';
89
95
 
90
96
  @Component({
91
97
  template: `
@@ -110,7 +116,7 @@ import { Product } from '@/domain/product';
110
116
  </div>
111
117
  <div class="col-span-12 md:col-span-6 drop-column" pDroppable="products" (onDrop)="drop()">
112
118
  <p-table [value]="selectedProducts">
113
- <ng-template pTemplate="header">
119
+ <ng-template #header>
114
120
  <tr>
115
121
  <th>ID</th>
116
122
  <th>Category</th>
@@ -118,7 +124,7 @@ import { Product } from '@/domain/product';
118
124
  <th>Price</th>
119
125
  </tr>
120
126
  </ng-template>
121
- <ng-template pTemplate="body" let-product>
127
+ <ng-template #body let-product>
122
128
  <tr>
123
129
  <td>{{ product.id }}</td>
124
130
  <td>{{ product.category }}</td>
@@ -131,13 +137,16 @@ import { Product } from '@/domain/product';
131
137
  </div>
132
138
  `,
133
139
  standalone: true,
134
- imports: [TableModule, TagModule],
140
+ imports: [CommonModule, DragDropModule, TableModule, TagModule],
135
141
  providers: [ProductService]
136
142
  })
137
143
  export class DragdropDatatableDemo implements OnInit {
138
144
  private productService = inject(ProductService);
145
+
139
146
  availableProducts: Product[] | undefined;
147
+
140
148
  selectedProducts: Product[] | undefined;
149
+
141
150
  draggedProduct: Product | undefined | null;
142
151
 
143
152
  ngOnInit() {
@@ -192,8 +201,8 @@ dragHandle is used to restrict dragging unless mousedown occurs on the specified
192
201
 
193
202
  ```typescript
194
203
  import { Component } from '@angular/core';
204
+ import { DragDropModule } from '@exhaustive-ui/core/dragdrop';
195
205
  import { PanelModule } from '@exhaustive-ui/core/panel';
196
- import { Product } from '@/domain/product';
197
206
 
198
207
  @Component({
199
208
  template: `
@@ -204,9 +213,10 @@ import { Product } from '@/domain/product';
204
213
  </div>
205
214
  `,
206
215
  standalone: true,
207
- imports: [PanelModule]
216
+ imports: [DragDropModule, PanelModule]
208
217
  })
209
- export class DragdropDraghandleDemo {}
218
+ export class DragdropDraghandleDemo {
219
+ }
210
220
  ```
211
221
 
212
222
  ## Drop Indicator
@@ -214,7 +224,9 @@ export class DragdropDraghandleDemo {}
214
224
  When a suitable draggable enters a droppable area, the area gets p-draggable-enter class that can be used to style the droppable section.
215
225
 
216
226
  ```typescript
217
- import { Component, OnInit } from '@angular/core';
227
+ import { CommonModule } from '@angular/common';
228
+ import { Component } from '@angular/core';
229
+ import { DragDropModule } from '@exhaustive-ui/core/dragdrop';
218
230
  import { Product } from '@/domain/product';
219
231
 
220
232
  @Component({
@@ -238,11 +250,13 @@ import { Product } from '@/domain/product';
238
250
  </div>
239
251
  `,
240
252
  standalone: true,
241
- imports: []
253
+ imports: [CommonModule, DragDropModule]
242
254
  })
243
- export class DragdropDropindicatorDemo implements OnInit {
255
+ export class DragdropDropindicatorDemo {
244
256
  availableProducts: Product[] | undefined;
257
+
245
258
  selectedProducts: Product[] | undefined;
259
+
246
260
  draggedProduct: Product | undefined | null;
247
261
 
248
262
  ngOnInit() {
@@ -12,8 +12,8 @@ Drawer is used as a container and visibility is controlled with a binding to vis
12
12
 
13
13
  ```typescript
14
14
  import { Component } from '@angular/core';
15
- import { ButtonModule } from '@exhaustive-ui/core/button';
16
15
  import { DrawerModule } from '@exhaustive-ui/core/drawer';
16
+ import { ButtonModule } from '@exhaustive-ui/core/button';
17
17
 
18
18
  @Component({
19
19
  template: `
@@ -24,11 +24,11 @@ import { DrawerModule } from '@exhaustive-ui/core/drawer';
24
24
  consequat.
25
25
  </p>
26
26
  </p-drawer>
27
- <p-button (click)="visible = true" icon="pi pi-arrow-right" />
27
+ <p-button (click)="visible = true" icon="pi pi-arrow-right" ariaLabel="Open drawer" />
28
28
  </div>
29
29
  `,
30
30
  standalone: true,
31
- imports: [ButtonModule, DrawerModule]
31
+ imports: [DrawerModule, ButtonModule]
32
32
  })
33
33
  export class DrawerBasicDemo {
34
34
  visible: boolean = false;
@@ -41,6 +41,7 @@ Drawer can cover the whole page when fullScreen property is enabled.
41
41
 
42
42
  ```typescript
43
43
  import { Component } from '@angular/core';
44
+ import { FormsModule } from '@angular/forms';
44
45
  import { ButtonModule } from '@exhaustive-ui/core/button';
45
46
  import { DrawerModule } from '@exhaustive-ui/core/drawer';
46
47
 
@@ -53,11 +54,11 @@ import { DrawerModule } from '@exhaustive-ui/core/drawer';
53
54
  consequat.
54
55
  </p>
55
56
  </p-drawer>
56
- <p-button (click)="visible = true" icon="pi pi-window-maximize" />
57
+ <p-button (click)="visible = true" icon="pi pi-window-maximize" ariaLabel="Open full screen drawer" />
57
58
  </div>
58
59
  `,
59
60
  standalone: true,
60
- imports: [ButtonModule, DrawerModule]
61
+ imports: [DrawerModule, ButtonModule, FormsModule]
61
62
  })
62
63
  export class DrawerFullscreenDemo {
63
64
  visible: boolean = false;
@@ -69,11 +70,14 @@ export class DrawerFullscreenDemo {
69
70
  Headless mode allows you to customize the entire user interface instead of the default elements.
70
71
 
71
72
  ```typescript
72
- import { Component } from '@angular/core';
73
- import { AvatarModule } from '@exhaustive-ui/core/avatar';
73
+ import { Component, ViewChild } from '@angular/core';
74
+ import { FormsModule } from '@angular/forms';
75
+ import { Drawer } from '@exhaustive-ui/core/drawer';
76
+ import { DrawerModule } from '@exhaustive-ui/core/drawer';
74
77
  import { ButtonModule } from '@exhaustive-ui/core/button';
75
- import { Drawer, DrawerModule } from '@exhaustive-ui/core/drawer';
78
+ import { AvatarModule } from '@exhaustive-ui/core/avatar';
76
79
  import { RippleModule } from '@exhaustive-ui/core/ripple';
80
+ import { StyleClassModule } from '@exhaustive-ui/core/styleclass';
77
81
 
78
82
  @Component({
79
83
  template: `
@@ -115,7 +119,7 @@ import { RippleModule } from '@exhaustive-ui/core/ripple';
115
119
  <span class="font-semibold text-2xl text-primary">Your Logo</span>
116
120
  </span>
117
121
  <span>
118
- <p-button type="button" (click)="closeCallback($event)" icon="pi pi-times" rounded="true" outlined="true" styleClass="h-8 w-8"></p-button>
122
+ <p-button type="button" (click)="closeCallback($event)" icon="pi pi-times" ariaLabel="Close" rounded="true" outlined="true" styleClass="h-8 w-8"></p-button>
119
123
  </span>
120
124
  </div>
121
125
  <div class="overflow-y-auto">
@@ -279,18 +283,20 @@ import { RippleModule } from '@exhaustive-ui/core/ripple';
279
283
  </div>
280
284
  </ng-template>
281
285
  </p-drawer>
282
- <p-button (click)="visible = true" icon="pi pi-bars" />
286
+ <p-button (click)="visible = true" icon="pi pi-bars" ariaLabel="Open menu" />
283
287
  </div>
284
288
  `,
285
289
  standalone: true,
286
- imports: [AvatarModule, ButtonModule, DrawerModule, RippleModule]
290
+ imports: [DrawerModule, ButtonModule, FormsModule, AvatarModule, RippleModule, StyleClassModule]
287
291
  })
288
292
  export class DrawerHeadlessDemo {
289
- visible: boolean = false;
293
+ @ViewChild('drawerRef') drawerRef!: Drawer;
290
294
 
291
295
  closeCallback(e): void {
292
296
  this.drawerRef.close(e);
293
297
  }
298
+
299
+ visible: boolean = false;
294
300
  }
295
301
  ```
296
302
 
@@ -300,8 +306,9 @@ Drawer location is configured with the position property that can take left , ri
300
306
 
301
307
  ```typescript
302
308
  import { Component } from '@angular/core';
309
+ import { FormsModule } from '@angular/forms';
310
+ import { DrawerModule } from '@exhaustive-ui/core/drawer';
303
311
  import { ButtonModule } from '@exhaustive-ui/core/button';
304
- import { Drawer, DrawerModule } from '@exhaustive-ui/core/drawer';
305
312
 
306
313
  @Component({
307
314
  template: `
@@ -331,20 +338,23 @@ import { Drawer, DrawerModule } from '@exhaustive-ui/core/drawer';
331
338
  </p>
332
339
  </p-drawer>
333
340
  <div class="flex gap-2 justify-center">
334
- <p-button type="button" (click)="visible1 = true" icon="pi pi-arrow-right" />
335
- <p-button type="button" (click)="visible2 = true" icon="pi pi-arrow-left" />
336
- <p-button type="button" (click)="visible3 = true" icon="pi pi-arrow-down" />
337
- <p-button type="button" (click)="visible4 = true" icon="pi pi-arrow-up" />
341
+ <p-button type="button" (click)="visible1 = true" icon="pi pi-arrow-right" ariaLabel="Open left drawer" />
342
+ <p-button type="button" (click)="visible2 = true" icon="pi pi-arrow-left" ariaLabel="Open right drawer" />
343
+ <p-button type="button" (click)="visible3 = true" icon="pi pi-arrow-down" ariaLabel="Open top drawer" />
344
+ <p-button type="button" (click)="visible4 = true" icon="pi pi-arrow-up" ariaLabel="Open bottom drawer" />
338
345
  </div>
339
346
  </div>
340
347
  `,
341
348
  standalone: true,
342
- imports: [ButtonModule, DrawerModule]
349
+ imports: [DrawerModule, ButtonModule, FormsModule]
343
350
  })
344
351
  export class DrawerPositionDemo {
345
352
  visible1: boolean = false;
353
+
346
354
  visible2: boolean = false;
355
+
347
356
  visible3: boolean = false;
357
+
348
358
  visible4: boolean = false;
349
359
  }
350
360
  ```
@@ -355,8 +365,9 @@ Drawer dimension can be defined with style or class properties, this responsive
355
365
 
356
366
  ```typescript
357
367
  import { Component } from '@angular/core';
358
- import { ButtonModule } from '@exhaustive-ui/core/button';
368
+ import { FormsModule } from '@angular/forms';
359
369
  import { DrawerModule } from '@exhaustive-ui/core/drawer';
370
+ import { ButtonModule } from '@exhaustive-ui/core/button';
360
371
 
361
372
  @Component({
362
373
  template: `
@@ -367,11 +378,11 @@ import { DrawerModule } from '@exhaustive-ui/core/drawer';
367
378
  consequat.
368
379
  </p>
369
380
  </p-drawer>
370
- <p-button (click)="visible = true" icon="pi pi-arrow-right" />
381
+ <p-button (click)="visible = true" icon="pi pi-arrow-right" ariaLabel="Open drawer" />
371
382
  </div>
372
383
  `,
373
384
  standalone: true,
374
- imports: [ButtonModule, DrawerModule]
385
+ imports: [DrawerModule, ButtonModule, FormsModule]
375
386
  })
376
387
  export class DrawerSizeDemo {
377
388
  visible: boolean = false;
@@ -384,9 +395,9 @@ Drawer is customizable by header , content , footer templates.
384
395
 
385
396
  ```typescript
386
397
  import { Component } from '@angular/core';
387
- import { AvatarModule } from '@exhaustive-ui/core/avatar';
388
398
  import { DrawerModule } from '@exhaustive-ui/core/drawer';
389
399
  import { ButtonModule } from '@exhaustive-ui/core/button';
400
+ import { AvatarModule } from '@exhaustive-ui/core/avatar';
390
401
 
391
402
  @Component({
392
403
  template: `
@@ -404,16 +415,24 @@ import { ButtonModule } from '@exhaustive-ui/core/button';
404
415
  </p>
405
416
  <ng-template #footer>
406
417
  <div class="flex items-center gap-2">
407
- <button pButton label="Account" icon="pi pi-user" class="w-full" outlined></button>
408
- <button pButton label="Logout" icon="pi pi-sign-out" class="w-full" severity="danger" text></button>
418
+ <button pButton class="w-full" outlined>
419
+ <i class="pi pi-user" pButtonIcon></i>
420
+ <span pButtonLabel>Account</span>
421
+ </button>
422
+ <button pButton class="w-full" severity="danger" text>
423
+ <i class="pi pi-sign-out" pButtonIcon></i>
424
+ <span pButtonLabel>Logout</span>
425
+ </button>
409
426
  </div>
410
427
  </ng-template>
411
428
  </p-drawer>
412
- <button pButton (click)="visible = true" icon="pi pi-plus"></button>
429
+ <button pButton (click)="visible = true" aria-label="Open drawer">
430
+ <i class="pi pi-plus" pButtonIcon></i>
431
+ </button>
413
432
  </div>
414
433
  `,
415
434
  standalone: true,
416
- imports: [AvatarModule, DrawerModule, ButtonModule]
435
+ imports: [DrawerModule, ButtonModule, AvatarModule]
417
436
  })
418
437
  export class DrawerTemplateDemo {
419
438
  visible: boolean = false;
@@ -428,28 +447,28 @@ Sidebar is a panel component displayed as an overlay at the edges of the screen.
428
447
 
429
448
  | Name | Type | Default | Description |
430
449
  |------|------|---------|-------------|
431
- | dt | InputSignal<Object> | undefined | Defines scoped design tokens of the component. |
432
- | unstyled | InputSignal<boolean> | undefined | Indicates whether the component should be rendered without styles. |
433
- | pt | InputSignal<DrawerPassThrough> | undefined | Used to pass attributes to DOM elements inside the component. |
434
- | ptOptions | InputSignal<PassThroughOptions> | undefined | Used to configure passthrough(pt) options of the component. |
435
- | 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). |
436
- | motionOptions | InputSignal<MotionOptions> | ... | The motion options. |
437
- | blockScroll | InputSignalWithTransform<boolean, unknown> | ... | Whether to block scrolling of the document when drawer is active. |
438
- | style | InputSignal<{ [klass: string]: any }> | ... | Inline style of the component. |
439
- | styleClass | InputSignal<string> | ... | Style class of the component. |
440
- | closeAriaLabel | InputSignal<string> | ... | Aria label of the close icon. |
441
- | autoZIndex | InputSignalWithTransform<boolean, unknown> | ... | Whether to automatically manage layering. |
442
- | baseZIndex | InputSignalWithTransform<number, unknown> | ... | Base zIndex value to use in layering. |
443
- | modal | InputSignalWithTransform<boolean, unknown> | ... | Whether an overlay mask is displayed behind the drawer. |
444
- | closeButtonProps | InputSignal<ButtonProps> | ... | Used to pass all properties of the ButtonProps to the Button component. |
445
- | dismissible | InputSignalWithTransform<boolean, unknown> | ... | Whether to dismiss drawer on click of the mask. |
446
- | closeOnEscape | InputSignalWithTransform<boolean, unknown> | ... | Specifies if pressing escape key should hide the drawer. |
447
- | visible | ModelSignal<boolean> | false | The visible property is an input that determines the visibility of the component. Emits `visibleChange` with the new value when the visibility of the component changes. |
448
- | position | InputSignal<"top" \| "bottom" \| "left" \| "right" \| "full"> | 'left' | Specifies the position of the drawer, valid values are "left", "right", "bottom" and "top". |
449
- | fullScreen | InputSignal<boolean> | false | Adds a close icon to the header to hide the dialog. |
450
- | header | InputSignal<string> | ... | Title content of the dialog. |
451
- | maskStyle | InputSignal<{ [klass: string]: any }> | ... | Style of the mask. |
452
- | closable | InputSignalWithTransform<boolean, unknown> | true | Whether to display close button. |
450
+ | dt | Object | undefined | Defines scoped design tokens of the component. |
451
+ | unstyled | boolean | undefined | Indicates whether the component should be rendered without styles. |
452
+ | pt | DrawerPassThrough | undefined | Used to pass attributes to DOM elements inside the component. |
453
+ | ptOptions | PassThroughOptions | undefined | Used to configure passthrough(pt) options of the component. |
454
+ | 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). |
455
+ | motionOptions | MotionOptions | - | The motion options. |
456
+ | blockScroll | boolean | false | Whether to block scrolling of the document when drawer is active. |
457
+ | style | { [klass: string]: any } | - | Inline style of the component. |
458
+ | styleClass | string | - | Style class of the component. |
459
+ | closeAriaLabel | string | - | Aria label of the close icon. |
460
+ | autoZIndex | boolean | true | Whether to automatically manage layering. |
461
+ | baseZIndex | number | 0 | Base zIndex value to use in layering. |
462
+ | modal | boolean | true | Whether an overlay mask is displayed behind the drawer. |
463
+ | closeButtonProps | ButtonProps | { severity: 'secondary', text: true, rounded: true } | Used to pass all properties of the ButtonProps to the Button component. |
464
+ | dismissible | boolean | true | Whether to dismiss drawer on click of the mask. |
465
+ | closeOnEscape | boolean | true | Specifies if pressing escape key should hide the drawer. |
466
+ | visible | boolean | false | The visible property is an input that determines the visibility of the component. Emits `visibleChange` with the new value when the visibility of the component changes. |
467
+ | position | "top" \| "bottom" \| "left" \| "right" \| "full" | 'left' | Specifies the position of the drawer, valid values are "left", "right", "bottom" and "top". |
468
+ | fullScreen | boolean | false | Adds a close icon to the header to hide the dialog. |
469
+ | header | string | - | Title content of the dialog. |
470
+ | maskStyle | { [klass: string]: any } | - | Style of the mask. |
471
+ | closable | boolean | true | Whether to display close button. |
453
472
 
454
473
  ### Emits
455
474
 
@@ -15,12 +15,13 @@ DynamicDialog uses the Dialog component internally, visit dialog for more inform
15
15
  Dynamic dialogs require an instance of a DialogService that is responsible for displaying a dialog with a component as its content. Calling open method of DialogService will display dynamic dialog. First parameter of open method is the type of component to load and the second parameter is the configuration of the Dialog such as header , width and more.
16
16
 
17
17
  ```typescript
18
- import { Component, inject } from '@angular/core';
18
+ import { Component, OnDestroy, inject } from '@angular/core';
19
+ import { MessageService } from '@exhaustive-ui/core/api';
19
20
  import { ButtonModule } from '@exhaustive-ui/core/button';
21
+ import { DialogService, DynamicDialogRef } from '@exhaustive-ui/core/dynamicdialog';
20
22
  import { ToastModule } from '@exhaustive-ui/core/toast';
21
- import { MessageService, DialogService } from '@exhaustive-ui/core/api';
22
- import { Product } from '@/domain/product';
23
- import { Dialog } from '@exhaustive-ui/core/dialog';
23
+ import { Footer } from './demo/footer';
24
+ import { ProductListDemo } from './demo/productlistdemo';
24
25
 
25
26
  @Component({
26
27
  template: `
@@ -30,12 +31,20 @@ import { Dialog } from '@exhaustive-ui/core/dialog';
30
31
  </div>
31
32
  `,
32
33
  standalone: true,
33
- imports: [ButtonModule, ToastModule],
34
+ imports: [ToastModule, ButtonModule],
34
35
  providers: [DialogService, MessageService]
35
36
  })
36
- export class DynamicdialogExampleDemo {
37
- private dialogService = inject(DialogService);
38
- private messageService = inject(MessageService);
37
+ export class DynamicdialogExampleDemo implements OnDestroy {
38
+ public dialogService = inject(DialogService);
39
+ public messageService = inject(MessageService);
40
+
41
+ ref: DynamicDialogRef | undefined;
42
+
43
+ ngOnDestroy() {
44
+ if (this.ref) {
45
+ this.ref.close();
46
+ }
47
+ }
39
48
 
40
49
  show() {
41
50
  this.ref = this.dialogService.open(ProductListDemo, {
@@ -52,8 +61,8 @@ export class DynamicdialogExampleDemo {
52
61
  footer: Footer
53
62
  }
54
63
  });
55
-
56
- this.ref.onClose.subscribe((data: any) => {
64
+
65
+ this.ref?.onClose.subscribe((data: any) => {
57
66
  let summary_and_detail;
58
67
  if (data) {
59
68
  const buttonType = data?.buttonType;
@@ -63,8 +72,8 @@ export class DynamicdialogExampleDemo {
63
72
  }
64
73
  this.messageService.add({ severity: 'info', ...summary_and_detail, life: 3000 });
65
74
  });
66
-
67
- this.ref.onMaximize.subscribe((value) => {
75
+
76
+ this.ref?.onMaximize.subscribe((value) => {
68
77
  this.messageService.add({
69
78
  severity: 'info',
70
79
  summary: 'Maximized',
@@ -77,7 +86,7 @@ export class DynamicdialogExampleDemo {
77
86
 
78
87
  ## Opening a Dialog
79
88
 
80
- The open method of the DialogService is used to open a Dialog. First parameter is the component to load and second one is the configuration object to customize the Dialog.
89
+ The open method of the DialogService is used to open a Dialog. First parameter is the component to load and second one is the configuration object to customize the Dialog. It returns the DynamicDialogRef of the new dialog, or null when a dialog with the same component is already open, unless duplicate is enabled in the configuration.
81
90
 
82
91
  ## Passing Data
83
92
 
@@ -22,7 +22,7 @@ import { EditorModule } from '@exhaustive-ui/core/editor';
22
22
  </div>
23
23
  `,
24
24
  standalone: true,
25
- imports: [EditorModule, FormsModule]
25
+ imports: [FormsModule, EditorModule]
26
26
  })
27
27
  export class EditorBasicDemo {
28
28
  text: string | undefined;
@@ -53,7 +53,7 @@ import { EditorModule } from '@exhaustive-ui/core/editor';
53
53
  </div>
54
54
  `,
55
55
  standalone: true,
56
- imports: [EditorModule, FormsModule]
56
+ imports: [FormsModule, EditorModule]
57
57
  })
58
58
  export class EditorCustomtoolbarDemo {
59
59
  text: string = '<div>Hello World!</div><div>ExhaustiveUI <b>Editor</b> Rocks</div><div><br></div>';
@@ -70,12 +70,12 @@ Editor can also be used with reactive forms. In this case, the formControlName p
70
70
 
71
71
  ```typescript
72
72
  import { Component, inject } from '@angular/core';
73
- import { ReactiveFormsModule } from '@angular/forms';
73
+ import { FormBuilder, FormGroup, Validators, ReactiveFormsModule } from '@angular/forms';
74
+ import { MessageService } from '@exhaustive-ui/core/api';
74
75
  import { EditorModule } from '@exhaustive-ui/core/editor';
75
- import { MessageModule } from '@exhaustive-ui/core/message';
76
76
  import { ToastModule } from '@exhaustive-ui/core/toast';
77
+ import { MessageModule } from '@exhaustive-ui/core/message';
77
78
  import { ButtonModule } from '@exhaustive-ui/core/button';
78
- import { MessageService } from '@exhaustive-ui/core/api';
79
79
 
80
80
  @Component({
81
81
  template: `
@@ -93,18 +93,22 @@ import { MessageService } from '@exhaustive-ui/core/api';
93
93
  </div>
94
94
  `,
95
95
  standalone: true,
96
- imports: [EditorModule, MessageModule, ToastModule, ButtonModule, ReactiveFormsModule]
96
+ imports: [ReactiveFormsModule, EditorModule, ToastModule, MessageModule, ButtonModule],
97
+ providers: [MessageService]
97
98
  })
98
99
  export class EditorReactiveformsDemo {
100
+ private fb = inject(FormBuilder);
101
+
99
102
  messageService = inject(MessageService);
100
- items: any[] | undefined;
103
+
101
104
  exampleForm: FormGroup | undefined;
105
+
102
106
  formSubmitted: boolean = false;
103
107
 
104
108
  constructor() {
105
109
  this.exampleForm = this.fb.group({
106
- text: ['', Validators.required]
107
- });
110
+ text: ['', Validators.required]
111
+ });
108
112
  }
109
113
 
110
114
  onSubmit() {
@@ -139,7 +143,7 @@ import { EditorModule } from '@exhaustive-ui/core/editor';
139
143
  </div>
140
144
  `,
141
145
  standalone: true,
142
- imports: [EditorModule, FormsModule]
146
+ imports: [FormsModule, EditorModule]
143
147
  })
144
148
  export class EditorReadonlyDemo {
145
149
  text: string = 'Always bet on Prime!';
@@ -153,11 +157,11 @@ Editor can also be used with Angular Signal Forms , the @angular/forms/signals A
153
157
  ```typescript
154
158
  import { Component, inject, signal } from '@angular/core';
155
159
  import { form, FormField, required, submit } from '@angular/forms/signals';
160
+ import { MessageService } from '@exhaustive-ui/core/api';
156
161
  import { EditorModule } from '@exhaustive-ui/core/editor';
157
- import { MessageModule } from '@exhaustive-ui/core/message';
158
- import { ToastModule } from '@exhaustive-ui/core/toast';
159
162
  import { ButtonModule } from '@exhaustive-ui/core/button';
160
- import { MessageService } from '@exhaustive-ui/core/api';
163
+ import { ToastModule } from '@exhaustive-ui/core/toast';
164
+ import { MessageModule } from '@exhaustive-ui/core/message';
161
165
 
162
166
  @Component({
163
167
  template: `
@@ -176,11 +180,14 @@ import { MessageService } from '@exhaustive-ui/core/api';
176
180
  </div>
177
181
  `,
178
182
  standalone: true,
179
- imports: [EditorModule, MessageModule, ToastModule, ButtonModule, FormField]
183
+ imports: [FormField, EditorModule, ButtonModule, ToastModule, MessageModule],
184
+ providers: [MessageService]
180
185
  })
181
186
  export class EditorSignalformsDemo {
182
187
  messageService = inject(MessageService);
188
+
183
189
  model = signal({ text: '' });
190
+
184
191
  exampleForm = form(this.model, (f) => {
185
192
  required(f.text);
186
193
  });
@@ -200,11 +207,11 @@ export class EditorSignalformsDemo {
200
207
  ```typescript
201
208
  import { Component, inject } from '@angular/core';
202
209
  import { FormsModule } from '@angular/forms';
210
+ import { MessageService } from '@exhaustive-ui/core/api';
203
211
  import { EditorModule } from '@exhaustive-ui/core/editor';
204
- import { MessageModule } from '@exhaustive-ui/core/message';
205
212
  import { ToastModule } from '@exhaustive-ui/core/toast';
213
+ import { MessageModule } from '@exhaustive-ui/core/message';
206
214
  import { ButtonModule } from '@exhaustive-ui/core/button';
207
- import { MessageService } from '@exhaustive-ui/core/api';
208
215
 
209
216
  @Component({
210
217
  template: `
@@ -222,10 +229,12 @@ import { MessageService } from '@exhaustive-ui/core/api';
222
229
  </div>
223
230
  `,
224
231
  standalone: true,
225
- imports: [EditorModule, MessageModule, ToastModule, ButtonModule, FormsModule]
232
+ imports: [FormsModule, EditorModule, ToastModule, MessageModule, ButtonModule],
233
+ providers: [MessageService]
226
234
  })
227
235
  export class EditorTemplatedrivenformsDemo {
228
236
  messageService = inject(MessageService);
237
+
229
238
  text: string | undefined;
230
239
 
231
240
  onSubmit(form: any) {
@@ -245,22 +254,22 @@ Editor groups a collection of contents in tabs.
245
254
 
246
255
  | Name | Type | Default | Description |
247
256
  |------|------|---------|-------------|
248
- | dt | InputSignal<Object> | undefined | Defines scoped design tokens of the component. |
249
- | unstyled | InputSignal<boolean> | undefined | Indicates whether the component should be rendered without styles. |
250
- | pt | InputSignal<EditorPassThrough> | undefined | Used to pass attributes to DOM elements inside the component. |
251
- | ptOptions | InputSignal<PassThroughOptions> | undefined | Used to configure passthrough(pt) options of the component. |
252
- | required | InputSignalWithTransform<boolean, unknown> | false | There must be a value (if set). |
253
- | invalid | InputSignalWithTransform<boolean, unknown> | false | When present, it specifies that the component should have invalid state style. |
254
- | disabled | InputSignalWithTransform<boolean, unknown> | false | When present, it specifies that the component should have disabled state style. |
255
- | name | InputSignal<string> | undefined | When present, it specifies that the name of the input. |
256
- | style | InputSignal<{ [klass: string]: any }> | ... | Inline style of the container. |
257
- | placeholder | InputSignal<string> | ... | Placeholder text to show when editor is empty. |
258
- | formats | InputSignal<string[]> | ... | Whitelist of formats to display, see [here](https://quilljs.com/docs/formats/) for available options. |
259
- | modules | InputSignal<object> | ... | Modules configuration of Editor, see [here](https://quilljs.com/docs/modules/) for available options. |
260
- | bounds | InputSignal<string \| HTMLElement> | ... | DOM Element or a CSS selector for a DOM Element, within which the editor’s p elements (i.e. tooltips, etc.) should be confined. Currently, it only considers left and right boundaries. |
261
- | scrollingContainer | InputSignal<string \| HTMLElement> | ... | DOM Element or a CSS selector for a DOM Element, specifying which container has the scrollbars (i.e. overflow-y: auto), if is has been changed from the default ql-editor with custom CSS. Necessary to fix scroll jumping bugs when Quill is set to auto grow its height, and another ancestor container is responsible from the scrolling.. |
262
- | debug | InputSignal<string> | ... | Shortcut for debug. Note debug is a static method and will affect other instances of Quill editors on the page. Only warning and error messages are enabled by default. |
263
- | readonly | InputSignal<boolean> | ... | Whether to instantiate the editor to read-only mode. |
257
+ | dt | Object | undefined | Defines scoped design tokens of the component. |
258
+ | unstyled | boolean | undefined | Indicates whether the component should be rendered without styles. |
259
+ | pt | EditorPassThrough | undefined | Used to pass attributes to DOM elements inside the component. |
260
+ | ptOptions | PassThroughOptions | undefined | Used to configure passthrough(pt) options of the component. |
261
+ | required | boolean | false | There must be a value (if set). |
262
+ | invalid | boolean | false | When present, it specifies that the component should have invalid state style. |
263
+ | disabled | boolean | false | When present, it specifies that the component should have disabled state style. |
264
+ | name | string | undefined | When present, it specifies that the name of the input. |
265
+ | style | { [klass: string]: any } | - | Inline style of the container. |
266
+ | placeholder | string | - | Placeholder text to show when editor is empty. |
267
+ | formats | string[] | - | Whitelist of formats to display, see [here](https://quilljs.com/docs/formats/) for available options. |
268
+ | modules | object | - | Modules configuration of Editor, see [here](https://quilljs.com/docs/modules/) for available options. |
269
+ | bounds | string \| HTMLElement | - | DOM Element or a CSS selector for a DOM Element, within which the editor’s p elements (i.e. tooltips, etc.) should be confined. Currently, it only considers left and right boundaries. |
270
+ | scrollingContainer | string \| HTMLElement | - | DOM Element or a CSS selector for a DOM Element, specifying which container has the scrollbars (i.e. overflow-y: auto), if is has been changed from the default ql-editor with custom CSS. Necessary to fix scroll jumping bugs when Quill is set to auto grow its height, and another ancestor container is responsible from the scrolling.. |
271
+ | debug | string | - | Shortcut for debug. Note debug is a static method and will affect other instances of Quill editors on the page. Only warning and error messages are enabled by default. |
272
+ | readonly | boolean | false | Whether to instantiate the editor to read-only mode. |
264
273
 
265
274
  ### Emits
266
275