@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,183 @@
|
|
|
1
|
+
# Inplace
|
|
2
|
+
|
|
3
|
+
Inplace provides an easy to do editing and display at the same time where clicking the output displays the actual content.
|
|
4
|
+
|
|
5
|
+
## Basic
|
|
6
|
+
|
|
7
|
+
Inplace component requires display and content templates to define the content of each state.
|
|
8
|
+
|
|
9
|
+
```vue
|
|
10
|
+
<template>
|
|
11
|
+
<div class="max-w-3xs mx-auto w-full">
|
|
12
|
+
<div class="font-mono uppercase text-xs opacity-50 pl-2 mb-1">Name</div>
|
|
13
|
+
<Inplace :pt="{ display: 'w-full' }">
|
|
14
|
+
<template #display>
|
|
15
|
+
<span class="w-full text-sm">John Doe</span>
|
|
16
|
+
</template>
|
|
17
|
+
<template #content="{ closeCallback }">
|
|
18
|
+
<InputGroup class="flex items-center">
|
|
19
|
+
<InputText v-model="name" placeholder="Enter name" class="flex-1" fluid autofocus />
|
|
20
|
+
<InputGroupAddon>
|
|
21
|
+
<Button text severity="success">
|
|
22
|
+
<Check />
|
|
23
|
+
</Button>
|
|
24
|
+
</InputGroupAddon>
|
|
25
|
+
<InputGroupAddon>
|
|
26
|
+
<Button text severity="danger" @click="closeCallback">
|
|
27
|
+
<Times />
|
|
28
|
+
</Button>
|
|
29
|
+
</InputGroupAddon>
|
|
30
|
+
</InputGroup>
|
|
31
|
+
</template>
|
|
32
|
+
</Inplace>
|
|
33
|
+
</div>
|
|
34
|
+
</template>
|
|
35
|
+
|
|
36
|
+
<script setup>
|
|
37
|
+
import { ref } from 'vue';
|
|
38
|
+
import Check from '@primeicons/vue/check';
|
|
39
|
+
import Times from '@primeicons/vue/times';
|
|
40
|
+
|
|
41
|
+
const name = ref('');
|
|
42
|
+
<\/script>
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
## Controlled
|
|
46
|
+
|
|
47
|
+
The active state can be controlled programmatically with two-way binding on the active property.
|
|
48
|
+
|
|
49
|
+
```vue
|
|
50
|
+
<template>
|
|
51
|
+
<div class="max-w-3xs mx-auto w-full">
|
|
52
|
+
<div class="font-mono uppercase text-xs opacity-50 pl-2 mb-1">Name</div>
|
|
53
|
+
<Inplace v-model:active="active" :pt="{ display: 'w-full' }">
|
|
54
|
+
<template #display>
|
|
55
|
+
<span class="w-full text-sm">John Doe</span>
|
|
56
|
+
</template>
|
|
57
|
+
<template #content>
|
|
58
|
+
<InputText v-model="name" placeholder="Enter name" class="flex-1" fluid autofocus />
|
|
59
|
+
</template>
|
|
60
|
+
</Inplace>
|
|
61
|
+
<div class="flex items-center gap-2 mt-2">
|
|
62
|
+
<Button class="flex-1" variant="outlined" severity="secondary" @click="active = !active">{{ active ? 'Cancel' : 'Edit Name' }}</Button>
|
|
63
|
+
<Button v-if="active" class="flex-1" variant="outlined" fluid @click="active = false">Save</Button>
|
|
64
|
+
</div>
|
|
65
|
+
</div>
|
|
66
|
+
</template>
|
|
67
|
+
|
|
68
|
+
<script setup>
|
|
69
|
+
import { ref } from 'vue';
|
|
70
|
+
|
|
71
|
+
const active = ref(false);
|
|
72
|
+
const name = ref('');
|
|
73
|
+
<\/script>
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
## Image
|
|
77
|
+
|
|
78
|
+
Any content such as an image can be placed inside an Inplace.
|
|
79
|
+
|
|
80
|
+
```vue
|
|
81
|
+
<template>
|
|
82
|
+
<Inplace>
|
|
83
|
+
<template #display>
|
|
84
|
+
<span class="inline-flex items-center gap-2">
|
|
85
|
+
<ImageIcon style="vertical-align: middle" />
|
|
86
|
+
<span class="ml-2 text-sm">View Photo</span>
|
|
87
|
+
</span>
|
|
88
|
+
</template>
|
|
89
|
+
<template #content>
|
|
90
|
+
<img class="w-full sm:w-80 shadow-md" src="https://primefaces.org/cdn/primeng/images/demo/galleria/galleria5.jpg" alt="Nature" />
|
|
91
|
+
</template>
|
|
92
|
+
</Inplace>
|
|
93
|
+
</template>
|
|
94
|
+
|
|
95
|
+
<script setup>
|
|
96
|
+
import ImageIcon from "@primeicons/vue/image";
|
|
97
|
+
<\/script>
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
## Lazy
|
|
101
|
+
|
|
102
|
+
Using the open event, data can be loaded in a lazy manner before displaying it in a table.
|
|
103
|
+
|
|
104
|
+
```vue
|
|
105
|
+
<template>
|
|
106
|
+
<Inplace @open="loadData">
|
|
107
|
+
<template #display>
|
|
108
|
+
<span class="text-sm">View Data</span>
|
|
109
|
+
</template>
|
|
110
|
+
<template #content>
|
|
111
|
+
<DataTable :value="products">
|
|
112
|
+
<Column field="code" header="Code"></Column>
|
|
113
|
+
<Column field="name" header="Name"></Column>
|
|
114
|
+
<Column field="category" header="Category"></Column>
|
|
115
|
+
<Column field="quantity" header="Quantity"></Column>
|
|
116
|
+
</DataTable>
|
|
117
|
+
</template>
|
|
118
|
+
</Inplace>
|
|
119
|
+
</template>
|
|
120
|
+
|
|
121
|
+
<script setup>
|
|
122
|
+
import { ref } from "vue";
|
|
123
|
+
import { ProductService } from "@/service/ProductService";
|
|
124
|
+
|
|
125
|
+
const products = ref(null);
|
|
126
|
+
|
|
127
|
+
const loadData = () => {
|
|
128
|
+
ProductService.getProductsMini().then((data) => (products.value = data));
|
|
129
|
+
};
|
|
130
|
+
<\/script>
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
## Accessibility
|
|
134
|
+
|
|
135
|
+
Screen Reader Inplace component defines aria-live as "polite" by default, since any valid attribute is passed to the main container aria roles and attributes of the root element can be customized easily. Display element uses button role in view mode by default, displayProps can be used for customizations like adding aria-label or aria-labelledby attributes to describe the content of the view mode or even overriding the default role. Closable inplace components displays a button with an aria-label that refers to the aria.close property of the locale API by default, you may use closeButtonProps to customize the element and override the default aria-label . View Mode Keyboard Support Key Function enter Switches to content. Close Button Keyboard Support Key Function enter Switches to display. space Switches to display.
|
|
136
|
+
|
|
137
|
+
## Inplace API
|
|
138
|
+
|
|
139
|
+
### Props
|
|
140
|
+
|
|
141
|
+
| Name |Type |Default |Description |
|
|
142
|
+
| --- | --- | --- | --- |
|
|
143
|
+
| active | boolean | false | Whether the content is displayed or not. |
|
|
144
|
+
| disabled | boolean | false | When present, it specifies that the element should be disabled. |
|
|
145
|
+
| displayProps | HTMLAttributes | - | Used to pass all properties of the HTMLDivElement to display container. |
|
|
146
|
+
| dt | any | - | It generates scoped CSS variables using design tokens for the component. |
|
|
147
|
+
| pt | PassThrough<InplacePassThroughOptions> | - | Used to pass attributes to DOM elements inside the component. |
|
|
148
|
+
| ptOptions | any | - | Used to configure passthrough(pt) options of the component. |
|
|
149
|
+
| unstyled | boolean | false | When enabled, it removes component related styles in the core. |
|
|
150
|
+
|
|
151
|
+
### Pass Through Options
|
|
152
|
+
|
|
153
|
+
| Name |Type |Description |
|
|
154
|
+
| --- | --- | --- |
|
|
155
|
+
| root | InplacePassThroughOptionType | Used to pass attributes to the root's DOM element. |
|
|
156
|
+
| display | InplacePassThroughOptionType | Used to pass attributes to the display's DOM element. |
|
|
157
|
+
| content | InplacePassThroughOptionType | Used to pass attributes to the content's DOM element. |
|
|
158
|
+
| hooks | any | Used to manage all lifecycle hooks. |
|
|
159
|
+
|
|
160
|
+
### Theming
|
|
161
|
+
|
|
162
|
+
### CSS Classes
|
|
163
|
+
|
|
164
|
+
| Class |Description |
|
|
165
|
+
| --- | --- |
|
|
166
|
+
| p-inplace | Class name of the root element |
|
|
167
|
+
| p-inplace-display | Class name of the display element |
|
|
168
|
+
| p-inplace-content | Class name of the content element |
|
|
169
|
+
|
|
170
|
+
### Design Tokens
|
|
171
|
+
|
|
172
|
+
| Token |CSS Variable |Description |
|
|
173
|
+
| --- | --- | --- |
|
|
174
|
+
| inplace.padding | --p-inplace-padding | Padding of root |
|
|
175
|
+
| inplace.border.radius | --p-inplace-border-radius | Border radius of root |
|
|
176
|
+
| inplace.focus.ring.width | --p-inplace-focus-ring-width | Focus ring width of root |
|
|
177
|
+
| inplace.focus.ring.style | --p-inplace-focus-ring-style | Focus ring style of root |
|
|
178
|
+
| inplace.focus.ring.color | --p-inplace-focus-ring-color | Focus ring color of root |
|
|
179
|
+
| inplace.focus.ring.offset | --p-inplace-focus-ring-offset | Focus ring offset of root |
|
|
180
|
+
| inplace.focus.ring.shadow | --p-inplace-focus-ring-shadow | Focus ring shadow of root |
|
|
181
|
+
| inplace.transition.duration | --p-inplace-transition-duration | Transition duration of root |
|
|
182
|
+
| inplace.display.hover.background | --p-inplace-display-hover-background | Hover background of display |
|
|
183
|
+
| inplace.display.hover.color | --p-inplace-display-hover-color | Hover color of display |
|