@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
package/data/components/knob.md
CHANGED
|
@@ -22,7 +22,7 @@ import { KnobModule } from '@exhaustive-ui/core/knob';
|
|
|
22
22
|
</div>
|
|
23
23
|
`,
|
|
24
24
|
standalone: true,
|
|
25
|
-
imports: [
|
|
25
|
+
imports: [FormsModule, KnobModule]
|
|
26
26
|
})
|
|
27
27
|
export class KnobBasicDemo {
|
|
28
28
|
value!: number;
|
|
@@ -45,7 +45,7 @@ import { KnobModule } from '@exhaustive-ui/core/knob';
|
|
|
45
45
|
</div>
|
|
46
46
|
`,
|
|
47
47
|
standalone: true,
|
|
48
|
-
imports: [
|
|
48
|
+
imports: [FormsModule, KnobModule]
|
|
49
49
|
})
|
|
50
50
|
export class KnobColorDemo {
|
|
51
51
|
value: number = 50;
|
|
@@ -68,7 +68,7 @@ import { KnobModule } from '@exhaustive-ui/core/knob';
|
|
|
68
68
|
</div>
|
|
69
69
|
`,
|
|
70
70
|
standalone: true,
|
|
71
|
-
imports: [
|
|
71
|
+
imports: [FormsModule, KnobModule]
|
|
72
72
|
})
|
|
73
73
|
export class KnobDisabledDemo {
|
|
74
74
|
value: number = 75;
|
|
@@ -91,7 +91,7 @@ import { KnobModule } from '@exhaustive-ui/core/knob';
|
|
|
91
91
|
</div>
|
|
92
92
|
`,
|
|
93
93
|
standalone: true,
|
|
94
|
-
imports: [
|
|
94
|
+
imports: [FormsModule, KnobModule]
|
|
95
95
|
})
|
|
96
96
|
export class KnobMinmaxDemo {
|
|
97
97
|
value: number = 10;
|
|
@@ -105,21 +105,21 @@ Knob can be controlled with custom controls as well.
|
|
|
105
105
|
```typescript
|
|
106
106
|
import { Component } from '@angular/core';
|
|
107
107
|
import { FormsModule } from '@angular/forms';
|
|
108
|
-
import { ButtonModule } from '@exhaustive-ui/core/button';
|
|
109
108
|
import { KnobModule } from '@exhaustive-ui/core/knob';
|
|
109
|
+
import { ButtonModule } from '@exhaustive-ui/core/button';
|
|
110
110
|
|
|
111
111
|
@Component({
|
|
112
112
|
template: `
|
|
113
113
|
<div class="card flex flex-col items-center gap-2">
|
|
114
114
|
<p-knob [(ngModel)]="value" size="150" readonly="true" />
|
|
115
115
|
<div class="flex gap-2">
|
|
116
|
-
<p-button icon="pi pi-plus" (click)="value = value + 1" [disabled]="value >= 100" />
|
|
117
|
-
<p-button icon="pi pi-minus" (click)="value = value - 1" [disabled]="value <= 0" />
|
|
116
|
+
<p-button icon="pi pi-plus" ariaLabel="Increase" (click)="value = value + 1" [disabled]="value >= 100" />
|
|
117
|
+
<p-button icon="pi pi-minus" ariaLabel="Decrease" (click)="value = value - 1" [disabled]="value <= 0" />
|
|
118
118
|
</div>
|
|
119
119
|
</div>
|
|
120
120
|
`,
|
|
121
121
|
standalone: true,
|
|
122
|
-
imports: [
|
|
122
|
+
imports: [FormsModule, KnobModule, ButtonModule]
|
|
123
123
|
})
|
|
124
124
|
export class KnobReactiveDemo {
|
|
125
125
|
value: number = 0;
|
|
@@ -132,12 +132,12 @@ Knob can also be used with reactive forms. In this case, the formControlName pro
|
|
|
132
132
|
|
|
133
133
|
```typescript
|
|
134
134
|
import { Component, inject } from '@angular/core';
|
|
135
|
-
import { ReactiveFormsModule } from '@angular/forms';
|
|
135
|
+
import { AbstractControl, FormBuilder, FormGroup, ReactiveFormsModule, Validators } from '@angular/forms';
|
|
136
|
+
import { MessageService } from '@exhaustive-ui/core/api';
|
|
137
|
+
import { ButtonModule } from '@exhaustive-ui/core/button';
|
|
136
138
|
import { KnobModule } from '@exhaustive-ui/core/knob';
|
|
137
139
|
import { MessageModule } from '@exhaustive-ui/core/message';
|
|
138
140
|
import { ToastModule } from '@exhaustive-ui/core/toast';
|
|
139
|
-
import { ButtonModule } from '@exhaustive-ui/core/button';
|
|
140
|
-
import { MessageService } from '@exhaustive-ui/core/api';
|
|
141
141
|
|
|
142
142
|
@Component({
|
|
143
143
|
template: `
|
|
@@ -155,18 +155,24 @@ import { MessageService } from '@exhaustive-ui/core/api';
|
|
|
155
155
|
</div>
|
|
156
156
|
`,
|
|
157
157
|
standalone: true,
|
|
158
|
-
imports: [KnobModule,
|
|
158
|
+
imports: [ReactiveFormsModule, KnobModule, ButtonModule, ToastModule, MessageModule],
|
|
159
|
+
providers: [MessageService]
|
|
159
160
|
})
|
|
160
161
|
export class KnobReactiveformsDemo {
|
|
162
|
+
private fb = inject(FormBuilder);
|
|
163
|
+
|
|
161
164
|
messageService = inject(MessageService);
|
|
165
|
+
|
|
162
166
|
items: any[] | undefined;
|
|
167
|
+
|
|
163
168
|
exampleForm: FormGroup | undefined;
|
|
169
|
+
|
|
164
170
|
formSubmitted: boolean = false;
|
|
165
171
|
|
|
166
172
|
constructor() {
|
|
167
173
|
this.exampleForm = this.fb.group({
|
|
168
|
-
|
|
169
|
-
|
|
174
|
+
value: [15, [Validators.min(25), Validators.max(75)]]
|
|
175
|
+
});
|
|
170
176
|
}
|
|
171
177
|
|
|
172
178
|
onSubmit() {
|
|
@@ -187,11 +193,11 @@ export class KnobReactiveformsDemo {
|
|
|
187
193
|
getErrorMessage(controlName: string): string | null {
|
|
188
194
|
const control = this.getControl(controlName);
|
|
189
195
|
if (!control || !control.errors) return null;
|
|
190
|
-
|
|
196
|
+
|
|
191
197
|
if (control.errors['min']) {
|
|
192
198
|
return 'Value must be greater than 15.';
|
|
193
199
|
}
|
|
194
|
-
|
|
200
|
+
|
|
195
201
|
if (control.errors['max']) {
|
|
196
202
|
return 'Must be less than 75.';
|
|
197
203
|
}
|
|
@@ -220,7 +226,7 @@ import { KnobModule } from '@exhaustive-ui/core/knob';
|
|
|
220
226
|
</div>
|
|
221
227
|
`,
|
|
222
228
|
standalone: true,
|
|
223
|
-
imports: [
|
|
229
|
+
imports: [FormsModule, KnobModule]
|
|
224
230
|
})
|
|
225
231
|
export class KnobReadonlyDemo {
|
|
226
232
|
value: number = 50;
|
|
@@ -234,11 +240,11 @@ Knob can also be used with Angular Signal Forms , the @angular/forms/signals API
|
|
|
234
240
|
```typescript
|
|
235
241
|
import { Component, inject, signal } from '@angular/core';
|
|
236
242
|
import { form, FormField, submit, validate } from '@angular/forms/signals';
|
|
243
|
+
import { MessageService } from '@exhaustive-ui/core/api';
|
|
237
244
|
import { KnobModule } from '@exhaustive-ui/core/knob';
|
|
238
|
-
import { MessageModule } from '@exhaustive-ui/core/message';
|
|
239
|
-
import { ToastModule } from '@exhaustive-ui/core/toast';
|
|
240
245
|
import { ButtonModule } from '@exhaustive-ui/core/button';
|
|
241
|
-
import {
|
|
246
|
+
import { ToastModule } from '@exhaustive-ui/core/toast';
|
|
247
|
+
import { MessageModule } from '@exhaustive-ui/core/message';
|
|
242
248
|
|
|
243
249
|
@Component({
|
|
244
250
|
template: `
|
|
@@ -262,11 +268,14 @@ import { MessageService } from '@exhaustive-ui/core/api';
|
|
|
262
268
|
</div>
|
|
263
269
|
`,
|
|
264
270
|
standalone: true,
|
|
265
|
-
imports: [KnobModule,
|
|
271
|
+
imports: [FormField, KnobModule, ButtonModule, ToastModule, MessageModule],
|
|
272
|
+
providers: [MessageService]
|
|
266
273
|
})
|
|
267
274
|
export class KnobSignalformsDemo {
|
|
268
275
|
messageService = inject(MessageService);
|
|
276
|
+
|
|
269
277
|
model = signal({ value: 15 });
|
|
278
|
+
|
|
270
279
|
exampleForm = form(this.model, (f) => {
|
|
271
280
|
// min() and max() would also set the range of the knob, so the bounds are checked by a validator
|
|
272
281
|
validate(f.value, ({ value }) => (value() < 25 ? { kind: 'min' } : value() > 75 ? { kind: 'max' } : null));
|
|
@@ -298,7 +307,7 @@ import { KnobModule } from '@exhaustive-ui/core/knob';
|
|
|
298
307
|
</div>
|
|
299
308
|
`,
|
|
300
309
|
standalone: true,
|
|
301
|
-
imports: [
|
|
310
|
+
imports: [FormsModule, KnobModule]
|
|
302
311
|
})
|
|
303
312
|
export class KnobSizeDemo {
|
|
304
313
|
value: number = 60;
|
|
@@ -321,7 +330,7 @@ import { KnobModule } from '@exhaustive-ui/core/knob';
|
|
|
321
330
|
</div>
|
|
322
331
|
`,
|
|
323
332
|
standalone: true,
|
|
324
|
-
imports: [
|
|
333
|
+
imports: [FormsModule, KnobModule]
|
|
325
334
|
})
|
|
326
335
|
export class KnobStepDemo {
|
|
327
336
|
value!: number;
|
|
@@ -344,7 +353,7 @@ import { KnobModule } from '@exhaustive-ui/core/knob';
|
|
|
344
353
|
</div>
|
|
345
354
|
`,
|
|
346
355
|
standalone: true,
|
|
347
|
-
imports: [
|
|
356
|
+
imports: [FormsModule, KnobModule]
|
|
348
357
|
})
|
|
349
358
|
export class KnobStrokeDemo {
|
|
350
359
|
value: number = 40;
|
|
@@ -367,7 +376,7 @@ import { KnobModule } from '@exhaustive-ui/core/knob';
|
|
|
367
376
|
</div>
|
|
368
377
|
`,
|
|
369
378
|
standalone: true,
|
|
370
|
-
imports: [
|
|
379
|
+
imports: [FormsModule, KnobModule]
|
|
371
380
|
})
|
|
372
381
|
export class KnobTemplateDemo {
|
|
373
382
|
value: number = 60;
|
|
@@ -378,12 +387,12 @@ export class KnobTemplateDemo {
|
|
|
378
387
|
|
|
379
388
|
```typescript
|
|
380
389
|
import { Component, inject } from '@angular/core';
|
|
381
|
-
import { FormsModule } from '@angular/forms';
|
|
390
|
+
import { FormsModule, NgForm } from '@angular/forms';
|
|
391
|
+
import { MessageService } from '@exhaustive-ui/core/api';
|
|
392
|
+
import { ButtonModule } from '@exhaustive-ui/core/button';
|
|
382
393
|
import { KnobModule } from '@exhaustive-ui/core/knob';
|
|
383
394
|
import { MessageModule } from '@exhaustive-ui/core/message';
|
|
384
395
|
import { ToastModule } from '@exhaustive-ui/core/toast';
|
|
385
|
-
import { ButtonModule } from '@exhaustive-ui/core/button';
|
|
386
|
-
import { MessageService } from '@exhaustive-ui/core/api';
|
|
387
396
|
|
|
388
397
|
@Component({
|
|
389
398
|
template: `
|
|
@@ -401,16 +410,19 @@ import { MessageService } from '@exhaustive-ui/core/api';
|
|
|
401
410
|
</div>
|
|
402
411
|
`,
|
|
403
412
|
standalone: true,
|
|
404
|
-
imports: [KnobModule,
|
|
413
|
+
imports: [FormsModule, KnobModule, ButtonModule, ToastModule, MessageModule],
|
|
414
|
+
providers: [MessageService]
|
|
405
415
|
})
|
|
406
416
|
export class KnobTemplatedrivenformsDemo {
|
|
407
417
|
messageService = inject(MessageService);
|
|
418
|
+
|
|
408
419
|
value: number = 15;
|
|
420
|
+
|
|
409
421
|
formSubmitted: boolean = false;
|
|
410
422
|
|
|
411
423
|
onSubmit(form: NgForm) {
|
|
412
424
|
this.formSubmitted = true;
|
|
413
|
-
|
|
425
|
+
|
|
414
426
|
if (!this.isInvalid(form.controls['knob'])) {
|
|
415
427
|
this.messageService.add({
|
|
416
428
|
severity: 'success',
|
|
@@ -418,26 +430,26 @@ export class KnobTemplatedrivenformsDemo {
|
|
|
418
430
|
detail: 'Form is submitted',
|
|
419
431
|
life: 3000
|
|
420
432
|
});
|
|
421
|
-
|
|
433
|
+
|
|
422
434
|
form.resetForm({ knob: 15 });
|
|
423
|
-
|
|
435
|
+
|
|
424
436
|
this.formSubmitted = false;
|
|
425
437
|
}
|
|
426
438
|
}
|
|
427
439
|
|
|
428
440
|
getErrorMessage(control: any): string | null {
|
|
429
441
|
const value = control?.value;
|
|
430
|
-
|
|
442
|
+
|
|
431
443
|
return value < 25 ? 'Value must be greater than 25.' : value > 75 ? 'Must be less than 75.' : null;
|
|
432
444
|
}
|
|
433
445
|
|
|
434
446
|
isInvalid(control: any): boolean {
|
|
435
447
|
if (!control) return false;
|
|
436
|
-
|
|
448
|
+
|
|
437
449
|
const value = control.value;
|
|
438
|
-
|
|
450
|
+
|
|
439
451
|
const hasError = value < 25 || value > 75;
|
|
440
|
-
|
|
452
|
+
|
|
441
453
|
return hasError && (this.formSubmitted || control.dirty);
|
|
442
454
|
}
|
|
443
455
|
}
|
|
@@ -451,28 +463,28 @@ Knob is a form component to define number inputs with a dial.
|
|
|
451
463
|
|
|
452
464
|
| Name | Type | Default | Description |
|
|
453
465
|
|------|------|---------|-------------|
|
|
454
|
-
| dt |
|
|
455
|
-
| unstyled |
|
|
456
|
-
| pt |
|
|
457
|
-
| ptOptions |
|
|
458
|
-
| required |
|
|
459
|
-
| invalid |
|
|
460
|
-
| disabled |
|
|
461
|
-
| name |
|
|
462
|
-
| ariaLabel |
|
|
463
|
-
| ariaLabelledBy |
|
|
464
|
-
| tabindex |
|
|
465
|
-
| valueColor |
|
|
466
|
-
| rangeColor |
|
|
467
|
-
| textColor |
|
|
468
|
-
| valueTemplate |
|
|
469
|
-
| size |
|
|
470
|
-
| min |
|
|
471
|
-
| max |
|
|
472
|
-
| step |
|
|
473
|
-
| strokeWidth |
|
|
474
|
-
| showValue |
|
|
475
|
-
| readonly |
|
|
466
|
+
| dt | Object | undefined | Defines scoped design tokens of the component. |
|
|
467
|
+
| unstyled | boolean | undefined | Indicates whether the component should be rendered without styles. |
|
|
468
|
+
| pt | KnobPassThrough | undefined | Used to pass attributes to DOM elements inside the component. |
|
|
469
|
+
| ptOptions | PassThroughOptions | undefined | Used to configure passthrough(pt) options of the component. |
|
|
470
|
+
| required | boolean | false | There must be a value (if set). |
|
|
471
|
+
| invalid | boolean | false | When present, it specifies that the component should have invalid state style. |
|
|
472
|
+
| disabled | boolean | false | When present, it specifies that the component should have disabled state style. |
|
|
473
|
+
| name | string | undefined | When present, it specifies that the name of the input. |
|
|
474
|
+
| ariaLabel | string | - | Defines a string that labels the input for accessibility. |
|
|
475
|
+
| ariaLabelledBy | string | - | Specifies one or more IDs in the DOM that labels the input field. |
|
|
476
|
+
| tabindex | number | 0 | Index of the element in tabbing order. |
|
|
477
|
+
| valueColor | string | $dt('knob.value.background').variable | Background of the value. |
|
|
478
|
+
| rangeColor | string | $dt('knob.range.background').variable | Background color of the range. |
|
|
479
|
+
| textColor | string | $dt('knob.text.color').variable | Color of the value text. |
|
|
480
|
+
| valueTemplate | string | '{value}' | Template string of the value. |
|
|
481
|
+
| size | number | 100 | Size of the component in pixels. |
|
|
482
|
+
| min | number | 0 | Mininum boundary value. |
|
|
483
|
+
| max | number | 100 | Maximum boundary value. |
|
|
484
|
+
| step | number | 1 | Step factor to increment/decrement the value. |
|
|
485
|
+
| strokeWidth | number | 14 | Width of the knob stroke. |
|
|
486
|
+
| showValue | boolean | true | Whether the show the value inside the knob. |
|
|
487
|
+
| readonly | boolean | false | When present, it specifies that the component value cannot be edited. |
|
|
476
488
|
|
|
477
489
|
### Emits
|
|
478
490
|
|