@voidable/ui 0.8.0 → 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.
- package/README.md +8 -0
- package/dist/chunks/{modal-D_YVy2vg.js → modal-hivQ4YoU.js} +1 -1
- package/dist/chunks/{parts-D30c8OoG.js → parts-CMQQop0D.js} +4 -1
- package/dist/chunks/secret-value-CmTtVkMg.js +14 -0
- package/dist/chunks/value-list-CH6GjYXM.js +28 -0
- package/dist/components/accordion.js +1 -1
- package/dist/components/action-input.d.ts +6 -2
- package/dist/components/action-input.js +55 -45
- package/dist/components/alert.js +1 -1
- package/dist/components/banner.js +1 -1
- package/dist/components/breadcrumbs.js +1 -1
- package/dist/components/carousel.js +1 -1
- package/dist/components/checkbox-group.d.ts +10 -0
- package/dist/components/checkbox-group.js +30 -18
- package/dist/components/checkbox.d.ts +2 -2
- package/dist/components/collapsible.js +1 -1
- package/dist/components/color-picker.d.ts +2 -2
- package/dist/components/combobox.d.ts +4 -2
- package/dist/components/combobox.js +8 -5
- package/dist/components/compose-input.d.ts +1 -1
- package/dist/components/compose-input.js +4 -1
- package/dist/components/dialog.js +1 -1
- package/dist/components/drawer.js +1 -1
- package/dist/components/dropdown-menu.js +1 -1
- package/dist/components/editable.d.ts +1 -1
- package/dist/components/error-fallback.js +1 -1
- package/dist/components/gauge.js +4 -1
- package/dist/components/hover-card.js +1 -1
- package/dist/components/input.d.ts +6 -2
- package/dist/components/input.js +43 -33
- package/dist/components/menu.js +1 -1
- package/dist/components/multiselect.d.ts +9 -0
- package/dist/components/multiselect.js +47 -38
- package/dist/components/nav-menu.js +1 -1
- package/dist/components/number-input.d.ts +2 -2
- package/dist/components/panel.js +1 -1
- package/dist/components/pin-input.d.ts +6 -2
- package/dist/components/pin-input.js +27 -17
- package/dist/components/popover.js +1 -1
- package/dist/components/radio-group.d.ts +2 -2
- package/dist/components/radio-group.js +4 -1
- package/dist/components/segmented-control.d.ts +1 -1
- package/dist/components/select.d.ts +67 -16
- package/dist/components/select.js +172 -47
- package/dist/components/slider.d.ts +2 -2
- package/dist/components/slider.js +4 -1
- package/dist/components/switch.d.ts +1 -1
- package/dist/components/tabs.js +1 -1
- package/dist/components/tags-input.d.ts +1 -1
- package/dist/components/tags-input.js +22 -18
- package/dist/components/textarea.d.ts +2 -2
- package/dist/components/textarea.js +4 -1
- package/dist/components/toast.js +1 -1
- package/dist/components/toggle-group.d.ts +2 -2
- package/dist/components/toggle.js +4 -1
- package/dist/components/tooltip.js +1 -1
- package/dist/components.json +3 -3
- package/dist/custom-elements.json +85 -49
- package/dist/dev/types.d.ts +2 -3
- package/dist/dev.js +50 -48
- package/dist/llms.txt +125 -0
- package/dist/parts.d.ts +3 -1
- 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 +33 -19
- package/dist/web-types.json +57 -37
- package/package.json +5 -3
|
@@ -1515,8 +1515,9 @@
|
|
|
1515
1515
|
"text": "string"
|
|
1516
1516
|
},
|
|
1517
1517
|
"default": "''",
|
|
1518
|
-
"description": "The text in the field.
|
|
1519
|
-
"attribute": "value"
|
|
1518
|
+
"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.",
|
|
1519
|
+
"attribute": "value",
|
|
1520
|
+
"reflects": true
|
|
1520
1521
|
},
|
|
1521
1522
|
{
|
|
1522
1523
|
"kind": "field",
|
|
@@ -1948,7 +1949,7 @@
|
|
|
1948
1949
|
"text": "string"
|
|
1949
1950
|
},
|
|
1950
1951
|
"default": "''",
|
|
1951
|
-
"description": "The text in the field.
|
|
1952
|
+
"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.",
|
|
1952
1953
|
"fieldName": "value"
|
|
1953
1954
|
},
|
|
1954
1955
|
{
|
|
@@ -7028,7 +7029,10 @@
|
|
|
7028
7029
|
"type": {
|
|
7029
7030
|
"text": "string[]"
|
|
7030
7031
|
},
|
|
7031
|
-
"description": "Check exactly the child checkboxes whose value is listed. Does not fire void-change."
|
|
7032
|
+
"description": "Check exactly the child checkboxes whose value is listed. Does not fire void-change.",
|
|
7033
|
+
"default": "[]",
|
|
7034
|
+
"attribute": "value",
|
|
7035
|
+
"reflects": true
|
|
7032
7036
|
},
|
|
7033
7037
|
{
|
|
7034
7038
|
"kind": "field",
|
|
@@ -7311,6 +7315,15 @@
|
|
|
7311
7315
|
"description": "Disables every checkbox in the group (like a fieldset).",
|
|
7312
7316
|
"fieldName": "disabled"
|
|
7313
7317
|
},
|
|
7318
|
+
{
|
|
7319
|
+
"name": "value",
|
|
7320
|
+
"type": {
|
|
7321
|
+
"text": "string[]"
|
|
7322
|
+
},
|
|
7323
|
+
"description": "Check exactly the child checkboxes whose value is listed. Does not fire void-change.",
|
|
7324
|
+
"default": "[]",
|
|
7325
|
+
"fieldName": "value"
|
|
7326
|
+
},
|
|
7314
7327
|
{
|
|
7315
7328
|
"name": "form",
|
|
7316
7329
|
"type": {
|
|
@@ -7391,7 +7404,7 @@
|
|
|
7391
7404
|
"text": "boolean"
|
|
7392
7405
|
},
|
|
7393
7406
|
"default": "false",
|
|
7394
|
-
"description": "Whether the box is checked.
|
|
7407
|
+
"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.",
|
|
7395
7408
|
"attribute": "checked",
|
|
7396
7409
|
"reflects": true
|
|
7397
7410
|
},
|
|
@@ -7714,7 +7727,7 @@
|
|
|
7714
7727
|
"text": "boolean"
|
|
7715
7728
|
},
|
|
7716
7729
|
"default": "false",
|
|
7717
|
-
"description": "Whether the box is checked.
|
|
7730
|
+
"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.",
|
|
7718
7731
|
"fieldName": "checked"
|
|
7719
7732
|
},
|
|
7720
7733
|
{
|
|
@@ -8215,7 +8228,7 @@
|
|
|
8215
8228
|
"text": "string"
|
|
8216
8229
|
},
|
|
8217
8230
|
"default": "'#000000'",
|
|
8218
|
-
"description": "Selected colour as a hex string (six digits after the hash). Defaults to black.
|
|
8231
|
+
"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.",
|
|
8219
8232
|
"attribute": "value",
|
|
8220
8233
|
"reflects": true
|
|
8221
8234
|
},
|
|
@@ -8613,7 +8626,7 @@
|
|
|
8613
8626
|
"text": "string"
|
|
8614
8627
|
},
|
|
8615
8628
|
"default": "'#000000'",
|
|
8616
|
-
"description": "Selected colour as a hex string (six digits after the hash). Defaults to black.
|
|
8629
|
+
"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.",
|
|
8617
8630
|
"fieldName": "value"
|
|
8618
8631
|
},
|
|
8619
8632
|
{
|
|
@@ -8794,8 +8807,9 @@
|
|
|
8794
8807
|
"text": "string"
|
|
8795
8808
|
},
|
|
8796
8809
|
"default": "''",
|
|
8797
|
-
"description": "`value` of the chosen `void-option`.
|
|
8798
|
-
"attribute": "value"
|
|
8810
|
+
"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.",
|
|
8811
|
+
"attribute": "value",
|
|
8812
|
+
"reflects": true
|
|
8799
8813
|
},
|
|
8800
8814
|
{
|
|
8801
8815
|
"kind": "field",
|
|
@@ -9176,7 +9190,7 @@
|
|
|
9176
9190
|
"text": "string"
|
|
9177
9191
|
},
|
|
9178
9192
|
"default": "''",
|
|
9179
|
-
"description": "`value` of the chosen `void-option`.
|
|
9193
|
+
"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.",
|
|
9180
9194
|
"fieldName": "value"
|
|
9181
9195
|
},
|
|
9182
9196
|
{
|
|
@@ -9370,8 +9384,9 @@
|
|
|
9370
9384
|
"text": "string"
|
|
9371
9385
|
},
|
|
9372
9386
|
"default": "''",
|
|
9373
|
-
"description": "The draft text. It is cleared after each send.",
|
|
9374
|
-
"attribute": "value"
|
|
9387
|
+
"description": "The draft text, reflected to the `value` attribute as it changes. It is cleared after each send.",
|
|
9388
|
+
"attribute": "value",
|
|
9389
|
+
"reflects": true
|
|
9375
9390
|
},
|
|
9376
9391
|
{
|
|
9377
9392
|
"kind": "field",
|
|
@@ -9603,7 +9618,7 @@
|
|
|
9603
9618
|
"text": "string"
|
|
9604
9619
|
},
|
|
9605
9620
|
"default": "''",
|
|
9606
|
-
"description": "The draft text. It is cleared after each send.",
|
|
9621
|
+
"description": "The draft text, reflected to the `value` attribute as it changes. It is cleared after each send.",
|
|
9607
9622
|
"fieldName": "value"
|
|
9608
9623
|
},
|
|
9609
9624
|
{
|
|
@@ -11969,7 +11984,7 @@
|
|
|
11969
11984
|
"text": "string"
|
|
11970
11985
|
},
|
|
11971
11986
|
"default": "''",
|
|
11972
|
-
"description": "The committed text.
|
|
11987
|
+
"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.",
|
|
11973
11988
|
"attribute": "value",
|
|
11974
11989
|
"reflects": true
|
|
11975
11990
|
},
|
|
@@ -12338,7 +12353,7 @@
|
|
|
12338
12353
|
"text": "string"
|
|
12339
12354
|
},
|
|
12340
12355
|
"default": "''",
|
|
12341
|
-
"description": "The committed text.
|
|
12356
|
+
"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.",
|
|
12342
12357
|
"fieldName": "value"
|
|
12343
12358
|
},
|
|
12344
12359
|
{
|
|
@@ -13683,7 +13698,8 @@
|
|
|
13683
13698
|
},
|
|
13684
13699
|
"default": "0",
|
|
13685
13700
|
"description": "The reading, between `min` and `max`, for a single-value gauge. For a gauge split into segments set\n`data.segments` instead.",
|
|
13686
|
-
"attribute": "value"
|
|
13701
|
+
"attribute": "value",
|
|
13702
|
+
"reflects": true
|
|
13687
13703
|
},
|
|
13688
13704
|
{
|
|
13689
13705
|
"kind": "field",
|
|
@@ -15378,8 +15394,9 @@
|
|
|
15378
15394
|
"text": "string"
|
|
15379
15395
|
},
|
|
15380
15396
|
"default": "''",
|
|
15381
|
-
"description": "The text in the field.
|
|
15382
|
-
"attribute": "value"
|
|
15397
|
+
"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.",
|
|
15398
|
+
"attribute": "value",
|
|
15399
|
+
"reflects": true
|
|
15383
15400
|
},
|
|
15384
15401
|
{
|
|
15385
15402
|
"kind": "field",
|
|
@@ -15760,7 +15777,7 @@
|
|
|
15760
15777
|
"text": "string"
|
|
15761
15778
|
},
|
|
15762
15779
|
"default": "''",
|
|
15763
|
-
"description": "The text in the field.
|
|
15780
|
+
"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.",
|
|
15764
15781
|
"fieldName": "value"
|
|
15765
15782
|
},
|
|
15766
15783
|
{
|
|
@@ -18260,7 +18277,10 @@
|
|
|
18260
18277
|
"type": {
|
|
18261
18278
|
"text": "string[]"
|
|
18262
18279
|
},
|
|
18263
|
-
"description": "Select exactly the options whose value is listed. Does not fire void-change."
|
|
18280
|
+
"description": "Select exactly the options whose value is listed. Does not fire void-change.",
|
|
18281
|
+
"default": "[]",
|
|
18282
|
+
"attribute": "value",
|
|
18283
|
+
"reflects": true
|
|
18264
18284
|
},
|
|
18265
18285
|
{
|
|
18266
18286
|
"kind": "field",
|
|
@@ -18625,6 +18645,15 @@
|
|
|
18625
18645
|
"description": "Whether the option list is showing. Reflected, so it can be read (and set) from markup.",
|
|
18626
18646
|
"fieldName": "open"
|
|
18627
18647
|
},
|
|
18648
|
+
{
|
|
18649
|
+
"name": "value",
|
|
18650
|
+
"type": {
|
|
18651
|
+
"text": "string[]"
|
|
18652
|
+
},
|
|
18653
|
+
"description": "Select exactly the options whose value is listed. Does not fire void-change.",
|
|
18654
|
+
"default": "[]",
|
|
18655
|
+
"fieldName": "value"
|
|
18656
|
+
},
|
|
18628
18657
|
{
|
|
18629
18658
|
"name": "required",
|
|
18630
18659
|
"type": {
|
|
@@ -19732,7 +19761,7 @@
|
|
|
19732
19761
|
"text": "number | null"
|
|
19733
19762
|
},
|
|
19734
19763
|
"default": "null",
|
|
19735
|
-
"description": "The number, or `null` while the field is empty (the default, and after the user clears it).
|
|
19764
|
+
"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.",
|
|
19736
19765
|
"attribute": "value",
|
|
19737
19766
|
"reflects": true
|
|
19738
19767
|
},
|
|
@@ -20176,7 +20205,7 @@
|
|
|
20176
20205
|
"text": "number | null"
|
|
20177
20206
|
},
|
|
20178
20207
|
"default": "null",
|
|
20179
|
-
"description": "The number, or `null` while the field is empty (the default, and after the user clears it).
|
|
20208
|
+
"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.",
|
|
20180
20209
|
"fieldName": "value"
|
|
20181
20210
|
},
|
|
20182
20211
|
{
|
|
@@ -21105,8 +21134,9 @@
|
|
|
21105
21134
|
"text": "string"
|
|
21106
21135
|
},
|
|
21107
21136
|
"default": "''",
|
|
21108
|
-
"description": "The characters entered so far, without separators
|
|
21109
|
-
"attribute": "value"
|
|
21137
|
+
"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.",
|
|
21138
|
+
"attribute": "value",
|
|
21139
|
+
"reflects": true
|
|
21110
21140
|
},
|
|
21111
21141
|
{
|
|
21112
21142
|
"kind": "field",
|
|
@@ -21517,7 +21547,7 @@
|
|
|
21517
21547
|
"text": "string"
|
|
21518
21548
|
},
|
|
21519
21549
|
"default": "''",
|
|
21520
|
-
"description": "The characters entered so far, without separators
|
|
21550
|
+
"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.",
|
|
21521
21551
|
"fieldName": "value"
|
|
21522
21552
|
},
|
|
21523
21553
|
{
|
|
@@ -22419,8 +22449,9 @@
|
|
|
22419
22449
|
"text": "string"
|
|
22420
22450
|
},
|
|
22421
22451
|
"default": "''",
|
|
22422
|
-
"description": "`value` of the selected radio. Set it to choose one; it
|
|
22423
|
-
"attribute": "value"
|
|
22452
|
+
"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.",
|
|
22453
|
+
"attribute": "value",
|
|
22454
|
+
"reflects": true
|
|
22424
22455
|
},
|
|
22425
22456
|
{
|
|
22426
22457
|
"kind": "field",
|
|
@@ -22717,7 +22748,7 @@
|
|
|
22717
22748
|
"text": "string"
|
|
22718
22749
|
},
|
|
22719
22750
|
"default": "''",
|
|
22720
|
-
"description": "`value` of the selected radio. Set it to choose one; it
|
|
22751
|
+
"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.",
|
|
22721
22752
|
"fieldName": "value"
|
|
22722
22753
|
},
|
|
22723
22754
|
{
|
|
@@ -23836,7 +23867,7 @@
|
|
|
23836
23867
|
"text": "string"
|
|
23837
23868
|
},
|
|
23838
23869
|
"default": "''",
|
|
23839
|
-
"description": "`value` of the selected item. Selection follows focus, so each arrow key changes it and fires\n`void-change`.
|
|
23870
|
+
"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.",
|
|
23840
23871
|
"attribute": "value",
|
|
23841
23872
|
"reflects": true
|
|
23842
23873
|
},
|
|
@@ -24197,7 +24228,7 @@
|
|
|
24197
24228
|
"text": "string"
|
|
24198
24229
|
},
|
|
24199
24230
|
"default": "''",
|
|
24200
|
-
"description": "`value` of the selected item. Selection follows focus, so each arrow key changes it and fires\n`void-change`.
|
|
24231
|
+
"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.",
|
|
24201
24232
|
"fieldName": "value"
|
|
24202
24233
|
},
|
|
24203
24234
|
{
|
|
@@ -24363,9 +24394,10 @@
|
|
|
24363
24394
|
"type": {
|
|
24364
24395
|
"text": "string"
|
|
24365
24396
|
},
|
|
24366
|
-
"description": "`value` of the chosen option (the native select's value)
|
|
24397
|
+
"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.",
|
|
24367
24398
|
"default": "''",
|
|
24368
|
-
"attribute": "value"
|
|
24399
|
+
"attribute": "value",
|
|
24400
|
+
"reflects": true
|
|
24369
24401
|
},
|
|
24370
24402
|
{
|
|
24371
24403
|
"kind": "method",
|
|
@@ -24384,7 +24416,7 @@
|
|
|
24384
24416
|
}
|
|
24385
24417
|
}
|
|
24386
24418
|
],
|
|
24387
|
-
"description": "
|
|
24419
|
+
"description": "The decision is taken here, from the server's markup, before the morph touches anything: the options\nit marks `selected`, compared with its last render. A `value` attribute the server changed arrives\nduring the morph itself (the morph writes it, which sets `value`) and so wins over them.",
|
|
24388
24420
|
"inheritedFrom": {
|
|
24389
24421
|
"name": "VoidElement",
|
|
24390
24422
|
"module": "dist/base.js"
|
|
@@ -24589,7 +24621,7 @@
|
|
|
24589
24621
|
"type": {
|
|
24590
24622
|
"text": "string"
|
|
24591
24623
|
},
|
|
24592
|
-
"description": "`value` of the chosen option (the native select's value)
|
|
24624
|
+
"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.",
|
|
24593
24625
|
"default": "''",
|
|
24594
24626
|
"fieldName": "value"
|
|
24595
24627
|
}
|
|
@@ -25315,8 +25347,9 @@
|
|
|
25315
25347
|
"text": "number"
|
|
25316
25348
|
},
|
|
25317
25349
|
"default": "50",
|
|
25318
|
-
"description": "Current position, between `min` and `max`. Defaults to 50.
|
|
25319
|
-
"attribute": "value"
|
|
25350
|
+
"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.",
|
|
25351
|
+
"attribute": "value",
|
|
25352
|
+
"reflects": true
|
|
25320
25353
|
},
|
|
25321
25354
|
{
|
|
25322
25355
|
"kind": "field",
|
|
@@ -25627,7 +25660,7 @@
|
|
|
25627
25660
|
"text": "number"
|
|
25628
25661
|
},
|
|
25629
25662
|
"default": "50",
|
|
25630
|
-
"description": "Current position, between `min` and `max`. Defaults to 50.
|
|
25663
|
+
"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.",
|
|
25631
25664
|
"fieldName": "value"
|
|
25632
25665
|
},
|
|
25633
25666
|
{
|
|
@@ -26979,7 +27012,7 @@
|
|
|
26979
27012
|
"text": "boolean"
|
|
26980
27013
|
},
|
|
26981
27014
|
"default": "false",
|
|
26982
|
-
"description": "Whether the switch is on.
|
|
27015
|
+
"description": "Whether the switch is on. Reflected to the attribute as it changes; the form's reset target stays the state it started with.",
|
|
26983
27016
|
"attribute": "checked",
|
|
26984
27017
|
"reflects": true
|
|
26985
27018
|
},
|
|
@@ -27351,7 +27384,7 @@
|
|
|
27351
27384
|
"text": "boolean"
|
|
27352
27385
|
},
|
|
27353
27386
|
"default": "false",
|
|
27354
|
-
"description": "Whether the switch is on.
|
|
27387
|
+
"description": "Whether the switch is on. Reflected to the attribute as it changes; the form's reset target stays the state it started with.",
|
|
27355
27388
|
"fieldName": "checked"
|
|
27356
27389
|
},
|
|
27357
27390
|
{
|
|
@@ -28667,8 +28700,9 @@
|
|
|
28667
28700
|
"text": "TagValue[]"
|
|
28668
28701
|
},
|
|
28669
28702
|
"default": "[]",
|
|
28670
|
-
"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.",
|
|
28671
|
-
"attribute": "value"
|
|
28703
|
+
"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.",
|
|
28704
|
+
"attribute": "value",
|
|
28705
|
+
"reflects": true
|
|
28672
28706
|
},
|
|
28673
28707
|
{
|
|
28674
28708
|
"kind": "field",
|
|
@@ -29066,7 +29100,7 @@
|
|
|
29066
29100
|
"text": "TagValue[]"
|
|
29067
29101
|
},
|
|
29068
29102
|
"default": "[]",
|
|
29069
|
-
"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.",
|
|
29103
|
+
"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.",
|
|
29070
29104
|
"fieldName": "value"
|
|
29071
29105
|
},
|
|
29072
29106
|
{
|
|
@@ -29261,8 +29295,9 @@
|
|
|
29261
29295
|
"text": "string"
|
|
29262
29296
|
},
|
|
29263
29297
|
"default": "''",
|
|
29264
|
-
"description": "The text in the box.
|
|
29265
|
-
"attribute": "value"
|
|
29298
|
+
"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.",
|
|
29299
|
+
"attribute": "value",
|
|
29300
|
+
"reflects": true
|
|
29266
29301
|
},
|
|
29267
29302
|
{
|
|
29268
29303
|
"kind": "field",
|
|
@@ -29646,7 +29681,7 @@
|
|
|
29646
29681
|
"text": "string"
|
|
29647
29682
|
},
|
|
29648
29683
|
"default": "''",
|
|
29649
|
-
"description": "The text in the box.
|
|
29684
|
+
"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.",
|
|
29650
29685
|
"fieldName": "value"
|
|
29651
29686
|
},
|
|
29652
29687
|
{
|
|
@@ -30547,7 +30582,7 @@
|
|
|
30547
30582
|
"text": "string"
|
|
30548
30583
|
},
|
|
30549
30584
|
"default": "''",
|
|
30550
|
-
"description": "Comma-separated `value`s of the pressed toggles (`bold,italic`), or the single pressed value.
|
|
30585
|
+
"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`.",
|
|
30551
30586
|
"attribute": "value",
|
|
30552
30587
|
"reflects": true
|
|
30553
30588
|
},
|
|
@@ -30930,7 +30965,7 @@
|
|
|
30930
30965
|
"text": "string"
|
|
30931
30966
|
},
|
|
30932
30967
|
"default": "''",
|
|
30933
|
-
"description": "Comma-separated `value`s of the pressed toggles (`bold,italic`), or the single pressed value.
|
|
30968
|
+
"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`.",
|
|
30934
30969
|
"fieldName": "value"
|
|
30935
30970
|
},
|
|
30936
30971
|
{
|
|
@@ -31063,7 +31098,8 @@
|
|
|
31063
31098
|
},
|
|
31064
31099
|
"default": "''",
|
|
31065
31100
|
"description": "What this toggle stands for: the value it contributes to a parent `<void-toggle-group>`, and `detail.value` of its `void-change`.",
|
|
31066
|
-
"attribute": "value"
|
|
31101
|
+
"attribute": "value",
|
|
31102
|
+
"reflects": true
|
|
31067
31103
|
},
|
|
31068
31104
|
{
|
|
31069
31105
|
"kind": "field",
|
package/dist/dev/types.d.ts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* How one attribute's value is validated: `0` any string, `1` boolean, `2`
|
|
3
|
-
*
|
|
4
|
-
* closed set of allowed values.
|
|
3
|
+
* number, a string array is the closed set of allowed values.
|
|
5
4
|
*/
|
|
6
|
-
export type AttrRule = 0 | 1 | 2 |
|
|
5
|
+
export type AttrRule = 0 | 1 | 2 | readonly string[];
|
|
7
6
|
/** Validation data for one tag, generated from the Custom Elements Manifest. */
|
|
8
7
|
export interface DevTag {
|
|
9
8
|
/** Module name under `components/` that registers the tag. */
|