@webtides/element-library 0.4.0 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (93) hide show
  1. package/CHANGELOG.md +107 -0
  2. package/custom-elements.json +1543 -199
  3. package/package.json +1 -1
  4. package/src/components/app-frame/app-frame.changelog.md +14 -0
  5. package/src/components/app-frame/app-frame.js +14 -2
  6. package/src/components/app-frame/app-frame.readme.md +12 -3
  7. package/src/components/app-frame/app-frame.style.js +7 -0
  8. package/src/components/button/button.changelog.md +6 -0
  9. package/src/components/button/button.style.js +6 -1
  10. package/src/components/button-group/button-group.changelog.md +10 -0
  11. package/src/components/button-group/button-group.readme.md +2 -0
  12. package/src/components/button-group/button-group.style.js +6 -2
  13. package/src/components/checkbox-group-field/checkbox-group-field.changelog.md +6 -0
  14. package/src/components/checkbox-group-field/checkbox-group-field.js +7 -2
  15. package/src/components/checkbox-group-field/checkbox-group-field.readme.md +23 -1
  16. package/src/components/combobox-field/combobox-field.changelog.md +6 -0
  17. package/src/components/combobox-field/combobox-field.readme.md +8 -0
  18. package/src/components/combobox-field/combobox-field.style.js +2 -0
  19. package/src/components/date-field/date-field.changelog.md +6 -0
  20. package/src/components/date-field/date-field.readme.md +10 -0
  21. package/src/components/date-field/date-field.style.js +8 -3
  22. package/src/components/description-list/description-list.changelog.md +17 -0
  23. package/src/components/description-list/description-list.js +7 -2
  24. package/src/components/description-list/description-list.readme.md +30 -4
  25. package/src/components/description-list/description-list.style.js +57 -28
  26. package/src/components/divider/divider.changelog.md +6 -0
  27. package/src/components/divider/divider.readme.md +1 -1
  28. package/src/components/divider/divider.style.js +6 -0
  29. package/src/components/file-field/file-field.changelog.md +8 -0
  30. package/src/components/file-field/file-field.js +135 -5
  31. package/src/components/file-field/file-field.readme.md +35 -6
  32. package/src/components/file-field/file-field.style.js +71 -0
  33. package/src/components/form-field/form-field.js +1 -1
  34. package/src/components/input-field/input-field.changelog.md +10 -0
  35. package/src/components/input-field/input-field.js +192 -14
  36. package/src/components/input-field/input-field.readme.md +88 -2
  37. package/src/components/input-field/input-field.style.js +2 -0
  38. package/src/components/list/list.changelog.md +6 -0
  39. package/src/components/list/list.js +2 -0
  40. package/src/components/list/list.readme.md +1 -0
  41. package/src/components/list-item/list-item.changelog.md +16 -0
  42. package/src/components/list-item/list-item.js +2 -0
  43. package/src/components/list-item/list-item.readme.md +19 -1
  44. package/src/components/list-item/list-item.style.js +23 -11
  45. package/src/components/menu/menu.changelog.md +17 -0
  46. package/src/components/menu/menu.js +293 -70
  47. package/src/components/menu/menu.readme.md +47 -6
  48. package/src/components/menu/menu.style.js +6 -2
  49. package/src/components/menu-item/menu-item.changelog.md +8 -0
  50. package/src/components/menu-item/menu-item.js +41 -3
  51. package/src/components/menu-item/menu-item.readme.md +45 -7
  52. package/src/components/menu-item/menu-item.style.js +30 -0
  53. package/src/components/otp-field/otp-field.changelog.md +6 -0
  54. package/src/components/otp-field/otp-field.readme.md +8 -0
  55. package/src/components/otp-field/otp-field.style.js +8 -3
  56. package/src/components/password-field/password-field.changelog.md +7 -0
  57. package/src/components/password-field/password-field.readme.md +11 -1
  58. package/src/components/password-field/password-field.style.js +2 -0
  59. package/src/components/popover/popover.changelog.md +6 -0
  60. package/src/components/popover/popover.style.js +1 -0
  61. package/src/components/radio-field/radio-field.changelog.md +6 -0
  62. package/src/components/radio-field/radio-field.js +7 -2
  63. package/src/components/radio-field/radio-field.readme.md +23 -1
  64. package/src/components/textarea-field/textarea-field.changelog.md +6 -0
  65. package/src/components/textarea-field/textarea-field.js +14 -1
  66. package/src/components/textarea-field/textarea-field.readme.md +23 -1
  67. package/src/styles/choice-group.style.js +26 -0
  68. package/src/styles/input-control.style.js +87 -0
  69. package/src/styles/native.css +100 -0
  70. package/src/utils/floating.js +15 -1
  71. package/src/utils/options.js +35 -0
  72. package/src/utils/text-entry-attributes.js +13 -0
  73. package/types/src/components/app-frame/app-frame.d.ts +7 -1
  74. package/types/src/components/checkbox-group-field/checkbox-group-field.d.ts +5 -2
  75. package/types/src/components/combobox-field/combobox-field.d.ts +10 -0
  76. package/types/src/components/date-field/date-field.d.ts +10 -0
  77. package/types/src/components/description-list/description-list.d.ts +7 -2
  78. package/types/src/components/file-field/file-field.d.ts +68 -3
  79. package/types/src/components/form-field/form-field.d.ts +1 -1
  80. package/types/src/components/input-field/input-field.d.ts +99 -0
  81. package/types/src/components/list/list.d.ts +2 -0
  82. package/types/src/components/list-item/list-item.d.ts +2 -0
  83. package/types/src/components/menu/menu.d.ts +105 -9
  84. package/types/src/components/menu-item/menu-item.d.ts +21 -0
  85. package/types/src/components/otp-field/otp-field.d.ts +10 -0
  86. package/types/src/components/password-field/password-field.d.ts +10 -0
  87. package/types/src/components/radio-field/radio-field.d.ts +5 -2
  88. package/types/src/components/textarea-field/textarea-field.d.ts +7 -0
  89. package/types/src/styles/input-control.style.d.ts +15 -0
  90. package/types/src/utils/floating.d.ts +11 -0
  91. package/types/src/utils/options.d.ts +17 -0
  92. package/types/src/utils/text-entry-attributes.d.ts +10 -0
  93. package/web-types.json +514 -24
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.0",
4
+ "version": "0.5.0",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
@@ -418,7 +418,7 @@
418
418
  },
419
419
  {
420
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`.",
421
+ "description": "The frame of an application: it fills what the browser shows and lays out five regions, a\nheader, a footer, a navigation at the start side, an aside at the end side, and the content.\nThe header and the footer stay in view, and the content scrolls between them.\n\nThe frame knows regions, not what they mean. The page writes the elements that say so, the\nlandmarks, and slots them: `<header slot=\"header\">`, `<nav slot=\"navigation\" aria-label=\"…\">`,\n`<main id=\"…\">`, `<aside slot=\"aside\">`, `<footer slot=\"footer\">`. The frame adds the layout,\nthe room for the notch and the home indicator of a phone, and a link that skips to the content\nas the first stop of the Tab key. That link lies in the one landmark the frame has of its own,\na navigation the page names (`skip-landmark-label`): content of a page belongs into a landmark.\n\nFrom the width `wide-from` names, the navigation and the aside are columns beside the content,\nand each scrolls on its own. Where the frame is narrow, the content and the aside are one\ncolumn that scrolls, and the navigation does not show: it opens as a drawer from the start\nedge, from any element with `data-navigation-toggle`. The page writes the navigation once.\n\nThe width is the one of the frame, and the stylesheet alone decides: a server-rendered frame\nhas its layout before the script has run.\n\n`resizable` names the columns whose width the user sets by dragging their edge, an\n`el-splitter` of the frame. `navigation-size` and `aside-size` are those widths: the frame tells\nof them, and the page keeps them and gives them back.\n\nWhere a browser lays its on-screen keyboard over the page, the frame is as high as what shows\nabove the keyboard, and where that part is: the header stays in view, and the field the user\ntypes into does. That needs the script.\n\nWith `status-bar-tap` a tap on the status bar of an iPhone brings the content to its top, as it\ndoes in an application. iOS scrolls the document for that tap and never a region, so the frame\nkeeps the document scrolled by one pixel there, and hears it go back. The document snaps to\nthat pixel: a script of the page that scrolls the window does not move it, and is no tap.\n\n---\n\n\n### **Events:**\n - **app-frame-navigation-toggle** - Fired when the drawer of the navigation opens or closes, with the new state in `detail.open`.\n- **app-frame-resize** - Fired with every change the user makes to the width of a column: while its edge is dragged, and with every key. The new width in pixels is in `detail.size`.\n- **app-frame-resize-end** - Fired once the user has set a width: when the pointer lets go of the edge, and with every key. The width to keep is in `detail.size`.\n- **app-frame-status-bar-tap** - Fired when the user has tapped the status bar of an iPhone, with `status-bar-tap`. The frame scrolls its content to the top after it, unless a listener calls `preventDefault()`: a view whose columns scroll brings those to their tops.\n\n### **Slots:**\n - _default_ - The content of the view: the `main` of the page, with an id for the skip link.\n- **header** - The region at the top, an app bar as a rule. Left out while it is empty.\n- **navigation** - The region at the start side, and the content of the drawer where the frame is narrow. Left out while it is empty.\n- **aside** - The region at the end side. Left out while it is empty.\n- **footer** - The region at the lower edge. Left out while it is empty.\n\n### **CSS Properties:**\n - **--el-app-frame-navigation-size** - The width of the navigation where the frame is wide, and of its drawer where it is narrow. Default `16rem`. `auto` is the width of what is in it. _(default: undefined)_\n- **--el-app-frame-aside-size** - The width of the aside where the frame is wide. Default `20rem`. _(default: undefined)_\n- **--el-app-frame-navigation-min-size** - The least width of a navigation that is resizable. Default `10rem`. _(default: undefined)_\n- **--el-app-frame-navigation-max-size** - The greatest width of a navigation that is resizable. Default `min(30rem, 40cqi)`: two fifths of the width of the frame at most. _(default: undefined)_\n- **--el-app-frame-aside-min-size** - The least width of an aside that is resizable. Default `10rem`. _(default: undefined)_\n- **--el-app-frame-aside-max-size** - The greatest width of an aside that is resizable. Default `min(30rem, 40cqi)`. _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The frame: the grid of the regions.\n- **skip-landmark** - The landmark the skip link lies in: a `<nav>`.\n- **skip-link** - The link that skips to the content. It shows while it has the focus.\n- **header** - The region at the top. Its surface reaches under the status bar of a phone.\n- **navigation** - The region at the start side, where the frame is wide.\n- **body** - The content and the aside. Where the frame is narrow, it is what scrolls.\n- **content** - The region of the content. Where the frame is wide, it is what scrolls.\n- **aside** - The region at the end side.\n- **footer** - The region at the lower edge. Its surface reaches under the home indicator.\n- **drawer** - The surface of the drawer the navigation is in where the frame is narrow.\n- **drawer-header** - The header of that drawer, with its title and its close button.\n- **drawer-title** - The title of that drawer.\n- **drawer-close-button** - The close button of that drawer.\n- **drawer-body** - The body of that drawer: the navigation of the page is in it.\n- **navigation-splitter** - The edge of the navigation the user drags, an `el-splitter`.\n- **aside-splitter** - The edge of the aside the user drags, an `el-splitter`.",
422
422
  "doc-url": "",
423
423
  "attributes": [
424
424
  {
@@ -432,6 +432,17 @@
432
432
  "symbol": "default"
433
433
  }
434
434
  },
435
+ {
436
+ "name": "skip-landmark-label",
437
+ "description": "The name of the landmark that link lies in, a navigation, for assistive technology. It has to differ from the names of the other navigations of the page. Default `'Skip link'`.",
438
+ "value": {
439
+ "type": "string"
440
+ },
441
+ "source": {
442
+ "module": "./src/components/app-frame/app-frame.js",
443
+ "symbol": "default"
444
+ }
445
+ },
435
446
  {
436
447
  "name": "wide-from",
437
448
  "description": "The width of the frame from which the navigation and the aside are columns beside the content. One of the steps the stylesheet knows, another value is the default. Default `'48rem'`.",
@@ -624,6 +635,11 @@
624
635
  "description": "The text of the link that skips to the content. Default `'Skip to content'`.",
625
636
  "type": "string"
626
637
  },
638
+ {
639
+ "name": "skipLandmarkLabel",
640
+ "description": "The name of the landmark that link lies in, a navigation, for assistive technology. It has to differ from the names of the other navigations of the page. Default `'Skip link'`.",
641
+ "type": "string"
642
+ },
627
643
  {
628
644
  "name": "wideFrom",
629
645
  "description": "The width of the frame from which the navigation and the aside are columns beside the content. One of the steps the stylesheet knows, another value is the default. Default `'48rem'`.",
@@ -1808,9 +1824,9 @@
1808
1824
  },
1809
1825
  {
1810
1826
  "name": "options",
1811
- "description": "Options to render. Accepts plain strings (`['News', 'Offers']`) or option objects (`[{ value, label, disabled? }]`). Strings are used as both value and label.",
1827
+ "description": "Options to render. Accepts plain strings (`['News', 'Offers']`) or option objects (`[{ value, label, disabled? }]`). Strings are used as both value and label. An object can name a `color`, which is drawn as a dot in front of the label, and an `icon`, the address of an SVG symbol (`'#tag'`, `'/icons.svg#tag'`), which is drawn there as well. Both are decorations: the label stays the name of the option.",
1812
1828
  "value": {
1813
- "type": "Array<string | { value: string, label?: string, disabled?: boolean }>"
1829
+ "type": "Array<string | { value: string, label?: string, disabled?: boolean, color?: string, icon?: string }>"
1814
1830
  },
1815
1831
  "source": {
1816
1832
  "module": "./src/components/checkbox-group-field/checkbox-group-field.js",
@@ -1933,8 +1949,8 @@
1933
1949
  },
1934
1950
  {
1935
1951
  "name": "options",
1936
- "description": "Options to render. Accepts plain strings (`['News', 'Offers']`) or option objects (`[{ value, label, disabled? }]`). Strings are used as both value and label.",
1937
- "type": "Array<string | { value: string, label?: string, disabled?: boolean }>"
1952
+ "description": "Options to render. Accepts plain strings (`['News', 'Offers']`) or option objects (`[{ value, label, disabled? }]`). Strings are used as both value and label. An object can name a `color`, which is drawn as a dot in front of the label, and an `icon`, the address of an SVG symbol (`'#tag'`, `'/icons.svg#tag'`), which is drawn there as well. Both are decorations: the label stays the name of the option.",
1953
+ "type": "Array<string | { value: string, label?: string, disabled?: boolean, color?: string, icon?: string }>"
1938
1954
  },
1939
1955
  {
1940
1956
  "name": "required",
@@ -2234,7 +2250,7 @@
2234
2250
  },
2235
2251
  {
2236
2252
  "name": "el-combobox-field",
2237
- "description": "A text the user writes, with suggestions the browser offers while they type: a city, a job\ntitle, the name of a product. Extends `InputField` (and therefore `FormField`), inheriting the\nlabel / help / error / validation surface and the look from `styles/native.css`.\n\nThe suggestions are a native `<datalist>`: the browser filters and shows them, and the keyboard\nand a screen reader work as the browser has them. A suggestion is an offer, not a limit: the\nvalue is free text. For a choice from a fixed list there is `el-select-field`.\n\n---\n\n\n### **Events:**\n - **input-change** - Fired when the value changes: typed, or picked from the suggestions. `detail` is the new value. Bubbles.\n\n### **Methods:**\n - **onFocus(): _void_** - Called when the input receives focus. Refreshes validation state.\n- **onBlur(): _void_** - Called when the input loses focus. Marks the field as touched and refreshes\nvalidation state.\n- **onChange(): _void_** - Called when the input value changes. Updates `value` and refreshes validation.\n\nA control that is empty is no change for a field without a value: `value` stays `null`. A key\nthat enters nothing (Shift, an arrow key) and the first key of a date leave the control empty.\nTaking that as the value `''` wrote it to the control as its default with the next render,\nand a control for a date or a time drops what the user has entered so far when its value is\nwritten: the first key was lost.\n- **clearInput(): _void_** - Clears the input value, refocuses it, and resets the touched state. The field follows the\ncontrol, as it does when the user deletes the text by hand: `value` is empty, `input-change`\nreports it, and `valid` is what the control says.",
2253
+ "description": "A text the user writes, with suggestions the browser offers while they type: a city, a job\ntitle, the name of a product. Extends `InputField` (and therefore `FormField`), inheriting the\nlabel / help / error / validation surface and the look from `styles/native.css`.\n\nThe suggestions are a native `<datalist>`: the browser filters and shows them, and the keyboard\nand a screen reader work as the browser has them. A suggestion is an offer, not a limit: the\nvalue is free text. For a choice from a fixed list there is `el-select-field`.\n\n---\n\n\n### **Events:**\n - **input-change** - Fired when the value changes: typed, or picked from the suggestions. `detail` is the new value. Bubbles.\n\n### **Methods:**\n - **onFocus(): _void_** - Called when the input receives focus. Refreshes validation state.\n- **onBlur(): _void_** - Called when the input loses focus. Marks the field as touched and refreshes\nvalidation state.\n- **onChange(): _void_** - Called when the input value changes. Updates `value` and refreshes validation.\n\nA control that is empty is no change for a field without a value: `value` stays `null`. A key\nthat enters nothing (Shift, an arrow key) and the first key of a date leave the control empty.\nTaking that as the value `''` wrote it to the control as its default with the next render,\nand a control for a date or a time drops what the user has entered so far when its value is\nwritten: the first key was lost.\n- **clearInput(): _void_** - Clears the input value, refocuses it, and resets the touched state. The field follows the\ncontrol, as it does when the user deletes the text by hand: `value` is empty, `input-change`\nreports it, and `valid` is what the control says.\n\n### **Slots:**\n - **start** - Content at the start of the control, in front of the text: an icon, a text, a button. An element of the page with `slot=\"start\"`.\n- **end** - Content at the end of the control, after the text: a unit, a button. An element of the page with `slot=\"end\"`.",
2238
2254
  "doc-url": "",
2239
2255
  "attributes": [
2240
2256
  {
@@ -2292,6 +2308,50 @@
2292
2308
  "symbol": "default"
2293
2309
  }
2294
2310
  },
2311
+ {
2312
+ "name": "clearable",
2313
+ "description": "Whether the control has a button that empties it. The button shows while the field has a value and is not disabled. Default `false`.",
2314
+ "value": {
2315
+ "type": "boolean"
2316
+ },
2317
+ "source": {
2318
+ "module": "./src/components/combobox-field/combobox-field.js",
2319
+ "symbol": "default"
2320
+ }
2321
+ },
2322
+ {
2323
+ "name": "clear-label",
2324
+ "description": "The name of that button for assistive technology. Default `'Clear'`.",
2325
+ "value": {
2326
+ "type": "string"
2327
+ },
2328
+ "source": {
2329
+ "module": "./src/components/combobox-field/combobox-field.js",
2330
+ "symbol": "default"
2331
+ }
2332
+ },
2333
+ {
2334
+ "name": "maxlength",
2335
+ "description": "Passed on to the control as `maxlength`: the browser takes no more characters than this while the user types. `null` (the default) leaves the attribute out.",
2336
+ "value": {
2337
+ "type": "number | null"
2338
+ },
2339
+ "source": {
2340
+ "module": "./src/components/combobox-field/combobox-field.js",
2341
+ "symbol": "default"
2342
+ }
2343
+ },
2344
+ {
2345
+ "name": "minlength",
2346
+ "description": "Passed on as `minlength`: a text the user has typed that is shorter makes the field invalid. `null` (the default) leaves the attribute out.",
2347
+ "value": {
2348
+ "type": "number | null"
2349
+ },
2350
+ "source": {
2351
+ "module": "./src/components/combobox-field/combobox-field.js",
2352
+ "symbol": "default"
2353
+ }
2354
+ },
2295
2355
  {
2296
2356
  "name": "autocomplete",
2297
2357
  "description": "Passed on to the control as its `autocomplete` attribute (e.g. `'email'`, `'current-password'`, `'one-time-code'`). `null` (the default) leaves the attribute out. The same holds for the five properties below.",
@@ -2469,6 +2529,16 @@
2469
2529
  }
2470
2530
  }
2471
2531
  ],
2532
+ "slots": [
2533
+ {
2534
+ "name": "start",
2535
+ "description": "Content at the start of the control, in front of the text: an icon, a text, a button. An element of the page with `slot=\"start\"`."
2536
+ },
2537
+ {
2538
+ "name": "end",
2539
+ "description": "Content at the end of the control, after the text: a unit, a button. An element of the page with `slot=\"end\"`."
2540
+ }
2541
+ ],
2472
2542
  "events": [
2473
2543
  {
2474
2544
  "name": "input-change",
@@ -2503,6 +2573,26 @@
2503
2573
  "description": "Regular expression used as the input's `pattern` attribute. When `false` (the default), the `pattern` attribute is omitted entirely, so the field applies no pattern constraint.",
2504
2574
  "type": "string | false"
2505
2575
  },
2576
+ {
2577
+ "name": "clearable",
2578
+ "description": "Whether the control has a button that empties it. The button shows while the field has a value and is not disabled. Default `false`.",
2579
+ "type": "boolean"
2580
+ },
2581
+ {
2582
+ "name": "clearLabel",
2583
+ "description": "The name of that button for assistive technology. Default `'Clear'`.",
2584
+ "type": "string"
2585
+ },
2586
+ {
2587
+ "name": "maxlength",
2588
+ "description": "Passed on to the control as `maxlength`: the browser takes no more characters than this while the user types. `null` (the default) leaves the attribute out.",
2589
+ "type": "number | null"
2590
+ },
2591
+ {
2592
+ "name": "minlength",
2593
+ "description": "Passed on as `minlength`: a text the user has typed that is shorter makes the field invalid. `null` (the default) leaves the attribute out.",
2594
+ "type": "number | null"
2595
+ },
2506
2596
  {
2507
2597
  "name": "autocomplete",
2508
2598
  "description": "Passed on to the control as its `autocomplete` attribute (e.g. `'email'`, `'current-password'`, `'one-time-code'`). `null` (the default) leaves the attribute out. The same holds for the five properties below.",
@@ -2796,7 +2886,7 @@
2796
2886
  },
2797
2887
  {
2798
2888
  "name": "el-date-field",
2799
- "description": "A date, a time or both, entered in the control of the browser and picked in its picker. Extends\n`InputField` (and therefore `FormField`), inheriting the label / help / error / validation\nsurface and the look from `styles/native.css`.\n\nIt adds what a date needs and a text does not: the earliest and the latest value, and the step\nbetween two values. The value is text in the one format of the control, whatever the language of\nthe user, and the field takes over what the control makes of a value: `value` says what the form\nsubmits.\n\n---\n\n\n### **Events:**\n - **input-change** - Fired when the value changes: entered, picked, or set by a script. `detail` is the new value. Bubbles.\n\n### **Methods:**\n - **onFocus(): _void_** - Called when the input receives focus. Refreshes validation state.\n- **onBlur(): _void_** - Called when the input loses focus. Marks the field as touched and refreshes\nvalidation state.\n- **onChange(): _void_** - Called when the input value changes. Updates `value` and refreshes validation.\n\nA control that is empty is no change for a field without a value: `value` stays `null`. A key\nthat enters nothing (Shift, an arrow key) and the first key of a date leave the control empty.\nTaking that as the value `''` wrote it to the control as its default with the next render,\nand a control for a date or a time drops what the user has entered so far when its value is\nwritten: the first key was lost.\n- **clearInput(): _void_** - Clears the input value, refocuses it, and resets the touched state. The field follows the\ncontrol, as it does when the user deletes the text by hand: `value` is empty, `input-change`\nreports it, and `valid` is what the control says.",
2889
+ "description": "A date, a time or both, entered in the control of the browser and picked in its picker. Extends\n`InputField` (and therefore `FormField`), inheriting the label / help / error / validation\nsurface and the look from `styles/native.css`.\n\nIt adds what a date needs and a text does not: the earliest and the latest value, and the step\nbetween two values. The value is text in the one format of the control, whatever the language of\nthe user, and the field takes over what the control makes of a value: `value` says what the form\nsubmits.\n\n---\n\n\n### **Events:**\n - **input-change** - Fired when the value changes: entered, picked, or set by a script. `detail` is the new value. Bubbles.\n\n### **Methods:**\n - **onFocus(): _void_** - Called when the input receives focus. Refreshes validation state.\n- **onBlur(): _void_** - Called when the input loses focus. Marks the field as touched and refreshes\nvalidation state.\n- **onChange(): _void_** - Called when the input value changes. Updates `value` and refreshes validation.\n\nA control that is empty is no change for a field without a value: `value` stays `null`. A key\nthat enters nothing (Shift, an arrow key) and the first key of a date leave the control empty.\nTaking that as the value `''` wrote it to the control as its default with the next render,\nand a control for a date or a time drops what the user has entered so far when its value is\nwritten: the first key was lost.\n- **clearInput(): _void_** - Clears the input value, refocuses it, and resets the touched state. The field follows the\ncontrol, as it does when the user deletes the text by hand: `value` is empty, `input-change`\nreports it, and `valid` is what the control says.\n\n### **Slots:**\n - **start** - Content at the start of the control, in front of the text: an icon, a text, a button. An element of the page with `slot=\"start\"`.\n- **end** - Content at the end of the control, after the text: a unit, a button. An element of the page with `slot=\"end\"`.",
2800
2890
  "doc-url": "",
2801
2891
  "attributes": [
2802
2892
  {
@@ -2876,6 +2966,50 @@
2876
2966
  "symbol": "default"
2877
2967
  }
2878
2968
  },
2969
+ {
2970
+ "name": "clearable",
2971
+ "description": "Whether the control has a button that empties it. The button shows while the field has a value and is not disabled. Default `false`.",
2972
+ "value": {
2973
+ "type": "boolean"
2974
+ },
2975
+ "source": {
2976
+ "module": "./src/components/date-field/date-field.js",
2977
+ "symbol": "default"
2978
+ }
2979
+ },
2980
+ {
2981
+ "name": "clear-label",
2982
+ "description": "The name of that button for assistive technology. Default `'Clear'`.",
2983
+ "value": {
2984
+ "type": "string"
2985
+ },
2986
+ "source": {
2987
+ "module": "./src/components/date-field/date-field.js",
2988
+ "symbol": "default"
2989
+ }
2990
+ },
2991
+ {
2992
+ "name": "maxlength",
2993
+ "description": "Passed on to the control as `maxlength`: the browser takes no more characters than this while the user types. `null` (the default) leaves the attribute out.",
2994
+ "value": {
2995
+ "type": "number | null"
2996
+ },
2997
+ "source": {
2998
+ "module": "./src/components/date-field/date-field.js",
2999
+ "symbol": "default"
3000
+ }
3001
+ },
3002
+ {
3003
+ "name": "minlength",
3004
+ "description": "Passed on as `minlength`: a text the user has typed that is shorter makes the field invalid. `null` (the default) leaves the attribute out.",
3005
+ "value": {
3006
+ "type": "number | null"
3007
+ },
3008
+ "source": {
3009
+ "module": "./src/components/date-field/date-field.js",
3010
+ "symbol": "default"
3011
+ }
3012
+ },
2879
3013
  {
2880
3014
  "name": "autocomplete",
2881
3015
  "description": "Passed on to the control as its `autocomplete` attribute (e.g. `'email'`, `'current-password'`, `'one-time-code'`). `null` (the default) leaves the attribute out. The same holds for the five properties below.",
@@ -3053,6 +3187,16 @@
3053
3187
  }
3054
3188
  }
3055
3189
  ],
3190
+ "slots": [
3191
+ {
3192
+ "name": "start",
3193
+ "description": "Content at the start of the control, in front of the text: an icon, a text, a button. An element of the page with `slot=\"start\"`."
3194
+ },
3195
+ {
3196
+ "name": "end",
3197
+ "description": "Content at the end of the control, after the text: a unit, a button. An element of the page with `slot=\"end\"`."
3198
+ }
3199
+ ],
3056
3200
  "events": [
3057
3201
  {
3058
3202
  "name": "input-change",
@@ -3102,6 +3246,26 @@
3102
3246
  "description": "Regular expression used as the input's `pattern` attribute. When `false` (the default), the `pattern` attribute is omitted entirely, so the field applies no pattern constraint.",
3103
3247
  "type": "string | false"
3104
3248
  },
3249
+ {
3250
+ "name": "clearable",
3251
+ "description": "Whether the control has a button that empties it. The button shows while the field has a value and is not disabled. Default `false`.",
3252
+ "type": "boolean"
3253
+ },
3254
+ {
3255
+ "name": "clearLabel",
3256
+ "description": "The name of that button for assistive technology. Default `'Clear'`.",
3257
+ "type": "string"
3258
+ },
3259
+ {
3260
+ "name": "maxlength",
3261
+ "description": "Passed on to the control as `maxlength`: the browser takes no more characters than this while the user types. `null` (the default) leaves the attribute out.",
3262
+ "type": "number | null"
3263
+ },
3264
+ {
3265
+ "name": "minlength",
3266
+ "description": "Passed on as `minlength`: a text the user has typed that is shorter makes the field invalid. `null` (the default) leaves the attribute out.",
3267
+ "type": "number | null"
3268
+ },
3105
3269
  {
3106
3270
  "name": "autocomplete",
3107
3271
  "description": "Passed on to the control as its `autocomplete` attribute (e.g. `'email'`, `'current-password'`, `'one-time-code'`). `null` (the default) leaves the attribute out. The same holds for the five properties below.",
@@ -3193,7 +3357,7 @@
3193
3357
  },
3194
3358
  {
3195
3359
  "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>`.",
3360
+ "description": "Rows of a name and its value, for a settings page or the page of an entry: the address, the\nplan, the day it was created. The element is the native `<dl>`; the page writes the names as\n`<dt>` and the values as `<dd>` into it, as it would into a `<dl>`.\n\nIn a narrow place a name stands above its value. From a width of 30rem, which the list measures\non itself, the two stand side by side, and the values of all rows begin on one line. A row can\nend in an action: a `<dd data-action>` with a link or a button in it.\n\nPure presentation: the list runs no script of its own, so a server-rendered list is complete\nbefore the element takes over.\n\n---\n\n\n### **Slots:**\n - _default_ - The rows: for each one a `<dt>` with the name, a `<dd>` with the value (or several), and, to end the row in an action, a `<dd data-action>` with a link or a button.\n\n### **CSS Properties:**\n - **--el-description-list-term-width** - The width of the column of the names while names and values stand side by side. The gap to the values comes after it. Unset, the column is as wide as the longest name, and takes 40% of the list at most together with that gap. _(default: undefined)_\n- **--el-description-list-padding-block** - The room above and below a row. Unset, it is `--el-space-3`, and `0.75rem` without a theme. _(default: undefined)_\n- **--el-description-list-gap** - The gap between a name and its value while they stand side by side, and in front of an action. Unset, it is `--el-space-4`, and `1rem` without a theme. _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The `<dl>`.",
3197
3361
  "doc-url": "",
3198
3362
  "attributes": [],
3199
3363
  "slots": [
@@ -3661,7 +3825,7 @@
3661
3825
  },
3662
3826
  {
3663
3827
  "name": "el-file-field",
3664
- "description": "One or several files for a form. Renders a native `<input type=\"file\">`, so the dialog of the\nsystem, a drop onto the control, the keyboard and the form submission are the ones of the\nbrowser. Extends `FormField` and inherits its label / help / error / required surface.\n\nThe files come from the user. A script cannot choose one, the browser does not allow that; it can\ntake the choice away with an empty `value`.\n\n---\n\n\n### **Events:**\n - **input-change** - Fired when the user has chosen files, and when the choice was taken away. `detail` is the list of the names; the files are in `files` of the element. Bubbles.\n\n### **Methods:**\n - **onChange(): _void_** - The user has chosen files, or has taken the choice away in the dialog.\n- **onFocus(): _void_** - Called when the input receives focus. Refreshes validation state.\n- **onBlur(): _void_** - Called when the input loses focus. Marks the field as touched and refreshes\nvalidation state.\n- **clearInput(): _void_** - Clears the input value, refocuses it, and resets the touched state. The field follows the\ncontrol, as it does when the user deletes the text by hand: `value` is empty, `input-change`\nreports it, and `valid` is what the control says.",
3828
+ "description": "One or several files for a form. Renders a native `<input type=\"file\">`, so the dialog of the\nsystem, a drop onto the control, the keyboard and the form submission are the ones of the\nbrowser. Extends `FormField` and inherits its label / help / error / required surface.\n\nThe files come from the user. A script cannot choose one, the browser does not allow that; it can\ntake the choice away with an empty `value`.\n\nWith `drop-message` the field shows an area around its control to drop a file onto, with that\ntext in it. The area looks different while a dragged file is over it, a click on it opens the\ndialog, and a drop is a choice as one in the dialog is: the control has the files, and the same\nevents are fired.\n\n---\n\n\n### **Events:**\n - **input-change** - Fired when the user has chosen files, in the dialog or with a drop, and when the choice was taken away. `detail` is the list of the names; the files are in `files` of the element. Bubbles.\n\n### **Methods:**\n - **onChange(): _void_** - The user has chosen files, or has taken the choice away in the dialog.\n- **onFocus(): _void_** - Called when the input receives focus. Refreshes validation state.\n- **onBlur(): _void_** - Called when the input loses focus. Marks the field as touched and refreshes\nvalidation state.\n- **clearInput(): _void_** - Clears the input value, refocuses it, and resets the touched state. The field follows the\ncontrol, as it does when the user deletes the text by hand: `value` is empty, `input-change`\nreports it, and `valid` is what the control says.",
3665
3829
  "doc-url": "",
3666
3830
  "attributes": [
3667
3831
  {
@@ -3719,6 +3883,17 @@
3719
3883
  "symbol": "default"
3720
3884
  }
3721
3885
  },
3886
+ {
3887
+ "name": "drop-message",
3888
+ "description": "The text of an area to drop a file onto: \"Drop the list here, or choose it\". With one the field shows the area, around its control. Default `''`.",
3889
+ "value": {
3890
+ "type": "string"
3891
+ },
3892
+ "source": {
3893
+ "module": "./src/components/file-field/file-field.js",
3894
+ "symbol": "default"
3895
+ }
3896
+ },
3722
3897
  {
3723
3898
  "name": "name",
3724
3899
  "description": "Form name for the underlying input.",
@@ -3823,7 +3998,7 @@
3823
3998
  {
3824
3999
  "name": "input-change",
3825
4000
  "type": "CustomEvent<string[]>",
3826
- "description": "Fired when the user has chosen files, and when the choice was taken away. `detail` is the list of the names; the files are in `files` of the element. Bubbles."
4001
+ "description": "Fired when the user has chosen files, in the dialog or with a drop, and when the choice was taken away. `detail` is the list of the names; the files are in `files` of the element. Bubbles."
3827
4002
  }
3828
4003
  ],
3829
4004
  "js": {
@@ -3857,6 +4032,11 @@
3857
4032
  "description": "Size of the control: its height, its padding and its font size. Default `'medium'`. Reflected to the `size` attribute. It shows once the control is decorated (`styles/native.css`); a control with the look of the browser keeps its size.",
3858
4033
  "type": "'small'|'medium'|'large'"
3859
4034
  },
4035
+ {
4036
+ "name": "dropMessage",
4037
+ "description": "The text of an area to drop a file onto: \"Drop the list here, or choose it\". With one the field shows the area, around its control. Default `''`.",
4038
+ "type": "string"
4039
+ },
3860
4040
  {
3861
4041
  "name": "name",
3862
4042
  "description": "Form name for the underlying input.",
@@ -3907,7 +4087,7 @@
3907
4087
  {
3908
4088
  "name": "input-change",
3909
4089
  "type": "CustomEvent<string[]>",
3910
- "description": "Fired when the user has chosen files, and when the choice was taken away. `detail` is the list of the names; the files are in `files` of the element. Bubbles."
4090
+ "description": "Fired when the user has chosen files, in the dialog or with a drop, and when the choice was taken away. `detail` is the list of the names; the files are in `files` of the element. Bubbles."
3911
4091
  }
3912
4092
  ]
3913
4093
  },
@@ -4107,7 +4287,7 @@
4107
4287
  },
4108
4288
  {
4109
4289
  "name": "el-input-field",
4110
- "description": "Native `<input>` wrapper with label, help text, validation feedback (visual checkmark /\ncross indicators) and ARIA wiring. Extends `FormField` and inherits its label / help /\nerror / required surface.\n\n---\n\n\n### **Events:**\n - **input-change** - Fired when the input's value changes. `detail` is the new value. Bubbles.\n\n### **Methods:**\n - **onFocus(): _void_** - Called when the input receives focus. Refreshes validation state.\n- **onBlur(): _void_** - Called when the input loses focus. Marks the field as touched and refreshes\nvalidation state.\n- **onChange(): _void_** - Called when the input value changes. Updates `value` and refreshes validation.\n\nA control that is empty is no change for a field without a value: `value` stays `null`. A key\nthat enters nothing (Shift, an arrow key) and the first key of a date leave the control empty.\nTaking that as the value `''` wrote it to the control as its default with the next render,\nand a control for a date or a time drops what the user has entered so far when its value is\nwritten: the first key was lost.\n- **clearInput(): _void_** - Clears the input value, refocuses it, and resets the touched state. The field follows the\ncontrol, as it does when the user deletes the text by hand: `value` is empty, `input-change`\nreports it, and `valid` is what the control says.",
4290
+ "description": "Native `<input>` wrapper with label, help text, validation feedback (visual checkmark /\ncross indicators) and ARIA wiring. Extends `FormField` and inherits its label / help /\nerror / required surface.\n\nThe page can put content at the start and at the end of the control: an element with\n`slot=\"start\"` or `slot=\"end\"` among the children of the field. The field has no shadow root,\nso these are no slots of the platform: the field takes the elements into its control when it\nrenders. And `clearable` adds a button that empties the field.\n\n---\n\n\n### **Events:**\n - **input-change** - Fired when the input's value changes. `detail` is the new value. Bubbles.\n\n### **Methods:**\n - **onFocus(): _void_** - Called when the input receives focus. Refreshes validation state.\n- **onBlur(): _void_** - Called when the input loses focus. Marks the field as touched and refreshes\nvalidation state.\n- **onChange(): _void_** - Called when the input value changes. Updates `value` and refreshes validation.\n\nA control that is empty is no change for a field without a value: `value` stays `null`. A key\nthat enters nothing (Shift, an arrow key) and the first key of a date leave the control empty.\nTaking that as the value `''` wrote it to the control as its default with the next render,\nand a control for a date or a time drops what the user has entered so far when its value is\nwritten: the first key was lost.\n- **clearInput(): _void_** - Clears the input value, refocuses it, and resets the touched state. The field follows the\ncontrol, as it does when the user deletes the text by hand: `value` is empty, `input-change`\nreports it, and `valid` is what the control says.\n\n### **Slots:**\n - **start** - Content at the start of the control, in front of the text: an icon, a text, a button. An element of the page with `slot=\"start\"`.\n- **end** - Content at the end of the control, after the text: a unit, a button. An element of the page with `slot=\"end\"`.",
4111
4291
  "doc-url": "",
4112
4292
  "attributes": [
4113
4293
  {
@@ -4154,6 +4334,50 @@
4154
4334
  "symbol": "default"
4155
4335
  }
4156
4336
  },
4337
+ {
4338
+ "name": "clearable",
4339
+ "description": "Whether the control has a button that empties it. The button shows while the field has a value and is not disabled. Default `false`.",
4340
+ "value": {
4341
+ "type": "boolean"
4342
+ },
4343
+ "source": {
4344
+ "module": "./src/components/input-field/input-field.js",
4345
+ "symbol": "default"
4346
+ }
4347
+ },
4348
+ {
4349
+ "name": "clear-label",
4350
+ "description": "The name of that button for assistive technology. Default `'Clear'`.",
4351
+ "value": {
4352
+ "type": "string"
4353
+ },
4354
+ "source": {
4355
+ "module": "./src/components/input-field/input-field.js",
4356
+ "symbol": "default"
4357
+ }
4358
+ },
4359
+ {
4360
+ "name": "maxlength",
4361
+ "description": "Passed on to the control as `maxlength`: the browser takes no more characters than this while the user types. `null` (the default) leaves the attribute out.",
4362
+ "value": {
4363
+ "type": "number | null"
4364
+ },
4365
+ "source": {
4366
+ "module": "./src/components/input-field/input-field.js",
4367
+ "symbol": "default"
4368
+ }
4369
+ },
4370
+ {
4371
+ "name": "minlength",
4372
+ "description": "Passed on as `minlength`: a text the user has typed that is shorter makes the field invalid. `null` (the default) leaves the attribute out.",
4373
+ "value": {
4374
+ "type": "number | null"
4375
+ },
4376
+ "source": {
4377
+ "module": "./src/components/input-field/input-field.js",
4378
+ "symbol": "default"
4379
+ }
4380
+ },
4157
4381
  {
4158
4382
  "name": "autocomplete",
4159
4383
  "description": "Passed on to the control as its `autocomplete` attribute (e.g. `'email'`, `'current-password'`, `'one-time-code'`). `null` (the default) leaves the attribute out. The same holds for the five properties below.",
@@ -4331,6 +4555,16 @@
4331
4555
  }
4332
4556
  }
4333
4557
  ],
4558
+ "slots": [
4559
+ {
4560
+ "name": "start",
4561
+ "description": "Content at the start of the control, in front of the text: an icon, a text, a button. An element of the page with `slot=\"start\"`."
4562
+ },
4563
+ {
4564
+ "name": "end",
4565
+ "description": "Content at the end of the control, after the text: a unit, a button. An element of the page with `slot=\"end\"`."
4566
+ }
4567
+ ],
4334
4568
  "events": [
4335
4569
  {
4336
4570
  "name": "input-change",
@@ -4360,6 +4594,26 @@
4360
4594
  "description": "Regular expression used as the input's `pattern` attribute. When `false` (the default), the `pattern` attribute is omitted entirely, so the field applies no pattern constraint.",
4361
4595
  "type": "string | false"
4362
4596
  },
4597
+ {
4598
+ "name": "clearable",
4599
+ "description": "Whether the control has a button that empties it. The button shows while the field has a value and is not disabled. Default `false`.",
4600
+ "type": "boolean"
4601
+ },
4602
+ {
4603
+ "name": "clearLabel",
4604
+ "description": "The name of that button for assistive technology. Default `'Clear'`.",
4605
+ "type": "string"
4606
+ },
4607
+ {
4608
+ "name": "maxlength",
4609
+ "description": "Passed on to the control as `maxlength`: the browser takes no more characters than this while the user types. `null` (the default) leaves the attribute out.",
4610
+ "type": "number | null"
4611
+ },
4612
+ {
4613
+ "name": "minlength",
4614
+ "description": "Passed on as `minlength`: a text the user has typed that is shorter makes the field invalid. `null` (the default) leaves the attribute out.",
4615
+ "type": "number | null"
4616
+ },
4363
4617
  {
4364
4618
  "name": "autocomplete",
4365
4619
  "description": "Passed on to the control as its `autocomplete` attribute (e.g. `'email'`, `'current-password'`, `'one-time-code'`). `null` (the default) leaves the attribute out. The same holds for the five properties below.",
@@ -4589,7 +4843,7 @@
4589
4843
  },
4590
4844
  {
4591
4845
  "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.",
4846
+ "description": "One row of an `el-list`. It has the parts a row has everywhere: something at the start (an icon,\nan avatar), a title, a line under it, something at the end (a value, a count, a chevron), and a\ncontrol of its own after that.\n\nWith `href` the row is a link as a whole: the title is the link, and its target is the whole\nrow. What is slotted into `action` stays a target of its own.\n\nPure presentation: the row runs no script of its own.\n\n---\n\n\n### **Slots:**\n - _default_ - The title of the row.\n- **description** - The line under the title.\n- **start** - What stands in front of the texts: an icon, an avatar. The texts of all rows of a list begin after the widest start.\n- **end** - What stands at the end of the row and belongs to it: a value, a count, a chevron. In a row that is a link it is part of the target of the link.\n- **action** - A control at the very end: a button, a switch, a menu. In a row that is a link it lies on top of the link and is a target of its own.\n\n### **CSS Properties:**\n - **--el-list-padding-inline** - The padding of the row at its start and its end. Unset, it is `--el-space-4`, and `1rem` without a theme. _(default: undefined)_\n- **--el-list-gap** - The gap between the start, the texts, the end and the control of the row. Unset, it is `--el-space-3`, and `0.75rem` without a theme. _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The row: an item of the list.\n- **mark** - The dot of `mark`, in the padding at the start of the row.\n- **start** - The region of the `start` slot.\n- **text** - The title and the line under it.\n- **title** - The title: an `<a>` with `href`, a `<span>` without.\n- **description** - The region of the `description` slot.\n- **end** - The region of the `end` slot.\n- **action** - The region of the `action` slot.",
4593
4847
  "doc-url": "",
4594
4848
  "attributes": [
4595
4849
  {
@@ -4724,7 +4978,7 @@
4724
4978
  },
4725
4979
  {
4726
4980
  "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.",
4981
+ "description": "A list of rows: messages, articles, files, the entries of a settings page. The list is the\nsurface and the list for assistive technology; every `el-list-item` slotted into it is one row.\nIt gives its rows one density, one line between two of them and one place where their texts\nbegin, whatever stands at the start of a row.\n\nPure presentation: the list runs no script of its own, so a server-rendered list is complete\nbefore the element takes over.\n\n---\n\n\n### **Slots:**\n - _default_ - The rows: `el-list-item` elements.\n\n### **CSS Properties:**\n - **--el-list-padding-inline** - The padding of a row at its start and its end. Unset, it is `--el-space-4`, and `1rem` without a theme. Read by the rows, so it can be set on the list or for the page. _(default: undefined)_\n- **--el-list-gap** - The gap between the start, the texts, the end and the control of a row. Unset, it is `--el-space-3`, and `0.75rem` without a theme. Read by the rows as well. _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The list (`role=\"list\"`) and its surface.",
4728
4982
  "doc-url": "",
4729
4983
  "attributes": [
4730
4984
  {
@@ -4834,7 +5088,7 @@
4834
5088
  },
4835
5089
  {
4836
5090
  "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.",
5091
+ "description": "One entry of an `el-menu`: an action, or a link with an address. A menu item to assistive\ntechnology (`role=\"menuitem\"`). The menu moves the focus of the keyboard to it, so it is no stop\nof the Tab key itself.\n\nChoosing an entry is a click on it: listen for `click` on the entry, or for `menu-select` on the\nmenu, which names the entry and its `value`.\n\nAn entry can set something instead of doing something. With `type=\"checkbox\"` it is on or off\n(`role=\"menuitemcheckbox\"`), with `type=\"radio\"` it is one of several of which one is chosen\n(`role=\"menuitemradio\"`), and `checked` is its state, which it says (`aria-checked`) and shows\nwith a mark in front of its text. The page sets `checked`: the entry does not change it when\nit is chosen.\n\n---\n\n\n### **Methods:**\n - **focus(options: _FocusOptions_)** - Puts the focus on the entry: on the control inside of it.\n\n### **Slots:**\n - _default_ - The text of the entry.\n- **icon** - An icon in front of the text: a decoration, the text is the name.\n\n### **CSS Parts:**\n - **base** - The entry: a `<button>`, or an `<a>` with `href`.\n- **mark** - The place of the mark of an entry with a `type`: a check, or a dot. It is there while the entry is not checked as well.\n- **icon** - The place of the icon.\n- **label** - The text of the entry.",
4838
5092
  "doc-url": "",
4839
5093
  "attributes": [
4840
5094
  {
@@ -4892,6 +5146,28 @@
4892
5146
  "symbol": "default"
4893
5147
  }
4894
5148
  },
5149
+ {
5150
+ "name": "type",
5151
+ "description": "What the entry is: an action or a link (`'normal'`), an entry that is on or off (`'checkbox'`), or one of several of which one is chosen (`'radio'`). Default `'normal'`.",
5152
+ "value": {
5153
+ "type": "'normal'|'checkbox'|'radio'"
5154
+ },
5155
+ "source": {
5156
+ "module": "./src/components/menu-item/menu-item.js",
5157
+ "symbol": "default"
5158
+ }
5159
+ },
5160
+ {
5161
+ "name": "checked",
5162
+ "description": "Whether an entry with the `type` `checkbox` is on, or one with the `type` `radio` is the chosen one. The page sets it. Default `false`.",
5163
+ "value": {
5164
+ "type": "boolean"
5165
+ },
5166
+ "source": {
5167
+ "module": "./src/components/menu-item/menu-item.js",
5168
+ "symbol": "default"
5169
+ }
5170
+ },
4895
5171
  {
4896
5172
  "name": "variant",
4897
5173
  "description": "The variant of the entry: `danger` for something that cannot be undone. Default `'neutral'`. Reflected to the `variant` attribute.",
@@ -4942,6 +5218,16 @@
4942
5218
  "description": "Whether the entry cannot be chosen. The keyboard still gets to it. Default `false`.",
4943
5219
  "type": "boolean"
4944
5220
  },
5221
+ {
5222
+ "name": "type",
5223
+ "description": "What the entry is: an action or a link (`'normal'`), an entry that is on or off (`'checkbox'`), or one of several of which one is chosen (`'radio'`). Default `'normal'`.",
5224
+ "type": "'normal'|'checkbox'|'radio'"
5225
+ },
5226
+ {
5227
+ "name": "checked",
5228
+ "description": "Whether an entry with the `type` `checkbox` is on, or one with the `type` `radio` is the chosen one. The page sets it. Default `false`.",
5229
+ "type": "boolean"
5230
+ },
4945
5231
  {
4946
5232
  "name": "variant",
4947
5233
  "description": "The variant of the entry: `danger` for something that cannot be undone. Default `'neutral'`. Reflected to the `variant` attribute.",
@@ -4957,7 +5243,7 @@
4957
5243
  },
4958
5244
  {
4959
5245
  "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.",
5246
+ "description": "A menu button: a button that opens a list of actions. \"Edit, Duplicate, Delete\" for a row of a\ntable, the account in a header, \"More\" at the end of a toolbar. The button is what the page\nputs into the `trigger` slot, the actions are `el-menu-item` elements.\n\nTo assistive technology it is a menu (`role=\"menu\"`) of menu items, and the button says that it\nopens one and whether it is open. The keyboard moves through the entries with the arrow keys,\n`Home`, `End` and the first letter of an entry. `Escape` closes the menu and gives the focus\nback to the button, the Tab key closes it and moves on.\n\nThe panel is a native popover: it is in the top layer, so nothing clips it and it moves nothing\non the page. It is placed at the button, at the side that `placement` names, on the other side\nwithout room there, and never outside of the viewport. A press beside it closes it.\n\nChoosing an entry closes the menu and fires `menu-select`.\n\nOne menu can serve many things, the rows of a list: `showAt()` opens it at a point of the\nviewport, for a right click or a long press, or at an element of the page, a button of a row.\nWhat it was opened for is the `opener`, which gets the focus back and which `menu-select`\nnames.\n\n---\n\n\n### **Events:**\n - **menu-show** - Fired when the menu has opened.\n- **menu-hide** - Fired when the menu has closed.\n- **menu-select** - Fired when the user has chosen an entry: the `el-menu-item` is in `detail.item`, its `value` in `detail.value`, and what the menu was opened for in `detail.opener`. The menu closes after it.\n\n### **Methods:**\n - **show(): _void_** - Opens the menu, with the focus on its first entry.\n- **showAt(place: _Element | { x: number, y: number }_, opener: _Element_): _void_** - Opens the menu somewhere else than at its own button: one menu for the rows of a list.\n\nAt a point of the viewport, from a `contextmenu` event or a long press: the corner of the\nmenu is at the point, and the menu stays inside of the viewport. Or at an element of the\npage, the button of a row: the menu is placed at it as at its own button.\n\n`opener` is what the menu is opened for. It gets the focus back when the menu closes, and\n`menu-select` names it (`detail.opener`). Without one it is the element the menu is placed\nat.\n\nCalled with the click of a press on the element the menu is open at, it closes the menu:\nthe button of a row closes what it has opened, with the listener that opens it.\n- **hide(): _void_** - Closes the menu.\n- **toggle(): _void_** - Opens the menu when it is closed, and closes it when it is open.\n\n### **Slots:**\n - _default_ - The entries: `el-menu-item` elements, in `el-menu-group` elements where they are divided into groups. An `el-divider` is a line between two of them.\n- **trigger** - The button that opens the menu. It gets `aria-haspopup=\"menu\"` and `aria-expanded`.\n\n### **CSS Parts:**\n - **trigger** - Forwarded onto the `trigger` slot.\n- **panel** - The floating panel, which is the menu (`role=\"menu\"`): background, border, radius, elevation, width.",
4961
5247
  "doc-url": "",
4962
5248
  "attributes": [
4963
5249
  {
@@ -5439,7 +5725,7 @@
5439
5725
  },
5440
5726
  {
5441
5727
  "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.",
5728
+ "description": "A one-time code: the short code of a second factor that the user gets by SMS, by mail or from an\napp. Extends `InputField` (and therefore `FormField`), inheriting the label / help / error /\nvalidation surface and the look from `styles/native.css`.\n\nIt is one native `<input>`, not one per digit: the code from an SMS, a paste, a password manager\nand a screen reader all work on one control. The field sets what such an input needs\n(`autocomplete`, `inputmode`, a pattern of `length` digits), takes the spaces and the hyphens out\nof a code that is entered the way a mail shows it, takes no further key once the code is full, and\nsays when the code is complete.\n\n---\n\n\n### **Events:**\n - **input-change** - Fired when the value changes. `detail` is the new value. Bubbles.\n- **input-complete** - Fired when the user has entered a code of full length that is valid: once, and again after the code was changed and completed again. Not fired for a value a script sets. `detail` is the code. Bubbles.\n\n### **Methods:**\n - **onChange(): _void_** - Called when the input value changes. Updates `value` and refreshes validation.\n\nA control that is empty is no change for a field without a value: `value` stays `null`. A key\nthat enters nothing (Shift, an arrow key) and the first key of a date leave the control empty.\nTaking that as the value `''` wrote it to the control as its default with the next render,\nand a control for a date or a time drops what the user has entered so far when its value is\nwritten: the first key was lost.\n- **onFocus(): _void_** - Called when the input receives focus. Refreshes validation state.\n- **onBlur(): _void_** - Called when the input loses focus. Marks the field as touched and refreshes\nvalidation state.\n- **clearInput(): _void_** - Clears the input value, refocuses it, and resets the touched state. The field follows the\ncontrol, as it does when the user deletes the text by hand: `value` is empty, `input-change`\nreports it, and `valid` is what the control says.\n\n### **Slots:**\n - **start** - Content at the start of the control, in front of the text: an icon, a text, a button. An element of the page with `slot=\"start\"`.\n- **end** - Content at the end of the control, after the text: a unit, a button. An element of the page with `slot=\"end\"`.",
5443
5729
  "doc-url": "",
5444
5730
  "attributes": [
5445
5731
  {
@@ -5519,6 +5805,50 @@
5519
5805
  "symbol": "default"
5520
5806
  }
5521
5807
  },
5808
+ {
5809
+ "name": "clearable",
5810
+ "description": "Whether the control has a button that empties it. The button shows while the field has a value and is not disabled. Default `false`.",
5811
+ "value": {
5812
+ "type": "boolean"
5813
+ },
5814
+ "source": {
5815
+ "module": "./src/components/otp-field/otp-field.js",
5816
+ "symbol": "default"
5817
+ }
5818
+ },
5819
+ {
5820
+ "name": "clear-label",
5821
+ "description": "The name of that button for assistive technology. Default `'Clear'`.",
5822
+ "value": {
5823
+ "type": "string"
5824
+ },
5825
+ "source": {
5826
+ "module": "./src/components/otp-field/otp-field.js",
5827
+ "symbol": "default"
5828
+ }
5829
+ },
5830
+ {
5831
+ "name": "maxlength",
5832
+ "description": "Passed on to the control as `maxlength`: the browser takes no more characters than this while the user types. `null` (the default) leaves the attribute out.",
5833
+ "value": {
5834
+ "type": "number | null"
5835
+ },
5836
+ "source": {
5837
+ "module": "./src/components/otp-field/otp-field.js",
5838
+ "symbol": "default"
5839
+ }
5840
+ },
5841
+ {
5842
+ "name": "minlength",
5843
+ "description": "Passed on as `minlength`: a text the user has typed that is shorter makes the field invalid. `null` (the default) leaves the attribute out.",
5844
+ "value": {
5845
+ "type": "number | null"
5846
+ },
5847
+ "source": {
5848
+ "module": "./src/components/otp-field/otp-field.js",
5849
+ "symbol": "default"
5850
+ }
5851
+ },
5522
5852
  {
5523
5853
  "name": "enterkeyhint",
5524
5854
  "description": "Passed on as `enterkeyhint`: the label of the enter key on an on-screen keyboard (e.g. `'next'`, `'send'`).",
@@ -5674,6 +6004,16 @@
5674
6004
  }
5675
6005
  }
5676
6006
  ],
6007
+ "slots": [
6008
+ {
6009
+ "name": "start",
6010
+ "description": "Content at the start of the control, in front of the text: an icon, a text, a button. An element of the page with `slot=\"start\"`."
6011
+ },
6012
+ {
6013
+ "name": "end",
6014
+ "description": "Content at the end of the control, after the text: a unit, a button. An element of the page with `slot=\"end\"`."
6015
+ }
6016
+ ],
5677
6017
  "events": [
5678
6018
  {
5679
6019
  "name": "input-change",
@@ -5723,6 +6063,26 @@
5723
6063
  "description": "Placeholder text shown while the input is empty.",
5724
6064
  "type": "string"
5725
6065
  },
6066
+ {
6067
+ "name": "clearable",
6068
+ "description": "Whether the control has a button that empties it. The button shows while the field has a value and is not disabled. Default `false`.",
6069
+ "type": "boolean"
6070
+ },
6071
+ {
6072
+ "name": "clearLabel",
6073
+ "description": "The name of that button for assistive technology. Default `'Clear'`.",
6074
+ "type": "string"
6075
+ },
6076
+ {
6077
+ "name": "maxlength",
6078
+ "description": "Passed on to the control as `maxlength`: the browser takes no more characters than this while the user types. `null` (the default) leaves the attribute out.",
6079
+ "type": "number | null"
6080
+ },
6081
+ {
6082
+ "name": "minlength",
6083
+ "description": "Passed on as `minlength`: a text the user has typed that is shorter makes the field invalid. `null` (the default) leaves the attribute out.",
6084
+ "type": "number | null"
6085
+ },
5726
6086
  {
5727
6087
  "name": "enterkeyhint",
5728
6088
  "description": "Passed on as `enterkeyhint`: the label of the enter key on an on-screen keyboard (e.g. `'next'`, `'send'`).",
@@ -6033,7 +6393,7 @@
6033
6393
  },
6034
6394
  {
6035
6395
  "name": "el-password-field",
6036
- "description": "A password input with an optional show/hide reveal toggle. Extends `InputField` (and therefore\n`FormField`), inheriting the label / help / error / validation surface; it pins the input `type`\nto `password` and flips it to `text` while revealed.\n\n---\n\n\n### **Events:**\n - **input-change** - Fired when the input's value changes. `detail` is the new value. Bubbles.\n\n### **Methods:**\n - **togglePasswordVisibility(): _void_** - Toggles between masked (`password`) and revealed (`text`) input.\n- **onFocus(): _void_** - Called when the input receives focus. Refreshes validation state.\n- **onBlur(): _void_** - Called when the input loses focus. Marks the field as touched and refreshes\nvalidation state.\n- **onChange(): _void_** - Called when the input value changes. Updates `value` and refreshes validation.\n\nA control that is empty is no change for a field without a value: `value` stays `null`. A key\nthat enters nothing (Shift, an arrow key) and the first key of a date leave the control empty.\nTaking that as the value `''` wrote it to the control as its default with the next render,\nand a control for a date or a time drops what the user has entered so far when its value is\nwritten: the first key was lost.\n- **clearInput(): _void_** - Clears the input value, refocuses it, and resets the touched state. The field follows the\ncontrol, as it does when the user deletes the text by hand: `value` is empty, `input-change`\nreports it, and `valid` is what the control says.",
6396
+ "description": "A password input with an optional show/hide reveal toggle. Extends `InputField` (and therefore\n`FormField`), inheriting the label / help / error / validation surface; it pins the input `type`\nto `password` and flips it to `text` while revealed.\n\n---\n\n\n### **Events:**\n - **input-change** - Fired when the input's value changes. `detail` is the new value. Bubbles.\n\n### **Methods:**\n - **togglePasswordVisibility(): _void_** - Toggles between masked (`password`) and revealed (`text`) input.\n- **onFocus(): _void_** - Called when the input receives focus. Refreshes validation state.\n- **onBlur(): _void_** - Called when the input loses focus. Marks the field as touched and refreshes\nvalidation state.\n- **onChange(): _void_** - Called when the input value changes. Updates `value` and refreshes validation.\n\nA control that is empty is no change for a field without a value: `value` stays `null`. A key\nthat enters nothing (Shift, an arrow key) and the first key of a date leave the control empty.\nTaking that as the value `''` wrote it to the control as its default with the next render,\nand a control for a date or a time drops what the user has entered so far when its value is\nwritten: the first key was lost.\n- **clearInput(): _void_** - Clears the input value, refocuses it, and resets the touched state. The field follows the\ncontrol, as it does when the user deletes the text by hand: `value` is empty, `input-change`\nreports it, and `valid` is what the control says.\n\n### **Slots:**\n - **start** - Content at the start of the control, in front of the text: an icon, a text, a button. An element of the page with `slot=\"start\"`.\n- **end** - Content at the end of the control, after the text: a unit, a button. An element of the page with `slot=\"end\"`.",
6037
6397
  "doc-url": "",
6038
6398
  "attributes": [
6039
6399
  {
@@ -6124,6 +6484,50 @@
6124
6484
  "symbol": "default"
6125
6485
  }
6126
6486
  },
6487
+ {
6488
+ "name": "clearable",
6489
+ "description": "Whether the control has a button that empties it. The button shows while the field has a value and is not disabled. Default `false`.",
6490
+ "value": {
6491
+ "type": "boolean"
6492
+ },
6493
+ "source": {
6494
+ "module": "./src/components/password-field/password-field.js",
6495
+ "symbol": "default"
6496
+ }
6497
+ },
6498
+ {
6499
+ "name": "clear-label",
6500
+ "description": "The name of that button for assistive technology. Default `'Clear'`.",
6501
+ "value": {
6502
+ "type": "string"
6503
+ },
6504
+ "source": {
6505
+ "module": "./src/components/password-field/password-field.js",
6506
+ "symbol": "default"
6507
+ }
6508
+ },
6509
+ {
6510
+ "name": "maxlength",
6511
+ "description": "Passed on to the control as `maxlength`: the browser takes no more characters than this while the user types. `null` (the default) leaves the attribute out.",
6512
+ "value": {
6513
+ "type": "number | null"
6514
+ },
6515
+ "source": {
6516
+ "module": "./src/components/password-field/password-field.js",
6517
+ "symbol": "default"
6518
+ }
6519
+ },
6520
+ {
6521
+ "name": "minlength",
6522
+ "description": "Passed on as `minlength`: a text the user has typed that is shorter makes the field invalid. `null` (the default) leaves the attribute out.",
6523
+ "value": {
6524
+ "type": "number | null"
6525
+ },
6526
+ "source": {
6527
+ "module": "./src/components/password-field/password-field.js",
6528
+ "symbol": "default"
6529
+ }
6530
+ },
6127
6531
  {
6128
6532
  "name": "autocomplete",
6129
6533
  "description": "Passed on to the control as its `autocomplete` attribute (e.g. `'email'`, `'current-password'`, `'one-time-code'`). `null` (the default) leaves the attribute out. The same holds for the five properties below.",
@@ -6301,6 +6705,16 @@
6301
6705
  }
6302
6706
  }
6303
6707
  ],
6708
+ "slots": [
6709
+ {
6710
+ "name": "start",
6711
+ "description": "Content at the start of the control, in front of the text: an icon, a text, a button. An element of the page with `slot=\"start\"`."
6712
+ },
6713
+ {
6714
+ "name": "end",
6715
+ "description": "Content at the end of the control, after the text: a unit, a button. An element of the page with `slot=\"end\"`."
6716
+ }
6717
+ ],
6304
6718
  "events": [
6305
6719
  {
6306
6720
  "name": "input-change",
@@ -6350,6 +6764,26 @@
6350
6764
  "description": "Regular expression used as the input's `pattern` attribute. When `false` (the default), the `pattern` attribute is omitted entirely, so the field applies no pattern constraint.",
6351
6765
  "type": "string | false"
6352
6766
  },
6767
+ {
6768
+ "name": "clearable",
6769
+ "description": "Whether the control has a button that empties it. The button shows while the field has a value and is not disabled. Default `false`.",
6770
+ "type": "boolean"
6771
+ },
6772
+ {
6773
+ "name": "clearLabel",
6774
+ "description": "The name of that button for assistive technology. Default `'Clear'`.",
6775
+ "type": "string"
6776
+ },
6777
+ {
6778
+ "name": "maxlength",
6779
+ "description": "Passed on to the control as `maxlength`: the browser takes no more characters than this while the user types. `null` (the default) leaves the attribute out.",
6780
+ "type": "number | null"
6781
+ },
6782
+ {
6783
+ "name": "minlength",
6784
+ "description": "Passed on as `minlength`: a text the user has typed that is shorter makes the field invalid. `null` (the default) leaves the attribute out.",
6785
+ "type": "number | null"
6786
+ },
6353
6787
  {
6354
6788
  "name": "autocomplete",
6355
6789
  "description": "Passed on to the control as its `autocomplete` attribute (e.g. `'email'`, `'current-password'`, `'one-time-code'`). `null` (the default) leaves the attribute out. The same holds for the five properties below.",
@@ -6716,9 +7150,9 @@
6716
7150
  "attributes": [
6717
7151
  {
6718
7152
  "name": "options",
6719
- "description": "Options to render. Accepts plain strings (`['Yes', 'No']`) or option objects (`[{ value, label, disabled? }]`). Strings are used as both value and label.",
7153
+ "description": "Options to render. Accepts plain strings (`['Yes', 'No']`) or option objects (`[{ value, label, disabled? }]`). Strings are used as both value and label. An object can name a `color`, which is drawn as a dot in front of the label, and an `icon`, the address of an SVG symbol (`'#tag'`, `'/icons.svg#tag'`), which is drawn there as well. Both are decorations: the label stays the name of the option.",
6720
7154
  "value": {
6721
- "type": "Array<string | { value: string, label?: string, disabled?: boolean }>"
7155
+ "type": "Array<string | { value: string, label?: string, disabled?: boolean, color?: string, icon?: string }>"
6722
7156
  },
6723
7157
  "source": {
6724
7158
  "module": "./src/components/radio-field/radio-field.js",
@@ -6852,8 +7286,8 @@
6852
7286
  },
6853
7287
  {
6854
7288
  "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 }>"
7289
+ "description": "Options to render. Accepts plain strings (`['Yes', 'No']`) or option objects (`[{ value, label, disabled? }]`). Strings are used as both value and label. An object can name a `color`, which is drawn as a dot in front of the label, and an `icon`, the address of an SVG symbol (`'#tag'`, `'/icons.svg#tag'`), which is drawn there as well. Both are decorations: the label stays the name of the option.",
7290
+ "type": "Array<string | { value: string, label?: string, disabled?: boolean, color?: string, icon?: string }>"
6857
7291
  },
6858
7292
  {
6859
7293
  "name": "name",
@@ -9342,6 +9776,28 @@
9342
9776
  "symbol": "default"
9343
9777
  }
9344
9778
  },
9779
+ {
9780
+ "name": "maxlength",
9781
+ "description": "Passed on to the control as `maxlength`: the browser takes no more characters than this while the user types. `null` (the default) leaves the attribute out.",
9782
+ "value": {
9783
+ "type": "number | null"
9784
+ },
9785
+ "source": {
9786
+ "module": "./src/components/textarea-field/textarea-field.js",
9787
+ "symbol": "default"
9788
+ }
9789
+ },
9790
+ {
9791
+ "name": "minlength",
9792
+ "description": "Passed on as `minlength`: a text the user has typed that is shorter makes the field invalid. `null` (the default) leaves the attribute out.",
9793
+ "value": {
9794
+ "type": "number | null"
9795
+ },
9796
+ "source": {
9797
+ "module": "./src/components/textarea-field/textarea-field.js",
9798
+ "symbol": "default"
9799
+ }
9800
+ },
9345
9801
  {
9346
9802
  "name": "autocomplete",
9347
9803
  "description": "Passed on to the control as its `autocomplete` attribute (e.g. `'email'`, `'current-password'`, `'one-time-code'`). `null` (the default) leaves the attribute out. The same holds for the five properties below.",
@@ -9538,6 +9994,16 @@
9538
9994
  "description": "Number of visible text rows. Forwarded to the underlying `<textarea>`'s `rows` attribute.",
9539
9995
  "type": "number"
9540
9996
  },
9997
+ {
9998
+ "name": "maxlength",
9999
+ "description": "Passed on to the control as `maxlength`: the browser takes no more characters than this while the user types. `null` (the default) leaves the attribute out.",
10000
+ "type": "number | null"
10001
+ },
10002
+ {
10003
+ "name": "minlength",
10004
+ "description": "Passed on as `minlength`: a text the user has typed that is shorter makes the field invalid. `null` (the default) leaves the attribute out.",
10005
+ "type": "number | null"
10006
+ },
9541
10007
  {
9542
10008
  "name": "autocomplete",
9543
10009
  "description": "Passed on to the control as its `autocomplete` attribute (e.g. `'email'`, `'current-password'`, `'one-time-code'`). `null` (the default) leaves the attribute out. The same holds for the five properties below.",
@@ -10321,7 +10787,15 @@
10321
10787
  },
10322
10788
  {
10323
10789
  "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."
10790
+ "description": "The width of the column of the names while names and values stand side by side. The gap to the values comes after it. Unset, the column is as wide as the longest name, and takes 40% of the list at most together with that gap."
10791
+ },
10792
+ {
10793
+ "name": "--el-description-list-padding-block",
10794
+ "description": "The room above and below a row. Unset, it is `--el-space-3`, and `0.75rem` without a theme."
10795
+ },
10796
+ {
10797
+ "name": "--el-description-list-gap",
10798
+ "description": "The gap between a name and its value while they stand side by side, and in front of an action. Unset, it is `--el-space-4`, and `1rem` without a theme."
10325
10799
  },
10326
10800
  {
10327
10801
  "name": "--el-divider-color",
@@ -10335,10 +10809,18 @@
10335
10809
  "name": "--el-list-padding-inline",
10336
10810
  "description": "The padding of the row at its start and its end. Unset, it is `--el-space-4`, and `1rem` without a theme."
10337
10811
  },
10812
+ {
10813
+ "name": "--el-list-gap",
10814
+ "description": "The gap between the start, the texts, the end and the control of the row. Unset, it is `--el-space-3`, and `0.75rem` without a theme."
10815
+ },
10338
10816
  {
10339
10817
  "name": "--el-list-padding-inline",
10340
10818
  "description": "The padding of a row at its start and its end. Unset, it is `--el-space-4`, and `1rem` without a theme. Read by the rows, so it can be set on the list or for the page."
10341
10819
  },
10820
+ {
10821
+ "name": "--el-list-gap",
10822
+ "description": "The gap between the start, the texts, the end and the control of a row. Unset, it is `--el-space-3`, and `0.75rem` without a theme. Read by the rows as well."
10823
+ },
10342
10824
  {
10343
10825
  "name": "--el-nav-rail-size",
10344
10826
  "description": "The width of a rail. Default `5rem`."
@@ -10461,6 +10943,10 @@
10461
10943
  "name": "part(base)",
10462
10944
  "description": "The frame: the grid of the regions."
10463
10945
  },
10946
+ {
10947
+ "name": "part(skip-landmark)",
10948
+ "description": "The landmark the skip link lies in: a `<nav>`."
10949
+ },
10464
10950
  {
10465
10951
  "name": "part(skip-link)",
10466
10952
  "description": "The link that skips to the content. It shows while it has the focus."
@@ -10797,6 +11283,10 @@
10797
11283
  "name": "part(base)",
10798
11284
  "description": "The entry: a `<button>`, or an `<a>` with `href`."
10799
11285
  },
11286
+ {
11287
+ "name": "part(mark)",
11288
+ "description": "The place of the mark of an entry with a `type`: a check, or a dot. It is there while the entry is not checked as well."
11289
+ },
10800
11290
  {
10801
11291
  "name": "part(icon)",
10802
11292
  "description": "The place of the icon."