@webtides/element-library 0.3.1 → 0.5.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/CHANGELOG.md +300 -0
- package/README.md +72 -56
- package/all.js +16 -0
- package/catalog.js +17 -1
- package/custom-elements.json +15912 -10065
- package/package.json +1 -1
- package/src/components/accordion/accordion.changelog.md +11 -0
- package/src/components/accordion/accordion.js +15 -3
- package/src/components/accordion/accordion.readme.md +27 -1
- package/src/components/accordion/accordion.style.js +19 -0
- package/src/components/app-bar/app-bar.changelog.md +24 -0
- package/src/components/app-bar/app-bar.define.js +3 -0
- package/src/components/app-bar/app-bar.js +91 -0
- package/src/components/app-bar/app-bar.readme.md +130 -0
- package/src/components/app-bar/app-bar.style.js +103 -0
- package/src/components/app-frame/app-frame.changelog.md +59 -0
- package/src/components/app-frame/app-frame.define.js +3 -0
- package/src/components/app-frame/app-frame.events.js +6 -0
- package/src/components/app-frame/app-frame.js +1085 -0
- package/src/components/app-frame/app-frame.readme.md +425 -0
- package/src/components/app-frame/app-frame.style.js +534 -0
- package/src/components/button/button.changelog.md +21 -0
- package/src/components/button/button.events.js +3 -0
- package/src/components/button/button.js +145 -3
- package/src/components/button/button.readme.md +72 -4
- package/src/components/button/button.style.js +167 -8
- package/src/components/button-group/button-group.changelog.md +10 -0
- package/src/components/button-group/button-group.readme.md +2 -0
- package/src/components/button-group/button-group.style.js +6 -2
- package/src/components/checkbox-group-field/checkbox-group-field.changelog.md +6 -0
- package/src/components/checkbox-group-field/checkbox-group-field.js +7 -2
- package/src/components/checkbox-group-field/checkbox-group-field.readme.md +23 -1
- package/src/components/combobox-field/combobox-field.changelog.md +6 -0
- package/src/components/combobox-field/combobox-field.readme.md +8 -0
- package/src/components/combobox-field/combobox-field.style.js +2 -0
- package/src/components/date-field/date-field.changelog.md +6 -0
- package/src/components/date-field/date-field.readme.md +10 -0
- package/src/components/date-field/date-field.style.js +8 -3
- package/src/components/description-list/description-list.changelog.md +42 -0
- package/src/components/description-list/description-list.define.js +3 -0
- package/src/components/description-list/description-list.js +49 -0
- package/src/components/description-list/description-list.readme.md +161 -0
- package/src/components/description-list/description-list.style.js +169 -0
- package/src/components/dialog/dialog.changelog.md +7 -0
- package/src/components/dialog/dialog.readme.md +5 -0
- package/src/components/dialog/dialog.style.js +17 -2
- package/src/components/divider/divider.changelog.md +6 -0
- package/src/components/divider/divider.readme.md +1 -1
- package/src/components/divider/divider.style.js +6 -0
- package/src/components/drawer/drawer.changelog.md +7 -0
- package/src/components/drawer/drawer.readme.md +7 -6
- package/src/components/drawer/drawer.style.js +35 -2
- package/src/components/dropdown/dropdown.readme.md +6 -1
- package/src/components/file-field/file-field.changelog.md +8 -0
- package/src/components/file-field/file-field.js +135 -5
- package/src/components/file-field/file-field.readme.md +35 -6
- package/src/components/file-field/file-field.style.js +71 -0
- package/src/components/form-field/form-field.js +1 -1
- package/src/components/input-field/input-field.changelog.md +10 -0
- package/src/components/input-field/input-field.js +192 -14
- package/src/components/input-field/input-field.readme.md +88 -2
- package/src/components/input-field/input-field.style.js +2 -0
- package/src/components/list/list.changelog.md +30 -0
- package/src/components/list/list.define.js +3 -0
- package/src/components/list/list.js +68 -0
- package/src/components/list/list.readme.md +123 -0
- package/src/components/list/list.style.js +56 -0
- package/src/components/list-item/list-item.changelog.md +40 -0
- package/src/components/list-item/list-item.define.js +3 -0
- package/src/components/list-item/list-item.js +130 -0
- package/src/components/list-item/list-item.readme.md +144 -0
- package/src/components/list-item/list-item.style.js +246 -0
- package/src/components/menu/menu.changelog.md +44 -0
- package/src/components/menu/menu.define.js +3 -0
- package/src/components/menu/menu.events.js +5 -0
- package/src/components/menu/menu.js +793 -0
- package/src/components/menu/menu.readme.md +313 -0
- package/src/components/menu/menu.style.js +59 -0
- package/src/components/menu-group/menu-group.changelog.md +20 -0
- package/src/components/menu-group/menu-group.define.js +3 -0
- package/src/components/menu-group/menu-group.js +44 -0
- package/src/components/menu-group/menu-group.readme.md +74 -0
- package/src/components/menu-group/menu-group.style.js +38 -0
- package/src/components/menu-item/menu-item.changelog.md +32 -0
- package/src/components/menu-item/menu-item.define.js +3 -0
- package/src/components/menu-item/menu-item.js +168 -0
- package/src/components/menu-item/menu-item.readme.md +132 -0
- package/src/components/menu-item/menu-item.style.js +117 -0
- package/src/components/nav/nav.changelog.md +35 -0
- package/src/components/nav/nav.define.js +3 -0
- package/src/components/nav/nav.js +212 -0
- package/src/components/nav/nav.readme.md +248 -0
- package/src/components/nav/nav.style.js +269 -0
- package/src/components/nav-item/nav-item.changelog.md +25 -0
- package/src/components/nav-item/nav-item.define.js +3 -0
- package/src/components/nav-item/nav-item.js +75 -0
- package/src/components/nav-item/nav-item.readme.md +111 -0
- package/src/components/nav-item/nav-item.style.js +159 -0
- package/src/components/otp-field/otp-field.changelog.md +6 -0
- package/src/components/otp-field/otp-field.readme.md +8 -0
- package/src/components/otp-field/otp-field.style.js +8 -3
- package/src/components/pagination/pagination.changelog.md +8 -0
- package/src/components/pagination/pagination.js +123 -49
- package/src/components/pagination/pagination.readme.md +24 -6
- package/src/components/pagination/pagination.style.js +11 -1
- package/src/components/password-field/password-field.changelog.md +7 -0
- package/src/components/password-field/password-field.readme.md +11 -1
- package/src/components/password-field/password-field.style.js +2 -0
- package/src/components/popover/popover.changelog.md +6 -0
- package/src/components/popover/popover.style.js +1 -0
- package/src/components/radio-field/radio-field.changelog.md +6 -0
- package/src/components/radio-field/radio-field.js +7 -2
- package/src/components/radio-field/radio-field.readme.md +23 -1
- package/src/components/scroll-to-top/scroll-to-top.changelog.md +7 -5
- package/src/components/scroll-to-top/scroll-to-top.js +16 -12
- package/src/components/scroll-to-top/scroll-to-top.readme.md +2 -0
- package/src/components/segmented-field/segmented-field.changelog.md +27 -0
- package/src/components/segmented-field/segmented-field.define.js +3 -0
- package/src/components/segmented-field/segmented-field.js +175 -0
- package/src/components/segmented-field/segmented-field.readme.md +140 -0
- package/src/components/segmented-field/segmented-field.style.js +193 -0
- package/src/components/splitter/splitter.changelog.md +24 -0
- package/src/components/splitter/splitter.define.js +3 -0
- package/src/components/splitter/splitter.events.js +4 -0
- package/src/components/splitter/splitter.js +237 -0
- package/src/components/splitter/splitter.readme.md +164 -0
- package/src/components/splitter/splitter.style.js +100 -0
- package/src/components/status-bar/status-bar.changelog.md +25 -0
- package/src/components/status-bar/status-bar.define.js +3 -0
- package/src/components/status-bar/status-bar.js +74 -0
- package/src/components/status-bar/status-bar.readme.md +139 -0
- package/src/components/status-bar/status-bar.style.js +122 -0
- package/src/components/tab-group/tab-group.changelog.md +7 -0
- package/src/components/tab-group/tab-group.js +30 -9
- package/src/components/tab-group/tab-group.readme.md +14 -0
- package/src/components/textarea-field/textarea-field.changelog.md +6 -0
- package/src/components/textarea-field/textarea-field.js +14 -1
- package/src/components/textarea-field/textarea-field.readme.md +23 -1
- package/src/components/toast/toast.changelog.md +6 -0
- package/src/components/toast/toast.readme.md +5 -3
- package/src/components/toast/toast.style.js +22 -6
- package/src/components/toolbar/toolbar.changelog.md +24 -0
- package/src/components/toolbar/toolbar.define.js +3 -0
- package/src/components/toolbar/toolbar.js +233 -0
- package/src/components/toolbar/toolbar.readme.md +156 -0
- package/src/components/toolbar/toolbar.style.js +49 -0
- package/src/components/tooltip/tooltip.changelog.md +11 -0
- package/src/components/tooltip/tooltip.js +51 -4
- package/src/components/tooltip/tooltip.readme.md +26 -1
- package/src/components/tree/tree.changelog.md +23 -0
- package/src/components/tree/tree.define.js +3 -0
- package/src/components/tree/tree.js +138 -0
- package/src/components/tree/tree.readme.md +119 -0
- package/src/components/tree/tree.style.js +16 -0
- package/src/components/tree-item/tree-item.changelog.md +23 -0
- package/src/components/tree-item/tree-item.define.js +3 -0
- package/src/components/tree-item/tree-item.events.js +3 -0
- package/src/components/tree-item/tree-item.js +246 -0
- package/src/components/tree-item/tree-item.readme.md +128 -0
- package/src/components/tree-item/tree-item.style.js +226 -0
- package/src/styles/appearance.style.js +47 -0
- package/src/styles/choice-group.style.js +27 -1
- package/src/styles/input-control.style.js +87 -0
- package/src/styles/modal.style.js +14 -1
- package/src/styles/native.css +100 -0
- package/src/styles/size.style.js +41 -0
- package/src/utils/floating.js +15 -1
- package/src/utils/focus.js +69 -0
- package/src/utils/options.js +35 -0
- package/src/utils/scroll.js +24 -0
- package/src/utils/text-entry-attributes.js +13 -0
- package/types/all.d.ts +16 -0
- package/types/src/components/accordion/accordion.d.ts +3 -1
- package/types/src/components/app-bar/app-bar.d.ts +43 -0
- package/types/src/components/app-bar/app-bar.define.d.ts +1 -0
- package/types/src/components/app-bar/app-bar.style.d.ts +2 -0
- package/types/src/components/app-frame/app-frame.d.ts +497 -0
- package/types/src/components/app-frame/app-frame.define.d.ts +1 -0
- package/types/src/components/app-frame/app-frame.events.d.ts +7 -0
- package/types/src/components/app-frame/app-frame.style.d.ts +8 -0
- package/types/src/components/button/button.d.ts +61 -0
- package/types/src/components/button/button.events.d.ts +4 -0
- package/types/src/components/checkbox-group-field/checkbox-group-field.d.ts +5 -2
- package/types/src/components/combobox-field/combobox-field.d.ts +10 -0
- package/types/src/components/date-field/date-field.d.ts +10 -0
- package/types/src/components/description-list/description-list.d.ts +34 -0
- package/types/src/components/description-list/description-list.define.d.ts +1 -0
- package/types/src/components/description-list/description-list.style.d.ts +2 -0
- package/types/src/components/file-field/file-field.d.ts +68 -3
- package/types/src/components/form-field/form-field.d.ts +1 -1
- package/types/src/components/input-field/input-field.d.ts +99 -0
- package/types/src/components/list/list.d.ts +41 -0
- package/types/src/components/list/list.define.d.ts +1 -0
- package/types/src/components/list/list.style.d.ts +2 -0
- package/types/src/components/list-item/list-item.d.ts +64 -0
- package/types/src/components/list-item/list-item.define.d.ts +1 -0
- package/types/src/components/list-item/list-item.style.d.ts +2 -0
- package/types/src/components/menu/menu.d.ts +362 -0
- package/types/src/components/menu/menu.define.d.ts +1 -0
- package/types/src/components/menu/menu.events.d.ts +6 -0
- package/types/src/components/menu/menu.style.d.ts +2 -0
- package/types/src/components/menu-group/menu-group.d.ts +24 -0
- package/types/src/components/menu-group/menu-group.define.d.ts +1 -0
- package/types/src/components/menu-group/menu-group.style.d.ts +2 -0
- package/types/src/components/menu-item/menu-item.d.ts +80 -0
- package/types/src/components/menu-item/menu-item.define.d.ts +1 -0
- package/types/src/components/menu-item/menu-item.style.d.ts +2 -0
- package/types/src/components/nav/nav.d.ts +103 -0
- package/types/src/components/nav/nav.define.d.ts +1 -0
- package/types/src/components/nav/nav.style.d.ts +2 -0
- package/types/src/components/nav-item/nav-item.d.ts +39 -0
- package/types/src/components/nav-item/nav-item.define.d.ts +1 -0
- package/types/src/components/nav-item/nav-item.style.d.ts +2 -0
- package/types/src/components/otp-field/otp-field.d.ts +10 -0
- package/types/src/components/pagination/pagination.d.ts +31 -2
- package/types/src/components/password-field/password-field.d.ts +10 -0
- package/types/src/components/radio-field/radio-field.d.ts +5 -2
- package/types/src/components/scroll-to-top/scroll-to-top.d.ts +6 -5
- package/types/src/components/segmented-field/segmented-field.d.ts +85 -0
- package/types/src/components/segmented-field/segmented-field.define.d.ts +1 -0
- package/types/src/components/segmented-field/segmented-field.style.d.ts +2 -0
- package/types/src/components/splitter/splitter.d.ts +127 -0
- package/types/src/components/splitter/splitter.define.d.ts +1 -0
- package/types/src/components/splitter/splitter.events.d.ts +5 -0
- package/types/src/components/splitter/splitter.style.d.ts +2 -0
- package/types/src/components/status-bar/status-bar.d.ts +44 -0
- package/types/src/components/status-bar/status-bar.define.d.ts +1 -0
- package/types/src/components/status-bar/status-bar.style.d.ts +2 -0
- package/types/src/components/tab-group/tab-group.d.ts +17 -0
- package/types/src/components/textarea-field/textarea-field.d.ts +7 -0
- package/types/src/components/toolbar/toolbar.d.ts +96 -0
- package/types/src/components/toolbar/toolbar.define.d.ts +1 -0
- package/types/src/components/toolbar/toolbar.style.d.ts +2 -0
- package/types/src/components/tooltip/tooltip.d.ts +26 -0
- package/types/src/components/tree/tree.d.ts +62 -0
- package/types/src/components/tree/tree.define.d.ts +1 -0
- package/types/src/components/tree/tree.style.d.ts +2 -0
- package/types/src/components/tree-item/tree-item.d.ts +106 -0
- package/types/src/components/tree-item/tree-item.define.d.ts +1 -0
- package/types/src/components/tree-item/tree-item.events.d.ts +4 -0
- package/types/src/components/tree-item/tree-item.style.d.ts +2 -0
- package/types/src/styles/appearance.style.d.ts +31 -0
- package/types/src/styles/choice-group.style.d.ts +1 -1
- package/types/src/styles/input-control.style.d.ts +15 -0
- package/types/src/styles/modal.style.d.ts +5 -0
- package/types/src/styles/size.style.d.ts +24 -0
- package/types/src/utils/floating.d.ts +11 -0
- package/types/src/utils/focus.d.ts +25 -0
- package/types/src/utils/options.d.ts +17 -0
- package/types/src/utils/scroll.d.ts +11 -0
- package/types/src/utils/text-entry-attributes.d.ts +10 -0
- package/web-types.json +2935 -308
package/web-types.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
|
|
3
3
|
"name": "@webtides/element-library",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.5.0",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"attributes": [
|
|
53
53
|
{
|
|
54
54
|
"name": "open",
|
|
55
|
-
"description": "Controls whether the accordion is expanded (`true`) or collapsed (`false`). Reflected to the `open` attribute.",
|
|
55
|
+
"description": "Controls whether the accordion is expanded (`true`) or collapsed (`false`). Reflected to the `open` attribute. The stylesheet of the element reads that attribute: an accordion without `open=\"true\"` shows its header alone, before the element starts as well.",
|
|
56
56
|
"value": {
|
|
57
57
|
"type": "boolean"
|
|
58
58
|
},
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
"properties": [
|
|
84
84
|
{
|
|
85
85
|
"name": "open",
|
|
86
|
-
"description": "Controls whether the accordion is expanded (`true`) or collapsed (`false`). Reflected to the `open` attribute.",
|
|
86
|
+
"description": "Controls whether the accordion is expanded (`true`) or collapsed (`false`). Reflected to the `open` attribute. The stylesheet of the element reads that attribute: an accordion without `open=\"true\"` shows its header alone, before the element starts as well.",
|
|
87
87
|
"type": "boolean"
|
|
88
88
|
}
|
|
89
89
|
],
|
|
@@ -353,6 +353,382 @@
|
|
|
353
353
|
"symbol": "default"
|
|
354
354
|
}
|
|
355
355
|
},
|
|
356
|
+
{
|
|
357
|
+
"name": "el-app-bar",
|
|
358
|
+
"description": "The bar at the top of a view: which view this is, a way back or to the navigation at its start,\nand a few actions at its end. One row: a title that does not fit is cut with an ellipsis and\nnever pushes the actions out.\n\nIn the header of an `el-app-frame` the surface of the bar reaches up under the status bar of a\nphone, and its content stays below it. The bar is no landmark: the `header` of the page is.\n\nThe look is the stylesheet alone, so a server-rendered bar does not change when the element\ntakes over.\n\n---\n\n\n### **Slots:**\n - _default_ - The title of the view.\n- **start** - What is in front of the title: a button back, or the one for the navigation.\n- **end** - The actions of the view, at the end of the bar.\n\n### **CSS Parts:**\n - **base** - The bar: its surface and the line to the content.\n- **row** - The row of the start, the title and the end.\n- **start** - The region in front of the title.\n- **title** - The title. A heading while `heading-level` is set.\n- **end** - The region at the end.",
|
|
359
|
+
"doc-url": "",
|
|
360
|
+
"attributes": [
|
|
361
|
+
{
|
|
362
|
+
"name": "heading-level",
|
|
363
|
+
"description": "Makes the title the heading of the view, at this level (1 to 6). Unset, the title is text. Default `0`.",
|
|
364
|
+
"value": {
|
|
365
|
+
"type": "number"
|
|
366
|
+
},
|
|
367
|
+
"source": {
|
|
368
|
+
"module": "./src/components/app-bar/app-bar.js",
|
|
369
|
+
"symbol": "default"
|
|
370
|
+
}
|
|
371
|
+
},
|
|
372
|
+
{
|
|
373
|
+
"name": "appearance",
|
|
374
|
+
"description": "The appearance of the buttons in the bar that have none of their own. Default `'plain'`. Reflected to the `appearance` attribute.",
|
|
375
|
+
"value": {
|
|
376
|
+
"type": "'filled'|'outlined'|'plain'"
|
|
377
|
+
},
|
|
378
|
+
"source": {
|
|
379
|
+
"module": "./src/components/app-bar/app-bar.js",
|
|
380
|
+
"symbol": "default"
|
|
381
|
+
}
|
|
382
|
+
}
|
|
383
|
+
],
|
|
384
|
+
"slots": [
|
|
385
|
+
{
|
|
386
|
+
"name": "",
|
|
387
|
+
"description": "The title of the view."
|
|
388
|
+
},
|
|
389
|
+
{
|
|
390
|
+
"name": "start",
|
|
391
|
+
"description": "What is in front of the title: a button back, or the one for the navigation."
|
|
392
|
+
},
|
|
393
|
+
{
|
|
394
|
+
"name": "end",
|
|
395
|
+
"description": "The actions of the view, at the end of the bar."
|
|
396
|
+
}
|
|
397
|
+
],
|
|
398
|
+
"events": [],
|
|
399
|
+
"js": {
|
|
400
|
+
"properties": [
|
|
401
|
+
{
|
|
402
|
+
"name": "headingLevel",
|
|
403
|
+
"description": "Makes the title the heading of the view, at this level (1 to 6). Unset, the title is text. Default `0`.",
|
|
404
|
+
"type": "number"
|
|
405
|
+
},
|
|
406
|
+
{
|
|
407
|
+
"name": "appearance",
|
|
408
|
+
"description": "The appearance of the buttons in the bar that have none of their own. Default `'plain'`. Reflected to the `appearance` attribute.",
|
|
409
|
+
"type": "'filled'|'outlined'|'plain'"
|
|
410
|
+
}
|
|
411
|
+
],
|
|
412
|
+
"events": []
|
|
413
|
+
},
|
|
414
|
+
"source": {
|
|
415
|
+
"module": "./src/components/app-bar/app-bar.js",
|
|
416
|
+
"symbol": "default"
|
|
417
|
+
}
|
|
418
|
+
},
|
|
419
|
+
{
|
|
420
|
+
"name": "el-app-frame",
|
|
421
|
+
"description": "The frame of an application: it fills what the browser shows and lays out five regions, a\nheader, a footer, a navigation at the start side, an aside at the end side, and the content.\nThe header and the footer stay in view, and the content scrolls between them.\n\nThe frame knows regions, not what they mean. The page writes the elements that say so, the\nlandmarks, and slots them: `<header slot=\"header\">`, `<nav slot=\"navigation\" aria-label=\"…\">`,\n`<main id=\"…\">`, `<aside slot=\"aside\">`, `<footer slot=\"footer\">`. The frame adds the layout,\nthe room for the notch and the home indicator of a phone, and a link that skips to the content\nas the first stop of the Tab key. That link lies in the one landmark the frame has of its own,\na navigation the page names (`skip-landmark-label`): content of a page belongs into a landmark.\n\nFrom the width `wide-from` names, the navigation and the aside are columns beside the content,\nand each scrolls on its own. Where the frame is narrow, the content and the aside are one\ncolumn that scrolls, and the navigation does not show: it opens as a drawer from the start\nedge, from any element with `data-navigation-toggle`. The page writes the navigation once.\n\nThe width is the one of the frame, and the stylesheet alone decides: a server-rendered frame\nhas its layout before the script has run.\n\n`resizable` names the columns whose width the user sets by dragging their edge, an\n`el-splitter` of the frame. `navigation-size` and `aside-size` are those widths: the frame tells\nof them, and the page keeps them and gives them back.\n\nWhere a browser lays its on-screen keyboard over the page, the frame is as high as what shows\nabove the keyboard, and where that part is: the header stays in view, and the field the user\ntypes into does. That needs the script.\n\nWith `status-bar-tap` a tap on the status bar of an iPhone brings the content to its top, as it\ndoes in an application. iOS scrolls the document for that tap and never a region, so the frame\nkeeps the document scrolled by one pixel there, and hears it go back. The document snaps to\nthat pixel: a script of the page that scrolls the window does not move it, and is no tap.\n\n---\n\n\n### **Events:**\n - **app-frame-navigation-toggle** - Fired when the drawer of the navigation opens or closes, with the new state in `detail.open`.\n- **app-frame-resize** - Fired with every change the user makes to the width of a column: while its edge is dragged, and with every key. The new width in pixels is in `detail.size`.\n- **app-frame-resize-end** - Fired once the user has set a width: when the pointer lets go of the edge, and with every key. The width to keep is in `detail.size`.\n- **app-frame-status-bar-tap** - Fired when the user has tapped the status bar of an iPhone, with `status-bar-tap`. The frame scrolls its content to the top after it, unless a listener calls `preventDefault()`: a view whose columns scroll brings those to their tops.\n\n### **Slots:**\n - _default_ - The content of the view: the `main` of the page, with an id for the skip link.\n- **header** - The region at the top, an app bar as a rule. Left out while it is empty.\n- **navigation** - The region at the start side, and the content of the drawer where the frame is narrow. Left out while it is empty.\n- **aside** - The region at the end side. Left out while it is empty.\n- **footer** - The region at the lower edge. Left out while it is empty.\n\n### **CSS Properties:**\n - **--el-app-frame-navigation-size** - The width of the navigation where the frame is wide, and of its drawer where it is narrow. Default `16rem`. `auto` is the width of what is in it. _(default: undefined)_\n- **--el-app-frame-aside-size** - The width of the aside where the frame is wide. Default `20rem`. _(default: undefined)_\n- **--el-app-frame-navigation-min-size** - The least width of a navigation that is resizable. Default `10rem`. _(default: undefined)_\n- **--el-app-frame-navigation-max-size** - The greatest width of a navigation that is resizable. Default `min(30rem, 40cqi)`: two fifths of the width of the frame at most. _(default: undefined)_\n- **--el-app-frame-aside-min-size** - The least width of an aside that is resizable. Default `10rem`. _(default: undefined)_\n- **--el-app-frame-aside-max-size** - The greatest width of an aside that is resizable. Default `min(30rem, 40cqi)`. _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The frame: the grid of the regions.\n- **skip-landmark** - The landmark the skip link lies in: a `<nav>`.\n- **skip-link** - The link that skips to the content. It shows while it has the focus.\n- **header** - The region at the top. Its surface reaches under the status bar of a phone.\n- **navigation** - The region at the start side, where the frame is wide.\n- **body** - The content and the aside. Where the frame is narrow, it is what scrolls.\n- **content** - The region of the content. Where the frame is wide, it is what scrolls.\n- **aside** - The region at the end side.\n- **footer** - The region at the lower edge. Its surface reaches under the home indicator.\n- **drawer** - The surface of the drawer the navigation is in where the frame is narrow.\n- **drawer-header** - The header of that drawer, with its title and its close button.\n- **drawer-title** - The title of that drawer.\n- **drawer-close-button** - The close button of that drawer.\n- **drawer-body** - The body of that drawer: the navigation of the page is in it.\n- **navigation-splitter** - The edge of the navigation the user drags, an `el-splitter`.\n- **aside-splitter** - The edge of the aside the user drags, an `el-splitter`.",
|
|
422
|
+
"doc-url": "",
|
|
423
|
+
"attributes": [
|
|
424
|
+
{
|
|
425
|
+
"name": "skip-label",
|
|
426
|
+
"description": "The text of the link that skips to the content. Default `'Skip to content'`.",
|
|
427
|
+
"value": {
|
|
428
|
+
"type": "string"
|
|
429
|
+
},
|
|
430
|
+
"source": {
|
|
431
|
+
"module": "./src/components/app-frame/app-frame.js",
|
|
432
|
+
"symbol": "default"
|
|
433
|
+
}
|
|
434
|
+
},
|
|
435
|
+
{
|
|
436
|
+
"name": "skip-landmark-label",
|
|
437
|
+
"description": "The name of the landmark that link lies in, a navigation, for assistive technology. It has to differ from the names of the other navigations of the page. Default `'Skip link'`.",
|
|
438
|
+
"value": {
|
|
439
|
+
"type": "string"
|
|
440
|
+
},
|
|
441
|
+
"source": {
|
|
442
|
+
"module": "./src/components/app-frame/app-frame.js",
|
|
443
|
+
"symbol": "default"
|
|
444
|
+
}
|
|
445
|
+
},
|
|
446
|
+
{
|
|
447
|
+
"name": "wide-from",
|
|
448
|
+
"description": "The width of the frame from which the navigation and the aside are columns beside the content. One of the steps the stylesheet knows, another value is the default. Default `'48rem'`.",
|
|
449
|
+
"value": {
|
|
450
|
+
"type": "'30rem'|'40rem'|'48rem'|'64rem'|'80rem'"
|
|
451
|
+
},
|
|
452
|
+
"source": {
|
|
453
|
+
"module": "./src/components/app-frame/app-frame.js",
|
|
454
|
+
"symbol": "default"
|
|
455
|
+
}
|
|
456
|
+
},
|
|
457
|
+
{
|
|
458
|
+
"name": "narrow-only",
|
|
459
|
+
"description": "The regions that are there only where the frame is narrow, as their names with a space between them: `header`, `navigation`, `aside`, `footer`. A bar of destinations in the footer of a phone, for example (`narrow-only=\"footer\"`). Default `''`.",
|
|
460
|
+
"value": {
|
|
461
|
+
"type": "string"
|
|
462
|
+
},
|
|
463
|
+
"source": {
|
|
464
|
+
"module": "./src/components/app-frame/app-frame.js",
|
|
465
|
+
"symbol": "default"
|
|
466
|
+
}
|
|
467
|
+
},
|
|
468
|
+
{
|
|
469
|
+
"name": "wide-only",
|
|
470
|
+
"description": "The regions that are there only where the frame is wide, named the same way. Default `''`.",
|
|
471
|
+
"value": {
|
|
472
|
+
"type": "string"
|
|
473
|
+
},
|
|
474
|
+
"source": {
|
|
475
|
+
"module": "./src/components/app-frame/app-frame.js",
|
|
476
|
+
"symbol": "default"
|
|
477
|
+
}
|
|
478
|
+
},
|
|
479
|
+
{
|
|
480
|
+
"name": "narrow-navigation",
|
|
481
|
+
"description": "What the navigation is where the frame is narrow. `drawer`: it does not show, and opens as a drawer. `bar`: its region lies at the lower edge, for an `el-nav` whose destinations are a bar there and a rail in the column of the wide frame. Default `'drawer'`.",
|
|
482
|
+
"value": {
|
|
483
|
+
"type": "'drawer'|'bar'"
|
|
484
|
+
},
|
|
485
|
+
"source": {
|
|
486
|
+
"module": "./src/components/app-frame/app-frame.js",
|
|
487
|
+
"symbol": "default"
|
|
488
|
+
}
|
|
489
|
+
},
|
|
490
|
+
{
|
|
491
|
+
"name": "navigation-open",
|
|
492
|
+
"description": "Whether the drawer of the navigation is open. It is one only where the frame is narrow: elsewhere the property is `false`. Reflected to the `navigation-open` attribute.",
|
|
493
|
+
"value": {
|
|
494
|
+
"type": "boolean"
|
|
495
|
+
},
|
|
496
|
+
"source": {
|
|
497
|
+
"module": "./src/components/app-frame/app-frame.js",
|
|
498
|
+
"symbol": "default"
|
|
499
|
+
}
|
|
500
|
+
},
|
|
501
|
+
{
|
|
502
|
+
"name": "navigation-label",
|
|
503
|
+
"description": "The title of the drawer of the navigation, and its name for assistive technology. Default `'Navigation'`.",
|
|
504
|
+
"value": {
|
|
505
|
+
"type": "string"
|
|
506
|
+
},
|
|
507
|
+
"source": {
|
|
508
|
+
"module": "./src/components/app-frame/app-frame.js",
|
|
509
|
+
"symbol": "default"
|
|
510
|
+
}
|
|
511
|
+
},
|
|
512
|
+
{
|
|
513
|
+
"name": "close-label",
|
|
514
|
+
"description": "The name of the close button of that drawer. Default `'Close'`.",
|
|
515
|
+
"value": {
|
|
516
|
+
"type": "string"
|
|
517
|
+
},
|
|
518
|
+
"source": {
|
|
519
|
+
"module": "./src/components/app-frame/app-frame.js",
|
|
520
|
+
"symbol": "default"
|
|
521
|
+
}
|
|
522
|
+
},
|
|
523
|
+
{
|
|
524
|
+
"name": "resizable",
|
|
525
|
+
"description": "The columns whose width the user sets by dragging their edge, as their names with a space between them: `navigation`, `aside`. Default `''`.",
|
|
526
|
+
"value": {
|
|
527
|
+
"type": "string"
|
|
528
|
+
},
|
|
529
|
+
"source": {
|
|
530
|
+
"module": "./src/components/app-frame/app-frame.js",
|
|
531
|
+
"symbol": "default"
|
|
532
|
+
}
|
|
533
|
+
},
|
|
534
|
+
{
|
|
535
|
+
"name": "navigation-size",
|
|
536
|
+
"description": "The width of the navigation where the frame is wide, in pixels: the one the user has set, or the one the page has kept. `0` is the width of the stylesheet (`--el-app-frame-navigation-size`). Default `0`.",
|
|
537
|
+
"value": {
|
|
538
|
+
"type": "number"
|
|
539
|
+
},
|
|
540
|
+
"source": {
|
|
541
|
+
"module": "./src/components/app-frame/app-frame.js",
|
|
542
|
+
"symbol": "default"
|
|
543
|
+
}
|
|
544
|
+
},
|
|
545
|
+
{
|
|
546
|
+
"name": "aside-size",
|
|
547
|
+
"description": "The width of the aside where the frame is wide, in pixels. `0` is the width of the stylesheet (`--el-app-frame-aside-size`). Default `0`.",
|
|
548
|
+
"value": {
|
|
549
|
+
"type": "number"
|
|
550
|
+
},
|
|
551
|
+
"source": {
|
|
552
|
+
"module": "./src/components/app-frame/app-frame.js",
|
|
553
|
+
"symbol": "default"
|
|
554
|
+
}
|
|
555
|
+
},
|
|
556
|
+
{
|
|
557
|
+
"name": "aside-label",
|
|
558
|
+
"description": "The name of the aside for assistive technology, on the edge that sizes it. The edge of the navigation has `navigation-label`. Default `'Aside'`.",
|
|
559
|
+
"value": {
|
|
560
|
+
"type": "string"
|
|
561
|
+
},
|
|
562
|
+
"source": {
|
|
563
|
+
"module": "./src/components/app-frame/app-frame.js",
|
|
564
|
+
"symbol": "default"
|
|
565
|
+
}
|
|
566
|
+
},
|
|
567
|
+
{
|
|
568
|
+
"name": "status-bar-tap",
|
|
569
|
+
"description": "Whether a tap on the status bar of an iPhone brings the content to its top. The document of the page is one pixel higher than the viewport then, and snaps to that pixel. Default `false`.",
|
|
570
|
+
"value": {
|
|
571
|
+
"type": "boolean"
|
|
572
|
+
},
|
|
573
|
+
"source": {
|
|
574
|
+
"module": "./src/components/app-frame/app-frame.js",
|
|
575
|
+
"symbol": "default"
|
|
576
|
+
}
|
|
577
|
+
}
|
|
578
|
+
],
|
|
579
|
+
"slots": [
|
|
580
|
+
{
|
|
581
|
+
"name": "",
|
|
582
|
+
"description": "The content of the view: the `main` of the page, with an id for the skip link."
|
|
583
|
+
},
|
|
584
|
+
{
|
|
585
|
+
"name": "header",
|
|
586
|
+
"description": "The region at the top, an app bar as a rule. Left out while it is empty."
|
|
587
|
+
},
|
|
588
|
+
{
|
|
589
|
+
"name": "navigation",
|
|
590
|
+
"description": "The region at the start side, and the content of the drawer where the frame is narrow. Left out while it is empty."
|
|
591
|
+
},
|
|
592
|
+
{
|
|
593
|
+
"name": "aside",
|
|
594
|
+
"description": "The region at the end side. Left out while it is empty."
|
|
595
|
+
},
|
|
596
|
+
{
|
|
597
|
+
"name": "footer",
|
|
598
|
+
"description": "The region at the lower edge. Left out while it is empty."
|
|
599
|
+
}
|
|
600
|
+
],
|
|
601
|
+
"events": [
|
|
602
|
+
{
|
|
603
|
+
"name": "app-frame-navigation-toggle",
|
|
604
|
+
"type": "CustomEvent<{ open: boolean }>",
|
|
605
|
+
"description": "Fired when the drawer of the navigation opens or closes, with the new state in `detail.open`."
|
|
606
|
+
},
|
|
607
|
+
{
|
|
608
|
+
"name": "app-frame-resize",
|
|
609
|
+
"type": "CustomEvent<{ region: 'navigation'|'aside', size: number }>",
|
|
610
|
+
"description": "Fired with every change the user makes to the width of a column: while its edge is dragged, and with every key. The new width in pixels is in `detail.size`."
|
|
611
|
+
},
|
|
612
|
+
{
|
|
613
|
+
"name": "app-frame-resize-end",
|
|
614
|
+
"type": "CustomEvent<{ region: 'navigation'|'aside', size: number }>",
|
|
615
|
+
"description": "Fired once the user has set a width: when the pointer lets go of the edge, and with every key. The width to keep is in `detail.size`."
|
|
616
|
+
},
|
|
617
|
+
{
|
|
618
|
+
"name": "app-frame-status-bar-tap",
|
|
619
|
+
"type": "CustomEvent",
|
|
620
|
+
"description": "Fired when the user has tapped the status bar of an iPhone, with `status-bar-tap`. The frame scrolls its content to the top after it, unless a listener calls `preventDefault()`: a view whose columns scroll brings those to their tops."
|
|
621
|
+
}
|
|
622
|
+
],
|
|
623
|
+
"js": {
|
|
624
|
+
"properties": [
|
|
625
|
+
{
|
|
626
|
+
"name": "wide",
|
|
627
|
+
"description": "Whether the frame is wide: the navigation, the content and the aside are beside each other.\nThe stylesheet decides, by the width of the frame and its `wide-from`; this reads what it\nhas decided, so the width is written in one place."
|
|
628
|
+
},
|
|
629
|
+
{
|
|
630
|
+
"name": "scroller",
|
|
631
|
+
"description": "The element that scrolls the content: the region of the content where the frame is wide,\nthe column of the content and the aside where it is narrow. For a page that sets the scroll\nback after a change of the view, or brings a position back. The window does not scroll in a\nframe."
|
|
632
|
+
},
|
|
633
|
+
{
|
|
634
|
+
"name": "skipLabel",
|
|
635
|
+
"description": "The text of the link that skips to the content. Default `'Skip to content'`.",
|
|
636
|
+
"type": "string"
|
|
637
|
+
},
|
|
638
|
+
{
|
|
639
|
+
"name": "skipLandmarkLabel",
|
|
640
|
+
"description": "The name of the landmark that link lies in, a navigation, for assistive technology. It has to differ from the names of the other navigations of the page. Default `'Skip link'`.",
|
|
641
|
+
"type": "string"
|
|
642
|
+
},
|
|
643
|
+
{
|
|
644
|
+
"name": "wideFrom",
|
|
645
|
+
"description": "The width of the frame from which the navigation and the aside are columns beside the content. One of the steps the stylesheet knows, another value is the default. Default `'48rem'`.",
|
|
646
|
+
"type": "'30rem'|'40rem'|'48rem'|'64rem'|'80rem'"
|
|
647
|
+
},
|
|
648
|
+
{
|
|
649
|
+
"name": "narrowOnly",
|
|
650
|
+
"description": "The regions that are there only where the frame is narrow, as their names with a space between them: `header`, `navigation`, `aside`, `footer`. A bar of destinations in the footer of a phone, for example (`narrow-only=\"footer\"`). Default `''`.",
|
|
651
|
+
"type": "string"
|
|
652
|
+
},
|
|
653
|
+
{
|
|
654
|
+
"name": "wideOnly",
|
|
655
|
+
"description": "The regions that are there only where the frame is wide, named the same way. Default `''`.",
|
|
656
|
+
"type": "string"
|
|
657
|
+
},
|
|
658
|
+
{
|
|
659
|
+
"name": "narrowNavigation",
|
|
660
|
+
"description": "What the navigation is where the frame is narrow. `drawer`: it does not show, and opens as a drawer. `bar`: its region lies at the lower edge, for an `el-nav` whose destinations are a bar there and a rail in the column of the wide frame. Default `'drawer'`.",
|
|
661
|
+
"type": "'drawer'|'bar'"
|
|
662
|
+
},
|
|
663
|
+
{
|
|
664
|
+
"name": "navigationOpen",
|
|
665
|
+
"description": "Whether the drawer of the navigation is open. It is one only where the frame is narrow: elsewhere the property is `false`. Reflected to the `navigation-open` attribute.",
|
|
666
|
+
"type": "boolean"
|
|
667
|
+
},
|
|
668
|
+
{
|
|
669
|
+
"name": "navigationLabel",
|
|
670
|
+
"description": "The title of the drawer of the navigation, and its name for assistive technology. Default `'Navigation'`.",
|
|
671
|
+
"type": "string"
|
|
672
|
+
},
|
|
673
|
+
{
|
|
674
|
+
"name": "closeLabel",
|
|
675
|
+
"description": "The name of the close button of that drawer. Default `'Close'`.",
|
|
676
|
+
"type": "string"
|
|
677
|
+
},
|
|
678
|
+
{
|
|
679
|
+
"name": "resizable",
|
|
680
|
+
"description": "The columns whose width the user sets by dragging their edge, as their names with a space between them: `navigation`, `aside`. Default `''`.",
|
|
681
|
+
"type": "string"
|
|
682
|
+
},
|
|
683
|
+
{
|
|
684
|
+
"name": "navigationSize",
|
|
685
|
+
"description": "The width of the navigation where the frame is wide, in pixels: the one the user has set, or the one the page has kept. `0` is the width of the stylesheet (`--el-app-frame-navigation-size`). Default `0`.",
|
|
686
|
+
"type": "number"
|
|
687
|
+
},
|
|
688
|
+
{
|
|
689
|
+
"name": "asideSize",
|
|
690
|
+
"description": "The width of the aside where the frame is wide, in pixels. `0` is the width of the stylesheet (`--el-app-frame-aside-size`). Default `0`.",
|
|
691
|
+
"type": "number"
|
|
692
|
+
},
|
|
693
|
+
{
|
|
694
|
+
"name": "asideLabel",
|
|
695
|
+
"description": "The name of the aside for assistive technology, on the edge that sizes it. The edge of the navigation has `navigation-label`. Default `'Aside'`.",
|
|
696
|
+
"type": "string"
|
|
697
|
+
},
|
|
698
|
+
{
|
|
699
|
+
"name": "statusBarTap",
|
|
700
|
+
"description": "Whether a tap on the status bar of an iPhone brings the content to its top. The document of the page is one pixel higher than the viewport then, and snaps to that pixel. Default `false`.",
|
|
701
|
+
"type": "boolean"
|
|
702
|
+
}
|
|
703
|
+
],
|
|
704
|
+
"events": [
|
|
705
|
+
{
|
|
706
|
+
"name": "app-frame-navigation-toggle",
|
|
707
|
+
"type": "CustomEvent<{ open: boolean }>",
|
|
708
|
+
"description": "Fired when the drawer of the navigation opens or closes, with the new state in `detail.open`."
|
|
709
|
+
},
|
|
710
|
+
{
|
|
711
|
+
"name": "app-frame-resize",
|
|
712
|
+
"type": "CustomEvent<{ region: 'navigation'|'aside', size: number }>",
|
|
713
|
+
"description": "Fired with every change the user makes to the width of a column: while its edge is dragged, and with every key. The new width in pixels is in `detail.size`."
|
|
714
|
+
},
|
|
715
|
+
{
|
|
716
|
+
"name": "app-frame-resize-end",
|
|
717
|
+
"type": "CustomEvent<{ region: 'navigation'|'aside', size: number }>",
|
|
718
|
+
"description": "Fired once the user has set a width: when the pointer lets go of the edge, and with every key. The width to keep is in `detail.size`."
|
|
719
|
+
},
|
|
720
|
+
{
|
|
721
|
+
"name": "app-frame-status-bar-tap",
|
|
722
|
+
"type": "CustomEvent",
|
|
723
|
+
"description": "Fired when the user has tapped the status bar of an iPhone, with `status-bar-tap`. The frame scrolls its content to the top after it, unless a listener calls `preventDefault()`: a view whose columns scroll brings those to their tops."
|
|
724
|
+
}
|
|
725
|
+
]
|
|
726
|
+
},
|
|
727
|
+
"source": {
|
|
728
|
+
"module": "./src/components/app-frame/app-frame.js",
|
|
729
|
+
"symbol": "default"
|
|
730
|
+
}
|
|
731
|
+
},
|
|
356
732
|
{
|
|
357
733
|
"name": "el-avatar",
|
|
358
734
|
"description": "An avatar: the picture that stands for a person or a thing. It shows the first of these that it\nhas: the image, the initials, an icon. An image that cannot be loaded makes way for the next.\nWith a `label` it is an image with that name for assistive technology; without one it is a\ndecoration beside a name that is written out.\n\n---\n\n\n### **Slots:**\n - **icon** - The icon that is shown without an image and without initials. Unset, it is the outline of a person.\n\n### **CSS Properties:**\n - **--el-avatar-size** - The width and the height of the avatar. Unset, the `size` decides. _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The shape of the avatar: background, radius. It carries the role and the label.\n- **image** - The image.\n- **initials** - The initials.\n- **icon** - The region of the `icon` slot.",
|
|
@@ -710,7 +1086,7 @@
|
|
|
710
1086
|
},
|
|
711
1087
|
{
|
|
712
1088
|
"name": "el-button",
|
|
713
|
-
"description": "A themeable button that renders a native `<button>` — or an `<a>` when `href` is set — and\ndecorates it with the `--el-*` design tokens. Speaks the library's shared vocabulary: a semantic\n`variant`, an `appearance` and a `size`. Also supports pill / circle shapes, an optional\ndropdown caret and a loading spinner.\n\nARIA attributes on the element reach the control inside it, which is what has the focus and what\na screen reader announces: `aria-label`, `aria-description`, `aria-expanded`, `aria-haspopup`,\n`aria-pressed` and `aria-current` as they are, `aria-labelledby`, `aria-describedby` and\n`aria-controls` as references to the elements they name.\n\nThe element is form-associated: a `<fieldset disabled>` around it disables it, and it is listed in\nthe `elements` of its form. A button of the type `submit` submits its form with a hidden native\n`<button type=\"submit\">` in its content: it is the `submitter` of the `submit` event, its `name`\nand `value` are in the data of the form, and Enter in a field of the form finds it. The element\nmakes that button when the form is first submitted with it, by a click or by Enter in a field.\nUntil then its content is what the page wrote, so a framework can hydrate a server-rendered\nbutton, also when the element has started before the framework does. The attributes `form`,\n`formaction`, `formenctype`, `formmethod`, `formnovalidate` and `formtarget` of the element do\nwhat they do on a native button. A `click` listener of the page that calls `preventDefault()`\nkeeps the button from submitting or resetting.\n\n---\n\n\n### **Methods:**\n - **formDisabledCallback()** - The platform says that the element is disabled, or no longer is: by its own attribute, or by a\n`<fieldset disabled>` around it. The template asks the platform, see `_isDisabled()`.\n- **reflectProperty(options: _{ property: string, newValue: unknown }_)** - `disabled` is reflected as the platform reads it: the attribute is there while the button is\ndisabled, and gone while it is not. element-js would write `disabled=\"false\"`.\n- **focus(options)** - Focuses the underlying control.\n- **blur()** - Removes focus from the underlying control.\n- **click()** - Simulates a click on the underlying control.\n\n### **Slots:**\n - _default_ - The button's label.\n- **prefix** - A presentational prefix icon or similar element.\n- **suffix** - A presentational suffix icon or similar element.\n\n### **CSS Parts:**\n - **base** - The internal `<button>` / `<a>`. The surface for background, border, radius.\n- **prefix** - Container wrapping the `prefix` slot.\n- **label** - The default-slot label wrapper.\n- **suffix** - Container wrapping the `suffix` slot.\n- **caret** - The dropdown caret, present only while `caret` is `true`.\n- **spinner** - The loading spinner, present only while `loading` is `true`.",
|
|
1089
|
+
"description": "A themeable button that renders a native `<button>` — or an `<a>` when `href` is set — and\ndecorates it with the `--el-*` design tokens. Speaks the library's shared vocabulary: a semantic\n`variant`, an `appearance` and a `size`. Also supports pill / circle shapes, an optional\ndropdown caret and a loading spinner.\n\nARIA attributes on the element reach the control inside it, which is what has the focus and what\na screen reader announces: `aria-label`, `aria-description`, `aria-expanded`, `aria-haspopup`,\n`aria-pressed` and `aria-current` as they are, `aria-labelledby`, `aria-describedby` and\n`aria-controls` as references to the elements they name.\n\nThe element is form-associated: a `<fieldset disabled>` around it disables it, and it is listed in\nthe `elements` of its form. A button of the type `submit` submits its form with a hidden native\n`<button type=\"submit\">` in its content: it is the `submitter` of the `submit` event, its `name`\nand `value` are in the data of the form, and Enter in a field of the form finds it. The element\nmakes that button when the form is first submitted with it, by a click or by Enter in a field.\nUntil then its content is what the page wrote, so a framework can hydrate a server-rendered\nbutton, also when the element has started before the framework does. The attributes `form`,\n`formaction`, `formenctype`, `formmethod`, `formnovalidate` and `formtarget` of the element do\nwhat they do on a native button. A `click` listener of the page that calls `preventDefault()`\nkeeps the button from submitting or resetting.\n\nIn a container that gives its controls a size and an appearance, an `el-toolbar`, the button\ntakes them from it, while the page has not set `size` or `appearance` on the button itself.\n\nWith `toggle` the button stays pressed: a click flips `pressed`, the control says so to assistive\ntechnology (`aria-pressed`), and the button shows it. A `click` listener of the page that calls\n`preventDefault()` keeps the button from flipping, as it keeps it from submitting.\n\n---\n\n\n### **Events:**\n - **button-toggle** - Fired when a click has flipped a toggle button. `detail.pressed` is the new state. Not fired when `pressed` is set from a script.\n\n### **Methods:**\n - **formDisabledCallback()** - The platform says that the element is disabled, or no longer is: by its own attribute, or by a\n`<fieldset disabled>` around it. The template asks the platform, see `_isDisabled()`.\n- **reflectProperty(options: _{ property: string, newValue: unknown }_)** - `disabled` is reflected as the platform reads it: the attribute is there while the button is\ndisabled, and gone while it is not. element-js would write `disabled=\"false\"`.\n- **focus(options)** - Focuses the underlying control.\n- **blur()** - Removes focus from the underlying control.\n- **click()** - Simulates a click on the underlying control.\n\n### **Slots:**\n - _default_ - The button's label.\n- **prefix** - A presentational prefix icon or similar element.\n- **suffix** - A presentational suffix icon or similar element.\n\n### **CSS Parts:**\n - **base** - The internal `<button>` / `<a>`. The surface for background, border, radius.\n- **prefix** - Container wrapping the `prefix` slot.\n- **label** - The default-slot label wrapper.\n- **suffix** - Container wrapping the `suffix` slot.\n- **caret** - The dropdown caret, present only while `caret` is `true`.\n- **spinner** - The loading spinner, present only while `loading` is `true`.",
|
|
714
1090
|
"doc-url": "",
|
|
715
1091
|
"attributes": [
|
|
716
1092
|
{
|
|
@@ -725,10 +1101,10 @@
|
|
|
725
1101
|
}
|
|
726
1102
|
},
|
|
727
1103
|
{
|
|
728
|
-
"name": "
|
|
729
|
-
"description": "
|
|
1104
|
+
"name": "size",
|
|
1105
|
+
"description": "Button size. Default `'medium'`. Reflected to the `size` attribute.",
|
|
730
1106
|
"value": {
|
|
731
|
-
"type": "'
|
|
1107
|
+
"type": "'small'|'medium'|'large'"
|
|
732
1108
|
},
|
|
733
1109
|
"source": {
|
|
734
1110
|
"module": "./src/components/button/button.js",
|
|
@@ -747,10 +1123,10 @@
|
|
|
747
1123
|
}
|
|
748
1124
|
},
|
|
749
1125
|
{
|
|
750
|
-
"name": "
|
|
751
|
-
"description": "
|
|
1126
|
+
"name": "variant",
|
|
1127
|
+
"description": "Semantic variant, which picks the colours. Default `'neutral'`. Reflected to the `variant` attribute.",
|
|
752
1128
|
"value": {
|
|
753
|
-
"type": "'
|
|
1129
|
+
"type": "'neutral'|'brand'|'success'|'warning'|'danger'"
|
|
754
1130
|
},
|
|
755
1131
|
"source": {
|
|
756
1132
|
"module": "./src/components/button/button.js",
|
|
@@ -801,6 +1177,28 @@
|
|
|
801
1177
|
"symbol": "default"
|
|
802
1178
|
}
|
|
803
1179
|
},
|
|
1180
|
+
{
|
|
1181
|
+
"name": "toggle",
|
|
1182
|
+
"description": "The button is a toggle button: it stays pressed. A click flips `pressed`, and the control has `aria-pressed`. Ignored when `href` is set. Default `false`.",
|
|
1183
|
+
"value": {
|
|
1184
|
+
"type": "boolean"
|
|
1185
|
+
},
|
|
1186
|
+
"source": {
|
|
1187
|
+
"module": "./src/components/button/button.js",
|
|
1188
|
+
"symbol": "default"
|
|
1189
|
+
}
|
|
1190
|
+
},
|
|
1191
|
+
{
|
|
1192
|
+
"name": "pressed",
|
|
1193
|
+
"description": "Whether a toggle button is pressed. Reflected to the `pressed` attribute of a toggle button. Without `toggle` it does nothing. Default `false`.",
|
|
1194
|
+
"value": {
|
|
1195
|
+
"type": "boolean"
|
|
1196
|
+
},
|
|
1197
|
+
"source": {
|
|
1198
|
+
"module": "./src/components/button/button.js",
|
|
1199
|
+
"symbol": "default"
|
|
1200
|
+
}
|
|
1201
|
+
},
|
|
804
1202
|
{
|
|
805
1203
|
"name": "type",
|
|
806
1204
|
"description": "Behaviour when activated. `submit` / `reset` act on the form of the button: the nearest ancestor `<form>`, or the one its `form` attribute names. Ignored when `href` is set. Default `'button'`.",
|
|
@@ -893,13 +1291,23 @@
|
|
|
893
1291
|
"description": "A presentational suffix icon or similar element."
|
|
894
1292
|
}
|
|
895
1293
|
],
|
|
896
|
-
"events": [
|
|
1294
|
+
"events": [
|
|
1295
|
+
{
|
|
1296
|
+
"name": "button-toggle",
|
|
1297
|
+
"type": "CustomEvent<{ pressed: boolean }>",
|
|
1298
|
+
"description": "Fired when a click has flipped a toggle button. `detail.pressed` is the new state. Not fired when `pressed` is set from a script."
|
|
1299
|
+
}
|
|
1300
|
+
],
|
|
897
1301
|
"js": {
|
|
898
1302
|
"properties": [
|
|
899
1303
|
{
|
|
900
1304
|
"name": "isLink",
|
|
901
1305
|
"description": "Whether the button renders as a link rather than a native button."
|
|
902
1306
|
},
|
|
1307
|
+
{
|
|
1308
|
+
"name": "isToggle",
|
|
1309
|
+
"description": "Whether the button is a toggle button: one that stays pressed. A link leads somewhere, it\nhas no state to stay in."
|
|
1310
|
+
},
|
|
903
1311
|
{
|
|
904
1312
|
"name": "variant",
|
|
905
1313
|
"description": "Semantic variant, which picks the colours. Default `'neutral'`. Reflected to the `variant` attribute.",
|
|
@@ -940,6 +1348,16 @@
|
|
|
940
1348
|
"description": "Disables the button. Reflected to the `disabled` attribute, which is there while the button is disabled and gone while it is not.",
|
|
941
1349
|
"type": "boolean"
|
|
942
1350
|
},
|
|
1351
|
+
{
|
|
1352
|
+
"name": "toggle",
|
|
1353
|
+
"description": "The button is a toggle button: it stays pressed. A click flips `pressed`, and the control has `aria-pressed`. Ignored when `href` is set. Default `false`.",
|
|
1354
|
+
"type": "boolean"
|
|
1355
|
+
},
|
|
1356
|
+
{
|
|
1357
|
+
"name": "pressed",
|
|
1358
|
+
"description": "Whether a toggle button is pressed. Reflected to the `pressed` attribute of a toggle button. Without `toggle` it does nothing. Default `false`.",
|
|
1359
|
+
"type": "boolean"
|
|
1360
|
+
},
|
|
943
1361
|
{
|
|
944
1362
|
"name": "type",
|
|
945
1363
|
"description": "Behaviour when activated. `submit` / `reset` act on the form of the button: the nearest ancestor `<form>`, or the one its `form` attribute names. Ignored when `href` is set. Default `'button'`.",
|
|
@@ -976,7 +1394,13 @@
|
|
|
976
1394
|
"type": "string"
|
|
977
1395
|
}
|
|
978
1396
|
],
|
|
979
|
-
"events": [
|
|
1397
|
+
"events": [
|
|
1398
|
+
{
|
|
1399
|
+
"name": "button-toggle",
|
|
1400
|
+
"type": "CustomEvent<{ pressed: boolean }>",
|
|
1401
|
+
"description": "Fired when a click has flipped a toggle button. `detail.pressed` is the new state. Not fired when `pressed` is set from a script."
|
|
1402
|
+
}
|
|
1403
|
+
]
|
|
980
1404
|
},
|
|
981
1405
|
"source": {
|
|
982
1406
|
"module": "./src/components/button/button.js",
|
|
@@ -1400,9 +1824,9 @@
|
|
|
1400
1824
|
},
|
|
1401
1825
|
{
|
|
1402
1826
|
"name": "options",
|
|
1403
|
-
"description": "Options to render. Accepts plain strings (`['News', 'Offers']`) or option objects (`[{ value, label, disabled? }]`). Strings are used as both value and label.",
|
|
1827
|
+
"description": "Options to render. Accepts plain strings (`['News', 'Offers']`) or option objects (`[{ value, label, disabled? }]`). Strings are used as both value and label. An object can name a `color`, which is drawn as a dot in front of the label, and an `icon`, the address of an SVG symbol (`'#tag'`, `'/icons.svg#tag'`), which is drawn there as well. Both are decorations: the label stays the name of the option.",
|
|
1404
1828
|
"value": {
|
|
1405
|
-
"type": "Array<string | { value: string, label?: string, disabled?: boolean }>"
|
|
1829
|
+
"type": "Array<string | { value: string, label?: string, disabled?: boolean, color?: string, icon?: string }>"
|
|
1406
1830
|
},
|
|
1407
1831
|
"source": {
|
|
1408
1832
|
"module": "./src/components/checkbox-group-field/checkbox-group-field.js",
|
|
@@ -1525,8 +1949,8 @@
|
|
|
1525
1949
|
},
|
|
1526
1950
|
{
|
|
1527
1951
|
"name": "options",
|
|
1528
|
-
"description": "Options to render. Accepts plain strings (`['News', 'Offers']`) or option objects (`[{ value, label, disabled? }]`). Strings are used as both value and label.",
|
|
1529
|
-
"type": "Array<string | { value: string, label?: string, disabled?: boolean }>"
|
|
1952
|
+
"description": "Options to render. Accepts plain strings (`['News', 'Offers']`) or option objects (`[{ value, label, disabled? }]`). Strings are used as both value and label. An object can name a `color`, which is drawn as a dot in front of the label, and an `icon`, the address of an SVG symbol (`'#tag'`, `'/icons.svg#tag'`), which is drawn there as well. Both are decorations: the label stays the name of the option.",
|
|
1953
|
+
"type": "Array<string | { value: string, label?: string, disabled?: boolean, color?: string, icon?: string }>"
|
|
1530
1954
|
},
|
|
1531
1955
|
{
|
|
1532
1956
|
"name": "required",
|
|
@@ -1826,7 +2250,7 @@
|
|
|
1826
2250
|
},
|
|
1827
2251
|
{
|
|
1828
2252
|
"name": "el-combobox-field",
|
|
1829
|
-
"description": "A text the user writes, with suggestions the browser offers while they type: a city, a job\ntitle, the name of a product. Extends `InputField` (and therefore `FormField`), inheriting the\nlabel / help / error / validation surface and the look from `styles/native.css`.\n\nThe suggestions are a native `<datalist>`: the browser filters and shows them, and the keyboard\nand a screen reader work as the browser has them. A suggestion is an offer, not a limit: the\nvalue is free text. For a choice from a fixed list there is `el-select-field`.\n\n---\n\n\n### **Events:**\n - **input-change** - Fired when the value changes: typed, or picked from the suggestions. `detail` is the new value. Bubbles.\n\n### **Methods:**\n - **onFocus(): _void_** - Called when the input receives focus. Refreshes validation state.\n- **onBlur(): _void_** - Called when the input loses focus. Marks the field as touched and refreshes\nvalidation state.\n- **onChange(): _void_** - Called when the input value changes. Updates `value` and refreshes validation.\n\nA control that is empty is no change for a field without a value: `value` stays `null`. A key\nthat enters nothing (Shift, an arrow key) and the first key of a date leave the control empty.\nTaking that as the value `''` wrote it to the control as its default with the next render,\nand a control for a date or a time drops what the user has entered so far when its value is\nwritten: the first key was lost.\n- **clearInput(): _void_** - Clears the input value, refocuses it, and resets the touched state. The field follows the\ncontrol, as it does when the user deletes the text by hand: `value` is empty, `input-change`\nreports it, and `valid` is what the control says.",
|
|
2253
|
+
"description": "A text the user writes, with suggestions the browser offers while they type: a city, a job\ntitle, the name of a product. Extends `InputField` (and therefore `FormField`), inheriting the\nlabel / help / error / validation surface and the look from `styles/native.css`.\n\nThe suggestions are a native `<datalist>`: the browser filters and shows them, and the keyboard\nand a screen reader work as the browser has them. A suggestion is an offer, not a limit: the\nvalue is free text. For a choice from a fixed list there is `el-select-field`.\n\n---\n\n\n### **Events:**\n - **input-change** - Fired when the value changes: typed, or picked from the suggestions. `detail` is the new value. Bubbles.\n\n### **Methods:**\n - **onFocus(): _void_** - Called when the input receives focus. Refreshes validation state.\n- **onBlur(): _void_** - Called when the input loses focus. Marks the field as touched and refreshes\nvalidation state.\n- **onChange(): _void_** - Called when the input value changes. Updates `value` and refreshes validation.\n\nA control that is empty is no change for a field without a value: `value` stays `null`. A key\nthat enters nothing (Shift, an arrow key) and the first key of a date leave the control empty.\nTaking that as the value `''` wrote it to the control as its default with the next render,\nand a control for a date or a time drops what the user has entered so far when its value is\nwritten: the first key was lost.\n- **clearInput(): _void_** - Clears the input value, refocuses it, and resets the touched state. The field follows the\ncontrol, as it does when the user deletes the text by hand: `value` is empty, `input-change`\nreports it, and `valid` is what the control says.\n\n### **Slots:**\n - **start** - Content at the start of the control, in front of the text: an icon, a text, a button. An element of the page with `slot=\"start\"`.\n- **end** - Content at the end of the control, after the text: a unit, a button. An element of the page with `slot=\"end\"`.",
|
|
1830
2254
|
"doc-url": "",
|
|
1831
2255
|
"attributes": [
|
|
1832
2256
|
{
|
|
@@ -1884,6 +2308,50 @@
|
|
|
1884
2308
|
"symbol": "default"
|
|
1885
2309
|
}
|
|
1886
2310
|
},
|
|
2311
|
+
{
|
|
2312
|
+
"name": "clearable",
|
|
2313
|
+
"description": "Whether the control has a button that empties it. The button shows while the field has a value and is not disabled. Default `false`.",
|
|
2314
|
+
"value": {
|
|
2315
|
+
"type": "boolean"
|
|
2316
|
+
},
|
|
2317
|
+
"source": {
|
|
2318
|
+
"module": "./src/components/combobox-field/combobox-field.js",
|
|
2319
|
+
"symbol": "default"
|
|
2320
|
+
}
|
|
2321
|
+
},
|
|
2322
|
+
{
|
|
2323
|
+
"name": "clear-label",
|
|
2324
|
+
"description": "The name of that button for assistive technology. Default `'Clear'`.",
|
|
2325
|
+
"value": {
|
|
2326
|
+
"type": "string"
|
|
2327
|
+
},
|
|
2328
|
+
"source": {
|
|
2329
|
+
"module": "./src/components/combobox-field/combobox-field.js",
|
|
2330
|
+
"symbol": "default"
|
|
2331
|
+
}
|
|
2332
|
+
},
|
|
2333
|
+
{
|
|
2334
|
+
"name": "maxlength",
|
|
2335
|
+
"description": "Passed on to the control as `maxlength`: the browser takes no more characters than this while the user types. `null` (the default) leaves the attribute out.",
|
|
2336
|
+
"value": {
|
|
2337
|
+
"type": "number | null"
|
|
2338
|
+
},
|
|
2339
|
+
"source": {
|
|
2340
|
+
"module": "./src/components/combobox-field/combobox-field.js",
|
|
2341
|
+
"symbol": "default"
|
|
2342
|
+
}
|
|
2343
|
+
},
|
|
2344
|
+
{
|
|
2345
|
+
"name": "minlength",
|
|
2346
|
+
"description": "Passed on as `minlength`: a text the user has typed that is shorter makes the field invalid. `null` (the default) leaves the attribute out.",
|
|
2347
|
+
"value": {
|
|
2348
|
+
"type": "number | null"
|
|
2349
|
+
},
|
|
2350
|
+
"source": {
|
|
2351
|
+
"module": "./src/components/combobox-field/combobox-field.js",
|
|
2352
|
+
"symbol": "default"
|
|
2353
|
+
}
|
|
2354
|
+
},
|
|
1887
2355
|
{
|
|
1888
2356
|
"name": "autocomplete",
|
|
1889
2357
|
"description": "Passed on to the control as its `autocomplete` attribute (e.g. `'email'`, `'current-password'`, `'one-time-code'`). `null` (the default) leaves the attribute out. The same holds for the five properties below.",
|
|
@@ -2061,6 +2529,16 @@
|
|
|
2061
2529
|
}
|
|
2062
2530
|
}
|
|
2063
2531
|
],
|
|
2532
|
+
"slots": [
|
|
2533
|
+
{
|
|
2534
|
+
"name": "start",
|
|
2535
|
+
"description": "Content at the start of the control, in front of the text: an icon, a text, a button. An element of the page with `slot=\"start\"`."
|
|
2536
|
+
},
|
|
2537
|
+
{
|
|
2538
|
+
"name": "end",
|
|
2539
|
+
"description": "Content at the end of the control, after the text: a unit, a button. An element of the page with `slot=\"end\"`."
|
|
2540
|
+
}
|
|
2541
|
+
],
|
|
2064
2542
|
"events": [
|
|
2065
2543
|
{
|
|
2066
2544
|
"name": "input-change",
|
|
@@ -2095,6 +2573,26 @@
|
|
|
2095
2573
|
"description": "Regular expression used as the input's `pattern` attribute. When `false` (the default), the `pattern` attribute is omitted entirely, so the field applies no pattern constraint.",
|
|
2096
2574
|
"type": "string | false"
|
|
2097
2575
|
},
|
|
2576
|
+
{
|
|
2577
|
+
"name": "clearable",
|
|
2578
|
+
"description": "Whether the control has a button that empties it. The button shows while the field has a value and is not disabled. Default `false`.",
|
|
2579
|
+
"type": "boolean"
|
|
2580
|
+
},
|
|
2581
|
+
{
|
|
2582
|
+
"name": "clearLabel",
|
|
2583
|
+
"description": "The name of that button for assistive technology. Default `'Clear'`.",
|
|
2584
|
+
"type": "string"
|
|
2585
|
+
},
|
|
2586
|
+
{
|
|
2587
|
+
"name": "maxlength",
|
|
2588
|
+
"description": "Passed on to the control as `maxlength`: the browser takes no more characters than this while the user types. `null` (the default) leaves the attribute out.",
|
|
2589
|
+
"type": "number | null"
|
|
2590
|
+
},
|
|
2591
|
+
{
|
|
2592
|
+
"name": "minlength",
|
|
2593
|
+
"description": "Passed on as `minlength`: a text the user has typed that is shorter makes the field invalid. `null` (the default) leaves the attribute out.",
|
|
2594
|
+
"type": "number | null"
|
|
2595
|
+
},
|
|
2098
2596
|
{
|
|
2099
2597
|
"name": "autocomplete",
|
|
2100
2598
|
"description": "Passed on to the control as its `autocomplete` attribute (e.g. `'email'`, `'current-password'`, `'one-time-code'`). `null` (the default) leaves the attribute out. The same holds for the five properties below.",
|
|
@@ -2388,7 +2886,7 @@
|
|
|
2388
2886
|
},
|
|
2389
2887
|
{
|
|
2390
2888
|
"name": "el-date-field",
|
|
2391
|
-
"description": "A date, a time or both, entered in the control of the browser and picked in its picker. Extends\n`InputField` (and therefore `FormField`), inheriting the label / help / error / validation\nsurface and the look from `styles/native.css`.\n\nIt adds what a date needs and a text does not: the earliest and the latest value, and the step\nbetween two values. The value is text in the one format of the control, whatever the language of\nthe user, and the field takes over what the control makes of a value: `value` says what the form\nsubmits.\n\n---\n\n\n### **Events:**\n - **input-change** - Fired when the value changes: entered, picked, or set by a script. `detail` is the new value. Bubbles.\n\n### **Methods:**\n - **onFocus(): _void_** - Called when the input receives focus. Refreshes validation state.\n- **onBlur(): _void_** - Called when the input loses focus. Marks the field as touched and refreshes\nvalidation state.\n- **onChange(): _void_** - Called when the input value changes. Updates `value` and refreshes validation.\n\nA control that is empty is no change for a field without a value: `value` stays `null`. A key\nthat enters nothing (Shift, an arrow key) and the first key of a date leave the control empty.\nTaking that as the value `''` wrote it to the control as its default with the next render,\nand a control for a date or a time drops what the user has entered so far when its value is\nwritten: the first key was lost.\n- **clearInput(): _void_** - Clears the input value, refocuses it, and resets the touched state. The field follows the\ncontrol, as it does when the user deletes the text by hand: `value` is empty, `input-change`\nreports it, and `valid` is what the control says.",
|
|
2889
|
+
"description": "A date, a time or both, entered in the control of the browser and picked in its picker. Extends\n`InputField` (and therefore `FormField`), inheriting the label / help / error / validation\nsurface and the look from `styles/native.css`.\n\nIt adds what a date needs and a text does not: the earliest and the latest value, and the step\nbetween two values. The value is text in the one format of the control, whatever the language of\nthe user, and the field takes over what the control makes of a value: `value` says what the form\nsubmits.\n\n---\n\n\n### **Events:**\n - **input-change** - Fired when the value changes: entered, picked, or set by a script. `detail` is the new value. Bubbles.\n\n### **Methods:**\n - **onFocus(): _void_** - Called when the input receives focus. Refreshes validation state.\n- **onBlur(): _void_** - Called when the input loses focus. Marks the field as touched and refreshes\nvalidation state.\n- **onChange(): _void_** - Called when the input value changes. Updates `value` and refreshes validation.\n\nA control that is empty is no change for a field without a value: `value` stays `null`. A key\nthat enters nothing (Shift, an arrow key) and the first key of a date leave the control empty.\nTaking that as the value `''` wrote it to the control as its default with the next render,\nand a control for a date or a time drops what the user has entered so far when its value is\nwritten: the first key was lost.\n- **clearInput(): _void_** - Clears the input value, refocuses it, and resets the touched state. The field follows the\ncontrol, as it does when the user deletes the text by hand: `value` is empty, `input-change`\nreports it, and `valid` is what the control says.\n\n### **Slots:**\n - **start** - Content at the start of the control, in front of the text: an icon, a text, a button. An element of the page with `slot=\"start\"`.\n- **end** - Content at the end of the control, after the text: a unit, a button. An element of the page with `slot=\"end\"`.",
|
|
2392
2890
|
"doc-url": "",
|
|
2393
2891
|
"attributes": [
|
|
2394
2892
|
{
|
|
@@ -2468,6 +2966,50 @@
|
|
|
2468
2966
|
"symbol": "default"
|
|
2469
2967
|
}
|
|
2470
2968
|
},
|
|
2969
|
+
{
|
|
2970
|
+
"name": "clearable",
|
|
2971
|
+
"description": "Whether the control has a button that empties it. The button shows while the field has a value and is not disabled. Default `false`.",
|
|
2972
|
+
"value": {
|
|
2973
|
+
"type": "boolean"
|
|
2974
|
+
},
|
|
2975
|
+
"source": {
|
|
2976
|
+
"module": "./src/components/date-field/date-field.js",
|
|
2977
|
+
"symbol": "default"
|
|
2978
|
+
}
|
|
2979
|
+
},
|
|
2980
|
+
{
|
|
2981
|
+
"name": "clear-label",
|
|
2982
|
+
"description": "The name of that button for assistive technology. Default `'Clear'`.",
|
|
2983
|
+
"value": {
|
|
2984
|
+
"type": "string"
|
|
2985
|
+
},
|
|
2986
|
+
"source": {
|
|
2987
|
+
"module": "./src/components/date-field/date-field.js",
|
|
2988
|
+
"symbol": "default"
|
|
2989
|
+
}
|
|
2990
|
+
},
|
|
2991
|
+
{
|
|
2992
|
+
"name": "maxlength",
|
|
2993
|
+
"description": "Passed on to the control as `maxlength`: the browser takes no more characters than this while the user types. `null` (the default) leaves the attribute out.",
|
|
2994
|
+
"value": {
|
|
2995
|
+
"type": "number | null"
|
|
2996
|
+
},
|
|
2997
|
+
"source": {
|
|
2998
|
+
"module": "./src/components/date-field/date-field.js",
|
|
2999
|
+
"symbol": "default"
|
|
3000
|
+
}
|
|
3001
|
+
},
|
|
3002
|
+
{
|
|
3003
|
+
"name": "minlength",
|
|
3004
|
+
"description": "Passed on as `minlength`: a text the user has typed that is shorter makes the field invalid. `null` (the default) leaves the attribute out.",
|
|
3005
|
+
"value": {
|
|
3006
|
+
"type": "number | null"
|
|
3007
|
+
},
|
|
3008
|
+
"source": {
|
|
3009
|
+
"module": "./src/components/date-field/date-field.js",
|
|
3010
|
+
"symbol": "default"
|
|
3011
|
+
}
|
|
3012
|
+
},
|
|
2471
3013
|
{
|
|
2472
3014
|
"name": "autocomplete",
|
|
2473
3015
|
"description": "Passed on to the control as its `autocomplete` attribute (e.g. `'email'`, `'current-password'`, `'one-time-code'`). `null` (the default) leaves the attribute out. The same holds for the five properties below.",
|
|
@@ -2645,6 +3187,16 @@
|
|
|
2645
3187
|
}
|
|
2646
3188
|
}
|
|
2647
3189
|
],
|
|
3190
|
+
"slots": [
|
|
3191
|
+
{
|
|
3192
|
+
"name": "start",
|
|
3193
|
+
"description": "Content at the start of the control, in front of the text: an icon, a text, a button. An element of the page with `slot=\"start\"`."
|
|
3194
|
+
},
|
|
3195
|
+
{
|
|
3196
|
+
"name": "end",
|
|
3197
|
+
"description": "Content at the end of the control, after the text: a unit, a button. An element of the page with `slot=\"end\"`."
|
|
3198
|
+
}
|
|
3199
|
+
],
|
|
2648
3200
|
"events": [
|
|
2649
3201
|
{
|
|
2650
3202
|
"name": "input-change",
|
|
@@ -2694,6 +3246,26 @@
|
|
|
2694
3246
|
"description": "Regular expression used as the input's `pattern` attribute. When `false` (the default), the `pattern` attribute is omitted entirely, so the field applies no pattern constraint.",
|
|
2695
3247
|
"type": "string | false"
|
|
2696
3248
|
},
|
|
3249
|
+
{
|
|
3250
|
+
"name": "clearable",
|
|
3251
|
+
"description": "Whether the control has a button that empties it. The button shows while the field has a value and is not disabled. Default `false`.",
|
|
3252
|
+
"type": "boolean"
|
|
3253
|
+
},
|
|
3254
|
+
{
|
|
3255
|
+
"name": "clearLabel",
|
|
3256
|
+
"description": "The name of that button for assistive technology. Default `'Clear'`.",
|
|
3257
|
+
"type": "string"
|
|
3258
|
+
},
|
|
3259
|
+
{
|
|
3260
|
+
"name": "maxlength",
|
|
3261
|
+
"description": "Passed on to the control as `maxlength`: the browser takes no more characters than this while the user types. `null` (the default) leaves the attribute out.",
|
|
3262
|
+
"type": "number | null"
|
|
3263
|
+
},
|
|
3264
|
+
{
|
|
3265
|
+
"name": "minlength",
|
|
3266
|
+
"description": "Passed on as `minlength`: a text the user has typed that is shorter makes the field invalid. `null` (the default) leaves the attribute out.",
|
|
3267
|
+
"type": "number | null"
|
|
3268
|
+
},
|
|
2697
3269
|
{
|
|
2698
3270
|
"name": "autocomplete",
|
|
2699
3271
|
"description": "Passed on to the control as its `autocomplete` attribute (e.g. `'email'`, `'current-password'`, `'one-time-code'`). `null` (the default) leaves the attribute out. The same holds for the five properties below.",
|
|
@@ -2783,6 +3355,27 @@
|
|
|
2783
3355
|
"symbol": "default"
|
|
2784
3356
|
}
|
|
2785
3357
|
},
|
|
3358
|
+
{
|
|
3359
|
+
"name": "el-description-list",
|
|
3360
|
+
"description": "Rows of a name and its value, for a settings page or the page of an entry: the address, the\nplan, the day it was created. The element is the native `<dl>`; the page writes the names as\n`<dt>` and the values as `<dd>` into it, as it would into a `<dl>`.\n\nIn a narrow place a name stands above its value. From a width of 30rem, which the list measures\non itself, the two stand side by side, and the values of all rows begin on one line. A row can\nend in an action: a `<dd data-action>` with a link or a button in it.\n\nPure presentation: the list runs no script of its own, so a server-rendered list is complete\nbefore the element takes over.\n\n---\n\n\n### **Slots:**\n - _default_ - The rows: for each one a `<dt>` with the name, a `<dd>` with the value (or several), and, to end the row in an action, a `<dd data-action>` with a link or a button.\n\n### **CSS Properties:**\n - **--el-description-list-term-width** - The width of the column of the names while names and values stand side by side. The gap to the values comes after it. Unset, the column is as wide as the longest name, and takes 40% of the list at most together with that gap. _(default: undefined)_\n- **--el-description-list-padding-block** - The room above and below a row. Unset, it is `--el-space-3`, and `0.75rem` without a theme. _(default: undefined)_\n- **--el-description-list-gap** - The gap between a name and its value while they stand side by side, and in front of an action. Unset, it is `--el-space-4`, and `1rem` without a theme. _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The `<dl>`.",
|
|
3361
|
+
"doc-url": "",
|
|
3362
|
+
"attributes": [],
|
|
3363
|
+
"slots": [
|
|
3364
|
+
{
|
|
3365
|
+
"name": "",
|
|
3366
|
+
"description": "The rows: for each one a `<dt>` with the name, a `<dd>` with the value (or several), and, to end the row in an action, a `<dd data-action>` with a link or a button."
|
|
3367
|
+
}
|
|
3368
|
+
],
|
|
3369
|
+
"events": [],
|
|
3370
|
+
"js": {
|
|
3371
|
+
"properties": [],
|
|
3372
|
+
"events": []
|
|
3373
|
+
},
|
|
3374
|
+
"source": {
|
|
3375
|
+
"module": "./src/components/description-list/description-list.js",
|
|
3376
|
+
"symbol": "default"
|
|
3377
|
+
}
|
|
3378
|
+
},
|
|
2786
3379
|
{
|
|
2787
3380
|
"name": "el-dialog",
|
|
2788
3381
|
"description": "A modal dialog built on the native `<dialog>` element, so the platform owns focus trapping,\nbackground `inert`, top-layer rendering and focus restoration. The component adds an animated,\ncancelable open/close lifecycle and ref-counted body-scroll locking on top, and closes for a\n`<form method=\"dialog\">` in one of its slots.\n\n---\n\n\n### **Events:**\n - **dialog-show** - Fired when the dialog starts to open.\n- **dialog-after-show** - Fired once the open transition has finished.\n- **dialog-hide** - Fired when the dialog starts to close.\n- **dialog-after-hide** - Fired once the close transition has finished.\n- **dialog-initial-focus** - Fired after the dialog has been opened and the platform has moved focus inside it. Cancelable: call `preventDefault()` to take over focus.\n- **dialog-request-close** - Fired before the dialog closes in response to the close button, `Escape`, or an overlay click. Cancelable: call `preventDefault()` to keep the dialog open.\n\n### **Methods:**\n - **show(): _Promise<void>_** - Opens the dialog.\n- **hide(): _Promise<void>_** - Closes the dialog.\n- **requestClose(source: _'close-button' | 'keyboard' | 'overlay'_): _void_** - Requests that the dialog close, emitting its cancelable request-close event. When a listener\ncalls `preventDefault()` the dialog stays open and plays a short deny animation.\n\n### **Slots:**\n - _default_ - The dialog's main content (body).\n- **label** - The dialog's title. Takes precedence over the `label` attribute.\n- **header-actions** - Optional controls rendered in the header, before the close button.\n- **footer** - Footer content, typically action buttons. The footer collapses when empty.\n\n### **CSS Parts:**\n - **base** - The native `<dialog>` element — the panel surface (background, border, radius, elevation). The overlay is its `::backdrop` pseudo-element.\n- **header** - The header row wrapping the title, header actions and close button.\n- **title** - The title heading.\n- **header-actions** - The container for the `header-actions` slot.\n- **close-button** - The built-in close button.\n- **body** - The scrollable body wrapping the default slot.\n- **footer** - The footer wrapping the `footer` slot.",
|
|
@@ -3232,7 +3825,7 @@
|
|
|
3232
3825
|
},
|
|
3233
3826
|
{
|
|
3234
3827
|
"name": "el-file-field",
|
|
3235
|
-
"description": "One or several files for a form. Renders a native `<input type=\"file\">`, so the dialog of the\nsystem, a drop onto the control, the keyboard and the form submission are the ones of the\nbrowser. Extends `FormField` and inherits its label / help / error / required surface.\n\nThe files come from the user. A script cannot choose one, the browser does not allow that; it can\ntake the choice away with an empty `value`.\n\n---\n\n\n### **Events:**\n - **input-change** - Fired when the user has chosen files, and when the choice was taken away. `detail` is the list of the names; the files are in `files` of the element. Bubbles.\n\n### **Methods:**\n - **onChange(): _void_** - The user has chosen files, or has taken the choice away in the dialog.\n- **onFocus(): _void_** - Called when the input receives focus. Refreshes validation state.\n- **onBlur(): _void_** - Called when the input loses focus. Marks the field as touched and refreshes\nvalidation state.\n- **clearInput(): _void_** - Clears the input value, refocuses it, and resets the touched state. The field follows the\ncontrol, as it does when the user deletes the text by hand: `value` is empty, `input-change`\nreports it, and `valid` is what the control says.",
|
|
3828
|
+
"description": "One or several files for a form. Renders a native `<input type=\"file\">`, so the dialog of the\nsystem, a drop onto the control, the keyboard and the form submission are the ones of the\nbrowser. Extends `FormField` and inherits its label / help / error / required surface.\n\nThe files come from the user. A script cannot choose one, the browser does not allow that; it can\ntake the choice away with an empty `value`.\n\nWith `drop-message` the field shows an area around its control to drop a file onto, with that\ntext in it. The area looks different while a dragged file is over it, a click on it opens the\ndialog, and a drop is a choice as one in the dialog is: the control has the files, and the same\nevents are fired.\n\n---\n\n\n### **Events:**\n - **input-change** - Fired when the user has chosen files, in the dialog or with a drop, and when the choice was taken away. `detail` is the list of the names; the files are in `files` of the element. Bubbles.\n\n### **Methods:**\n - **onChange(): _void_** - The user has chosen files, or has taken the choice away in the dialog.\n- **onFocus(): _void_** - Called when the input receives focus. Refreshes validation state.\n- **onBlur(): _void_** - Called when the input loses focus. Marks the field as touched and refreshes\nvalidation state.\n- **clearInput(): _void_** - Clears the input value, refocuses it, and resets the touched state. The field follows the\ncontrol, as it does when the user deletes the text by hand: `value` is empty, `input-change`\nreports it, and `valid` is what the control says.",
|
|
3236
3829
|
"doc-url": "",
|
|
3237
3830
|
"attributes": [
|
|
3238
3831
|
{
|
|
@@ -3290,6 +3883,17 @@
|
|
|
3290
3883
|
"symbol": "default"
|
|
3291
3884
|
}
|
|
3292
3885
|
},
|
|
3886
|
+
{
|
|
3887
|
+
"name": "drop-message",
|
|
3888
|
+
"description": "The text of an area to drop a file onto: \"Drop the list here, or choose it\". With one the field shows the area, around its control. Default `''`.",
|
|
3889
|
+
"value": {
|
|
3890
|
+
"type": "string"
|
|
3891
|
+
},
|
|
3892
|
+
"source": {
|
|
3893
|
+
"module": "./src/components/file-field/file-field.js",
|
|
3894
|
+
"symbol": "default"
|
|
3895
|
+
}
|
|
3896
|
+
},
|
|
3293
3897
|
{
|
|
3294
3898
|
"name": "name",
|
|
3295
3899
|
"description": "Form name for the underlying input.",
|
|
@@ -3394,7 +3998,7 @@
|
|
|
3394
3998
|
{
|
|
3395
3999
|
"name": "input-change",
|
|
3396
4000
|
"type": "CustomEvent<string[]>",
|
|
3397
|
-
"description": "Fired when the user has chosen files, and when the choice was taken away. `detail` is the list of the names; the files are in `files` of the element. Bubbles."
|
|
4001
|
+
"description": "Fired when the user has chosen files, in the dialog or with a drop, and when the choice was taken away. `detail` is the list of the names; the files are in `files` of the element. Bubbles."
|
|
3398
4002
|
}
|
|
3399
4003
|
],
|
|
3400
4004
|
"js": {
|
|
@@ -3428,6 +4032,11 @@
|
|
|
3428
4032
|
"description": "Size of the control: its height, its padding and its font size. Default `'medium'`. Reflected to the `size` attribute. It shows once the control is decorated (`styles/native.css`); a control with the look of the browser keeps its size.",
|
|
3429
4033
|
"type": "'small'|'medium'|'large'"
|
|
3430
4034
|
},
|
|
4035
|
+
{
|
|
4036
|
+
"name": "dropMessage",
|
|
4037
|
+
"description": "The text of an area to drop a file onto: \"Drop the list here, or choose it\". With one the field shows the area, around its control. Default `''`.",
|
|
4038
|
+
"type": "string"
|
|
4039
|
+
},
|
|
3431
4040
|
{
|
|
3432
4041
|
"name": "name",
|
|
3433
4042
|
"description": "Form name for the underlying input.",
|
|
@@ -3478,7 +4087,7 @@
|
|
|
3478
4087
|
{
|
|
3479
4088
|
"name": "input-change",
|
|
3480
4089
|
"type": "CustomEvent<string[]>",
|
|
3481
|
-
"description": "Fired when the user has chosen files, and when the choice was taken away. `detail` is the list of the names; the files are in `files` of the element. Bubbles."
|
|
4090
|
+
"description": "Fired when the user has chosen files, in the dialog or with a drop, and when the choice was taken away. `detail` is the list of the names; the files are in `files` of the element. Bubbles."
|
|
3482
4091
|
}
|
|
3483
4092
|
]
|
|
3484
4093
|
},
|
|
@@ -3678,7 +4287,7 @@
|
|
|
3678
4287
|
},
|
|
3679
4288
|
{
|
|
3680
4289
|
"name": "el-input-field",
|
|
3681
|
-
"description": "Native `<input>` wrapper with label, help text, validation feedback (visual checkmark /\ncross indicators) and ARIA wiring. Extends `FormField` and inherits its label / help /\nerror / required surface.\n\n---\n\n\n### **Events:**\n - **input-change** - Fired when the input's value changes. `detail` is the new value. Bubbles.\n\n### **Methods:**\n - **onFocus(): _void_** - Called when the input receives focus. Refreshes validation state.\n- **onBlur(): _void_** - Called when the input loses focus. Marks the field as touched and refreshes\nvalidation state.\n- **onChange(): _void_** - Called when the input value changes. Updates `value` and refreshes validation.\n\nA control that is empty is no change for a field without a value: `value` stays `null`. A key\nthat enters nothing (Shift, an arrow key) and the first key of a date leave the control empty.\nTaking that as the value `''` wrote it to the control as its default with the next render,\nand a control for a date or a time drops what the user has entered so far when its value is\nwritten: the first key was lost.\n- **clearInput(): _void_** - Clears the input value, refocuses it, and resets the touched state. The field follows the\ncontrol, as it does when the user deletes the text by hand: `value` is empty, `input-change`\nreports it, and `valid` is what the control says.",
|
|
4290
|
+
"description": "Native `<input>` wrapper with label, help text, validation feedback (visual checkmark /\ncross indicators) and ARIA wiring. Extends `FormField` and inherits its label / help /\nerror / required surface.\n\nThe page can put content at the start and at the end of the control: an element with\n`slot=\"start\"` or `slot=\"end\"` among the children of the field. The field has no shadow root,\nso these are no slots of the platform: the field takes the elements into its control when it\nrenders. And `clearable` adds a button that empties the field.\n\n---\n\n\n### **Events:**\n - **input-change** - Fired when the input's value changes. `detail` is the new value. Bubbles.\n\n### **Methods:**\n - **onFocus(): _void_** - Called when the input receives focus. Refreshes validation state.\n- **onBlur(): _void_** - Called when the input loses focus. Marks the field as touched and refreshes\nvalidation state.\n- **onChange(): _void_** - Called when the input value changes. Updates `value` and refreshes validation.\n\nA control that is empty is no change for a field without a value: `value` stays `null`. A key\nthat enters nothing (Shift, an arrow key) and the first key of a date leave the control empty.\nTaking that as the value `''` wrote it to the control as its default with the next render,\nand a control for a date or a time drops what the user has entered so far when its value is\nwritten: the first key was lost.\n- **clearInput(): _void_** - Clears the input value, refocuses it, and resets the touched state. The field follows the\ncontrol, as it does when the user deletes the text by hand: `value` is empty, `input-change`\nreports it, and `valid` is what the control says.\n\n### **Slots:**\n - **start** - Content at the start of the control, in front of the text: an icon, a text, a button. An element of the page with `slot=\"start\"`.\n- **end** - Content at the end of the control, after the text: a unit, a button. An element of the page with `slot=\"end\"`.",
|
|
3682
4291
|
"doc-url": "",
|
|
3683
4292
|
"attributes": [
|
|
3684
4293
|
{
|
|
@@ -3725,6 +4334,50 @@
|
|
|
3725
4334
|
"symbol": "default"
|
|
3726
4335
|
}
|
|
3727
4336
|
},
|
|
4337
|
+
{
|
|
4338
|
+
"name": "clearable",
|
|
4339
|
+
"description": "Whether the control has a button that empties it. The button shows while the field has a value and is not disabled. Default `false`.",
|
|
4340
|
+
"value": {
|
|
4341
|
+
"type": "boolean"
|
|
4342
|
+
},
|
|
4343
|
+
"source": {
|
|
4344
|
+
"module": "./src/components/input-field/input-field.js",
|
|
4345
|
+
"symbol": "default"
|
|
4346
|
+
}
|
|
4347
|
+
},
|
|
4348
|
+
{
|
|
4349
|
+
"name": "clear-label",
|
|
4350
|
+
"description": "The name of that button for assistive technology. Default `'Clear'`.",
|
|
4351
|
+
"value": {
|
|
4352
|
+
"type": "string"
|
|
4353
|
+
},
|
|
4354
|
+
"source": {
|
|
4355
|
+
"module": "./src/components/input-field/input-field.js",
|
|
4356
|
+
"symbol": "default"
|
|
4357
|
+
}
|
|
4358
|
+
},
|
|
4359
|
+
{
|
|
4360
|
+
"name": "maxlength",
|
|
4361
|
+
"description": "Passed on to the control as `maxlength`: the browser takes no more characters than this while the user types. `null` (the default) leaves the attribute out.",
|
|
4362
|
+
"value": {
|
|
4363
|
+
"type": "number | null"
|
|
4364
|
+
},
|
|
4365
|
+
"source": {
|
|
4366
|
+
"module": "./src/components/input-field/input-field.js",
|
|
4367
|
+
"symbol": "default"
|
|
4368
|
+
}
|
|
4369
|
+
},
|
|
4370
|
+
{
|
|
4371
|
+
"name": "minlength",
|
|
4372
|
+
"description": "Passed on as `minlength`: a text the user has typed that is shorter makes the field invalid. `null` (the default) leaves the attribute out.",
|
|
4373
|
+
"value": {
|
|
4374
|
+
"type": "number | null"
|
|
4375
|
+
},
|
|
4376
|
+
"source": {
|
|
4377
|
+
"module": "./src/components/input-field/input-field.js",
|
|
4378
|
+
"symbol": "default"
|
|
4379
|
+
}
|
|
4380
|
+
},
|
|
3728
4381
|
{
|
|
3729
4382
|
"name": "autocomplete",
|
|
3730
4383
|
"description": "Passed on to the control as its `autocomplete` attribute (e.g. `'email'`, `'current-password'`, `'one-time-code'`). `null` (the default) leaves the attribute out. The same holds for the five properties below.",
|
|
@@ -3902,6 +4555,16 @@
|
|
|
3902
4555
|
}
|
|
3903
4556
|
}
|
|
3904
4557
|
],
|
|
4558
|
+
"slots": [
|
|
4559
|
+
{
|
|
4560
|
+
"name": "start",
|
|
4561
|
+
"description": "Content at the start of the control, in front of the text: an icon, a text, a button. An element of the page with `slot=\"start\"`."
|
|
4562
|
+
},
|
|
4563
|
+
{
|
|
4564
|
+
"name": "end",
|
|
4565
|
+
"description": "Content at the end of the control, after the text: a unit, a button. An element of the page with `slot=\"end\"`."
|
|
4566
|
+
}
|
|
4567
|
+
],
|
|
3905
4568
|
"events": [
|
|
3906
4569
|
{
|
|
3907
4570
|
"name": "input-change",
|
|
@@ -3931,6 +4594,26 @@
|
|
|
3931
4594
|
"description": "Regular expression used as the input's `pattern` attribute. When `false` (the default), the `pattern` attribute is omitted entirely, so the field applies no pattern constraint.",
|
|
3932
4595
|
"type": "string | false"
|
|
3933
4596
|
},
|
|
4597
|
+
{
|
|
4598
|
+
"name": "clearable",
|
|
4599
|
+
"description": "Whether the control has a button that empties it. The button shows while the field has a value and is not disabled. Default `false`.",
|
|
4600
|
+
"type": "boolean"
|
|
4601
|
+
},
|
|
4602
|
+
{
|
|
4603
|
+
"name": "clearLabel",
|
|
4604
|
+
"description": "The name of that button for assistive technology. Default `'Clear'`.",
|
|
4605
|
+
"type": "string"
|
|
4606
|
+
},
|
|
4607
|
+
{
|
|
4608
|
+
"name": "maxlength",
|
|
4609
|
+
"description": "Passed on to the control as `maxlength`: the browser takes no more characters than this while the user types. `null` (the default) leaves the attribute out.",
|
|
4610
|
+
"type": "number | null"
|
|
4611
|
+
},
|
|
4612
|
+
{
|
|
4613
|
+
"name": "minlength",
|
|
4614
|
+
"description": "Passed on as `minlength`: a text the user has typed that is shorter makes the field invalid. `null` (the default) leaves the attribute out.",
|
|
4615
|
+
"type": "number | null"
|
|
4616
|
+
},
|
|
3934
4617
|
{
|
|
3935
4618
|
"name": "autocomplete",
|
|
3936
4619
|
"description": "Passed on to the control as its `autocomplete` attribute (e.g. `'email'`, `'current-password'`, `'one-time-code'`). `null` (the default) leaves the attribute out. The same holds for the five properties below.",
|
|
@@ -4159,59 +4842,792 @@
|
|
|
4159
4842
|
}
|
|
4160
4843
|
},
|
|
4161
4844
|
{
|
|
4162
|
-
"name": "el-
|
|
4163
|
-
"description": "
|
|
4845
|
+
"name": "el-list-item",
|
|
4846
|
+
"description": "One row of an `el-list`. It has the parts a row has everywhere: something at the start (an icon,\nan avatar), a title, a line under it, something at the end (a value, a count, a chevron), and a\ncontrol of its own after that.\n\nWith `href` the row is a link as a whole: the title is the link, and its target is the whole\nrow. What is slotted into `action` stays a target of its own.\n\nPure presentation: the row runs no script of its own.\n\n---\n\n\n### **Slots:**\n - _default_ - The title of the row.\n- **description** - The line under the title.\n- **start** - What stands in front of the texts: an icon, an avatar. The texts of all rows of a list begin after the widest start.\n- **end** - What stands at the end of the row and belongs to it: a value, a count, a chevron. In a row that is a link it is part of the target of the link.\n- **action** - A control at the very end: a button, a switch, a menu. In a row that is a link it lies on top of the link and is a target of its own.\n\n### **CSS Properties:**\n - **--el-list-padding-inline** - The padding of the row at its start and its end. Unset, it is `--el-space-4`, and `1rem` without a theme. _(default: undefined)_\n- **--el-list-gap** - The gap between the start, the texts, the end and the control of the row. Unset, it is `--el-space-3`, and `0.75rem` without a theme. _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The row: an item of the list.\n- **mark** - The dot of `mark`, in the padding at the start of the row.\n- **start** - The region of the `start` slot.\n- **text** - The title and the line under it.\n- **title** - The title: an `<a>` with `href`, a `<span>` without.\n- **description** - The region of the `description` slot.\n- **end** - The region of the `end` slot.\n- **action** - The region of the `action` slot.",
|
|
4164
4847
|
"doc-url": "",
|
|
4165
4848
|
"attributes": [
|
|
4166
4849
|
{
|
|
4167
|
-
"name": "
|
|
4168
|
-
"description": "
|
|
4850
|
+
"name": "href",
|
|
4851
|
+
"description": "The address the row leads to. Unset, the row is no link.",
|
|
4169
4852
|
"value": {
|
|
4170
|
-
"type": "
|
|
4853
|
+
"type": "string"
|
|
4171
4854
|
},
|
|
4172
4855
|
"source": {
|
|
4173
|
-
"module": "./src/components/
|
|
4856
|
+
"module": "./src/components/list-item/list-item.js",
|
|
4174
4857
|
"symbol": "default"
|
|
4175
4858
|
}
|
|
4176
4859
|
},
|
|
4177
4860
|
{
|
|
4178
|
-
"name": "
|
|
4179
|
-
"description": "
|
|
4861
|
+
"name": "target",
|
|
4862
|
+
"description": "Where to open the address (only with `href`).",
|
|
4180
4863
|
"value": {
|
|
4181
|
-
"type": "
|
|
4864
|
+
"type": "string"
|
|
4182
4865
|
},
|
|
4183
4866
|
"source": {
|
|
4184
|
-
"module": "./src/components/
|
|
4867
|
+
"module": "./src/components/list-item/list-item.js",
|
|
4185
4868
|
"symbol": "default"
|
|
4186
4869
|
}
|
|
4187
4870
|
},
|
|
4188
4871
|
{
|
|
4189
|
-
"name": "
|
|
4190
|
-
"description": "
|
|
4872
|
+
"name": "rel",
|
|
4873
|
+
"description": "`rel` attribute for the link, written when `target` is set. Default `'noreferrer noopener'`.",
|
|
4191
4874
|
"value": {
|
|
4192
|
-
"type": "
|
|
4875
|
+
"type": "string"
|
|
4193
4876
|
},
|
|
4194
4877
|
"source": {
|
|
4195
|
-
"module": "./src/components/
|
|
4878
|
+
"module": "./src/components/list-item/list-item.js",
|
|
4196
4879
|
"symbol": "default"
|
|
4197
4880
|
}
|
|
4198
4881
|
},
|
|
4199
4882
|
{
|
|
4200
|
-
"name": "
|
|
4201
|
-
"description": "
|
|
4883
|
+
"name": "current",
|
|
4884
|
+
"description": "The row is the current or the chosen one: it gets `aria-current` (`\"page\"` on the link of a row with `href`, `\"true\"` on a row without), a bar at its start and a heavier title. Default `false`.",
|
|
4202
4885
|
"value": {
|
|
4203
|
-
"type": "
|
|
4886
|
+
"type": "boolean"
|
|
4204
4887
|
},
|
|
4205
4888
|
"source": {
|
|
4206
|
-
"module": "./src/components/
|
|
4889
|
+
"module": "./src/components/list-item/list-item.js",
|
|
4207
4890
|
"symbol": "default"
|
|
4208
4891
|
}
|
|
4209
4892
|
},
|
|
4210
4893
|
{
|
|
4211
|
-
"name": "
|
|
4212
|
-
"description": "
|
|
4894
|
+
"name": "mark",
|
|
4895
|
+
"description": "Marks the row with a dot in the padding at its start, which does not move the texts: an unread message, for example. The text is what assistive technology reads in front of the title (\"Unread\"). Unset, the row has no mark.",
|
|
4213
4896
|
"value": {
|
|
4214
|
-
"type": "
|
|
4897
|
+
"type": "string"
|
|
4898
|
+
},
|
|
4899
|
+
"source": {
|
|
4900
|
+
"module": "./src/components/list-item/list-item.js",
|
|
4901
|
+
"symbol": "default"
|
|
4902
|
+
}
|
|
4903
|
+
},
|
|
4904
|
+
{
|
|
4905
|
+
"name": "truncate",
|
|
4906
|
+
"description": "Cuts the title and the line under it after one line, with an ellipsis. Unset, a long text breaks into more lines. Default `false`.",
|
|
4907
|
+
"value": {
|
|
4908
|
+
"type": "boolean"
|
|
4909
|
+
},
|
|
4910
|
+
"source": {
|
|
4911
|
+
"module": "./src/components/list-item/list-item.js",
|
|
4912
|
+
"symbol": "default"
|
|
4913
|
+
}
|
|
4914
|
+
}
|
|
4915
|
+
],
|
|
4916
|
+
"slots": [
|
|
4917
|
+
{
|
|
4918
|
+
"name": "",
|
|
4919
|
+
"description": "The title of the row."
|
|
4920
|
+
},
|
|
4921
|
+
{
|
|
4922
|
+
"name": "description",
|
|
4923
|
+
"description": "The line under the title."
|
|
4924
|
+
},
|
|
4925
|
+
{
|
|
4926
|
+
"name": "start",
|
|
4927
|
+
"description": "What stands in front of the texts: an icon, an avatar. The texts of all rows of a list begin after the widest start."
|
|
4928
|
+
},
|
|
4929
|
+
{
|
|
4930
|
+
"name": "end",
|
|
4931
|
+
"description": "What stands at the end of the row and belongs to it: a value, a count, a chevron. In a row that is a link it is part of the target of the link."
|
|
4932
|
+
},
|
|
4933
|
+
{
|
|
4934
|
+
"name": "action",
|
|
4935
|
+
"description": "A control at the very end: a button, a switch, a menu. In a row that is a link it lies on top of the link and is a target of its own."
|
|
4936
|
+
}
|
|
4937
|
+
],
|
|
4938
|
+
"events": [],
|
|
4939
|
+
"js": {
|
|
4940
|
+
"properties": [
|
|
4941
|
+
{
|
|
4942
|
+
"name": "href",
|
|
4943
|
+
"description": "The address the row leads to. Unset, the row is no link.",
|
|
4944
|
+
"type": "string"
|
|
4945
|
+
},
|
|
4946
|
+
{
|
|
4947
|
+
"name": "target",
|
|
4948
|
+
"description": "Where to open the address (only with `href`).",
|
|
4949
|
+
"type": "string"
|
|
4950
|
+
},
|
|
4951
|
+
{
|
|
4952
|
+
"name": "rel",
|
|
4953
|
+
"description": "`rel` attribute for the link, written when `target` is set. Default `'noreferrer noopener'`.",
|
|
4954
|
+
"type": "string"
|
|
4955
|
+
},
|
|
4956
|
+
{
|
|
4957
|
+
"name": "current",
|
|
4958
|
+
"description": "The row is the current or the chosen one: it gets `aria-current` (`\"page\"` on the link of a row with `href`, `\"true\"` on a row without), a bar at its start and a heavier title. Default `false`.",
|
|
4959
|
+
"type": "boolean"
|
|
4960
|
+
},
|
|
4961
|
+
{
|
|
4962
|
+
"name": "mark",
|
|
4963
|
+
"description": "Marks the row with a dot in the padding at its start, which does not move the texts: an unread message, for example. The text is what assistive technology reads in front of the title (\"Unread\"). Unset, the row has no mark.",
|
|
4964
|
+
"type": "string"
|
|
4965
|
+
},
|
|
4966
|
+
{
|
|
4967
|
+
"name": "truncate",
|
|
4968
|
+
"description": "Cuts the title and the line under it after one line, with an ellipsis. Unset, a long text breaks into more lines. Default `false`.",
|
|
4969
|
+
"type": "boolean"
|
|
4970
|
+
}
|
|
4971
|
+
],
|
|
4972
|
+
"events": []
|
|
4973
|
+
},
|
|
4974
|
+
"source": {
|
|
4975
|
+
"module": "./src/components/list-item/list-item.js",
|
|
4976
|
+
"symbol": "default"
|
|
4977
|
+
}
|
|
4978
|
+
},
|
|
4979
|
+
{
|
|
4980
|
+
"name": "el-list",
|
|
4981
|
+
"description": "A list of rows: messages, articles, files, the entries of a settings page. The list is the\nsurface and the list for assistive technology; every `el-list-item` slotted into it is one row.\nIt gives its rows one density, one line between two of them and one place where their texts\nbegin, whatever stands at the start of a row.\n\nPure presentation: the list runs no script of its own, so a server-rendered list is complete\nbefore the element takes over.\n\n---\n\n\n### **Slots:**\n - _default_ - The rows: `el-list-item` elements.\n\n### **CSS Properties:**\n - **--el-list-padding-inline** - The padding of a row at its start and its end. Unset, it is `--el-space-4`, and `1rem` without a theme. Read by the rows, so it can be set on the list or for the page. _(default: undefined)_\n- **--el-list-gap** - The gap between the start, the texts, the end and the control of a row. Unset, it is `--el-space-3`, and `0.75rem` without a theme. Read by the rows as well. _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The list (`role=\"list\"`) and its surface.",
|
|
4982
|
+
"doc-url": "",
|
|
4983
|
+
"attributes": [
|
|
4984
|
+
{
|
|
4985
|
+
"name": "label",
|
|
4986
|
+
"description": "The name of the list for assistive technology. Unset, the list has none.",
|
|
4987
|
+
"value": {
|
|
4988
|
+
"type": "string"
|
|
4989
|
+
},
|
|
4990
|
+
"source": {
|
|
4991
|
+
"module": "./src/components/list/list.js",
|
|
4992
|
+
"symbol": "default"
|
|
4993
|
+
}
|
|
4994
|
+
},
|
|
4995
|
+
{
|
|
4996
|
+
"name": "density",
|
|
4997
|
+
"description": "How much room a row has above and below its texts. Default `'default'`. Reflected to the `density` attribute.",
|
|
4998
|
+
"value": {
|
|
4999
|
+
"type": "'default'|'compact'"
|
|
5000
|
+
},
|
|
5001
|
+
"source": {
|
|
5002
|
+
"module": "./src/components/list/list.js",
|
|
5003
|
+
"symbol": "default"
|
|
5004
|
+
}
|
|
5005
|
+
},
|
|
5006
|
+
{
|
|
5007
|
+
"name": "appearance",
|
|
5008
|
+
"description": "How the surface is painted: not at all, so the list reaches from edge to edge of its place, or as a card with the background of the page or a muted fill, a border and round corners. Default `'plain'`. Reflected to the `appearance` attribute.",
|
|
5009
|
+
"value": {
|
|
5010
|
+
"type": "'plain'|'outlined'|'filled'"
|
|
5011
|
+
},
|
|
5012
|
+
"source": {
|
|
5013
|
+
"module": "./src/components/list/list.js",
|
|
5014
|
+
"symbol": "default"
|
|
5015
|
+
}
|
|
5016
|
+
}
|
|
5017
|
+
],
|
|
5018
|
+
"slots": [
|
|
5019
|
+
{
|
|
5020
|
+
"name": "",
|
|
5021
|
+
"description": "The rows: `el-list-item` elements."
|
|
5022
|
+
}
|
|
5023
|
+
],
|
|
5024
|
+
"events": [],
|
|
5025
|
+
"js": {
|
|
5026
|
+
"properties": [
|
|
5027
|
+
{
|
|
5028
|
+
"name": "label",
|
|
5029
|
+
"description": "The name of the list for assistive technology. Unset, the list has none.",
|
|
5030
|
+
"type": "string"
|
|
5031
|
+
},
|
|
5032
|
+
{
|
|
5033
|
+
"name": "density",
|
|
5034
|
+
"description": "How much room a row has above and below its texts. Default `'default'`. Reflected to the `density` attribute.",
|
|
5035
|
+
"type": "'default'|'compact'"
|
|
5036
|
+
},
|
|
5037
|
+
{
|
|
5038
|
+
"name": "appearance",
|
|
5039
|
+
"description": "How the surface is painted: not at all, so the list reaches from edge to edge of its place, or as a card with the background of the page or a muted fill, a border and round corners. Default `'plain'`. Reflected to the `appearance` attribute.",
|
|
5040
|
+
"type": "'plain'|'outlined'|'filled'"
|
|
5041
|
+
}
|
|
5042
|
+
],
|
|
5043
|
+
"events": []
|
|
5044
|
+
},
|
|
5045
|
+
"source": {
|
|
5046
|
+
"module": "./src/components/list/list.js",
|
|
5047
|
+
"symbol": "default"
|
|
5048
|
+
}
|
|
5049
|
+
},
|
|
5050
|
+
{
|
|
5051
|
+
"name": "el-menu-group",
|
|
5052
|
+
"description": "A group of entries in an `el-menu`, with a heading where it has a `label`. A group to assistive\ntechnology (`role=\"group\"`), which has the heading as its name. A line divides it from what is\nbefore it in the menu.\n\n---\n\n\n### **Slots:**\n - _default_ - The entries of the group: `el-menu-item` elements.\n\n### **CSS Parts:**\n - **base** - The group, with the line over it.\n- **label** - The heading of the group.",
|
|
5053
|
+
"doc-url": "",
|
|
5054
|
+
"attributes": [
|
|
5055
|
+
{
|
|
5056
|
+
"name": "label",
|
|
5057
|
+
"description": "The heading of the group, and its name for assistive technology. Default `''`.",
|
|
5058
|
+
"value": {
|
|
5059
|
+
"type": "string"
|
|
5060
|
+
},
|
|
5061
|
+
"source": {
|
|
5062
|
+
"module": "./src/components/menu-group/menu-group.js",
|
|
5063
|
+
"symbol": "default"
|
|
5064
|
+
}
|
|
5065
|
+
}
|
|
5066
|
+
],
|
|
5067
|
+
"slots": [
|
|
5068
|
+
{
|
|
5069
|
+
"name": "",
|
|
5070
|
+
"description": "The entries of the group: `el-menu-item` elements."
|
|
5071
|
+
}
|
|
5072
|
+
],
|
|
5073
|
+
"events": [],
|
|
5074
|
+
"js": {
|
|
5075
|
+
"properties": [
|
|
5076
|
+
{
|
|
5077
|
+
"name": "label",
|
|
5078
|
+
"description": "The heading of the group, and its name for assistive technology. Default `''`.",
|
|
5079
|
+
"type": "string"
|
|
5080
|
+
}
|
|
5081
|
+
],
|
|
5082
|
+
"events": []
|
|
5083
|
+
},
|
|
5084
|
+
"source": {
|
|
5085
|
+
"module": "./src/components/menu-group/menu-group.js",
|
|
5086
|
+
"symbol": "default"
|
|
5087
|
+
}
|
|
5088
|
+
},
|
|
5089
|
+
{
|
|
5090
|
+
"name": "el-menu-item",
|
|
5091
|
+
"description": "One entry of an `el-menu`: an action, or a link with an address. A menu item to assistive\ntechnology (`role=\"menuitem\"`). The menu moves the focus of the keyboard to it, so it is no stop\nof the Tab key itself.\n\nChoosing an entry is a click on it: listen for `click` on the entry, or for `menu-select` on the\nmenu, which names the entry and its `value`.\n\nAn entry can set something instead of doing something. With `type=\"checkbox\"` it is on or off\n(`role=\"menuitemcheckbox\"`), with `type=\"radio\"` it is one of several of which one is chosen\n(`role=\"menuitemradio\"`), and `checked` is its state, which it says (`aria-checked`) and shows\nwith a mark in front of its text. The page sets `checked`: the entry does not change it when\nit is chosen.\n\n---\n\n\n### **Methods:**\n - **focus(options: _FocusOptions_)** - Puts the focus on the entry: on the control inside of it.\n\n### **Slots:**\n - _default_ - The text of the entry.\n- **icon** - An icon in front of the text: a decoration, the text is the name.\n\n### **CSS Parts:**\n - **base** - The entry: a `<button>`, or an `<a>` with `href`.\n- **mark** - The place of the mark of an entry with a `type`: a check, or a dot. It is there while the entry is not checked as well.\n- **icon** - The place of the icon.\n- **label** - The text of the entry.",
|
|
5092
|
+
"doc-url": "",
|
|
5093
|
+
"attributes": [
|
|
5094
|
+
{
|
|
5095
|
+
"name": "href",
|
|
5096
|
+
"description": "The address the entry leads to. With one it is a link.",
|
|
5097
|
+
"value": {
|
|
5098
|
+
"type": "string"
|
|
5099
|
+
},
|
|
5100
|
+
"source": {
|
|
5101
|
+
"module": "./src/components/menu-item/menu-item.js",
|
|
5102
|
+
"symbol": "default"
|
|
5103
|
+
}
|
|
5104
|
+
},
|
|
5105
|
+
{
|
|
5106
|
+
"name": "target",
|
|
5107
|
+
"description": "Where to open the address.",
|
|
5108
|
+
"value": {
|
|
5109
|
+
"type": "string"
|
|
5110
|
+
},
|
|
5111
|
+
"source": {
|
|
5112
|
+
"module": "./src/components/menu-item/menu-item.js",
|
|
5113
|
+
"symbol": "default"
|
|
5114
|
+
}
|
|
5115
|
+
},
|
|
5116
|
+
{
|
|
5117
|
+
"name": "rel",
|
|
5118
|
+
"description": "`rel` attribute for the link, written when `target` is set. Default `'noreferrer noopener'`.",
|
|
5119
|
+
"value": {
|
|
5120
|
+
"type": "string"
|
|
5121
|
+
},
|
|
5122
|
+
"source": {
|
|
5123
|
+
"module": "./src/components/menu-item/menu-item.js",
|
|
5124
|
+
"symbol": "default"
|
|
5125
|
+
}
|
|
5126
|
+
},
|
|
5127
|
+
{
|
|
5128
|
+
"name": "value",
|
|
5129
|
+
"description": "What the entry stands for, for the listener of `menu-select`: `'delete'`. Default `''`.",
|
|
5130
|
+
"value": {
|
|
5131
|
+
"type": "string"
|
|
5132
|
+
},
|
|
5133
|
+
"source": {
|
|
5134
|
+
"module": "./src/components/menu-item/menu-item.js",
|
|
5135
|
+
"symbol": "default"
|
|
5136
|
+
}
|
|
5137
|
+
},
|
|
5138
|
+
{
|
|
5139
|
+
"name": "disabled",
|
|
5140
|
+
"description": "Whether the entry cannot be chosen. The keyboard still gets to it. Default `false`.",
|
|
5141
|
+
"value": {
|
|
5142
|
+
"type": "boolean"
|
|
5143
|
+
},
|
|
5144
|
+
"source": {
|
|
5145
|
+
"module": "./src/components/menu-item/menu-item.js",
|
|
5146
|
+
"symbol": "default"
|
|
5147
|
+
}
|
|
5148
|
+
},
|
|
5149
|
+
{
|
|
5150
|
+
"name": "type",
|
|
5151
|
+
"description": "What the entry is: an action or a link (`'normal'`), an entry that is on or off (`'checkbox'`), or one of several of which one is chosen (`'radio'`). Default `'normal'`.",
|
|
5152
|
+
"value": {
|
|
5153
|
+
"type": "'normal'|'checkbox'|'radio'"
|
|
5154
|
+
},
|
|
5155
|
+
"source": {
|
|
5156
|
+
"module": "./src/components/menu-item/menu-item.js",
|
|
5157
|
+
"symbol": "default"
|
|
5158
|
+
}
|
|
5159
|
+
},
|
|
5160
|
+
{
|
|
5161
|
+
"name": "checked",
|
|
5162
|
+
"description": "Whether an entry with the `type` `checkbox` is on, or one with the `type` `radio` is the chosen one. The page sets it. Default `false`.",
|
|
5163
|
+
"value": {
|
|
5164
|
+
"type": "boolean"
|
|
5165
|
+
},
|
|
5166
|
+
"source": {
|
|
5167
|
+
"module": "./src/components/menu-item/menu-item.js",
|
|
5168
|
+
"symbol": "default"
|
|
5169
|
+
}
|
|
5170
|
+
},
|
|
5171
|
+
{
|
|
5172
|
+
"name": "variant",
|
|
5173
|
+
"description": "The variant of the entry: `danger` for something that cannot be undone. Default `'neutral'`. Reflected to the `variant` attribute.",
|
|
5174
|
+
"value": {
|
|
5175
|
+
"type": "'neutral'|'brand'|'success'|'warning'|'danger'"
|
|
5176
|
+
},
|
|
5177
|
+
"source": {
|
|
5178
|
+
"module": "./src/components/menu-item/menu-item.js",
|
|
5179
|
+
"symbol": "default"
|
|
5180
|
+
}
|
|
5181
|
+
}
|
|
5182
|
+
],
|
|
5183
|
+
"slots": [
|
|
5184
|
+
{
|
|
5185
|
+
"name": "",
|
|
5186
|
+
"description": "The text of the entry."
|
|
5187
|
+
},
|
|
5188
|
+
{
|
|
5189
|
+
"name": "icon",
|
|
5190
|
+
"description": "An icon in front of the text: a decoration, the text is the name."
|
|
5191
|
+
}
|
|
5192
|
+
],
|
|
5193
|
+
"events": [],
|
|
5194
|
+
"js": {
|
|
5195
|
+
"properties": [
|
|
5196
|
+
{
|
|
5197
|
+
"name": "href",
|
|
5198
|
+
"description": "The address the entry leads to. With one it is a link.",
|
|
5199
|
+
"type": "string"
|
|
5200
|
+
},
|
|
5201
|
+
{
|
|
5202
|
+
"name": "target",
|
|
5203
|
+
"description": "Where to open the address.",
|
|
5204
|
+
"type": "string"
|
|
5205
|
+
},
|
|
5206
|
+
{
|
|
5207
|
+
"name": "rel",
|
|
5208
|
+
"description": "`rel` attribute for the link, written when `target` is set. Default `'noreferrer noopener'`.",
|
|
5209
|
+
"type": "string"
|
|
5210
|
+
},
|
|
5211
|
+
{
|
|
5212
|
+
"name": "value",
|
|
5213
|
+
"description": "What the entry stands for, for the listener of `menu-select`: `'delete'`. Default `''`.",
|
|
5214
|
+
"type": "string"
|
|
5215
|
+
},
|
|
5216
|
+
{
|
|
5217
|
+
"name": "disabled",
|
|
5218
|
+
"description": "Whether the entry cannot be chosen. The keyboard still gets to it. Default `false`.",
|
|
5219
|
+
"type": "boolean"
|
|
5220
|
+
},
|
|
5221
|
+
{
|
|
5222
|
+
"name": "type",
|
|
5223
|
+
"description": "What the entry is: an action or a link (`'normal'`), an entry that is on or off (`'checkbox'`), or one of several of which one is chosen (`'radio'`). Default `'normal'`.",
|
|
5224
|
+
"type": "'normal'|'checkbox'|'radio'"
|
|
5225
|
+
},
|
|
5226
|
+
{
|
|
5227
|
+
"name": "checked",
|
|
5228
|
+
"description": "Whether an entry with the `type` `checkbox` is on, or one with the `type` `radio` is the chosen one. The page sets it. Default `false`.",
|
|
5229
|
+
"type": "boolean"
|
|
5230
|
+
},
|
|
5231
|
+
{
|
|
5232
|
+
"name": "variant",
|
|
5233
|
+
"description": "The variant of the entry: `danger` for something that cannot be undone. Default `'neutral'`. Reflected to the `variant` attribute.",
|
|
5234
|
+
"type": "'neutral'|'brand'|'success'|'warning'|'danger'"
|
|
5235
|
+
}
|
|
5236
|
+
],
|
|
5237
|
+
"events": []
|
|
5238
|
+
},
|
|
5239
|
+
"source": {
|
|
5240
|
+
"module": "./src/components/menu-item/menu-item.js",
|
|
5241
|
+
"symbol": "default"
|
|
5242
|
+
}
|
|
5243
|
+
},
|
|
5244
|
+
{
|
|
5245
|
+
"name": "el-menu",
|
|
5246
|
+
"description": "A menu button: a button that opens a list of actions. \"Edit, Duplicate, Delete\" for a row of a\ntable, the account in a header, \"More\" at the end of a toolbar. The button is what the page\nputs into the `trigger` slot, the actions are `el-menu-item` elements.\n\nTo assistive technology it is a menu (`role=\"menu\"`) of menu items, and the button says that it\nopens one and whether it is open. The keyboard moves through the entries with the arrow keys,\n`Home`, `End` and the first letter of an entry. `Escape` closes the menu and gives the focus\nback to the button, the Tab key closes it and moves on.\n\nThe panel is a native popover: it is in the top layer, so nothing clips it and it moves nothing\non the page. It is placed at the button, at the side that `placement` names, on the other side\nwithout room there, and never outside of the viewport. A press beside it closes it.\n\nChoosing an entry closes the menu and fires `menu-select`.\n\nOne menu can serve many things, the rows of a list: `showAt()` opens it at a point of the\nviewport, for a right click or a long press, or at an element of the page, a button of a row.\nWhat it was opened for is the `opener`, which gets the focus back and which `menu-select`\nnames.\n\n---\n\n\n### **Events:**\n - **menu-show** - Fired when the menu has opened.\n- **menu-hide** - Fired when the menu has closed.\n- **menu-select** - Fired when the user has chosen an entry: the `el-menu-item` is in `detail.item`, its `value` in `detail.value`, and what the menu was opened for in `detail.opener`. The menu closes after it.\n\n### **Methods:**\n - **show(): _void_** - Opens the menu, with the focus on its first entry.\n- **showAt(place: _Element | { x: number, y: number }_, opener: _Element_): _void_** - Opens the menu somewhere else than at its own button: one menu for the rows of a list.\n\nAt a point of the viewport, from a `contextmenu` event or a long press: the corner of the\nmenu is at the point, and the menu stays inside of the viewport. Or at an element of the\npage, the button of a row: the menu is placed at it as at its own button.\n\n`opener` is what the menu is opened for. It gets the focus back when the menu closes, and\n`menu-select` names it (`detail.opener`). Without one it is the element the menu is placed\nat.\n\nCalled with the click of a press on the element the menu is open at, it closes the menu:\nthe button of a row closes what it has opened, with the listener that opens it.\n- **hide(): _void_** - Closes the menu.\n- **toggle(): _void_** - Opens the menu when it is closed, and closes it when it is open.\n\n### **Slots:**\n - _default_ - The entries: `el-menu-item` elements, in `el-menu-group` elements where they are divided into groups. An `el-divider` is a line between two of them.\n- **trigger** - The button that opens the menu. It gets `aria-haspopup=\"menu\"` and `aria-expanded`.\n\n### **CSS Parts:**\n - **trigger** - Forwarded onto the `trigger` slot.\n- **panel** - The floating panel, which is the menu (`role=\"menu\"`): background, border, radius, elevation, width.",
|
|
5247
|
+
"doc-url": "",
|
|
5248
|
+
"attributes": [
|
|
5249
|
+
{
|
|
5250
|
+
"name": "open",
|
|
5251
|
+
"description": "Whether the menu is shown. Reflected to the `open` attribute.",
|
|
5252
|
+
"value": {
|
|
5253
|
+
"type": "boolean"
|
|
5254
|
+
},
|
|
5255
|
+
"source": {
|
|
5256
|
+
"module": "./src/components/menu/menu.js",
|
|
5257
|
+
"symbol": "default"
|
|
5258
|
+
}
|
|
5259
|
+
},
|
|
5260
|
+
{
|
|
5261
|
+
"name": "label",
|
|
5262
|
+
"description": "The name of the menu for assistive technology. Without one the menu has the name of its button.",
|
|
5263
|
+
"value": {
|
|
5264
|
+
"type": "string"
|
|
5265
|
+
},
|
|
5266
|
+
"source": {
|
|
5267
|
+
"module": "./src/components/menu/menu.js",
|
|
5268
|
+
"symbol": "default"
|
|
5269
|
+
}
|
|
5270
|
+
},
|
|
5271
|
+
{
|
|
5272
|
+
"name": "placement",
|
|
5273
|
+
"description": "The side of the button the menu is placed at, and with `-start` or `-end` the edge of the button it is aligned with. Without room there, the menu goes to the opposite side. Default `'bottom-start'`.",
|
|
5274
|
+
"value": {
|
|
5275
|
+
"type": "'top'|'top-start'|'top-end'|'bottom'|'bottom-start'|'bottom-end'|'left'|'left-start'|'left-end'|'right'|'right-start'|'right-end'"
|
|
5276
|
+
},
|
|
5277
|
+
"source": {
|
|
5278
|
+
"module": "./src/components/menu/menu.js",
|
|
5279
|
+
"symbol": "default"
|
|
5280
|
+
}
|
|
5281
|
+
},
|
|
5282
|
+
{
|
|
5283
|
+
"name": "distance",
|
|
5284
|
+
"description": "The gap between the button and the menu, in pixels. Default `4`.",
|
|
5285
|
+
"value": {
|
|
5286
|
+
"type": "number"
|
|
5287
|
+
},
|
|
5288
|
+
"source": {
|
|
5289
|
+
"module": "./src/components/menu/menu.js",
|
|
5290
|
+
"symbol": "default"
|
|
5291
|
+
}
|
|
5292
|
+
}
|
|
5293
|
+
],
|
|
5294
|
+
"slots": [
|
|
5295
|
+
{
|
|
5296
|
+
"name": "",
|
|
5297
|
+
"description": "The entries: `el-menu-item` elements, in `el-menu-group` elements where they are divided into groups. An `el-divider` is a line between two of them."
|
|
5298
|
+
},
|
|
5299
|
+
{
|
|
5300
|
+
"name": "trigger",
|
|
5301
|
+
"description": "The button that opens the menu. It gets `aria-haspopup=\"menu\"` and `aria-expanded`."
|
|
5302
|
+
}
|
|
5303
|
+
],
|
|
5304
|
+
"events": [
|
|
5305
|
+
{
|
|
5306
|
+
"name": "menu-show",
|
|
5307
|
+
"type": "CustomEvent",
|
|
5308
|
+
"description": "Fired when the menu has opened."
|
|
5309
|
+
},
|
|
5310
|
+
{
|
|
5311
|
+
"name": "menu-hide",
|
|
5312
|
+
"type": "CustomEvent",
|
|
5313
|
+
"description": "Fired when the menu has closed."
|
|
5314
|
+
},
|
|
5315
|
+
{
|
|
5316
|
+
"name": "menu-select",
|
|
5317
|
+
"type": "CustomEvent<{ item: HTMLElement, value: string, opener: Element | undefined }>",
|
|
5318
|
+
"description": "Fired when the user has chosen an entry: the `el-menu-item` is in `detail.item`, its `value` in `detail.value`, and what the menu was opened for in `detail.opener`. The menu closes after it."
|
|
5319
|
+
}
|
|
5320
|
+
],
|
|
5321
|
+
"js": {
|
|
5322
|
+
"properties": [
|
|
5323
|
+
{
|
|
5324
|
+
"name": "opener",
|
|
5325
|
+
"description": "What the menu is open for: the row or the button it was opened for with `showAt()`, or its\nown button. Nothing while it is closed."
|
|
5326
|
+
},
|
|
5327
|
+
{
|
|
5328
|
+
"name": "open",
|
|
5329
|
+
"description": "Whether the menu is shown. Reflected to the `open` attribute.",
|
|
5330
|
+
"type": "boolean"
|
|
5331
|
+
},
|
|
5332
|
+
{
|
|
5333
|
+
"name": "label",
|
|
5334
|
+
"description": "The name of the menu for assistive technology. Without one the menu has the name of its button.",
|
|
5335
|
+
"type": "string"
|
|
5336
|
+
},
|
|
5337
|
+
{
|
|
5338
|
+
"name": "placement",
|
|
5339
|
+
"description": "The side of the button the menu is placed at, and with `-start` or `-end` the edge of the button it is aligned with. Without room there, the menu goes to the opposite side. Default `'bottom-start'`.",
|
|
5340
|
+
"type": "'top'|'top-start'|'top-end'|'bottom'|'bottom-start'|'bottom-end'|'left'|'left-start'|'left-end'|'right'|'right-start'|'right-end'"
|
|
5341
|
+
},
|
|
5342
|
+
{
|
|
5343
|
+
"name": "distance",
|
|
5344
|
+
"description": "The gap between the button and the menu, in pixels. Default `4`.",
|
|
5345
|
+
"type": "number"
|
|
5346
|
+
}
|
|
5347
|
+
],
|
|
5348
|
+
"events": [
|
|
5349
|
+
{
|
|
5350
|
+
"name": "menu-show",
|
|
5351
|
+
"type": "CustomEvent",
|
|
5352
|
+
"description": "Fired when the menu has opened."
|
|
5353
|
+
},
|
|
5354
|
+
{
|
|
5355
|
+
"name": "menu-hide",
|
|
5356
|
+
"type": "CustomEvent",
|
|
5357
|
+
"description": "Fired when the menu has closed."
|
|
5358
|
+
},
|
|
5359
|
+
{
|
|
5360
|
+
"name": "menu-select",
|
|
5361
|
+
"type": "CustomEvent<{ item: HTMLElement, value: string, opener: Element | undefined }>",
|
|
5362
|
+
"description": "Fired when the user has chosen an entry: the `el-menu-item` is in `detail.item`, its `value` in `detail.value`, and what the menu was opened for in `detail.opener`. The menu closes after it."
|
|
5363
|
+
}
|
|
5364
|
+
]
|
|
5365
|
+
},
|
|
5366
|
+
"source": {
|
|
5367
|
+
"module": "./src/components/menu/menu.js",
|
|
5368
|
+
"symbol": "default"
|
|
5369
|
+
}
|
|
5370
|
+
},
|
|
5371
|
+
{
|
|
5372
|
+
"name": "el-nav-item",
|
|
5373
|
+
"description": "One destination of an `el-nav`: a link with an icon and a short text under it. The destination\nof the current view is marked: for assistive technology (`aria-current=\"page\"`), and for the\neye by more than its colour.\n\nA count or a dot goes into the `badge` slot, an `el-badge` as a rule. It is part of the link and\ncomes after the text, so a screen reader reads it with the name of the destination: \"Inbox 12\".\n\n---\n\n\n### **Slots:**\n - _default_ - The short text of the destination. One line: a text that does not fit is cut.\n- **icon** - The icon of the destination: a decoration, the text is the name.\n- **badge** - A count or a dot at the corner of the icon, an `el-badge` as a rule.\n\n### **CSS Parts:**\n - **base** - The entry of the list (`role=\"listitem\"`).\n- **link** - The link: the whole destination is its target.\n- **icon** - The icon, with the shape behind it that marks the current destination.\n- **badge** - The place of the badge, at the corner of the icon.\n- **label** - The text of the destination.",
|
|
5374
|
+
"doc-url": "",
|
|
5375
|
+
"attributes": [
|
|
5376
|
+
{
|
|
5377
|
+
"name": "href",
|
|
5378
|
+
"description": "The address the destination leads to.",
|
|
5379
|
+
"value": {
|
|
5380
|
+
"type": "string"
|
|
5381
|
+
},
|
|
5382
|
+
"source": {
|
|
5383
|
+
"module": "./src/components/nav-item/nav-item.js",
|
|
5384
|
+
"symbol": "default"
|
|
5385
|
+
}
|
|
5386
|
+
},
|
|
5387
|
+
{
|
|
5388
|
+
"name": "target",
|
|
5389
|
+
"description": "Where to open the address.",
|
|
5390
|
+
"value": {
|
|
5391
|
+
"type": "string"
|
|
5392
|
+
},
|
|
5393
|
+
"source": {
|
|
5394
|
+
"module": "./src/components/nav-item/nav-item.js",
|
|
5395
|
+
"symbol": "default"
|
|
5396
|
+
}
|
|
5397
|
+
},
|
|
5398
|
+
{
|
|
5399
|
+
"name": "rel",
|
|
5400
|
+
"description": "`rel` attribute for the link, written when `target` is set. Default `'noreferrer noopener'`.",
|
|
5401
|
+
"value": {
|
|
5402
|
+
"type": "string"
|
|
5403
|
+
},
|
|
5404
|
+
"source": {
|
|
5405
|
+
"module": "./src/components/nav-item/nav-item.js",
|
|
5406
|
+
"symbol": "default"
|
|
5407
|
+
}
|
|
5408
|
+
},
|
|
5409
|
+
{
|
|
5410
|
+
"name": "current",
|
|
5411
|
+
"description": "The destination of the current view: the link gets `aria-current=\"page\"`, a heavier text and a shape behind its icon.",
|
|
5412
|
+
"value": {
|
|
5413
|
+
"type": "boolean"
|
|
5414
|
+
},
|
|
5415
|
+
"source": {
|
|
5416
|
+
"module": "./src/components/nav-item/nav-item.js",
|
|
5417
|
+
"symbol": "default"
|
|
5418
|
+
}
|
|
5419
|
+
}
|
|
5420
|
+
],
|
|
5421
|
+
"slots": [
|
|
5422
|
+
{
|
|
5423
|
+
"name": "",
|
|
5424
|
+
"description": "The short text of the destination. One line: a text that does not fit is cut."
|
|
5425
|
+
},
|
|
5426
|
+
{
|
|
5427
|
+
"name": "icon",
|
|
5428
|
+
"description": "The icon of the destination: a decoration, the text is the name."
|
|
5429
|
+
},
|
|
5430
|
+
{
|
|
5431
|
+
"name": "badge",
|
|
5432
|
+
"description": "A count or a dot at the corner of the icon, an `el-badge` as a rule."
|
|
5433
|
+
}
|
|
5434
|
+
],
|
|
5435
|
+
"events": [],
|
|
5436
|
+
"js": {
|
|
5437
|
+
"properties": [
|
|
5438
|
+
{
|
|
5439
|
+
"name": "href",
|
|
5440
|
+
"description": "The address the destination leads to.",
|
|
5441
|
+
"type": "string"
|
|
5442
|
+
},
|
|
5443
|
+
{
|
|
5444
|
+
"name": "target",
|
|
5445
|
+
"description": "Where to open the address.",
|
|
5446
|
+
"type": "string"
|
|
5447
|
+
},
|
|
5448
|
+
{
|
|
5449
|
+
"name": "rel",
|
|
5450
|
+
"description": "`rel` attribute for the link, written when `target` is set. Default `'noreferrer noopener'`.",
|
|
5451
|
+
"type": "string"
|
|
5452
|
+
},
|
|
5453
|
+
{
|
|
5454
|
+
"name": "current",
|
|
5455
|
+
"description": "The destination of the current view: the link gets `aria-current=\"page\"`, a heavier text and a shape behind its icon.",
|
|
5456
|
+
"type": "boolean"
|
|
5457
|
+
}
|
|
5458
|
+
],
|
|
5459
|
+
"events": []
|
|
5460
|
+
},
|
|
5461
|
+
"source": {
|
|
5462
|
+
"module": "./src/components/nav-item/nav-item.js",
|
|
5463
|
+
"symbol": "default"
|
|
5464
|
+
}
|
|
5465
|
+
},
|
|
5466
|
+
{
|
|
5467
|
+
"name": "el-nav",
|
|
5468
|
+
"description": "The destinations of an application: the places the user goes to all the time. Each destination\nis an `el-nav-item`: a link with an icon and a short text, and the one of the current view is\nmarked. The element is a navigation landmark, named by `label`.\n\nThree layouts. A **bar** for the lower edge of a phone, in which three to five destinations share\nthe width in equal parts. A **rail** for the side of a wider screen: a narrow column of icons\nwith a word under each. A **list** for a sidebar: an icon and its text in one row, as wide as\nits place. A rail and a list have a group at their top and one at their lower end, and scroll\nwhere they have more destinations than height.\n\n`layout=\"auto\"`, the default, is a bar, and where an `el-app-frame` has the element in the\ncolumn at its side it is what `column` names, a rail or a list: the page writes the\ndestinations once.\n\nA second group takes the destinations that have no room among the five of a bar (the\n`secondary` slot, with `secondary-label` as its heading). A bar leaves it out.\n\nIn a region of an `el-app-frame` the surface reaches the edge of the screen, and the\ndestinations stay clear of the home indicator and the notch. Alone it keeps them clear itself.\n\nThe look is the stylesheet alone, so server-rendered destinations do not change when the\nelement takes over. The script adds the tooltips of destinations that show an icon alone.\n\n---\n\n\n### **Slots:**\n - _default_ - The destinations: `el-nav-item` elements.\n- **secondary** - A second group of destinations, below the first: the pages that have no room in a bar, which leaves them out.\n- **end** - The destinations at the lower end of a rail or a list: the settings, the account. A bar has no room for them, and leaves them out.\n\n### **CSS Properties:**\n - **--el-nav-rail-size** - The width of a rail. Default `5rem`. _(default: undefined)_\n- **--el-nav-list-size** - The width of a list where its place is as wide as what is in it. Default `16rem`. _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The navigation landmark (`<nav>`): the surface and its line to the content.\n- **groups** - The two groups at the top, which scroll where a rail or a list has more destinations than height.\n- **list** - The list of the destinations.\n- **secondary** - The second group: its heading and its list.\n- **secondary-label** - The heading of the second group, which a list shows.\n- **secondary-list** - The list of the destinations of the second group.\n- **end** - The list of the destinations at the lower end of a rail or a list.\n- **tooltip** - The tooltip of a destination that shows an icon alone: an `el-tooltip`.",
|
|
5469
|
+
"doc-url": "",
|
|
5470
|
+
"attributes": [
|
|
5471
|
+
{
|
|
5472
|
+
"name": "label",
|
|
5473
|
+
"description": "The name of the navigation for assistive technology, \"Main\". A page with more than one navigation needs it to tell them apart.",
|
|
5474
|
+
"value": {
|
|
5475
|
+
"type": "string"
|
|
5476
|
+
},
|
|
5477
|
+
"source": {
|
|
5478
|
+
"module": "./src/components/nav/nav.js",
|
|
5479
|
+
"symbol": "default"
|
|
5480
|
+
}
|
|
5481
|
+
},
|
|
5482
|
+
{
|
|
5483
|
+
"name": "layout",
|
|
5484
|
+
"description": "How the destinations lie: `bar`, a row in which they share the width in equal parts; `rail`, a narrow column; `list`, rows of an icon and its text; `auto`, a bar, and in the column at the side of an `el-app-frame` what `column` names. Default `'auto'`.",
|
|
5485
|
+
"value": {
|
|
5486
|
+
"type": "'auto'|'bar'|'rail'|'list'"
|
|
5487
|
+
},
|
|
5488
|
+
"source": {
|
|
5489
|
+
"module": "./src/components/nav/nav.js",
|
|
5490
|
+
"symbol": "default"
|
|
5491
|
+
}
|
|
5492
|
+
},
|
|
5493
|
+
{
|
|
5494
|
+
"name": "column",
|
|
5495
|
+
"description": "What the destinations are in the column at the side of an `el-app-frame`, with `layout=\"auto\"`. Default `'rail'`.",
|
|
5496
|
+
"value": {
|
|
5497
|
+
"type": "'rail'|'list'"
|
|
5498
|
+
},
|
|
5499
|
+
"source": {
|
|
5500
|
+
"module": "./src/components/nav/nav.js",
|
|
5501
|
+
"symbol": "default"
|
|
5502
|
+
}
|
|
5503
|
+
},
|
|
5504
|
+
{
|
|
5505
|
+
"name": "secondary-label",
|
|
5506
|
+
"description": "The heading of the second group, and its name for assistive technology: \"More\". Default `''`.",
|
|
5507
|
+
"value": {
|
|
5508
|
+
"type": "string"
|
|
5509
|
+
},
|
|
5510
|
+
"source": {
|
|
5511
|
+
"module": "./src/components/nav/nav.js",
|
|
5512
|
+
"symbol": "default"
|
|
5513
|
+
}
|
|
5514
|
+
},
|
|
5515
|
+
{
|
|
5516
|
+
"name": "labels",
|
|
5517
|
+
"description": "Whether the destinations show their texts. With `false` they show an icon alone: the text stays the name of the link, and shows as a tooltip. Default `true`.",
|
|
5518
|
+
"value": {
|
|
5519
|
+
"type": "boolean"
|
|
5520
|
+
},
|
|
5521
|
+
"source": {
|
|
5522
|
+
"module": "./src/components/nav/nav.js",
|
|
5523
|
+
"symbol": "default"
|
|
5524
|
+
}
|
|
5525
|
+
}
|
|
5526
|
+
],
|
|
5527
|
+
"slots": [
|
|
5528
|
+
{
|
|
5529
|
+
"name": "",
|
|
5530
|
+
"description": "The destinations: `el-nav-item` elements."
|
|
5531
|
+
},
|
|
5532
|
+
{
|
|
5533
|
+
"name": "secondary",
|
|
5534
|
+
"description": "A second group of destinations, below the first: the pages that have no room in a bar, which leaves them out."
|
|
5535
|
+
},
|
|
5536
|
+
{
|
|
5537
|
+
"name": "end",
|
|
5538
|
+
"description": "The destinations at the lower end of a rail or a list: the settings, the account. A bar has no room for them, and leaves them out."
|
|
5539
|
+
}
|
|
5540
|
+
],
|
|
5541
|
+
"events": [],
|
|
5542
|
+
"js": {
|
|
5543
|
+
"properties": [
|
|
5544
|
+
{
|
|
5545
|
+
"name": "label",
|
|
5546
|
+
"description": "The name of the navigation for assistive technology, \"Main\". A page with more than one navigation needs it to tell them apart.",
|
|
5547
|
+
"type": "string"
|
|
5548
|
+
},
|
|
5549
|
+
{
|
|
5550
|
+
"name": "layout",
|
|
5551
|
+
"description": "How the destinations lie: `bar`, a row in which they share the width in equal parts; `rail`, a narrow column; `list`, rows of an icon and its text; `auto`, a bar, and in the column at the side of an `el-app-frame` what `column` names. Default `'auto'`.",
|
|
5552
|
+
"type": "'auto'|'bar'|'rail'|'list'"
|
|
5553
|
+
},
|
|
5554
|
+
{
|
|
5555
|
+
"name": "column",
|
|
5556
|
+
"description": "What the destinations are in the column at the side of an `el-app-frame`, with `layout=\"auto\"`. Default `'rail'`.",
|
|
5557
|
+
"type": "'rail'|'list'"
|
|
5558
|
+
},
|
|
5559
|
+
{
|
|
5560
|
+
"name": "secondaryLabel",
|
|
5561
|
+
"description": "The heading of the second group, and its name for assistive technology: \"More\". Default `''`.",
|
|
5562
|
+
"type": "string"
|
|
5563
|
+
},
|
|
5564
|
+
{
|
|
5565
|
+
"name": "labels",
|
|
5566
|
+
"description": "Whether the destinations show their texts. With `false` they show an icon alone: the text stays the name of the link, and shows as a tooltip. Default `true`.",
|
|
5567
|
+
"type": "boolean"
|
|
5568
|
+
}
|
|
5569
|
+
],
|
|
5570
|
+
"events": []
|
|
5571
|
+
},
|
|
5572
|
+
"source": {
|
|
5573
|
+
"module": "./src/components/nav/nav.js",
|
|
5574
|
+
"symbol": "default"
|
|
5575
|
+
}
|
|
5576
|
+
},
|
|
5577
|
+
{
|
|
5578
|
+
"name": "el-notification",
|
|
5579
|
+
"description": "A notification / alert: feedback after an action, or a status message in the page. Semantic\nvariants, an optional close button, and optional auto-dismiss. It is shown where it stands;\n`el-toast` shows it as a toast, at an edge of the viewport.\n\nThe `variant` speaks the library's shared vocabulary for colours, as `el-button` does: the\nstripe at the start of the panel has the border colour of the variant, the icon its text colour.\n\nThe host is exposed as an ARIA live region — `role=\"alert\"` (assertive) for `danger` / `warning`\nvariants, `role=\"status\"` (polite) otherwise — so it is announced when it appears.\n\n---\n\n\n### **Events:**\n - **notification-show** - Fired when the notification starts to open.\n- **notification-after-show** - Fired once the open transition has finished.\n- **notification-hide** - Fired when the notification starts to close.\n- **notification-after-hide** - Fired once the close transition has finished.\n\n### **Methods:**\n - **show(): _Promise<void>_** - Shows the notification.\n- **hide(): _Promise<void>_** - Hides the notification.\n\n### **Slots:**\n - _default_ - The notification's message.\n- **icon** - A leading icon. Falls back to a variant-appropriate default icon.\n\n### **CSS Parts:**\n - **base** - The animated outer wrapper.\n- **panel** - The visual surface (background, border, variant accent).\n- **icon** - The leading icon container.\n- **message** - The message wrapper around the default slot.\n- **close-button** - The optional close button.",
|
|
5580
|
+
"doc-url": "",
|
|
5581
|
+
"attributes": [
|
|
5582
|
+
{
|
|
5583
|
+
"name": "open",
|
|
5584
|
+
"description": "Whether the notification is shown. Reflected to the `open` attribute.",
|
|
5585
|
+
"value": {
|
|
5586
|
+
"type": "boolean"
|
|
5587
|
+
},
|
|
5588
|
+
"source": {
|
|
5589
|
+
"module": "./src/components/notification/notification.js",
|
|
5590
|
+
"symbol": "default"
|
|
5591
|
+
}
|
|
5592
|
+
},
|
|
5593
|
+
{
|
|
5594
|
+
"name": "variant",
|
|
5595
|
+
"description": "Semantic variant, which picks the colours and the icon. Default `'neutral'`. Reflected to the `variant` attribute.",
|
|
5596
|
+
"value": {
|
|
5597
|
+
"type": "'neutral'|'brand'|'success'|'warning'|'danger'"
|
|
5598
|
+
},
|
|
5599
|
+
"source": {
|
|
5600
|
+
"module": "./src/components/notification/notification.js",
|
|
5601
|
+
"symbol": "default"
|
|
5602
|
+
}
|
|
5603
|
+
},
|
|
5604
|
+
{
|
|
5605
|
+
"name": "closable",
|
|
5606
|
+
"description": "Whether to render a close button. Default `false`.",
|
|
5607
|
+
"value": {
|
|
5608
|
+
"type": "boolean"
|
|
5609
|
+
},
|
|
5610
|
+
"source": {
|
|
5611
|
+
"module": "./src/components/notification/notification.js",
|
|
5612
|
+
"symbol": "default"
|
|
5613
|
+
}
|
|
5614
|
+
},
|
|
5615
|
+
{
|
|
5616
|
+
"name": "close-label",
|
|
5617
|
+
"description": "Accessible label for the close button. Default `'Close'`.",
|
|
5618
|
+
"value": {
|
|
5619
|
+
"type": "string"
|
|
5620
|
+
},
|
|
5621
|
+
"source": {
|
|
5622
|
+
"module": "./src/components/notification/notification.js",
|
|
5623
|
+
"symbol": "default"
|
|
5624
|
+
}
|
|
5625
|
+
},
|
|
5626
|
+
{
|
|
5627
|
+
"name": "duration",
|
|
5628
|
+
"description": "Auto-dismiss delay in milliseconds; `Infinity` (default) never auto-dismisses. The countdown pauses while the pointer or focus is inside the notification.",
|
|
5629
|
+
"value": {
|
|
5630
|
+
"type": "number"
|
|
4215
5631
|
},
|
|
4216
5632
|
"source": {
|
|
4217
5633
|
"module": "./src/components/notification/notification.js",
|
|
@@ -4309,7 +5725,7 @@
|
|
|
4309
5725
|
},
|
|
4310
5726
|
{
|
|
4311
5727
|
"name": "el-otp-field",
|
|
4312
|
-
"description": "A one-time code: the short code of a second factor that the user gets by SMS, by mail or from an\napp. Extends `InputField` (and therefore `FormField`), inheriting the label / help / error /\nvalidation surface and the look from `styles/native.css`.\n\nIt is one native `<input>`, not one per digit: the code from an SMS, a paste, a password manager\nand a screen reader all work on one control. The field sets what such an input needs\n(`autocomplete`, `inputmode`, a pattern of `length` digits), takes the spaces and the hyphens out\nof a code that is entered the way a mail shows it, takes no further key once the code is full, and\nsays when the code is complete.\n\n---\n\n\n### **Events:**\n - **input-change** - Fired when the value changes. `detail` is the new value. Bubbles.\n- **input-complete** - Fired when the user has entered a code of full length that is valid: once, and again after the code was changed and completed again. Not fired for a value a script sets. `detail` is the code. Bubbles.\n\n### **Methods:**\n - **onChange(): _void_** - Called when the input value changes. Updates `value` and refreshes validation.\n\nA control that is empty is no change for a field without a value: `value` stays `null`. A key\nthat enters nothing (Shift, an arrow key) and the first key of a date leave the control empty.\nTaking that as the value `''` wrote it to the control as its default with the next render,\nand a control for a date or a time drops what the user has entered so far when its value is\nwritten: the first key was lost.\n- **onFocus(): _void_** - Called when the input receives focus. Refreshes validation state.\n- **onBlur(): _void_** - Called when the input loses focus. Marks the field as touched and refreshes\nvalidation state.\n- **clearInput(): _void_** - Clears the input value, refocuses it, and resets the touched state. The field follows the\ncontrol, as it does when the user deletes the text by hand: `value` is empty, `input-change`\nreports it, and `valid` is what the control says.",
|
|
5728
|
+
"description": "A one-time code: the short code of a second factor that the user gets by SMS, by mail or from an\napp. Extends `InputField` (and therefore `FormField`), inheriting the label / help / error /\nvalidation surface and the look from `styles/native.css`.\n\nIt is one native `<input>`, not one per digit: the code from an SMS, a paste, a password manager\nand a screen reader all work on one control. The field sets what such an input needs\n(`autocomplete`, `inputmode`, a pattern of `length` digits), takes the spaces and the hyphens out\nof a code that is entered the way a mail shows it, takes no further key once the code is full, and\nsays when the code is complete.\n\n---\n\n\n### **Events:**\n - **input-change** - Fired when the value changes. `detail` is the new value. Bubbles.\n- **input-complete** - Fired when the user has entered a code of full length that is valid: once, and again after the code was changed and completed again. Not fired for a value a script sets. `detail` is the code. Bubbles.\n\n### **Methods:**\n - **onChange(): _void_** - Called when the input value changes. Updates `value` and refreshes validation.\n\nA control that is empty is no change for a field without a value: `value` stays `null`. A key\nthat enters nothing (Shift, an arrow key) and the first key of a date leave the control empty.\nTaking that as the value `''` wrote it to the control as its default with the next render,\nand a control for a date or a time drops what the user has entered so far when its value is\nwritten: the first key was lost.\n- **onFocus(): _void_** - Called when the input receives focus. Refreshes validation state.\n- **onBlur(): _void_** - Called when the input loses focus. Marks the field as touched and refreshes\nvalidation state.\n- **clearInput(): _void_** - Clears the input value, refocuses it, and resets the touched state. The field follows the\ncontrol, as it does when the user deletes the text by hand: `value` is empty, `input-change`\nreports it, and `valid` is what the control says.\n\n### **Slots:**\n - **start** - Content at the start of the control, in front of the text: an icon, a text, a button. An element of the page with `slot=\"start\"`.\n- **end** - Content at the end of the control, after the text: a unit, a button. An element of the page with `slot=\"end\"`.",
|
|
4313
5729
|
"doc-url": "",
|
|
4314
5730
|
"attributes": [
|
|
4315
5731
|
{
|
|
@@ -4389,6 +5805,50 @@
|
|
|
4389
5805
|
"symbol": "default"
|
|
4390
5806
|
}
|
|
4391
5807
|
},
|
|
5808
|
+
{
|
|
5809
|
+
"name": "clearable",
|
|
5810
|
+
"description": "Whether the control has a button that empties it. The button shows while the field has a value and is not disabled. Default `false`.",
|
|
5811
|
+
"value": {
|
|
5812
|
+
"type": "boolean"
|
|
5813
|
+
},
|
|
5814
|
+
"source": {
|
|
5815
|
+
"module": "./src/components/otp-field/otp-field.js",
|
|
5816
|
+
"symbol": "default"
|
|
5817
|
+
}
|
|
5818
|
+
},
|
|
5819
|
+
{
|
|
5820
|
+
"name": "clear-label",
|
|
5821
|
+
"description": "The name of that button for assistive technology. Default `'Clear'`.",
|
|
5822
|
+
"value": {
|
|
5823
|
+
"type": "string"
|
|
5824
|
+
},
|
|
5825
|
+
"source": {
|
|
5826
|
+
"module": "./src/components/otp-field/otp-field.js",
|
|
5827
|
+
"symbol": "default"
|
|
5828
|
+
}
|
|
5829
|
+
},
|
|
5830
|
+
{
|
|
5831
|
+
"name": "maxlength",
|
|
5832
|
+
"description": "Passed on to the control as `maxlength`: the browser takes no more characters than this while the user types. `null` (the default) leaves the attribute out.",
|
|
5833
|
+
"value": {
|
|
5834
|
+
"type": "number | null"
|
|
5835
|
+
},
|
|
5836
|
+
"source": {
|
|
5837
|
+
"module": "./src/components/otp-field/otp-field.js",
|
|
5838
|
+
"symbol": "default"
|
|
5839
|
+
}
|
|
5840
|
+
},
|
|
5841
|
+
{
|
|
5842
|
+
"name": "minlength",
|
|
5843
|
+
"description": "Passed on as `minlength`: a text the user has typed that is shorter makes the field invalid. `null` (the default) leaves the attribute out.",
|
|
5844
|
+
"value": {
|
|
5845
|
+
"type": "number | null"
|
|
5846
|
+
},
|
|
5847
|
+
"source": {
|
|
5848
|
+
"module": "./src/components/otp-field/otp-field.js",
|
|
5849
|
+
"symbol": "default"
|
|
5850
|
+
}
|
|
5851
|
+
},
|
|
4392
5852
|
{
|
|
4393
5853
|
"name": "enterkeyhint",
|
|
4394
5854
|
"description": "Passed on as `enterkeyhint`: the label of the enter key on an on-screen keyboard (e.g. `'next'`, `'send'`).",
|
|
@@ -4544,6 +6004,16 @@
|
|
|
4544
6004
|
}
|
|
4545
6005
|
}
|
|
4546
6006
|
],
|
|
6007
|
+
"slots": [
|
|
6008
|
+
{
|
|
6009
|
+
"name": "start",
|
|
6010
|
+
"description": "Content at the start of the control, in front of the text: an icon, a text, a button. An element of the page with `slot=\"start\"`."
|
|
6011
|
+
},
|
|
6012
|
+
{
|
|
6013
|
+
"name": "end",
|
|
6014
|
+
"description": "Content at the end of the control, after the text: a unit, a button. An element of the page with `slot=\"end\"`."
|
|
6015
|
+
}
|
|
6016
|
+
],
|
|
4547
6017
|
"events": [
|
|
4548
6018
|
{
|
|
4549
6019
|
"name": "input-change",
|
|
@@ -4593,6 +6063,26 @@
|
|
|
4593
6063
|
"description": "Placeholder text shown while the input is empty.",
|
|
4594
6064
|
"type": "string"
|
|
4595
6065
|
},
|
|
6066
|
+
{
|
|
6067
|
+
"name": "clearable",
|
|
6068
|
+
"description": "Whether the control has a button that empties it. The button shows while the field has a value and is not disabled. Default `false`.",
|
|
6069
|
+
"type": "boolean"
|
|
6070
|
+
},
|
|
6071
|
+
{
|
|
6072
|
+
"name": "clearLabel",
|
|
6073
|
+
"description": "The name of that button for assistive technology. Default `'Clear'`.",
|
|
6074
|
+
"type": "string"
|
|
6075
|
+
},
|
|
6076
|
+
{
|
|
6077
|
+
"name": "maxlength",
|
|
6078
|
+
"description": "Passed on to the control as `maxlength`: the browser takes no more characters than this while the user types. `null` (the default) leaves the attribute out.",
|
|
6079
|
+
"type": "number | null"
|
|
6080
|
+
},
|
|
6081
|
+
{
|
|
6082
|
+
"name": "minlength",
|
|
6083
|
+
"description": "Passed on as `minlength`: a text the user has typed that is shorter makes the field invalid. `null` (the default) leaves the attribute out.",
|
|
6084
|
+
"type": "number | null"
|
|
6085
|
+
},
|
|
4596
6086
|
{
|
|
4597
6087
|
"name": "enterkeyhint",
|
|
4598
6088
|
"description": "Passed on as `enterkeyhint`: the label of the enter key on an on-screen keyboard (e.g. `'next'`, `'send'`).",
|
|
@@ -4684,7 +6174,7 @@
|
|
|
4684
6174
|
},
|
|
4685
6175
|
{
|
|
4686
6176
|
"name": "el-pagination",
|
|
4687
|
-
"description": "A pagination: the way through a list that is split into pages. It shows the current page, the\npages around it, the first and the last, and a button for the page before and the page after.\nThe pages in between are left out, and the row keeps its length while the current page moves.\n\nThe pagination does not load anything. A button sets `page` and fires `pagination-change`, and\nthe page shows the entries that belong to it.\n\n---\n\n\n### **Events:**\n - **pagination-change** - Fired when a button has changed the page. `detail.page` is the new page. Not fired when `page` is set from a script.\n\n### **Slots:**\n - **previous-icon** - The icon of the button for the page before. Unset, an arrow head.\n- **next-icon** - The icon of the button for the page after. Unset, an arrow head.\n\n### **CSS Parts:**\n - **base** - The `nav` landmark.\n- **list** - The row of the buttons.\n- **button** - Every button: the pages, the page before and the page after.\n- **page** - The button of a page.\n- **current** - The button of the current page.\n- **previous** - The button for the page before.\n- **next** - The button for the page after.\n- **ellipsis** - The mark in the place of pages that are left out.",
|
|
6177
|
+
"description": "A pagination: the way through a list that is split into pages. It shows the current page, the\npages around it, the first and the last, and a button for the page before and the page after.\nThe pages in between are left out, and the row keeps its length while the current page moves.\n\nThe pagination does not load anything. A button sets `page` and fires `pagination-change`, and\nthe page shows the entries that belong to it.\n\nA list that a server renders a page at a time has the page in its address. With `href`, the\naddress of a page with `{page}` in the place of its number, the pages are links: they are in\nthe server-rendered markup, lead to their page without a script, open in a new tab and can be\ncopied. A link fires nothing and changes nothing: the address it leads to brings the next page.\n\n---\n\n\n### **Events:**\n - **pagination-change** - Fired when a button has changed the page. `detail.page` is the new page. Not fired when `page` is set from a script, and not by a link.\n\n### **Slots:**\n - **previous-icon** - The icon of the button for the page before. Unset, an arrow head.\n- **next-icon** - The icon of the button for the page after. Unset, an arrow head.\n\n### **CSS Parts:**\n - **base** - The `nav` landmark.\n- **list** - The row of the buttons.\n- **button** - Every button: the pages, the page before and the page after. With `href` they are links, and keep their parts.\n- **page** - The button of a page.\n- **current** - The button of the current page.\n- **previous** - The button for the page before.\n- **next** - The button for the page after.\n- **ellipsis** - The mark in the place of pages that are left out.",
|
|
4688
6178
|
"doc-url": "",
|
|
4689
6179
|
"attributes": [
|
|
4690
6180
|
{
|
|
@@ -4698,6 +6188,17 @@
|
|
|
4698
6188
|
"symbol": "default"
|
|
4699
6189
|
}
|
|
4700
6190
|
},
|
|
6191
|
+
{
|
|
6192
|
+
"name": "href",
|
|
6193
|
+
"description": "The address of a page, with `{page}` in the place of its number: `/notes?page={page}`. With it the pages, the page before and the page after are links. Default `''`: buttons.",
|
|
6194
|
+
"value": {
|
|
6195
|
+
"type": "string"
|
|
6196
|
+
},
|
|
6197
|
+
"source": {
|
|
6198
|
+
"module": "./src/components/pagination/pagination.js",
|
|
6199
|
+
"symbol": "default"
|
|
6200
|
+
}
|
|
6201
|
+
},
|
|
4701
6202
|
{
|
|
4702
6203
|
"name": "total",
|
|
4703
6204
|
"description": "The number of entries in the whole list. Default `0`.",
|
|
@@ -4812,7 +6313,7 @@
|
|
|
4812
6313
|
{
|
|
4813
6314
|
"name": "pagination-change",
|
|
4814
6315
|
"type": "CustomEvent<{ page: number }>",
|
|
4815
|
-
"description": "Fired when a button has changed the page. `detail.page` is the new page. Not fired when `page` is set from a script."
|
|
6316
|
+
"description": "Fired when a button has changed the page. `detail.page` is the new page. Not fired when `page` is set from a script, and not by a link."
|
|
4816
6317
|
}
|
|
4817
6318
|
],
|
|
4818
6319
|
"js": {
|
|
@@ -4826,6 +6327,11 @@
|
|
|
4826
6327
|
"description": "The current page, counted from 1. A page that does not exist is shown as the nearest one that does. Default `1`. Reflected to the `page` attribute.",
|
|
4827
6328
|
"type": "number"
|
|
4828
6329
|
},
|
|
6330
|
+
{
|
|
6331
|
+
"name": "href",
|
|
6332
|
+
"description": "The address of a page, with `{page}` in the place of its number: `/notes?page={page}`. With it the pages, the page before and the page after are links. Default `''`: buttons.",
|
|
6333
|
+
"type": "string"
|
|
6334
|
+
},
|
|
4829
6335
|
{
|
|
4830
6336
|
"name": "total",
|
|
4831
6337
|
"description": "The number of entries in the whole list. Default `0`.",
|
|
@@ -4876,7 +6382,7 @@
|
|
|
4876
6382
|
{
|
|
4877
6383
|
"name": "pagination-change",
|
|
4878
6384
|
"type": "CustomEvent<{ page: number }>",
|
|
4879
|
-
"description": "Fired when a button has changed the page. `detail.page` is the new page. Not fired when `page` is set from a script."
|
|
6385
|
+
"description": "Fired when a button has changed the page. `detail.page` is the new page. Not fired when `page` is set from a script, and not by a link."
|
|
4880
6386
|
}
|
|
4881
6387
|
]
|
|
4882
6388
|
},
|
|
@@ -4887,7 +6393,7 @@
|
|
|
4887
6393
|
},
|
|
4888
6394
|
{
|
|
4889
6395
|
"name": "el-password-field",
|
|
4890
|
-
"description": "A password input with an optional show/hide reveal toggle. Extends `InputField` (and therefore\n`FormField`), inheriting the label / help / error / validation surface; it pins the input `type`\nto `password` and flips it to `text` while revealed.\n\n---\n\n\n### **Events:**\n - **input-change** - Fired when the input's value changes. `detail` is the new value. Bubbles.\n\n### **Methods:**\n - **togglePasswordVisibility(): _void_** - Toggles between masked (`password`) and revealed (`text`) input.\n- **onFocus(): _void_** - Called when the input receives focus. Refreshes validation state.\n- **onBlur(): _void_** - Called when the input loses focus. Marks the field as touched and refreshes\nvalidation state.\n- **onChange(): _void_** - Called when the input value changes. Updates `value` and refreshes validation.\n\nA control that is empty is no change for a field without a value: `value` stays `null`. A key\nthat enters nothing (Shift, an arrow key) and the first key of a date leave the control empty.\nTaking that as the value `''` wrote it to the control as its default with the next render,\nand a control for a date or a time drops what the user has entered so far when its value is\nwritten: the first key was lost.\n- **clearInput(): _void_** - Clears the input value, refocuses it, and resets the touched state. The field follows the\ncontrol, as it does when the user deletes the text by hand: `value` is empty, `input-change`\nreports it, and `valid` is what the control says.",
|
|
6396
|
+
"description": "A password input with an optional show/hide reveal toggle. Extends `InputField` (and therefore\n`FormField`), inheriting the label / help / error / validation surface; it pins the input `type`\nto `password` and flips it to `text` while revealed.\n\n---\n\n\n### **Events:**\n - **input-change** - Fired when the input's value changes. `detail` is the new value. Bubbles.\n\n### **Methods:**\n - **togglePasswordVisibility(): _void_** - Toggles between masked (`password`) and revealed (`text`) input.\n- **onFocus(): _void_** - Called when the input receives focus. Refreshes validation state.\n- **onBlur(): _void_** - Called when the input loses focus. Marks the field as touched and refreshes\nvalidation state.\n- **onChange(): _void_** - Called when the input value changes. Updates `value` and refreshes validation.\n\nA control that is empty is no change for a field without a value: `value` stays `null`. A key\nthat enters nothing (Shift, an arrow key) and the first key of a date leave the control empty.\nTaking that as the value `''` wrote it to the control as its default with the next render,\nand a control for a date or a time drops what the user has entered so far when its value is\nwritten: the first key was lost.\n- **clearInput(): _void_** - Clears the input value, refocuses it, and resets the touched state. The field follows the\ncontrol, as it does when the user deletes the text by hand: `value` is empty, `input-change`\nreports it, and `valid` is what the control says.\n\n### **Slots:**\n - **start** - Content at the start of the control, in front of the text: an icon, a text, a button. An element of the page with `slot=\"start\"`.\n- **end** - Content at the end of the control, after the text: a unit, a button. An element of the page with `slot=\"end\"`.",
|
|
4891
6397
|
"doc-url": "",
|
|
4892
6398
|
"attributes": [
|
|
4893
6399
|
{
|
|
@@ -4960,7 +6466,51 @@
|
|
|
4960
6466
|
"name": "placeholder",
|
|
4961
6467
|
"description": "Placeholder text shown while the input is empty.",
|
|
4962
6468
|
"value": {
|
|
4963
|
-
"type": "string"
|
|
6469
|
+
"type": "string"
|
|
6470
|
+
},
|
|
6471
|
+
"source": {
|
|
6472
|
+
"module": "./src/components/password-field/password-field.js",
|
|
6473
|
+
"symbol": "default"
|
|
6474
|
+
}
|
|
6475
|
+
},
|
|
6476
|
+
{
|
|
6477
|
+
"name": "pattern",
|
|
6478
|
+
"description": "Regular expression used as the input's `pattern` attribute. When `false` (the default), the `pattern` attribute is omitted entirely, so the field applies no pattern constraint.",
|
|
6479
|
+
"value": {
|
|
6480
|
+
"type": "string | false"
|
|
6481
|
+
},
|
|
6482
|
+
"source": {
|
|
6483
|
+
"module": "./src/components/password-field/password-field.js",
|
|
6484
|
+
"symbol": "default"
|
|
6485
|
+
}
|
|
6486
|
+
},
|
|
6487
|
+
{
|
|
6488
|
+
"name": "clearable",
|
|
6489
|
+
"description": "Whether the control has a button that empties it. The button shows while the field has a value and is not disabled. Default `false`.",
|
|
6490
|
+
"value": {
|
|
6491
|
+
"type": "boolean"
|
|
6492
|
+
},
|
|
6493
|
+
"source": {
|
|
6494
|
+
"module": "./src/components/password-field/password-field.js",
|
|
6495
|
+
"symbol": "default"
|
|
6496
|
+
}
|
|
6497
|
+
},
|
|
6498
|
+
{
|
|
6499
|
+
"name": "clear-label",
|
|
6500
|
+
"description": "The name of that button for assistive technology. Default `'Clear'`.",
|
|
6501
|
+
"value": {
|
|
6502
|
+
"type": "string"
|
|
6503
|
+
},
|
|
6504
|
+
"source": {
|
|
6505
|
+
"module": "./src/components/password-field/password-field.js",
|
|
6506
|
+
"symbol": "default"
|
|
6507
|
+
}
|
|
6508
|
+
},
|
|
6509
|
+
{
|
|
6510
|
+
"name": "maxlength",
|
|
6511
|
+
"description": "Passed on to the control as `maxlength`: the browser takes no more characters than this while the user types. `null` (the default) leaves the attribute out.",
|
|
6512
|
+
"value": {
|
|
6513
|
+
"type": "number | null"
|
|
4964
6514
|
},
|
|
4965
6515
|
"source": {
|
|
4966
6516
|
"module": "./src/components/password-field/password-field.js",
|
|
@@ -4968,10 +6518,10 @@
|
|
|
4968
6518
|
}
|
|
4969
6519
|
},
|
|
4970
6520
|
{
|
|
4971
|
-
"name": "
|
|
4972
|
-
"description": "
|
|
6521
|
+
"name": "minlength",
|
|
6522
|
+
"description": "Passed on as `minlength`: a text the user has typed that is shorter makes the field invalid. `null` (the default) leaves the attribute out.",
|
|
4973
6523
|
"value": {
|
|
4974
|
-
"type": "
|
|
6524
|
+
"type": "number | null"
|
|
4975
6525
|
},
|
|
4976
6526
|
"source": {
|
|
4977
6527
|
"module": "./src/components/password-field/password-field.js",
|
|
@@ -5155,6 +6705,16 @@
|
|
|
5155
6705
|
}
|
|
5156
6706
|
}
|
|
5157
6707
|
],
|
|
6708
|
+
"slots": [
|
|
6709
|
+
{
|
|
6710
|
+
"name": "start",
|
|
6711
|
+
"description": "Content at the start of the control, in front of the text: an icon, a text, a button. An element of the page with `slot=\"start\"`."
|
|
6712
|
+
},
|
|
6713
|
+
{
|
|
6714
|
+
"name": "end",
|
|
6715
|
+
"description": "Content at the end of the control, after the text: a unit, a button. An element of the page with `slot=\"end\"`."
|
|
6716
|
+
}
|
|
6717
|
+
],
|
|
5158
6718
|
"events": [
|
|
5159
6719
|
{
|
|
5160
6720
|
"name": "input-change",
|
|
@@ -5204,6 +6764,26 @@
|
|
|
5204
6764
|
"description": "Regular expression used as the input's `pattern` attribute. When `false` (the default), the `pattern` attribute is omitted entirely, so the field applies no pattern constraint.",
|
|
5205
6765
|
"type": "string | false"
|
|
5206
6766
|
},
|
|
6767
|
+
{
|
|
6768
|
+
"name": "clearable",
|
|
6769
|
+
"description": "Whether the control has a button that empties it. The button shows while the field has a value and is not disabled. Default `false`.",
|
|
6770
|
+
"type": "boolean"
|
|
6771
|
+
},
|
|
6772
|
+
{
|
|
6773
|
+
"name": "clearLabel",
|
|
6774
|
+
"description": "The name of that button for assistive technology. Default `'Clear'`.",
|
|
6775
|
+
"type": "string"
|
|
6776
|
+
},
|
|
6777
|
+
{
|
|
6778
|
+
"name": "maxlength",
|
|
6779
|
+
"description": "Passed on to the control as `maxlength`: the browser takes no more characters than this while the user types. `null` (the default) leaves the attribute out.",
|
|
6780
|
+
"type": "number | null"
|
|
6781
|
+
},
|
|
6782
|
+
{
|
|
6783
|
+
"name": "minlength",
|
|
6784
|
+
"description": "Passed on as `minlength`: a text the user has typed that is shorter makes the field invalid. `null` (the default) leaves the attribute out.",
|
|
6785
|
+
"type": "number | null"
|
|
6786
|
+
},
|
|
5207
6787
|
{
|
|
5208
6788
|
"name": "autocomplete",
|
|
5209
6789
|
"description": "Passed on to the control as its `autocomplete` attribute (e.g. `'email'`, `'current-password'`, `'one-time-code'`). `null` (the default) leaves the attribute out. The same holds for the five properties below.",
|
|
@@ -5570,9 +7150,9 @@
|
|
|
5570
7150
|
"attributes": [
|
|
5571
7151
|
{
|
|
5572
7152
|
"name": "options",
|
|
5573
|
-
"description": "Options to render. Accepts plain strings (`['Yes', 'No']`) or option objects (`[{ value, label, disabled? }]`). Strings are used as both value and label.",
|
|
7153
|
+
"description": "Options to render. Accepts plain strings (`['Yes', 'No']`) or option objects (`[{ value, label, disabled? }]`). Strings are used as both value and label. An object can name a `color`, which is drawn as a dot in front of the label, and an `icon`, the address of an SVG symbol (`'#tag'`, `'/icons.svg#tag'`), which is drawn there as well. Both are decorations: the label stays the name of the option.",
|
|
5574
7154
|
"value": {
|
|
5575
|
-
"type": "Array<string | { value: string, label?: string, disabled?: boolean }>"
|
|
7155
|
+
"type": "Array<string | { value: string, label?: string, disabled?: boolean, color?: string, icon?: string }>"
|
|
5576
7156
|
},
|
|
5577
7157
|
"source": {
|
|
5578
7158
|
"module": "./src/components/radio-field/radio-field.js",
|
|
@@ -5597,7 +7177,245 @@
|
|
|
5597
7177
|
"type": "string | null"
|
|
5598
7178
|
},
|
|
5599
7179
|
"source": {
|
|
5600
|
-
"module": "./src/components/radio-field/radio-field.js",
|
|
7180
|
+
"module": "./src/components/radio-field/radio-field.js",
|
|
7181
|
+
"symbol": "default"
|
|
7182
|
+
}
|
|
7183
|
+
},
|
|
7184
|
+
{
|
|
7185
|
+
"name": "required",
|
|
7186
|
+
"description": "Whether the field is required for form submission.",
|
|
7187
|
+
"value": {
|
|
7188
|
+
"type": "boolean"
|
|
7189
|
+
},
|
|
7190
|
+
"source": {
|
|
7191
|
+
"module": "./src/components/radio-field/radio-field.js",
|
|
7192
|
+
"symbol": "default"
|
|
7193
|
+
}
|
|
7194
|
+
},
|
|
7195
|
+
{
|
|
7196
|
+
"name": "disabled",
|
|
7197
|
+
"description": "Whether the field is disabled.",
|
|
7198
|
+
"value": {
|
|
7199
|
+
"type": "boolean"
|
|
7200
|
+
},
|
|
7201
|
+
"source": {
|
|
7202
|
+
"module": "./src/components/radio-field/radio-field.js",
|
|
7203
|
+
"symbol": "default"
|
|
7204
|
+
}
|
|
7205
|
+
},
|
|
7206
|
+
{
|
|
7207
|
+
"name": "label",
|
|
7208
|
+
"description": "Label text displayed for the field.",
|
|
7209
|
+
"value": {
|
|
7210
|
+
"type": "string"
|
|
7211
|
+
},
|
|
7212
|
+
"source": {
|
|
7213
|
+
"module": "./src/components/radio-field/radio-field.js",
|
|
7214
|
+
"symbol": "default"
|
|
7215
|
+
}
|
|
7216
|
+
},
|
|
7217
|
+
{
|
|
7218
|
+
"name": "label-screen-reader-only",
|
|
7219
|
+
"description": "When `true`, the label is visually hidden but still announced to screen readers (via an `sr-only` class).",
|
|
7220
|
+
"value": {
|
|
7221
|
+
"type": "boolean"
|
|
7222
|
+
},
|
|
7223
|
+
"source": {
|
|
7224
|
+
"module": "./src/components/radio-field/radio-field.js",
|
|
7225
|
+
"symbol": "default"
|
|
7226
|
+
}
|
|
7227
|
+
},
|
|
7228
|
+
{
|
|
7229
|
+
"name": "error-message",
|
|
7230
|
+
"description": "Error message displayed when the field is invalid and has been touched.",
|
|
7231
|
+
"value": {
|
|
7232
|
+
"type": "string"
|
|
7233
|
+
},
|
|
7234
|
+
"source": {
|
|
7235
|
+
"module": "./src/components/radio-field/radio-field.js",
|
|
7236
|
+
"symbol": "default"
|
|
7237
|
+
}
|
|
7238
|
+
},
|
|
7239
|
+
{
|
|
7240
|
+
"name": "help-message",
|
|
7241
|
+
"description": "Helper text. Displayed between the label and the control; a checkbox and a switch display it below the control and its label.",
|
|
7242
|
+
"value": {
|
|
7243
|
+
"type": "string"
|
|
7244
|
+
},
|
|
7245
|
+
"source": {
|
|
7246
|
+
"module": "./src/components/radio-field/radio-field.js",
|
|
7247
|
+
"symbol": "default"
|
|
7248
|
+
}
|
|
7249
|
+
},
|
|
7250
|
+
{
|
|
7251
|
+
"name": "valid",
|
|
7252
|
+
"description": "Whether the field currently passes validation.",
|
|
7253
|
+
"value": {
|
|
7254
|
+
"type": "boolean"
|
|
7255
|
+
},
|
|
7256
|
+
"source": {
|
|
7257
|
+
"module": "./src/components/radio-field/radio-field.js",
|
|
7258
|
+
"symbol": "default"
|
|
7259
|
+
}
|
|
7260
|
+
},
|
|
7261
|
+
{
|
|
7262
|
+
"name": "touched",
|
|
7263
|
+
"description": "Whether the user has interacted with the field (focused and blurred), or the browser has refused a submit because of it. Validation messages only surface when this is `true`.",
|
|
7264
|
+
"value": {
|
|
7265
|
+
"type": "boolean"
|
|
7266
|
+
},
|
|
7267
|
+
"source": {
|
|
7268
|
+
"module": "./src/components/radio-field/radio-field.js",
|
|
7269
|
+
"symbol": "default"
|
|
7270
|
+
}
|
|
7271
|
+
}
|
|
7272
|
+
],
|
|
7273
|
+
"events": [
|
|
7274
|
+
{
|
|
7275
|
+
"name": "input-change",
|
|
7276
|
+
"type": "CustomEvent<string>",
|
|
7277
|
+
"description": "Fired when the selected value changes. `detail` is the newly selected value. Bubbles."
|
|
7278
|
+
}
|
|
7279
|
+
],
|
|
7280
|
+
"js": {
|
|
7281
|
+
"properties": [
|
|
7282
|
+
{
|
|
7283
|
+
"name": "value",
|
|
7284
|
+
"description": "The selected option's value.",
|
|
7285
|
+
"type": "string | null"
|
|
7286
|
+
},
|
|
7287
|
+
{
|
|
7288
|
+
"name": "options",
|
|
7289
|
+
"description": "Options to render. Accepts plain strings (`['Yes', 'No']`) or option objects (`[{ value, label, disabled? }]`). Strings are used as both value and label. An object can name a `color`, which is drawn as a dot in front of the label, and an `icon`, the address of an SVG symbol (`'#tag'`, `'/icons.svg#tag'`), which is drawn there as well. Both are decorations: the label stays the name of the option.",
|
|
7290
|
+
"type": "Array<string | { value: string, label?: string, disabled?: boolean, color?: string, icon?: string }>"
|
|
7291
|
+
},
|
|
7292
|
+
{
|
|
7293
|
+
"name": "name",
|
|
7294
|
+
"description": "Form name for the underlying input.",
|
|
7295
|
+
"type": "string"
|
|
7296
|
+
},
|
|
7297
|
+
{
|
|
7298
|
+
"name": "required",
|
|
7299
|
+
"description": "Whether the field is required for form submission.",
|
|
7300
|
+
"type": "boolean"
|
|
7301
|
+
},
|
|
7302
|
+
{
|
|
7303
|
+
"name": "disabled",
|
|
7304
|
+
"description": "Whether the field is disabled.",
|
|
7305
|
+
"type": "boolean"
|
|
7306
|
+
},
|
|
7307
|
+
{
|
|
7308
|
+
"name": "label",
|
|
7309
|
+
"description": "Label text displayed for the field.",
|
|
7310
|
+
"type": "string"
|
|
7311
|
+
},
|
|
7312
|
+
{
|
|
7313
|
+
"name": "labelScreenReaderOnly",
|
|
7314
|
+
"description": "When `true`, the label is visually hidden but still announced to screen readers (via an `sr-only` class).",
|
|
7315
|
+
"type": "boolean"
|
|
7316
|
+
},
|
|
7317
|
+
{
|
|
7318
|
+
"name": "errorMessage",
|
|
7319
|
+
"description": "Error message displayed when the field is invalid and has been touched.",
|
|
7320
|
+
"type": "string"
|
|
7321
|
+
},
|
|
7322
|
+
{
|
|
7323
|
+
"name": "helpMessage",
|
|
7324
|
+
"description": "Helper text. Displayed between the label and the control; a checkbox and a switch display it below the control and its label.",
|
|
7325
|
+
"type": "string"
|
|
7326
|
+
},
|
|
7327
|
+
{
|
|
7328
|
+
"name": "valid",
|
|
7329
|
+
"description": "Whether the field currently passes validation.",
|
|
7330
|
+
"type": "boolean"
|
|
7331
|
+
},
|
|
7332
|
+
{
|
|
7333
|
+
"name": "touched",
|
|
7334
|
+
"description": "Whether the user has interacted with the field (focused and blurred), or the browser has refused a submit because of it. Validation messages only surface when this is `true`.",
|
|
7335
|
+
"type": "boolean"
|
|
7336
|
+
}
|
|
7337
|
+
],
|
|
7338
|
+
"events": [
|
|
7339
|
+
{
|
|
7340
|
+
"name": "input-change",
|
|
7341
|
+
"type": "CustomEvent<string>",
|
|
7342
|
+
"description": "Fired when the selected value changes. `detail` is the newly selected value. Bubbles."
|
|
7343
|
+
}
|
|
7344
|
+
]
|
|
7345
|
+
},
|
|
7346
|
+
"source": {
|
|
7347
|
+
"module": "./src/components/radio-field/radio-field.js",
|
|
7348
|
+
"symbol": "default"
|
|
7349
|
+
}
|
|
7350
|
+
},
|
|
7351
|
+
{
|
|
7352
|
+
"name": "el-range-field",
|
|
7353
|
+
"description": "A number from a span, picked with a thumb on a track. Renders a native `<input type=\"range\">`,\nso the keyboard, the touch handling and the form submission are the ones of the browser. Extends\n`FormField` and inherits its label / help / error surface.\n\nThe control always has a value: without one it puts its thumb in the middle of the span. The\nfield takes that value over, so that `value` says what the form submits.\n\n---\n\n\n### **Events:**\n - **input-change** - Fired when the value changes, also while the thumb moves. `detail` is the new value. Bubbles.\n\n### **Methods:**\n - **onFocus(): _void_** - Called when the input receives focus. Refreshes validation state.\n- **onBlur(): _void_** - Called when the input loses focus. Marks the field as touched and refreshes\nvalidation state.\n- **onChange(): _void_** - Called when the input value changes. Updates `value` and refreshes validation.\n\nA control that is empty is no change for a field without a value: `value` stays `null`. A key\nthat enters nothing (Shift, an arrow key) and the first key of a date leave the control empty.\nTaking that as the value `''` wrote it to the control as its default with the next render,\nand a control for a date or a time drops what the user has entered so far when its value is\nwritten: the first key was lost.\n- **clearInput(): _void_** - Clears the input value, refocuses it, and resets the touched state. The field follows the\ncontrol, as it does when the user deletes the text by hand: `value` is empty, `input-change`\nreports it, and `valid` is what the control says.",
|
|
7354
|
+
"doc-url": "",
|
|
7355
|
+
"attributes": [
|
|
7356
|
+
{
|
|
7357
|
+
"name": "min",
|
|
7358
|
+
"description": "The lower end of the span. Default `0`.",
|
|
7359
|
+
"value": {
|
|
7360
|
+
"type": "number"
|
|
7361
|
+
},
|
|
7362
|
+
"source": {
|
|
7363
|
+
"module": "./src/components/range-field/range-field.js",
|
|
7364
|
+
"symbol": "default"
|
|
7365
|
+
}
|
|
7366
|
+
},
|
|
7367
|
+
{
|
|
7368
|
+
"name": "max",
|
|
7369
|
+
"description": "The upper end of the span. Default `100`.",
|
|
7370
|
+
"value": {
|
|
7371
|
+
"type": "number"
|
|
7372
|
+
},
|
|
7373
|
+
"source": {
|
|
7374
|
+
"module": "./src/components/range-field/range-field.js",
|
|
7375
|
+
"symbol": "default"
|
|
7376
|
+
}
|
|
7377
|
+
},
|
|
7378
|
+
{
|
|
7379
|
+
"name": "step",
|
|
7380
|
+
"description": "The distance between two values. Default `1`; `'any'` takes every value of the span.",
|
|
7381
|
+
"value": {
|
|
7382
|
+
"type": "number | 'any'"
|
|
7383
|
+
},
|
|
7384
|
+
"source": {
|
|
7385
|
+
"module": "./src/components/range-field/range-field.js",
|
|
7386
|
+
"symbol": "default"
|
|
7387
|
+
}
|
|
7388
|
+
},
|
|
7389
|
+
{
|
|
7390
|
+
"name": "show-value",
|
|
7391
|
+
"description": "Shows the value beside the control. Default `false`.",
|
|
7392
|
+
"value": {
|
|
7393
|
+
"type": "boolean"
|
|
7394
|
+
},
|
|
7395
|
+
"source": {
|
|
7396
|
+
"module": "./src/components/range-field/range-field.js",
|
|
7397
|
+
"symbol": "default"
|
|
7398
|
+
}
|
|
7399
|
+
},
|
|
7400
|
+
{
|
|
7401
|
+
"name": "name",
|
|
7402
|
+
"description": "Form name for the underlying input.",
|
|
7403
|
+
"value": {
|
|
7404
|
+
"type": "string"
|
|
7405
|
+
},
|
|
7406
|
+
"source": {
|
|
7407
|
+
"module": "./src/components/range-field/range-field.js",
|
|
7408
|
+
"symbol": "default"
|
|
7409
|
+
}
|
|
7410
|
+
},
|
|
7411
|
+
{
|
|
7412
|
+
"name": "value",
|
|
7413
|
+
"description": "The value, as the text the form submits. A field without one takes over the value of the control, the middle of the span.",
|
|
7414
|
+
"value": {
|
|
7415
|
+
"type": "string | null"
|
|
7416
|
+
},
|
|
7417
|
+
"source": {
|
|
7418
|
+
"module": "./src/components/range-field/range-field.js",
|
|
5601
7419
|
"symbol": "default"
|
|
5602
7420
|
}
|
|
5603
7421
|
},
|
|
@@ -5608,7 +7426,7 @@
|
|
|
5608
7426
|
"type": "boolean"
|
|
5609
7427
|
},
|
|
5610
7428
|
"source": {
|
|
5611
|
-
"module": "./src/components/
|
|
7429
|
+
"module": "./src/components/range-field/range-field.js",
|
|
5612
7430
|
"symbol": "default"
|
|
5613
7431
|
}
|
|
5614
7432
|
},
|
|
@@ -5619,7 +7437,7 @@
|
|
|
5619
7437
|
"type": "boolean"
|
|
5620
7438
|
},
|
|
5621
7439
|
"source": {
|
|
5622
|
-
"module": "./src/components/
|
|
7440
|
+
"module": "./src/components/range-field/range-field.js",
|
|
5623
7441
|
"symbol": "default"
|
|
5624
7442
|
}
|
|
5625
7443
|
},
|
|
@@ -5630,7 +7448,7 @@
|
|
|
5630
7448
|
"type": "string"
|
|
5631
7449
|
},
|
|
5632
7450
|
"source": {
|
|
5633
|
-
"module": "./src/components/
|
|
7451
|
+
"module": "./src/components/range-field/range-field.js",
|
|
5634
7452
|
"symbol": "default"
|
|
5635
7453
|
}
|
|
5636
7454
|
},
|
|
@@ -5641,7 +7459,7 @@
|
|
|
5641
7459
|
"type": "boolean"
|
|
5642
7460
|
},
|
|
5643
7461
|
"source": {
|
|
5644
|
-
"module": "./src/components/
|
|
7462
|
+
"module": "./src/components/range-field/range-field.js",
|
|
5645
7463
|
"symbol": "default"
|
|
5646
7464
|
}
|
|
5647
7465
|
},
|
|
@@ -5652,7 +7470,7 @@
|
|
|
5652
7470
|
"type": "string"
|
|
5653
7471
|
},
|
|
5654
7472
|
"source": {
|
|
5655
|
-
"module": "./src/components/
|
|
7473
|
+
"module": "./src/components/range-field/range-field.js",
|
|
5656
7474
|
"symbol": "default"
|
|
5657
7475
|
}
|
|
5658
7476
|
},
|
|
@@ -5663,7 +7481,7 @@
|
|
|
5663
7481
|
"type": "string"
|
|
5664
7482
|
},
|
|
5665
7483
|
"source": {
|
|
5666
|
-
"module": "./src/components/
|
|
7484
|
+
"module": "./src/components/range-field/range-field.js",
|
|
5667
7485
|
"symbol": "default"
|
|
5668
7486
|
}
|
|
5669
7487
|
},
|
|
@@ -5674,7 +7492,7 @@
|
|
|
5674
7492
|
"type": "boolean"
|
|
5675
7493
|
},
|
|
5676
7494
|
"source": {
|
|
5677
|
-
"module": "./src/components/
|
|
7495
|
+
"module": "./src/components/range-field/range-field.js",
|
|
5678
7496
|
"symbol": "default"
|
|
5679
7497
|
}
|
|
5680
7498
|
},
|
|
@@ -5685,7 +7503,7 @@
|
|
|
5685
7503
|
"type": "boolean"
|
|
5686
7504
|
},
|
|
5687
7505
|
"source": {
|
|
5688
|
-
"module": "./src/components/
|
|
7506
|
+
"module": "./src/components/range-field/range-field.js",
|
|
5689
7507
|
"symbol": "default"
|
|
5690
7508
|
}
|
|
5691
7509
|
}
|
|
@@ -5694,20 +7512,35 @@
|
|
|
5694
7512
|
{
|
|
5695
7513
|
"name": "input-change",
|
|
5696
7514
|
"type": "CustomEvent<string>",
|
|
5697
|
-
"description": "Fired when the
|
|
7515
|
+
"description": "Fired when the value changes, also while the thumb moves. `detail` is the new value. Bubbles."
|
|
5698
7516
|
}
|
|
5699
7517
|
],
|
|
5700
7518
|
"js": {
|
|
5701
7519
|
"properties": [
|
|
5702
7520
|
{
|
|
5703
7521
|
"name": "value",
|
|
5704
|
-
"description": "The
|
|
7522
|
+
"description": "The value, as the text the form submits. A field without one takes over the value of the control, the middle of the span.",
|
|
5705
7523
|
"type": "string | null"
|
|
5706
7524
|
},
|
|
5707
7525
|
{
|
|
5708
|
-
"name": "
|
|
5709
|
-
"description": "
|
|
5710
|
-
"type": "
|
|
7526
|
+
"name": "min",
|
|
7527
|
+
"description": "The lower end of the span. Default `0`.",
|
|
7528
|
+
"type": "number"
|
|
7529
|
+
},
|
|
7530
|
+
{
|
|
7531
|
+
"name": "max",
|
|
7532
|
+
"description": "The upper end of the span. Default `100`.",
|
|
7533
|
+
"type": "number"
|
|
7534
|
+
},
|
|
7535
|
+
{
|
|
7536
|
+
"name": "step",
|
|
7537
|
+
"description": "The distance between two values. Default `1`; `'any'` takes every value of the span.",
|
|
7538
|
+
"type": "number | 'any'"
|
|
7539
|
+
},
|
|
7540
|
+
{
|
|
7541
|
+
"name": "showValue",
|
|
7542
|
+
"description": "Shows the value beside the control. Default `false`.",
|
|
7543
|
+
"type": "boolean"
|
|
5711
7544
|
},
|
|
5712
7545
|
{
|
|
5713
7546
|
"name": "name",
|
|
@@ -5759,61 +7592,28 @@
|
|
|
5759
7592
|
{
|
|
5760
7593
|
"name": "input-change",
|
|
5761
7594
|
"type": "CustomEvent<string>",
|
|
5762
|
-
"description": "Fired when the
|
|
7595
|
+
"description": "Fired when the value changes, also while the thumb moves. `detail` is the new value. Bubbles."
|
|
5763
7596
|
}
|
|
5764
7597
|
]
|
|
5765
7598
|
},
|
|
5766
7599
|
"source": {
|
|
5767
|
-
"module": "./src/components/
|
|
7600
|
+
"module": "./src/components/range-field/range-field.js",
|
|
5768
7601
|
"symbol": "default"
|
|
5769
7602
|
}
|
|
5770
7603
|
},
|
|
5771
7604
|
{
|
|
5772
|
-
"name": "el-
|
|
5773
|
-
"description": "A number from
|
|
7605
|
+
"name": "el-rating-field",
|
|
7606
|
+
"description": "A rating as a number from 1 to `max`, drawn as a row of stars: the stars up to the chosen one\nare filled. Renders a native `<fieldset>`/`<legend>` wrapping one `<input type=\"radio\">` per\nstep, so the grouping, the arrow keys and the form submission are native. Extends `FormField`\nand inherits its help / error / required / touched-state surface; the `label` becomes the\n`<legend>` of the group.\n\n---\n\n\n### **Events:**\n - **input-change** - Fired when the rating changes. `detail` is the chosen step. Bubbles.\n\n### **Methods:**\n - **onFocus(): _void_** - Called when the input receives focus. Refreshes validation state.\n- **onBlur(): _void_** - Called when the input loses focus. Marks the field as touched and refreshes\nvalidation state.\n- **onChange(): _void_** - Called when the input value changes. Updates `value` and refreshes validation.\n\nA control that is empty is no change for a field without a value: `value` stays `null`. A key\nthat enters nothing (Shift, an arrow key) and the first key of a date leave the control empty.\nTaking that as the value `''` wrote it to the control as its default with the next render,\nand a control for a date or a time drops what the user has entered so far when its value is\nwritten: the first key was lost.\n- **clearInput(): _void_** - Clears the input value, refocuses it, and resets the touched state. The field follows the\ncontrol, as it does when the user deletes the text by hand: `value` is empty, `input-change`\nreports it, and `valid` is what the control says.\n\n### **CSS Properties:**\n - **--el-rating-color** - The colour of a filled star. Unset, it is the accent colour of the theme. _(default: undefined)_\n- **--el-rating-size** - The width and the height of a star. Unset, it is `--el-space-5`, and `1.5em` without a theme. _(default: undefined)_",
|
|
5774
7607
|
"doc-url": "",
|
|
5775
7608
|
"attributes": [
|
|
5776
|
-
{
|
|
5777
|
-
"name": "min",
|
|
5778
|
-
"description": "The lower end of the span. Default `0`.",
|
|
5779
|
-
"value": {
|
|
5780
|
-
"type": "number"
|
|
5781
|
-
},
|
|
5782
|
-
"source": {
|
|
5783
|
-
"module": "./src/components/range-field/range-field.js",
|
|
5784
|
-
"symbol": "default"
|
|
5785
|
-
}
|
|
5786
|
-
},
|
|
5787
7609
|
{
|
|
5788
7610
|
"name": "max",
|
|
5789
|
-
"description": "The
|
|
7611
|
+
"description": "The number of stars. Default `5`.",
|
|
5790
7612
|
"value": {
|
|
5791
7613
|
"type": "number"
|
|
5792
7614
|
},
|
|
5793
7615
|
"source": {
|
|
5794
|
-
"module": "./src/components/
|
|
5795
|
-
"symbol": "default"
|
|
5796
|
-
}
|
|
5797
|
-
},
|
|
5798
|
-
{
|
|
5799
|
-
"name": "step",
|
|
5800
|
-
"description": "The distance between two values. Default `1`; `'any'` takes every value of the span.",
|
|
5801
|
-
"value": {
|
|
5802
|
-
"type": "number | 'any'"
|
|
5803
|
-
},
|
|
5804
|
-
"source": {
|
|
5805
|
-
"module": "./src/components/range-field/range-field.js",
|
|
5806
|
-
"symbol": "default"
|
|
5807
|
-
}
|
|
5808
|
-
},
|
|
5809
|
-
{
|
|
5810
|
-
"name": "show-value",
|
|
5811
|
-
"description": "Shows the value beside the control. Default `false`.",
|
|
5812
|
-
"value": {
|
|
5813
|
-
"type": "boolean"
|
|
5814
|
-
},
|
|
5815
|
-
"source": {
|
|
5816
|
-
"module": "./src/components/range-field/range-field.js",
|
|
7616
|
+
"module": "./src/components/rating-field/rating-field.js",
|
|
5817
7617
|
"symbol": "default"
|
|
5818
7618
|
}
|
|
5819
7619
|
},
|
|
@@ -5824,18 +7624,18 @@
|
|
|
5824
7624
|
"type": "string"
|
|
5825
7625
|
},
|
|
5826
7626
|
"source": {
|
|
5827
|
-
"module": "./src/components/
|
|
7627
|
+
"module": "./src/components/rating-field/rating-field.js",
|
|
5828
7628
|
"symbol": "default"
|
|
5829
7629
|
}
|
|
5830
7630
|
},
|
|
5831
7631
|
{
|
|
5832
7632
|
"name": "value",
|
|
5833
|
-
"description": "The
|
|
7633
|
+
"description": "The chosen step, as the text the form submits (`'3'`), or `null` while nothing is chosen.",
|
|
5834
7634
|
"value": {
|
|
5835
7635
|
"type": "string | null"
|
|
5836
7636
|
},
|
|
5837
7637
|
"source": {
|
|
5838
|
-
"module": "./src/components/
|
|
7638
|
+
"module": "./src/components/rating-field/rating-field.js",
|
|
5839
7639
|
"symbol": "default"
|
|
5840
7640
|
}
|
|
5841
7641
|
},
|
|
@@ -5846,7 +7646,7 @@
|
|
|
5846
7646
|
"type": "boolean"
|
|
5847
7647
|
},
|
|
5848
7648
|
"source": {
|
|
5849
|
-
"module": "./src/components/
|
|
7649
|
+
"module": "./src/components/rating-field/rating-field.js",
|
|
5850
7650
|
"symbol": "default"
|
|
5851
7651
|
}
|
|
5852
7652
|
},
|
|
@@ -5857,7 +7657,7 @@
|
|
|
5857
7657
|
"type": "boolean"
|
|
5858
7658
|
},
|
|
5859
7659
|
"source": {
|
|
5860
|
-
"module": "./src/components/
|
|
7660
|
+
"module": "./src/components/rating-field/rating-field.js",
|
|
5861
7661
|
"symbol": "default"
|
|
5862
7662
|
}
|
|
5863
7663
|
},
|
|
@@ -5868,7 +7668,7 @@
|
|
|
5868
7668
|
"type": "string"
|
|
5869
7669
|
},
|
|
5870
7670
|
"source": {
|
|
5871
|
-
"module": "./src/components/
|
|
7671
|
+
"module": "./src/components/rating-field/rating-field.js",
|
|
5872
7672
|
"symbol": "default"
|
|
5873
7673
|
}
|
|
5874
7674
|
},
|
|
@@ -5879,7 +7679,7 @@
|
|
|
5879
7679
|
"type": "boolean"
|
|
5880
7680
|
},
|
|
5881
7681
|
"source": {
|
|
5882
|
-
"module": "./src/components/
|
|
7682
|
+
"module": "./src/components/rating-field/rating-field.js",
|
|
5883
7683
|
"symbol": "default"
|
|
5884
7684
|
}
|
|
5885
7685
|
},
|
|
@@ -5890,7 +7690,7 @@
|
|
|
5890
7690
|
"type": "string"
|
|
5891
7691
|
},
|
|
5892
7692
|
"source": {
|
|
5893
|
-
"module": "./src/components/
|
|
7693
|
+
"module": "./src/components/rating-field/rating-field.js",
|
|
5894
7694
|
"symbol": "default"
|
|
5895
7695
|
}
|
|
5896
7696
|
},
|
|
@@ -5901,7 +7701,7 @@
|
|
|
5901
7701
|
"type": "string"
|
|
5902
7702
|
},
|
|
5903
7703
|
"source": {
|
|
5904
|
-
"module": "./src/components/
|
|
7704
|
+
"module": "./src/components/rating-field/rating-field.js",
|
|
5905
7705
|
"symbol": "default"
|
|
5906
7706
|
}
|
|
5907
7707
|
},
|
|
@@ -5912,7 +7712,7 @@
|
|
|
5912
7712
|
"type": "boolean"
|
|
5913
7713
|
},
|
|
5914
7714
|
"source": {
|
|
5915
|
-
"module": "./src/components/
|
|
7715
|
+
"module": "./src/components/rating-field/rating-field.js",
|
|
5916
7716
|
"symbol": "default"
|
|
5917
7717
|
}
|
|
5918
7718
|
},
|
|
@@ -5923,7 +7723,7 @@
|
|
|
5923
7723
|
"type": "boolean"
|
|
5924
7724
|
},
|
|
5925
7725
|
"source": {
|
|
5926
|
-
"module": "./src/components/
|
|
7726
|
+
"module": "./src/components/rating-field/rating-field.js",
|
|
5927
7727
|
"symbol": "default"
|
|
5928
7728
|
}
|
|
5929
7729
|
}
|
|
@@ -5932,36 +7732,21 @@
|
|
|
5932
7732
|
{
|
|
5933
7733
|
"name": "input-change",
|
|
5934
7734
|
"type": "CustomEvent<string>",
|
|
5935
|
-
"description": "Fired when the
|
|
7735
|
+
"description": "Fired when the rating changes. `detail` is the chosen step. Bubbles."
|
|
5936
7736
|
}
|
|
5937
7737
|
],
|
|
5938
7738
|
"js": {
|
|
5939
7739
|
"properties": [
|
|
5940
7740
|
{
|
|
5941
7741
|
"name": "value",
|
|
5942
|
-
"description": "The
|
|
7742
|
+
"description": "The chosen step, as the text the form submits (`'3'`), or `null` while nothing is chosen.",
|
|
5943
7743
|
"type": "string | null"
|
|
5944
7744
|
},
|
|
5945
|
-
{
|
|
5946
|
-
"name": "min",
|
|
5947
|
-
"description": "The lower end of the span. Default `0`.",
|
|
5948
|
-
"type": "number"
|
|
5949
|
-
},
|
|
5950
7745
|
{
|
|
5951
7746
|
"name": "max",
|
|
5952
|
-
"description": "The
|
|
7747
|
+
"description": "The number of stars. Default `5`.",
|
|
5953
7748
|
"type": "number"
|
|
5954
7749
|
},
|
|
5955
|
-
{
|
|
5956
|
-
"name": "step",
|
|
5957
|
-
"description": "The distance between two values. Default `1`; `'any'` takes every value of the span.",
|
|
5958
|
-
"type": "number | 'any'"
|
|
5959
|
-
},
|
|
5960
|
-
{
|
|
5961
|
-
"name": "showValue",
|
|
5962
|
-
"description": "Shows the value beside the control. Default `false`.",
|
|
5963
|
-
"type": "boolean"
|
|
5964
|
-
},
|
|
5965
7750
|
{
|
|
5966
7751
|
"name": "name",
|
|
5967
7752
|
"description": "Form name for the underlying input.",
|
|
@@ -6012,28 +7797,149 @@
|
|
|
6012
7797
|
{
|
|
6013
7798
|
"name": "input-change",
|
|
6014
7799
|
"type": "CustomEvent<string>",
|
|
6015
|
-
"description": "Fired when the
|
|
7800
|
+
"description": "Fired when the rating changes. `detail` is the chosen step. Bubbles."
|
|
6016
7801
|
}
|
|
6017
7802
|
]
|
|
6018
7803
|
},
|
|
6019
7804
|
"source": {
|
|
6020
|
-
"module": "./src/components/
|
|
7805
|
+
"module": "./src/components/rating-field/rating-field.js",
|
|
6021
7806
|
"symbol": "default"
|
|
6022
7807
|
}
|
|
6023
7808
|
},
|
|
6024
7809
|
{
|
|
6025
|
-
"name": "el-
|
|
6026
|
-
"description": "
|
|
7810
|
+
"name": "el-scroll-to-top",
|
|
7811
|
+
"description": "Wraps any click-emitting child (`<a>`, `<button>`, …) and smoothly scrolls to the top when the\nchild is clicked: the window, or the element around it that scrolls, the content of an\n`el-app-frame` for example.\n\n---\n\n\n### **Methods:**\n - **scrollToTop(): _void_** - Scroll to the top: the element around this one that scrolls, or the window.\n\n### **Slots:**\n - _default_ - Default slot. Any child that emits a `click` event will trigger the scroll.",
|
|
6027
7812
|
"doc-url": "",
|
|
6028
7813
|
"attributes": [
|
|
6029
7814
|
{
|
|
6030
|
-
"name": "
|
|
6031
|
-
"description": "
|
|
7815
|
+
"name": "duration",
|
|
7816
|
+
"description": "Duration of the easing animation in milliseconds. Ignored when what scrolls has `scroll-behavior: smooth`, the `html` element for the window (the browser drives the scroll in that case).",
|
|
6032
7817
|
"value": {
|
|
6033
7818
|
"type": "number"
|
|
6034
7819
|
},
|
|
6035
7820
|
"source": {
|
|
6036
|
-
"module": "./src/components/
|
|
7821
|
+
"module": "./src/components/scroll-to-top/scroll-to-top.js",
|
|
7822
|
+
"symbol": "default"
|
|
7823
|
+
}
|
|
7824
|
+
},
|
|
7825
|
+
{
|
|
7826
|
+
"name": "prevent-default",
|
|
7827
|
+
"description": "When `true`, the captured click's default action is suppressed.",
|
|
7828
|
+
"value": {
|
|
7829
|
+
"type": "boolean"
|
|
7830
|
+
},
|
|
7831
|
+
"source": {
|
|
7832
|
+
"module": "./src/components/scroll-to-top/scroll-to-top.js",
|
|
7833
|
+
"symbol": "default"
|
|
7834
|
+
}
|
|
7835
|
+
}
|
|
7836
|
+
],
|
|
7837
|
+
"slots": [
|
|
7838
|
+
{
|
|
7839
|
+
"name": "",
|
|
7840
|
+
"description": "Default slot. Any child that emits a `click` event will trigger the scroll."
|
|
7841
|
+
}
|
|
7842
|
+
],
|
|
7843
|
+
"events": [],
|
|
7844
|
+
"js": {
|
|
7845
|
+
"properties": [
|
|
7846
|
+
{
|
|
7847
|
+
"name": "duration",
|
|
7848
|
+
"description": "Duration of the easing animation in milliseconds. Ignored when what scrolls has `scroll-behavior: smooth`, the `html` element for the window (the browser drives the scroll in that case).",
|
|
7849
|
+
"type": "number"
|
|
7850
|
+
},
|
|
7851
|
+
{
|
|
7852
|
+
"name": "preventDefault",
|
|
7853
|
+
"description": "When `true`, the captured click's default action is suppressed.",
|
|
7854
|
+
"type": "boolean"
|
|
7855
|
+
}
|
|
7856
|
+
],
|
|
7857
|
+
"events": []
|
|
7858
|
+
},
|
|
7859
|
+
"source": {
|
|
7860
|
+
"module": "./src/components/scroll-to-top/scroll-to-top.js",
|
|
7861
|
+
"symbol": "default"
|
|
7862
|
+
}
|
|
7863
|
+
},
|
|
7864
|
+
{
|
|
7865
|
+
"name": "el-scroll-to",
|
|
7866
|
+
"description": "Wraps any click-emitting child (`<a>`, `<button>`, …) and scrolls to the element\nmatched by `selector` when the child is clicked.\n\n---\n\n\n### **Slots:**\n - _default_ - Default slot. Any child that emits a `click` event will trigger the scroll.",
|
|
7867
|
+
"doc-url": "",
|
|
7868
|
+
"attributes": [
|
|
7869
|
+
{
|
|
7870
|
+
"name": "selector",
|
|
7871
|
+
"description": "CSS selector for the element to scroll into view on click.",
|
|
7872
|
+
"value": {
|
|
7873
|
+
"type": "string"
|
|
7874
|
+
},
|
|
7875
|
+
"source": {
|
|
7876
|
+
"module": "./src/components/scroll-to/scroll-to.js",
|
|
7877
|
+
"symbol": "default"
|
|
7878
|
+
}
|
|
7879
|
+
},
|
|
7880
|
+
{
|
|
7881
|
+
"name": "prevent-default",
|
|
7882
|
+
"description": "When `true`, the captured click's default action is suppressed (e.g. an `<a href>`'s navigation).",
|
|
7883
|
+
"value": {
|
|
7884
|
+
"type": "boolean"
|
|
7885
|
+
},
|
|
7886
|
+
"source": {
|
|
7887
|
+
"module": "./src/components/scroll-to/scroll-to.js",
|
|
7888
|
+
"symbol": "default"
|
|
7889
|
+
}
|
|
7890
|
+
}
|
|
7891
|
+
],
|
|
7892
|
+
"slots": [
|
|
7893
|
+
{
|
|
7894
|
+
"name": "",
|
|
7895
|
+
"description": "Default slot. Any child that emits a `click` event will trigger the scroll."
|
|
7896
|
+
}
|
|
7897
|
+
],
|
|
7898
|
+
"events": [],
|
|
7899
|
+
"js": {
|
|
7900
|
+
"properties": [
|
|
7901
|
+
{
|
|
7902
|
+
"name": "selector",
|
|
7903
|
+
"description": "CSS selector for the element to scroll into view on click.",
|
|
7904
|
+
"type": "string"
|
|
7905
|
+
},
|
|
7906
|
+
{
|
|
7907
|
+
"name": "preventDefault",
|
|
7908
|
+
"description": "When `true`, the captured click's default action is suppressed (e.g. an `<a href>`'s navigation).",
|
|
7909
|
+
"type": "boolean"
|
|
7910
|
+
}
|
|
7911
|
+
],
|
|
7912
|
+
"events": []
|
|
7913
|
+
},
|
|
7914
|
+
"source": {
|
|
7915
|
+
"module": "./src/components/scroll-to/scroll-to.js",
|
|
7916
|
+
"symbol": "default"
|
|
7917
|
+
}
|
|
7918
|
+
},
|
|
7919
|
+
{
|
|
7920
|
+
"name": "el-segmented-field",
|
|
7921
|
+
"description": "One choice of a few options, shown as a row of joined buttons: \"List | Grid\",\n\"Day | Week | Month\". It looks like an `el-button-group` and behaves like a group of radios,\nbecause it is one: a native `<fieldset>`/`<legend>` with an `<input type=\"radio\">` per option\n(it extends `el-radio-field`). So the one tab stop, the arrow keys, the value in the form, its\nreset and `required` are native, and the label, the help message and the error message are the\nones of every field.\n\nIn a container that gives its controls a size, an `el-toolbar`, the field takes it from there,\nwhile the page has not set `size` on the field itself.\n\n---\n\n\n### **Events:**\n - **input-change** - Fired when the chosen option changes. `detail` is its value. Bubbles.\n\n### **Methods:**\n - **onFocus(): _void_** - Called when the input receives focus. Refreshes validation state.\n- **onBlur(): _void_** - Called when the input loses focus. Marks the field as touched and refreshes\nvalidation state.\n- **onChange(): _void_** - Called when the input value changes. Updates `value` and refreshes validation.\n\nA control that is empty is no change for a field without a value: `value` stays `null`. A key\nthat enters nothing (Shift, an arrow key) and the first key of a date leave the control empty.\nTaking that as the value `''` wrote it to the control as its default with the next render,\nand a control for a date or a time drops what the user has entered so far when its value is\nwritten: the first key was lost.\n- **clearInput(): _void_** - Clears the input value, refocuses it, and resets the touched state. The field follows the\ncontrol, as it does when the user deletes the text by hand: `value` is empty, `input-change`\nreports it, and `valid` is what the control says.",
|
|
7922
|
+
"doc-url": "",
|
|
7923
|
+
"attributes": [
|
|
7924
|
+
{
|
|
7925
|
+
"name": "size",
|
|
7926
|
+
"description": "The size of the options: their height, their padding and their font size. Default `'medium'`. Reflected to the `size` attribute.",
|
|
7927
|
+
"value": {
|
|
7928
|
+
"type": "'small'|'medium'|'large'"
|
|
7929
|
+
},
|
|
7930
|
+
"source": {
|
|
7931
|
+
"module": "./src/components/segmented-field/segmented-field.js",
|
|
7932
|
+
"symbol": "default"
|
|
7933
|
+
}
|
|
7934
|
+
},
|
|
7935
|
+
{
|
|
7936
|
+
"name": "options",
|
|
7937
|
+
"description": "The options. Plain strings (`['Day', 'Week']`) are value and label at once; an object has a `value`, a `label`, and can be `disabled`. With `icon`, the address of an SVG symbol (`'#grid'`, `'/icons.svg#grid'`), the option shows that icon in the place of its label: the label is then its name for assistive technology and its tooltip.",
|
|
7938
|
+
"value": {
|
|
7939
|
+
"type": "Array<string | { value: string, label?: string, icon?: string, disabled?: boolean }>"
|
|
7940
|
+
},
|
|
7941
|
+
"source": {
|
|
7942
|
+
"module": "./src/components/segmented-field/segmented-field.js",
|
|
6037
7943
|
"symbol": "default"
|
|
6038
7944
|
}
|
|
6039
7945
|
},
|
|
@@ -6044,18 +7950,18 @@
|
|
|
6044
7950
|
"type": "string"
|
|
6045
7951
|
},
|
|
6046
7952
|
"source": {
|
|
6047
|
-
"module": "./src/components/
|
|
7953
|
+
"module": "./src/components/segmented-field/segmented-field.js",
|
|
6048
7954
|
"symbol": "default"
|
|
6049
7955
|
}
|
|
6050
7956
|
},
|
|
6051
7957
|
{
|
|
6052
7958
|
"name": "value",
|
|
6053
|
-
"description": "The
|
|
7959
|
+
"description": "The value of the chosen option.",
|
|
6054
7960
|
"value": {
|
|
6055
7961
|
"type": "string | null"
|
|
6056
7962
|
},
|
|
6057
7963
|
"source": {
|
|
6058
|
-
"module": "./src/components/
|
|
7964
|
+
"module": "./src/components/segmented-field/segmented-field.js",
|
|
6059
7965
|
"symbol": "default"
|
|
6060
7966
|
}
|
|
6061
7967
|
},
|
|
@@ -6066,7 +7972,7 @@
|
|
|
6066
7972
|
"type": "boolean"
|
|
6067
7973
|
},
|
|
6068
7974
|
"source": {
|
|
6069
|
-
"module": "./src/components/
|
|
7975
|
+
"module": "./src/components/segmented-field/segmented-field.js",
|
|
6070
7976
|
"symbol": "default"
|
|
6071
7977
|
}
|
|
6072
7978
|
},
|
|
@@ -6077,7 +7983,7 @@
|
|
|
6077
7983
|
"type": "boolean"
|
|
6078
7984
|
},
|
|
6079
7985
|
"source": {
|
|
6080
|
-
"module": "./src/components/
|
|
7986
|
+
"module": "./src/components/segmented-field/segmented-field.js",
|
|
6081
7987
|
"symbol": "default"
|
|
6082
7988
|
}
|
|
6083
7989
|
},
|
|
@@ -6088,7 +7994,7 @@
|
|
|
6088
7994
|
"type": "string"
|
|
6089
7995
|
},
|
|
6090
7996
|
"source": {
|
|
6091
|
-
"module": "./src/components/
|
|
7997
|
+
"module": "./src/components/segmented-field/segmented-field.js",
|
|
6092
7998
|
"symbol": "default"
|
|
6093
7999
|
}
|
|
6094
8000
|
},
|
|
@@ -6099,7 +8005,7 @@
|
|
|
6099
8005
|
"type": "boolean"
|
|
6100
8006
|
},
|
|
6101
8007
|
"source": {
|
|
6102
|
-
"module": "./src/components/
|
|
8008
|
+
"module": "./src/components/segmented-field/segmented-field.js",
|
|
6103
8009
|
"symbol": "default"
|
|
6104
8010
|
}
|
|
6105
8011
|
},
|
|
@@ -6110,7 +8016,7 @@
|
|
|
6110
8016
|
"type": "string"
|
|
6111
8017
|
},
|
|
6112
8018
|
"source": {
|
|
6113
|
-
"module": "./src/components/
|
|
8019
|
+
"module": "./src/components/segmented-field/segmented-field.js",
|
|
6114
8020
|
"symbol": "default"
|
|
6115
8021
|
}
|
|
6116
8022
|
},
|
|
@@ -6121,7 +8027,7 @@
|
|
|
6121
8027
|
"type": "string"
|
|
6122
8028
|
},
|
|
6123
8029
|
"source": {
|
|
6124
|
-
"module": "./src/components/
|
|
8030
|
+
"module": "./src/components/segmented-field/segmented-field.js",
|
|
6125
8031
|
"symbol": "default"
|
|
6126
8032
|
}
|
|
6127
8033
|
},
|
|
@@ -6132,7 +8038,7 @@
|
|
|
6132
8038
|
"type": "boolean"
|
|
6133
8039
|
},
|
|
6134
8040
|
"source": {
|
|
6135
|
-
"module": "./src/components/
|
|
8041
|
+
"module": "./src/components/segmented-field/segmented-field.js",
|
|
6136
8042
|
"symbol": "default"
|
|
6137
8043
|
}
|
|
6138
8044
|
},
|
|
@@ -6143,7 +8049,7 @@
|
|
|
6143
8049
|
"type": "boolean"
|
|
6144
8050
|
},
|
|
6145
8051
|
"source": {
|
|
6146
|
-
"module": "./src/components/
|
|
8052
|
+
"module": "./src/components/segmented-field/segmented-field.js",
|
|
6147
8053
|
"symbol": "default"
|
|
6148
8054
|
}
|
|
6149
8055
|
}
|
|
@@ -6152,20 +8058,25 @@
|
|
|
6152
8058
|
{
|
|
6153
8059
|
"name": "input-change",
|
|
6154
8060
|
"type": "CustomEvent<string>",
|
|
6155
|
-
"description": "Fired when the
|
|
8061
|
+
"description": "Fired when the chosen option changes. `detail` is its value. Bubbles."
|
|
6156
8062
|
}
|
|
6157
8063
|
],
|
|
6158
8064
|
"js": {
|
|
6159
8065
|
"properties": [
|
|
6160
8066
|
{
|
|
6161
8067
|
"name": "value",
|
|
6162
|
-
"description": "The
|
|
8068
|
+
"description": "The value of the chosen option.",
|
|
6163
8069
|
"type": "string | null"
|
|
6164
8070
|
},
|
|
6165
8071
|
{
|
|
6166
|
-
"name": "
|
|
6167
|
-
"description": "The
|
|
6168
|
-
"type": "
|
|
8072
|
+
"name": "options",
|
|
8073
|
+
"description": "The options. Plain strings (`['Day', 'Week']`) are value and label at once; an object has a `value`, a `label`, and can be `disabled`. With `icon`, the address of an SVG symbol (`'#grid'`, `'/icons.svg#grid'`), the option shows that icon in the place of its label: the label is then its name for assistive technology and its tooltip.",
|
|
8074
|
+
"type": "Array<string | { value: string, label?: string, icon?: string, disabled?: boolean }>"
|
|
8075
|
+
},
|
|
8076
|
+
{
|
|
8077
|
+
"name": "size",
|
|
8078
|
+
"description": "The size of the options: their height, their padding and their font size. Default `'medium'`. Reflected to the `size` attribute.",
|
|
8079
|
+
"type": "'small'|'medium'|'large'"
|
|
6169
8080
|
},
|
|
6170
8081
|
{
|
|
6171
8082
|
"name": "name",
|
|
@@ -6217,122 +8128,12 @@
|
|
|
6217
8128
|
{
|
|
6218
8129
|
"name": "input-change",
|
|
6219
8130
|
"type": "CustomEvent<string>",
|
|
6220
|
-
"description": "Fired when the
|
|
8131
|
+
"description": "Fired when the chosen option changes. `detail` is its value. Bubbles."
|
|
6221
8132
|
}
|
|
6222
8133
|
]
|
|
6223
8134
|
},
|
|
6224
8135
|
"source": {
|
|
6225
|
-
"module": "./src/components/
|
|
6226
|
-
"symbol": "default"
|
|
6227
|
-
}
|
|
6228
|
-
},
|
|
6229
|
-
{
|
|
6230
|
-
"name": "el-scroll-to-top",
|
|
6231
|
-
"description": "Wraps any click-emitting child (`<a>`, `<button>`, …) and smoothly scrolls the window\nto the top when the child is clicked.\n\n---\n\n\n### **Methods:**\n - **scrollToTop(): _void_** - Scroll the window to the top.\n\n### **Slots:**\n - _default_ - Default slot. Any child that emits a `click` event will trigger the scroll.",
|
|
6232
|
-
"doc-url": "",
|
|
6233
|
-
"attributes": [
|
|
6234
|
-
{
|
|
6235
|
-
"name": "duration",
|
|
6236
|
-
"description": "Duration of the easing animation in milliseconds. Ignored when the page's `html` element has `scroll-behavior: smooth` (the browser drives the scroll in that case).",
|
|
6237
|
-
"value": {
|
|
6238
|
-
"type": "number"
|
|
6239
|
-
},
|
|
6240
|
-
"source": {
|
|
6241
|
-
"module": "./src/components/scroll-to-top/scroll-to-top.js",
|
|
6242
|
-
"symbol": "default"
|
|
6243
|
-
}
|
|
6244
|
-
},
|
|
6245
|
-
{
|
|
6246
|
-
"name": "prevent-default",
|
|
6247
|
-
"description": "When `true`, the captured click's default action is suppressed.",
|
|
6248
|
-
"value": {
|
|
6249
|
-
"type": "boolean"
|
|
6250
|
-
},
|
|
6251
|
-
"source": {
|
|
6252
|
-
"module": "./src/components/scroll-to-top/scroll-to-top.js",
|
|
6253
|
-
"symbol": "default"
|
|
6254
|
-
}
|
|
6255
|
-
}
|
|
6256
|
-
],
|
|
6257
|
-
"slots": [
|
|
6258
|
-
{
|
|
6259
|
-
"name": "",
|
|
6260
|
-
"description": "Default slot. Any child that emits a `click` event will trigger the scroll."
|
|
6261
|
-
}
|
|
6262
|
-
],
|
|
6263
|
-
"events": [],
|
|
6264
|
-
"js": {
|
|
6265
|
-
"properties": [
|
|
6266
|
-
{
|
|
6267
|
-
"name": "duration",
|
|
6268
|
-
"description": "Duration of the easing animation in milliseconds. Ignored when the page's `html` element has `scroll-behavior: smooth` (the browser drives the scroll in that case).",
|
|
6269
|
-
"type": "number"
|
|
6270
|
-
},
|
|
6271
|
-
{
|
|
6272
|
-
"name": "preventDefault",
|
|
6273
|
-
"description": "When `true`, the captured click's default action is suppressed.",
|
|
6274
|
-
"type": "boolean"
|
|
6275
|
-
}
|
|
6276
|
-
],
|
|
6277
|
-
"events": []
|
|
6278
|
-
},
|
|
6279
|
-
"source": {
|
|
6280
|
-
"module": "./src/components/scroll-to-top/scroll-to-top.js",
|
|
6281
|
-
"symbol": "default"
|
|
6282
|
-
}
|
|
6283
|
-
},
|
|
6284
|
-
{
|
|
6285
|
-
"name": "el-scroll-to",
|
|
6286
|
-
"description": "Wraps any click-emitting child (`<a>`, `<button>`, …) and scrolls to the element\nmatched by `selector` when the child is clicked.\n\n---\n\n\n### **Slots:**\n - _default_ - Default slot. Any child that emits a `click` event will trigger the scroll.",
|
|
6287
|
-
"doc-url": "",
|
|
6288
|
-
"attributes": [
|
|
6289
|
-
{
|
|
6290
|
-
"name": "selector",
|
|
6291
|
-
"description": "CSS selector for the element to scroll into view on click.",
|
|
6292
|
-
"value": {
|
|
6293
|
-
"type": "string"
|
|
6294
|
-
},
|
|
6295
|
-
"source": {
|
|
6296
|
-
"module": "./src/components/scroll-to/scroll-to.js",
|
|
6297
|
-
"symbol": "default"
|
|
6298
|
-
}
|
|
6299
|
-
},
|
|
6300
|
-
{
|
|
6301
|
-
"name": "prevent-default",
|
|
6302
|
-
"description": "When `true`, the captured click's default action is suppressed (e.g. an `<a href>`'s navigation).",
|
|
6303
|
-
"value": {
|
|
6304
|
-
"type": "boolean"
|
|
6305
|
-
},
|
|
6306
|
-
"source": {
|
|
6307
|
-
"module": "./src/components/scroll-to/scroll-to.js",
|
|
6308
|
-
"symbol": "default"
|
|
6309
|
-
}
|
|
6310
|
-
}
|
|
6311
|
-
],
|
|
6312
|
-
"slots": [
|
|
6313
|
-
{
|
|
6314
|
-
"name": "",
|
|
6315
|
-
"description": "Default slot. Any child that emits a `click` event will trigger the scroll."
|
|
6316
|
-
}
|
|
6317
|
-
],
|
|
6318
|
-
"events": [],
|
|
6319
|
-
"js": {
|
|
6320
|
-
"properties": [
|
|
6321
|
-
{
|
|
6322
|
-
"name": "selector",
|
|
6323
|
-
"description": "CSS selector for the element to scroll into view on click.",
|
|
6324
|
-
"type": "string"
|
|
6325
|
-
},
|
|
6326
|
-
{
|
|
6327
|
-
"name": "preventDefault",
|
|
6328
|
-
"description": "When `true`, the captured click's default action is suppressed (e.g. an `<a href>`'s navigation).",
|
|
6329
|
-
"type": "boolean"
|
|
6330
|
-
}
|
|
6331
|
-
],
|
|
6332
|
-
"events": []
|
|
6333
|
-
},
|
|
6334
|
-
"source": {
|
|
6335
|
-
"module": "./src/components/scroll-to/scroll-to.js",
|
|
8136
|
+
"module": "./src/components/segmented-field/segmented-field.js",
|
|
6336
8137
|
"symbol": "default"
|
|
6337
8138
|
}
|
|
6338
8139
|
},
|
|
@@ -6861,22 +8662,182 @@
|
|
|
6861
8662
|
],
|
|
6862
8663
|
"events": [],
|
|
6863
8664
|
"js": {
|
|
6864
|
-
"properties": [
|
|
6865
|
-
{
|
|
6866
|
-
"name": "size",
|
|
6867
|
-
"description": "`small` is 0.8 times, `large` 1.25 times the font size. Default `'medium'`. Reflected to the `size` attribute.",
|
|
6868
|
-
"type": "'small'|'medium'|'large'"
|
|
6869
|
-
},
|
|
6870
|
-
{
|
|
6871
|
-
"name": "label",
|
|
6872
|
-
"description": "The accessible name of the spinner. Default `'Loading'`.",
|
|
6873
|
-
"type": "string"
|
|
6874
|
-
}
|
|
6875
|
-
],
|
|
8665
|
+
"properties": [
|
|
8666
|
+
{
|
|
8667
|
+
"name": "size",
|
|
8668
|
+
"description": "`small` is 0.8 times, `large` 1.25 times the font size. Default `'medium'`. Reflected to the `size` attribute.",
|
|
8669
|
+
"type": "'small'|'medium'|'large'"
|
|
8670
|
+
},
|
|
8671
|
+
{
|
|
8672
|
+
"name": "label",
|
|
8673
|
+
"description": "The accessible name of the spinner. Default `'Loading'`.",
|
|
8674
|
+
"type": "string"
|
|
8675
|
+
}
|
|
8676
|
+
],
|
|
8677
|
+
"events": []
|
|
8678
|
+
},
|
|
8679
|
+
"source": {
|
|
8680
|
+
"module": "./src/components/spinner/spinner.js",
|
|
8681
|
+
"symbol": "default"
|
|
8682
|
+
}
|
|
8683
|
+
},
|
|
8684
|
+
{
|
|
8685
|
+
"name": "el-splitter",
|
|
8686
|
+
"description": "The edge between two panes that are beside each other, which the user drags to set the width of\none of them: with a mouse, a finger or a pen, and with the arrow keys. To assistive technology\nit is a separator with a value, the width in pixels, and with the name of what it sizes.\n\nThe splitter is the control and sizes nothing itself, as a range does: it has a `value` between\n`min` and `max`, and tells of every change. The layout around it takes the value. An\n`el-app-frame` renders one at the edge of its navigation and of its aside (`resizable`); a page\nwith two panes of its own writes one between them and sets the width of the pane from the\nevent.\n\n---\n\n\n### **Events:**\n - **splitter-resize** - Fired with every change the user makes: while the edge is dragged, and with every key. The new width is in `detail.value`.\n- **splitter-resize-end** - Fired once the user has set a width: when the pointer lets go of the edge, and with every key. The width to keep is in `detail.value`.\n\n### **CSS Properties:**\n - **--el-splitter-line-width** - The width of the line. Default `--el-border-width`. _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The separator: what takes the pointer and the focus. It is wider than the line.\n- **line** - The line that shows, and the mark it becomes under the pointer and with the focus.",
|
|
8687
|
+
"doc-url": "",
|
|
8688
|
+
"attributes": [
|
|
8689
|
+
{
|
|
8690
|
+
"name": "value",
|
|
8691
|
+
"description": "The width of the pane the splitter sizes, in pixels. Default `0`.",
|
|
8692
|
+
"value": {
|
|
8693
|
+
"type": "number"
|
|
8694
|
+
},
|
|
8695
|
+
"source": {
|
|
8696
|
+
"module": "./src/components/splitter/splitter.js",
|
|
8697
|
+
"symbol": "default"
|
|
8698
|
+
}
|
|
8699
|
+
},
|
|
8700
|
+
{
|
|
8701
|
+
"name": "min",
|
|
8702
|
+
"description": "The least width. Default `0`.",
|
|
8703
|
+
"value": {
|
|
8704
|
+
"type": "number"
|
|
8705
|
+
},
|
|
8706
|
+
"source": {
|
|
8707
|
+
"module": "./src/components/splitter/splitter.js",
|
|
8708
|
+
"symbol": "default"
|
|
8709
|
+
}
|
|
8710
|
+
},
|
|
8711
|
+
{
|
|
8712
|
+
"name": "max",
|
|
8713
|
+
"description": "The greatest width. Default `100`.",
|
|
8714
|
+
"value": {
|
|
8715
|
+
"type": "number"
|
|
8716
|
+
},
|
|
8717
|
+
"source": {
|
|
8718
|
+
"module": "./src/components/splitter/splitter.js",
|
|
8719
|
+
"symbol": "default"
|
|
8720
|
+
}
|
|
8721
|
+
},
|
|
8722
|
+
{
|
|
8723
|
+
"name": "step",
|
|
8724
|
+
"description": "How far an arrow key moves the edge, in pixels. Default `16`.",
|
|
8725
|
+
"value": {
|
|
8726
|
+
"type": "number"
|
|
8727
|
+
},
|
|
8728
|
+
"source": {
|
|
8729
|
+
"module": "./src/components/splitter/splitter.js",
|
|
8730
|
+
"symbol": "default"
|
|
8731
|
+
}
|
|
8732
|
+
},
|
|
8733
|
+
{
|
|
8734
|
+
"name": "label",
|
|
8735
|
+
"description": "The name of what the splitter sizes, for assistive technology. Default `''`.",
|
|
8736
|
+
"value": {
|
|
8737
|
+
"type": "string"
|
|
8738
|
+
},
|
|
8739
|
+
"source": {
|
|
8740
|
+
"module": "./src/components/splitter/splitter.js",
|
|
8741
|
+
"symbol": "default"
|
|
8742
|
+
}
|
|
8743
|
+
},
|
|
8744
|
+
{
|
|
8745
|
+
"name": "placement",
|
|
8746
|
+
"description": "The edge of its pane the splitter is. `end`: the pane is in front of it, and grows when the edge moves away from the start. `start`: the pane is after it. Default `'end'`.",
|
|
8747
|
+
"value": {
|
|
8748
|
+
"type": "'start'|'end'"
|
|
8749
|
+
},
|
|
8750
|
+
"source": {
|
|
8751
|
+
"module": "./src/components/splitter/splitter.js",
|
|
8752
|
+
"symbol": "default"
|
|
8753
|
+
}
|
|
8754
|
+
}
|
|
8755
|
+
],
|
|
8756
|
+
"events": [
|
|
8757
|
+
{
|
|
8758
|
+
"name": "splitter-resize",
|
|
8759
|
+
"type": "CustomEvent<{ value: number }>",
|
|
8760
|
+
"description": "Fired with every change the user makes: while the edge is dragged, and with every key. The new width is in `detail.value`."
|
|
8761
|
+
},
|
|
8762
|
+
{
|
|
8763
|
+
"name": "splitter-resize-end",
|
|
8764
|
+
"type": "CustomEvent<{ value: number }>",
|
|
8765
|
+
"description": "Fired once the user has set a width: when the pointer lets go of the edge, and with every key. The width to keep is in `detail.value`."
|
|
8766
|
+
}
|
|
8767
|
+
],
|
|
8768
|
+
"js": {
|
|
8769
|
+
"properties": [
|
|
8770
|
+
{
|
|
8771
|
+
"name": "value",
|
|
8772
|
+
"description": "The width of the pane the splitter sizes, in pixels. Default `0`.",
|
|
8773
|
+
"type": "number"
|
|
8774
|
+
},
|
|
8775
|
+
{
|
|
8776
|
+
"name": "min",
|
|
8777
|
+
"description": "The least width. Default `0`.",
|
|
8778
|
+
"type": "number"
|
|
8779
|
+
},
|
|
8780
|
+
{
|
|
8781
|
+
"name": "max",
|
|
8782
|
+
"description": "The greatest width. Default `100`.",
|
|
8783
|
+
"type": "number"
|
|
8784
|
+
},
|
|
8785
|
+
{
|
|
8786
|
+
"name": "step",
|
|
8787
|
+
"description": "How far an arrow key moves the edge, in pixels. Default `16`.",
|
|
8788
|
+
"type": "number"
|
|
8789
|
+
},
|
|
8790
|
+
{
|
|
8791
|
+
"name": "label",
|
|
8792
|
+
"description": "The name of what the splitter sizes, for assistive technology. Default `''`.",
|
|
8793
|
+
"type": "string"
|
|
8794
|
+
},
|
|
8795
|
+
{
|
|
8796
|
+
"name": "placement",
|
|
8797
|
+
"description": "The edge of its pane the splitter is. `end`: the pane is in front of it, and grows when the edge moves away from the start. `start`: the pane is after it. Default `'end'`.",
|
|
8798
|
+
"type": "'start'|'end'"
|
|
8799
|
+
}
|
|
8800
|
+
],
|
|
8801
|
+
"events": [
|
|
8802
|
+
{
|
|
8803
|
+
"name": "splitter-resize",
|
|
8804
|
+
"type": "CustomEvent<{ value: number }>",
|
|
8805
|
+
"description": "Fired with every change the user makes: while the edge is dragged, and with every key. The new width is in `detail.value`."
|
|
8806
|
+
},
|
|
8807
|
+
{
|
|
8808
|
+
"name": "splitter-resize-end",
|
|
8809
|
+
"type": "CustomEvent<{ value: number }>",
|
|
8810
|
+
"description": "Fired once the user has set a width: when the pointer lets go of the edge, and with every key. The width to keep is in `detail.value`."
|
|
8811
|
+
}
|
|
8812
|
+
]
|
|
8813
|
+
},
|
|
8814
|
+
"source": {
|
|
8815
|
+
"module": "./src/components/splitter/splitter.js",
|
|
8816
|
+
"symbol": "default"
|
|
8817
|
+
}
|
|
8818
|
+
},
|
|
8819
|
+
{
|
|
8820
|
+
"name": "el-status-bar",
|
|
8821
|
+
"description": "A narrow line of state at the lower edge of a tool for a desktop: whether the connection is\nthere, what is selected, how many entries there are, a task that runs in the background, the\nversion. Entries at its start and at its end, in one row that keeps its height.\n\nAn entry is what the page writes: a text, an icon with a name, an `el-button`, or a small\ncomponent (`el-spinner`, `el-progress-bar`). The bar is no live region. An entry whose change\nis to be announced is one the page marks itself (`role=\"status\"`).\n\nIn the footer of an `el-app-frame` the surface of the bar reaches as far as the surface of the\nregion. The look is the stylesheet alone, so a server-rendered bar does not change when the\nelement takes over.\n\n---\n\n\n### **Slots:**\n - _default_ - The entries at the start of the bar. They give way first where the bar is too narrow.\n- **end** - The entries at the end of the bar.\n\n### **CSS Parts:**\n - **base** - The bar: its surface and the line to the content.\n- **row** - The row of the entries, which keeps its height.\n- **start** - The entries at the start.\n- **end** - The entries at the end.",
|
|
8822
|
+
"doc-url": "",
|
|
8823
|
+
"attributes": [],
|
|
8824
|
+
"slots": [
|
|
8825
|
+
{
|
|
8826
|
+
"name": "",
|
|
8827
|
+
"description": "The entries at the start of the bar. They give way first where the bar is too narrow."
|
|
8828
|
+
},
|
|
8829
|
+
{
|
|
8830
|
+
"name": "end",
|
|
8831
|
+
"description": "The entries at the end of the bar."
|
|
8832
|
+
}
|
|
8833
|
+
],
|
|
8834
|
+
"events": [],
|
|
8835
|
+
"js": {
|
|
8836
|
+
"properties": [],
|
|
6876
8837
|
"events": []
|
|
6877
8838
|
},
|
|
6878
8839
|
"source": {
|
|
6879
|
-
"module": "./src/components/
|
|
8840
|
+
"module": "./src/components/status-bar/status-bar.js",
|
|
6880
8841
|
"symbol": "default"
|
|
6881
8842
|
}
|
|
6882
8843
|
},
|
|
@@ -7175,7 +9136,7 @@
|
|
|
7175
9136
|
},
|
|
7176
9137
|
{
|
|
7177
9138
|
"name": "el-tab-group",
|
|
7178
|
-
"description": "Container that pairs `<el-tab-link>` children with `<el-tab-panel>` children and shows\none panel at a time. Listens for `tab-select` events bubbled from `<el-tab-link>` and\nmirrors the active selection onto the `selected` attribute (reflected).\n\nThe group wires the tabs for assistive technology and the keyboard: the selected link has\n`aria-selected=\"true\"` and is the only one in the tab order, every panel is labelled by its\nlink, and the arrow keys, Home and End move between the links that are not disabled and select\nthe one they land on. The element around the links becomes the `tablist`, so put the links\ninto an element of their own.\n\nThe links and panels need not be defined, or be there, when the group connects: it marks the\nselection with attributes and styles, and takes in parts that are added later.\n\n---\n\n\n### **Methods:**\n - **selectTab(name: _string_): _void_** - Programmatically activate the panel with the given name.\n\n### **Slots:**\n - _default_ - Default slot containing `<el-tab-link>` and `<el-tab-panel>` children.",
|
|
9139
|
+
"description": "Container that pairs `<el-tab-link>` children with `<el-tab-panel>` children and shows\none panel at a time. Listens for `tab-select` events bubbled from `<el-tab-link>` and\nmirrors the active selection onto the `selected` attribute (reflected).\n\nThe group wires the tabs for assistive technology and the keyboard: the selected link has\n`aria-selected=\"true\"` and is the only one in the tab order, every panel is labelled by its\nlink, and the arrow keys, Home and End move between the links that are not disabled and select\nthe one they land on. The element around the links becomes the `tablist`, so put the links\ninto an element of their own.\n\nThe links and panels need not be defined, or be there, when the group connects: it marks the\nselection with attributes and styles, and takes in parts that are added later.\n\nThe group finds a panel by its `name` and a link by its `for`. It reads the property and falls\nback to the attribute, so it makes no difference which of the two a framework has set.\n\n---\n\n\n### **Methods:**\n - **selectTab(name: _string_): _void_** - Programmatically activate the panel with the given name.\n\n### **Slots:**\n - _default_ - Default slot containing `<el-tab-link>` and `<el-tab-panel>` children.",
|
|
7179
9140
|
"doc-url": "",
|
|
7180
9141
|
"attributes": [
|
|
7181
9142
|
{
|
|
@@ -7815,6 +9776,28 @@
|
|
|
7815
9776
|
"symbol": "default"
|
|
7816
9777
|
}
|
|
7817
9778
|
},
|
|
9779
|
+
{
|
|
9780
|
+
"name": "maxlength",
|
|
9781
|
+
"description": "Passed on to the control as `maxlength`: the browser takes no more characters than this while the user types. `null` (the default) leaves the attribute out.",
|
|
9782
|
+
"value": {
|
|
9783
|
+
"type": "number | null"
|
|
9784
|
+
},
|
|
9785
|
+
"source": {
|
|
9786
|
+
"module": "./src/components/textarea-field/textarea-field.js",
|
|
9787
|
+
"symbol": "default"
|
|
9788
|
+
}
|
|
9789
|
+
},
|
|
9790
|
+
{
|
|
9791
|
+
"name": "minlength",
|
|
9792
|
+
"description": "Passed on as `minlength`: a text the user has typed that is shorter makes the field invalid. `null` (the default) leaves the attribute out.",
|
|
9793
|
+
"value": {
|
|
9794
|
+
"type": "number | null"
|
|
9795
|
+
},
|
|
9796
|
+
"source": {
|
|
9797
|
+
"module": "./src/components/textarea-field/textarea-field.js",
|
|
9798
|
+
"symbol": "default"
|
|
9799
|
+
}
|
|
9800
|
+
},
|
|
7818
9801
|
{
|
|
7819
9802
|
"name": "autocomplete",
|
|
7820
9803
|
"description": "Passed on to the control as its `autocomplete` attribute (e.g. `'email'`, `'current-password'`, `'one-time-code'`). `null` (the default) leaves the attribute out. The same holds for the five properties below.",
|
|
@@ -8011,6 +9994,16 @@
|
|
|
8011
9994
|
"description": "Number of visible text rows. Forwarded to the underlying `<textarea>`'s `rows` attribute.",
|
|
8012
9995
|
"type": "number"
|
|
8013
9996
|
},
|
|
9997
|
+
{
|
|
9998
|
+
"name": "maxlength",
|
|
9999
|
+
"description": "Passed on to the control as `maxlength`: the browser takes no more characters than this while the user types. `null` (the default) leaves the attribute out.",
|
|
10000
|
+
"type": "number | null"
|
|
10001
|
+
},
|
|
10002
|
+
{
|
|
10003
|
+
"name": "minlength",
|
|
10004
|
+
"description": "Passed on as `minlength`: a text the user has typed that is shorter makes the field invalid. `null` (the default) leaves the attribute out.",
|
|
10005
|
+
"type": "number | null"
|
|
10006
|
+
},
|
|
8014
10007
|
{
|
|
8015
10008
|
"name": "autocomplete",
|
|
8016
10009
|
"description": "Passed on to the control as its `autocomplete` attribute (e.g. `'email'`, `'current-password'`, `'one-time-code'`). `null` (the default) leaves the attribute out. The same holds for the five properties below.",
|
|
@@ -8176,6 +10169,81 @@
|
|
|
8176
10169
|
"symbol": "default"
|
|
8177
10170
|
}
|
|
8178
10171
|
},
|
|
10172
|
+
{
|
|
10173
|
+
"name": "el-toolbar",
|
|
10174
|
+
"description": "A toolbar: the row of controls over a list or a view. It gives them one size and one\nappearance, lays them out with a gap, in lines where they do not fit into one, and with a group\nat the end, and makes them one stop of the Tab key: the arrow keys move between them.\n\nThe controls are what the page writes into it: `el-button` (also as a toggle, and with an icon\nalone), `el-button-group`, `el-segmented-field`, and `el-divider` between two groups.\n\nThe look is the stylesheet alone, so a server-rendered toolbar does not change when the element\ntakes over. The script adds the keyboard, and the tooltips of the buttons with an icon alone.\n\n---\n\n\n### **Slots:**\n - _default_ - The controls of the toolbar, and `el-divider` elements between two groups of them.\n- **end** - The controls at the end of the toolbar.\n\n### **CSS Parts:**\n - **base** - The toolbar (`role=\"toolbar\"`): the row of the controls.\n- **end** - The group at the end.\n- **tooltip** - The tooltip of a button with an icon alone: an `el-tooltip`.",
|
|
10175
|
+
"doc-url": "",
|
|
10176
|
+
"attributes": [
|
|
10177
|
+
{
|
|
10178
|
+
"name": "label",
|
|
10179
|
+
"description": "The name of the toolbar for assistive technology, \"Formatting\". Unset, the toolbar has none.",
|
|
10180
|
+
"value": {
|
|
10181
|
+
"type": "string"
|
|
10182
|
+
},
|
|
10183
|
+
"source": {
|
|
10184
|
+
"module": "./src/components/toolbar/toolbar.js",
|
|
10185
|
+
"symbol": "default"
|
|
10186
|
+
}
|
|
10187
|
+
},
|
|
10188
|
+
{
|
|
10189
|
+
"name": "size",
|
|
10190
|
+
"description": "The size of the controls that have none of their own. Default `'medium'`. Reflected to the `size` attribute.",
|
|
10191
|
+
"value": {
|
|
10192
|
+
"type": "'small'|'medium'|'large'"
|
|
10193
|
+
},
|
|
10194
|
+
"source": {
|
|
10195
|
+
"module": "./src/components/toolbar/toolbar.js",
|
|
10196
|
+
"symbol": "default"
|
|
10197
|
+
}
|
|
10198
|
+
},
|
|
10199
|
+
{
|
|
10200
|
+
"name": "appearance",
|
|
10201
|
+
"description": "The appearance of the buttons that have none of their own. Default `'plain'`. Reflected to the `appearance` attribute.",
|
|
10202
|
+
"value": {
|
|
10203
|
+
"type": "'filled'|'outlined'|'plain'"
|
|
10204
|
+
},
|
|
10205
|
+
"source": {
|
|
10206
|
+
"module": "./src/components/toolbar/toolbar.js",
|
|
10207
|
+
"symbol": "default"
|
|
10208
|
+
}
|
|
10209
|
+
}
|
|
10210
|
+
],
|
|
10211
|
+
"slots": [
|
|
10212
|
+
{
|
|
10213
|
+
"name": "",
|
|
10214
|
+
"description": "The controls of the toolbar, and `el-divider` elements between two groups of them."
|
|
10215
|
+
},
|
|
10216
|
+
{
|
|
10217
|
+
"name": "end",
|
|
10218
|
+
"description": "The controls at the end of the toolbar."
|
|
10219
|
+
}
|
|
10220
|
+
],
|
|
10221
|
+
"events": [],
|
|
10222
|
+
"js": {
|
|
10223
|
+
"properties": [
|
|
10224
|
+
{
|
|
10225
|
+
"name": "label",
|
|
10226
|
+
"description": "The name of the toolbar for assistive technology, \"Formatting\". Unset, the toolbar has none.",
|
|
10227
|
+
"type": "string"
|
|
10228
|
+
},
|
|
10229
|
+
{
|
|
10230
|
+
"name": "size",
|
|
10231
|
+
"description": "The size of the controls that have none of their own. Default `'medium'`. Reflected to the `size` attribute.",
|
|
10232
|
+
"type": "'small'|'medium'|'large'"
|
|
10233
|
+
},
|
|
10234
|
+
{
|
|
10235
|
+
"name": "appearance",
|
|
10236
|
+
"description": "The appearance of the buttons that have none of their own. Default `'plain'`. Reflected to the `appearance` attribute.",
|
|
10237
|
+
"type": "'filled'|'outlined'|'plain'"
|
|
10238
|
+
}
|
|
10239
|
+
],
|
|
10240
|
+
"events": []
|
|
10241
|
+
},
|
|
10242
|
+
"source": {
|
|
10243
|
+
"module": "./src/components/toolbar/toolbar.js",
|
|
10244
|
+
"symbol": "default"
|
|
10245
|
+
}
|
|
10246
|
+
},
|
|
8179
10247
|
{
|
|
8180
10248
|
"name": "el-tooltip",
|
|
8181
10249
|
"description": "A short text that explains another element, its anchor. It appears next to the anchor while the\npointer is over it or while it has the focus of the keyboard, and `Escape` closes it. The\ntooltip names its anchor by id with `for`, the way a `<label>` does, and is the description of\nthat element for a screen reader (`aria-describedby`), open or not.\n\nThe element is a native popover of the platform (`popover=\"manual\"`), which owns the top layer:\nnothing clips the tooltip or lies on top of it. The component adds the opening and closing and\nthe place: at the side of the anchor that `placement` names, on the other side when there is no\nroom, and never outside the viewport.\n\n---\n\n\n### **Events:**\n - **tooltip-show** - Fired when the tooltip has opened.\n- **tooltip-hide** - Fired when the tooltip has closed.\n\n### **Methods:**\n - **show(): _void_** - Opens the tooltip. A tooltip without an anchor in the page stays closed.\n- **hide(): _void_** - Closes the tooltip.\n\n### **Slots:**\n - _default_ - The text of the tooltip.\n\n### **CSS Parts:**\n - **body** - The surface of the tooltip: background, text colour, padding, radius.\n- **arrow** - The arrow that points to the anchor, present only while `arrow` is `true`.",
|
|
@@ -8268,6 +10336,17 @@
|
|
|
8268
10336
|
"module": "./src/components/tooltip/tooltip.js",
|
|
8269
10337
|
"symbol": "default"
|
|
8270
10338
|
}
|
|
10339
|
+
},
|
|
10340
|
+
{
|
|
10341
|
+
"name": "type",
|
|
10342
|
+
"description": "What the tooltip is to its anchor. `'description'` (the default): it explains the anchor, and is its description for a screen reader. `'label'`: it shows the name the anchor already has, of a button with an icon alone for example. The anchor is not described by it then, and the tooltip is hidden from assistive technology, which would read the name twice.",
|
|
10343
|
+
"value": {
|
|
10344
|
+
"type": "'description'|'label'"
|
|
10345
|
+
},
|
|
10346
|
+
"source": {
|
|
10347
|
+
"module": "./src/components/tooltip/tooltip.js",
|
|
10348
|
+
"symbol": "default"
|
|
10349
|
+
}
|
|
8271
10350
|
}
|
|
8272
10351
|
],
|
|
8273
10352
|
"slots": [
|
|
@@ -8290,11 +10369,21 @@
|
|
|
8290
10369
|
],
|
|
8291
10370
|
"js": {
|
|
8292
10371
|
"properties": [
|
|
10372
|
+
{
|
|
10373
|
+
"name": "anchor",
|
|
10374
|
+
"description": "The anchor as an element, for one that an id cannot name: an element in another tree than the tooltip. A property only, and it comes before `for`. Default `null`.",
|
|
10375
|
+
"type": "Element | null"
|
|
10376
|
+
},
|
|
8293
10377
|
{
|
|
8294
10378
|
"name": "for",
|
|
8295
10379
|
"description": "The id of the anchor: the element the tooltip explains and opens from. It is looked up in the document or the shadow root the tooltip is in.",
|
|
8296
10380
|
"type": "string"
|
|
8297
10381
|
},
|
|
10382
|
+
{
|
|
10383
|
+
"name": "type",
|
|
10384
|
+
"description": "What the tooltip is to its anchor. `'description'` (the default): it explains the anchor, and is its description for a screen reader. `'label'`: it shows the name the anchor already has, of a button with an icon alone for example. The anchor is not described by it then, and the tooltip is hidden from assistive technology, which would read the name twice.",
|
|
10385
|
+
"type": "'description'|'label'"
|
|
10386
|
+
},
|
|
8298
10387
|
{
|
|
8299
10388
|
"name": "open",
|
|
8300
10389
|
"description": "Whether the tooltip is shown. Reflected to the `open` attribute.",
|
|
@@ -8404,30 +10493,220 @@
|
|
|
8404
10493
|
"value": {
|
|
8405
10494
|
"type": "string"
|
|
8406
10495
|
},
|
|
8407
|
-
"source": {
|
|
8408
|
-
"module": "./src/components/transition-classes/transition-classes.js",
|
|
8409
|
-
"symbol": "default"
|
|
8410
|
-
}
|
|
8411
|
-
},
|
|
8412
|
-
{
|
|
8413
|
-
"name": "leave-end",
|
|
8414
|
-
"description": "Classes applied at the end of the leave transition.",
|
|
8415
|
-
"value": {
|
|
10496
|
+
"source": {
|
|
10497
|
+
"module": "./src/components/transition-classes/transition-classes.js",
|
|
10498
|
+
"symbol": "default"
|
|
10499
|
+
}
|
|
10500
|
+
},
|
|
10501
|
+
{
|
|
10502
|
+
"name": "leave-end",
|
|
10503
|
+
"description": "Classes applied at the end of the leave transition.",
|
|
10504
|
+
"value": {
|
|
10505
|
+
"type": "string"
|
|
10506
|
+
},
|
|
10507
|
+
"source": {
|
|
10508
|
+
"module": "./src/components/transition-classes/transition-classes.js",
|
|
10509
|
+
"symbol": "default"
|
|
10510
|
+
}
|
|
10511
|
+
},
|
|
10512
|
+
{
|
|
10513
|
+
"name": "show",
|
|
10514
|
+
"description": "When `true` the host plays the enter transition; when `false` the leave transition.",
|
|
10515
|
+
"value": {
|
|
10516
|
+
"type": "boolean"
|
|
10517
|
+
},
|
|
10518
|
+
"source": {
|
|
10519
|
+
"module": "./src/components/transition-classes/transition-classes.js",
|
|
10520
|
+
"symbol": "default"
|
|
10521
|
+
}
|
|
10522
|
+
}
|
|
10523
|
+
],
|
|
10524
|
+
"slots": [
|
|
10525
|
+
{
|
|
10526
|
+
"name": "",
|
|
10527
|
+
"description": "Default slot for the element(s) being transitioned."
|
|
10528
|
+
}
|
|
10529
|
+
],
|
|
10530
|
+
"events": [],
|
|
10531
|
+
"js": {
|
|
10532
|
+
"properties": [
|
|
10533
|
+
{
|
|
10534
|
+
"name": "show",
|
|
10535
|
+
"description": "When `true` the host plays the enter transition; when `false` the leave transition.",
|
|
10536
|
+
"type": "boolean"
|
|
10537
|
+
}
|
|
10538
|
+
],
|
|
10539
|
+
"events": []
|
|
10540
|
+
},
|
|
10541
|
+
"source": {
|
|
10542
|
+
"module": "./src/components/transition-classes/transition-classes.js",
|
|
10543
|
+
"symbol": "default"
|
|
10544
|
+
}
|
|
10545
|
+
},
|
|
10546
|
+
{
|
|
10547
|
+
"name": "el-tree-item",
|
|
10548
|
+
"description": "One entry of an `el-tree`, and the entries below it. It has the parts of a row of a list: an\nicon at the start, its name, a count at the end. With `href` the name is a link, and the whole\nrow is its target. An entry with entries below it has a button that opens and closes them; its\nstate is the `open` attribute, which the page can render.\n\nThe entries below it are the `el-tree-item` elements the page writes into it.\n\n---\n\n\n### **Events:**\n - **tree-item-toggle** - Fired when the user has opened or closed the entry, with its button or with the arrow keys. `detail.open` is the new state. Not fired when `open` is set from a script. It bubbles: an entry further up hears it as well, so look at `event.target`.\n\n### **Methods:**\n - **toggle(open: _boolean_): _void_** - Opens or closes the entry, as its button does, and says so with `tree-item-toggle`. An entry\nwithout entries below it stays as it is.\n\n### **Slots:**\n - _default_ - The entries below this one: `el-tree-item` elements.\n- **label** - The name of the entry. Takes precedence over the `label` attribute.\n- **start** - What stands in front of the name: an icon.\n- **end** - What stands at the end of the row: a count. In an entry that is a link it is part of the target of the link.\n\n### **CSS Properties:**\n - **--el-tree-indent** - How far the entries below stand in from this one. Unset, it is `--el-space-4`, and `1rem` without a theme. _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The entry: an item of the list it is in.\n- **row** - The row of the entry: its button, its start, its name and its end.\n- **toggle** - The button that opens and closes the entries below, present only with such entries.\n- **start** - The region of the `start` slot.\n- **label** - The name: an `<a>` with `href`; without, a `<button>` that opens and closes the entry when it has entries below it, and a `<span>` when it has none.\n- **end** - The region of the `end` slot.\n- **children** - The list of the entries below (`role=\"list\"`).",
|
|
10549
|
+
"doc-url": "",
|
|
10550
|
+
"attributes": [
|
|
10551
|
+
{
|
|
10552
|
+
"name": "label",
|
|
10553
|
+
"description": "The name of the entry.",
|
|
10554
|
+
"value": {
|
|
10555
|
+
"type": "string"
|
|
10556
|
+
},
|
|
10557
|
+
"source": {
|
|
10558
|
+
"module": "./src/components/tree-item/tree-item.js",
|
|
10559
|
+
"symbol": "default"
|
|
10560
|
+
}
|
|
10561
|
+
},
|
|
10562
|
+
{
|
|
10563
|
+
"name": "href",
|
|
10564
|
+
"description": "The address the entry leads to. Unset, the entry is no link.",
|
|
10565
|
+
"value": {
|
|
10566
|
+
"type": "string"
|
|
10567
|
+
},
|
|
10568
|
+
"source": {
|
|
10569
|
+
"module": "./src/components/tree-item/tree-item.js",
|
|
10570
|
+
"symbol": "default"
|
|
10571
|
+
}
|
|
10572
|
+
},
|
|
10573
|
+
{
|
|
10574
|
+
"name": "target",
|
|
10575
|
+
"description": "Where to open the address (only with `href`).",
|
|
10576
|
+
"value": {
|
|
10577
|
+
"type": "string"
|
|
10578
|
+
},
|
|
10579
|
+
"source": {
|
|
10580
|
+
"module": "./src/components/tree-item/tree-item.js",
|
|
10581
|
+
"symbol": "default"
|
|
10582
|
+
}
|
|
10583
|
+
},
|
|
10584
|
+
{
|
|
10585
|
+
"name": "rel",
|
|
10586
|
+
"description": "`rel` attribute for the link, written when `target` is set. Default `'noreferrer noopener'`.",
|
|
10587
|
+
"value": {
|
|
10588
|
+
"type": "string"
|
|
10589
|
+
},
|
|
10590
|
+
"source": {
|
|
10591
|
+
"module": "./src/components/tree-item/tree-item.js",
|
|
10592
|
+
"symbol": "default"
|
|
10593
|
+
}
|
|
10594
|
+
},
|
|
10595
|
+
{
|
|
10596
|
+
"name": "current",
|
|
10597
|
+
"description": "The entry is the one of the page the user is on: it gets `aria-current=\"page\"` (`\"true\"` without `href`), a bar at its start and a heavier name. Default `false`.",
|
|
10598
|
+
"value": {
|
|
10599
|
+
"type": "boolean"
|
|
10600
|
+
},
|
|
10601
|
+
"source": {
|
|
10602
|
+
"module": "./src/components/tree-item/tree-item.js",
|
|
10603
|
+
"symbol": "default"
|
|
10604
|
+
}
|
|
10605
|
+
},
|
|
10606
|
+
{
|
|
10607
|
+
"name": "open",
|
|
10608
|
+
"description": "Whether the entries below this one are shown. Reflected to the `open` attribute, which the stylesheet reads: an entry without `open=\"true\"` is closed, before the element starts as well. Default `false`.",
|
|
10609
|
+
"value": {
|
|
10610
|
+
"type": "boolean"
|
|
10611
|
+
},
|
|
10612
|
+
"source": {
|
|
10613
|
+
"module": "./src/components/tree-item/tree-item.js",
|
|
10614
|
+
"symbol": "default"
|
|
10615
|
+
}
|
|
10616
|
+
}
|
|
10617
|
+
],
|
|
10618
|
+
"slots": [
|
|
10619
|
+
{
|
|
10620
|
+
"name": "",
|
|
10621
|
+
"description": "The entries below this one: `el-tree-item` elements."
|
|
10622
|
+
},
|
|
10623
|
+
{
|
|
10624
|
+
"name": "label",
|
|
10625
|
+
"description": "The name of the entry. Takes precedence over the `label` attribute."
|
|
10626
|
+
},
|
|
10627
|
+
{
|
|
10628
|
+
"name": "start",
|
|
10629
|
+
"description": "What stands in front of the name: an icon."
|
|
10630
|
+
},
|
|
10631
|
+
{
|
|
10632
|
+
"name": "end",
|
|
10633
|
+
"description": "What stands at the end of the row: a count. In an entry that is a link it is part of the target of the link."
|
|
10634
|
+
}
|
|
10635
|
+
],
|
|
10636
|
+
"events": [
|
|
10637
|
+
{
|
|
10638
|
+
"name": "tree-item-toggle",
|
|
10639
|
+
"type": "CustomEvent<{ open: boolean }>",
|
|
10640
|
+
"description": "Fired when the user has opened or closed the entry, with its button or with the arrow keys. `detail.open` is the new state. Not fired when `open` is set from a script. It bubbles: an entry further up hears it as well, so look at `event.target`."
|
|
10641
|
+
}
|
|
10642
|
+
],
|
|
10643
|
+
"js": {
|
|
10644
|
+
"properties": [
|
|
10645
|
+
{
|
|
10646
|
+
"name": "hasItems",
|
|
10647
|
+
"description": "Whether the entry has entries below it. The children of the host are asked, not the slot:\na template is rendered on a server too, where there are no slots to ask."
|
|
10648
|
+
},
|
|
10649
|
+
{
|
|
10650
|
+
"name": "focusTarget",
|
|
10651
|
+
"description": "The control of the entry that the focus goes to: its link, or the button its name is when it\nhas entries below it and no address. `null` for a name alone."
|
|
10652
|
+
},
|
|
10653
|
+
{
|
|
10654
|
+
"name": "label",
|
|
10655
|
+
"description": "The name of the entry.",
|
|
10656
|
+
"type": "string"
|
|
10657
|
+
},
|
|
10658
|
+
{
|
|
10659
|
+
"name": "href",
|
|
10660
|
+
"description": "The address the entry leads to. Unset, the entry is no link.",
|
|
10661
|
+
"type": "string"
|
|
10662
|
+
},
|
|
10663
|
+
{
|
|
10664
|
+
"name": "target",
|
|
10665
|
+
"description": "Where to open the address (only with `href`).",
|
|
10666
|
+
"type": "string"
|
|
10667
|
+
},
|
|
10668
|
+
{
|
|
10669
|
+
"name": "rel",
|
|
10670
|
+
"description": "`rel` attribute for the link, written when `target` is set. Default `'noreferrer noopener'`.",
|
|
8416
10671
|
"type": "string"
|
|
8417
10672
|
},
|
|
8418
|
-
|
|
8419
|
-
"
|
|
8420
|
-
"
|
|
10673
|
+
{
|
|
10674
|
+
"name": "current",
|
|
10675
|
+
"description": "The entry is the one of the page the user is on: it gets `aria-current=\"page\"` (`\"true\"` without `href`), a bar at its start and a heavier name. Default `false`.",
|
|
10676
|
+
"type": "boolean"
|
|
10677
|
+
},
|
|
10678
|
+
{
|
|
10679
|
+
"name": "open",
|
|
10680
|
+
"description": "Whether the entries below this one are shown. Reflected to the `open` attribute, which the stylesheet reads: an entry without `open=\"true\"` is closed, before the element starts as well. Default `false`.",
|
|
10681
|
+
"type": "boolean"
|
|
8421
10682
|
}
|
|
8422
|
-
|
|
10683
|
+
],
|
|
10684
|
+
"events": [
|
|
10685
|
+
{
|
|
10686
|
+
"name": "tree-item-toggle",
|
|
10687
|
+
"type": "CustomEvent<{ open: boolean }>",
|
|
10688
|
+
"description": "Fired when the user has opened or closed the entry, with its button or with the arrow keys. `detail.open` is the new state. Not fired when `open` is set from a script. It bubbles: an entry further up hears it as well, so look at `event.target`."
|
|
10689
|
+
}
|
|
10690
|
+
]
|
|
10691
|
+
},
|
|
10692
|
+
"source": {
|
|
10693
|
+
"module": "./src/components/tree-item/tree-item.js",
|
|
10694
|
+
"symbol": "default"
|
|
10695
|
+
}
|
|
10696
|
+
},
|
|
10697
|
+
{
|
|
10698
|
+
"name": "el-tree",
|
|
10699
|
+
"description": "A tree: entries that open and close, for folders, categories and a library beside the content.\nThe tree is a list; every `el-tree-item` in it is an entry, and an entry holds the entries\nbelow it. An entry is a link, and one with entries below it has a button that opens and closes\nthem.\n\nTo assistive technology it is what it is in the markup: nested lists of links, each branch with\na button that says whether it is open. It has no `role=\"tree\"`: the links stay links, and they\nwork before the script has run. The script adds the arrow keys of a tree.\n\n---\n\n\n### **Slots:**\n - _default_ - The entries of the first level: `el-tree-item` elements.\n\n### **CSS Properties:**\n - **--el-tree-indent** - How far the entries of a level stand in from the ones of the level above. Unset, it is `--el-space-4`, and `1rem` without a theme. Read by the entries, so it can be set on the tree or for the page. _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The list of the first level (`role=\"list\"`).",
|
|
10700
|
+
"doc-url": "",
|
|
10701
|
+
"attributes": [
|
|
8423
10702
|
{
|
|
8424
|
-
"name": "
|
|
8425
|
-
"description": "
|
|
10703
|
+
"name": "label",
|
|
10704
|
+
"description": "The name of the tree for assistive technology. Unset, the tree has none.",
|
|
8426
10705
|
"value": {
|
|
8427
|
-
"type": "
|
|
10706
|
+
"type": "string"
|
|
8428
10707
|
},
|
|
8429
10708
|
"source": {
|
|
8430
|
-
"module": "./src/components/
|
|
10709
|
+
"module": "./src/components/tree/tree.js",
|
|
8431
10710
|
"symbol": "default"
|
|
8432
10711
|
}
|
|
8433
10712
|
}
|
|
@@ -8435,22 +10714,22 @@
|
|
|
8435
10714
|
"slots": [
|
|
8436
10715
|
{
|
|
8437
10716
|
"name": "",
|
|
8438
|
-
"description": "
|
|
10717
|
+
"description": "The entries of the first level: `el-tree-item` elements."
|
|
8439
10718
|
}
|
|
8440
10719
|
],
|
|
8441
10720
|
"events": [],
|
|
8442
10721
|
"js": {
|
|
8443
10722
|
"properties": [
|
|
8444
10723
|
{
|
|
8445
|
-
"name": "
|
|
8446
|
-
"description": "
|
|
8447
|
-
"type": "
|
|
10724
|
+
"name": "label",
|
|
10725
|
+
"description": "The name of the tree for assistive technology. Unset, the tree has none.",
|
|
10726
|
+
"type": "string"
|
|
8448
10727
|
}
|
|
8449
10728
|
],
|
|
8450
10729
|
"events": []
|
|
8451
10730
|
},
|
|
8452
10731
|
"source": {
|
|
8453
|
-
"module": "./src/components/
|
|
10732
|
+
"module": "./src/components/tree/tree.js",
|
|
8454
10733
|
"symbol": "default"
|
|
8455
10734
|
}
|
|
8456
10735
|
}
|
|
@@ -8466,6 +10745,30 @@
|
|
|
8466
10745
|
"name": "--el-amount-field-minus",
|
|
8467
10746
|
"description": "The sign of the decrement button, a CSS string."
|
|
8468
10747
|
},
|
|
10748
|
+
{
|
|
10749
|
+
"name": "--el-app-frame-navigation-size",
|
|
10750
|
+
"description": "The width of the navigation where the frame is wide, and of its drawer where it is narrow. Default `16rem`. `auto` is the width of what is in it."
|
|
10751
|
+
},
|
|
10752
|
+
{
|
|
10753
|
+
"name": "--el-app-frame-aside-size",
|
|
10754
|
+
"description": "The width of the aside where the frame is wide. Default `20rem`."
|
|
10755
|
+
},
|
|
10756
|
+
{
|
|
10757
|
+
"name": "--el-app-frame-navigation-min-size",
|
|
10758
|
+
"description": "The least width of a navigation that is resizable. Default `10rem`."
|
|
10759
|
+
},
|
|
10760
|
+
{
|
|
10761
|
+
"name": "--el-app-frame-navigation-max-size",
|
|
10762
|
+
"description": "The greatest width of a navigation that is resizable. Default `min(30rem, 40cqi)`: two fifths of the width of the frame at most."
|
|
10763
|
+
},
|
|
10764
|
+
{
|
|
10765
|
+
"name": "--el-app-frame-aside-min-size",
|
|
10766
|
+
"description": "The least width of an aside that is resizable. Default `10rem`."
|
|
10767
|
+
},
|
|
10768
|
+
{
|
|
10769
|
+
"name": "--el-app-frame-aside-max-size",
|
|
10770
|
+
"description": "The greatest width of an aside that is resizable. Default `min(30rem, 40cqi)`."
|
|
10771
|
+
},
|
|
8469
10772
|
{
|
|
8470
10773
|
"name": "--el-avatar-size",
|
|
8471
10774
|
"description": "The width and the height of the avatar. Unset, the `size` decides."
|
|
@@ -8482,6 +10785,18 @@
|
|
|
8482
10785
|
"name": "--el-card-padding",
|
|
8483
10786
|
"description": "The padding of the header, the body and the footer. Unset, it is `--el-space-4`, and `1rem` without a theme."
|
|
8484
10787
|
},
|
|
10788
|
+
{
|
|
10789
|
+
"name": "--el-description-list-term-width",
|
|
10790
|
+
"description": "The width of the column of the names while names and values stand side by side. The gap to the values comes after it. Unset, the column is as wide as the longest name, and takes 40% of the list at most together with that gap."
|
|
10791
|
+
},
|
|
10792
|
+
{
|
|
10793
|
+
"name": "--el-description-list-padding-block",
|
|
10794
|
+
"description": "The room above and below a row. Unset, it is `--el-space-3`, and `0.75rem` without a theme."
|
|
10795
|
+
},
|
|
10796
|
+
{
|
|
10797
|
+
"name": "--el-description-list-gap",
|
|
10798
|
+
"description": "The gap between a name and its value while they stand side by side, and in front of an action. Unset, it is `--el-space-4`, and `1rem` without a theme."
|
|
10799
|
+
},
|
|
8485
10800
|
{
|
|
8486
10801
|
"name": "--el-divider-color",
|
|
8487
10802
|
"description": "The colour of the line. Unset, it is `--el-color-border`, and a fifth of the text colour without a theme."
|
|
@@ -8490,6 +10805,30 @@
|
|
|
8490
10805
|
"name": "--el-divider-width",
|
|
8491
10806
|
"description": "The thickness of the line. Unset, it is `--el-border-width`, and `1px` without a theme."
|
|
8492
10807
|
},
|
|
10808
|
+
{
|
|
10809
|
+
"name": "--el-list-padding-inline",
|
|
10810
|
+
"description": "The padding of the row at its start and its end. Unset, it is `--el-space-4`, and `1rem` without a theme."
|
|
10811
|
+
},
|
|
10812
|
+
{
|
|
10813
|
+
"name": "--el-list-gap",
|
|
10814
|
+
"description": "The gap between the start, the texts, the end and the control of the row. Unset, it is `--el-space-3`, and `0.75rem` without a theme."
|
|
10815
|
+
},
|
|
10816
|
+
{
|
|
10817
|
+
"name": "--el-list-padding-inline",
|
|
10818
|
+
"description": "The padding of a row at its start and its end. Unset, it is `--el-space-4`, and `1rem` without a theme. Read by the rows, so it can be set on the list or for the page."
|
|
10819
|
+
},
|
|
10820
|
+
{
|
|
10821
|
+
"name": "--el-list-gap",
|
|
10822
|
+
"description": "The gap between the start, the texts, the end and the control of a row. Unset, it is `--el-space-3`, and `0.75rem` without a theme. Read by the rows as well."
|
|
10823
|
+
},
|
|
10824
|
+
{
|
|
10825
|
+
"name": "--el-nav-rail-size",
|
|
10826
|
+
"description": "The width of a rail. Default `5rem`."
|
|
10827
|
+
},
|
|
10828
|
+
{
|
|
10829
|
+
"name": "--el-nav-list-size",
|
|
10830
|
+
"description": "The width of a list where its place is as wide as what is in it. Default `16rem`."
|
|
10831
|
+
},
|
|
8493
10832
|
{
|
|
8494
10833
|
"name": "--el-progress-bar-height",
|
|
8495
10834
|
"description": "The height of the bar. Unset, it is `0.5rem`."
|
|
@@ -8546,6 +10885,10 @@
|
|
|
8546
10885
|
"name": "--el-spinner-track-color",
|
|
8547
10886
|
"description": "The ring it turns on. Unset, it is a fifth of the text colour."
|
|
8548
10887
|
},
|
|
10888
|
+
{
|
|
10889
|
+
"name": "--el-splitter-line-width",
|
|
10890
|
+
"description": "The width of the line. Default `--el-border-width`."
|
|
10891
|
+
},
|
|
8549
10892
|
{
|
|
8550
10893
|
"name": "--sticky-height",
|
|
8551
10894
|
"description": "Auto-set to the host's `clientHeight`. Maintained via a `ResizeObserver` and useful for transform calculations or layout offsets."
|
|
@@ -8553,6 +10896,14 @@
|
|
|
8553
10896
|
{
|
|
8554
10897
|
"name": "--el-toast-inset",
|
|
8555
10898
|
"description": "The distance of the stack from the edges of the viewport. Unset, it is `--el-space-4`."
|
|
10899
|
+
},
|
|
10900
|
+
{
|
|
10901
|
+
"name": "--el-tree-indent",
|
|
10902
|
+
"description": "How far the entries below stand in from this one. Unset, it is `--el-space-4`, and `1rem` without a theme."
|
|
10903
|
+
},
|
|
10904
|
+
{
|
|
10905
|
+
"name": "--el-tree-indent",
|
|
10906
|
+
"description": "How far the entries of a level stand in from the ones of the level above. Unset, it is `--el-space-4`, and `1rem` without a theme. Read by the entries, so it can be set on the tree or for the page."
|
|
8556
10907
|
}
|
|
8557
10908
|
],
|
|
8558
10909
|
"pseudo-elements": [
|
|
@@ -8568,6 +10919,90 @@
|
|
|
8568
10919
|
"name": "part(icon)",
|
|
8569
10920
|
"description": "The chevron icon; rotates 180° while the accordion is open."
|
|
8570
10921
|
},
|
|
10922
|
+
{
|
|
10923
|
+
"name": "part(base)",
|
|
10924
|
+
"description": "The bar: its surface and the line to the content."
|
|
10925
|
+
},
|
|
10926
|
+
{
|
|
10927
|
+
"name": "part(row)",
|
|
10928
|
+
"description": "The row of the start, the title and the end."
|
|
10929
|
+
},
|
|
10930
|
+
{
|
|
10931
|
+
"name": "part(start)",
|
|
10932
|
+
"description": "The region in front of the title."
|
|
10933
|
+
},
|
|
10934
|
+
{
|
|
10935
|
+
"name": "part(title)",
|
|
10936
|
+
"description": "The title. A heading while `heading-level` is set."
|
|
10937
|
+
},
|
|
10938
|
+
{
|
|
10939
|
+
"name": "part(end)",
|
|
10940
|
+
"description": "The region at the end."
|
|
10941
|
+
},
|
|
10942
|
+
{
|
|
10943
|
+
"name": "part(base)",
|
|
10944
|
+
"description": "The frame: the grid of the regions."
|
|
10945
|
+
},
|
|
10946
|
+
{
|
|
10947
|
+
"name": "part(skip-landmark)",
|
|
10948
|
+
"description": "The landmark the skip link lies in: a `<nav>`."
|
|
10949
|
+
},
|
|
10950
|
+
{
|
|
10951
|
+
"name": "part(skip-link)",
|
|
10952
|
+
"description": "The link that skips to the content. It shows while it has the focus."
|
|
10953
|
+
},
|
|
10954
|
+
{
|
|
10955
|
+
"name": "part(header)",
|
|
10956
|
+
"description": "The region at the top. Its surface reaches under the status bar of a phone."
|
|
10957
|
+
},
|
|
10958
|
+
{
|
|
10959
|
+
"name": "part(navigation)",
|
|
10960
|
+
"description": "The region at the start side, where the frame is wide."
|
|
10961
|
+
},
|
|
10962
|
+
{
|
|
10963
|
+
"name": "part(body)",
|
|
10964
|
+
"description": "The content and the aside. Where the frame is narrow, it is what scrolls."
|
|
10965
|
+
},
|
|
10966
|
+
{
|
|
10967
|
+
"name": "part(content)",
|
|
10968
|
+
"description": "The region of the content. Where the frame is wide, it is what scrolls."
|
|
10969
|
+
},
|
|
10970
|
+
{
|
|
10971
|
+
"name": "part(aside)",
|
|
10972
|
+
"description": "The region at the end side."
|
|
10973
|
+
},
|
|
10974
|
+
{
|
|
10975
|
+
"name": "part(footer)",
|
|
10976
|
+
"description": "The region at the lower edge. Its surface reaches under the home indicator."
|
|
10977
|
+
},
|
|
10978
|
+
{
|
|
10979
|
+
"name": "part(drawer)",
|
|
10980
|
+
"description": "The surface of the drawer the navigation is in where the frame is narrow."
|
|
10981
|
+
},
|
|
10982
|
+
{
|
|
10983
|
+
"name": "part(drawer-header)",
|
|
10984
|
+
"description": "The header of that drawer, with its title and its close button."
|
|
10985
|
+
},
|
|
10986
|
+
{
|
|
10987
|
+
"name": "part(drawer-title)",
|
|
10988
|
+
"description": "The title of that drawer."
|
|
10989
|
+
},
|
|
10990
|
+
{
|
|
10991
|
+
"name": "part(drawer-close-button)",
|
|
10992
|
+
"description": "The close button of that drawer."
|
|
10993
|
+
},
|
|
10994
|
+
{
|
|
10995
|
+
"name": "part(drawer-body)",
|
|
10996
|
+
"description": "The body of that drawer: the navigation of the page is in it."
|
|
10997
|
+
},
|
|
10998
|
+
{
|
|
10999
|
+
"name": "part(navigation-splitter)",
|
|
11000
|
+
"description": "The edge of the navigation the user drags, an `el-splitter`."
|
|
11001
|
+
},
|
|
11002
|
+
{
|
|
11003
|
+
"name": "part(aside-splitter)",
|
|
11004
|
+
"description": "The edge of the aside the user drags, an `el-splitter`."
|
|
11005
|
+
},
|
|
8571
11006
|
{
|
|
8572
11007
|
"name": "part(base)",
|
|
8573
11008
|
"description": "The shape of the avatar: background, radius. It carries the role and the label."
|
|
@@ -8704,6 +11139,10 @@
|
|
|
8704
11139
|
"name": "part(feedback)",
|
|
8705
11140
|
"description": "The text of the outcome, a live region that is not shown."
|
|
8706
11141
|
},
|
|
11142
|
+
{
|
|
11143
|
+
"name": "part(base)",
|
|
11144
|
+
"description": "The `<dl>`."
|
|
11145
|
+
},
|
|
8707
11146
|
{
|
|
8708
11147
|
"name": "part(base)",
|
|
8709
11148
|
"description": "The native `<dialog>` element — the panel surface (background, border, radius, elevation). The overlay is its `::backdrop` pseudo-element."
|
|
@@ -8796,6 +11235,126 @@
|
|
|
8796
11235
|
"name": "part(action)",
|
|
8797
11236
|
"description": "The region of the `action` slot."
|
|
8798
11237
|
},
|
|
11238
|
+
{
|
|
11239
|
+
"name": "part(base)",
|
|
11240
|
+
"description": "The row: an item of the list."
|
|
11241
|
+
},
|
|
11242
|
+
{
|
|
11243
|
+
"name": "part(mark)",
|
|
11244
|
+
"description": "The dot of `mark`, in the padding at the start of the row."
|
|
11245
|
+
},
|
|
11246
|
+
{
|
|
11247
|
+
"name": "part(start)",
|
|
11248
|
+
"description": "The region of the `start` slot."
|
|
11249
|
+
},
|
|
11250
|
+
{
|
|
11251
|
+
"name": "part(text)",
|
|
11252
|
+
"description": "The title and the line under it."
|
|
11253
|
+
},
|
|
11254
|
+
{
|
|
11255
|
+
"name": "part(title)",
|
|
11256
|
+
"description": "The title: an `<a>` with `href`, a `<span>` without."
|
|
11257
|
+
},
|
|
11258
|
+
{
|
|
11259
|
+
"name": "part(description)",
|
|
11260
|
+
"description": "The region of the `description` slot."
|
|
11261
|
+
},
|
|
11262
|
+
{
|
|
11263
|
+
"name": "part(end)",
|
|
11264
|
+
"description": "The region of the `end` slot."
|
|
11265
|
+
},
|
|
11266
|
+
{
|
|
11267
|
+
"name": "part(action)",
|
|
11268
|
+
"description": "The region of the `action` slot."
|
|
11269
|
+
},
|
|
11270
|
+
{
|
|
11271
|
+
"name": "part(base)",
|
|
11272
|
+
"description": "The list (`role=\"list\"`) and its surface."
|
|
11273
|
+
},
|
|
11274
|
+
{
|
|
11275
|
+
"name": "part(base)",
|
|
11276
|
+
"description": "The group, with the line over it."
|
|
11277
|
+
},
|
|
11278
|
+
{
|
|
11279
|
+
"name": "part(label)",
|
|
11280
|
+
"description": "The heading of the group."
|
|
11281
|
+
},
|
|
11282
|
+
{
|
|
11283
|
+
"name": "part(base)",
|
|
11284
|
+
"description": "The entry: a `<button>`, or an `<a>` with `href`."
|
|
11285
|
+
},
|
|
11286
|
+
{
|
|
11287
|
+
"name": "part(mark)",
|
|
11288
|
+
"description": "The place of the mark of an entry with a `type`: a check, or a dot. It is there while the entry is not checked as well."
|
|
11289
|
+
},
|
|
11290
|
+
{
|
|
11291
|
+
"name": "part(icon)",
|
|
11292
|
+
"description": "The place of the icon."
|
|
11293
|
+
},
|
|
11294
|
+
{
|
|
11295
|
+
"name": "part(label)",
|
|
11296
|
+
"description": "The text of the entry."
|
|
11297
|
+
},
|
|
11298
|
+
{
|
|
11299
|
+
"name": "part(trigger)",
|
|
11300
|
+
"description": "Forwarded onto the `trigger` slot."
|
|
11301
|
+
},
|
|
11302
|
+
{
|
|
11303
|
+
"name": "part(panel)",
|
|
11304
|
+
"description": "The floating panel, which is the menu (`role=\"menu\"`): background, border, radius, elevation, width."
|
|
11305
|
+
},
|
|
11306
|
+
{
|
|
11307
|
+
"name": "part(base)",
|
|
11308
|
+
"description": "The entry of the list (`role=\"listitem\"`)."
|
|
11309
|
+
},
|
|
11310
|
+
{
|
|
11311
|
+
"name": "part(link)",
|
|
11312
|
+
"description": "The link: the whole destination is its target."
|
|
11313
|
+
},
|
|
11314
|
+
{
|
|
11315
|
+
"name": "part(icon)",
|
|
11316
|
+
"description": "The icon, with the shape behind it that marks the current destination."
|
|
11317
|
+
},
|
|
11318
|
+
{
|
|
11319
|
+
"name": "part(badge)",
|
|
11320
|
+
"description": "The place of the badge, at the corner of the icon."
|
|
11321
|
+
},
|
|
11322
|
+
{
|
|
11323
|
+
"name": "part(label)",
|
|
11324
|
+
"description": "The text of the destination."
|
|
11325
|
+
},
|
|
11326
|
+
{
|
|
11327
|
+
"name": "part(base)",
|
|
11328
|
+
"description": "The navigation landmark (`<nav>`): the surface and its line to the content."
|
|
11329
|
+
},
|
|
11330
|
+
{
|
|
11331
|
+
"name": "part(groups)",
|
|
11332
|
+
"description": "The two groups at the top, which scroll where a rail or a list has more destinations than height."
|
|
11333
|
+
},
|
|
11334
|
+
{
|
|
11335
|
+
"name": "part(list)",
|
|
11336
|
+
"description": "The list of the destinations."
|
|
11337
|
+
},
|
|
11338
|
+
{
|
|
11339
|
+
"name": "part(secondary)",
|
|
11340
|
+
"description": "The second group: its heading and its list."
|
|
11341
|
+
},
|
|
11342
|
+
{
|
|
11343
|
+
"name": "part(secondary-label)",
|
|
11344
|
+
"description": "The heading of the second group, which a list shows."
|
|
11345
|
+
},
|
|
11346
|
+
{
|
|
11347
|
+
"name": "part(secondary-list)",
|
|
11348
|
+
"description": "The list of the destinations of the second group."
|
|
11349
|
+
},
|
|
11350
|
+
{
|
|
11351
|
+
"name": "part(end)",
|
|
11352
|
+
"description": "The list of the destinations at the lower end of a rail or a list."
|
|
11353
|
+
},
|
|
11354
|
+
{
|
|
11355
|
+
"name": "part(tooltip)",
|
|
11356
|
+
"description": "The tooltip of a destination that shows an icon alone: an `el-tooltip`."
|
|
11357
|
+
},
|
|
8799
11358
|
{
|
|
8800
11359
|
"name": "part(base)",
|
|
8801
11360
|
"description": "The animated outer wrapper."
|
|
@@ -8826,7 +11385,7 @@
|
|
|
8826
11385
|
},
|
|
8827
11386
|
{
|
|
8828
11387
|
"name": "part(button)",
|
|
8829
|
-
"description": "Every button: the pages, the page before and the page after."
|
|
11388
|
+
"description": "Every button: the pages, the page before and the page after. With `href` they are links, and keep their parts."
|
|
8830
11389
|
},
|
|
8831
11390
|
{
|
|
8832
11391
|
"name": "part(page)",
|
|
@@ -8932,6 +11491,30 @@
|
|
|
8932
11491
|
"name": "part(base)",
|
|
8933
11492
|
"description": "The ring. It carries `role=\"progressbar\"` and the label."
|
|
8934
11493
|
},
|
|
11494
|
+
{
|
|
11495
|
+
"name": "part(base)",
|
|
11496
|
+
"description": "The separator: what takes the pointer and the focus. It is wider than the line."
|
|
11497
|
+
},
|
|
11498
|
+
{
|
|
11499
|
+
"name": "part(line)",
|
|
11500
|
+
"description": "The line that shows, and the mark it becomes under the pointer and with the focus."
|
|
11501
|
+
},
|
|
11502
|
+
{
|
|
11503
|
+
"name": "part(base)",
|
|
11504
|
+
"description": "The bar: its surface and the line to the content."
|
|
11505
|
+
},
|
|
11506
|
+
{
|
|
11507
|
+
"name": "part(row)",
|
|
11508
|
+
"description": "The row of the entries, which keeps its height."
|
|
11509
|
+
},
|
|
11510
|
+
{
|
|
11511
|
+
"name": "part(start)",
|
|
11512
|
+
"description": "The entries at the start."
|
|
11513
|
+
},
|
|
11514
|
+
{
|
|
11515
|
+
"name": "part(end)",
|
|
11516
|
+
"description": "The entries at the end."
|
|
11517
|
+
},
|
|
8935
11518
|
{
|
|
8936
11519
|
"name": "part(base)",
|
|
8937
11520
|
"description": "The surface of the tag: background, border, radius."
|
|
@@ -8948,6 +11531,18 @@
|
|
|
8948
11531
|
"name": "part(base)",
|
|
8949
11532
|
"description": "The stack of the toasts. It is the landmark with the name in `label`."
|
|
8950
11533
|
},
|
|
11534
|
+
{
|
|
11535
|
+
"name": "part(base)",
|
|
11536
|
+
"description": "The toolbar (`role=\"toolbar\"`): the row of the controls."
|
|
11537
|
+
},
|
|
11538
|
+
{
|
|
11539
|
+
"name": "part(end)",
|
|
11540
|
+
"description": "The group at the end."
|
|
11541
|
+
},
|
|
11542
|
+
{
|
|
11543
|
+
"name": "part(tooltip)",
|
|
11544
|
+
"description": "The tooltip of a button with an icon alone: an `el-tooltip`."
|
|
11545
|
+
},
|
|
8951
11546
|
{
|
|
8952
11547
|
"name": "part(body)",
|
|
8953
11548
|
"description": "The surface of the tooltip: background, text colour, padding, radius."
|
|
@@ -8955,6 +11550,38 @@
|
|
|
8955
11550
|
{
|
|
8956
11551
|
"name": "part(arrow)",
|
|
8957
11552
|
"description": "The arrow that points to the anchor, present only while `arrow` is `true`."
|
|
11553
|
+
},
|
|
11554
|
+
{
|
|
11555
|
+
"name": "part(base)",
|
|
11556
|
+
"description": "The entry: an item of the list it is in."
|
|
11557
|
+
},
|
|
11558
|
+
{
|
|
11559
|
+
"name": "part(row)",
|
|
11560
|
+
"description": "The row of the entry: its button, its start, its name and its end."
|
|
11561
|
+
},
|
|
11562
|
+
{
|
|
11563
|
+
"name": "part(toggle)",
|
|
11564
|
+
"description": "The button that opens and closes the entries below, present only with such entries."
|
|
11565
|
+
},
|
|
11566
|
+
{
|
|
11567
|
+
"name": "part(start)",
|
|
11568
|
+
"description": "The region of the `start` slot."
|
|
11569
|
+
},
|
|
11570
|
+
{
|
|
11571
|
+
"name": "part(label)",
|
|
11572
|
+
"description": "The name: an `<a>` with `href`; without, a `<button>` that opens and closes the entry when it has entries below it, and a `<span>` when it has none."
|
|
11573
|
+
},
|
|
11574
|
+
{
|
|
11575
|
+
"name": "part(end)",
|
|
11576
|
+
"description": "The region of the `end` slot."
|
|
11577
|
+
},
|
|
11578
|
+
{
|
|
11579
|
+
"name": "part(children)",
|
|
11580
|
+
"description": "The list of the entries below (`role=\"list\"`)."
|
|
11581
|
+
},
|
|
11582
|
+
{
|
|
11583
|
+
"name": "part(base)",
|
|
11584
|
+
"description": "The list of the first level (`role=\"list\"`)."
|
|
8958
11585
|
}
|
|
8959
11586
|
]
|
|
8960
11587
|
}
|