@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
@@ -12,7 +12,7 @@ Paginator is used as a controlled component with first , rows and onPageChange p
12
12
 
13
13
  ```typescript
14
14
  import { Component } from '@angular/core';
15
- import { Paginator, PaginatorModule } from '@exhaustive-ui/core/paginator';
15
+ import { PaginatorState, PaginatorModule } from '@exhaustive-ui/core/paginator';
16
16
 
17
17
  @Component({
18
18
  template: `
@@ -25,6 +25,7 @@ import { Paginator, PaginatorModule } from '@exhaustive-ui/core/paginator';
25
25
  })
26
26
  export class PaginatorBasicDemo {
27
27
  first: number = 0;
28
+
28
29
  rows: number = 10;
29
30
 
30
31
  onPageChange(event: PaginatorState) {
@@ -40,7 +41,7 @@ Current page report item in the template displays information about the paginati
40
41
 
41
42
  ```typescript
42
43
  import { Component } from '@angular/core';
43
- import { PaginatorModule } from '@exhaustive-ui/core/paginator';
44
+ import { PaginatorState, PaginatorModule } from '@exhaustive-ui/core/paginator';
44
45
 
45
46
  @Component({
46
47
  template: `
@@ -62,6 +63,7 @@ import { PaginatorModule } from '@exhaustive-ui/core/paginator';
62
63
  })
63
64
  export class PaginatorCurrentpagereportDemo {
64
65
  first: number = 0;
66
+
65
67
  rows: number = 10;
66
68
 
67
69
  onPageChange(event: PaginatorState) {
@@ -77,13 +79,13 @@ Sample image gallery implementation using paginator.
77
79
 
78
80
  ```typescript
79
81
  import { Component } from '@angular/core';
80
- import { PaginatorModule } from '@exhaustive-ui/core/paginator';
82
+ import { PaginatorModule, PaginatorState } from '@exhaustive-ui/core/paginator';
81
83
 
82
84
  @Component({
83
85
  template: `
84
86
  <div class="card flex flex-col gap-4 justify-center items-center">
85
87
  <p-paginator [first]="first" [rows]="1" [totalRecords]="12" (onPageChange)="onPageChange($event)" [showJumpToPageDropdown]="true" [showPageLinks]="false"></p-paginator>
86
- <img [src]="'https://exhaustive-ui.com/demo/nature/nature' + (first + 1) + '.jpg'" class="max-w-full rounded-xl" />
88
+ <img [src]="'https://exhaustive-ui.com/demo/nature/nature' + (first + 1) + '.jpg'" [alt]="'Nature image ' + (first + 1)" class="max-w-full rounded-xl" />
87
89
  </div>
88
90
  `,
89
91
  standalone: true,
@@ -91,6 +93,7 @@ import { PaginatorModule } from '@exhaustive-ui/core/paginator';
91
93
  })
92
94
  export class PaginatorImagesDemo {
93
95
  first: number = 0;
96
+
94
97
  rows: number = 10;
95
98
 
96
99
  onPageChange(event: PaginatorState) {
@@ -107,9 +110,9 @@ Templating allows overriding the default content of the UI elements by defining
107
110
  ```typescript
108
111
  import { Component } from '@angular/core';
109
112
  import { FormsModule } from '@angular/forms';
113
+ import { PaginatorState, PaginatorModule } from '@exhaustive-ui/core/paginator';
110
114
  import { ButtonModule } from '@exhaustive-ui/core/button';
111
115
  import { DividerModule } from '@exhaustive-ui/core/divider';
112
- import { PaginatorModule } from '@exhaustive-ui/core/paginator';
113
116
  import { SelectModule } from '@exhaustive-ui/core/select';
114
117
  import { SliderModule } from '@exhaustive-ui/core/slider';
115
118
 
@@ -118,19 +121,19 @@ import { SliderModule } from '@exhaustive-ui/core/slider';
118
121
  <div class="card flex flex-col gap-4">
119
122
  <div class="flex items-center justify-center">
120
123
  <div>
121
- <p-button icon="pi pi-star" outlined />
124
+ <p-button icon="pi pi-star" ariaLabel="Add to favorites" outlined />
122
125
  </div>
123
126
  <div class="flex-1">
124
127
  <p-paginator (onPageChange)="onPageChange1($event)" [first]="first1" [rows]="rows1" [totalRecords]="120" [rowsPerPageOptions]="[10, 20, 30]" [showFirstLastIcon]="false" />
125
128
  </div>
126
129
  <div class="justify-end">
127
- <p-button icon="pi pi-search" />
130
+ <p-button icon="pi pi-search" ariaLabel="Search" />
128
131
  </div>
129
132
  </div>
130
133
  <p-divider />
131
134
  <div class="flex items-center justify-end">
132
135
  <span class="mx-1 text-color">Items per page: </span>
133
- <p-select [options]="options" optionLabel="label" optionValue="value" [(ngModel)]="rows2" (ngModelChange)="first2 = 0" />
136
+ <p-select [options]="options" optionLabel="label" optionValue="value" ariaLabel="Items per page" [(ngModel)]="rows2" (ngModelChange)="first2 = 0" />
134
137
  <p-paginator
135
138
  [first]="first2"
136
139
  [rows]="rows2"
@@ -146,7 +149,7 @@ import { SliderModule } from '@exhaustive-ui/core/slider';
146
149
  <div class="flex items-center justify-start">
147
150
  <div class="flex justify-center items-center gap-4">
148
151
  <span>Items per page: </span>
149
- <p-slider [(ngModel)]="rows3" (ngModelChange)="first3 = 0" [style]="{ width: '10rem' }" [min]="10" [max]="120" [step]="30" />
152
+ <p-slider [(ngModel)]="rows3" ariaLabel="Items per page" (ngModelChange)="first3 = 0" [style]="{ width: '10rem' }" [min]="10" [max]="120" [step]="30" />
150
153
  </div>
151
154
  <p-paginator
152
155
  (onPageChange)="onPageChange3($event)"
@@ -161,17 +164,29 @@ import { SliderModule } from '@exhaustive-ui/core/slider';
161
164
  </div>
162
165
  `,
163
166
  standalone: true,
164
- imports: [ButtonModule, DividerModule, PaginatorModule, SelectModule, SliderModule, FormsModule]
167
+ imports: [PaginatorModule, ButtonModule, DividerModule, SelectModule, SliderModule, FormsModule]
165
168
  })
166
169
  export class PaginatorTemplateDemo {
167
170
  first1: number = 0;
171
+
168
172
  rows1: number = 10;
173
+
169
174
  first2: number = 0;
175
+
170
176
  rows2: number = 10;
177
+
171
178
  first3: number = 0;
179
+
172
180
  rows3: number = 10;
181
+
173
182
  totalRecords: number = 120;
174
- options: any[];
183
+
184
+ options = [
185
+ { label: 5, value: 5 },
186
+ { label: 10, value: 10 },
187
+ { label: 20, value: 20 },
188
+ { label: 120, value: 120 }
189
+ ];
175
190
 
176
191
  onPageChange1(event: PaginatorState) {
177
192
  this.first1 = event.first ?? 0;
@@ -198,29 +213,29 @@ Paginator is a generic component to display content in paged format.
198
213
 
199
214
  | Name | Type | Default | Description |
200
215
  |------|------|---------|-------------|
201
- | dt | InputSignal<Object> | undefined | Defines scoped design tokens of the component. |
202
- | unstyled | InputSignal<boolean> | undefined | Indicates whether the component should be rendered without styles. |
203
- | pt | InputSignal<PaginatorPassThrough> | undefined | Used to pass attributes to DOM elements inside the component. |
204
- | ptOptions | InputSignal<PassThroughOptions> | undefined | Used to configure passthrough(pt) options of the component. |
205
- | pageLinkSize | InputSignalWithTransform<number, unknown> | ... | Number of page links to display. |
206
- | alwaysShow | InputSignalWithTransform<boolean, unknown> | ... | Whether to show it even there is only one page. |
207
- | templateLeft | InputSignal<TemplateRef<PaginatorTemplateContext>> | ... | Template instance to inject into the left side of the paginator. |
208
- | templateRight | InputSignal<TemplateRef<PaginatorTemplateContext>> | ... | Template instance to inject into the right side of the paginator. |
209
- | dropdownScrollHeight | InputSignal<string> | ... | Dropdown height of the viewport in pixels, a scrollbar is defined if height of list exceeds this value. |
210
- | currentPageReportTemplate | InputSignal<string> | ... | Template of the current page report element. Available placeholders are {currentPage},{totalPages},{rows},{first},{last} and {totalRecords} |
211
- | showCurrentPageReport | InputSignalWithTransform<boolean, unknown> | ... | Whether to display current page report. |
212
- | showFirstLastIcon | InputSignalWithTransform<boolean, unknown> | ... | When enabled, icons are displayed on paginator to go first and last page. |
213
- | totalRecords | InputSignalWithTransform<number, unknown> | ... | Number of total records. |
214
- | rows | InputSignalWithTransform<number, unknown> | ... | Data count to display per page. |
215
- | rowsPerPageOptions | InputSignal<any[]> | ... | Array of integer/object values to display inside rows per page dropdown. A object that have 'showAll' key can be added to it to show all data. Exp; [10,20,30,{showAll:'All'}] |
216
- | showJumpToPageDropdown | InputSignalWithTransform<boolean, unknown> | ... | Whether to display a dropdown to navigate to any page. |
217
- | showJumpToPageInput | InputSignalWithTransform<boolean, unknown> | ... | Whether to display a input to navigate to any page. |
218
- | jumpToPageItemTemplate | InputSignal<TemplateRef<PaginatorDropdownItemTemplateContext>> | ... | Template instance to inject into the jump to page dropdown item inside in the paginator. |
219
- | showPageLinks | InputSignalWithTransform<boolean, unknown> | ... | Whether to show page links. |
220
- | locale | InputSignal<string> | ... | Locale to be used in formatting. |
221
- | dropdownItemTemplate | InputSignal<TemplateRef<PaginatorDropdownItemTemplateContext>> | ... | Template instance to inject into the rows per page dropdown item inside in the paginator. |
222
- | first | InputSignal<number> | ... | Zero-relative number of the first row to be displayed. |
223
- | 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). |
216
+ | dt | Object | undefined | Defines scoped design tokens of the component. |
217
+ | unstyled | boolean | undefined | Indicates whether the component should be rendered without styles. |
218
+ | pt | PaginatorPassThrough | undefined | Used to pass attributes to DOM elements inside the component. |
219
+ | ptOptions | PassThroughOptions | undefined | Used to configure passthrough(pt) options of the component. |
220
+ | pageLinkSize | number | 5 | Number of page links to display. |
221
+ | alwaysShow | boolean | true | Whether to show it even there is only one page. |
222
+ | templateLeft | TemplateRef<PaginatorTemplateContext> | - | Template instance to inject into the left side of the paginator. |
223
+ | templateRight | TemplateRef<PaginatorTemplateContext> | - | Template instance to inject into the right side of the paginator. |
224
+ | dropdownScrollHeight | string | '200px' | Dropdown height of the viewport in pixels, a scrollbar is defined if height of list exceeds this value. |
225
+ | currentPageReportTemplate | string | '{currentPage} of {totalPages}' | Template of the current page report element. Available placeholders are {currentPage},{totalPages},{rows},{first},{last} and {totalRecords} |
226
+ | showCurrentPageReport | boolean | - | Whether to display current page report. |
227
+ | showFirstLastIcon | boolean | true | When enabled, icons are displayed on paginator to go first and last page. |
228
+ | totalRecords | number | 0 | Number of total records. |
229
+ | rows | number | 0 | Data count to display per page. |
230
+ | rowsPerPageOptions | any[] | - | Array of integer/object values to display inside rows per page dropdown. A object that have 'showAll' key can be added to it to show all data. Exp; [10,20,30,{showAll:'All'}] |
231
+ | showJumpToPageDropdown | boolean | - | Whether to display a dropdown to navigate to any page. |
232
+ | showJumpToPageInput | boolean | - | Whether to display a input to navigate to any page. |
233
+ | jumpToPageItemTemplate | TemplateRef<PaginatorDropdownItemTemplateContext> | - | Template instance to inject into the jump to page dropdown item inside in the paginator. |
234
+ | showPageLinks | boolean | true | Whether to show page links. |
235
+ | locale | string | - | Locale to be used in formatting. |
236
+ | dropdownItemTemplate | TemplateRef<PaginatorDropdownItemTemplateContext> | - | Template instance to inject into the rows per page dropdown item inside in the paginator. |
237
+ | first | number | 0 | Zero-relative number of the first row to be displayed. |
238
+ | 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). |
224
239
 
225
240
  ### Emits
226
241
 
@@ -28,7 +28,8 @@ import { PanelModule } from '@exhaustive-ui/core/panel';
28
28
  standalone: true,
29
29
  imports: [PanelModule]
30
30
  })
31
- export class PanelBasicDemo {}
31
+ export class PanelBasicDemo {
32
+ }
32
33
  ```
33
34
 
34
35
  ## Template
@@ -48,21 +49,21 @@ import { PanelModule } from '@exhaustive-ui/core/panel';
48
49
  <p-panel [toggleable]="true">
49
50
  <ng-template #header>
50
51
  <div class="flex items-center gap-2">
51
- <p-avatar image="https://exhaustive-ui.com/demo/avatar/amyelsner.png" shape="circle" />
52
+ <p-avatar image="https://exhaustive-ui.com/demo/avatar/amyelsner.png" ariaLabel="Amy Elsner" shape="circle" />
52
53
  <span class="font-bold">Amy Elsner</span>
53
54
  </div>
54
55
  </ng-template>
55
56
  <ng-template #footer>
56
57
  <div class="flex flex-wrap items-center justify-between gap-4">
57
58
  <div class="flex items-center gap-2">
58
- <p-button icon="pi pi-user" rounded text></p-button>
59
- <p-button icon="pi pi-bookmark" severity="secondary" rounded text></p-button>
59
+ <p-button icon="pi pi-user" ariaLabel="View profile" rounded text></p-button>
60
+ <p-button icon="pi pi-bookmark" ariaLabel="Bookmark" severity="secondary" rounded text></p-button>
60
61
  </div>
61
62
  <span class="text-surface-500 dark:text-surface-400">Updated 2 hours ago</span>
62
63
  </div>
63
64
  </ng-template>
64
65
  <ng-template #icons>
65
- <p-button icon="pi pi-cog" severity="secondary" rounded text (click)="menu.toggle($event)" />
66
+ <p-button icon="pi pi-cog" ariaLabel="Settings" severity="secondary" rounded text (click)="menu.toggle($event)" />
66
67
  <p-menu #menu id="config_menu" [model]="items" [popup]="true" />
67
68
  </ng-template>
68
69
  <p class="m-0">
@@ -73,9 +74,11 @@ import { PanelModule } from '@exhaustive-ui/core/panel';
73
74
  </div>
74
75
  `,
75
76
  standalone: true,
76
- imports: [AvatarModule, ButtonModule, MenuModule, PanelModule]
77
+ imports: [PanelModule, AvatarModule, ButtonModule, MenuModule]
77
78
  })
78
79
  export class PanelTemplateDemo implements OnInit {
80
+ items: { label?: string; icon?: string; separator?: boolean }[] = [];
81
+
79
82
  ngOnInit() {
80
83
  this.items = [
81
84
  {
@@ -120,7 +123,8 @@ import { PanelModule } from '@exhaustive-ui/core/panel';
120
123
  standalone: true,
121
124
  imports: [PanelModule]
122
125
  })
123
- export class PanelToggleableDemo {}
126
+ export class PanelToggleableDemo {
127
+ }
124
128
  ```
125
129
 
126
130
  ## Panel
@@ -131,18 +135,18 @@ Panel is a container with the optional content toggle feature.
131
135
 
132
136
  | Name | Type | Default | Description |
133
137
  |------|------|---------|-------------|
134
- | dt | InputSignal<Object> | undefined | Defines scoped design tokens of the component. |
135
- | unstyled | InputSignal<boolean> | undefined | Indicates whether the component should be rendered without styles. |
136
- | pt | InputSignal<PanelPassThrough> | undefined | Used to pass attributes to DOM elements inside the component. |
137
- | ptOptions | InputSignal<PassThroughOptions> | undefined | Used to configure passthrough(pt) options of the component. |
138
- | toggleable | InputSignalWithTransform<boolean, unknown> | ... | Defines if content of panel can be expanded and collapsed. |
139
- | _header | InputSignal<string> | ... | Header text of the panel. |
140
- | collapsed | ModelSignal<boolean> | ... | Defines the initial state of panel content, supports one or two-way binding as well. Emits `collapsedChange` with the new value when the collapsed state changes. |
141
- | iconPos | InputSignal<"end" \| "center" \| "start"> | ... | Position of the icons. |
142
- | showHeader | InputSignalWithTransform<boolean, unknown> | ... | Specifies if header of panel cannot be displayed. |
143
- | toggler | InputSignal<"header" \| "icon"> | ... | Specifies the toggler element to toggle the panel content. |
144
- | toggleButtonProps | InputSignal<any> | ... | Used to pass all properties of the ButtonProps to the Button component. |
145
- | motionOptions | InputSignal<MotionOptions> | ... | The motion options. |
138
+ | dt | Object | undefined | Defines scoped design tokens of the component. |
139
+ | unstyled | boolean | undefined | Indicates whether the component should be rendered without styles. |
140
+ | pt | PanelPassThrough | undefined | Used to pass attributes to DOM elements inside the component. |
141
+ | ptOptions | PassThroughOptions | undefined | Used to configure passthrough(pt) options of the component. |
142
+ | toggleable | boolean | - | Defines if content of panel can be expanded and collapsed. |
143
+ | _header | string | - | Header text of the panel. |
144
+ | collapsed | boolean | - | Defines the initial state of panel content, supports one or two-way binding as well. Emits `collapsedChange` with the new value when the collapsed state changes. |
145
+ | iconPos | "end" \| "center" \| "start" | 'end' | Position of the icons. |
146
+ | showHeader | boolean | true | Specifies if header of panel cannot be displayed. |
147
+ | toggler | "header" \| "icon" | 'icon' | Specifies the toggler element to toggle the panel content. |
148
+ | toggleButtonProps | any | - | Used to pass all properties of the ButtonProps to the Button component. |
149
+ | motionOptions | MotionOptions | - | The motion options. |
146
150
 
147
151
  ### Emits
148
152
 
@@ -12,7 +12,6 @@ PanelMenu requires a collection of menuitems as its model .
12
12
 
13
13
  ```typescript
14
14
  import { Component, OnInit } from '@angular/core';
15
- import { PanelMenu, PanelMenuModule } from '@exhaustive-ui/core/panelmenu';
16
15
  import { MenuItem } from '@exhaustive-ui/core/api';
17
16
  import { PanelMenu } from '@exhaustive-ui/core/panelmenu';
18
17
 
@@ -23,7 +22,7 @@ import { PanelMenu } from '@exhaustive-ui/core/panelmenu';
23
22
  </div>
24
23
  `,
25
24
  standalone: true,
26
- imports: [PanelMenuModule]
25
+ imports: [PanelMenu]
27
26
  })
28
27
  export class PanelmenuBasicDemo implements OnInit {
29
28
  items: MenuItem[];
@@ -117,10 +116,9 @@ The command property defines the callback to run when an item is activated by cl
117
116
 
118
117
  ```typescript
119
118
  import { Component, OnInit, inject } from '@angular/core';
120
- import { PanelMenu, PanelMenuModule } from '@exhaustive-ui/core/panelmenu';
121
- import { ToastModule } from '@exhaustive-ui/core/toast';
122
119
  import { MenuItem, MessageService } from '@exhaustive-ui/core/api';
123
120
  import { PanelMenu } from '@exhaustive-ui/core/panelmenu';
121
+ import { ToastModule } from '@exhaustive-ui/core/toast';
124
122
 
125
123
  @Component({
126
124
  template: `
@@ -130,11 +128,12 @@ import { PanelMenu } from '@exhaustive-ui/core/panelmenu';
130
128
  </div>
131
129
  `,
132
130
  standalone: true,
133
- imports: [PanelMenuModule, ToastModule],
131
+ imports: [PanelMenu, ToastModule],
134
132
  providers: [MessageService]
135
133
  })
136
134
  export class PanelmenuCommandDemo implements OnInit {
137
135
  private messageService = inject(MessageService);
136
+
138
137
  items: MenuItem[];
139
138
 
140
139
  ngOnInit() {
@@ -214,10 +213,9 @@ Menu items can be controlled programmatically.
214
213
 
215
214
  ```typescript
216
215
  import { Component, OnInit } from '@angular/core';
217
- import { ButtonModule } from '@exhaustive-ui/core/button';
218
- import { PanelMenu, PanelMenuModule } from '@exhaustive-ui/core/panelmenu';
219
216
  import { MenuItem } from '@exhaustive-ui/core/api';
220
217
  import { PanelMenu } from '@exhaustive-ui/core/panelmenu';
218
+ import { ButtonModule } from '@exhaustive-ui/core/button';
221
219
 
222
220
  @Component({
223
221
  template: `
@@ -227,7 +225,7 @@ import { PanelMenu } from '@exhaustive-ui/core/panelmenu';
227
225
  </div>
228
226
  `,
229
227
  standalone: true,
230
- imports: [ButtonModule, PanelMenuModule]
228
+ imports: [PanelMenu, ButtonModule]
231
229
  })
232
230
  export class PanelmenuControlledDemo implements OnInit {
233
231
  items: MenuItem[];
@@ -304,6 +302,20 @@ export class PanelmenuControlledDemo implements OnInit {
304
302
  const expanded = !this.areAllItemsExpanded();
305
303
  this.items = this.toggleAllRecursive(this.items, expanded);
306
304
  }
305
+
306
+ private toggleAllRecursive(items: MenuItem[], expanded: boolean): MenuItem[] {
307
+ return items.map((menuItem) => {
308
+ menuItem.expanded = expanded;
309
+ if (menuItem.items) {
310
+ menuItem.items = this.toggleAllRecursive(menuItem.items, expanded);
311
+ }
312
+ return menuItem;
313
+ });
314
+ }
315
+
316
+ private areAllItemsExpanded(): boolean {
317
+ return this.items.every((menuItem) => menuItem.expanded);
318
+ }
307
319
  }
308
320
  ```
309
321
 
@@ -313,7 +325,6 @@ Only one single root menuitem can be active by default, enable multiple property
313
325
 
314
326
  ```typescript
315
327
  import { Component, OnInit } from '@angular/core';
316
- import { PanelMenu, PanelMenuModule } from '@exhaustive-ui/core/panelmenu';
317
328
  import { MenuItem } from '@exhaustive-ui/core/api';
318
329
  import { PanelMenu } from '@exhaustive-ui/core/panelmenu';
319
330
 
@@ -324,7 +335,7 @@ import { PanelMenu } from '@exhaustive-ui/core/panelmenu';
324
335
  </div>
325
336
  `,
326
337
  standalone: true,
327
- imports: [PanelMenuModule]
338
+ imports: [PanelMenu]
328
339
  })
329
340
  export class PanelmenuMultipleDemo implements OnInit {
330
341
  items: MenuItem[];
@@ -418,7 +429,7 @@ Menu items support navigation via routerLink, programmatic routing using command
418
429
 
419
430
  ```typescript
420
431
  import { Component, OnInit, inject } from '@angular/core';
421
- import { PanelMenu, PanelMenuModule } from '@exhaustive-ui/core/panelmenu';
432
+ import { Router } from '@angular/router';
422
433
  import { MenuItem, MessageService } from '@exhaustive-ui/core/api';
423
434
  import { PanelMenu } from '@exhaustive-ui/core/panelmenu';
424
435
 
@@ -429,11 +440,12 @@ import { PanelMenu } from '@exhaustive-ui/core/panelmenu';
429
440
  </div>
430
441
  `,
431
442
  standalone: true,
432
- imports: [PanelMenuModule],
443
+ imports: [PanelMenu],
433
444
  providers: [MessageService]
434
445
  })
435
446
  export class PanelmenuRouterDemo implements OnInit {
436
- private messageService = inject(MessageService);
447
+ private router = inject(Router);
448
+
437
449
  items: MenuItem[];
438
450
 
439
451
  ngOnInit() {
@@ -487,12 +499,12 @@ export class PanelmenuRouterDemo implements OnInit {
487
499
  PanelMenu requires a collection of menuitems as its model .
488
500
 
489
501
  ```typescript
502
+ import { CommonModule } from '@angular/common';
490
503
  import { Component, OnInit } from '@angular/core';
491
- import { BadgeModule } from '@exhaustive-ui/core/badge';
492
- import { PanelMenu, PanelMenuModule } from '@exhaustive-ui/core/panelmenu';
493
- import { RippleModule } from '@exhaustive-ui/core/ripple';
494
504
  import { MenuItem } from '@exhaustive-ui/core/api';
505
+ import { BadgeModule } from '@exhaustive-ui/core/badge';
495
506
  import { PanelMenu } from '@exhaustive-ui/core/panelmenu';
507
+ import { Ripple } from '@exhaustive-ui/core/ripple';
496
508
 
497
509
  @Component({
498
510
  template: `
@@ -510,7 +522,7 @@ import { PanelMenu } from '@exhaustive-ui/core/panelmenu';
510
522
  </div>
511
523
  `,
512
524
  standalone: true,
513
- imports: [BadgeModule, PanelMenuModule, RippleModule]
525
+ imports: [CommonModule, PanelMenu, BadgeModule, Ripple]
514
526
  })
515
527
  export class PanelmenuTemplateDemo implements OnInit {
516
528
  items: MenuItem[];
@@ -585,6 +597,20 @@ export class PanelmenuTemplateDemo implements OnInit {
585
597
  const expanded = !this.areAllItemsExpanded();
586
598
  this.items = this.toggleAllRecursive(this.items, expanded);
587
599
  }
600
+
601
+ private toggleAllRecursive(items: MenuItem[], expanded: boolean): MenuItem[] {
602
+ return items.map((menuItem) => {
603
+ menuItem.expanded = expanded;
604
+ if (menuItem.items) {
605
+ menuItem.items = this.toggleAllRecursive(menuItem.items, expanded);
606
+ }
607
+ return menuItem;
608
+ });
609
+ }
610
+
611
+ private areAllItemsExpanded(): boolean {
612
+ return this.items.every((menuItem) => menuItem.expanded);
613
+ }
588
614
  }
589
615
  ```
590
616
 
@@ -596,14 +622,14 @@ PanelMenu is a hybrid of Accordion and Tree components.
596
622
 
597
623
  | Name | Type | Default | Description |
598
624
  |------|------|---------|-------------|
599
- | dt | InputSignal<Object> | undefined | Defines scoped design tokens of the component. |
600
- | unstyled | InputSignal<boolean> | undefined | Indicates whether the component should be rendered without styles. |
601
- | pt | InputSignal<PanelMenuPassThrough> | undefined | Used to pass attributes to DOM elements inside the component. |
602
- | ptOptions | InputSignal<PassThroughOptions> | undefined | Used to configure passthrough(pt) options of the component. |
603
- | model | InputSignal<MenuItem[]> | ... | An array of menuitems. |
604
- | multiple | InputSignalWithTransform<boolean, unknown> | ... | Whether multiple tabs can be activated at the same time or not. |
605
- | motionOptions | InputSignal<MotionOptions> | ... | The motion options. |
606
- | id | InputSignal<string> | ... | Current id state as a string. |
625
+ | dt | Object | undefined | Defines scoped design tokens of the component. |
626
+ | unstyled | boolean | undefined | Indicates whether the component should be rendered without styles. |
627
+ | pt | PanelMenuPassThrough | undefined | Used to pass attributes to DOM elements inside the component. |
628
+ | ptOptions | PassThroughOptions | undefined | Used to configure passthrough(pt) options of the component. |
629
+ | model | MenuItem[] | - | An array of menuitems. |
630
+ | multiple | boolean | false | Whether multiple tabs can be activated at the same time or not. |
631
+ | motionOptions | MotionOptions | - | The motion options. |
632
+ | id | string | - | Current id state as a string. |
607
633
 
608
634
  ### Templates
609
635