@exhaustive-ui/mcp 22.5.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.
- package/data/cards/accordion.md +5 -2
- package/data/cards/animateonscroll.md +8 -5
- package/data/cards/autocomplete.md +8 -3
- package/data/cards/autofocus.md +4 -2
- package/data/cards/avatar.md +4 -2
- package/data/cards/badge.md +2 -1
- package/data/cards/breadcrumb.md +3 -1
- package/data/cards/button.md +8 -2
- package/data/cards/card.md +2 -1
- package/data/cards/carousel.md +7 -5
- package/data/cards/cascadeselect.md +2 -6
- package/data/cards/chart.md +9 -7
- package/data/cards/checkbox.md +4 -3
- package/data/cards/chip.md +2 -1
- package/data/cards/classnames.md +21 -3
- package/data/cards/colorpicker.md +2 -1
- package/data/cards/confirmdialog.md +35 -5
- package/data/cards/confirmpopup.md +25 -3
- package/data/cards/contextmenu.md +1 -7
- package/data/cards/dataview.md +28 -9
- package/data/cards/datepicker.md +4 -3
- package/data/cards/dialog.md +3 -3
- package/data/cards/divider.md +2 -1
- package/data/cards/dock.md +24 -3
- package/data/cards/dragdrop.md +5 -1
- package/data/cards/drawer.md +3 -3
- package/data/cards/dynamicdialog.md +41 -14
- package/data/cards/editor.md +1 -1
- package/data/cards/fieldset.md +2 -1
- package/data/cards/fileinput.md +1 -1
- package/data/cards/fileupload.md +7 -8
- package/data/cards/floatlabel.md +1 -1
- package/data/cards/fluid.md +7 -5
- package/data/cards/focustrap.md +6 -2
- package/data/cards/galleria.md +18 -25
- package/data/cards/iconfield.md +3 -2
- package/data/cards/iftalabel.md +1 -1
- package/data/cards/image.md +4 -2
- package/data/cards/imagecompare.md +4 -3
- package/data/cards/inplace.md +2 -1
- package/data/cards/inputgroup.md +14 -3
- package/data/cards/inputmask.md +2 -2
- package/data/cards/inputnumber.md +4 -3
- package/data/cards/inputotp.md +2 -2
- package/data/cards/inputtext.md +2 -2
- package/data/cards/keyfilter.md +2 -1
- package/data/cards/knob.md +3 -2
- package/data/cards/listbox.md +5 -3
- package/data/cards/megamenu.md +7 -8
- package/data/cards/menu.md +3 -7
- package/data/cards/menubar.md +3 -7
- package/data/cards/message.md +2 -1
- package/data/cards/metergroup.md +3 -7
- package/data/cards/multiselect.md +5 -9
- package/data/cards/orderlist.md +6 -4
- package/data/cards/organizationchart.md +33 -6
- package/data/cards/overlay.md +2 -1
- package/data/cards/paginator.md +2 -1
- package/data/cards/panel.md +2 -1
- package/data/cards/panelmenu.md +4 -13
- package/data/cards/password.md +6 -3
- package/data/cards/picklist.md +9 -5
- package/data/cards/popover.md +6 -5
- package/data/cards/progressbar.md +4 -3
- package/data/cards/progressspinner.md +2 -1
- package/data/cards/radiobutton.md +4 -3
- package/data/cards/rating.md +1 -1
- package/data/cards/ripple.md +2 -1
- package/data/cards/scrollpanel.md +2 -1
- package/data/cards/scrolltop.md +5 -3
- package/data/cards/select.md +2 -1
- package/data/cards/selectbutton.md +6 -2
- package/data/cards/skeleton.md +2 -1
- package/data/cards/slider.md +4 -3
- package/data/cards/speeddial.md +7 -4
- package/data/cards/splitbutton.md +21 -18
- package/data/cards/splitter.md +2 -1
- package/data/cards/stepper.md +8 -3
- package/data/cards/styleclass.md +4 -2
- package/data/cards/table.md +46 -11
- package/data/cards/tabs.md +2 -1
- package/data/cards/tag.md +2 -1
- package/data/cards/terminal.md +31 -22
- package/data/cards/textarea.md +3 -2
- package/data/cards/tieredmenu.md +1 -6
- package/data/cards/timeline.md +5 -5
- package/data/cards/toast.md +7 -8
- package/data/cards/togglebutton.md +1 -1
- package/data/cards/toggleswitch.md +4 -3
- package/data/cards/toolbar.md +8 -8
- package/data/cards/tooltip.md +2 -1
- package/data/cards/tree.md +3 -6
- package/data/cards/treeselect.md +6 -7
- package/data/cards/treetable.md +52 -31
- package/data/components/accordion.md +31 -23
- package/data/components/animateonscroll.md +18 -15
- package/data/components/autocomplete.md +162 -93
- package/data/components/autofocus.md +9 -7
- package/data/components/avatar.md +56 -43
- package/data/components/badge.md +27 -18
- package/data/components/blockui.md +15 -8
- package/data/components/breadcrumb.md +20 -14
- package/data/components/button.md +121 -94
- package/data/components/card.md +12 -10
- package/data/components/carousel.md +75 -53
- package/data/components/cascadeselect.md +271 -238
- package/data/components/chart.md +88 -74
- package/data/components/checkbox.md +107 -73
- package/data/components/chip.md +20 -16
- package/data/components/classnames.md +22 -4
- package/data/components/colorpicker.md +54 -36
- package/data/components/confirmdialog.md +146 -43
- package/data/components/confirmpopup.md +95 -22
- package/data/components/contextmenu.md +110 -39
- package/data/components/dataview.md +176 -83
- package/data/components/datepicker.md +171 -141
- package/data/components/dialog.md +80 -68
- package/data/components/divider.md +17 -12
- package/data/components/dock.md +63 -27
- package/data/components/dragdrop.md +26 -12
- package/data/components/drawer.md +67 -48
- package/data/components/dynamicdialog.md +22 -13
- package/data/components/editor.md +42 -33
- package/data/components/fieldset.md +20 -17
- package/data/components/fileinput.md +92 -35
- package/data/components/fileupload.md +101 -61
- package/data/components/floatlabel.md +20 -11
- package/data/components/fluid.md +11 -9
- package/data/components/focustrap.md +11 -7
- package/data/components/galleria.md +224 -83
- package/data/components/iconfield.md +23 -15
- package/data/components/iftalabel.md +15 -9
- package/data/components/image.md +31 -26
- package/data/components/imagecompare.md +8 -6
- package/data/components/inplace.md +27 -22
- package/data/components/inputgroup.md +53 -29
- package/data/components/inputmask.md +107 -85
- package/data/components/inputnumber.md +127 -89
- package/data/components/inputotp.md +55 -42
- package/data/components/inputtext.md +72 -50
- package/data/components/keyfilter.md +6 -3
- package/data/components/knob.md +70 -58
- package/data/components/listbox.md +171 -141
- package/data/components/megamenu.md +24 -23
- package/data/components/menu.md +37 -34
- package/data/components/menubar.md +27 -22
- package/data/components/message.md +44 -32
- package/data/components/metergroup.md +48 -17
- package/data/components/multiselect.md +232 -168
- package/data/components/orderlist.md +55 -48
- package/data/components/organizationchart.md +182 -13
- package/data/components/overlay.md +31 -26
- package/data/components/paginator.md +49 -34
- package/data/components/panel.md +23 -19
- package/data/components/panelmenu.md +51 -25
- package/data/components/password.md +104 -91
- package/data/components/picklist.md +92 -70
- package/data/components/popover.md +68 -46
- package/data/components/progressbar.md +28 -22
- package/data/components/progressspinner.md +13 -11
- package/data/components/radiobutton.md +69 -35
- package/data/components/rating.md +48 -40
- package/data/components/ripple.md +8 -6
- package/data/components/scroller.md +29 -29
- package/data/components/scrollpanel.md +9 -7
- package/data/components/scrolltop.md +20 -18
- package/data/components/select.md +248 -169
- package/data/components/selectbutton.md +118 -56
- package/data/components/skeleton.md +22 -18
- package/data/components/slider.md +73 -49
- package/data/components/speeddial.md +77 -59
- package/data/components/splitbutton.md +354 -329
- package/data/components/splitter.md +22 -18
- package/data/components/stepper.md +38 -21
- package/data/components/styleclass.md +12 -6
- package/data/components/table.md +523 -314
- package/data/components/tabs.md +44 -26
- package/data/components/tag.md +18 -14
- package/data/components/terminal.md +38 -27
- package/data/components/textarea.md +82 -47
- package/data/components/tieredmenu.md +34 -29
- package/data/components/timeline.md +29 -28
- package/data/components/toast.md +115 -57
- package/data/components/togglebutton.md +53 -39
- package/data/components/toggleswitch.md +41 -28
- package/data/components/toolbar.md +19 -18
- package/data/components/tooltip.md +43 -32
- package/data/components/tree.md +114 -81
- package/data/components/treeselect.md +176 -174
- package/data/components/treetable.md +1250 -1045
- package/data/components.json +4122 -4080
- package/data/llms-full.txt +8784 -6249
- package/data/manifest.json +154 -15
- package/data/pages/tailwind.md +20 -10
- package/data/snapshot.json +2 -2
- package/dist/index.d.mts +2 -0
- package/dist/index.mjs +3 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/data/cards/terminal.md
CHANGED
|
@@ -11,13 +11,15 @@ import { Terminal } from '@exhaustive-ui/core/terminal'; // standalone; or Termi
|
|
|
11
11
|
Inputs:
|
|
12
12
|
- `prompt`: `string | undefined`: Prompt text for each command.
|
|
13
13
|
- `welcomeMessage`: `string | undefined`: Initial text to display on terminal.
|
|
14
|
-
- Other inputs: `response`.
|
|
14
|
+
- Other inputs: `ariaLabel`, `ariaLabelledBy`, `response`.
|
|
15
15
|
|
|
16
16
|
## Example: Basic
|
|
17
17
|
|
|
18
18
|
```typescript
|
|
19
|
-
import { Component } from '@angular/core';
|
|
19
|
+
import { Component, OnDestroy, inject } from '@angular/core';
|
|
20
|
+
import { TerminalService } from '@exhaustive-ui/core/terminal';
|
|
20
21
|
import { TerminalModule } from '@exhaustive-ui/core/terminal';
|
|
22
|
+
import { Subscription } from 'rxjs';
|
|
21
23
|
|
|
22
24
|
@Component({
|
|
23
25
|
template: `
|
|
@@ -27,31 +29,38 @@ import { TerminalModule } from '@exhaustive-ui/core/terminal';
|
|
|
27
29
|
</div>
|
|
28
30
|
`,
|
|
29
31
|
standalone: true,
|
|
30
|
-
imports: [TerminalModule]
|
|
32
|
+
imports: [TerminalModule],
|
|
33
|
+
providers: [TerminalService]
|
|
31
34
|
})
|
|
32
|
-
export class TerminalBasicDemo {
|
|
35
|
+
export class TerminalBasicDemo implements OnDestroy {
|
|
36
|
+
private terminalService = inject(TerminalService);
|
|
37
|
+
|
|
33
38
|
subscription: Subscription;
|
|
34
39
|
|
|
35
40
|
constructor() {
|
|
36
41
|
this.subscription = this.terminalService.commandHandler.subscribe((text) => {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
42
|
+
let response;
|
|
43
|
+
let argsIndex = text.indexOf(' ');
|
|
44
|
+
let command = argsIndex !== -1 ? text.substring(0, argsIndex) : text;
|
|
45
|
+
|
|
46
|
+
switch (command) {
|
|
47
|
+
case 'date':
|
|
48
|
+
response = 'Today is ' + new Date().toDateString();
|
|
49
|
+
break;
|
|
50
|
+
|
|
51
|
+
case 'greet':
|
|
52
|
+
response = 'Hola ' + text.substring(argsIndex + 1);
|
|
53
|
+
break;
|
|
54
|
+
|
|
55
|
+
case 'random':
|
|
56
|
+
response = Math.floor(Math.random() * 100);
|
|
57
|
+
break;
|
|
58
|
+
|
|
59
|
+
default:
|
|
60
|
+
response = 'Unknown command: ' + command;
|
|
61
|
+
}
|
|
62
|
+
this.terminalService.sendResponse(response);
|
|
63
|
+
});
|
|
55
64
|
}
|
|
56
65
|
|
|
57
66
|
ngOnDestroy() {
|
package/data/cards/textarea.md
CHANGED
|
@@ -24,15 +24,16 @@ Outputs:
|
|
|
24
24
|
```typescript
|
|
25
25
|
import { Component } from '@angular/core';
|
|
26
26
|
import { FormsModule } from '@angular/forms';
|
|
27
|
+
import { TextareaModule } from '@exhaustive-ui/core/textarea';
|
|
27
28
|
|
|
28
29
|
@Component({
|
|
29
30
|
template: `
|
|
30
31
|
<div class="card flex justify-center">
|
|
31
|
-
<textarea rows="5" cols="30" pTextarea [(ngModel)]="value"></textarea>
|
|
32
|
+
<textarea rows="5" cols="30" pTextarea [(ngModel)]="value" aria-label="Message"></textarea>
|
|
32
33
|
</div>
|
|
33
34
|
`,
|
|
34
35
|
standalone: true,
|
|
35
|
-
imports: [FormsModule]
|
|
36
|
+
imports: [FormsModule, TextareaModule]
|
|
36
37
|
})
|
|
37
38
|
export class TextareaBasicDemo {
|
|
38
39
|
value!: string;
|
package/data/cards/tieredmenu.md
CHANGED
|
@@ -23,17 +23,12 @@ Templates (`<ng-template #name let-…>` inside the element):
|
|
|
23
23
|
|
|
24
24
|
Read a context with `let-`: `<ng-template #item let-item let-hasSubmenu="hasSubmenu">` (`$implicit` is the bare `let-x`).
|
|
25
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
26
|
## Example: Basic
|
|
32
27
|
|
|
33
28
|
```typescript
|
|
34
29
|
import { Component, OnInit } from '@angular/core';
|
|
35
|
-
import { TieredMenuModule } from '@exhaustive-ui/core/tieredmenu';
|
|
36
30
|
import { MenuItem } from '@exhaustive-ui/core/api';
|
|
31
|
+
import { TieredMenuModule } from '@exhaustive-ui/core/tieredmenu';
|
|
37
32
|
|
|
38
33
|
@Component({
|
|
39
34
|
template: `
|
package/data/cards/timeline.md
CHANGED
|
@@ -44,11 +44,11 @@ export class TimelineBasicDemo {
|
|
|
44
44
|
|
|
45
45
|
constructor() {
|
|
46
46
|
this.events = [
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
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
52
|
}
|
|
53
53
|
}
|
|
54
54
|
```
|
package/data/cards/toast.md
CHANGED
|
@@ -25,18 +25,13 @@ Templates (`<ng-template #name let-…>` inside the element):
|
|
|
25
25
|
|
|
26
26
|
Read a context with `let-`: `<ng-template #message let-item>` (`$implicit` is the bare `let-x`).
|
|
27
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
28
|
## Example: Basic
|
|
34
29
|
|
|
35
30
|
```typescript
|
|
36
31
|
import { Component, inject } from '@angular/core';
|
|
37
|
-
import { ButtonModule } from '@exhaustive-ui/core/button';
|
|
38
|
-
import { ToastModule } from '@exhaustive-ui/core/toast';
|
|
39
32
|
import { MessageService } from '@exhaustive-ui/core/api';
|
|
33
|
+
import { ToastModule } from '@exhaustive-ui/core/toast';
|
|
34
|
+
import { ButtonModule } from '@exhaustive-ui/core/button';
|
|
40
35
|
|
|
41
36
|
@Component({
|
|
42
37
|
template: `
|
|
@@ -46,11 +41,15 @@ import { MessageService } from '@exhaustive-ui/core/api';
|
|
|
46
41
|
</div>
|
|
47
42
|
`,
|
|
48
43
|
standalone: true,
|
|
49
|
-
imports: [
|
|
44
|
+
imports: [ToastModule, ButtonModule],
|
|
50
45
|
providers: [MessageService]
|
|
51
46
|
})
|
|
52
47
|
export class ToastBasicDemo {
|
|
53
48
|
private messageService = inject(MessageService);
|
|
49
|
+
|
|
50
|
+
show() {
|
|
51
|
+
this.messageService.add({ severity: 'info', summary: 'Info', detail: 'Message Content', life: 3000 });
|
|
52
|
+
}
|
|
54
53
|
}
|
|
55
54
|
```
|
|
56
55
|
|
|
@@ -47,7 +47,7 @@ import { ToggleButtonModule } from '@exhaustive-ui/core/togglebutton';
|
|
|
47
47
|
</div>
|
|
48
48
|
`,
|
|
49
49
|
standalone: true,
|
|
50
|
-
imports: [
|
|
50
|
+
imports: [FormsModule, ToggleButtonModule]
|
|
51
51
|
})
|
|
52
52
|
export class TogglebuttonBasicDemo {
|
|
53
53
|
checked: boolean = false;
|
|
@@ -11,11 +11,12 @@ import { ToggleSwitch } from '@exhaustive-ui/core/toggleswitch'; // standalone;
|
|
|
11
11
|
Form control: use `[(ngModel)]`, `formControlName` or `[formControl]`.
|
|
12
12
|
|
|
13
13
|
Inputs:
|
|
14
|
+
- `ariaLabel`: `string | undefined`: Used to define a string that autocomplete attribute the current element.
|
|
14
15
|
- `disabled`: `boolean | undefined`: When present, it specifies that the component should have disabled state style.
|
|
15
16
|
- `invalid`: `boolean | undefined`: When present, it specifies that the component should have invalid state style.
|
|
16
17
|
- `name`: `string | undefined`: When present, it specifies that the name of the input.
|
|
17
18
|
- `required`: `boolean | undefined`: There must be a value (if set).
|
|
18
|
-
- Other inputs: `
|
|
19
|
+
- Other inputs: `ariaLabelledBy`, `autofocus`, `falseValue`, `inputId`, `readonly`, `tabindex`, `trueValue`.
|
|
19
20
|
|
|
20
21
|
Outputs:
|
|
21
22
|
- `(onChange)`: `ToggleSwitchChangeEvent`
|
|
@@ -35,11 +36,11 @@ import { ToggleSwitchModule } from '@exhaustive-ui/core/toggleswitch';
|
|
|
35
36
|
@Component({
|
|
36
37
|
template: `
|
|
37
38
|
<div class="card flex justify-center">
|
|
38
|
-
<p-toggle-switch [(ngModel)]="checked" />
|
|
39
|
+
<p-toggle-switch [(ngModel)]="checked" ariaLabel="Notifications" />
|
|
39
40
|
</div>
|
|
40
41
|
`,
|
|
41
42
|
standalone: true,
|
|
42
|
-
imports: [
|
|
43
|
+
imports: [FormsModule, ToggleSwitchModule]
|
|
43
44
|
})
|
|
44
45
|
export class ToggleswitchBasicDemo {
|
|
45
46
|
checked: boolean = false;
|
package/data/cards/toolbar.md
CHANGED
|
@@ -19,22 +19,22 @@ Templates (`<ng-template #name let-…>` inside the element):
|
|
|
19
19
|
|
|
20
20
|
```typescript
|
|
21
21
|
import { Component, OnInit } from '@angular/core';
|
|
22
|
+
import { MenuItem } from '@exhaustive-ui/core/api';
|
|
23
|
+
import { ToolbarModule } from '@exhaustive-ui/core/toolbar';
|
|
22
24
|
import { ButtonModule } from '@exhaustive-ui/core/button';
|
|
23
|
-
import { IconFieldModule } from '@exhaustive-ui/core/iconfield';
|
|
24
|
-
import { InputIconModule } from '@exhaustive-ui/core/inputicon';
|
|
25
25
|
import { SplitButtonModule } from '@exhaustive-ui/core/splitbutton';
|
|
26
|
-
import { ToolbarModule } from '@exhaustive-ui/core/toolbar';
|
|
27
26
|
import { InputTextModule } from '@exhaustive-ui/core/inputtext';
|
|
28
|
-
import {
|
|
27
|
+
import { IconFieldModule } from '@exhaustive-ui/core/iconfield';
|
|
28
|
+
import { InputIconModule } from '@exhaustive-ui/core/inputicon';
|
|
29
29
|
|
|
30
30
|
@Component({
|
|
31
31
|
template: `
|
|
32
32
|
<div class="card">
|
|
33
33
|
<p-toolbar>
|
|
34
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" />
|
|
35
|
+
<p-button icon="pi pi-plus" ariaLabel="New" class="mr-2" text severity="secondary" />
|
|
36
|
+
<p-button icon="pi pi-print" ariaLabel="Print" class="mr-2" text severity="secondary" />
|
|
37
|
+
<p-button icon="pi pi-upload" ariaLabel="Upload" text severity="secondary" />
|
|
38
38
|
</ng-template>
|
|
39
39
|
<ng-template #center>
|
|
40
40
|
<p-icon-field iconPosition="left">
|
|
@@ -49,7 +49,7 @@ import { MenuItem } from '@exhaustive-ui/core/api';
|
|
|
49
49
|
</div>
|
|
50
50
|
`,
|
|
51
51
|
standalone: true,
|
|
52
|
-
imports: [
|
|
52
|
+
imports: [ToolbarModule, ButtonModule, SplitButtonModule, InputTextModule, IconFieldModule, InputIconModule]
|
|
53
53
|
})
|
|
54
54
|
export class ToolbarBasicDemo implements OnInit {
|
|
55
55
|
items: MenuItem[] | undefined;
|
package/data/cards/tooltip.md
CHANGED
|
@@ -34,7 +34,8 @@ import { TooltipModule } from '@exhaustive-ui/core/tooltip';
|
|
|
34
34
|
standalone: true,
|
|
35
35
|
imports: [ButtonModule, TooltipModule]
|
|
36
36
|
})
|
|
37
|
-
export class TooltipDelayDemo {
|
|
37
|
+
export class TooltipDelayDemo {
|
|
38
|
+
}
|
|
38
39
|
```
|
|
39
40
|
|
|
40
41
|
Every component and directive also accepts `pt` (pass through attributes), `ptOptions`, `dt` (design tokens) and `unstyled`.
|
package/data/cards/tree.md
CHANGED
|
@@ -57,17 +57,13 @@ Templates (`<ng-template #name let-…>` inside the element):
|
|
|
57
57
|
|
|
58
58
|
Read a context with `let-`: `<ng-template #filter let-item>` (`$implicit` is the bare `let-x`).
|
|
59
59
|
|
|
60
|
-
### `p-tree-node` (also `p-treeNode`, legacy): UITreeNode
|
|
61
|
-
|
|
62
|
-
- Inputs: `indentation`, `index`, `itemSize`, `level`, `loadingMode`, `node`, `parentNode`.
|
|
63
|
-
|
|
64
60
|
## Example: Basic
|
|
65
61
|
|
|
66
62
|
```typescript
|
|
67
|
-
import { Component, OnInit,
|
|
63
|
+
import { Component, OnInit, signal, inject } from '@angular/core';
|
|
64
|
+
import { TreeNode } from '@exhaustive-ui/core/api';
|
|
68
65
|
import { TreeModule } from '@exhaustive-ui/core/tree';
|
|
69
66
|
import { NodeService } from '@/service/nodeservice';
|
|
70
|
-
import { TreeNode } from '@exhaustive-ui/core/api';
|
|
71
67
|
|
|
72
68
|
@Component({
|
|
73
69
|
template: `
|
|
@@ -81,6 +77,7 @@ import { TreeNode } from '@exhaustive-ui/core/api';
|
|
|
81
77
|
})
|
|
82
78
|
export class TreeBasicDemo implements OnInit {
|
|
83
79
|
private nodeService = inject(NodeService);
|
|
80
|
+
|
|
84
81
|
files = signal<TreeNode[]>(undefined);
|
|
85
82
|
|
|
86
83
|
ngOnInit() {
|
package/data/cards/treeselect.md
CHANGED
|
@@ -64,11 +64,11 @@ Read a context with `let-`: `<ng-template #value let-item let-placeholder="place
|
|
|
64
64
|
## Example: Basic
|
|
65
65
|
|
|
66
66
|
```typescript
|
|
67
|
-
import { Component,
|
|
67
|
+
import { Component, inject } from '@angular/core';
|
|
68
68
|
import { FormsModule } from '@angular/forms';
|
|
69
|
+
import { RouterModule } from '@angular/router';
|
|
69
70
|
import { TreeSelectModule } from '@exhaustive-ui/core/treeselect';
|
|
70
71
|
import { NodeService } from '@/service/nodeservice';
|
|
71
|
-
import { TreeNode } from '@exhaustive-ui/core/api';
|
|
72
72
|
|
|
73
73
|
@Component({
|
|
74
74
|
template: `
|
|
@@ -77,20 +77,19 @@ import { TreeNode } from '@exhaustive-ui/core/api';
|
|
|
77
77
|
</div>
|
|
78
78
|
`,
|
|
79
79
|
standalone: true,
|
|
80
|
-
imports: [TreeSelectModule, FormsModule],
|
|
80
|
+
imports: [TreeSelectModule, FormsModule, RouterModule],
|
|
81
81
|
providers: [NodeService]
|
|
82
82
|
})
|
|
83
|
-
export class TreeselectBasicDemo
|
|
83
|
+
export class TreeselectBasicDemo {
|
|
84
84
|
private nodeService = inject(NodeService);
|
|
85
|
+
|
|
85
86
|
nodes!: any[];
|
|
87
|
+
|
|
86
88
|
selectedNodes: any;
|
|
87
89
|
|
|
88
90
|
constructor() {
|
|
89
91
|
this.nodeService.getFiles().then((files) => (this.nodes = files));
|
|
90
92
|
}
|
|
91
|
-
|
|
92
|
-
ngOnInit() {
|
|
93
|
-
}
|
|
94
93
|
}
|
|
95
94
|
```
|
|
96
95
|
|
package/data/cards/treetable.md
CHANGED
|
@@ -91,66 +91,84 @@ Templates (`<ng-template #name let-…>` inside the element):
|
|
|
91
91
|
|
|
92
92
|
Read a context with `let-`: `<ng-template #colgroup let-item>` (`$implicit` is the bare `let-x`).
|
|
93
93
|
|
|
94
|
-
### `[pTreeTableBody]`: TTBody
|
|
95
|
-
|
|
96
|
-
- Inputs: `frozen`, `pTreeTableBody`, `pTreeTableBodyTemplate`, `scrollerOptions`, `serializedNodes`.
|
|
97
|
-
|
|
98
94
|
### `p-tree-table-checkbox` (also `p-treeTableCheckbox`, `p-treetable-checkbox`, legacy): TTCheckbox
|
|
99
95
|
|
|
96
|
+
Checkbox that selects its node, with selectionMode set to checkbox.
|
|
97
|
+
|
|
100
98
|
- Inputs: `ariaLabel`, `ariaLabelledBy`, `disabled`, `value`.
|
|
101
99
|
|
|
102
100
|
### `[ttContextMenuRow]`: TTContextMenuRow
|
|
103
101
|
|
|
102
|
+
Opens the context menu of the tree table when the row is right clicked.
|
|
103
|
+
|
|
104
104
|
- Inputs: `ttContextMenuRow`, `ttContextMenuRowDisabled`.
|
|
105
105
|
|
|
106
106
|
### `[ttEditableColumn]`: TTEditableColumn
|
|
107
107
|
|
|
108
|
+
Makes a cell editable: clicking it shows the `#input` template of its p-tree-table-cell-editor.
|
|
109
|
+
|
|
108
110
|
- Inputs: `ttEditableColumn`, `ttEditableColumnDisabled`, `ttEditableColumnField`.
|
|
109
111
|
|
|
110
112
|
### `p-tree-table-header-checkbox` (also `p-treeTableHeaderCheckbox`, legacy): TTHeaderCheckbox
|
|
111
113
|
|
|
114
|
+
Checkbox in the header that selects or unselects all the nodes, with selectionMode set to checkbox.
|
|
115
|
+
|
|
112
116
|
- Inputs: `ariaLabel`, `ariaLabelledBy`.
|
|
113
117
|
|
|
114
118
|
### `[ttReorderableColumn]`: TTReorderableColumn
|
|
115
119
|
|
|
120
|
+
Lets a header cell be dragged to reorder the columns, with reorderableColumns enabled on the tree table.
|
|
121
|
+
|
|
116
122
|
- Inputs: `ttReorderableColumnDisabled`.
|
|
117
123
|
|
|
118
124
|
### `[ttResizableColumn]`: TTResizableColumn
|
|
119
125
|
|
|
126
|
+
Adds a resizer to a header cell, with resizableColumns enabled on the tree table.
|
|
127
|
+
|
|
120
128
|
- Inputs: `ttResizableColumnDisabled`.
|
|
121
129
|
|
|
122
130
|
### `[ttRow]`: TTRow
|
|
123
131
|
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
### `[ttScrollableView]`: TTScrollableView
|
|
132
|
+
Gives a row its keyboard navigation and its ARIA attributes (role, level, expanded state).
|
|
127
133
|
|
|
128
|
-
- Inputs: `
|
|
134
|
+
- Inputs: `ttRow`.
|
|
129
135
|
|
|
130
136
|
### `[ttSelectableRow]`: TTSelectableRow
|
|
131
137
|
|
|
138
|
+
Selects its row when clicked or activated with the keyboard, according to the selectionMode of the tree table.
|
|
139
|
+
|
|
132
140
|
- Inputs: `ttSelectableRow`, `ttSelectableRowDisabled`.
|
|
133
141
|
|
|
134
142
|
### `[ttSelectableRowDblClick]`: TTSelectableRowDblClick
|
|
135
143
|
|
|
144
|
+
Selects its row when double clicked.
|
|
145
|
+
|
|
136
146
|
- Inputs: `ttSelectableRowDblClick`, `ttSelectableRowDisabled`.
|
|
137
147
|
|
|
138
148
|
### `p-tree-table-sort-icon` (also `p-treeTableSortIcon`, `p-treetable-sort-icon`, legacy): TTSortIcon
|
|
139
149
|
|
|
150
|
+
Shows the sort state of a column.
|
|
151
|
+
|
|
140
152
|
- Inputs: `field`.
|
|
141
153
|
|
|
142
154
|
### `[ttSortableColumn]`: TTSortableColumn
|
|
143
155
|
|
|
156
|
+
Sorts the tree table by a field when the header cell is clicked or activated with the keyboard: `[ttSortableColumn]="'name'"`.
|
|
157
|
+
|
|
144
158
|
- Inputs: `ttSortableColumn`, `ttSortableColumnDisabled`.
|
|
145
159
|
|
|
146
160
|
### `p-tree-table-cell-editor` (also `p-treeTableCellEditor`, `p-treetablecelleditor`, `p-treetable-cell-editor`, legacy): TreeTableCellEditor
|
|
147
161
|
|
|
162
|
+
Content of an editable cell: the `#input` template shows while the cell is edited, the `#output` template otherwise.
|
|
163
|
+
|
|
148
164
|
Templates (`<ng-template #name let-…>` inside the element):
|
|
149
165
|
- `#input`: no context.
|
|
150
166
|
- `#output`: no context.
|
|
151
167
|
|
|
152
168
|
### `p-tree-table-toggler` (also `p-treeTableToggler`, `p-treetabletoggler`, `p-treetable-toggler`, legacy): TreeTableToggler
|
|
153
169
|
|
|
170
|
+
Button that expands or collapses a node: `<p-tree-table-toggler [rowNode]="rowNode" />`.
|
|
171
|
+
|
|
154
172
|
- Inputs: `rowNode`.
|
|
155
173
|
|
|
156
174
|
Types used in the contexts:
|
|
@@ -162,34 +180,36 @@ Types used in the contexts:
|
|
|
162
180
|
## Example: Basic
|
|
163
181
|
|
|
164
182
|
```typescript
|
|
165
|
-
import { Component,
|
|
183
|
+
import { Component, inject, OnInit } from '@angular/core';
|
|
184
|
+
import { TreeNode } from '@exhaustive-ui/core/api';
|
|
166
185
|
import { TreeTableModule } from '@exhaustive-ui/core/treetable';
|
|
167
186
|
import { NodeService } from '@/service/nodeservice';
|
|
168
|
-
import { TreeNode } from '@exhaustive-ui/core/api';
|
|
169
187
|
|
|
170
188
|
@Component({
|
|
171
189
|
template: `
|
|
172
|
-
<
|
|
173
|
-
<
|
|
174
|
-
<
|
|
175
|
-
<
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
<
|
|
182
|
-
<
|
|
183
|
-
<
|
|
184
|
-
<
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
190
|
+
<div class="card">
|
|
191
|
+
<p-tree-table [value]="files" [scrollable]="true" [tableStyle]="{ 'min-width': '50rem' }">
|
|
192
|
+
<ng-template #header>
|
|
193
|
+
<tr>
|
|
194
|
+
<th>Name</th>
|
|
195
|
+
<th>Size</th>
|
|
196
|
+
<th>Type</th>
|
|
197
|
+
</tr>
|
|
198
|
+
</ng-template>
|
|
199
|
+
<ng-template #body let-rowNode let-rowData="rowData">
|
|
200
|
+
<tr [ttRow]="rowNode">
|
|
201
|
+
<td>
|
|
202
|
+
<div class="flex items-center gap-2">
|
|
203
|
+
<p-tree-table-toggler [rowNode]="rowNode" />
|
|
204
|
+
<span>{{ rowData.name }}</span>
|
|
205
|
+
</div>
|
|
206
|
+
</td>
|
|
207
|
+
<td>{{ rowData.size }}</td>
|
|
208
|
+
<td>{{ rowData.type }}</td>
|
|
209
|
+
</tr>
|
|
210
|
+
</ng-template>
|
|
211
|
+
</p-tree-table>
|
|
212
|
+
</div>
|
|
193
213
|
`,
|
|
194
214
|
standalone: true,
|
|
195
215
|
imports: [TreeTableModule],
|
|
@@ -197,6 +217,7 @@ import { TreeNode } from '@exhaustive-ui/core/api';
|
|
|
197
217
|
})
|
|
198
218
|
export class TreetableBasicDemo implements OnInit {
|
|
199
219
|
private nodeService = inject(NodeService);
|
|
220
|
+
|
|
200
221
|
files!: TreeNode[];
|
|
201
222
|
|
|
202
223
|
ngOnInit() {
|
|
@@ -4,7 +4,7 @@ Accordion groups a collection of contents in tabs.
|
|
|
4
4
|
|
|
5
5
|
## Accessibility
|
|
6
6
|
|
|
7
|
-
Screen Reader Accordion header elements have a button role and use aria-controls to define the id of the content section along with aria-expanded for the visibility state. The value to read a header element defaults to
|
|
7
|
+
Screen Reader Accordion header elements have a button role and use aria-controls to define the id of the content section along with aria-expanded for the visibility state. The value to read a header element defaults to its content and can be customized by defining an aria-label or aria-labelledby attribute. Disabled accordions headers use aria-disabled and are excluded from the keybord navigation. The content uses region role, defines an id that matches the aria-controls of the header and aria-labelledby referring to the id of the header. Header Keyboard Support
|
|
8
8
|
|
|
9
9
|
## Basic
|
|
10
10
|
|
|
@@ -52,7 +52,8 @@ import { AccordionModule } from '@exhaustive-ui/core/accordion';
|
|
|
52
52
|
standalone: true,
|
|
53
53
|
imports: [AccordionModule]
|
|
54
54
|
})
|
|
55
|
-
export class AccordionBasicDemo {
|
|
55
|
+
export class AccordionBasicDemo {
|
|
56
|
+
}
|
|
56
57
|
```
|
|
57
58
|
|
|
58
59
|
## Controlled
|
|
@@ -108,7 +109,7 @@ import { ButtonModule } from '@exhaustive-ui/core/button';
|
|
|
108
109
|
imports: [AccordionModule, ButtonModule]
|
|
109
110
|
})
|
|
110
111
|
export class AccordionControlledDemo {
|
|
111
|
-
active
|
|
112
|
+
active = '0';
|
|
112
113
|
}
|
|
113
114
|
```
|
|
114
115
|
|
|
@@ -122,7 +123,7 @@ import { AccordionModule } from '@exhaustive-ui/core/accordion';
|
|
|
122
123
|
|
|
123
124
|
@Component({
|
|
124
125
|
template: `
|
|
125
|
-
<div class="card flex justify-
|
|
126
|
+
<div class="card flex justify-center">
|
|
126
127
|
<p-accordion [value]="['0']" [multiple]="true">
|
|
127
128
|
<p-accordion-panel value="0">
|
|
128
129
|
<p-accordion-header>Header I</p-accordion-header>
|
|
@@ -161,7 +162,8 @@ import { AccordionModule } from '@exhaustive-ui/core/accordion';
|
|
|
161
162
|
standalone: true,
|
|
162
163
|
imports: [AccordionModule]
|
|
163
164
|
})
|
|
164
|
-
export class AccordionDisabledDemo {
|
|
165
|
+
export class AccordionDisabledDemo {
|
|
166
|
+
}
|
|
165
167
|
```
|
|
166
168
|
|
|
167
169
|
## Dynamic
|
|
@@ -191,7 +193,11 @@ import { AccordionModule } from '@exhaustive-ui/core/accordion';
|
|
|
191
193
|
imports: [AccordionModule]
|
|
192
194
|
})
|
|
193
195
|
export class AccordionDynamicDemo {
|
|
194
|
-
tabs
|
|
196
|
+
tabs = [
|
|
197
|
+
{ title: 'Title 1', content: 'Content 1', value: '0' },
|
|
198
|
+
{ title: 'Title 2', content: 'Content 2', value: '1' },
|
|
199
|
+
{ title: 'Title 3', content: 'Content 3', value: '2' }
|
|
200
|
+
];
|
|
195
201
|
}
|
|
196
202
|
```
|
|
197
203
|
|
|
@@ -205,7 +211,7 @@ import { AccordionModule } from '@exhaustive-ui/core/accordion';
|
|
|
205
211
|
|
|
206
212
|
@Component({
|
|
207
213
|
template: `
|
|
208
|
-
<div class="card flex justify-
|
|
214
|
+
<div class="card flex justify-center">
|
|
209
215
|
<p-accordion [value]="['0']" [multiple]="true">
|
|
210
216
|
<p-accordion-panel value="0">
|
|
211
217
|
<p-accordion-header>Header I</p-accordion-header>
|
|
@@ -241,7 +247,8 @@ import { AccordionModule } from '@exhaustive-ui/core/accordion';
|
|
|
241
247
|
standalone: true,
|
|
242
248
|
imports: [AccordionModule]
|
|
243
249
|
})
|
|
244
|
-
export class AccordionMultipleDemo {
|
|
250
|
+
export class AccordionMultipleDemo {
|
|
251
|
+
}
|
|
245
252
|
```
|
|
246
253
|
|
|
247
254
|
## Template
|
|
@@ -256,7 +263,7 @@ import { BadgeModule } from '@exhaustive-ui/core/badge';
|
|
|
256
263
|
|
|
257
264
|
@Component({
|
|
258
265
|
template: `
|
|
259
|
-
<div class="card flex justify-
|
|
266
|
+
<div class="card flex justify-center">
|
|
260
267
|
<p-accordion value="0">
|
|
261
268
|
<p-accordion-panel value="0">
|
|
262
269
|
<p-accordion-header>
|
|
@@ -268,7 +275,7 @@ import { BadgeModule } from '@exhaustive-ui/core/badge';
|
|
|
268
275
|
}
|
|
269
276
|
</ng-template>
|
|
270
277
|
<span class="flex items-center gap-2 w-full">
|
|
271
|
-
<p-avatar image="https://exhaustive-ui.com/demo/avatar/amyelsner.png" shape="circle" />
|
|
278
|
+
<p-avatar image="https://exhaustive-ui.com/demo/avatar/amyelsner.png" ariaLabel="Amy Elsner" shape="circle" />
|
|
272
279
|
<span class="font-bold whitespace-nowrap">Amy Elsner</span>
|
|
273
280
|
<p-badge value="3" class="ml-auto mr-2" />
|
|
274
281
|
</span>
|
|
@@ -291,7 +298,7 @@ import { BadgeModule } from '@exhaustive-ui/core/badge';
|
|
|
291
298
|
}
|
|
292
299
|
</ng-template>
|
|
293
300
|
<span class="flex items-center gap-2 w-full">
|
|
294
|
-
<p-avatar image="https://exhaustive-ui.com/demo/avatar/onyamalimba.png" shape="circle" />
|
|
301
|
+
<p-avatar image="https://exhaustive-ui.com/demo/avatar/onyamalimba.png" ariaLabel="Onyama Limba" shape="circle" />
|
|
295
302
|
<span class="font-bold whitespace-nowrap">Onyama Limba</span>
|
|
296
303
|
<p-badge value="4" class="ml-auto mr-2" />
|
|
297
304
|
</span>
|
|
@@ -313,7 +320,7 @@ import { BadgeModule } from '@exhaustive-ui/core/badge';
|
|
|
313
320
|
}
|
|
314
321
|
</ng-template>
|
|
315
322
|
<span class="flex items-center gap-2 w-full">
|
|
316
|
-
<p-avatar image="https://exhaustive-ui.com/demo/avatar/ionibowcher.png" shape="circle" />
|
|
323
|
+
<p-avatar image="https://exhaustive-ui.com/demo/avatar/ionibowcher.png" ariaLabel="Ioni Bowcher" shape="circle" />
|
|
317
324
|
<span class="font-bold whitespace-nowrap">Ioni Bowcher</span>
|
|
318
325
|
<p-badge value="2" class="ml-auto mr-2" />
|
|
319
326
|
</span>
|
|
@@ -331,7 +338,8 @@ import { BadgeModule } from '@exhaustive-ui/core/badge';
|
|
|
331
338
|
standalone: true,
|
|
332
339
|
imports: [AccordionModule, AvatarModule, BadgeModule]
|
|
333
340
|
})
|
|
334
|
-
export class AccordionTemplateDemo {
|
|
341
|
+
export class AccordionTemplateDemo {
|
|
342
|
+
}
|
|
335
343
|
```
|
|
336
344
|
|
|
337
345
|
## Accordion
|
|
@@ -342,16 +350,16 @@ Accordion groups a collection of contents in tabs.
|
|
|
342
350
|
|
|
343
351
|
| Name | Type | Default | Description |
|
|
344
352
|
|------|------|---------|-------------|
|
|
345
|
-
| value |
|
|
346
|
-
| multiple |
|
|
347
|
-
| expandIcon |
|
|
348
|
-
| collapseIcon |
|
|
349
|
-
| selectOnFocus |
|
|
350
|
-
| motionOptions |
|
|
351
|
-
| dt |
|
|
352
|
-
| unstyled |
|
|
353
|
-
| pt |
|
|
354
|
-
| ptOptions |
|
|
353
|
+
| value | string \| number \| string[] \| number[] | undefined | Value of the active tab. |
|
|
354
|
+
| multiple | boolean | false | When enabled, multiple tabs can be activated at the same time. |
|
|
355
|
+
| expandIcon | string | - | Icon of a collapsed tab. |
|
|
356
|
+
| collapseIcon | string | - | Icon of an expanded tab. |
|
|
357
|
+
| selectOnFocus | boolean | false | When enabled, the focused tab is activated. |
|
|
358
|
+
| motionOptions | MotionOptions | - | The motion options. |
|
|
359
|
+
| dt | Object | undefined | Defines scoped design tokens of the component. |
|
|
360
|
+
| unstyled | boolean | undefined | Indicates whether the component should be rendered without styles. |
|
|
361
|
+
| pt | AccordionPassThrough | undefined | Used to pass attributes to DOM elements inside the component. |
|
|
362
|
+
| ptOptions | PassThroughOptions | undefined | Used to configure passthrough(pt) options of the component. |
|
|
355
363
|
|
|
356
364
|
### Emits
|
|
357
365
|
|