@voidable/ui 0.8.1 → 0.9.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.
Files changed (69) hide show
  1. package/README.md +8 -0
  2. package/dist/chunks/{modal-D_YVy2vg.js → modal-hivQ4YoU.js} +1 -1
  3. package/dist/chunks/{parts-D30c8OoG.js → parts-CMQQop0D.js} +4 -1
  4. package/dist/chunks/secret-value-CmTtVkMg.js +14 -0
  5. package/dist/chunks/value-list-CH6GjYXM.js +28 -0
  6. package/dist/components/accordion.js +1 -1
  7. package/dist/components/action-input.d.ts +6 -2
  8. package/dist/components/action-input.js +55 -45
  9. package/dist/components/alert.js +1 -1
  10. package/dist/components/banner.js +1 -1
  11. package/dist/components/breadcrumbs.js +1 -1
  12. package/dist/components/carousel.js +1 -1
  13. package/dist/components/checkbox-group.d.ts +10 -0
  14. package/dist/components/checkbox-group.js +30 -18
  15. package/dist/components/checkbox.d.ts +2 -2
  16. package/dist/components/collapsible.js +1 -1
  17. package/dist/components/color-picker.d.ts +2 -2
  18. package/dist/components/combobox.d.ts +4 -2
  19. package/dist/components/combobox.js +8 -5
  20. package/dist/components/compose-input.d.ts +1 -1
  21. package/dist/components/compose-input.js +4 -1
  22. package/dist/components/dialog.js +1 -1
  23. package/dist/components/drawer.js +1 -1
  24. package/dist/components/dropdown-menu.js +1 -1
  25. package/dist/components/editable.d.ts +1 -1
  26. package/dist/components/error-fallback.js +1 -1
  27. package/dist/components/gauge.js +4 -1
  28. package/dist/components/hover-card.js +1 -1
  29. package/dist/components/input.d.ts +6 -2
  30. package/dist/components/input.js +43 -33
  31. package/dist/components/menu.js +1 -1
  32. package/dist/components/multiselect.d.ts +9 -0
  33. package/dist/components/multiselect.js +47 -38
  34. package/dist/components/nav-menu.js +1 -1
  35. package/dist/components/number-input.d.ts +2 -2
  36. package/dist/components/panel.js +1 -1
  37. package/dist/components/pin-input.d.ts +6 -2
  38. package/dist/components/pin-input.js +27 -17
  39. package/dist/components/popover.js +1 -1
  40. package/dist/components/radio-group.d.ts +2 -2
  41. package/dist/components/radio-group.js +4 -1
  42. package/dist/components/segmented-control.d.ts +1 -1
  43. package/dist/components/select.d.ts +67 -16
  44. package/dist/components/select.js +172 -47
  45. package/dist/components/slider.d.ts +2 -2
  46. package/dist/components/slider.js +4 -1
  47. package/dist/components/switch.d.ts +1 -1
  48. package/dist/components/tabs.js +1 -1
  49. package/dist/components/tags-input.d.ts +1 -1
  50. package/dist/components/tags-input.js +22 -18
  51. package/dist/components/textarea.d.ts +2 -2
  52. package/dist/components/textarea.js +4 -1
  53. package/dist/components/toast.js +1 -1
  54. package/dist/components/toggle-group.d.ts +2 -2
  55. package/dist/components/toggle.js +4 -1
  56. package/dist/components/tooltip.js +1 -1
  57. package/dist/components.json +3 -3
  58. package/dist/custom-elements.json +85 -49
  59. package/dist/dev/types.d.ts +2 -3
  60. package/dist/dev.js +50 -48
  61. package/dist/llms.txt +125 -0
  62. package/dist/parts.d.ts +3 -1
  63. package/dist/reference.md +4575 -0
  64. package/dist/secret-value.d.ts +17 -0
  65. package/dist/types/elements.d.ts +2 -2
  66. package/dist/value-list.d.ts +14 -0
  67. package/dist/vscode.html-custom-data.json +33 -19
  68. package/dist/web-types.json +57 -37
  69. 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;
@@ -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. As an attribute it is the initial value; read or set the `value` property for\nthe current text.\n\nType: `string`\n\nDefault: `''`"
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
  {
@@ -1173,7 +1173,7 @@
1173
1173
  "name": "checked",
1174
1174
  "description": {
1175
1175
  "kind": "markdown",
1176
- "value": "Whether the box is checked. Updated when the user toggles it; the attribute is the initial state and\nthe form's reset target.\n\nType: `boolean`\n\nDefault: `false`\n\nReflected to the attribute."
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. As an attribute it is the\ninitial value and the form's reset target.\n\nType: `string`\n\nDefault: `'#000000'`\n\nReflected to the attribute."
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`. As an attribute it is the initial choice (without it, an option marked\n`selected` is); read the `value` property for the current one.\n\nType: `string`\n\nDefault: `''`"
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
  {
@@ -2157,7 +2164,7 @@
2157
2164
  "name": "value",
2158
2165
  "description": {
2159
2166
  "kind": "markdown",
2160
- "value": "The committed text. As an attribute it is the initial value and the form's reset target. Text still\nbeing edited is not part of it until committed.\n\nType: `string`\n\nDefault: `''`\n\nReflected to the attribute."
2167
+ "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
2168
  }
2162
2169
  },
2163
2170
  {
@@ -2423,7 +2430,7 @@
2423
2430
  "name": "value",
2424
2431
  "description": {
2425
2432
  "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`"
2433
+ "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
2434
  }
2428
2435
  },
2429
2436
  {
@@ -2840,7 +2847,7 @@
2840
2847
  "name": "value",
2841
2848
  "description": {
2842
2849
  "kind": "markdown",
2843
- "value": "The text in the field. As an attribute it is the initial value (and the form's reset target); read\nor set the `value` property for the current text.\n\nType: `string`\n\nDefault: `''`"
2850
+ "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
2851
  }
2845
2852
  },
2846
2853
  {
@@ -3340,6 +3347,13 @@
3340
3347
  },
3341
3348
  "valueSet": "v"
3342
3349
  },
3350
+ {
3351
+ "name": "value",
3352
+ "description": {
3353
+ "kind": "markdown",
3354
+ "value": "Select exactly the options whose value is listed. Does not fire void-change.\n\nType: `string[]`\n\nDefault: `[]`\n\nReflected to the attribute."
3355
+ }
3356
+ },
3343
3357
  {
3344
3358
  "name": "required",
3345
3359
  "description": {
@@ -3489,7 +3503,7 @@
3489
3503
  "name": "value",
3490
3504
  "description": {
3491
3505
  "kind": "markdown",
3492
- "value": "The number, or `null` while the field is empty (the default, and after the user clears it). As an\nattribute it is the initial value; 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."
3506
+ "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
3507
  }
3494
3508
  },
3495
3509
  {
@@ -3835,7 +3849,7 @@
3835
3849
  "name": "value",
3836
3850
  "description": {
3837
3851
  "kind": "markdown",
3838
- "value": "The characters entered so far, without separators. As an attribute it is the initial value (and the\nform's reset target); read the `value` property for the current one.\n\nType: `string`\n\nDefault: `''`"
3852
+ "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
3853
  }
3840
3854
  },
3841
3855
  {
@@ -4236,7 +4250,7 @@
4236
4250
  "name": "value",
4237
4251
  "description": {
4238
4252
  "kind": "markdown",
4239
- "value": "`value` of the selected radio. Set it to choose one; it is the initial selection and the form's\nreset target.\n\nType: `string`\n\nDefault: `''`"
4253
+ "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
4254
  }
4241
4255
  },
4242
4256
  {
@@ -4331,7 +4345,7 @@
4331
4345
  "name": "value",
4332
4346
  "description": {
4333
4347
  "kind": "markdown",
4334
- "value": "`value` of the selected item. Selection follows focus, so each arrow key changes it and fires\n`void-change`. As an attribute it is the initial value and the form's reset target.\n\nType: `string`\n\nDefault: `''`\n\nReflected to the attribute."
4348
+ "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
4349
  }
4336
4350
  },
4337
4351
  {
@@ -4470,7 +4484,7 @@
4470
4484
  "name": "value",
4471
4485
  "description": {
4472
4486
  "kind": "markdown",
4473
- "value": "`value` of the chosen option (the native select's value). As an attribute it is the initial choice, applied\nonce an option with that value exists; without it the options' own `selected` decide, as in plain HTML.\n\nType: `string`\n\nDefault: `''`"
4487
+ "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
4488
  }
4475
4489
  }
4476
4490
  ]
@@ -4559,7 +4573,7 @@
4559
4573
  "name": "value",
4560
4574
  "description": {
4561
4575
  "kind": "markdown",
4562
- "value": "Current position, between `min` and `max`. Defaults to 50. As an attribute it is the initial value;\nread the `value` property for the current one.\n\nType: `number`\n\nDefault: `50`"
4576
+ "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
4577
  }
4564
4578
  },
4565
4579
  {
@@ -4855,7 +4869,7 @@
4855
4869
  "name": "checked",
4856
4870
  "description": {
4857
4871
  "kind": "markdown",
4858
- "value": "Whether the switch is on. The attribute is the initial state and the form's reset target.\n\nType: `boolean`\n\nDefault: `false`\n\nReflected to the attribute."
4872
+ "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
4873
  },
4860
4874
  "valueSet": "v"
4861
4875
  },
@@ -5228,7 +5242,7 @@
5228
5242
  "name": "value",
5229
5243
  "description": {
5230
5244
  "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: `[]`"
5245
+ "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
5246
  }
5233
5247
  },
5234
5248
  {
@@ -5363,7 +5377,7 @@
5363
5377
  "name": "value",
5364
5378
  "description": {
5365
5379
  "kind": "markdown",
5366
- "value": "The text in the box. As an attribute it is the initial value (and the form's reset target); read or\nset the `value` property for the current text.\n\nType: `string`\n\nDefault: `''`"
5380
+ "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
5381
  }
5368
5382
  },
5369
5383
  {
@@ -5729,7 +5743,7 @@
5729
5743
  "name": "value",
5730
5744
  "description": {
5731
5745
  "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: `''`"
5746
+ "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
5747
  }
5734
5748
  },
5735
5749
  {
@@ -5819,7 +5833,7 @@
5819
5833
  "name": "value",
5820
5834
  "description": {
5821
5835
  "kind": "markdown",
5822
- "value": "Comma-separated `value`s of the pressed toggles (`bold,italic`), or the single pressed value. As an\nattribute it is the initial state and the form's reset target. 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."
5836
+ "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
5837
  }
5824
5838
  },
5825
5839
  {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
3
3
  "name": "@voidable/ui",
4
- "version": "0.8.1",
4
+ "version": "0.9.0",
5
5
  "js-types-syntax": "typescript",
6
6
  "description-markup": "markdown",
7
7
  "contributions": {
@@ -106,7 +106,7 @@
106
106
  "attributes": [
107
107
  {
108
108
  "name": "value",
109
- "description": "The text in the field. As an attribute it is the initial value; read or set the `value` property for\nthe current text.",
109
+ "description": "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.",
110
110
  "default": "''",
111
111
  "value": {
112
112
  "kind": "plain",
@@ -307,7 +307,7 @@
307
307
  "properties": [
308
308
  {
309
309
  "name": "value",
310
- "description": "The text in the field. As an attribute it is the initial value; read or set the `value` property for\nthe current text.",
310
+ "description": "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.",
311
311
  "type": "string",
312
312
  "default": "''"
313
313
  },
@@ -1416,7 +1416,7 @@
1416
1416
  "attributes": [
1417
1417
  {
1418
1418
  "name": "checked",
1419
- "description": "Whether the box is checked. Updated when the user toggles it; the attribute is the initial state and\nthe form's reset target.",
1419
+ "description": "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.",
1420
1420
  "default": "false",
1421
1421
  "value": {
1422
1422
  "kind": "no-value",
@@ -1500,7 +1500,7 @@
1500
1500
  "properties": [
1501
1501
  {
1502
1502
  "name": "checked",
1503
- "description": "Whether the box is checked. Updated when the user toggles it; the attribute is the initial state and\nthe form's reset target.",
1503
+ "description": "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.",
1504
1504
  "type": "boolean",
1505
1505
  "default": "false"
1506
1506
  },
@@ -1608,6 +1608,15 @@
1608
1608
  "type": "boolean"
1609
1609
  }
1610
1610
  },
1611
+ {
1612
+ "name": "value",
1613
+ "description": "Check exactly the child checkboxes whose value is listed. Does not fire void-change.",
1614
+ "default": "[]",
1615
+ "value": {
1616
+ "kind": "plain",
1617
+ "type": "string[]"
1618
+ }
1619
+ },
1611
1620
  {
1612
1621
  "name": "form",
1613
1622
  "description": "`id` of a `<form>` elsewhere in the page that this control belongs to, as on a native control.\nWithout it the control belongs to the form it sits inside.",
@@ -1653,7 +1662,8 @@
1653
1662
  {
1654
1663
  "name": "value",
1655
1664
  "description": "Check exactly the child checkboxes whose value is listed. Does not fire void-change.",
1656
- "type": "string[]"
1665
+ "type": "string[]",
1666
+ "default": "[]"
1657
1667
  }
1658
1668
  ],
1659
1669
  "events": [
@@ -1748,7 +1758,7 @@
1748
1758
  "attributes": [
1749
1759
  {
1750
1760
  "name": "value",
1751
- "description": "Selected colour as a hex string (six digits after the hash). Defaults to black. As an attribute it is the\ninitial value and the form's reset target.",
1761
+ "description": "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.",
1752
1762
  "default": "'#000000'",
1753
1763
  "value": {
1754
1764
  "kind": "plain",
@@ -1832,7 +1842,7 @@
1832
1842
  "properties": [
1833
1843
  {
1834
1844
  "name": "value",
1835
- "description": "Selected colour as a hex string (six digits after the hash). Defaults to black. As an attribute it is the\ninitial value and the form's reset target.",
1845
+ "description": "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.",
1836
1846
  "type": "string",
1837
1847
  "default": "'#000000'"
1838
1848
  },
@@ -1903,7 +1913,7 @@
1903
1913
  "attributes": [
1904
1914
  {
1905
1915
  "name": "value",
1906
- "description": "`value` of the chosen `void-option`. As an attribute it is the initial choice (without it, an option marked\n`selected` is); read the `value` property for the current one.",
1916
+ "description": "`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.",
1907
1917
  "default": "''",
1908
1918
  "value": {
1909
1919
  "kind": "plain",
@@ -1978,7 +1988,7 @@
1978
1988
  "properties": [
1979
1989
  {
1980
1990
  "name": "value",
1981
- "description": "`value` of the chosen `void-option`. As an attribute it is the initial choice (without it, an option marked\n`selected` is); read the `value` property for the current one.",
1991
+ "description": "`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.",
1982
1992
  "type": "string",
1983
1993
  "default": "''"
1984
1994
  },
@@ -2071,7 +2081,7 @@
2071
2081
  "attributes": [
2072
2082
  {
2073
2083
  "name": "value",
2074
- "description": "The draft text. It is cleared after each send.",
2084
+ "description": "The draft text, reflected to the `value` attribute as it changes. It is cleared after each send.",
2075
2085
  "default": "''",
2076
2086
  "value": {
2077
2087
  "kind": "plain",
@@ -2110,7 +2120,7 @@
2110
2120
  "properties": [
2111
2121
  {
2112
2122
  "name": "value",
2113
- "description": "The draft text. It is cleared after each send.",
2123
+ "description": "The draft text, reflected to the `value` attribute as it changes. It is cleared after each send.",
2114
2124
  "type": "string",
2115
2125
  "default": "''"
2116
2126
  },
@@ -2979,7 +2989,7 @@
2979
2989
  "attributes": [
2980
2990
  {
2981
2991
  "name": "value",
2982
- "description": "The committed text. As an attribute it is the initial value and the form's reset target. Text still\nbeing edited is not part of it until committed.",
2992
+ "description": "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.",
2983
2993
  "default": "''",
2984
2994
  "value": {
2985
2995
  "kind": "plain",
@@ -3054,7 +3064,7 @@
3054
3064
  "properties": [
3055
3065
  {
3056
3066
  "name": "value",
3057
- "description": "The committed text. As an attribute it is the initial value and the form's reset target. Text still\nbeing edited is not part of it until committed.",
3067
+ "description": "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.",
3058
3068
  "type": "string",
3059
3069
  "default": "''"
3060
3070
  },
@@ -4005,7 +4015,7 @@
4005
4015
  },
4006
4016
  {
4007
4017
  "name": "value",
4008
- "description": "The text in the field. As an attribute it is the initial value (and the form's reset target); read\nor set the `value` property for the current text.",
4018
+ "description": "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.",
4009
4019
  "default": "''",
4010
4020
  "value": {
4011
4021
  "kind": "plain",
@@ -4167,7 +4177,7 @@
4167
4177
  },
4168
4178
  {
4169
4179
  "name": "value",
4170
- "description": "The text in the field. As an attribute it is the initial value (and the form's reset target); read\nor set the `value` property for the current text.",
4180
+ "description": "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.",
4171
4181
  "type": "string",
4172
4182
  "default": "''"
4173
4183
  },
@@ -4701,6 +4711,15 @@
4701
4711
  "type": "boolean"
4702
4712
  }
4703
4713
  },
4714
+ {
4715
+ "name": "value",
4716
+ "description": "Select exactly the options whose value is listed. Does not fire void-change.",
4717
+ "default": "[]",
4718
+ "value": {
4719
+ "kind": "plain",
4720
+ "type": "string[]"
4721
+ }
4722
+ },
4704
4723
  {
4705
4724
  "name": "required",
4706
4725
  "description": "The control must have a value before its form can be submitted. An empty control is invalid\n(`valueMissing`) and the browser reports it, as for a native field.",
@@ -4752,7 +4771,8 @@
4752
4771
  {
4753
4772
  "name": "value",
4754
4773
  "description": "Select exactly the options whose value is listed. Does not fire void-change.",
4755
- "type": "string[]"
4774
+ "type": "string[]",
4775
+ "default": "[]"
4756
4776
  },
4757
4777
  {
4758
4778
  "name": "required",
@@ -4993,7 +5013,7 @@
4993
5013
  "attributes": [
4994
5014
  {
4995
5015
  "name": "value",
4996
- "description": "The number, or `null` while the field is empty (the default, and after the user clears it). As an\nattribute it is the initial value; 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.",
5016
+ "description": "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.",
4997
5017
  "default": "null",
4998
5018
  "value": {
4999
5019
  "kind": "plain",
@@ -5140,7 +5160,7 @@
5140
5160
  "properties": [
5141
5161
  {
5142
5162
  "name": "value",
5143
- "description": "The number, or `null` while the field is empty (the default, and after the user clears it). As an\nattribute it is the initial value; 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.",
5163
+ "description": "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.",
5144
5164
  "type": "number | null",
5145
5165
  "default": "null"
5146
5166
  },
@@ -5526,7 +5546,7 @@
5526
5546
  },
5527
5547
  {
5528
5548
  "name": "value",
5529
- "description": "The characters entered so far, without separators. As an attribute it is the initial value (and the\nform's reset target); read the `value` property for the current one.",
5549
+ "description": "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.",
5530
5550
  "default": "''",
5531
5551
  "value": {
5532
5552
  "kind": "plain",
@@ -5622,7 +5642,7 @@
5622
5642
  },
5623
5643
  {
5624
5644
  "name": "value",
5625
- "description": "The characters entered so far, without separators. As an attribute it is the initial value (and the\nform's reset target); read the `value` property for the current one.",
5645
+ "description": "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.",
5626
5646
  "type": "string",
5627
5647
  "default": "''"
5628
5648
  },
@@ -6041,7 +6061,7 @@
6041
6061
  },
6042
6062
  {
6043
6063
  "name": "value",
6044
- "description": "`value` of the selected radio. Set it to choose one; it is the initial selection and the form's\nreset target.",
6064
+ "description": "`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.",
6045
6065
  "default": "''",
6046
6066
  "value": {
6047
6067
  "kind": "plain",
@@ -6104,7 +6124,7 @@
6104
6124
  },
6105
6125
  {
6106
6126
  "name": "value",
6107
- "description": "`value` of the selected radio. Set it to choose one; it is the initial selection and the form's\nreset target.",
6127
+ "description": "`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.",
6108
6128
  "type": "string",
6109
6129
  "default": "''"
6110
6130
  },
@@ -6196,7 +6216,7 @@
6196
6216
  "attributes": [
6197
6217
  {
6198
6218
  "name": "value",
6199
- "description": "`value` of the selected item. Selection follows focus, so each arrow key changes it and fires\n`void-change`. As an attribute it is the initial value and the form's reset target.",
6219
+ "description": "`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.",
6200
6220
  "default": "''",
6201
6221
  "value": {
6202
6222
  "kind": "plain",
@@ -6253,7 +6273,7 @@
6253
6273
  "properties": [
6254
6274
  {
6255
6275
  "name": "value",
6256
- "description": "`value` of the selected item. Selection follows focus, so each arrow key changes it and fires\n`void-change`. As an attribute it is the initial value and the form's reset target.",
6276
+ "description": "`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.",
6257
6277
  "type": "string",
6258
6278
  "default": "''"
6259
6279
  },
@@ -6369,7 +6389,7 @@
6369
6389
  },
6370
6390
  {
6371
6391
  "name": "value",
6372
- "description": "`value` of the chosen option (the native select's value). As an attribute it is the initial choice, applied\nonce an option with that value exists; without it the options' own `selected` decide, as in plain HTML.",
6392
+ "description": "`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.",
6373
6393
  "default": "''",
6374
6394
  "value": {
6375
6395
  "kind": "plain",
@@ -6393,7 +6413,7 @@
6393
6413
  },
6394
6414
  {
6395
6415
  "name": "value",
6396
- "description": "`value` of the chosen option (the native select's value). As an attribute it is the initial choice, applied\nonce an option with that value exists; without it the options' own `selected` decide, as in plain HTML.",
6416
+ "description": "`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.",
6397
6417
  "type": "string",
6398
6418
  "default": "''"
6399
6419
  }
@@ -6533,7 +6553,7 @@
6533
6553
  "attributes": [
6534
6554
  {
6535
6555
  "name": "value",
6536
- "description": "Current position, between `min` and `max`. Defaults to 50. As an attribute it is the initial value;\nread the `value` property for the current one.",
6556
+ "description": "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.",
6537
6557
  "default": "50",
6538
6558
  "value": {
6539
6559
  "kind": "plain",
@@ -6617,7 +6637,7 @@
6617
6637
  "properties": [
6618
6638
  {
6619
6639
  "name": "value",
6620
- "description": "Current position, between `min` and `max`. Defaults to 50. As an attribute it is the initial value;\nread the `value` property for the current one.",
6640
+ "description": "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.",
6621
6641
  "type": "number",
6622
6642
  "default": "50"
6623
6643
  },
@@ -6926,7 +6946,7 @@
6926
6946
  "attributes": [
6927
6947
  {
6928
6948
  "name": "checked",
6929
- "description": "Whether the switch is on. The attribute is the initial state and the form's reset target.",
6949
+ "description": "Whether the switch is on. Reflected to the attribute as it changes; the form's reset target stays the state it started with.",
6930
6950
  "default": "false",
6931
6951
  "value": {
6932
6952
  "kind": "no-value",
@@ -6992,7 +7012,7 @@
6992
7012
  "properties": [
6993
7013
  {
6994
7014
  "name": "checked",
6995
- "description": "Whether the switch is on. The attribute is the initial state and the form's reset target.",
7015
+ "description": "Whether the switch is on. Reflected to the attribute as it changes; the form's reset target stays the state it started with.",
6996
7016
  "type": "boolean",
6997
7017
  "default": "false"
6998
7018
  },
@@ -7431,7 +7451,7 @@
7431
7451
  "attributes": [
7432
7452
  {
7433
7453
  "name": "value",
7434
- "description": "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.",
7454
+ "description": "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.",
7435
7455
  "default": "[]",
7436
7456
  "value": {
7437
7457
  "kind": "plain",
@@ -7533,7 +7553,7 @@
7533
7553
  "properties": [
7534
7554
  {
7535
7555
  "name": "value",
7536
- "description": "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.",
7556
+ "description": "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.",
7537
7557
  "type": "TagValue[]",
7538
7558
  "default": "[]"
7539
7559
  },
@@ -7616,7 +7636,7 @@
7616
7636
  "attributes": [
7617
7637
  {
7618
7638
  "name": "value",
7619
- "description": "The text in the box. As an attribute it is the initial value (and the form's reset target); read or\nset the `value` property for the current text.",
7639
+ "description": "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.",
7620
7640
  "default": "''",
7621
7641
  "value": {
7622
7642
  "kind": "plain",
@@ -7781,7 +7801,7 @@
7781
7801
  "properties": [
7782
7802
  {
7783
7803
  "name": "value",
7784
- "description": "The text in the box. As an attribute it is the initial value (and the form's reset target); read or\nset the `value` property for the current text.",
7804
+ "description": "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.",
7785
7805
  "type": "string",
7786
7806
  "default": "''"
7787
7807
  },
@@ -8125,7 +8145,7 @@
8125
8145
  "attributes": [
8126
8146
  {
8127
8147
  "name": "value",
8128
- "description": "Comma-separated `value`s of the pressed toggles (`bold,italic`), or the single pressed value. As an\nattribute it is the initial state and the form's reset target. 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`.",
8148
+ "description": "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`.",
8129
8149
  "default": "''",
8130
8150
  "value": {
8131
8151
  "kind": "plain",
@@ -8200,7 +8220,7 @@
8200
8220
  "properties": [
8201
8221
  {
8202
8222
  "name": "value",
8203
- "description": "Comma-separated `value`s of the pressed toggles (`bold,italic`), or the single pressed value. As an\nattribute it is the initial state and the form's reset target. 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`.",
8223
+ "description": "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`.",
8204
8224
  "type": "string",
8205
8225
  "default": "''"
8206
8226
  },