@exhaustive-ui/mcp 22.4.0 → 22.5.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 (115) hide show
  1. package/README.md +13 -1
  2. package/data/cards/accordion.md +88 -0
  3. package/data/cards/animateonscroll.md +152 -0
  4. package/data/cards/autocomplete.md +104 -0
  5. package/data/cards/autofocus.md +34 -0
  6. package/data/cards/avatar.md +43 -0
  7. package/data/cards/badge.md +43 -0
  8. package/data/cards/blockui.md +51 -0
  9. package/data/cards/breadcrumb.md +54 -0
  10. package/data/cards/button.md +77 -0
  11. package/data/cards/card.md +48 -0
  12. package/data/cards/carousel.md +99 -0
  13. package/data/cards/cascadeselect.md +81 -0
  14. package/data/cards/chart.md +103 -0
  15. package/data/cards/checkbox.md +58 -0
  16. package/data/cards/chip.md +49 -0
  17. package/data/cards/classnames.md +73 -0
  18. package/data/cards/colorpicker.md +51 -0
  19. package/data/cards/confirmdialog.md +89 -0
  20. package/data/cards/confirmpopup.md +74 -0
  21. package/data/cards/contextmenu.md +66 -0
  22. package/data/cards/dataview.md +115 -0
  23. package/data/cards/datepicker.md +102 -0
  24. package/data/cards/dialog.md +89 -0
  25. package/data/cards/divider.md +54 -0
  26. package/data/cards/dock.md +85 -0
  27. package/data/cards/dragdrop.md +102 -0
  28. package/data/cards/drawer.md +62 -0
  29. package/data/cards/dynamicdialog.md +76 -0
  30. package/data/cards/editor.md +55 -0
  31. package/data/cards/fieldset.md +53 -0
  32. package/data/cards/fileinput.md +72 -0
  33. package/data/cards/fileupload.md +89 -0
  34. package/data/cards/floatlabel.md +41 -0
  35. package/data/cards/fluid.md +47 -0
  36. package/data/cards/focustrap.md +60 -0
  37. package/data/cards/galleria.md +101 -0
  38. package/data/cards/iconfield.md +44 -0
  39. package/data/cards/iftalabel.md +38 -0
  40. package/data/cards/image.md +56 -0
  41. package/data/cards/imagecompare.md +44 -0
  42. package/data/cards/inplace.md +55 -0
  43. package/data/cards/inputgroup.md +66 -0
  44. package/data/cards/inputmask.md +71 -0
  45. package/data/cards/inputnumber.md +77 -0
  46. package/data/cards/inputotp.md +60 -0
  47. package/data/cards/inputtext.md +41 -0
  48. package/data/cards/keyfilter.md +48 -0
  49. package/data/cards/knob.md +54 -0
  50. package/data/cards/listbox.md +103 -0
  51. package/data/cards/megamenu.md +97 -0
  52. package/data/cards/menu.md +68 -0
  53. package/data/cards/menubar.md +106 -0
  54. package/data/cards/message.md +50 -0
  55. package/data/cards/metergroup.md +57 -0
  56. package/data/cards/multiselect.md +119 -0
  57. package/data/cards/orderlist.md +94 -0
  58. package/data/cards/organizationchart.md +57 -0
  59. package/data/cards/overlay.md +62 -0
  60. package/data/cards/paginator.md +61 -0
  61. package/data/cards/panel.md +56 -0
  62. package/data/cards/panelmenu.md +103 -0
  63. package/data/cards/password.md +78 -0
  64. package/data/cards/picklist.md +102 -0
  65. package/data/cards/popover.md +52 -0
  66. package/data/cards/progressbar.md +41 -0
  67. package/data/cards/progressspinner.md +37 -0
  68. package/data/cards/radiobutton.md +51 -0
  69. package/data/cards/rating.md +56 -0
  70. package/data/cards/ripple.md +36 -0
  71. package/data/cards/scroller.md +32 -0
  72. package/data/cards/scrollpanel.md +49 -0
  73. package/data/cards/scrolltop.md +46 -0
  74. package/data/cards/select.md +107 -0
  75. package/data/cards/selectbutton.md +60 -0
  76. package/data/cards/skeleton.md +53 -0
  77. package/data/cards/slider.md +51 -0
  78. package/data/cards/speeddial.md +99 -0
  79. package/data/cards/splitbutton.md +93 -0
  80. package/data/cards/splitter.md +51 -0
  81. package/data/cards/stepper.md +120 -0
  82. package/data/cards/styleclass.md +44 -0
  83. package/data/cards/table.md +270 -0
  84. package/data/cards/tabs.md +96 -0
  85. package/data/cards/tag.md +40 -0
  86. package/data/cards/terminal.md +67 -0
  87. package/data/cards/textarea.md +44 -0
  88. package/data/cards/tieredmenu.md +126 -0
  89. package/data/cards/timeline.md +58 -0
  90. package/data/cards/toast.md +59 -0
  91. package/data/cards/togglebutton.md +59 -0
  92. package/data/cards/toggleswitch.md +51 -0
  93. package/data/cards/toolbar.md +74 -0
  94. package/data/cards/tooltip.md +42 -0
  95. package/data/cards/tree.md +96 -0
  96. package/data/cards/treeselect.md +99 -0
  97. package/data/cards/treetable.md +210 -0
  98. package/data/components/checkbox.md +0 -24
  99. package/data/components/dock.md +2 -2
  100. package/data/components/galleria.md +7 -7
  101. package/data/components/inputnumber.md +2 -2
  102. package/data/components/llms.md +4 -0
  103. package/data/components/password.md +3 -3
  104. package/data/components/picklist.md +1 -1
  105. package/data/components/table.md +1 -1
  106. package/data/components.json +26 -22
  107. package/data/llms-full.txt +49 -42
  108. package/data/llms.txt +100 -96
  109. package/data/manifest.json +30 -1
  110. package/data/pages/llms.md +29 -0
  111. package/data/snapshot.json +2 -2
  112. package/dist/index.d.mts +35 -2
  113. package/dist/index.mjs +1393 -1077
  114. package/dist/index.mjs.map +1 -1
  115. package/package.json +1 -1
@@ -0,0 +1,126 @@
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
+ ### `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
+ ## Example: Basic
32
+
33
+ ```typescript
34
+ import { Component, OnInit } from '@angular/core';
35
+ import { TieredMenuModule } from '@exhaustive-ui/core/tieredmenu';
36
+ import { MenuItem } from '@exhaustive-ui/core/api';
37
+
38
+ @Component({
39
+ template: `
40
+ <div class="card flex justify-center">
41
+ <p-tiered-menu [model]="items" />
42
+ </div>
43
+ `,
44
+ standalone: true,
45
+ imports: [TieredMenuModule]
46
+ })
47
+ export class TieredmenuBasicDemo implements OnInit {
48
+ items: MenuItem[] | undefined;
49
+
50
+ ngOnInit() {
51
+ this.items = [
52
+ {
53
+ label: 'File',
54
+ icon: 'pi pi-file',
55
+ items: [
56
+ {
57
+ label: 'New',
58
+ icon: 'pi pi-plus',
59
+ items: [
60
+ {
61
+ label: 'Document',
62
+ icon: 'pi pi-file'
63
+ },
64
+ {
65
+ label: 'Image',
66
+ icon: 'pi pi-image'
67
+ },
68
+ {
69
+ label: 'Video',
70
+ icon: 'pi pi-video'
71
+ }
72
+ ]
73
+ },
74
+ {
75
+ label: 'Open',
76
+ icon: 'pi pi-folder-open'
77
+ },
78
+ {
79
+ label: 'Print',
80
+ icon: 'pi pi-print'
81
+ }
82
+ ]
83
+ },
84
+ {
85
+ label: 'Edit',
86
+ icon: 'pi pi-file-edit',
87
+ items: [
88
+ {
89
+ label: 'Copy',
90
+ icon: 'pi pi-copy'
91
+ },
92
+ {
93
+ label: 'Delete',
94
+ icon: 'pi pi-times'
95
+ }
96
+ ]
97
+ },
98
+ {
99
+ label: 'Search',
100
+ icon: 'pi pi-search'
101
+ },
102
+ {
103
+ separator: true
104
+ },
105
+ {
106
+ label: 'Share',
107
+ icon: 'pi pi-share-alt',
108
+ items: [
109
+ {
110
+ label: 'Slack',
111
+ icon: 'pi pi-slack'
112
+ },
113
+ {
114
+ label: 'Whatsapp',
115
+ icon: 'pi pi-whatsapp'
116
+ }
117
+ ]
118
+ }
119
+ ];
120
+ }
121
+ }
122
+ ```
123
+
124
+ Every component and directive also accepts `pt` (pass through attributes), `ptOptions`, `dt` (design tokens) and `unstyled`.
125
+
126
+ 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,59 @@
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
+ ### `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
+ ## Example: Basic
34
+
35
+ ```typescript
36
+ import { Component, inject } from '@angular/core';
37
+ import { ButtonModule } from '@exhaustive-ui/core/button';
38
+ import { ToastModule } from '@exhaustive-ui/core/toast';
39
+ import { MessageService } from '@exhaustive-ui/core/api';
40
+
41
+ @Component({
42
+ template: `
43
+ <div class="card flex justify-center">
44
+ <p-toast />
45
+ <p-button (onClick)="show()" label="Show" />
46
+ </div>
47
+ `,
48
+ standalone: true,
49
+ imports: [ButtonModule, ToastModule],
50
+ providers: [MessageService]
51
+ })
52
+ export class ToastBasicDemo {
53
+ private messageService = inject(MessageService);
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/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: [ToggleButtonModule, FormsModule]
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,51 @@
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
+ - `disabled`: `boolean | undefined`: When present, it specifies that the component should have disabled state style.
15
+ - `invalid`: `boolean | undefined`: When present, it specifies that the component should have invalid state style.
16
+ - `name`: `string | undefined`: When present, it specifies that the name of the input.
17
+ - `required`: `boolean | undefined`: There must be a value (if set).
18
+ - Other inputs: `ariaLabel`, `ariaLabelledBy`, `autofocus`, `falseValue`, `inputId`, `readonly`, `tabindex`, `trueValue`.
19
+
20
+ Outputs:
21
+ - `(onChange)`: `ToggleSwitchChangeEvent`
22
+
23
+ Templates (`<ng-template #name let-…>` inside the element):
24
+ - `#handle`: context { checked: boolean }. Custom handle template.
25
+
26
+ Read a context with `let-`: `<ng-template #handle let-checked="checked">` (`$implicit` is the bare `let-x`).
27
+
28
+ ## Example: Basic
29
+
30
+ ```typescript
31
+ import { Component } from '@angular/core';
32
+ import { FormsModule } from '@angular/forms';
33
+ import { ToggleSwitchModule } from '@exhaustive-ui/core/toggleswitch';
34
+
35
+ @Component({
36
+ template: `
37
+ <div class="card flex justify-center">
38
+ <p-toggle-switch [(ngModel)]="checked" />
39
+ </div>
40
+ `,
41
+ standalone: true,
42
+ imports: [ToggleSwitchModule, FormsModule]
43
+ })
44
+ export class ToggleswitchBasicDemo {
45
+ checked: boolean = false;
46
+ }
47
+ ```
48
+
49
+ Every component and directive also accepts `pt` (pass through attributes), `ptOptions`, `dt` (design tokens) and `unstyled`.
50
+
51
+ 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 { ButtonModule } from '@exhaustive-ui/core/button';
23
+ import { IconFieldModule } from '@exhaustive-ui/core/iconfield';
24
+ import { InputIconModule } from '@exhaustive-ui/core/inputicon';
25
+ import { SplitButtonModule } from '@exhaustive-ui/core/splitbutton';
26
+ import { ToolbarModule } from '@exhaustive-ui/core/toolbar';
27
+ import { InputTextModule } from '@exhaustive-ui/core/inputtext';
28
+ import { MenuItem } from '@exhaustive-ui/core/api';
29
+
30
+ @Component({
31
+ template: `
32
+ <div class="card">
33
+ <p-toolbar>
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" />
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: [ButtonModule, IconFieldModule, InputIconModule, SplitButtonModule, ToolbarModule, InputTextModule]
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,42 @@
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
+ Every component and directive also accepts `pt` (pass through attributes), `ptOptions`, `dt` (design tokens) and `unstyled`.
41
+
42
+ Full documentation (every input, pass through, styling, all examples): https://exhaustive-ui.com/llms/components/tooltip.md
@@ -0,0 +1,96 @@
1
+ # Tree
2
+
3
+ Tree is used to display hierarchical data.
4
+
5
+ ```typescript
6
+ import { Tree } from '@exhaustive-ui/core/tree'; // standalone; or TreeModule for all its parts
7
+ ```
8
+
9
+ ## `p-tree`: Tree
10
+
11
+ Inputs:
12
+ - `contextMenu`: `any`: Context menu instance.
13
+ - `contextMenuSelection`: `TreeNode<any> | null` (two-way: `[(${input.name})]`): Selected node with a context menu.
14
+ - `contextMenuSelectionMode`: `"separate" | "joint"` = `'joint'`: Defines the behavior of context menu selection, in "separate" mode context menu updates contextMenuSelection property whereas in joint mode selection property is used instead so that when row selection is enabled, both row selection and context menu selection use the same property.
15
+ - `filter`: `boolean | undefined`: When specified, displays an input field to filter the items.
16
+ - `filterMode`: `string` = `'lenient'`: Mode for filtering valid values are "lenient" and "strict".
17
+ - `filterPlaceholder`: `string | undefined`: Placeholder text to show when filter input is empty.
18
+ - `lazy`: `boolean` = `false`: Defines if data is loaded and interacted with in lazy manner.
19
+ - `loading`: `boolean | undefined`: Displays a loader to indicate data load is in progress.
20
+ - `loadingMode`: `"icon" | "mask"` = `'mask'`: Loading mode display.
21
+ - `metaKeySelection`: `boolean` = `false`: Defines how multiple items can be selected, when true metaKey needs to be pressed to select or unselect an item and when set to false selection of each item can be toggled individually.
22
+ - `scrollHeight`: `string | undefined`: Height of the scrollable viewport.
23
+ - `selection`: `TreeNode<any> | TreeNode<any>[] | null | undefined` (two-way: `[(${input.name})]`): A single treenode instance or an array to refer to the selections.
24
+ - `selectionMode`: `"single" | "multiple" | "checkbox" | null | undefined`: Defines the selection mode.
25
+ - `value`: `any` (two-way: `[(${input.name})]`): An array of treenodes.
26
+ - `virtualScroll`: `boolean | undefined`: Whether the data should be loaded on demand during scroll.
27
+ - `virtualScrollItemSize`: `number | undefined`: Height of an item in the list for VirtualScrolling.
28
+ - Other inputs: `_templateMap`, `ariaLabel`, `ariaLabelledBy`, `draggableNodes`, `draggableScope`, `droppableNodes`, `droppableScope`, `emptyMessage`, `filterBy`, `filteredNodes`, `filterInputAutoFocus`, `filterLocale`, `filterOptions`, `highlightOnSelect`, `indentation`, `loadingIcon`, `propagateSelectionDown`, `propagateSelectionUp`, `togglerAriaLabel`, `trackBy`, `validateDrop`, `virtualScrollOptions`.
29
+
30
+ Outputs:
31
+ - `(contextMenuSelectionChange)`: `TreeNode<any> | null`
32
+ - `(filteredNodesChange)`: `TreeNode<any>[] | null | undefined`
33
+ - `(onFilter)`: `TreeFilterEvent`
34
+ - `(onLazyLoad)`: `TreeLazyLoadEvent`
35
+ - `(onNodeCollapse)`: `TreeNodeCollapseEvent`
36
+ - `(onNodeContextMenuSelect)`: `TreeNodeContextMenuSelectEvent`
37
+ - `(onNodeDoubleClick)`: `TreeNodeDoubleClickEvent`
38
+ - `(onNodeDrop)`: `TreeNodeDropEvent`
39
+ - `(onNodeExpand)`: `TreeNodeExpandEvent`
40
+ - `(onNodeSelect)`: `TreeNodeSelectEvent`
41
+ - `(onNodeUnselect)`: `TreeNodeUnSelectEvent`
42
+ - `(onScroll)`: `TreeScrollEvent`
43
+ - `(onScrollIndexChange)`: `TreeScrollIndexChangeEvent`
44
+ - `(selectionChange)`: `TreeNode<any> | TreeNode<any>[] | null | undefined`
45
+ - `(valueChange)`: `any`
46
+
47
+ Templates (`<ng-template #name let-…>` inside the element):
48
+ - `#filter`: context { $implicit: { filter: (value: string) => void; reset: () => void; } }. Custom filter template.
49
+ - `#header`: no context. Custom header template.
50
+ - `#footer`: no context. Custom footer template.
51
+ - `#loader`: context { options: ScrollerOptions }. Custom loader template.
52
+ - `#empty`: no context. Custom empty message template.
53
+ - `#togglericon`: context { $implicit: boolean, loading: boolean }. Custom toggler icon template.
54
+ - `#checkboxicon`: context { $implicit: boolean, partialSelected: boolean, class: string }. Custom checkbox icon template.
55
+ - `#loadingicon`: no context. Custom loading icon template.
56
+ - `#filtericon`: no context. Custom filter icon template.
57
+
58
+ Read a context with `let-`: `<ng-template #filter let-item>` (`$implicit` is the bare `let-x`).
59
+
60
+ ### `p-tree-node` (also `p-treeNode`, legacy): UITreeNode
61
+
62
+ - Inputs: `indentation`, `index`, `itemSize`, `level`, `loadingMode`, `node`, `parentNode`.
63
+
64
+ ## Example: Basic
65
+
66
+ ```typescript
67
+ import { Component, OnInit, inject, signal } from '@angular/core';
68
+ import { TreeModule } from '@exhaustive-ui/core/tree';
69
+ import { NodeService } from '@/service/nodeservice';
70
+ import { TreeNode } from '@exhaustive-ui/core/api';
71
+
72
+ @Component({
73
+ template: `
74
+ <div class="card">
75
+ <p-tree [value]="files()" class="w-full md:w-120" />
76
+ </div>
77
+ `,
78
+ standalone: true,
79
+ imports: [TreeModule],
80
+ providers: [NodeService]
81
+ })
82
+ export class TreeBasicDemo implements OnInit {
83
+ private nodeService = inject(NodeService);
84
+ files = signal<TreeNode[]>(undefined);
85
+
86
+ ngOnInit() {
87
+ this.nodeService.getFiles().then((data) => {
88
+ this.files.set(data);
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/tree.md
@@ -0,0 +1,99 @@
1
+ # TreeSelect
2
+
3
+ TreeSelect is a form component to choose from hierarchical data.
4
+
5
+ ```typescript
6
+ import { TreeSelect } from '@exhaustive-ui/core/treeselect'; // standalone; or TreeSelectModule for all its parts
7
+ ```
8
+
9
+ ## `p-tree-select` (also `p-treeSelect`, `p-treeselect`, legacy): TreeSelect
10
+
11
+ Form control: use `[(ngModel)]`, `formControlName` or `[formControl]`.
12
+
13
+ Inputs:
14
+ - `disabled`: `boolean | undefined`: When present, it specifies that the component should have disabled state style.
15
+ - `display`: `"chip" | "comma"` = `'comma'`: Defines how the selected items are displayed.
16
+ - `filter`: `boolean` = `false`: When specified, displays an input field to filter the items.
17
+ - `filterInputAutoFocus`: `boolean` = `true`: Determines whether the filter input should be automatically focused when the component is rendered.
18
+ - `fluid`: `boolean | undefined`: Spans 100% width of the container when enabled.
19
+ - `inputId`: `string | undefined`: Identifier of the underlying input element.
20
+ - `invalid`: `boolean | undefined`: When present, it specifies that the component should have invalid state style.
21
+ - `loading`: `boolean | undefined`: Displays a loader to indicate data load is in progress.
22
+ - `loadingMode`: `"icon" | "mask"` = `'mask'`: Loading mode display.
23
+ - `metaKeySelection`: `boolean` = `false`: Defines how multiple items can be selected, when true metaKey needs to be pressed to select or unselect an item and when set to false selection of each item can be toggled individually.
24
+ - `name`: `string | undefined`: When present, it specifies that the name of the input.
25
+ - `options`: `TreeNode<any>[] | undefined`: An array of treenodes.
26
+ - `placeholder`: `string | undefined`: Label to display when there are no selections.
27
+ - `required`: `boolean | undefined`: There must be a value (if set).
28
+ - `selectionMode`: `"single" | "multiple" | "checkbox"` = `'single'`: Defines the selection mode.
29
+ - `showClear`: `boolean` = `false`: When enabled, a clear icon is displayed to clear the value.
30
+ - `size`: `"large" | "small" | undefined`: Specifies the size of the component.
31
+ - `variant`: `"filled" | "outlined" | undefined`: Specifies the input variant of the component.
32
+ - `virtualScroll`: `boolean | undefined`: Whether the data should be loaded on demand during scroll.
33
+ - `virtualScrollItemSize`: `number | undefined`: Height of an item in the list for VirtualScrolling.
34
+ - `virtualScrollOptions`: `ScrollerOptions | undefined`: Whether to use the scroller feature.
35
+ - Other inputs: `appendTo`, `ariaLabel`, `ariaLabelledBy`, `autofocus`, `emptyMessage`, `filterBy`, `filterLocale`, `filterMode`, `filterPlaceholder`, `labelStyle`, `labelStyleClass`, `motionOptions`, `overlayOptions`, `panelClass`, `panelStyle`, `panelStyleClass`, `propagateSelectionDown`, `propagateSelectionUp`, `resetFilterOnHide`, `scrollHeight`, `tabindex`, `togglerAriaLabel`.
36
+
37
+ Outputs:
38
+ - `(onBlur)`: `Event`
39
+ - `(onClear)`: `any`
40
+ - `(onFilter)`: `TreeFilterEvent`
41
+ - `(onFocus)`: `Event`
42
+ - `(onHide)`: `Event`
43
+ - `(onNodeCollapse)`: `TreeSelectNodeCollapseEvent`
44
+ - `(onNodeExpand)`: `TreeSelectNodeExpandEvent`
45
+ - `(onNodeSelect)`: `TreeNodeSelectEvent`
46
+ - `(onNodeUnselect)`: `TreeNodeUnSelectEvent`
47
+ - `(onShow)`: `any`
48
+
49
+ Templates (`<ng-template #name let-…>` inside the element):
50
+ - `#value`: context { $implicit: any, placeholder: string | undefined }. Custom value template.
51
+ - `#header`: context { $implicit: any, options: TreeNode<any>[] | undefined }. Custom header template.
52
+ - `#empty`: no context. Custom empty message template.
53
+ - `#footer`: context { $implicit: any, options: TreeNode<any>[] | undefined }. Custom footer template.
54
+ - `#clearicon`: no context. Custom clear icon template.
55
+ - `#triggericon`: no context. Custom trigger icon template.
56
+ - `#dropdownicon`: no context. Custom dropdown icon template.
57
+ - `#filtericon`: no context. Custom filter icon template.
58
+ - `#itemtogglericon`: context { $implicit: boolean }. Custom item toggler icon template.
59
+ - `#itemcheckboxicon`: context { $implicit: boolean, partialSelected: boolean }. Custom item checkbox icon template.
60
+ - `#itemloadingicon`: no context. Custom item loading icon template.
61
+
62
+ Read a context with `let-`: `<ng-template #value let-item let-placeholder="placeholder">` (`$implicit` is the bare `let-x`).
63
+
64
+ ## Example: Basic
65
+
66
+ ```typescript
67
+ import { Component, OnInit, inject } from '@angular/core';
68
+ import { FormsModule } from '@angular/forms';
69
+ import { TreeSelectModule } from '@exhaustive-ui/core/treeselect';
70
+ import { NodeService } from '@/service/nodeservice';
71
+ import { TreeNode } from '@exhaustive-ui/core/api';
72
+
73
+ @Component({
74
+ template: `
75
+ <div class="card flex justify-center">
76
+ <p-tree-select class="md:w-80 w-full" [(ngModel)]="selectedNodes" [options]="nodes" placeholder="Select Item" />
77
+ </div>
78
+ `,
79
+ standalone: true,
80
+ imports: [TreeSelectModule, FormsModule],
81
+ providers: [NodeService]
82
+ })
83
+ export class TreeselectBasicDemo implements OnInit {
84
+ private nodeService = inject(NodeService);
85
+ nodes!: any[];
86
+ selectedNodes: any;
87
+
88
+ constructor() {
89
+ this.nodeService.getFiles().then((files) => (this.nodes = files));
90
+ }
91
+
92
+ ngOnInit() {
93
+ }
94
+ }
95
+ ```
96
+
97
+ Every component and directive also accepts `pt` (pass through attributes), `ptOptions`, `dt` (design tokens) and `unstyled`.
98
+
99
+ Full documentation (every input, pass through, styling, all examples): https://exhaustive-ui.com/llms/components/treeselect.md