jsswift 1.0.45 → 1.0.47
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/dist/documentions/AI.md +85 -0
- package/dist/documentions/README.md +2 -0
- package/dist/documentions/ai-development.md +3 -1
- package/dist/documentions/components/alert.md +29 -493
- package/dist/documentions/components/app-shell.md +37 -524
- package/dist/documentions/components/avatar.md +47 -575
- package/dist/documentions/components/badge.md +27 -461
- package/dist/documentions/components/banner.md +35 -535
- package/dist/documentions/components/breadcrumbs.md +35 -518
- package/dist/documentions/components/btn.md +3 -21
- package/dist/documentions/components/button.md +3 -0
- package/dist/documentions/components/card-body.md +11 -328
- package/dist/documentions/components/card-footer.md +15 -367
- package/dist/documentions/components/card-header.md +15 -367
- package/dist/documentions/components/card.md +3 -19
- package/dist/documentions/components/checkbox.md +25 -456
- package/dist/documentions/components/chip.md +16 -393
- package/dist/documentions/components/col.md +57 -612
- package/dist/documentions/components/container.md +40 -535
- package/dist/documentions/components/context-menu.md +60 -696
- package/dist/documentions/components/date.md +56 -673
- package/dist/documentions/components/dialog.md +5 -21
- package/dist/documentions/components/drawer.md +48 -616
- package/dist/documentions/components/empty-state.md +28 -477
- package/dist/documentions/components/footer.md +42 -586
- package/dist/documentions/components/form-field.md +40 -568
- package/dist/documentions/components/form.md +7 -321
- package/dist/documentions/components/grid-col.md +42 -542
- package/dist/documentions/components/grid.md +40 -542
- package/dist/documentions/components/header.md +38 -547
- package/dist/documentions/components/icon.md +17 -370
- package/dist/documentions/components/input.md +4 -22
- package/dist/documentions/components/item.md +37 -533
- package/dist/documentions/components/kpi.md +34 -519
- package/dist/documentions/components/layout.md +81 -811
- package/dist/documentions/components/list.md +19 -405
- package/dist/documentions/components/loading-bar.md +58 -679
- package/dist/documentions/components/menu.md +62 -710
- package/dist/documentions/components/notify.md +34 -525
- package/dist/documentions/components/page.md +35 -526
- package/dist/documentions/components/pagination.md +3 -20
- package/dist/documentions/components/parallax.md +50 -633
- package/dist/documentions/components/popover.md +55 -661
- package/dist/documentions/components/progress.md +39 -554
- package/dist/documentions/components/radio.md +27 -470
- package/dist/documentions/components/rating.md +41 -574
- package/dist/documentions/components/route-tab.md +30 -491
- package/dist/documentions/components/row.md +35 -507
- package/dist/documentions/components/search.md +62 -723
- package/dist/documentions/components/select.md +17 -22
- package/dist/documentions/components/separator.md +7 -321
- package/dist/documentions/components/slider.md +49 -631
- package/dist/documentions/components/spacer.md +6 -314
- package/dist/documentions/components/spinner.md +25 -440
- package/dist/documentions/components/stat.md +32 -505
- package/dist/documentions/components/tab-panel.md +40 -563
- package/dist/documentions/components/table.md +3 -22
- package/dist/documentions/components/tabs.md +36 -538
- package/dist/documentions/components/time.md +29 -491
- package/dist/documentions/components/toggle.md +31 -498
- package/dist/documentions/components/toolbar.md +52 -640
- package/dist/documentions/components/tooltip.md +35 -535
- package/dist/documentions/knowledge-map.json +27 -2
- package/dist/documentions/reactivity.md +21 -7
- package/dist/documentions/ui/common-props.md +301 -0
- package/dist/jsswift.js +10544 -14103
- package/dist/jsswift.min.js +3 -3
- package/dist/min-jsswift.js +3 -3
- package/package.json +3 -2
|
@@ -1,581 +1,53 @@
|
|
|
1
1
|
# FormField
|
|
2
2
|
|
|
3
|
-
Exact JSswift UI
|
|
3
|
+
Exact JSswift UI contract. Shared definitions listed in `commonProps` are in [common props](../ui/common-props.md); all component-specific props, slots, events, and methods are below.
|
|
4
4
|
|
|
5
5
|
```json
|
|
6
6
|
{
|
|
7
7
|
"signature": "_.FormField(props)",
|
|
8
8
|
"description": "Wrapper field con label floating, hint/error/success/warning/note, clear e addons slot-based.",
|
|
9
9
|
"props": {
|
|
10
|
-
"
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
},
|
|
28
|
-
"
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
"primary",
|
|
34
|
-
"secondary",
|
|
35
|
-
"success",
|
|
36
|
-
"warning",
|
|
37
|
-
"danger",
|
|
38
|
-
"info",
|
|
39
|
-
"light",
|
|
40
|
-
"dark"
|
|
41
|
-
],
|
|
42
|
-
"category": "style"
|
|
43
|
-
},
|
|
44
|
-
"outline": {
|
|
45
|
-
"type": "boolean",
|
|
46
|
-
"description": "Uses outlined visual style.",
|
|
47
|
-
"default": false,
|
|
48
|
-
"values": [
|
|
49
|
-
"number",
|
|
50
|
-
"CSS units",
|
|
51
|
-
"xxs",
|
|
52
|
-
"xs",
|
|
53
|
-
"sm",
|
|
54
|
-
"md",
|
|
55
|
-
"lg",
|
|
56
|
-
"xl",
|
|
57
|
-
"xxl",
|
|
58
|
-
"xxxl"
|
|
59
|
-
],
|
|
60
|
-
"category": "style"
|
|
61
|
-
},
|
|
62
|
-
"clickable": {
|
|
63
|
-
"type": "boolean",
|
|
64
|
-
"description": "Enables pointer/hover styles and click handling on the component.",
|
|
65
|
-
"default": false,
|
|
66
|
-
"values": null,
|
|
67
|
-
"category": "behavior"
|
|
68
|
-
},
|
|
69
|
-
"padding": {
|
|
70
|
-
"type": "string|number",
|
|
71
|
-
"description": "Padding applied to the component root element.",
|
|
72
|
-
"default": null,
|
|
73
|
-
"values": [
|
|
74
|
-
"number",
|
|
75
|
-
"CSS units",
|
|
76
|
-
"xxs",
|
|
77
|
-
"xs",
|
|
78
|
-
"sm",
|
|
79
|
-
"md",
|
|
80
|
-
"lg",
|
|
81
|
-
"xl",
|
|
82
|
-
"xxl",
|
|
83
|
-
"xxxl"
|
|
84
|
-
],
|
|
85
|
-
"category": "layout"
|
|
86
|
-
},
|
|
87
|
-
"margin": {
|
|
88
|
-
"type": "string|number",
|
|
89
|
-
"description": "Margin applied to the component root element.",
|
|
90
|
-
"default": null,
|
|
91
|
-
"values": [
|
|
92
|
-
"number",
|
|
93
|
-
"CSS units",
|
|
94
|
-
"xxs",
|
|
95
|
-
"xs",
|
|
96
|
-
"sm",
|
|
97
|
-
"md",
|
|
98
|
-
"lg",
|
|
99
|
-
"xl",
|
|
100
|
-
"xxl",
|
|
101
|
-
"xxxl"
|
|
102
|
-
],
|
|
103
|
-
"category": "layout"
|
|
104
|
-
},
|
|
105
|
-
"width": {
|
|
106
|
-
"type": "string|number",
|
|
107
|
-
"description": "Explicit width (number interpreted as px or CSS length).",
|
|
108
|
-
"default": null,
|
|
109
|
-
"values": [
|
|
110
|
-
"number",
|
|
111
|
-
"CSS units",
|
|
112
|
-
"xxs",
|
|
113
|
-
"xs",
|
|
114
|
-
"sm",
|
|
115
|
-
"md",
|
|
116
|
-
"lg",
|
|
117
|
-
"xl",
|
|
118
|
-
"xxl",
|
|
119
|
-
"xxxl"
|
|
120
|
-
],
|
|
121
|
-
"category": "layout"
|
|
122
|
-
},
|
|
123
|
-
"minWidth": {
|
|
124
|
-
"type": "string|number",
|
|
125
|
-
"description": "Minimum width constraint (number interpreted as px or CSS length).",
|
|
126
|
-
"default": null,
|
|
127
|
-
"values": [
|
|
128
|
-
"number",
|
|
129
|
-
"CSS units",
|
|
130
|
-
"xxs",
|
|
131
|
-
"xs",
|
|
132
|
-
"sm",
|
|
133
|
-
"md",
|
|
134
|
-
"lg",
|
|
135
|
-
"xl",
|
|
136
|
-
"xxl",
|
|
137
|
-
"xxxl"
|
|
138
|
-
],
|
|
139
|
-
"category": "layout"
|
|
140
|
-
},
|
|
141
|
-
"maxWidth": {
|
|
142
|
-
"type": "string|number",
|
|
143
|
-
"description": "Maximum width constraint (number interpreted as px or CSS length).",
|
|
144
|
-
"default": null,
|
|
145
|
-
"values": [
|
|
146
|
-
"number",
|
|
147
|
-
"CSS units",
|
|
148
|
-
"xxs",
|
|
149
|
-
"xs",
|
|
150
|
-
"sm",
|
|
151
|
-
"md",
|
|
152
|
-
"lg",
|
|
153
|
-
"xl",
|
|
154
|
-
"xxl",
|
|
155
|
-
"xxxl"
|
|
156
|
-
],
|
|
157
|
-
"category": "layout"
|
|
158
|
-
},
|
|
159
|
-
"height": {
|
|
160
|
-
"type": "string|number",
|
|
161
|
-
"description": "Explicit height (number interpreted as px or CSS length).",
|
|
162
|
-
"default": null,
|
|
163
|
-
"values": [
|
|
164
|
-
"number",
|
|
165
|
-
"CSS units",
|
|
166
|
-
"xxs",
|
|
167
|
-
"xs",
|
|
168
|
-
"sm",
|
|
169
|
-
"md",
|
|
170
|
-
"lg",
|
|
171
|
-
"xl",
|
|
172
|
-
"xxl",
|
|
173
|
-
"xxxl"
|
|
174
|
-
],
|
|
175
|
-
"category": "layout"
|
|
176
|
-
},
|
|
177
|
-
"minHeight": {
|
|
178
|
-
"type": "string|number",
|
|
179
|
-
"description": "Minimum height constraint (number interpreted as px or CSS length).",
|
|
180
|
-
"default": null,
|
|
181
|
-
"values": [
|
|
182
|
-
"number",
|
|
183
|
-
"CSS units",
|
|
184
|
-
"xxs",
|
|
185
|
-
"xs",
|
|
186
|
-
"sm",
|
|
187
|
-
"md",
|
|
188
|
-
"lg",
|
|
189
|
-
"xl",
|
|
190
|
-
"xxl",
|
|
191
|
-
"xxxl"
|
|
192
|
-
],
|
|
193
|
-
"category": "layout"
|
|
194
|
-
},
|
|
195
|
-
"maxHeight": {
|
|
196
|
-
"type": "string|number",
|
|
197
|
-
"description": "Maximum height constraint (number interpreted as px or CSS length).",
|
|
198
|
-
"default": null,
|
|
199
|
-
"values": [
|
|
200
|
-
"number",
|
|
201
|
-
"CSS units",
|
|
202
|
-
"xxs",
|
|
203
|
-
"xs",
|
|
204
|
-
"sm",
|
|
205
|
-
"md",
|
|
206
|
-
"lg",
|
|
207
|
-
"xl",
|
|
208
|
-
"xxl",
|
|
209
|
-
"xxxl"
|
|
210
|
-
],
|
|
211
|
-
"category": "layout"
|
|
212
|
-
},
|
|
213
|
-
"radius": {
|
|
214
|
-
"type": "string|number",
|
|
215
|
-
"description": "Border radius token or CSS length applied to the component.",
|
|
216
|
-
"default": null,
|
|
217
|
-
"values": [
|
|
218
|
-
"number",
|
|
219
|
-
"CSS units",
|
|
220
|
-
"xxs",
|
|
221
|
-
"xs",
|
|
222
|
-
"sm",
|
|
223
|
-
"md",
|
|
224
|
-
"lg",
|
|
225
|
-
"xl",
|
|
226
|
-
"xxl",
|
|
227
|
-
"xxxl"
|
|
228
|
-
],
|
|
229
|
-
"category": "style"
|
|
230
|
-
},
|
|
231
|
-
"borderRadius": {
|
|
232
|
-
"type": "string|number",
|
|
233
|
-
"description": "Border radius token or CSS length applied to the component.",
|
|
234
|
-
"default": null,
|
|
235
|
-
"values": [
|
|
236
|
-
"number",
|
|
237
|
-
"CSS units",
|
|
238
|
-
"xxs",
|
|
239
|
-
"xs",
|
|
240
|
-
"sm",
|
|
241
|
-
"md",
|
|
242
|
-
"lg",
|
|
243
|
-
"xl",
|
|
244
|
-
"xxl",
|
|
245
|
-
"xxxl"
|
|
246
|
-
],
|
|
247
|
-
"category": "style"
|
|
248
|
-
},
|
|
249
|
-
"shadow": {
|
|
250
|
-
"type": "string|boolean",
|
|
251
|
-
"description": "Shadow token or CSS box-shadow string applied to the component.",
|
|
252
|
-
"default": null,
|
|
253
|
-
"values": [
|
|
254
|
-
"none",
|
|
255
|
-
"xxs",
|
|
256
|
-
"xs",
|
|
257
|
-
"sm",
|
|
258
|
-
"md",
|
|
259
|
-
"lg",
|
|
260
|
-
"xl",
|
|
261
|
-
"xxl",
|
|
262
|
-
"xxxl"
|
|
263
|
-
],
|
|
264
|
-
"category": "style"
|
|
265
|
-
},
|
|
266
|
-
"mobile": {
|
|
267
|
-
"type": "object",
|
|
268
|
-
"description": "Responsive overrides applied at the base/mobile viewport.",
|
|
269
|
-
"default": null,
|
|
270
|
-
"values": null,
|
|
271
|
-
"category": "layout"
|
|
272
|
-
},
|
|
273
|
-
"tablet": {
|
|
274
|
-
"type": "object",
|
|
275
|
-
"description": "Responsive overrides applied from the tablet breakpoint upward.",
|
|
276
|
-
"default": null,
|
|
277
|
-
"values": null,
|
|
278
|
-
"category": "layout"
|
|
279
|
-
},
|
|
280
|
-
"pc": {
|
|
281
|
-
"type": "object",
|
|
282
|
-
"description": "Responsive overrides applied from the desktop breakpoint upward.",
|
|
283
|
-
"default": null,
|
|
284
|
-
"values": null,
|
|
285
|
-
"category": "layout"
|
|
286
|
-
},
|
|
287
|
-
"class": {
|
|
288
|
-
"type": "string",
|
|
289
|
-
"description": "Additional CSS classes applied to the component root element.",
|
|
290
|
-
"default": null,
|
|
291
|
-
"values": null,
|
|
292
|
-
"category": "style"
|
|
293
|
-
},
|
|
294
|
-
"style": {
|
|
295
|
-
"type": "object",
|
|
296
|
-
"description": "Inline styles applied to the component root element.",
|
|
297
|
-
"default": null,
|
|
298
|
-
"values": null,
|
|
299
|
-
"category": "style"
|
|
300
|
-
},
|
|
301
|
-
"label": {
|
|
302
|
-
"type": "String|Node|Function",
|
|
303
|
-
"description": "Label text or node for the component.",
|
|
304
|
-
"default": null,
|
|
305
|
-
"values": null,
|
|
306
|
-
"category": "general"
|
|
307
|
-
},
|
|
308
|
-
"topLabel": {
|
|
309
|
-
"type": "String|Node|Function",
|
|
310
|
-
"description": "Label displayed above the control.",
|
|
311
|
-
"default": null,
|
|
312
|
-
"values": null,
|
|
313
|
-
"category": "general"
|
|
314
|
-
},
|
|
315
|
-
"hint": {
|
|
316
|
-
"type": "String|Node|Function",
|
|
317
|
-
"description": "Helper text shown near the control.",
|
|
318
|
-
"default": null,
|
|
319
|
-
"values": null,
|
|
320
|
-
"category": "state"
|
|
321
|
-
},
|
|
322
|
-
"error": {
|
|
323
|
-
"type": "String|Node|Function",
|
|
324
|
-
"description": "Error state or message displayed with the component.",
|
|
325
|
-
"default": null,
|
|
326
|
-
"values": null,
|
|
327
|
-
"category": "state"
|
|
328
|
-
},
|
|
329
|
-
"success": {
|
|
330
|
-
"type": "String|Node|Function",
|
|
331
|
-
"description": "Marks the component with success state styling.",
|
|
332
|
-
"default": null,
|
|
333
|
-
"values": null,
|
|
334
|
-
"category": "state"
|
|
335
|
-
},
|
|
336
|
-
"warning": {
|
|
337
|
-
"type": "String|Node|Function",
|
|
338
|
-
"description": "Marks the component with warning state styling.",
|
|
339
|
-
"default": null,
|
|
340
|
-
"values": null,
|
|
341
|
-
"category": "state"
|
|
342
|
-
},
|
|
343
|
-
"note": {
|
|
344
|
-
"type": "String|Node|Function",
|
|
345
|
-
"description": "Secondary note text.",
|
|
346
|
-
"default": null,
|
|
347
|
-
"values": null,
|
|
348
|
-
"category": "state"
|
|
349
|
-
},
|
|
350
|
-
"icon": {
|
|
351
|
-
"type": "String|Node|Function",
|
|
352
|
-
"description": "Icon name or node rendered with the component.",
|
|
353
|
-
"default": null,
|
|
354
|
-
"values": [
|
|
355
|
-
"#name_tabler",
|
|
356
|
-
"name_material",
|
|
357
|
-
"class"
|
|
358
|
-
],
|
|
359
|
-
"category": "general"
|
|
360
|
-
},
|
|
361
|
-
"iconRight": {
|
|
362
|
-
"type": "String|Node|Function",
|
|
363
|
-
"description": "Icon name or node rendered on the right side of the component.",
|
|
364
|
-
"default": null,
|
|
365
|
-
"values": [
|
|
366
|
-
"#name_tabler",
|
|
367
|
-
"name_material",
|
|
368
|
-
"class"
|
|
369
|
-
],
|
|
370
|
-
"category": "general"
|
|
371
|
-
},
|
|
372
|
-
"prefix": {
|
|
373
|
-
"type": "String|Node|Function",
|
|
374
|
-
"description": "Content rendered before the main control.",
|
|
375
|
-
"default": null,
|
|
376
|
-
"values": null,
|
|
377
|
-
"category": "general"
|
|
378
|
-
},
|
|
379
|
-
"suffix": {
|
|
380
|
-
"type": "String|Node|Function",
|
|
381
|
-
"description": "Content rendered after the main control.",
|
|
382
|
-
"default": null,
|
|
383
|
-
"values": null,
|
|
384
|
-
"category": "general"
|
|
385
|
-
},
|
|
386
|
-
"clearable": {
|
|
387
|
-
"type": "boolean",
|
|
388
|
-
"description": "Shows a clear action to reset the current value.",
|
|
389
|
-
"default": null,
|
|
390
|
-
"values": null,
|
|
391
|
-
"category": "general"
|
|
392
|
-
},
|
|
393
|
-
"shortcode": {
|
|
394
|
-
"type": "string|Array<string>|object",
|
|
395
|
-
"description": "Keyboard shortcut string, object, or array bound to the component action.",
|
|
396
|
-
"default": null,
|
|
397
|
-
"values": null,
|
|
398
|
-
"category": "general"
|
|
399
|
-
},
|
|
400
|
-
"showShortcode": {
|
|
401
|
-
"type": "boolean",
|
|
402
|
-
"description": "Displays the configured keyboard shortcut badge when the component supports it.",
|
|
403
|
-
"default": null,
|
|
404
|
-
"values": null,
|
|
405
|
-
"category": "general"
|
|
406
|
-
},
|
|
407
|
-
"disabled": {
|
|
408
|
-
"type": "boolean",
|
|
409
|
-
"description": "Disables interaction and applies disabled styling/ARIA.",
|
|
410
|
-
"default": false,
|
|
411
|
-
"values": null,
|
|
412
|
-
"category": "state"
|
|
413
|
-
},
|
|
414
|
-
"readonly": {
|
|
415
|
-
"type": "boolean",
|
|
416
|
-
"description": "Prevents editing while keeping focus and selection.",
|
|
417
|
-
"default": false,
|
|
418
|
-
"values": null,
|
|
419
|
-
"category": "state"
|
|
420
|
-
},
|
|
421
|
-
"control": {
|
|
422
|
-
"type": "Node|Function",
|
|
423
|
-
"description": "Custom control element or render function for the input area.",
|
|
424
|
-
"default": null,
|
|
425
|
-
"values": null,
|
|
426
|
-
"category": "general"
|
|
427
|
-
},
|
|
428
|
-
"getValue": {
|
|
429
|
-
"type": "() => any",
|
|
430
|
-
"description": "Function to extract a value from an item object.",
|
|
431
|
-
"default": null,
|
|
432
|
-
"values": null,
|
|
433
|
-
"category": "general"
|
|
434
|
-
},
|
|
435
|
-
"onClear": {
|
|
436
|
-
"type": "() => void",
|
|
437
|
-
"description": "Callback fired when the clear action is used.",
|
|
438
|
-
"default": null,
|
|
439
|
-
"values": null,
|
|
440
|
-
"category": "general"
|
|
441
|
-
},
|
|
442
|
-
"onFocus": {
|
|
443
|
-
"type": "() => void",
|
|
444
|
-
"description": "Callback fired when the control gains focus.",
|
|
445
|
-
"default": null,
|
|
446
|
-
"values": null,
|
|
447
|
-
"category": "events"
|
|
448
|
-
},
|
|
449
|
-
"wrapClass": {
|
|
450
|
-
"type": "string",
|
|
451
|
-
"description": "Additional CSS classes applied to the outer wrapper.",
|
|
452
|
-
"default": null,
|
|
453
|
-
"values": null,
|
|
454
|
-
"category": "general"
|
|
455
|
-
},
|
|
456
|
-
"slots": {
|
|
457
|
-
"type": "{ label?, topLabel?, prefix?, suffix?, shortcode?, icon?, iconRight?, clear?, hint?, error?, control? }",
|
|
458
|
-
"description": "Named slots map for render overrides.",
|
|
459
|
-
"default": null,
|
|
460
|
-
"values": null,
|
|
461
|
-
"category": "general"
|
|
462
|
-
},
|
|
463
|
-
"children": {
|
|
464
|
-
"type": "Node|Array|Function",
|
|
465
|
-
"description": "Default child content (nodes, arrays, or render function).",
|
|
466
|
-
"default": null,
|
|
467
|
-
"values": null,
|
|
468
|
-
"category": "general"
|
|
469
|
-
}
|
|
10
|
+
"label": {"type": "String|Node|Function", "description": "Label text or node for the component.", "default": null, "values": null, "category": "general"},
|
|
11
|
+
"topLabel": {"type": "String|Node|Function", "description": "Label displayed above the control.", "default": null, "values": null, "category": "general"},
|
|
12
|
+
"hint": {"type": "String|Node|Function", "description": "Helper text shown near the control.", "default": null, "values": null, "category": "state"},
|
|
13
|
+
"error": {"type": "String|Node|Function", "description": "Error state or message displayed with the component.", "default": null, "values": null, "category": "state"},
|
|
14
|
+
"success": {"type": "String|Node|Function", "description": "Marks the component with success state styling.", "default": null, "values": null, "category": "state"},
|
|
15
|
+
"warning": {"type": "String|Node|Function", "description": "Marks the component with warning state styling.", "default": null, "values": null, "category": "state"},
|
|
16
|
+
"note": {"type": "String|Node|Function", "description": "Secondary note text.", "default": null, "values": null, "category": "state"},
|
|
17
|
+
"icon": {"type": "String|Node|Function", "description": "Icon name or node rendered with the component.", "default": null, "values": ["#name_tabler", "name_material", "class"], "category": "general"},
|
|
18
|
+
"iconRight": {"type": "String|Node|Function", "description": "Icon name or node rendered on the right side of the component.", "default": null, "values": ["#name_tabler", "name_material", "class"], "category": "general"},
|
|
19
|
+
"prefix": {"type": "String|Node|Function", "description": "Content rendered before the main control.", "default": null, "values": null, "category": "general"},
|
|
20
|
+
"suffix": {"type": "String|Node|Function", "description": "Content rendered after the main control.", "default": null, "values": null, "category": "general"},
|
|
21
|
+
"clearable": {"type": "boolean", "description": "Shows a clear action to reset the current value.", "default": null, "values": null, "category": "general"},
|
|
22
|
+
"shortcode": {"type": "string|Array<string>|object", "description": "Keyboard shortcut string, object, or array bound to the component action.", "default": null, "values": null, "category": "general"},
|
|
23
|
+
"showShortcode": {"type": "boolean", "description": "Displays the configured keyboard shortcut badge when the component supports it.", "default": null, "values": null, "category": "general"},
|
|
24
|
+
"disabled": {"type": "boolean", "description": "Disables interaction and applies disabled styling/ARIA.", "default": false, "values": null, "category": "state"},
|
|
25
|
+
"readonly": {"type": "boolean", "description": "Prevents editing while keeping focus and selection.", "default": false, "values": null, "category": "state"},
|
|
26
|
+
"control": {"type": "Node|Function", "description": "Custom control element or render function for the input area.", "default": null, "values": null, "category": "general"},
|
|
27
|
+
"getValue": {"type": "() => any", "description": "Function to extract a value from an item object.", "default": null, "values": null, "category": "general"},
|
|
28
|
+
"onClear": {"type": "() => void", "description": "Callback fired when the clear action is used.", "default": null, "values": null, "category": "general"},
|
|
29
|
+
"onFocus": {"type": "() => void", "description": "Callback fired when the control gains focus.", "default": null, "values": null, "category": "events"},
|
|
30
|
+
"wrapClass": {"type": "string", "description": "Additional CSS classes applied to the outer wrapper.", "default": null, "values": null, "category": "general"},
|
|
31
|
+
"slots": {"type": "{ label?, topLabel?, prefix?, suffix?, shortcode?, icon?, iconRight?, clear?, hint?, error?, control? }", "description": "Named slots map for render overrides.", "default": null, "values": null, "category": "general"},
|
|
32
|
+
"children": {"type": "Node|Array|Function", "description": "Default child content (nodes, arrays, or render function).", "default": null, "values": null, "category": "general"}
|
|
470
33
|
},
|
|
471
34
|
"slots": {
|
|
472
|
-
"label": {
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
},
|
|
479
|
-
"
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
},
|
|
486
|
-
"prefix": {
|
|
487
|
-
"type": "Left addon content",
|
|
488
|
-
"description": "Slot for prefix content.",
|
|
489
|
-
"default": null,
|
|
490
|
-
"values": null,
|
|
491
|
-
"category": "slot"
|
|
492
|
-
},
|
|
493
|
-
"suffix": {
|
|
494
|
-
"type": "Right addon content",
|
|
495
|
-
"description": "Slot for suffix content.",
|
|
496
|
-
"default": null,
|
|
497
|
-
"values": null,
|
|
498
|
-
"category": "slot"
|
|
499
|
-
},
|
|
500
|
-
"icon": {
|
|
501
|
-
"type": "Left icon content",
|
|
502
|
-
"description": "Slot for icon content.",
|
|
503
|
-
"default": null,
|
|
504
|
-
"values": [
|
|
505
|
-
"#name_tabler",
|
|
506
|
-
"name_material",
|
|
507
|
-
"class"
|
|
508
|
-
],
|
|
509
|
-
"category": "slot"
|
|
510
|
-
},
|
|
511
|
-
"iconRight": {
|
|
512
|
-
"type": "Right icon content",
|
|
513
|
-
"description": "Slot for right-aligned icon content.",
|
|
514
|
-
"default": null,
|
|
515
|
-
"values": [
|
|
516
|
-
"#name_tabler",
|
|
517
|
-
"name_material",
|
|
518
|
-
"class"
|
|
519
|
-
],
|
|
520
|
-
"category": "slot"
|
|
521
|
-
},
|
|
522
|
-
"shortcode": {
|
|
523
|
-
"type": "Shortcut badge content",
|
|
524
|
-
"description": "Slot content for \"shortcode\". Accepts nodes, arrays, or render functions.",
|
|
525
|
-
"default": null,
|
|
526
|
-
"values": null,
|
|
527
|
-
"category": "slot"
|
|
528
|
-
},
|
|
529
|
-
"clear": {
|
|
530
|
-
"type": "Clear button slot (ctx: { clear, disabled, readonly, hasValue })",
|
|
531
|
-
"description": "Slot for the clear control/content.",
|
|
532
|
-
"default": null,
|
|
533
|
-
"values": null,
|
|
534
|
-
"category": "slot"
|
|
535
|
-
},
|
|
536
|
-
"hint": {
|
|
537
|
-
"type": "Hint content",
|
|
538
|
-
"description": "Slot for helper/hint text.",
|
|
539
|
-
"default": null,
|
|
540
|
-
"values": null,
|
|
541
|
-
"category": "state"
|
|
542
|
-
},
|
|
543
|
-
"errorMessage": {
|
|
544
|
-
"type": "Error content",
|
|
545
|
-
"description": "Slot for custom error message rendering.",
|
|
546
|
-
"default": null,
|
|
547
|
-
"values": null,
|
|
548
|
-
"category": "slot"
|
|
549
|
-
},
|
|
550
|
-
"success": {
|
|
551
|
-
"type": "Success content",
|
|
552
|
-
"description": "Slot for success message/content.",
|
|
553
|
-
"default": null,
|
|
554
|
-
"values": null,
|
|
555
|
-
"category": "state"
|
|
556
|
-
},
|
|
557
|
-
"warning": {
|
|
558
|
-
"type": "Warning content",
|
|
559
|
-
"description": "Slot for warning message/content.",
|
|
560
|
-
"default": null,
|
|
561
|
-
"values": null,
|
|
562
|
-
"category": "state"
|
|
563
|
-
},
|
|
564
|
-
"note": {
|
|
565
|
-
"type": "Note content",
|
|
566
|
-
"description": "Slot for note/secondary text.",
|
|
567
|
-
"default": null,
|
|
568
|
-
"values": null,
|
|
569
|
-
"category": "state"
|
|
570
|
-
},
|
|
571
|
-
"control": {
|
|
572
|
-
"type": "Override control wrapper (ctx: { control, clear, disabled, readonly, hasValue })",
|
|
573
|
-
"description": "Slot for custom control/input rendering.",
|
|
574
|
-
"default": null,
|
|
575
|
-
"values": null,
|
|
576
|
-
"category": "slot"
|
|
577
|
-
}
|
|
35
|
+
"label": {"type": "Floating label content", "description": "Slot for label content.", "default": null, "values": null, "category": "slot"},
|
|
36
|
+
"topLabel": {"type": "Top label content", "description": "Slot for top label content.", "default": null, "values": null, "category": "slot"},
|
|
37
|
+
"prefix": {"type": "Left addon content", "description": "Slot for prefix content.", "default": null, "values": null, "category": "slot"},
|
|
38
|
+
"suffix": {"type": "Right addon content", "description": "Slot for suffix content.", "default": null, "values": null, "category": "slot"},
|
|
39
|
+
"icon": {"type": "Left icon content", "description": "Slot for icon content.", "default": null, "values": ["#name_tabler", "name_material", "class"], "category": "slot"},
|
|
40
|
+
"iconRight": {"type": "Right icon content", "description": "Slot for right-aligned icon content.", "default": null, "values": ["#name_tabler", "name_material", "class"], "category": "slot"},
|
|
41
|
+
"shortcode": {"type": "Shortcut badge content", "description": "Slot content for \"shortcode\". Accepts nodes, arrays, or render functions.", "default": null, "values": null, "category": "slot"},
|
|
42
|
+
"clear": {"type": "Clear button slot (ctx: { clear, disabled, readonly, hasValue })", "description": "Slot for the clear control/content.", "default": null, "values": null, "category": "slot"},
|
|
43
|
+
"hint": {"type": "Hint content", "description": "Slot for helper/hint text.", "default": null, "values": null, "category": "state"},
|
|
44
|
+
"errorMessage": {"type": "Error content", "description": "Slot for custom error message rendering.", "default": null, "values": null, "category": "slot"},
|
|
45
|
+
"success": {"type": "Success content", "description": "Slot for success message/content.", "default": null, "values": null, "category": "state"},
|
|
46
|
+
"warning": {"type": "Warning content", "description": "Slot for warning message/content.", "default": null, "values": null, "category": "state"},
|
|
47
|
+
"note": {"type": "Note content", "description": "Slot for note/secondary text.", "default": null, "values": null, "category": "state"},
|
|
48
|
+
"control": {"type": "Override control wrapper (ctx: { control, clear, disabled, readonly, hasValue })", "description": "Slot for custom control/input rendering.", "default": null, "values": null, "category": "slot"}
|
|
578
49
|
},
|
|
579
|
-
"returns": "HTMLDivElement (wrapper) con ._refresh()"
|
|
50
|
+
"returns": "HTMLDivElement (wrapper) con ._refresh()",
|
|
51
|
+
"commonProps": {"path": "ui/common-props.md", "keys": ["size", "color", "outline", "clickable", "padding", "margin", "width", "minWidth", "maxWidth", "height", "minHeight", "maxHeight", "radius", "borderRadius", "shadow", "mobile", "tablet", "pc", "class", "style"]}
|
|
580
52
|
}
|
|
581
53
|
```
|