@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
|
@@ -12,17 +12,19 @@ When autoResize is enabled, textarea grows instead of displaying a scrollbar.
|
|
|
12
12
|
|
|
13
13
|
```typescript
|
|
14
14
|
import { Component } from '@angular/core';
|
|
15
|
+
import { TextareaModule } from '@exhaustive-ui/core/textarea';
|
|
15
16
|
|
|
16
17
|
@Component({
|
|
17
18
|
template: `
|
|
18
19
|
<div class="card flex justify-center">
|
|
19
|
-
<textarea rows="5" cols="30" pTextarea [autoResize]="true"></textarea>
|
|
20
|
+
<textarea rows="5" cols="30" pTextarea [autoResize]="true" aria-label="Message"></textarea>
|
|
20
21
|
</div>
|
|
21
22
|
`,
|
|
22
23
|
standalone: true,
|
|
23
|
-
imports: []
|
|
24
|
+
imports: [TextareaModule]
|
|
24
25
|
})
|
|
25
|
-
export class TextareaAutoresizeDemo {
|
|
26
|
+
export class TextareaAutoresizeDemo {
|
|
27
|
+
}
|
|
26
28
|
```
|
|
27
29
|
|
|
28
30
|
## Basic
|
|
@@ -32,15 +34,16 @@ Textarea is applied to an input field with pTextarea directive.
|
|
|
32
34
|
```typescript
|
|
33
35
|
import { Component } from '@angular/core';
|
|
34
36
|
import { FormsModule } from '@angular/forms';
|
|
37
|
+
import { TextareaModule } from '@exhaustive-ui/core/textarea';
|
|
35
38
|
|
|
36
39
|
@Component({
|
|
37
40
|
template: `
|
|
38
41
|
<div class="card flex justify-center">
|
|
39
|
-
<textarea rows="5" cols="30" pTextarea [(ngModel)]="value"></textarea>
|
|
42
|
+
<textarea rows="5" cols="30" pTextarea [(ngModel)]="value" aria-label="Message"></textarea>
|
|
40
43
|
</div>
|
|
41
44
|
`,
|
|
42
45
|
standalone: true,
|
|
43
|
-
imports: [FormsModule]
|
|
46
|
+
imports: [FormsModule, TextareaModule]
|
|
44
47
|
})
|
|
45
48
|
export class TextareaBasicDemo {
|
|
46
49
|
value!: string;
|
|
@@ -53,17 +56,19 @@ When disabled is present, the element cannot be edited and focused.
|
|
|
53
56
|
|
|
54
57
|
```typescript
|
|
55
58
|
import { Component } from '@angular/core';
|
|
59
|
+
import { TextareaModule } from '@exhaustive-ui/core/textarea';
|
|
56
60
|
|
|
57
61
|
@Component({
|
|
58
62
|
template: `
|
|
59
63
|
<div class="card flex justify-center">
|
|
60
|
-
<textarea rows="5" cols="30" pTextarea [disabled]="true"></textarea>
|
|
64
|
+
<textarea rows="5" cols="30" pTextarea [disabled]="true" aria-label="Message"></textarea>
|
|
61
65
|
</div>
|
|
62
66
|
`,
|
|
63
67
|
standalone: true,
|
|
64
|
-
imports: []
|
|
68
|
+
imports: [TextareaModule]
|
|
65
69
|
})
|
|
66
|
-
export class TextareaDisabledDemo {
|
|
70
|
+
export class TextareaDisabledDemo {
|
|
71
|
+
}
|
|
67
72
|
```
|
|
68
73
|
|
|
69
74
|
## Filled
|
|
@@ -73,15 +78,16 @@ Specify the variant property as filled to display the component with a higher vi
|
|
|
73
78
|
```typescript
|
|
74
79
|
import { Component } from '@angular/core';
|
|
75
80
|
import { FormsModule } from '@angular/forms';
|
|
81
|
+
import { TextareaModule } from '@exhaustive-ui/core/textarea';
|
|
76
82
|
|
|
77
83
|
@Component({
|
|
78
84
|
template: `
|
|
79
85
|
<div class="card flex justify-center">
|
|
80
|
-
<textarea [(ngModel)]="value" [variant]="'filled'" rows="5" cols="30" pTextarea></textarea>
|
|
86
|
+
<textarea [(ngModel)]="value" [variant]="'filled'" rows="5" cols="30" pTextarea aria-label="Message"></textarea>
|
|
81
87
|
</div>
|
|
82
88
|
`,
|
|
83
89
|
standalone: true,
|
|
84
|
-
imports: [FormsModule]
|
|
90
|
+
imports: [FormsModule, TextareaModule]
|
|
85
91
|
})
|
|
86
92
|
export class TextareaFilledDemo {
|
|
87
93
|
value!: string;
|
|
@@ -95,7 +101,9 @@ A floating label appears on top of the input field when focused. Visit FloatLabe
|
|
|
95
101
|
```typescript
|
|
96
102
|
import { Component } from '@angular/core';
|
|
97
103
|
import { FormsModule } from '@angular/forms';
|
|
104
|
+
import { RouterModule } from '@angular/router';
|
|
98
105
|
import { FloatLabelModule } from '@exhaustive-ui/core/floatlabel';
|
|
106
|
+
import { TextareaModule } from '@exhaustive-ui/core/textarea';
|
|
99
107
|
|
|
100
108
|
@Component({
|
|
101
109
|
template: `
|
|
@@ -115,11 +123,13 @@ import { FloatLabelModule } from '@exhaustive-ui/core/floatlabel';
|
|
|
115
123
|
</div>
|
|
116
124
|
`,
|
|
117
125
|
standalone: true,
|
|
118
|
-
imports: [FloatLabelModule,
|
|
126
|
+
imports: [FormsModule, RouterModule, FloatLabelModule, TextareaModule]
|
|
119
127
|
})
|
|
120
128
|
export class TextareaFloatlabelDemo {
|
|
121
129
|
value1: string = '';
|
|
130
|
+
|
|
122
131
|
value2: string = '';
|
|
132
|
+
|
|
123
133
|
value3: string = '';
|
|
124
134
|
}
|
|
125
135
|
```
|
|
@@ -131,15 +141,16 @@ The fluid prop makes the component take up the full width of its container when
|
|
|
131
141
|
```typescript
|
|
132
142
|
import { Component } from '@angular/core';
|
|
133
143
|
import { FormsModule } from '@angular/forms';
|
|
144
|
+
import { TextareaModule } from '@exhaustive-ui/core/textarea';
|
|
134
145
|
|
|
135
146
|
@Component({
|
|
136
147
|
template: `
|
|
137
148
|
<div class="card">
|
|
138
|
-
<textarea rows="5" cols="30" pTextarea [(ngModel)]="value" fluid></textarea>
|
|
149
|
+
<textarea rows="5" cols="30" pTextarea [(ngModel)]="value" fluid aria-label="Message"></textarea>
|
|
139
150
|
</div>
|
|
140
151
|
`,
|
|
141
152
|
standalone: true,
|
|
142
|
-
imports: [FormsModule]
|
|
153
|
+
imports: [FormsModule, TextareaModule]
|
|
143
154
|
})
|
|
144
155
|
export class TextareaFluidDemo {
|
|
145
156
|
value!: string;
|
|
@@ -153,7 +164,9 @@ IftaLabel is used to create infield top aligned labels. Visit IftaLabel document
|
|
|
153
164
|
```typescript
|
|
154
165
|
import { Component } from '@angular/core';
|
|
155
166
|
import { FormsModule } from '@angular/forms';
|
|
167
|
+
import { RouterModule } from '@angular/router';
|
|
156
168
|
import { IftaLabelModule } from '@exhaustive-ui/core/iftalabel';
|
|
169
|
+
import { TextareaModule } from '@exhaustive-ui/core/textarea';
|
|
157
170
|
|
|
158
171
|
@Component({
|
|
159
172
|
template: `
|
|
@@ -165,7 +178,7 @@ import { IftaLabelModule } from '@exhaustive-ui/core/iftalabel';
|
|
|
165
178
|
</div>
|
|
166
179
|
`,
|
|
167
180
|
standalone: true,
|
|
168
|
-
imports: [IftaLabelModule,
|
|
181
|
+
imports: [FormsModule, RouterModule, IftaLabelModule, TextareaModule]
|
|
169
182
|
})
|
|
170
183
|
export class TextareaIftalabelDemo {
|
|
171
184
|
value: string = '';
|
|
@@ -179,6 +192,7 @@ The invalid state is applied using the invalid property to indicate failed va
|
|
|
179
192
|
```typescript
|
|
180
193
|
import { Component } from '@angular/core';
|
|
181
194
|
import { FormsModule } from '@angular/forms';
|
|
195
|
+
import { TextareaModule } from '@exhaustive-ui/core/textarea';
|
|
182
196
|
|
|
183
197
|
@Component({
|
|
184
198
|
template: `
|
|
@@ -187,7 +201,7 @@ import { FormsModule } from '@angular/forms';
|
|
|
187
201
|
</div>
|
|
188
202
|
`,
|
|
189
203
|
standalone: true,
|
|
190
|
-
imports: [FormsModule]
|
|
204
|
+
imports: [FormsModule, TextareaModule]
|
|
191
205
|
})
|
|
192
206
|
export class TextareaInvalidDemo {
|
|
193
207
|
value!: string;
|
|
@@ -200,17 +214,20 @@ InputText has built-in key filtering support to block certain keys, refer to key
|
|
|
200
214
|
|
|
201
215
|
```typescript
|
|
202
216
|
import { Component } from '@angular/core';
|
|
217
|
+
import { KeyFilterModule } from '@exhaustive-ui/core/keyfilter';
|
|
218
|
+
import { TextareaModule } from '@exhaustive-ui/core/textarea';
|
|
203
219
|
|
|
204
220
|
@Component({
|
|
205
221
|
template: `
|
|
206
222
|
<div class="card flex justify-center">
|
|
207
|
-
<textarea pKeyFilter="int" rows="5" cols="30" pTextarea></textarea>
|
|
223
|
+
<textarea pKeyFilter="int" rows="5" cols="30" pTextarea aria-label="Number"></textarea>
|
|
208
224
|
</div>
|
|
209
225
|
`,
|
|
210
226
|
standalone: true,
|
|
211
|
-
imports: []
|
|
227
|
+
imports: [KeyFilterModule, TextareaModule]
|
|
212
228
|
})
|
|
213
|
-
export class TextareaKeyfilterDemo {
|
|
229
|
+
export class TextareaKeyfilterDemo {
|
|
230
|
+
}
|
|
214
231
|
```
|
|
215
232
|
|
|
216
233
|
## reactiveforms-doc
|
|
@@ -219,11 +236,13 @@ Textarea can also be used with reactive forms. In this case, the formControlName
|
|
|
219
236
|
|
|
220
237
|
```typescript
|
|
221
238
|
import { Component, inject } from '@angular/core';
|
|
222
|
-
import { ReactiveFormsModule } from '@angular/forms';
|
|
239
|
+
import { FormBuilder, FormGroup, ReactiveFormsModule, Validators } from '@angular/forms';
|
|
240
|
+
import { CommonModule } from '@angular/common';
|
|
241
|
+
import { MessageService } from '@exhaustive-ui/core/api';
|
|
242
|
+
import { ButtonModule } from '@exhaustive-ui/core/button';
|
|
223
243
|
import { MessageModule } from '@exhaustive-ui/core/message';
|
|
244
|
+
import { TextareaModule } from '@exhaustive-ui/core/textarea';
|
|
224
245
|
import { ToastModule } from '@exhaustive-ui/core/toast';
|
|
225
|
-
import { ButtonModule } from '@exhaustive-ui/core/button';
|
|
226
|
-
import { MessageService } from '@exhaustive-ui/core/api';
|
|
227
246
|
|
|
228
247
|
@Component({
|
|
229
248
|
template: `
|
|
@@ -231,7 +250,7 @@ import { MessageService } from '@exhaustive-ui/core/api';
|
|
|
231
250
|
<div class="card flex justify-center">
|
|
232
251
|
<form [formGroup]="exampleForm" (ngSubmit)="onSubmit()" class="flex flex-col gap-4">
|
|
233
252
|
<div class="flex flex-col gap-1">
|
|
234
|
-
<textarea rows="5" cols="30" pTextarea formControlName="address" [invalid]="isInvalid('address')"></textarea>
|
|
253
|
+
<textarea rows="5" cols="30" pTextarea formControlName="address" aria-label="Address" [invalid]="isInvalid('address')"></textarea>
|
|
235
254
|
@if (isInvalid('address')) {
|
|
236
255
|
<p-message severity="error" size="small" variant="simple">Address is required..</p-message>
|
|
237
256
|
}
|
|
@@ -241,18 +260,22 @@ import { MessageService } from '@exhaustive-ui/core/api';
|
|
|
241
260
|
</div>
|
|
242
261
|
`,
|
|
243
262
|
standalone: true,
|
|
244
|
-
imports: [
|
|
263
|
+
imports: [CommonModule, ReactiveFormsModule, ButtonModule, MessageModule, TextareaModule, ToastModule],
|
|
264
|
+
providers: [MessageService]
|
|
245
265
|
})
|
|
246
266
|
export class TextareaReactiveformsDemo {
|
|
267
|
+
private fb = inject(FormBuilder);
|
|
268
|
+
|
|
247
269
|
messageService = inject(MessageService);
|
|
248
|
-
|
|
270
|
+
|
|
249
271
|
exampleForm: FormGroup | undefined;
|
|
272
|
+
|
|
250
273
|
formSubmitted: boolean = false;
|
|
251
274
|
|
|
252
275
|
constructor() {
|
|
253
276
|
this.exampleForm = this.fb.group({
|
|
254
|
-
|
|
255
|
-
|
|
277
|
+
address: ['', Validators.required]
|
|
278
|
+
});
|
|
256
279
|
}
|
|
257
280
|
|
|
258
281
|
onSubmit() {
|
|
@@ -278,10 +301,11 @@ Textarea can also be used with Angular Signal Forms , the @angular/forms/signals
|
|
|
278
301
|
```typescript
|
|
279
302
|
import { Component, inject, signal } from '@angular/core';
|
|
280
303
|
import { form, FormField, required, submit } from '@angular/forms/signals';
|
|
281
|
-
import { MessageModule } from '@exhaustive-ui/core/message';
|
|
282
|
-
import { ToastModule } from '@exhaustive-ui/core/toast';
|
|
283
|
-
import { ButtonModule } from '@exhaustive-ui/core/button';
|
|
284
304
|
import { MessageService } from '@exhaustive-ui/core/api';
|
|
305
|
+
import { TextareaModule } from '@exhaustive-ui/core/textarea';
|
|
306
|
+
import { ButtonModule } from '@exhaustive-ui/core/button';
|
|
307
|
+
import { ToastModule } from '@exhaustive-ui/core/toast';
|
|
308
|
+
import { MessageModule } from '@exhaustive-ui/core/message';
|
|
285
309
|
|
|
286
310
|
@Component({
|
|
287
311
|
template: `
|
|
@@ -289,7 +313,7 @@ import { MessageService } from '@exhaustive-ui/core/api';
|
|
|
289
313
|
<div class="card flex justify-center">
|
|
290
314
|
<form novalidate (submit)="onSubmit($event)" class="flex flex-col gap-4">
|
|
291
315
|
<div class="flex flex-col gap-1">
|
|
292
|
-
<textarea rows="5" cols="30" pTextarea [formField]="exampleForm.address"></textarea>
|
|
316
|
+
<textarea rows="5" cols="30" pTextarea [formField]="exampleForm.address" aria-label="Address"></textarea>
|
|
293
317
|
@let address = exampleForm.address();
|
|
294
318
|
@if (address.invalid() && address.touched()) {
|
|
295
319
|
<p-message severity="error" size="small" variant="simple">Address is required.</p-message>
|
|
@@ -300,11 +324,14 @@ import { MessageService } from '@exhaustive-ui/core/api';
|
|
|
300
324
|
</div>
|
|
301
325
|
`,
|
|
302
326
|
standalone: true,
|
|
303
|
-
imports: [
|
|
327
|
+
imports: [FormField, TextareaModule, ButtonModule, ToastModule, MessageModule],
|
|
328
|
+
providers: [MessageService]
|
|
304
329
|
})
|
|
305
330
|
export class TextareaSignalformsDemo {
|
|
306
331
|
messageService = inject(MessageService);
|
|
332
|
+
|
|
307
333
|
model = signal({ address: '' });
|
|
334
|
+
|
|
308
335
|
exampleForm = form(this.model, (f) => {
|
|
309
336
|
required(f.address);
|
|
310
337
|
});
|
|
@@ -326,6 +353,7 @@ Textarea provides small and large sizes as alternatives to the base.
|
|
|
326
353
|
```typescript
|
|
327
354
|
import { Component } from '@angular/core';
|
|
328
355
|
import { FormsModule } from '@angular/forms';
|
|
356
|
+
import { TextareaModule } from '@exhaustive-ui/core/textarea';
|
|
329
357
|
|
|
330
358
|
@Component({
|
|
331
359
|
template: `
|
|
@@ -336,11 +364,13 @@ import { FormsModule } from '@angular/forms';
|
|
|
336
364
|
</div>
|
|
337
365
|
`,
|
|
338
366
|
standalone: true,
|
|
339
|
-
imports: [FormsModule]
|
|
367
|
+
imports: [FormsModule, TextareaModule]
|
|
340
368
|
})
|
|
341
369
|
export class TextareaSizesDemo {
|
|
342
370
|
value1!: string;
|
|
371
|
+
|
|
343
372
|
value2!: string;
|
|
373
|
+
|
|
344
374
|
value3!: string;
|
|
345
375
|
}
|
|
346
376
|
```
|
|
@@ -350,10 +380,12 @@ export class TextareaSizesDemo {
|
|
|
350
380
|
```typescript
|
|
351
381
|
import { Component, inject } from '@angular/core';
|
|
352
382
|
import { FormsModule } from '@angular/forms';
|
|
383
|
+
import { CommonModule } from '@angular/common';
|
|
384
|
+
import { MessageService } from '@exhaustive-ui/core/api';
|
|
385
|
+
import { ButtonModule } from '@exhaustive-ui/core/button';
|
|
353
386
|
import { MessageModule } from '@exhaustive-ui/core/message';
|
|
387
|
+
import { TextareaModule } from '@exhaustive-ui/core/textarea';
|
|
354
388
|
import { ToastModule } from '@exhaustive-ui/core/toast';
|
|
355
|
-
import { ButtonModule } from '@exhaustive-ui/core/button';
|
|
356
|
-
import { MessageService } from '@exhaustive-ui/core/api';
|
|
357
389
|
|
|
358
390
|
@Component({
|
|
359
391
|
template: `
|
|
@@ -361,7 +393,7 @@ import { MessageService } from '@exhaustive-ui/core/api';
|
|
|
361
393
|
<div class="card flex justify-center">
|
|
362
394
|
<form #exampleForm="ngForm" (ngSubmit)="onSubmit(exampleForm)" (ngSubmit)="onSubmit(exampleForm)" class="flex flex-col gap-4">
|
|
363
395
|
<div class="flex flex-col gap-1">
|
|
364
|
-
<textarea name="address" #address="ngModel" rows="5" cols="30" [(ngModel)]="value" pTextarea [invalid]="address.invalid && (address.touched || exampleForm.submitted)" required></textarea>
|
|
396
|
+
<textarea name="address" aria-label="Address" #address="ngModel" rows="5" cols="30" [(ngModel)]="value" pTextarea [invalid]="address.invalid && (address.touched || exampleForm.submitted)" required></textarea>
|
|
365
397
|
@if (address.invalid && (address.touched || exampleForm.submitted)) {
|
|
366
398
|
<p-message severity="error" size="small" variant="simple">Address is required.</p-message>
|
|
367
399
|
}
|
|
@@ -371,11 +403,14 @@ import { MessageService } from '@exhaustive-ui/core/api';
|
|
|
371
403
|
</div>
|
|
372
404
|
`,
|
|
373
405
|
standalone: true,
|
|
374
|
-
imports: [
|
|
406
|
+
imports: [CommonModule, FormsModule, ButtonModule, MessageModule, TextareaModule, ToastModule],
|
|
407
|
+
providers: [MessageService]
|
|
375
408
|
})
|
|
376
409
|
export class TextareaTemplatedrivenformsDemo {
|
|
377
410
|
messageService = inject(MessageService);
|
|
411
|
+
|
|
378
412
|
items: any[] = [];
|
|
413
|
+
|
|
379
414
|
value: any;
|
|
380
415
|
|
|
381
416
|
onSubmit(form: any) {
|
|
@@ -395,17 +430,17 @@ Textarea adds styling and autoResize functionality to standard textarea element.
|
|
|
395
430
|
|
|
396
431
|
| Name | Type | Default | Description |
|
|
397
432
|
|------|------|---------|-------------|
|
|
398
|
-
| dt |
|
|
399
|
-
| unstyled |
|
|
400
|
-
| pt |
|
|
401
|
-
| ptOptions |
|
|
402
|
-
| pTextareaPT |
|
|
403
|
-
| pTextareaUnstyled |
|
|
404
|
-
| autoResize |
|
|
405
|
-
| pSize |
|
|
406
|
-
| variant |
|
|
407
|
-
| fluid |
|
|
408
|
-
| invalid |
|
|
433
|
+
| dt | Object | undefined | Defines scoped design tokens of the component. |
|
|
434
|
+
| unstyled | boolean | undefined | Indicates whether the component should be rendered without styles. |
|
|
435
|
+
| pt | TextareaPassThrough | undefined | Used to pass attributes to DOM elements inside the component. |
|
|
436
|
+
| ptOptions | PassThroughOptions | undefined | Used to configure passthrough(pt) options of the component. |
|
|
437
|
+
| pTextareaPT | TextareaPassThrough | undefined | Used to pass attributes to DOM elements inside the Textarea component. |
|
|
438
|
+
| pTextareaUnstyled | boolean | undefined | Indicates whether the component should be rendered without styles. |
|
|
439
|
+
| autoResize | boolean | - | When present, textarea size changes as being typed. |
|
|
440
|
+
| pSize | "small" \| "large" | - | Defines the size of the component. |
|
|
441
|
+
| variant | "outlined" \| "filled" | undefined | Specifies the input variant of the component. |
|
|
442
|
+
| fluid | boolean | undefined | Spans 100% width of the container when enabled. |
|
|
443
|
+
| invalid | boolean | false | When present, it specifies that the component should have invalid state style. |
|
|
409
444
|
|
|
410
445
|
### Emits
|
|
411
446
|
|
|
@@ -12,8 +12,8 @@ TieredMenu requires a collection of menuitems as its model .
|
|
|
12
12
|
|
|
13
13
|
```typescript
|
|
14
14
|
import { Component, OnInit } from '@angular/core';
|
|
15
|
-
import { TieredMenuModule } from '@exhaustive-ui/core/tieredmenu';
|
|
16
15
|
import { MenuItem } from '@exhaustive-ui/core/api';
|
|
16
|
+
import { TieredMenuModule } from '@exhaustive-ui/core/tieredmenu';
|
|
17
17
|
|
|
18
18
|
@Component({
|
|
19
19
|
template: `
|
|
@@ -107,9 +107,9 @@ The command property defines the callback to run when an item is activated by cl
|
|
|
107
107
|
|
|
108
108
|
```typescript
|
|
109
109
|
import { Component, OnInit, inject } from '@angular/core';
|
|
110
|
+
import { MenuItem, MessageService } from '@exhaustive-ui/core/api';
|
|
110
111
|
import { TieredMenuModule } from '@exhaustive-ui/core/tieredmenu';
|
|
111
112
|
import { ToastModule } from '@exhaustive-ui/core/toast';
|
|
112
|
-
import { MenuItem, MessageService } from '@exhaustive-ui/core/api';
|
|
113
113
|
|
|
114
114
|
@Component({
|
|
115
115
|
template: `
|
|
@@ -124,6 +124,7 @@ import { MenuItem, MessageService } from '@exhaustive-ui/core/api';
|
|
|
124
124
|
})
|
|
125
125
|
export class TieredmenuCommandDemo implements OnInit {
|
|
126
126
|
private messageService = inject(MessageService);
|
|
127
|
+
|
|
127
128
|
items: MenuItem[] | undefined;
|
|
128
129
|
|
|
129
130
|
ngOnInit() {
|
|
@@ -194,9 +195,9 @@ Popup mode is enabled by adding popup property and calling toggle method with an
|
|
|
194
195
|
|
|
195
196
|
```typescript
|
|
196
197
|
import { Component, OnInit } from '@angular/core';
|
|
197
|
-
import { ButtonModule } from '@exhaustive-ui/core/button';
|
|
198
|
-
import { TieredMenuModule } from '@exhaustive-ui/core/tieredmenu';
|
|
199
198
|
import { MenuItem } from '@exhaustive-ui/core/api';
|
|
199
|
+
import { TieredMenuModule } from '@exhaustive-ui/core/tieredmenu';
|
|
200
|
+
import { ButtonModule } from '@exhaustive-ui/core/button';
|
|
200
201
|
|
|
201
202
|
@Component({
|
|
202
203
|
template: `
|
|
@@ -206,7 +207,7 @@ import { MenuItem } from '@exhaustive-ui/core/api';
|
|
|
206
207
|
</div>
|
|
207
208
|
`,
|
|
208
209
|
standalone: true,
|
|
209
|
-
imports: [
|
|
210
|
+
imports: [TieredMenuModule, ButtonModule]
|
|
210
211
|
})
|
|
211
212
|
export class TieredmenuPopupDemo implements OnInit {
|
|
212
213
|
items: MenuItem[] | undefined;
|
|
@@ -290,9 +291,10 @@ export class TieredmenuPopupDemo implements OnInit {
|
|
|
290
291
|
Menu items support navigation via routerLink, programmatic routing using commands, or external URLs.
|
|
291
292
|
|
|
292
293
|
```typescript
|
|
293
|
-
import { Component, OnInit } from '@angular/core';
|
|
294
|
-
import {
|
|
294
|
+
import { Component, OnInit, inject } from '@angular/core';
|
|
295
|
+
import { Router } from '@angular/router';
|
|
295
296
|
import { MenuItem } from '@exhaustive-ui/core/api';
|
|
297
|
+
import { TieredMenuModule } from '@exhaustive-ui/core/tieredmenu';
|
|
296
298
|
|
|
297
299
|
@Component({
|
|
298
300
|
template: `
|
|
@@ -304,6 +306,8 @@ import { MenuItem } from '@exhaustive-ui/core/api';
|
|
|
304
306
|
imports: [TieredMenuModule]
|
|
305
307
|
})
|
|
306
308
|
export class TieredmenuRouterDemo implements OnInit {
|
|
309
|
+
private router = inject(Router);
|
|
310
|
+
|
|
307
311
|
items: MenuItem[] | undefined;
|
|
308
312
|
|
|
309
313
|
ngOnInit() {
|
|
@@ -349,11 +353,12 @@ export class TieredmenuRouterDemo implements OnInit {
|
|
|
349
353
|
TieredMenu offers item customization with the item template that receives the menuitem instance from the model as a parameter.
|
|
350
354
|
|
|
351
355
|
```typescript
|
|
356
|
+
import { CommonModule } from '@angular/common';
|
|
352
357
|
import { Component, OnInit } from '@angular/core';
|
|
358
|
+
import { MenuItem } from '@exhaustive-ui/core/api';
|
|
353
359
|
import { BadgeModule } from '@exhaustive-ui/core/badge';
|
|
354
|
-
import { TieredMenuModule } from '@exhaustive-ui/core/tieredmenu';
|
|
355
360
|
import { RippleModule } from '@exhaustive-ui/core/ripple';
|
|
356
|
-
import {
|
|
361
|
+
import { TieredMenuModule } from '@exhaustive-ui/core/tieredmenu';
|
|
357
362
|
|
|
358
363
|
@Component({
|
|
359
364
|
template: `
|
|
@@ -372,7 +377,7 @@ import { MenuItem } from '@exhaustive-ui/core/api';
|
|
|
372
377
|
</div>
|
|
373
378
|
`,
|
|
374
379
|
standalone: true,
|
|
375
|
-
imports: [BadgeModule,
|
|
380
|
+
imports: [TieredMenuModule, BadgeModule, CommonModule, RippleModule]
|
|
376
381
|
})
|
|
377
382
|
export class TieredmenuTemplateDemo implements OnInit {
|
|
378
383
|
items: MenuItem[] | undefined;
|
|
@@ -469,25 +474,25 @@ TieredMenu displays submenus in nested overlays.
|
|
|
469
474
|
|
|
470
475
|
| Name | Type | Default | Description |
|
|
471
476
|
|------|------|---------|-------------|
|
|
472
|
-
| dt |
|
|
473
|
-
| unstyled |
|
|
474
|
-
| pt |
|
|
475
|
-
| ptOptions |
|
|
476
|
-
| model |
|
|
477
|
-
| popup |
|
|
478
|
-
| style |
|
|
479
|
-
| styleClass |
|
|
480
|
-
| breakpoint |
|
|
481
|
-
| autoZIndex |
|
|
482
|
-
| baseZIndex |
|
|
483
|
-
| autoDisplay |
|
|
484
|
-
| id |
|
|
485
|
-
| ariaLabel |
|
|
486
|
-
| ariaLabelledBy |
|
|
487
|
-
| disabled |
|
|
488
|
-
| tabindex |
|
|
489
|
-
| appendTo |
|
|
490
|
-
| motionOptions |
|
|
477
|
+
| dt | Object | undefined | Defines scoped design tokens of the component. |
|
|
478
|
+
| unstyled | boolean | undefined | Indicates whether the component should be rendered without styles. |
|
|
479
|
+
| pt | TieredMenuPassThrough | undefined | Used to pass attributes to DOM elements inside the component. |
|
|
480
|
+
| ptOptions | PassThroughOptions | undefined | Used to configure passthrough(pt) options of the component. |
|
|
481
|
+
| model | MenuItem[] | - | An array of menuitems. |
|
|
482
|
+
| popup | boolean | - | Defines if menu would displayed as a popup. |
|
|
483
|
+
| style | { [klass: string]: any } | - | Inline style of the component. |
|
|
484
|
+
| styleClass | string | - | Style class of the component. |
|
|
485
|
+
| breakpoint | string | '960px' | The breakpoint to define the maximum width boundary. |
|
|
486
|
+
| autoZIndex | boolean | true | Whether to automatically manage layering. |
|
|
487
|
+
| baseZIndex | number | 0 | Base zIndex value to use in layering. |
|
|
488
|
+
| autoDisplay | boolean | true | Whether to show a root submenu on mouse over. |
|
|
489
|
+
| id | string | - | Current id state as a string. |
|
|
490
|
+
| ariaLabel | string | - | Defines a string value that labels an interactive element. |
|
|
491
|
+
| ariaLabelledBy | string | - | Identifier of the underlying input element. |
|
|
492
|
+
| disabled | boolean | false | When present, it specifies that the component should be disabled. |
|
|
493
|
+
| tabindex | number | 0 | Index of the element in tabbing order. |
|
|
494
|
+
| appendTo | 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). |
|
|
495
|
+
| motionOptions | MotionOptions | - | The motion options. |
|
|
491
496
|
|
|
492
497
|
### Emits
|
|
493
498
|
|
|
@@ -50,11 +50,11 @@ export class TimelineAlignmentDemo {
|
|
|
50
50
|
|
|
51
51
|
constructor() {
|
|
52
52
|
this.events = [
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
53
|
+
{ status: 'Ordered', date: '15/10/2020 10:30', icon: 'pi pi-shopping-cart', color: '#9C27B0', image: 'game-controller.jpg' },
|
|
54
|
+
{ status: 'Processing', date: '15/10/2020 14:00', icon: 'pi pi-cog', color: '#673AB7' },
|
|
55
|
+
{ status: 'Shipped', date: '15/10/2020 16:15', icon: 'pi pi-shopping-cart', color: '#FF9800' },
|
|
56
|
+
{ status: 'Delivered', date: '16/10/2020 10:00', icon: 'pi pi-check', color: '#607D8B' }
|
|
57
|
+
];
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
60
|
```
|
|
@@ -85,11 +85,11 @@ export class TimelineBasicDemo {
|
|
|
85
85
|
|
|
86
86
|
constructor() {
|
|
87
87
|
this.events = [
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
88
|
+
{ status: 'Ordered', date: '15/10/2020 10:30', icon: 'pi pi-shopping-cart', color: '#9C27B0', image: 'game-controller.jpg' },
|
|
89
|
+
{ status: 'Processing', date: '15/10/2020 14:00', icon: 'pi pi-cog', color: '#673AB7' },
|
|
90
|
+
{ status: 'Shipped', date: '15/10/2020 16:15', icon: 'pi pi-shopping-cart', color: '#FF9800' },
|
|
91
|
+
{ status: 'Delivered', date: '16/10/2020 10:00', icon: 'pi pi-check', color: '#607D8B' }
|
|
92
|
+
];
|
|
93
93
|
}
|
|
94
94
|
}
|
|
95
95
|
```
|
|
@@ -172,11 +172,11 @@ export class TimelineOppositeDemo {
|
|
|
172
172
|
|
|
173
173
|
constructor() {
|
|
174
174
|
this.events = [
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
175
|
+
{ status: 'Ordered', date: '15/10/2020 10:30', icon: 'pi pi-shopping-cart', color: '#9C27B0', image: 'game-controller.jpg' },
|
|
176
|
+
{ status: 'Processing', date: '15/10/2020 14:00', icon: 'pi pi-cog', color: '#673AB7' },
|
|
177
|
+
{ status: 'Shipped', date: '15/10/2020 16:15', icon: 'pi pi-shopping-cart', color: '#FF9800' },
|
|
178
|
+
{ status: 'Delivered', date: '16/10/2020 10:00', icon: 'pi pi-check', color: '#607D8B' }
|
|
179
|
+
];
|
|
180
180
|
}
|
|
181
181
|
}
|
|
182
182
|
```
|
|
@@ -187,6 +187,7 @@ Sample implementation with custom content and styled markers.
|
|
|
187
187
|
|
|
188
188
|
```typescript
|
|
189
189
|
import { Component } from '@angular/core';
|
|
190
|
+
import { CommonModule } from '@angular/common';
|
|
190
191
|
import { ButtonModule } from '@exhaustive-ui/core/button';
|
|
191
192
|
import { CardModule } from '@exhaustive-ui/core/card';
|
|
192
193
|
import { TimelineModule } from '@exhaustive-ui/core/timeline';
|
|
@@ -222,18 +223,18 @@ interface EventItem {
|
|
|
222
223
|
</div>
|
|
223
224
|
`,
|
|
224
225
|
standalone: true,
|
|
225
|
-
imports: [
|
|
226
|
+
imports: [CommonModule, TimelineModule, CardModule, ButtonModule]
|
|
226
227
|
})
|
|
227
228
|
export class TimelineTemplateDemo {
|
|
228
229
|
events: EventItem[];
|
|
229
230
|
|
|
230
231
|
constructor() {
|
|
231
232
|
this.events = [
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
233
|
+
{ status: 'Ordered', date: '15/10/2020 10:30', icon: 'pi pi-shopping-cart', color: '#9C27B0', image: 'game-controller.jpg' },
|
|
234
|
+
{ status: 'Processing', date: '15/10/2020 14:00', icon: 'pi pi-cog', color: '#673AB7' },
|
|
235
|
+
{ status: 'Shipped', date: '15/10/2020 16:15', icon: 'pi pi-shopping-cart', color: '#FF9800' },
|
|
236
|
+
{ status: 'Delivered', date: '16/10/2020 10:00', icon: 'pi pi-check', color: '#607D8B' }
|
|
237
|
+
];
|
|
237
238
|
}
|
|
238
239
|
}
|
|
239
240
|
```
|
|
@@ -246,13 +247,13 @@ Timeline visualizes a series of chained events.
|
|
|
246
247
|
|
|
247
248
|
| Name | Type | Default | Description |
|
|
248
249
|
|------|------|---------|-------------|
|
|
249
|
-
| dt |
|
|
250
|
-
| unstyled |
|
|
251
|
-
| pt |
|
|
252
|
-
| ptOptions |
|
|
253
|
-
| value |
|
|
254
|
-
| align |
|
|
255
|
-
| layout |
|
|
250
|
+
| dt | Object | undefined | Defines scoped design tokens of the component. |
|
|
251
|
+
| unstyled | boolean | undefined | Indicates whether the component should be rendered without styles. |
|
|
252
|
+
| pt | TimelinePassThrough | undefined | Used to pass attributes to DOM elements inside the component. |
|
|
253
|
+
| ptOptions | PassThroughOptions | undefined | Used to configure passthrough(pt) options of the component. |
|
|
254
|
+
| value | any[] | - | An array of events to display. |
|
|
255
|
+
| align | string | 'left' | Position of the timeline bar relative to the content. Valid values are "left", "right" for vertical layout and "top", "bottom" for horizontal layout. |
|
|
256
|
+
| layout | "vertical" \| "horizontal" | 'vertical' | Orientation of the timeline. |
|
|
256
257
|
|
|
257
258
|
### Templates
|
|
258
259
|
|