@exhaustive-ui/mcp 22.5.0 → 22.6.0
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/data/cards/accordion.md +5 -2
- package/data/cards/animateonscroll.md +8 -5
- package/data/cards/autocomplete.md +8 -3
- package/data/cards/autofocus.md +4 -2
- package/data/cards/avatar.md +4 -2
- package/data/cards/badge.md +2 -1
- package/data/cards/breadcrumb.md +3 -1
- package/data/cards/button.md +8 -2
- package/data/cards/card.md +2 -1
- package/data/cards/carousel.md +7 -5
- package/data/cards/cascadeselect.md +2 -6
- package/data/cards/chart.md +9 -7
- package/data/cards/checkbox.md +4 -3
- package/data/cards/chip.md +2 -1
- package/data/cards/classnames.md +21 -3
- package/data/cards/colorpicker.md +2 -1
- package/data/cards/confirmdialog.md +35 -5
- package/data/cards/confirmpopup.md +25 -3
- package/data/cards/contextmenu.md +1 -7
- package/data/cards/dataview.md +28 -9
- package/data/cards/datepicker.md +4 -3
- package/data/cards/dialog.md +3 -3
- package/data/cards/divider.md +2 -1
- package/data/cards/dock.md +24 -3
- package/data/cards/dragdrop.md +5 -1
- package/data/cards/drawer.md +3 -3
- package/data/cards/dynamicdialog.md +41 -14
- package/data/cards/editor.md +1 -1
- package/data/cards/fieldset.md +2 -1
- package/data/cards/fileinput.md +1 -1
- package/data/cards/fileupload.md +7 -8
- package/data/cards/floatlabel.md +1 -1
- package/data/cards/fluid.md +7 -5
- package/data/cards/focustrap.md +6 -2
- package/data/cards/galleria.md +18 -25
- package/data/cards/iconfield.md +3 -2
- package/data/cards/iftalabel.md +1 -1
- package/data/cards/image.md +4 -2
- package/data/cards/imagecompare.md +4 -3
- package/data/cards/inplace.md +2 -1
- package/data/cards/inputgroup.md +14 -3
- package/data/cards/inputmask.md +2 -2
- package/data/cards/inputnumber.md +4 -3
- package/data/cards/inputotp.md +2 -2
- package/data/cards/inputtext.md +2 -2
- package/data/cards/keyfilter.md +2 -1
- package/data/cards/knob.md +3 -2
- package/data/cards/listbox.md +5 -3
- package/data/cards/megamenu.md +7 -8
- package/data/cards/menu.md +3 -7
- package/data/cards/menubar.md +3 -7
- package/data/cards/message.md +2 -1
- package/data/cards/metergroup.md +3 -7
- package/data/cards/multiselect.md +5 -9
- package/data/cards/orderlist.md +6 -4
- package/data/cards/organizationchart.md +33 -6
- package/data/cards/overlay.md +2 -1
- package/data/cards/paginator.md +2 -1
- package/data/cards/panel.md +2 -1
- package/data/cards/panelmenu.md +4 -13
- package/data/cards/password.md +6 -3
- package/data/cards/picklist.md +9 -5
- package/data/cards/popover.md +6 -5
- package/data/cards/progressbar.md +4 -3
- package/data/cards/progressspinner.md +2 -1
- package/data/cards/radiobutton.md +4 -3
- package/data/cards/rating.md +1 -1
- package/data/cards/ripple.md +2 -1
- package/data/cards/scrollpanel.md +2 -1
- package/data/cards/scrolltop.md +5 -3
- package/data/cards/select.md +2 -1
- package/data/cards/selectbutton.md +6 -2
- package/data/cards/skeleton.md +2 -1
- package/data/cards/slider.md +4 -3
- package/data/cards/speeddial.md +7 -4
- package/data/cards/splitbutton.md +21 -18
- package/data/cards/splitter.md +2 -1
- package/data/cards/stepper.md +8 -3
- package/data/cards/styleclass.md +4 -2
- package/data/cards/table.md +46 -11
- package/data/cards/tabs.md +2 -1
- package/data/cards/tag.md +2 -1
- package/data/cards/terminal.md +31 -22
- package/data/cards/textarea.md +3 -2
- package/data/cards/tieredmenu.md +1 -6
- package/data/cards/timeline.md +5 -5
- package/data/cards/toast.md +7 -8
- package/data/cards/togglebutton.md +1 -1
- package/data/cards/toggleswitch.md +4 -3
- package/data/cards/toolbar.md +8 -8
- package/data/cards/tooltip.md +2 -1
- package/data/cards/tree.md +3 -6
- package/data/cards/treeselect.md +6 -7
- package/data/cards/treetable.md +52 -31
- package/data/components/accordion.md +31 -23
- package/data/components/animateonscroll.md +18 -15
- package/data/components/autocomplete.md +162 -93
- package/data/components/autofocus.md +9 -7
- package/data/components/avatar.md +56 -43
- package/data/components/badge.md +27 -18
- package/data/components/blockui.md +15 -8
- package/data/components/breadcrumb.md +20 -14
- package/data/components/button.md +121 -94
- package/data/components/card.md +12 -10
- package/data/components/carousel.md +75 -53
- package/data/components/cascadeselect.md +271 -238
- package/data/components/chart.md +88 -74
- package/data/components/checkbox.md +107 -73
- package/data/components/chip.md +20 -16
- package/data/components/classnames.md +22 -4
- package/data/components/colorpicker.md +54 -36
- package/data/components/confirmdialog.md +146 -43
- package/data/components/confirmpopup.md +95 -22
- package/data/components/contextmenu.md +110 -39
- package/data/components/dataview.md +176 -83
- package/data/components/datepicker.md +171 -141
- package/data/components/dialog.md +80 -68
- package/data/components/divider.md +17 -12
- package/data/components/dock.md +63 -27
- package/data/components/dragdrop.md +26 -12
- package/data/components/drawer.md +67 -48
- package/data/components/dynamicdialog.md +22 -13
- package/data/components/editor.md +42 -33
- package/data/components/fieldset.md +20 -17
- package/data/components/fileinput.md +92 -35
- package/data/components/fileupload.md +101 -61
- package/data/components/floatlabel.md +20 -11
- package/data/components/fluid.md +11 -9
- package/data/components/focustrap.md +11 -7
- package/data/components/galleria.md +224 -83
- package/data/components/iconfield.md +23 -15
- package/data/components/iftalabel.md +15 -9
- package/data/components/image.md +31 -26
- package/data/components/imagecompare.md +8 -6
- package/data/components/inplace.md +27 -22
- package/data/components/inputgroup.md +53 -29
- package/data/components/inputmask.md +107 -85
- package/data/components/inputnumber.md +127 -89
- package/data/components/inputotp.md +55 -42
- package/data/components/inputtext.md +72 -50
- package/data/components/keyfilter.md +6 -3
- package/data/components/knob.md +70 -58
- package/data/components/listbox.md +171 -141
- package/data/components/megamenu.md +24 -23
- package/data/components/menu.md +37 -34
- package/data/components/menubar.md +27 -22
- package/data/components/message.md +44 -32
- package/data/components/metergroup.md +48 -17
- package/data/components/multiselect.md +232 -168
- package/data/components/orderlist.md +55 -48
- package/data/components/organizationchart.md +182 -13
- package/data/components/overlay.md +31 -26
- package/data/components/paginator.md +49 -34
- package/data/components/panel.md +23 -19
- package/data/components/panelmenu.md +51 -25
- package/data/components/password.md +104 -91
- package/data/components/picklist.md +92 -70
- package/data/components/popover.md +68 -46
- package/data/components/progressbar.md +28 -22
- package/data/components/progressspinner.md +13 -11
- package/data/components/radiobutton.md +69 -35
- package/data/components/rating.md +48 -40
- package/data/components/ripple.md +8 -6
- package/data/components/scroller.md +29 -29
- package/data/components/scrollpanel.md +9 -7
- package/data/components/scrolltop.md +20 -18
- package/data/components/select.md +248 -169
- package/data/components/selectbutton.md +118 -56
- package/data/components/skeleton.md +22 -18
- package/data/components/slider.md +73 -49
- package/data/components/speeddial.md +77 -59
- package/data/components/splitbutton.md +354 -329
- package/data/components/splitter.md +22 -18
- package/data/components/stepper.md +38 -21
- package/data/components/styleclass.md +12 -6
- package/data/components/table.md +523 -314
- package/data/components/tabs.md +44 -26
- package/data/components/tag.md +18 -14
- package/data/components/terminal.md +38 -27
- package/data/components/textarea.md +82 -47
- package/data/components/tieredmenu.md +34 -29
- package/data/components/timeline.md +29 -28
- package/data/components/toast.md +115 -57
- package/data/components/togglebutton.md +53 -39
- package/data/components/toggleswitch.md +41 -28
- package/data/components/toolbar.md +19 -18
- package/data/components/tooltip.md +43 -32
- package/data/components/tree.md +114 -81
- package/data/components/treeselect.md +176 -174
- package/data/components/treetable.md +1250 -1045
- package/data/components.json +4122 -4080
- package/data/llms-full.txt +8784 -6249
- package/data/manifest.json +154 -15
- package/data/pages/tailwind.md +20 -10
- package/data/snapshot.json +2 -2
- package/dist/index.d.mts +2 -0
- package/dist/index.mjs +3 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -4,7 +4,7 @@ SelectButton is used to choose single or multiple items from a list using button
|
|
|
4
4
|
|
|
5
5
|
## Accessibility
|
|
6
6
|
|
|
7
|
-
Screen Reader The container element that wraps the buttons has a group role whereas each button element uses button role and aria-pressed is updated depending on selection state. Value to describe an option is automatically set
|
|
7
|
+
Screen Reader The container element that wraps the buttons has a group role whereas each button element uses button role and aria-pressed is updated depending on selection state. Value to describe an option is automatically set as its aria-label from the label of the option resolved with optionLabel so it is still suggested to define a label even the option display consists of presentational content like icons only.
|
|
8
8
|
|
|
9
9
|
## Basic
|
|
10
10
|
|
|
@@ -22,10 +22,14 @@ import { SelectButtonModule } from '@exhaustive-ui/core/selectbutton';
|
|
|
22
22
|
</div>
|
|
23
23
|
`,
|
|
24
24
|
standalone: true,
|
|
25
|
-
imports: [
|
|
25
|
+
imports: [FormsModule, SelectButtonModule]
|
|
26
26
|
})
|
|
27
27
|
export class SelectbuttonBasicDemo {
|
|
28
|
-
stateOptions: any[]
|
|
28
|
+
stateOptions: any[] = [
|
|
29
|
+
{ label: 'One-Way', value: 'one-way' },
|
|
30
|
+
{ label: 'Return', value: 'return' }
|
|
31
|
+
];
|
|
32
|
+
|
|
29
33
|
value: string = 'one-way';
|
|
30
34
|
}
|
|
31
35
|
```
|
|
@@ -47,12 +51,21 @@ import { SelectButtonModule } from '@exhaustive-ui/core/selectbutton';
|
|
|
47
51
|
</div>
|
|
48
52
|
`,
|
|
49
53
|
standalone: true,
|
|
50
|
-
imports: [
|
|
54
|
+
imports: [FormsModule, SelectButtonModule]
|
|
51
55
|
})
|
|
52
56
|
export class SelectbuttonDisabledDemo {
|
|
53
|
-
stateOptions: any[]
|
|
54
|
-
|
|
57
|
+
stateOptions: any[] = [
|
|
58
|
+
{ label: 'Off', value: 'off' },
|
|
59
|
+
{ label: 'On', value: 'on' }
|
|
60
|
+
];
|
|
61
|
+
|
|
62
|
+
stateOptions2: any[] = [
|
|
63
|
+
{ label: 'Option 1', value: 'Option 1' },
|
|
64
|
+
{ label: 'Option 2', value: 'Option 2', constant: true }
|
|
65
|
+
];
|
|
66
|
+
|
|
55
67
|
value1: string = 'off';
|
|
68
|
+
|
|
56
69
|
value2: string = 'Option 1';
|
|
57
70
|
}
|
|
58
71
|
```
|
|
@@ -73,10 +86,14 @@ import { SelectButtonModule } from '@exhaustive-ui/core/selectbutton';
|
|
|
73
86
|
</div>
|
|
74
87
|
`,
|
|
75
88
|
standalone: true,
|
|
76
|
-
imports: [
|
|
89
|
+
imports: [FormsModule, SelectButtonModule]
|
|
77
90
|
})
|
|
78
91
|
export class SelectbuttonFluidDemo {
|
|
79
|
-
stateOptions: any[]
|
|
92
|
+
stateOptions: any[] = [
|
|
93
|
+
{ label: 'One-Way', value: 'one-way' },
|
|
94
|
+
{ label: 'Return', value: 'return' }
|
|
95
|
+
];
|
|
96
|
+
|
|
80
97
|
value: string = 'one-way';
|
|
81
98
|
}
|
|
82
99
|
```
|
|
@@ -97,10 +114,14 @@ import { SelectButtonModule } from '@exhaustive-ui/core/selectbutton';
|
|
|
97
114
|
</div>
|
|
98
115
|
`,
|
|
99
116
|
standalone: true,
|
|
100
|
-
imports: [
|
|
117
|
+
imports: [FormsModule, SelectButtonModule]
|
|
101
118
|
})
|
|
102
119
|
export class SelectbuttonInvalidDemo {
|
|
103
|
-
stateOptions: any[]
|
|
120
|
+
stateOptions: any[] = [
|
|
121
|
+
{ label: 'One-Way', value: 'one-way' },
|
|
122
|
+
{ label: 'Return', value: 'return' }
|
|
123
|
+
];
|
|
124
|
+
|
|
104
125
|
value: string | undefined;
|
|
105
126
|
}
|
|
106
127
|
```
|
|
@@ -121,10 +142,15 @@ import { SelectButtonModule } from '@exhaustive-ui/core/selectbutton';
|
|
|
121
142
|
</div>
|
|
122
143
|
`,
|
|
123
144
|
standalone: true,
|
|
124
|
-
imports: [
|
|
145
|
+
imports: [FormsModule, SelectButtonModule]
|
|
125
146
|
})
|
|
126
147
|
export class SelectbuttonMultipleDemo {
|
|
127
|
-
paymentOptions: any[]
|
|
148
|
+
paymentOptions: any[] = [
|
|
149
|
+
{ name: 'Option 1', value: 1 },
|
|
150
|
+
{ name: 'Option 2', value: 2 },
|
|
151
|
+
{ name: 'Option 3', value: 3 }
|
|
152
|
+
];
|
|
153
|
+
|
|
128
154
|
value!: number;
|
|
129
155
|
}
|
|
130
156
|
```
|
|
@@ -135,12 +161,13 @@ SelectButton can also be used with reactive forms. In this case, the formControl
|
|
|
135
161
|
|
|
136
162
|
```typescript
|
|
137
163
|
import { Component, inject } from '@angular/core';
|
|
138
|
-
import { ReactiveFormsModule } from '@angular/forms';
|
|
139
|
-
import {
|
|
164
|
+
import { FormBuilder, FormGroup, Validators, ReactiveFormsModule } from '@angular/forms';
|
|
165
|
+
import { CommonModule } from '@angular/common';
|
|
166
|
+
import { MessageService } from '@exhaustive-ui/core/api';
|
|
140
167
|
import { SelectButtonModule } from '@exhaustive-ui/core/selectbutton';
|
|
141
168
|
import { ToastModule } from '@exhaustive-ui/core/toast';
|
|
142
169
|
import { ButtonModule } from '@exhaustive-ui/core/button';
|
|
143
|
-
import {
|
|
170
|
+
import { MessageModule } from '@exhaustive-ui/core/message';
|
|
144
171
|
|
|
145
172
|
@Component({
|
|
146
173
|
template: `
|
|
@@ -158,18 +185,27 @@ import { MessageService } from '@exhaustive-ui/core/api';
|
|
|
158
185
|
</div>
|
|
159
186
|
`,
|
|
160
187
|
standalone: true,
|
|
161
|
-
imports: [
|
|
188
|
+
imports: [ReactiveFormsModule, SelectButtonModule, ToastModule, ButtonModule, MessageModule, CommonModule],
|
|
189
|
+
providers: [MessageService]
|
|
162
190
|
})
|
|
163
191
|
export class SelectbuttonReactiveformsDemo {
|
|
192
|
+
private fb = inject(FormBuilder);
|
|
193
|
+
|
|
164
194
|
messageService = inject(MessageService);
|
|
195
|
+
|
|
165
196
|
exampleForm: FormGroup | undefined;
|
|
197
|
+
|
|
166
198
|
formSubmitted: boolean = false;
|
|
167
|
-
|
|
199
|
+
|
|
200
|
+
stateOptions: any[] = [
|
|
201
|
+
{ label: 'One-Way', value: 'one-way' },
|
|
202
|
+
{ label: 'Return', value: 'return' }
|
|
203
|
+
];
|
|
168
204
|
|
|
169
205
|
constructor() {
|
|
170
206
|
this.exampleForm = this.fb.group({
|
|
171
|
-
|
|
172
|
-
|
|
207
|
+
value: ['', Validators.required]
|
|
208
|
+
});
|
|
173
209
|
}
|
|
174
210
|
|
|
175
211
|
onSubmit() {
|
|
@@ -195,11 +231,11 @@ SelectButton can also be used with Angular Signal Forms , the @angular/forms/sig
|
|
|
195
231
|
```typescript
|
|
196
232
|
import { Component, inject, signal } from '@angular/core';
|
|
197
233
|
import { form, FormField, required, submit } from '@angular/forms/signals';
|
|
198
|
-
import {
|
|
234
|
+
import { MessageService } from '@exhaustive-ui/core/api';
|
|
199
235
|
import { SelectButtonModule } from '@exhaustive-ui/core/selectbutton';
|
|
200
|
-
import { ToastModule } from '@exhaustive-ui/core/toast';
|
|
201
236
|
import { ButtonModule } from '@exhaustive-ui/core/button';
|
|
202
|
-
import {
|
|
237
|
+
import { ToastModule } from '@exhaustive-ui/core/toast';
|
|
238
|
+
import { MessageModule } from '@exhaustive-ui/core/message';
|
|
203
239
|
|
|
204
240
|
@Component({
|
|
205
241
|
template: `
|
|
@@ -218,12 +254,19 @@ import { MessageService } from '@exhaustive-ui/core/api';
|
|
|
218
254
|
</div>
|
|
219
255
|
`,
|
|
220
256
|
standalone: true,
|
|
221
|
-
imports: [
|
|
257
|
+
imports: [FormField, SelectButtonModule, ButtonModule, ToastModule, MessageModule],
|
|
258
|
+
providers: [MessageService]
|
|
222
259
|
})
|
|
223
260
|
export class SelectbuttonSignalformsDemo {
|
|
224
261
|
messageService = inject(MessageService);
|
|
225
|
-
|
|
262
|
+
|
|
263
|
+
stateOptions: any[] = [
|
|
264
|
+
{ label: 'One-Way', value: 'one-way' },
|
|
265
|
+
{ label: 'Return', value: 'return' }
|
|
266
|
+
];
|
|
267
|
+
|
|
226
268
|
model = signal({ value: '' });
|
|
269
|
+
|
|
227
270
|
exampleForm = form(this.model, (f) => {
|
|
228
271
|
required(f.value);
|
|
229
272
|
});
|
|
@@ -245,7 +288,7 @@ SelectButton provides small and large sizes as alternatives to the base.
|
|
|
245
288
|
```typescript
|
|
246
289
|
import { Component } from '@angular/core';
|
|
247
290
|
import { FormsModule } from '@angular/forms';
|
|
248
|
-
import {
|
|
291
|
+
import { SelectButton } from '@exhaustive-ui/core/selectbutton';
|
|
249
292
|
|
|
250
293
|
@Component({
|
|
251
294
|
template: `
|
|
@@ -256,13 +299,19 @@ import { SelectButtonModule } from '@exhaustive-ui/core/selectbutton';
|
|
|
256
299
|
</div>
|
|
257
300
|
`,
|
|
258
301
|
standalone: true,
|
|
259
|
-
imports: [
|
|
302
|
+
imports: [FormsModule, SelectButton]
|
|
260
303
|
})
|
|
261
304
|
export class SelectbuttonSizesDemo {
|
|
262
305
|
value1!: string;
|
|
306
|
+
|
|
263
307
|
value2: string = 'Beginner';
|
|
308
|
+
|
|
264
309
|
value3: string = 'Expert';
|
|
265
|
-
|
|
310
|
+
|
|
311
|
+
options: any[] = [
|
|
312
|
+
{ label: 'Beginner', value: 'Beginner' },
|
|
313
|
+
{ label: 'Expert', value: 'Expert' }
|
|
314
|
+
];
|
|
266
315
|
}
|
|
267
316
|
```
|
|
268
317
|
|
|
@@ -273,7 +322,7 @@ For custom content support define a template named item where the default local
|
|
|
273
322
|
```typescript
|
|
274
323
|
import { Component } from '@angular/core';
|
|
275
324
|
import { FormsModule } from '@angular/forms';
|
|
276
|
-
import {
|
|
325
|
+
import { SelectButton } from '@exhaustive-ui/core/selectbutton';
|
|
277
326
|
|
|
278
327
|
@Component({
|
|
279
328
|
template: `
|
|
@@ -286,11 +335,17 @@ import { SelectButtonModule } from '@exhaustive-ui/core/selectbutton';
|
|
|
286
335
|
</div>
|
|
287
336
|
`,
|
|
288
337
|
standalone: true,
|
|
289
|
-
imports: [
|
|
338
|
+
imports: [FormsModule, SelectButton]
|
|
290
339
|
})
|
|
291
340
|
export class SelectbuttonTemplateDemo {
|
|
292
341
|
value: any;
|
|
293
|
-
|
|
342
|
+
|
|
343
|
+
justifyOptions: any[] = [
|
|
344
|
+
{ icon: 'pi pi-align-left', justify: 'Left' },
|
|
345
|
+
{ icon: 'pi pi-align-right', justify: 'Right' },
|
|
346
|
+
{ icon: 'pi pi-align-center', justify: 'Center' },
|
|
347
|
+
{ icon: 'pi pi-align-justify', justify: 'Justify' }
|
|
348
|
+
];
|
|
294
349
|
}
|
|
295
350
|
```
|
|
296
351
|
|
|
@@ -299,11 +354,12 @@ export class SelectbuttonTemplateDemo {
|
|
|
299
354
|
```typescript
|
|
300
355
|
import { Component, inject } from '@angular/core';
|
|
301
356
|
import { FormsModule } from '@angular/forms';
|
|
302
|
-
import {
|
|
303
|
-
import {
|
|
357
|
+
import { CommonModule } from '@angular/common';
|
|
358
|
+
import { MessageService } from '@exhaustive-ui/core/api';
|
|
359
|
+
import { SelectButton } from '@exhaustive-ui/core/selectbutton';
|
|
304
360
|
import { ToastModule } from '@exhaustive-ui/core/toast';
|
|
305
361
|
import { ButtonModule } from '@exhaustive-ui/core/button';
|
|
306
|
-
import {
|
|
362
|
+
import { MessageModule } from '@exhaustive-ui/core/message';
|
|
307
363
|
|
|
308
364
|
@Component({
|
|
309
365
|
template: `
|
|
@@ -321,12 +377,18 @@ import { MessageService } from '@exhaustive-ui/core/api';
|
|
|
321
377
|
</div>
|
|
322
378
|
`,
|
|
323
379
|
standalone: true,
|
|
324
|
-
imports: [
|
|
380
|
+
imports: [FormsModule, SelectButton, ToastModule, ButtonModule, MessageModule, CommonModule],
|
|
381
|
+
providers: [MessageService]
|
|
325
382
|
})
|
|
326
383
|
export class SelectbuttonTemplatedrivenformsDemo {
|
|
327
384
|
messageService = inject(MessageService);
|
|
385
|
+
|
|
328
386
|
value: any;
|
|
329
|
-
|
|
387
|
+
|
|
388
|
+
stateOptions: any[] = [
|
|
389
|
+
{ label: 'One-Way', value: 'one-way' },
|
|
390
|
+
{ label: 'Return', value: 'return' }
|
|
391
|
+
];
|
|
330
392
|
|
|
331
393
|
onSubmit(form: any) {
|
|
332
394
|
if (form.valid) {
|
|
@@ -345,27 +407,27 @@ SelectButton is used to choose single or multiple items from a list using button
|
|
|
345
407
|
|
|
346
408
|
| Name | Type | Default | Description |
|
|
347
409
|
|------|------|---------|-------------|
|
|
348
|
-
| dt |
|
|
349
|
-
| unstyled |
|
|
350
|
-
| pt |
|
|
351
|
-
| ptOptions |
|
|
352
|
-
| required |
|
|
353
|
-
| invalid |
|
|
354
|
-
| disabled |
|
|
355
|
-
| name |
|
|
356
|
-
| options |
|
|
357
|
-
| optionLabel |
|
|
358
|
-
| optionValue |
|
|
359
|
-
| optionDisabled |
|
|
360
|
-
| unselectable |
|
|
361
|
-
| multiple |
|
|
362
|
-
| allowEmpty |
|
|
363
|
-
| styleClass |
|
|
364
|
-
| ariaLabelledBy |
|
|
365
|
-
| dataKey |
|
|
366
|
-
| autofocus |
|
|
367
|
-
| size |
|
|
368
|
-
| fluid |
|
|
410
|
+
| dt | Object | undefined | Defines scoped design tokens of the component. |
|
|
411
|
+
| unstyled | boolean | undefined | Indicates whether the component should be rendered without styles. |
|
|
412
|
+
| pt | SelectButtonPassThrough | undefined | Used to pass attributes to DOM elements inside the component. |
|
|
413
|
+
| ptOptions | PassThroughOptions | undefined | Used to configure passthrough(pt) options of the component. |
|
|
414
|
+
| required | boolean | false | There must be a value (if set). |
|
|
415
|
+
| invalid | boolean | false | When present, it specifies that the component should have invalid state style. |
|
|
416
|
+
| disabled | boolean | false | When present, it specifies that the component should have disabled state style. |
|
|
417
|
+
| name | string | undefined | When present, it specifies that the name of the input. |
|
|
418
|
+
| options | any[] | - | An array of selectitems to display as the available options. |
|
|
419
|
+
| optionLabel | string | - | Name of the label field of an option. |
|
|
420
|
+
| optionValue | string | - | Name of the value field of an option. |
|
|
421
|
+
| optionDisabled | string | - | Name of the disabled field of an option. |
|
|
422
|
+
| unselectable | boolean | false | Whether selection can be cleared. |
|
|
423
|
+
| multiple | boolean | - | When specified, allows selecting multiple values. |
|
|
424
|
+
| allowEmpty | boolean | true | Whether selection can not be cleared. |
|
|
425
|
+
| styleClass | string | - | Style class of the component. |
|
|
426
|
+
| ariaLabelledBy | string | - | Establishes relationships between the component and label(s) where its value should be one or more element IDs. |
|
|
427
|
+
| dataKey | string | - | A property to uniquely identify a value in options. |
|
|
428
|
+
| autofocus | boolean | - | When present, it specifies that the component should automatically get focus on load. |
|
|
429
|
+
| size | "small" \| "large" | undefined | Specifies the size of the component. |
|
|
430
|
+
| fluid | boolean | undefined | Spans 100% width of the container when enabled. |
|
|
369
431
|
|
|
370
432
|
### Emits
|
|
371
433
|
|
|
@@ -37,7 +37,8 @@ import { SkeletonModule } from '@exhaustive-ui/core/skeleton';
|
|
|
37
37
|
standalone: true,
|
|
38
38
|
imports: [SkeletonModule]
|
|
39
39
|
})
|
|
40
|
-
export class SkeletonCardDemo {
|
|
40
|
+
export class SkeletonCardDemo {
|
|
41
|
+
}
|
|
41
42
|
```
|
|
42
43
|
|
|
43
44
|
## DataTable
|
|
@@ -46,6 +47,7 @@ Sample DataTable implementation using different Skeleton components and Tailwind
|
|
|
46
47
|
|
|
47
48
|
```typescript
|
|
48
49
|
import { Component, OnInit } from '@angular/core';
|
|
50
|
+
import { CommonModule } from '@angular/common';
|
|
49
51
|
import { SkeletonModule } from '@exhaustive-ui/core/skeleton';
|
|
50
52
|
import { TableModule } from '@exhaustive-ui/core/table';
|
|
51
53
|
|
|
@@ -73,7 +75,7 @@ import { TableModule } from '@exhaustive-ui/core/table';
|
|
|
73
75
|
</div>
|
|
74
76
|
`,
|
|
75
77
|
standalone: true,
|
|
76
|
-
imports: [SkeletonModule, TableModule]
|
|
78
|
+
imports: [SkeletonModule, TableModule, CommonModule]
|
|
77
79
|
})
|
|
78
80
|
export class SkeletonDatatableDemo implements OnInit {
|
|
79
81
|
products: any[] | undefined;
|
|
@@ -140,7 +142,8 @@ import { SkeletonModule } from '@exhaustive-ui/core/skeleton';
|
|
|
140
142
|
standalone: true,
|
|
141
143
|
imports: [SkeletonModule]
|
|
142
144
|
})
|
|
143
|
-
export class SkeletonListDemo {
|
|
145
|
+
export class SkeletonListDemo {
|
|
146
|
+
}
|
|
144
147
|
```
|
|
145
148
|
|
|
146
149
|
## Shapes
|
|
@@ -156,7 +159,7 @@ import { SkeletonModule } from '@exhaustive-ui/core/skeleton';
|
|
|
156
159
|
<div class="card">
|
|
157
160
|
<div class="flex flex-wrap">
|
|
158
161
|
<div class="w-full xl:w-6/12 p-4">
|
|
159
|
-
<
|
|
162
|
+
<div class="font-semibold mb-4">Rectangle</div>
|
|
160
163
|
<p-skeleton class="mb-2" />
|
|
161
164
|
<p-skeleton width="10rem" class="mb-2" />
|
|
162
165
|
<p-skeleton width="5rem" class="mb-2" />
|
|
@@ -164,7 +167,7 @@ import { SkeletonModule } from '@exhaustive-ui/core/skeleton';
|
|
|
164
167
|
<p-skeleton width="10rem" height="4rem" />
|
|
165
168
|
</div>
|
|
166
169
|
<div class="w-full xl:w-6/12 p-4">
|
|
167
|
-
<
|
|
170
|
+
<div class="font-semibold mb-4">Rounded</div>
|
|
168
171
|
<p-skeleton class="mb-2" borderRadius="16px" />
|
|
169
172
|
<p-skeleton width="10rem" class="mb-2" borderRadius="16px" />
|
|
170
173
|
<p-skeleton width="5rem" class="mb-2" borderRadius="16px" />
|
|
@@ -172,7 +175,7 @@ import { SkeletonModule } from '@exhaustive-ui/core/skeleton';
|
|
|
172
175
|
<p-skeleton width="10rem" height="4rem" borderRadius="16px" />
|
|
173
176
|
</div>
|
|
174
177
|
<div class="w-full xl:w-6/12 p-4">
|
|
175
|
-
<
|
|
178
|
+
<div class="font-semibold mt-4 mb-4">Square</div>
|
|
176
179
|
<div class="flex items-end">
|
|
177
180
|
<p-skeleton size="2rem" class="mr-2" />
|
|
178
181
|
<p-skeleton size="3rem" class="mr-2" />
|
|
@@ -181,7 +184,7 @@ import { SkeletonModule } from '@exhaustive-ui/core/skeleton';
|
|
|
181
184
|
</div>
|
|
182
185
|
</div>
|
|
183
186
|
<div class="field w-full xl:w-6/12 p-4">
|
|
184
|
-
<
|
|
187
|
+
<div class="font-semibold mt-4 mb-4">Circle</div>
|
|
185
188
|
<div class="flex items-end">
|
|
186
189
|
<p-skeleton shape="circle" size="2rem" class="mr-2" />
|
|
187
190
|
<p-skeleton shape="circle" size="3rem" class="mr-2" />
|
|
@@ -195,7 +198,8 @@ import { SkeletonModule } from '@exhaustive-ui/core/skeleton';
|
|
|
195
198
|
standalone: true,
|
|
196
199
|
imports: [SkeletonModule]
|
|
197
200
|
})
|
|
198
|
-
export class SkeletonShapesDemo {
|
|
201
|
+
export class SkeletonShapesDemo {
|
|
202
|
+
}
|
|
199
203
|
```
|
|
200
204
|
|
|
201
205
|
## Skeleton
|
|
@@ -206,16 +210,16 @@ Skeleton is a placeholder to display instead of the actual content.
|
|
|
206
210
|
|
|
207
211
|
| Name | Type | Default | Description |
|
|
208
212
|
|------|------|---------|-------------|
|
|
209
|
-
| dt |
|
|
210
|
-
| unstyled |
|
|
211
|
-
| pt |
|
|
212
|
-
| ptOptions |
|
|
213
|
-
| shape |
|
|
214
|
-
| animation |
|
|
215
|
-
| borderRadius |
|
|
216
|
-
| size |
|
|
217
|
-
| width |
|
|
218
|
-
| height |
|
|
213
|
+
| dt | Object | undefined | Defines scoped design tokens of the component. |
|
|
214
|
+
| unstyled | boolean | undefined | Indicates whether the component should be rendered without styles. |
|
|
215
|
+
| pt | SkeletonPassThrough | undefined | Used to pass attributes to DOM elements inside the component. |
|
|
216
|
+
| ptOptions | PassThroughOptions | undefined | Used to configure passthrough(pt) options of the component. |
|
|
217
|
+
| shape | string | 'rectangle' | Shape of the element. |
|
|
218
|
+
| animation | string | 'wave' | Type of the animation. |
|
|
219
|
+
| borderRadius | string | - | Border radius of the element, defaults to value from theme. |
|
|
220
|
+
| size | string | - | Size of the skeleton. |
|
|
221
|
+
| width | string | '100%' | Width of the element. |
|
|
222
|
+
| height | string | '1rem' | Height of the element. |
|
|
219
223
|
|
|
220
224
|
## Pass Through Options
|
|
221
225
|
|