@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,119 @@
1
+ # ConfirmDialog
2
+
3
+ ConfirmDialog uses a Dialog UI that is integrated with the Confirmation API.
4
+
5
+ ```typescript
6
+ import { ConfirmDialog } from '@exhaustive-ui/core/confirmdialog'; // standalone; or ConfirmDialogModule for all its parts
7
+ ```
8
+
9
+ ## `p-confirm-dialog` (also `p-confirmDialog`, `p-confirmdialog`, legacy): ConfirmDialog
10
+
11
+ Inputs:
12
+ - `icon`: `string | undefined`: Icon to display next to message.
13
+ - `key`: `string | undefined`: Optional key to match the key of confirm object, necessary to use when component tree has multiple confirm dialogs.
14
+ - `position`: `"center" | "top" | "bottom" | "left" | "right" | "topleft" | "topright" | "bottomleft" | "bottomright"` = `'center'`: Allows getting the position of the component.
15
+ - `styleClass`: `string | undefined`: Class of the element.
16
+ - Other inputs: `acceptButtonStyleClass`, `acceptIcon`, `acceptLabel`, `acceptVisible`, `appendTo`, `autoZIndex`, `baseZIndex`, `blockScroll`, `breakpoints`, `closable`, `closeOnEscape`, `dismissableMask`, `draggable`, `header`, `maskStyleClass`, `message`, `modal`, `rejectButtonStyleClass`, `rejectIcon`, `rejectLabel`, `rejectVisible`, `style`, `visible`.
17
+
18
+ Outputs:
19
+ - `(onHide)`: `ConfirmEventType | undefined`
20
+ - `(visibleChange)`: `boolean | undefined`
21
+
22
+ Templates (`<ng-template #name let-…>` inside the element):
23
+ - `#header`: context { ariaLabelledBy: string | null | undefined }. Custom header template.
24
+ - `#footer`: no context. Custom footer template.
25
+ - `#rejecticon`: no context. Custom reject icon template.
26
+ - `#accepticon`: no context. Custom accept icon template.
27
+ - `#message`: context { $implicit: Confirmation | null | undefined }. Custom message template.
28
+ - `#icon`: no context. Custom icon template.
29
+ - `#headless`: context { $implicit: Confirmation | null | undefined, onAccept: () => void, onReject: () => void }. Custom headless template.
30
+
31
+ Read a context with `let-`: `<ng-template #header let-ariaLabelledBy="ariaLabelledBy">` (`$implicit` is the bare `let-x`).
32
+
33
+ ## Example: Basic
34
+
35
+ ```typescript
36
+ import { Component, inject } from '@angular/core';
37
+ import { ConfirmationService, MessageService } from '@exhaustive-ui/core/api';
38
+ import { ConfirmDialogModule } from '@exhaustive-ui/core/confirmdialog';
39
+ import { ToastModule } from '@exhaustive-ui/core/toast';
40
+ import { ButtonModule } from '@exhaustive-ui/core/button';
41
+
42
+ @Component({
43
+ template: `
44
+ <div class="card flex justify-center gap-2">
45
+ <p-toast />
46
+ <p-confirm-dialog />
47
+ <p-button (click)="confirm1($event)" label="Save" [outlined]="true" />
48
+ <p-button (click)="confirm2($event)" label="Delete" severity="danger" [outlined]="true" />
49
+ </div>
50
+ `,
51
+ standalone: true,
52
+ imports: [ConfirmDialogModule, ToastModule, ButtonModule],
53
+ providers: [ConfirmationService, MessageService]
54
+ })
55
+ export class ConfirmdialogBasicDemo {
56
+ private confirmationService = inject(ConfirmationService);
57
+ private messageService = inject(MessageService);
58
+
59
+ confirm1(event: Event) {
60
+ this.confirmationService.confirm({
61
+ target: event.target as EventTarget,
62
+ message: 'Are you sure that you want to proceed?',
63
+ header: 'Confirmation',
64
+ closable: true,
65
+ closeOnEscape: true,
66
+ icon: 'pi pi-exclamation-triangle',
67
+ rejectButtonProps: {
68
+ label: 'Cancel',
69
+ severity: 'secondary',
70
+ outlined: true
71
+ },
72
+ acceptButtonProps: {
73
+ label: 'Save'
74
+ },
75
+ accept: () => {
76
+ this.messageService.add({ severity: 'info', summary: 'Confirmed', detail: 'You have accepted' });
77
+ },
78
+ reject: () => {
79
+ this.messageService.add({
80
+ severity: 'error',
81
+ summary: 'Rejected',
82
+ detail: 'You have rejected',
83
+ life: 3000
84
+ });
85
+ }
86
+ });
87
+ }
88
+
89
+ confirm2(event: Event) {
90
+ this.confirmationService.confirm({
91
+ target: event.target as EventTarget,
92
+ message: 'Do you want to delete this record?',
93
+ header: 'Danger Zone',
94
+ icon: 'pi pi-info-circle',
95
+ rejectLabel: 'Cancel',
96
+ rejectButtonProps: {
97
+ label: 'Cancel',
98
+ severity: 'secondary',
99
+ outlined: true
100
+ },
101
+ acceptButtonProps: {
102
+ label: 'Delete',
103
+ severity: 'danger'
104
+ },
105
+
106
+ accept: () => {
107
+ this.messageService.add({ severity: 'info', summary: 'Confirmed', detail: 'Record deleted' });
108
+ },
109
+ reject: () => {
110
+ this.messageService.add({ severity: 'error', summary: 'Rejected', detail: 'You have rejected' });
111
+ }
112
+ });
113
+ }
114
+ }
115
+ ```
116
+
117
+ Every component and directive also accepts `pt` (pass through attributes), `ptOptions`, `dt` (design tokens) and `unstyled`.
118
+
119
+ Full documentation (every input, pass through, styling, all examples): https://exhaustive-ui.com/llms/components/confirmdialog.md
@@ -0,0 +1,96 @@
1
+ # ConfirmPopup
2
+
3
+ ConfirmPopup displays a confirmation overlay displayed relatively to its target.
4
+
5
+ ```typescript
6
+ import { ConfirmPopup } from '@exhaustive-ui/core/confirmpopup'; // standalone; or ConfirmPopupModule for all its parts
7
+ ```
8
+
9
+ ## `p-confirm-popup` (also `p-confirmpopup`, legacy): ConfirmPopup
10
+
11
+ - Inputs: `appendTo`, `autoZIndex`, `defaultFocus`, `key`, `motionOptions`, `style`, `styleClass`, `visible`.
12
+
13
+ Templates (`<ng-template #name let-…>` inside the element):
14
+ - `#content`: context { $implicit: Confirmation | null | undefined }. Custom content template.
15
+ - `#accepticon`: no context. Custom accept icon template.
16
+ - `#rejecticon`: no context. Custom reject icon template.
17
+ - `#headless`: context { $implicit: Confirmation | null | undefined }. Custom headless template.
18
+
19
+ Read a context with `let-`: `<ng-template #content let-item>` (`$implicit` is the bare `let-x`).
20
+
21
+ ## Example: Basic
22
+
23
+ ```typescript
24
+ import { Component, inject } from '@angular/core';
25
+ import { ConfirmationService, MessageService } from '@exhaustive-ui/core/api';
26
+ import { ConfirmPopupModule } from '@exhaustive-ui/core/confirmpopup';
27
+ import { ToastModule } from '@exhaustive-ui/core/toast';
28
+ import { ButtonModule } from '@exhaustive-ui/core/button';
29
+
30
+ @Component({
31
+ template: `
32
+ <div class="card flex justify-center gap-2">
33
+ <p-toast />
34
+ <p-confirm-popup />
35
+ <p-button (onClick)="confirm1($event)" label="Save" [outlined]="true" />
36
+ <p-button (onClick)="confirm2($event)" label="Delete" severity="danger" [outlined]="true" />
37
+ </div>
38
+ `,
39
+ standalone: true,
40
+ imports: [ConfirmPopupModule, ToastModule, ButtonModule],
41
+ providers: [ConfirmationService, MessageService]
42
+ })
43
+ export class ConfirmpopupBasicDemo {
44
+ private confirmationService = inject(ConfirmationService);
45
+ private messageService = inject(MessageService);
46
+
47
+ confirm1(event: Event) {
48
+ this.confirmationService.confirm({
49
+ target: event.currentTarget as EventTarget,
50
+ message: 'Are you sure you want to proceed?',
51
+ icon: 'pi pi-exclamation-triangle',
52
+ rejectButtonProps: {
53
+ label: 'Cancel',
54
+ severity: 'secondary',
55
+ outlined: true
56
+ },
57
+ acceptButtonProps: {
58
+ label: 'Save'
59
+ },
60
+ accept: () => {
61
+ this.messageService.add({ severity: 'info', summary: 'Confirmed', detail: 'You have accepted', life: 3000 });
62
+ },
63
+ reject: () => {
64
+ this.messageService.add({ severity: 'error', summary: 'Rejected', detail: 'You have rejected', life: 3000 });
65
+ }
66
+ });
67
+ }
68
+
69
+ confirm2(event: Event) {
70
+ this.confirmationService.confirm({
71
+ target: event.currentTarget as EventTarget,
72
+ message: 'Do you want to delete this record?',
73
+ icon: 'pi pi-info-circle',
74
+ rejectButtonProps: {
75
+ label: 'Cancel',
76
+ severity: 'secondary',
77
+ outlined: true
78
+ },
79
+ acceptButtonProps: {
80
+ label: 'Delete',
81
+ severity: 'danger'
82
+ },
83
+ accept: () => {
84
+ this.messageService.add({ severity: 'info', summary: 'Confirmed', detail: 'Record deleted', life: 3000 });
85
+ },
86
+ reject: () => {
87
+ this.messageService.add({ severity: 'error', summary: 'Rejected', detail: 'You have rejected', life: 3000 });
88
+ }
89
+ });
90
+ }
91
+ }
92
+ ```
93
+
94
+ Every component and directive also accepts `pt` (pass through attributes), `ptOptions`, `dt` (design tokens) and `unstyled`.
95
+
96
+ Full documentation (every input, pass through, styling, all examples): https://exhaustive-ui.com/llms/components/confirmpopup.md
@@ -0,0 +1,60 @@
1
+ # ContextMenu
2
+
3
+ ContextMenu displays an overlay menu on right click of its target.
4
+
5
+ ```typescript
6
+ import { ContextMenu } from '@exhaustive-ui/core/contextmenu'; // standalone; or ContextMenuModule for all its parts
7
+ ```
8
+
9
+ ## `p-context-menu` (also `p-contextMenu`, `p-contextmenu`, legacy): ContextMenu
10
+
11
+ Inputs:
12
+ - `global`: `boolean | undefined`: Attaches the menu to document instead of a particular item.
13
+ - `id`: `string | undefined`: Current id state as a string.
14
+ - `model`: `MenuItem[] | undefined`: An array of menuitems.
15
+ - `style`: `{ [klass: string]: any; } | null | undefined`: Inline style of the component.
16
+ - `target`: `string | HTMLElement | null | undefined`: Local template variable name of the element to attach the context menu.
17
+ - Other inputs: `appendTo`, `ariaLabel`, `ariaLabelledBy`, `autoZIndex`, `baseZIndex`, `breakpoint`, `motionOptions`, `pressDelay`, `styleClass`, `triggerEvent`.
18
+
19
+ Outputs:
20
+ - `(onHide)`: `void`
21
+ - `(onShow)`: `void`
22
+
23
+ Templates (`<ng-template #name let-…>` inside the element):
24
+ - `#item`: context { $implicit: MenuItem }. Custom item template.
25
+ - `#submenuicon`: context { class: string }. Custom submenu icon template.
26
+
27
+ Read a context with `let-`: `<ng-template #item let-item>` (`$implicit` is the bare `let-x`).
28
+
29
+ ## Example: Basic
30
+
31
+ ```typescript
32
+ import { Component, OnInit } from '@angular/core';
33
+ import { MenuItem } from '@exhaustive-ui/core/api';
34
+ import { ContextMenuModule } from '@exhaustive-ui/core/contextmenu';
35
+
36
+ @Component({
37
+ template: `
38
+ <div class="card flex justify-center">
39
+ <img #img src="https://exhaustive-ui.com/demo/nature/nature2.jpg" alt="Logo" aria-haspopup="true" class="w-full md:w-120 rounded-sm shadow-lg" />
40
+ <p-context-menu [target]="img" [model]="items" />
41
+ </div>
42
+ `,
43
+ standalone: true,
44
+ imports: [ContextMenuModule]
45
+ })
46
+ export class ContextmenuBasicDemo implements OnInit {
47
+ items: MenuItem[] | undefined;
48
+
49
+ ngOnInit() {
50
+ this.items = [
51
+ { label: 'Copy', icon: 'pi pi-copy' },
52
+ { label: 'Rename', icon: 'pi pi-file-edit' }
53
+ ];
54
+ }
55
+ }
56
+ ```
57
+
58
+ Every component and directive also accepts `pt` (pass through attributes), `ptOptions`, `dt` (design tokens) and `unstyled`.
59
+
60
+ Full documentation (every input, pass through, styling, all examples): https://exhaustive-ui.com/llms/components/contextmenu.md
@@ -0,0 +1,134 @@
1
+ # DataView
2
+
3
+ DataView displays data in grid or list layout with pagination and sorting features.
4
+
5
+ ```typescript
6
+ import { DataView } from '@exhaustive-ui/core/dataview'; // standalone; or DataViewModule for all its parts
7
+ ```
8
+
9
+ ## `p-data-view` (also `p-dataView`, `p-dataview`, legacy): DataView
10
+
11
+ Inputs:
12
+ - `first`: `number | undefined` = `0`: Index of the first row to be displayed.
13
+ - `layout`: `"list" | "grid"` = `'list'`: Defines the layout mode.
14
+ - `paginator`: `boolean | undefined`: When specified as true, enables the pagination.
15
+ - `rows`: `number | undefined`: Number of rows to display per page.
16
+ - `sortField`: `string | undefined`: Property name of data to use in sorting by default.
17
+ - `sortOrder`: `number | undefined`: Order to sort the data by default.
18
+ - `value`: `any[] | undefined`: An array of objects to display.
19
+ - Other inputs: `alwaysShowPaginator`, `currentPageReportTemplate`, `emptyMessage`, `filterBy`, `filterLocale`, `lazy`, `lazyLoadOnInit`, `loading`, `loadingIcon`, `pageLinks`, `paginatorDropdownAppendTo`, `paginatorDropdownScrollHeight`, `paginatorPosition`, `paginatorStyleClass`, `rowsPerPageOptions`, `showCurrentPageReport`, `showFirstLastIcon`, `showJumpToPageDropdown`, `showPageLinks`, `totalRecords`.
20
+
21
+ Outputs:
22
+ - `(onChangeLayout)`: `DataViewLayoutChangeEvent`
23
+ - `(onLazyLoad)`: `DataViewLazyLoadEvent`
24
+ - `(onPage)`: `DataViewPageEvent`
25
+ - `(onSort)`: `DataViewSortEvent`
26
+
27
+ Templates (`<ng-template #name let-…>` inside the element):
28
+ - `#list`: context { $implicit: T[] }. Template for the list layout.
29
+ - `#grid`: context { $implicit: T[] }. Template for grid layout.
30
+ - `#header`: no context. Template for the header section.
31
+ - `#emptymessage`: no context. Template for the empty message section.
32
+ - `#footer`: no context. Template for the footer section.
33
+ - `#paginatorleft`: context { $implicit: DataViewPaginatorState }. Template for the left side of paginator.
34
+ - `#paginatorright`: context { $implicit: DataViewPaginatorState }. Template for the right side of paginator.
35
+ - `#paginatordropdownitem`: context { $implicit: SelectItem<any> }. Template for items in paginator dropdown.
36
+ - `#loadingicon`: no context. Template for loading icon.
37
+
38
+ Read a context with `let-`: `<ng-template #list let-item>` (`$implicit` is the bare `let-x`).
39
+
40
+ Types used in the contexts:
41
+ - `DataViewPaginatorState`: { page?: number | undefined, first?: number | undefined, rows?: number | undefined, pageCount?: number | undefined, totalRecords?: number | undefined }
42
+ - `SelectItem`: { label?: string | undefined, value: T, styleClass?: string | undefined, icon?: string | undefined, title?: string | undefined, disabled?: boolean | undefined }
43
+
44
+ ## Example: Basic
45
+
46
+ ```typescript
47
+ import { CommonModule } from '@angular/common';
48
+ import { Component, inject, signal } from '@angular/core';
49
+ import { ButtonModule } from '@exhaustive-ui/core/button';
50
+ import { DataViewModule } from '@exhaustive-ui/core/dataview';
51
+ import { TagModule } from '@exhaustive-ui/core/tag';
52
+ import { Product } from '@/domain/product';
53
+ import { ProductService } from '@/service/productservice';
54
+
55
+ @Component({
56
+ template: `
57
+ <div class="card">
58
+ <p-data-view #dv [value]="products()">
59
+ <ng-template #list let-items>
60
+ <div class="grid grid-cols-12 gap-4 grid-nogutter">
61
+ <div class="col-span-12" *ngFor="let item of items; let first = first">
62
+ <div class="flex flex-col sm:flex-row sm:items-center p-6 gap-4" [ngClass]="{ 'border-t border-surface-200 dark:border-surface-700': !first }">
63
+ <div class="md:w-40 relative">
64
+ <img class="block xl:block mx-auto rounded-border w-full" [src]="'https://exhaustive-ui.com/demo/product/' + item.image" [alt]="item.name" />
65
+ <p-tag [value]="item.inventoryStatus" [severity]="getSeverity(item)" class="absolute dark:bg-surface-900!" [style.left.px]="4" [style.top.px]="4" />
66
+ </div>
67
+ <div class="flex flex-col md:flex-row justify-between md:items-center flex-1 gap-6">
68
+ <div class="flex flex-row md:flex-col justify-between items-start gap-2">
69
+ <div>
70
+ <span class="font-medium text-secondary text-sm">{{ item.category }}</span>
71
+ <div class="text-lg font-medium text-surface-900 dark:text-surface-0 mt-2">{{ item.name }}</div>
72
+ </div>
73
+ <div class="bg-surface-100 dark:bg-surface-700 p-1" style="border-radius: 30px">
74
+ <div
75
+ class="bg-surface-0 dark:bg-surface-900 flex items-center gap-2 justify-center py-1 px-2"
76
+ style="border-radius: 30px; box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.04), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)"
77
+ >
78
+ <span class="text-surface-900 dark:text-surface-0 font-medium text-sm">{{ item.rating }}</span>
79
+ <i class="pi pi-star-fill text-yellow-500"></i>
80
+ </div>
81
+ </div>
82
+ </div>
83
+ <div class="flex flex-col md:items-end gap-8">
84
+ <span class="text-xl font-semibold text-surface-900 dark:text-surface-0">{{ '$' + item.price }}</span>
85
+ <div class="flex flex-row-reverse md:flex-row gap-2">
86
+ <p-button icon="pi pi-heart" ariaLabel="Add to favorites" [outlined]="true" />
87
+ <p-button icon="pi pi-shopping-cart" class="flex-auto md:flex-initial whitespace-nowrap" label="Buy Now" [disabled]="item.inventoryStatus === 'OUTOFSTOCK'" />
88
+ </div>
89
+ </div>
90
+ </div>
91
+ </div>
92
+ </div>
93
+ </div>
94
+ </ng-template>
95
+ </p-data-view>
96
+ </div>
97
+ `,
98
+ standalone: true,
99
+ imports: [CommonModule, DataViewModule, ButtonModule, TagModule],
100
+ providers: [ProductService]
101
+ })
102
+ export class DataviewBasicDemo {
103
+ products = signal<any>([]);
104
+
105
+ productService = inject(ProductService);
106
+
107
+ getSeverity(product: Product) {
108
+ switch (product.inventoryStatus) {
109
+ case 'INSTOCK':
110
+ return 'success';
111
+
112
+ case 'LOWSTOCK':
113
+ return 'warn';
114
+
115
+ case 'OUTOFSTOCK':
116
+ return 'danger';
117
+
118
+ default:
119
+ return null;
120
+ }
121
+ }
122
+
123
+ ngOnInit() {
124
+ this.productService.getProducts().then((data) => {
125
+ const d = data.slice(0, 5);
126
+ this.products.set([...d]);
127
+ });
128
+ }
129
+ }
130
+ ```
131
+
132
+ Every component and directive also accepts `pt` (pass through attributes), `ptOptions`, `dt` (design tokens) and `unstyled`.
133
+
134
+ Full documentation (every input, pass through, styling, all examples): https://exhaustive-ui.com/llms/components/dataview.md
@@ -0,0 +1,103 @@
1
+ # DatePicker
2
+
3
+ DatePicker is a form component to work with dates.
4
+
5
+ ```typescript
6
+ import { DatePicker } from '@exhaustive-ui/core/datepicker'; // standalone; or DatePickerModule for all its parts
7
+ ```
8
+
9
+ ## `p-date-picker` (also `p-datePicker`, `p-datepicker`, legacy): DatePicker
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
+ - `dateFormat`: `string | undefined`: Format of the date which can also be defined at locale settings.
16
+ - `disabled`: `boolean | undefined`: When present, it specifies that the component should have disabled state style.
17
+ - `fluid`: `boolean | undefined`: Spans 100% width of the container when enabled.
18
+ - `hourFormat`: `string | number` = `'24'`: Specifies 12 or 24 hour format.
19
+ - `icon`: `string | undefined`: Icon of the datepicker button.
20
+ - `iconDisplay`: `"input" | "button"` = `'button'`:
21
+ - `inline`: `boolean` = `false`: When enabled, displays the datepicker as inline.
22
+ - `inputId`: `string | undefined`: Identifier of the focus input to match a label defined for the component.
23
+ - `inputStyleClass`: `string | undefined`: Style class of the input field.
24
+ - `invalid`: `boolean | undefined`: When present, it specifies that the component should have invalid state style.
25
+ - `maxDate`: `Date | null | undefined`: The maximum selectable date.
26
+ - `minDate`: `Date | null | undefined`: The minimum selectable date.
27
+ - `name`: `string | undefined`: When present, it specifies that the name of the input.
28
+ - `numberOfMonths`: `number` = `1`: Number of months to display.
29
+ - `placeholder`: `string | undefined`: Placeholder text for the input.
30
+ - `readonlyInput`: `boolean | undefined`: When specified, prevents entering the date manually with keyboard.
31
+ - `required`: `boolean | undefined`: There must be a value (if set).
32
+ - `selectionMode`: `"single" | "multiple" | "range" | undefined` = `'single'`: Defines the quantity of the selection, valid values are "single", "multiple" and "range".
33
+ - `showButtonBar`: `boolean | undefined`: Whether to display today and clear buttons at the…
34
+ - `showClear`: `boolean` = `false`: When enabled, a clear icon is displayed to clear the value.
35
+ - `showIcon`: `boolean | undefined`: When enabled, displays a button with icon next to input.
36
+ - `showOnFocus`: `boolean` = `true`: When disabled, datepicker will not be visible with input focus.
37
+ - `showTime`: `boolean | undefined`: Whether to display timepicker.
38
+ - `showWeek`: `boolean` = `false`: When enabled, datepicker will show week numbers.
39
+ - `size`: `"large" | "small" | undefined`: Specifies the size of the component.
40
+ - `timeOnly`: `boolean | undefined`: Whether to display timepicker only.
41
+ - `touchUI`: `boolean | undefined`: When enabled, datepicker overlay is displayed as optimized for touch devices.
42
+ - `variant`: `"filled" | "outlined" | undefined` = `'outlined'`: Specifies the input variant of the component.
43
+ - `view`: `DatePickerTypeView` = `'date'`: Type of view to display, valid values are "date" for datepicker and "month" for month picker.
44
+ - Other inputs: `appendTo`, `ariaDescribedBy`, `ariaLabelledBy`, `autofocus`, `autoZIndex`, `baseZIndex`, `clearButtonStyleClass`, `dataType`, `defaultDate`, `disabledDates`, `disabledDays`, `firstDayOfWeek`, `focusTrap`, `hideOnDateTimeSelect`, `iconAriaLabel`, `inputSize`, `inputStyle`, `keepInvalid`, `max`, `maxDateCount`, `maxlength`, `min`, `minlength`, `motionOptions`, `multipleSeparator`, `panelStyle`, `panelStyleClass`, `pattern`, `rangeSeparator`, `responsiveOptions`, `selectOtherMonths`, `shortYearCutoff`, `showOtherMonths`, `showSeconds`, `startWeekFromFirstDayOfYear`, `step`, `stepHour`, `stepMinute`, `stepSecond`, `tabindex`, `timeSeparator`, `todayButtonStyleClass`.
45
+
46
+ Outputs:
47
+ - `(onBlur)`: `Event`
48
+ - `(onClear)`: `any`
49
+ - `(onClearClick)`: `any`
50
+ - `(onClickOutside)`: `any`
51
+ - `(onClose)`: `HTMLElement`
52
+ - `(onFocus)`: `Event`
53
+ - `(onInput)`: `any`
54
+ - `(onMonthChange)`: `DatePickerMonthChangeEvent`
55
+ - `(onSelect)`: `Date`
56
+ - `(onShow)`: `HTMLElement`
57
+ - `(onTodayClick)`: `Date`
58
+ - `(onYearChange)`: `DatePickerYearChangeEvent`
59
+
60
+ Templates (`<ng-template #name let-…>` inside the element):
61
+ - `#date`: context { $implicit: DatePickerDateMeta }. Custom template for date cells.
62
+ - `#header`: no context. Custom template for header section.
63
+ - `#footer`: no context. Custom template for footer section.
64
+ - `#disabledDate`: context { $implicit: DatePickerDateMeta }. Custom template for disabled date cells.
65
+ - `#decade`: context { $implicit: () => number[] }. Custom template for decade view.
66
+ - `#previousicon`: no context. Custom template for previous month icon.
67
+ - `#nexticon`: no context. Custom template for next month icon.
68
+ - `#triggericon`: no context. Custom template for trigger icon.
69
+ - `#clearicon`: no context. Custom template for clear icon.
70
+ - `#decrementicon`: no context. Custom template for decrement icon.
71
+ - `#incrementicon`: no context. Custom template for increment icon.
72
+ - `#inputicon`: context { clickCallBack: (event: Event) => void }. Custom template for input icon.
73
+ - `#buttonbar`: context { todayCallback: (event: Event) => void, clearCallback: (event: Event) => void }. Custom template for button bar.
74
+
75
+ Read a context with `let-`: `<ng-template #date let-item>` (`$implicit` is the bare `let-x`).
76
+
77
+ Types used in the contexts:
78
+ - `DatePickerDateMeta`: { day: number, month: number, year: number, otherMonth?: boolean | undefined, today?: boolean | undefined, selectable?: boolean | undefined }
79
+
80
+ ## Example: Basic
81
+
82
+ ```typescript
83
+ import { Component } from '@angular/core';
84
+ import { FormsModule } from '@angular/forms';
85
+ import { DatePickerModule } from '@exhaustive-ui/core/datepicker';
86
+
87
+ @Component({
88
+ template: `
89
+ <div class="card flex justify-center">
90
+ <p-date-picker [(ngModel)]="date" ariaLabel="Date" />
91
+ </div>
92
+ `,
93
+ standalone: true,
94
+ imports: [FormsModule, DatePickerModule]
95
+ })
96
+ export class DatepickerBasicDemo {
97
+ date: Date | undefined;
98
+ }
99
+ ```
100
+
101
+ Every component and directive also accepts `pt` (pass through attributes), `ptOptions`, `dt` (design tokens) and `unstyled`.
102
+
103
+ Full documentation (every input, pass through, styling, all examples): https://exhaustive-ui.com/llms/components/datepicker.md
@@ -0,0 +1,89 @@
1
+ # Dialog
2
+
3
+ Dialog is a container to display content in an overlay window.
4
+
5
+ ```typescript
6
+ import { Dialog } from '@exhaustive-ui/core/dialog'; // standalone; or DialogModule for all its parts
7
+ ```
8
+
9
+ ## `p-dialog`: Dialog
10
+
11
+ Inputs:
12
+ - `appendTo`: `any`: 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.
13
+ - `breakpoints`: `{ [maxWidth: string]: string; } | undefined`: Object literal to define widths per screen size.
14
+ - `draggable`: `boolean` = `true`: Enables dragging to change the position using header.
15
+ - `header`: `string | undefined`: Title text of the dialog.
16
+ - `maskStyleClass`: `string | undefined`: Style class of the mask.
17
+ - `maximizable`: `boolean` = `false`: Whether the dialog can be displayed full screen.
18
+ - `modal`: `boolean` = `false`: Defines if background should be blocked when dialog is displayed.
19
+ - `position`: `"center" | "top" | "bottom" | "left" | "right" | "topleft" | "topright" | "bottomleft" | "bottomright" | undefined`: Position of the dialog.
20
+ - `resizable`: `boolean` = `true`: Enables resizing of the content.
21
+ - `style`: `{ [key: string]: any; } | null | undefined`: Inline style of the component.
22
+ - `styleClass`: `string | undefined`: Style class of the component.
23
+ - `visible`: `boolean` = `false` (two-way: `[(${input.name})]`): Specifies the visibility of the dialog.
24
+ - Other inputs: `ariaLabelledBy`, `autoZIndex`, `baseZIndex`, `blockScroll`, `closable`, `closeAriaLabel`, `closeButtonProps`, `closeIcon`, `closeIconTemplate`, `closeOnEscape`, `closeTabindex`, `contentStyle`, `contentStyleClass`, `contentTemplate`, `dismissableMask`, `focusOnShow`, `focusTrap`, `footerTemplate`, `headerTemplate`, `headlessTemplate`, `hostName`, `keepInViewport`, `maskMotionOptions`, `maskStyle`, `maximizeButtonProps`, `maximizeIcon`, `maximizeIconTemplate`, `minimizeIcon`, `minimizeIconTemplate`, `minX`, `minY`, `motionOptions`, `role`, `showHeader`.
25
+
26
+ Outputs:
27
+ - `(onDragEnd)`: `DragEvent`
28
+ - `(onHide)`: `any`
29
+ - `(onMaximize)`: `any`
30
+ - `(onResizeEnd)`: `MouseEvent`
31
+ - `(onResizeInit)`: `MouseEvent`
32
+ - `(onShow)`: `any`
33
+ - `(visibleChange)`: `boolean`
34
+
35
+ Templates (`<ng-template #name let-…>` inside the element):
36
+ - `#header`: context { ariaLabelledBy: string | null | undefined }. Custom header template.
37
+ - `#content`: no context. Custom content template.
38
+ - `#footer`: no context. Custom footer template.
39
+ - `#closeicon`: no context. Custom close icon template.
40
+ - `#maximizeicon`: no context. Custom maximize icon template.
41
+ - `#minimizeicon`: no context. Custom minimize icon template.
42
+ - `#headless`: no context. Custom headless template.
43
+
44
+ Read a context with `let-`: `<ng-template #header let-ariaLabelledBy="ariaLabelledBy">` (`$implicit` is the bare `let-x`).
45
+
46
+ ## Example: Basic
47
+
48
+ ```typescript
49
+ import { Component } from '@angular/core';
50
+ import { ButtonModule } from '@exhaustive-ui/core/button';
51
+ import { DialogModule } from '@exhaustive-ui/core/dialog';
52
+ import { InputTextModule } from '@exhaustive-ui/core/inputtext';
53
+
54
+ @Component({
55
+ template: `
56
+ <div class="card flex justify-center">
57
+ <p-button (click)="showDialog()" label="Show" />
58
+ <p-dialog header="Edit Profile" [modal]="true" [(visible)]="visible" [style]="{ width: '25rem' }">
59
+ <span class="p-text-secondary block mb-8">Update your information.</span>
60
+ <div class="flex items-center gap-4 mb-4">
61
+ <label for="username" class="font-semibold w-24">Username</label>
62
+ <input pInputText id="username" class="flex-auto" autocomplete="off" />
63
+ </div>
64
+ <div class="flex items-center gap-4 mb-8">
65
+ <label for="email" class="font-semibold w-24">Email</label>
66
+ <input pInputText id="email" class="flex-auto" autocomplete="off" />
67
+ </div>
68
+ <div class="flex justify-end gap-2">
69
+ <p-button label="Cancel" severity="secondary" (click)="visible = false" />
70
+ <p-button label="Save" (click)="visible = false" />
71
+ </div>
72
+ </p-dialog>
73
+ </div>
74
+ `,
75
+ standalone: true,
76
+ imports: [DialogModule, ButtonModule, InputTextModule]
77
+ })
78
+ export class DialogBasicDemo {
79
+ visible: boolean = false;
80
+
81
+ showDialog() {
82
+ this.visible = true;
83
+ }
84
+ }
85
+ ```
86
+
87
+ Every component and directive also accepts `pt` (pass through attributes), `ptOptions`, `dt` (design tokens) and `unstyled`.
88
+
89
+ Full documentation (every input, pass through, styling, all examples): https://exhaustive-ui.com/llms/components/dialog.md
@@ -0,0 +1,55 @@
1
+ # Divider
2
+
3
+ Divider is used to separate contents.
4
+
5
+ ```typescript
6
+ import { Divider } from '@exhaustive-ui/core/divider'; // standalone; or DividerModule for all its parts
7
+ ```
8
+
9
+ ## `p-divider`: Divider
10
+
11
+ Inputs:
12
+ - `align`: `"center" | "top" | "bottom" | "left" | "right" | undefined`: Alignment of the content.
13
+ - `layout`: `"vertical" | "horizontal" | undefined` = `'horizontal'`: Specifies the orientation.
14
+ - `type`: `"solid" | "dashed" | "dotted" | undefined` = `'solid'`: Border style type.
15
+
16
+ ## Example: Basic
17
+
18
+ ```typescript
19
+ import { Component } from '@angular/core';
20
+ import { DividerModule } from '@exhaustive-ui/core/divider';
21
+
22
+ @Component({
23
+ template: `
24
+ <div class="card">
25
+ <p>
26
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
27
+ Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
28
+ </p>
29
+ <p-divider />
30
+ <p>
31
+ Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam
32
+ voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Consectetur, adipisci velit, sed quia non numquam eius modi.
33
+ </p>
34
+ <p-divider />
35
+ <p>
36
+ At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui
37
+ officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus.
38
+ </p>
39
+ <p-divider />
40
+ <p>
41
+ Temporibus autem quibusdam et aut officiis debitis aut rerum necessitatibus saepe eveniet ut et voluptates repudiandae sint et molestiae non recusandae. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis
42
+ voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat. Donec vel volutpat ipsum. Integer nunc magna, posuere ut tincidunt eget, egestas vitae sapien. Morbi dapibus luctus odio.
43
+ </p>
44
+ </div>
45
+ `,
46
+ standalone: true,
47
+ imports: [DividerModule]
48
+ })
49
+ export class DividerBasicDemo {
50
+ }
51
+ ```
52
+
53
+ Every component and directive also accepts `pt` (pass through attributes), `ptOptions`, `dt` (design tokens) and `unstyled`.
54
+
55
+ Full documentation (every input, pass through, styling, all examples): https://exhaustive-ui.com/llms/components/divider.md