@exhaustive-ui/mcp 22.4.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/README.md +13 -1
- package/data/cards/accordion.md +91 -0
- package/data/cards/animateonscroll.md +155 -0
- package/data/cards/autocomplete.md +109 -0
- package/data/cards/autofocus.md +36 -0
- package/data/cards/avatar.md +45 -0
- package/data/cards/badge.md +44 -0
- package/data/cards/blockui.md +51 -0
- package/data/cards/breadcrumb.md +56 -0
- package/data/cards/button.md +83 -0
- package/data/cards/card.md +49 -0
- package/data/cards/carousel.md +101 -0
- package/data/cards/cascadeselect.md +77 -0
- package/data/cards/chart.md +105 -0
- package/data/cards/checkbox.md +59 -0
- package/data/cards/chip.md +50 -0
- package/data/cards/classnames.md +91 -0
- package/data/cards/colorpicker.md +52 -0
- package/data/cards/confirmdialog.md +119 -0
- package/data/cards/confirmpopup.md +96 -0
- package/data/cards/contextmenu.md +60 -0
- package/data/cards/dataview.md +134 -0
- package/data/cards/datepicker.md +103 -0
- package/data/cards/dialog.md +89 -0
- package/data/cards/divider.md +55 -0
- package/data/cards/dock.md +106 -0
- package/data/cards/dragdrop.md +106 -0
- package/data/cards/drawer.md +62 -0
- package/data/cards/dynamicdialog.md +103 -0
- package/data/cards/editor.md +55 -0
- package/data/cards/fieldset.md +54 -0
- package/data/cards/fileinput.md +72 -0
- package/data/cards/fileupload.md +88 -0
- package/data/cards/floatlabel.md +41 -0
- package/data/cards/fluid.md +49 -0
- package/data/cards/focustrap.md +64 -0
- package/data/cards/galleria.md +94 -0
- package/data/cards/iconfield.md +45 -0
- package/data/cards/iftalabel.md +38 -0
- package/data/cards/image.md +58 -0
- package/data/cards/imagecompare.md +45 -0
- package/data/cards/inplace.md +56 -0
- package/data/cards/inputgroup.md +77 -0
- package/data/cards/inputmask.md +71 -0
- package/data/cards/inputnumber.md +78 -0
- package/data/cards/inputotp.md +60 -0
- package/data/cards/inputtext.md +41 -0
- package/data/cards/keyfilter.md +49 -0
- package/data/cards/knob.md +55 -0
- package/data/cards/listbox.md +105 -0
- package/data/cards/megamenu.md +96 -0
- package/data/cards/menu.md +64 -0
- package/data/cards/menubar.md +102 -0
- package/data/cards/message.md +51 -0
- package/data/cards/metergroup.md +53 -0
- package/data/cards/multiselect.md +115 -0
- package/data/cards/orderlist.md +96 -0
- package/data/cards/organizationchart.md +84 -0
- package/data/cards/overlay.md +63 -0
- package/data/cards/paginator.md +62 -0
- package/data/cards/panel.md +57 -0
- package/data/cards/panelmenu.md +94 -0
- package/data/cards/password.md +81 -0
- package/data/cards/picklist.md +106 -0
- package/data/cards/popover.md +53 -0
- package/data/cards/progressbar.md +42 -0
- package/data/cards/progressspinner.md +38 -0
- package/data/cards/radiobutton.md +52 -0
- package/data/cards/rating.md +56 -0
- package/data/cards/ripple.md +37 -0
- package/data/cards/scroller.md +32 -0
- package/data/cards/scrollpanel.md +50 -0
- package/data/cards/scrolltop.md +48 -0
- package/data/cards/select.md +108 -0
- package/data/cards/selectbutton.md +64 -0
- package/data/cards/skeleton.md +54 -0
- package/data/cards/slider.md +52 -0
- package/data/cards/speeddial.md +102 -0
- package/data/cards/splitbutton.md +96 -0
- package/data/cards/splitter.md +52 -0
- package/data/cards/stepper.md +125 -0
- package/data/cards/styleclass.md +46 -0
- package/data/cards/table.md +305 -0
- package/data/cards/tabs.md +97 -0
- package/data/cards/tag.md +41 -0
- package/data/cards/terminal.md +76 -0
- package/data/cards/textarea.md +45 -0
- package/data/cards/tieredmenu.md +121 -0
- package/data/cards/timeline.md +58 -0
- package/data/cards/toast.md +58 -0
- package/data/cards/togglebutton.md +59 -0
- package/data/cards/toggleswitch.md +52 -0
- package/data/cards/toolbar.md +74 -0
- package/data/cards/tooltip.md +43 -0
- package/data/cards/tree.md +93 -0
- package/data/cards/treeselect.md +98 -0
- package/data/cards/treetable.md +231 -0
- 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 -97
- 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 +65 -29
- 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 +231 -90
- 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 +128 -90
- 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/llms.md +4 -0
- 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 +93 -71
- 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 +524 -315
- 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 +4134 -4088
- package/data/llms-full.txt +8979 -6437
- package/data/llms.txt +100 -96
- package/data/manifest.json +183 -15
- package/data/pages/llms.md +29 -0
- package/data/pages/tailwind.md +20 -10
- package/data/snapshot.json +2 -2
- package/dist/index.d.mts +37 -2
- package/dist/index.mjs +1395 -1079
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -22,7 +22,7 @@ import { InputOtpModule } from '@exhaustive-ui/core/inputotp';
|
|
|
22
22
|
</div>
|
|
23
23
|
`,
|
|
24
24
|
standalone: true,
|
|
25
|
-
imports: [
|
|
25
|
+
imports: [FormsModule, InputOtpModule]
|
|
26
26
|
})
|
|
27
27
|
export class InputotpBasicDemo {
|
|
28
28
|
value: any;
|
|
@@ -45,7 +45,7 @@ import { InputOtpModule } from '@exhaustive-ui/core/inputotp';
|
|
|
45
45
|
</div>
|
|
46
46
|
`,
|
|
47
47
|
standalone: true,
|
|
48
|
-
imports: [
|
|
48
|
+
imports: [FormsModule, InputOtpModule]
|
|
49
49
|
})
|
|
50
50
|
export class InputotpIntegeronlyDemo {
|
|
51
51
|
value: any;
|
|
@@ -68,7 +68,7 @@ import { InputOtpModule } from '@exhaustive-ui/core/inputotp';
|
|
|
68
68
|
</div>
|
|
69
69
|
`,
|
|
70
70
|
standalone: true,
|
|
71
|
-
imports: [
|
|
71
|
+
imports: [FormsModule, InputOtpModule]
|
|
72
72
|
})
|
|
73
73
|
export class InputotpMaskDemo {
|
|
74
74
|
value: any;
|
|
@@ -81,12 +81,12 @@ InputOtp can also be used with reactive forms. In this case, the formControlName
|
|
|
81
81
|
|
|
82
82
|
```typescript
|
|
83
83
|
import { Component, inject } from '@angular/core';
|
|
84
|
-
import { ReactiveFormsModule } from '@angular/forms';
|
|
84
|
+
import { FormBuilder, FormGroup, Validators, ReactiveFormsModule } from '@angular/forms';
|
|
85
|
+
import { MessageService } from '@exhaustive-ui/core/api';
|
|
85
86
|
import { InputOtpModule } from '@exhaustive-ui/core/inputotp';
|
|
86
|
-
import { MessageModule } from '@exhaustive-ui/core/message';
|
|
87
|
-
import { ToastModule } from '@exhaustive-ui/core/toast';
|
|
88
87
|
import { ButtonModule } from '@exhaustive-ui/core/button';
|
|
89
|
-
import {
|
|
88
|
+
import { ToastModule } from '@exhaustive-ui/core/toast';
|
|
89
|
+
import { MessageModule } from '@exhaustive-ui/core/message';
|
|
90
90
|
|
|
91
91
|
@Component({
|
|
92
92
|
template: `
|
|
@@ -104,17 +104,22 @@ import { MessageService } from '@exhaustive-ui/core/api';
|
|
|
104
104
|
</div>
|
|
105
105
|
`,
|
|
106
106
|
standalone: true,
|
|
107
|
-
imports: [InputOtpModule,
|
|
107
|
+
imports: [ReactiveFormsModule, InputOtpModule, ButtonModule, ToastModule, MessageModule],
|
|
108
|
+
providers: [MessageService]
|
|
108
109
|
})
|
|
109
110
|
export class InputotpReactiveformsDemo {
|
|
111
|
+
private fb = inject(FormBuilder);
|
|
112
|
+
|
|
110
113
|
messageService = inject(MessageService);
|
|
114
|
+
|
|
111
115
|
exampleForm: FormGroup | undefined;
|
|
116
|
+
|
|
112
117
|
formSubmitted: boolean = false;
|
|
113
118
|
|
|
114
119
|
constructor() {
|
|
115
120
|
this.exampleForm = this.fb.group({
|
|
116
|
-
|
|
117
|
-
|
|
121
|
+
value: ['', [Validators.required, Validators.minLength(4)]]
|
|
122
|
+
});
|
|
118
123
|
}
|
|
119
124
|
|
|
120
125
|
onSubmit() {
|
|
@@ -139,9 +144,10 @@ A sample UI implementation with templating and additional elements.
|
|
|
139
144
|
|
|
140
145
|
```typescript
|
|
141
146
|
import { Component } from '@angular/core';
|
|
147
|
+
import { CommonModule } from '@angular/common';
|
|
142
148
|
import { FormsModule } from '@angular/forms';
|
|
143
|
-
import { ButtonModule } from '@exhaustive-ui/core/button';
|
|
144
149
|
import { InputOtpModule } from '@exhaustive-ui/core/inputotp';
|
|
150
|
+
import { ButtonModule } from '@exhaustive-ui/core/button';
|
|
145
151
|
|
|
146
152
|
@Component({
|
|
147
153
|
template: `
|
|
@@ -151,7 +157,7 @@ import { InputOtpModule } from '@exhaustive-ui/core/inputotp';
|
|
|
151
157
|
<p class="text-muted-color block mb-8">Please enter the code sent to your phone.</p>
|
|
152
158
|
<p-input-otp [(ngModel)]="value" [length]="6">
|
|
153
159
|
<ng-template #input let-token let-events="events" let-index="index">
|
|
154
|
-
<input type="text" [maxLength]="1" (input)="events.input($event)" (keydown)="events.keydown($event)" [attr.value]="token" class="custom-otp-input" />
|
|
160
|
+
<input type="text" [maxLength]="1" (input)="events.input($event)" (keydown)="events.keydown($event)" [attr.value]="token" class="custom-otp-input" [attr.aria-label]="'Digit ' + index" />
|
|
155
161
|
<div *ngIf="index === 3" class="px-4">
|
|
156
162
|
<i class="pi pi-minus"></i>
|
|
157
163
|
</div>
|
|
@@ -165,7 +171,7 @@ import { InputOtpModule } from '@exhaustive-ui/core/inputotp';
|
|
|
165
171
|
</div>
|
|
166
172
|
`,
|
|
167
173
|
standalone: true,
|
|
168
|
-
imports: [
|
|
174
|
+
imports: [CommonModule, FormsModule, InputOtpModule, ButtonModule]
|
|
169
175
|
})
|
|
170
176
|
export class InputotpSampleDemo {
|
|
171
177
|
value: any;
|
|
@@ -179,11 +185,11 @@ InputOtp can also be used with Angular Signal Forms , the @angular/forms/signals
|
|
|
179
185
|
```typescript
|
|
180
186
|
import { Component, inject, signal } from '@angular/core';
|
|
181
187
|
import { form, FormField, minLength, required, submit } from '@angular/forms/signals';
|
|
188
|
+
import { MessageService } from '@exhaustive-ui/core/api';
|
|
182
189
|
import { InputOtpModule } from '@exhaustive-ui/core/inputotp';
|
|
183
|
-
import { MessageModule } from '@exhaustive-ui/core/message';
|
|
184
|
-
import { ToastModule } from '@exhaustive-ui/core/toast';
|
|
185
190
|
import { ButtonModule } from '@exhaustive-ui/core/button';
|
|
186
|
-
import {
|
|
191
|
+
import { ToastModule } from '@exhaustive-ui/core/toast';
|
|
192
|
+
import { MessageModule } from '@exhaustive-ui/core/message';
|
|
187
193
|
|
|
188
194
|
@Component({
|
|
189
195
|
template: `
|
|
@@ -202,11 +208,14 @@ import { MessageService } from '@exhaustive-ui/core/api';
|
|
|
202
208
|
</div>
|
|
203
209
|
`,
|
|
204
210
|
standalone: true,
|
|
205
|
-
imports: [InputOtpModule,
|
|
211
|
+
imports: [FormField, InputOtpModule, ButtonModule, ToastModule, MessageModule],
|
|
212
|
+
providers: [MessageService]
|
|
206
213
|
})
|
|
207
214
|
export class InputotpSignalformsDemo {
|
|
208
215
|
messageService = inject(MessageService);
|
|
216
|
+
|
|
209
217
|
model = signal({ value: '' });
|
|
218
|
+
|
|
210
219
|
exampleForm = form(this.model, (f) => {
|
|
211
220
|
required(f.value);
|
|
212
221
|
minLength(f.value, 4);
|
|
@@ -240,11 +249,13 @@ import { InputOtpModule } from '@exhaustive-ui/core/inputotp';
|
|
|
240
249
|
</div>
|
|
241
250
|
`,
|
|
242
251
|
standalone: true,
|
|
243
|
-
imports: [
|
|
252
|
+
imports: [FormsModule, InputOtpModule]
|
|
244
253
|
})
|
|
245
254
|
export class InputotpSizesDemo {
|
|
246
255
|
value1: any;
|
|
256
|
+
|
|
247
257
|
value2: any;
|
|
258
|
+
|
|
248
259
|
value3: any;
|
|
249
260
|
}
|
|
250
261
|
```
|
|
@@ -262,14 +273,14 @@ import { InputOtpModule } from '@exhaustive-ui/core/inputotp';
|
|
|
262
273
|
template: `
|
|
263
274
|
<div class="card flex justify-center">
|
|
264
275
|
<p-input-otp [(ngModel)]="value">
|
|
265
|
-
<ng-template #input let-token let-events="events">
|
|
266
|
-
<input class="custom-otp-input" (keydown)="events.keydown($event)" (input)="events.input($event)" type="text" [attr.value]="token" [maxLength]="1" />
|
|
276
|
+
<ng-template #input let-token let-events="events" let-index="index">
|
|
277
|
+
<input class="custom-otp-input" (keydown)="events.keydown($event)" (input)="events.input($event)" type="text" [attr.value]="token" [maxLength]="1" [attr.aria-label]="'Digit ' + index" />
|
|
267
278
|
</ng-template>
|
|
268
279
|
</p-input-otp>
|
|
269
280
|
</div>
|
|
270
281
|
`,
|
|
271
282
|
standalone: true,
|
|
272
|
-
imports: [
|
|
283
|
+
imports: [FormsModule, InputOtpModule]
|
|
273
284
|
})
|
|
274
285
|
export class InputotpTemplateDemo {
|
|
275
286
|
value: any;
|
|
@@ -281,11 +292,11 @@ export class InputotpTemplateDemo {
|
|
|
281
292
|
```typescript
|
|
282
293
|
import { Component, inject } from '@angular/core';
|
|
283
294
|
import { FormsModule } from '@angular/forms';
|
|
295
|
+
import { MessageService } from '@exhaustive-ui/core/api';
|
|
284
296
|
import { InputOtpModule } from '@exhaustive-ui/core/inputotp';
|
|
285
|
-
import { MessageModule } from '@exhaustive-ui/core/message';
|
|
286
|
-
import { ToastModule } from '@exhaustive-ui/core/toast';
|
|
287
297
|
import { ButtonModule } from '@exhaustive-ui/core/button';
|
|
288
|
-
import {
|
|
298
|
+
import { ToastModule } from '@exhaustive-ui/core/toast';
|
|
299
|
+
import { MessageModule } from '@exhaustive-ui/core/message';
|
|
289
300
|
|
|
290
301
|
@Component({
|
|
291
302
|
template: `
|
|
@@ -303,10 +314,12 @@ import { MessageService } from '@exhaustive-ui/core/api';
|
|
|
303
314
|
</div>
|
|
304
315
|
`,
|
|
305
316
|
standalone: true,
|
|
306
|
-
imports: [InputOtpModule,
|
|
317
|
+
imports: [FormsModule, InputOtpModule, ButtonModule, ToastModule, MessageModule],
|
|
318
|
+
providers: [MessageService]
|
|
307
319
|
})
|
|
308
320
|
export class InputotpTemplatedrivenformsDemo {
|
|
309
321
|
messageService = inject(MessageService);
|
|
322
|
+
|
|
310
323
|
value: any;
|
|
311
324
|
|
|
312
325
|
onSubmit(form: any) {
|
|
@@ -326,23 +339,23 @@ Input Otp is used to enter one time passwords.
|
|
|
326
339
|
|
|
327
340
|
| Name | Type | Default | Description |
|
|
328
341
|
|------|------|---------|-------------|
|
|
329
|
-
| dt |
|
|
330
|
-
| unstyled |
|
|
331
|
-
| pt |
|
|
332
|
-
| ptOptions |
|
|
333
|
-
| required |
|
|
334
|
-
| invalid |
|
|
335
|
-
| disabled |
|
|
336
|
-
| name |
|
|
337
|
-
| readonly |
|
|
338
|
-
| tabindex |
|
|
339
|
-
| length |
|
|
340
|
-
| styleClass |
|
|
341
|
-
| mask |
|
|
342
|
-
| integerOnly |
|
|
343
|
-
| autofocus |
|
|
344
|
-
| variant |
|
|
345
|
-
| size |
|
|
342
|
+
| dt | Object | undefined | Defines scoped design tokens of the component. |
|
|
343
|
+
| unstyled | boolean | undefined | Indicates whether the component should be rendered without styles. |
|
|
344
|
+
| pt | InputOtpPassThrough | undefined | Used to pass attributes to DOM elements inside the component. |
|
|
345
|
+
| ptOptions | PassThroughOptions | undefined | Used to configure passthrough(pt) options of the component. |
|
|
346
|
+
| required | boolean | false | There must be a value (if set). |
|
|
347
|
+
| invalid | boolean | false | When present, it specifies that the component should have invalid state style. |
|
|
348
|
+
| disabled | boolean | false | When present, it specifies that the component should have disabled state style. |
|
|
349
|
+
| name | string | undefined | When present, it specifies that the name of the input. |
|
|
350
|
+
| readonly | boolean | - | When present, it specifies that an input field is read-only. |
|
|
351
|
+
| tabindex | number | - | Index of the element in tabbing order. |
|
|
352
|
+
| length | number | 4 | Number of characters to initiate. |
|
|
353
|
+
| styleClass | string | - | Style class of the input element. |
|
|
354
|
+
| mask | boolean | false | Mask pattern. |
|
|
355
|
+
| integerOnly | boolean | false | When present, it specifies that an input field is integer-only. |
|
|
356
|
+
| autofocus | boolean | - | When present, it specifies that the component should automatically get focus on load. |
|
|
357
|
+
| variant | "outlined" \| "filled" | undefined | Specifies the input variant of the component. |
|
|
358
|
+
| size | "small" \| "large" | undefined | Specifies the size of the component. |
|
|
346
359
|
|
|
347
360
|
### Emits
|
|
348
361
|
|
|
@@ -18,11 +18,11 @@ import { InputTextModule } from '@exhaustive-ui/core/inputtext';
|
|
|
18
18
|
@Component({
|
|
19
19
|
template: `
|
|
20
20
|
<div class="card flex justify-center">
|
|
21
|
-
<input type="text" pInputText [(ngModel)]="value" />
|
|
21
|
+
<input type="text" pInputText [(ngModel)]="value" aria-label="Name" />
|
|
22
22
|
</div>
|
|
23
23
|
`,
|
|
24
24
|
standalone: true,
|
|
25
|
-
imports: [
|
|
25
|
+
imports: [FormsModule, InputTextModule]
|
|
26
26
|
})
|
|
27
27
|
export class InputtextBasicDemo {
|
|
28
28
|
value: string;
|
|
@@ -41,11 +41,11 @@ import { InputTextModule } from '@exhaustive-ui/core/inputtext';
|
|
|
41
41
|
@Component({
|
|
42
42
|
template: `
|
|
43
43
|
<div class="card flex justify-center">
|
|
44
|
-
<input pInputText [disabled]="true" [(ngModel)]="value" />
|
|
44
|
+
<input pInputText [disabled]="true" [(ngModel)]="value" aria-label="Name" />
|
|
45
45
|
</div>
|
|
46
46
|
`,
|
|
47
47
|
standalone: true,
|
|
48
|
-
imports: [
|
|
48
|
+
imports: [FormsModule, InputTextModule]
|
|
49
49
|
})
|
|
50
50
|
export class InputtextDisabledDemo {
|
|
51
51
|
value: string | undefined = 'Disabled';
|
|
@@ -64,11 +64,11 @@ import { InputTextModule } from '@exhaustive-ui/core/inputtext';
|
|
|
64
64
|
@Component({
|
|
65
65
|
template: `
|
|
66
66
|
<div class="card flex justify-center">
|
|
67
|
-
<input type="text" pInputText [(ngModel)]="value" variant="filled" />
|
|
67
|
+
<input type="text" pInputText [(ngModel)]="value" variant="filled" aria-label="Name" />
|
|
68
68
|
</div>
|
|
69
69
|
`,
|
|
70
70
|
standalone: true,
|
|
71
|
-
imports: [
|
|
71
|
+
imports: [FormsModule, InputTextModule]
|
|
72
72
|
})
|
|
73
73
|
export class InputtextFilledDemo {
|
|
74
74
|
value: string;
|
|
@@ -82,8 +82,9 @@ FloatLabel visually integrates a label with its form element. Visit FloatLabel d
|
|
|
82
82
|
```typescript
|
|
83
83
|
import { Component } from '@angular/core';
|
|
84
84
|
import { FormsModule } from '@angular/forms';
|
|
85
|
-
import {
|
|
85
|
+
import { RouterModule } from '@angular/router';
|
|
86
86
|
import { InputTextModule } from '@exhaustive-ui/core/inputtext';
|
|
87
|
+
import { FloatLabelModule } from '@exhaustive-ui/core/floatlabel';
|
|
87
88
|
|
|
88
89
|
@Component({
|
|
89
90
|
template: `
|
|
@@ -103,11 +104,13 @@ import { InputTextModule } from '@exhaustive-ui/core/inputtext';
|
|
|
103
104
|
</div>
|
|
104
105
|
`,
|
|
105
106
|
standalone: true,
|
|
106
|
-
imports: [
|
|
107
|
+
imports: [FormsModule, InputTextModule, FloatLabelModule, RouterModule]
|
|
107
108
|
})
|
|
108
109
|
export class InputtextFloatlabelDemo {
|
|
109
110
|
value1: string | undefined;
|
|
111
|
+
|
|
110
112
|
value2: string | undefined;
|
|
113
|
+
|
|
111
114
|
value3: string | undefined;
|
|
112
115
|
}
|
|
113
116
|
```
|
|
@@ -124,11 +127,11 @@ import { InputTextModule } from '@exhaustive-ui/core/inputtext';
|
|
|
124
127
|
@Component({
|
|
125
128
|
template: `
|
|
126
129
|
<div class="card flex justify-center">
|
|
127
|
-
<input type="text" pInputText [(ngModel)]="value" fluid />
|
|
130
|
+
<input type="text" pInputText [(ngModel)]="value" fluid aria-label="Name" />
|
|
128
131
|
</div>
|
|
129
132
|
`,
|
|
130
133
|
standalone: true,
|
|
131
|
-
imports: [
|
|
134
|
+
imports: [FormsModule, InputTextModule]
|
|
132
135
|
})
|
|
133
136
|
export class InputtextFluidDemo {
|
|
134
137
|
value: string;
|
|
@@ -155,7 +158,7 @@ import { InputTextModule } from '@exhaustive-ui/core/inputtext';
|
|
|
155
158
|
</div>
|
|
156
159
|
`,
|
|
157
160
|
standalone: true,
|
|
158
|
-
imports: [
|
|
161
|
+
imports: [FormsModule, InputTextModule]
|
|
159
162
|
})
|
|
160
163
|
export class InputtextHelptextDemo {
|
|
161
164
|
value: string | undefined;
|
|
@@ -176,19 +179,20 @@ import { InputTextModule } from '@exhaustive-ui/core/inputtext';
|
|
|
176
179
|
<div class="card flex flex-wrap justify-center gap-4">
|
|
177
180
|
<span class="p-input-icon-left">
|
|
178
181
|
<i class="pi pi-search"></i>
|
|
179
|
-
<input type="text" pInputText [(ngModel)]="value" />
|
|
182
|
+
<input type="text" pInputText [(ngModel)]="value" aria-label="Search" />
|
|
180
183
|
</span>
|
|
181
184
|
<span class="p-input-icon-right">
|
|
182
185
|
<i class="pi pi-spin pi-spinner"></i>
|
|
183
|
-
<input type="text" pInputText [(ngModel)]="value2" />
|
|
186
|
+
<input type="text" pInputText [(ngModel)]="value2" aria-label="Search" />
|
|
184
187
|
</span>
|
|
185
188
|
</div>
|
|
186
189
|
`,
|
|
187
190
|
standalone: true,
|
|
188
|
-
imports: [
|
|
191
|
+
imports: [FormsModule, InputTextModule]
|
|
189
192
|
})
|
|
190
193
|
export class InputtextIconsDemo {
|
|
191
194
|
value: string | undefined;
|
|
195
|
+
|
|
192
196
|
value2: string | undefined;
|
|
193
197
|
}
|
|
194
198
|
```
|
|
@@ -200,8 +204,9 @@ IftaLabel is used to create infield top aligned labels. Visit IftaLabel document
|
|
|
200
204
|
```typescript
|
|
201
205
|
import { Component } from '@angular/core';
|
|
202
206
|
import { FormsModule } from '@angular/forms';
|
|
203
|
-
import {
|
|
207
|
+
import { RouterModule } from '@angular/router';
|
|
204
208
|
import { InputTextModule } from '@exhaustive-ui/core/inputtext';
|
|
209
|
+
import { IftaLabelModule } from '@exhaustive-ui/core/iftalabel';
|
|
205
210
|
|
|
206
211
|
@Component({
|
|
207
212
|
template: `
|
|
@@ -213,7 +218,7 @@ import { InputTextModule } from '@exhaustive-ui/core/inputtext';
|
|
|
213
218
|
</div>
|
|
214
219
|
`,
|
|
215
220
|
standalone: true,
|
|
216
|
-
imports: [
|
|
221
|
+
imports: [FormsModule, InputTextModule, IftaLabelModule, RouterModule]
|
|
217
222
|
})
|
|
218
223
|
export class InputtextIftalabelDemo {
|
|
219
224
|
value: string | undefined;
|
|
@@ -237,10 +242,11 @@ import { InputTextModule } from '@exhaustive-ui/core/inputtext';
|
|
|
237
242
|
</div>
|
|
238
243
|
`,
|
|
239
244
|
standalone: true,
|
|
240
|
-
imports: [
|
|
245
|
+
imports: [FormsModule, InputTextModule]
|
|
241
246
|
})
|
|
242
247
|
export class InputtextInvalidDemo {
|
|
243
248
|
value1: string | undefined;
|
|
249
|
+
|
|
244
250
|
value2: string | undefined;
|
|
245
251
|
}
|
|
246
252
|
```
|
|
@@ -253,6 +259,7 @@ InputText has built-in key filtering support to block certain keys, refer to key
|
|
|
253
259
|
import { Component } from '@angular/core';
|
|
254
260
|
import { FormsModule } from '@angular/forms';
|
|
255
261
|
import { InputTextModule } from '@exhaustive-ui/core/inputtext';
|
|
262
|
+
import { KeyFilterModule } from '@exhaustive-ui/core/keyfilter';
|
|
256
263
|
|
|
257
264
|
@Component({
|
|
258
265
|
template: `
|
|
@@ -261,7 +268,7 @@ import { InputTextModule } from '@exhaustive-ui/core/inputtext';
|
|
|
261
268
|
</div>
|
|
262
269
|
`,
|
|
263
270
|
standalone: true,
|
|
264
|
-
imports: [InputTextModule,
|
|
271
|
+
imports: [FormsModule, InputTextModule, KeyFilterModule]
|
|
265
272
|
})
|
|
266
273
|
export class InputtextKeyfilterDemo {
|
|
267
274
|
value: number | undefined;
|
|
@@ -272,12 +279,12 @@ export class InputtextKeyfilterDemo {
|
|
|
272
279
|
|
|
273
280
|
```typescript
|
|
274
281
|
import { Component, inject } from '@angular/core';
|
|
275
|
-
import { ReactiveFormsModule } from '@angular/forms';
|
|
276
|
-
import { MessageModule } from '@exhaustive-ui/core/message';
|
|
277
|
-
import { ToastModule } from '@exhaustive-ui/core/toast';
|
|
278
|
-
import { ButtonModule } from '@exhaustive-ui/core/button';
|
|
279
|
-
import { InputTextModule } from '@exhaustive-ui/core/inputtext';
|
|
282
|
+
import { FormBuilder, FormGroup, Validators, ReactiveFormsModule } from '@angular/forms';
|
|
280
283
|
import { MessageService } from '@exhaustive-ui/core/api';
|
|
284
|
+
import { InputTextModule } from '@exhaustive-ui/core/inputtext';
|
|
285
|
+
import { ButtonModule } from '@exhaustive-ui/core/button';
|
|
286
|
+
import { ToastModule } from '@exhaustive-ui/core/toast';
|
|
287
|
+
import { MessageModule } from '@exhaustive-ui/core/message';
|
|
281
288
|
|
|
282
289
|
@Component({
|
|
283
290
|
template: `
|
|
@@ -306,18 +313,23 @@ import { MessageService } from '@exhaustive-ui/core/api';
|
|
|
306
313
|
</div>
|
|
307
314
|
`,
|
|
308
315
|
standalone: true,
|
|
309
|
-
imports: [
|
|
316
|
+
imports: [ReactiveFormsModule, InputTextModule, ButtonModule, ToastModule, MessageModule],
|
|
317
|
+
providers: [MessageService]
|
|
310
318
|
})
|
|
311
319
|
export class InputtextReactiveformsDemo {
|
|
320
|
+
private fb = inject(FormBuilder);
|
|
321
|
+
|
|
312
322
|
messageService = inject(MessageService);
|
|
323
|
+
|
|
313
324
|
exampleForm: FormGroup;
|
|
314
|
-
|
|
325
|
+
|
|
326
|
+
formSubmitted = false;
|
|
315
327
|
|
|
316
328
|
constructor() {
|
|
317
329
|
this.exampleForm = this.fb.group({
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
330
|
+
username: ['', Validators.required],
|
|
331
|
+
email: ['', [Validators.required, Validators.email]]
|
|
332
|
+
});
|
|
321
333
|
}
|
|
322
334
|
|
|
323
335
|
onSubmit() {
|
|
@@ -343,11 +355,11 @@ InputText can also be used with Angular Signal Forms , the @angular/forms/signal
|
|
|
343
355
|
```typescript
|
|
344
356
|
import { Component, inject, signal } from '@angular/core';
|
|
345
357
|
import { email, form, FormField, required, submit } from '@angular/forms/signals';
|
|
346
|
-
import { MessageModule } from '@exhaustive-ui/core/message';
|
|
347
|
-
import { ToastModule } from '@exhaustive-ui/core/toast';
|
|
348
|
-
import { ButtonModule } from '@exhaustive-ui/core/button';
|
|
349
|
-
import { InputTextModule } from '@exhaustive-ui/core/inputtext';
|
|
350
358
|
import { MessageService } from '@exhaustive-ui/core/api';
|
|
359
|
+
import { InputTextModule } from '@exhaustive-ui/core/inputtext';
|
|
360
|
+
import { ButtonModule } from '@exhaustive-ui/core/button';
|
|
361
|
+
import { ToastModule } from '@exhaustive-ui/core/toast';
|
|
362
|
+
import { MessageModule } from '@exhaustive-ui/core/message';
|
|
351
363
|
|
|
352
364
|
@Component({
|
|
353
365
|
template: `
|
|
@@ -378,11 +390,14 @@ import { MessageService } from '@exhaustive-ui/core/api';
|
|
|
378
390
|
</div>
|
|
379
391
|
`,
|
|
380
392
|
standalone: true,
|
|
381
|
-
imports: [
|
|
393
|
+
imports: [FormField, InputTextModule, ButtonModule, ToastModule, MessageModule],
|
|
394
|
+
providers: [MessageService]
|
|
382
395
|
})
|
|
383
396
|
export class InputtextSignalformsDemo {
|
|
384
397
|
messageService = inject(MessageService);
|
|
398
|
+
|
|
385
399
|
model = signal({ username: '', email: '' });
|
|
400
|
+
|
|
386
401
|
exampleForm = form(this.model, (f) => {
|
|
387
402
|
required(f.username);
|
|
388
403
|
required(f.email);
|
|
@@ -417,11 +432,13 @@ import { InputTextModule } from '@exhaustive-ui/core/inputtext';
|
|
|
417
432
|
</div>
|
|
418
433
|
`,
|
|
419
434
|
standalone: true,
|
|
420
|
-
imports: [
|
|
435
|
+
imports: [FormsModule, InputTextModule]
|
|
421
436
|
})
|
|
422
437
|
export class InputtextSizesDemo {
|
|
423
438
|
value1: string | undefined;
|
|
439
|
+
|
|
424
440
|
value2: string | undefined;
|
|
441
|
+
|
|
425
442
|
value3: string | undefined;
|
|
426
443
|
}
|
|
427
444
|
```
|
|
@@ -431,11 +448,11 @@ export class InputtextSizesDemo {
|
|
|
431
448
|
```typescript
|
|
432
449
|
import { Component, inject } from '@angular/core';
|
|
433
450
|
import { FormsModule } from '@angular/forms';
|
|
434
|
-
import { MessageModule } from '@exhaustive-ui/core/message';
|
|
435
|
-
import { ToastModule } from '@exhaustive-ui/core/toast';
|
|
436
|
-
import { ButtonModule } from '@exhaustive-ui/core/button';
|
|
437
|
-
import { InputTextModule } from '@exhaustive-ui/core/inputtext';
|
|
438
451
|
import { MessageService } from '@exhaustive-ui/core/api';
|
|
452
|
+
import { InputTextModule } from '@exhaustive-ui/core/inputtext';
|
|
453
|
+
import { ButtonModule } from '@exhaustive-ui/core/button';
|
|
454
|
+
import { ToastModule } from '@exhaustive-ui/core/toast';
|
|
455
|
+
import { MessageModule } from '@exhaustive-ui/core/message';
|
|
439
456
|
|
|
440
457
|
@Component({
|
|
441
458
|
template: `
|
|
@@ -466,11 +483,16 @@ import { MessageService } from '@exhaustive-ui/core/api';
|
|
|
466
483
|
</div>
|
|
467
484
|
`,
|
|
468
485
|
standalone: true,
|
|
469
|
-
imports: [
|
|
486
|
+
imports: [FormsModule, InputTextModule, ButtonModule, ToastModule, MessageModule],
|
|
487
|
+
providers: [MessageService]
|
|
470
488
|
})
|
|
471
489
|
export class InputtextTemplatedrivenformsDemo {
|
|
472
490
|
messageService = inject(MessageService);
|
|
473
|
-
|
|
491
|
+
|
|
492
|
+
user = {
|
|
493
|
+
username: '',
|
|
494
|
+
email: ''
|
|
495
|
+
};
|
|
474
496
|
|
|
475
497
|
onSubmit(form: any) {
|
|
476
498
|
if (form.valid) {
|
|
@@ -489,16 +511,16 @@ InputText directive is an extension to standard input element with theming.
|
|
|
489
511
|
|
|
490
512
|
| Name | Type | Default | Description |
|
|
491
513
|
|------|------|---------|-------------|
|
|
492
|
-
| dt |
|
|
493
|
-
| unstyled |
|
|
494
|
-
| pt |
|
|
495
|
-
| ptOptions |
|
|
496
|
-
| pInputTextPT |
|
|
497
|
-
| pInputTextUnstyled |
|
|
498
|
-
| pSize |
|
|
499
|
-
| variant |
|
|
500
|
-
| fluid |
|
|
501
|
-
| invalid |
|
|
514
|
+
| dt | Object | undefined | Defines scoped design tokens of the component. |
|
|
515
|
+
| unstyled | boolean | undefined | Indicates whether the component should be rendered without styles. |
|
|
516
|
+
| pt | InputTextPassThrough | undefined | Used to pass attributes to DOM elements inside the component. |
|
|
517
|
+
| ptOptions | PassThroughOptions | undefined | Used to configure passthrough(pt) options of the component. |
|
|
518
|
+
| pInputTextPT | InputTextPassThrough | undefined | Used to pass attributes to DOM elements inside the InputText component. |
|
|
519
|
+
| pInputTextUnstyled | boolean | undefined | Indicates whether the component should be rendered without styles. |
|
|
520
|
+
| pSize | "small" \| "large" | - | Defines the size of the component. |
|
|
521
|
+
| variant | "outlined" \| "filled" | undefined | Specifies the input variant of the component. |
|
|
522
|
+
| fluid | boolean | undefined | Spans 100% width of the container when enabled. |
|
|
523
|
+
| invalid | boolean | false | When present, it specifies that the component should have invalid state style. |
|
|
502
524
|
|
|
503
525
|
## Pass Through Options
|
|
504
526
|
|
|
@@ -13,6 +13,7 @@ KeyFilter provides various presets configured with the pKeyFilter property.
|
|
|
13
13
|
```typescript
|
|
14
14
|
import { Component } from '@angular/core';
|
|
15
15
|
import { InputTextModule } from '@exhaustive-ui/core/inputtext';
|
|
16
|
+
import { KeyFilterModule } from '@exhaustive-ui/core/keyfilter';
|
|
16
17
|
|
|
17
18
|
@Component({
|
|
18
19
|
template: `
|
|
@@ -48,9 +49,10 @@ import { InputTextModule } from '@exhaustive-ui/core/inputtext';
|
|
|
48
49
|
</div>
|
|
49
50
|
`,
|
|
50
51
|
standalone: true,
|
|
51
|
-
imports: [InputTextModule]
|
|
52
|
+
imports: [InputTextModule, KeyFilterModule]
|
|
52
53
|
})
|
|
53
|
-
export class KeyfilterPresetsDemo {
|
|
54
|
+
export class KeyfilterPresetsDemo {
|
|
55
|
+
}
|
|
54
56
|
```
|
|
55
57
|
|
|
56
58
|
## Regex
|
|
@@ -60,6 +62,7 @@ In addition to the presets, a regular expression can be configured for customiza
|
|
|
60
62
|
```typescript
|
|
61
63
|
import { Component } from '@angular/core';
|
|
62
64
|
import { InputTextModule } from '@exhaustive-ui/core/inputtext';
|
|
65
|
+
import { KeyFilterModule } from '@exhaustive-ui/core/keyfilter';
|
|
63
66
|
|
|
64
67
|
@Component({
|
|
65
68
|
template: `
|
|
@@ -75,7 +78,7 @@ import { InputTextModule } from '@exhaustive-ui/core/inputtext';
|
|
|
75
78
|
</div>
|
|
76
79
|
`,
|
|
77
80
|
standalone: true,
|
|
78
|
-
imports: [InputTextModule]
|
|
81
|
+
imports: [InputTextModule, KeyFilterModule]
|
|
79
82
|
})
|
|
80
83
|
export class KeyfilterRegexDemo {
|
|
81
84
|
blockSpace: RegExp = /^[^\s]+$/;
|