@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.
- package/CHANGELOG.md +107 -0
- package/custom-elements.json +1543 -199
- package/package.json +1 -1
- package/src/components/app-frame/app-frame.changelog.md +14 -0
- package/src/components/app-frame/app-frame.js +14 -2
- package/src/components/app-frame/app-frame.readme.md +12 -3
- package/src/components/app-frame/app-frame.style.js +7 -0
- package/src/components/button/button.changelog.md +6 -0
- package/src/components/button/button.style.js +6 -1
- package/src/components/button-group/button-group.changelog.md +10 -0
- package/src/components/button-group/button-group.readme.md +2 -0
- package/src/components/button-group/button-group.style.js +6 -2
- package/src/components/checkbox-group-field/checkbox-group-field.changelog.md +6 -0
- package/src/components/checkbox-group-field/checkbox-group-field.js +7 -2
- package/src/components/checkbox-group-field/checkbox-group-field.readme.md +23 -1
- package/src/components/combobox-field/combobox-field.changelog.md +6 -0
- package/src/components/combobox-field/combobox-field.readme.md +8 -0
- package/src/components/combobox-field/combobox-field.style.js +2 -0
- package/src/components/date-field/date-field.changelog.md +6 -0
- package/src/components/date-field/date-field.readme.md +10 -0
- package/src/components/date-field/date-field.style.js +8 -3
- package/src/components/description-list/description-list.changelog.md +17 -0
- package/src/components/description-list/description-list.js +7 -2
- package/src/components/description-list/description-list.readme.md +30 -4
- package/src/components/description-list/description-list.style.js +57 -28
- package/src/components/divider/divider.changelog.md +6 -0
- package/src/components/divider/divider.readme.md +1 -1
- package/src/components/divider/divider.style.js +6 -0
- package/src/components/file-field/file-field.changelog.md +8 -0
- package/src/components/file-field/file-field.js +135 -5
- package/src/components/file-field/file-field.readme.md +35 -6
- package/src/components/file-field/file-field.style.js +71 -0
- package/src/components/form-field/form-field.js +1 -1
- package/src/components/input-field/input-field.changelog.md +10 -0
- package/src/components/input-field/input-field.js +192 -14
- package/src/components/input-field/input-field.readme.md +88 -2
- package/src/components/input-field/input-field.style.js +2 -0
- package/src/components/list/list.changelog.md +6 -0
- package/src/components/list/list.js +2 -0
- package/src/components/list/list.readme.md +1 -0
- package/src/components/list-item/list-item.changelog.md +16 -0
- package/src/components/list-item/list-item.js +2 -0
- package/src/components/list-item/list-item.readme.md +19 -1
- package/src/components/list-item/list-item.style.js +23 -11
- package/src/components/menu/menu.changelog.md +17 -0
- package/src/components/menu/menu.js +293 -70
- package/src/components/menu/menu.readme.md +47 -6
- package/src/components/menu/menu.style.js +6 -2
- package/src/components/menu-item/menu-item.changelog.md +8 -0
- package/src/components/menu-item/menu-item.js +41 -3
- package/src/components/menu-item/menu-item.readme.md +45 -7
- package/src/components/menu-item/menu-item.style.js +30 -0
- package/src/components/otp-field/otp-field.changelog.md +6 -0
- package/src/components/otp-field/otp-field.readme.md +8 -0
- package/src/components/otp-field/otp-field.style.js +8 -3
- package/src/components/password-field/password-field.changelog.md +7 -0
- package/src/components/password-field/password-field.readme.md +11 -1
- package/src/components/password-field/password-field.style.js +2 -0
- package/src/components/popover/popover.changelog.md +6 -0
- package/src/components/popover/popover.style.js +1 -0
- package/src/components/radio-field/radio-field.changelog.md +6 -0
- package/src/components/radio-field/radio-field.js +7 -2
- package/src/components/radio-field/radio-field.readme.md +23 -1
- package/src/components/textarea-field/textarea-field.changelog.md +6 -0
- package/src/components/textarea-field/textarea-field.js +14 -1
- package/src/components/textarea-field/textarea-field.readme.md +23 -1
- package/src/styles/choice-group.style.js +26 -0
- package/src/styles/input-control.style.js +87 -0
- package/src/styles/native.css +100 -0
- package/src/utils/floating.js +15 -1
- package/src/utils/options.js +35 -0
- package/src/utils/text-entry-attributes.js +13 -0
- package/types/src/components/app-frame/app-frame.d.ts +7 -1
- package/types/src/components/checkbox-group-field/checkbox-group-field.d.ts +5 -2
- package/types/src/components/combobox-field/combobox-field.d.ts +10 -0
- package/types/src/components/date-field/date-field.d.ts +10 -0
- package/types/src/components/description-list/description-list.d.ts +7 -2
- package/types/src/components/file-field/file-field.d.ts +68 -3
- package/types/src/components/form-field/form-field.d.ts +1 -1
- package/types/src/components/input-field/input-field.d.ts +99 -0
- package/types/src/components/list/list.d.ts +2 -0
- package/types/src/components/list-item/list-item.d.ts +2 -0
- package/types/src/components/menu/menu.d.ts +105 -9
- package/types/src/components/menu-item/menu-item.d.ts +21 -0
- package/types/src/components/otp-field/otp-field.d.ts +10 -0
- package/types/src/components/password-field/password-field.d.ts +10 -0
- package/types/src/components/radio-field/radio-field.d.ts +5 -2
- package/types/src/components/textarea-field/textarea-field.d.ts +7 -0
- package/types/src/styles/input-control.style.d.ts +15 -0
- package/types/src/utils/floating.d.ts +11 -0
- package/types/src/utils/options.d.ts +17 -0
- package/types/src/utils/text-entry-attributes.d.ts +10 -0
- package/web-types.json +514 -24
package/custom-elements.json
CHANGED
|
@@ -518,7 +518,7 @@
|
|
|
518
518
|
{
|
|
519
519
|
"name": "part",
|
|
520
520
|
"type": {
|
|
521
|
-
"text": "'input' | 'help-message' | 'error-message' | 'list'"
|
|
521
|
+
"text": "'input' | 'help-message' | 'error-message' | 'list' | 'control-start' | 'control-end' | 'drop-message'"
|
|
522
522
|
}
|
|
523
523
|
}
|
|
524
524
|
],
|
|
@@ -1061,7 +1061,7 @@
|
|
|
1061
1061
|
"declarations": [
|
|
1062
1062
|
{
|
|
1063
1063
|
"kind": "class",
|
|
1064
|
-
"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.",
|
|
1064
|
+
"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.",
|
|
1065
1065
|
"name": "AppFrame",
|
|
1066
1066
|
"cssProperties": [
|
|
1067
1067
|
{
|
|
@@ -1094,6 +1094,10 @@
|
|
|
1094
1094
|
"description": "The frame: the grid of the regions.",
|
|
1095
1095
|
"name": "base"
|
|
1096
1096
|
},
|
|
1097
|
+
{
|
|
1098
|
+
"description": "The landmark the skip link lies in: a `<nav>`.",
|
|
1099
|
+
"name": "skip-landmark"
|
|
1100
|
+
},
|
|
1097
1101
|
{
|
|
1098
1102
|
"description": "The link that skips to the content. It shows while it has the focus.",
|
|
1099
1103
|
"name": "skip-link"
|
|
@@ -1583,6 +1587,16 @@
|
|
|
1583
1587
|
"description": "The text of the link that skips to the content. Default `'Skip to content'`.",
|
|
1584
1588
|
"attribute": "skip-label"
|
|
1585
1589
|
},
|
|
1590
|
+
{
|
|
1591
|
+
"kind": "field",
|
|
1592
|
+
"name": "skipLandmarkLabel",
|
|
1593
|
+
"privacy": "public",
|
|
1594
|
+
"type": {
|
|
1595
|
+
"text": "string"
|
|
1596
|
+
},
|
|
1597
|
+
"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'`.",
|
|
1598
|
+
"attribute": "skip-landmark-label"
|
|
1599
|
+
},
|
|
1586
1600
|
{
|
|
1587
1601
|
"kind": "field",
|
|
1588
1602
|
"name": "wideFrom",
|
|
@@ -1743,6 +1757,14 @@
|
|
|
1743
1757
|
"description": "The text of the link that skips to the content. Default `'Skip to content'`.",
|
|
1744
1758
|
"fieldName": "skipLabel"
|
|
1745
1759
|
},
|
|
1760
|
+
{
|
|
1761
|
+
"name": "skip-landmark-label",
|
|
1762
|
+
"type": {
|
|
1763
|
+
"text": "string"
|
|
1764
|
+
},
|
|
1765
|
+
"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'`.",
|
|
1766
|
+
"fieldName": "skipLandmarkLabel"
|
|
1767
|
+
},
|
|
1746
1768
|
{
|
|
1747
1769
|
"name": "wide-from",
|
|
1748
1770
|
"type": {
|
|
@@ -3760,7 +3782,7 @@
|
|
|
3760
3782
|
{
|
|
3761
3783
|
"name": "part",
|
|
3762
3784
|
"type": {
|
|
3763
|
-
"text": "'input' | 'help-message' | 'error-message' | 'list'"
|
|
3785
|
+
"text": "'input' | 'help-message' | 'error-message' | 'list' | 'control-start' | 'control-end' | 'drop-message'"
|
|
3764
3786
|
}
|
|
3765
3787
|
}
|
|
3766
3788
|
],
|
|
@@ -4313,9 +4335,9 @@
|
|
|
4313
4335
|
"name": "options",
|
|
4314
4336
|
"privacy": "public",
|
|
4315
4337
|
"type": {
|
|
4316
|
-
"text": "Array<string | { value: string, label?: string, disabled?: boolean }>"
|
|
4338
|
+
"text": "Array<string | { value: string, label?: string, disabled?: boolean, color?: string, icon?: string }>"
|
|
4317
4339
|
},
|
|
4318
|
-
"description": "Options to render. Accepts plain strings (`['News', 'Offers']`) or option objects (`[{ value, label, disabled? }]`). Strings are used as both value and label.",
|
|
4340
|
+
"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.",
|
|
4319
4341
|
"attribute": "options"
|
|
4320
4342
|
},
|
|
4321
4343
|
{
|
|
@@ -4480,7 +4502,7 @@
|
|
|
4480
4502
|
{
|
|
4481
4503
|
"name": "part",
|
|
4482
4504
|
"type": {
|
|
4483
|
-
"text": "'input' | 'help-message' | 'error-message' | 'list'"
|
|
4505
|
+
"text": "'input' | 'help-message' | 'error-message' | 'list' | 'control-start' | 'control-end' | 'drop-message'"
|
|
4484
4506
|
}
|
|
4485
4507
|
}
|
|
4486
4508
|
],
|
|
@@ -4696,9 +4718,9 @@
|
|
|
4696
4718
|
{
|
|
4697
4719
|
"name": "options",
|
|
4698
4720
|
"type": {
|
|
4699
|
-
"text": "Array<string | { value: string, label?: string, disabled?: boolean }>"
|
|
4721
|
+
"text": "Array<string | { value: string, label?: string, disabled?: boolean, color?: string, icon?: string }>"
|
|
4700
4722
|
},
|
|
4701
|
-
"description": "Options to render. Accepts plain strings (`['News', 'Offers']`) or option objects (`[{ value, label, disabled? }]`). Strings are used as both value and label.",
|
|
4723
|
+
"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.",
|
|
4702
4724
|
"fieldName": "options"
|
|
4703
4725
|
},
|
|
4704
4726
|
{
|
|
@@ -5156,7 +5178,7 @@
|
|
|
5156
5178
|
{
|
|
5157
5179
|
"name": "part",
|
|
5158
5180
|
"type": {
|
|
5159
|
-
"text": "'input' | 'help-message' | 'error-message' | 'list'"
|
|
5181
|
+
"text": "'input' | 'help-message' | 'error-message' | 'list' | 'control-start' | 'control-end' | 'drop-message'"
|
|
5160
5182
|
}
|
|
5161
5183
|
}
|
|
5162
5184
|
],
|
|
@@ -5649,6 +5671,108 @@
|
|
|
5649
5671
|
"description": "The suggestions: plain strings (`['Berlin', 'Bern']`) or option objects. The `value` is what a pick writes into the control; a `label` is a text the browser may show with it. Without options the control has no list and is a plain text input.",
|
|
5650
5672
|
"attribute": "options"
|
|
5651
5673
|
},
|
|
5674
|
+
{
|
|
5675
|
+
"kind": "method",
|
|
5676
|
+
"name": "_slotted",
|
|
5677
|
+
"parameters": [
|
|
5678
|
+
{
|
|
5679
|
+
"name": "name",
|
|
5680
|
+
"type": {
|
|
5681
|
+
"text": "'start'|'end'"
|
|
5682
|
+
}
|
|
5683
|
+
}
|
|
5684
|
+
],
|
|
5685
|
+
"description": "The elements the page has put into the field for the start or the end of its control:\n`<span slot=\"end\">€</span>`. They are children of the field until it renders, and in\ntheir place in the control from then on, also in server-rendered markup. An element that\ncomes later is taken in with the next render.",
|
|
5686
|
+
"privacy": "private",
|
|
5687
|
+
"return": {
|
|
5688
|
+
"type": {
|
|
5689
|
+
"text": "Element[]"
|
|
5690
|
+
}
|
|
5691
|
+
},
|
|
5692
|
+
"inheritedFrom": {
|
|
5693
|
+
"name": "InputField",
|
|
5694
|
+
"module": "src/components/input-field/input-field.js"
|
|
5695
|
+
}
|
|
5696
|
+
},
|
|
5697
|
+
{
|
|
5698
|
+
"kind": "method",
|
|
5699
|
+
"name": "_content",
|
|
5700
|
+
"parameters": [
|
|
5701
|
+
{
|
|
5702
|
+
"name": "elements",
|
|
5703
|
+
"type": {
|
|
5704
|
+
"text": "Element[]"
|
|
5705
|
+
}
|
|
5706
|
+
}
|
|
5707
|
+
],
|
|
5708
|
+
"description": "The content for a place in the control. In a browser the elements of the page themselves:\nthey are moved, not copied, and stay where they are with every render. On a server their\nmarkup, written as it is.\n\nThat is what `unsafeHTML()` gives on a server. It is written out here because the directive\ngives nodes wherever there is a DOM, and a template that is turned into a string in a\nbrowser, as the tests of the server-rendered markup do, would lose them.",
|
|
5709
|
+
"privacy": "private",
|
|
5710
|
+
"return": {
|
|
5711
|
+
"type": {
|
|
5712
|
+
"text": "Element[] | { __unsafeHTML: true, string: string }"
|
|
5713
|
+
}
|
|
5714
|
+
},
|
|
5715
|
+
"inheritedFrom": {
|
|
5716
|
+
"name": "InputField",
|
|
5717
|
+
"module": "src/components/input-field/input-field.js"
|
|
5718
|
+
}
|
|
5719
|
+
},
|
|
5720
|
+
{
|
|
5721
|
+
"kind": "method",
|
|
5722
|
+
"name": "_describes",
|
|
5723
|
+
"parameters": [
|
|
5724
|
+
{
|
|
5725
|
+
"name": "elements",
|
|
5726
|
+
"type": {
|
|
5727
|
+
"text": "Element[]"
|
|
5728
|
+
}
|
|
5729
|
+
}
|
|
5730
|
+
],
|
|
5731
|
+
"description": "Whether what the page has put at a place describes the value: a unit, a currency, the start\nof an address. A screen reader reads it with the input then. A control there, a button or\na link, has a name and a stop of the Tab key itself, and is no description. An icon is none\neither: it has no text, and is hidden from assistive technology (`aria-hidden`).",
|
|
5732
|
+
"privacy": "private",
|
|
5733
|
+
"return": {
|
|
5734
|
+
"type": {
|
|
5735
|
+
"text": "boolean"
|
|
5736
|
+
}
|
|
5737
|
+
},
|
|
5738
|
+
"inheritedFrom": {
|
|
5739
|
+
"name": "InputField",
|
|
5740
|
+
"module": "src/components/input-field/input-field.js"
|
|
5741
|
+
}
|
|
5742
|
+
},
|
|
5743
|
+
{
|
|
5744
|
+
"kind": "method",
|
|
5745
|
+
"name": "_describedBy",
|
|
5746
|
+
"description": "The description of the control: what the page has put at its start and at its end, then the\nmessages of the field.",
|
|
5747
|
+
"privacy": "private",
|
|
5748
|
+
"return": {
|
|
5749
|
+
"type": {
|
|
5750
|
+
"text": "string"
|
|
5751
|
+
}
|
|
5752
|
+
},
|
|
5753
|
+
"inheritedFrom": {
|
|
5754
|
+
"name": "FormField",
|
|
5755
|
+
"module": "src/components/form-field/form-field.js"
|
|
5756
|
+
}
|
|
5757
|
+
},
|
|
5758
|
+
{
|
|
5759
|
+
"kind": "method",
|
|
5760
|
+
"name": "_onControlClick",
|
|
5761
|
+
"parameters": [
|
|
5762
|
+
{
|
|
5763
|
+
"name": "event",
|
|
5764
|
+
"type": {
|
|
5765
|
+
"text": "MouseEvent"
|
|
5766
|
+
}
|
|
5767
|
+
}
|
|
5768
|
+
],
|
|
5769
|
+
"description": "A click on the control beside its input, on a text or an icon of the page, puts the focus\ninto the input: to the eye all of it is the control. A control in the content, the button\nthat clears the field and the input itself keep their click.",
|
|
5770
|
+
"privacy": "private",
|
|
5771
|
+
"inheritedFrom": {
|
|
5772
|
+
"name": "InputField",
|
|
5773
|
+
"module": "src/components/input-field/input-field.js"
|
|
5774
|
+
}
|
|
5775
|
+
},
|
|
5652
5776
|
{
|
|
5653
5777
|
"kind": "method",
|
|
5654
5778
|
"name": "_pattern",
|
|
@@ -5720,6 +5844,62 @@
|
|
|
5720
5844
|
"module": "src/components/input-field/input-field.js"
|
|
5721
5845
|
}
|
|
5722
5846
|
},
|
|
5847
|
+
{
|
|
5848
|
+
"kind": "field",
|
|
5849
|
+
"name": "clearable",
|
|
5850
|
+
"privacy": "public",
|
|
5851
|
+
"type": {
|
|
5852
|
+
"text": "boolean"
|
|
5853
|
+
},
|
|
5854
|
+
"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`.",
|
|
5855
|
+
"attribute": "clearable",
|
|
5856
|
+
"inheritedFrom": {
|
|
5857
|
+
"name": "InputField",
|
|
5858
|
+
"module": "src/components/input-field/input-field.js"
|
|
5859
|
+
}
|
|
5860
|
+
},
|
|
5861
|
+
{
|
|
5862
|
+
"kind": "field",
|
|
5863
|
+
"name": "clearLabel",
|
|
5864
|
+
"privacy": "public",
|
|
5865
|
+
"type": {
|
|
5866
|
+
"text": "string"
|
|
5867
|
+
},
|
|
5868
|
+
"description": "The name of that button for assistive technology. Default `'Clear'`.",
|
|
5869
|
+
"attribute": "clear-label",
|
|
5870
|
+
"inheritedFrom": {
|
|
5871
|
+
"name": "InputField",
|
|
5872
|
+
"module": "src/components/input-field/input-field.js"
|
|
5873
|
+
}
|
|
5874
|
+
},
|
|
5875
|
+
{
|
|
5876
|
+
"kind": "field",
|
|
5877
|
+
"name": "maxlength",
|
|
5878
|
+
"privacy": "public",
|
|
5879
|
+
"type": {
|
|
5880
|
+
"text": "number | null"
|
|
5881
|
+
},
|
|
5882
|
+
"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.",
|
|
5883
|
+
"attribute": "maxlength",
|
|
5884
|
+
"inheritedFrom": {
|
|
5885
|
+
"name": "InputField",
|
|
5886
|
+
"module": "src/components/input-field/input-field.js"
|
|
5887
|
+
}
|
|
5888
|
+
},
|
|
5889
|
+
{
|
|
5890
|
+
"kind": "field",
|
|
5891
|
+
"name": "minlength",
|
|
5892
|
+
"privacy": "public",
|
|
5893
|
+
"type": {
|
|
5894
|
+
"text": "number | null"
|
|
5895
|
+
},
|
|
5896
|
+
"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.",
|
|
5897
|
+
"attribute": "minlength",
|
|
5898
|
+
"inheritedFrom": {
|
|
5899
|
+
"name": "InputField",
|
|
5900
|
+
"module": "src/components/input-field/input-field.js"
|
|
5901
|
+
}
|
|
5902
|
+
},
|
|
5723
5903
|
{
|
|
5724
5904
|
"kind": "field",
|
|
5725
5905
|
"name": "autocomplete",
|
|
@@ -5980,7 +6160,7 @@
|
|
|
5980
6160
|
{
|
|
5981
6161
|
"name": "part",
|
|
5982
6162
|
"type": {
|
|
5983
|
-
"text": "'input' | 'help-message' | 'error-message' | 'list'"
|
|
6163
|
+
"text": "'input' | 'help-message' | 'error-message' | 'list' | 'control-start' | 'control-end' | 'drop-message'"
|
|
5984
6164
|
}
|
|
5985
6165
|
}
|
|
5986
6166
|
],
|
|
@@ -6038,21 +6218,6 @@
|
|
|
6038
6218
|
"module": "src/components/form-field/form-field.js"
|
|
6039
6219
|
}
|
|
6040
6220
|
},
|
|
6041
|
-
{
|
|
6042
|
-
"kind": "method",
|
|
6043
|
-
"name": "_describedBy",
|
|
6044
|
-
"description": "The value of `aria-describedby` for the control: the help message, and the error message while\nit is rendered, so that a screen reader reads the error when the control gets focus.",
|
|
6045
|
-
"privacy": "private",
|
|
6046
|
-
"return": {
|
|
6047
|
-
"type": {
|
|
6048
|
-
"text": "string"
|
|
6049
|
-
}
|
|
6050
|
-
},
|
|
6051
|
-
"inheritedFrom": {
|
|
6052
|
-
"name": "FormField",
|
|
6053
|
-
"module": "src/components/form-field/form-field.js"
|
|
6054
|
-
}
|
|
6055
|
-
},
|
|
6056
6221
|
{
|
|
6057
6222
|
"kind": "method",
|
|
6058
6223
|
"name": "errorTemplate",
|
|
@@ -6274,6 +6439,54 @@
|
|
|
6274
6439
|
"module": "src/components/input-field/input-field.js"
|
|
6275
6440
|
}
|
|
6276
6441
|
},
|
|
6442
|
+
{
|
|
6443
|
+
"name": "clearable",
|
|
6444
|
+
"type": {
|
|
6445
|
+
"text": "boolean"
|
|
6446
|
+
},
|
|
6447
|
+
"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`.",
|
|
6448
|
+
"fieldName": "clearable",
|
|
6449
|
+
"inheritedFrom": {
|
|
6450
|
+
"name": "InputField",
|
|
6451
|
+
"module": "src/components/input-field/input-field.js"
|
|
6452
|
+
}
|
|
6453
|
+
},
|
|
6454
|
+
{
|
|
6455
|
+
"name": "clear-label",
|
|
6456
|
+
"type": {
|
|
6457
|
+
"text": "string"
|
|
6458
|
+
},
|
|
6459
|
+
"description": "The name of that button for assistive technology. Default `'Clear'`.",
|
|
6460
|
+
"fieldName": "clearLabel",
|
|
6461
|
+
"inheritedFrom": {
|
|
6462
|
+
"name": "InputField",
|
|
6463
|
+
"module": "src/components/input-field/input-field.js"
|
|
6464
|
+
}
|
|
6465
|
+
},
|
|
6466
|
+
{
|
|
6467
|
+
"name": "maxlength",
|
|
6468
|
+
"type": {
|
|
6469
|
+
"text": "number | null"
|
|
6470
|
+
},
|
|
6471
|
+
"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.",
|
|
6472
|
+
"fieldName": "maxlength",
|
|
6473
|
+
"inheritedFrom": {
|
|
6474
|
+
"name": "InputField",
|
|
6475
|
+
"module": "src/components/input-field/input-field.js"
|
|
6476
|
+
}
|
|
6477
|
+
},
|
|
6478
|
+
{
|
|
6479
|
+
"name": "minlength",
|
|
6480
|
+
"type": {
|
|
6481
|
+
"text": "number | null"
|
|
6482
|
+
},
|
|
6483
|
+
"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.",
|
|
6484
|
+
"fieldName": "minlength",
|
|
6485
|
+
"inheritedFrom": {
|
|
6486
|
+
"name": "InputField",
|
|
6487
|
+
"module": "src/components/input-field/input-field.js"
|
|
6488
|
+
}
|
|
6489
|
+
},
|
|
6277
6490
|
{
|
|
6278
6491
|
"name": "autocomplete",
|
|
6279
6492
|
"type": {
|
|
@@ -6474,6 +6687,24 @@
|
|
|
6474
6687
|
"tagName": "el-combobox-field",
|
|
6475
6688
|
"customElement": true,
|
|
6476
6689
|
"tagNameWithoutPrefix": "combobox-field",
|
|
6690
|
+
"slots": [
|
|
6691
|
+
{
|
|
6692
|
+
"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\"`.",
|
|
6693
|
+
"name": "start",
|
|
6694
|
+
"inheritedFrom": {
|
|
6695
|
+
"name": "InputField",
|
|
6696
|
+
"module": "src/components/input-field/input-field.js"
|
|
6697
|
+
}
|
|
6698
|
+
},
|
|
6699
|
+
{
|
|
6700
|
+
"description": "Content at the end of the control, after the text: a unit, a button. An element of the page with `slot=\"end\"`.",
|
|
6701
|
+
"name": "end",
|
|
6702
|
+
"inheritedFrom": {
|
|
6703
|
+
"name": "InputField",
|
|
6704
|
+
"module": "src/components/input-field/input-field.js"
|
|
6705
|
+
}
|
|
6706
|
+
}
|
|
6707
|
+
],
|
|
6477
6708
|
"cssStates": [
|
|
6478
6709
|
{
|
|
6479
6710
|
"description": "Set on the host once the user has focused and blurred the field, or the browser has refused a submit because of it. Inherited by all subclasses (`InputField`, `CheckboxField`, `TextareaField`, `AmountField`, `SelectField`).",
|
|
@@ -6933,12 +7164,20 @@
|
|
|
6933
7164
|
},
|
|
6934
7165
|
{
|
|
6935
7166
|
"kind": "method",
|
|
6936
|
-
"name": "
|
|
6937
|
-
"
|
|
7167
|
+
"name": "_slotted",
|
|
7168
|
+
"parameters": [
|
|
7169
|
+
{
|
|
7170
|
+
"name": "name",
|
|
7171
|
+
"type": {
|
|
7172
|
+
"text": "'start'|'end'"
|
|
7173
|
+
}
|
|
7174
|
+
}
|
|
7175
|
+
],
|
|
7176
|
+
"description": "The elements the page has put into the field for the start or the end of its control:\n`<span slot=\"end\">€</span>`. They are children of the field until it renders, and in\ntheir place in the control from then on, also in server-rendered markup. An element that\ncomes later is taken in with the next render.",
|
|
6938
7177
|
"privacy": "private",
|
|
6939
7178
|
"return": {
|
|
6940
7179
|
"type": {
|
|
6941
|
-
"text": "
|
|
7180
|
+
"text": "Element[]"
|
|
6942
7181
|
}
|
|
6943
7182
|
},
|
|
6944
7183
|
"inheritedFrom": {
|
|
@@ -6948,37 +7187,131 @@
|
|
|
6948
7187
|
},
|
|
6949
7188
|
{
|
|
6950
7189
|
"kind": "method",
|
|
6951
|
-
"name": "
|
|
6952
|
-
"
|
|
7190
|
+
"name": "_content",
|
|
7191
|
+
"parameters": [
|
|
7192
|
+
{
|
|
7193
|
+
"name": "elements",
|
|
7194
|
+
"type": {
|
|
7195
|
+
"text": "Element[]"
|
|
7196
|
+
}
|
|
7197
|
+
}
|
|
7198
|
+
],
|
|
7199
|
+
"description": "The content for a place in the control. In a browser the elements of the page themselves:\nthey are moved, not copied, and stay where they are with every render. On a server their\nmarkup, written as it is.\n\nThat is what `unsafeHTML()` gives on a server. It is written out here because the directive\ngives nodes wherever there is a DOM, and a template that is turned into a string in a\nbrowser, as the tests of the server-rendered markup do, would lose them.",
|
|
7200
|
+
"privacy": "private",
|
|
6953
7201
|
"return": {
|
|
6954
7202
|
"type": {
|
|
6955
|
-
"text": "
|
|
7203
|
+
"text": "Element[] | { __unsafeHTML: true, string: string }"
|
|
6956
7204
|
}
|
|
6957
7205
|
},
|
|
6958
|
-
"privacy": "private",
|
|
6959
7206
|
"inheritedFrom": {
|
|
6960
|
-
"name": "
|
|
6961
|
-
"module": "src/components/
|
|
7207
|
+
"name": "InputField",
|
|
7208
|
+
"module": "src/components/input-field/input-field.js"
|
|
6962
7209
|
}
|
|
6963
7210
|
},
|
|
6964
7211
|
{
|
|
6965
|
-
"kind": "
|
|
6966
|
-
"name": "
|
|
6967
|
-
"
|
|
6968
|
-
|
|
6969
|
-
|
|
7212
|
+
"kind": "method",
|
|
7213
|
+
"name": "_describes",
|
|
7214
|
+
"parameters": [
|
|
7215
|
+
{
|
|
7216
|
+
"name": "elements",
|
|
7217
|
+
"type": {
|
|
7218
|
+
"text": "Element[]"
|
|
7219
|
+
}
|
|
7220
|
+
}
|
|
7221
|
+
],
|
|
7222
|
+
"description": "Whether what the page has put at a place describes the value: a unit, a currency, the start\nof an address. A screen reader reads it with the input then. A control there, a button or\na link, has a name and a stop of the Tab key itself, and is no description. An icon is none\neither: it has no text, and is hidden from assistive technology (`aria-hidden`).",
|
|
7223
|
+
"privacy": "private",
|
|
7224
|
+
"return": {
|
|
7225
|
+
"type": {
|
|
7226
|
+
"text": "boolean"
|
|
7227
|
+
}
|
|
6970
7228
|
},
|
|
6971
|
-
"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.",
|
|
6972
|
-
"attribute": "size",
|
|
6973
7229
|
"inheritedFrom": {
|
|
6974
7230
|
"name": "InputField",
|
|
6975
7231
|
"module": "src/components/input-field/input-field.js"
|
|
6976
7232
|
}
|
|
6977
7233
|
},
|
|
6978
7234
|
{
|
|
6979
|
-
"kind": "
|
|
6980
|
-
"name": "
|
|
6981
|
-
"
|
|
7235
|
+
"kind": "method",
|
|
7236
|
+
"name": "_describedBy",
|
|
7237
|
+
"description": "The description of the control: what the page has put at its start and at its end, then the\nmessages of the field.",
|
|
7238
|
+
"privacy": "private",
|
|
7239
|
+
"return": {
|
|
7240
|
+
"type": {
|
|
7241
|
+
"text": "string"
|
|
7242
|
+
}
|
|
7243
|
+
},
|
|
7244
|
+
"inheritedFrom": {
|
|
7245
|
+
"name": "FormField",
|
|
7246
|
+
"module": "src/components/form-field/form-field.js"
|
|
7247
|
+
}
|
|
7248
|
+
},
|
|
7249
|
+
{
|
|
7250
|
+
"kind": "method",
|
|
7251
|
+
"name": "_onControlClick",
|
|
7252
|
+
"parameters": [
|
|
7253
|
+
{
|
|
7254
|
+
"name": "event",
|
|
7255
|
+
"type": {
|
|
7256
|
+
"text": "MouseEvent"
|
|
7257
|
+
}
|
|
7258
|
+
}
|
|
7259
|
+
],
|
|
7260
|
+
"description": "A click on the control beside its input, on a text or an icon of the page, puts the focus\ninto the input: to the eye all of it is the control. A control in the content, the button\nthat clears the field and the input itself keep their click.",
|
|
7261
|
+
"privacy": "private",
|
|
7262
|
+
"inheritedFrom": {
|
|
7263
|
+
"name": "InputField",
|
|
7264
|
+
"module": "src/components/input-field/input-field.js"
|
|
7265
|
+
}
|
|
7266
|
+
},
|
|
7267
|
+
{
|
|
7268
|
+
"kind": "method",
|
|
7269
|
+
"name": "_pattern",
|
|
7270
|
+
"description": "The pattern of the control. A field that extends this one can have a pattern of its own\nwhere the page gives none (`OtpField`).",
|
|
7271
|
+
"privacy": "private",
|
|
7272
|
+
"return": {
|
|
7273
|
+
"type": {
|
|
7274
|
+
"text": "string | false"
|
|
7275
|
+
}
|
|
7276
|
+
},
|
|
7277
|
+
"inheritedFrom": {
|
|
7278
|
+
"name": "InputField",
|
|
7279
|
+
"module": "src/components/input-field/input-field.js"
|
|
7280
|
+
}
|
|
7281
|
+
},
|
|
7282
|
+
{
|
|
7283
|
+
"kind": "method",
|
|
7284
|
+
"name": "fieldTemplate",
|
|
7285
|
+
"description": "Subclass extension point. Override to render the actual input element(s).",
|
|
7286
|
+
"return": {
|
|
7287
|
+
"type": {
|
|
7288
|
+
"text": "unknown"
|
|
7289
|
+
}
|
|
7290
|
+
},
|
|
7291
|
+
"privacy": "private",
|
|
7292
|
+
"inheritedFrom": {
|
|
7293
|
+
"name": "FormField",
|
|
7294
|
+
"module": "src/components/form-field/form-field.js"
|
|
7295
|
+
}
|
|
7296
|
+
},
|
|
7297
|
+
{
|
|
7298
|
+
"kind": "field",
|
|
7299
|
+
"name": "size",
|
|
7300
|
+
"privacy": "public",
|
|
7301
|
+
"type": {
|
|
7302
|
+
"text": "'small'|'medium'|'large'"
|
|
7303
|
+
},
|
|
7304
|
+
"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.",
|
|
7305
|
+
"attribute": "size",
|
|
7306
|
+
"inheritedFrom": {
|
|
7307
|
+
"name": "InputField",
|
|
7308
|
+
"module": "src/components/input-field/input-field.js"
|
|
7309
|
+
}
|
|
7310
|
+
},
|
|
7311
|
+
{
|
|
7312
|
+
"kind": "field",
|
|
7313
|
+
"name": "placeholder",
|
|
7314
|
+
"privacy": "public",
|
|
6982
7315
|
"type": {
|
|
6983
7316
|
"text": "string"
|
|
6984
7317
|
},
|
|
@@ -7003,6 +7336,62 @@
|
|
|
7003
7336
|
"module": "src/components/input-field/input-field.js"
|
|
7004
7337
|
}
|
|
7005
7338
|
},
|
|
7339
|
+
{
|
|
7340
|
+
"kind": "field",
|
|
7341
|
+
"name": "clearable",
|
|
7342
|
+
"privacy": "public",
|
|
7343
|
+
"type": {
|
|
7344
|
+
"text": "boolean"
|
|
7345
|
+
},
|
|
7346
|
+
"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`.",
|
|
7347
|
+
"attribute": "clearable",
|
|
7348
|
+
"inheritedFrom": {
|
|
7349
|
+
"name": "InputField",
|
|
7350
|
+
"module": "src/components/input-field/input-field.js"
|
|
7351
|
+
}
|
|
7352
|
+
},
|
|
7353
|
+
{
|
|
7354
|
+
"kind": "field",
|
|
7355
|
+
"name": "clearLabel",
|
|
7356
|
+
"privacy": "public",
|
|
7357
|
+
"type": {
|
|
7358
|
+
"text": "string"
|
|
7359
|
+
},
|
|
7360
|
+
"description": "The name of that button for assistive technology. Default `'Clear'`.",
|
|
7361
|
+
"attribute": "clear-label",
|
|
7362
|
+
"inheritedFrom": {
|
|
7363
|
+
"name": "InputField",
|
|
7364
|
+
"module": "src/components/input-field/input-field.js"
|
|
7365
|
+
}
|
|
7366
|
+
},
|
|
7367
|
+
{
|
|
7368
|
+
"kind": "field",
|
|
7369
|
+
"name": "maxlength",
|
|
7370
|
+
"privacy": "public",
|
|
7371
|
+
"type": {
|
|
7372
|
+
"text": "number | null"
|
|
7373
|
+
},
|
|
7374
|
+
"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.",
|
|
7375
|
+
"attribute": "maxlength",
|
|
7376
|
+
"inheritedFrom": {
|
|
7377
|
+
"name": "InputField",
|
|
7378
|
+
"module": "src/components/input-field/input-field.js"
|
|
7379
|
+
}
|
|
7380
|
+
},
|
|
7381
|
+
{
|
|
7382
|
+
"kind": "field",
|
|
7383
|
+
"name": "minlength",
|
|
7384
|
+
"privacy": "public",
|
|
7385
|
+
"type": {
|
|
7386
|
+
"text": "number | null"
|
|
7387
|
+
},
|
|
7388
|
+
"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.",
|
|
7389
|
+
"attribute": "minlength",
|
|
7390
|
+
"inheritedFrom": {
|
|
7391
|
+
"name": "InputField",
|
|
7392
|
+
"module": "src/components/input-field/input-field.js"
|
|
7393
|
+
}
|
|
7394
|
+
},
|
|
7006
7395
|
{
|
|
7007
7396
|
"kind": "field",
|
|
7008
7397
|
"name": "autocomplete",
|
|
@@ -7263,7 +7652,7 @@
|
|
|
7263
7652
|
{
|
|
7264
7653
|
"name": "part",
|
|
7265
7654
|
"type": {
|
|
7266
|
-
"text": "'input' | 'help-message' | 'error-message' | 'list'"
|
|
7655
|
+
"text": "'input' | 'help-message' | 'error-message' | 'list' | 'control-start' | 'control-end' | 'drop-message'"
|
|
7267
7656
|
}
|
|
7268
7657
|
}
|
|
7269
7658
|
],
|
|
@@ -7321,21 +7710,6 @@
|
|
|
7321
7710
|
"module": "src/components/form-field/form-field.js"
|
|
7322
7711
|
}
|
|
7323
7712
|
},
|
|
7324
|
-
{
|
|
7325
|
-
"kind": "method",
|
|
7326
|
-
"name": "_describedBy",
|
|
7327
|
-
"description": "The value of `aria-describedby` for the control: the help message, and the error message while\nit is rendered, so that a screen reader reads the error when the control gets focus.",
|
|
7328
|
-
"privacy": "private",
|
|
7329
|
-
"return": {
|
|
7330
|
-
"type": {
|
|
7331
|
-
"text": "string"
|
|
7332
|
-
}
|
|
7333
|
-
},
|
|
7334
|
-
"inheritedFrom": {
|
|
7335
|
-
"name": "FormField",
|
|
7336
|
-
"module": "src/components/form-field/form-field.js"
|
|
7337
|
-
}
|
|
7338
|
-
},
|
|
7339
7713
|
{
|
|
7340
7714
|
"kind": "method",
|
|
7341
7715
|
"name": "errorTemplate",
|
|
@@ -7559,6 +7933,54 @@
|
|
|
7559
7933
|
"module": "src/components/input-field/input-field.js"
|
|
7560
7934
|
}
|
|
7561
7935
|
},
|
|
7936
|
+
{
|
|
7937
|
+
"name": "clearable",
|
|
7938
|
+
"type": {
|
|
7939
|
+
"text": "boolean"
|
|
7940
|
+
},
|
|
7941
|
+
"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`.",
|
|
7942
|
+
"fieldName": "clearable",
|
|
7943
|
+
"inheritedFrom": {
|
|
7944
|
+
"name": "InputField",
|
|
7945
|
+
"module": "src/components/input-field/input-field.js"
|
|
7946
|
+
}
|
|
7947
|
+
},
|
|
7948
|
+
{
|
|
7949
|
+
"name": "clear-label",
|
|
7950
|
+
"type": {
|
|
7951
|
+
"text": "string"
|
|
7952
|
+
},
|
|
7953
|
+
"description": "The name of that button for assistive technology. Default `'Clear'`.",
|
|
7954
|
+
"fieldName": "clearLabel",
|
|
7955
|
+
"inheritedFrom": {
|
|
7956
|
+
"name": "InputField",
|
|
7957
|
+
"module": "src/components/input-field/input-field.js"
|
|
7958
|
+
}
|
|
7959
|
+
},
|
|
7960
|
+
{
|
|
7961
|
+
"name": "maxlength",
|
|
7962
|
+
"type": {
|
|
7963
|
+
"text": "number | null"
|
|
7964
|
+
},
|
|
7965
|
+
"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.",
|
|
7966
|
+
"fieldName": "maxlength",
|
|
7967
|
+
"inheritedFrom": {
|
|
7968
|
+
"name": "InputField",
|
|
7969
|
+
"module": "src/components/input-field/input-field.js"
|
|
7970
|
+
}
|
|
7971
|
+
},
|
|
7972
|
+
{
|
|
7973
|
+
"name": "minlength",
|
|
7974
|
+
"type": {
|
|
7975
|
+
"text": "number | null"
|
|
7976
|
+
},
|
|
7977
|
+
"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.",
|
|
7978
|
+
"fieldName": "minlength",
|
|
7979
|
+
"inheritedFrom": {
|
|
7980
|
+
"name": "InputField",
|
|
7981
|
+
"module": "src/components/input-field/input-field.js"
|
|
7982
|
+
}
|
|
7983
|
+
},
|
|
7562
7984
|
{
|
|
7563
7985
|
"name": "autocomplete",
|
|
7564
7986
|
"type": {
|
|
@@ -7759,6 +8181,24 @@
|
|
|
7759
8181
|
"tagName": "el-date-field",
|
|
7760
8182
|
"customElement": true,
|
|
7761
8183
|
"tagNameWithoutPrefix": "date-field",
|
|
8184
|
+
"slots": [
|
|
8185
|
+
{
|
|
8186
|
+
"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\"`.",
|
|
8187
|
+
"name": "start",
|
|
8188
|
+
"inheritedFrom": {
|
|
8189
|
+
"name": "InputField",
|
|
8190
|
+
"module": "src/components/input-field/input-field.js"
|
|
8191
|
+
}
|
|
8192
|
+
},
|
|
8193
|
+
{
|
|
8194
|
+
"description": "Content at the end of the control, after the text: a unit, a button. An element of the page with `slot=\"end\"`.",
|
|
8195
|
+
"name": "end",
|
|
8196
|
+
"inheritedFrom": {
|
|
8197
|
+
"name": "InputField",
|
|
8198
|
+
"module": "src/components/input-field/input-field.js"
|
|
8199
|
+
}
|
|
8200
|
+
}
|
|
8201
|
+
],
|
|
7762
8202
|
"cssStates": [
|
|
7763
8203
|
{
|
|
7764
8204
|
"description": "Set on the host once the user has focused and blurred the field, or the browser has refused a submit because of it. Inherited by all subclasses (`InputField`, `CheckboxField`, `TextareaField`, `AmountField`, `SelectField`).",
|
|
@@ -7820,8 +8260,16 @@
|
|
|
7820
8260
|
"name": "DescriptionList",
|
|
7821
8261
|
"cssProperties": [
|
|
7822
8262
|
{
|
|
7823
|
-
"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.",
|
|
8263
|
+
"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.",
|
|
7824
8264
|
"name": "--el-description-list-term-width"
|
|
8265
|
+
},
|
|
8266
|
+
{
|
|
8267
|
+
"description": "The room above and below a row. Unset, it is `--el-space-3`, and `0.75rem` without a theme.",
|
|
8268
|
+
"name": "--el-description-list-padding-block"
|
|
8269
|
+
},
|
|
8270
|
+
{
|
|
8271
|
+
"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.",
|
|
8272
|
+
"name": "--el-description-list-gap"
|
|
7825
8273
|
}
|
|
7826
8274
|
],
|
|
7827
8275
|
"cssParts": [
|
|
@@ -9129,9 +9577,19 @@
|
|
|
9129
9577
|
"declarations": [
|
|
9130
9578
|
{
|
|
9131
9579
|
"kind": "class",
|
|
9132
|
-
"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
|
|
9580
|
+
"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.",
|
|
9133
9581
|
"name": "FileField",
|
|
9134
9582
|
"members": [
|
|
9583
|
+
{
|
|
9584
|
+
"kind": "field",
|
|
9585
|
+
"name": "_dragDepth",
|
|
9586
|
+
"type": {
|
|
9587
|
+
"text": "number"
|
|
9588
|
+
},
|
|
9589
|
+
"default": "0",
|
|
9590
|
+
"description": "How many elements of the area a dragged file is over: the browser tells of every one it\nenters and leaves, the text and the control in the area as well.",
|
|
9591
|
+
"privacy": "private"
|
|
9592
|
+
},
|
|
9135
9593
|
{
|
|
9136
9594
|
"kind": "field",
|
|
9137
9595
|
"name": "_chosen",
|
|
@@ -9160,6 +9618,70 @@
|
|
|
9160
9618
|
},
|
|
9161
9619
|
"readonly": true
|
|
9162
9620
|
},
|
|
9621
|
+
{
|
|
9622
|
+
"kind": "method",
|
|
9623
|
+
"name": "_onAreaClick",
|
|
9624
|
+
"parameters": [
|
|
9625
|
+
{
|
|
9626
|
+
"name": "event",
|
|
9627
|
+
"type": {
|
|
9628
|
+
"text": "MouseEvent"
|
|
9629
|
+
}
|
|
9630
|
+
}
|
|
9631
|
+
],
|
|
9632
|
+
"description": "A click on the area beside its control opens the dialog, as a click on the control does.",
|
|
9633
|
+
"privacy": "private"
|
|
9634
|
+
},
|
|
9635
|
+
{
|
|
9636
|
+
"kind": "method",
|
|
9637
|
+
"name": "_onDrag",
|
|
9638
|
+
"parameters": [
|
|
9639
|
+
{
|
|
9640
|
+
"name": "event",
|
|
9641
|
+
"type": {
|
|
9642
|
+
"text": "DragEvent"
|
|
9643
|
+
}
|
|
9644
|
+
},
|
|
9645
|
+
{
|
|
9646
|
+
"name": "step",
|
|
9647
|
+
"description": "Into an element of the area, over one, or out of one.",
|
|
9648
|
+
"type": {
|
|
9649
|
+
"text": "-1 | 0 | 1"
|
|
9650
|
+
}
|
|
9651
|
+
}
|
|
9652
|
+
],
|
|
9653
|
+
"description": "A file is dragged into the area, over it or out of it. The area says that it takes the file\n(the browser shows a drop that is allowed with the pointer), and the host has the state\n`dragover` for as long. Text or a link that is dragged is nothing for this field.",
|
|
9654
|
+
"privacy": "private"
|
|
9655
|
+
},
|
|
9656
|
+
{
|
|
9657
|
+
"kind": "method",
|
|
9658
|
+
"name": "_onDrop",
|
|
9659
|
+
"parameters": [
|
|
9660
|
+
{
|
|
9661
|
+
"name": "event",
|
|
9662
|
+
"type": {
|
|
9663
|
+
"text": "DragEvent"
|
|
9664
|
+
}
|
|
9665
|
+
}
|
|
9666
|
+
],
|
|
9667
|
+
"description": "Files were dropped onto the area. They are a choice as one in the dialog is: the control\ngets them and tells of it with `input` and `change`, which the field follows as it does for\nthe dialog.\n\nThe dialog does not offer what `accept` leaves out, and one file alone without `multiple`.\nA drop can bring anything, so the field asks itself. A drop it cannot take as a whole is\nnot taken at all: the control keeps what it had, and the field says that the choice was\nnot valid, with its error message.",
|
|
9668
|
+
"privacy": "private"
|
|
9669
|
+
},
|
|
9670
|
+
{
|
|
9671
|
+
"kind": "method",
|
|
9672
|
+
"name": "_describedBy",
|
|
9673
|
+
"description": "The description of the control: the text of the area first, then the messages of the field.",
|
|
9674
|
+
"privacy": "private",
|
|
9675
|
+
"return": {
|
|
9676
|
+
"type": {
|
|
9677
|
+
"text": "string"
|
|
9678
|
+
}
|
|
9679
|
+
},
|
|
9680
|
+
"inheritedFrom": {
|
|
9681
|
+
"name": "FormField",
|
|
9682
|
+
"module": "src/components/form-field/form-field.js"
|
|
9683
|
+
}
|
|
9684
|
+
},
|
|
9163
9685
|
{
|
|
9164
9686
|
"kind": "method",
|
|
9165
9687
|
"name": "onChange",
|
|
@@ -9295,6 +9817,16 @@
|
|
|
9295
9817
|
"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.",
|
|
9296
9818
|
"attribute": "size"
|
|
9297
9819
|
},
|
|
9820
|
+
{
|
|
9821
|
+
"kind": "field",
|
|
9822
|
+
"name": "dropMessage",
|
|
9823
|
+
"privacy": "public",
|
|
9824
|
+
"type": {
|
|
9825
|
+
"text": "string"
|
|
9826
|
+
},
|
|
9827
|
+
"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 `''`.",
|
|
9828
|
+
"attribute": "drop-message"
|
|
9829
|
+
},
|
|
9298
9830
|
{
|
|
9299
9831
|
"kind": "field",
|
|
9300
9832
|
"name": "_renderedState",
|
|
@@ -9457,7 +9989,7 @@
|
|
|
9457
9989
|
{
|
|
9458
9990
|
"name": "part",
|
|
9459
9991
|
"type": {
|
|
9460
|
-
"text": "'input' | 'help-message' | 'error-message' | 'list'"
|
|
9992
|
+
"text": "'input' | 'help-message' | 'error-message' | 'list' | 'control-start' | 'control-end' | 'drop-message'"
|
|
9461
9993
|
}
|
|
9462
9994
|
}
|
|
9463
9995
|
],
|
|
@@ -9515,21 +10047,6 @@
|
|
|
9515
10047
|
"module": "src/components/form-field/form-field.js"
|
|
9516
10048
|
}
|
|
9517
10049
|
},
|
|
9518
|
-
{
|
|
9519
|
-
"kind": "method",
|
|
9520
|
-
"name": "_describedBy",
|
|
9521
|
-
"description": "The value of `aria-describedby` for the control: the help message, and the error message while\nit is rendered, so that a screen reader reads the error when the control gets focus.",
|
|
9522
|
-
"privacy": "private",
|
|
9523
|
-
"return": {
|
|
9524
|
-
"type": {
|
|
9525
|
-
"text": "string"
|
|
9526
|
-
}
|
|
9527
|
-
},
|
|
9528
|
-
"inheritedFrom": {
|
|
9529
|
-
"name": "FormField",
|
|
9530
|
-
"module": "src/components/form-field/form-field.js"
|
|
9531
|
-
}
|
|
9532
|
-
},
|
|
9533
10050
|
{
|
|
9534
10051
|
"kind": "method",
|
|
9535
10052
|
"name": "errorTemplate",
|
|
@@ -9672,7 +10189,7 @@
|
|
|
9672
10189
|
"type": {
|
|
9673
10190
|
"text": "CustomEvent<string[]>"
|
|
9674
10191
|
},
|
|
9675
|
-
"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.",
|
|
10192
|
+
"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.",
|
|
9676
10193
|
"name": "input-change",
|
|
9677
10194
|
"inheritedFrom": {
|
|
9678
10195
|
"name": "FormField",
|
|
@@ -9725,6 +10242,14 @@
|
|
|
9725
10242
|
"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.",
|
|
9726
10243
|
"fieldName": "size"
|
|
9727
10244
|
},
|
|
10245
|
+
{
|
|
10246
|
+
"name": "drop-message",
|
|
10247
|
+
"type": {
|
|
10248
|
+
"text": "string"
|
|
10249
|
+
},
|
|
10250
|
+
"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 `''`.",
|
|
10251
|
+
"fieldName": "dropMessage"
|
|
10252
|
+
},
|
|
9728
10253
|
{
|
|
9729
10254
|
"name": "name",
|
|
9730
10255
|
"type": {
|
|
@@ -9843,6 +10368,10 @@
|
|
|
9843
10368
|
"module": "src/components/form-field/form-field.js"
|
|
9844
10369
|
}
|
|
9845
10370
|
},
|
|
10371
|
+
{
|
|
10372
|
+
"description": "Set on the host while a dragged file is over the area to drop onto.",
|
|
10373
|
+
"name": "dragover"
|
|
10374
|
+
},
|
|
9846
10375
|
{
|
|
9847
10376
|
"description": "Set on the host while the field currently passes validation.",
|
|
9848
10377
|
"name": "valid",
|
|
@@ -9868,6 +10397,30 @@
|
|
|
9868
10397
|
"customElement": true,
|
|
9869
10398
|
"tagNameWithoutPrefix": "file-field"
|
|
9870
10399
|
},
|
|
10400
|
+
{
|
|
10401
|
+
"kind": "function",
|
|
10402
|
+
"name": "accepts",
|
|
10403
|
+
"parameters": [
|
|
10404
|
+
{
|
|
10405
|
+
"name": "accept",
|
|
10406
|
+
"type": {
|
|
10407
|
+
"text": "string"
|
|
10408
|
+
}
|
|
10409
|
+
},
|
|
10410
|
+
{
|
|
10411
|
+
"name": "file",
|
|
10412
|
+
"type": {
|
|
10413
|
+
"text": "File"
|
|
10414
|
+
}
|
|
10415
|
+
}
|
|
10416
|
+
],
|
|
10417
|
+
"description": "Whether a file is one of the kinds an `accept` attribute names: an ending (`.pdf`), a type\n(`application/pdf`) or a group of types (`image/*`), with commas between them. Without one\nevery file is.",
|
|
10418
|
+
"return": {
|
|
10419
|
+
"type": {
|
|
10420
|
+
"text": "boolean"
|
|
10421
|
+
}
|
|
10422
|
+
}
|
|
10423
|
+
},
|
|
9871
10424
|
{
|
|
9872
10425
|
"kind": "function",
|
|
9873
10426
|
"name": "define"
|
|
@@ -9882,6 +10435,14 @@
|
|
|
9882
10435
|
"module": "src/components/file-field/file-field.js"
|
|
9883
10436
|
}
|
|
9884
10437
|
},
|
|
10438
|
+
{
|
|
10439
|
+
"kind": "js",
|
|
10440
|
+
"name": "accepts",
|
|
10441
|
+
"declaration": {
|
|
10442
|
+
"name": "accepts",
|
|
10443
|
+
"module": "src/components/file-field/file-field.js"
|
|
10444
|
+
}
|
|
10445
|
+
},
|
|
9885
10446
|
{
|
|
9886
10447
|
"kind": "js",
|
|
9887
10448
|
"name": "define",
|
|
@@ -10025,7 +10586,7 @@
|
|
|
10025
10586
|
{
|
|
10026
10587
|
"name": "part",
|
|
10027
10588
|
"type": {
|
|
10028
|
-
"text": "'input' | 'help-message' | 'error-message' | 'list'"
|
|
10589
|
+
"text": "'input' | 'help-message' | 'error-message' | 'list' | 'control-start' | 'control-end' | 'drop-message'"
|
|
10029
10590
|
}
|
|
10030
10591
|
}
|
|
10031
10592
|
],
|
|
@@ -10350,9 +10911,105 @@
|
|
|
10350
10911
|
"declarations": [
|
|
10351
10912
|
{
|
|
10352
10913
|
"kind": "class",
|
|
10353
|
-
"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.",
|
|
10914
|
+
"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.",
|
|
10354
10915
|
"name": "InputField",
|
|
10916
|
+
"slots": [
|
|
10917
|
+
{
|
|
10918
|
+
"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\"`.",
|
|
10919
|
+
"name": "start"
|
|
10920
|
+
},
|
|
10921
|
+
{
|
|
10922
|
+
"description": "Content at the end of the control, after the text: a unit, a button. An element of the page with `slot=\"end\"`.",
|
|
10923
|
+
"name": "end"
|
|
10924
|
+
}
|
|
10925
|
+
],
|
|
10355
10926
|
"members": [
|
|
10927
|
+
{
|
|
10928
|
+
"kind": "method",
|
|
10929
|
+
"name": "_slotted",
|
|
10930
|
+
"parameters": [
|
|
10931
|
+
{
|
|
10932
|
+
"name": "name",
|
|
10933
|
+
"type": {
|
|
10934
|
+
"text": "'start'|'end'"
|
|
10935
|
+
}
|
|
10936
|
+
}
|
|
10937
|
+
],
|
|
10938
|
+
"description": "The elements the page has put into the field for the start or the end of its control:\n`<span slot=\"end\">€</span>`. They are children of the field until it renders, and in\ntheir place in the control from then on, also in server-rendered markup. An element that\ncomes later is taken in with the next render.",
|
|
10939
|
+
"privacy": "private",
|
|
10940
|
+
"return": {
|
|
10941
|
+
"type": {
|
|
10942
|
+
"text": "Element[]"
|
|
10943
|
+
}
|
|
10944
|
+
}
|
|
10945
|
+
},
|
|
10946
|
+
{
|
|
10947
|
+
"kind": "method",
|
|
10948
|
+
"name": "_content",
|
|
10949
|
+
"parameters": [
|
|
10950
|
+
{
|
|
10951
|
+
"name": "elements",
|
|
10952
|
+
"type": {
|
|
10953
|
+
"text": "Element[]"
|
|
10954
|
+
}
|
|
10955
|
+
}
|
|
10956
|
+
],
|
|
10957
|
+
"description": "The content for a place in the control. In a browser the elements of the page themselves:\nthey are moved, not copied, and stay where they are with every render. On a server their\nmarkup, written as it is.\n\nThat is what `unsafeHTML()` gives on a server. It is written out here because the directive\ngives nodes wherever there is a DOM, and a template that is turned into a string in a\nbrowser, as the tests of the server-rendered markup do, would lose them.",
|
|
10958
|
+
"privacy": "private",
|
|
10959
|
+
"return": {
|
|
10960
|
+
"type": {
|
|
10961
|
+
"text": "Element[] | { __unsafeHTML: true, string: string }"
|
|
10962
|
+
}
|
|
10963
|
+
}
|
|
10964
|
+
},
|
|
10965
|
+
{
|
|
10966
|
+
"kind": "method",
|
|
10967
|
+
"name": "_describes",
|
|
10968
|
+
"parameters": [
|
|
10969
|
+
{
|
|
10970
|
+
"name": "elements",
|
|
10971
|
+
"type": {
|
|
10972
|
+
"text": "Element[]"
|
|
10973
|
+
}
|
|
10974
|
+
}
|
|
10975
|
+
],
|
|
10976
|
+
"description": "Whether what the page has put at a place describes the value: a unit, a currency, the start\nof an address. A screen reader reads it with the input then. A control there, a button or\na link, has a name and a stop of the Tab key itself, and is no description. An icon is none\neither: it has no text, and is hidden from assistive technology (`aria-hidden`).",
|
|
10977
|
+
"privacy": "private",
|
|
10978
|
+
"return": {
|
|
10979
|
+
"type": {
|
|
10980
|
+
"text": "boolean"
|
|
10981
|
+
}
|
|
10982
|
+
}
|
|
10983
|
+
},
|
|
10984
|
+
{
|
|
10985
|
+
"kind": "method",
|
|
10986
|
+
"name": "_describedBy",
|
|
10987
|
+
"description": "The description of the control: what the page has put at its start and at its end, then the\nmessages of the field.",
|
|
10988
|
+
"privacy": "private",
|
|
10989
|
+
"return": {
|
|
10990
|
+
"type": {
|
|
10991
|
+
"text": "string"
|
|
10992
|
+
}
|
|
10993
|
+
},
|
|
10994
|
+
"inheritedFrom": {
|
|
10995
|
+
"name": "FormField",
|
|
10996
|
+
"module": "src/components/form-field/form-field.js"
|
|
10997
|
+
}
|
|
10998
|
+
},
|
|
10999
|
+
{
|
|
11000
|
+
"kind": "method",
|
|
11001
|
+
"name": "_onControlClick",
|
|
11002
|
+
"parameters": [
|
|
11003
|
+
{
|
|
11004
|
+
"name": "event",
|
|
11005
|
+
"type": {
|
|
11006
|
+
"text": "MouseEvent"
|
|
11007
|
+
}
|
|
11008
|
+
}
|
|
11009
|
+
],
|
|
11010
|
+
"description": "A click on the control beside its input, on a text or an icon of the page, puts the focus\ninto the input: to the eye all of it is the control. A control in the content, the button\nthat clears the field and the input itself keep their click.",
|
|
11011
|
+
"privacy": "private"
|
|
11012
|
+
},
|
|
10356
11013
|
{
|
|
10357
11014
|
"kind": "method",
|
|
10358
11015
|
"name": "_pattern",
|
|
@@ -10430,6 +11087,46 @@
|
|
|
10430
11087
|
"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.",
|
|
10431
11088
|
"attribute": "pattern"
|
|
10432
11089
|
},
|
|
11090
|
+
{
|
|
11091
|
+
"kind": "field",
|
|
11092
|
+
"name": "clearable",
|
|
11093
|
+
"privacy": "public",
|
|
11094
|
+
"type": {
|
|
11095
|
+
"text": "boolean"
|
|
11096
|
+
},
|
|
11097
|
+
"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`.",
|
|
11098
|
+
"attribute": "clearable"
|
|
11099
|
+
},
|
|
11100
|
+
{
|
|
11101
|
+
"kind": "field",
|
|
11102
|
+
"name": "clearLabel",
|
|
11103
|
+
"privacy": "public",
|
|
11104
|
+
"type": {
|
|
11105
|
+
"text": "string"
|
|
11106
|
+
},
|
|
11107
|
+
"description": "The name of that button for assistive technology. Default `'Clear'`.",
|
|
11108
|
+
"attribute": "clear-label"
|
|
11109
|
+
},
|
|
11110
|
+
{
|
|
11111
|
+
"kind": "field",
|
|
11112
|
+
"name": "maxlength",
|
|
11113
|
+
"privacy": "public",
|
|
11114
|
+
"type": {
|
|
11115
|
+
"text": "number | null"
|
|
11116
|
+
},
|
|
11117
|
+
"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.",
|
|
11118
|
+
"attribute": "maxlength"
|
|
11119
|
+
},
|
|
11120
|
+
{
|
|
11121
|
+
"kind": "field",
|
|
11122
|
+
"name": "minlength",
|
|
11123
|
+
"privacy": "public",
|
|
11124
|
+
"type": {
|
|
11125
|
+
"text": "number | null"
|
|
11126
|
+
},
|
|
11127
|
+
"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.",
|
|
11128
|
+
"attribute": "minlength"
|
|
11129
|
+
},
|
|
10433
11130
|
{
|
|
10434
11131
|
"kind": "field",
|
|
10435
11132
|
"name": "autocomplete",
|
|
@@ -10666,7 +11363,7 @@
|
|
|
10666
11363
|
{
|
|
10667
11364
|
"name": "part",
|
|
10668
11365
|
"type": {
|
|
10669
|
-
"text": "'input' | 'help-message' | 'error-message' | 'list'"
|
|
11366
|
+
"text": "'input' | 'help-message' | 'error-message' | 'list' | 'control-start' | 'control-end' | 'drop-message'"
|
|
10670
11367
|
}
|
|
10671
11368
|
}
|
|
10672
11369
|
],
|
|
@@ -10724,21 +11421,6 @@
|
|
|
10724
11421
|
"module": "src/components/form-field/form-field.js"
|
|
10725
11422
|
}
|
|
10726
11423
|
},
|
|
10727
|
-
{
|
|
10728
|
-
"kind": "method",
|
|
10729
|
-
"name": "_describedBy",
|
|
10730
|
-
"description": "The value of `aria-describedby` for the control: the help message, and the error message while\nit is rendered, so that a screen reader reads the error when the control gets focus.",
|
|
10731
|
-
"privacy": "private",
|
|
10732
|
-
"return": {
|
|
10733
|
-
"type": {
|
|
10734
|
-
"text": "string"
|
|
10735
|
-
}
|
|
10736
|
-
},
|
|
10737
|
-
"inheritedFrom": {
|
|
10738
|
-
"name": "FormField",
|
|
10739
|
-
"module": "src/components/form-field/form-field.js"
|
|
10740
|
-
}
|
|
10741
|
-
},
|
|
10742
11424
|
{
|
|
10743
11425
|
"kind": "method",
|
|
10744
11426
|
"name": "errorTemplate",
|
|
@@ -10936,6 +11618,38 @@
|
|
|
10936
11618
|
"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.",
|
|
10937
11619
|
"fieldName": "pattern"
|
|
10938
11620
|
},
|
|
11621
|
+
{
|
|
11622
|
+
"name": "clearable",
|
|
11623
|
+
"type": {
|
|
11624
|
+
"text": "boolean"
|
|
11625
|
+
},
|
|
11626
|
+
"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`.",
|
|
11627
|
+
"fieldName": "clearable"
|
|
11628
|
+
},
|
|
11629
|
+
{
|
|
11630
|
+
"name": "clear-label",
|
|
11631
|
+
"type": {
|
|
11632
|
+
"text": "string"
|
|
11633
|
+
},
|
|
11634
|
+
"description": "The name of that button for assistive technology. Default `'Clear'`.",
|
|
11635
|
+
"fieldName": "clearLabel"
|
|
11636
|
+
},
|
|
11637
|
+
{
|
|
11638
|
+
"name": "maxlength",
|
|
11639
|
+
"type": {
|
|
11640
|
+
"text": "number | null"
|
|
11641
|
+
},
|
|
11642
|
+
"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.",
|
|
11643
|
+
"fieldName": "maxlength"
|
|
11644
|
+
},
|
|
11645
|
+
{
|
|
11646
|
+
"name": "minlength",
|
|
11647
|
+
"type": {
|
|
11648
|
+
"text": "number | null"
|
|
11649
|
+
},
|
|
11650
|
+
"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.",
|
|
11651
|
+
"fieldName": "minlength"
|
|
11652
|
+
},
|
|
10939
11653
|
{
|
|
10940
11654
|
"name": "autocomplete",
|
|
10941
11655
|
"type": {
|
|
@@ -11371,6 +12085,10 @@
|
|
|
11371
12085
|
{
|
|
11372
12086
|
"description": "The padding of the row at its start and its end. Unset, it is `--el-space-4`, and `1rem` without a theme.",
|
|
11373
12087
|
"name": "--el-list-padding-inline"
|
|
12088
|
+
},
|
|
12089
|
+
{
|
|
12090
|
+
"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.",
|
|
12091
|
+
"name": "--el-list-gap"
|
|
11374
12092
|
}
|
|
11375
12093
|
],
|
|
11376
12094
|
"cssParts": [
|
|
@@ -11590,6 +12308,10 @@
|
|
|
11590
12308
|
{
|
|
11591
12309
|
"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.",
|
|
11592
12310
|
"name": "--el-list-padding-inline"
|
|
12311
|
+
},
|
|
12312
|
+
{
|
|
12313
|
+
"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.",
|
|
12314
|
+
"name": "--el-list-gap"
|
|
11593
12315
|
}
|
|
11594
12316
|
],
|
|
11595
12317
|
"cssParts": [
|
|
@@ -11778,13 +12500,17 @@
|
|
|
11778
12500
|
"declarations": [
|
|
11779
12501
|
{
|
|
11780
12502
|
"kind": "class",
|
|
11781
|
-
"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
|
|
12503
|
+
"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.",
|
|
11782
12504
|
"name": "MenuItem",
|
|
11783
12505
|
"cssParts": [
|
|
11784
12506
|
{
|
|
11785
12507
|
"description": "The entry: a `<button>`, or an `<a>` with `href`.",
|
|
11786
12508
|
"name": "base"
|
|
11787
12509
|
},
|
|
12510
|
+
{
|
|
12511
|
+
"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.",
|
|
12512
|
+
"name": "mark"
|
|
12513
|
+
},
|
|
11788
12514
|
{
|
|
11789
12515
|
"description": "The place of the icon.",
|
|
11790
12516
|
"name": "icon"
|
|
@@ -11829,6 +12555,17 @@
|
|
|
11829
12555
|
}
|
|
11830
12556
|
}
|
|
11831
12557
|
},
|
|
12558
|
+
{
|
|
12559
|
+
"kind": "method",
|
|
12560
|
+
"name": "_checked",
|
|
12561
|
+
"description": "Whether the entry is checked: `checked` is there as an attribute without a value, or true.",
|
|
12562
|
+
"privacy": "private",
|
|
12563
|
+
"return": {
|
|
12564
|
+
"type": {
|
|
12565
|
+
"text": "boolean"
|
|
12566
|
+
}
|
|
12567
|
+
}
|
|
12568
|
+
},
|
|
11832
12569
|
{
|
|
11833
12570
|
"kind": "field",
|
|
11834
12571
|
"name": "href",
|
|
@@ -11879,6 +12616,26 @@
|
|
|
11879
12616
|
"description": "Whether the entry cannot be chosen. The keyboard still gets to it. Default `false`.",
|
|
11880
12617
|
"attribute": "disabled"
|
|
11881
12618
|
},
|
|
12619
|
+
{
|
|
12620
|
+
"kind": "field",
|
|
12621
|
+
"name": "type",
|
|
12622
|
+
"privacy": "public",
|
|
12623
|
+
"type": {
|
|
12624
|
+
"text": "'normal'|'checkbox'|'radio'"
|
|
12625
|
+
},
|
|
12626
|
+
"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'`.",
|
|
12627
|
+
"attribute": "type"
|
|
12628
|
+
},
|
|
12629
|
+
{
|
|
12630
|
+
"kind": "field",
|
|
12631
|
+
"name": "checked",
|
|
12632
|
+
"privacy": "public",
|
|
12633
|
+
"type": {
|
|
12634
|
+
"text": "boolean"
|
|
12635
|
+
},
|
|
12636
|
+
"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`.",
|
|
12637
|
+
"attribute": "checked"
|
|
12638
|
+
},
|
|
11882
12639
|
{
|
|
11883
12640
|
"kind": "field",
|
|
11884
12641
|
"name": "variant",
|
|
@@ -11931,6 +12688,22 @@
|
|
|
11931
12688
|
"description": "Whether the entry cannot be chosen. The keyboard still gets to it. Default `false`.",
|
|
11932
12689
|
"fieldName": "disabled"
|
|
11933
12690
|
},
|
|
12691
|
+
{
|
|
12692
|
+
"name": "type",
|
|
12693
|
+
"type": {
|
|
12694
|
+
"text": "'normal'|'checkbox'|'radio'"
|
|
12695
|
+
},
|
|
12696
|
+
"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'`.",
|
|
12697
|
+
"fieldName": "type"
|
|
12698
|
+
},
|
|
12699
|
+
{
|
|
12700
|
+
"name": "checked",
|
|
12701
|
+
"type": {
|
|
12702
|
+
"text": "boolean"
|
|
12703
|
+
},
|
|
12704
|
+
"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`.",
|
|
12705
|
+
"fieldName": "checked"
|
|
12706
|
+
},
|
|
11934
12707
|
{
|
|
11935
12708
|
"name": "variant",
|
|
11936
12709
|
"type": {
|
|
@@ -12073,30 +12846,127 @@
|
|
|
12073
12846
|
},
|
|
12074
12847
|
{
|
|
12075
12848
|
"kind": "field",
|
|
12076
|
-
"name": "
|
|
12077
|
-
"
|
|
12078
|
-
|
|
12079
|
-
|
|
12080
|
-
|
|
12081
|
-
|
|
12082
|
-
|
|
12083
|
-
"text": "PointerEvent"
|
|
12084
|
-
}
|
|
12085
|
-
}
|
|
12086
|
-
]
|
|
12087
|
-
},
|
|
12088
|
-
{
|
|
12089
|
-
"kind": "method",
|
|
12090
|
-
"name": "show",
|
|
12091
|
-
"description": "Opens the menu, with the focus on its first entry.",
|
|
12092
|
-
"return": {
|
|
12093
|
-
"type": {
|
|
12094
|
-
"text": "void"
|
|
12095
|
-
}
|
|
12096
|
-
}
|
|
12849
|
+
"name": "_placing",
|
|
12850
|
+
"type": {
|
|
12851
|
+
"text": "boolean"
|
|
12852
|
+
},
|
|
12853
|
+
"default": "false",
|
|
12854
|
+
"description": "Whether the panel is being placed, and whether it was asked to be placed again meanwhile.",
|
|
12855
|
+
"privacy": "private"
|
|
12097
12856
|
},
|
|
12098
12857
|
{
|
|
12099
|
-
"kind": "
|
|
12858
|
+
"kind": "field",
|
|
12859
|
+
"name": "_placeAgain",
|
|
12860
|
+
"type": {
|
|
12861
|
+
"text": "boolean"
|
|
12862
|
+
},
|
|
12863
|
+
"default": "false",
|
|
12864
|
+
"privacy": "private"
|
|
12865
|
+
},
|
|
12866
|
+
{
|
|
12867
|
+
"kind": "field",
|
|
12868
|
+
"name": "_current",
|
|
12869
|
+
"default": "undefined",
|
|
12870
|
+
"description": "The entry that had the focus last while the menu is open. It gets the focus back when a\npress beside the entries has given it to the panel.",
|
|
12871
|
+
"privacy": "private",
|
|
12872
|
+
"type": {
|
|
12873
|
+
"text": "HTMLElement | undefined"
|
|
12874
|
+
}
|
|
12875
|
+
},
|
|
12876
|
+
{
|
|
12877
|
+
"kind": "field",
|
|
12878
|
+
"name": "_entering",
|
|
12879
|
+
"type": {
|
|
12880
|
+
"text": "boolean"
|
|
12881
|
+
},
|
|
12882
|
+
"default": "false",
|
|
12883
|
+
"description": "Whether the menu is open and has not put the focus on an entry yet: its entries are not\nthere, or not defined. The focus goes to them once they are.",
|
|
12884
|
+
"privacy": "private"
|
|
12885
|
+
},
|
|
12886
|
+
{
|
|
12887
|
+
"kind": "field",
|
|
12888
|
+
"name": "_pressedAtPlace",
|
|
12889
|
+
"type": {
|
|
12890
|
+
"text": "boolean"
|
|
12891
|
+
},
|
|
12892
|
+
"default": "false",
|
|
12893
|
+
"description": "Whether the pointer that went down last is on the element the menu is open at, the button\nof a row. The `showAt()` the page calls with the click of that press closes the menu.",
|
|
12894
|
+
"privacy": "private"
|
|
12895
|
+
},
|
|
12896
|
+
{
|
|
12897
|
+
"kind": "field",
|
|
12898
|
+
"name": "_onPressOutside",
|
|
12899
|
+
"description": "A pointer that goes down beside the open menu closes it. The panel is a popover the menu\nopens and closes itself (`popover=\"manual\"`): the platform would close one of its own\n(`auto`) when the pointer that opened it is let go, the finger after a long press.",
|
|
12900
|
+
"privacy": "private",
|
|
12901
|
+
"parameters": [
|
|
12902
|
+
{
|
|
12903
|
+
"name": "event",
|
|
12904
|
+
"type": {
|
|
12905
|
+
"text": "PointerEvent"
|
|
12906
|
+
}
|
|
12907
|
+
}
|
|
12908
|
+
]
|
|
12909
|
+
},
|
|
12910
|
+
{
|
|
12911
|
+
"kind": "field",
|
|
12912
|
+
"name": "_closedByScroll",
|
|
12913
|
+
"type": {
|
|
12914
|
+
"text": "boolean"
|
|
12915
|
+
},
|
|
12916
|
+
"default": "false",
|
|
12917
|
+
"description": "Whether the menu closes because the page has scrolled under it. The focus goes back to\nwhat the menu was opened for without scrolling to it then: the scroll of the user goes on.",
|
|
12918
|
+
"privacy": "private"
|
|
12919
|
+
},
|
|
12920
|
+
{
|
|
12921
|
+
"kind": "field",
|
|
12922
|
+
"name": "_scrollers",
|
|
12923
|
+
"default": "undefined",
|
|
12924
|
+
"description": "What the menu listens on for a scroll while it is open at a point.",
|
|
12925
|
+
"privacy": "private",
|
|
12926
|
+
"type": {
|
|
12927
|
+
"text": "Array<Element | Window | Document> | undefined"
|
|
12928
|
+
}
|
|
12929
|
+
},
|
|
12930
|
+
{
|
|
12931
|
+
"kind": "field",
|
|
12932
|
+
"name": "_onScroll",
|
|
12933
|
+
"description": "What a menu at a point was opened for scrolls away under it: the page, or a region around\nthe row. The menu closes, as the menu of the system does. At an element it follows the\nelement instead, and it has no point to be left at.\n\nA scroll inside of the menu is none of these: a long menu scrolls in its panel. Neither is\none of a region that does not move what the menu was opened for, another column of the\npage. A menu that was opened for nothing closes for every scroll in the page beside it.",
|
|
12934
|
+
"privacy": "private",
|
|
12935
|
+
"parameters": [
|
|
12936
|
+
{
|
|
12937
|
+
"name": "event",
|
|
12938
|
+
"type": {
|
|
12939
|
+
"text": "Event"
|
|
12940
|
+
}
|
|
12941
|
+
}
|
|
12942
|
+
]
|
|
12943
|
+
},
|
|
12944
|
+
{
|
|
12945
|
+
"kind": "field",
|
|
12946
|
+
"name": "_onKeyDown",
|
|
12947
|
+
"description": "The keys of a menu, for as long as it is open and wherever the focus is: an open menu that\nhas lost the focus would be left with no key at all. The window hears a key before the\npage does, so `Escape` closes the menu and nothing behind it.",
|
|
12948
|
+
"privacy": "private",
|
|
12949
|
+
"parameters": [
|
|
12950
|
+
{
|
|
12951
|
+
"name": "event",
|
|
12952
|
+
"type": {
|
|
12953
|
+
"text": "KeyboardEvent"
|
|
12954
|
+
}
|
|
12955
|
+
}
|
|
12956
|
+
]
|
|
12957
|
+
},
|
|
12958
|
+
{
|
|
12959
|
+
"kind": "method",
|
|
12960
|
+
"name": "show",
|
|
12961
|
+
"description": "Opens the menu, with the focus on its first entry.",
|
|
12962
|
+
"return": {
|
|
12963
|
+
"type": {
|
|
12964
|
+
"text": "void"
|
|
12965
|
+
}
|
|
12966
|
+
}
|
|
12967
|
+
},
|
|
12968
|
+
{
|
|
12969
|
+
"kind": "method",
|
|
12100
12970
|
"name": "showAt",
|
|
12101
12971
|
"parameters": [
|
|
12102
12972
|
{
|
|
@@ -12115,7 +12985,7 @@
|
|
|
12115
12985
|
}
|
|
12116
12986
|
}
|
|
12117
12987
|
],
|
|
12118
|
-
"description": "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.",
|
|
12988
|
+
"description": "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.",
|
|
12119
12989
|
"return": {
|
|
12120
12990
|
"type": {
|
|
12121
12991
|
"text": "void"
|
|
@@ -12202,7 +13072,7 @@
|
|
|
12202
13072
|
},
|
|
12203
13073
|
{
|
|
12204
13074
|
"kind": "method",
|
|
12205
|
-
"name": "
|
|
13075
|
+
"name": "_hasFocusOnEntry",
|
|
12206
13076
|
"description": "Whether the focus is on an entry of the menu.",
|
|
12207
13077
|
"privacy": "private",
|
|
12208
13078
|
"return": {
|
|
@@ -12211,6 +13081,17 @@
|
|
|
12211
13081
|
}
|
|
12212
13082
|
}
|
|
12213
13083
|
},
|
|
13084
|
+
{
|
|
13085
|
+
"kind": "method",
|
|
13086
|
+
"name": "_hasFocusInPanel",
|
|
13087
|
+
"description": "Whether the focus is in the menu: on an entry, or on the panel around the entries.",
|
|
13088
|
+
"privacy": "private",
|
|
13089
|
+
"return": {
|
|
13090
|
+
"type": {
|
|
13091
|
+
"text": "boolean"
|
|
13092
|
+
}
|
|
13093
|
+
}
|
|
13094
|
+
},
|
|
12214
13095
|
{
|
|
12215
13096
|
"kind": "method",
|
|
12216
13097
|
"name": "_onTriggerKeyDown",
|
|
@@ -12227,35 +13108,35 @@
|
|
|
12227
13108
|
},
|
|
12228
13109
|
{
|
|
12229
13110
|
"kind": "method",
|
|
12230
|
-
"name": "
|
|
13111
|
+
"name": "_onClick",
|
|
12231
13112
|
"parameters": [
|
|
12232
13113
|
{
|
|
12233
13114
|
"name": "event",
|
|
12234
13115
|
"type": {
|
|
12235
|
-
"text": "
|
|
13116
|
+
"text": "MouseEvent"
|
|
12236
13117
|
}
|
|
12237
13118
|
}
|
|
12238
13119
|
],
|
|
12239
|
-
"description": "
|
|
13120
|
+
"description": "A click in the panel: the user has chosen the entry it is on, unless that one is disabled.",
|
|
12240
13121
|
"privacy": "private"
|
|
12241
13122
|
},
|
|
12242
13123
|
{
|
|
12243
13124
|
"kind": "method",
|
|
12244
|
-
"name": "
|
|
13125
|
+
"name": "_onFocusOut",
|
|
12245
13126
|
"parameters": [
|
|
12246
13127
|
{
|
|
12247
13128
|
"name": "event",
|
|
12248
13129
|
"type": {
|
|
12249
|
-
"text": "
|
|
13130
|
+
"text": "FocusEvent"
|
|
12250
13131
|
}
|
|
12251
13132
|
}
|
|
12252
13133
|
],
|
|
12253
|
-
"description": "
|
|
13134
|
+
"description": "The focus has left the menu with the Tab key, which closes it and moves on. The focus is\nwhere the user has put it, and stays there.\n\nOnly the key closes it this way. A pointer that goes down beside the menu closes it by\nitself, and the finger of a long press gives the focus to the row it is on when it is\nlifted: the menu it has just opened stays open.",
|
|
12254
13135
|
"privacy": "private"
|
|
12255
13136
|
},
|
|
12256
13137
|
{
|
|
12257
13138
|
"kind": "method",
|
|
12258
|
-
"name": "
|
|
13139
|
+
"name": "_onFocusIn",
|
|
12259
13140
|
"parameters": [
|
|
12260
13141
|
{
|
|
12261
13142
|
"name": "event",
|
|
@@ -12264,13 +13145,19 @@
|
|
|
12264
13145
|
}
|
|
12265
13146
|
}
|
|
12266
13147
|
],
|
|
12267
|
-
"description": "The focus has
|
|
13148
|
+
"description": "The focus has come into the menu. On an entry: the menu remembers it. On the panel itself:\nthe user has pressed beside the entries, on the heading of a group, a line or the padding,\nand the entry that had the focus gets it back. The keyboard goes on from there.",
|
|
12268
13149
|
"privacy": "private"
|
|
12269
13150
|
},
|
|
12270
13151
|
{
|
|
12271
13152
|
"kind": "method",
|
|
12272
13153
|
"name": "_focusEntry",
|
|
12273
|
-
"description": "Puts the focus on the entry the menu is entered at.",
|
|
13154
|
+
"description": "Puts the focus on the entry the menu is entered at. An entry that is not there yet, or\nwhose element is not defined yet, cannot take it: the menu waits for it.",
|
|
13155
|
+
"privacy": "private"
|
|
13156
|
+
},
|
|
13157
|
+
{
|
|
13158
|
+
"kind": "method",
|
|
13159
|
+
"name": "_entriesChanged",
|
|
13160
|
+
"description": "Other entries in the open menu, or entries that have rendered by now. The panel has\nanother size, and a menu at a point is placed once. And the focus goes to the entry the\nmenu is entered at, where none could take it when the menu opened and nothing in the menu\nhas it by now.",
|
|
12274
13161
|
"privacy": "private"
|
|
12275
13162
|
},
|
|
12276
13163
|
{
|
|
@@ -12300,6 +13187,12 @@
|
|
|
12300
13187
|
"description": "Places the panel now, and again whenever the button moves: on scroll, on resize, when the\nbutton or the panel changes its size.",
|
|
12301
13188
|
"privacy": "private"
|
|
12302
13189
|
},
|
|
13190
|
+
{
|
|
13191
|
+
"kind": "method",
|
|
13192
|
+
"name": "_listenForScroll",
|
|
13193
|
+
"description": "A scroll does not bubble and does not leave a shadow root, so the menu listens where it\nhappens: on every region around what it was opened for, and on the window for the page.\nOpened for nothing, it hears every scroll of the page on its way down from the document.",
|
|
13194
|
+
"privacy": "private"
|
|
13195
|
+
},
|
|
12303
13196
|
{
|
|
12304
13197
|
"kind": "method",
|
|
12305
13198
|
"name": "_stopPositioning",
|
|
@@ -12308,6 +13201,7 @@
|
|
|
12308
13201
|
{
|
|
12309
13202
|
"kind": "method",
|
|
12310
13203
|
"name": "_position",
|
|
13204
|
+
"description": "Places the panel at what the menu is open at.\n\nNot before the panel is shown: the element renders when `open` is set, before the menu has\ntaken its place from `showAt()`, and would be placed at its own element. And one placement\nat a time: a placement takes a few turns, more where the panel has to try the other side,\nso one that was asked for first can be done last. A menu whose own element is out of view,\nbelow a long list, was taken there that way. What is asked for while the panel is being\nplaced is placed after it, at what the menu is open at by then.",
|
|
12311
13205
|
"privacy": "private"
|
|
12312
13206
|
},
|
|
12313
13207
|
{
|
|
@@ -12422,10 +13316,6 @@
|
|
|
12422
13316
|
"customElement": true,
|
|
12423
13317
|
"tagNameWithoutPrefix": "menu"
|
|
12424
13318
|
},
|
|
12425
|
-
{
|
|
12426
|
-
"kind": "variable",
|
|
12427
|
-
"name": "place"
|
|
12428
|
-
},
|
|
12429
13319
|
{
|
|
12430
13320
|
"kind": "function",
|
|
12431
13321
|
"name": "define"
|
|
@@ -13276,6 +14166,108 @@
|
|
|
13276
14166
|
"module": "src/components/input-field/input-field.js"
|
|
13277
14167
|
}
|
|
13278
14168
|
},
|
|
14169
|
+
{
|
|
14170
|
+
"kind": "method",
|
|
14171
|
+
"name": "_slotted",
|
|
14172
|
+
"parameters": [
|
|
14173
|
+
{
|
|
14174
|
+
"name": "name",
|
|
14175
|
+
"type": {
|
|
14176
|
+
"text": "'start'|'end'"
|
|
14177
|
+
}
|
|
14178
|
+
}
|
|
14179
|
+
],
|
|
14180
|
+
"description": "The elements the page has put into the field for the start or the end of its control:\n`<span slot=\"end\">€</span>`. They are children of the field until it renders, and in\ntheir place in the control from then on, also in server-rendered markup. An element that\ncomes later is taken in with the next render.",
|
|
14181
|
+
"privacy": "private",
|
|
14182
|
+
"return": {
|
|
14183
|
+
"type": {
|
|
14184
|
+
"text": "Element[]"
|
|
14185
|
+
}
|
|
14186
|
+
},
|
|
14187
|
+
"inheritedFrom": {
|
|
14188
|
+
"name": "InputField",
|
|
14189
|
+
"module": "src/components/input-field/input-field.js"
|
|
14190
|
+
}
|
|
14191
|
+
},
|
|
14192
|
+
{
|
|
14193
|
+
"kind": "method",
|
|
14194
|
+
"name": "_content",
|
|
14195
|
+
"parameters": [
|
|
14196
|
+
{
|
|
14197
|
+
"name": "elements",
|
|
14198
|
+
"type": {
|
|
14199
|
+
"text": "Element[]"
|
|
14200
|
+
}
|
|
14201
|
+
}
|
|
14202
|
+
],
|
|
14203
|
+
"description": "The content for a place in the control. In a browser the elements of the page themselves:\nthey are moved, not copied, and stay where they are with every render. On a server their\nmarkup, written as it is.\n\nThat is what `unsafeHTML()` gives on a server. It is written out here because the directive\ngives nodes wherever there is a DOM, and a template that is turned into a string in a\nbrowser, as the tests of the server-rendered markup do, would lose them.",
|
|
14204
|
+
"privacy": "private",
|
|
14205
|
+
"return": {
|
|
14206
|
+
"type": {
|
|
14207
|
+
"text": "Element[] | { __unsafeHTML: true, string: string }"
|
|
14208
|
+
}
|
|
14209
|
+
},
|
|
14210
|
+
"inheritedFrom": {
|
|
14211
|
+
"name": "InputField",
|
|
14212
|
+
"module": "src/components/input-field/input-field.js"
|
|
14213
|
+
}
|
|
14214
|
+
},
|
|
14215
|
+
{
|
|
14216
|
+
"kind": "method",
|
|
14217
|
+
"name": "_describes",
|
|
14218
|
+
"parameters": [
|
|
14219
|
+
{
|
|
14220
|
+
"name": "elements",
|
|
14221
|
+
"type": {
|
|
14222
|
+
"text": "Element[]"
|
|
14223
|
+
}
|
|
14224
|
+
}
|
|
14225
|
+
],
|
|
14226
|
+
"description": "Whether what the page has put at a place describes the value: a unit, a currency, the start\nof an address. A screen reader reads it with the input then. A control there, a button or\na link, has a name and a stop of the Tab key itself, and is no description. An icon is none\neither: it has no text, and is hidden from assistive technology (`aria-hidden`).",
|
|
14227
|
+
"privacy": "private",
|
|
14228
|
+
"return": {
|
|
14229
|
+
"type": {
|
|
14230
|
+
"text": "boolean"
|
|
14231
|
+
}
|
|
14232
|
+
},
|
|
14233
|
+
"inheritedFrom": {
|
|
14234
|
+
"name": "InputField",
|
|
14235
|
+
"module": "src/components/input-field/input-field.js"
|
|
14236
|
+
}
|
|
14237
|
+
},
|
|
14238
|
+
{
|
|
14239
|
+
"kind": "method",
|
|
14240
|
+
"name": "_describedBy",
|
|
14241
|
+
"description": "The description of the control: what the page has put at its start and at its end, then the\nmessages of the field.",
|
|
14242
|
+
"privacy": "private",
|
|
14243
|
+
"return": {
|
|
14244
|
+
"type": {
|
|
14245
|
+
"text": "string"
|
|
14246
|
+
}
|
|
14247
|
+
},
|
|
14248
|
+
"inheritedFrom": {
|
|
14249
|
+
"name": "FormField",
|
|
14250
|
+
"module": "src/components/form-field/form-field.js"
|
|
14251
|
+
}
|
|
14252
|
+
},
|
|
14253
|
+
{
|
|
14254
|
+
"kind": "method",
|
|
14255
|
+
"name": "_onControlClick",
|
|
14256
|
+
"parameters": [
|
|
14257
|
+
{
|
|
14258
|
+
"name": "event",
|
|
14259
|
+
"type": {
|
|
14260
|
+
"text": "MouseEvent"
|
|
14261
|
+
}
|
|
14262
|
+
}
|
|
14263
|
+
],
|
|
14264
|
+
"description": "A click on the control beside its input, on a text or an icon of the page, puts the focus\ninto the input: to the eye all of it is the control. A control in the content, the button\nthat clears the field and the input itself keep their click.",
|
|
14265
|
+
"privacy": "private",
|
|
14266
|
+
"inheritedFrom": {
|
|
14267
|
+
"name": "InputField",
|
|
14268
|
+
"module": "src/components/input-field/input-field.js"
|
|
14269
|
+
}
|
|
14270
|
+
},
|
|
13279
14271
|
{
|
|
13280
14272
|
"kind": "method",
|
|
13281
14273
|
"name": "_controlAttributes",
|
|
@@ -13348,6 +14340,62 @@
|
|
|
13348
14340
|
"module": "src/components/input-field/input-field.js"
|
|
13349
14341
|
}
|
|
13350
14342
|
},
|
|
14343
|
+
{
|
|
14344
|
+
"kind": "field",
|
|
14345
|
+
"name": "clearable",
|
|
14346
|
+
"privacy": "public",
|
|
14347
|
+
"type": {
|
|
14348
|
+
"text": "boolean"
|
|
14349
|
+
},
|
|
14350
|
+
"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`.",
|
|
14351
|
+
"attribute": "clearable",
|
|
14352
|
+
"inheritedFrom": {
|
|
14353
|
+
"name": "InputField",
|
|
14354
|
+
"module": "src/components/input-field/input-field.js"
|
|
14355
|
+
}
|
|
14356
|
+
},
|
|
14357
|
+
{
|
|
14358
|
+
"kind": "field",
|
|
14359
|
+
"name": "clearLabel",
|
|
14360
|
+
"privacy": "public",
|
|
14361
|
+
"type": {
|
|
14362
|
+
"text": "string"
|
|
14363
|
+
},
|
|
14364
|
+
"description": "The name of that button for assistive technology. Default `'Clear'`.",
|
|
14365
|
+
"attribute": "clear-label",
|
|
14366
|
+
"inheritedFrom": {
|
|
14367
|
+
"name": "InputField",
|
|
14368
|
+
"module": "src/components/input-field/input-field.js"
|
|
14369
|
+
}
|
|
14370
|
+
},
|
|
14371
|
+
{
|
|
14372
|
+
"kind": "field",
|
|
14373
|
+
"name": "maxlength",
|
|
14374
|
+
"privacy": "public",
|
|
14375
|
+
"type": {
|
|
14376
|
+
"text": "number | null"
|
|
14377
|
+
},
|
|
14378
|
+
"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.",
|
|
14379
|
+
"attribute": "maxlength",
|
|
14380
|
+
"inheritedFrom": {
|
|
14381
|
+
"name": "InputField",
|
|
14382
|
+
"module": "src/components/input-field/input-field.js"
|
|
14383
|
+
}
|
|
14384
|
+
},
|
|
14385
|
+
{
|
|
14386
|
+
"kind": "field",
|
|
14387
|
+
"name": "minlength",
|
|
14388
|
+
"privacy": "public",
|
|
14389
|
+
"type": {
|
|
14390
|
+
"text": "number | null"
|
|
14391
|
+
},
|
|
14392
|
+
"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.",
|
|
14393
|
+
"attribute": "minlength",
|
|
14394
|
+
"inheritedFrom": {
|
|
14395
|
+
"name": "InputField",
|
|
14396
|
+
"module": "src/components/input-field/input-field.js"
|
|
14397
|
+
}
|
|
14398
|
+
},
|
|
13351
14399
|
{
|
|
13352
14400
|
"kind": "field",
|
|
13353
14401
|
"name": "enterkeyhint",
|
|
@@ -13566,7 +14614,7 @@
|
|
|
13566
14614
|
{
|
|
13567
14615
|
"name": "part",
|
|
13568
14616
|
"type": {
|
|
13569
|
-
"text": "'input' | 'help-message' | 'error-message' | 'list'"
|
|
14617
|
+
"text": "'input' | 'help-message' | 'error-message' | 'list' | 'control-start' | 'control-end' | 'drop-message'"
|
|
13570
14618
|
}
|
|
13571
14619
|
}
|
|
13572
14620
|
],
|
|
@@ -13624,21 +14672,6 @@
|
|
|
13624
14672
|
"module": "src/components/form-field/form-field.js"
|
|
13625
14673
|
}
|
|
13626
14674
|
},
|
|
13627
|
-
{
|
|
13628
|
-
"kind": "method",
|
|
13629
|
-
"name": "_describedBy",
|
|
13630
|
-
"description": "The value of `aria-describedby` for the control: the help message, and the error message while\nit is rendered, so that a screen reader reads the error when the control gets focus.",
|
|
13631
|
-
"privacy": "private",
|
|
13632
|
-
"return": {
|
|
13633
|
-
"type": {
|
|
13634
|
-
"text": "string"
|
|
13635
|
-
}
|
|
13636
|
-
},
|
|
13637
|
-
"inheritedFrom": {
|
|
13638
|
-
"name": "FormField",
|
|
13639
|
-
"module": "src/components/form-field/form-field.js"
|
|
13640
|
-
}
|
|
13641
|
-
},
|
|
13642
14675
|
{
|
|
13643
14676
|
"kind": "method",
|
|
13644
14677
|
"name": "errorTemplate",
|
|
@@ -13832,60 +14865,108 @@
|
|
|
13832
14865
|
}
|
|
13833
14866
|
},
|
|
13834
14867
|
{
|
|
13835
|
-
"name": "inputmode",
|
|
14868
|
+
"name": "inputmode",
|
|
14869
|
+
"type": {
|
|
14870
|
+
"text": "string | null"
|
|
14871
|
+
},
|
|
14872
|
+
"description": "Passed on as `inputmode`. Default `'numeric'`: a phone shows the digits. Set `'text'` for a code with letters.",
|
|
14873
|
+
"fieldName": "inputmode",
|
|
14874
|
+
"inheritedFrom": {
|
|
14875
|
+
"name": "InputField",
|
|
14876
|
+
"module": "src/components/input-field/input-field.js"
|
|
14877
|
+
}
|
|
14878
|
+
},
|
|
14879
|
+
{
|
|
14880
|
+
"name": "type",
|
|
14881
|
+
"type": {
|
|
14882
|
+
"text": "string"
|
|
14883
|
+
},
|
|
14884
|
+
"description": "Native `type` attribute of the underlying `<input>` (e.g. `'text'`, `'email'`, `'password'`, `'tel'`, `'url'`).",
|
|
14885
|
+
"fieldName": "type",
|
|
14886
|
+
"inheritedFrom": {
|
|
14887
|
+
"name": "InputField",
|
|
14888
|
+
"module": "src/components/input-field/input-field.js"
|
|
14889
|
+
}
|
|
14890
|
+
},
|
|
14891
|
+
{
|
|
14892
|
+
"name": "size",
|
|
14893
|
+
"type": {
|
|
14894
|
+
"text": "'small'|'medium'|'large'"
|
|
14895
|
+
},
|
|
14896
|
+
"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.",
|
|
14897
|
+
"fieldName": "size",
|
|
14898
|
+
"inheritedFrom": {
|
|
14899
|
+
"name": "InputField",
|
|
14900
|
+
"module": "src/components/input-field/input-field.js"
|
|
14901
|
+
}
|
|
14902
|
+
},
|
|
14903
|
+
{
|
|
14904
|
+
"name": "placeholder",
|
|
14905
|
+
"type": {
|
|
14906
|
+
"text": "string"
|
|
14907
|
+
},
|
|
14908
|
+
"description": "Placeholder text shown while the input is empty.",
|
|
14909
|
+
"fieldName": "placeholder",
|
|
14910
|
+
"inheritedFrom": {
|
|
14911
|
+
"name": "InputField",
|
|
14912
|
+
"module": "src/components/input-field/input-field.js"
|
|
14913
|
+
}
|
|
14914
|
+
},
|
|
14915
|
+
{
|
|
14916
|
+
"name": "pattern",
|
|
13836
14917
|
"type": {
|
|
13837
|
-
"text": "string |
|
|
14918
|
+
"text": "string | false"
|
|
13838
14919
|
},
|
|
13839
|
-
"description": "
|
|
13840
|
-
"fieldName": "
|
|
14920
|
+
"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.",
|
|
14921
|
+
"fieldName": "pattern",
|
|
13841
14922
|
"inheritedFrom": {
|
|
13842
14923
|
"name": "InputField",
|
|
13843
14924
|
"module": "src/components/input-field/input-field.js"
|
|
13844
14925
|
}
|
|
13845
14926
|
},
|
|
13846
14927
|
{
|
|
13847
|
-
"name": "
|
|
14928
|
+
"name": "clearable",
|
|
13848
14929
|
"type": {
|
|
13849
|
-
"text": "
|
|
14930
|
+
"text": "boolean"
|
|
13850
14931
|
},
|
|
13851
|
-
"description": "
|
|
13852
|
-
"fieldName": "
|
|
14932
|
+
"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`.",
|
|
14933
|
+
"fieldName": "clearable",
|
|
13853
14934
|
"inheritedFrom": {
|
|
13854
14935
|
"name": "InputField",
|
|
13855
14936
|
"module": "src/components/input-field/input-field.js"
|
|
13856
14937
|
}
|
|
13857
14938
|
},
|
|
13858
14939
|
{
|
|
13859
|
-
"name": "
|
|
14940
|
+
"name": "clear-label",
|
|
13860
14941
|
"type": {
|
|
13861
|
-
"text": "
|
|
14942
|
+
"text": "string"
|
|
13862
14943
|
},
|
|
13863
|
-
"description": "
|
|
13864
|
-
"fieldName": "
|
|
14944
|
+
"description": "The name of that button for assistive technology. Default `'Clear'`.",
|
|
14945
|
+
"fieldName": "clearLabel",
|
|
13865
14946
|
"inheritedFrom": {
|
|
13866
14947
|
"name": "InputField",
|
|
13867
14948
|
"module": "src/components/input-field/input-field.js"
|
|
13868
14949
|
}
|
|
13869
14950
|
},
|
|
13870
14951
|
{
|
|
13871
|
-
"name": "
|
|
14952
|
+
"name": "maxlength",
|
|
13872
14953
|
"type": {
|
|
13873
|
-
"text": "
|
|
14954
|
+
"text": "number | null"
|
|
13874
14955
|
},
|
|
13875
|
-
"description": "
|
|
13876
|
-
"fieldName": "
|
|
14956
|
+
"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.",
|
|
14957
|
+
"fieldName": "maxlength",
|
|
13877
14958
|
"inheritedFrom": {
|
|
13878
14959
|
"name": "InputField",
|
|
13879
14960
|
"module": "src/components/input-field/input-field.js"
|
|
13880
14961
|
}
|
|
13881
14962
|
},
|
|
13882
14963
|
{
|
|
13883
|
-
"name": "
|
|
14964
|
+
"name": "minlength",
|
|
13884
14965
|
"type": {
|
|
13885
|
-
"text": "
|
|
14966
|
+
"text": "number | null"
|
|
13886
14967
|
},
|
|
13887
|
-
"description": "
|
|
13888
|
-
"fieldName": "
|
|
14968
|
+
"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.",
|
|
14969
|
+
"fieldName": "minlength",
|
|
13889
14970
|
"inheritedFrom": {
|
|
13890
14971
|
"name": "InputField",
|
|
13891
14972
|
"module": "src/components/input-field/input-field.js"
|
|
@@ -14067,6 +15148,24 @@
|
|
|
14067
15148
|
"tagName": "el-otp-field",
|
|
14068
15149
|
"customElement": true,
|
|
14069
15150
|
"tagNameWithoutPrefix": "otp-field",
|
|
15151
|
+
"slots": [
|
|
15152
|
+
{
|
|
15153
|
+
"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\"`.",
|
|
15154
|
+
"name": "start",
|
|
15155
|
+
"inheritedFrom": {
|
|
15156
|
+
"name": "InputField",
|
|
15157
|
+
"module": "src/components/input-field/input-field.js"
|
|
15158
|
+
}
|
|
15159
|
+
},
|
|
15160
|
+
{
|
|
15161
|
+
"description": "Content at the end of the control, after the text: a unit, a button. An element of the page with `slot=\"end\"`.",
|
|
15162
|
+
"name": "end",
|
|
15163
|
+
"inheritedFrom": {
|
|
15164
|
+
"name": "InputField",
|
|
15165
|
+
"module": "src/components/input-field/input-field.js"
|
|
15166
|
+
}
|
|
15167
|
+
}
|
|
15168
|
+
],
|
|
14070
15169
|
"cssStates": [
|
|
14071
15170
|
{
|
|
14072
15171
|
"description": "Set on the host once the user has focused and blurred the field, or the browser has refused a submit because of it. Inherited by all subclasses (`InputField`, `CheckboxField`, `TextareaField`, `AmountField`, `SelectField`).",
|
|
@@ -14658,6 +15757,108 @@
|
|
|
14658
15757
|
"module": "src/components/input-field/input-field.js"
|
|
14659
15758
|
}
|
|
14660
15759
|
},
|
|
15760
|
+
{
|
|
15761
|
+
"kind": "method",
|
|
15762
|
+
"name": "_slotted",
|
|
15763
|
+
"parameters": [
|
|
15764
|
+
{
|
|
15765
|
+
"name": "name",
|
|
15766
|
+
"type": {
|
|
15767
|
+
"text": "'start'|'end'"
|
|
15768
|
+
}
|
|
15769
|
+
}
|
|
15770
|
+
],
|
|
15771
|
+
"description": "The elements the page has put into the field for the start or the end of its control:\n`<span slot=\"end\">€</span>`. They are children of the field until it renders, and in\ntheir place in the control from then on, also in server-rendered markup. An element that\ncomes later is taken in with the next render.",
|
|
15772
|
+
"privacy": "private",
|
|
15773
|
+
"return": {
|
|
15774
|
+
"type": {
|
|
15775
|
+
"text": "Element[]"
|
|
15776
|
+
}
|
|
15777
|
+
},
|
|
15778
|
+
"inheritedFrom": {
|
|
15779
|
+
"name": "InputField",
|
|
15780
|
+
"module": "src/components/input-field/input-field.js"
|
|
15781
|
+
}
|
|
15782
|
+
},
|
|
15783
|
+
{
|
|
15784
|
+
"kind": "method",
|
|
15785
|
+
"name": "_content",
|
|
15786
|
+
"parameters": [
|
|
15787
|
+
{
|
|
15788
|
+
"name": "elements",
|
|
15789
|
+
"type": {
|
|
15790
|
+
"text": "Element[]"
|
|
15791
|
+
}
|
|
15792
|
+
}
|
|
15793
|
+
],
|
|
15794
|
+
"description": "The content for a place in the control. In a browser the elements of the page themselves:\nthey are moved, not copied, and stay where they are with every render. On a server their\nmarkup, written as it is.\n\nThat is what `unsafeHTML()` gives on a server. It is written out here because the directive\ngives nodes wherever there is a DOM, and a template that is turned into a string in a\nbrowser, as the tests of the server-rendered markup do, would lose them.",
|
|
15795
|
+
"privacy": "private",
|
|
15796
|
+
"return": {
|
|
15797
|
+
"type": {
|
|
15798
|
+
"text": "Element[] | { __unsafeHTML: true, string: string }"
|
|
15799
|
+
}
|
|
15800
|
+
},
|
|
15801
|
+
"inheritedFrom": {
|
|
15802
|
+
"name": "InputField",
|
|
15803
|
+
"module": "src/components/input-field/input-field.js"
|
|
15804
|
+
}
|
|
15805
|
+
},
|
|
15806
|
+
{
|
|
15807
|
+
"kind": "method",
|
|
15808
|
+
"name": "_describes",
|
|
15809
|
+
"parameters": [
|
|
15810
|
+
{
|
|
15811
|
+
"name": "elements",
|
|
15812
|
+
"type": {
|
|
15813
|
+
"text": "Element[]"
|
|
15814
|
+
}
|
|
15815
|
+
}
|
|
15816
|
+
],
|
|
15817
|
+
"description": "Whether what the page has put at a place describes the value: a unit, a currency, the start\nof an address. A screen reader reads it with the input then. A control there, a button or\na link, has a name and a stop of the Tab key itself, and is no description. An icon is none\neither: it has no text, and is hidden from assistive technology (`aria-hidden`).",
|
|
15818
|
+
"privacy": "private",
|
|
15819
|
+
"return": {
|
|
15820
|
+
"type": {
|
|
15821
|
+
"text": "boolean"
|
|
15822
|
+
}
|
|
15823
|
+
},
|
|
15824
|
+
"inheritedFrom": {
|
|
15825
|
+
"name": "InputField",
|
|
15826
|
+
"module": "src/components/input-field/input-field.js"
|
|
15827
|
+
}
|
|
15828
|
+
},
|
|
15829
|
+
{
|
|
15830
|
+
"kind": "method",
|
|
15831
|
+
"name": "_describedBy",
|
|
15832
|
+
"description": "The description of the control: what the page has put at its start and at its end, then the\nmessages of the field.",
|
|
15833
|
+
"privacy": "private",
|
|
15834
|
+
"return": {
|
|
15835
|
+
"type": {
|
|
15836
|
+
"text": "string"
|
|
15837
|
+
}
|
|
15838
|
+
},
|
|
15839
|
+
"inheritedFrom": {
|
|
15840
|
+
"name": "FormField",
|
|
15841
|
+
"module": "src/components/form-field/form-field.js"
|
|
15842
|
+
}
|
|
15843
|
+
},
|
|
15844
|
+
{
|
|
15845
|
+
"kind": "method",
|
|
15846
|
+
"name": "_onControlClick",
|
|
15847
|
+
"parameters": [
|
|
15848
|
+
{
|
|
15849
|
+
"name": "event",
|
|
15850
|
+
"type": {
|
|
15851
|
+
"text": "MouseEvent"
|
|
15852
|
+
}
|
|
15853
|
+
}
|
|
15854
|
+
],
|
|
15855
|
+
"description": "A click on the control beside its input, on a text or an icon of the page, puts the focus\ninto the input: to the eye all of it is the control. A control in the content, the button\nthat clears the field and the input itself keep their click.",
|
|
15856
|
+
"privacy": "private",
|
|
15857
|
+
"inheritedFrom": {
|
|
15858
|
+
"name": "InputField",
|
|
15859
|
+
"module": "src/components/input-field/input-field.js"
|
|
15860
|
+
}
|
|
15861
|
+
},
|
|
14661
15862
|
{
|
|
14662
15863
|
"kind": "method",
|
|
14663
15864
|
"name": "_pattern",
|
|
@@ -14730,6 +15931,62 @@
|
|
|
14730
15931
|
"module": "src/components/input-field/input-field.js"
|
|
14731
15932
|
}
|
|
14732
15933
|
},
|
|
15934
|
+
{
|
|
15935
|
+
"kind": "field",
|
|
15936
|
+
"name": "clearable",
|
|
15937
|
+
"privacy": "public",
|
|
15938
|
+
"type": {
|
|
15939
|
+
"text": "boolean"
|
|
15940
|
+
},
|
|
15941
|
+
"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`.",
|
|
15942
|
+
"attribute": "clearable",
|
|
15943
|
+
"inheritedFrom": {
|
|
15944
|
+
"name": "InputField",
|
|
15945
|
+
"module": "src/components/input-field/input-field.js"
|
|
15946
|
+
}
|
|
15947
|
+
},
|
|
15948
|
+
{
|
|
15949
|
+
"kind": "field",
|
|
15950
|
+
"name": "clearLabel",
|
|
15951
|
+
"privacy": "public",
|
|
15952
|
+
"type": {
|
|
15953
|
+
"text": "string"
|
|
15954
|
+
},
|
|
15955
|
+
"description": "The name of that button for assistive technology. Default `'Clear'`.",
|
|
15956
|
+
"attribute": "clear-label",
|
|
15957
|
+
"inheritedFrom": {
|
|
15958
|
+
"name": "InputField",
|
|
15959
|
+
"module": "src/components/input-field/input-field.js"
|
|
15960
|
+
}
|
|
15961
|
+
},
|
|
15962
|
+
{
|
|
15963
|
+
"kind": "field",
|
|
15964
|
+
"name": "maxlength",
|
|
15965
|
+
"privacy": "public",
|
|
15966
|
+
"type": {
|
|
15967
|
+
"text": "number | null"
|
|
15968
|
+
},
|
|
15969
|
+
"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.",
|
|
15970
|
+
"attribute": "maxlength",
|
|
15971
|
+
"inheritedFrom": {
|
|
15972
|
+
"name": "InputField",
|
|
15973
|
+
"module": "src/components/input-field/input-field.js"
|
|
15974
|
+
}
|
|
15975
|
+
},
|
|
15976
|
+
{
|
|
15977
|
+
"kind": "field",
|
|
15978
|
+
"name": "minlength",
|
|
15979
|
+
"privacy": "public",
|
|
15980
|
+
"type": {
|
|
15981
|
+
"text": "number | null"
|
|
15982
|
+
},
|
|
15983
|
+
"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.",
|
|
15984
|
+
"attribute": "minlength",
|
|
15985
|
+
"inheritedFrom": {
|
|
15986
|
+
"name": "InputField",
|
|
15987
|
+
"module": "src/components/input-field/input-field.js"
|
|
15988
|
+
}
|
|
15989
|
+
},
|
|
14733
15990
|
{
|
|
14734
15991
|
"kind": "field",
|
|
14735
15992
|
"name": "autocomplete",
|
|
@@ -14990,7 +16247,7 @@
|
|
|
14990
16247
|
{
|
|
14991
16248
|
"name": "part",
|
|
14992
16249
|
"type": {
|
|
14993
|
-
"text": "'input' | 'help-message' | 'error-message' | 'list'"
|
|
16250
|
+
"text": "'input' | 'help-message' | 'error-message' | 'list' | 'control-start' | 'control-end' | 'drop-message'"
|
|
14994
16251
|
}
|
|
14995
16252
|
}
|
|
14996
16253
|
],
|
|
@@ -15048,21 +16305,6 @@
|
|
|
15048
16305
|
"module": "src/components/form-field/form-field.js"
|
|
15049
16306
|
}
|
|
15050
16307
|
},
|
|
15051
|
-
{
|
|
15052
|
-
"kind": "method",
|
|
15053
|
-
"name": "_describedBy",
|
|
15054
|
-
"description": "The value of `aria-describedby` for the control: the help message, and the error message while\nit is rendered, so that a screen reader reads the error when the control gets focus.",
|
|
15055
|
-
"privacy": "private",
|
|
15056
|
-
"return": {
|
|
15057
|
-
"type": {
|
|
15058
|
-
"text": "string"
|
|
15059
|
-
}
|
|
15060
|
-
},
|
|
15061
|
-
"inheritedFrom": {
|
|
15062
|
-
"name": "FormField",
|
|
15063
|
-
"module": "src/components/form-field/form-field.js"
|
|
15064
|
-
}
|
|
15065
|
-
},
|
|
15066
16308
|
{
|
|
15067
16309
|
"kind": "method",
|
|
15068
16310
|
"name": "errorTemplate",
|
|
@@ -15308,6 +16550,54 @@
|
|
|
15308
16550
|
"module": "src/components/input-field/input-field.js"
|
|
15309
16551
|
}
|
|
15310
16552
|
},
|
|
16553
|
+
{
|
|
16554
|
+
"name": "clearable",
|
|
16555
|
+
"type": {
|
|
16556
|
+
"text": "boolean"
|
|
16557
|
+
},
|
|
16558
|
+
"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`.",
|
|
16559
|
+
"fieldName": "clearable",
|
|
16560
|
+
"inheritedFrom": {
|
|
16561
|
+
"name": "InputField",
|
|
16562
|
+
"module": "src/components/input-field/input-field.js"
|
|
16563
|
+
}
|
|
16564
|
+
},
|
|
16565
|
+
{
|
|
16566
|
+
"name": "clear-label",
|
|
16567
|
+
"type": {
|
|
16568
|
+
"text": "string"
|
|
16569
|
+
},
|
|
16570
|
+
"description": "The name of that button for assistive technology. Default `'Clear'`.",
|
|
16571
|
+
"fieldName": "clearLabel",
|
|
16572
|
+
"inheritedFrom": {
|
|
16573
|
+
"name": "InputField",
|
|
16574
|
+
"module": "src/components/input-field/input-field.js"
|
|
16575
|
+
}
|
|
16576
|
+
},
|
|
16577
|
+
{
|
|
16578
|
+
"name": "maxlength",
|
|
16579
|
+
"type": {
|
|
16580
|
+
"text": "number | null"
|
|
16581
|
+
},
|
|
16582
|
+
"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.",
|
|
16583
|
+
"fieldName": "maxlength",
|
|
16584
|
+
"inheritedFrom": {
|
|
16585
|
+
"name": "InputField",
|
|
16586
|
+
"module": "src/components/input-field/input-field.js"
|
|
16587
|
+
}
|
|
16588
|
+
},
|
|
16589
|
+
{
|
|
16590
|
+
"name": "minlength",
|
|
16591
|
+
"type": {
|
|
16592
|
+
"text": "number | null"
|
|
16593
|
+
},
|
|
16594
|
+
"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.",
|
|
16595
|
+
"fieldName": "minlength",
|
|
16596
|
+
"inheritedFrom": {
|
|
16597
|
+
"name": "InputField",
|
|
16598
|
+
"module": "src/components/input-field/input-field.js"
|
|
16599
|
+
}
|
|
16600
|
+
},
|
|
15311
16601
|
{
|
|
15312
16602
|
"name": "autocomplete",
|
|
15313
16603
|
"type": {
|
|
@@ -15508,6 +16798,24 @@
|
|
|
15508
16798
|
"tagName": "el-password-field",
|
|
15509
16799
|
"customElement": true,
|
|
15510
16800
|
"tagNameWithoutPrefix": "password-field",
|
|
16801
|
+
"slots": [
|
|
16802
|
+
{
|
|
16803
|
+
"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\"`.",
|
|
16804
|
+
"name": "start",
|
|
16805
|
+
"inheritedFrom": {
|
|
16806
|
+
"name": "InputField",
|
|
16807
|
+
"module": "src/components/input-field/input-field.js"
|
|
16808
|
+
}
|
|
16809
|
+
},
|
|
16810
|
+
{
|
|
16811
|
+
"description": "Content at the end of the control, after the text: a unit, a button. An element of the page with `slot=\"end\"`.",
|
|
16812
|
+
"name": "end",
|
|
16813
|
+
"inheritedFrom": {
|
|
16814
|
+
"name": "InputField",
|
|
16815
|
+
"module": "src/components/input-field/input-field.js"
|
|
16816
|
+
}
|
|
16817
|
+
}
|
|
16818
|
+
],
|
|
15511
16819
|
"cssStates": [
|
|
15512
16820
|
{
|
|
15513
16821
|
"description": "Set on the host once the user has focused and blurred the field, or the browser has refused a submit because of it. Inherited by all subclasses (`InputField`, `CheckboxField`, `TextareaField`, `AmountField`, `SelectField`).",
|
|
@@ -16202,9 +17510,9 @@
|
|
|
16202
17510
|
"name": "options",
|
|
16203
17511
|
"privacy": "public",
|
|
16204
17512
|
"type": {
|
|
16205
|
-
"text": "Array<string | { value: string, label?: string, disabled?: boolean }>"
|
|
17513
|
+
"text": "Array<string | { value: string, label?: string, disabled?: boolean, color?: string, icon?: string }>"
|
|
16206
17514
|
},
|
|
16207
|
-
"description": "Options to render. Accepts plain strings (`['Yes', 'No']`) or option objects (`[{ value, label, disabled? }]`). Strings are used as both value and label.",
|
|
17515
|
+
"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.",
|
|
16208
17516
|
"attribute": "options"
|
|
16209
17517
|
},
|
|
16210
17518
|
{
|
|
@@ -16355,7 +17663,7 @@
|
|
|
16355
17663
|
{
|
|
16356
17664
|
"name": "part",
|
|
16357
17665
|
"type": {
|
|
16358
|
-
"text": "'input' | 'help-message' | 'error-message' | 'list'"
|
|
17666
|
+
"text": "'input' | 'help-message' | 'error-message' | 'list' | 'control-start' | 'control-end' | 'drop-message'"
|
|
16359
17667
|
}
|
|
16360
17668
|
}
|
|
16361
17669
|
],
|
|
@@ -16573,9 +17881,9 @@
|
|
|
16573
17881
|
{
|
|
16574
17882
|
"name": "options",
|
|
16575
17883
|
"type": {
|
|
16576
|
-
"text": "Array<string | { value: string, label?: string, disabled?: boolean }>"
|
|
17884
|
+
"text": "Array<string | { value: string, label?: string, disabled?: boolean, color?: string, icon?: string }>"
|
|
16577
17885
|
},
|
|
16578
|
-
"description": "Options to render. Accepts plain strings (`['Yes', 'No']`) or option objects (`[{ value, label, disabled? }]`). Strings are used as both value and label.",
|
|
17886
|
+
"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.",
|
|
16579
17887
|
"fieldName": "options"
|
|
16580
17888
|
},
|
|
16581
17889
|
{
|
|
@@ -17041,7 +18349,7 @@
|
|
|
17041
18349
|
{
|
|
17042
18350
|
"name": "part",
|
|
17043
18351
|
"type": {
|
|
17044
|
-
"text": "'input' | 'help-message' | 'error-message' | 'list'"
|
|
18352
|
+
"text": "'input' | 'help-message' | 'error-message' | 'list' | 'control-start' | 'control-end' | 'drop-message'"
|
|
17045
18353
|
}
|
|
17046
18354
|
}
|
|
17047
18355
|
],
|
|
@@ -17764,7 +19072,7 @@
|
|
|
17764
19072
|
{
|
|
17765
19073
|
"name": "part",
|
|
17766
19074
|
"type": {
|
|
17767
|
-
"text": "'input' | 'help-message' | 'error-message' | 'list'"
|
|
19075
|
+
"text": "'input' | 'help-message' | 'error-message' | 'list' | 'control-start' | 'control-end' | 'drop-message'"
|
|
17768
19076
|
}
|
|
17769
19077
|
}
|
|
17770
19078
|
],
|
|
@@ -18670,7 +19978,7 @@
|
|
|
18670
19978
|
{
|
|
18671
19979
|
"name": "part",
|
|
18672
19980
|
"type": {
|
|
18673
|
-
"text": "'input' | 'help-message' | 'error-message' | 'list'"
|
|
19981
|
+
"text": "'input' | 'help-message' | 'error-message' | 'list' | 'control-start' | 'control-end' | 'drop-message'"
|
|
18674
19982
|
}
|
|
18675
19983
|
}
|
|
18676
19984
|
],
|
|
@@ -19366,7 +20674,7 @@
|
|
|
19366
20674
|
{
|
|
19367
20675
|
"name": "part",
|
|
19368
20676
|
"type": {
|
|
19369
|
-
"text": "'input' | 'help-message' | 'error-message' | 'list'"
|
|
20677
|
+
"text": "'input' | 'help-message' | 'error-message' | 'list' | 'control-start' | 'control-end' | 'drop-message'"
|
|
19370
20678
|
}
|
|
19371
20679
|
}
|
|
19372
20680
|
],
|
|
@@ -21254,7 +22562,7 @@
|
|
|
21254
22562
|
{
|
|
21255
22563
|
"name": "part",
|
|
21256
22564
|
"type": {
|
|
21257
|
-
"text": "'input' | 'help-message' | 'error-message' | 'list'"
|
|
22565
|
+
"text": "'input' | 'help-message' | 'error-message' | 'list' | 'control-start' | 'control-end' | 'drop-message'"
|
|
21258
22566
|
}
|
|
21259
22567
|
}
|
|
21260
22568
|
],
|
|
@@ -22526,7 +23834,7 @@
|
|
|
22526
23834
|
{
|
|
22527
23835
|
"name": "part",
|
|
22528
23836
|
"type": {
|
|
22529
|
-
"text": "'input' | 'help-message' | 'error-message' | 'list'"
|
|
23837
|
+
"text": "'input' | 'help-message' | 'error-message' | 'list' | 'control-start' | 'control-end' | 'drop-message'"
|
|
22530
23838
|
}
|
|
22531
23839
|
}
|
|
22532
23840
|
],
|
|
@@ -23201,6 +24509,26 @@
|
|
|
23201
24509
|
"description": "Number of visible text rows. Forwarded to the underlying `<textarea>`'s `rows` attribute.",
|
|
23202
24510
|
"attribute": "rows"
|
|
23203
24511
|
},
|
|
24512
|
+
{
|
|
24513
|
+
"kind": "field",
|
|
24514
|
+
"name": "maxlength",
|
|
24515
|
+
"privacy": "public",
|
|
24516
|
+
"type": {
|
|
24517
|
+
"text": "number | null"
|
|
24518
|
+
},
|
|
24519
|
+
"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.",
|
|
24520
|
+
"attribute": "maxlength"
|
|
24521
|
+
},
|
|
24522
|
+
{
|
|
24523
|
+
"kind": "field",
|
|
24524
|
+
"name": "minlength",
|
|
24525
|
+
"privacy": "public",
|
|
24526
|
+
"type": {
|
|
24527
|
+
"text": "number | null"
|
|
24528
|
+
},
|
|
24529
|
+
"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.",
|
|
24530
|
+
"attribute": "minlength"
|
|
24531
|
+
},
|
|
23204
24532
|
{
|
|
23205
24533
|
"kind": "field",
|
|
23206
24534
|
"name": "autocomplete",
|
|
@@ -23437,7 +24765,7 @@
|
|
|
23437
24765
|
{
|
|
23438
24766
|
"name": "part",
|
|
23439
24767
|
"type": {
|
|
23440
|
-
"text": "'input' | 'help-message' | 'error-message' | 'list'"
|
|
24768
|
+
"text": "'input' | 'help-message' | 'error-message' | 'list' | 'control-start' | 'control-end' | 'drop-message'"
|
|
23441
24769
|
}
|
|
23442
24770
|
}
|
|
23443
24771
|
],
|
|
@@ -23691,6 +25019,22 @@
|
|
|
23691
25019
|
"description": "Number of visible text rows. Forwarded to the underlying `<textarea>`'s `rows` attribute.",
|
|
23692
25020
|
"fieldName": "rows"
|
|
23693
25021
|
},
|
|
25022
|
+
{
|
|
25023
|
+
"name": "maxlength",
|
|
25024
|
+
"type": {
|
|
25025
|
+
"text": "number | null"
|
|
25026
|
+
},
|
|
25027
|
+
"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.",
|
|
25028
|
+
"fieldName": "maxlength"
|
|
25029
|
+
},
|
|
25030
|
+
{
|
|
25031
|
+
"name": "minlength",
|
|
25032
|
+
"type": {
|
|
25033
|
+
"text": "number | null"
|
|
25034
|
+
},
|
|
25035
|
+
"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.",
|
|
25036
|
+
"fieldName": "minlength"
|
|
25037
|
+
},
|
|
23694
25038
|
{
|
|
23695
25039
|
"name": "autocomplete",
|
|
23696
25040
|
"type": {
|