@exhaustive-ui/mcp 0.0.0-stage → 3.0.0-alpha.1
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 +23 -0
- package/README.md +167 -2
- package/data/components/accordion.md +421 -0
- package/data/components/animateonscroll.md +163 -0
- package/data/components/autocomplete.md +1077 -0
- package/data/components/autofocus.md +38 -0
- package/data/components/avatar.md +417 -0
- package/data/components/badge.md +234 -0
- package/data/components/blockui.md +108 -0
- package/data/components/breadcrumb.md +178 -0
- package/data/components/button.md +774 -0
- package/data/components/card.md +138 -0
- package/data/components/carousel.md +440 -0
- package/data/components/cascadeselect.md +1387 -0
- package/data/components/chart.md +1178 -0
- package/data/components/checkbox.md +529 -0
- package/data/components/chip.md +180 -0
- package/data/components/colorpicker.md +301 -0
- package/data/components/confirmdialog.md +287 -0
- package/data/components/confirmpopup.md +417 -0
- package/data/components/contextmenu.md +491 -0
- package/data/components/dataview.md +600 -0
- package/data/components/datepicker.md +1262 -0
- package/data/components/dialog.md +622 -0
- package/data/components/divider.md +250 -0
- package/data/components/dock.md +500 -0
- package/data/components/dragdrop.md +285 -0
- package/data/components/drawer.md +510 -0
- package/data/components/dynamicdialog.md +109 -0
- package/data/components/editor.md +291 -0
- package/data/components/fieldset.md +182 -0
- package/data/components/fileupload.md +430 -0
- package/data/components/floatlabel.md +155 -0
- package/data/components/fluid.md +72 -0
- package/data/components/focustrap.md +65 -0
- package/data/components/galleria.md +627 -0
- package/data/components/iconfield.md +246 -0
- package/data/components/iftalabel.md +105 -0
- package/data/components/imagecompare.md +97 -0
- package/data/components/inplace.md +233 -0
- package/data/components/inputgroup.md +306 -0
- package/data/components/inputmask.md +518 -0
- package/data/components/inputnumber.md +675 -0
- package/data/components/inputotp.md +336 -0
- package/data/components/inputtext.md +488 -0
- package/data/components/keyfilter.md +85 -0
- package/data/components/knob.md +462 -0
- package/data/components/listbox.md +798 -0
- package/data/components/llms.md +28 -0
- package/data/components/megamenu.md +587 -0
- package/data/components/menu.md +483 -0
- package/data/components/menubar.md +462 -0
- package/data/components/message.md +449 -0
- package/data/components/metergroup.md +241 -0
- package/data/components/multiselect.md +1047 -0
- package/data/components/orderlist.md +342 -0
- package/data/components/organizationchart.md +197 -0
- package/data/components/overlay.md +217 -0
- package/data/components/paginator.md +314 -0
- package/data/components/panel.md +214 -0
- package/data/components/panelmenu.md +699 -0
- package/data/components/password.md +570 -0
- package/data/components/picklist.md +420 -0
- package/data/components/popover.md +378 -0
- package/data/components/progressbar.md +181 -0
- package/data/components/progressspinner.md +91 -0
- package/data/components/radiobutton.md +377 -0
- package/data/components/rating.md +312 -0
- package/data/components/ripple.md +89 -0
- package/data/components/scroller.md +122 -0
- package/data/components/scrollpanel.md +149 -0
- package/data/components/scrolltop.md +105 -0
- package/data/components/select.md +1206 -0
- package/data/components/selectbutton.md +356 -0
- package/data/components/skeleton.md +242 -0
- package/data/components/slider.md +337 -0
- package/data/components/speeddial.md +589 -0
- package/data/components/splitbutton.md +945 -0
- package/data/components/splitter.md +196 -0
- package/data/components/stepper.md +411 -0
- package/data/components/styleclass.md +126 -0
- package/data/components/table.md +4557 -0
- package/data/components/tabs.md +467 -0
- package/data/components/tag.md +200 -0
- package/data/components/terminal.md +118 -0
- package/data/components/textarea.md +416 -0
- package/data/components/tieredmenu.md +578 -0
- package/data/components/timeline.md +310 -0
- package/data/components/toast.md +596 -0
- package/data/components/togglebutton.md +356 -0
- package/data/components/toggleswitch.md +285 -0
- package/data/components/toolbar.md +182 -0
- package/data/components/tooltip.md +211 -0
- package/data/components/tree.md +746 -0
- package/data/components/treeselect.md +912 -0
- package/data/components/treetable.md +2814 -0
- package/data/components.json +43751 -0
- package/data/llms-full.txt +47433 -0
- package/data/llms.txt +121 -0
- package/data/manifest.json +46513 -0
- package/data/pages/accessibility.md +28 -0
- package/data/pages/animations.md +28 -0
- package/data/pages/configuration.md +210 -0
- package/data/pages/contribution.md +20 -0
- package/data/pages/customicons.md +20 -0
- package/data/pages/faq.md +20 -0
- package/data/pages/icons.md +66 -0
- package/data/pages/installation.md +71 -0
- package/data/pages/llms.md +61 -0
- package/data/pages/passthrough.md +32 -0
- package/data/pages/philosophy.md +28 -0
- package/data/pages/primeflex.md +20 -0
- package/data/pages/rtl.md +12 -0
- package/data/pages/styled.md +132 -0
- package/data/pages/tailwind.md +40 -0
- package/data/pages/unstyled.md +39 -0
- package/data/snapshot.json +9 -0
- package/dist/index.d.mts +448 -0
- package/dist/index.mjs +2501 -0
- package/dist/index.mjs.map +1 -0
- package/package.json +67 -3
|
@@ -0,0 +1,306 @@
|
|
|
1
|
+
# Angular InputGroup Component
|
|
2
|
+
|
|
3
|
+
Text, icon, buttons and other content can be grouped next to an input.
|
|
4
|
+
|
|
5
|
+
## Accessibility
|
|
6
|
+
|
|
7
|
+
Screen Reader InputGroup and InputGroupAddon does not require any roles and attributes. Keyboard Support Component does not include any interactive elements.
|
|
8
|
+
|
|
9
|
+
## Basic
|
|
10
|
+
|
|
11
|
+
A group is created by wrapping the input and add-ons with the p-inputgroup component. Each add-on element is defined as a child of p-inputgroup-addon component.
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { Component } from '@angular/core';
|
|
15
|
+
import { FormsModule } from '@angular/forms';
|
|
16
|
+
import { SelectModule } from '@exhaustive-ui/core/select';
|
|
17
|
+
import { InputGroupModule } from '@exhaustive-ui/core/inputgroup';
|
|
18
|
+
import { InputNumberModule } from '@exhaustive-ui/core/inputnumber';
|
|
19
|
+
import { InputTextModule } from '@exhaustive-ui/core/inputtext';
|
|
20
|
+
|
|
21
|
+
interface City {
|
|
22
|
+
name: string;
|
|
23
|
+
code: string;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
@Component({
|
|
27
|
+
template: `
|
|
28
|
+
<div class="card grid grid-cols-1 md:grid-cols-2 gap-4">
|
|
29
|
+
<p-inputgroup>
|
|
30
|
+
<p-inputgroup-addon>
|
|
31
|
+
<i class="pi pi-user"></i>
|
|
32
|
+
</p-inputgroup-addon>
|
|
33
|
+
<input pInputText [(ngModel)]="text1" placeholder="Username" />
|
|
34
|
+
</p-inputgroup>
|
|
35
|
+
<p-inputgroup>
|
|
36
|
+
<p-inputgroup-addon>$</p-inputgroup-addon>
|
|
37
|
+
<p-inputnumber [(ngModel)]="number" placeholder="Price" />
|
|
38
|
+
<p-inputgroup-addon>.00</p-inputgroup-addon>
|
|
39
|
+
</p-inputgroup>
|
|
40
|
+
<p-inputgroup>
|
|
41
|
+
<p-inputgroup-addon>www</p-inputgroup-addon>
|
|
42
|
+
<input pInputText [(ngModel)]="text2" placeholder="Website" />
|
|
43
|
+
</p-inputgroup>
|
|
44
|
+
<p-inputgroup>
|
|
45
|
+
<p-inputgroup-addon>
|
|
46
|
+
<i class="pi pi-map"></i>
|
|
47
|
+
</p-inputgroup-addon>
|
|
48
|
+
<p-select [(ngModel)]="selectedCity" [options]="cities" optionLabel="name" placeholder="City" />
|
|
49
|
+
</p-inputgroup>
|
|
50
|
+
</div>
|
|
51
|
+
`,
|
|
52
|
+
standalone: true,
|
|
53
|
+
imports: [SelectModule, InputGroupModule, InputNumberModule, InputTextModule, FormsModule]
|
|
54
|
+
})
|
|
55
|
+
export class InputgroupBasicDemo {
|
|
56
|
+
text1: string | undefined;
|
|
57
|
+
text2: string | undefined;
|
|
58
|
+
number: string | undefined;
|
|
59
|
+
selectedCity: City | undefined;
|
|
60
|
+
cities: City[];
|
|
61
|
+
}
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
## Button
|
|
65
|
+
|
|
66
|
+
Buttons can be placed at either side of an input element.
|
|
67
|
+
|
|
68
|
+
```typescript
|
|
69
|
+
import { Component, OnInit } from '@angular/core';
|
|
70
|
+
import { ButtonModule } from '@exhaustive-ui/core/button';
|
|
71
|
+
import { InputGroupModule } from '@exhaustive-ui/core/inputgroup';
|
|
72
|
+
import { MenuModule } from '@exhaustive-ui/core/menu';
|
|
73
|
+
import { InputTextModule } from '@exhaustive-ui/core/inputtext';
|
|
74
|
+
import { MenuItem } from '@exhaustive-ui/core/api';
|
|
75
|
+
|
|
76
|
+
@Component({
|
|
77
|
+
template: `
|
|
78
|
+
<div class="card flex flex-col md:flex-row gap-4">
|
|
79
|
+
<p-inputgroup>
|
|
80
|
+
<p-button label="Search" />
|
|
81
|
+
<input pInputText placeholder="Keyword" />
|
|
82
|
+
</p-inputgroup>
|
|
83
|
+
<p-inputgroup>
|
|
84
|
+
<input pInputText placeholder="Keyword" />
|
|
85
|
+
<p-inputgroup-addon>
|
|
86
|
+
<p-button icon="pi pi-search" severity="secondary" variant="text" (click)="menu.toggle($event)" />
|
|
87
|
+
</p-inputgroup-addon>
|
|
88
|
+
</p-inputgroup>
|
|
89
|
+
<p-menu #menu [model]="items" popup styleClass="!min-w-fit" />
|
|
90
|
+
<p-inputgroup>
|
|
91
|
+
<p-inputgroup-addon>
|
|
92
|
+
<p-button icon="pi pi-check" severity="secondary" />
|
|
93
|
+
</p-inputgroup-addon>
|
|
94
|
+
<input pInputText placeholder="Vote" />
|
|
95
|
+
<p-inputgroup-addon>
|
|
96
|
+
<p-button icon="pi pi-times" severity="secondary" />
|
|
97
|
+
</p-inputgroup-addon>
|
|
98
|
+
</p-inputgroup>
|
|
99
|
+
</div>
|
|
100
|
+
`,
|
|
101
|
+
standalone: true,
|
|
102
|
+
imports: [ButtonModule, InputGroupModule, MenuModule, InputTextModule]
|
|
103
|
+
})
|
|
104
|
+
export class InputgroupButtonDemo implements OnInit {
|
|
105
|
+
items: MenuItem[] | undefined;
|
|
106
|
+
|
|
107
|
+
ngOnInit() {
|
|
108
|
+
this.items = [{ label: 'Web Search' }, { label: 'AI Assistant' }, { label: 'History' }];
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
## Checkbox & Radio
|
|
114
|
+
|
|
115
|
+
Checkbox and RadioButton components can be combined with an input element under the same group.
|
|
116
|
+
|
|
117
|
+
```typescript
|
|
118
|
+
import { Component } from '@angular/core';
|
|
119
|
+
import { FormsModule } from '@angular/forms';
|
|
120
|
+
import { CheckboxModule } from '@exhaustive-ui/core/checkbox';
|
|
121
|
+
import { InputGroupModule } from '@exhaustive-ui/core/inputgroup';
|
|
122
|
+
import { RadioButtonModule } from '@exhaustive-ui/core/radiobutton';
|
|
123
|
+
import { InputTextModule } from '@exhaustive-ui/core/inputtext';
|
|
124
|
+
|
|
125
|
+
@Component({
|
|
126
|
+
template: `
|
|
127
|
+
<div class="card flex flex-col md:flex-row gap-4">
|
|
128
|
+
<p-inputgroup>
|
|
129
|
+
<input type="text" pInputText placeholder="Price" />
|
|
130
|
+
<p-inputgroup-addon><p-radiobutton [(ngModel)]="radioValue1" name="rb1" value="rb1" /></p-inputgroup-addon>
|
|
131
|
+
</p-inputgroup>
|
|
132
|
+
<p-inputgroup>
|
|
133
|
+
<p-inputgroup-addon><p-checkbox [(ngModel)]="checked1" [binary]="true" /></p-inputgroup-addon>
|
|
134
|
+
<input type="text" pInputText placeholder="Username" />
|
|
135
|
+
</p-inputgroup>
|
|
136
|
+
<p-inputgroup>
|
|
137
|
+
<p-inputgroup-addon><p-checkbox [(ngModel)]="checked2" [binary]="true" /></p-inputgroup-addon>
|
|
138
|
+
<input type="text" pInputText placeholder="Website" />
|
|
139
|
+
<p-inputgroup-addon><p-radiobutton name="rb2" value="rb2" [(ngModel)]="category" /></p-inputgroup-addon>
|
|
140
|
+
</p-inputgroup>
|
|
141
|
+
</div>
|
|
142
|
+
`,
|
|
143
|
+
standalone: true,
|
|
144
|
+
imports: [CheckboxModule, InputGroupModule, RadioButtonModule, InputTextModule, FormsModule]
|
|
145
|
+
})
|
|
146
|
+
export class InputgroupCheckboxDemo {
|
|
147
|
+
radioValue1: boolean = false;
|
|
148
|
+
checked1: boolean = false;
|
|
149
|
+
checked2: boolean = false;
|
|
150
|
+
category: string | undefined;
|
|
151
|
+
}
|
|
152
|
+
```
|
|
153
|
+
|
|
154
|
+
## Float Label
|
|
155
|
+
|
|
156
|
+
FloatLabel visually integrates a label with its form element. Visit FloatLabel documentation for more information.
|
|
157
|
+
|
|
158
|
+
```typescript
|
|
159
|
+
import { Component } from '@angular/core';
|
|
160
|
+
import { FormsModule } from '@angular/forms';
|
|
161
|
+
import { FloatLabelModule } from '@exhaustive-ui/core/floatlabel';
|
|
162
|
+
import { InputGroupModule } from '@exhaustive-ui/core/inputgroup';
|
|
163
|
+
import { InputTextModule } from '@exhaustive-ui/core/inputtext';
|
|
164
|
+
|
|
165
|
+
@Component({
|
|
166
|
+
template: `
|
|
167
|
+
<div class="card flex flex-col md:items-end md:flex-row gap-4">
|
|
168
|
+
<p-inputgroup>
|
|
169
|
+
<p-inputgroup-addon>
|
|
170
|
+
<i class="pi pi-user"></i>
|
|
171
|
+
</p-inputgroup-addon>
|
|
172
|
+
<p-floatlabel>
|
|
173
|
+
<input pInputText id="over_label" [(ngModel)]="value1" />
|
|
174
|
+
<label for="over_label">Over Label</label>
|
|
175
|
+
</p-floatlabel>
|
|
176
|
+
</p-inputgroup>
|
|
177
|
+
<p-inputgroup>
|
|
178
|
+
<p-inputgroup-addon>$</p-inputgroup-addon>
|
|
179
|
+
<p-floatlabel variant="in">
|
|
180
|
+
<input pInputText id="in_label" [(ngModel)]="value2" />
|
|
181
|
+
<label for="in_label">In Label</label>
|
|
182
|
+
</p-floatlabel>
|
|
183
|
+
<p-inputgroup-addon>.00</p-inputgroup-addon>
|
|
184
|
+
</p-inputgroup>
|
|
185
|
+
<p-inputgroup>
|
|
186
|
+
<p-inputgroup-addon>www</p-inputgroup-addon>
|
|
187
|
+
<p-floatlabel variant="on">
|
|
188
|
+
<input pInputText id="on_label" [(ngModel)]="value3" />
|
|
189
|
+
<label for="on_label">On Label</label>
|
|
190
|
+
</p-floatlabel>
|
|
191
|
+
</p-inputgroup>
|
|
192
|
+
</div>
|
|
193
|
+
`,
|
|
194
|
+
standalone: true,
|
|
195
|
+
imports: [FloatLabelModule, InputGroupModule, InputTextModule, FormsModule]
|
|
196
|
+
})
|
|
197
|
+
export class InputgroupFloatlabelDemo {
|
|
198
|
+
value1: string | undefined;
|
|
199
|
+
value2: string | undefined;
|
|
200
|
+
value3: string | undefined;
|
|
201
|
+
}
|
|
202
|
+
```
|
|
203
|
+
|
|
204
|
+
## Ifta Label
|
|
205
|
+
|
|
206
|
+
IftaLabel is used to create infield top aligned labels. Visit IftaLabel documentation for more information.
|
|
207
|
+
|
|
208
|
+
```typescript
|
|
209
|
+
import { Component } from '@angular/core';
|
|
210
|
+
import { FormsModule } from '@angular/forms';
|
|
211
|
+
import { IftaLabelModule } from '@exhaustive-ui/core/iftalabel';
|
|
212
|
+
import { InputGroupModule } from '@exhaustive-ui/core/inputgroup';
|
|
213
|
+
import { InputNumberModule } from '@exhaustive-ui/core/inputnumber';
|
|
214
|
+
|
|
215
|
+
@Component({
|
|
216
|
+
template: `
|
|
217
|
+
<div class="card flex justify-center">
|
|
218
|
+
<p-inputgroup class="md:!w-80">
|
|
219
|
+
<p-inputgroup-addon>
|
|
220
|
+
<i class="pi pi-shopping-cart"></i>
|
|
221
|
+
</p-inputgroup-addon>
|
|
222
|
+
<p-iftalabel>
|
|
223
|
+
<p-inputnumber [(ngModel)]="value" inputId="price" mode="currency" currency="USD" locale="en-US" />
|
|
224
|
+
<label for="price">Price</label>
|
|
225
|
+
</p-iftalabel>
|
|
226
|
+
</p-inputgroup>
|
|
227
|
+
</div>
|
|
228
|
+
`,
|
|
229
|
+
standalone: true,
|
|
230
|
+
imports: [IftaLabelModule, InputGroupModule, InputNumberModule, FormsModule]
|
|
231
|
+
})
|
|
232
|
+
export class InputgroupIftalabelDemo {
|
|
233
|
+
value: number = 10;
|
|
234
|
+
}
|
|
235
|
+
```
|
|
236
|
+
|
|
237
|
+
## Multiple
|
|
238
|
+
|
|
239
|
+
Multiple add-ons can be placed inside the same group.
|
|
240
|
+
|
|
241
|
+
```typescript
|
|
242
|
+
import { Component } from '@angular/core';
|
|
243
|
+
import { InputGroupModule } from '@exhaustive-ui/core/inputgroup';
|
|
244
|
+
import { InputTextModule } from '@exhaustive-ui/core/inputtext';
|
|
245
|
+
|
|
246
|
+
@Component({
|
|
247
|
+
template: `
|
|
248
|
+
<div class="card flex justify-center">
|
|
249
|
+
<p-inputgroup class="w-full md:!w-[30rem]">
|
|
250
|
+
<p-inputgroup-addon>
|
|
251
|
+
<i class="pi pi-clock"></i>
|
|
252
|
+
</p-inputgroup-addon>
|
|
253
|
+
<p-inputgroup-addon>
|
|
254
|
+
<i class="pi pi-star-fill"></i>
|
|
255
|
+
</p-inputgroup-addon>
|
|
256
|
+
<input type="text" pInputText placeholder="Price" />
|
|
257
|
+
<p-inputgroup-addon>$</p-inputgroup-addon>
|
|
258
|
+
<p-inputgroup-addon>.00</p-inputgroup-addon>
|
|
259
|
+
</p-inputgroup>
|
|
260
|
+
</div>
|
|
261
|
+
`,
|
|
262
|
+
standalone: true,
|
|
263
|
+
imports: [InputGroupModule, InputTextModule]
|
|
264
|
+
})
|
|
265
|
+
export class InputgroupMultipleDemo {}
|
|
266
|
+
```
|
|
267
|
+
|
|
268
|
+
## Input Group
|
|
269
|
+
|
|
270
|
+
InputGroup displays text, icon, buttons and other content can be grouped next to an input.
|
|
271
|
+
|
|
272
|
+
### Props
|
|
273
|
+
|
|
274
|
+
| Name | Type | Default | Description |
|
|
275
|
+
|------|------|---------|-------------|
|
|
276
|
+
| dt | InputSignal<Object> | undefined | Defines scoped design tokens of the component. |
|
|
277
|
+
| unstyled | InputSignal<boolean> | undefined | Indicates whether the component should be rendered without styles. |
|
|
278
|
+
| pt | InputSignal<InputGroupPassThrough> | undefined | Used to pass attributes to DOM elements inside the component. |
|
|
279
|
+
| ptOptions | InputSignal<PassThroughOptions> | undefined | Used to configure passthrough(pt) options of the component. |
|
|
280
|
+
|
|
281
|
+
## Pass Through Options
|
|
282
|
+
|
|
283
|
+
| Name | Type | Description |
|
|
284
|
+
|------|------|-------------|
|
|
285
|
+
| host | PassThroughOption<HTMLElement, I> | Used to pass attributes to the host's DOM element. |
|
|
286
|
+
| root | PassThroughOption<HTMLElement, I> | Used to pass attributes to the root's DOM element. |
|
|
287
|
+
|
|
288
|
+
## Theming
|
|
289
|
+
|
|
290
|
+
### CSS Classes
|
|
291
|
+
|
|
292
|
+
| Class | Description |
|
|
293
|
+
|-------|-------------|
|
|
294
|
+
| p-inputgroup | Class name of the root element |
|
|
295
|
+
|
|
296
|
+
### Design Tokens
|
|
297
|
+
|
|
298
|
+
| Token | CSS Variable | Description |
|
|
299
|
+
|-------|--------------|-------------|
|
|
300
|
+
| inputgroup.addon.background | --p-inputgroup-addon-background | Background of addon |
|
|
301
|
+
| inputgroup.addon.border.color | --p-inputgroup-addon-border-color | Border color of addon |
|
|
302
|
+
| inputgroup.addon.color | --p-inputgroup-addon-color | Color of addon |
|
|
303
|
+
| inputgroup.addon.border.radius | --p-inputgroup-addon-border-radius | Border radius of addon |
|
|
304
|
+
| inputgroup.addon.padding | --p-inputgroup-addon-padding | Padding of addon |
|
|
305
|
+
| inputgroup.addon.min.width | --p-inputgroup-addon-min-width | Min width of addon |
|
|
306
|
+
|