@exhaustive-ui/mcp 22.0.0-rc.2 → 22.0.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/data/components/accordion.md +1 -0
- package/data/components/autocomplete.md +59 -0
- package/data/components/cascadeselect.md +136 -0
- package/data/components/checkbox.md +56 -0
- package/data/components/colorpicker.md +49 -0
- package/data/components/confirmpopup.md +0 -7
- package/data/components/dataview.md +0 -2
- package/data/components/datepicker.md +52 -3
- package/data/components/drawer.md +1 -1
- package/data/components/editor.md +49 -0
- package/data/components/floatlabel.md +72 -0
- package/data/components/iftalabel.md +68 -0
- package/data/components/inputmask.md +54 -4
- package/data/components/inputnumber.md +52 -3
- package/data/components/inputotp.md +50 -0
- package/data/components/inputtext.md +63 -1
- package/data/components/knob.md +55 -0
- package/data/components/listbox.md +57 -2
- package/data/components/message.md +0 -1
- package/data/components/multiselect.md +59 -4
- package/data/components/orderlist.md +1 -3
- package/data/components/password.md +52 -3
- package/data/components/picklist.md +0 -3
- package/data/components/radiobutton.md +60 -0
- package/data/components/rating.md +49 -0
- package/data/components/select.md +58 -3
- package/data/components/selectbutton.md +50 -1
- package/data/components/slider.md +50 -0
- package/data/components/stepper.md +0 -1
- package/data/components/table.md +1 -1
- package/data/components/textarea.md +48 -0
- package/data/components/togglebutton.md +50 -0
- package/data/components/toggleswitch.md +49 -0
- package/data/components/tooltip.md +0 -1
- package/data/components/treeselect.md +61 -1
- package/data/components/treetable.md +1 -1
- package/data/components.json +774 -503
- package/data/llms-full.txt +3494 -819
- package/data/llms.txt +2 -1
- package/data/manifest.json +91 -476
- package/data/pages/accessibility.md +164 -6
- package/data/pages/animations.md +110 -5
- package/data/pages/configuration.md +107 -102
- package/data/pages/contribution.md +68 -7
- package/data/pages/customicons.md +8 -8
- package/data/pages/faq.md +103 -8
- package/data/pages/icons.md +24 -23
- package/data/pages/installation.md +77 -25
- package/data/pages/llms.md +71 -15
- package/data/pages/passthrough.md +96 -7
- package/data/pages/philosophy.md +80 -11
- package/data/pages/primeflex.md +41 -4
- package/data/pages/rtl.md +4 -1
- package/data/pages/styled.md +174 -66
- package/data/pages/tailwind.md +309 -218
- package/data/pages/unstyled.md +48 -7
- package/data/pages/update.md +42 -13
- package/data/pages/v22.md +218 -0
- package/data/snapshot.json +4 -4
- package/dist/index.mjs +72 -22
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -4,7 +4,7 @@ TreeSelect is a form component to choose from hierarchical data.
|
|
|
4
4
|
|
|
5
5
|
## Accessibility
|
|
6
6
|
|
|
7
|
-
Screen Reader Value to describe the component can either be provided with
|
|
7
|
+
Screen Reader Value to describe the component can either be provided with ariaLabelledBy or ariaLabel props. The treeselect element has a combobox role in addition to aria-haspopup and aria-expanded attributes. The relation between the combobox and the popup is created with aria-controls that refers to the id of the popup. The popup list has an id that refers to the aria-controls attribute of the combobox element and uses tree as the role. Each list item has a treeitem role along with aria-label , aria-selected and aria-expanded attributes. In checkbox selection, aria-checked is used instead of aria-selected . Checkbox and toggle icons are hidden from screen readers as their parent element with treeitem role and attributes are used instead for readers and keyboard support. The container element of a treenode has the group role. The aria-setsize , aria-posinset and aria-level attributes are calculated implicitly and added to each treeitem. If filtering is enabled, filterInputProps can be defined to give aria-* props to the filter input element.
|
|
8
8
|
|
|
9
9
|
## Basic
|
|
10
10
|
|
|
@@ -555,6 +555,66 @@ export class TreeselectReactiveformsDemo implements OnInit {
|
|
|
555
555
|
}
|
|
556
556
|
```
|
|
557
557
|
|
|
558
|
+
## Signal Forms
|
|
559
|
+
|
|
560
|
+
TreeSelect can also be used with Angular Signal Forms , the @angular/forms/signals API of Angular 21 and newer. The form model is a signal, form() declares its validators and the [formField] directive binds the component to a field. The field also sets the invalid state of the component, so the component is styled as invalid before any interaction, while the messages below appear once the field is touched or the form is submitted.
|
|
561
|
+
|
|
562
|
+
```typescript
|
|
563
|
+
import { Component, OnInit, inject, signal } from '@angular/core';
|
|
564
|
+
import { form, FormField, required, submit } from '@angular/forms/signals';
|
|
565
|
+
import { MessageModule } from '@exhaustive-ui/core/message';
|
|
566
|
+
import { ToastModule } from '@exhaustive-ui/core/toast';
|
|
567
|
+
import { TreeSelectModule } from '@exhaustive-ui/core/treeselect';
|
|
568
|
+
import { ButtonModule } from '@exhaustive-ui/core/button';
|
|
569
|
+
import { NodeService } from '@/service/nodeservice';
|
|
570
|
+
import { TreeNode, MessageService } from '@exhaustive-ui/core/api';
|
|
571
|
+
|
|
572
|
+
@Component({
|
|
573
|
+
template: `
|
|
574
|
+
<p-toast />
|
|
575
|
+
<div class="card flex justify-center">
|
|
576
|
+
<form novalidate (submit)="onSubmit($event)" class="flex flex-col gap-4 w-full md:w-80">
|
|
577
|
+
<div class="flex flex-col gap-1">
|
|
578
|
+
<p-treeselect class="md:w-80 w-full" [formField]="exampleForm.selectedNodes" [options]="nodes" placeholder="Select Item" />
|
|
579
|
+
@let selectedNodes = exampleForm.selectedNodes();
|
|
580
|
+
@if (selectedNodes.invalid() && selectedNodes.touched()) {
|
|
581
|
+
<p-message severity="error" size="small" variant="simple">Selection is required.</p-message>
|
|
582
|
+
}
|
|
583
|
+
</div>
|
|
584
|
+
<button pButton severity="secondary" type="submit"><span pButtonLabel>Submit</span></button>
|
|
585
|
+
</form>
|
|
586
|
+
</div>
|
|
587
|
+
`,
|
|
588
|
+
standalone: true,
|
|
589
|
+
imports: [MessageModule, ToastModule, TreeSelectModule, ButtonModule, FormField],
|
|
590
|
+
providers: [NodeService]
|
|
591
|
+
})
|
|
592
|
+
export class TreeselectSignalformsDemo implements OnInit {
|
|
593
|
+
private nodeService = inject(NodeService);
|
|
594
|
+
messageService = inject(MessageService);
|
|
595
|
+
nodes!: any[];
|
|
596
|
+
model = signal<{ selectedNodes: TreeNode | null }>({ selectedNodes: null });
|
|
597
|
+
exampleForm = form(this.model, (f) => {
|
|
598
|
+
required(f.selectedNodes);
|
|
599
|
+
});
|
|
600
|
+
|
|
601
|
+
constructor() {
|
|
602
|
+
this.nodeService.getFiles().then((files) => (this.nodes = files));
|
|
603
|
+
}
|
|
604
|
+
|
|
605
|
+
ngOnInit() {
|
|
606
|
+
}
|
|
607
|
+
|
|
608
|
+
onSubmit(event: Event) {
|
|
609
|
+
event.preventDefault();
|
|
610
|
+
submit(this.exampleForm, async () => {
|
|
611
|
+
this.messageService.add({ severity: 'success', summary: 'Success', detail: 'Form is submitted', life: 3000 });
|
|
612
|
+
this.exampleForm().reset({ selectedNodes: null });
|
|
613
|
+
});
|
|
614
|
+
}
|
|
615
|
+
}
|
|
616
|
+
```
|
|
617
|
+
|
|
558
618
|
## Sizes
|
|
559
619
|
|
|
560
620
|
TreeSelect provides small and large sizes as alternatives to the base.
|
|
@@ -2607,7 +2607,7 @@ TreeTable is used to display hierarchical data in tabular format.
|
|
|
2607
2607
|
| columnResizeMode | InputSignal<string> | ... | Defines whether the overall table width should change on column resize, valid values are "fit" and "expand". |
|
|
2608
2608
|
| reorderableColumns | InputSignalWithTransform<boolean, unknown> | ... | When enabled, columns can be reordered using drag and drop. |
|
|
2609
2609
|
| contextMenu | InputSignal<any> | ... | Local ng-template varilable of a ContextMenu. |
|
|
2610
|
-
| rowTrackBy | InputSignal<Function> | ... | Function to optimize the dom operations by delegating to ngForTrackBy, default algorithm checks for
|
|
2610
|
+
| rowTrackBy | InputSignal<Function> | ... | Function to optimize the dom operations by delegating to ngForTrackBy, default algorithm checks for the identity of the row node. |
|
|
2611
2611
|
| filters | InputSignal<{ [s: string]: FilterMetadata }> | ... | An array of FilterMetadata objects to provide external filters. |
|
|
2612
2612
|
| globalFilterFields | InputSignal<string[]> | ... | An array of fields as string to use in global filtering. |
|
|
2613
2613
|
| filterDelay | InputSignalWithTransform<number, unknown> | ... | Delay in milliseconds before filtering the data. |
|