@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
@@ -0,0 +1,76 @@
1
+ # Terminal
2
+
3
+ Terminal is a text based user interface.
4
+
5
+ ```typescript
6
+ import { Terminal } from '@exhaustive-ui/core/terminal'; // standalone; or TerminalModule for all its parts
7
+ ```
8
+
9
+ ## `p-terminal`: Terminal
10
+
11
+ Inputs:
12
+ - `prompt`: `string | undefined`: Prompt text for each command.
13
+ - `welcomeMessage`: `string | undefined`: Initial text to display on terminal.
14
+ - Other inputs: `ariaLabel`, `ariaLabelledBy`, `response`.
15
+
16
+ ## Example: Basic
17
+
18
+ ```typescript
19
+ import { Component, OnDestroy, inject } from '@angular/core';
20
+ import { TerminalService } from '@exhaustive-ui/core/terminal';
21
+ import { TerminalModule } from '@exhaustive-ui/core/terminal';
22
+ import { Subscription } from 'rxjs';
23
+
24
+ @Component({
25
+ template: `
26
+ <div class="card">
27
+ <p>Enter "<strong>date</strong>" to display the current date, "<strong>greet &#123;0&#125;</strong>" for a message and "<strong>random</strong>" to get a random number.</p>
28
+ <p-terminal welcomeMessage="Welcome to ExhaustiveUI" prompt="exhaustive $" />
29
+ </div>
30
+ `,
31
+ standalone: true,
32
+ imports: [TerminalModule],
33
+ providers: [TerminalService]
34
+ })
35
+ export class TerminalBasicDemo implements OnDestroy {
36
+ private terminalService = inject(TerminalService);
37
+
38
+ subscription: Subscription;
39
+
40
+ constructor() {
41
+ this.subscription = this.terminalService.commandHandler.subscribe((text) => {
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
+ });
64
+ }
65
+
66
+ ngOnDestroy() {
67
+ if (this.subscription) {
68
+ this.subscription.unsubscribe();
69
+ }
70
+ }
71
+ }
72
+ ```
73
+
74
+ Every component and directive also accepts `pt` (pass through attributes), `ptOptions`, `dt` (design tokens) and `unstyled`.
75
+
76
+ Full documentation (every input, pass through, styling, all examples): https://exhaustive-ui.com/llms/components/terminal.md
@@ -0,0 +1,45 @@
1
+ # Textarea
2
+
3
+ Textarea adds styling and autoResize functionality to standard textarea element.
4
+
5
+ ```typescript
6
+ import { Textarea } from '@exhaustive-ui/core/textarea'; // standalone; or TextareaModule for all its parts
7
+ ```
8
+
9
+ ## `[pTextarea]` (also `[pInputTextarea]`, legacy): Textarea
10
+
11
+ Inputs:
12
+ - `autoResize`: `boolean | undefined`: When present, textarea size changes as being typed.
13
+ - `fluid`: `boolean | undefined`: Spans 100% width of the container when enabled.
14
+ - `invalid`: `boolean | undefined`: When present, it specifies that the component should have invalid state style.
15
+ - `pSize`: `"large" | "small" | undefined`: Defines the size of the component.
16
+ - `variant`: `"filled" | "outlined" | undefined`: Specifies the input variant of the component.
17
+ - Other inputs: `pTextareaPT`, `pTextareaUnstyled`.
18
+
19
+ Outputs:
20
+ - `(onResize)`: `{} | Event`
21
+
22
+ ## Example: Basic
23
+
24
+ ```typescript
25
+ import { Component } from '@angular/core';
26
+ import { FormsModule } from '@angular/forms';
27
+ import { TextareaModule } from '@exhaustive-ui/core/textarea';
28
+
29
+ @Component({
30
+ template: `
31
+ <div class="card flex justify-center">
32
+ <textarea rows="5" cols="30" pTextarea [(ngModel)]="value" aria-label="Message"></textarea>
33
+ </div>
34
+ `,
35
+ standalone: true,
36
+ imports: [FormsModule, TextareaModule]
37
+ })
38
+ export class TextareaBasicDemo {
39
+ value!: string;
40
+ }
41
+ ```
42
+
43
+ Every component and directive also accepts `pt` (pass through attributes), `ptOptions`, `dt` (design tokens) and `unstyled`.
44
+
45
+ Full documentation (every input, pass through, styling, all examples): https://exhaustive-ui.com/llms/components/textarea.md
@@ -0,0 +1,121 @@
1
+ # TieredMenu
2
+
3
+ TieredMenu displays submenus in nested overlays.
4
+
5
+ ```typescript
6
+ import { TieredMenu } from '@exhaustive-ui/core/tieredmenu'; // standalone; or TieredMenuModule for all its parts
7
+ ```
8
+
9
+ ## `p-tiered-menu` (also `p-tieredMenu`, `p-tieredmenu`, legacy): TieredMenu
10
+
11
+ Inputs:
12
+ - `model`: `MenuItem[] | undefined`: An array of menuitems.
13
+ - `popup`: `boolean | undefined`: Defines if menu would displayed as a popup.
14
+ - Other inputs: `appendTo`, `ariaLabel`, `ariaLabelledBy`, `autoDisplay`, `autoZIndex`, `baseZIndex`, `breakpoint`, `disabled`, `id`, `motionOptions`, `style`, `styleClass`, `tabindex`.
15
+
16
+ Outputs:
17
+ - `(onHide)`: `any`
18
+ - `(onShow)`: `any`
19
+
20
+ Templates (`<ng-template #name let-…>` inside the element):
21
+ - `#submenuicon`: no context. Custom submenu icon template.
22
+ - `#item`: context { $implicit: any, hasSubmenu: boolean }. Custom item template.
23
+
24
+ Read a context with `let-`: `<ng-template #item let-item let-hasSubmenu="hasSubmenu">` (`$implicit` is the bare `let-x`).
25
+
26
+ ## Example: Basic
27
+
28
+ ```typescript
29
+ import { Component, OnInit } from '@angular/core';
30
+ import { MenuItem } from '@exhaustive-ui/core/api';
31
+ import { TieredMenuModule } from '@exhaustive-ui/core/tieredmenu';
32
+
33
+ @Component({
34
+ template: `
35
+ <div class="card flex justify-center">
36
+ <p-tiered-menu [model]="items" />
37
+ </div>
38
+ `,
39
+ standalone: true,
40
+ imports: [TieredMenuModule]
41
+ })
42
+ export class TieredmenuBasicDemo implements OnInit {
43
+ items: MenuItem[] | undefined;
44
+
45
+ ngOnInit() {
46
+ this.items = [
47
+ {
48
+ label: 'File',
49
+ icon: 'pi pi-file',
50
+ items: [
51
+ {
52
+ label: 'New',
53
+ icon: 'pi pi-plus',
54
+ items: [
55
+ {
56
+ label: 'Document',
57
+ icon: 'pi pi-file'
58
+ },
59
+ {
60
+ label: 'Image',
61
+ icon: 'pi pi-image'
62
+ },
63
+ {
64
+ label: 'Video',
65
+ icon: 'pi pi-video'
66
+ }
67
+ ]
68
+ },
69
+ {
70
+ label: 'Open',
71
+ icon: 'pi pi-folder-open'
72
+ },
73
+ {
74
+ label: 'Print',
75
+ icon: 'pi pi-print'
76
+ }
77
+ ]
78
+ },
79
+ {
80
+ label: 'Edit',
81
+ icon: 'pi pi-file-edit',
82
+ items: [
83
+ {
84
+ label: 'Copy',
85
+ icon: 'pi pi-copy'
86
+ },
87
+ {
88
+ label: 'Delete',
89
+ icon: 'pi pi-times'
90
+ }
91
+ ]
92
+ },
93
+ {
94
+ label: 'Search',
95
+ icon: 'pi pi-search'
96
+ },
97
+ {
98
+ separator: true
99
+ },
100
+ {
101
+ label: 'Share',
102
+ icon: 'pi pi-share-alt',
103
+ items: [
104
+ {
105
+ label: 'Slack',
106
+ icon: 'pi pi-slack'
107
+ },
108
+ {
109
+ label: 'Whatsapp',
110
+ icon: 'pi pi-whatsapp'
111
+ }
112
+ ]
113
+ }
114
+ ];
115
+ }
116
+ }
117
+ ```
118
+
119
+ Every component and directive also accepts `pt` (pass through attributes), `ptOptions`, `dt` (design tokens) and `unstyled`.
120
+
121
+ Full documentation (every input, pass through, styling, all examples): https://exhaustive-ui.com/llms/components/tieredmenu.md
@@ -0,0 +1,58 @@
1
+ # Timeline
2
+
3
+ Timeline visualizes a series of chained events.
4
+
5
+ ```typescript
6
+ import { Timeline } from '@exhaustive-ui/core/timeline'; // standalone; or TimelineModule for all its parts
7
+ ```
8
+
9
+ ## `p-timeline`: Timeline
10
+
11
+ Inputs:
12
+ - `align`: `string` = `'left'`: Position of the timeline bar relative to the content.
13
+ - `layout`: `"vertical" | "horizontal"` = `'vertical'`: Orientation of the timeline.
14
+ - `value`: `any[] | undefined`: An array of events to display.
15
+
16
+ Templates (`<ng-template #name let-…>` inside the element):
17
+ - `#content`: context { $implicit: T }. Custom content template.
18
+ - `#opposite`: context { $implicit: T }. Custom opposite item template.
19
+ - `#marker`: context { $implicit: T }. Custom marker template.
20
+
21
+ Read a context with `let-`: `<ng-template #content let-item>` (`$implicit` is the bare `let-x`).
22
+
23
+ ## Example: Basic
24
+
25
+ ```typescript
26
+ import { Component } from '@angular/core';
27
+ import { TimelineModule } from '@exhaustive-ui/core/timeline';
28
+
29
+ @Component({
30
+ template: `
31
+ <div class="card">
32
+ <p-timeline [value]="events">
33
+ <ng-template #content let-event>
34
+ {{ event.status }}
35
+ </ng-template>
36
+ </p-timeline>
37
+ </div>
38
+ `,
39
+ standalone: true,
40
+ imports: [TimelineModule]
41
+ })
42
+ export class TimelineBasicDemo {
43
+ events: any[];
44
+
45
+ constructor() {
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
+ ];
52
+ }
53
+ }
54
+ ```
55
+
56
+ Every component and directive also accepts `pt` (pass through attributes), `ptOptions`, `dt` (design tokens) and `unstyled`.
57
+
58
+ Full documentation (every input, pass through, styling, all examples): https://exhaustive-ui.com/llms/components/timeline.md
@@ -0,0 +1,58 @@
1
+ # Toast
2
+
3
+ Toast is used to display messages in an overlay.
4
+
5
+ ```typescript
6
+ import { Toast } from '@exhaustive-ui/core/toast'; // standalone; or ToastModule for all its parts
7
+ ```
8
+
9
+ ## `p-toast`: Toast
10
+
11
+ Inputs:
12
+ - `baseZIndex`: `number` = `0`: Base zIndex value to use in layering.
13
+ - `breakpoints`: `{ [key: string]: any; } | undefined`: Object literal to define styles per screen size.
14
+ - `key`: `string | undefined`: Key of the message in case message is targeted to a specific toast component.
15
+ - `life`: `number` = `3000`: The default time to display messages for in milliseconds.
16
+ - `position`: `ToastPositionType` = `'top-right'`: Position of the toast in viewport.
17
+ - Other inputs: `autoZIndex`, `motionOptions`, `preventDuplicates`, `preventOpenDuplicates`.
18
+
19
+ Outputs:
20
+ - `(onClose)`: `ToastCloseEvent`
21
+
22
+ Templates (`<ng-template #name let-…>` inside the element):
23
+ - `#message`: context { $implicit: ToastMessageOptions | null | undefined }. Custom message template.
24
+ - `#headless`: context { $implicit: ToastMessageOptions | null | undefined, closeFn: (event: Event) => void }. Custom headless template.
25
+
26
+ Read a context with `let-`: `<ng-template #message let-item>` (`$implicit` is the bare `let-x`).
27
+
28
+ ## Example: Basic
29
+
30
+ ```typescript
31
+ import { Component, inject } from '@angular/core';
32
+ import { MessageService } from '@exhaustive-ui/core/api';
33
+ import { ToastModule } from '@exhaustive-ui/core/toast';
34
+ import { ButtonModule } from '@exhaustive-ui/core/button';
35
+
36
+ @Component({
37
+ template: `
38
+ <div class="card flex justify-center">
39
+ <p-toast />
40
+ <p-button (onClick)="show()" label="Show" />
41
+ </div>
42
+ `,
43
+ standalone: true,
44
+ imports: [ToastModule, ButtonModule],
45
+ providers: [MessageService]
46
+ })
47
+ export class ToastBasicDemo {
48
+ private messageService = inject(MessageService);
49
+
50
+ show() {
51
+ this.messageService.add({ severity: 'info', summary: 'Info', detail: 'Message Content', life: 3000 });
52
+ }
53
+ }
54
+ ```
55
+
56
+ Every component and directive also accepts `pt` (pass through attributes), `ptOptions`, `dt` (design tokens) and `unstyled`.
57
+
58
+ Full documentation (every input, pass through, styling, all examples): https://exhaustive-ui.com/llms/components/toast.md
@@ -0,0 +1,59 @@
1
+ # ToggleButton
2
+
3
+ ToggleButton is used to select a boolean value using a button.
4
+
5
+ ```typescript
6
+ import { ToggleButton } from '@exhaustive-ui/core/togglebutton'; // standalone; or ToggleButtonModule for all its parts
7
+ ```
8
+
9
+ ## `p-toggle-button` (also `p-toggleButton`, `p-togglebutton`, legacy): ToggleButton
10
+
11
+ Form control: use `[(ngModel)]`, `formControlName` or `[formControl]`.
12
+
13
+ Inputs:
14
+ - `ariaLabel`: `string | undefined`: Defines a string that labels the input for accessibility.
15
+ - `disabled`: `boolean | undefined`: When present, it specifies that the component should have disabled state style.
16
+ - `fluid`: `boolean | undefined`: Spans 100% width of the container when enabled.
17
+ - `invalid`: `boolean | undefined`: When present, it specifies that the component should have invalid state style.
18
+ - `name`: `string | undefined`: When present, it specifies that the name of the input.
19
+ - `offIcon`: `string | undefined`: Icon for the off state.
20
+ - `offLabel`: `string` = `'No'`: Label for the off state.
21
+ - `onIcon`: `string | undefined`: Icon for the on state.
22
+ - `onLabel`: `string` = `'Yes'`: Label for the on state.
23
+ - `required`: `boolean | undefined`: There must be a value (if set).
24
+ - `size`: `"large" | "small" | undefined`: Defines the size of the component.
25
+ - Other inputs: `allowEmpty`, `ariaLabelledBy`, `autofocus`, `iconPos`, `tabindex`.
26
+
27
+ Outputs:
28
+ - `(onChange)`: `ToggleButtonChangeEvent`
29
+
30
+ Templates (`<ng-template #name let-…>` inside the element):
31
+ - `#icon`: context { $implicit: boolean }. Custom icon template.
32
+ - `#content`: context { $implicit: boolean }. Custom content template.
33
+
34
+ Read a context with `let-`: `<ng-template #icon let-item>` (`$implicit` is the bare `let-x`).
35
+
36
+ ## Example: Basic
37
+
38
+ ```typescript
39
+ import { Component } from '@angular/core';
40
+ import { FormsModule } from '@angular/forms';
41
+ import { ToggleButtonModule } from '@exhaustive-ui/core/togglebutton';
42
+
43
+ @Component({
44
+ template: `
45
+ <div class="card flex justify-center">
46
+ <p-toggle-button [(ngModel)]="checked" onLabel="On" offLabel="Off" class="w-24" />
47
+ </div>
48
+ `,
49
+ standalone: true,
50
+ imports: [FormsModule, ToggleButtonModule]
51
+ })
52
+ export class TogglebuttonBasicDemo {
53
+ checked: boolean = false;
54
+ }
55
+ ```
56
+
57
+ Every component and directive also accepts `pt` (pass through attributes), `ptOptions`, `dt` (design tokens) and `unstyled`.
58
+
59
+ Full documentation (every input, pass through, styling, all examples): https://exhaustive-ui.com/llms/components/togglebutton.md
@@ -0,0 +1,52 @@
1
+ # ToggleSwitch
2
+
3
+ ToggleSwitch is used to select a boolean value.
4
+
5
+ ```typescript
6
+ import { ToggleSwitch } from '@exhaustive-ui/core/toggleswitch'; // standalone; or ToggleSwitchModule for all its parts
7
+ ```
8
+
9
+ ## `p-toggle-switch` (also `p-toggleswitch`, `p-toggleSwitch`, legacy): ToggleSwitch
10
+
11
+ Form control: use `[(ngModel)]`, `formControlName` or `[formControl]`.
12
+
13
+ Inputs:
14
+ - `ariaLabel`: `string | undefined`: Used to define a string that autocomplete attribute the current element.
15
+ - `disabled`: `boolean | undefined`: When present, it specifies that the component should have disabled state style.
16
+ - `invalid`: `boolean | undefined`: When present, it specifies that the component should have invalid state style.
17
+ - `name`: `string | undefined`: When present, it specifies that the name of the input.
18
+ - `required`: `boolean | undefined`: There must be a value (if set).
19
+ - Other inputs: `ariaLabelledBy`, `autofocus`, `falseValue`, `inputId`, `readonly`, `tabindex`, `trueValue`.
20
+
21
+ Outputs:
22
+ - `(onChange)`: `ToggleSwitchChangeEvent`
23
+
24
+ Templates (`<ng-template #name let-…>` inside the element):
25
+ - `#handle`: context { checked: boolean }. Custom handle template.
26
+
27
+ Read a context with `let-`: `<ng-template #handle let-checked="checked">` (`$implicit` is the bare `let-x`).
28
+
29
+ ## Example: Basic
30
+
31
+ ```typescript
32
+ import { Component } from '@angular/core';
33
+ import { FormsModule } from '@angular/forms';
34
+ import { ToggleSwitchModule } from '@exhaustive-ui/core/toggleswitch';
35
+
36
+ @Component({
37
+ template: `
38
+ <div class="card flex justify-center">
39
+ <p-toggle-switch [(ngModel)]="checked" ariaLabel="Notifications" />
40
+ </div>
41
+ `,
42
+ standalone: true,
43
+ imports: [FormsModule, ToggleSwitchModule]
44
+ })
45
+ export class ToggleswitchBasicDemo {
46
+ checked: boolean = false;
47
+ }
48
+ ```
49
+
50
+ Every component and directive also accepts `pt` (pass through attributes), `ptOptions`, `dt` (design tokens) and `unstyled`.
51
+
52
+ Full documentation (every input, pass through, styling, all examples): https://exhaustive-ui.com/llms/components/toggleswitch.md
@@ -0,0 +1,74 @@
1
+ # Toolbar
2
+
3
+ Toolbar is a grouping component for buttons and other content.
4
+
5
+ ```typescript
6
+ import { Toolbar } from '@exhaustive-ui/core/toolbar'; // standalone; or ToolbarModule for all its parts
7
+ ```
8
+
9
+ ## `p-toolbar`: Toolbar
10
+
11
+ - Inputs: `ariaLabelledBy`.
12
+
13
+ Templates (`<ng-template #name let-…>` inside the element):
14
+ - `#start`: no context. Custom start template.
15
+ - `#end`: no context. Custom end template.
16
+ - `#center`: no context. Custom center template.
17
+
18
+ ## Example: Basic
19
+
20
+ ```typescript
21
+ import { Component, OnInit } from '@angular/core';
22
+ import { MenuItem } from '@exhaustive-ui/core/api';
23
+ import { ToolbarModule } from '@exhaustive-ui/core/toolbar';
24
+ import { ButtonModule } from '@exhaustive-ui/core/button';
25
+ import { SplitButtonModule } from '@exhaustive-ui/core/splitbutton';
26
+ import { InputTextModule } from '@exhaustive-ui/core/inputtext';
27
+ import { IconFieldModule } from '@exhaustive-ui/core/iconfield';
28
+ import { InputIconModule } from '@exhaustive-ui/core/inputicon';
29
+
30
+ @Component({
31
+ template: `
32
+ <div class="card">
33
+ <p-toolbar>
34
+ <ng-template #start>
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
+ </ng-template>
39
+ <ng-template #center>
40
+ <p-icon-field iconPosition="left">
41
+ <p-input-icon class="pi pi-search" />
42
+ <input type="text" pInputText placeholder="Search" />
43
+ </p-icon-field>
44
+ </ng-template>
45
+ <ng-template #end>
46
+ <p-split-button label="Save" [model]="items" />
47
+ </ng-template>
48
+ </p-toolbar>
49
+ </div>
50
+ `,
51
+ standalone: true,
52
+ imports: [ToolbarModule, ButtonModule, SplitButtonModule, InputTextModule, IconFieldModule, InputIconModule]
53
+ })
54
+ export class ToolbarBasicDemo implements OnInit {
55
+ items: MenuItem[] | undefined;
56
+
57
+ ngOnInit() {
58
+ this.items = [
59
+ {
60
+ label: 'Update',
61
+ icon: 'pi pi-refresh'
62
+ },
63
+ {
64
+ label: 'Delete',
65
+ icon: 'pi pi-times'
66
+ }
67
+ ];
68
+ }
69
+ }
70
+ ```
71
+
72
+ Every component and directive also accepts `pt` (pass through attributes), `ptOptions`, `dt` (design tokens) and `unstyled`.
73
+
74
+ Full documentation (every input, pass through, styling, all examples): https://exhaustive-ui.com/llms/components/toolbar.md
@@ -0,0 +1,43 @@
1
+ # Tooltip
2
+
3
+ Tooltip directive provides advisory information for a component.
4
+
5
+ ```typescript
6
+ import { Tooltip } from '@exhaustive-ui/core/tooltip'; // standalone; or TooltipModule for all its parts
7
+ ```
8
+
9
+ ## `[pTooltip]`: Tooltip
10
+
11
+ Inputs:
12
+ - `autoHide`: `boolean` = `true`: Whether to hide tooltip when hovering over tooltip content.
13
+ - `hideDelay`: `number | undefined`: Delay to hide the tooltip in milliseconds.
14
+ - `pTooltip`: `string | TemplateRef<HTMLElement> | undefined`: Content of the tooltip.
15
+ - `showDelay`: `number | undefined`: Delay to show the tooltip in milliseconds.
16
+ - `tooltipEvent`: `"both" | "hover" | "focus"` = `'hover'`: Event to show the tooltip.
17
+ - `tooltipOptions`: `TooltipOptions | undefined`: Specifies the tooltip configuration options for the component.
18
+ - `tooltipPosition`: `string | undefined`: Position of the tooltip.
19
+ - Other inputs: `appendTo`, `escape`, `fitContent`, `hideOnEscape`, `life`, `positionLeft`, `positionStyle`, `positionTop`, `pTooltipPT`, `pTooltipUnstyled`, `showOnEllipsis`, `tooltipDisabled`, `tooltipStyleClass`, `tooltipZIndex`.
20
+
21
+ ## Example: Delay
22
+
23
+ ```typescript
24
+ import { Component } from '@angular/core';
25
+ import { ButtonModule } from '@exhaustive-ui/core/button';
26
+ import { TooltipModule } from '@exhaustive-ui/core/tooltip';
27
+
28
+ @Component({
29
+ template: `
30
+ <div class="card flex justify-center">
31
+ <p-button pTooltip="Confirm to proceed" showDelay="1000" hideDelay="300" label="Save" />
32
+ </div>
33
+ `,
34
+ standalone: true,
35
+ imports: [ButtonModule, TooltipModule]
36
+ })
37
+ export class TooltipDelayDemo {
38
+ }
39
+ ```
40
+
41
+ Every component and directive also accepts `pt` (pass through attributes), `ptOptions`, `dt` (design tokens) and `unstyled`.
42
+
43
+ Full documentation (every input, pass through, styling, all examples): https://exhaustive-ui.com/llms/components/tooltip.md