@voidable/ui 0.9.0 → 0.11.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/dist/base-entry.d.ts +1 -0
- package/dist/base.d.ts +8 -1
- package/dist/base.js +5 -1
- package/dist/chunks/base-BGrS4eIl.js +307 -0
- package/dist/chunks/data-BpiiNapL.js +95 -0
- package/dist/chunks/{keyboard-MQpfTX5I.js → keyboard-CEhMSkws.js} +19 -3
- package/dist/chunks/{modal-hivQ4YoU.js → modal-DWGkNdNG.js} +3 -3
- package/dist/chunks/{overlay-BywGMcDW.js → overlay-CH7L4N-h.js} +2 -2
- package/dist/chunks/{parts-CMQQop0D.js → parts-DI_3VpSy.js} +21 -17
- package/dist/chunks/{base-CMruMbxC.js → projection-oPe6ipjL.js} +105 -389
- package/dist/components/accordion.js +2 -2
- package/dist/components/action-input.d.ts +2 -2
- package/dist/components/action-input.js +56 -54
- package/dist/components/alert.d.ts +11 -0
- package/dist/components/alert.js +11 -4
- package/dist/components/avatar.js +13 -11
- package/dist/components/badge.d.ts +8 -2
- package/dist/components/badge.js +1 -4
- package/dist/components/banner.d.ts +9 -0
- package/dist/components/banner.js +11 -4
- package/dist/components/bar-chart.d.ts +21 -7
- package/dist/components/bar-chart.js +67 -43
- package/dist/components/breadcrumbs.js +2 -2
- package/dist/components/button.js +1 -1
- package/dist/components/calendar.d.ts +40 -2
- package/dist/components/calendar.js +170 -79
- package/dist/components/card.js +1 -1
- package/dist/components/carousel.js +20 -19
- package/dist/components/charts/data.d.ts +72 -0
- package/dist/components/checkbox-group.js +13 -12
- package/dist/components/checkbox.js +17 -16
- package/dist/components/collapsible.js +2 -2
- package/dist/components/color-picker.js +26 -24
- package/dist/components/combobox.js +17 -16
- package/dist/components/compose-input.js +13 -11
- package/dist/components/dialog.js +1 -1
- package/dist/components/divider.js +11 -9
- package/dist/components/donut-chart.d.ts +22 -6
- package/dist/components/donut-chart.js +96 -68
- 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.js +13 -12
- package/dist/components/error-fallback.js +2 -2
- package/dist/components/field.js +10 -9
- package/dist/components/file-upload.d.ts +20 -5
- package/dist/components/file-upload.js +52 -20
- package/dist/components/gauge.d.ts +32 -8
- package/dist/components/gauge.js +209 -135
- package/dist/components/hamburger.d.ts +12 -1
- package/dist/components/hamburger.js +33 -20
- package/dist/components/hover-card.js +3 -3
- package/dist/components/indicator.js +14 -12
- package/dist/components/input.js +41 -39
- package/dist/components/line-chart.d.ts +22 -7
- package/dist/components/line-chart.js +80 -56
- package/dist/components/list.js +1 -1
- package/dist/components/menu.js +3 -3
- package/dist/components/multiselect.js +30 -29
- package/dist/components/nav-bar.d.ts +9 -0
- package/dist/components/nav-bar.js +16 -3
- package/dist/components/nav-menu.js +20 -19
- 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.js +32 -30
- package/dist/components/popover.js +3 -3
- package/dist/components/progress.js +14 -12
- package/dist/components/radio-group.js +13 -11
- 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.js +21 -21
- package/dist/components/select.js +49 -47
- 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.js +16 -14
- package/dist/components/spinner.js +11 -9
- package/dist/components/stat.d.ts +13 -1
- package/dist/components/stat.js +29 -19
- package/dist/components/status-dot.js +1 -1
- package/dist/components/stepper.js +15 -13
- package/dist/components/switch.js +14 -12
- package/dist/components/table.d.ts +4 -0
- package/dist/components/table.js +42 -29
- package/dist/components/tabs.js +29 -29
- package/dist/components/tag.js +9 -8
- package/dist/components/tags-input.js +24 -22
- package/dist/components/textarea.js +34 -32
- package/dist/components/toast.d.ts +19 -2
- package/dist/components/toast.js +43 -10
- package/dist/components/toggle-group.js +16 -15
- package/dist/components/toggle.js +1 -1
- package/dist/components/tooltip.js +3 -3
- package/dist/components.json +15 -13
- package/dist/custom-elements.json +320 -88
- package/dist/dev/types.d.ts +3 -1
- package/dist/dev.js +85 -16
- package/dist/index.js +1 -1
- package/dist/keyboard.d.ts +10 -0
- package/dist/llms.txt +1 -1
- package/dist/parts.d.ts +5 -0
- package/dist/projection-api.d.ts +23 -0
- package/dist/projection.d.ts +8 -2
- package/dist/reference.md +84 -59
- package/dist/types/elements.d.ts +13 -13
- package/dist/types/react.d.ts +2 -2
- package/dist/types/solid.d.ts +2 -2
- package/dist/types/svelte.d.ts +2 -2
- package/dist/types/vue.d.ts +2 -2
- package/dist/vscode.html-custom-data.json +108 -28
- package/dist/web-types.json +189 -60
- package/package.json +1 -1
|
@@ -1706,10 +1706,10 @@
|
|
|
1706
1706
|
"kind": "field",
|
|
1707
1707
|
"name": "iconSide",
|
|
1708
1708
|
"type": {
|
|
1709
|
-
"text": "'
|
|
1709
|
+
"text": "'start' | 'end'"
|
|
1710
1710
|
},
|
|
1711
|
-
"default": "'
|
|
1712
|
-
"description": "Which side of the field the button sits on: `
|
|
1711
|
+
"default": "'end'",
|
|
1712
|
+
"description": "Which side of the field the button sits on, in the reading direction: `end` (default) or `start`.",
|
|
1713
1713
|
"attribute": "icon-side",
|
|
1714
1714
|
"reflects": true
|
|
1715
1715
|
},
|
|
@@ -2119,10 +2119,10 @@
|
|
|
2119
2119
|
{
|
|
2120
2120
|
"name": "icon-side",
|
|
2121
2121
|
"type": {
|
|
2122
|
-
"text": "'
|
|
2122
|
+
"text": "'start' | 'end'"
|
|
2123
2123
|
},
|
|
2124
|
-
"default": "'
|
|
2125
|
-
"description": "Which side of the field the button sits on: `
|
|
2124
|
+
"default": "'end'",
|
|
2125
|
+
"description": "Which side of the field the button sits on, in the reading direction: `end` (default) or `start`.",
|
|
2126
2126
|
"fieldName": "iconSide"
|
|
2127
2127
|
},
|
|
2128
2128
|
{
|
|
@@ -2180,11 +2180,21 @@
|
|
|
2180
2180
|
"voidRenamed": {
|
|
2181
2181
|
"attributes": {
|
|
2182
2182
|
"position": {
|
|
2183
|
-
"to": "icon-side"
|
|
2183
|
+
"to": "icon-side",
|
|
2184
|
+
"values": {
|
|
2185
|
+
"left": "icon-side=\"start\"",
|
|
2186
|
+
"right": "icon-side=\"end\""
|
|
2187
|
+
}
|
|
2184
2188
|
},
|
|
2185
2189
|
"tooltip-position": {
|
|
2186
2190
|
"to": "tooltip-side"
|
|
2187
2191
|
}
|
|
2192
|
+
},
|
|
2193
|
+
"values": {
|
|
2194
|
+
"icon-side": {
|
|
2195
|
+
"left": "start",
|
|
2196
|
+
"right": "end"
|
|
2197
|
+
}
|
|
2188
2198
|
}
|
|
2189
2199
|
}
|
|
2190
2200
|
}
|
|
@@ -2214,7 +2224,7 @@
|
|
|
2214
2224
|
"declarations": [
|
|
2215
2225
|
{
|
|
2216
2226
|
"kind": "class",
|
|
2217
|
-
"description": "Inline contextual message for form validation feedback, permission warnings, and system status notices.\n\nIts text is written as parts: an optional `<void-alert-title>`, the `<void-alert-description>` and an optional\n`<void-alert-close>`. The parts are never moved. The close part wraps the one control the author writes (a\n`<button type=\"button\" aria-label=\"Dismiss\">`); pressing it fires `void-close` and, unless that is cancelled, removes the alert (focus inside\nit moves on to the next focusable element). Without a close part the alert cannot be dismissed.",
|
|
2227
|
+
"description": "Inline contextual message for form validation feedback, permission warnings, and system status notices.\n\nIts role follows the colour: `error` and `warning` are `role=\"alert\"` (announced at once, interrupting), every\nother colour is `role=\"status\"` (announced politely). A role you write on it is kept.\n\nIts text is written as parts: an optional `<void-alert-title>`, the `<void-alert-description>` and an optional\n`<void-alert-close>`. The parts are never moved. The close part wraps the one control the author writes (a\n`<button type=\"button\" aria-label=\"Dismiss\">`); pressing it fires `void-close` and, unless that is cancelled, removes the alert (focus inside\nit moves on to the next focusable element). Without a close part the alert cannot be dismissed.",
|
|
2218
2228
|
"name": "VoidAlert",
|
|
2219
2229
|
"members": [
|
|
2220
2230
|
{
|
|
@@ -2882,7 +2892,7 @@
|
|
|
2882
2892
|
"declarations": [
|
|
2883
2893
|
{
|
|
2884
2894
|
"kind": "class",
|
|
2885
|
-
"description": "Small status chip for issue trackers, tag systems, and categorization UIs where color conveys state at a glance.",
|
|
2895
|
+
"description": "Small status chip for issue trackers, tag systems, and categorization UIs where color conveys state at a glance.\n\nA badge has no role: it is text beside other text, and a screen reader reads it where it sits. It is not\na live region, because a table of status badges would announce every one as it is inserted. For the one\nbadge whose change must be heard (a count that updates while the user works), write `role=\"status\"` on it\nyourself; the component leaves it alone.",
|
|
2886
2896
|
"name": "VoidBadge",
|
|
2887
2897
|
"members": [
|
|
2888
2898
|
{
|
|
@@ -3182,7 +3192,7 @@
|
|
|
3182
3192
|
"declarations": [
|
|
3183
3193
|
{
|
|
3184
3194
|
"kind": "class",
|
|
3185
|
-
"description": "Full-width site-level announcement for maintenance windows, cookie consent, and promotional messaging.\n\nIts text is written as parts: an optional `<void-banner-title>`, the `<void-banner-description>`, an optional\n`<void-banner-actions>` (buttons or links) and an optional `<void-banner-close>`. The parts are never moved. The\nclose part wraps the one control the author writes (a `<void-button aria-label=\"Dismiss\">`); pressing it fires\n`void-close` and removes the banner (focus inside it moves on to the next focusable element). Without a close part the banner cannot be dismissed.",
|
|
3195
|
+
"description": "Full-width site-level announcement for maintenance windows, cookie consent, and promotional messaging.\n\nIt never has the `banner` role: that is the page header landmark (at most one per page, never inside\n`<main>`), which an announcement is not. Like the alert it carries an announcement, so its role follows its\n`color`: `alert` for `error` and `warning`, `status` for the rest. To make it a landmark users can jump to,\nwrite `role=\"region\"` and an `aria-label`; the component leaves a role you write alone.\n\nIts text is written as parts: an optional `<void-banner-title>`, the `<void-banner-description>`, an optional\n`<void-banner-actions>` (buttons or links) and an optional `<void-banner-close>`. The parts are never moved. The\nclose part wraps the one control the author writes (a `<void-button aria-label=\"Dismiss\">`); pressing it fires\n`void-close` and removes the banner (focus inside it moves on to the next focusable element). Without a close part the banner cannot be dismissed.",
|
|
3186
3196
|
"name": "VoidBanner",
|
|
3187
3197
|
"members": [
|
|
3188
3198
|
{
|
|
@@ -3524,7 +3534,7 @@
|
|
|
3524
3534
|
"declarations": [
|
|
3525
3535
|
{
|
|
3526
3536
|
"kind": "class",
|
|
3527
|
-
"description": "Bar chart for comparing categories and series, drawn in SVG with animated bars. Give it `data`\n(`{ series: [{ name, values }], labels }`)
|
|
3537
|
+
"description": "Bar chart for comparing categories and series, drawn in SVG with animated bars. Give it `data`\n(`{ series: [{ name, values }], labels }`) as the `data` property or as JSON in the `data` attribute, so\nserver-rendered markup draws it with no script; it has no children. The drawing is hidden from assistive\ntechnology and a visually hidden data table (captioned with `aria-label`) carries the values instead; add\n`show-table` to show the table below the chart too.",
|
|
3528
3538
|
"name": "VoidBarChart",
|
|
3529
3539
|
"members": [
|
|
3530
3540
|
{
|
|
@@ -3567,9 +3577,20 @@
|
|
|
3567
3577
|
"text": "string"
|
|
3568
3578
|
},
|
|
3569
3579
|
"default": "''",
|
|
3570
|
-
"description": "Accessible name of the chart, such as `Revenue by quarter
|
|
3580
|
+
"description": "Accessible name of the chart, such as `Revenue by quarter`; it is also the caption of the data table.\nSet it: the drawing itself is hidden from assistive technology.",
|
|
3571
3581
|
"attribute": "aria-label"
|
|
3572
3582
|
},
|
|
3583
|
+
{
|
|
3584
|
+
"kind": "field",
|
|
3585
|
+
"name": "showTable",
|
|
3586
|
+
"type": {
|
|
3587
|
+
"text": "boolean"
|
|
3588
|
+
},
|
|
3589
|
+
"default": "false",
|
|
3590
|
+
"description": "Show the data table (one row per category, one column per series) below the chart. The table is always\nthere for assistive technology; this makes it visible too.",
|
|
3591
|
+
"attribute": "show-table",
|
|
3592
|
+
"reflects": true
|
|
3593
|
+
},
|
|
3573
3594
|
{
|
|
3574
3595
|
"kind": "field",
|
|
3575
3596
|
"name": "stagger",
|
|
@@ -3586,7 +3607,9 @@
|
|
|
3586
3607
|
"type": {
|
|
3587
3608
|
"text": "BarChartData"
|
|
3588
3609
|
},
|
|
3589
|
-
"description": "The chart's data: `{ series: [{ name, values, color?, colors? }], labels? }`. `values` are aligned with\n`labels` (the category names along the axis); `color` colours a whole series and `colors` overrides single\nbars. Negative values are bars below a zero baseline: the value axis then spans the lowest value as\nwell, and a baseline is drawn at zero.
|
|
3610
|
+
"description": "The chart's data: `{ series: [{ name, values, color?, colors? }], labels? }`. `values` are aligned with\n`labels` (the category names along the axis); `color` colours a whole series and `colors` overrides single\nbars. Negative values are bars below a zero baseline: the value axis then spans the lowest value as\nwell, and a baseline is drawn at zero. Give it as a property (assign a new object to update the chart\nand animate to it) or as JSON in the `data` attribute: `<void-bar-chart data='{\"series\":[{\"name\":\"Sales\",\"values\":[3,5]}],\"labels\":[\"Mon\",\"Tue\"]}'>`.\nInvalid JSON draws nothing and is reported by `@voidable/ui/dev`. The property is not reflected to the\nattribute (the data can be large), and an attribute a server morph leaves unchanged does not animate again.",
|
|
3611
|
+
"default": "{ series: [] }",
|
|
3612
|
+
"attribute": "data"
|
|
3590
3613
|
},
|
|
3591
3614
|
{
|
|
3592
3615
|
"kind": "field",
|
|
@@ -3824,9 +3847,18 @@
|
|
|
3824
3847
|
"text": "string"
|
|
3825
3848
|
},
|
|
3826
3849
|
"default": "''",
|
|
3827
|
-
"description": "Accessible name of the chart, such as `Revenue by quarter
|
|
3850
|
+
"description": "Accessible name of the chart, such as `Revenue by quarter`; it is also the caption of the data table.\nSet it: the drawing itself is hidden from assistive technology.",
|
|
3828
3851
|
"fieldName": "ariaLabel"
|
|
3829
3852
|
},
|
|
3853
|
+
{
|
|
3854
|
+
"name": "show-table",
|
|
3855
|
+
"type": {
|
|
3856
|
+
"text": "boolean"
|
|
3857
|
+
},
|
|
3858
|
+
"default": "false",
|
|
3859
|
+
"description": "Show the data table (one row per category, one column per series) below the chart. The table is always\nthere for assistive technology; this makes it visible too.",
|
|
3860
|
+
"fieldName": "showTable"
|
|
3861
|
+
},
|
|
3830
3862
|
{
|
|
3831
3863
|
"name": "stagger",
|
|
3832
3864
|
"type": {
|
|
@@ -3835,6 +3867,15 @@
|
|
|
3835
3867
|
"default": "null",
|
|
3836
3868
|
"description": "Delay in milliseconds between the bars as they animate in, one after another. Without it the theme's\n`--void-stagger-chart-bars` applies; `stagger=\"0\"` animates them together.",
|
|
3837
3869
|
"fieldName": "stagger"
|
|
3870
|
+
},
|
|
3871
|
+
{
|
|
3872
|
+
"name": "data",
|
|
3873
|
+
"type": {
|
|
3874
|
+
"text": "BarChartData"
|
|
3875
|
+
},
|
|
3876
|
+
"description": "The chart's data: `{ series: [{ name, values, color?, colors? }], labels? }`. `values` are aligned with\n`labels` (the category names along the axis); `color` colours a whole series and `colors` overrides single\nbars. Negative values are bars below a zero baseline: the value axis then spans the lowest value as\nwell, and a baseline is drawn at zero. Give it as a property (assign a new object to update the chart\nand animate to it) or as JSON in the `data` attribute: `<void-bar-chart data='{\"series\":[{\"name\":\"Sales\",\"values\":[3,5]}],\"labels\":[\"Mon\",\"Tue\"]}'>`.\nInvalid JSON draws nothing and is reported by `@voidable/ui/dev`. The property is not reflected to the\nattribute (the data can be large), and an attribute a server morph leaves unchanged does not animate again.",
|
|
3877
|
+
"default": "{ series: [] }",
|
|
3878
|
+
"fieldName": "data"
|
|
3838
3879
|
}
|
|
3839
3880
|
],
|
|
3840
3881
|
"superclass": {
|
|
@@ -5033,7 +5074,7 @@
|
|
|
5033
5074
|
},
|
|
5034
5075
|
{
|
|
5035
5076
|
"kind": "class",
|
|
5036
|
-
"description": "Input-anchored date picker that combines a text field with a VoidCalendar dropdown for form date selection.\n\nThe calendar opens in a non-modal popup dialog in the top layer, placed under the input with CSS anchor\npositioning (flipping above near the bottom of the viewport). A click on the field opens it and leaves focus\nin the field (ArrowDown then moves into the calendar); the calendar button, Enter, Space or ArrowDown on the\nfield open it with focus on the selected (or current) day. Choosing a day, Escape, or a press outside closes\nit and focus returns to the input.",
|
|
5077
|
+
"description": "Input-anchored date picker that combines a text field with a VoidCalendar dropdown for form date selection.\n\nThe calendar opens in a non-modal popup dialog in the top layer, placed under the input with CSS anchor\npositioning (flipping above near the bottom of the viewport). A click on the field opens it and leaves focus\nin the field (ArrowDown then moves into the calendar); the calendar button, Enter, Space or ArrowDown on the\nfield open it with focus on the selected (or current) day. Choosing a day, Escape, or a press outside closes\nit and focus returns to the input.\n\nThe field also takes a typed date, in `format` or as ISO `YYYY-MM-DD`: it is read when the field loses focus\nand on Enter, the calendar follows, and `void-change` fires once with the ISO value. A date that is not a date,\nor is before `min` or after `max`, is refused: the text stays for correction, `error` explains it, the field\nis `aria-invalid` and described by the message, and the form is not submitted (`badInput`, `rangeUnderflow` or\n`rangeOverflow`). An empty field clears the value.",
|
|
5037
5078
|
"name": "VoidDatePicker",
|
|
5038
5079
|
"members": [
|
|
5039
5080
|
{
|
|
@@ -5151,7 +5192,7 @@
|
|
|
5151
5192
|
"text": "string"
|
|
5152
5193
|
},
|
|
5153
5194
|
"default": "'MM/DD/YYYY'",
|
|
5154
|
-
"description": "How the
|
|
5195
|
+
"description": "How the date is written in the field, using `YYYY`, `MM` and `DD`. Defaults to `MM/DD/YYYY`. A date\ntyped into the field is read the same way (and as ISO `YYYY-MM-DD` always); the value stays `YYYY-MM-DD`.",
|
|
5155
5196
|
"attribute": "format"
|
|
5156
5197
|
},
|
|
5157
5198
|
{
|
|
@@ -5165,6 +5206,45 @@
|
|
|
5165
5206
|
"attribute": "color",
|
|
5166
5207
|
"reflects": true
|
|
5167
5208
|
},
|
|
5209
|
+
{
|
|
5210
|
+
"kind": "field",
|
|
5211
|
+
"name": "error",
|
|
5212
|
+
"type": {
|
|
5213
|
+
"text": "string"
|
|
5214
|
+
},
|
|
5215
|
+
"default": "''",
|
|
5216
|
+
"description": "Mark the field invalid: it gets the error styling and `aria-invalid`. Set it for a server-side message;\nthe field also sets it itself, with the reason, when a typed date is not taken, and clears what it set\nonce a valid date is typed or picked. A message you set is left alone.",
|
|
5217
|
+
"attribute": "error",
|
|
5218
|
+
"reflects": true
|
|
5219
|
+
},
|
|
5220
|
+
{
|
|
5221
|
+
"kind": "field",
|
|
5222
|
+
"name": "clientState",
|
|
5223
|
+
"type": {
|
|
5224
|
+
"text": "Record<string, string | null> | undefined"
|
|
5225
|
+
},
|
|
5226
|
+
"static": true,
|
|
5227
|
+
"description": "The typed text is the field's own to keep: a server patch of `value` discards it, any other morph does not.",
|
|
5228
|
+
"default": "{ _draft: 'value' }",
|
|
5229
|
+
"inheritedFrom": {
|
|
5230
|
+
"name": "VoidElement",
|
|
5231
|
+
"module": "dist/base.js"
|
|
5232
|
+
}
|
|
5233
|
+
},
|
|
5234
|
+
{
|
|
5235
|
+
"kind": "field",
|
|
5236
|
+
"name": "editState",
|
|
5237
|
+
"type": {
|
|
5238
|
+
"text": "readonly string[] | undefined"
|
|
5239
|
+
},
|
|
5240
|
+
"static": true,
|
|
5241
|
+
"description": "While focus is inside, a morph does not apply the server's value over the date the user is typing.",
|
|
5242
|
+
"default": "['value']",
|
|
5243
|
+
"inheritedFrom": {
|
|
5244
|
+
"name": "VoidElement",
|
|
5245
|
+
"module": "dist/base.js"
|
|
5246
|
+
}
|
|
5247
|
+
},
|
|
5168
5248
|
{
|
|
5169
5249
|
"kind": "field",
|
|
5170
5250
|
"name": "required",
|
|
@@ -5272,32 +5352,6 @@
|
|
|
5272
5352
|
"name": "CoreFormControl"
|
|
5273
5353
|
}
|
|
5274
5354
|
},
|
|
5275
|
-
{
|
|
5276
|
-
"kind": "field",
|
|
5277
|
-
"name": "clientState",
|
|
5278
|
-
"type": {
|
|
5279
|
-
"text": "Record<string, string | null> | undefined"
|
|
5280
|
-
},
|
|
5281
|
-
"static": true,
|
|
5282
|
-
"description": "Client state that no reflected attribute carries and the server never\nrenders, such as text typed but not committed yet: property name -> the\nattribute whose change by the server discards it (the property is set to\n`null` so the server's value shows), or `null` to keep it whatever the\nserver sends. Morphs leave these properties alone otherwise; the component\nrenders them in place of the committed value while they are set.\n\n```ts\nstatic override clientState = { _pendingText: 'value' };\n```",
|
|
5283
|
-
"inheritedFrom": {
|
|
5284
|
-
"name": "VoidElement",
|
|
5285
|
-
"module": "dist/base.js"
|
|
5286
|
-
}
|
|
5287
|
-
},
|
|
5288
|
-
{
|
|
5289
|
-
"kind": "field",
|
|
5290
|
-
"name": "editState",
|
|
5291
|
-
"type": {
|
|
5292
|
-
"text": "readonly string[] | undefined"
|
|
5293
|
-
},
|
|
5294
|
-
"static": true,
|
|
5295
|
-
"description": "Attributes whose value the user is editing while focus is inside the\nelement (the text of an input): a morph that arrives then never applies\nthe server's value of these, as a browser never rewrites what a user typed\ninto a native field from its `value` attribute. The server's value still\nbecomes the baseline, and the next morph after focus has left applies a\nserver change as usual. This is what keeps every keystroke when each one\nround-trips to the server and comes back a few keys behind (Livewire's\n`$wire.set` on `void-input`, LiveView's `phx-change` echo).\n\n```ts\nstatic override editState = ['value'];\n```",
|
|
5296
|
-
"inheritedFrom": {
|
|
5297
|
-
"name": "VoidElement",
|
|
5298
|
-
"module": "dist/base.js"
|
|
5299
|
-
}
|
|
5300
|
-
},
|
|
5301
5355
|
{
|
|
5302
5356
|
"kind": "method",
|
|
5303
5357
|
"name": "removeAttribute",
|
|
@@ -5462,6 +5516,12 @@
|
|
|
5462
5516
|
}
|
|
5463
5517
|
],
|
|
5464
5518
|
"events": [
|
|
5519
|
+
{
|
|
5520
|
+
"name": "void-change",
|
|
5521
|
+
"type": {
|
|
5522
|
+
"text": "CustomEvent<{ value: string; date: Date | null }>"
|
|
5523
|
+
}
|
|
5524
|
+
},
|
|
5465
5525
|
{
|
|
5466
5526
|
"type": {
|
|
5467
5527
|
"text": "CustomEvent<{ reason: 'trigger' | 'focus' | 'keyboard' | 'api' }>"
|
|
@@ -5475,12 +5535,6 @@
|
|
|
5475
5535
|
},
|
|
5476
5536
|
"description": "The calendar popup is closing. Cancelable when the user caused it.",
|
|
5477
5537
|
"name": "void-close"
|
|
5478
|
-
},
|
|
5479
|
-
{
|
|
5480
|
-
"name": "void-change",
|
|
5481
|
-
"type": {
|
|
5482
|
-
"text": "CustomEvent<{ value: string; date: Date }>"
|
|
5483
|
-
}
|
|
5484
5538
|
}
|
|
5485
5539
|
],
|
|
5486
5540
|
"attributes": [
|
|
@@ -5571,7 +5625,7 @@
|
|
|
5571
5625
|
"text": "string"
|
|
5572
5626
|
},
|
|
5573
5627
|
"default": "'MM/DD/YYYY'",
|
|
5574
|
-
"description": "How the
|
|
5628
|
+
"description": "How the date is written in the field, using `YYYY`, `MM` and `DD`. Defaults to `MM/DD/YYYY`. A date\ntyped into the field is read the same way (and as ISO `YYYY-MM-DD` always); the value stays `YYYY-MM-DD`.",
|
|
5575
5629
|
"fieldName": "format"
|
|
5576
5630
|
},
|
|
5577
5631
|
{
|
|
@@ -5583,6 +5637,15 @@
|
|
|
5583
5637
|
"description": "Status colour of the field: `default`, `error`, `warning`, `caution`, `success`, `info`, `notice` or `highlight`.",
|
|
5584
5638
|
"fieldName": "color"
|
|
5585
5639
|
},
|
|
5640
|
+
{
|
|
5641
|
+
"name": "error",
|
|
5642
|
+
"type": {
|
|
5643
|
+
"text": "string"
|
|
5644
|
+
},
|
|
5645
|
+
"default": "''",
|
|
5646
|
+
"description": "Mark the field invalid: it gets the error styling and `aria-invalid`. Set it for a server-side message;\nthe field also sets it itself, with the reason, when a typed date is not taken, and clears what it set\nonce a valid date is typed or picked. A message you set is left alone.",
|
|
5647
|
+
"fieldName": "error"
|
|
5648
|
+
},
|
|
5586
5649
|
{
|
|
5587
5650
|
"name": "required",
|
|
5588
5651
|
"type": {
|
|
@@ -6823,6 +6886,14 @@
|
|
|
6823
6886
|
},
|
|
6824
6887
|
"tagName": "void-carousel",
|
|
6825
6888
|
"customElement": true,
|
|
6889
|
+
"voidName": {
|
|
6890
|
+
"attributes": [
|
|
6891
|
+
"aria-label",
|
|
6892
|
+
"aria-labelledby",
|
|
6893
|
+
"title"
|
|
6894
|
+
],
|
|
6895
|
+
"hint": "say what it shows: aria-label=\"Product photos\""
|
|
6896
|
+
},
|
|
6826
6897
|
"voidHints": {
|
|
6827
6898
|
"controls": "write <void-carousel-previous aria-label=\"Previous slide\"></void-carousel-previous> and <void-carousel-next aria-label=\"Next slide\"></void-carousel-next> after the content; leave them out for no arrows",
|
|
6828
6899
|
"indicators": "write an empty <void-carousel-indicators></void-carousel-indicators> after the content; leave it out for no dots"
|
|
@@ -6843,7 +6914,7 @@
|
|
|
6843
6914
|
"voidParts": {
|
|
6844
6915
|
"children": "parts",
|
|
6845
6916
|
"ordered": true,
|
|
6846
|
-
"skeleton": "<void-carousel><void-carousel-content><void-carousel-item>One</void-carousel-item><void-carousel-item>Two</void-carousel-item></void-carousel-content><void-carousel-previous aria-label=\"Previous slide\"></void-carousel-previous><void-carousel-next aria-label=\"Next slide\"></void-carousel-next><void-carousel-indicators></void-carousel-indicators></void-carousel>",
|
|
6917
|
+
"skeleton": "<void-carousel aria-label=\"Slides\"><void-carousel-content><void-carousel-item>One</void-carousel-item><void-carousel-item>Two</void-carousel-item></void-carousel-content><void-carousel-previous aria-label=\"Previous slide\"></void-carousel-previous><void-carousel-next aria-label=\"Next slide\"></void-carousel-next><void-carousel-indicators></void-carousel-indicators></void-carousel>",
|
|
6847
6918
|
"legacy": {
|
|
6848
6919
|
"attributes": {
|
|
6849
6920
|
"controls": "write <void-carousel-previous aria-label=\"Previous slide\"></void-carousel-previous> and <void-carousel-next aria-label=\"Next slide\"></void-carousel-next> after the content; leave them out for no arrows",
|
|
@@ -6875,7 +6946,7 @@
|
|
|
6875
6946
|
"type": {
|
|
6876
6947
|
"text": "boolean"
|
|
6877
6948
|
},
|
|
6878
|
-
"description": "Set by
|
|
6949
|
+
"description": "Set by the carousel on the slide being shown."
|
|
6879
6950
|
}
|
|
6880
6951
|
]
|
|
6881
6952
|
}
|
|
@@ -10401,7 +10472,7 @@
|
|
|
10401
10472
|
"declarations": [
|
|
10402
10473
|
{
|
|
10403
10474
|
"kind": "class",
|
|
10404
|
-
"description": "Donut chart for part-to-whole breakdowns, drawn in SVG with animated segments and an optional total in the\ncentre. Give it `data` (`{ segments: [{ name, value }] }`)
|
|
10475
|
+
"description": "Donut chart for part-to-whole breakdowns, drawn in SVG with animated segments and an optional total in the\ncentre. Give it `data` (`{ segments: [{ name, value }] }`) as the `data` property or as JSON in the `data`\nattribute, so server-rendered markup draws it with no script; it has no children. The drawing is hidden\nfrom assistive technology and a visually hidden data table (captioned with `aria-label`) carries the\nvalues instead; add `show-table` to show the table below the chart too.",
|
|
10405
10476
|
"name": "VoidDonutChart",
|
|
10406
10477
|
"members": [
|
|
10407
10478
|
{
|
|
@@ -10475,16 +10546,29 @@
|
|
|
10475
10546
|
"text": "string"
|
|
10476
10547
|
},
|
|
10477
10548
|
"default": "''",
|
|
10478
|
-
"description": "Accessible name of the chart, such as `Traffic by source
|
|
10549
|
+
"description": "Accessible name of the chart, such as `Traffic by source`; it is also the caption of the data table.\nSet it: the drawing itself is hidden from assistive technology.",
|
|
10479
10550
|
"attribute": "aria-label"
|
|
10480
10551
|
},
|
|
10552
|
+
{
|
|
10553
|
+
"kind": "field",
|
|
10554
|
+
"name": "showTable",
|
|
10555
|
+
"type": {
|
|
10556
|
+
"text": "boolean"
|
|
10557
|
+
},
|
|
10558
|
+
"default": "false",
|
|
10559
|
+
"description": "Show the data table (one row per segment: name, value and share) below the chart. The table is always\nthere for assistive technology; this makes it visible too.",
|
|
10560
|
+
"attribute": "show-table",
|
|
10561
|
+
"reflects": true
|
|
10562
|
+
},
|
|
10481
10563
|
{
|
|
10482
10564
|
"kind": "field",
|
|
10483
10565
|
"name": "data",
|
|
10484
10566
|
"type": {
|
|
10485
10567
|
"text": "DonutChartData"
|
|
10486
10568
|
},
|
|
10487
|
-
"description": "The chart's data: `{ segments: [{ name, value, color? }] }`. Each segment's share of the ring is its\n`value` over the sum of all values.
|
|
10569
|
+
"description": "The chart's data: `{ segments: [{ name, value, color? }] }`. Each segment's share of the ring is its\n`value` over the sum of all values. Give it as a property (assign a new object to update the chart and\nanimate to it) or as JSON in the `data` attribute:\n`<void-donut-chart data='{\"segments\":[{\"name\":\"Search\",\"value\":40},{\"name\":\"Direct\",\"value\":25}]}'>`.\nInvalid JSON draws nothing and is reported by `@voidable/ui/dev`. The property is not reflected to the\nattribute (the data can be large), and an attribute a server morph leaves unchanged does not animate again.",
|
|
10570
|
+
"default": "{ segments: [] }",
|
|
10571
|
+
"attribute": "data"
|
|
10488
10572
|
},
|
|
10489
10573
|
{
|
|
10490
10574
|
"kind": "field",
|
|
@@ -10749,8 +10833,26 @@
|
|
|
10749
10833
|
"text": "string"
|
|
10750
10834
|
},
|
|
10751
10835
|
"default": "''",
|
|
10752
|
-
"description": "Accessible name of the chart, such as `Traffic by source
|
|
10836
|
+
"description": "Accessible name of the chart, such as `Traffic by source`; it is also the caption of the data table.\nSet it: the drawing itself is hidden from assistive technology.",
|
|
10753
10837
|
"fieldName": "ariaLabel"
|
|
10838
|
+
},
|
|
10839
|
+
{
|
|
10840
|
+
"name": "show-table",
|
|
10841
|
+
"type": {
|
|
10842
|
+
"text": "boolean"
|
|
10843
|
+
},
|
|
10844
|
+
"default": "false",
|
|
10845
|
+
"description": "Show the data table (one row per segment: name, value and share) below the chart. The table is always\nthere for assistive technology; this makes it visible too.",
|
|
10846
|
+
"fieldName": "showTable"
|
|
10847
|
+
},
|
|
10848
|
+
{
|
|
10849
|
+
"name": "data",
|
|
10850
|
+
"type": {
|
|
10851
|
+
"text": "DonutChartData"
|
|
10852
|
+
},
|
|
10853
|
+
"description": "The chart's data: `{ segments: [{ name, value, color? }] }`. Each segment's share of the ring is its\n`value` over the sum of all values. Give it as a property (assign a new object to update the chart and\nanimate to it) or as JSON in the `data` attribute:\n`<void-donut-chart data='{\"segments\":[{\"name\":\"Search\",\"value\":40},{\"name\":\"Direct\",\"value\":25}]}'>`.\nInvalid JSON draws nothing and is reported by `@voidable/ui/dev`. The property is not reflected to the\nattribute (the data can be large), and an attribute a server morph leaves unchanged does not animate again.",
|
|
10854
|
+
"default": "{ segments: [] }",
|
|
10855
|
+
"fieldName": "data"
|
|
10754
10856
|
}
|
|
10755
10857
|
],
|
|
10756
10858
|
"superclass": {
|
|
@@ -10810,10 +10912,10 @@
|
|
|
10810
10912
|
"kind": "field",
|
|
10811
10913
|
"name": "side",
|
|
10812
10914
|
"type": {
|
|
10813
|
-
"text": "'left' | 'right' | 'top' | 'bottom'"
|
|
10915
|
+
"text": "'left' | 'right' | 'start' | 'end' | 'top' | 'bottom'"
|
|
10814
10916
|
},
|
|
10815
10917
|
"default": "'right'",
|
|
10816
|
-
"description": "
|
|
10918
|
+
"description": "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).",
|
|
10817
10919
|
"attribute": "side",
|
|
10818
10920
|
"reflects": true
|
|
10819
10921
|
},
|
|
@@ -11088,10 +11190,10 @@
|
|
|
11088
11190
|
{
|
|
11089
11191
|
"name": "side",
|
|
11090
11192
|
"type": {
|
|
11091
|
-
"text": "'left' | 'right' | 'top' | 'bottom'"
|
|
11193
|
+
"text": "'left' | 'right' | 'start' | 'end' | 'top' | 'bottom'"
|
|
11092
11194
|
},
|
|
11093
11195
|
"default": "'right'",
|
|
11094
|
-
"description": "
|
|
11196
|
+
"description": "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).",
|
|
11095
11197
|
"fieldName": "side"
|
|
11096
11198
|
},
|
|
11097
11199
|
{
|
|
@@ -13196,7 +13298,7 @@
|
|
|
13196
13298
|
"text": "string"
|
|
13197
13299
|
},
|
|
13198
13300
|
"default": "''",
|
|
13199
|
-
"description": "Comma-separated file types the zone takes, as on a native file input: extensions (`.pdf`), MIME\ntypes (`image/png`) or wildcards (`image/*`). Other files are
|
|
13301
|
+
"description": "Comma-separated file types the zone takes, as on a native file input: extensions (`.pdf`), MIME\ntypes (`image/png`) or wildcards (`image/*`). Other files are not taken: `void-reject` fires with\nreason `type` and the zone shows an error.",
|
|
13200
13302
|
"attribute": "accept"
|
|
13201
13303
|
},
|
|
13202
13304
|
{
|
|
@@ -13228,7 +13330,7 @@
|
|
|
13228
13330
|
"text": "number"
|
|
13229
13331
|
},
|
|
13230
13332
|
"default": "0",
|
|
13231
|
-
"description": "Largest allowed file in bytes. 0 (the default) means no limit. Larger files are
|
|
13333
|
+
"description": "Largest allowed file in bytes. 0 (the default) means no limit. Larger files are rejected with reason `size`.",
|
|
13232
13334
|
"attribute": "max-size"
|
|
13233
13335
|
},
|
|
13234
13336
|
{
|
|
@@ -13238,7 +13340,7 @@
|
|
|
13238
13340
|
"text": "string"
|
|
13239
13341
|
},
|
|
13240
13342
|
"default": "''",
|
|
13241
|
-
"description": "
|
|
13343
|
+
"description": "Error message shown under the zone; while it is set the drop zone is `aria-invalid` and described by\nit. Set it for a server-side upload failure. The zone also sets it itself when it rejects a file\n(see `void-reject`) and clears what it set on the next accepted selection; a message you set is\nleft alone.",
|
|
13242
13344
|
"attribute": "error",
|
|
13243
13345
|
"reflects": true
|
|
13244
13346
|
},
|
|
@@ -13539,6 +13641,13 @@
|
|
|
13539
13641
|
}
|
|
13540
13642
|
],
|
|
13541
13643
|
"events": [
|
|
13644
|
+
{
|
|
13645
|
+
"name": "void-reject",
|
|
13646
|
+
"type": {
|
|
13647
|
+
"text": "CustomEvent<{ rejected: { file: File; reason: 'type' | 'size' | 'count' }[] }>"
|
|
13648
|
+
},
|
|
13649
|
+
"description": "Files were refused: one entry per file with the reason. Does not bubble."
|
|
13650
|
+
},
|
|
13542
13651
|
{
|
|
13543
13652
|
"name": "void-change",
|
|
13544
13653
|
"type": {
|
|
@@ -13553,7 +13662,7 @@
|
|
|
13553
13662
|
"text": "string"
|
|
13554
13663
|
},
|
|
13555
13664
|
"default": "''",
|
|
13556
|
-
"description": "Comma-separated file types the zone takes, as on a native file input: extensions (`.pdf`), MIME\ntypes (`image/png`) or wildcards (`image/*`). Other files are
|
|
13665
|
+
"description": "Comma-separated file types the zone takes, as on a native file input: extensions (`.pdf`), MIME\ntypes (`image/png`) or wildcards (`image/*`). Other files are not taken: `void-reject` fires with\nreason `type` and the zone shows an error.",
|
|
13557
13666
|
"fieldName": "accept"
|
|
13558
13667
|
},
|
|
13559
13668
|
{
|
|
@@ -13580,7 +13689,7 @@
|
|
|
13580
13689
|
"text": "number"
|
|
13581
13690
|
},
|
|
13582
13691
|
"default": "0",
|
|
13583
|
-
"description": "Largest allowed file in bytes. 0 (the default) means no limit. Larger files are
|
|
13692
|
+
"description": "Largest allowed file in bytes. 0 (the default) means no limit. Larger files are rejected with reason `size`.",
|
|
13584
13693
|
"fieldName": "maxSize"
|
|
13585
13694
|
},
|
|
13586
13695
|
{
|
|
@@ -13589,7 +13698,7 @@
|
|
|
13589
13698
|
"text": "string"
|
|
13590
13699
|
},
|
|
13591
13700
|
"default": "''",
|
|
13592
|
-
"description": "
|
|
13701
|
+
"description": "Error message shown under the zone; while it is set the drop zone is `aria-invalid` and described by\nit. Set it for a server-side upload failure. The zone also sets it itself when it rejects a file\n(see `void-reject`) and clears what it set on the next accepted selection; a message you set is\nleft alone.",
|
|
13593
13702
|
"fieldName": "error"
|
|
13594
13703
|
},
|
|
13595
13704
|
{
|
|
@@ -13855,17 +13964,29 @@
|
|
|
13855
13964
|
"text": "string"
|
|
13856
13965
|
},
|
|
13857
13966
|
"default": "''",
|
|
13858
|
-
"description": "Accessible name of the gauge, such as `Disk usage
|
|
13967
|
+
"description": "Accessible name of the gauge, such as `Disk usage`; it is also the caption of the data table.\nSet it: the drawing itself is hidden from assistive technology.",
|
|
13859
13968
|
"attribute": "aria-label"
|
|
13860
13969
|
},
|
|
13970
|
+
{
|
|
13971
|
+
"kind": "field",
|
|
13972
|
+
"name": "showTable",
|
|
13973
|
+
"type": {
|
|
13974
|
+
"text": "boolean"
|
|
13975
|
+
},
|
|
13976
|
+
"default": "false",
|
|
13977
|
+
"description": "Show the data table (the reading with its range, or one row per segment) below the gauge. The table\nis always there for assistive technology; this makes it visible too.",
|
|
13978
|
+
"attribute": "show-table",
|
|
13979
|
+
"reflects": true
|
|
13980
|
+
},
|
|
13861
13981
|
{
|
|
13862
13982
|
"kind": "field",
|
|
13863
13983
|
"name": "zones",
|
|
13864
13984
|
"type": {
|
|
13865
13985
|
"text": "GaugeZone[]"
|
|
13866
13986
|
},
|
|
13987
|
+
"description": "Colour bands over the value range: an array of `{ from, to, color }`; the fill takes the colour of the\nzone containing the value. Give it as a property or as JSON in the `zones` attribute:\n`<void-gauge zones='[{\"from\":0,\"to\":60,\"color\":\"green\"},{\"from\":60,\"to\":100,\"color\":\"red\"}]'>`.\nInvalid JSON draws no zones and is reported by `@voidable/ui/dev`. Not reflected to the attribute.",
|
|
13867
13988
|
"default": "[]",
|
|
13868
|
-
"
|
|
13989
|
+
"attribute": "zones"
|
|
13869
13990
|
},
|
|
13870
13991
|
{
|
|
13871
13992
|
"kind": "field",
|
|
@@ -13873,7 +13994,9 @@
|
|
|
13873
13994
|
"type": {
|
|
13874
13995
|
"text": "GaugeData"
|
|
13875
13996
|
},
|
|
13876
|
-
"description": "Segmented data: `{ segments: [{ name, value, color? }] }` splits the arc between named parts; the\noptional `value` is the headline reading.
|
|
13997
|
+
"description": "Segmented data: `{ segments: [{ name, value, color? }] }` splits the arc between named parts; the\noptional `value` is the headline reading. Give it as a property (assign a new object to update the\ngauge and animate to it) or as JSON in the `data` attribute:\n`<void-gauge data='{\"segments\":[{\"name\":\"Used\",\"value\":40},{\"name\":\"Cache\",\"value\":15}]}'>`. Invalid\nJSON draws nothing and is reported by `@voidable/ui/dev`. The property is not reflected to the\nattribute, and an attribute a server morph leaves unchanged does not animate again. For a single\nreading, set the `value` attribute instead.",
|
|
13998
|
+
"default": "{}",
|
|
13999
|
+
"attribute": "data"
|
|
13877
14000
|
},
|
|
13878
14001
|
{
|
|
13879
14002
|
"kind": "field",
|
|
@@ -14228,8 +14351,35 @@
|
|
|
14228
14351
|
"text": "string"
|
|
14229
14352
|
},
|
|
14230
14353
|
"default": "''",
|
|
14231
|
-
"description": "Accessible name of the gauge, such as `Disk usage
|
|
14354
|
+
"description": "Accessible name of the gauge, such as `Disk usage`; it is also the caption of the data table.\nSet it: the drawing itself is hidden from assistive technology.",
|
|
14232
14355
|
"fieldName": "ariaLabel"
|
|
14356
|
+
},
|
|
14357
|
+
{
|
|
14358
|
+
"name": "show-table",
|
|
14359
|
+
"type": {
|
|
14360
|
+
"text": "boolean"
|
|
14361
|
+
},
|
|
14362
|
+
"default": "false",
|
|
14363
|
+
"description": "Show the data table (the reading with its range, or one row per segment) below the gauge. The table\nis always there for assistive technology; this makes it visible too.",
|
|
14364
|
+
"fieldName": "showTable"
|
|
14365
|
+
},
|
|
14366
|
+
{
|
|
14367
|
+
"name": "zones",
|
|
14368
|
+
"type": {
|
|
14369
|
+
"text": "GaugeZone[]"
|
|
14370
|
+
},
|
|
14371
|
+
"description": "Colour bands over the value range: an array of `{ from, to, color }`; the fill takes the colour of the\nzone containing the value. Give it as a property or as JSON in the `zones` attribute:\n`<void-gauge zones='[{\"from\":0,\"to\":60,\"color\":\"green\"},{\"from\":60,\"to\":100,\"color\":\"red\"}]'>`.\nInvalid JSON draws no zones and is reported by `@voidable/ui/dev`. Not reflected to the attribute.",
|
|
14372
|
+
"default": "[]",
|
|
14373
|
+
"fieldName": "zones"
|
|
14374
|
+
},
|
|
14375
|
+
{
|
|
14376
|
+
"name": "data",
|
|
14377
|
+
"type": {
|
|
14378
|
+
"text": "GaugeData"
|
|
14379
|
+
},
|
|
14380
|
+
"description": "Segmented data: `{ segments: [{ name, value, color? }] }` splits the arc between named parts; the\noptional `value` is the headline reading. Give it as a property (assign a new object to update the\ngauge and animate to it) or as JSON in the `data` attribute:\n`<void-gauge data='{\"segments\":[{\"name\":\"Used\",\"value\":40},{\"name\":\"Cache\",\"value\":15}]}'>`. Invalid\nJSON draws nothing and is reported by `@voidable/ui/dev`. The property is not reflected to the\nattribute, and an attribute a server morph leaves unchanged does not animate again. For a single\nreading, set the `value` attribute instead.",
|
|
14381
|
+
"default": "{}",
|
|
14382
|
+
"fieldName": "data"
|
|
14233
14383
|
}
|
|
14234
14384
|
],
|
|
14235
14385
|
"superclass": {
|
|
@@ -14290,7 +14440,7 @@
|
|
|
14290
14440
|
"declarations": [
|
|
14291
14441
|
{
|
|
14292
14442
|
"kind": "class",
|
|
14293
|
-
"description": "Animated open/close toggle for mobile navigation menus and collapsible sidebars.",
|
|
14443
|
+
"description": "Animated open/close toggle for mobile navigation menus and collapsible sidebars.\n\nName it by what it opens: `aria-label=\"Main navigation\"` (or `aria-labelledby`). Without one it is called \"Menu\" (\"Close menu\" while open).",
|
|
14294
14444
|
"name": "VoidHamburger",
|
|
14295
14445
|
"members": [
|
|
14296
14446
|
{
|
|
@@ -14520,9 +14670,9 @@
|
|
|
14520
14670
|
"events": [
|
|
14521
14671
|
{
|
|
14522
14672
|
"type": {
|
|
14523
|
-
"text": "CustomEvent<{ reason: 'trigger' }>"
|
|
14673
|
+
"text": "CustomEvent<{ reason: 'trigger' | 'keyboard' }>"
|
|
14524
14674
|
},
|
|
14525
|
-
"description": "The user opened it
|
|
14675
|
+
"description": "The user opened it: `trigger` for a click, `keyboard` for Enter or Space. Does not bubble.",
|
|
14526
14676
|
"name": "void-open"
|
|
14527
14677
|
},
|
|
14528
14678
|
{
|
|
@@ -14559,6 +14709,14 @@
|
|
|
14559
14709
|
},
|
|
14560
14710
|
"tagName": "void-hamburger",
|
|
14561
14711
|
"customElement": true,
|
|
14712
|
+
"voidName": {
|
|
14713
|
+
"attributes": [
|
|
14714
|
+
"aria-label",
|
|
14715
|
+
"aria-labelledby",
|
|
14716
|
+
"title"
|
|
14717
|
+
],
|
|
14718
|
+
"hint": "say what it opens: aria-label=\"Main navigation\""
|
|
14719
|
+
},
|
|
14562
14720
|
"voidRenamed": {
|
|
14563
14721
|
"attributes": {
|
|
14564
14722
|
"active": {
|
|
@@ -15989,7 +16147,7 @@
|
|
|
15989
16147
|
"declarations": [
|
|
15990
16148
|
{
|
|
15991
16149
|
"kind": "class",
|
|
15992
|
-
"description": "Line chart for trends over time with one or more series, linear or stepped, drawn in SVG with an animated\nentry. Give it `data` (`{ series: [{ name, values }], labels }`)
|
|
16150
|
+
"description": "Line chart for trends over time with one or more series, linear or stepped, drawn in SVG with an animated\nentry. Give it `data` (`{ series: [{ name, values }], labels }`) as the `data` property or as JSON in the\n`data` attribute, so server-rendered markup draws it with no script; it has no children. The drawing is\nhidden from assistive technology and a visually hidden data table (captioned with `aria-label`) carries\nthe values instead; add `show-table` to show the table below the chart too.",
|
|
15993
16151
|
"name": "VoidLineChart",
|
|
15994
16152
|
"members": [
|
|
15995
16153
|
{
|
|
@@ -16043,16 +16201,29 @@
|
|
|
16043
16201
|
"text": "string"
|
|
16044
16202
|
},
|
|
16045
16203
|
"default": "''",
|
|
16046
|
-
"description": "Accessible name of the chart, such as `Visitors per day
|
|
16204
|
+
"description": "Accessible name of the chart, such as `Visitors per day`; it is also the caption of the data table.\nSet it: the drawing itself is hidden from assistive technology.",
|
|
16047
16205
|
"attribute": "aria-label"
|
|
16048
16206
|
},
|
|
16207
|
+
{
|
|
16208
|
+
"kind": "field",
|
|
16209
|
+
"name": "showTable",
|
|
16210
|
+
"type": {
|
|
16211
|
+
"text": "boolean"
|
|
16212
|
+
},
|
|
16213
|
+
"default": "false",
|
|
16214
|
+
"description": "Show the data table (one row per point, one column per series) below the chart. The table is always\nthere for assistive technology; this makes it visible too.",
|
|
16215
|
+
"attribute": "show-table",
|
|
16216
|
+
"reflects": true
|
|
16217
|
+
},
|
|
16049
16218
|
{
|
|
16050
16219
|
"kind": "field",
|
|
16051
16220
|
"name": "data",
|
|
16052
16221
|
"type": {
|
|
16053
16222
|
"text": "LineChartData"
|
|
16054
16223
|
},
|
|
16055
|
-
"description": "The chart's data: `{ series: [{ name, values, color? }], labels? }`. `values` are aligned with `labels`\n(the names along the horizontal axis); `color` overrides a series' colour.
|
|
16224
|
+
"description": "The chart's data: `{ series: [{ name, values, color? }], labels? }`. `values` are aligned with `labels`\n(the names along the horizontal axis); `color` overrides a series' colour. Give it as a property\n(assign a new object to update the chart and animate to it) or as JSON in the `data` attribute:\n`<void-line-chart data='{\"series\":[{\"name\":\"Visitors\",\"values\":[3,5,4]}],\"labels\":[\"Mon\",\"Tue\",\"Wed\"]}'>`.\nInvalid JSON draws nothing and is reported by `@voidable/ui/dev`. The property is not reflected to the\nattribute (the data can be large), and an attribute a server morph leaves unchanged does not animate again.",
|
|
16225
|
+
"default": "{ series: [] }",
|
|
16226
|
+
"attribute": "data"
|
|
16056
16227
|
},
|
|
16057
16228
|
{
|
|
16058
16229
|
"kind": "field",
|
|
@@ -16299,8 +16470,26 @@
|
|
|
16299
16470
|
"text": "string"
|
|
16300
16471
|
},
|
|
16301
16472
|
"default": "''",
|
|
16302
|
-
"description": "Accessible name of the chart, such as `Visitors per day
|
|
16473
|
+
"description": "Accessible name of the chart, such as `Visitors per day`; it is also the caption of the data table.\nSet it: the drawing itself is hidden from assistive technology.",
|
|
16303
16474
|
"fieldName": "ariaLabel"
|
|
16475
|
+
},
|
|
16476
|
+
{
|
|
16477
|
+
"name": "show-table",
|
|
16478
|
+
"type": {
|
|
16479
|
+
"text": "boolean"
|
|
16480
|
+
},
|
|
16481
|
+
"default": "false",
|
|
16482
|
+
"description": "Show the data table (one row per point, one column per series) below the chart. The table is always\nthere for assistive technology; this makes it visible too.",
|
|
16483
|
+
"fieldName": "showTable"
|
|
16484
|
+
},
|
|
16485
|
+
{
|
|
16486
|
+
"name": "data",
|
|
16487
|
+
"type": {
|
|
16488
|
+
"text": "LineChartData"
|
|
16489
|
+
},
|
|
16490
|
+
"description": "The chart's data: `{ series: [{ name, values, color? }], labels? }`. `values` are aligned with `labels`\n(the names along the horizontal axis); `color` overrides a series' colour. Give it as a property\n(assign a new object to update the chart and animate to it) or as JSON in the `data` attribute:\n`<void-line-chart data='{\"series\":[{\"name\":\"Visitors\",\"values\":[3,5,4]}],\"labels\":[\"Mon\",\"Tue\",\"Wed\"]}'>`.\nInvalid JSON draws nothing and is reported by `@voidable/ui/dev`. The property is not reflected to the\nattribute (the data can be large), and an attribute a server morph leaves unchanged does not animate again.",
|
|
16491
|
+
"default": "{ series: [] }",
|
|
16492
|
+
"fieldName": "data"
|
|
16304
16493
|
}
|
|
16305
16494
|
],
|
|
16306
16495
|
"superclass": {
|
|
@@ -18767,7 +18956,7 @@
|
|
|
18767
18956
|
"declarations": [
|
|
18768
18957
|
{
|
|
18769
18958
|
"kind": "class",
|
|
18770
|
-
"description": "Top application navigation bar for branding, primary links, and user account controls.\n\nThe bar is a row: what you write inside it is laid out by the theme as it stands, with no part elements and\nnothing rendered. Use the patterns beside it for the usual contents: `<void-brand>` for the name or logo,\n`<void-nav-links>` for the links (mark the current page with `aria-current=\"page\"`) and `<void-spacer>` to\npush what follows to the far end.",
|
|
18959
|
+
"description": "Top application navigation bar for branding, primary links, and user account controls.\n\nThe bar is a row: what you write inside it is laid out by the theme as it stands, with no part elements and\nnothing rendered. Use the patterns beside it for the usual contents: `<void-brand>` for the name or logo,\n`<void-nav-links>` for the links (mark the current page with `aria-current=\"page\"`) and `<void-spacer>` to\npush what follows to the far end.\n\nThe bar is a `navigation` landmark. Where the page already has one around it (the bar sits inside a `<nav>`\nor an element with a navigation or other role of its own) or inside it (the links are already in a `<nav>`),\nit adds nothing, so landmarks never nest; a role you write on it is kept. When a page has more than one\nnavigation landmark, give each an `aria-label` (`<void-nav-bar aria-label=\"Primary\">`); with one, a name is optional.",
|
|
18771
18960
|
"name": "VoidNavBar",
|
|
18772
18961
|
"members": [
|
|
18773
18962
|
{
|
|
@@ -21007,6 +21196,17 @@
|
|
|
21007
21196
|
},
|
|
21008
21197
|
"tagName": "void-panel",
|
|
21009
21198
|
"customElement": true,
|
|
21199
|
+
"voidName": {
|
|
21200
|
+
"attributes": [
|
|
21201
|
+
"aria-label",
|
|
21202
|
+
"aria-labelledby",
|
|
21203
|
+
"title"
|
|
21204
|
+
],
|
|
21205
|
+
"parts": [
|
|
21206
|
+
"void-panel-title"
|
|
21207
|
+
],
|
|
21208
|
+
"hint": "write its title as <void-panel-header><void-panel-title>, or give it an aria-label"
|
|
21209
|
+
},
|
|
21010
21210
|
"voidHints": {
|
|
21011
21211
|
"label": "write <void-panel-header><void-panel-title>...</void-panel-title></void-panel-header> as the first child; the title names the panel"
|
|
21012
21212
|
},
|
|
@@ -22400,7 +22600,7 @@
|
|
|
22400
22600
|
"tag": "label"
|
|
22401
22601
|
}
|
|
22402
22602
|
],
|
|
22403
|
-
"hint": "
|
|
22603
|
+
"hint": "say what is progressing: aria-label=\"Uploading photo\""
|
|
22404
22604
|
}
|
|
22405
22605
|
}
|
|
22406
22606
|
],
|
|
@@ -24731,10 +24931,10 @@
|
|
|
24731
24931
|
"kind": "field",
|
|
24732
24932
|
"name": "side",
|
|
24733
24933
|
"type": {
|
|
24734
|
-
"text": "'
|
|
24934
|
+
"text": "'start' | 'end'"
|
|
24735
24935
|
},
|
|
24736
|
-
"default": "'
|
|
24737
|
-
"description": "Which
|
|
24936
|
+
"default": "'start'",
|
|
24937
|
+
"description": "Which side of the content the sidebar sits on, in the reading direction: `start` (default) or `end`.",
|
|
24738
24938
|
"attribute": "side",
|
|
24739
24939
|
"reflects": true
|
|
24740
24940
|
},
|
|
@@ -25006,10 +25206,10 @@
|
|
|
25006
25206
|
{
|
|
25007
25207
|
"name": "side",
|
|
25008
25208
|
"type": {
|
|
25009
|
-
"text": "'
|
|
25209
|
+
"text": "'start' | 'end'"
|
|
25010
25210
|
},
|
|
25011
|
-
"default": "'
|
|
25012
|
-
"description": "Which
|
|
25211
|
+
"default": "'start'",
|
|
25212
|
+
"description": "Which side of the content the sidebar sits on, in the reading direction: `start` (default) or `end`.",
|
|
25013
25213
|
"fieldName": "side"
|
|
25014
25214
|
}
|
|
25015
25215
|
],
|
|
@@ -25022,7 +25222,17 @@
|
|
|
25022
25222
|
"voidRenamed": {
|
|
25023
25223
|
"attributes": {
|
|
25024
25224
|
"position": {
|
|
25025
|
-
"to": "side"
|
|
25225
|
+
"to": "side",
|
|
25226
|
+
"values": {
|
|
25227
|
+
"left": "side=\"start\"",
|
|
25228
|
+
"right": "side=\"end\""
|
|
25229
|
+
}
|
|
25230
|
+
}
|
|
25231
|
+
},
|
|
25232
|
+
"values": {
|
|
25233
|
+
"side": {
|
|
25234
|
+
"left": "start",
|
|
25235
|
+
"right": "end"
|
|
25026
25236
|
}
|
|
25027
25237
|
},
|
|
25028
25238
|
"events": {
|
|
@@ -26078,7 +26288,7 @@
|
|
|
26078
26288
|
"declarations": [
|
|
26079
26289
|
{
|
|
26080
26290
|
"kind": "class",
|
|
26081
|
-
"description": "Key metric display for analytics dashboards and KPI summaries with label, value, delta, and trend.",
|
|
26291
|
+
"description": "Key metric display for analytics dashboards and KPI summaries with label, value, delta, and trend.\n\nWith a `label` it is a `group` named by the label; without one it has no role.",
|
|
26082
26292
|
"name": "VoidStat",
|
|
26083
26293
|
"members": [
|
|
26084
26294
|
{
|
|
@@ -27506,7 +27716,7 @@
|
|
|
27506
27716
|
"declarations": [
|
|
27507
27717
|
{
|
|
27508
27718
|
"kind": "class",
|
|
27509
|
-
"description": "Data table around a native `<table>`: sets how it looks (`striped`, `hoverable`, `compact`,\n`bordered`, `inset`), how it behaves when the container is narrow (`stack`) and when it is wider\nthan its container (`scrollable`, `sticky-header`, `sticky-column`).\n\n**Stacked presentation.** `stack` turns each row into a block of label and value pairs while the\ntable's container (not the viewport) is narrower than a breakpoint (`stack=\"48rem\"`, `stack=\"always\"`). The label of a cell is the\ntext of the header cell of its column; it is copied to the cell as `data-label` (a `data-label`\nwritten on a cell is kept). `data-stack` on a header cell sets the role of a column in the block:\n`title` (the block's heading, no label), `select` (a row checkbox, beside the title), `actions`\n(buttons, grouped at the end) or `hide` (left out). It is copied to the cells of the column.\n`data-align=\"end\"` on a header cell right-aligns a numeric column. Because browsers can drop table\nsemantics when `display` changes, a table with `stack` carries explicit table, row and cell roles.\n\n**Overflow.** Nothing is clipped by default, so a menu, popover or tooltip opened from a cell is\nalways fully visible. `scrollable` makes the table its own horizontal scroll region: it is\nfocusable and labelled (`label`, else the `<caption>`, else `aria-label`) only while it actually\noverflows, and fades its edges while there is more to scroll to. `max-height` makes the region\nscroll vertically too, which is what `sticky-header` needs; without it a sticky header sticks to\nthe page.",
|
|
27719
|
+
"description": "Data table around a native `<table>`: sets how it looks (`striped`, `hoverable`, `compact`,\n`bordered`, `inset`), how it behaves when the container is narrow (`stack`) and when it is wider\nthan its container (`scrollable`, `sticky-header`, `sticky-column`).\n\n**Stacked presentation.** `stack` turns each row into a block of label and value pairs while the\ntable's container (not the viewport) is narrower than a breakpoint (`stack=\"48rem\"`, `stack=\"always\"`). The label of a cell is the\ntext of the header cell of its column; it is copied to the cell as `data-label` (a `data-label`\nwritten on a cell is kept). `data-stack` on a header cell sets the role of a column in the block:\n`title` (the block's heading, no label), `select` (a row checkbox, beside the title), `actions`\n(buttons, grouped at the end) or `hide` (left out). It is copied to the cells of the column.\n`data-align=\"end\"` on a header cell right-aligns a numeric column. Because browsers can drop table\nsemantics when `display` changes, a table with `stack` carries explicit table, row and cell roles.\n\n**Name.** A table needs a name: write a `<caption>` (the caption part; it can be visually hidden), or an\n`aria-label` (or `label`) on the `<void-table>`, which the component copies onto the native `<table>`. `voidable check`\nreports a `<void-table>` with neither (rule `missing-name`).\n\n**Overflow.** Nothing is clipped by default, so a menu, popover or tooltip opened from a cell is\nalways fully visible. `scrollable` makes the table its own horizontal scroll region: it is\nfocusable and labelled (`label`, else the `<caption>`, else `aria-label`) only while it actually\noverflows, and fades its edges while there is more to scroll to. `max-height` makes the region\nscroll vertically too, which is what `sticky-header` needs; without it a sticky header sticks to\nthe page.",
|
|
27510
27720
|
"name": "VoidTable",
|
|
27511
27721
|
"cssProperties": [
|
|
27512
27722
|
{
|
|
@@ -27952,7 +28162,19 @@
|
|
|
27952
28162
|
"data-stack-title"
|
|
27953
28163
|
],
|
|
27954
28164
|
"tagName": "void-table",
|
|
27955
|
-
"customElement": true
|
|
28165
|
+
"customElement": true,
|
|
28166
|
+
"voidName": {
|
|
28167
|
+
"attributes": [
|
|
28168
|
+
"aria-label",
|
|
28169
|
+
"aria-labelledby",
|
|
28170
|
+
"title",
|
|
28171
|
+
"label"
|
|
28172
|
+
],
|
|
28173
|
+
"parts": [
|
|
28174
|
+
"caption"
|
|
28175
|
+
],
|
|
28176
|
+
"hint": "write a <caption> in the table, or give the void-table an aria-label"
|
|
28177
|
+
}
|
|
27956
28178
|
},
|
|
27957
28179
|
{
|
|
27958
28180
|
"kind": "variable",
|
|
@@ -29926,6 +30148,16 @@
|
|
|
29926
30148
|
"description": "Milliseconds before the toast closes itself. Defaults to 5000; 0 keeps it until dismissed. The timer\npauses while the pointer or focus is on the toast.",
|
|
29927
30149
|
"attribute": "duration"
|
|
29928
30150
|
},
|
|
30151
|
+
{
|
|
30152
|
+
"kind": "method",
|
|
30153
|
+
"name": "announcement",
|
|
30154
|
+
"return": {
|
|
30155
|
+
"type": {
|
|
30156
|
+
"text": "string"
|
|
30157
|
+
}
|
|
30158
|
+
},
|
|
30159
|
+
"description": "What a screen reader should say for this toast: its title, then its message (or, without parts, its text)."
|
|
30160
|
+
},
|
|
29929
30161
|
{
|
|
29930
30162
|
"kind": "method",
|
|
29931
30163
|
"name": "close",
|