@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.
Files changed (173) hide show
  1. package/LICENSE.md +45 -21
  2. package/README.md +48 -250
  3. package/data/components.json +47269 -0
  4. package/data/llms/components/accordion.md +629 -0
  5. package/data/llms/components/animateonscroll.md +165 -0
  6. package/data/llms/components/autocomplete.md +995 -0
  7. package/data/llms/components/avatar.md +264 -0
  8. package/data/llms/components/badge.md +200 -0
  9. package/data/llms/components/blockui.md +99 -0
  10. package/data/llms/components/breadcrumb.md +269 -0
  11. package/data/llms/components/button.md +902 -0
  12. package/data/llms/components/card.md +209 -0
  13. package/data/llms/components/carousel.md +506 -0
  14. package/data/llms/components/cascadeselect.md +1207 -0
  15. package/data/llms/components/chart.md +1022 -0
  16. package/data/llms/components/checkbox.md +401 -0
  17. package/data/llms/components/chip.md +206 -0
  18. package/data/llms/components/colorpicker.md +213 -0
  19. package/data/llms/components/commandmenu.md +660 -0
  20. package/data/llms/components/compare.md +407 -0
  21. package/data/llms/components/confirmdialog.md +343 -0
  22. package/data/llms/components/confirmpopup.md +252 -0
  23. package/data/llms/components/contextmenu.md +522 -0
  24. package/data/llms/components/datatable.md +5266 -0
  25. package/data/llms/components/dataview.md +569 -0
  26. package/data/llms/components/datepicker.md +964 -0
  27. package/data/llms/components/deferredcontent.md +96 -0
  28. package/data/llms/components/dialog.md +702 -0
  29. package/data/llms/components/divider.md +152 -0
  30. package/data/llms/components/dock.md +488 -0
  31. package/data/llms/components/drawer.md +469 -0
  32. package/data/llms/components/dynamicdialog.md +214 -0
  33. package/data/llms/components/editor.md +205 -0
  34. package/data/llms/components/fieldset.md +253 -0
  35. package/data/llms/components/fileupload.md +459 -0
  36. package/data/llms/components/floatlabel.md +144 -0
  37. package/data/llms/components/fluid.md +104 -0
  38. package/data/llms/components/focustrap.md +59 -0
  39. package/data/llms/components/forms.md +344 -0
  40. package/data/llms/components/galleria.md +1119 -0
  41. package/data/llms/components/gallery.md +1003 -0
  42. package/data/llms/components/iconfield.md +283 -0
  43. package/data/llms/components/iftalabel.md +96 -0
  44. package/data/llms/components/image.md +179 -0
  45. package/data/llms/components/imagecompare.md +108 -0
  46. package/data/llms/components/inplace.md +183 -0
  47. package/data/llms/components/inputcolor.md +869 -0
  48. package/data/llms/components/inputgroup.md +419 -0
  49. package/data/llms/components/inputmask.md +345 -0
  50. package/data/llms/components/inputnumber.md +551 -0
  51. package/data/llms/components/inputotp.md +345 -0
  52. package/data/llms/components/inputpassword.md +738 -0
  53. package/data/llms/components/inputtags.md +432 -0
  54. package/data/llms/components/inputtext.md +569 -0
  55. package/data/llms/components/installation.md +1 -0
  56. package/data/llms/components/keyfilter.md +116 -0
  57. package/data/llms/components/knob.md +318 -0
  58. package/data/llms/components/label.md +151 -0
  59. package/data/llms/components/laravel.md +53 -0
  60. package/data/llms/components/listbox.md +636 -0
  61. package/data/llms/components/mask.md +203 -0
  62. package/data/llms/components/mcp.md +39 -0
  63. package/data/llms/components/megamenu.md +563 -0
  64. package/data/llms/components/menu.md +651 -0
  65. package/data/llms/components/menubar.md +446 -0
  66. package/data/llms/components/message.md +497 -0
  67. package/data/llms/components/metergroup.md +281 -0
  68. package/data/llms/components/multiselect.md +752 -0
  69. package/data/llms/components/orderlist.md +224 -0
  70. package/data/llms/components/organizationchart.md +418 -0
  71. package/data/llms/components/paginator.md +221 -0
  72. package/data/llms/components/panel.md +321 -0
  73. package/data/llms/components/panelmenu.md +703 -0
  74. package/data/llms/components/password.md +657 -0
  75. package/data/llms/components/picklist.md +286 -0
  76. package/data/llms/components/popover.md +145 -0
  77. package/data/llms/components/progressbar.md +242 -0
  78. package/data/llms/components/progressspinner.md +104 -0
  79. package/data/llms/components/radiobutton.md +427 -0
  80. package/data/llms/components/rating.md +312 -0
  81. package/data/llms/components/ripple.md +91 -0
  82. package/data/llms/components/scrollarea.md +700 -0
  83. package/data/llms/components/scrollpanel.md +131 -0
  84. package/data/llms/components/scrolltop.md +87 -0
  85. package/data/llms/components/select.md +1251 -0
  86. package/data/llms/components/selectbutton.md +268 -0
  87. package/data/llms/components/sidebar.md +2232 -0
  88. package/data/llms/components/skeleton.md +302 -0
  89. package/data/llms/components/slider.md +416 -0
  90. package/data/llms/components/speeddial.md +402 -0
  91. package/data/llms/components/splitbutton.md +840 -0
  92. package/data/llms/components/splitter.md +447 -0
  93. package/data/llms/components/stepper.md +551 -0
  94. package/data/llms/components/styleclass.md +226 -0
  95. package/data/llms/components/tabs.md +609 -0
  96. package/data/llms/components/tag.md +178 -0
  97. package/data/llms/components/terminal.md +123 -0
  98. package/data/llms/components/textarea.md +519 -0
  99. package/data/llms/components/tieredmenu.md +578 -0
  100. package/data/llms/components/timeline.md +494 -0
  101. package/data/llms/components/toast.md +472 -0
  102. package/data/llms/components/togglebutton.md +276 -0
  103. package/data/llms/components/toggleswitch.md +271 -0
  104. package/data/llms/components/toolbar.md +140 -0
  105. package/data/llms/components/tooltip.md +160 -0
  106. package/data/llms/components/tree.md +1076 -0
  107. package/data/llms/components/treeselect.md +660 -0
  108. package/data/llms/components/treetable.md +2493 -0
  109. package/data/llms/components/virtualscroller.md +265 -0
  110. package/data/llms/guides/autoimport.md +28 -0
  111. package/data/llms/guides/cdn.md +72 -0
  112. package/data/llms/guides/configuration.md +158 -0
  113. package/data/llms/guides/customicons.md +67 -0
  114. package/data/llms/guides/guides/accessibility.md +27 -0
  115. package/data/llms/guides/guides/animations.md +119 -0
  116. package/data/llms/guides/guides/rtl.md +7 -0
  117. package/data/llms/guides/icons.md +136 -0
  118. package/data/llms/guides/installation.md +3 -0
  119. package/data/llms/guides/laravel.md +66 -0
  120. package/data/llms/guides/llms.md +15 -0
  121. package/data/llms/guides/mcp.md +104 -0
  122. package/data/llms/guides/migration/v4.md +15 -0
  123. package/data/llms/guides/migration/v5.md +15 -0
  124. package/data/llms/guides/nuxt.md +141 -0
  125. package/data/llms/guides/passthrough.md +137 -0
  126. package/data/llms/guides/primeclt.md +43 -0
  127. package/data/llms/guides/tailwind.md +151 -0
  128. package/data/llms/guides/theming/styled.md +497 -0
  129. package/data/llms/guides/theming/unstyled.md +57 -0
  130. package/data/llms/guides/uikit.md +3 -0
  131. package/data/llms/guides/vite.md +90 -0
  132. package/data/llms/llms-full.txt +54465 -0
  133. package/data/llms/llms.txt +132 -0
  134. package/data/llms/pages/accessibility.md +27 -0
  135. package/data/llms/pages/animations.md +119 -0
  136. package/data/llms/pages/autoimport.md +28 -0
  137. package/data/llms/pages/cdn.md +72 -0
  138. package/data/llms/pages/configuration.md +158 -0
  139. package/data/llms/pages/contribution.md +31 -0
  140. package/data/llms/pages/customicons.md +67 -0
  141. package/data/llms/pages/designer.md +79 -0
  142. package/data/llms/pages/dynamicimports.md +7 -0
  143. package/data/llms/pages/forms.md +63 -0
  144. package/data/llms/pages/guides/accessibility.md +27 -0
  145. package/data/llms/pages/guides/animations.md +119 -0
  146. package/data/llms/pages/guides/rtl.md +7 -0
  147. package/data/llms/pages/icons.md +136 -0
  148. package/data/llms/pages/installation.md +3 -0
  149. package/data/llms/pages/introduction.md +23 -0
  150. package/data/llms/pages/laravel.md +66 -0
  151. package/data/llms/pages/llms.md +15 -0
  152. package/data/llms/pages/mcp.md +104 -0
  153. package/data/llms/pages/migration/v4.md +15 -0
  154. package/data/llms/pages/migration/v5.md +15 -0
  155. package/data/llms/pages/nuxt.md +141 -0
  156. package/data/llms/pages/passthrough.md +137 -0
  157. package/data/llms/pages/primeclt.md +43 -0
  158. package/data/llms/pages/rtl.md +7 -0
  159. package/data/llms/pages/setup.md +3 -0
  160. package/data/llms/pages/styled.md +497 -0
  161. package/data/llms/pages/tailwind.md +151 -0
  162. package/data/llms/pages/theming/styled.md +497 -0
  163. package/data/llms/pages/theming/unstyled.md +57 -0
  164. package/data/llms/pages/uikit.md +3 -0
  165. package/data/llms/pages/unstyled.md +57 -0
  166. package/data/llms/pages/v4.md +15 -0
  167. package/data/llms/pages/v5.md +15 -0
  168. package/data/llms/pages/vite.md +90 -0
  169. package/data/manifest.json +11117 -0
  170. package/data/mcp-data.json +55940 -0
  171. package/dist/index.d.ts +17 -1
  172. package/dist/index.js +66066 -72541
  173. package/package.json +10 -12
@@ -0,0 +1,203 @@
1
+ # Mask
2
+
3
+ Mask is a directive used to enter input in a certain format such as numeric, date, currency, email and phone.
4
+
5
+ ## Basic
6
+
7
+ The v-mask directive is applied directly to an InputText or native input. The mask pattern can be passed as a string shorthand or as a full options object. Use v-model on the host input for two-way binding.
8
+
9
+ ```vue
10
+ <template>
11
+ <div class="flex justify-center">
12
+ <InputText id="basic" v-model="value" v-mask="'99-999999'" placeholder="99-999999" />
13
+ </div>
14
+ </template>
15
+
16
+ <script setup>
17
+ import { ref } from 'vue';
18
+
19
+ const value = ref('');
20
+ <\/script>
21
+ ```
22
+
23
+ ## Format Patterns
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
+ <div class="flex flex-wrap gap-4">
30
+ <div class="flex-auto">
31
+ <Label for="ssn" class="font-bold! block mb-2">SSN</Label>
32
+ <InputText id="ssn" v-model="value1" v-mask="'999-99-9999'" placeholder="999-99-9999" fluid />
33
+ </div>
34
+
35
+ <div class="flex-auto">
36
+ <Label for="phone" class="font-bold! block mb-2">Phone</Label>
37
+ <InputText id="phone" v-model="value2" v-mask="'(999) 999-9999'" placeholder="(999) 999-9999" fluid />
38
+ </div>
39
+
40
+ <div class="flex-auto">
41
+ <Label for="serial" class="font-bold! block mb-2">Serial</Label>
42
+ <InputText id="serial" v-model="value3" v-mask="'a*-999-a999'" placeholder="a*-999-a999" fluid />
43
+ </div>
44
+ </div>
45
+ </template>
46
+
47
+ <script setup>
48
+ import { ref } from 'vue';
49
+
50
+ const value1 = ref('');
51
+ const value2 = ref('');
52
+ const value3 = ref('');
53
+ <\/script>
54
+ ```
55
+
56
+ ## Optional
57
+
58
+ When the input does not complete the mask definition, it is cleared by default. Use autoClear option to control this behavior. In addition, ? is used to mark anything after the question mark optional.
59
+
60
+ ```vue
61
+ <template>
62
+ <div class="flex flex-col items-center gap-4">
63
+ <InputText v-model="value" v-mask="'(999) 999-9999? x99999'" placeholder="(999) 999-9999? x99999" />
64
+ <span class="text-sm text-muted-color">Bound value: {{ value || '—' }}</span>
65
+ </div>
66
+ </template>
67
+
68
+ <script setup>
69
+ import { ref } from 'vue';
70
+
71
+ const value = ref('');
72
+ <\/script>
73
+ ```
74
+
75
+ ## Slot Character
76
+
77
+ Default placeholder for a mask is the underscore character. It can be customized by passing a slotChar in the directive options object.
78
+
79
+ ```vue
80
+ <template>
81
+ <div class="flex justify-center">
82
+ <InputText id="basic" v-model="value" v-mask="{ mask: '99/99/9999', slotChar: 'mm/dd/yyyy' }" placeholder="99/99/9999" />
83
+ </div>
84
+ </template>
85
+
86
+ <script setup>
87
+ import { ref } from 'vue';
88
+
89
+ const value = ref('');
90
+ <\/script>
91
+ ```
92
+
93
+ ## Unmask
94
+
95
+ The onChange callback is invoked on every value change with both the masked value and the rawValue without the mask formatting characters, so both can be accessed at the same time.
96
+
97
+ ```vue
98
+ <template>
99
+ <div class="flex flex-col items-center gap-2">
100
+ <InputText v-model="value" v-mask="{ mask: '(999) 999-9999', onChange: onMaskChange }" placeholder="(999) 999-9999" />
101
+ <span class="text-sm text-muted-color">Masked: {{ value || '—' }}</span>
102
+ <span class="text-sm text-muted-color">Raw: {{ rawValue || '—' }}</span>
103
+ </div>
104
+ </template>
105
+
106
+ <script setup>
107
+ import { ref } from 'vue';
108
+
109
+ const value = ref('');
110
+ const rawValue = ref('');
111
+
112
+ const onMaskChange = (e) => {
113
+ rawValue.value = e.rawValue;
114
+ };
115
+ <\/script>
116
+ ```
117
+
118
+ ## AutoClear
119
+
120
+ When autoClear is set to false, the incomplete value is preserved on blur instead of being cleared.
121
+
122
+ ```vue
123
+ <template>
124
+ <div class="flex justify-center">
125
+ <InputText v-model="value" v-mask="{ mask: '99-999999', autoClear: false }" placeholder="99-999999" />
126
+ </div>
127
+ </template>
128
+
129
+ <script setup>
130
+ import { ref } from 'vue';
131
+
132
+ const value = ref('');
133
+ <\/script>
134
+ ```
135
+
136
+ ## Forms
137
+
138
+ The v-mask directive integrates seamlessly with the PrimeVue Forms library when applied to a named InputText .
139
+
140
+ ```vue
141
+ <template>
142
+ <div class="flex justify-center">
143
+ <Form v-slot="$form" :resolver="resolver" :initialValues="initialValues" @submit="onFormSubmit" class="flex flex-col gap-4 w-full sm:w-56">
144
+ <div class="flex flex-col gap-1">
145
+ <InputText name="serialNumber" v-mask="'99-999999'" placeholder="99-999999" fluid />
146
+ <Message v-if="$form.serialNumber?.invalid" severity="error" size="small" variant="simple">{{ $form.serialNumber.error?.message }}</Message>
147
+ </div>
148
+ <Button type="submit" severity="secondary">Submit</Button>
149
+ </Form>
150
+ </div>
151
+ </template>
152
+
153
+ <script setup>
154
+ import { ref } from 'vue';
155
+ import { zodResolver } from '@primevue/forms/resolvers/zod';
156
+ import { useToast } from "primevue/usetoast";
157
+ import { z } from 'zod';
158
+
159
+ const toast = useToast();
160
+ const initialValues = ref({
161
+ serialNumber: ''
162
+ });
163
+
164
+ const resolver = ref(zodResolver(
165
+ z.object({
166
+ serialNumber: z.string().min(1, { message: 'Serial number is required.' })
167
+ })
168
+ ));
169
+
170
+ const onFormSubmit = ({ valid }) => {
171
+ if (valid) {
172
+ toast.add({ severity: 'success', summary: 'Form is submitted.', life: 3000 });
173
+ }
174
+ };
175
+ <\/script>
176
+ ```
177
+
178
+ ## Accessibility
179
+
180
+ Screen Reader Mask directive is used with a native input element that implicitly includes any passed attribute. Value to describe the component can either be provided via label tag combined with id attribute or using aria-labelledby , aria-label attributes. Keyboard Support Key Function tab Moves focus to the input.
181
+
182
+ ```vue
183
+ <template>
184
+ <label for="date">Date</label>
185
+ <InputText id="date" v-mask="'99/99/9999'" />
186
+
187
+ <span id="phone">Phone</span>
188
+ <InputText aria-labelledby="phone" v-mask="'(999) 999-9999'" />
189
+
190
+ <InputText aria-label="Age" v-mask="'99'" />
191
+ </template>
192
+ ```
193
+
194
+ ## Mask API
195
+
196
+ ### Pass Through Options
197
+
198
+ | Name |Type |Description |
199
+ | --- | --- | --- |
200
+ | root | MaskDirectivePassThroughOptionType | Used to pass attributes to the root's DOM element. |
201
+ | hooks | any | Used to manage all lifecycle hooks. |
202
+
203
+ ### Theming
@@ -0,0 +1,39 @@
1
+ # mcp
2
+
3
+
4
+
5
+ ## Claude Code
6
+
7
+ Add the PrimeVue MCP server using the CLI. After adding, start a new session and use /mcp to verify the connection.
8
+
9
+ ## Cursor
10
+
11
+ Create .cursor/mcp.json in your project or ~/.cursor/mcp.json for global configuration.
12
+
13
+ ## ExamplePromptsDoc
14
+
15
+ Once installed, try asking your AI assistant:
16
+
17
+ ## Introduction
18
+
19
+ Model Context Protocol (MCP) is an open standard that enables AI models to connect with external tools and data sources . The PrimeVue MCP server provides AI assistants with comprehensive access to: Component documentation including props , events , slots , and methods Theming and styling with Pass Through and design tokens Code examples and usage patterns Accessibility information Installation and configuration guides
20
+
21
+ ## OpenAI Codex
22
+
23
+ Add the PrimeVue MCP server using the CLI or edit ~/.codex/config.toml directly.
24
+
25
+ ## ToolsDoc
26
+
27
+ Component Information Tools for exploring and understanding PrimeVue components. list_components : List all PrimeVue components with categories get_component : Get detailed info about a specific component search_components : Search components by name or description get_component_props : Get all props for a component get_component_events : Get all events for a component get_component_methods : Get all methods for a component get_component_slots : Get all slots for a component compare_components : Compare two components side by side Code Examples Tools for retrieving code samples and generating templates. get_usage_example : Get code examples for a component list_examples : List all available code examples get_example : Get a specific example by component and section generate_component_template : Generate a basic component template Theming & Styling Tools for customizing component appearance and styling. get_component_pt : Get Pass Through options for DOM customization get_component_tokens : Get design tokens (CSS variables) get_component_styles : Get CSS class names get_theming_guide : Get detailed theming guide get_passthrough_guide : Get Pass Through customization guide get_tailwind_guide : Get Tailwind CSS integration guide Documentation & Guides Tools for accessing PrimeVue documentation and guides. list_guides : List all guides and documentation pages get_guide : Get a specific guide by name get_configuration : Get PrimeVue configuration options get_installation : Get installation instructions get_accessibility_guide : Get accessibility guide get_accessibility_info : Get accessibility info for a component Search & Discovery Tools for finding components based on various criteria. search_all : Search across components, guides, and props suggest_component : Suggest components based on use case find_by_prop : Find components with a specific prop find_by_event : Find components that emit a specific event find_components_with_feature : Find components supporting a feature get_related_components : Find related components
28
+
29
+ ## VS Code
30
+
31
+ Create .vscode/mcp.json in your project or ~/Library/Application Support/Code/User/mcp.json for global configuration.
32
+
33
+ ## Windsurf
34
+
35
+ Edit ~/.codeium/windsurf/mcp_config.json to add the PrimeVue MCP server.
36
+
37
+ ## Zed
38
+
39
+ Add to your Zed settings at ~/.config/zed/settings.json (Linux) or ~/Library/Application Support/Zed/settings.json (macOS).