@primevue/mcp 4.5.5 → 5.0.0-rc.2
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/LICENSE.md +45 -21
- package/README.md +48 -250
- package/data/components.json +47269 -0
- package/data/llms/components/accordion.md +629 -0
- package/data/llms/components/animateonscroll.md +165 -0
- package/data/llms/components/autocomplete.md +995 -0
- package/data/llms/components/avatar.md +264 -0
- package/data/llms/components/badge.md +200 -0
- package/data/llms/components/blockui.md +99 -0
- package/data/llms/components/breadcrumb.md +269 -0
- package/data/llms/components/button.md +902 -0
- package/data/llms/components/card.md +209 -0
- package/data/llms/components/carousel.md +506 -0
- package/data/llms/components/cascadeselect.md +1207 -0
- package/data/llms/components/chart.md +1022 -0
- package/data/llms/components/checkbox.md +401 -0
- package/data/llms/components/chip.md +206 -0
- package/data/llms/components/colorpicker.md +213 -0
- package/data/llms/components/commandmenu.md +660 -0
- package/data/llms/components/compare.md +407 -0
- package/data/llms/components/confirmdialog.md +343 -0
- package/data/llms/components/confirmpopup.md +252 -0
- package/data/llms/components/contextmenu.md +522 -0
- package/data/llms/components/datatable.md +5266 -0
- package/data/llms/components/dataview.md +569 -0
- package/data/llms/components/datepicker.md +964 -0
- package/data/llms/components/deferredcontent.md +96 -0
- package/data/llms/components/dialog.md +702 -0
- package/data/llms/components/divider.md +152 -0
- package/data/llms/components/dock.md +488 -0
- package/data/llms/components/drawer.md +469 -0
- package/data/llms/components/dynamicdialog.md +214 -0
- package/data/llms/components/editor.md +205 -0
- package/data/llms/components/fieldset.md +253 -0
- package/data/llms/components/fileupload.md +459 -0
- package/data/llms/components/floatlabel.md +144 -0
- package/data/llms/components/fluid.md +104 -0
- package/data/llms/components/focustrap.md +59 -0
- package/data/llms/components/forms.md +344 -0
- package/data/llms/components/galleria.md +1119 -0
- package/data/llms/components/gallery.md +1003 -0
- package/data/llms/components/iconfield.md +283 -0
- package/data/llms/components/iftalabel.md +96 -0
- package/data/llms/components/image.md +179 -0
- package/data/llms/components/imagecompare.md +108 -0
- package/data/llms/components/inplace.md +183 -0
- package/data/llms/components/inputcolor.md +869 -0
- package/data/llms/components/inputgroup.md +419 -0
- package/data/llms/components/inputmask.md +345 -0
- package/data/llms/components/inputnumber.md +551 -0
- package/data/llms/components/inputotp.md +345 -0
- package/data/llms/components/inputpassword.md +738 -0
- package/data/llms/components/inputtags.md +432 -0
- package/data/llms/components/inputtext.md +569 -0
- package/data/llms/components/installation.md +1 -0
- package/data/llms/components/keyfilter.md +116 -0
- package/data/llms/components/knob.md +318 -0
- package/data/llms/components/label.md +151 -0
- package/data/llms/components/laravel.md +53 -0
- package/data/llms/components/listbox.md +636 -0
- package/data/llms/components/mask.md +203 -0
- package/data/llms/components/mcp.md +39 -0
- package/data/llms/components/megamenu.md +563 -0
- package/data/llms/components/menu.md +651 -0
- package/data/llms/components/menubar.md +446 -0
- package/data/llms/components/message.md +497 -0
- package/data/llms/components/metergroup.md +281 -0
- package/data/llms/components/multiselect.md +752 -0
- package/data/llms/components/orderlist.md +224 -0
- package/data/llms/components/organizationchart.md +418 -0
- package/data/llms/components/paginator.md +221 -0
- package/data/llms/components/panel.md +321 -0
- package/data/llms/components/panelmenu.md +703 -0
- package/data/llms/components/password.md +657 -0
- package/data/llms/components/picklist.md +286 -0
- package/data/llms/components/popover.md +145 -0
- package/data/llms/components/progressbar.md +242 -0
- package/data/llms/components/progressspinner.md +104 -0
- package/data/llms/components/radiobutton.md +427 -0
- package/data/llms/components/rating.md +312 -0
- package/data/llms/components/ripple.md +91 -0
- package/data/llms/components/scrollarea.md +700 -0
- package/data/llms/components/scrollpanel.md +131 -0
- package/data/llms/components/scrolltop.md +87 -0
- package/data/llms/components/select.md +1251 -0
- package/data/llms/components/selectbutton.md +268 -0
- package/data/llms/components/sidebar.md +2232 -0
- package/data/llms/components/skeleton.md +302 -0
- package/data/llms/components/slider.md +416 -0
- package/data/llms/components/speeddial.md +402 -0
- package/data/llms/components/splitbutton.md +840 -0
- package/data/llms/components/splitter.md +447 -0
- package/data/llms/components/stepper.md +551 -0
- package/data/llms/components/styleclass.md +226 -0
- package/data/llms/components/tabs.md +609 -0
- package/data/llms/components/tag.md +178 -0
- package/data/llms/components/terminal.md +123 -0
- package/data/llms/components/textarea.md +519 -0
- package/data/llms/components/tieredmenu.md +578 -0
- package/data/llms/components/timeline.md +494 -0
- package/data/llms/components/toast.md +472 -0
- package/data/llms/components/togglebutton.md +276 -0
- package/data/llms/components/toggleswitch.md +271 -0
- package/data/llms/components/toolbar.md +140 -0
- package/data/llms/components/tooltip.md +160 -0
- package/data/llms/components/tree.md +1076 -0
- package/data/llms/components/treeselect.md +660 -0
- package/data/llms/components/treetable.md +2493 -0
- package/data/llms/components/virtualscroller.md +265 -0
- package/data/llms/guides/autoimport.md +28 -0
- package/data/llms/guides/cdn.md +72 -0
- package/data/llms/guides/configuration.md +158 -0
- package/data/llms/guides/customicons.md +67 -0
- package/data/llms/guides/guides/accessibility.md +27 -0
- package/data/llms/guides/guides/animations.md +119 -0
- package/data/llms/guides/guides/rtl.md +7 -0
- package/data/llms/guides/icons.md +136 -0
- package/data/llms/guides/installation.md +3 -0
- package/data/llms/guides/laravel.md +66 -0
- package/data/llms/guides/llms.md +15 -0
- package/data/llms/guides/mcp.md +104 -0
- package/data/llms/guides/migration/v4.md +15 -0
- package/data/llms/guides/migration/v5.md +15 -0
- package/data/llms/guides/nuxt.md +141 -0
- package/data/llms/guides/passthrough.md +137 -0
- package/data/llms/guides/primeclt.md +43 -0
- package/data/llms/guides/tailwind.md +151 -0
- package/data/llms/guides/theming/styled.md +497 -0
- package/data/llms/guides/theming/unstyled.md +57 -0
- package/data/llms/guides/uikit.md +3 -0
- package/data/llms/guides/vite.md +90 -0
- package/data/llms/llms-full.txt +54465 -0
- package/data/llms/llms.txt +132 -0
- package/data/llms/pages/accessibility.md +27 -0
- package/data/llms/pages/animations.md +119 -0
- package/data/llms/pages/autoimport.md +28 -0
- package/data/llms/pages/cdn.md +72 -0
- package/data/llms/pages/configuration.md +158 -0
- package/data/llms/pages/contribution.md +31 -0
- package/data/llms/pages/customicons.md +67 -0
- package/data/llms/pages/designer.md +79 -0
- package/data/llms/pages/dynamicimports.md +7 -0
- package/data/llms/pages/forms.md +63 -0
- package/data/llms/pages/guides/accessibility.md +27 -0
- package/data/llms/pages/guides/animations.md +119 -0
- package/data/llms/pages/guides/rtl.md +7 -0
- package/data/llms/pages/icons.md +136 -0
- package/data/llms/pages/installation.md +3 -0
- package/data/llms/pages/introduction.md +23 -0
- package/data/llms/pages/laravel.md +66 -0
- package/data/llms/pages/llms.md +15 -0
- package/data/llms/pages/mcp.md +104 -0
- package/data/llms/pages/migration/v4.md +15 -0
- package/data/llms/pages/migration/v5.md +15 -0
- package/data/llms/pages/nuxt.md +141 -0
- package/data/llms/pages/passthrough.md +137 -0
- package/data/llms/pages/primeclt.md +43 -0
- package/data/llms/pages/rtl.md +7 -0
- package/data/llms/pages/setup.md +3 -0
- package/data/llms/pages/styled.md +497 -0
- package/data/llms/pages/tailwind.md +151 -0
- package/data/llms/pages/theming/styled.md +497 -0
- package/data/llms/pages/theming/unstyled.md +57 -0
- package/data/llms/pages/uikit.md +3 -0
- package/data/llms/pages/unstyled.md +57 -0
- package/data/llms/pages/v4.md +15 -0
- package/data/llms/pages/v5.md +15 -0
- package/data/llms/pages/vite.md +90 -0
- package/data/manifest.json +11117 -0
- package/data/mcp-data.json +55940 -0
- package/dist/index.d.ts +17 -1
- package/dist/index.js +66066 -72541
- package/package.json +10 -12
|
@@ -0,0 +1,345 @@
|
|
|
1
|
+
# InputMask
|
|
2
|
+
|
|
3
|
+
InputMask component is used to enter input in a certain format such as numeric, date, currency and phone.
|
|
4
|
+
|
|
5
|
+
## Basic
|
|
6
|
+
|
|
7
|
+
InputMask is used as a controlled input with v-model property.
|
|
8
|
+
|
|
9
|
+
```vue
|
|
10
|
+
<template>
|
|
11
|
+
<div class="flex justify-center">
|
|
12
|
+
<InputMask v-model="value" mask="99-999999" placeholder="99-999999" />
|
|
13
|
+
</div>
|
|
14
|
+
</template>
|
|
15
|
+
|
|
16
|
+
<script setup>
|
|
17
|
+
import { ref } from 'vue';
|
|
18
|
+
|
|
19
|
+
const value = ref(null);
|
|
20
|
+
<\/script>
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
## Mask
|
|
24
|
+
|
|
25
|
+
Mask format can be a combination of the following definitions; a for alphabetic characters, 9 for numeric characters and * for alphanumberic characters. In addition, formatting characters like ( , ) , - are also accepted.
|
|
26
|
+
|
|
27
|
+
```vue
|
|
28
|
+
<template>
|
|
29
|
+
<Fluid class="flex flex-wrap gap-4">
|
|
30
|
+
<div class="flex-auto">
|
|
31
|
+
<span class="font-bold block mb-2">SSN</span>
|
|
32
|
+
<InputMask v-model="value1" mask="999-99-9999" placeholder="999-99-9999" />
|
|
33
|
+
</div>
|
|
34
|
+
<div class="flex-auto">
|
|
35
|
+
<span class="font-bold block mb-2">Phone</span>
|
|
36
|
+
<InputMask v-model="value2" mask="(999) 999-9999" placeholder="(999) 999-9999" />
|
|
37
|
+
</div>
|
|
38
|
+
<div class="flex-auto">
|
|
39
|
+
<span class="font-bold block mb-2">Serial Number</span>
|
|
40
|
+
<InputMask v-model="value3" mask="a*-999-a999" placeholder="a*-999-a999" />
|
|
41
|
+
</div>
|
|
42
|
+
</Fluid>
|
|
43
|
+
</template>
|
|
44
|
+
|
|
45
|
+
<script setup>
|
|
46
|
+
import { ref } from 'vue';
|
|
47
|
+
|
|
48
|
+
const value1 = ref(null);
|
|
49
|
+
const value2 = ref(null);
|
|
50
|
+
const value3 = ref(null);
|
|
51
|
+
<\/script>
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
## Optional
|
|
55
|
+
|
|
56
|
+
When the input does not complete the mask definition, it is cleared by default. Use autoClear property to control this behavior. In addition, ? is used to mark anything after the question mark optional.
|
|
57
|
+
|
|
58
|
+
```vue
|
|
59
|
+
<template>
|
|
60
|
+
<div class="flex justify-center">
|
|
61
|
+
<InputMask v-model="value" mask="(999) 999-9999? x99999" placeholder="(999) 999-9999? x99999" />
|
|
62
|
+
</div>
|
|
63
|
+
</template>
|
|
64
|
+
|
|
65
|
+
<script setup>
|
|
66
|
+
import { ref } from 'vue';
|
|
67
|
+
|
|
68
|
+
const value = ref('');
|
|
69
|
+
<\/script>
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
## SlotChar
|
|
73
|
+
|
|
74
|
+
Default placeholder for a mask is underscore that can be customized using slotChar property.
|
|
75
|
+
|
|
76
|
+
```vue
|
|
77
|
+
<template>
|
|
78
|
+
<div class="flex justify-center">
|
|
79
|
+
<InputMask v-model="value" placeholder="99/99/9999" mask="99/99/9999" slotChar="mm/dd/yyyy" />
|
|
80
|
+
</div>
|
|
81
|
+
</template>
|
|
82
|
+
|
|
83
|
+
<script setup>
|
|
84
|
+
import { ref } from 'vue';
|
|
85
|
+
|
|
86
|
+
const value = ref('');
|
|
87
|
+
<\/script>
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
## Filled
|
|
91
|
+
|
|
92
|
+
Specify the variant property as filled to display the component with a higher visual emphasis than the default outlined style.
|
|
93
|
+
|
|
94
|
+
```vue
|
|
95
|
+
<template>
|
|
96
|
+
<div class="flex justify-center">
|
|
97
|
+
<InputMask v-model="value" variant="filled" mask="99-999999" placeholder="99-999999" />
|
|
98
|
+
</div>
|
|
99
|
+
</template>
|
|
100
|
+
|
|
101
|
+
<script setup>
|
|
102
|
+
import { ref } from 'vue';
|
|
103
|
+
|
|
104
|
+
const value = ref(null);
|
|
105
|
+
<\/script>
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
## Float Label
|
|
109
|
+
|
|
110
|
+
FloatLabel visually integrates a label with its form element. Visit FloatLabel documentation for more information.
|
|
111
|
+
|
|
112
|
+
```vue
|
|
113
|
+
<template>
|
|
114
|
+
<div class="flex flex-wrap justify-center items-end gap-4">
|
|
115
|
+
<FloatLabel>
|
|
116
|
+
<InputMask id="over_label" v-model="value1" mask="999-99-9999" />
|
|
117
|
+
<label for="over_label">Over Label</label>
|
|
118
|
+
</FloatLabel>
|
|
119
|
+
|
|
120
|
+
<FloatLabel variant="in">
|
|
121
|
+
<InputMask id="in_label" v-model="value2" mask="999-99-9999" />
|
|
122
|
+
<label for="in_label">In Label</label>
|
|
123
|
+
</FloatLabel>
|
|
124
|
+
|
|
125
|
+
<FloatLabel variant="on">
|
|
126
|
+
<InputMask id="on_label" v-model="value3" mask="999-99-9999" />
|
|
127
|
+
<label for="on_label">On Label</label>
|
|
128
|
+
</FloatLabel>
|
|
129
|
+
</div>
|
|
130
|
+
</template>
|
|
131
|
+
|
|
132
|
+
<script setup>
|
|
133
|
+
import { ref } from 'vue';
|
|
134
|
+
|
|
135
|
+
const value1 = ref(null);
|
|
136
|
+
const value2 = ref(null);
|
|
137
|
+
const value3 = ref(null);
|
|
138
|
+
<\/script>
|
|
139
|
+
```
|
|
140
|
+
|
|
141
|
+
## Ifta Label
|
|
142
|
+
|
|
143
|
+
IftaLabel is used to create infield top aligned labels. Visit IftaLabel documentation for more information.
|
|
144
|
+
|
|
145
|
+
```vue
|
|
146
|
+
<template>
|
|
147
|
+
<div class="flex justify-center">
|
|
148
|
+
<IftaLabel>
|
|
149
|
+
<InputMask id="ssn" v-model="value" mask="999-99-9999" autocomplete="off" />
|
|
150
|
+
<label for="ssn">SSN</label>
|
|
151
|
+
</IftaLabel>
|
|
152
|
+
</div>
|
|
153
|
+
</template>
|
|
154
|
+
|
|
155
|
+
<script setup>
|
|
156
|
+
import { ref } from 'vue';
|
|
157
|
+
|
|
158
|
+
const value = ref(null);
|
|
159
|
+
<\/script>
|
|
160
|
+
```
|
|
161
|
+
|
|
162
|
+
## Sizes
|
|
163
|
+
|
|
164
|
+
InputMask provides small and large sizes as alternatives to the base.
|
|
165
|
+
|
|
166
|
+
```vue
|
|
167
|
+
<template>
|
|
168
|
+
<div class="flex flex-col items-center gap-4">
|
|
169
|
+
<InputMask v-model="value1" placeholder="Small" size="small" mask="99-999999" />
|
|
170
|
+
<InputMask v-model="value2" placeholder="Normal" mask="99-999999" />
|
|
171
|
+
<InputMask v-model="value3" placeholder="Large" size="large" mask="99-999999" />
|
|
172
|
+
</div>
|
|
173
|
+
</template>
|
|
174
|
+
|
|
175
|
+
<script setup>
|
|
176
|
+
import { ref } from 'vue';
|
|
177
|
+
|
|
178
|
+
const value1 = ref(null);
|
|
179
|
+
const value2 = ref(null);
|
|
180
|
+
const value3 = ref(null);
|
|
181
|
+
<\/script>
|
|
182
|
+
```
|
|
183
|
+
|
|
184
|
+
## Fluid
|
|
185
|
+
|
|
186
|
+
The fluid prop makes the component take up the full width of its container when set to true.
|
|
187
|
+
|
|
188
|
+
```vue
|
|
189
|
+
<template>
|
|
190
|
+
<InputMask v-model="value" fluid mask="99-999999" placeholder="99-999999" />
|
|
191
|
+
</template>
|
|
192
|
+
|
|
193
|
+
<script setup>
|
|
194
|
+
import { ref } from 'vue';
|
|
195
|
+
|
|
196
|
+
const value = ref(null);
|
|
197
|
+
<\/script>
|
|
198
|
+
```
|
|
199
|
+
|
|
200
|
+
## Disabled
|
|
201
|
+
|
|
202
|
+
When disabled is present, the element cannot be edited and focused.
|
|
203
|
+
|
|
204
|
+
```vue
|
|
205
|
+
<template>
|
|
206
|
+
<div class="flex justify-center">
|
|
207
|
+
<InputMask v-model="value" mask="999-99-9999" disabled />
|
|
208
|
+
</div>
|
|
209
|
+
</template>
|
|
210
|
+
|
|
211
|
+
<script setup>
|
|
212
|
+
import { ref } from 'vue';
|
|
213
|
+
|
|
214
|
+
const value = ref(null);
|
|
215
|
+
<\/script>
|
|
216
|
+
```
|
|
217
|
+
|
|
218
|
+
## Invalid
|
|
219
|
+
|
|
220
|
+
The invalid state is applied using the invalid property to indicate failed validation, which can be integrated with form validation.
|
|
221
|
+
|
|
222
|
+
```vue
|
|
223
|
+
<template>
|
|
224
|
+
<div class="flex flex-wrap justify-center gap-4">
|
|
225
|
+
<InputMask v-model="value1" mask="99-999999" placeholder="Serial Key" :invalid="!value1" />
|
|
226
|
+
<InputMask v-model="value2" mask="99-999999" placeholder="Serial Key" :invalid="!value2" variant="filled" />
|
|
227
|
+
</div>
|
|
228
|
+
</template>
|
|
229
|
+
|
|
230
|
+
<script setup>
|
|
231
|
+
import { ref } from 'vue';
|
|
232
|
+
|
|
233
|
+
const value1 = ref(null);
|
|
234
|
+
const value2 = ref(null);
|
|
235
|
+
<\/script>
|
|
236
|
+
```
|
|
237
|
+
|
|
238
|
+
## Forms
|
|
239
|
+
|
|
240
|
+
InputMask integrates seamlessly with the PrimeVue Forms library.
|
|
241
|
+
|
|
242
|
+
```vue
|
|
243
|
+
<template>
|
|
244
|
+
<div class="flex justify-center">
|
|
245
|
+
<Form v-slot="$form" :resolver="resolver" :initialValues="initialValues" @submit="onFormSubmit" class="flex flex-col gap-4 w-full sm:w-56">
|
|
246
|
+
<div class="flex flex-col gap-1">
|
|
247
|
+
<InputMask name="serialNumber" mask="99-999999" placeholder="99-999999" fluid />
|
|
248
|
+
<Message v-if="$form.serialNumber?.invalid" severity="error" size="small" variant="simple">{{ $form.serialNumber.error?.message }}</Message>
|
|
249
|
+
</div>
|
|
250
|
+
<Button type="submit" severity="secondary">Submit</Button>
|
|
251
|
+
</Form>
|
|
252
|
+
</div>
|
|
253
|
+
</template>
|
|
254
|
+
|
|
255
|
+
<script setup>
|
|
256
|
+
import { ref } from 'vue';
|
|
257
|
+
import { zodResolver } from '@primevue/forms/resolvers/zod';
|
|
258
|
+
import { useToast } from "primevue/usetoast";
|
|
259
|
+
import { z } from 'zod';
|
|
260
|
+
|
|
261
|
+
const toast = useToast();
|
|
262
|
+
const initialValues = ref({
|
|
263
|
+
serialNumber: ''
|
|
264
|
+
});
|
|
265
|
+
|
|
266
|
+
const resolver = ref(zodResolver(
|
|
267
|
+
z.object({
|
|
268
|
+
serialNumber: z.string().min(1, { message: 'Serial number is required.' })
|
|
269
|
+
})
|
|
270
|
+
));
|
|
271
|
+
|
|
272
|
+
const onFormSubmit = ({ valid }) => {
|
|
273
|
+
if (valid) {
|
|
274
|
+
toast.add({ severity: 'success', summary: 'Form is submitted.', life: 3000 });
|
|
275
|
+
}
|
|
276
|
+
};
|
|
277
|
+
<\/script>
|
|
278
|
+
```
|
|
279
|
+
|
|
280
|
+
## Accessibility
|
|
281
|
+
|
|
282
|
+
Screen Reader InputMask component renders a native input element that implicitly includes any passed prop. Value to describe the component can either be provided via label tag combined with id prop or using aria-labelledby , aria-label props. Keyboard Support Key Function tab Moves focus to the input.
|
|
283
|
+
|
|
284
|
+
```vue
|
|
285
|
+
<template>
|
|
286
|
+
<label for="date">Date</label>
|
|
287
|
+
<InputMask id="date" mask="99/99/9999" />
|
|
288
|
+
|
|
289
|
+
<span id="phone">Phone</span>
|
|
290
|
+
<InputMask aria-labelledby="phone" mask="(999) 999-9999" />
|
|
291
|
+
|
|
292
|
+
<InputMask aria-label="Age" mask="99" />
|
|
293
|
+
</template>
|
|
294
|
+
```
|
|
295
|
+
|
|
296
|
+
## Input Mask API
|
|
297
|
+
|
|
298
|
+
### Props
|
|
299
|
+
|
|
300
|
+
| Name |Type |Default |Description |
|
|
301
|
+
| --- | --- | --- | --- |
|
|
302
|
+
| modelValue | null \| string | - | Value of the component. |
|
|
303
|
+
| defaultValue | null \| string | - | The default value for the input when not controlled by `modelValue` . |
|
|
304
|
+
| slotChar | string | _ | Placeholder character in mask, default is underscore. |
|
|
305
|
+
| mask | string | - | Mask pattern. |
|
|
306
|
+
| id | string | - | Identifier of the element. |
|
|
307
|
+
| class | string \| object | - | Style class of the input field. |
|
|
308
|
+
| placeholder | string | - | Placeholder text for the input. |
|
|
309
|
+
| autoClear | boolean | true | Clears the incomplete value on blur. |
|
|
310
|
+
| unmask | boolean | false | Defines if model sets the raw unmasked value to bound value or the formatted mask value. |
|
|
311
|
+
| readonly | boolean | false | Whether the items are clickable or not. |
|
|
312
|
+
| invalid | boolean | false | When present, it specifies that the component should have invalid state style. |
|
|
313
|
+
| name | string | - | Name of the input element. |
|
|
314
|
+
| size | HintedString<"small" \| "large"> | - | Defines the size of the component. |
|
|
315
|
+
| variant | null \| HintedString<"outlined" \| "filled"> | null | Specifies the input variant of the component. |
|
|
316
|
+
| fluid | boolean | null | Spans 100% width of the container when enabled. |
|
|
317
|
+
| disabled | boolean | false | When present, it specifies that the component should be disabled. |
|
|
318
|
+
| dt | any | - | It generates scoped CSS variables using design tokens for the component. |
|
|
319
|
+
| pt | PassThrough<InputMaskPassThroughOptions> | - | Used to pass attributes to DOM elements inside the component. |
|
|
320
|
+
| ptOptions | any | - | Used to configure passthrough(pt) options of the component. |
|
|
321
|
+
| unstyled | boolean | false | When enabled, it removes component related styles in the core. |
|
|
322
|
+
|
|
323
|
+
### Emits
|
|
324
|
+
|
|
325
|
+
| Name |Parameters |Description |
|
|
326
|
+
| --- | --- | --- |
|
|
327
|
+
| keypress | Function | |
|
|
328
|
+
| paste | Function | |
|
|
329
|
+
| complete | Function | |
|
|
330
|
+
|
|
331
|
+
### Pass Through Options
|
|
332
|
+
|
|
333
|
+
| Name |Type |Description |
|
|
334
|
+
| --- | --- | --- |
|
|
335
|
+
| root | InputMaskPassThroughOptionType | Used to pass attributes to the InputText component. |
|
|
336
|
+
| pcInputText | any | Used to pass attributes to the InputText component. |
|
|
337
|
+
| hooks | any | Used to manage all lifecycle hooks. |
|
|
338
|
+
|
|
339
|
+
### Theming
|
|
340
|
+
|
|
341
|
+
### CSS Classes
|
|
342
|
+
|
|
343
|
+
| Class |Description |
|
|
344
|
+
| --- | --- |
|
|
345
|
+
| p-inputmask | Class name of the root element |
|