@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,38 @@
|
|
|
1
|
+
# Angular AutoFocus Directive
|
|
2
|
+
|
|
3
|
+
AutoFocus manages focus on focusable element on load.
|
|
4
|
+
|
|
5
|
+
## Basic
|
|
6
|
+
|
|
7
|
+
AutoFocus is applied to any focusable input element with the pAutoFocus directive.
|
|
8
|
+
|
|
9
|
+
```typescript
|
|
10
|
+
import { Component } from '@angular/core';
|
|
11
|
+
import { InputTextModule } from '@exhaustive-ui/core/inputtext';
|
|
12
|
+
|
|
13
|
+
@Component({
|
|
14
|
+
template: `
|
|
15
|
+
<div class="card flex justify-center">
|
|
16
|
+
<input type="text" pInputText [pAutoFocus]="true" placeholder="Automatically focused" />
|
|
17
|
+
</div>
|
|
18
|
+
`,
|
|
19
|
+
standalone: true,
|
|
20
|
+
imports: [InputTextModule]
|
|
21
|
+
})
|
|
22
|
+
export class AutofocusBasicDemo {}
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
## Auto Focus
|
|
26
|
+
|
|
27
|
+
AutoFocus manages focus on focusable element on load.
|
|
28
|
+
|
|
29
|
+
### Props
|
|
30
|
+
|
|
31
|
+
| Name | Type | Default | Description |
|
|
32
|
+
|------|------|---------|-------------|
|
|
33
|
+
| autofocus | InputSignal<boolean> | ... | When present, it specifies that the component should automatically get focus on load. |
|
|
34
|
+
| dt | InputSignal<Object> | undefined | Defines scoped design tokens of the component. |
|
|
35
|
+
| unstyled | InputSignal<boolean> | undefined | Indicates whether the component should be rendered without styles. |
|
|
36
|
+
| pt | InputSignal<any> | undefined | Used to pass attributes to DOM elements inside the component. |
|
|
37
|
+
| ptOptions | InputSignal<PassThroughOptions> | undefined | Used to configure passthrough(pt) options of the component. |
|
|
38
|
+
|
|
@@ -0,0 +1,417 @@
|
|
|
1
|
+
# Angular Avatar Component
|
|
2
|
+
|
|
3
|
+
Avatar represents people using icons, labels and images.
|
|
4
|
+
|
|
5
|
+
## Accessibility
|
|
6
|
+
|
|
7
|
+
Screen Reader Avatar does not include any roles and attributes by default. Any attribute is passed to the root element so you may add a role like img along with aria-labelledby or aria-label to describe the component. In case avatars need to be tabbable, tabIndex can be added as well to implement custom key handlers. Keyboard Support Component does not include any interactive elements.
|
|
8
|
+
|
|
9
|
+
## AvatarGroup
|
|
10
|
+
|
|
11
|
+
Grouping is available by wrapping multiple Avatar components inside an AvatarGroup .
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { Component } from '@angular/core';
|
|
15
|
+
import { AvatarModule } from '@exhaustive-ui/core/avatar';
|
|
16
|
+
|
|
17
|
+
@Component({
|
|
18
|
+
template: `
|
|
19
|
+
<div class="card flex justify-center">
|
|
20
|
+
<p-avatar-group>
|
|
21
|
+
<p-avatar image="https://exhaustive-ui.e-xiste.com/demo/avatar/amyelsner.png" size="large" shape="circle" />
|
|
22
|
+
<p-avatar image="https://exhaustive-ui.e-xiste.com/demo/avatar/asiyajavayant.png" size="large" shape="circle" />
|
|
23
|
+
<p-avatar image="https://exhaustive-ui.e-xiste.com/demo/avatar/onyamalimba.png" size="large" shape="circle" />
|
|
24
|
+
<p-avatar image="https://exhaustive-ui.e-xiste.com/demo/avatar/ionibowcher.png" size="large" shape="circle" />
|
|
25
|
+
<p-avatar image="https://exhaustive-ui.e-xiste.com/demo/avatar/xuxuefeng.png" size="large" shape="circle" />
|
|
26
|
+
<p-avatar label="+2" shape="circle" size="large" />
|
|
27
|
+
</p-avatar-group>
|
|
28
|
+
</div>
|
|
29
|
+
`,
|
|
30
|
+
standalone: true,
|
|
31
|
+
imports: [AvatarModule]
|
|
32
|
+
})
|
|
33
|
+
export class AvatarAvatargroupDemo {}
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
## avatargroupstyle-doc
|
|
37
|
+
|
|
38
|
+
```typescript
|
|
39
|
+
import { Component } from '@angular/core';
|
|
40
|
+
|
|
41
|
+
@Component({
|
|
42
|
+
template: `
|
|
43
|
+
<div class="doc-tablewrapper">
|
|
44
|
+
<table class="doc-table">
|
|
45
|
+
<thead>
|
|
46
|
+
<tr>
|
|
47
|
+
<th>Name</th>
|
|
48
|
+
<th>Element</th>
|
|
49
|
+
</tr>
|
|
50
|
+
</thead>
|
|
51
|
+
<tbody>
|
|
52
|
+
<tr>
|
|
53
|
+
<td>p-avatar-group</td>
|
|
54
|
+
<td>Container element.</td>
|
|
55
|
+
</tr>
|
|
56
|
+
</tbody>
|
|
57
|
+
</table>
|
|
58
|
+
</div>
|
|
59
|
+
`,
|
|
60
|
+
standalone: true,
|
|
61
|
+
imports: []
|
|
62
|
+
})
|
|
63
|
+
export class AvatarAvatargroupstyleDemo {}
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
## avatarstyle-doc
|
|
67
|
+
|
|
68
|
+
Following is the list of structural style classes, for theming classes visit theming page.
|
|
69
|
+
|
|
70
|
+
```typescript
|
|
71
|
+
import { Component } from '@angular/core';
|
|
72
|
+
|
|
73
|
+
@Component({
|
|
74
|
+
template: `
|
|
75
|
+
<div class="doc-tablewrapper">
|
|
76
|
+
<table class="doc-table">
|
|
77
|
+
<thead>
|
|
78
|
+
<tr>
|
|
79
|
+
<th>Name</th>
|
|
80
|
+
<th>Element</th>
|
|
81
|
+
</tr>
|
|
82
|
+
</thead>
|
|
83
|
+
<tbody>
|
|
84
|
+
<tr>
|
|
85
|
+
<td>p-avatar</td>
|
|
86
|
+
<td>Container element.</td>
|
|
87
|
+
</tr>
|
|
88
|
+
<tr>
|
|
89
|
+
<td>p-avatar-image</td>
|
|
90
|
+
<td>Container element in image mode.</td>
|
|
91
|
+
</tr>
|
|
92
|
+
<tr>
|
|
93
|
+
<td>p-avatar-circle</td>
|
|
94
|
+
<td>Container element with a circle shape.</td>
|
|
95
|
+
</tr>
|
|
96
|
+
<tr>
|
|
97
|
+
<td>p-avatar-text</td>
|
|
98
|
+
<td>Text of the Avatar.</td>
|
|
99
|
+
</tr>
|
|
100
|
+
<tr>
|
|
101
|
+
<td>p-avatar-icon</td>
|
|
102
|
+
<td>Icon of the Avatar.</td>
|
|
103
|
+
</tr>
|
|
104
|
+
<tr>
|
|
105
|
+
<td>p-avatar-lg</td>
|
|
106
|
+
<td>Container element with a large size.</td>
|
|
107
|
+
</tr>
|
|
108
|
+
<tr>
|
|
109
|
+
<td>p-avatar-xl</td>
|
|
110
|
+
<td>Container element with an xlarge size.</td>
|
|
111
|
+
</tr>
|
|
112
|
+
</tbody>
|
|
113
|
+
</table>
|
|
114
|
+
</div>
|
|
115
|
+
`,
|
|
116
|
+
standalone: true,
|
|
117
|
+
imports: []
|
|
118
|
+
})
|
|
119
|
+
export class AvatarAvatarstyleDemo {}
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
## Badge
|
|
123
|
+
|
|
124
|
+
A badge can be added to an Avatar with the Badge directive.
|
|
125
|
+
|
|
126
|
+
```typescript
|
|
127
|
+
import { Component } from '@angular/core';
|
|
128
|
+
import { AvatarModule } from '@exhaustive-ui/core/avatar';
|
|
129
|
+
|
|
130
|
+
@Component({
|
|
131
|
+
template: `
|
|
132
|
+
<div class="card flex justify-center">
|
|
133
|
+
<p-avatar image="https://exhaustive-ui.e-xiste.com/demo/avatar/amyelsner.png" pBadge value="4" severity="danger" />
|
|
134
|
+
</div>
|
|
135
|
+
`,
|
|
136
|
+
standalone: true,
|
|
137
|
+
imports: [AvatarModule]
|
|
138
|
+
})
|
|
139
|
+
export class AvatarBadgeDemo {}
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
## Icon
|
|
143
|
+
|
|
144
|
+
A font icon is displayed as an Avatar with the icon property.
|
|
145
|
+
|
|
146
|
+
```typescript
|
|
147
|
+
import { Component } from '@angular/core';
|
|
148
|
+
import { AvatarModule } from '@exhaustive-ui/core/avatar';
|
|
149
|
+
|
|
150
|
+
@Component({
|
|
151
|
+
template: `
|
|
152
|
+
<div class="card">
|
|
153
|
+
<div class="flex flex-wrap gap-8">
|
|
154
|
+
<div class="flex-auto">
|
|
155
|
+
<h5>Icon</h5>
|
|
156
|
+
<p-avatar icon="pi pi-user" class="mr-2" size="xlarge" />
|
|
157
|
+
<p-avatar icon="pi pi-user" class="mr-2" size="large" style="background-color: #ece9fc; color: #2a1261" />
|
|
158
|
+
<p-avatar icon="pi pi-user" style="background-color: #dee9fc; color: #1a2551" />
|
|
159
|
+
</div>
|
|
160
|
+
<div class="flex-auto">
|
|
161
|
+
<h5>Circle</h5>
|
|
162
|
+
<p-avatar icon="pi pi-user" class="mr-2" size="xlarge" shape="circle" />
|
|
163
|
+
<p-avatar icon="pi pi-user" class="mr-2" size="large" style="background-color: #ece9fc; color: #2a1261" shape="circle" />
|
|
164
|
+
<p-avatar icon="pi pi-user" style="background-color: #dee9fc; color: #1a2551" shape="circle" />
|
|
165
|
+
</div>
|
|
166
|
+
<div class="flex-auto">
|
|
167
|
+
<h5>Badge</h5>
|
|
168
|
+
<p-overlay-badge value="4" severity="danger" class="inline-flex">
|
|
169
|
+
<p-avatar icon="pi pi-user" size="xlarge" />
|
|
170
|
+
</p-overlay-badge>
|
|
171
|
+
</div>
|
|
172
|
+
</div>
|
|
173
|
+
</div>
|
|
174
|
+
`,
|
|
175
|
+
standalone: true,
|
|
176
|
+
imports: [AvatarModule]
|
|
177
|
+
})
|
|
178
|
+
export class AvatarIconDemo {}
|
|
179
|
+
```
|
|
180
|
+
|
|
181
|
+
## Image
|
|
182
|
+
|
|
183
|
+
Use the image property to display an image as an Avatar.
|
|
184
|
+
|
|
185
|
+
```typescript
|
|
186
|
+
import { Component } from '@angular/core';
|
|
187
|
+
import { AvatarModule } from '@exhaustive-ui/core/avatar';
|
|
188
|
+
|
|
189
|
+
@Component({
|
|
190
|
+
template: `
|
|
191
|
+
<div class="card">
|
|
192
|
+
<div class="flex flex-wrap gap-8">
|
|
193
|
+
<div class="flex-auto">
|
|
194
|
+
<h5>Image</h5>
|
|
195
|
+
<p-avatar image="https://exhaustive-ui.e-xiste.com/demo/avatar/amyelsner.png" class="mr-2" size="xlarge" shape="circle" />
|
|
196
|
+
<p-avatar image="https://exhaustive-ui.e-xiste.com/demo/avatar/asiyajavayant.png" class="mr-2" size="large" shape="circle" />
|
|
197
|
+
<p-avatar image="https://exhaustive-ui.e-xiste.com/demo/avatar/onyamalimba.png" shape="circle" />
|
|
198
|
+
</div>
|
|
199
|
+
<div class="flex-auto">
|
|
200
|
+
<h5>Badge</h5>
|
|
201
|
+
<p-overlay-badge value="4" severity="danger" class="inline-flex">
|
|
202
|
+
<p-avatar class="p-overlay-badge" image="https://exhaustive-ui.e-xiste.com/demo/avatar/walter.jpg" size="xlarge" />
|
|
203
|
+
</p-overlay-badge>
|
|
204
|
+
</div>
|
|
205
|
+
<div class="flex-auto">
|
|
206
|
+
<h5>Gravatar</h5>
|
|
207
|
+
<p-avatar image="https://www.gravatar.com/avatar/05dfd4b41340d09cae045235eb0893c3?d=mp" class="flex items-center justify-center mr-2" size="xlarge" />
|
|
208
|
+
</div>
|
|
209
|
+
</div>
|
|
210
|
+
</div>
|
|
211
|
+
`,
|
|
212
|
+
standalone: true,
|
|
213
|
+
imports: [AvatarModule]
|
|
214
|
+
})
|
|
215
|
+
export class AvatarImageDemo {}
|
|
216
|
+
```
|
|
217
|
+
|
|
218
|
+
## Label
|
|
219
|
+
|
|
220
|
+
A letter Avatar is defined with the label property.
|
|
221
|
+
|
|
222
|
+
```typescript
|
|
223
|
+
import { Component } from '@angular/core';
|
|
224
|
+
import { AvatarModule } from '@exhaustive-ui/core/avatar';
|
|
225
|
+
|
|
226
|
+
@Component({
|
|
227
|
+
template: `
|
|
228
|
+
<div class="card">
|
|
229
|
+
<div class="flex flex-wrap gap-8">
|
|
230
|
+
<div class="flex-auto">
|
|
231
|
+
<h5>Label</h5>
|
|
232
|
+
<p-avatar label="P" class="mr-2" size="xlarge" />
|
|
233
|
+
<p-avatar label="V" class="mr-2" size="large" [style]="{ 'background-color': '#ece9fc', color: '#2a1261' }" />
|
|
234
|
+
<p-avatar label="U" class="mr-2" [style]="{ 'background-color': '#dee9fc', color: '#1a2551' }" />
|
|
235
|
+
</div>
|
|
236
|
+
<div class="flex-auto">
|
|
237
|
+
<h5>Circle</h5>
|
|
238
|
+
<p-avatar label="P" class="mr-2" size="xlarge" shape="circle" />
|
|
239
|
+
<p-avatar label="V" class="mr-2" size="large" [style]="{ 'background-color': '#ece9fc', color: '#2a1261' }" shape="circle" />
|
|
240
|
+
<p-avatar label="U" class="mr-2" [style]="{ 'background-color': '#dee9fc', color: '#1a2551' }" shape="circle" />
|
|
241
|
+
</div>
|
|
242
|
+
<div class="flex-auto">
|
|
243
|
+
<h5>Badge</h5>
|
|
244
|
+
<p-overlay-badge value="4" severity="danger" class="inline-flex">
|
|
245
|
+
<p-avatar label="U" size="xlarge" />
|
|
246
|
+
</p-overlay-badge>
|
|
247
|
+
</div>
|
|
248
|
+
</div>
|
|
249
|
+
</div>
|
|
250
|
+
`,
|
|
251
|
+
standalone: true,
|
|
252
|
+
imports: [AvatarModule]
|
|
253
|
+
})
|
|
254
|
+
export class AvatarLabelDemo {}
|
|
255
|
+
```
|
|
256
|
+
|
|
257
|
+
## Shape
|
|
258
|
+
|
|
259
|
+
Avatar comes in two different styles specified with the shape property, square is the default and circle is the alternative.
|
|
260
|
+
|
|
261
|
+
```typescript
|
|
262
|
+
import { Component } from '@angular/core';
|
|
263
|
+
import { AvatarModule } from '@exhaustive-ui/core/avatar';
|
|
264
|
+
|
|
265
|
+
@Component({
|
|
266
|
+
template: `
|
|
267
|
+
<div class="card flex justify-center gap-2">
|
|
268
|
+
<p-avatar label="P" shape="circle" />
|
|
269
|
+
<p-avatar label="T" />
|
|
270
|
+
</div>
|
|
271
|
+
`,
|
|
272
|
+
standalone: true,
|
|
273
|
+
imports: [AvatarModule]
|
|
274
|
+
})
|
|
275
|
+
export class AvatarShapeDemo {}
|
|
276
|
+
```
|
|
277
|
+
|
|
278
|
+
## Size
|
|
279
|
+
|
|
280
|
+
size property defines the size of the Avatar with large and xlarge as possible values.
|
|
281
|
+
|
|
282
|
+
```typescript
|
|
283
|
+
import { Component } from '@angular/core';
|
|
284
|
+
import { AvatarModule } from '@exhaustive-ui/core/avatar';
|
|
285
|
+
|
|
286
|
+
@Component({
|
|
287
|
+
template: `
|
|
288
|
+
<div class="card flex justify-center gap-2">
|
|
289
|
+
<p-avatar label="P" size="large" />
|
|
290
|
+
<p-avatar label="T" size="xlarge" />
|
|
291
|
+
</div>
|
|
292
|
+
`,
|
|
293
|
+
standalone: true,
|
|
294
|
+
imports: [AvatarModule]
|
|
295
|
+
})
|
|
296
|
+
export class AvatarSizeDemo {}
|
|
297
|
+
```
|
|
298
|
+
|
|
299
|
+
## Template
|
|
300
|
+
|
|
301
|
+
Content can easily be customized with the dynamic content instead of using the built-in modes.
|
|
302
|
+
|
|
303
|
+
```typescript
|
|
304
|
+
import { Component } from '@angular/core';
|
|
305
|
+
import { AvatarModule } from '@exhaustive-ui/core/avatar';
|
|
306
|
+
|
|
307
|
+
@Component({
|
|
308
|
+
template: `
|
|
309
|
+
<div class="card flex justify-center">
|
|
310
|
+
<p-avatar size="xlarge">
|
|
311
|
+
<svg width="31" height="33" viewBox="0 0 31 33" fill="none" xmlns="http://www.w3.org/2000/svg" class="block mx-auto">
|
|
312
|
+
<path d="M15.1934 0V0V0L0.0391235 5.38288L2.35052 25.3417L15.1934 32.427V32.427V32.427L28.0364 25.3417L30.3478 5.38288L15.1934 0Z" fill="var(--p-primary-color)" />
|
|
313
|
+
<mask id="mask0_1_52" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="0" y="0" width="31" height="33">
|
|
314
|
+
<path d="M15.1934 0V0V0L0.0391235 5.38288L2.35052 25.3417L15.1934 32.427V32.427V32.427L28.0364 25.3417L30.3478 5.38288L15.1934 0Z" fill="var(--ground-background)" />
|
|
315
|
+
</mask>
|
|
316
|
+
<g mask="url(#mask0_1_52)">
|
|
317
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M15.1935 0V3.5994V3.58318V20.0075V20.0075V32.427V32.427L28.0364 25.3417L30.3478 5.38288L15.1935 0Z" fill="var(--p-primary-color)" />
|
|
318
|
+
</g>
|
|
319
|
+
<path d="M19.6399 15.3776L18.1861 15.0547L19.3169 16.6695V21.6755L23.1938 18.4458V12.9554L21.4169 13.6013L19.6399 15.3776Z" fill="var(--ground-background)" />
|
|
320
|
+
<path d="M10.5936 15.3776L12.0474 15.0547L10.9166 16.6695V21.6755L7.03966 18.4458V12.9554L8.81661 13.6013L10.5936 15.3776Z" fill="var(--ground-background)" />
|
|
321
|
+
<path
|
|
322
|
+
fill-rule="evenodd"
|
|
323
|
+
clip-rule="evenodd"
|
|
324
|
+
d="M11.3853 16.9726L12.6739 15.0309L13.4793 15.5163H16.7008L17.5061 15.0309L18.7947 16.9726V24.254L17.8283 25.7103L16.7008 26.843H13.4793L12.3518 25.7103L11.3853 24.254V16.9726Z"
|
|
325
|
+
fill="var(--ground-background)"
|
|
326
|
+
/>
|
|
327
|
+
<path d="M19.3168 24.7437L21.4168 22.6444V20.5451L19.3168 22.3214V24.7437Z" fill="var(--ground-background)" />
|
|
328
|
+
<path d="M10.9166 24.7437L8.81662 22.6444V20.5451L10.9166 22.3214V24.7437Z" fill="var(--ground-background)" />
|
|
329
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M13.0167 5.68861L11.7244 8.7568L13.8244 14.8932H14.7936V5.68861H13.0167ZM15.4397 5.68861V14.8932H16.5706L18.5091 8.7568L17.2167 5.68861H15.4397Z" fill="var(--ground-background)" />
|
|
330
|
+
<path d="M13.8244 14.8932L6.87813 12.3094L5.90888 8.27235L11.8859 8.7568L13.9859 14.8932H13.8244Z" fill="var(--ground-background)" />
|
|
331
|
+
<path d="M16.5706 14.8932L23.5169 12.3094L24.4861 8.27235L18.3476 8.7568L16.4091 14.8932H16.5706Z" fill="var(--ground-background)" />
|
|
332
|
+
<path d="M18.8321 8.27235L22.2245 7.94938L19.9629 5.68861H17.7013L18.8321 8.27235Z" fill="var(--ground-background)" />
|
|
333
|
+
<path d="M11.4013 8.27235L8.00893 7.94938L10.2705 5.68861H12.5321L11.4013 8.27235Z" fill="var(--ground-background)" />
|
|
334
|
+
</svg>
|
|
335
|
+
</p-avatar>
|
|
336
|
+
</div>
|
|
337
|
+
`,
|
|
338
|
+
standalone: true,
|
|
339
|
+
imports: [AvatarModule]
|
|
340
|
+
})
|
|
341
|
+
export class AvatarTemplateDemo {}
|
|
342
|
+
```
|
|
343
|
+
|
|
344
|
+
## Avatar
|
|
345
|
+
|
|
346
|
+
Avatar represents people using icons, labels and images.
|
|
347
|
+
|
|
348
|
+
### Props
|
|
349
|
+
|
|
350
|
+
| Name | Type | Default | Description |
|
|
351
|
+
|------|------|---------|-------------|
|
|
352
|
+
| label | InputSignal<string> | ... | Defines the text to display. |
|
|
353
|
+
| icon | InputSignal<string> | ... | Defines the icon to display. |
|
|
354
|
+
| image | InputSignal<string> | ... | Defines the image to display. |
|
|
355
|
+
| size | InputSignal<"large" \| "xlarge" \| "normal"> | ... | Size of the element. |
|
|
356
|
+
| shape | InputSignal<"circle" \| "square"> | ... | Shape of the element. |
|
|
357
|
+
| ariaLabel | InputSignal<string> | ... | Establishes a string value that labels the component. |
|
|
358
|
+
| ariaLabelledBy | InputSignal<string> | ... | Establishes relationships between the component and label(s) where its value should be one or more element IDs. |
|
|
359
|
+
| dt | InputSignal<Object> | undefined | Defines scoped design tokens of the component. |
|
|
360
|
+
| unstyled | InputSignal<boolean> | undefined | Indicates whether the component should be rendered without styles. |
|
|
361
|
+
| pt | InputSignal<AvatarPassThrough> | undefined | Used to pass attributes to DOM elements inside the component. |
|
|
362
|
+
| ptOptions | InputSignal<PassThroughOptions> | undefined | Used to configure passthrough(pt) options of the component. |
|
|
363
|
+
|
|
364
|
+
### Emits
|
|
365
|
+
|
|
366
|
+
| Name | Parameters | Description |
|
|
367
|
+
|------|------------|-------------|
|
|
368
|
+
| onImageError | event: Event | This event is triggered if an error occurs while loading an image file. |
|
|
369
|
+
|
|
370
|
+
## Pass Through Options
|
|
371
|
+
|
|
372
|
+
| Name | Type | Description |
|
|
373
|
+
|------|------|-------------|
|
|
374
|
+
| host | PassThroughOption<HTMLElement, I> | Used to pass attributes to the host's DOM element. |
|
|
375
|
+
| root | PassThroughOption<HTMLDivElement, I> | Used to pass attributes to the root's DOM element. |
|
|
376
|
+
| label | PassThroughOption<HTMLSpanElement, I> | Used to pass attributes to the label's DOM element. |
|
|
377
|
+
| icon | PassThroughOption<HTMLSpanElement, I> | Used to pass attributes to the icon's DOM element. |
|
|
378
|
+
| image | PassThroughOption<HTMLImageElement, I> | Used to pass attributes to the image's DOM element. |
|
|
379
|
+
|
|
380
|
+
## Theming
|
|
381
|
+
|
|
382
|
+
### CSS Classes
|
|
383
|
+
|
|
384
|
+
| Class | Description |
|
|
385
|
+
|-------|-------------|
|
|
386
|
+
| p-avatar | Class name of the root element |
|
|
387
|
+
| p-avatar-label | Class name of the label element |
|
|
388
|
+
| p-avatar-icon | Class name of the icon element |
|
|
389
|
+
| p-avatar-image | Container element in image mode |
|
|
390
|
+
| p-avatar-circle | Container element with a circle shape |
|
|
391
|
+
| p-avatar-lg | Container element with a large size |
|
|
392
|
+
| p-avatar-xl | Container element with an xlarge size |
|
|
393
|
+
|
|
394
|
+
### Design Tokens
|
|
395
|
+
|
|
396
|
+
| Token | CSS Variable | Description |
|
|
397
|
+
|-------|--------------|-------------|
|
|
398
|
+
| avatar.width | --p-avatar-width | Width of root |
|
|
399
|
+
| avatar.height | --p-avatar-height | Height of root |
|
|
400
|
+
| avatar.font.size | --p-avatar-font-size | Font size of root |
|
|
401
|
+
| avatar.background | --p-avatar-background | Background of root |
|
|
402
|
+
| avatar.color | --p-avatar-color | Color of root |
|
|
403
|
+
| avatar.border.radius | --p-avatar-border-radius | Border radius of root |
|
|
404
|
+
| avatar.icon.size | --p-avatar-icon-size | Size of icon |
|
|
405
|
+
| avatar.group.border.color | --p-avatar-group-border-color | Border color of group |
|
|
406
|
+
| avatar.group.offset | --p-avatar-group-offset | Offset of group |
|
|
407
|
+
| avatar.lg.width | --p-avatar-lg-width | Width of lg |
|
|
408
|
+
| avatar.lg.height | --p-avatar-lg-height | Height of lg |
|
|
409
|
+
| avatar.lg.font.size | --p-avatar-lg-font-size | Font size of lg |
|
|
410
|
+
| avatar.lg.icon.size | --p-avatar-lg-icon-size | Icon size of lg |
|
|
411
|
+
| avatar.lg.group.offset | --p-avatar-lg-group-offset | Group offset of lg |
|
|
412
|
+
| avatar.xl.width | --p-avatar-xl-width | Width of xl |
|
|
413
|
+
| avatar.xl.height | --p-avatar-xl-height | Height of xl |
|
|
414
|
+
| avatar.xl.font.size | --p-avatar-xl-font-size | Font size of xl |
|
|
415
|
+
| avatar.xl.icon.size | --p-avatar-xl-icon-size | Icon size of xl |
|
|
416
|
+
| avatar.xl.group.offset | --p-avatar-xl-group-offset | Group offset of xl |
|
|
417
|
+
|