@webtides/element-library 0.3.1 → 0.4.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 +193 -0
- package/README.md +72 -56
- package/all.js +16 -0
- package/catalog.js +17 -1
- package/custom-elements.json +14723 -10220
- 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 +45 -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 +1073 -0
- package/src/components/app-frame/app-frame.readme.md +416 -0
- package/src/components/app-frame/app-frame.style.js +527 -0
- package/src/components/button/button.changelog.md +15 -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 +161 -7
- package/src/components/description-list/description-list.changelog.md +25 -0
- package/src/components/description-list/description-list.define.js +3 -0
- package/src/components/description-list/description-list.js +44 -0
- package/src/components/description-list/description-list.readme.md +135 -0
- package/src/components/description-list/description-list.style.js +140 -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/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/list/list.changelog.md +24 -0
- package/src/components/list/list.define.js +3 -0
- package/src/components/list/list.js +66 -0
- package/src/components/list/list.readme.md +122 -0
- package/src/components/list/list.style.js +56 -0
- package/src/components/list-item/list-item.changelog.md +24 -0
- package/src/components/list-item/list-item.define.js +3 -0
- package/src/components/list-item/list-item.js +128 -0
- package/src/components/list-item/list-item.readme.md +126 -0
- package/src/components/list-item/list-item.style.js +234 -0
- package/src/components/menu/menu.changelog.md +27 -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 +570 -0
- package/src/components/menu/menu.readme.md +272 -0
- package/src/components/menu/menu.style.js +55 -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 +24 -0
- package/src/components/menu-item/menu-item.define.js +3 -0
- package/src/components/menu-item/menu-item.js +130 -0
- package/src/components/menu-item/menu-item.readme.md +94 -0
- package/src/components/menu-item/menu-item.style.js +87 -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/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/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/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 +1 -1
- package/src/styles/modal.style.js +14 -1
- package/src/styles/size.style.js +41 -0
- package/src/utils/focus.js +69 -0
- package/src/utils/scroll.js +24 -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 +491 -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/description-list/description-list.d.ts +29 -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/list/list.d.ts +39 -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 +62 -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 +266 -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 +59 -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/pagination/pagination.d.ts +31 -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/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/modal.style.d.ts +5 -0
- package/types/src/styles/size.style.d.ts +24 -0
- package/types/src/utils/focus.d.ts +25 -0
- package/types/src/utils/scroll.d.ts +11 -0
- package/web-types.json +2530 -393
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.4.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,366 @@
|
|
|
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.\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-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": "wide-from",
|
|
437
|
+
"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'`.",
|
|
438
|
+
"value": {
|
|
439
|
+
"type": "'30rem'|'40rem'|'48rem'|'64rem'|'80rem'"
|
|
440
|
+
},
|
|
441
|
+
"source": {
|
|
442
|
+
"module": "./src/components/app-frame/app-frame.js",
|
|
443
|
+
"symbol": "default"
|
|
444
|
+
}
|
|
445
|
+
},
|
|
446
|
+
{
|
|
447
|
+
"name": "narrow-only",
|
|
448
|
+
"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 `''`.",
|
|
449
|
+
"value": {
|
|
450
|
+
"type": "string"
|
|
451
|
+
},
|
|
452
|
+
"source": {
|
|
453
|
+
"module": "./src/components/app-frame/app-frame.js",
|
|
454
|
+
"symbol": "default"
|
|
455
|
+
}
|
|
456
|
+
},
|
|
457
|
+
{
|
|
458
|
+
"name": "wide-only",
|
|
459
|
+
"description": "The regions that are there only where the frame is wide, named the same way. 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": "narrow-navigation",
|
|
470
|
+
"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'`.",
|
|
471
|
+
"value": {
|
|
472
|
+
"type": "'drawer'|'bar'"
|
|
473
|
+
},
|
|
474
|
+
"source": {
|
|
475
|
+
"module": "./src/components/app-frame/app-frame.js",
|
|
476
|
+
"symbol": "default"
|
|
477
|
+
}
|
|
478
|
+
},
|
|
479
|
+
{
|
|
480
|
+
"name": "navigation-open",
|
|
481
|
+
"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.",
|
|
482
|
+
"value": {
|
|
483
|
+
"type": "boolean"
|
|
484
|
+
},
|
|
485
|
+
"source": {
|
|
486
|
+
"module": "./src/components/app-frame/app-frame.js",
|
|
487
|
+
"symbol": "default"
|
|
488
|
+
}
|
|
489
|
+
},
|
|
490
|
+
{
|
|
491
|
+
"name": "navigation-label",
|
|
492
|
+
"description": "The title of the drawer of the navigation, and its name for assistive technology. Default `'Navigation'`.",
|
|
493
|
+
"value": {
|
|
494
|
+
"type": "string"
|
|
495
|
+
},
|
|
496
|
+
"source": {
|
|
497
|
+
"module": "./src/components/app-frame/app-frame.js",
|
|
498
|
+
"symbol": "default"
|
|
499
|
+
}
|
|
500
|
+
},
|
|
501
|
+
{
|
|
502
|
+
"name": "close-label",
|
|
503
|
+
"description": "The name of the close button of that drawer. Default `'Close'`.",
|
|
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": "resizable",
|
|
514
|
+
"description": "The columns whose width the user sets by dragging their edge, as their names with a space between them: `navigation`, `aside`. Default `''`.",
|
|
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": "navigation-size",
|
|
525
|
+
"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`.",
|
|
526
|
+
"value": {
|
|
527
|
+
"type": "number"
|
|
528
|
+
},
|
|
529
|
+
"source": {
|
|
530
|
+
"module": "./src/components/app-frame/app-frame.js",
|
|
531
|
+
"symbol": "default"
|
|
532
|
+
}
|
|
533
|
+
},
|
|
534
|
+
{
|
|
535
|
+
"name": "aside-size",
|
|
536
|
+
"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`.",
|
|
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-label",
|
|
547
|
+
"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'`.",
|
|
548
|
+
"value": {
|
|
549
|
+
"type": "string"
|
|
550
|
+
},
|
|
551
|
+
"source": {
|
|
552
|
+
"module": "./src/components/app-frame/app-frame.js",
|
|
553
|
+
"symbol": "default"
|
|
554
|
+
}
|
|
555
|
+
},
|
|
556
|
+
{
|
|
557
|
+
"name": "status-bar-tap",
|
|
558
|
+
"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`.",
|
|
559
|
+
"value": {
|
|
560
|
+
"type": "boolean"
|
|
561
|
+
},
|
|
562
|
+
"source": {
|
|
563
|
+
"module": "./src/components/app-frame/app-frame.js",
|
|
564
|
+
"symbol": "default"
|
|
565
|
+
}
|
|
566
|
+
}
|
|
567
|
+
],
|
|
568
|
+
"slots": [
|
|
569
|
+
{
|
|
570
|
+
"name": "",
|
|
571
|
+
"description": "The content of the view: the `main` of the page, with an id for the skip link."
|
|
572
|
+
},
|
|
573
|
+
{
|
|
574
|
+
"name": "header",
|
|
575
|
+
"description": "The region at the top, an app bar as a rule. Left out while it is empty."
|
|
576
|
+
},
|
|
577
|
+
{
|
|
578
|
+
"name": "navigation",
|
|
579
|
+
"description": "The region at the start side, and the content of the drawer where the frame is narrow. Left out while it is empty."
|
|
580
|
+
},
|
|
581
|
+
{
|
|
582
|
+
"name": "aside",
|
|
583
|
+
"description": "The region at the end side. Left out while it is empty."
|
|
584
|
+
},
|
|
585
|
+
{
|
|
586
|
+
"name": "footer",
|
|
587
|
+
"description": "The region at the lower edge. Left out while it is empty."
|
|
588
|
+
}
|
|
589
|
+
],
|
|
590
|
+
"events": [
|
|
591
|
+
{
|
|
592
|
+
"name": "app-frame-navigation-toggle",
|
|
593
|
+
"type": "CustomEvent<{ open: boolean }>",
|
|
594
|
+
"description": "Fired when the drawer of the navigation opens or closes, with the new state in `detail.open`."
|
|
595
|
+
},
|
|
596
|
+
{
|
|
597
|
+
"name": "app-frame-resize",
|
|
598
|
+
"type": "CustomEvent<{ region: 'navigation'|'aside', size: number }>",
|
|
599
|
+
"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`."
|
|
600
|
+
},
|
|
601
|
+
{
|
|
602
|
+
"name": "app-frame-resize-end",
|
|
603
|
+
"type": "CustomEvent<{ region: 'navigation'|'aside', size: number }>",
|
|
604
|
+
"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`."
|
|
605
|
+
},
|
|
606
|
+
{
|
|
607
|
+
"name": "app-frame-status-bar-tap",
|
|
608
|
+
"type": "CustomEvent",
|
|
609
|
+
"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."
|
|
610
|
+
}
|
|
611
|
+
],
|
|
612
|
+
"js": {
|
|
613
|
+
"properties": [
|
|
614
|
+
{
|
|
615
|
+
"name": "wide",
|
|
616
|
+
"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."
|
|
617
|
+
},
|
|
618
|
+
{
|
|
619
|
+
"name": "scroller",
|
|
620
|
+
"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."
|
|
621
|
+
},
|
|
622
|
+
{
|
|
623
|
+
"name": "skipLabel",
|
|
624
|
+
"description": "The text of the link that skips to the content. Default `'Skip to content'`.",
|
|
625
|
+
"type": "string"
|
|
626
|
+
},
|
|
627
|
+
{
|
|
628
|
+
"name": "wideFrom",
|
|
629
|
+
"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'`.",
|
|
630
|
+
"type": "'30rem'|'40rem'|'48rem'|'64rem'|'80rem'"
|
|
631
|
+
},
|
|
632
|
+
{
|
|
633
|
+
"name": "narrowOnly",
|
|
634
|
+
"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 `''`.",
|
|
635
|
+
"type": "string"
|
|
636
|
+
},
|
|
637
|
+
{
|
|
638
|
+
"name": "wideOnly",
|
|
639
|
+
"description": "The regions that are there only where the frame is wide, named the same way. Default `''`.",
|
|
640
|
+
"type": "string"
|
|
641
|
+
},
|
|
642
|
+
{
|
|
643
|
+
"name": "narrowNavigation",
|
|
644
|
+
"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'`.",
|
|
645
|
+
"type": "'drawer'|'bar'"
|
|
646
|
+
},
|
|
647
|
+
{
|
|
648
|
+
"name": "navigationOpen",
|
|
649
|
+
"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.",
|
|
650
|
+
"type": "boolean"
|
|
651
|
+
},
|
|
652
|
+
{
|
|
653
|
+
"name": "navigationLabel",
|
|
654
|
+
"description": "The title of the drawer of the navigation, and its name for assistive technology. Default `'Navigation'`.",
|
|
655
|
+
"type": "string"
|
|
656
|
+
},
|
|
657
|
+
{
|
|
658
|
+
"name": "closeLabel",
|
|
659
|
+
"description": "The name of the close button of that drawer. Default `'Close'`.",
|
|
660
|
+
"type": "string"
|
|
661
|
+
},
|
|
662
|
+
{
|
|
663
|
+
"name": "resizable",
|
|
664
|
+
"description": "The columns whose width the user sets by dragging their edge, as their names with a space between them: `navigation`, `aside`. Default `''`.",
|
|
665
|
+
"type": "string"
|
|
666
|
+
},
|
|
667
|
+
{
|
|
668
|
+
"name": "navigationSize",
|
|
669
|
+
"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`.",
|
|
670
|
+
"type": "number"
|
|
671
|
+
},
|
|
672
|
+
{
|
|
673
|
+
"name": "asideSize",
|
|
674
|
+
"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`.",
|
|
675
|
+
"type": "number"
|
|
676
|
+
},
|
|
677
|
+
{
|
|
678
|
+
"name": "asideLabel",
|
|
679
|
+
"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'`.",
|
|
680
|
+
"type": "string"
|
|
681
|
+
},
|
|
682
|
+
{
|
|
683
|
+
"name": "statusBarTap",
|
|
684
|
+
"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`.",
|
|
685
|
+
"type": "boolean"
|
|
686
|
+
}
|
|
687
|
+
],
|
|
688
|
+
"events": [
|
|
689
|
+
{
|
|
690
|
+
"name": "app-frame-navigation-toggle",
|
|
691
|
+
"type": "CustomEvent<{ open: boolean }>",
|
|
692
|
+
"description": "Fired when the drawer of the navigation opens or closes, with the new state in `detail.open`."
|
|
693
|
+
},
|
|
694
|
+
{
|
|
695
|
+
"name": "app-frame-resize",
|
|
696
|
+
"type": "CustomEvent<{ region: 'navigation'|'aside', size: number }>",
|
|
697
|
+
"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`."
|
|
698
|
+
},
|
|
699
|
+
{
|
|
700
|
+
"name": "app-frame-resize-end",
|
|
701
|
+
"type": "CustomEvent<{ region: 'navigation'|'aside', size: number }>",
|
|
702
|
+
"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`."
|
|
703
|
+
},
|
|
704
|
+
{
|
|
705
|
+
"name": "app-frame-status-bar-tap",
|
|
706
|
+
"type": "CustomEvent",
|
|
707
|
+
"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."
|
|
708
|
+
}
|
|
709
|
+
]
|
|
710
|
+
},
|
|
711
|
+
"source": {
|
|
712
|
+
"module": "./src/components/app-frame/app-frame.js",
|
|
713
|
+
"symbol": "default"
|
|
714
|
+
}
|
|
715
|
+
},
|
|
356
716
|
{
|
|
357
717
|
"name": "el-avatar",
|
|
358
718
|
"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 +1070,7 @@
|
|
|
710
1070
|
},
|
|
711
1071
|
{
|
|
712
1072
|
"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`.",
|
|
1073
|
+
"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
1074
|
"doc-url": "",
|
|
715
1075
|
"attributes": [
|
|
716
1076
|
{
|
|
@@ -725,10 +1085,10 @@
|
|
|
725
1085
|
}
|
|
726
1086
|
},
|
|
727
1087
|
{
|
|
728
|
-
"name": "
|
|
729
|
-
"description": "
|
|
1088
|
+
"name": "size",
|
|
1089
|
+
"description": "Button size. Default `'medium'`. Reflected to the `size` attribute.",
|
|
730
1090
|
"value": {
|
|
731
|
-
"type": "'
|
|
1091
|
+
"type": "'small'|'medium'|'large'"
|
|
732
1092
|
},
|
|
733
1093
|
"source": {
|
|
734
1094
|
"module": "./src/components/button/button.js",
|
|
@@ -747,10 +1107,10 @@
|
|
|
747
1107
|
}
|
|
748
1108
|
},
|
|
749
1109
|
{
|
|
750
|
-
"name": "
|
|
751
|
-
"description": "
|
|
1110
|
+
"name": "variant",
|
|
1111
|
+
"description": "Semantic variant, which picks the colours. Default `'neutral'`. Reflected to the `variant` attribute.",
|
|
752
1112
|
"value": {
|
|
753
|
-
"type": "'
|
|
1113
|
+
"type": "'neutral'|'brand'|'success'|'warning'|'danger'"
|
|
754
1114
|
},
|
|
755
1115
|
"source": {
|
|
756
1116
|
"module": "./src/components/button/button.js",
|
|
@@ -802,7 +1162,29 @@
|
|
|
802
1162
|
}
|
|
803
1163
|
},
|
|
804
1164
|
{
|
|
805
|
-
"name": "
|
|
1165
|
+
"name": "toggle",
|
|
1166
|
+
"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`.",
|
|
1167
|
+
"value": {
|
|
1168
|
+
"type": "boolean"
|
|
1169
|
+
},
|
|
1170
|
+
"source": {
|
|
1171
|
+
"module": "./src/components/button/button.js",
|
|
1172
|
+
"symbol": "default"
|
|
1173
|
+
}
|
|
1174
|
+
},
|
|
1175
|
+
{
|
|
1176
|
+
"name": "pressed",
|
|
1177
|
+
"description": "Whether a toggle button is pressed. Reflected to the `pressed` attribute of a toggle button. Without `toggle` it does nothing. Default `false`.",
|
|
1178
|
+
"value": {
|
|
1179
|
+
"type": "boolean"
|
|
1180
|
+
},
|
|
1181
|
+
"source": {
|
|
1182
|
+
"module": "./src/components/button/button.js",
|
|
1183
|
+
"symbol": "default"
|
|
1184
|
+
}
|
|
1185
|
+
},
|
|
1186
|
+
{
|
|
1187
|
+
"name": "type",
|
|
806
1188
|
"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'`.",
|
|
807
1189
|
"value": {
|
|
808
1190
|
"type": "'button'|'submit'|'reset'"
|
|
@@ -893,13 +1275,23 @@
|
|
|
893
1275
|
"description": "A presentational suffix icon or similar element."
|
|
894
1276
|
}
|
|
895
1277
|
],
|
|
896
|
-
"events": [
|
|
1278
|
+
"events": [
|
|
1279
|
+
{
|
|
1280
|
+
"name": "button-toggle",
|
|
1281
|
+
"type": "CustomEvent<{ pressed: boolean }>",
|
|
1282
|
+
"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."
|
|
1283
|
+
}
|
|
1284
|
+
],
|
|
897
1285
|
"js": {
|
|
898
1286
|
"properties": [
|
|
899
1287
|
{
|
|
900
1288
|
"name": "isLink",
|
|
901
1289
|
"description": "Whether the button renders as a link rather than a native button."
|
|
902
1290
|
},
|
|
1291
|
+
{
|
|
1292
|
+
"name": "isToggle",
|
|
1293
|
+
"description": "Whether the button is a toggle button: one that stays pressed. A link leads somewhere, it\nhas no state to stay in."
|
|
1294
|
+
},
|
|
903
1295
|
{
|
|
904
1296
|
"name": "variant",
|
|
905
1297
|
"description": "Semantic variant, which picks the colours. Default `'neutral'`. Reflected to the `variant` attribute.",
|
|
@@ -940,6 +1332,16 @@
|
|
|
940
1332
|
"description": "Disables the button. Reflected to the `disabled` attribute, which is there while the button is disabled and gone while it is not.",
|
|
941
1333
|
"type": "boolean"
|
|
942
1334
|
},
|
|
1335
|
+
{
|
|
1336
|
+
"name": "toggle",
|
|
1337
|
+
"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`.",
|
|
1338
|
+
"type": "boolean"
|
|
1339
|
+
},
|
|
1340
|
+
{
|
|
1341
|
+
"name": "pressed",
|
|
1342
|
+
"description": "Whether a toggle button is pressed. Reflected to the `pressed` attribute of a toggle button. Without `toggle` it does nothing. Default `false`.",
|
|
1343
|
+
"type": "boolean"
|
|
1344
|
+
},
|
|
943
1345
|
{
|
|
944
1346
|
"name": "type",
|
|
945
1347
|
"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 +1378,13 @@
|
|
|
976
1378
|
"type": "string"
|
|
977
1379
|
}
|
|
978
1380
|
],
|
|
979
|
-
"events": [
|
|
1381
|
+
"events": [
|
|
1382
|
+
{
|
|
1383
|
+
"name": "button-toggle",
|
|
1384
|
+
"type": "CustomEvent<{ pressed: boolean }>",
|
|
1385
|
+
"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."
|
|
1386
|
+
}
|
|
1387
|
+
]
|
|
980
1388
|
},
|
|
981
1389
|
"source": {
|
|
982
1390
|
"module": "./src/components/button/button.js",
|
|
@@ -2783,6 +3191,27 @@
|
|
|
2783
3191
|
"symbol": "default"
|
|
2784
3192
|
}
|
|
2785
3193
|
},
|
|
3194
|
+
{
|
|
3195
|
+
"name": "el-description-list",
|
|
3196
|
+
"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. Unset, the column is as wide as the longest name, and 40% of the list at most. _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The `<dl>`.",
|
|
3197
|
+
"doc-url": "",
|
|
3198
|
+
"attributes": [],
|
|
3199
|
+
"slots": [
|
|
3200
|
+
{
|
|
3201
|
+
"name": "",
|
|
3202
|
+
"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."
|
|
3203
|
+
}
|
|
3204
|
+
],
|
|
3205
|
+
"events": [],
|
|
3206
|
+
"js": {
|
|
3207
|
+
"properties": [],
|
|
3208
|
+
"events": []
|
|
3209
|
+
},
|
|
3210
|
+
"source": {
|
|
3211
|
+
"module": "./src/components/description-list/description-list.js",
|
|
3212
|
+
"symbol": "default"
|
|
3213
|
+
}
|
|
3214
|
+
},
|
|
2786
3215
|
{
|
|
2787
3216
|
"name": "el-dialog",
|
|
2788
3217
|
"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.",
|
|
@@ -4159,62 +4588,73 @@
|
|
|
4159
4588
|
}
|
|
4160
4589
|
},
|
|
4161
4590
|
{
|
|
4162
|
-
"name": "el-
|
|
4163
|
-
"description": "
|
|
4591
|
+
"name": "el-list-item",
|
|
4592
|
+
"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\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
4593
|
"doc-url": "",
|
|
4165
4594
|
"attributes": [
|
|
4166
4595
|
{
|
|
4167
|
-
"name": "
|
|
4168
|
-
"description": "
|
|
4596
|
+
"name": "href",
|
|
4597
|
+
"description": "The address the row leads to. Unset, the row is no link.",
|
|
4169
4598
|
"value": {
|
|
4170
|
-
"type": "
|
|
4599
|
+
"type": "string"
|
|
4171
4600
|
},
|
|
4172
4601
|
"source": {
|
|
4173
|
-
"module": "./src/components/
|
|
4602
|
+
"module": "./src/components/list-item/list-item.js",
|
|
4174
4603
|
"symbol": "default"
|
|
4175
4604
|
}
|
|
4176
4605
|
},
|
|
4177
4606
|
{
|
|
4178
|
-
"name": "
|
|
4179
|
-
"description": "
|
|
4607
|
+
"name": "target",
|
|
4608
|
+
"description": "Where to open the address (only with `href`).",
|
|
4180
4609
|
"value": {
|
|
4181
|
-
"type": "
|
|
4610
|
+
"type": "string"
|
|
4182
4611
|
},
|
|
4183
4612
|
"source": {
|
|
4184
|
-
"module": "./src/components/
|
|
4613
|
+
"module": "./src/components/list-item/list-item.js",
|
|
4185
4614
|
"symbol": "default"
|
|
4186
4615
|
}
|
|
4187
4616
|
},
|
|
4188
4617
|
{
|
|
4189
|
-
"name": "
|
|
4190
|
-
"description": "
|
|
4618
|
+
"name": "rel",
|
|
4619
|
+
"description": "`rel` attribute for the link, written when `target` is set. Default `'noreferrer noopener'`.",
|
|
4620
|
+
"value": {
|
|
4621
|
+
"type": "string"
|
|
4622
|
+
},
|
|
4623
|
+
"source": {
|
|
4624
|
+
"module": "./src/components/list-item/list-item.js",
|
|
4625
|
+
"symbol": "default"
|
|
4626
|
+
}
|
|
4627
|
+
},
|
|
4628
|
+
{
|
|
4629
|
+
"name": "current",
|
|
4630
|
+
"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`.",
|
|
4191
4631
|
"value": {
|
|
4192
4632
|
"type": "boolean"
|
|
4193
4633
|
},
|
|
4194
4634
|
"source": {
|
|
4195
|
-
"module": "./src/components/
|
|
4635
|
+
"module": "./src/components/list-item/list-item.js",
|
|
4196
4636
|
"symbol": "default"
|
|
4197
4637
|
}
|
|
4198
4638
|
},
|
|
4199
4639
|
{
|
|
4200
|
-
"name": "
|
|
4201
|
-
"description": "
|
|
4640
|
+
"name": "mark",
|
|
4641
|
+
"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.",
|
|
4202
4642
|
"value": {
|
|
4203
4643
|
"type": "string"
|
|
4204
4644
|
},
|
|
4205
4645
|
"source": {
|
|
4206
|
-
"module": "./src/components/
|
|
4646
|
+
"module": "./src/components/list-item/list-item.js",
|
|
4207
4647
|
"symbol": "default"
|
|
4208
4648
|
}
|
|
4209
4649
|
},
|
|
4210
4650
|
{
|
|
4211
|
-
"name": "
|
|
4212
|
-
"description": "
|
|
4651
|
+
"name": "truncate",
|
|
4652
|
+
"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`.",
|
|
4213
4653
|
"value": {
|
|
4214
|
-
"type": "
|
|
4654
|
+
"type": "boolean"
|
|
4215
4655
|
},
|
|
4216
4656
|
"source": {
|
|
4217
|
-
"module": "./src/components/
|
|
4657
|
+
"module": "./src/components/list-item/list-item.js",
|
|
4218
4658
|
"symbol": "default"
|
|
4219
4659
|
}
|
|
4220
4660
|
}
|
|
@@ -4222,178 +4662,868 @@
|
|
|
4222
4662
|
"slots": [
|
|
4223
4663
|
{
|
|
4224
4664
|
"name": "",
|
|
4225
|
-
"description": "The
|
|
4665
|
+
"description": "The title of the row."
|
|
4226
4666
|
},
|
|
4227
4667
|
{
|
|
4228
|
-
"name": "
|
|
4229
|
-
"description": "
|
|
4230
|
-
}
|
|
4231
|
-
],
|
|
4232
|
-
"events": [
|
|
4233
|
-
{
|
|
4234
|
-
"name": "notification-show",
|
|
4235
|
-
"type": "CustomEvent",
|
|
4236
|
-
"description": "Fired when the notification starts to open."
|
|
4668
|
+
"name": "description",
|
|
4669
|
+
"description": "The line under the title."
|
|
4237
4670
|
},
|
|
4238
4671
|
{
|
|
4239
|
-
"name": "
|
|
4240
|
-
"
|
|
4241
|
-
"description": "Fired once the open transition has finished."
|
|
4672
|
+
"name": "start",
|
|
4673
|
+
"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."
|
|
4242
4674
|
},
|
|
4243
4675
|
{
|
|
4244
|
-
"name": "
|
|
4245
|
-
"
|
|
4246
|
-
"description": "Fired when the notification starts to close."
|
|
4676
|
+
"name": "end",
|
|
4677
|
+
"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."
|
|
4247
4678
|
},
|
|
4248
4679
|
{
|
|
4249
|
-
"name": "
|
|
4250
|
-
"
|
|
4251
|
-
"description": "Fired once the close transition has finished."
|
|
4680
|
+
"name": "action",
|
|
4681
|
+
"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."
|
|
4252
4682
|
}
|
|
4253
4683
|
],
|
|
4684
|
+
"events": [],
|
|
4254
4685
|
"js": {
|
|
4255
4686
|
"properties": [
|
|
4256
4687
|
{
|
|
4257
|
-
"name": "
|
|
4258
|
-
"description": "
|
|
4259
|
-
"type": "
|
|
4260
|
-
},
|
|
4261
|
-
{
|
|
4262
|
-
"name": "variant",
|
|
4263
|
-
"description": "Semantic variant, which picks the colours and the icon. Default `'neutral'`. Reflected to the `variant` attribute.",
|
|
4264
|
-
"type": "'neutral'|'brand'|'success'|'warning'|'danger'"
|
|
4265
|
-
},
|
|
4266
|
-
{
|
|
4267
|
-
"name": "closable",
|
|
4268
|
-
"description": "Whether to render a close button. Default `false`.",
|
|
4269
|
-
"type": "boolean"
|
|
4688
|
+
"name": "href",
|
|
4689
|
+
"description": "The address the row leads to. Unset, the row is no link.",
|
|
4690
|
+
"type": "string"
|
|
4270
4691
|
},
|
|
4271
4692
|
{
|
|
4272
|
-
"name": "
|
|
4273
|
-
"description": "
|
|
4693
|
+
"name": "target",
|
|
4694
|
+
"description": "Where to open the address (only with `href`).",
|
|
4274
4695
|
"type": "string"
|
|
4275
4696
|
},
|
|
4276
4697
|
{
|
|
4277
|
-
"name": "
|
|
4278
|
-
"description": "
|
|
4279
|
-
"type": "
|
|
4280
|
-
}
|
|
4281
|
-
],
|
|
4282
|
-
"events": [
|
|
4283
|
-
{
|
|
4284
|
-
"name": "notification-show",
|
|
4285
|
-
"type": "CustomEvent",
|
|
4286
|
-
"description": "Fired when the notification starts to open."
|
|
4698
|
+
"name": "rel",
|
|
4699
|
+
"description": "`rel` attribute for the link, written when `target` is set. Default `'noreferrer noopener'`.",
|
|
4700
|
+
"type": "string"
|
|
4287
4701
|
},
|
|
4288
4702
|
{
|
|
4289
|
-
"name": "
|
|
4290
|
-
"
|
|
4291
|
-
"
|
|
4703
|
+
"name": "current",
|
|
4704
|
+
"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`.",
|
|
4705
|
+
"type": "boolean"
|
|
4292
4706
|
},
|
|
4293
4707
|
{
|
|
4294
|
-
"name": "
|
|
4295
|
-
"
|
|
4296
|
-
"
|
|
4708
|
+
"name": "mark",
|
|
4709
|
+
"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.",
|
|
4710
|
+
"type": "string"
|
|
4297
4711
|
},
|
|
4298
4712
|
{
|
|
4299
|
-
"name": "
|
|
4300
|
-
"
|
|
4301
|
-
"
|
|
4713
|
+
"name": "truncate",
|
|
4714
|
+
"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`.",
|
|
4715
|
+
"type": "boolean"
|
|
4302
4716
|
}
|
|
4303
|
-
]
|
|
4717
|
+
],
|
|
4718
|
+
"events": []
|
|
4304
4719
|
},
|
|
4305
4720
|
"source": {
|
|
4306
|
-
"module": "./src/components/
|
|
4721
|
+
"module": "./src/components/list-item/list-item.js",
|
|
4307
4722
|
"symbol": "default"
|
|
4308
4723
|
}
|
|
4309
4724
|
},
|
|
4310
4725
|
{
|
|
4311
|
-
"name": "el-
|
|
4312
|
-
"description": "A
|
|
4726
|
+
"name": "el-list",
|
|
4727
|
+
"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\n### **CSS Parts:**\n - **base** - The list (`role=\"list\"`) and its surface.",
|
|
4313
4728
|
"doc-url": "",
|
|
4314
4729
|
"attributes": [
|
|
4315
4730
|
{
|
|
4316
|
-
"name": "
|
|
4317
|
-
"description": "The
|
|
4731
|
+
"name": "label",
|
|
4732
|
+
"description": "The name of the list for assistive technology. Unset, the list has none.",
|
|
4318
4733
|
"value": {
|
|
4319
|
-
"type": "
|
|
4734
|
+
"type": "string"
|
|
4320
4735
|
},
|
|
4321
4736
|
"source": {
|
|
4322
|
-
"module": "./src/components/
|
|
4737
|
+
"module": "./src/components/list/list.js",
|
|
4323
4738
|
"symbol": "default"
|
|
4324
4739
|
}
|
|
4325
4740
|
},
|
|
4326
4741
|
{
|
|
4327
|
-
"name": "
|
|
4328
|
-
"description": "
|
|
4742
|
+
"name": "density",
|
|
4743
|
+
"description": "How much room a row has above and below its texts. Default `'default'`. Reflected to the `density` attribute.",
|
|
4329
4744
|
"value": {
|
|
4330
|
-
"type": "
|
|
4745
|
+
"type": "'default'|'compact'"
|
|
4331
4746
|
},
|
|
4332
4747
|
"source": {
|
|
4333
|
-
"module": "./src/components/
|
|
4748
|
+
"module": "./src/components/list/list.js",
|
|
4334
4749
|
"symbol": "default"
|
|
4335
4750
|
}
|
|
4336
4751
|
},
|
|
4337
4752
|
{
|
|
4338
|
-
"name": "
|
|
4339
|
-
"description": "
|
|
4753
|
+
"name": "appearance",
|
|
4754
|
+
"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.",
|
|
4340
4755
|
"value": {
|
|
4341
|
-
"type": "
|
|
4756
|
+
"type": "'plain'|'outlined'|'filled'"
|
|
4342
4757
|
},
|
|
4343
4758
|
"source": {
|
|
4344
|
-
"module": "./src/components/
|
|
4759
|
+
"module": "./src/components/list/list.js",
|
|
4345
4760
|
"symbol": "default"
|
|
4346
4761
|
}
|
|
4347
|
-
}
|
|
4762
|
+
}
|
|
4763
|
+
],
|
|
4764
|
+
"slots": [
|
|
4348
4765
|
{
|
|
4349
|
-
"name": "
|
|
4350
|
-
"description": "
|
|
4766
|
+
"name": "",
|
|
4767
|
+
"description": "The rows: `el-list-item` elements."
|
|
4768
|
+
}
|
|
4769
|
+
],
|
|
4770
|
+
"events": [],
|
|
4771
|
+
"js": {
|
|
4772
|
+
"properties": [
|
|
4773
|
+
{
|
|
4774
|
+
"name": "label",
|
|
4775
|
+
"description": "The name of the list for assistive technology. Unset, the list has none.",
|
|
4776
|
+
"type": "string"
|
|
4777
|
+
},
|
|
4778
|
+
{
|
|
4779
|
+
"name": "density",
|
|
4780
|
+
"description": "How much room a row has above and below its texts. Default `'default'`. Reflected to the `density` attribute.",
|
|
4781
|
+
"type": "'default'|'compact'"
|
|
4782
|
+
},
|
|
4783
|
+
{
|
|
4784
|
+
"name": "appearance",
|
|
4785
|
+
"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.",
|
|
4786
|
+
"type": "'plain'|'outlined'|'filled'"
|
|
4787
|
+
}
|
|
4788
|
+
],
|
|
4789
|
+
"events": []
|
|
4790
|
+
},
|
|
4791
|
+
"source": {
|
|
4792
|
+
"module": "./src/components/list/list.js",
|
|
4793
|
+
"symbol": "default"
|
|
4794
|
+
}
|
|
4795
|
+
},
|
|
4796
|
+
{
|
|
4797
|
+
"name": "el-menu-group",
|
|
4798
|
+
"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.",
|
|
4799
|
+
"doc-url": "",
|
|
4800
|
+
"attributes": [
|
|
4801
|
+
{
|
|
4802
|
+
"name": "label",
|
|
4803
|
+
"description": "The heading of the group, and its name for assistive technology. Default `''`.",
|
|
4351
4804
|
"value": {
|
|
4352
4805
|
"type": "string"
|
|
4353
4806
|
},
|
|
4354
4807
|
"source": {
|
|
4355
|
-
"module": "./src/components/
|
|
4808
|
+
"module": "./src/components/menu-group/menu-group.js",
|
|
4356
4809
|
"symbol": "default"
|
|
4357
4810
|
}
|
|
4358
|
-
}
|
|
4811
|
+
}
|
|
4812
|
+
],
|
|
4813
|
+
"slots": [
|
|
4359
4814
|
{
|
|
4360
|
-
"name": "
|
|
4361
|
-
"description": "
|
|
4815
|
+
"name": "",
|
|
4816
|
+
"description": "The entries of the group: `el-menu-item` elements."
|
|
4817
|
+
}
|
|
4818
|
+
],
|
|
4819
|
+
"events": [],
|
|
4820
|
+
"js": {
|
|
4821
|
+
"properties": [
|
|
4822
|
+
{
|
|
4823
|
+
"name": "label",
|
|
4824
|
+
"description": "The heading of the group, and its name for assistive technology. Default `''`.",
|
|
4825
|
+
"type": "string"
|
|
4826
|
+
}
|
|
4827
|
+
],
|
|
4828
|
+
"events": []
|
|
4829
|
+
},
|
|
4830
|
+
"source": {
|
|
4831
|
+
"module": "./src/components/menu-group/menu-group.js",
|
|
4832
|
+
"symbol": "default"
|
|
4833
|
+
}
|
|
4834
|
+
},
|
|
4835
|
+
{
|
|
4836
|
+
"name": "el-menu-item",
|
|
4837
|
+
"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\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- **icon** - The place of the icon.\n- **label** - The text of the entry.",
|
|
4838
|
+
"doc-url": "",
|
|
4839
|
+
"attributes": [
|
|
4840
|
+
{
|
|
4841
|
+
"name": "href",
|
|
4842
|
+
"description": "The address the entry leads to. With one it is a link.",
|
|
4362
4843
|
"value": {
|
|
4363
|
-
"type": "
|
|
4844
|
+
"type": "string"
|
|
4364
4845
|
},
|
|
4365
4846
|
"source": {
|
|
4366
|
-
"module": "./src/components/
|
|
4847
|
+
"module": "./src/components/menu-item/menu-item.js",
|
|
4367
4848
|
"symbol": "default"
|
|
4368
4849
|
}
|
|
4369
4850
|
},
|
|
4370
4851
|
{
|
|
4371
|
-
"name": "
|
|
4372
|
-
"description": "
|
|
4852
|
+
"name": "target",
|
|
4853
|
+
"description": "Where to open the address.",
|
|
4373
4854
|
"value": {
|
|
4374
4855
|
"type": "string"
|
|
4375
4856
|
},
|
|
4376
4857
|
"source": {
|
|
4377
|
-
"module": "./src/components/
|
|
4858
|
+
"module": "./src/components/menu-item/menu-item.js",
|
|
4378
4859
|
"symbol": "default"
|
|
4379
4860
|
}
|
|
4380
4861
|
},
|
|
4381
4862
|
{
|
|
4382
|
-
"name": "
|
|
4383
|
-
"description": "
|
|
4863
|
+
"name": "rel",
|
|
4864
|
+
"description": "`rel` attribute for the link, written when `target` is set. Default `'noreferrer noopener'`.",
|
|
4384
4865
|
"value": {
|
|
4385
|
-
"type": "string
|
|
4866
|
+
"type": "string"
|
|
4386
4867
|
},
|
|
4387
4868
|
"source": {
|
|
4388
|
-
"module": "./src/components/
|
|
4869
|
+
"module": "./src/components/menu-item/menu-item.js",
|
|
4389
4870
|
"symbol": "default"
|
|
4390
4871
|
}
|
|
4391
4872
|
},
|
|
4392
4873
|
{
|
|
4393
|
-
"name": "
|
|
4394
|
-
"description": "
|
|
4874
|
+
"name": "value",
|
|
4875
|
+
"description": "What the entry stands for, for the listener of `menu-select`: `'delete'`. Default `''`.",
|
|
4395
4876
|
"value": {
|
|
4396
|
-
"type": "string
|
|
4877
|
+
"type": "string"
|
|
4878
|
+
},
|
|
4879
|
+
"source": {
|
|
4880
|
+
"module": "./src/components/menu-item/menu-item.js",
|
|
4881
|
+
"symbol": "default"
|
|
4882
|
+
}
|
|
4883
|
+
},
|
|
4884
|
+
{
|
|
4885
|
+
"name": "disabled",
|
|
4886
|
+
"description": "Whether the entry cannot be chosen. The keyboard still gets to it. Default `false`.",
|
|
4887
|
+
"value": {
|
|
4888
|
+
"type": "boolean"
|
|
4889
|
+
},
|
|
4890
|
+
"source": {
|
|
4891
|
+
"module": "./src/components/menu-item/menu-item.js",
|
|
4892
|
+
"symbol": "default"
|
|
4893
|
+
}
|
|
4894
|
+
},
|
|
4895
|
+
{
|
|
4896
|
+
"name": "variant",
|
|
4897
|
+
"description": "The variant of the entry: `danger` for something that cannot be undone. Default `'neutral'`. Reflected to the `variant` attribute.",
|
|
4898
|
+
"value": {
|
|
4899
|
+
"type": "'neutral'|'brand'|'success'|'warning'|'danger'"
|
|
4900
|
+
},
|
|
4901
|
+
"source": {
|
|
4902
|
+
"module": "./src/components/menu-item/menu-item.js",
|
|
4903
|
+
"symbol": "default"
|
|
4904
|
+
}
|
|
4905
|
+
}
|
|
4906
|
+
],
|
|
4907
|
+
"slots": [
|
|
4908
|
+
{
|
|
4909
|
+
"name": "",
|
|
4910
|
+
"description": "The text of the entry."
|
|
4911
|
+
},
|
|
4912
|
+
{
|
|
4913
|
+
"name": "icon",
|
|
4914
|
+
"description": "An icon in front of the text: a decoration, the text is the name."
|
|
4915
|
+
}
|
|
4916
|
+
],
|
|
4917
|
+
"events": [],
|
|
4918
|
+
"js": {
|
|
4919
|
+
"properties": [
|
|
4920
|
+
{
|
|
4921
|
+
"name": "href",
|
|
4922
|
+
"description": "The address the entry leads to. With one it is a link.",
|
|
4923
|
+
"type": "string"
|
|
4924
|
+
},
|
|
4925
|
+
{
|
|
4926
|
+
"name": "target",
|
|
4927
|
+
"description": "Where to open the address.",
|
|
4928
|
+
"type": "string"
|
|
4929
|
+
},
|
|
4930
|
+
{
|
|
4931
|
+
"name": "rel",
|
|
4932
|
+
"description": "`rel` attribute for the link, written when `target` is set. Default `'noreferrer noopener'`.",
|
|
4933
|
+
"type": "string"
|
|
4934
|
+
},
|
|
4935
|
+
{
|
|
4936
|
+
"name": "value",
|
|
4937
|
+
"description": "What the entry stands for, for the listener of `menu-select`: `'delete'`. Default `''`.",
|
|
4938
|
+
"type": "string"
|
|
4939
|
+
},
|
|
4940
|
+
{
|
|
4941
|
+
"name": "disabled",
|
|
4942
|
+
"description": "Whether the entry cannot be chosen. The keyboard still gets to it. Default `false`.",
|
|
4943
|
+
"type": "boolean"
|
|
4944
|
+
},
|
|
4945
|
+
{
|
|
4946
|
+
"name": "variant",
|
|
4947
|
+
"description": "The variant of the entry: `danger` for something that cannot be undone. Default `'neutral'`. Reflected to the `variant` attribute.",
|
|
4948
|
+
"type": "'neutral'|'brand'|'success'|'warning'|'danger'"
|
|
4949
|
+
}
|
|
4950
|
+
],
|
|
4951
|
+
"events": []
|
|
4952
|
+
},
|
|
4953
|
+
"source": {
|
|
4954
|
+
"module": "./src/components/menu-item/menu-item.js",
|
|
4955
|
+
"symbol": "default"
|
|
4956
|
+
}
|
|
4957
|
+
},
|
|
4958
|
+
{
|
|
4959
|
+
"name": "el-menu",
|
|
4960
|
+
"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- **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.",
|
|
4961
|
+
"doc-url": "",
|
|
4962
|
+
"attributes": [
|
|
4963
|
+
{
|
|
4964
|
+
"name": "open",
|
|
4965
|
+
"description": "Whether the menu is shown. Reflected to the `open` attribute.",
|
|
4966
|
+
"value": {
|
|
4967
|
+
"type": "boolean"
|
|
4968
|
+
},
|
|
4969
|
+
"source": {
|
|
4970
|
+
"module": "./src/components/menu/menu.js",
|
|
4971
|
+
"symbol": "default"
|
|
4972
|
+
}
|
|
4973
|
+
},
|
|
4974
|
+
{
|
|
4975
|
+
"name": "label",
|
|
4976
|
+
"description": "The name of the menu for assistive technology. Without one the menu has the name of its button.",
|
|
4977
|
+
"value": {
|
|
4978
|
+
"type": "string"
|
|
4979
|
+
},
|
|
4980
|
+
"source": {
|
|
4981
|
+
"module": "./src/components/menu/menu.js",
|
|
4982
|
+
"symbol": "default"
|
|
4983
|
+
}
|
|
4984
|
+
},
|
|
4985
|
+
{
|
|
4986
|
+
"name": "placement",
|
|
4987
|
+
"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'`.",
|
|
4988
|
+
"value": {
|
|
4989
|
+
"type": "'top'|'top-start'|'top-end'|'bottom'|'bottom-start'|'bottom-end'|'left'|'left-start'|'left-end'|'right'|'right-start'|'right-end'"
|
|
4990
|
+
},
|
|
4991
|
+
"source": {
|
|
4992
|
+
"module": "./src/components/menu/menu.js",
|
|
4993
|
+
"symbol": "default"
|
|
4994
|
+
}
|
|
4995
|
+
},
|
|
4996
|
+
{
|
|
4997
|
+
"name": "distance",
|
|
4998
|
+
"description": "The gap between the button and the menu, in pixels. Default `4`.",
|
|
4999
|
+
"value": {
|
|
5000
|
+
"type": "number"
|
|
5001
|
+
},
|
|
5002
|
+
"source": {
|
|
5003
|
+
"module": "./src/components/menu/menu.js",
|
|
5004
|
+
"symbol": "default"
|
|
5005
|
+
}
|
|
5006
|
+
}
|
|
5007
|
+
],
|
|
5008
|
+
"slots": [
|
|
5009
|
+
{
|
|
5010
|
+
"name": "",
|
|
5011
|
+
"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."
|
|
5012
|
+
},
|
|
5013
|
+
{
|
|
5014
|
+
"name": "trigger",
|
|
5015
|
+
"description": "The button that opens the menu. It gets `aria-haspopup=\"menu\"` and `aria-expanded`."
|
|
5016
|
+
}
|
|
5017
|
+
],
|
|
5018
|
+
"events": [
|
|
5019
|
+
{
|
|
5020
|
+
"name": "menu-show",
|
|
5021
|
+
"type": "CustomEvent",
|
|
5022
|
+
"description": "Fired when the menu has opened."
|
|
5023
|
+
},
|
|
5024
|
+
{
|
|
5025
|
+
"name": "menu-hide",
|
|
5026
|
+
"type": "CustomEvent",
|
|
5027
|
+
"description": "Fired when the menu has closed."
|
|
5028
|
+
},
|
|
5029
|
+
{
|
|
5030
|
+
"name": "menu-select",
|
|
5031
|
+
"type": "CustomEvent<{ item: HTMLElement, value: string, opener: Element | undefined }>",
|
|
5032
|
+
"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."
|
|
5033
|
+
}
|
|
5034
|
+
],
|
|
5035
|
+
"js": {
|
|
5036
|
+
"properties": [
|
|
5037
|
+
{
|
|
5038
|
+
"name": "opener",
|
|
5039
|
+
"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."
|
|
5040
|
+
},
|
|
5041
|
+
{
|
|
5042
|
+
"name": "open",
|
|
5043
|
+
"description": "Whether the menu is shown. Reflected to the `open` attribute.",
|
|
5044
|
+
"type": "boolean"
|
|
5045
|
+
},
|
|
5046
|
+
{
|
|
5047
|
+
"name": "label",
|
|
5048
|
+
"description": "The name of the menu for assistive technology. Without one the menu has the name of its button.",
|
|
5049
|
+
"type": "string"
|
|
5050
|
+
},
|
|
5051
|
+
{
|
|
5052
|
+
"name": "placement",
|
|
5053
|
+
"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'`.",
|
|
5054
|
+
"type": "'top'|'top-start'|'top-end'|'bottom'|'bottom-start'|'bottom-end'|'left'|'left-start'|'left-end'|'right'|'right-start'|'right-end'"
|
|
5055
|
+
},
|
|
5056
|
+
{
|
|
5057
|
+
"name": "distance",
|
|
5058
|
+
"description": "The gap between the button and the menu, in pixels. Default `4`.",
|
|
5059
|
+
"type": "number"
|
|
5060
|
+
}
|
|
5061
|
+
],
|
|
5062
|
+
"events": [
|
|
5063
|
+
{
|
|
5064
|
+
"name": "menu-show",
|
|
5065
|
+
"type": "CustomEvent",
|
|
5066
|
+
"description": "Fired when the menu has opened."
|
|
5067
|
+
},
|
|
5068
|
+
{
|
|
5069
|
+
"name": "menu-hide",
|
|
5070
|
+
"type": "CustomEvent",
|
|
5071
|
+
"description": "Fired when the menu has closed."
|
|
5072
|
+
},
|
|
5073
|
+
{
|
|
5074
|
+
"name": "menu-select",
|
|
5075
|
+
"type": "CustomEvent<{ item: HTMLElement, value: string, opener: Element | undefined }>",
|
|
5076
|
+
"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."
|
|
5077
|
+
}
|
|
5078
|
+
]
|
|
5079
|
+
},
|
|
5080
|
+
"source": {
|
|
5081
|
+
"module": "./src/components/menu/menu.js",
|
|
5082
|
+
"symbol": "default"
|
|
5083
|
+
}
|
|
5084
|
+
},
|
|
5085
|
+
{
|
|
5086
|
+
"name": "el-nav-item",
|
|
5087
|
+
"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.",
|
|
5088
|
+
"doc-url": "",
|
|
5089
|
+
"attributes": [
|
|
5090
|
+
{
|
|
5091
|
+
"name": "href",
|
|
5092
|
+
"description": "The address the destination leads to.",
|
|
5093
|
+
"value": {
|
|
5094
|
+
"type": "string"
|
|
5095
|
+
},
|
|
5096
|
+
"source": {
|
|
5097
|
+
"module": "./src/components/nav-item/nav-item.js",
|
|
5098
|
+
"symbol": "default"
|
|
5099
|
+
}
|
|
5100
|
+
},
|
|
5101
|
+
{
|
|
5102
|
+
"name": "target",
|
|
5103
|
+
"description": "Where to open the address.",
|
|
5104
|
+
"value": {
|
|
5105
|
+
"type": "string"
|
|
5106
|
+
},
|
|
5107
|
+
"source": {
|
|
5108
|
+
"module": "./src/components/nav-item/nav-item.js",
|
|
5109
|
+
"symbol": "default"
|
|
5110
|
+
}
|
|
5111
|
+
},
|
|
5112
|
+
{
|
|
5113
|
+
"name": "rel",
|
|
5114
|
+
"description": "`rel` attribute for the link, written when `target` is set. Default `'noreferrer noopener'`.",
|
|
5115
|
+
"value": {
|
|
5116
|
+
"type": "string"
|
|
5117
|
+
},
|
|
5118
|
+
"source": {
|
|
5119
|
+
"module": "./src/components/nav-item/nav-item.js",
|
|
5120
|
+
"symbol": "default"
|
|
5121
|
+
}
|
|
5122
|
+
},
|
|
5123
|
+
{
|
|
5124
|
+
"name": "current",
|
|
5125
|
+
"description": "The destination of the current view: the link gets `aria-current=\"page\"`, a heavier text and a shape behind its icon.",
|
|
5126
|
+
"value": {
|
|
5127
|
+
"type": "boolean"
|
|
5128
|
+
},
|
|
5129
|
+
"source": {
|
|
5130
|
+
"module": "./src/components/nav-item/nav-item.js",
|
|
5131
|
+
"symbol": "default"
|
|
5132
|
+
}
|
|
5133
|
+
}
|
|
5134
|
+
],
|
|
5135
|
+
"slots": [
|
|
5136
|
+
{
|
|
5137
|
+
"name": "",
|
|
5138
|
+
"description": "The short text of the destination. One line: a text that does not fit is cut."
|
|
5139
|
+
},
|
|
5140
|
+
{
|
|
5141
|
+
"name": "icon",
|
|
5142
|
+
"description": "The icon of the destination: a decoration, the text is the name."
|
|
5143
|
+
},
|
|
5144
|
+
{
|
|
5145
|
+
"name": "badge",
|
|
5146
|
+
"description": "A count or a dot at the corner of the icon, an `el-badge` as a rule."
|
|
5147
|
+
}
|
|
5148
|
+
],
|
|
5149
|
+
"events": [],
|
|
5150
|
+
"js": {
|
|
5151
|
+
"properties": [
|
|
5152
|
+
{
|
|
5153
|
+
"name": "href",
|
|
5154
|
+
"description": "The address the destination leads to.",
|
|
5155
|
+
"type": "string"
|
|
5156
|
+
},
|
|
5157
|
+
{
|
|
5158
|
+
"name": "target",
|
|
5159
|
+
"description": "Where to open the address.",
|
|
5160
|
+
"type": "string"
|
|
5161
|
+
},
|
|
5162
|
+
{
|
|
5163
|
+
"name": "rel",
|
|
5164
|
+
"description": "`rel` attribute for the link, written when `target` is set. Default `'noreferrer noopener'`.",
|
|
5165
|
+
"type": "string"
|
|
5166
|
+
},
|
|
5167
|
+
{
|
|
5168
|
+
"name": "current",
|
|
5169
|
+
"description": "The destination of the current view: the link gets `aria-current=\"page\"`, a heavier text and a shape behind its icon.",
|
|
5170
|
+
"type": "boolean"
|
|
5171
|
+
}
|
|
5172
|
+
],
|
|
5173
|
+
"events": []
|
|
5174
|
+
},
|
|
5175
|
+
"source": {
|
|
5176
|
+
"module": "./src/components/nav-item/nav-item.js",
|
|
5177
|
+
"symbol": "default"
|
|
5178
|
+
}
|
|
5179
|
+
},
|
|
5180
|
+
{
|
|
5181
|
+
"name": "el-nav",
|
|
5182
|
+
"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`.",
|
|
5183
|
+
"doc-url": "",
|
|
5184
|
+
"attributes": [
|
|
5185
|
+
{
|
|
5186
|
+
"name": "label",
|
|
5187
|
+
"description": "The name of the navigation for assistive technology, \"Main\". A page with more than one navigation needs it to tell them apart.",
|
|
5188
|
+
"value": {
|
|
5189
|
+
"type": "string"
|
|
5190
|
+
},
|
|
5191
|
+
"source": {
|
|
5192
|
+
"module": "./src/components/nav/nav.js",
|
|
5193
|
+
"symbol": "default"
|
|
5194
|
+
}
|
|
5195
|
+
},
|
|
5196
|
+
{
|
|
5197
|
+
"name": "layout",
|
|
5198
|
+
"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'`.",
|
|
5199
|
+
"value": {
|
|
5200
|
+
"type": "'auto'|'bar'|'rail'|'list'"
|
|
5201
|
+
},
|
|
5202
|
+
"source": {
|
|
5203
|
+
"module": "./src/components/nav/nav.js",
|
|
5204
|
+
"symbol": "default"
|
|
5205
|
+
}
|
|
5206
|
+
},
|
|
5207
|
+
{
|
|
5208
|
+
"name": "column",
|
|
5209
|
+
"description": "What the destinations are in the column at the side of an `el-app-frame`, with `layout=\"auto\"`. Default `'rail'`.",
|
|
5210
|
+
"value": {
|
|
5211
|
+
"type": "'rail'|'list'"
|
|
5212
|
+
},
|
|
5213
|
+
"source": {
|
|
5214
|
+
"module": "./src/components/nav/nav.js",
|
|
5215
|
+
"symbol": "default"
|
|
5216
|
+
}
|
|
5217
|
+
},
|
|
5218
|
+
{
|
|
5219
|
+
"name": "secondary-label",
|
|
5220
|
+
"description": "The heading of the second group, and its name for assistive technology: \"More\". Default `''`.",
|
|
5221
|
+
"value": {
|
|
5222
|
+
"type": "string"
|
|
5223
|
+
},
|
|
5224
|
+
"source": {
|
|
5225
|
+
"module": "./src/components/nav/nav.js",
|
|
5226
|
+
"symbol": "default"
|
|
5227
|
+
}
|
|
5228
|
+
},
|
|
5229
|
+
{
|
|
5230
|
+
"name": "labels",
|
|
5231
|
+
"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`.",
|
|
5232
|
+
"value": {
|
|
5233
|
+
"type": "boolean"
|
|
5234
|
+
},
|
|
5235
|
+
"source": {
|
|
5236
|
+
"module": "./src/components/nav/nav.js",
|
|
5237
|
+
"symbol": "default"
|
|
5238
|
+
}
|
|
5239
|
+
}
|
|
5240
|
+
],
|
|
5241
|
+
"slots": [
|
|
5242
|
+
{
|
|
5243
|
+
"name": "",
|
|
5244
|
+
"description": "The destinations: `el-nav-item` elements."
|
|
5245
|
+
},
|
|
5246
|
+
{
|
|
5247
|
+
"name": "secondary",
|
|
5248
|
+
"description": "A second group of destinations, below the first: the pages that have no room in a bar, which leaves them out."
|
|
5249
|
+
},
|
|
5250
|
+
{
|
|
5251
|
+
"name": "end",
|
|
5252
|
+
"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."
|
|
5253
|
+
}
|
|
5254
|
+
],
|
|
5255
|
+
"events": [],
|
|
5256
|
+
"js": {
|
|
5257
|
+
"properties": [
|
|
5258
|
+
{
|
|
5259
|
+
"name": "label",
|
|
5260
|
+
"description": "The name of the navigation for assistive technology, \"Main\". A page with more than one navigation needs it to tell them apart.",
|
|
5261
|
+
"type": "string"
|
|
5262
|
+
},
|
|
5263
|
+
{
|
|
5264
|
+
"name": "layout",
|
|
5265
|
+
"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'`.",
|
|
5266
|
+
"type": "'auto'|'bar'|'rail'|'list'"
|
|
5267
|
+
},
|
|
5268
|
+
{
|
|
5269
|
+
"name": "column",
|
|
5270
|
+
"description": "What the destinations are in the column at the side of an `el-app-frame`, with `layout=\"auto\"`. Default `'rail'`.",
|
|
5271
|
+
"type": "'rail'|'list'"
|
|
5272
|
+
},
|
|
5273
|
+
{
|
|
5274
|
+
"name": "secondaryLabel",
|
|
5275
|
+
"description": "The heading of the second group, and its name for assistive technology: \"More\". Default `''`.",
|
|
5276
|
+
"type": "string"
|
|
5277
|
+
},
|
|
5278
|
+
{
|
|
5279
|
+
"name": "labels",
|
|
5280
|
+
"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`.",
|
|
5281
|
+
"type": "boolean"
|
|
5282
|
+
}
|
|
5283
|
+
],
|
|
5284
|
+
"events": []
|
|
5285
|
+
},
|
|
5286
|
+
"source": {
|
|
5287
|
+
"module": "./src/components/nav/nav.js",
|
|
5288
|
+
"symbol": "default"
|
|
5289
|
+
}
|
|
5290
|
+
},
|
|
5291
|
+
{
|
|
5292
|
+
"name": "el-notification",
|
|
5293
|
+
"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.",
|
|
5294
|
+
"doc-url": "",
|
|
5295
|
+
"attributes": [
|
|
5296
|
+
{
|
|
5297
|
+
"name": "open",
|
|
5298
|
+
"description": "Whether the notification is shown. Reflected to the `open` attribute.",
|
|
5299
|
+
"value": {
|
|
5300
|
+
"type": "boolean"
|
|
5301
|
+
},
|
|
5302
|
+
"source": {
|
|
5303
|
+
"module": "./src/components/notification/notification.js",
|
|
5304
|
+
"symbol": "default"
|
|
5305
|
+
}
|
|
5306
|
+
},
|
|
5307
|
+
{
|
|
5308
|
+
"name": "variant",
|
|
5309
|
+
"description": "Semantic variant, which picks the colours and the icon. Default `'neutral'`. Reflected to the `variant` attribute.",
|
|
5310
|
+
"value": {
|
|
5311
|
+
"type": "'neutral'|'brand'|'success'|'warning'|'danger'"
|
|
5312
|
+
},
|
|
5313
|
+
"source": {
|
|
5314
|
+
"module": "./src/components/notification/notification.js",
|
|
5315
|
+
"symbol": "default"
|
|
5316
|
+
}
|
|
5317
|
+
},
|
|
5318
|
+
{
|
|
5319
|
+
"name": "closable",
|
|
5320
|
+
"description": "Whether to render a close button. Default `false`.",
|
|
5321
|
+
"value": {
|
|
5322
|
+
"type": "boolean"
|
|
5323
|
+
},
|
|
5324
|
+
"source": {
|
|
5325
|
+
"module": "./src/components/notification/notification.js",
|
|
5326
|
+
"symbol": "default"
|
|
5327
|
+
}
|
|
5328
|
+
},
|
|
5329
|
+
{
|
|
5330
|
+
"name": "close-label",
|
|
5331
|
+
"description": "Accessible label for the close button. Default `'Close'`.",
|
|
5332
|
+
"value": {
|
|
5333
|
+
"type": "string"
|
|
5334
|
+
},
|
|
5335
|
+
"source": {
|
|
5336
|
+
"module": "./src/components/notification/notification.js",
|
|
5337
|
+
"symbol": "default"
|
|
5338
|
+
}
|
|
5339
|
+
},
|
|
5340
|
+
{
|
|
5341
|
+
"name": "duration",
|
|
5342
|
+
"description": "Auto-dismiss delay in milliseconds; `Infinity` (default) never auto-dismisses. The countdown pauses while the pointer or focus is inside the notification.",
|
|
5343
|
+
"value": {
|
|
5344
|
+
"type": "number"
|
|
5345
|
+
},
|
|
5346
|
+
"source": {
|
|
5347
|
+
"module": "./src/components/notification/notification.js",
|
|
5348
|
+
"symbol": "default"
|
|
5349
|
+
}
|
|
5350
|
+
}
|
|
5351
|
+
],
|
|
5352
|
+
"slots": [
|
|
5353
|
+
{
|
|
5354
|
+
"name": "",
|
|
5355
|
+
"description": "The notification's message."
|
|
5356
|
+
},
|
|
5357
|
+
{
|
|
5358
|
+
"name": "icon",
|
|
5359
|
+
"description": "A leading icon. Falls back to a variant-appropriate default icon."
|
|
5360
|
+
}
|
|
5361
|
+
],
|
|
5362
|
+
"events": [
|
|
5363
|
+
{
|
|
5364
|
+
"name": "notification-show",
|
|
5365
|
+
"type": "CustomEvent",
|
|
5366
|
+
"description": "Fired when the notification starts to open."
|
|
5367
|
+
},
|
|
5368
|
+
{
|
|
5369
|
+
"name": "notification-after-show",
|
|
5370
|
+
"type": "CustomEvent",
|
|
5371
|
+
"description": "Fired once the open transition has finished."
|
|
5372
|
+
},
|
|
5373
|
+
{
|
|
5374
|
+
"name": "notification-hide",
|
|
5375
|
+
"type": "CustomEvent",
|
|
5376
|
+
"description": "Fired when the notification starts to close."
|
|
5377
|
+
},
|
|
5378
|
+
{
|
|
5379
|
+
"name": "notification-after-hide",
|
|
5380
|
+
"type": "CustomEvent",
|
|
5381
|
+
"description": "Fired once the close transition has finished."
|
|
5382
|
+
}
|
|
5383
|
+
],
|
|
5384
|
+
"js": {
|
|
5385
|
+
"properties": [
|
|
5386
|
+
{
|
|
5387
|
+
"name": "open",
|
|
5388
|
+
"description": "Whether the notification is shown. Reflected to the `open` attribute.",
|
|
5389
|
+
"type": "boolean"
|
|
5390
|
+
},
|
|
5391
|
+
{
|
|
5392
|
+
"name": "variant",
|
|
5393
|
+
"description": "Semantic variant, which picks the colours and the icon. Default `'neutral'`. Reflected to the `variant` attribute.",
|
|
5394
|
+
"type": "'neutral'|'brand'|'success'|'warning'|'danger'"
|
|
5395
|
+
},
|
|
5396
|
+
{
|
|
5397
|
+
"name": "closable",
|
|
5398
|
+
"description": "Whether to render a close button. Default `false`.",
|
|
5399
|
+
"type": "boolean"
|
|
5400
|
+
},
|
|
5401
|
+
{
|
|
5402
|
+
"name": "closeLabel",
|
|
5403
|
+
"description": "Accessible label for the close button. Default `'Close'`.",
|
|
5404
|
+
"type": "string"
|
|
5405
|
+
},
|
|
5406
|
+
{
|
|
5407
|
+
"name": "duration",
|
|
5408
|
+
"description": "Auto-dismiss delay in milliseconds; `Infinity` (default) never auto-dismisses. The countdown pauses while the pointer or focus is inside the notification.",
|
|
5409
|
+
"type": "number"
|
|
5410
|
+
}
|
|
5411
|
+
],
|
|
5412
|
+
"events": [
|
|
5413
|
+
{
|
|
5414
|
+
"name": "notification-show",
|
|
5415
|
+
"type": "CustomEvent",
|
|
5416
|
+
"description": "Fired when the notification starts to open."
|
|
5417
|
+
},
|
|
5418
|
+
{
|
|
5419
|
+
"name": "notification-after-show",
|
|
5420
|
+
"type": "CustomEvent",
|
|
5421
|
+
"description": "Fired once the open transition has finished."
|
|
5422
|
+
},
|
|
5423
|
+
{
|
|
5424
|
+
"name": "notification-hide",
|
|
5425
|
+
"type": "CustomEvent",
|
|
5426
|
+
"description": "Fired when the notification starts to close."
|
|
5427
|
+
},
|
|
5428
|
+
{
|
|
5429
|
+
"name": "notification-after-hide",
|
|
5430
|
+
"type": "CustomEvent",
|
|
5431
|
+
"description": "Fired once the close transition has finished."
|
|
5432
|
+
}
|
|
5433
|
+
]
|
|
5434
|
+
},
|
|
5435
|
+
"source": {
|
|
5436
|
+
"module": "./src/components/notification/notification.js",
|
|
5437
|
+
"symbol": "default"
|
|
5438
|
+
}
|
|
5439
|
+
},
|
|
5440
|
+
{
|
|
5441
|
+
"name": "el-otp-field",
|
|
5442
|
+
"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.",
|
|
5443
|
+
"doc-url": "",
|
|
5444
|
+
"attributes": [
|
|
5445
|
+
{
|
|
5446
|
+
"name": "length",
|
|
5447
|
+
"description": "The number of characters of the code. Default `6`.",
|
|
5448
|
+
"value": {
|
|
5449
|
+
"type": "number"
|
|
5450
|
+
},
|
|
5451
|
+
"source": {
|
|
5452
|
+
"module": "./src/components/otp-field/otp-field.js",
|
|
5453
|
+
"symbol": "default"
|
|
5454
|
+
}
|
|
5455
|
+
},
|
|
5456
|
+
{
|
|
5457
|
+
"name": "autocomplete",
|
|
5458
|
+
"description": "Passed on to the control as `autocomplete`. Default `'one-time-code'`: a phone offers the code of an SMS it has just got.",
|
|
5459
|
+
"value": {
|
|
5460
|
+
"type": "string | null"
|
|
5461
|
+
},
|
|
5462
|
+
"source": {
|
|
5463
|
+
"module": "./src/components/otp-field/otp-field.js",
|
|
5464
|
+
"symbol": "default"
|
|
5465
|
+
}
|
|
5466
|
+
},
|
|
5467
|
+
{
|
|
5468
|
+
"name": "inputmode",
|
|
5469
|
+
"description": "Passed on as `inputmode`. Default `'numeric'`: a phone shows the digits. Set `'text'` for a code with letters.",
|
|
5470
|
+
"value": {
|
|
5471
|
+
"type": "string | null"
|
|
5472
|
+
},
|
|
5473
|
+
"source": {
|
|
5474
|
+
"module": "./src/components/otp-field/otp-field.js",
|
|
5475
|
+
"symbol": "default"
|
|
5476
|
+
}
|
|
5477
|
+
},
|
|
5478
|
+
{
|
|
5479
|
+
"name": "type",
|
|
5480
|
+
"description": "Native `type` attribute of the underlying `<input>` (e.g. `'text'`, `'email'`, `'password'`, `'tel'`, `'url'`).",
|
|
5481
|
+
"value": {
|
|
5482
|
+
"type": "string"
|
|
5483
|
+
},
|
|
5484
|
+
"source": {
|
|
5485
|
+
"module": "./src/components/otp-field/otp-field.js",
|
|
5486
|
+
"symbol": "default"
|
|
5487
|
+
}
|
|
5488
|
+
},
|
|
5489
|
+
{
|
|
5490
|
+
"name": "size",
|
|
5491
|
+
"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.",
|
|
5492
|
+
"value": {
|
|
5493
|
+
"type": "'small'|'medium'|'large'"
|
|
5494
|
+
},
|
|
5495
|
+
"source": {
|
|
5496
|
+
"module": "./src/components/otp-field/otp-field.js",
|
|
5497
|
+
"symbol": "default"
|
|
5498
|
+
}
|
|
5499
|
+
},
|
|
5500
|
+
{
|
|
5501
|
+
"name": "placeholder",
|
|
5502
|
+
"description": "Placeholder text shown while the input is empty.",
|
|
5503
|
+
"value": {
|
|
5504
|
+
"type": "string"
|
|
5505
|
+
},
|
|
5506
|
+
"source": {
|
|
5507
|
+
"module": "./src/components/otp-field/otp-field.js",
|
|
5508
|
+
"symbol": "default"
|
|
5509
|
+
}
|
|
5510
|
+
},
|
|
5511
|
+
{
|
|
5512
|
+
"name": "pattern",
|
|
5513
|
+
"description": "Regular expression for the code. `false` (the default) is a pattern of `length` digits. Set one of your own for a code with letters.",
|
|
5514
|
+
"value": {
|
|
5515
|
+
"type": "string | false"
|
|
5516
|
+
},
|
|
5517
|
+
"source": {
|
|
5518
|
+
"module": "./src/components/otp-field/otp-field.js",
|
|
5519
|
+
"symbol": "default"
|
|
5520
|
+
}
|
|
5521
|
+
},
|
|
5522
|
+
{
|
|
5523
|
+
"name": "enterkeyhint",
|
|
5524
|
+
"description": "Passed on as `enterkeyhint`: the label of the enter key on an on-screen keyboard (e.g. `'next'`, `'send'`).",
|
|
5525
|
+
"value": {
|
|
5526
|
+
"type": "string | null"
|
|
4397
5527
|
},
|
|
4398
5528
|
"source": {
|
|
4399
5529
|
"module": "./src/components/otp-field/otp-field.js",
|
|
@@ -4684,7 +5814,7 @@
|
|
|
4684
5814
|
},
|
|
4685
5815
|
{
|
|
4686
5816
|
"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.",
|
|
5817
|
+
"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
5818
|
"doc-url": "",
|
|
4689
5819
|
"attributes": [
|
|
4690
5820
|
{
|
|
@@ -4698,6 +5828,17 @@
|
|
|
4698
5828
|
"symbol": "default"
|
|
4699
5829
|
}
|
|
4700
5830
|
},
|
|
5831
|
+
{
|
|
5832
|
+
"name": "href",
|
|
5833
|
+
"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.",
|
|
5834
|
+
"value": {
|
|
5835
|
+
"type": "string"
|
|
5836
|
+
},
|
|
5837
|
+
"source": {
|
|
5838
|
+
"module": "./src/components/pagination/pagination.js",
|
|
5839
|
+
"symbol": "default"
|
|
5840
|
+
}
|
|
5841
|
+
},
|
|
4701
5842
|
{
|
|
4702
5843
|
"name": "total",
|
|
4703
5844
|
"description": "The number of entries in the whole list. Default `0`.",
|
|
@@ -4812,7 +5953,7 @@
|
|
|
4812
5953
|
{
|
|
4813
5954
|
"name": "pagination-change",
|
|
4814
5955
|
"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."
|
|
5956
|
+
"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
5957
|
}
|
|
4817
5958
|
],
|
|
4818
5959
|
"js": {
|
|
@@ -4826,6 +5967,11 @@
|
|
|
4826
5967
|
"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
5968
|
"type": "number"
|
|
4828
5969
|
},
|
|
5970
|
+
{
|
|
5971
|
+
"name": "href",
|
|
5972
|
+
"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.",
|
|
5973
|
+
"type": "string"
|
|
5974
|
+
},
|
|
4829
5975
|
{
|
|
4830
5976
|
"name": "total",
|
|
4831
5977
|
"description": "The number of entries in the whole list. Default `0`.",
|
|
@@ -4876,7 +6022,7 @@
|
|
|
4876
6022
|
{
|
|
4877
6023
|
"name": "pagination-change",
|
|
4878
6024
|
"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."
|
|
6025
|
+
"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
6026
|
}
|
|
4881
6027
|
]
|
|
4882
6028
|
},
|
|
@@ -5575,7 +6721,245 @@
|
|
|
5575
6721
|
"type": "Array<string | { value: string, label?: string, disabled?: boolean }>"
|
|
5576
6722
|
},
|
|
5577
6723
|
"source": {
|
|
5578
|
-
"module": "./src/components/radio-field/radio-field.js",
|
|
6724
|
+
"module": "./src/components/radio-field/radio-field.js",
|
|
6725
|
+
"symbol": "default"
|
|
6726
|
+
}
|
|
6727
|
+
},
|
|
6728
|
+
{
|
|
6729
|
+
"name": "name",
|
|
6730
|
+
"description": "Form name for the underlying input.",
|
|
6731
|
+
"value": {
|
|
6732
|
+
"type": "string"
|
|
6733
|
+
},
|
|
6734
|
+
"source": {
|
|
6735
|
+
"module": "./src/components/radio-field/radio-field.js",
|
|
6736
|
+
"symbol": "default"
|
|
6737
|
+
}
|
|
6738
|
+
},
|
|
6739
|
+
{
|
|
6740
|
+
"name": "value",
|
|
6741
|
+
"description": "The selected option's value.",
|
|
6742
|
+
"value": {
|
|
6743
|
+
"type": "string | null"
|
|
6744
|
+
},
|
|
6745
|
+
"source": {
|
|
6746
|
+
"module": "./src/components/radio-field/radio-field.js",
|
|
6747
|
+
"symbol": "default"
|
|
6748
|
+
}
|
|
6749
|
+
},
|
|
6750
|
+
{
|
|
6751
|
+
"name": "required",
|
|
6752
|
+
"description": "Whether the field is required for form submission.",
|
|
6753
|
+
"value": {
|
|
6754
|
+
"type": "boolean"
|
|
6755
|
+
},
|
|
6756
|
+
"source": {
|
|
6757
|
+
"module": "./src/components/radio-field/radio-field.js",
|
|
6758
|
+
"symbol": "default"
|
|
6759
|
+
}
|
|
6760
|
+
},
|
|
6761
|
+
{
|
|
6762
|
+
"name": "disabled",
|
|
6763
|
+
"description": "Whether the field is disabled.",
|
|
6764
|
+
"value": {
|
|
6765
|
+
"type": "boolean"
|
|
6766
|
+
},
|
|
6767
|
+
"source": {
|
|
6768
|
+
"module": "./src/components/radio-field/radio-field.js",
|
|
6769
|
+
"symbol": "default"
|
|
6770
|
+
}
|
|
6771
|
+
},
|
|
6772
|
+
{
|
|
6773
|
+
"name": "label",
|
|
6774
|
+
"description": "Label text displayed for the field.",
|
|
6775
|
+
"value": {
|
|
6776
|
+
"type": "string"
|
|
6777
|
+
},
|
|
6778
|
+
"source": {
|
|
6779
|
+
"module": "./src/components/radio-field/radio-field.js",
|
|
6780
|
+
"symbol": "default"
|
|
6781
|
+
}
|
|
6782
|
+
},
|
|
6783
|
+
{
|
|
6784
|
+
"name": "label-screen-reader-only",
|
|
6785
|
+
"description": "When `true`, the label is visually hidden but still announced to screen readers (via an `sr-only` class).",
|
|
6786
|
+
"value": {
|
|
6787
|
+
"type": "boolean"
|
|
6788
|
+
},
|
|
6789
|
+
"source": {
|
|
6790
|
+
"module": "./src/components/radio-field/radio-field.js",
|
|
6791
|
+
"symbol": "default"
|
|
6792
|
+
}
|
|
6793
|
+
},
|
|
6794
|
+
{
|
|
6795
|
+
"name": "error-message",
|
|
6796
|
+
"description": "Error message displayed when the field is invalid and has been touched.",
|
|
6797
|
+
"value": {
|
|
6798
|
+
"type": "string"
|
|
6799
|
+
},
|
|
6800
|
+
"source": {
|
|
6801
|
+
"module": "./src/components/radio-field/radio-field.js",
|
|
6802
|
+
"symbol": "default"
|
|
6803
|
+
}
|
|
6804
|
+
},
|
|
6805
|
+
{
|
|
6806
|
+
"name": "help-message",
|
|
6807
|
+
"description": "Helper text. Displayed between the label and the control; a checkbox and a switch display it below the control and its label.",
|
|
6808
|
+
"value": {
|
|
6809
|
+
"type": "string"
|
|
6810
|
+
},
|
|
6811
|
+
"source": {
|
|
6812
|
+
"module": "./src/components/radio-field/radio-field.js",
|
|
6813
|
+
"symbol": "default"
|
|
6814
|
+
}
|
|
6815
|
+
},
|
|
6816
|
+
{
|
|
6817
|
+
"name": "valid",
|
|
6818
|
+
"description": "Whether the field currently passes validation.",
|
|
6819
|
+
"value": {
|
|
6820
|
+
"type": "boolean"
|
|
6821
|
+
},
|
|
6822
|
+
"source": {
|
|
6823
|
+
"module": "./src/components/radio-field/radio-field.js",
|
|
6824
|
+
"symbol": "default"
|
|
6825
|
+
}
|
|
6826
|
+
},
|
|
6827
|
+
{
|
|
6828
|
+
"name": "touched",
|
|
6829
|
+
"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`.",
|
|
6830
|
+
"value": {
|
|
6831
|
+
"type": "boolean"
|
|
6832
|
+
},
|
|
6833
|
+
"source": {
|
|
6834
|
+
"module": "./src/components/radio-field/radio-field.js",
|
|
6835
|
+
"symbol": "default"
|
|
6836
|
+
}
|
|
6837
|
+
}
|
|
6838
|
+
],
|
|
6839
|
+
"events": [
|
|
6840
|
+
{
|
|
6841
|
+
"name": "input-change",
|
|
6842
|
+
"type": "CustomEvent<string>",
|
|
6843
|
+
"description": "Fired when the selected value changes. `detail` is the newly selected value. Bubbles."
|
|
6844
|
+
}
|
|
6845
|
+
],
|
|
6846
|
+
"js": {
|
|
6847
|
+
"properties": [
|
|
6848
|
+
{
|
|
6849
|
+
"name": "value",
|
|
6850
|
+
"description": "The selected option's value.",
|
|
6851
|
+
"type": "string | null"
|
|
6852
|
+
},
|
|
6853
|
+
{
|
|
6854
|
+
"name": "options",
|
|
6855
|
+
"description": "Options to render. Accepts plain strings (`['Yes', 'No']`) or option objects (`[{ value, label, disabled? }]`). Strings are used as both value and label.",
|
|
6856
|
+
"type": "Array<string | { value: string, label?: string, disabled?: boolean }>"
|
|
6857
|
+
},
|
|
6858
|
+
{
|
|
6859
|
+
"name": "name",
|
|
6860
|
+
"description": "Form name for the underlying input.",
|
|
6861
|
+
"type": "string"
|
|
6862
|
+
},
|
|
6863
|
+
{
|
|
6864
|
+
"name": "required",
|
|
6865
|
+
"description": "Whether the field is required for form submission.",
|
|
6866
|
+
"type": "boolean"
|
|
6867
|
+
},
|
|
6868
|
+
{
|
|
6869
|
+
"name": "disabled",
|
|
6870
|
+
"description": "Whether the field is disabled.",
|
|
6871
|
+
"type": "boolean"
|
|
6872
|
+
},
|
|
6873
|
+
{
|
|
6874
|
+
"name": "label",
|
|
6875
|
+
"description": "Label text displayed for the field.",
|
|
6876
|
+
"type": "string"
|
|
6877
|
+
},
|
|
6878
|
+
{
|
|
6879
|
+
"name": "labelScreenReaderOnly",
|
|
6880
|
+
"description": "When `true`, the label is visually hidden but still announced to screen readers (via an `sr-only` class).",
|
|
6881
|
+
"type": "boolean"
|
|
6882
|
+
},
|
|
6883
|
+
{
|
|
6884
|
+
"name": "errorMessage",
|
|
6885
|
+
"description": "Error message displayed when the field is invalid and has been touched.",
|
|
6886
|
+
"type": "string"
|
|
6887
|
+
},
|
|
6888
|
+
{
|
|
6889
|
+
"name": "helpMessage",
|
|
6890
|
+
"description": "Helper text. Displayed between the label and the control; a checkbox and a switch display it below the control and its label.",
|
|
6891
|
+
"type": "string"
|
|
6892
|
+
},
|
|
6893
|
+
{
|
|
6894
|
+
"name": "valid",
|
|
6895
|
+
"description": "Whether the field currently passes validation.",
|
|
6896
|
+
"type": "boolean"
|
|
6897
|
+
},
|
|
6898
|
+
{
|
|
6899
|
+
"name": "touched",
|
|
6900
|
+
"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`.",
|
|
6901
|
+
"type": "boolean"
|
|
6902
|
+
}
|
|
6903
|
+
],
|
|
6904
|
+
"events": [
|
|
6905
|
+
{
|
|
6906
|
+
"name": "input-change",
|
|
6907
|
+
"type": "CustomEvent<string>",
|
|
6908
|
+
"description": "Fired when the selected value changes. `detail` is the newly selected value. Bubbles."
|
|
6909
|
+
}
|
|
6910
|
+
]
|
|
6911
|
+
},
|
|
6912
|
+
"source": {
|
|
6913
|
+
"module": "./src/components/radio-field/radio-field.js",
|
|
6914
|
+
"symbol": "default"
|
|
6915
|
+
}
|
|
6916
|
+
},
|
|
6917
|
+
{
|
|
6918
|
+
"name": "el-range-field",
|
|
6919
|
+
"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.",
|
|
6920
|
+
"doc-url": "",
|
|
6921
|
+
"attributes": [
|
|
6922
|
+
{
|
|
6923
|
+
"name": "min",
|
|
6924
|
+
"description": "The lower end of the span. Default `0`.",
|
|
6925
|
+
"value": {
|
|
6926
|
+
"type": "number"
|
|
6927
|
+
},
|
|
6928
|
+
"source": {
|
|
6929
|
+
"module": "./src/components/range-field/range-field.js",
|
|
6930
|
+
"symbol": "default"
|
|
6931
|
+
}
|
|
6932
|
+
},
|
|
6933
|
+
{
|
|
6934
|
+
"name": "max",
|
|
6935
|
+
"description": "The upper end of the span. Default `100`.",
|
|
6936
|
+
"value": {
|
|
6937
|
+
"type": "number"
|
|
6938
|
+
},
|
|
6939
|
+
"source": {
|
|
6940
|
+
"module": "./src/components/range-field/range-field.js",
|
|
6941
|
+
"symbol": "default"
|
|
6942
|
+
}
|
|
6943
|
+
},
|
|
6944
|
+
{
|
|
6945
|
+
"name": "step",
|
|
6946
|
+
"description": "The distance between two values. Default `1`; `'any'` takes every value of the span.",
|
|
6947
|
+
"value": {
|
|
6948
|
+
"type": "number | 'any'"
|
|
6949
|
+
},
|
|
6950
|
+
"source": {
|
|
6951
|
+
"module": "./src/components/range-field/range-field.js",
|
|
6952
|
+
"symbol": "default"
|
|
6953
|
+
}
|
|
6954
|
+
},
|
|
6955
|
+
{
|
|
6956
|
+
"name": "show-value",
|
|
6957
|
+
"description": "Shows the value beside the control. Default `false`.",
|
|
6958
|
+
"value": {
|
|
6959
|
+
"type": "boolean"
|
|
6960
|
+
},
|
|
6961
|
+
"source": {
|
|
6962
|
+
"module": "./src/components/range-field/range-field.js",
|
|
5579
6963
|
"symbol": "default"
|
|
5580
6964
|
}
|
|
5581
6965
|
},
|
|
@@ -5586,18 +6970,18 @@
|
|
|
5586
6970
|
"type": "string"
|
|
5587
6971
|
},
|
|
5588
6972
|
"source": {
|
|
5589
|
-
"module": "./src/components/
|
|
6973
|
+
"module": "./src/components/range-field/range-field.js",
|
|
5590
6974
|
"symbol": "default"
|
|
5591
6975
|
}
|
|
5592
6976
|
},
|
|
5593
6977
|
{
|
|
5594
6978
|
"name": "value",
|
|
5595
|
-
"description": "The
|
|
6979
|
+
"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.",
|
|
5596
6980
|
"value": {
|
|
5597
6981
|
"type": "string | null"
|
|
5598
6982
|
},
|
|
5599
6983
|
"source": {
|
|
5600
|
-
"module": "./src/components/
|
|
6984
|
+
"module": "./src/components/range-field/range-field.js",
|
|
5601
6985
|
"symbol": "default"
|
|
5602
6986
|
}
|
|
5603
6987
|
},
|
|
@@ -5608,7 +6992,7 @@
|
|
|
5608
6992
|
"type": "boolean"
|
|
5609
6993
|
},
|
|
5610
6994
|
"source": {
|
|
5611
|
-
"module": "./src/components/
|
|
6995
|
+
"module": "./src/components/range-field/range-field.js",
|
|
5612
6996
|
"symbol": "default"
|
|
5613
6997
|
}
|
|
5614
6998
|
},
|
|
@@ -5619,7 +7003,7 @@
|
|
|
5619
7003
|
"type": "boolean"
|
|
5620
7004
|
},
|
|
5621
7005
|
"source": {
|
|
5622
|
-
"module": "./src/components/
|
|
7006
|
+
"module": "./src/components/range-field/range-field.js",
|
|
5623
7007
|
"symbol": "default"
|
|
5624
7008
|
}
|
|
5625
7009
|
},
|
|
@@ -5630,7 +7014,7 @@
|
|
|
5630
7014
|
"type": "string"
|
|
5631
7015
|
},
|
|
5632
7016
|
"source": {
|
|
5633
|
-
"module": "./src/components/
|
|
7017
|
+
"module": "./src/components/range-field/range-field.js",
|
|
5634
7018
|
"symbol": "default"
|
|
5635
7019
|
}
|
|
5636
7020
|
},
|
|
@@ -5641,7 +7025,7 @@
|
|
|
5641
7025
|
"type": "boolean"
|
|
5642
7026
|
},
|
|
5643
7027
|
"source": {
|
|
5644
|
-
"module": "./src/components/
|
|
7028
|
+
"module": "./src/components/range-field/range-field.js",
|
|
5645
7029
|
"symbol": "default"
|
|
5646
7030
|
}
|
|
5647
7031
|
},
|
|
@@ -5652,7 +7036,7 @@
|
|
|
5652
7036
|
"type": "string"
|
|
5653
7037
|
},
|
|
5654
7038
|
"source": {
|
|
5655
|
-
"module": "./src/components/
|
|
7039
|
+
"module": "./src/components/range-field/range-field.js",
|
|
5656
7040
|
"symbol": "default"
|
|
5657
7041
|
}
|
|
5658
7042
|
},
|
|
@@ -5663,7 +7047,7 @@
|
|
|
5663
7047
|
"type": "string"
|
|
5664
7048
|
},
|
|
5665
7049
|
"source": {
|
|
5666
|
-
"module": "./src/components/
|
|
7050
|
+
"module": "./src/components/range-field/range-field.js",
|
|
5667
7051
|
"symbol": "default"
|
|
5668
7052
|
}
|
|
5669
7053
|
},
|
|
@@ -5674,7 +7058,7 @@
|
|
|
5674
7058
|
"type": "boolean"
|
|
5675
7059
|
},
|
|
5676
7060
|
"source": {
|
|
5677
|
-
"module": "./src/components/
|
|
7061
|
+
"module": "./src/components/range-field/range-field.js",
|
|
5678
7062
|
"symbol": "default"
|
|
5679
7063
|
}
|
|
5680
7064
|
},
|
|
@@ -5685,7 +7069,7 @@
|
|
|
5685
7069
|
"type": "boolean"
|
|
5686
7070
|
},
|
|
5687
7071
|
"source": {
|
|
5688
|
-
"module": "./src/components/
|
|
7072
|
+
"module": "./src/components/range-field/range-field.js",
|
|
5689
7073
|
"symbol": "default"
|
|
5690
7074
|
}
|
|
5691
7075
|
}
|
|
@@ -5694,20 +7078,35 @@
|
|
|
5694
7078
|
{
|
|
5695
7079
|
"name": "input-change",
|
|
5696
7080
|
"type": "CustomEvent<string>",
|
|
5697
|
-
"description": "Fired when the
|
|
7081
|
+
"description": "Fired when the value changes, also while the thumb moves. `detail` is the new value. Bubbles."
|
|
5698
7082
|
}
|
|
5699
7083
|
],
|
|
5700
7084
|
"js": {
|
|
5701
7085
|
"properties": [
|
|
5702
7086
|
{
|
|
5703
7087
|
"name": "value",
|
|
5704
|
-
"description": "The
|
|
7088
|
+
"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
7089
|
"type": "string | null"
|
|
5706
7090
|
},
|
|
5707
7091
|
{
|
|
5708
|
-
"name": "
|
|
5709
|
-
"description": "
|
|
5710
|
-
"type": "
|
|
7092
|
+
"name": "min",
|
|
7093
|
+
"description": "The lower end of the span. Default `0`.",
|
|
7094
|
+
"type": "number"
|
|
7095
|
+
},
|
|
7096
|
+
{
|
|
7097
|
+
"name": "max",
|
|
7098
|
+
"description": "The upper end of the span. Default `100`.",
|
|
7099
|
+
"type": "number"
|
|
7100
|
+
},
|
|
7101
|
+
{
|
|
7102
|
+
"name": "step",
|
|
7103
|
+
"description": "The distance between two values. Default `1`; `'any'` takes every value of the span.",
|
|
7104
|
+
"type": "number | 'any'"
|
|
7105
|
+
},
|
|
7106
|
+
{
|
|
7107
|
+
"name": "showValue",
|
|
7108
|
+
"description": "Shows the value beside the control. Default `false`.",
|
|
7109
|
+
"type": "boolean"
|
|
5711
7110
|
},
|
|
5712
7111
|
{
|
|
5713
7112
|
"name": "name",
|
|
@@ -5759,61 +7158,28 @@
|
|
|
5759
7158
|
{
|
|
5760
7159
|
"name": "input-change",
|
|
5761
7160
|
"type": "CustomEvent<string>",
|
|
5762
|
-
"description": "Fired when the
|
|
7161
|
+
"description": "Fired when the value changes, also while the thumb moves. `detail` is the new value. Bubbles."
|
|
5763
7162
|
}
|
|
5764
7163
|
]
|
|
5765
7164
|
},
|
|
5766
7165
|
"source": {
|
|
5767
|
-
"module": "./src/components/
|
|
7166
|
+
"module": "./src/components/range-field/range-field.js",
|
|
5768
7167
|
"symbol": "default"
|
|
5769
7168
|
}
|
|
5770
7169
|
},
|
|
5771
7170
|
{
|
|
5772
|
-
"name": "el-
|
|
5773
|
-
"description": "A number from
|
|
7171
|
+
"name": "el-rating-field",
|
|
7172
|
+
"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
7173
|
"doc-url": "",
|
|
5775
7174
|
"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
7175
|
{
|
|
5788
7176
|
"name": "max",
|
|
5789
|
-
"description": "The
|
|
7177
|
+
"description": "The number of stars. Default `5`.",
|
|
5790
7178
|
"value": {
|
|
5791
7179
|
"type": "number"
|
|
5792
7180
|
},
|
|
5793
7181
|
"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",
|
|
7182
|
+
"module": "./src/components/rating-field/rating-field.js",
|
|
5817
7183
|
"symbol": "default"
|
|
5818
7184
|
}
|
|
5819
7185
|
},
|
|
@@ -5824,18 +7190,18 @@
|
|
|
5824
7190
|
"type": "string"
|
|
5825
7191
|
},
|
|
5826
7192
|
"source": {
|
|
5827
|
-
"module": "./src/components/
|
|
7193
|
+
"module": "./src/components/rating-field/rating-field.js",
|
|
5828
7194
|
"symbol": "default"
|
|
5829
7195
|
}
|
|
5830
7196
|
},
|
|
5831
7197
|
{
|
|
5832
7198
|
"name": "value",
|
|
5833
|
-
"description": "The
|
|
7199
|
+
"description": "The chosen step, as the text the form submits (`'3'`), or `null` while nothing is chosen.",
|
|
5834
7200
|
"value": {
|
|
5835
7201
|
"type": "string | null"
|
|
5836
7202
|
},
|
|
5837
7203
|
"source": {
|
|
5838
|
-
"module": "./src/components/
|
|
7204
|
+
"module": "./src/components/rating-field/rating-field.js",
|
|
5839
7205
|
"symbol": "default"
|
|
5840
7206
|
}
|
|
5841
7207
|
},
|
|
@@ -5846,7 +7212,7 @@
|
|
|
5846
7212
|
"type": "boolean"
|
|
5847
7213
|
},
|
|
5848
7214
|
"source": {
|
|
5849
|
-
"module": "./src/components/
|
|
7215
|
+
"module": "./src/components/rating-field/rating-field.js",
|
|
5850
7216
|
"symbol": "default"
|
|
5851
7217
|
}
|
|
5852
7218
|
},
|
|
@@ -5857,7 +7223,7 @@
|
|
|
5857
7223
|
"type": "boolean"
|
|
5858
7224
|
},
|
|
5859
7225
|
"source": {
|
|
5860
|
-
"module": "./src/components/
|
|
7226
|
+
"module": "./src/components/rating-field/rating-field.js",
|
|
5861
7227
|
"symbol": "default"
|
|
5862
7228
|
}
|
|
5863
7229
|
},
|
|
@@ -5868,7 +7234,7 @@
|
|
|
5868
7234
|
"type": "string"
|
|
5869
7235
|
},
|
|
5870
7236
|
"source": {
|
|
5871
|
-
"module": "./src/components/
|
|
7237
|
+
"module": "./src/components/rating-field/rating-field.js",
|
|
5872
7238
|
"symbol": "default"
|
|
5873
7239
|
}
|
|
5874
7240
|
},
|
|
@@ -5879,7 +7245,7 @@
|
|
|
5879
7245
|
"type": "boolean"
|
|
5880
7246
|
},
|
|
5881
7247
|
"source": {
|
|
5882
|
-
"module": "./src/components/
|
|
7248
|
+
"module": "./src/components/rating-field/rating-field.js",
|
|
5883
7249
|
"symbol": "default"
|
|
5884
7250
|
}
|
|
5885
7251
|
},
|
|
@@ -5890,7 +7256,7 @@
|
|
|
5890
7256
|
"type": "string"
|
|
5891
7257
|
},
|
|
5892
7258
|
"source": {
|
|
5893
|
-
"module": "./src/components/
|
|
7259
|
+
"module": "./src/components/rating-field/rating-field.js",
|
|
5894
7260
|
"symbol": "default"
|
|
5895
7261
|
}
|
|
5896
7262
|
},
|
|
@@ -5901,7 +7267,7 @@
|
|
|
5901
7267
|
"type": "string"
|
|
5902
7268
|
},
|
|
5903
7269
|
"source": {
|
|
5904
|
-
"module": "./src/components/
|
|
7270
|
+
"module": "./src/components/rating-field/rating-field.js",
|
|
5905
7271
|
"symbol": "default"
|
|
5906
7272
|
}
|
|
5907
7273
|
},
|
|
@@ -5912,7 +7278,7 @@
|
|
|
5912
7278
|
"type": "boolean"
|
|
5913
7279
|
},
|
|
5914
7280
|
"source": {
|
|
5915
|
-
"module": "./src/components/
|
|
7281
|
+
"module": "./src/components/rating-field/rating-field.js",
|
|
5916
7282
|
"symbol": "default"
|
|
5917
7283
|
}
|
|
5918
7284
|
},
|
|
@@ -5923,7 +7289,7 @@
|
|
|
5923
7289
|
"type": "boolean"
|
|
5924
7290
|
},
|
|
5925
7291
|
"source": {
|
|
5926
|
-
"module": "./src/components/
|
|
7292
|
+
"module": "./src/components/rating-field/rating-field.js",
|
|
5927
7293
|
"symbol": "default"
|
|
5928
7294
|
}
|
|
5929
7295
|
}
|
|
@@ -5932,36 +7298,21 @@
|
|
|
5932
7298
|
{
|
|
5933
7299
|
"name": "input-change",
|
|
5934
7300
|
"type": "CustomEvent<string>",
|
|
5935
|
-
"description": "Fired when the
|
|
7301
|
+
"description": "Fired when the rating changes. `detail` is the chosen step. Bubbles."
|
|
5936
7302
|
}
|
|
5937
7303
|
],
|
|
5938
7304
|
"js": {
|
|
5939
7305
|
"properties": [
|
|
5940
7306
|
{
|
|
5941
7307
|
"name": "value",
|
|
5942
|
-
"description": "The
|
|
7308
|
+
"description": "The chosen step, as the text the form submits (`'3'`), or `null` while nothing is chosen.",
|
|
5943
7309
|
"type": "string | null"
|
|
5944
7310
|
},
|
|
5945
|
-
{
|
|
5946
|
-
"name": "min",
|
|
5947
|
-
"description": "The lower end of the span. Default `0`.",
|
|
5948
|
-
"type": "number"
|
|
5949
|
-
},
|
|
5950
7311
|
{
|
|
5951
7312
|
"name": "max",
|
|
5952
|
-
"description": "The
|
|
7313
|
+
"description": "The number of stars. Default `5`.",
|
|
5953
7314
|
"type": "number"
|
|
5954
7315
|
},
|
|
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
7316
|
{
|
|
5966
7317
|
"name": "name",
|
|
5967
7318
|
"description": "Form name for the underlying input.",
|
|
@@ -5998,42 +7349,163 @@
|
|
|
5998
7349
|
"type": "string"
|
|
5999
7350
|
},
|
|
6000
7351
|
{
|
|
6001
|
-
"name": "valid",
|
|
6002
|
-
"description": "Whether the field currently passes validation.",
|
|
6003
|
-
"type": "boolean"
|
|
6004
|
-
},
|
|
6005
|
-
{
|
|
6006
|
-
"name": "touched",
|
|
6007
|
-
"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`.",
|
|
7352
|
+
"name": "valid",
|
|
7353
|
+
"description": "Whether the field currently passes validation.",
|
|
7354
|
+
"type": "boolean"
|
|
7355
|
+
},
|
|
7356
|
+
{
|
|
7357
|
+
"name": "touched",
|
|
7358
|
+
"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`.",
|
|
7359
|
+
"type": "boolean"
|
|
7360
|
+
}
|
|
7361
|
+
],
|
|
7362
|
+
"events": [
|
|
7363
|
+
{
|
|
7364
|
+
"name": "input-change",
|
|
7365
|
+
"type": "CustomEvent<string>",
|
|
7366
|
+
"description": "Fired when the rating changes. `detail` is the chosen step. Bubbles."
|
|
7367
|
+
}
|
|
7368
|
+
]
|
|
7369
|
+
},
|
|
7370
|
+
"source": {
|
|
7371
|
+
"module": "./src/components/rating-field/rating-field.js",
|
|
7372
|
+
"symbol": "default"
|
|
7373
|
+
}
|
|
7374
|
+
},
|
|
7375
|
+
{
|
|
7376
|
+
"name": "el-scroll-to-top",
|
|
7377
|
+
"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.",
|
|
7378
|
+
"doc-url": "",
|
|
7379
|
+
"attributes": [
|
|
7380
|
+
{
|
|
7381
|
+
"name": "duration",
|
|
7382
|
+
"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).",
|
|
7383
|
+
"value": {
|
|
7384
|
+
"type": "number"
|
|
7385
|
+
},
|
|
7386
|
+
"source": {
|
|
7387
|
+
"module": "./src/components/scroll-to-top/scroll-to-top.js",
|
|
7388
|
+
"symbol": "default"
|
|
7389
|
+
}
|
|
7390
|
+
},
|
|
7391
|
+
{
|
|
7392
|
+
"name": "prevent-default",
|
|
7393
|
+
"description": "When `true`, the captured click's default action is suppressed.",
|
|
7394
|
+
"value": {
|
|
7395
|
+
"type": "boolean"
|
|
7396
|
+
},
|
|
7397
|
+
"source": {
|
|
7398
|
+
"module": "./src/components/scroll-to-top/scroll-to-top.js",
|
|
7399
|
+
"symbol": "default"
|
|
7400
|
+
}
|
|
7401
|
+
}
|
|
7402
|
+
],
|
|
7403
|
+
"slots": [
|
|
7404
|
+
{
|
|
7405
|
+
"name": "",
|
|
7406
|
+
"description": "Default slot. Any child that emits a `click` event will trigger the scroll."
|
|
7407
|
+
}
|
|
7408
|
+
],
|
|
7409
|
+
"events": [],
|
|
7410
|
+
"js": {
|
|
7411
|
+
"properties": [
|
|
7412
|
+
{
|
|
7413
|
+
"name": "duration",
|
|
7414
|
+
"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).",
|
|
7415
|
+
"type": "number"
|
|
7416
|
+
},
|
|
7417
|
+
{
|
|
7418
|
+
"name": "preventDefault",
|
|
7419
|
+
"description": "When `true`, the captured click's default action is suppressed.",
|
|
7420
|
+
"type": "boolean"
|
|
7421
|
+
}
|
|
7422
|
+
],
|
|
7423
|
+
"events": []
|
|
7424
|
+
},
|
|
7425
|
+
"source": {
|
|
7426
|
+
"module": "./src/components/scroll-to-top/scroll-to-top.js",
|
|
7427
|
+
"symbol": "default"
|
|
7428
|
+
}
|
|
7429
|
+
},
|
|
7430
|
+
{
|
|
7431
|
+
"name": "el-scroll-to",
|
|
7432
|
+
"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.",
|
|
7433
|
+
"doc-url": "",
|
|
7434
|
+
"attributes": [
|
|
7435
|
+
{
|
|
7436
|
+
"name": "selector",
|
|
7437
|
+
"description": "CSS selector for the element to scroll into view on click.",
|
|
7438
|
+
"value": {
|
|
7439
|
+
"type": "string"
|
|
7440
|
+
},
|
|
7441
|
+
"source": {
|
|
7442
|
+
"module": "./src/components/scroll-to/scroll-to.js",
|
|
7443
|
+
"symbol": "default"
|
|
7444
|
+
}
|
|
7445
|
+
},
|
|
7446
|
+
{
|
|
7447
|
+
"name": "prevent-default",
|
|
7448
|
+
"description": "When `true`, the captured click's default action is suppressed (e.g. an `<a href>`'s navigation).",
|
|
7449
|
+
"value": {
|
|
7450
|
+
"type": "boolean"
|
|
7451
|
+
},
|
|
7452
|
+
"source": {
|
|
7453
|
+
"module": "./src/components/scroll-to/scroll-to.js",
|
|
7454
|
+
"symbol": "default"
|
|
7455
|
+
}
|
|
7456
|
+
}
|
|
7457
|
+
],
|
|
7458
|
+
"slots": [
|
|
7459
|
+
{
|
|
7460
|
+
"name": "",
|
|
7461
|
+
"description": "Default slot. Any child that emits a `click` event will trigger the scroll."
|
|
7462
|
+
}
|
|
7463
|
+
],
|
|
7464
|
+
"events": [],
|
|
7465
|
+
"js": {
|
|
7466
|
+
"properties": [
|
|
7467
|
+
{
|
|
7468
|
+
"name": "selector",
|
|
7469
|
+
"description": "CSS selector for the element to scroll into view on click.",
|
|
7470
|
+
"type": "string"
|
|
7471
|
+
},
|
|
7472
|
+
{
|
|
7473
|
+
"name": "preventDefault",
|
|
7474
|
+
"description": "When `true`, the captured click's default action is suppressed (e.g. an `<a href>`'s navigation).",
|
|
6008
7475
|
"type": "boolean"
|
|
6009
7476
|
}
|
|
6010
7477
|
],
|
|
6011
|
-
"events": [
|
|
6012
|
-
{
|
|
6013
|
-
"name": "input-change",
|
|
6014
|
-
"type": "CustomEvent<string>",
|
|
6015
|
-
"description": "Fired when the value changes, also while the thumb moves. `detail` is the new value. Bubbles."
|
|
6016
|
-
}
|
|
6017
|
-
]
|
|
7478
|
+
"events": []
|
|
6018
7479
|
},
|
|
6019
7480
|
"source": {
|
|
6020
|
-
"module": "./src/components/
|
|
7481
|
+
"module": "./src/components/scroll-to/scroll-to.js",
|
|
6021
7482
|
"symbol": "default"
|
|
6022
7483
|
}
|
|
6023
7484
|
},
|
|
6024
7485
|
{
|
|
6025
|
-
"name": "el-
|
|
6026
|
-
"description": "
|
|
7486
|
+
"name": "el-segmented-field",
|
|
7487
|
+
"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.",
|
|
6027
7488
|
"doc-url": "",
|
|
6028
7489
|
"attributes": [
|
|
6029
7490
|
{
|
|
6030
|
-
"name": "
|
|
6031
|
-
"description": "The
|
|
7491
|
+
"name": "size",
|
|
7492
|
+
"description": "The size of the options: their height, their padding and their font size. Default `'medium'`. Reflected to the `size` attribute.",
|
|
6032
7493
|
"value": {
|
|
6033
|
-
"type": "
|
|
7494
|
+
"type": "'small'|'medium'|'large'"
|
|
6034
7495
|
},
|
|
6035
7496
|
"source": {
|
|
6036
|
-
"module": "./src/components/
|
|
7497
|
+
"module": "./src/components/segmented-field/segmented-field.js",
|
|
7498
|
+
"symbol": "default"
|
|
7499
|
+
}
|
|
7500
|
+
},
|
|
7501
|
+
{
|
|
7502
|
+
"name": "options",
|
|
7503
|
+
"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.",
|
|
7504
|
+
"value": {
|
|
7505
|
+
"type": "Array<string | { value: string, label?: string, icon?: string, disabled?: boolean }>"
|
|
7506
|
+
},
|
|
7507
|
+
"source": {
|
|
7508
|
+
"module": "./src/components/segmented-field/segmented-field.js",
|
|
6037
7509
|
"symbol": "default"
|
|
6038
7510
|
}
|
|
6039
7511
|
},
|
|
@@ -6044,18 +7516,18 @@
|
|
|
6044
7516
|
"type": "string"
|
|
6045
7517
|
},
|
|
6046
7518
|
"source": {
|
|
6047
|
-
"module": "./src/components/
|
|
7519
|
+
"module": "./src/components/segmented-field/segmented-field.js",
|
|
6048
7520
|
"symbol": "default"
|
|
6049
7521
|
}
|
|
6050
7522
|
},
|
|
6051
7523
|
{
|
|
6052
7524
|
"name": "value",
|
|
6053
|
-
"description": "The
|
|
7525
|
+
"description": "The value of the chosen option.",
|
|
6054
7526
|
"value": {
|
|
6055
7527
|
"type": "string | null"
|
|
6056
7528
|
},
|
|
6057
7529
|
"source": {
|
|
6058
|
-
"module": "./src/components/
|
|
7530
|
+
"module": "./src/components/segmented-field/segmented-field.js",
|
|
6059
7531
|
"symbol": "default"
|
|
6060
7532
|
}
|
|
6061
7533
|
},
|
|
@@ -6066,7 +7538,7 @@
|
|
|
6066
7538
|
"type": "boolean"
|
|
6067
7539
|
},
|
|
6068
7540
|
"source": {
|
|
6069
|
-
"module": "./src/components/
|
|
7541
|
+
"module": "./src/components/segmented-field/segmented-field.js",
|
|
6070
7542
|
"symbol": "default"
|
|
6071
7543
|
}
|
|
6072
7544
|
},
|
|
@@ -6077,7 +7549,7 @@
|
|
|
6077
7549
|
"type": "boolean"
|
|
6078
7550
|
},
|
|
6079
7551
|
"source": {
|
|
6080
|
-
"module": "./src/components/
|
|
7552
|
+
"module": "./src/components/segmented-field/segmented-field.js",
|
|
6081
7553
|
"symbol": "default"
|
|
6082
7554
|
}
|
|
6083
7555
|
},
|
|
@@ -6088,7 +7560,7 @@
|
|
|
6088
7560
|
"type": "string"
|
|
6089
7561
|
},
|
|
6090
7562
|
"source": {
|
|
6091
|
-
"module": "./src/components/
|
|
7563
|
+
"module": "./src/components/segmented-field/segmented-field.js",
|
|
6092
7564
|
"symbol": "default"
|
|
6093
7565
|
}
|
|
6094
7566
|
},
|
|
@@ -6099,7 +7571,7 @@
|
|
|
6099
7571
|
"type": "boolean"
|
|
6100
7572
|
},
|
|
6101
7573
|
"source": {
|
|
6102
|
-
"module": "./src/components/
|
|
7574
|
+
"module": "./src/components/segmented-field/segmented-field.js",
|
|
6103
7575
|
"symbol": "default"
|
|
6104
7576
|
}
|
|
6105
7577
|
},
|
|
@@ -6110,7 +7582,7 @@
|
|
|
6110
7582
|
"type": "string"
|
|
6111
7583
|
},
|
|
6112
7584
|
"source": {
|
|
6113
|
-
"module": "./src/components/
|
|
7585
|
+
"module": "./src/components/segmented-field/segmented-field.js",
|
|
6114
7586
|
"symbol": "default"
|
|
6115
7587
|
}
|
|
6116
7588
|
},
|
|
@@ -6121,7 +7593,7 @@
|
|
|
6121
7593
|
"type": "string"
|
|
6122
7594
|
},
|
|
6123
7595
|
"source": {
|
|
6124
|
-
"module": "./src/components/
|
|
7596
|
+
"module": "./src/components/segmented-field/segmented-field.js",
|
|
6125
7597
|
"symbol": "default"
|
|
6126
7598
|
}
|
|
6127
7599
|
},
|
|
@@ -6132,7 +7604,7 @@
|
|
|
6132
7604
|
"type": "boolean"
|
|
6133
7605
|
},
|
|
6134
7606
|
"source": {
|
|
6135
|
-
"module": "./src/components/
|
|
7607
|
+
"module": "./src/components/segmented-field/segmented-field.js",
|
|
6136
7608
|
"symbol": "default"
|
|
6137
7609
|
}
|
|
6138
7610
|
},
|
|
@@ -6143,7 +7615,7 @@
|
|
|
6143
7615
|
"type": "boolean"
|
|
6144
7616
|
},
|
|
6145
7617
|
"source": {
|
|
6146
|
-
"module": "./src/components/
|
|
7618
|
+
"module": "./src/components/segmented-field/segmented-field.js",
|
|
6147
7619
|
"symbol": "default"
|
|
6148
7620
|
}
|
|
6149
7621
|
}
|
|
@@ -6152,20 +7624,25 @@
|
|
|
6152
7624
|
{
|
|
6153
7625
|
"name": "input-change",
|
|
6154
7626
|
"type": "CustomEvent<string>",
|
|
6155
|
-
"description": "Fired when the
|
|
7627
|
+
"description": "Fired when the chosen option changes. `detail` is its value. Bubbles."
|
|
6156
7628
|
}
|
|
6157
7629
|
],
|
|
6158
7630
|
"js": {
|
|
6159
7631
|
"properties": [
|
|
6160
7632
|
{
|
|
6161
7633
|
"name": "value",
|
|
6162
|
-
"description": "The
|
|
7634
|
+
"description": "The value of the chosen option.",
|
|
6163
7635
|
"type": "string | null"
|
|
6164
7636
|
},
|
|
6165
7637
|
{
|
|
6166
|
-
"name": "
|
|
6167
|
-
"description": "The
|
|
6168
|
-
"type": "
|
|
7638
|
+
"name": "options",
|
|
7639
|
+
"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.",
|
|
7640
|
+
"type": "Array<string | { value: string, label?: string, icon?: string, disabled?: boolean }>"
|
|
7641
|
+
},
|
|
7642
|
+
{
|
|
7643
|
+
"name": "size",
|
|
7644
|
+
"description": "The size of the options: their height, their padding and their font size. Default `'medium'`. Reflected to the `size` attribute.",
|
|
7645
|
+
"type": "'small'|'medium'|'large'"
|
|
6169
7646
|
},
|
|
6170
7647
|
{
|
|
6171
7648
|
"name": "name",
|
|
@@ -6217,122 +7694,12 @@
|
|
|
6217
7694
|
{
|
|
6218
7695
|
"name": "input-change",
|
|
6219
7696
|
"type": "CustomEvent<string>",
|
|
6220
|
-
"description": "Fired when the
|
|
7697
|
+
"description": "Fired when the chosen option changes. `detail` is its value. Bubbles."
|
|
6221
7698
|
}
|
|
6222
7699
|
]
|
|
6223
7700
|
},
|
|
6224
7701
|
"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",
|
|
7702
|
+
"module": "./src/components/segmented-field/segmented-field.js",
|
|
6336
7703
|
"symbol": "default"
|
|
6337
7704
|
}
|
|
6338
7705
|
},
|
|
@@ -6869,14 +8236,174 @@
|
|
|
6869
8236
|
},
|
|
6870
8237
|
{
|
|
6871
8238
|
"name": "label",
|
|
6872
|
-
"description": "The accessible name of the spinner. Default `'Loading'`.",
|
|
8239
|
+
"description": "The accessible name of the spinner. Default `'Loading'`.",
|
|
8240
|
+
"type": "string"
|
|
8241
|
+
}
|
|
8242
|
+
],
|
|
8243
|
+
"events": []
|
|
8244
|
+
},
|
|
8245
|
+
"source": {
|
|
8246
|
+
"module": "./src/components/spinner/spinner.js",
|
|
8247
|
+
"symbol": "default"
|
|
8248
|
+
}
|
|
8249
|
+
},
|
|
8250
|
+
{
|
|
8251
|
+
"name": "el-splitter",
|
|
8252
|
+
"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.",
|
|
8253
|
+
"doc-url": "",
|
|
8254
|
+
"attributes": [
|
|
8255
|
+
{
|
|
8256
|
+
"name": "value",
|
|
8257
|
+
"description": "The width of the pane the splitter sizes, in pixels. Default `0`.",
|
|
8258
|
+
"value": {
|
|
8259
|
+
"type": "number"
|
|
8260
|
+
},
|
|
8261
|
+
"source": {
|
|
8262
|
+
"module": "./src/components/splitter/splitter.js",
|
|
8263
|
+
"symbol": "default"
|
|
8264
|
+
}
|
|
8265
|
+
},
|
|
8266
|
+
{
|
|
8267
|
+
"name": "min",
|
|
8268
|
+
"description": "The least width. Default `0`.",
|
|
8269
|
+
"value": {
|
|
8270
|
+
"type": "number"
|
|
8271
|
+
},
|
|
8272
|
+
"source": {
|
|
8273
|
+
"module": "./src/components/splitter/splitter.js",
|
|
8274
|
+
"symbol": "default"
|
|
8275
|
+
}
|
|
8276
|
+
},
|
|
8277
|
+
{
|
|
8278
|
+
"name": "max",
|
|
8279
|
+
"description": "The greatest width. Default `100`.",
|
|
8280
|
+
"value": {
|
|
8281
|
+
"type": "number"
|
|
8282
|
+
},
|
|
8283
|
+
"source": {
|
|
8284
|
+
"module": "./src/components/splitter/splitter.js",
|
|
8285
|
+
"symbol": "default"
|
|
8286
|
+
}
|
|
8287
|
+
},
|
|
8288
|
+
{
|
|
8289
|
+
"name": "step",
|
|
8290
|
+
"description": "How far an arrow key moves the edge, in pixels. Default `16`.",
|
|
8291
|
+
"value": {
|
|
8292
|
+
"type": "number"
|
|
8293
|
+
},
|
|
8294
|
+
"source": {
|
|
8295
|
+
"module": "./src/components/splitter/splitter.js",
|
|
8296
|
+
"symbol": "default"
|
|
8297
|
+
}
|
|
8298
|
+
},
|
|
8299
|
+
{
|
|
8300
|
+
"name": "label",
|
|
8301
|
+
"description": "The name of what the splitter sizes, for assistive technology. Default `''`.",
|
|
8302
|
+
"value": {
|
|
8303
|
+
"type": "string"
|
|
8304
|
+
},
|
|
8305
|
+
"source": {
|
|
8306
|
+
"module": "./src/components/splitter/splitter.js",
|
|
8307
|
+
"symbol": "default"
|
|
8308
|
+
}
|
|
8309
|
+
},
|
|
8310
|
+
{
|
|
8311
|
+
"name": "placement",
|
|
8312
|
+
"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'`.",
|
|
8313
|
+
"value": {
|
|
8314
|
+
"type": "'start'|'end'"
|
|
8315
|
+
},
|
|
8316
|
+
"source": {
|
|
8317
|
+
"module": "./src/components/splitter/splitter.js",
|
|
8318
|
+
"symbol": "default"
|
|
8319
|
+
}
|
|
8320
|
+
}
|
|
8321
|
+
],
|
|
8322
|
+
"events": [
|
|
8323
|
+
{
|
|
8324
|
+
"name": "splitter-resize",
|
|
8325
|
+
"type": "CustomEvent<{ value: number }>",
|
|
8326
|
+
"description": "Fired with every change the user makes: while the edge is dragged, and with every key. The new width is in `detail.value`."
|
|
8327
|
+
},
|
|
8328
|
+
{
|
|
8329
|
+
"name": "splitter-resize-end",
|
|
8330
|
+
"type": "CustomEvent<{ value: number }>",
|
|
8331
|
+
"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`."
|
|
8332
|
+
}
|
|
8333
|
+
],
|
|
8334
|
+
"js": {
|
|
8335
|
+
"properties": [
|
|
8336
|
+
{
|
|
8337
|
+
"name": "value",
|
|
8338
|
+
"description": "The width of the pane the splitter sizes, in pixels. Default `0`.",
|
|
8339
|
+
"type": "number"
|
|
8340
|
+
},
|
|
8341
|
+
{
|
|
8342
|
+
"name": "min",
|
|
8343
|
+
"description": "The least width. Default `0`.",
|
|
8344
|
+
"type": "number"
|
|
8345
|
+
},
|
|
8346
|
+
{
|
|
8347
|
+
"name": "max",
|
|
8348
|
+
"description": "The greatest width. Default `100`.",
|
|
8349
|
+
"type": "number"
|
|
8350
|
+
},
|
|
8351
|
+
{
|
|
8352
|
+
"name": "step",
|
|
8353
|
+
"description": "How far an arrow key moves the edge, in pixels. Default `16`.",
|
|
8354
|
+
"type": "number"
|
|
8355
|
+
},
|
|
8356
|
+
{
|
|
8357
|
+
"name": "label",
|
|
8358
|
+
"description": "The name of what the splitter sizes, for assistive technology. Default `''`.",
|
|
6873
8359
|
"type": "string"
|
|
8360
|
+
},
|
|
8361
|
+
{
|
|
8362
|
+
"name": "placement",
|
|
8363
|
+
"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'`.",
|
|
8364
|
+
"type": "'start'|'end'"
|
|
6874
8365
|
}
|
|
6875
8366
|
],
|
|
8367
|
+
"events": [
|
|
8368
|
+
{
|
|
8369
|
+
"name": "splitter-resize",
|
|
8370
|
+
"type": "CustomEvent<{ value: number }>",
|
|
8371
|
+
"description": "Fired with every change the user makes: while the edge is dragged, and with every key. The new width is in `detail.value`."
|
|
8372
|
+
},
|
|
8373
|
+
{
|
|
8374
|
+
"name": "splitter-resize-end",
|
|
8375
|
+
"type": "CustomEvent<{ value: number }>",
|
|
8376
|
+
"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`."
|
|
8377
|
+
}
|
|
8378
|
+
]
|
|
8379
|
+
},
|
|
8380
|
+
"source": {
|
|
8381
|
+
"module": "./src/components/splitter/splitter.js",
|
|
8382
|
+
"symbol": "default"
|
|
8383
|
+
}
|
|
8384
|
+
},
|
|
8385
|
+
{
|
|
8386
|
+
"name": "el-status-bar",
|
|
8387
|
+
"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.",
|
|
8388
|
+
"doc-url": "",
|
|
8389
|
+
"attributes": [],
|
|
8390
|
+
"slots": [
|
|
8391
|
+
{
|
|
8392
|
+
"name": "",
|
|
8393
|
+
"description": "The entries at the start of the bar. They give way first where the bar is too narrow."
|
|
8394
|
+
},
|
|
8395
|
+
{
|
|
8396
|
+
"name": "end",
|
|
8397
|
+
"description": "The entries at the end of the bar."
|
|
8398
|
+
}
|
|
8399
|
+
],
|
|
8400
|
+
"events": [],
|
|
8401
|
+
"js": {
|
|
8402
|
+
"properties": [],
|
|
6876
8403
|
"events": []
|
|
6877
8404
|
},
|
|
6878
8405
|
"source": {
|
|
6879
|
-
"module": "./src/components/
|
|
8406
|
+
"module": "./src/components/status-bar/status-bar.js",
|
|
6880
8407
|
"symbol": "default"
|
|
6881
8408
|
}
|
|
6882
8409
|
},
|
|
@@ -7175,7 +8702,7 @@
|
|
|
7175
8702
|
},
|
|
7176
8703
|
{
|
|
7177
8704
|
"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.",
|
|
8705
|
+
"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
8706
|
"doc-url": "",
|
|
7180
8707
|
"attributes": [
|
|
7181
8708
|
{
|
|
@@ -8176,6 +9703,81 @@
|
|
|
8176
9703
|
"symbol": "default"
|
|
8177
9704
|
}
|
|
8178
9705
|
},
|
|
9706
|
+
{
|
|
9707
|
+
"name": "el-toolbar",
|
|
9708
|
+
"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`.",
|
|
9709
|
+
"doc-url": "",
|
|
9710
|
+
"attributes": [
|
|
9711
|
+
{
|
|
9712
|
+
"name": "label",
|
|
9713
|
+
"description": "The name of the toolbar for assistive technology, \"Formatting\". Unset, the toolbar has none.",
|
|
9714
|
+
"value": {
|
|
9715
|
+
"type": "string"
|
|
9716
|
+
},
|
|
9717
|
+
"source": {
|
|
9718
|
+
"module": "./src/components/toolbar/toolbar.js",
|
|
9719
|
+
"symbol": "default"
|
|
9720
|
+
}
|
|
9721
|
+
},
|
|
9722
|
+
{
|
|
9723
|
+
"name": "size",
|
|
9724
|
+
"description": "The size of the controls that have none of their own. Default `'medium'`. Reflected to the `size` attribute.",
|
|
9725
|
+
"value": {
|
|
9726
|
+
"type": "'small'|'medium'|'large'"
|
|
9727
|
+
},
|
|
9728
|
+
"source": {
|
|
9729
|
+
"module": "./src/components/toolbar/toolbar.js",
|
|
9730
|
+
"symbol": "default"
|
|
9731
|
+
}
|
|
9732
|
+
},
|
|
9733
|
+
{
|
|
9734
|
+
"name": "appearance",
|
|
9735
|
+
"description": "The appearance of the buttons that have none of their own. Default `'plain'`. Reflected to the `appearance` attribute.",
|
|
9736
|
+
"value": {
|
|
9737
|
+
"type": "'filled'|'outlined'|'plain'"
|
|
9738
|
+
},
|
|
9739
|
+
"source": {
|
|
9740
|
+
"module": "./src/components/toolbar/toolbar.js",
|
|
9741
|
+
"symbol": "default"
|
|
9742
|
+
}
|
|
9743
|
+
}
|
|
9744
|
+
],
|
|
9745
|
+
"slots": [
|
|
9746
|
+
{
|
|
9747
|
+
"name": "",
|
|
9748
|
+
"description": "The controls of the toolbar, and `el-divider` elements between two groups of them."
|
|
9749
|
+
},
|
|
9750
|
+
{
|
|
9751
|
+
"name": "end",
|
|
9752
|
+
"description": "The controls at the end of the toolbar."
|
|
9753
|
+
}
|
|
9754
|
+
],
|
|
9755
|
+
"events": [],
|
|
9756
|
+
"js": {
|
|
9757
|
+
"properties": [
|
|
9758
|
+
{
|
|
9759
|
+
"name": "label",
|
|
9760
|
+
"description": "The name of the toolbar for assistive technology, \"Formatting\". Unset, the toolbar has none.",
|
|
9761
|
+
"type": "string"
|
|
9762
|
+
},
|
|
9763
|
+
{
|
|
9764
|
+
"name": "size",
|
|
9765
|
+
"description": "The size of the controls that have none of their own. Default `'medium'`. Reflected to the `size` attribute.",
|
|
9766
|
+
"type": "'small'|'medium'|'large'"
|
|
9767
|
+
},
|
|
9768
|
+
{
|
|
9769
|
+
"name": "appearance",
|
|
9770
|
+
"description": "The appearance of the buttons that have none of their own. Default `'plain'`. Reflected to the `appearance` attribute.",
|
|
9771
|
+
"type": "'filled'|'outlined'|'plain'"
|
|
9772
|
+
}
|
|
9773
|
+
],
|
|
9774
|
+
"events": []
|
|
9775
|
+
},
|
|
9776
|
+
"source": {
|
|
9777
|
+
"module": "./src/components/toolbar/toolbar.js",
|
|
9778
|
+
"symbol": "default"
|
|
9779
|
+
}
|
|
9780
|
+
},
|
|
8179
9781
|
{
|
|
8180
9782
|
"name": "el-tooltip",
|
|
8181
9783
|
"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 +9870,17 @@
|
|
|
8268
9870
|
"module": "./src/components/tooltip/tooltip.js",
|
|
8269
9871
|
"symbol": "default"
|
|
8270
9872
|
}
|
|
9873
|
+
},
|
|
9874
|
+
{
|
|
9875
|
+
"name": "type",
|
|
9876
|
+
"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.",
|
|
9877
|
+
"value": {
|
|
9878
|
+
"type": "'description'|'label'"
|
|
9879
|
+
},
|
|
9880
|
+
"source": {
|
|
9881
|
+
"module": "./src/components/tooltip/tooltip.js",
|
|
9882
|
+
"symbol": "default"
|
|
9883
|
+
}
|
|
8271
9884
|
}
|
|
8272
9885
|
],
|
|
8273
9886
|
"slots": [
|
|
@@ -8290,11 +9903,21 @@
|
|
|
8290
9903
|
],
|
|
8291
9904
|
"js": {
|
|
8292
9905
|
"properties": [
|
|
9906
|
+
{
|
|
9907
|
+
"name": "anchor",
|
|
9908
|
+
"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`.",
|
|
9909
|
+
"type": "Element | null"
|
|
9910
|
+
},
|
|
8293
9911
|
{
|
|
8294
9912
|
"name": "for",
|
|
8295
9913
|
"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
9914
|
"type": "string"
|
|
8297
9915
|
},
|
|
9916
|
+
{
|
|
9917
|
+
"name": "type",
|
|
9918
|
+
"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.",
|
|
9919
|
+
"type": "'description'|'label'"
|
|
9920
|
+
},
|
|
8298
9921
|
{
|
|
8299
9922
|
"name": "open",
|
|
8300
9923
|
"description": "Whether the tooltip is shown. Reflected to the `open` attribute.",
|
|
@@ -8393,41 +10016,231 @@
|
|
|
8393
10016
|
"value": {
|
|
8394
10017
|
"type": "string"
|
|
8395
10018
|
},
|
|
8396
|
-
"source": {
|
|
8397
|
-
"module": "./src/components/transition-classes/transition-classes.js",
|
|
8398
|
-
"symbol": "default"
|
|
8399
|
-
}
|
|
8400
|
-
},
|
|
8401
|
-
{
|
|
8402
|
-
"name": "leave-start",
|
|
8403
|
-
"description": "Classes applied at the start of the leave transition.",
|
|
8404
|
-
"value": {
|
|
10019
|
+
"source": {
|
|
10020
|
+
"module": "./src/components/transition-classes/transition-classes.js",
|
|
10021
|
+
"symbol": "default"
|
|
10022
|
+
}
|
|
10023
|
+
},
|
|
10024
|
+
{
|
|
10025
|
+
"name": "leave-start",
|
|
10026
|
+
"description": "Classes applied at the start of the leave transition.",
|
|
10027
|
+
"value": {
|
|
10028
|
+
"type": "string"
|
|
10029
|
+
},
|
|
10030
|
+
"source": {
|
|
10031
|
+
"module": "./src/components/transition-classes/transition-classes.js",
|
|
10032
|
+
"symbol": "default"
|
|
10033
|
+
}
|
|
10034
|
+
},
|
|
10035
|
+
{
|
|
10036
|
+
"name": "leave-end",
|
|
10037
|
+
"description": "Classes applied at the end of the leave transition.",
|
|
10038
|
+
"value": {
|
|
10039
|
+
"type": "string"
|
|
10040
|
+
},
|
|
10041
|
+
"source": {
|
|
10042
|
+
"module": "./src/components/transition-classes/transition-classes.js",
|
|
10043
|
+
"symbol": "default"
|
|
10044
|
+
}
|
|
10045
|
+
},
|
|
10046
|
+
{
|
|
10047
|
+
"name": "show",
|
|
10048
|
+
"description": "When `true` the host plays the enter transition; when `false` the leave transition.",
|
|
10049
|
+
"value": {
|
|
10050
|
+
"type": "boolean"
|
|
10051
|
+
},
|
|
10052
|
+
"source": {
|
|
10053
|
+
"module": "./src/components/transition-classes/transition-classes.js",
|
|
10054
|
+
"symbol": "default"
|
|
10055
|
+
}
|
|
10056
|
+
}
|
|
10057
|
+
],
|
|
10058
|
+
"slots": [
|
|
10059
|
+
{
|
|
10060
|
+
"name": "",
|
|
10061
|
+
"description": "Default slot for the element(s) being transitioned."
|
|
10062
|
+
}
|
|
10063
|
+
],
|
|
10064
|
+
"events": [],
|
|
10065
|
+
"js": {
|
|
10066
|
+
"properties": [
|
|
10067
|
+
{
|
|
10068
|
+
"name": "show",
|
|
10069
|
+
"description": "When `true` the host plays the enter transition; when `false` the leave transition.",
|
|
10070
|
+
"type": "boolean"
|
|
10071
|
+
}
|
|
10072
|
+
],
|
|
10073
|
+
"events": []
|
|
10074
|
+
},
|
|
10075
|
+
"source": {
|
|
10076
|
+
"module": "./src/components/transition-classes/transition-classes.js",
|
|
10077
|
+
"symbol": "default"
|
|
10078
|
+
}
|
|
10079
|
+
},
|
|
10080
|
+
{
|
|
10081
|
+
"name": "el-tree-item",
|
|
10082
|
+
"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\"`).",
|
|
10083
|
+
"doc-url": "",
|
|
10084
|
+
"attributes": [
|
|
10085
|
+
{
|
|
10086
|
+
"name": "label",
|
|
10087
|
+
"description": "The name of the entry.",
|
|
10088
|
+
"value": {
|
|
10089
|
+
"type": "string"
|
|
10090
|
+
},
|
|
10091
|
+
"source": {
|
|
10092
|
+
"module": "./src/components/tree-item/tree-item.js",
|
|
10093
|
+
"symbol": "default"
|
|
10094
|
+
}
|
|
10095
|
+
},
|
|
10096
|
+
{
|
|
10097
|
+
"name": "href",
|
|
10098
|
+
"description": "The address the entry leads to. Unset, the entry is no link.",
|
|
10099
|
+
"value": {
|
|
10100
|
+
"type": "string"
|
|
10101
|
+
},
|
|
10102
|
+
"source": {
|
|
10103
|
+
"module": "./src/components/tree-item/tree-item.js",
|
|
10104
|
+
"symbol": "default"
|
|
10105
|
+
}
|
|
10106
|
+
},
|
|
10107
|
+
{
|
|
10108
|
+
"name": "target",
|
|
10109
|
+
"description": "Where to open the address (only with `href`).",
|
|
10110
|
+
"value": {
|
|
10111
|
+
"type": "string"
|
|
10112
|
+
},
|
|
10113
|
+
"source": {
|
|
10114
|
+
"module": "./src/components/tree-item/tree-item.js",
|
|
10115
|
+
"symbol": "default"
|
|
10116
|
+
}
|
|
10117
|
+
},
|
|
10118
|
+
{
|
|
10119
|
+
"name": "rel",
|
|
10120
|
+
"description": "`rel` attribute for the link, written when `target` is set. Default `'noreferrer noopener'`.",
|
|
10121
|
+
"value": {
|
|
10122
|
+
"type": "string"
|
|
10123
|
+
},
|
|
10124
|
+
"source": {
|
|
10125
|
+
"module": "./src/components/tree-item/tree-item.js",
|
|
10126
|
+
"symbol": "default"
|
|
10127
|
+
}
|
|
10128
|
+
},
|
|
10129
|
+
{
|
|
10130
|
+
"name": "current",
|
|
10131
|
+
"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`.",
|
|
10132
|
+
"value": {
|
|
10133
|
+
"type": "boolean"
|
|
10134
|
+
},
|
|
10135
|
+
"source": {
|
|
10136
|
+
"module": "./src/components/tree-item/tree-item.js",
|
|
10137
|
+
"symbol": "default"
|
|
10138
|
+
}
|
|
10139
|
+
},
|
|
10140
|
+
{
|
|
10141
|
+
"name": "open",
|
|
10142
|
+
"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`.",
|
|
10143
|
+
"value": {
|
|
10144
|
+
"type": "boolean"
|
|
10145
|
+
},
|
|
10146
|
+
"source": {
|
|
10147
|
+
"module": "./src/components/tree-item/tree-item.js",
|
|
10148
|
+
"symbol": "default"
|
|
10149
|
+
}
|
|
10150
|
+
}
|
|
10151
|
+
],
|
|
10152
|
+
"slots": [
|
|
10153
|
+
{
|
|
10154
|
+
"name": "",
|
|
10155
|
+
"description": "The entries below this one: `el-tree-item` elements."
|
|
10156
|
+
},
|
|
10157
|
+
{
|
|
10158
|
+
"name": "label",
|
|
10159
|
+
"description": "The name of the entry. Takes precedence over the `label` attribute."
|
|
10160
|
+
},
|
|
10161
|
+
{
|
|
10162
|
+
"name": "start",
|
|
10163
|
+
"description": "What stands in front of the name: an icon."
|
|
10164
|
+
},
|
|
10165
|
+
{
|
|
10166
|
+
"name": "end",
|
|
10167
|
+
"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."
|
|
10168
|
+
}
|
|
10169
|
+
],
|
|
10170
|
+
"events": [
|
|
10171
|
+
{
|
|
10172
|
+
"name": "tree-item-toggle",
|
|
10173
|
+
"type": "CustomEvent<{ open: boolean }>",
|
|
10174
|
+
"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`."
|
|
10175
|
+
}
|
|
10176
|
+
],
|
|
10177
|
+
"js": {
|
|
10178
|
+
"properties": [
|
|
10179
|
+
{
|
|
10180
|
+
"name": "hasItems",
|
|
10181
|
+
"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."
|
|
10182
|
+
},
|
|
10183
|
+
{
|
|
10184
|
+
"name": "focusTarget",
|
|
10185
|
+
"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."
|
|
10186
|
+
},
|
|
10187
|
+
{
|
|
10188
|
+
"name": "label",
|
|
10189
|
+
"description": "The name of the entry.",
|
|
10190
|
+
"type": "string"
|
|
10191
|
+
},
|
|
10192
|
+
{
|
|
10193
|
+
"name": "href",
|
|
10194
|
+
"description": "The address the entry leads to. Unset, the entry is no link.",
|
|
10195
|
+
"type": "string"
|
|
10196
|
+
},
|
|
10197
|
+
{
|
|
10198
|
+
"name": "target",
|
|
10199
|
+
"description": "Where to open the address (only with `href`).",
|
|
8405
10200
|
"type": "string"
|
|
8406
10201
|
},
|
|
8407
|
-
|
|
8408
|
-
"
|
|
8409
|
-
"
|
|
8410
|
-
}
|
|
8411
|
-
},
|
|
8412
|
-
{
|
|
8413
|
-
"name": "leave-end",
|
|
8414
|
-
"description": "Classes applied at the end of the leave transition.",
|
|
8415
|
-
"value": {
|
|
10202
|
+
{
|
|
10203
|
+
"name": "rel",
|
|
10204
|
+
"description": "`rel` attribute for the link, written when `target` is set. Default `'noreferrer noopener'`.",
|
|
8416
10205
|
"type": "string"
|
|
8417
10206
|
},
|
|
8418
|
-
|
|
8419
|
-
"
|
|
8420
|
-
"
|
|
10207
|
+
{
|
|
10208
|
+
"name": "current",
|
|
10209
|
+
"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`.",
|
|
10210
|
+
"type": "boolean"
|
|
10211
|
+
},
|
|
10212
|
+
{
|
|
10213
|
+
"name": "open",
|
|
10214
|
+
"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`.",
|
|
10215
|
+
"type": "boolean"
|
|
8421
10216
|
}
|
|
8422
|
-
|
|
10217
|
+
],
|
|
10218
|
+
"events": [
|
|
10219
|
+
{
|
|
10220
|
+
"name": "tree-item-toggle",
|
|
10221
|
+
"type": "CustomEvent<{ open: boolean }>",
|
|
10222
|
+
"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`."
|
|
10223
|
+
}
|
|
10224
|
+
]
|
|
10225
|
+
},
|
|
10226
|
+
"source": {
|
|
10227
|
+
"module": "./src/components/tree-item/tree-item.js",
|
|
10228
|
+
"symbol": "default"
|
|
10229
|
+
}
|
|
10230
|
+
},
|
|
10231
|
+
{
|
|
10232
|
+
"name": "el-tree",
|
|
10233
|
+
"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\"`).",
|
|
10234
|
+
"doc-url": "",
|
|
10235
|
+
"attributes": [
|
|
8423
10236
|
{
|
|
8424
|
-
"name": "
|
|
8425
|
-
"description": "
|
|
10237
|
+
"name": "label",
|
|
10238
|
+
"description": "The name of the tree for assistive technology. Unset, the tree has none.",
|
|
8426
10239
|
"value": {
|
|
8427
|
-
"type": "
|
|
10240
|
+
"type": "string"
|
|
8428
10241
|
},
|
|
8429
10242
|
"source": {
|
|
8430
|
-
"module": "./src/components/
|
|
10243
|
+
"module": "./src/components/tree/tree.js",
|
|
8431
10244
|
"symbol": "default"
|
|
8432
10245
|
}
|
|
8433
10246
|
}
|
|
@@ -8435,22 +10248,22 @@
|
|
|
8435
10248
|
"slots": [
|
|
8436
10249
|
{
|
|
8437
10250
|
"name": "",
|
|
8438
|
-
"description": "
|
|
10251
|
+
"description": "The entries of the first level: `el-tree-item` elements."
|
|
8439
10252
|
}
|
|
8440
10253
|
],
|
|
8441
10254
|
"events": [],
|
|
8442
10255
|
"js": {
|
|
8443
10256
|
"properties": [
|
|
8444
10257
|
{
|
|
8445
|
-
"name": "
|
|
8446
|
-
"description": "
|
|
8447
|
-
"type": "
|
|
10258
|
+
"name": "label",
|
|
10259
|
+
"description": "The name of the tree for assistive technology. Unset, the tree has none.",
|
|
10260
|
+
"type": "string"
|
|
8448
10261
|
}
|
|
8449
10262
|
],
|
|
8450
10263
|
"events": []
|
|
8451
10264
|
},
|
|
8452
10265
|
"source": {
|
|
8453
|
-
"module": "./src/components/
|
|
10266
|
+
"module": "./src/components/tree/tree.js",
|
|
8454
10267
|
"symbol": "default"
|
|
8455
10268
|
}
|
|
8456
10269
|
}
|
|
@@ -8466,6 +10279,30 @@
|
|
|
8466
10279
|
"name": "--el-amount-field-minus",
|
|
8467
10280
|
"description": "The sign of the decrement button, a CSS string."
|
|
8468
10281
|
},
|
|
10282
|
+
{
|
|
10283
|
+
"name": "--el-app-frame-navigation-size",
|
|
10284
|
+
"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."
|
|
10285
|
+
},
|
|
10286
|
+
{
|
|
10287
|
+
"name": "--el-app-frame-aside-size",
|
|
10288
|
+
"description": "The width of the aside where the frame is wide. Default `20rem`."
|
|
10289
|
+
},
|
|
10290
|
+
{
|
|
10291
|
+
"name": "--el-app-frame-navigation-min-size",
|
|
10292
|
+
"description": "The least width of a navigation that is resizable. Default `10rem`."
|
|
10293
|
+
},
|
|
10294
|
+
{
|
|
10295
|
+
"name": "--el-app-frame-navigation-max-size",
|
|
10296
|
+
"description": "The greatest width of a navigation that is resizable. Default `min(30rem, 40cqi)`: two fifths of the width of the frame at most."
|
|
10297
|
+
},
|
|
10298
|
+
{
|
|
10299
|
+
"name": "--el-app-frame-aside-min-size",
|
|
10300
|
+
"description": "The least width of an aside that is resizable. Default `10rem`."
|
|
10301
|
+
},
|
|
10302
|
+
{
|
|
10303
|
+
"name": "--el-app-frame-aside-max-size",
|
|
10304
|
+
"description": "The greatest width of an aside that is resizable. Default `min(30rem, 40cqi)`."
|
|
10305
|
+
},
|
|
8469
10306
|
{
|
|
8470
10307
|
"name": "--el-avatar-size",
|
|
8471
10308
|
"description": "The width and the height of the avatar. Unset, the `size` decides."
|
|
@@ -8482,6 +10319,10 @@
|
|
|
8482
10319
|
"name": "--el-card-padding",
|
|
8483
10320
|
"description": "The padding of the header, the body and the footer. Unset, it is `--el-space-4`, and `1rem` without a theme."
|
|
8484
10321
|
},
|
|
10322
|
+
{
|
|
10323
|
+
"name": "--el-description-list-term-width",
|
|
10324
|
+
"description": "The width of the column of the names while names and values stand side by side. Unset, the column is as wide as the longest name, and 40% of the list at most."
|
|
10325
|
+
},
|
|
8485
10326
|
{
|
|
8486
10327
|
"name": "--el-divider-color",
|
|
8487
10328
|
"description": "The colour of the line. Unset, it is `--el-color-border`, and a fifth of the text colour without a theme."
|
|
@@ -8490,6 +10331,22 @@
|
|
|
8490
10331
|
"name": "--el-divider-width",
|
|
8491
10332
|
"description": "The thickness of the line. Unset, it is `--el-border-width`, and `1px` without a theme."
|
|
8492
10333
|
},
|
|
10334
|
+
{
|
|
10335
|
+
"name": "--el-list-padding-inline",
|
|
10336
|
+
"description": "The padding of the row at its start and its end. Unset, it is `--el-space-4`, and `1rem` without a theme."
|
|
10337
|
+
},
|
|
10338
|
+
{
|
|
10339
|
+
"name": "--el-list-padding-inline",
|
|
10340
|
+
"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."
|
|
10341
|
+
},
|
|
10342
|
+
{
|
|
10343
|
+
"name": "--el-nav-rail-size",
|
|
10344
|
+
"description": "The width of a rail. Default `5rem`."
|
|
10345
|
+
},
|
|
10346
|
+
{
|
|
10347
|
+
"name": "--el-nav-list-size",
|
|
10348
|
+
"description": "The width of a list where its place is as wide as what is in it. Default `16rem`."
|
|
10349
|
+
},
|
|
8493
10350
|
{
|
|
8494
10351
|
"name": "--el-progress-bar-height",
|
|
8495
10352
|
"description": "The height of the bar. Unset, it is `0.5rem`."
|
|
@@ -8546,6 +10403,10 @@
|
|
|
8546
10403
|
"name": "--el-spinner-track-color",
|
|
8547
10404
|
"description": "The ring it turns on. Unset, it is a fifth of the text colour."
|
|
8548
10405
|
},
|
|
10406
|
+
{
|
|
10407
|
+
"name": "--el-splitter-line-width",
|
|
10408
|
+
"description": "The width of the line. Default `--el-border-width`."
|
|
10409
|
+
},
|
|
8549
10410
|
{
|
|
8550
10411
|
"name": "--sticky-height",
|
|
8551
10412
|
"description": "Auto-set to the host's `clientHeight`. Maintained via a `ResizeObserver` and useful for transform calculations or layout offsets."
|
|
@@ -8553,6 +10414,14 @@
|
|
|
8553
10414
|
{
|
|
8554
10415
|
"name": "--el-toast-inset",
|
|
8555
10416
|
"description": "The distance of the stack from the edges of the viewport. Unset, it is `--el-space-4`."
|
|
10417
|
+
},
|
|
10418
|
+
{
|
|
10419
|
+
"name": "--el-tree-indent",
|
|
10420
|
+
"description": "How far the entries below stand in from this one. Unset, it is `--el-space-4`, and `1rem` without a theme."
|
|
10421
|
+
},
|
|
10422
|
+
{
|
|
10423
|
+
"name": "--el-tree-indent",
|
|
10424
|
+
"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
10425
|
}
|
|
8557
10426
|
],
|
|
8558
10427
|
"pseudo-elements": [
|
|
@@ -8568,6 +10437,86 @@
|
|
|
8568
10437
|
"name": "part(icon)",
|
|
8569
10438
|
"description": "The chevron icon; rotates 180° while the accordion is open."
|
|
8570
10439
|
},
|
|
10440
|
+
{
|
|
10441
|
+
"name": "part(base)",
|
|
10442
|
+
"description": "The bar: its surface and the line to the content."
|
|
10443
|
+
},
|
|
10444
|
+
{
|
|
10445
|
+
"name": "part(row)",
|
|
10446
|
+
"description": "The row of the start, the title and the end."
|
|
10447
|
+
},
|
|
10448
|
+
{
|
|
10449
|
+
"name": "part(start)",
|
|
10450
|
+
"description": "The region in front of the title."
|
|
10451
|
+
},
|
|
10452
|
+
{
|
|
10453
|
+
"name": "part(title)",
|
|
10454
|
+
"description": "The title. A heading while `heading-level` is set."
|
|
10455
|
+
},
|
|
10456
|
+
{
|
|
10457
|
+
"name": "part(end)",
|
|
10458
|
+
"description": "The region at the end."
|
|
10459
|
+
},
|
|
10460
|
+
{
|
|
10461
|
+
"name": "part(base)",
|
|
10462
|
+
"description": "The frame: the grid of the regions."
|
|
10463
|
+
},
|
|
10464
|
+
{
|
|
10465
|
+
"name": "part(skip-link)",
|
|
10466
|
+
"description": "The link that skips to the content. It shows while it has the focus."
|
|
10467
|
+
},
|
|
10468
|
+
{
|
|
10469
|
+
"name": "part(header)",
|
|
10470
|
+
"description": "The region at the top. Its surface reaches under the status bar of a phone."
|
|
10471
|
+
},
|
|
10472
|
+
{
|
|
10473
|
+
"name": "part(navigation)",
|
|
10474
|
+
"description": "The region at the start side, where the frame is wide."
|
|
10475
|
+
},
|
|
10476
|
+
{
|
|
10477
|
+
"name": "part(body)",
|
|
10478
|
+
"description": "The content and the aside. Where the frame is narrow, it is what scrolls."
|
|
10479
|
+
},
|
|
10480
|
+
{
|
|
10481
|
+
"name": "part(content)",
|
|
10482
|
+
"description": "The region of the content. Where the frame is wide, it is what scrolls."
|
|
10483
|
+
},
|
|
10484
|
+
{
|
|
10485
|
+
"name": "part(aside)",
|
|
10486
|
+
"description": "The region at the end side."
|
|
10487
|
+
},
|
|
10488
|
+
{
|
|
10489
|
+
"name": "part(footer)",
|
|
10490
|
+
"description": "The region at the lower edge. Its surface reaches under the home indicator."
|
|
10491
|
+
},
|
|
10492
|
+
{
|
|
10493
|
+
"name": "part(drawer)",
|
|
10494
|
+
"description": "The surface of the drawer the navigation is in where the frame is narrow."
|
|
10495
|
+
},
|
|
10496
|
+
{
|
|
10497
|
+
"name": "part(drawer-header)",
|
|
10498
|
+
"description": "The header of that drawer, with its title and its close button."
|
|
10499
|
+
},
|
|
10500
|
+
{
|
|
10501
|
+
"name": "part(drawer-title)",
|
|
10502
|
+
"description": "The title of that drawer."
|
|
10503
|
+
},
|
|
10504
|
+
{
|
|
10505
|
+
"name": "part(drawer-close-button)",
|
|
10506
|
+
"description": "The close button of that drawer."
|
|
10507
|
+
},
|
|
10508
|
+
{
|
|
10509
|
+
"name": "part(drawer-body)",
|
|
10510
|
+
"description": "The body of that drawer: the navigation of the page is in it."
|
|
10511
|
+
},
|
|
10512
|
+
{
|
|
10513
|
+
"name": "part(navigation-splitter)",
|
|
10514
|
+
"description": "The edge of the navigation the user drags, an `el-splitter`."
|
|
10515
|
+
},
|
|
10516
|
+
{
|
|
10517
|
+
"name": "part(aside-splitter)",
|
|
10518
|
+
"description": "The edge of the aside the user drags, an `el-splitter`."
|
|
10519
|
+
},
|
|
8571
10520
|
{
|
|
8572
10521
|
"name": "part(base)",
|
|
8573
10522
|
"description": "The shape of the avatar: background, radius. It carries the role and the label."
|
|
@@ -8704,6 +10653,10 @@
|
|
|
8704
10653
|
"name": "part(feedback)",
|
|
8705
10654
|
"description": "The text of the outcome, a live region that is not shown."
|
|
8706
10655
|
},
|
|
10656
|
+
{
|
|
10657
|
+
"name": "part(base)",
|
|
10658
|
+
"description": "The `<dl>`."
|
|
10659
|
+
},
|
|
8707
10660
|
{
|
|
8708
10661
|
"name": "part(base)",
|
|
8709
10662
|
"description": "The native `<dialog>` element — the panel surface (background, border, radius, elevation). The overlay is its `::backdrop` pseudo-element."
|
|
@@ -8796,6 +10749,122 @@
|
|
|
8796
10749
|
"name": "part(action)",
|
|
8797
10750
|
"description": "The region of the `action` slot."
|
|
8798
10751
|
},
|
|
10752
|
+
{
|
|
10753
|
+
"name": "part(base)",
|
|
10754
|
+
"description": "The row: an item of the list."
|
|
10755
|
+
},
|
|
10756
|
+
{
|
|
10757
|
+
"name": "part(mark)",
|
|
10758
|
+
"description": "The dot of `mark`, in the padding at the start of the row."
|
|
10759
|
+
},
|
|
10760
|
+
{
|
|
10761
|
+
"name": "part(start)",
|
|
10762
|
+
"description": "The region of the `start` slot."
|
|
10763
|
+
},
|
|
10764
|
+
{
|
|
10765
|
+
"name": "part(text)",
|
|
10766
|
+
"description": "The title and the line under it."
|
|
10767
|
+
},
|
|
10768
|
+
{
|
|
10769
|
+
"name": "part(title)",
|
|
10770
|
+
"description": "The title: an `<a>` with `href`, a `<span>` without."
|
|
10771
|
+
},
|
|
10772
|
+
{
|
|
10773
|
+
"name": "part(description)",
|
|
10774
|
+
"description": "The region of the `description` slot."
|
|
10775
|
+
},
|
|
10776
|
+
{
|
|
10777
|
+
"name": "part(end)",
|
|
10778
|
+
"description": "The region of the `end` slot."
|
|
10779
|
+
},
|
|
10780
|
+
{
|
|
10781
|
+
"name": "part(action)",
|
|
10782
|
+
"description": "The region of the `action` slot."
|
|
10783
|
+
},
|
|
10784
|
+
{
|
|
10785
|
+
"name": "part(base)",
|
|
10786
|
+
"description": "The list (`role=\"list\"`) and its surface."
|
|
10787
|
+
},
|
|
10788
|
+
{
|
|
10789
|
+
"name": "part(base)",
|
|
10790
|
+
"description": "The group, with the line over it."
|
|
10791
|
+
},
|
|
10792
|
+
{
|
|
10793
|
+
"name": "part(label)",
|
|
10794
|
+
"description": "The heading of the group."
|
|
10795
|
+
},
|
|
10796
|
+
{
|
|
10797
|
+
"name": "part(base)",
|
|
10798
|
+
"description": "The entry: a `<button>`, or an `<a>` with `href`."
|
|
10799
|
+
},
|
|
10800
|
+
{
|
|
10801
|
+
"name": "part(icon)",
|
|
10802
|
+
"description": "The place of the icon."
|
|
10803
|
+
},
|
|
10804
|
+
{
|
|
10805
|
+
"name": "part(label)",
|
|
10806
|
+
"description": "The text of the entry."
|
|
10807
|
+
},
|
|
10808
|
+
{
|
|
10809
|
+
"name": "part(trigger)",
|
|
10810
|
+
"description": "Forwarded onto the `trigger` slot."
|
|
10811
|
+
},
|
|
10812
|
+
{
|
|
10813
|
+
"name": "part(panel)",
|
|
10814
|
+
"description": "The floating panel, which is the menu (`role=\"menu\"`): background, border, radius, elevation, width."
|
|
10815
|
+
},
|
|
10816
|
+
{
|
|
10817
|
+
"name": "part(base)",
|
|
10818
|
+
"description": "The entry of the list (`role=\"listitem\"`)."
|
|
10819
|
+
},
|
|
10820
|
+
{
|
|
10821
|
+
"name": "part(link)",
|
|
10822
|
+
"description": "The link: the whole destination is its target."
|
|
10823
|
+
},
|
|
10824
|
+
{
|
|
10825
|
+
"name": "part(icon)",
|
|
10826
|
+
"description": "The icon, with the shape behind it that marks the current destination."
|
|
10827
|
+
},
|
|
10828
|
+
{
|
|
10829
|
+
"name": "part(badge)",
|
|
10830
|
+
"description": "The place of the badge, at the corner of the icon."
|
|
10831
|
+
},
|
|
10832
|
+
{
|
|
10833
|
+
"name": "part(label)",
|
|
10834
|
+
"description": "The text of the destination."
|
|
10835
|
+
},
|
|
10836
|
+
{
|
|
10837
|
+
"name": "part(base)",
|
|
10838
|
+
"description": "The navigation landmark (`<nav>`): the surface and its line to the content."
|
|
10839
|
+
},
|
|
10840
|
+
{
|
|
10841
|
+
"name": "part(groups)",
|
|
10842
|
+
"description": "The two groups at the top, which scroll where a rail or a list has more destinations than height."
|
|
10843
|
+
},
|
|
10844
|
+
{
|
|
10845
|
+
"name": "part(list)",
|
|
10846
|
+
"description": "The list of the destinations."
|
|
10847
|
+
},
|
|
10848
|
+
{
|
|
10849
|
+
"name": "part(secondary)",
|
|
10850
|
+
"description": "The second group: its heading and its list."
|
|
10851
|
+
},
|
|
10852
|
+
{
|
|
10853
|
+
"name": "part(secondary-label)",
|
|
10854
|
+
"description": "The heading of the second group, which a list shows."
|
|
10855
|
+
},
|
|
10856
|
+
{
|
|
10857
|
+
"name": "part(secondary-list)",
|
|
10858
|
+
"description": "The list of the destinations of the second group."
|
|
10859
|
+
},
|
|
10860
|
+
{
|
|
10861
|
+
"name": "part(end)",
|
|
10862
|
+
"description": "The list of the destinations at the lower end of a rail or a list."
|
|
10863
|
+
},
|
|
10864
|
+
{
|
|
10865
|
+
"name": "part(tooltip)",
|
|
10866
|
+
"description": "The tooltip of a destination that shows an icon alone: an `el-tooltip`."
|
|
10867
|
+
},
|
|
8799
10868
|
{
|
|
8800
10869
|
"name": "part(base)",
|
|
8801
10870
|
"description": "The animated outer wrapper."
|
|
@@ -8826,7 +10895,7 @@
|
|
|
8826
10895
|
},
|
|
8827
10896
|
{
|
|
8828
10897
|
"name": "part(button)",
|
|
8829
|
-
"description": "Every button: the pages, the page before and the page after."
|
|
10898
|
+
"description": "Every button: the pages, the page before and the page after. With `href` they are links, and keep their parts."
|
|
8830
10899
|
},
|
|
8831
10900
|
{
|
|
8832
10901
|
"name": "part(page)",
|
|
@@ -8932,6 +11001,30 @@
|
|
|
8932
11001
|
"name": "part(base)",
|
|
8933
11002
|
"description": "The ring. It carries `role=\"progressbar\"` and the label."
|
|
8934
11003
|
},
|
|
11004
|
+
{
|
|
11005
|
+
"name": "part(base)",
|
|
11006
|
+
"description": "The separator: what takes the pointer and the focus. It is wider than the line."
|
|
11007
|
+
},
|
|
11008
|
+
{
|
|
11009
|
+
"name": "part(line)",
|
|
11010
|
+
"description": "The line that shows, and the mark it becomes under the pointer and with the focus."
|
|
11011
|
+
},
|
|
11012
|
+
{
|
|
11013
|
+
"name": "part(base)",
|
|
11014
|
+
"description": "The bar: its surface and the line to the content."
|
|
11015
|
+
},
|
|
11016
|
+
{
|
|
11017
|
+
"name": "part(row)",
|
|
11018
|
+
"description": "The row of the entries, which keeps its height."
|
|
11019
|
+
},
|
|
11020
|
+
{
|
|
11021
|
+
"name": "part(start)",
|
|
11022
|
+
"description": "The entries at the start."
|
|
11023
|
+
},
|
|
11024
|
+
{
|
|
11025
|
+
"name": "part(end)",
|
|
11026
|
+
"description": "The entries at the end."
|
|
11027
|
+
},
|
|
8935
11028
|
{
|
|
8936
11029
|
"name": "part(base)",
|
|
8937
11030
|
"description": "The surface of the tag: background, border, radius."
|
|
@@ -8948,6 +11041,18 @@
|
|
|
8948
11041
|
"name": "part(base)",
|
|
8949
11042
|
"description": "The stack of the toasts. It is the landmark with the name in `label`."
|
|
8950
11043
|
},
|
|
11044
|
+
{
|
|
11045
|
+
"name": "part(base)",
|
|
11046
|
+
"description": "The toolbar (`role=\"toolbar\"`): the row of the controls."
|
|
11047
|
+
},
|
|
11048
|
+
{
|
|
11049
|
+
"name": "part(end)",
|
|
11050
|
+
"description": "The group at the end."
|
|
11051
|
+
},
|
|
11052
|
+
{
|
|
11053
|
+
"name": "part(tooltip)",
|
|
11054
|
+
"description": "The tooltip of a button with an icon alone: an `el-tooltip`."
|
|
11055
|
+
},
|
|
8951
11056
|
{
|
|
8952
11057
|
"name": "part(body)",
|
|
8953
11058
|
"description": "The surface of the tooltip: background, text colour, padding, radius."
|
|
@@ -8955,6 +11060,38 @@
|
|
|
8955
11060
|
{
|
|
8956
11061
|
"name": "part(arrow)",
|
|
8957
11062
|
"description": "The arrow that points to the anchor, present only while `arrow` is `true`."
|
|
11063
|
+
},
|
|
11064
|
+
{
|
|
11065
|
+
"name": "part(base)",
|
|
11066
|
+
"description": "The entry: an item of the list it is in."
|
|
11067
|
+
},
|
|
11068
|
+
{
|
|
11069
|
+
"name": "part(row)",
|
|
11070
|
+
"description": "The row of the entry: its button, its start, its name and its end."
|
|
11071
|
+
},
|
|
11072
|
+
{
|
|
11073
|
+
"name": "part(toggle)",
|
|
11074
|
+
"description": "The button that opens and closes the entries below, present only with such entries."
|
|
11075
|
+
},
|
|
11076
|
+
{
|
|
11077
|
+
"name": "part(start)",
|
|
11078
|
+
"description": "The region of the `start` slot."
|
|
11079
|
+
},
|
|
11080
|
+
{
|
|
11081
|
+
"name": "part(label)",
|
|
11082
|
+
"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."
|
|
11083
|
+
},
|
|
11084
|
+
{
|
|
11085
|
+
"name": "part(end)",
|
|
11086
|
+
"description": "The region of the `end` slot."
|
|
11087
|
+
},
|
|
11088
|
+
{
|
|
11089
|
+
"name": "part(children)",
|
|
11090
|
+
"description": "The list of the entries below (`role=\"list\"`)."
|
|
11091
|
+
},
|
|
11092
|
+
{
|
|
11093
|
+
"name": "part(base)",
|
|
11094
|
+
"description": "The list of the first level (`role=\"list\"`)."
|
|
8958
11095
|
}
|
|
8959
11096
|
]
|
|
8960
11097
|
}
|