@exhaustive-ui/mcp 22.3.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.
- package/README.md +13 -1
- package/data/cards/accordion.md +88 -0
- package/data/cards/animateonscroll.md +152 -0
- package/data/cards/autocomplete.md +104 -0
- package/data/cards/autofocus.md +34 -0
- package/data/cards/avatar.md +43 -0
- package/data/cards/badge.md +43 -0
- package/data/cards/blockui.md +51 -0
- package/data/cards/breadcrumb.md +54 -0
- package/data/cards/button.md +77 -0
- package/data/cards/card.md +48 -0
- package/data/cards/carousel.md +99 -0
- package/data/cards/cascadeselect.md +81 -0
- package/data/cards/chart.md +103 -0
- package/data/cards/checkbox.md +58 -0
- package/data/cards/chip.md +49 -0
- package/data/cards/classnames.md +73 -0
- package/data/cards/colorpicker.md +51 -0
- package/data/cards/confirmdialog.md +89 -0
- package/data/cards/confirmpopup.md +74 -0
- package/data/cards/contextmenu.md +66 -0
- package/data/cards/dataview.md +115 -0
- package/data/cards/datepicker.md +102 -0
- package/data/cards/dialog.md +89 -0
- package/data/cards/divider.md +54 -0
- package/data/cards/dock.md +85 -0
- package/data/cards/dragdrop.md +102 -0
- package/data/cards/drawer.md +62 -0
- package/data/cards/dynamicdialog.md +76 -0
- package/data/cards/editor.md +55 -0
- package/data/cards/fieldset.md +53 -0
- package/data/cards/fileinput.md +72 -0
- package/data/cards/fileupload.md +89 -0
- package/data/cards/floatlabel.md +41 -0
- package/data/cards/fluid.md +47 -0
- package/data/cards/focustrap.md +60 -0
- package/data/cards/galleria.md +101 -0
- package/data/cards/iconfield.md +44 -0
- package/data/cards/iftalabel.md +38 -0
- package/data/cards/image.md +56 -0
- package/data/cards/imagecompare.md +44 -0
- package/data/cards/inplace.md +55 -0
- package/data/cards/inputgroup.md +66 -0
- package/data/cards/inputmask.md +71 -0
- package/data/cards/inputnumber.md +77 -0
- package/data/cards/inputotp.md +60 -0
- package/data/cards/inputtext.md +41 -0
- package/data/cards/keyfilter.md +48 -0
- package/data/cards/knob.md +54 -0
- package/data/cards/listbox.md +103 -0
- package/data/cards/megamenu.md +97 -0
- package/data/cards/menu.md +68 -0
- package/data/cards/menubar.md +106 -0
- package/data/cards/message.md +50 -0
- package/data/cards/metergroup.md +57 -0
- package/data/cards/multiselect.md +119 -0
- package/data/cards/orderlist.md +94 -0
- package/data/cards/organizationchart.md +57 -0
- package/data/cards/overlay.md +62 -0
- package/data/cards/paginator.md +61 -0
- package/data/cards/panel.md +56 -0
- package/data/cards/panelmenu.md +103 -0
- package/data/cards/password.md +78 -0
- package/data/cards/picklist.md +102 -0
- package/data/cards/popover.md +52 -0
- package/data/cards/progressbar.md +41 -0
- package/data/cards/progressspinner.md +37 -0
- package/data/cards/radiobutton.md +51 -0
- package/data/cards/rating.md +56 -0
- package/data/cards/ripple.md +36 -0
- package/data/cards/scroller.md +32 -0
- package/data/cards/scrollpanel.md +49 -0
- package/data/cards/scrolltop.md +46 -0
- package/data/cards/select.md +107 -0
- package/data/cards/selectbutton.md +60 -0
- package/data/cards/skeleton.md +53 -0
- package/data/cards/slider.md +51 -0
- package/data/cards/speeddial.md +99 -0
- package/data/cards/splitbutton.md +93 -0
- package/data/cards/splitter.md +51 -0
- package/data/cards/stepper.md +120 -0
- package/data/cards/styleclass.md +44 -0
- package/data/cards/table.md +270 -0
- package/data/cards/tabs.md +96 -0
- package/data/cards/tag.md +40 -0
- package/data/cards/terminal.md +67 -0
- package/data/cards/textarea.md +44 -0
- package/data/cards/tieredmenu.md +126 -0
- package/data/cards/timeline.md +58 -0
- package/data/cards/toast.md +59 -0
- package/data/cards/togglebutton.md +59 -0
- package/data/cards/toggleswitch.md +51 -0
- package/data/cards/toolbar.md +74 -0
- package/data/cards/tooltip.md +42 -0
- package/data/cards/tree.md +96 -0
- package/data/cards/treeselect.md +99 -0
- package/data/cards/treetable.md +210 -0
- package/data/components/blockui.md +1 -1
- package/data/components/checkbox.md +0 -24
- package/data/components/confirmdialog.md +1 -1
- package/data/components/dialog.md +2 -2
- package/data/components/dock.md +2 -2
- package/data/components/editor.md +1 -1
- package/data/components/fileupload.md +1 -1
- package/data/components/galleria.md +7 -7
- package/data/components/inputnumber.md +2 -2
- package/data/components/llms.md +4 -0
- package/data/components/password.md +3 -3
- package/data/components/picklist.md +1 -1
- package/data/components/table.md +3 -3
- package/data/components.json +34 -30
- package/data/llms-full.txt +57 -50
- package/data/llms.txt +100 -96
- package/data/manifest.json +196 -24
- package/data/pages/llms.md +29 -0
- package/data/snapshot.json +2 -2
- package/dist/index.d.mts +35 -2
- package/dist/index.mjs +1393 -1077
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,210 @@
|
|
|
1
|
+
# TreeTable
|
|
2
|
+
|
|
3
|
+
TreeTable is used to display hierarchical data in tabular format.
|
|
4
|
+
|
|
5
|
+
```typescript
|
|
6
|
+
import { TreeTable } from '@exhaustive-ui/core/treetable'; // standalone; or TreeTableModule for all its parts
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
## `p-tree-table` (also `p-treeTable`, `p-treetable`, legacy): TreeTable
|
|
10
|
+
|
|
11
|
+
Inputs:
|
|
12
|
+
- `columnResizeMode`: `string` = `'fit'`: Defines whether the overall table width should change on column resize, valid values are "fit" and "expand".
|
|
13
|
+
- `columns`: `any[] | undefined`: An array of objects to represent dynamic columns.
|
|
14
|
+
- `contextMenu`: `any`: Local ng-template varilable of a ContextMenu.
|
|
15
|
+
- `contextMenuSelection`: `any` (two-way: `[(${input.name})]`): Selected row with a context menu, supports one or two-way binding.
|
|
16
|
+
- `customSort`: `boolean | undefined`: Whether to use the default sorting or a custom one using sortFunction.
|
|
17
|
+
- `dataKey`: `string | undefined`: A property to uniquely identify a record in data.
|
|
18
|
+
- `filterMode`: `string` = `'lenient'`: Mode for filtering valid values are "lenient" and "strict".
|
|
19
|
+
- `frozenColumns`: `{ [klass: string]: any; } | null | undefined`: An array of objects to represent dynamic columns that are frozen.
|
|
20
|
+
- `frozenWidth`: `string | undefined`: Width of the frozen columns container.
|
|
21
|
+
- `lazy`: `boolean` = `false`: Defines if data is loaded and interacted with in lazy manner.
|
|
22
|
+
- `loading`: `boolean | undefined`: Displays a loader to indicate data load is in progress.
|
|
23
|
+
- `metaKeySelection`: `boolean | undefined` = `false`: Defines whether metaKey is should be considered for the selection.
|
|
24
|
+
- `paginator`: `boolean | undefined`: When specified as true, enables the pagination.
|
|
25
|
+
- `reorderableColumns`: `boolean | undefined`: When enabled, columns can be reordered using drag and drop.
|
|
26
|
+
- `resizableColumns`: `boolean | undefined`: When enabled, columns can be resized using drag and drop.
|
|
27
|
+
- `rows`: `number | undefined` (two-way: `[(${input.name})]`): Number of rows to display per page, supports one or two-way binding.
|
|
28
|
+
- `rowsPerPageOptions`: `any[] | undefined`: Array of integer/object values to display inside rows per page dropdown of…
|
|
29
|
+
- `scrollable`: `boolean | undefined`: When specified, enables horizontal and/or vertical scrolling.
|
|
30
|
+
- `scrollHeight`: `string | undefined`: Height of the scroll viewport in fixed pixels or the "flex" keyword for a dynamic size.
|
|
31
|
+
- `selection`: `any` (two-way: `[(${input.name})]`): Selected row in single mode or an array of values in multiple mode, supports one or two-way binding.
|
|
32
|
+
- `selectionKeys`: `any` (two-way: `[(${input.name})]`): A map of keys to control the selection state.
|
|
33
|
+
- `selectionMode`: `string | undefined`: Specifies the selection mode, valid values are "single" and "multiple".
|
|
34
|
+
- `showGridlines`: `boolean` = `false`: Whether to show grid lines between cells.
|
|
35
|
+
- `sortMode`: `"single" | "multiple"` = `'single'`: Defines whether sorting works on single column or on multiple columns.
|
|
36
|
+
- `tableStyle`: `{ [klass: string]: any; } | null | undefined`: Inline style of the table.
|
|
37
|
+
- `totalRecords`: `number` = `0`: Number of total records, defaults to length of value when not defined.
|
|
38
|
+
- `value`: `TreeNode<any>[] | undefined` = `[]`: An array of objects to display.
|
|
39
|
+
- Other inputs: `alwaysShowPaginator`, `autoLayout`, `compareSelectionBy`, `contextMenuSelectionMode`, `currentPageReportTemplate`, `defaultSortOrder`, `filterDelay`, `filterLocale`, `filters`, `first`, `globalFilterFields`, `lazyLoadOnInit`, `loadingIcon`, `multiSortMeta`, `pageLinks`, `paginatorDropdownAppendTo`, `paginatorLocale`, `paginatorPosition`, `paginatorStyleClass`, `resetPageOnSort`, `rowHover`, `rowTrackBy`, `showCurrentPageReport`, `showFirstLastIcon`, `showJumpToPageDropdown`, `showLoader`, `showPageLinks`, `sortField`, `sortOrder`, `tableStyleClass`, `virtualScroll`, `virtualScrollDelay`, `virtualScrollItemSize`, `virtualScrollOptions`.
|
|
40
|
+
|
|
41
|
+
Outputs:
|
|
42
|
+
- `(contextMenuSelectionChange)`: `any`
|
|
43
|
+
- `(firstChange)`: `number`
|
|
44
|
+
- `(onColReorder)`: `TreeTableColumnReorderEvent`
|
|
45
|
+
- `(onColResize)`: `TreeTableColResizeEvent`
|
|
46
|
+
- `(onContextMenuSelect)`: `TreeTableContextMenuSelectEvent`
|
|
47
|
+
- `(onEditCancel)`: `TreeTableEditEvent`
|
|
48
|
+
- `(onEditComplete)`: `TreeTableEditEvent`
|
|
49
|
+
- `(onEditInit)`: `TreeTableEditEvent`
|
|
50
|
+
- `(onFilter)`: `TreeTableFilterEvent`
|
|
51
|
+
- `(onHeaderCheckboxToggle)`: `TreeTableHeaderCheckboxToggleEvent`
|
|
52
|
+
- `(onLazyLoad)`: `TreeTableLazyLoadEvent`
|
|
53
|
+
- `(onNodeCollapse)`: `TreeTableNodeCollapseEvent<any>`
|
|
54
|
+
- `(onNodeExpand)`: `TreeTableNodeExpandEvent<any>`
|
|
55
|
+
- `(onNodeSelect)`: `TreeTableNode<any>`
|
|
56
|
+
- `(onNodeUnselect)`: `TreeTableNodeUnSelectEvent`
|
|
57
|
+
- `(onPage)`: `TreeTablePaginatorState`
|
|
58
|
+
- `(onSort)`: `any`
|
|
59
|
+
- `(rowsChange)`: `number | undefined`
|
|
60
|
+
- `(selectionChange)`: `any`
|
|
61
|
+
- `(selectionKeysChange)`: `any`
|
|
62
|
+
- `(sortFunction)`: `TreeTableSortEvent`
|
|
63
|
+
|
|
64
|
+
Templates (`<ng-template #name let-…>` inside the element):
|
|
65
|
+
- `#colgroup`: context { $implicit: any[] }. Custom colgroup element.
|
|
66
|
+
- `#caption`: no context. Custom caption, rendered above the table.
|
|
67
|
+
- `#header`: context { $implicit: any[] }. Custom header rows, rendered in the thead.
|
|
68
|
+
- `#body`: context { $implicit: TreeTableRowNode<any>, node: TreeNode<any>, rowData: any, columns: any[] }. Custom row, rendered for each visible node.
|
|
69
|
+
- `#footer`: context { $implicit: any[] }. Custom footer rows, rendered in the tfoot.
|
|
70
|
+
- `#summary`: no context. Custom summary, rendered below the table.
|
|
71
|
+
- `#emptymessage`: context { $implicit: any[], frozen: boolean }. Custom content when there is no data.
|
|
72
|
+
- `#paginatorleft`: context { $implicit: PaginatorState }. Custom content on the left of the paginator.
|
|
73
|
+
- `#paginatorright`: context { $implicit: PaginatorState }. Custom content on the right of the paginator.
|
|
74
|
+
- `#paginatordropdownitem`: context { $implicit: SelectItem<any> }. Custom item of the rows per page dropdown of the paginator.
|
|
75
|
+
- `#frozenheader`: context { $implicit: any[] }. Custom header rows of the frozen columns.
|
|
76
|
+
- `#frozenbody`: context { $implicit: TreeTableRowNode<any>, node: TreeNode<any>, rowData: any, columns: any[] }. Custom row of the frozen columns.
|
|
77
|
+
- `#frozenfooter`: context { $implicit: any[] }. Custom footer rows of the frozen columns.
|
|
78
|
+
- `#frozencolgroup`: context { $implicit: any[] }. Custom colgroup element of the frozen columns.
|
|
79
|
+
- `#loadingicon`: no context. Custom loading icon.
|
|
80
|
+
- `#reorderindicatorupicon`: no context. Custom icon of the upper column reorder indicator.
|
|
81
|
+
- `#reorderindicatordownicon`: no context. Custom icon of the lower column reorder indicator.
|
|
82
|
+
- `#sorticon`: context { $implicit: number }. Custom sort icon of a sortable column.
|
|
83
|
+
- `#checkboxicon`: context { $implicit: boolean, partialSelected: boolean }. Custom icon of the node checkboxes.
|
|
84
|
+
- `#headercheckboxicon`: context { $implicit: boolean }. Custom icon of the header checkbox.
|
|
85
|
+
- `#togglericon`: context { $implicit: boolean }. Custom icon of the node toggler.
|
|
86
|
+
- `#paginatorfirstpagelinkicon`: no context. Custom icon of the first page button of the paginator.
|
|
87
|
+
- `#paginatorlastpagelinkicon`: no context. Custom icon of the last page button of the paginator.
|
|
88
|
+
- `#paginatorpreviouspagelinkicon`: no context. Custom icon of the previous page button of the paginator.
|
|
89
|
+
- `#paginatornextpagelinkicon`: no context. Custom icon of the next page button of the paginator.
|
|
90
|
+
- `#loader`: context { options: ScrollerLoaderOptions }. Custom row of a node being loaded with lazy virtual scrolling.
|
|
91
|
+
|
|
92
|
+
Read a context with `let-`: `<ng-template #colgroup let-item>` (`$implicit` is the bare `let-x`).
|
|
93
|
+
|
|
94
|
+
### `[pTreeTableBody]`: TTBody
|
|
95
|
+
|
|
96
|
+
- Inputs: `frozen`, `pTreeTableBody`, `pTreeTableBodyTemplate`, `scrollerOptions`, `serializedNodes`.
|
|
97
|
+
|
|
98
|
+
### `p-tree-table-checkbox` (also `p-treeTableCheckbox`, `p-treetable-checkbox`, legacy): TTCheckbox
|
|
99
|
+
|
|
100
|
+
- Inputs: `ariaLabel`, `ariaLabelledBy`, `disabled`, `value`.
|
|
101
|
+
|
|
102
|
+
### `[ttContextMenuRow]`: TTContextMenuRow
|
|
103
|
+
|
|
104
|
+
- Inputs: `ttContextMenuRow`, `ttContextMenuRowDisabled`.
|
|
105
|
+
|
|
106
|
+
### `[ttEditableColumn]`: TTEditableColumn
|
|
107
|
+
|
|
108
|
+
- Inputs: `ttEditableColumn`, `ttEditableColumnDisabled`, `ttEditableColumnField`.
|
|
109
|
+
|
|
110
|
+
### `p-tree-table-header-checkbox` (also `p-treeTableHeaderCheckbox`, legacy): TTHeaderCheckbox
|
|
111
|
+
|
|
112
|
+
- Inputs: `ariaLabel`, `ariaLabelledBy`.
|
|
113
|
+
|
|
114
|
+
### `[ttReorderableColumn]`: TTReorderableColumn
|
|
115
|
+
|
|
116
|
+
- Inputs: `ttReorderableColumnDisabled`.
|
|
117
|
+
|
|
118
|
+
### `[ttResizableColumn]`: TTResizableColumn
|
|
119
|
+
|
|
120
|
+
- Inputs: `ttResizableColumnDisabled`.
|
|
121
|
+
|
|
122
|
+
### `[ttRow]`: TTRow
|
|
123
|
+
|
|
124
|
+
- Inputs: `ttRow`.
|
|
125
|
+
|
|
126
|
+
### `[ttScrollableView]`: TTScrollableView
|
|
127
|
+
|
|
128
|
+
- Inputs: `frozen`, `scrollHeight`, `ttScrollableView`.
|
|
129
|
+
|
|
130
|
+
### `[ttSelectableRow]`: TTSelectableRow
|
|
131
|
+
|
|
132
|
+
- Inputs: `ttSelectableRow`, `ttSelectableRowDisabled`.
|
|
133
|
+
|
|
134
|
+
### `[ttSelectableRowDblClick]`: TTSelectableRowDblClick
|
|
135
|
+
|
|
136
|
+
- Inputs: `ttSelectableRowDblClick`, `ttSelectableRowDisabled`.
|
|
137
|
+
|
|
138
|
+
### `p-tree-table-sort-icon` (also `p-treeTableSortIcon`, `p-treetable-sort-icon`, legacy): TTSortIcon
|
|
139
|
+
|
|
140
|
+
- Inputs: `field`.
|
|
141
|
+
|
|
142
|
+
### `[ttSortableColumn]`: TTSortableColumn
|
|
143
|
+
|
|
144
|
+
- Inputs: `ttSortableColumn`, `ttSortableColumnDisabled`.
|
|
145
|
+
|
|
146
|
+
### `p-tree-table-cell-editor` (also `p-treeTableCellEditor`, `p-treetablecelleditor`, `p-treetable-cell-editor`, legacy): TreeTableCellEditor
|
|
147
|
+
|
|
148
|
+
Templates (`<ng-template #name let-…>` inside the element):
|
|
149
|
+
- `#input`: no context.
|
|
150
|
+
- `#output`: no context.
|
|
151
|
+
|
|
152
|
+
### `p-tree-table-toggler` (also `p-treeTableToggler`, `p-treetabletoggler`, `p-treetable-toggler`, legacy): TreeTableToggler
|
|
153
|
+
|
|
154
|
+
- Inputs: `rowNode`.
|
|
155
|
+
|
|
156
|
+
Types used in the contexts:
|
|
157
|
+
- `TreeTableRowNode`: { node: TreeNode<T>, parent: TreeNode<T> | null | undefined, level: number, visible: boolean }
|
|
158
|
+
- `PaginatorState`: { page?: number | undefined, first?: number | undefined, rows?: number | undefined, pageCount?: number | undefined, totalRecords?: number | undefined }
|
|
159
|
+
- `SelectItem`: { label?: string | undefined, value: T, styleClass?: string | undefined, icon?: string | undefined, title?: string | undefined, disabled?: boolean | undefined }
|
|
160
|
+
- `ScrollerLoaderOptions`: { index?: number | undefined, count?: number | undefined, first?: boolean | undefined, last?: boolean | undefined, even?: boolean | undefined, odd?: boolean | undefined }
|
|
161
|
+
|
|
162
|
+
## Example: Basic
|
|
163
|
+
|
|
164
|
+
```typescript
|
|
165
|
+
import { Component, OnInit, inject } from '@angular/core';
|
|
166
|
+
import { TreeTableModule } from '@exhaustive-ui/core/treetable';
|
|
167
|
+
import { NodeService } from '@/service/nodeservice';
|
|
168
|
+
import { TreeNode } from '@exhaustive-ui/core/api';
|
|
169
|
+
|
|
170
|
+
@Component({
|
|
171
|
+
template: `
|
|
172
|
+
<p-tree-table [value]="files" [scrollable]="true" [tableStyle]="{ 'min-width': '50rem' }">
|
|
173
|
+
<ng-template #header>
|
|
174
|
+
<tr>
|
|
175
|
+
<th>Name</th>
|
|
176
|
+
<th>Size</th>
|
|
177
|
+
<th>Type</th>
|
|
178
|
+
</tr>
|
|
179
|
+
</ng-template>
|
|
180
|
+
<ng-template #body let-rowNode let-rowData="rowData">
|
|
181
|
+
<tr [ttRow]="rowNode">
|
|
182
|
+
<td>
|
|
183
|
+
<div class="flex items-center gap-2">
|
|
184
|
+
<p-tree-table-toggler [rowNode]="rowNode" />
|
|
185
|
+
<span>{{ rowData.name }}</span>
|
|
186
|
+
</div>
|
|
187
|
+
</td>
|
|
188
|
+
<td>{{ rowData.size }}</td>
|
|
189
|
+
<td>{{ rowData.type }}</td>
|
|
190
|
+
</tr>
|
|
191
|
+
</ng-template>
|
|
192
|
+
</p-tree-table>
|
|
193
|
+
`,
|
|
194
|
+
standalone: true,
|
|
195
|
+
imports: [TreeTableModule],
|
|
196
|
+
providers: [NodeService]
|
|
197
|
+
})
|
|
198
|
+
export class TreetableBasicDemo implements OnInit {
|
|
199
|
+
private nodeService = inject(NodeService);
|
|
200
|
+
files!: TreeNode[];
|
|
201
|
+
|
|
202
|
+
ngOnInit() {
|
|
203
|
+
this.nodeService.getFilesystem().then((files) => (this.files = files));
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
```
|
|
207
|
+
|
|
208
|
+
Every component and directive also accepts `pt` (pass through attributes), `ptOptions`, `dt` (design tokens) and `unstyled`.
|
|
209
|
+
|
|
210
|
+
Full documentation (every input, pass through, styling, all examples): https://exhaustive-ui.com/llms/components/treetable.md
|
|
@@ -83,7 +83,7 @@ BlockUI can either block other components or the whole page.
|
|
|
83
83
|
|
|
84
84
|
| Name | Type | Description |
|
|
85
85
|
|------|------|-------------|
|
|
86
|
-
| content | TemplateRef<
|
|
86
|
+
| content | TemplateRef<void> | template of the content |
|
|
87
87
|
|
|
88
88
|
## Pass Through Options
|
|
89
89
|
|
|
@@ -156,30 +156,6 @@ export class CheckboxInvalidDemo {
|
|
|
156
156
|
}
|
|
157
157
|
```
|
|
158
158
|
|
|
159
|
-
## label-doc
|
|
160
|
-
|
|
161
|
-
The label attribute provides a label text for the checkbox. This label is also clickable and toggles the checked state.
|
|
162
|
-
|
|
163
|
-
```typescript
|
|
164
|
-
import { Component } from '@angular/core';
|
|
165
|
-
import { FormsModule } from '@angular/forms';
|
|
166
|
-
import { CheckboxModule } from '@exhaustive-ui/core/checkbox';
|
|
167
|
-
|
|
168
|
-
@Component({
|
|
169
|
-
template: `
|
|
170
|
-
<div class="card flex justify-center gap-4">
|
|
171
|
-
<p-checkbox name="groupname" value="val1" label="Value 1" [(ngModel)]="selectedValues"></p-checkbox>
|
|
172
|
-
<p-checkbox name="groupname" value="val2" label="Value 2" [(ngModel)]="selectedValues"></p-checkbox>
|
|
173
|
-
</div>
|
|
174
|
-
`,
|
|
175
|
-
standalone: true,
|
|
176
|
-
imports: [CheckboxModule, FormsModule]
|
|
177
|
-
})
|
|
178
|
-
export class CheckboxLabelDemo {
|
|
179
|
-
selectedValues: string[] = [];
|
|
180
|
-
}
|
|
181
|
-
```
|
|
182
|
-
|
|
183
159
|
## multiple-doc
|
|
184
160
|
|
|
185
161
|
Multiple checkboxes can be grouped together.
|
|
@@ -238,7 +238,7 @@ ConfirmDialog uses a Dialog UI that is integrated with the Confirmation API.
|
|
|
238
238
|
|
|
239
239
|
| Name | Type | Description |
|
|
240
240
|
|------|------|-------------|
|
|
241
|
-
| header | TemplateRef<
|
|
241
|
+
| header | TemplateRef<ConfirmDialogHeaderTemplateContext> | Custom header template. |
|
|
242
242
|
| footer | TemplateRef<void> | Custom footer template. |
|
|
243
243
|
| rejecticon | TemplateRef<void> | Custom reject icon template. |
|
|
244
244
|
| accepticon | TemplateRef<void> | Custom accept icon template. |
|
|
@@ -538,7 +538,7 @@ Dialog is a container to display content in an overlay window.
|
|
|
538
538
|
| position | InputSignal<"top" \| "bottom" \| "center" \| "left" \| "right" \| "topleft" \| "bottomleft" \| "topright" \| "bottomright"> | ... | Position of the dialog. |
|
|
539
539
|
| ariaLabelledBy | InputSignal<string> | ... | Identifier of the element that labels the dialog. Defaults to the id of the generated header title. |
|
|
540
540
|
| appendTo | InputSignal<any> | 'self' | Target element to attach the overlay, valid values are "body" or a local ng-template variable of another element (note: use binding with brackets for template variables, e.g. [appendTo]="mydiv" for a div element having #mydiv as variable name). |
|
|
541
|
-
| headerTemplate | InputSignal<TemplateRef<
|
|
541
|
+
| headerTemplate | InputSignal<TemplateRef<DialogHeaderTemplateContext>> | ... | Header template passed as an input, for a template defined outside the dialog. A <ng-template #header> inside the dialog takes precedence. |
|
|
542
542
|
| contentTemplate | InputSignal<TemplateRef<void>> | ... | Content template passed as an input, for a template defined outside the dialog. A <ng-template #content> inside the dialog takes precedence. |
|
|
543
543
|
| footerTemplate | InputSignal<TemplateRef<void>> | ... | Footer template passed as an input, for a template defined outside the dialog. A <ng-template #footer> inside the dialog takes precedence. |
|
|
544
544
|
| closeIconTemplate | InputSignal<TemplateRef<void>> | ... | Close icon template passed as an input, for a template defined outside the dialog. A <ng-template #closeicon> inside the dialog takes precedence. |
|
|
@@ -562,7 +562,7 @@ Dialog is a container to display content in an overlay window.
|
|
|
562
562
|
|
|
563
563
|
| Name | Type | Description |
|
|
564
564
|
|------|------|-------------|
|
|
565
|
-
| header | TemplateRef<
|
|
565
|
+
| header | TemplateRef<DialogHeaderTemplateContext> | Custom header template. |
|
|
566
566
|
| content | TemplateRef<void> | Custom content template. |
|
|
567
567
|
| footer | TemplateRef<void> | Custom footer template. |
|
|
568
568
|
| closeicon | TemplateRef<void> | Custom close icon template. |
|
package/data/components/dock.md
CHANGED
|
@@ -56,7 +56,7 @@ import { MenuItem, MessageService } from '@exhaustive-ui/core/api';
|
|
|
56
56
|
<p-terminal welcomeMessage="Welcome to ExhaustiveUI (cmd: 'date', 'greet {0}', 'random')" prompt="exhaustive $" />
|
|
57
57
|
</p-dialog>
|
|
58
58
|
<p-galleria
|
|
59
|
-
[
|
|
59
|
+
[value]="images"
|
|
60
60
|
[showThumbnails]="false"
|
|
61
61
|
[showThumbnailNavigators]="false"
|
|
62
62
|
[showItemNavigators]="true"
|
|
@@ -380,7 +380,7 @@ import { MenuItem } from '@exhaustive-ui/core/api';
|
|
|
380
380
|
<div class="card">
|
|
381
381
|
<div class="flex flex-wrap gap-4 mb-8">
|
|
382
382
|
<div *ngFor="let pos of positionOptions" class="flex items-center">
|
|
383
|
-
<p-radio-button name="dock" [value]="pos.value" [
|
|
383
|
+
<p-radio-button name="dock" [value]="pos.value" [(ngModel)]="position" [inputId]="pos.label" />
|
|
384
384
|
<label [for]="pos.label" class="ml-2"> {{ pos.label }} </label>
|
|
385
385
|
</div>
|
|
386
386
|
</div>
|
|
@@ -277,7 +277,7 @@ Editor groups a collection of contents in tabs.
|
|
|
277
277
|
|
|
278
278
|
| Name | Type | Description |
|
|
279
279
|
|------|------|-------------|
|
|
280
|
-
| header | TemplateRef<
|
|
280
|
+
| header | TemplateRef<void> | Custom item template. |
|
|
281
281
|
|
|
282
282
|
## Pass Through Options
|
|
283
283
|
|
|
@@ -333,7 +333,7 @@ FileUpload is an advanced uploader with dragdrop support, multi file uploads, au
|
|
|
333
333
|
|
|
334
334
|
| Name | Type | Description |
|
|
335
335
|
|------|------|-------------|
|
|
336
|
-
| file | TemplateRef<
|
|
336
|
+
| file | TemplateRef<FileUploadFileTemplateContext> | Custom file template. |
|
|
337
337
|
| header | TemplateRef<FileUploadHeaderTemplateContext> | Custom header template. |
|
|
338
338
|
| content | TemplateRef<FileUploadContentTemplateContext> | Custom content template. |
|
|
339
339
|
| toolbar | TemplateRef<void> | Custom toolbar template. |
|
|
@@ -21,7 +21,7 @@ import { PhotoService } from '@/service/photoservice';
|
|
|
21
21
|
<div class="card">
|
|
22
22
|
<p-galleria
|
|
23
23
|
#galleria
|
|
24
|
-
[
|
|
24
|
+
[value]="images"
|
|
25
25
|
[(activeIndex)]="activeIndex"
|
|
26
26
|
[numVisible]="5"
|
|
27
27
|
[showThumbnails]="showThumbnails"
|
|
@@ -191,7 +191,7 @@ import { PhotoService } from '@/service/photoservice';
|
|
|
191
191
|
@Component({
|
|
192
192
|
template: `
|
|
193
193
|
<div class="card">
|
|
194
|
-
<p-galleria [
|
|
194
|
+
<p-galleria [value]="images" [autoPlay]="true" [circular]="true" [responsiveOptions]="responsiveOptions" [numVisible]="5" [containerStyle]="{ 'max-width': '640px' }">
|
|
195
195
|
<ng-template #item let-item>
|
|
196
196
|
<img [src]="item.itemImageSrc" style="width: 100%; display: block" />
|
|
197
197
|
</ng-template>
|
|
@@ -228,7 +228,7 @@ import { PhotoService } from '@/service/photoservice';
|
|
|
228
228
|
@Component({
|
|
229
229
|
template: `
|
|
230
230
|
<div class="card">
|
|
231
|
-
<p-galleria [
|
|
231
|
+
<p-galleria [value]="images" [responsiveOptions]="responsiveOptions" [containerStyle]="{ 'max-width': '640px' }" [numVisible]="5">
|
|
232
232
|
<ng-template #item let-item>
|
|
233
233
|
<img [src]="item.itemImageSrc" style="width:100%" />
|
|
234
234
|
</ng-template>
|
|
@@ -265,7 +265,7 @@ import { PhotoService } from '@/service/photoservice';
|
|
|
265
265
|
@Component({
|
|
266
266
|
template: `
|
|
267
267
|
<div class="card">
|
|
268
|
-
<p-galleria [
|
|
268
|
+
<p-galleria [value]="images" [responsiveOptions]="responsiveOptions" [containerStyle]="{ 'max-width': '640px' }" [numVisible]="5">
|
|
269
269
|
<ng-template #item let-item>
|
|
270
270
|
<img [src]="item.itemImageSrc" style="width: 100%; display: block;" />
|
|
271
271
|
</ng-template>
|
|
@@ -311,7 +311,7 @@ import { PhotoService } from '@/service/photoservice';
|
|
|
311
311
|
<p-button type="button" icon="pi pi-minus" (click)="prev()" />
|
|
312
312
|
<p-button type="button" icon="pi pi-plus" (click)="next()" severity="secondary" styleClass="ml-2" />
|
|
313
313
|
</div>
|
|
314
|
-
<p-galleria [
|
|
314
|
+
<p-galleria [value]="images" [responsiveOptions]="responsiveOptions" [containerStyle]="{ 'max-width': '640px' }" [numVisible]="5" [(activeIndex)]="activeIndex">
|
|
315
315
|
<ng-template #item let-item>
|
|
316
316
|
<img [src]="item.itemImageSrc" style="width: 100%;" />
|
|
317
317
|
</ng-template>
|
|
@@ -357,7 +357,7 @@ import { PhotoService } from '@/service/photoservice';
|
|
|
357
357
|
@Component({
|
|
358
358
|
template: `
|
|
359
359
|
<div class="card">
|
|
360
|
-
<p-galleria [
|
|
360
|
+
<p-galleria [value]="images" [responsiveOptions]="responsiveOptions" [containerStyle]="{ 'max-width': '640px' }" [numVisible]="7" [circular]="true">
|
|
361
361
|
<ng-template #item let-item>
|
|
362
362
|
<img [src]="item.itemImageSrc" style="width: 100%; display: block;" />
|
|
363
363
|
</ng-template>
|
|
@@ -398,7 +398,7 @@ import { PhotoService } from '@/service/photoservice';
|
|
|
398
398
|
<div class="card">
|
|
399
399
|
<div class="flex flex-wrap gap-4 mb-8">
|
|
400
400
|
<div *ngFor="let option of positionOptions" class="flex items-center">
|
|
401
|
-
<p-radio-button [name]="option.label" [value]="option.value" [
|
|
401
|
+
<p-radio-button [name]="option.label" [value]="option.value" [(ngModel)]="position" [inputId]="option.label" />
|
|
402
402
|
<label [for]="option.label" class="ml-2"> {{ option.label }} </label>
|
|
403
403
|
</div>
|
|
404
404
|
</div>
|
|
@@ -28,7 +28,7 @@ import { InputNumberModule } from '@exhaustive-ui/core/inputnumber';
|
|
|
28
28
|
</div>
|
|
29
29
|
<div class="flex-auto">
|
|
30
30
|
<label class="mb-2 block font-bold" for="horizontal">Horizontal with Step</label>
|
|
31
|
-
<p-input-number [(ngModel)]="value3" [showButtons]="true" buttonLayout="horizontal" inputId="horizontal"
|
|
31
|
+
<p-input-number [(ngModel)]="value3" [showButtons]="true" buttonLayout="horizontal" inputId="horizontal" [step]="0.25" mode="currency" currency="EUR">
|
|
32
32
|
<ng-template #incrementbuttonicon>
|
|
33
33
|
<span class="pi pi-plus"></span>
|
|
34
34
|
</ng-template>
|
|
@@ -582,7 +582,7 @@ import { InputNumberModule } from '@exhaustive-ui/core/inputnumber';
|
|
|
582
582
|
@Component({
|
|
583
583
|
template: `
|
|
584
584
|
<div class="card flex justify-center">
|
|
585
|
-
<p-input-number [(ngModel)]="value1" [showButtons]="true" buttonLayout="vertical"
|
|
585
|
+
<p-input-number [(ngModel)]="value1" [showButtons]="true" buttonLayout="vertical" inputId="vertical" [inputStyle]="{ width: '3rem' }">
|
|
586
586
|
<ng-template #incrementbuttonicon>
|
|
587
587
|
<span class="pi pi-plus"></span>
|
|
588
588
|
</ng-template>
|
package/data/components/llms.md
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
LLM-optimized documentation endpoints for ExhaustiveUI components.
|
|
4
4
|
|
|
5
|
+
## AI coding agents
|
|
6
|
+
|
|
7
|
+
@exhaustive-ui/core ships its own guide for AI coding agents: node_modules/@exhaustive-ui/core/AGENTS.md gives the rules that matter when writing code with the library (imports, canonical tags, templates, signals, OnPush), the PrimeNG habits to drop, and links to a card per component in llms/cards/ . Coding agents read node_modules , so this works without any setup, and always matches the installed version. To make sure your agent reads it first, add one line to the AGENTS.md or CLAUDE.md of your project. A component card is a 2 to 16 KB summary: the import, the tag, the inputs the examples use with their type and default, the outputs, every template with the context it receives, and one complete example. The same cards are published at /llms/cards/<name>.md , returned first by the get_component tool of the MCP server, and bundled in the Agent Skill. The site version of the guide is /llms/AGENTS.md . After writing templates, an agent (or you) can check them against the API with the check command of the MCP package. It reads the .html files and the inline templates under src , and reports, with file and line: PrimeNG tags and imports with their replacement, unknown or miscased inputs, invalid values, inputs removed in v22, and template names that the component does not have. It exits with 1 on errors, so it also fits in a CI pipeline or a pre-commit hook.
|
|
8
|
+
|
|
5
9
|
## Agent Skill
|
|
6
10
|
|
|
7
11
|
The markdown files above are also bundled as an Agent Skill , the SKILL.md format supported by coding agents such as Claude Code, Codex, Cursor and OpenCode. Once installed, the agent reads the component docs, API tables and guides from disk whenever it works on ExhaustiveUI code, instead of fetching them from this site each time. Install it with the skills CLI , which asks which agents to set it up for. By default the skill is installed into the current project, so your team gets it too. Add -g to install it for your user instead. You can also download the zip and extract it into a folder named exhaustive-ui in your agent's skills directory.
|
|
@@ -377,9 +377,9 @@ import { PasswordModule } from '@exhaustive-ui/core/password';
|
|
|
377
377
|
@Component({
|
|
378
378
|
template: `
|
|
379
379
|
<div class="card flex flex-col items-center gap-4">
|
|
380
|
-
<p-password [(ngModel)]="value1"
|
|
381
|
-
<p-password [(ngModel)]="value2"
|
|
382
|
-
<p-password [(ngModel)]="value3"
|
|
380
|
+
<p-password [(ngModel)]="value1" size="small" placeholder="Small" />
|
|
381
|
+
<p-password [(ngModel)]="value2" placeholder="Normal" />
|
|
382
|
+
<p-password [(ngModel)]="value3" size="large" placeholder="Large" />
|
|
383
383
|
</div>
|
|
384
384
|
`,
|
|
385
385
|
standalone: true,
|
|
@@ -67,7 +67,7 @@ import { Product } from '@/domain/product';
|
|
|
67
67
|
breakpoint="1400px"
|
|
68
68
|
scrollHeight="20rem"
|
|
69
69
|
>
|
|
70
|
-
<ng-template let-option let-selected="selected" #
|
|
70
|
+
<ng-template let-option let-selected="selected" #item>
|
|
71
71
|
<div class="flex flex-wrap p-1 items-center gap-4 w-full">
|
|
72
72
|
<img class="w-12 shrink-0 rounded-sm" src="https://exhaustive-ui.com/demo/product/{{ option.image }}" [alt]="option.name" />
|
|
73
73
|
<div class="flex-1 flex flex-col">
|
package/data/components/table.md
CHANGED
|
@@ -2439,7 +2439,7 @@ interface ExportColumn {
|
|
|
2439
2439
|
<p-button severity="danger" label="Delete" icon="pi pi-trash" outlined (onClick)="deleteSelectedProducts()" [disabled]="!selectedProducts || !selectedProducts.length" />
|
|
2440
2440
|
</ng-template>
|
|
2441
2441
|
<ng-template #end>
|
|
2442
|
-
<p-file-upload mode="basic" accept="image/*" [maxFileSize]="1000000"
|
|
2442
|
+
<p-file-upload mode="basic" accept="image/*" [maxFileSize]="1000000" chooseLabel="Import" auto customUpload class="mr-2 inline-block" [chooseButtonProps]="{ severity: 'secondary' }" />
|
|
2443
2443
|
<p-button label="Export" icon="pi pi-upload" severity="secondary" (onClick)="exportCSV($event)" />
|
|
2444
2444
|
</ng-template>
|
|
2445
2445
|
</p-toolbar>
|
|
@@ -4470,8 +4470,8 @@ Table displays data in tabular format.
|
|
|
4470
4470
|
| summary | TemplateRef<void> | Custom summary, rendered below the table. |
|
|
4471
4471
|
| colgroup | TemplateRef<TableColumnsTemplateContext> | Custom colgroup element. |
|
|
4472
4472
|
| expandedrow | TemplateRef<TableExpandedRowTemplateContext<any>> | Custom content of an expanded row. |
|
|
4473
|
-
| groupheader | TemplateRef<
|
|
4474
|
-
| groupfooter | TemplateRef<
|
|
4473
|
+
| groupheader | TemplateRef<TableRowGroupTemplateContext<any>> | Custom row group header, with rowGroupMode set to subheader. |
|
|
4474
|
+
| groupfooter | TemplateRef<TableRowGroupTemplateContext<any>> | Custom row group footer, with rowGroupMode set to subheader. |
|
|
4475
4475
|
| frozenexpandedrow | TemplateRef<TableExpandedRowTemplateContext<any>> | Custom content of an expanded frozen row. |
|
|
4476
4476
|
| frozenbody | TemplateRef<TableBodyTemplateContext<any>> | Custom row of the frozen rows. |
|
|
4477
4477
|
| emptymessage | TemplateRef<TableEmptyMessageTemplateContext> | Custom content when there is no data. |
|