@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
|
@@ -13,8 +13,8 @@ InputMask is used as a controlled input with ngModel properties.
|
|
|
13
13
|
```typescript
|
|
14
14
|
import { Component } from '@angular/core';
|
|
15
15
|
import { FormsModule } from '@angular/forms';
|
|
16
|
-
import { InputTextModule } from '@exhaustive-ui/core/inputtext';
|
|
17
16
|
import { InputMaskModule } from '@exhaustive-ui/core/inputmask';
|
|
17
|
+
import { InputText } from '@exhaustive-ui/core/inputtext';
|
|
18
18
|
|
|
19
19
|
@Component({
|
|
20
20
|
template: `
|
|
@@ -23,7 +23,7 @@ import { InputMaskModule } from '@exhaustive-ui/core/inputmask';
|
|
|
23
23
|
</div>
|
|
24
24
|
`,
|
|
25
25
|
standalone: true,
|
|
26
|
-
imports: [
|
|
26
|
+
imports: [FormsModule, InputMaskModule, InputText]
|
|
27
27
|
})
|
|
28
28
|
export class InputmaskBasicDemo {
|
|
29
29
|
value: string | undefined;
|
|
@@ -46,7 +46,7 @@ import { InputMaskModule } from '@exhaustive-ui/core/inputmask';
|
|
|
46
46
|
</div>
|
|
47
47
|
`,
|
|
48
48
|
standalone: true,
|
|
49
|
-
imports: [
|
|
49
|
+
imports: [FormsModule, InputMaskModule]
|
|
50
50
|
})
|
|
51
51
|
export class InputmaskCleariconDemo {
|
|
52
52
|
value: string | undefined;
|
|
@@ -60,17 +60,17 @@ When disabled is present, the element cannot be edited and focused.
|
|
|
60
60
|
```typescript
|
|
61
61
|
import { Component } from '@angular/core';
|
|
62
62
|
import { FormsModule } from '@angular/forms';
|
|
63
|
-
import { InputTextModule } from '@exhaustive-ui/core/inputtext';
|
|
64
63
|
import { InputMaskModule } from '@exhaustive-ui/core/inputmask';
|
|
64
|
+
import { InputText } from '@exhaustive-ui/core/inputtext';
|
|
65
65
|
|
|
66
66
|
@Component({
|
|
67
67
|
template: `
|
|
68
68
|
<div class="card flex justify-center">
|
|
69
|
-
<input pInputText pInputMask="999-99-9999" [(ngModel)]="value" disabled />
|
|
69
|
+
<input pInputText pInputMask="999-99-9999" [(ngModel)]="value" disabled aria-label="SSN" />
|
|
70
70
|
</div>
|
|
71
71
|
`,
|
|
72
72
|
standalone: true,
|
|
73
|
-
imports: [
|
|
73
|
+
imports: [FormsModule, InputMaskModule, InputText]
|
|
74
74
|
})
|
|
75
75
|
export class InputmaskDisabledDemo {
|
|
76
76
|
value: string | undefined;
|
|
@@ -84,8 +84,8 @@ Specify the variant property as filled to display the component with a higher vi
|
|
|
84
84
|
```typescript
|
|
85
85
|
import { Component } from '@angular/core';
|
|
86
86
|
import { FormsModule } from '@angular/forms';
|
|
87
|
-
import { InputTextModule } from '@exhaustive-ui/core/inputtext';
|
|
88
87
|
import { InputMaskModule } from '@exhaustive-ui/core/inputmask';
|
|
88
|
+
import { InputText } from '@exhaustive-ui/core/inputtext';
|
|
89
89
|
|
|
90
90
|
@Component({
|
|
91
91
|
template: `
|
|
@@ -94,7 +94,7 @@ import { InputMaskModule } from '@exhaustive-ui/core/inputmask';
|
|
|
94
94
|
</div>
|
|
95
95
|
`,
|
|
96
96
|
standalone: true,
|
|
97
|
-
imports: [
|
|
97
|
+
imports: [FormsModule, InputMaskModule, InputText]
|
|
98
98
|
})
|
|
99
99
|
export class InputmaskFilledDemo {
|
|
100
100
|
value: string | undefined;
|
|
@@ -108,9 +108,10 @@ FloatLabel visually integrates a label with its form element. Visit FloatLabel d
|
|
|
108
108
|
```typescript
|
|
109
109
|
import { Component } from '@angular/core';
|
|
110
110
|
import { FormsModule } from '@angular/forms';
|
|
111
|
-
import {
|
|
112
|
-
import { InputTextModule } from '@exhaustive-ui/core/inputtext';
|
|
111
|
+
import { RouterModule } from '@angular/router';
|
|
113
112
|
import { InputMaskModule } from '@exhaustive-ui/core/inputmask';
|
|
113
|
+
import { InputText } from '@exhaustive-ui/core/inputtext';
|
|
114
|
+
import { FloatLabelModule } from '@exhaustive-ui/core/floatlabel';
|
|
114
115
|
|
|
115
116
|
@Component({
|
|
116
117
|
template: `
|
|
@@ -130,11 +131,13 @@ import { InputMaskModule } from '@exhaustive-ui/core/inputmask';
|
|
|
130
131
|
</div>
|
|
131
132
|
`,
|
|
132
133
|
standalone: true,
|
|
133
|
-
imports: [
|
|
134
|
+
imports: [FormsModule, RouterModule, InputMaskModule, InputText, FloatLabelModule]
|
|
134
135
|
})
|
|
135
136
|
export class InputmaskFloatlabelDemo {
|
|
136
137
|
value1: string | undefined;
|
|
138
|
+
|
|
137
139
|
value2: string | undefined;
|
|
140
|
+
|
|
138
141
|
value3: string | undefined;
|
|
139
142
|
}
|
|
140
143
|
```
|
|
@@ -146,8 +149,8 @@ The fluid prop makes the component take up the full width of its container when
|
|
|
146
149
|
```typescript
|
|
147
150
|
import { Component } from '@angular/core';
|
|
148
151
|
import { FormsModule } from '@angular/forms';
|
|
149
|
-
import { InputTextModule } from '@exhaustive-ui/core/inputtext';
|
|
150
152
|
import { InputMaskModule } from '@exhaustive-ui/core/inputmask';
|
|
153
|
+
import { InputText } from '@exhaustive-ui/core/inputtext';
|
|
151
154
|
|
|
152
155
|
@Component({
|
|
153
156
|
template: `
|
|
@@ -156,7 +159,7 @@ import { InputMaskModule } from '@exhaustive-ui/core/inputmask';
|
|
|
156
159
|
</div>
|
|
157
160
|
`,
|
|
158
161
|
standalone: true,
|
|
159
|
-
imports: [
|
|
162
|
+
imports: [FormsModule, InputMaskModule, InputText]
|
|
160
163
|
})
|
|
161
164
|
export class InputmaskFluidDemo {
|
|
162
165
|
value: string | undefined;
|
|
@@ -170,9 +173,10 @@ IftaLabel is used to create infield top aligned labels. Visit IftaLabel document
|
|
|
170
173
|
```typescript
|
|
171
174
|
import { Component } from '@angular/core';
|
|
172
175
|
import { FormsModule } from '@angular/forms';
|
|
173
|
-
import {
|
|
174
|
-
import { InputTextModule } from '@exhaustive-ui/core/inputtext';
|
|
176
|
+
import { RouterModule } from '@angular/router';
|
|
175
177
|
import { InputMaskModule } from '@exhaustive-ui/core/inputmask';
|
|
178
|
+
import { InputText } from '@exhaustive-ui/core/inputtext';
|
|
179
|
+
import { IftaLabelModule } from '@exhaustive-ui/core/iftalabel';
|
|
176
180
|
|
|
177
181
|
@Component({
|
|
178
182
|
template: `
|
|
@@ -184,7 +188,7 @@ import { InputMaskModule } from '@exhaustive-ui/core/inputmask';
|
|
|
184
188
|
</div>
|
|
185
189
|
`,
|
|
186
190
|
standalone: true,
|
|
187
|
-
imports: [
|
|
191
|
+
imports: [FormsModule, RouterModule, InputMaskModule, InputText, IftaLabelModule]
|
|
188
192
|
})
|
|
189
193
|
export class InputmaskIftalabelDemo {
|
|
190
194
|
value: string | undefined;
|
|
@@ -198,8 +202,8 @@ The invalid state is applied using the invalid property to indicate failed va
|
|
|
198
202
|
```typescript
|
|
199
203
|
import { Component } from '@angular/core';
|
|
200
204
|
import { FormsModule } from '@angular/forms';
|
|
201
|
-
import { InputTextModule } from '@exhaustive-ui/core/inputtext';
|
|
202
205
|
import { InputMaskModule } from '@exhaustive-ui/core/inputmask';
|
|
206
|
+
import { InputText } from '@exhaustive-ui/core/inputtext';
|
|
203
207
|
|
|
204
208
|
@Component({
|
|
205
209
|
template: `
|
|
@@ -209,10 +213,11 @@ import { InputMaskModule } from '@exhaustive-ui/core/inputmask';
|
|
|
209
213
|
</div>
|
|
210
214
|
`,
|
|
211
215
|
standalone: true,
|
|
212
|
-
imports: [
|
|
216
|
+
imports: [FormsModule, InputMaskModule, InputText]
|
|
213
217
|
})
|
|
214
218
|
export class InputmaskInvalidDemo {
|
|
215
219
|
value1: string | undefined;
|
|
220
|
+
|
|
216
221
|
value2: string | undefined;
|
|
217
222
|
}
|
|
218
223
|
```
|
|
@@ -224,8 +229,9 @@ Mask format can be a combination of the following definitions; a for alphabetic
|
|
|
224
229
|
```typescript
|
|
225
230
|
import { Component } from '@angular/core';
|
|
226
231
|
import { FormsModule } from '@angular/forms';
|
|
227
|
-
import { InputTextModule } from '@exhaustive-ui/core/inputtext';
|
|
228
232
|
import { InputMaskModule } from '@exhaustive-ui/core/inputmask';
|
|
233
|
+
import { InputText } from '@exhaustive-ui/core/inputtext';
|
|
234
|
+
import { FluidModule } from '@exhaustive-ui/core/fluid';
|
|
229
235
|
|
|
230
236
|
@Component({
|
|
231
237
|
template: `
|
|
@@ -245,11 +251,13 @@ import { InputMaskModule } from '@exhaustive-ui/core/inputmask';
|
|
|
245
251
|
</p-fluid>
|
|
246
252
|
`,
|
|
247
253
|
standalone: true,
|
|
248
|
-
imports: [
|
|
254
|
+
imports: [FormsModule, InputMaskModule, InputText, FluidModule]
|
|
249
255
|
})
|
|
250
256
|
export class InputmaskMaskDemo {
|
|
251
257
|
value1: string | undefined;
|
|
258
|
+
|
|
252
259
|
value2: string | undefined;
|
|
260
|
+
|
|
253
261
|
value3: string | undefined;
|
|
254
262
|
}
|
|
255
263
|
```
|
|
@@ -261,8 +269,8 @@ When the input does not complete the mask definition, it is cleared by default.
|
|
|
261
269
|
```typescript
|
|
262
270
|
import { Component } from '@angular/core';
|
|
263
271
|
import { FormsModule } from '@angular/forms';
|
|
264
|
-
import { InputTextModule } from '@exhaustive-ui/core/inputtext';
|
|
265
272
|
import { InputMaskModule } from '@exhaustive-ui/core/inputmask';
|
|
273
|
+
import { InputText } from '@exhaustive-ui/core/inputtext';
|
|
266
274
|
|
|
267
275
|
@Component({
|
|
268
276
|
template: `
|
|
@@ -271,7 +279,7 @@ import { InputMaskModule } from '@exhaustive-ui/core/inputmask';
|
|
|
271
279
|
</div>
|
|
272
280
|
`,
|
|
273
281
|
standalone: true,
|
|
274
|
-
imports: [
|
|
282
|
+
imports: [FormsModule, InputMaskModule, InputText]
|
|
275
283
|
})
|
|
276
284
|
export class InputmaskOptionalDemo {
|
|
277
285
|
value: string | undefined;
|
|
@@ -284,13 +292,14 @@ InputMask can also be used with reactive forms. In this case, the formControlNam
|
|
|
284
292
|
|
|
285
293
|
```typescript
|
|
286
294
|
import { Component, inject } from '@angular/core';
|
|
287
|
-
import { ReactiveFormsModule } from '@angular/forms';
|
|
288
|
-
import { MessageModule } from '@exhaustive-ui/core/message';
|
|
289
|
-
import { ToastModule } from '@exhaustive-ui/core/toast';
|
|
290
|
-
import { ButtonModule } from '@exhaustive-ui/core/button';
|
|
291
|
-
import { InputTextModule } from '@exhaustive-ui/core/inputtext';
|
|
292
|
-
import { InputMaskModule } from '@exhaustive-ui/core/inputmask';
|
|
295
|
+
import { FormBuilder, FormGroup, Validators, ReactiveFormsModule } from '@angular/forms';
|
|
293
296
|
import { MessageService } from '@exhaustive-ui/core/api';
|
|
297
|
+
import { InputMaskModule } from '@exhaustive-ui/core/inputmask';
|
|
298
|
+
import { InputText } from '@exhaustive-ui/core/inputtext';
|
|
299
|
+
import { ButtonModule } from '@exhaustive-ui/core/button';
|
|
300
|
+
import { ToastModule } from '@exhaustive-ui/core/toast';
|
|
301
|
+
import { MessageModule } from '@exhaustive-ui/core/message';
|
|
302
|
+
import { FluidModule } from '@exhaustive-ui/core/fluid';
|
|
294
303
|
|
|
295
304
|
@Component({
|
|
296
305
|
template: `
|
|
@@ -308,18 +317,22 @@ import { MessageService } from '@exhaustive-ui/core/api';
|
|
|
308
317
|
</div>
|
|
309
318
|
`,
|
|
310
319
|
standalone: true,
|
|
311
|
-
imports: [
|
|
320
|
+
imports: [ReactiveFormsModule, InputMaskModule, InputText, ButtonModule, ToastModule, MessageModule, FluidModule],
|
|
321
|
+
providers: [MessageService]
|
|
312
322
|
})
|
|
313
323
|
export class InputmaskReactiveformsDemo {
|
|
324
|
+
private fb = inject(FormBuilder);
|
|
325
|
+
|
|
314
326
|
messageService = inject(MessageService);
|
|
315
|
-
|
|
327
|
+
|
|
316
328
|
exampleForm: FormGroup | undefined;
|
|
329
|
+
|
|
317
330
|
formSubmitted: boolean = false;
|
|
318
331
|
|
|
319
332
|
constructor() {
|
|
320
333
|
this.exampleForm = this.fb.group({
|
|
321
|
-
|
|
322
|
-
|
|
334
|
+
value: ['', Validators.required]
|
|
335
|
+
});
|
|
323
336
|
}
|
|
324
337
|
|
|
325
338
|
onSubmit() {
|
|
@@ -345,12 +358,12 @@ InputMask can also be used with Angular Signal Forms , the @angular/forms/signal
|
|
|
345
358
|
```typescript
|
|
346
359
|
import { Component, inject, signal } from '@angular/core';
|
|
347
360
|
import { form, FormField, required, submit } from '@angular/forms/signals';
|
|
348
|
-
import { MessageModule } from '@exhaustive-ui/core/message';
|
|
349
|
-
import { ToastModule } from '@exhaustive-ui/core/toast';
|
|
350
|
-
import { ButtonModule } from '@exhaustive-ui/core/button';
|
|
351
|
-
import { InputTextModule } from '@exhaustive-ui/core/inputtext';
|
|
352
|
-
import { InputMaskModule } from '@exhaustive-ui/core/inputmask';
|
|
353
361
|
import { MessageService } from '@exhaustive-ui/core/api';
|
|
362
|
+
import { InputMaskModule } from '@exhaustive-ui/core/inputmask';
|
|
363
|
+
import { InputTextModule } from '@exhaustive-ui/core/inputtext';
|
|
364
|
+
import { ButtonModule } from '@exhaustive-ui/core/button';
|
|
365
|
+
import { ToastModule } from '@exhaustive-ui/core/toast';
|
|
366
|
+
import { MessageModule } from '@exhaustive-ui/core/message';
|
|
354
367
|
|
|
355
368
|
@Component({
|
|
356
369
|
template: `
|
|
@@ -369,11 +382,14 @@ import { MessageService } from '@exhaustive-ui/core/api';
|
|
|
369
382
|
</div>
|
|
370
383
|
`,
|
|
371
384
|
standalone: true,
|
|
372
|
-
imports: [
|
|
385
|
+
imports: [FormField, InputMaskModule, InputTextModule, ButtonModule, ToastModule, MessageModule],
|
|
386
|
+
providers: [MessageService]
|
|
373
387
|
})
|
|
374
388
|
export class InputmaskSignalformsDemo {
|
|
375
389
|
messageService = inject(MessageService);
|
|
390
|
+
|
|
376
391
|
model = signal({ value: '' });
|
|
392
|
+
|
|
377
393
|
exampleForm = form(this.model, (f) => {
|
|
378
394
|
required(f.value);
|
|
379
395
|
});
|
|
@@ -395,8 +411,8 @@ InputMask provides small and large sizes as alternatives to the base.
|
|
|
395
411
|
```typescript
|
|
396
412
|
import { Component } from '@angular/core';
|
|
397
413
|
import { FormsModule } from '@angular/forms';
|
|
398
|
-
import { InputTextModule } from '@exhaustive-ui/core/inputtext';
|
|
399
414
|
import { InputMaskModule } from '@exhaustive-ui/core/inputmask';
|
|
415
|
+
import { InputText } from '@exhaustive-ui/core/inputtext';
|
|
400
416
|
|
|
401
417
|
@Component({
|
|
402
418
|
template: `
|
|
@@ -407,11 +423,13 @@ import { InputMaskModule } from '@exhaustive-ui/core/inputmask';
|
|
|
407
423
|
</div>
|
|
408
424
|
`,
|
|
409
425
|
standalone: true,
|
|
410
|
-
imports: [
|
|
426
|
+
imports: [FormsModule, InputMaskModule, InputText]
|
|
411
427
|
})
|
|
412
428
|
export class InputmaskSizesDemo {
|
|
413
429
|
value1: string | undefined;
|
|
430
|
+
|
|
414
431
|
value2: string | undefined;
|
|
432
|
+
|
|
415
433
|
value3: string | undefined;
|
|
416
434
|
}
|
|
417
435
|
```
|
|
@@ -423,8 +441,8 @@ Default placeholder for a mask is underscore that can be customized using slotCh
|
|
|
423
441
|
```typescript
|
|
424
442
|
import { Component } from '@angular/core';
|
|
425
443
|
import { FormsModule } from '@angular/forms';
|
|
426
|
-
import { InputTextModule } from '@exhaustive-ui/core/inputtext';
|
|
427
444
|
import { InputMaskModule } from '@exhaustive-ui/core/inputmask';
|
|
445
|
+
import { InputText } from '@exhaustive-ui/core/inputtext';
|
|
428
446
|
|
|
429
447
|
@Component({
|
|
430
448
|
template: `
|
|
@@ -433,7 +451,7 @@ import { InputMaskModule } from '@exhaustive-ui/core/inputmask';
|
|
|
433
451
|
</div>
|
|
434
452
|
`,
|
|
435
453
|
standalone: true,
|
|
436
|
-
imports: [
|
|
454
|
+
imports: [FormsModule, InputMaskModule, InputText]
|
|
437
455
|
})
|
|
438
456
|
export class InputmaskSlotcharDemo {
|
|
439
457
|
value: string | undefined;
|
|
@@ -445,12 +463,13 @@ export class InputmaskSlotcharDemo {
|
|
|
445
463
|
```typescript
|
|
446
464
|
import { Component, inject } from '@angular/core';
|
|
447
465
|
import { FormsModule } from '@angular/forms';
|
|
448
|
-
import {
|
|
449
|
-
import { ToastModule } from '@exhaustive-ui/core/toast';
|
|
466
|
+
import { MessageService } from '@exhaustive-ui/core/api';
|
|
450
467
|
import { ButtonModule } from '@exhaustive-ui/core/button';
|
|
451
|
-
import {
|
|
468
|
+
import { FluidModule } from '@exhaustive-ui/core/fluid';
|
|
452
469
|
import { InputMaskModule } from '@exhaustive-ui/core/inputmask';
|
|
453
|
-
import {
|
|
470
|
+
import { InputText } from '@exhaustive-ui/core/inputtext';
|
|
471
|
+
import { MessageModule } from '@exhaustive-ui/core/message';
|
|
472
|
+
import { ToastModule } from '@exhaustive-ui/core/toast';
|
|
454
473
|
|
|
455
474
|
@Component({
|
|
456
475
|
template: `
|
|
@@ -468,11 +487,14 @@ import { MessageService } from '@exhaustive-ui/core/api';
|
|
|
468
487
|
</div>
|
|
469
488
|
`,
|
|
470
489
|
standalone: true,
|
|
471
|
-
imports: [
|
|
490
|
+
imports: [FormsModule, InputMaskModule, InputText, ButtonModule, ToastModule, MessageModule, FluidModule],
|
|
491
|
+
providers: [MessageService]
|
|
472
492
|
})
|
|
473
493
|
export class InputmaskTemplatedrivenformsDemo {
|
|
474
494
|
messageService = inject(MessageService);
|
|
495
|
+
|
|
475
496
|
items: any[] = [];
|
|
497
|
+
|
|
476
498
|
value: any;
|
|
477
499
|
|
|
478
500
|
onSubmit(form: any) {
|
|
@@ -492,44 +514,44 @@ InputMask component is used to enter input in a certain format such as numeric,
|
|
|
492
514
|
|
|
493
515
|
| Name | Type | Default | Description |
|
|
494
516
|
|------|------|---------|-------------|
|
|
495
|
-
| dt |
|
|
496
|
-
| unstyled |
|
|
497
|
-
| pt |
|
|
498
|
-
| ptOptions |
|
|
499
|
-
| required |
|
|
500
|
-
| invalid |
|
|
501
|
-
| disabled |
|
|
502
|
-
| name |
|
|
503
|
-
| fluid |
|
|
504
|
-
| variant |
|
|
505
|
-
| size |
|
|
506
|
-
| inputSize |
|
|
507
|
-
| pattern |
|
|
508
|
-
| min |
|
|
509
|
-
| max |
|
|
510
|
-
| step |
|
|
511
|
-
| minlength |
|
|
512
|
-
| maxlength |
|
|
513
|
-
| type |
|
|
514
|
-
| slotChar |
|
|
515
|
-
| autoClear |
|
|
516
|
-
| showClear |
|
|
517
|
-
| style |
|
|
518
|
-
| inputId |
|
|
519
|
-
| styleClass |
|
|
520
|
-
| placeholder |
|
|
521
|
-
| tabindex |
|
|
522
|
-
| title |
|
|
523
|
-
| ariaLabel |
|
|
524
|
-
| ariaLabelledBy |
|
|
525
|
-
| ariaRequired |
|
|
526
|
-
| readonly |
|
|
527
|
-
| unmask |
|
|
528
|
-
| characterPattern |
|
|
529
|
-
| autofocus |
|
|
530
|
-
| autocomplete |
|
|
531
|
-
| keepBuffer |
|
|
532
|
-
| mask |
|
|
517
|
+
| dt | Object | undefined | Defines scoped design tokens of the component. |
|
|
518
|
+
| unstyled | boolean | undefined | Indicates whether the component should be rendered without styles. |
|
|
519
|
+
| pt | InputMaskPassThrough | undefined | Used to pass attributes to DOM elements inside the component. |
|
|
520
|
+
| ptOptions | PassThroughOptions | undefined | Used to configure passthrough(pt) options of the component. |
|
|
521
|
+
| required | boolean | false | There must be a value (if set). |
|
|
522
|
+
| invalid | boolean | false | When present, it specifies that the component should have invalid state style. |
|
|
523
|
+
| disabled | boolean | false | When present, it specifies that the component should have disabled state style. |
|
|
524
|
+
| name | string | undefined | When present, it specifies that the name of the input. |
|
|
525
|
+
| fluid | boolean | false | Spans 100% width of the container when enabled. |
|
|
526
|
+
| variant | "outlined" \| "filled" | 'outlined' | Specifies the input variant of the component. |
|
|
527
|
+
| size | "small" \| "large" | undefined | Specifies the size of the component. |
|
|
528
|
+
| inputSize | number | undefined | Specifies the visible width of the input element in characters. |
|
|
529
|
+
| pattern | string | undefined | Specifies the value must match the pattern. |
|
|
530
|
+
| min | number | undefined | The value must be greater than or equal to the value. |
|
|
531
|
+
| max | number | undefined | The value must be less than or equal to the value. |
|
|
532
|
+
| step | number | undefined | Unless the step is set to the any literal, the value must be min + an integral multiple of the step. |
|
|
533
|
+
| minlength | number | undefined | The number of characters (code points) must not be less than the value of the attribute, if non-empty. |
|
|
534
|
+
| maxlength | number | undefined | The number of characters (code points) must not exceed the value of the attribute. |
|
|
535
|
+
| type | string | 'text' | HTML5 input type. |
|
|
536
|
+
| slotChar | string | '_' | Placeholder character in mask, default is underscore. |
|
|
537
|
+
| autoClear | boolean | true | Clears the incomplete value on blur. |
|
|
538
|
+
| showClear | boolean | false | When enabled, a clear icon is displayed to clear the value. |
|
|
539
|
+
| style | { [klass: string]: any } | - | Inline style of the input field. |
|
|
540
|
+
| inputId | string | - | Identifier of the focus input to match a label defined for the component. |
|
|
541
|
+
| styleClass | string | - | Style class of the input field. |
|
|
542
|
+
| placeholder | string | - | Advisory information to display on input. |
|
|
543
|
+
| tabindex | string | - | Specifies tab order of the element. |
|
|
544
|
+
| title | string | - | Title text of the input text. |
|
|
545
|
+
| ariaLabel | string | - | Used to define a string that labels the input element. |
|
|
546
|
+
| ariaLabelledBy | string | - | Establishes relationships between the component and label(s) where its value should be one or more element IDs. |
|
|
547
|
+
| ariaRequired | boolean | - | Used to indicate that user input is required on an element before a form can be submitted. |
|
|
548
|
+
| readonly | boolean | - | When present, it specifies that an input field is read-only. |
|
|
549
|
+
| unmask | boolean | - | Defines if ngModel sets the raw unmasked value to bound value or the formatted mask value. |
|
|
550
|
+
| characterPattern | string | '[A-Za-z]' | Regex pattern for alpha characters |
|
|
551
|
+
| autofocus | boolean | - | When present, the input gets a focus automatically on load. |
|
|
552
|
+
| autocomplete | string | - | Used to define a string that autocomplete attribute the current element. |
|
|
553
|
+
| keepBuffer | boolean | false | When present, it specifies that whether to clean buffer value from model. |
|
|
554
|
+
| mask | string | - | Mask pattern. A backslash makes the next character a literal, e.g. mask="+\9 999" for a fixed '+9' prefix. |
|
|
533
555
|
|
|
534
556
|
### Emits
|
|
535
557
|
|