@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
@@ -11,13 +11,15 @@ import { Terminal } from '@exhaustive-ui/core/terminal'; // standalone; or Termi
11
11
  Inputs:
12
12
  - `prompt`: `string | undefined`: Prompt text for each command.
13
13
  - `welcomeMessage`: `string | undefined`: Initial text to display on terminal.
14
- - Other inputs: `response`.
14
+ - Other inputs: `ariaLabel`, `ariaLabelledBy`, `response`.
15
15
 
16
16
  ## Example: Basic
17
17
 
18
18
  ```typescript
19
- import { Component } from '@angular/core';
19
+ import { Component, OnDestroy, inject } from '@angular/core';
20
+ import { TerminalService } from '@exhaustive-ui/core/terminal';
20
21
  import { TerminalModule } from '@exhaustive-ui/core/terminal';
22
+ import { Subscription } from 'rxjs';
21
23
 
22
24
  @Component({
23
25
  template: `
@@ -27,31 +29,38 @@ import { TerminalModule } from '@exhaustive-ui/core/terminal';
27
29
  </div>
28
30
  `,
29
31
  standalone: true,
30
- imports: [TerminalModule]
32
+ imports: [TerminalModule],
33
+ providers: [TerminalService]
31
34
  })
32
- export class TerminalBasicDemo {
35
+ export class TerminalBasicDemo implements OnDestroy {
36
+ private terminalService = inject(TerminalService);
37
+
33
38
  subscription: Subscription;
34
39
 
35
40
  constructor() {
36
41
  this.subscription = this.terminalService.commandHandler.subscribe((text) => {
37
- let response;
38
- let argsIndex = text.indexOf(' ');
39
- let command = argsIndex !== -1 ? text.substring(0, argsIndex) : text;
40
- switch (command) {
41
- case 'date':
42
- response = 'Today is ' + new Date().toDateString();
43
- break;
44
- case 'greet':
45
- response = 'Hola ' + text.substring(argsIndex + 1);
46
- break;
47
- case 'random':
48
- response = Math.floor(Math.random() * 100);
49
- break;
50
- default:
51
- response = 'Unknown command: ' + command;
52
- }
53
- this.terminalService.sendResponse(response);
54
- });
42
+ let response;
43
+ let argsIndex = text.indexOf(' ');
44
+ let command = argsIndex !== -1 ? text.substring(0, argsIndex) : text;
45
+
46
+ switch (command) {
47
+ case 'date':
48
+ response = 'Today is ' + new Date().toDateString();
49
+ break;
50
+
51
+ case 'greet':
52
+ response = 'Hola ' + text.substring(argsIndex + 1);
53
+ break;
54
+
55
+ case 'random':
56
+ response = Math.floor(Math.random() * 100);
57
+ break;
58
+
59
+ default:
60
+ response = 'Unknown command: ' + command;
61
+ }
62
+ this.terminalService.sendResponse(response);
63
+ });
55
64
  }
56
65
 
57
66
  ngOnDestroy() {
@@ -24,15 +24,16 @@ Outputs:
24
24
  ```typescript
25
25
  import { Component } from '@angular/core';
26
26
  import { FormsModule } from '@angular/forms';
27
+ import { TextareaModule } from '@exhaustive-ui/core/textarea';
27
28
 
28
29
  @Component({
29
30
  template: `
30
31
  <div class="card flex justify-center">
31
- <textarea rows="5" cols="30" pTextarea [(ngModel)]="value"></textarea>
32
+ <textarea rows="5" cols="30" pTextarea [(ngModel)]="value" aria-label="Message"></textarea>
32
33
  </div>
33
34
  `,
34
35
  standalone: true,
35
- imports: [FormsModule]
36
+ imports: [FormsModule, TextareaModule]
36
37
  })
37
38
  export class TextareaBasicDemo {
38
39
  value!: string;
@@ -23,17 +23,12 @@ Templates (`<ng-template #name let-…>` inside the element):
23
23
 
24
24
  Read a context with `let-`: `<ng-template #item let-item let-hasSubmenu="hasSubmenu">` (`$implicit` is the bare `let-x`).
25
25
 
26
- ### `p-tiered-menu-sub` (also `p-tieredMenuSub`, `p-tieredmenusub`, legacy): TieredMenuSub
27
-
28
- - Inputs: `activeItemPath`, `ariaLabel`, `ariaLabelledBy`, `autoDisplay`, `focusedItemId`, `inlineStyles`, `items`, `itemTemplate`, `level`, `menuId`, `motionOptions`, `root`, `tabindex`, `visible`.
29
- - Outputs: `(itemClick)`, `(itemMouseEnter)`, `(menuBlur)`, `(menuFocus)`, `(menuKeydown)`.
30
-
31
26
  ## Example: Basic
32
27
 
33
28
  ```typescript
34
29
  import { Component, OnInit } from '@angular/core';
35
- import { TieredMenuModule } from '@exhaustive-ui/core/tieredmenu';
36
30
  import { MenuItem } from '@exhaustive-ui/core/api';
31
+ import { TieredMenuModule } from '@exhaustive-ui/core/tieredmenu';
37
32
 
38
33
  @Component({
39
34
  template: `
@@ -44,11 +44,11 @@ export class TimelineBasicDemo {
44
44
 
45
45
  constructor() {
46
46
  this.events = [
47
- { status: 'Ordered', date: '15/10/2020 10:30', icon: 'pi pi-shopping-cart', color: '#9C27B0', image: 'game-controller.jpg' },
48
- { status: 'Processing', date: '15/10/2020 14:00', icon: 'pi pi-cog', color: '#673AB7' },
49
- { status: 'Shipped', date: '15/10/2020 16:15', icon: 'pi pi-shopping-cart', color: '#FF9800' },
50
- { status: 'Delivered', date: '16/10/2020 10:00', icon: 'pi pi-check', color: '#607D8B' }
51
- ];
47
+ { status: 'Ordered', date: '15/10/2020 10:30', icon: 'pi pi-shopping-cart', color: '#9C27B0', image: 'game-controller.jpg' },
48
+ { status: 'Processing', date: '15/10/2020 14:00', icon: 'pi pi-cog', color: '#673AB7' },
49
+ { status: 'Shipped', date: '15/10/2020 16:15', icon: 'pi pi-shopping-cart', color: '#FF9800' },
50
+ { status: 'Delivered', date: '16/10/2020 10:00', icon: 'pi pi-check', color: '#607D8B' }
51
+ ];
52
52
  }
53
53
  }
54
54
  ```
@@ -25,18 +25,13 @@ Templates (`<ng-template #name let-…>` inside the element):
25
25
 
26
26
  Read a context with `let-`: `<ng-template #message let-item>` (`$implicit` is the bare `let-x`).
27
27
 
28
- ### `p-toast-item` (also `p-toastItem`, legacy): ToastItem
29
-
30
- - Inputs: `clearAll`, `headlessTemplate`, `index`, `life`, `message`, `motionOptions`, `template`.
31
- - Outputs: `(onAnimationEnd)`, `(onAnimationStart)`, `(onClose)`.
32
-
33
28
  ## Example: Basic
34
29
 
35
30
  ```typescript
36
31
  import { Component, inject } from '@angular/core';
37
- import { ButtonModule } from '@exhaustive-ui/core/button';
38
- import { ToastModule } from '@exhaustive-ui/core/toast';
39
32
  import { MessageService } from '@exhaustive-ui/core/api';
33
+ import { ToastModule } from '@exhaustive-ui/core/toast';
34
+ import { ButtonModule } from '@exhaustive-ui/core/button';
40
35
 
41
36
  @Component({
42
37
  template: `
@@ -46,11 +41,15 @@ import { MessageService } from '@exhaustive-ui/core/api';
46
41
  </div>
47
42
  `,
48
43
  standalone: true,
49
- imports: [ButtonModule, ToastModule],
44
+ imports: [ToastModule, ButtonModule],
50
45
  providers: [MessageService]
51
46
  })
52
47
  export class ToastBasicDemo {
53
48
  private messageService = inject(MessageService);
49
+
50
+ show() {
51
+ this.messageService.add({ severity: 'info', summary: 'Info', detail: 'Message Content', life: 3000 });
52
+ }
54
53
  }
55
54
  ```
56
55
 
@@ -47,7 +47,7 @@ import { ToggleButtonModule } from '@exhaustive-ui/core/togglebutton';
47
47
  </div>
48
48
  `,
49
49
  standalone: true,
50
- imports: [ToggleButtonModule, FormsModule]
50
+ imports: [FormsModule, ToggleButtonModule]
51
51
  })
52
52
  export class TogglebuttonBasicDemo {
53
53
  checked: boolean = false;
@@ -11,11 +11,12 @@ import { ToggleSwitch } from '@exhaustive-ui/core/toggleswitch'; // standalone;
11
11
  Form control: use `[(ngModel)]`, `formControlName` or `[formControl]`.
12
12
 
13
13
  Inputs:
14
+ - `ariaLabel`: `string | undefined`: Used to define a string that autocomplete attribute the current element.
14
15
  - `disabled`: `boolean | undefined`: When present, it specifies that the component should have disabled state style.
15
16
  - `invalid`: `boolean | undefined`: When present, it specifies that the component should have invalid state style.
16
17
  - `name`: `string | undefined`: When present, it specifies that the name of the input.
17
18
  - `required`: `boolean | undefined`: There must be a value (if set).
18
- - Other inputs: `ariaLabel`, `ariaLabelledBy`, `autofocus`, `falseValue`, `inputId`, `readonly`, `tabindex`, `trueValue`.
19
+ - Other inputs: `ariaLabelledBy`, `autofocus`, `falseValue`, `inputId`, `readonly`, `tabindex`, `trueValue`.
19
20
 
20
21
  Outputs:
21
22
  - `(onChange)`: `ToggleSwitchChangeEvent`
@@ -35,11 +36,11 @@ import { ToggleSwitchModule } from '@exhaustive-ui/core/toggleswitch';
35
36
  @Component({
36
37
  template: `
37
38
  <div class="card flex justify-center">
38
- <p-toggle-switch [(ngModel)]="checked" />
39
+ <p-toggle-switch [(ngModel)]="checked" ariaLabel="Notifications" />
39
40
  </div>
40
41
  `,
41
42
  standalone: true,
42
- imports: [ToggleSwitchModule, FormsModule]
43
+ imports: [FormsModule, ToggleSwitchModule]
43
44
  })
44
45
  export class ToggleswitchBasicDemo {
45
46
  checked: boolean = false;
@@ -19,22 +19,22 @@ Templates (`<ng-template #name let-…>` inside the element):
19
19
 
20
20
  ```typescript
21
21
  import { Component, OnInit } from '@angular/core';
22
+ import { MenuItem } from '@exhaustive-ui/core/api';
23
+ import { ToolbarModule } from '@exhaustive-ui/core/toolbar';
22
24
  import { ButtonModule } from '@exhaustive-ui/core/button';
23
- import { IconFieldModule } from '@exhaustive-ui/core/iconfield';
24
- import { InputIconModule } from '@exhaustive-ui/core/inputicon';
25
25
  import { SplitButtonModule } from '@exhaustive-ui/core/splitbutton';
26
- import { ToolbarModule } from '@exhaustive-ui/core/toolbar';
27
26
  import { InputTextModule } from '@exhaustive-ui/core/inputtext';
28
- import { MenuItem } from '@exhaustive-ui/core/api';
27
+ import { IconFieldModule } from '@exhaustive-ui/core/iconfield';
28
+ import { InputIconModule } from '@exhaustive-ui/core/inputicon';
29
29
 
30
30
  @Component({
31
31
  template: `
32
32
  <div class="card">
33
33
  <p-toolbar>
34
34
  <ng-template #start>
35
- <p-button icon="pi pi-plus" class="mr-2" text severity="secondary" />
36
- <p-button icon="pi pi-print" class="mr-2" text severity="secondary" />
37
- <p-button icon="pi pi-upload" text severity="secondary" />
35
+ <p-button icon="pi pi-plus" ariaLabel="New" class="mr-2" text severity="secondary" />
36
+ <p-button icon="pi pi-print" ariaLabel="Print" class="mr-2" text severity="secondary" />
37
+ <p-button icon="pi pi-upload" ariaLabel="Upload" text severity="secondary" />
38
38
  </ng-template>
39
39
  <ng-template #center>
40
40
  <p-icon-field iconPosition="left">
@@ -49,7 +49,7 @@ import { MenuItem } from '@exhaustive-ui/core/api';
49
49
  </div>
50
50
  `,
51
51
  standalone: true,
52
- imports: [ButtonModule, IconFieldModule, InputIconModule, SplitButtonModule, ToolbarModule, InputTextModule]
52
+ imports: [ToolbarModule, ButtonModule, SplitButtonModule, InputTextModule, IconFieldModule, InputIconModule]
53
53
  })
54
54
  export class ToolbarBasicDemo implements OnInit {
55
55
  items: MenuItem[] | undefined;
@@ -34,7 +34,8 @@ import { TooltipModule } from '@exhaustive-ui/core/tooltip';
34
34
  standalone: true,
35
35
  imports: [ButtonModule, TooltipModule]
36
36
  })
37
- export class TooltipDelayDemo {}
37
+ export class TooltipDelayDemo {
38
+ }
38
39
  ```
39
40
 
40
41
  Every component and directive also accepts `pt` (pass through attributes), `ptOptions`, `dt` (design tokens) and `unstyled`.
@@ -57,17 +57,13 @@ Templates (`<ng-template #name let-…>` inside the element):
57
57
 
58
58
  Read a context with `let-`: `<ng-template #filter let-item>` (`$implicit` is the bare `let-x`).
59
59
 
60
- ### `p-tree-node` (also `p-treeNode`, legacy): UITreeNode
61
-
62
- - Inputs: `indentation`, `index`, `itemSize`, `level`, `loadingMode`, `node`, `parentNode`.
63
-
64
60
  ## Example: Basic
65
61
 
66
62
  ```typescript
67
- import { Component, OnInit, inject, signal } from '@angular/core';
63
+ import { Component, OnInit, signal, inject } from '@angular/core';
64
+ import { TreeNode } from '@exhaustive-ui/core/api';
68
65
  import { TreeModule } from '@exhaustive-ui/core/tree';
69
66
  import { NodeService } from '@/service/nodeservice';
70
- import { TreeNode } from '@exhaustive-ui/core/api';
71
67
 
72
68
  @Component({
73
69
  template: `
@@ -81,6 +77,7 @@ import { TreeNode } from '@exhaustive-ui/core/api';
81
77
  })
82
78
  export class TreeBasicDemo implements OnInit {
83
79
  private nodeService = inject(NodeService);
80
+
84
81
  files = signal<TreeNode[]>(undefined);
85
82
 
86
83
  ngOnInit() {
@@ -64,11 +64,11 @@ Read a context with `let-`: `<ng-template #value let-item let-placeholder="place
64
64
  ## Example: Basic
65
65
 
66
66
  ```typescript
67
- import { Component, OnInit, inject } from '@angular/core';
67
+ import { Component, inject } from '@angular/core';
68
68
  import { FormsModule } from '@angular/forms';
69
+ import { RouterModule } from '@angular/router';
69
70
  import { TreeSelectModule } from '@exhaustive-ui/core/treeselect';
70
71
  import { NodeService } from '@/service/nodeservice';
71
- import { TreeNode } from '@exhaustive-ui/core/api';
72
72
 
73
73
  @Component({
74
74
  template: `
@@ -77,20 +77,19 @@ import { TreeNode } from '@exhaustive-ui/core/api';
77
77
  </div>
78
78
  `,
79
79
  standalone: true,
80
- imports: [TreeSelectModule, FormsModule],
80
+ imports: [TreeSelectModule, FormsModule, RouterModule],
81
81
  providers: [NodeService]
82
82
  })
83
- export class TreeselectBasicDemo implements OnInit {
83
+ export class TreeselectBasicDemo {
84
84
  private nodeService = inject(NodeService);
85
+
85
86
  nodes!: any[];
87
+
86
88
  selectedNodes: any;
87
89
 
88
90
  constructor() {
89
91
  this.nodeService.getFiles().then((files) => (this.nodes = files));
90
92
  }
91
-
92
- ngOnInit() {
93
- }
94
93
  }
95
94
  ```
96
95
 
@@ -91,66 +91,84 @@ Templates (`<ng-template #name let-…>` inside the element):
91
91
 
92
92
  Read a context with `let-`: `<ng-template #colgroup let-item>` (`$implicit` is the bare `let-x`).
93
93
 
94
- ### `[pTreeTableBody]`: TTBody
95
-
96
- - Inputs: `frozen`, `pTreeTableBody`, `pTreeTableBodyTemplate`, `scrollerOptions`, `serializedNodes`.
97
-
98
94
  ### `p-tree-table-checkbox` (also `p-treeTableCheckbox`, `p-treetable-checkbox`, legacy): TTCheckbox
99
95
 
96
+ Checkbox that selects its node, with selectionMode set to checkbox.
97
+
100
98
  - Inputs: `ariaLabel`, `ariaLabelledBy`, `disabled`, `value`.
101
99
 
102
100
  ### `[ttContextMenuRow]`: TTContextMenuRow
103
101
 
102
+ Opens the context menu of the tree table when the row is right clicked.
103
+
104
104
  - Inputs: `ttContextMenuRow`, `ttContextMenuRowDisabled`.
105
105
 
106
106
  ### `[ttEditableColumn]`: TTEditableColumn
107
107
 
108
+ Makes a cell editable: clicking it shows the `#input` template of its p-tree-table-cell-editor.
109
+
108
110
  - Inputs: `ttEditableColumn`, `ttEditableColumnDisabled`, `ttEditableColumnField`.
109
111
 
110
112
  ### `p-tree-table-header-checkbox` (also `p-treeTableHeaderCheckbox`, legacy): TTHeaderCheckbox
111
113
 
114
+ Checkbox in the header that selects or unselects all the nodes, with selectionMode set to checkbox.
115
+
112
116
  - Inputs: `ariaLabel`, `ariaLabelledBy`.
113
117
 
114
118
  ### `[ttReorderableColumn]`: TTReorderableColumn
115
119
 
120
+ Lets a header cell be dragged to reorder the columns, with reorderableColumns enabled on the tree table.
121
+
116
122
  - Inputs: `ttReorderableColumnDisabled`.
117
123
 
118
124
  ### `[ttResizableColumn]`: TTResizableColumn
119
125
 
126
+ Adds a resizer to a header cell, with resizableColumns enabled on the tree table.
127
+
120
128
  - Inputs: `ttResizableColumnDisabled`.
121
129
 
122
130
  ### `[ttRow]`: TTRow
123
131
 
124
- - Inputs: `ttRow`.
125
-
126
- ### `[ttScrollableView]`: TTScrollableView
132
+ Gives a row its keyboard navigation and its ARIA attributes (role, level, expanded state).
127
133
 
128
- - Inputs: `frozen`, `scrollHeight`, `ttScrollableView`.
134
+ - Inputs: `ttRow`.
129
135
 
130
136
  ### `[ttSelectableRow]`: TTSelectableRow
131
137
 
138
+ Selects its row when clicked or activated with the keyboard, according to the selectionMode of the tree table.
139
+
132
140
  - Inputs: `ttSelectableRow`, `ttSelectableRowDisabled`.
133
141
 
134
142
  ### `[ttSelectableRowDblClick]`: TTSelectableRowDblClick
135
143
 
144
+ Selects its row when double clicked.
145
+
136
146
  - Inputs: `ttSelectableRowDblClick`, `ttSelectableRowDisabled`.
137
147
 
138
148
  ### `p-tree-table-sort-icon` (also `p-treeTableSortIcon`, `p-treetable-sort-icon`, legacy): TTSortIcon
139
149
 
150
+ Shows the sort state of a column.
151
+
140
152
  - Inputs: `field`.
141
153
 
142
154
  ### `[ttSortableColumn]`: TTSortableColumn
143
155
 
156
+ Sorts the tree table by a field when the header cell is clicked or activated with the keyboard: `[ttSortableColumn]="'name'"`.
157
+
144
158
  - Inputs: `ttSortableColumn`, `ttSortableColumnDisabled`.
145
159
 
146
160
  ### `p-tree-table-cell-editor` (also `p-treeTableCellEditor`, `p-treetablecelleditor`, `p-treetable-cell-editor`, legacy): TreeTableCellEditor
147
161
 
162
+ Content of an editable cell: the `#input` template shows while the cell is edited, the `#output` template otherwise.
163
+
148
164
  Templates (`<ng-template #name let-…>` inside the element):
149
165
  - `#input`: no context.
150
166
  - `#output`: no context.
151
167
 
152
168
  ### `p-tree-table-toggler` (also `p-treeTableToggler`, `p-treetabletoggler`, `p-treetable-toggler`, legacy): TreeTableToggler
153
169
 
170
+ Button that expands or collapses a node: `<p-tree-table-toggler [rowNode]="rowNode" />`.
171
+
154
172
  - Inputs: `rowNode`.
155
173
 
156
174
  Types used in the contexts:
@@ -162,34 +180,36 @@ Types used in the contexts:
162
180
  ## Example: Basic
163
181
 
164
182
  ```typescript
165
- import { Component, OnInit, inject } from '@angular/core';
183
+ import { Component, inject, OnInit } from '@angular/core';
184
+ import { TreeNode } from '@exhaustive-ui/core/api';
166
185
  import { TreeTableModule } from '@exhaustive-ui/core/treetable';
167
186
  import { NodeService } from '@/service/nodeservice';
168
- import { TreeNode } from '@exhaustive-ui/core/api';
169
187
 
170
188
  @Component({
171
189
  template: `
172
- <p-tree-table [value]="files" [scrollable]="true" [tableStyle]="{ 'min-width': '50rem' }">
173
- <ng-template #header>
174
- <tr>
175
- <th>Name</th>
176
- <th>Size</th>
177
- <th>Type</th>
178
- </tr>
179
- </ng-template>
180
- <ng-template #body let-rowNode let-rowData="rowData">
181
- <tr [ttRow]="rowNode">
182
- <td>
183
- <div class="flex items-center gap-2">
184
- <p-tree-table-toggler [rowNode]="rowNode" />
185
- <span>{{ rowData.name }}</span>
186
- </div>
187
- </td>
188
- <td>{{ rowData.size }}</td>
189
- <td>{{ rowData.type }}</td>
190
- </tr>
191
- </ng-template>
192
- </p-tree-table>
190
+ <div class="card">
191
+ <p-tree-table [value]="files" [scrollable]="true" [tableStyle]="{ 'min-width': '50rem' }">
192
+ <ng-template #header>
193
+ <tr>
194
+ <th>Name</th>
195
+ <th>Size</th>
196
+ <th>Type</th>
197
+ </tr>
198
+ </ng-template>
199
+ <ng-template #body let-rowNode let-rowData="rowData">
200
+ <tr [ttRow]="rowNode">
201
+ <td>
202
+ <div class="flex items-center gap-2">
203
+ <p-tree-table-toggler [rowNode]="rowNode" />
204
+ <span>{{ rowData.name }}</span>
205
+ </div>
206
+ </td>
207
+ <td>{{ rowData.size }}</td>
208
+ <td>{{ rowData.type }}</td>
209
+ </tr>
210
+ </ng-template>
211
+ </p-tree-table>
212
+ </div>
193
213
  `,
194
214
  standalone: true,
195
215
  imports: [TreeTableModule],
@@ -197,6 +217,7 @@ import { TreeNode } from '@exhaustive-ui/core/api';
197
217
  })
198
218
  export class TreetableBasicDemo implements OnInit {
199
219
  private nodeService = inject(NodeService);
220
+
200
221
  files!: TreeNode[];
201
222
 
202
223
  ngOnInit() {
@@ -4,7 +4,7 @@ Accordion groups a collection of contents in tabs.
4
4
 
5
5
  ## Accessibility
6
6
 
7
- Screen Reader Accordion header elements have a button role and use aria-controls to define the id of the content section along with aria-expanded for the visibility state. The value to read a header element defaults to the value of the header property and can be customized by defining an aria-label or aria-labelledby property. Each header has a heading role, for which the level is customized by headerAriaLevel and has a default level of 2 as per W3C specifications. Disabled accordions headers use aria-disabled and are excluded from the keybord navigation. The content uses region role, defines an id that matches the aria-controls of the header and aria-labelledby referring to the id of the header. Header Keyboard Support
7
+ Screen Reader Accordion header elements have a button role and use aria-controls to define the id of the content section along with aria-expanded for the visibility state. The value to read a header element defaults to its content and can be customized by defining an aria-label or aria-labelledby attribute. Disabled accordions headers use aria-disabled and are excluded from the keybord navigation. The content uses region role, defines an id that matches the aria-controls of the header and aria-labelledby referring to the id of the header. Header Keyboard Support
8
8
 
9
9
  ## Basic
10
10
 
@@ -52,7 +52,8 @@ import { AccordionModule } from '@exhaustive-ui/core/accordion';
52
52
  standalone: true,
53
53
  imports: [AccordionModule]
54
54
  })
55
- export class AccordionBasicDemo {}
55
+ export class AccordionBasicDemo {
56
+ }
56
57
  ```
57
58
 
58
59
  ## Controlled
@@ -108,7 +109,7 @@ import { ButtonModule } from '@exhaustive-ui/core/button';
108
109
  imports: [AccordionModule, ButtonModule]
109
110
  })
110
111
  export class AccordionControlledDemo {
111
- active: string = '0';
112
+ active = '0';
112
113
  }
113
114
  ```
114
115
 
@@ -122,7 +123,7 @@ import { AccordionModule } from '@exhaustive-ui/core/accordion';
122
123
 
123
124
  @Component({
124
125
  template: `
125
- <div class="card flex justify-content-center">
126
+ <div class="card flex justify-center">
126
127
  <p-accordion [value]="['0']" [multiple]="true">
127
128
  <p-accordion-panel value="0">
128
129
  <p-accordion-header>Header I</p-accordion-header>
@@ -161,7 +162,8 @@ import { AccordionModule } from '@exhaustive-ui/core/accordion';
161
162
  standalone: true,
162
163
  imports: [AccordionModule]
163
164
  })
164
- export class AccordionDisabledDemo {}
165
+ export class AccordionDisabledDemo {
166
+ }
165
167
  ```
166
168
 
167
169
  ## Dynamic
@@ -191,7 +193,11 @@ import { AccordionModule } from '@exhaustive-ui/core/accordion';
191
193
  imports: [AccordionModule]
192
194
  })
193
195
  export class AccordionDynamicDemo {
194
- tabs: any[];
196
+ tabs = [
197
+ { title: 'Title 1', content: 'Content 1', value: '0' },
198
+ { title: 'Title 2', content: 'Content 2', value: '1' },
199
+ { title: 'Title 3', content: 'Content 3', value: '2' }
200
+ ];
195
201
  }
196
202
  ```
197
203
 
@@ -205,7 +211,7 @@ import { AccordionModule } from '@exhaustive-ui/core/accordion';
205
211
 
206
212
  @Component({
207
213
  template: `
208
- <div class="card flex justify-content-center">
214
+ <div class="card flex justify-center">
209
215
  <p-accordion [value]="['0']" [multiple]="true">
210
216
  <p-accordion-panel value="0">
211
217
  <p-accordion-header>Header I</p-accordion-header>
@@ -241,7 +247,8 @@ import { AccordionModule } from '@exhaustive-ui/core/accordion';
241
247
  standalone: true,
242
248
  imports: [AccordionModule]
243
249
  })
244
- export class AccordionMultipleDemo {}
250
+ export class AccordionMultipleDemo {
251
+ }
245
252
  ```
246
253
 
247
254
  ## Template
@@ -256,7 +263,7 @@ import { BadgeModule } from '@exhaustive-ui/core/badge';
256
263
 
257
264
  @Component({
258
265
  template: `
259
- <div class="card flex justify-content-center">
266
+ <div class="card flex justify-center">
260
267
  <p-accordion value="0">
261
268
  <p-accordion-panel value="0">
262
269
  <p-accordion-header>
@@ -268,7 +275,7 @@ import { BadgeModule } from '@exhaustive-ui/core/badge';
268
275
  }
269
276
  </ng-template>
270
277
  <span class="flex items-center gap-2 w-full">
271
- <p-avatar image="https://exhaustive-ui.com/demo/avatar/amyelsner.png" shape="circle" />
278
+ <p-avatar image="https://exhaustive-ui.com/demo/avatar/amyelsner.png" ariaLabel="Amy Elsner" shape="circle" />
272
279
  <span class="font-bold whitespace-nowrap">Amy Elsner</span>
273
280
  <p-badge value="3" class="ml-auto mr-2" />
274
281
  </span>
@@ -291,7 +298,7 @@ import { BadgeModule } from '@exhaustive-ui/core/badge';
291
298
  }
292
299
  </ng-template>
293
300
  <span class="flex items-center gap-2 w-full">
294
- <p-avatar image="https://exhaustive-ui.com/demo/avatar/onyamalimba.png" shape="circle" />
301
+ <p-avatar image="https://exhaustive-ui.com/demo/avatar/onyamalimba.png" ariaLabel="Onyama Limba" shape="circle" />
295
302
  <span class="font-bold whitespace-nowrap">Onyama Limba</span>
296
303
  <p-badge value="4" class="ml-auto mr-2" />
297
304
  </span>
@@ -313,7 +320,7 @@ import { BadgeModule } from '@exhaustive-ui/core/badge';
313
320
  }
314
321
  </ng-template>
315
322
  <span class="flex items-center gap-2 w-full">
316
- <p-avatar image="https://exhaustive-ui.com/demo/avatar/ionibowcher.png" shape="circle" />
323
+ <p-avatar image="https://exhaustive-ui.com/demo/avatar/ionibowcher.png" ariaLabel="Ioni Bowcher" shape="circle" />
317
324
  <span class="font-bold whitespace-nowrap">Ioni Bowcher</span>
318
325
  <p-badge value="2" class="ml-auto mr-2" />
319
326
  </span>
@@ -331,7 +338,8 @@ import { BadgeModule } from '@exhaustive-ui/core/badge';
331
338
  standalone: true,
332
339
  imports: [AccordionModule, AvatarModule, BadgeModule]
333
340
  })
334
- export class AccordionTemplateDemo {}
341
+ export class AccordionTemplateDemo {
342
+ }
335
343
  ```
336
344
 
337
345
  ## Accordion
@@ -342,16 +350,16 @@ Accordion groups a collection of contents in tabs.
342
350
 
343
351
  | Name | Type | Default | Description |
344
352
  |------|------|---------|-------------|
345
- | value | ModelSignal<string \| number \| string[] \| number[]> | undefined | Value of the active tab. |
346
- | multiple | InputSignalWithTransform<boolean, any> | false | When enabled, multiple tabs can be activated at the same time. |
347
- | expandIcon | InputSignal<string> | ... | Icon of a collapsed tab. |
348
- | collapseIcon | InputSignal<string> | ... | Icon of an expanded tab. |
349
- | selectOnFocus | InputSignalWithTransform<boolean, any> | false | When enabled, the focused tab is activated. |
350
- | motionOptions | InputSignal<MotionOptions> | ... | The motion options. |
351
- | dt | InputSignal<Object> | undefined | Defines scoped design tokens of the component. |
352
- | unstyled | InputSignal<boolean> | undefined | Indicates whether the component should be rendered without styles. |
353
- | pt | InputSignal<AccordionPassThrough> | undefined | Used to pass attributes to DOM elements inside the component. |
354
- | ptOptions | InputSignal<PassThroughOptions> | undefined | Used to configure passthrough(pt) options of the component. |
353
+ | value | string \| number \| string[] \| number[] | undefined | Value of the active tab. |
354
+ | multiple | boolean | false | When enabled, multiple tabs can be activated at the same time. |
355
+ | expandIcon | string | - | Icon of a collapsed tab. |
356
+ | collapseIcon | string | - | Icon of an expanded tab. |
357
+ | selectOnFocus | boolean | false | When enabled, the focused tab is activated. |
358
+ | motionOptions | MotionOptions | - | The motion options. |
359
+ | dt | Object | undefined | Defines scoped design tokens of the component. |
360
+ | unstyled | boolean | undefined | Indicates whether the component should be rendered without styles. |
361
+ | pt | AccordionPassThrough | undefined | Used to pass attributes to DOM elements inside the component. |
362
+ | ptOptions | PassThroughOptions | undefined | Used to configure passthrough(pt) options of the component. |
355
363
 
356
364
  ### Emits
357
365