@voidable/ui 0.8.1 → 0.10.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/README.md +8 -0
- package/dist/base-entry.d.ts +1 -0
- package/dist/base.d.ts +2 -1
- package/dist/base.js +5 -1
- package/dist/chunks/base-BxmMM3B7.js +298 -0
- package/dist/chunks/{keyboard-MQpfTX5I.js → keyboard-CEhMSkws.js} +19 -3
- package/dist/chunks/{modal-D_YVy2vg.js → modal-CgGp_fCs.js} +3 -3
- package/dist/chunks/{overlay-BywGMcDW.js → overlay-hLJ7IQHx.js} +2 -2
- package/dist/chunks/{parts-D30c8OoG.js → parts-DI_3VpSy.js} +25 -18
- package/dist/chunks/{base-CMruMbxC.js → projection-SnR79EHI.js} +105 -389
- package/dist/chunks/secret-value-CmTtVkMg.js +14 -0
- package/dist/chunks/value-list-CH6GjYXM.js +28 -0
- package/dist/components/accordion.js +2 -2
- package/dist/components/action-input.d.ts +8 -4
- package/dist/components/action-input.js +61 -49
- package/dist/components/alert.js +2 -2
- package/dist/components/avatar.js +13 -11
- package/dist/components/badge.js +1 -1
- package/dist/components/banner.js +2 -2
- package/dist/components/bar-chart.js +31 -29
- package/dist/components/breadcrumbs.js +2 -2
- package/dist/components/button.js +1 -1
- package/dist/components/calendar.js +78 -76
- package/dist/components/card.js +1 -1
- package/dist/components/carousel.js +18 -17
- package/dist/components/checkbox-group.d.ts +10 -0
- package/dist/components/checkbox-group.js +36 -23
- package/dist/components/checkbox.d.ts +2 -2
- package/dist/components/checkbox.js +17 -16
- package/dist/components/collapsible.js +2 -2
- package/dist/components/color-picker.d.ts +2 -2
- package/dist/components/color-picker.js +26 -24
- package/dist/components/combobox.d.ts +4 -2
- package/dist/components/combobox.js +22 -18
- package/dist/components/compose-input.d.ts +1 -1
- package/dist/components/compose-input.js +15 -10
- package/dist/components/dialog.js +1 -1
- package/dist/components/divider.js +11 -9
- package/dist/components/donut-chart.js +51 -49
- package/dist/components/drawer.d.ts +2 -2
- package/dist/components/drawer.js +1 -1
- package/dist/components/dropdown-menu.js +4 -4
- package/dist/components/editable.d.ts +1 -1
- package/dist/components/editable.js +13 -12
- package/dist/components/error-fallback.js +2 -2
- package/dist/components/field.js +10 -9
- package/dist/components/file-upload.js +19 -17
- package/dist/components/gauge.js +90 -85
- package/dist/components/hamburger.js +11 -9
- package/dist/components/hover-card.js +3 -3
- package/dist/components/indicator.js +14 -12
- package/dist/components/input.d.ts +6 -2
- package/dist/components/input.js +46 -34
- package/dist/components/line-chart.js +41 -39
- package/dist/components/list.js +1 -1
- package/dist/components/menu.js +3 -3
- package/dist/components/multiselect.d.ts +9 -0
- package/dist/components/multiselect.js +64 -54
- package/dist/components/nav-bar.js +1 -1
- package/dist/components/nav-menu.js +20 -19
- package/dist/components/number-input.d.ts +2 -2
- package/dist/components/number-input.js +17 -15
- package/dist/components/pagination.js +22 -20
- package/dist/components/panel.js +2 -2
- package/dist/components/pin-input.d.ts +6 -2
- package/dist/components/pin-input.js +39 -27
- package/dist/components/popover.js +3 -3
- package/dist/components/progress.js +14 -12
- package/dist/components/radio-group.d.ts +2 -2
- package/dist/components/radio-group.js +15 -10
- package/dist/components/radio.d.ts +25 -0
- package/dist/components/radio.js +78 -29
- package/dist/components/scroll-area.js +8 -7
- package/dist/components/segmented-control.d.ts +1 -1
- package/dist/components/segmented-control.js +21 -21
- package/dist/components/select.d.ts +67 -16
- package/dist/components/select.js +183 -56
- package/dist/components/sidebar.d.ts +2 -2
- package/dist/components/sidebar.js +2 -2
- package/dist/components/skeleton.js +1 -1
- package/dist/components/slider.d.ts +2 -2
- package/dist/components/slider.js +18 -13
- package/dist/components/spinner.js +11 -9
- package/dist/components/stat.js +19 -17
- package/dist/components/status-dot.js +1 -1
- package/dist/components/stepper.js +15 -13
- package/dist/components/switch.d.ts +1 -1
- package/dist/components/switch.js +14 -12
- package/dist/components/table.js +1 -1
- package/dist/components/tabs.js +29 -29
- package/dist/components/tag.js +9 -8
- package/dist/components/tags-input.d.ts +1 -1
- package/dist/components/tags-input.js +25 -19
- package/dist/components/textarea.d.ts +2 -2
- package/dist/components/textarea.js +36 -31
- package/dist/components/toast.d.ts +19 -2
- package/dist/components/toast.js +43 -10
- package/dist/components/toggle-group.d.ts +2 -2
- package/dist/components/toggle-group.js +16 -15
- package/dist/components/toggle.js +5 -2
- package/dist/components/tooltip.js +3 -3
- package/dist/components.json +3 -3
- package/dist/custom-elements.json +133 -67
- package/dist/dev/types.d.ts +2 -3
- package/dist/dev.js +81 -55
- package/dist/index.js +1 -1
- package/dist/keyboard.d.ts +10 -0
- package/dist/llms.txt +125 -0
- package/dist/parts.d.ts +8 -1
- package/dist/projection-api.d.ts +23 -0
- package/dist/projection.d.ts +8 -2
- package/dist/reference.md +4575 -0
- package/dist/secret-value.d.ts +17 -0
- package/dist/types/elements.d.ts +2 -2
- package/dist/value-list.d.ts +14 -0
- package/dist/vscode.html-custom-data.json +46 -26
- package/dist/web-types.json +73 -53
- package/package.json +5 -3
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { PropertyDeclaration } from 'lit';
|
|
2
|
+
/**
|
|
3
|
+
* Value reflection for a control that can hide what is typed (a password field, a masked PIN): its
|
|
4
|
+
* `value` is reflected to the attribute like any control's, except while it is a secret, because an
|
|
5
|
+
* attribute is readable by every script, devtools panel, DOM snapshot and session recorder on the page.
|
|
6
|
+
*
|
|
7
|
+
* A component passes `secret` to {@link valueReflection} from its `requestUpdate`, and calls
|
|
8
|
+
* {@link dropReflectedValue} when the secret state begins.
|
|
9
|
+
*/
|
|
10
|
+
export declare function valueReflection(secret: boolean, name: PropertyKey | undefined, options: PropertyDeclaration | undefined, declared: () => PropertyDeclaration): PropertyDeclaration | undefined;
|
|
11
|
+
/**
|
|
12
|
+
* Removes the `value` attribute that was reflected before the control became a secret, keeping the
|
|
13
|
+
* property: removing a reflected attribute from outside resets its property, so the value is put back.
|
|
14
|
+
*/
|
|
15
|
+
export declare function dropReflectedValue(el: HTMLElement & {
|
|
16
|
+
value: unknown;
|
|
17
|
+
}): void;
|
package/dist/types/elements.d.ts
CHANGED
|
@@ -394,7 +394,7 @@ export interface VoidElementAttributeNames {
|
|
|
394
394
|
'void-carousel-next': never;
|
|
395
395
|
'void-carousel-previous': never;
|
|
396
396
|
'void-checkbox': 'checked' | 'disabled' | 'indeterminate' | 'name' | 'value' | 'required' | 'color' | 'size' | 'form';
|
|
397
|
-
'void-checkbox-group': 'label' | 'orientation' | 'name' | 'required' | 'disabled' | 'form';
|
|
397
|
+
'void-checkbox-group': 'label' | 'orientation' | 'name' | 'required' | 'disabled' | 'value' | 'form';
|
|
398
398
|
'void-collapsible': 'open' | 'disabled';
|
|
399
399
|
'void-collapsible-content': never;
|
|
400
400
|
'void-collapsible-trigger': never;
|
|
@@ -446,7 +446,7 @@ export interface VoidElementAttributeNames {
|
|
|
446
446
|
'void-menu-item-icon': never;
|
|
447
447
|
'void-menu-item-shortcut': never;
|
|
448
448
|
'void-menu-search': never;
|
|
449
|
-
'void-multiselect': 'placeholder' | 'disabled' | 'size' | 'error' | 'name' | 'open' | 'required';
|
|
449
|
+
'void-multiselect': 'placeholder' | 'disabled' | 'size' | 'error' | 'name' | 'open' | 'value' | 'required';
|
|
450
450
|
'void-multiselect-content': never;
|
|
451
451
|
'void-nav-bar': 'sticky' | 'hide-border' | 'variant';
|
|
452
452
|
'void-nav-menu': 'orientation' | 'width';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ComplexAttributeConverter } from 'lit';
|
|
2
|
+
/**
|
|
3
|
+
* The `value` attribute of a control whose value is a list of tags (strings or `{ text, color }`): a JSON
|
|
4
|
+
* array. Unlike Lit's built-in array converter, an absent, empty or invalid attribute is the empty list,
|
|
5
|
+
* never `null`: a morph that removes the reflected attribute must not leave the property null for the
|
|
6
|
+
* moment before it is reset.
|
|
7
|
+
*/
|
|
8
|
+
export declare const valueJsonList: ComplexAttributeConverter<unknown[]>;
|
|
9
|
+
/**
|
|
10
|
+
* The `value` attribute of a control whose value is a list of strings (a multiselect, a checkbox group):
|
|
11
|
+
* a JSON array, `value='["a","b"]'`. An attribute that is not JSON, or JSON that is not an array, is one
|
|
12
|
+
* value, so `value="a"` chooses `a`. Empty or absent is the empty list.
|
|
13
|
+
*/
|
|
14
|
+
export declare const valueList: ComplexAttributeConverter<string[]>;
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"name": "value",
|
|
64
64
|
"description": {
|
|
65
65
|
"kind": "markdown",
|
|
66
|
-
"value": "The text in the field.
|
|
66
|
+
"value": "The text in the field. Reflected to the `value` attribute as it changes, and setting the attribute\nsets it; the form's reset target stays the value the field started with. A `type=\"password\"` field\ndoes not reflect: its attribute is only ever the initial value.\n\nType: `string`\n\nDefault: `''`\n\nReflected to the attribute."
|
|
67
67
|
}
|
|
68
68
|
},
|
|
69
69
|
{
|
|
@@ -334,14 +334,14 @@
|
|
|
334
334
|
"name": "icon-side",
|
|
335
335
|
"description": {
|
|
336
336
|
"kind": "markdown",
|
|
337
|
-
"value": "Which side of the field the button sits on: `
|
|
337
|
+
"value": "Which side of the field the button sits on, in the reading direction: `end` (default) or `start`.\n\nType: `'start' | 'end'`\n\nDefault: `'end'`\n\nReflected to the attribute."
|
|
338
338
|
},
|
|
339
339
|
"values": [
|
|
340
340
|
{
|
|
341
|
-
"name": "
|
|
341
|
+
"name": "start"
|
|
342
342
|
},
|
|
343
343
|
{
|
|
344
|
-
"name": "
|
|
344
|
+
"name": "end"
|
|
345
345
|
}
|
|
346
346
|
]
|
|
347
347
|
},
|
|
@@ -1173,7 +1173,7 @@
|
|
|
1173
1173
|
"name": "checked",
|
|
1174
1174
|
"description": {
|
|
1175
1175
|
"kind": "markdown",
|
|
1176
|
-
"value": "Whether the box is checked.
|
|
1176
|
+
"value": "Whether the box is checked. Reflected to the attribute as the user toggles it or a script sets it;\nthe form's reset target stays the state it started with.\n\nType: `boolean`\n\nDefault: `false`\n\nReflected to the attribute."
|
|
1177
1177
|
},
|
|
1178
1178
|
"valueSet": "v"
|
|
1179
1179
|
},
|
|
@@ -1327,6 +1327,13 @@
|
|
|
1327
1327
|
},
|
|
1328
1328
|
"valueSet": "v"
|
|
1329
1329
|
},
|
|
1330
|
+
{
|
|
1331
|
+
"name": "value",
|
|
1332
|
+
"description": {
|
|
1333
|
+
"kind": "markdown",
|
|
1334
|
+
"value": "Check exactly the child checkboxes whose value is listed. Does not fire void-change.\n\nType: `string[]`\n\nDefault: `[]`\n\nReflected to the attribute."
|
|
1335
|
+
}
|
|
1336
|
+
},
|
|
1330
1337
|
{
|
|
1331
1338
|
"name": "form",
|
|
1332
1339
|
"description": {
|
|
@@ -1388,7 +1395,7 @@
|
|
|
1388
1395
|
"name": "value",
|
|
1389
1396
|
"description": {
|
|
1390
1397
|
"kind": "markdown",
|
|
1391
|
-
"value": "Selected colour as a hex string (six digits after the hash). Defaults to black.
|
|
1398
|
+
"value": "Selected colour as a hex string (six digits after the hash). Defaults to black. Reflected to the attribute as it\nchanges; the form's reset target stays the value it started with.\n\nType: `string`\n\nDefault: `'#000000'`\n\nReflected to the attribute."
|
|
1392
1399
|
}
|
|
1393
1400
|
},
|
|
1394
1401
|
{
|
|
@@ -1476,7 +1483,7 @@
|
|
|
1476
1483
|
"name": "value",
|
|
1477
1484
|
"description": {
|
|
1478
1485
|
"kind": "markdown",
|
|
1479
|
-
"value": "`value` of the chosen `void-option`.
|
|
1486
|
+
"value": "`value` of the chosen `void-option`. Reflected to the attribute as the choice changes. Written in markup\nit is the initial choice (without it, an option marked `selected` is), which a form reset restores.\n\nType: `string`\n\nDefault: `''`\n\nReflected to the attribute."
|
|
1480
1487
|
}
|
|
1481
1488
|
},
|
|
1482
1489
|
{
|
|
@@ -1572,7 +1579,7 @@
|
|
|
1572
1579
|
"name": "value",
|
|
1573
1580
|
"description": {
|
|
1574
1581
|
"kind": "markdown",
|
|
1575
|
-
"value": "The draft text. It is cleared after each send.\n\nType: `string`\n\nDefault: `''
|
|
1582
|
+
"value": "The draft text, reflected to the `value` attribute as it changes. It is cleared after each send.\n\nType: `string`\n\nDefault: `''`\n\nReflected to the attribute."
|
|
1576
1583
|
}
|
|
1577
1584
|
},
|
|
1578
1585
|
{
|
|
@@ -1941,7 +1948,7 @@
|
|
|
1941
1948
|
"name": "side",
|
|
1942
1949
|
"description": {
|
|
1943
1950
|
"kind": "markdown",
|
|
1944
|
-
"value": "
|
|
1951
|
+
"value": "Edge the drawer slides in from: `right` (default), `left`, `top` or `bottom` (the screen edges), or `start` or `end` (the side the text starts or ends on, so they swap in right-to-left).\n\nType: `'left' | 'right' | 'start' | 'end' | 'top' | 'bottom'`\n\nDefault: `'right'`\n\nReflected to the attribute."
|
|
1945
1952
|
},
|
|
1946
1953
|
"values": [
|
|
1947
1954
|
{
|
|
@@ -1950,6 +1957,12 @@
|
|
|
1950
1957
|
{
|
|
1951
1958
|
"name": "right"
|
|
1952
1959
|
},
|
|
1960
|
+
{
|
|
1961
|
+
"name": "start"
|
|
1962
|
+
},
|
|
1963
|
+
{
|
|
1964
|
+
"name": "end"
|
|
1965
|
+
},
|
|
1953
1966
|
{
|
|
1954
1967
|
"name": "top"
|
|
1955
1968
|
},
|
|
@@ -2157,7 +2170,7 @@
|
|
|
2157
2170
|
"name": "value",
|
|
2158
2171
|
"description": {
|
|
2159
2172
|
"kind": "markdown",
|
|
2160
|
-
"value": "The committed text.
|
|
2173
|
+
"value": "The committed text. Reflected to the attribute as it changes; the form's reset target stays the value it started with. Text still\nbeing edited is not part of it until committed.\n\nType: `string`\n\nDefault: `''`\n\nReflected to the attribute."
|
|
2161
2174
|
}
|
|
2162
2175
|
},
|
|
2163
2176
|
{
|
|
@@ -2423,7 +2436,7 @@
|
|
|
2423
2436
|
"name": "value",
|
|
2424
2437
|
"description": {
|
|
2425
2438
|
"kind": "markdown",
|
|
2426
|
-
"value": "The reading, between `min` and `max`, for a single-value gauge. For a gauge split into segments set\n`data.segments` instead.\n\nType: `number`\n\nDefault: `0
|
|
2439
|
+
"value": "The reading, between `min` and `max`, for a single-value gauge. For a gauge split into segments set\n`data.segments` instead.\n\nType: `number`\n\nDefault: `0`\n\nReflected to the attribute."
|
|
2427
2440
|
}
|
|
2428
2441
|
},
|
|
2429
2442
|
{
|
|
@@ -2840,7 +2853,7 @@
|
|
|
2840
2853
|
"name": "value",
|
|
2841
2854
|
"description": {
|
|
2842
2855
|
"kind": "markdown",
|
|
2843
|
-
"value": "The text in the field.
|
|
2856
|
+
"value": "The text in the field. Reflected to the `value` attribute as it changes, and setting the attribute\nsets it; the form's reset target stays the value the field started with. A `type=\"password\"` field\ndoes not reflect: its attribute is only ever the initial value.\n\nType: `string`\n\nDefault: `''`\n\nReflected to the attribute."
|
|
2844
2857
|
}
|
|
2845
2858
|
},
|
|
2846
2859
|
{
|
|
@@ -3340,6 +3353,13 @@
|
|
|
3340
3353
|
},
|
|
3341
3354
|
"valueSet": "v"
|
|
3342
3355
|
},
|
|
3356
|
+
{
|
|
3357
|
+
"name": "value",
|
|
3358
|
+
"description": {
|
|
3359
|
+
"kind": "markdown",
|
|
3360
|
+
"value": "Select exactly the options whose value is listed. Does not fire void-change.\n\nType: `string[]`\n\nDefault: `[]`\n\nReflected to the attribute."
|
|
3361
|
+
}
|
|
3362
|
+
},
|
|
3343
3363
|
{
|
|
3344
3364
|
"name": "required",
|
|
3345
3365
|
"description": {
|
|
@@ -3489,7 +3509,7 @@
|
|
|
3489
3509
|
"name": "value",
|
|
3490
3510
|
"description": {
|
|
3491
3511
|
"kind": "markdown",
|
|
3492
|
-
"value": "The number, or `null` while the field is empty (the default, and after the user clears it).
|
|
3512
|
+
"value": "The number, or `null` while the field is empty (the default, and after the user clears it). Reflected to\nthe attribute as it changes (absent while empty); an absent or empty attribute is an empty field. It is kept within\n`min` and `max` once the user commits an edit. An empty field submits an empty string, and with\n`required` it is invalid (`valueMissing`), as a native number field.\n\nType: `number | null`\n\nDefault: `null`\n\nReflected to the attribute."
|
|
3493
3513
|
}
|
|
3494
3514
|
},
|
|
3495
3515
|
{
|
|
@@ -3835,7 +3855,7 @@
|
|
|
3835
3855
|
"name": "value",
|
|
3836
3856
|
"description": {
|
|
3837
3857
|
"kind": "markdown",
|
|
3838
|
-
"value": "The characters entered so far, without separators
|
|
3858
|
+
"value": "The characters entered so far, without separators, reflected to the `value` attribute as they\nchange; the form's reset target stays the value the cells started with. A `mask`ed input does not\nreflect: its attribute is only ever the initial value.\n\nType: `string`\n\nDefault: `''`\n\nReflected to the attribute."
|
|
3839
3859
|
}
|
|
3840
3860
|
},
|
|
3841
3861
|
{
|
|
@@ -4236,7 +4256,7 @@
|
|
|
4236
4256
|
"name": "value",
|
|
4237
4257
|
"description": {
|
|
4238
4258
|
"kind": "markdown",
|
|
4239
|
-
"value": "`value` of the selected radio. Set it to choose one; it
|
|
4259
|
+
"value": "`value` of the selected radio. Set it to choose one; it follows the user's choice and is reflected\nto the attribute. The form's reset target stays the initial selection.\n\nType: `string`\n\nDefault: `''`\n\nReflected to the attribute."
|
|
4240
4260
|
}
|
|
4241
4261
|
},
|
|
4242
4262
|
{
|
|
@@ -4331,7 +4351,7 @@
|
|
|
4331
4351
|
"name": "value",
|
|
4332
4352
|
"description": {
|
|
4333
4353
|
"kind": "markdown",
|
|
4334
|
-
"value": "`value` of the selected item. Selection follows focus, so each arrow key changes it and fires\n`void-change`.
|
|
4354
|
+
"value": "`value` of the selected item. Selection follows focus, so each arrow key changes it and fires\n`void-change`. Reflected to the attribute as it changes; the form's reset target stays the value it started with.\n\nType: `string`\n\nDefault: `''`\n\nReflected to the attribute."
|
|
4335
4355
|
}
|
|
4336
4356
|
},
|
|
4337
4357
|
{
|
|
@@ -4470,7 +4490,7 @@
|
|
|
4470
4490
|
"name": "value",
|
|
4471
4491
|
"description": {
|
|
4472
4492
|
"kind": "markdown",
|
|
4473
|
-
"value": "`value` of the chosen option (the native select's value)
|
|
4493
|
+
"value": "`value` of the chosen option (the native select's value), reflected to the attribute as the choice\nchanges. Written in markup it is the initial choice, applied once an option with that value exists (and\nwhat a form reset returns to); without it the options' own `selected` decide, as in plain HTML.\n\nType: `string`\n\nDefault: `''`\n\nReflected to the attribute."
|
|
4474
4494
|
}
|
|
4475
4495
|
}
|
|
4476
4496
|
]
|
|
@@ -4508,14 +4528,14 @@
|
|
|
4508
4528
|
"name": "side",
|
|
4509
4529
|
"description": {
|
|
4510
4530
|
"kind": "markdown",
|
|
4511
|
-
"value": "Which
|
|
4531
|
+
"value": "Which side of the content the sidebar sits on, in the reading direction: `start` (default) or `end`.\n\nType: `'start' | 'end'`\n\nDefault: `'start'`\n\nReflected to the attribute."
|
|
4512
4532
|
},
|
|
4513
4533
|
"values": [
|
|
4514
4534
|
{
|
|
4515
|
-
"name": "
|
|
4535
|
+
"name": "start"
|
|
4516
4536
|
},
|
|
4517
4537
|
{
|
|
4518
|
-
"name": "
|
|
4538
|
+
"name": "end"
|
|
4519
4539
|
}
|
|
4520
4540
|
]
|
|
4521
4541
|
}
|
|
@@ -4559,7 +4579,7 @@
|
|
|
4559
4579
|
"name": "value",
|
|
4560
4580
|
"description": {
|
|
4561
4581
|
"kind": "markdown",
|
|
4562
|
-
"value": "Current position, between `min` and `max`. Defaults to 50.
|
|
4582
|
+
"value": "Current position, between `min` and `max`. Defaults to 50. Reflected to the `value` attribute as it\nmoves; the form's reset target stays the value the slider started with.\n\nType: `number`\n\nDefault: `50`\n\nReflected to the attribute."
|
|
4563
4583
|
}
|
|
4564
4584
|
},
|
|
4565
4585
|
{
|
|
@@ -4855,7 +4875,7 @@
|
|
|
4855
4875
|
"name": "checked",
|
|
4856
4876
|
"description": {
|
|
4857
4877
|
"kind": "markdown",
|
|
4858
|
-
"value": "Whether the switch is on.
|
|
4878
|
+
"value": "Whether the switch is on. Reflected to the attribute as it changes; the form's reset target stays the state it started with.\n\nType: `boolean`\n\nDefault: `false`\n\nReflected to the attribute."
|
|
4859
4879
|
},
|
|
4860
4880
|
"valueSet": "v"
|
|
4861
4881
|
},
|
|
@@ -5228,7 +5248,7 @@
|
|
|
5228
5248
|
"name": "value",
|
|
5229
5249
|
"description": {
|
|
5230
5250
|
"kind": "markdown",
|
|
5231
|
-
"value": "The tags, as an array of strings or `{ text, color }` objects. Set it as a property from script, or\nas a JSON array in the attribute.\n\nType: `TagValue[]`\n\nDefault: `[]
|
|
5251
|
+
"value": "The tags, as an array of strings or `{ text, color }` objects. Set it as a property from script, or\nas a JSON array in the attribute, which follows the tags as they change.\n\nType: `TagValue[]`\n\nDefault: `[]`\n\nReflected to the attribute."
|
|
5232
5252
|
}
|
|
5233
5253
|
},
|
|
5234
5254
|
{
|
|
@@ -5363,7 +5383,7 @@
|
|
|
5363
5383
|
"name": "value",
|
|
5364
5384
|
"description": {
|
|
5365
5385
|
"kind": "markdown",
|
|
5366
|
-
"value": "The text in the box.
|
|
5386
|
+
"value": "The text in the box. Reflected to the `value` attribute as it changes, and setting the attribute\nsets it; the form's reset target stays the value the box started with.\n\nType: `string`\n\nDefault: `''`\n\nReflected to the attribute."
|
|
5367
5387
|
}
|
|
5368
5388
|
},
|
|
5369
5389
|
{
|
|
@@ -5729,7 +5749,7 @@
|
|
|
5729
5749
|
"name": "value",
|
|
5730
5750
|
"description": {
|
|
5731
5751
|
"kind": "markdown",
|
|
5732
|
-
"value": "What this toggle stands for: the value it contributes to a parent `<void-toggle-group>`, and `detail.value` of its `void-change`.\n\nType: `string`\n\nDefault: `''
|
|
5752
|
+
"value": "What this toggle stands for: the value it contributes to a parent `<void-toggle-group>`, and `detail.value` of its `void-change`.\n\nType: `string`\n\nDefault: `''`\n\nReflected to the attribute."
|
|
5733
5753
|
}
|
|
5734
5754
|
},
|
|
5735
5755
|
{
|
|
@@ -5819,7 +5839,7 @@
|
|
|
5819
5839
|
"name": "value",
|
|
5820
5840
|
"description": {
|
|
5821
5841
|
"kind": "markdown",
|
|
5822
|
-
"value": "Comma-separated `value`s of the pressed toggles (`bold,italic`), or the single pressed value.
|
|
5842
|
+
"value": "Comma-separated `value`s of the pressed toggles (`bold,italic`), or the single pressed value. Reflected to the\nattribute as the pressed toggles change; the form's reset target stays the state it started with. Without it (or with an empty one) the\ntoggles that carry `pressed` in the markup set the initial value (the first of them unless\n`multiple`); a non-empty `value` wins over their `pressed`.\n\nType: `string`\n\nDefault: `''`\n\nReflected to the attribute."
|
|
5823
5843
|
}
|
|
5824
5844
|
},
|
|
5825
5845
|
{
|