@vaadin/time-picker 25.1.0 → 25.2.0-alpha2
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/custom-elements.json +156 -0
- package/package.json +14 -14
- package/web-types.json +2 -2
- package/web-types.lit.json +2 -2
package/custom-elements.json
CHANGED
|
@@ -708,6 +708,34 @@
|
|
|
708
708
|
"description": "`<vaadin-time-picker>` is a Web Component providing a time-selection field.\n\n```html\n<vaadin-time-picker></vaadin-time-picker>\n```\n```js\ntimePicker.value = '14:30';\n```\n\nWhen the selected `value` is changed, a `value-changed` event is triggered.\n\n### Styling\n\nThe following custom properties are available for styling:\n\nCustom property | Description | Default\n-----------------------------------------|----------------------------|---------\n`--vaadin-field-default-width` | Default width of the field | `12em`\n`--vaadin-time-picker-overlay-width` | Width of the overlay | `auto`\n`--vaadin-time-picker-overlay-max-height`| Max height of the overlay | `65vh`\n\nThe following shadow DOM parts are available for styling:\n\nPart name | Description\n---------------------|----------------\n`label` | The label element\n`input-field` | The element that wraps prefix, value and buttons\n`field-button` | Set on both clear and toggle buttons\n`clear-button` | The clear button\n`error-message` | The error message element\n`helper-text` | The helper text element wrapper\n`required-indicator` | The `required` state indicator element\n`toggle-button` | The toggle button\n`overlay` | The overlay container\n`content` | The overlay content\n\nThe following state attributes are available for styling:\n\nAttribute | Description\n---------------------|---------------------------------\n`disabled` | Set when the element is disabled\n`has-value` | Set when the element has a value\n`has-label` | Set when the element has a label\n`has-helper` | Set when the element has helper text or slot\n`has-error-message` | Set when the element has an error message\n`has-tooltip` | Set when the element has a slotted tooltip\n`invalid` | Set when the element is invalid\n`focused` | Set when the element is focused\n`focus-ring` | Set when the element is keyboard focused\n`readonly` | Set when the element is readonly\n`opened` | Set when the overlay is opened\n\n### Internal components\n\nIn addition to `<vaadin-time-picker>` itself, the following internal\ncomponents are themable:\n\n- `<vaadin-time-picker-item>` - has the same API as [`<vaadin-item>`](#/elements/vaadin-item).\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.\n\n### Change events\n\nDepending on the nature of the value change that the user attempts to commit e.g. by pressing Enter,\nthe component can fire either a `change` event or an `unparsable-change` event:\n\nValue change | Event\n:------------------------|:------------------\nempty => parsable | change\nempty => unparsable | unparsable-change\nparsable => empty | change\nparsable => parsable | change\nparsable => unparsable | change\nunparsable => empty | unparsable-change\nunparsable => parsable | change\nunparsable => unparsable | unparsable-change",
|
|
709
709
|
"name": "TimePicker",
|
|
710
710
|
"members": [
|
|
711
|
+
{
|
|
712
|
+
"kind": "field",
|
|
713
|
+
"name": "accessibleName",
|
|
714
|
+
"privacy": "public",
|
|
715
|
+
"type": {
|
|
716
|
+
"text": "string"
|
|
717
|
+
},
|
|
718
|
+
"description": "String used to label the component to screen reader users.",
|
|
719
|
+
"attribute": "accessible-name",
|
|
720
|
+
"inheritedFrom": {
|
|
721
|
+
"name": "FieldMixin",
|
|
722
|
+
"package": "@vaadin/field-base/src/field-mixin.js"
|
|
723
|
+
}
|
|
724
|
+
},
|
|
725
|
+
{
|
|
726
|
+
"kind": "field",
|
|
727
|
+
"name": "accessibleNameRef",
|
|
728
|
+
"privacy": "public",
|
|
729
|
+
"type": {
|
|
730
|
+
"text": "string"
|
|
731
|
+
},
|
|
732
|
+
"description": "Id of the element used as label of the component to screen reader users.",
|
|
733
|
+
"attribute": "accessible-name-ref",
|
|
734
|
+
"inheritedFrom": {
|
|
735
|
+
"name": "FieldMixin",
|
|
736
|
+
"package": "@vaadin/field-base/src/field-mixin.js"
|
|
737
|
+
}
|
|
738
|
+
},
|
|
711
739
|
{
|
|
712
740
|
"kind": "field",
|
|
713
741
|
"name": "allowedCharPattern",
|
|
@@ -764,6 +792,20 @@
|
|
|
764
792
|
"module": "src/vaadin-time-picker-mixin.js"
|
|
765
793
|
}
|
|
766
794
|
},
|
|
795
|
+
{
|
|
796
|
+
"kind": "field",
|
|
797
|
+
"name": "clearButtonVisible",
|
|
798
|
+
"privacy": "public",
|
|
799
|
+
"type": {
|
|
800
|
+
"text": "boolean"
|
|
801
|
+
},
|
|
802
|
+
"description": "Set to true to display the clear icon which clears the input.\n\nIt is up to the component to choose where to place the clear icon:\nin the Shadow DOM or in the light DOM. In any way, a reference to\nthe clear icon element should be provided via the `clearElement` getter.",
|
|
803
|
+
"attribute": "clear-button-visible",
|
|
804
|
+
"inheritedFrom": {
|
|
805
|
+
"name": "ClearButtonMixin",
|
|
806
|
+
"package": "@vaadin/field-base/src/clear-button-mixin.js"
|
|
807
|
+
}
|
|
808
|
+
},
|
|
767
809
|
{
|
|
768
810
|
"kind": "method",
|
|
769
811
|
"name": "close",
|
|
@@ -773,6 +815,34 @@
|
|
|
773
815
|
"package": "@vaadin/combo-box/src/vaadin-combo-box-base-mixin.js"
|
|
774
816
|
}
|
|
775
817
|
},
|
|
818
|
+
{
|
|
819
|
+
"kind": "field",
|
|
820
|
+
"name": "errorMessage",
|
|
821
|
+
"privacy": "public",
|
|
822
|
+
"type": {
|
|
823
|
+
"text": "string"
|
|
824
|
+
},
|
|
825
|
+
"description": "Error to show when the field is invalid.",
|
|
826
|
+
"attribute": "error-message",
|
|
827
|
+
"inheritedFrom": {
|
|
828
|
+
"name": "FieldMixin",
|
|
829
|
+
"package": "@vaadin/field-base/src/field-mixin.js"
|
|
830
|
+
}
|
|
831
|
+
},
|
|
832
|
+
{
|
|
833
|
+
"kind": "field",
|
|
834
|
+
"name": "helperText",
|
|
835
|
+
"privacy": "public",
|
|
836
|
+
"type": {
|
|
837
|
+
"text": "string"
|
|
838
|
+
},
|
|
839
|
+
"description": "String used for the helper text.",
|
|
840
|
+
"attribute": "helper-text",
|
|
841
|
+
"inheritedFrom": {
|
|
842
|
+
"name": "FieldMixin",
|
|
843
|
+
"package": "@vaadin/field-base/src/field-mixin.js"
|
|
844
|
+
}
|
|
845
|
+
},
|
|
776
846
|
{
|
|
777
847
|
"kind": "field",
|
|
778
848
|
"name": "i18n",
|
|
@@ -787,6 +857,20 @@
|
|
|
787
857
|
"package": "@vaadin/component-base/src/i18n-mixin.js"
|
|
788
858
|
}
|
|
789
859
|
},
|
|
860
|
+
{
|
|
861
|
+
"kind": "field",
|
|
862
|
+
"name": "label",
|
|
863
|
+
"privacy": "public",
|
|
864
|
+
"type": {
|
|
865
|
+
"text": "string"
|
|
866
|
+
},
|
|
867
|
+
"description": "The label text for the input node.\nWhen no light dom defined via [slot=label], this value will be used.",
|
|
868
|
+
"attribute": "label",
|
|
869
|
+
"inheritedFrom": {
|
|
870
|
+
"name": "FieldMixin",
|
|
871
|
+
"package": "@vaadin/field-base/src/field-mixin.js"
|
|
872
|
+
}
|
|
873
|
+
},
|
|
790
874
|
{
|
|
791
875
|
"kind": "field",
|
|
792
876
|
"name": "max",
|
|
@@ -1018,6 +1102,30 @@
|
|
|
1018
1102
|
"tagName": "vaadin-time-picker",
|
|
1019
1103
|
"customElement": true,
|
|
1020
1104
|
"attributes": [
|
|
1105
|
+
{
|
|
1106
|
+
"name": "accessible-name",
|
|
1107
|
+
"type": {
|
|
1108
|
+
"text": "string"
|
|
1109
|
+
},
|
|
1110
|
+
"description": "String used to label the component to screen reader users.",
|
|
1111
|
+
"fieldName": "accessibleName",
|
|
1112
|
+
"inheritedFrom": {
|
|
1113
|
+
"name": "FieldMixin",
|
|
1114
|
+
"package": "@vaadin/field-base/src/field-mixin.js"
|
|
1115
|
+
}
|
|
1116
|
+
},
|
|
1117
|
+
{
|
|
1118
|
+
"name": "accessible-name-ref",
|
|
1119
|
+
"type": {
|
|
1120
|
+
"text": "string"
|
|
1121
|
+
},
|
|
1122
|
+
"description": "Id of the element used as label of the component to screen reader users.",
|
|
1123
|
+
"fieldName": "accessibleNameRef",
|
|
1124
|
+
"inheritedFrom": {
|
|
1125
|
+
"name": "FieldMixin",
|
|
1126
|
+
"package": "@vaadin/field-base/src/field-mixin.js"
|
|
1127
|
+
}
|
|
1128
|
+
},
|
|
1021
1129
|
{
|
|
1022
1130
|
"name": "allowed-char-pattern",
|
|
1023
1131
|
"type": {
|
|
@@ -1054,6 +1162,42 @@
|
|
|
1054
1162
|
"package": "@vaadin/field-base/src/input-control-mixin.js"
|
|
1055
1163
|
}
|
|
1056
1164
|
},
|
|
1165
|
+
{
|
|
1166
|
+
"name": "clear-button-visible",
|
|
1167
|
+
"type": {
|
|
1168
|
+
"text": "boolean"
|
|
1169
|
+
},
|
|
1170
|
+
"description": "Set to true to display the clear icon which clears the input.\n\nIt is up to the component to choose where to place the clear icon:\nin the Shadow DOM or in the light DOM. In any way, a reference to\nthe clear icon element should be provided via the `clearElement` getter.",
|
|
1171
|
+
"fieldName": "clearButtonVisible",
|
|
1172
|
+
"inheritedFrom": {
|
|
1173
|
+
"name": "ClearButtonMixin",
|
|
1174
|
+
"package": "@vaadin/field-base/src/clear-button-mixin.js"
|
|
1175
|
+
}
|
|
1176
|
+
},
|
|
1177
|
+
{
|
|
1178
|
+
"name": "error-message",
|
|
1179
|
+
"type": {
|
|
1180
|
+
"text": "string"
|
|
1181
|
+
},
|
|
1182
|
+
"description": "Error to show when the field is invalid.",
|
|
1183
|
+
"fieldName": "errorMessage",
|
|
1184
|
+
"inheritedFrom": {
|
|
1185
|
+
"name": "FieldMixin",
|
|
1186
|
+
"package": "@vaadin/field-base/src/field-mixin.js"
|
|
1187
|
+
}
|
|
1188
|
+
},
|
|
1189
|
+
{
|
|
1190
|
+
"name": "helper-text",
|
|
1191
|
+
"type": {
|
|
1192
|
+
"text": "string"
|
|
1193
|
+
},
|
|
1194
|
+
"description": "String used for the helper text.",
|
|
1195
|
+
"fieldName": "helperText",
|
|
1196
|
+
"inheritedFrom": {
|
|
1197
|
+
"name": "FieldMixin",
|
|
1198
|
+
"package": "@vaadin/field-base/src/field-mixin.js"
|
|
1199
|
+
}
|
|
1200
|
+
},
|
|
1057
1201
|
{
|
|
1058
1202
|
"name": "i18n",
|
|
1059
1203
|
"type": {
|
|
@@ -1066,6 +1210,18 @@
|
|
|
1066
1210
|
"package": "@vaadin/component-base/src/i18n-mixin.js"
|
|
1067
1211
|
}
|
|
1068
1212
|
},
|
|
1213
|
+
{
|
|
1214
|
+
"name": "label",
|
|
1215
|
+
"type": {
|
|
1216
|
+
"text": "string"
|
|
1217
|
+
},
|
|
1218
|
+
"description": "The label text for the input node.\nWhen no light dom defined via [slot=label], this value will be used.",
|
|
1219
|
+
"fieldName": "label",
|
|
1220
|
+
"inheritedFrom": {
|
|
1221
|
+
"name": "FieldMixin",
|
|
1222
|
+
"package": "@vaadin/field-base/src/field-mixin.js"
|
|
1223
|
+
}
|
|
1224
|
+
},
|
|
1069
1225
|
{
|
|
1070
1226
|
"name": "max",
|
|
1071
1227
|
"type": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vaadin/time-picker",
|
|
3
|
-
"version": "25.
|
|
3
|
+
"version": "25.2.0-alpha2",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -35,22 +35,22 @@
|
|
|
35
35
|
],
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@open-wc/dedupe-mixin": "^1.3.0",
|
|
38
|
-
"@vaadin/a11y-base": "
|
|
39
|
-
"@vaadin/combo-box": "
|
|
40
|
-
"@vaadin/component-base": "
|
|
41
|
-
"@vaadin/field-base": "
|
|
42
|
-
"@vaadin/input-container": "
|
|
43
|
-
"@vaadin/item": "
|
|
44
|
-
"@vaadin/overlay": "
|
|
45
|
-
"@vaadin/vaadin-themable-mixin": "
|
|
38
|
+
"@vaadin/a11y-base": "25.2.0-alpha2",
|
|
39
|
+
"@vaadin/combo-box": "25.2.0-alpha2",
|
|
40
|
+
"@vaadin/component-base": "25.2.0-alpha2",
|
|
41
|
+
"@vaadin/field-base": "25.2.0-alpha2",
|
|
42
|
+
"@vaadin/input-container": "25.2.0-alpha2",
|
|
43
|
+
"@vaadin/item": "25.2.0-alpha2",
|
|
44
|
+
"@vaadin/overlay": "25.2.0-alpha2",
|
|
45
|
+
"@vaadin/vaadin-themable-mixin": "25.2.0-alpha2",
|
|
46
46
|
"lit": "^3.0.0"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"@vaadin/aura": "
|
|
50
|
-
"@vaadin/chai-plugins": "
|
|
51
|
-
"@vaadin/test-runner-commands": "
|
|
49
|
+
"@vaadin/aura": "25.2.0-alpha2",
|
|
50
|
+
"@vaadin/chai-plugins": "25.2.0-alpha2",
|
|
51
|
+
"@vaadin/test-runner-commands": "25.2.0-alpha2",
|
|
52
52
|
"@vaadin/testing-helpers": "^2.0.0",
|
|
53
|
-
"@vaadin/vaadin-lumo-styles": "
|
|
53
|
+
"@vaadin/vaadin-lumo-styles": "25.2.0-alpha2",
|
|
54
54
|
"sinon": "^21.0.2"
|
|
55
55
|
},
|
|
56
56
|
"customElements": "custom-elements.json",
|
|
@@ -58,5 +58,5 @@
|
|
|
58
58
|
"web-types.json",
|
|
59
59
|
"web-types.lit.json"
|
|
60
60
|
],
|
|
61
|
-
"gitHead": "
|
|
61
|
+
"gitHead": "34c9b41017bd4896f6e4b250ba50d1dd8535a061"
|
|
62
62
|
}
|
package/web-types.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/web-types",
|
|
3
3
|
"name": "@vaadin/time-picker",
|
|
4
|
-
"version": "25.
|
|
4
|
+
"version": "25.2.0-alpha2",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
8
8
|
"elements": [
|
|
9
9
|
{
|
|
10
10
|
"name": "vaadin-time-picker",
|
|
11
|
-
"description": "`<vaadin-time-picker>` is a Web Component providing a time-selection field.\n\n```html\n<vaadin-time-picker></vaadin-time-picker>\n```\n```js\ntimePicker.value = '14:30';\n```\n\nWhen the selected `value` is changed, a `value-changed` event is triggered.\n\n### Styling\n\nThe following custom properties are available for styling:\n\nCustom property | Description | Default\n-----------------------------------------|----------------------------|---------\n`--vaadin-field-default-width` | Default width of the field | `12em`\n`--vaadin-time-picker-overlay-width` | Width of the overlay | `auto`\n`--vaadin-time-picker-overlay-max-height`| Max height of the overlay | `65vh`\n\nThe following shadow DOM parts are available for styling:\n\nPart name | Description\n---------------------|----------------\n`label` | The label element\n`input-field` | The element that wraps prefix, value and buttons\n`field-button` | Set on both clear and toggle buttons\n`clear-button` | The clear button\n`error-message` | The error message element\n`helper-text` | The helper text element wrapper\n`required-indicator` | The `required` state indicator element\n`toggle-button` | The toggle button\n`overlay` | The overlay container\n`content` | The overlay content\n\nThe following state attributes are available for styling:\n\nAttribute | Description\n---------------------|---------------------------------\n`disabled` | Set when the element is disabled\n`has-value` | Set when the element has a value\n`has-label` | Set when the element has a label\n`has-helper` | Set when the element has helper text or slot\n`has-error-message` | Set when the element has an error message\n`has-tooltip` | Set when the element has a slotted tooltip\n`invalid` | Set when the element is invalid\n`focused` | Set when the element is focused\n`focus-ring` | Set when the element is keyboard focused\n`readonly` | Set when the element is readonly\n`opened` | Set when the overlay is opened\n\n### Internal components\n\nIn addition to `<vaadin-time-picker>` itself, the following internal\ncomponents are themable:\n\n- `<vaadin-time-picker-item>` - has the same API as [`<vaadin-item>`](https://cdn.vaadin.com/vaadin-web-components/25.
|
|
11
|
+
"description": "`<vaadin-time-picker>` is a Web Component providing a time-selection field.\n\n```html\n<vaadin-time-picker></vaadin-time-picker>\n```\n```js\ntimePicker.value = '14:30';\n```\n\nWhen the selected `value` is changed, a `value-changed` event is triggered.\n\n### Styling\n\nThe following custom properties are available for styling:\n\nCustom property | Description | Default\n-----------------------------------------|----------------------------|---------\n`--vaadin-field-default-width` | Default width of the field | `12em`\n`--vaadin-time-picker-overlay-width` | Width of the overlay | `auto`\n`--vaadin-time-picker-overlay-max-height`| Max height of the overlay | `65vh`\n\nThe following shadow DOM parts are available for styling:\n\nPart name | Description\n---------------------|----------------\n`label` | The label element\n`input-field` | The element that wraps prefix, value and buttons\n`field-button` | Set on both clear and toggle buttons\n`clear-button` | The clear button\n`error-message` | The error message element\n`helper-text` | The helper text element wrapper\n`required-indicator` | The `required` state indicator element\n`toggle-button` | The toggle button\n`overlay` | The overlay container\n`content` | The overlay content\n\nThe following state attributes are available for styling:\n\nAttribute | Description\n---------------------|---------------------------------\n`disabled` | Set when the element is disabled\n`has-value` | Set when the element has a value\n`has-label` | Set when the element has a label\n`has-helper` | Set when the element has helper text or slot\n`has-error-message` | Set when the element has an error message\n`has-tooltip` | Set when the element has a slotted tooltip\n`invalid` | Set when the element is invalid\n`focused` | Set when the element is focused\n`focus-ring` | Set when the element is keyboard focused\n`readonly` | Set when the element is readonly\n`opened` | Set when the overlay is opened\n\n### Internal components\n\nIn addition to `<vaadin-time-picker>` itself, the following internal\ncomponents are themable:\n\n- `<vaadin-time-picker-item>` - has the same API as [`<vaadin-item>`](https://cdn.vaadin.com/vaadin-web-components/25.2.0-alpha2/#/elements/vaadin-item).\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.\n\n### Change events\n\nDepending on the nature of the value change that the user attempts to commit e.g. by pressing Enter,\nthe component can fire either a `change` event or an `unparsable-change` event:\n\nValue change | Event\n:------------------------|:------------------\nempty => parsable | change\nempty => unparsable | unparsable-change\nparsable => empty | change\nparsable => parsable | change\nparsable => unparsable | change\nunparsable => empty | unparsable-change\nunparsable => parsable | change\nunparsable => unparsable | unparsable-change",
|
|
12
12
|
"attributes": [
|
|
13
13
|
{
|
|
14
14
|
"name": "accessible-name",
|
package/web-types.lit.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/web-types",
|
|
3
3
|
"name": "@vaadin/time-picker",
|
|
4
|
-
"version": "25.
|
|
4
|
+
"version": "25.2.0-alpha2",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"framework": "lit",
|
|
7
7
|
"framework-config": {
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"elements": [
|
|
17
17
|
{
|
|
18
18
|
"name": "vaadin-time-picker",
|
|
19
|
-
"description": "`<vaadin-time-picker>` is a Web Component providing a time-selection field.\n\n```html\n<vaadin-time-picker></vaadin-time-picker>\n```\n```js\ntimePicker.value = '14:30';\n```\n\nWhen the selected `value` is changed, a `value-changed` event is triggered.\n\n### Styling\n\nThe following custom properties are available for styling:\n\nCustom property | Description | Default\n-----------------------------------------|----------------------------|---------\n`--vaadin-field-default-width` | Default width of the field | `12em`\n`--vaadin-time-picker-overlay-width` | Width of the overlay | `auto`\n`--vaadin-time-picker-overlay-max-height`| Max height of the overlay | `65vh`\n\nThe following shadow DOM parts are available for styling:\n\nPart name | Description\n---------------------|----------------\n`label` | The label element\n`input-field` | The element that wraps prefix, value and buttons\n`field-button` | Set on both clear and toggle buttons\n`clear-button` | The clear button\n`error-message` | The error message element\n`helper-text` | The helper text element wrapper\n`required-indicator` | The `required` state indicator element\n`toggle-button` | The toggle button\n`overlay` | The overlay container\n`content` | The overlay content\n\nThe following state attributes are available for styling:\n\nAttribute | Description\n---------------------|---------------------------------\n`disabled` | Set when the element is disabled\n`has-value` | Set when the element has a value\n`has-label` | Set when the element has a label\n`has-helper` | Set when the element has helper text or slot\n`has-error-message` | Set when the element has an error message\n`has-tooltip` | Set when the element has a slotted tooltip\n`invalid` | Set when the element is invalid\n`focused` | Set when the element is focused\n`focus-ring` | Set when the element is keyboard focused\n`readonly` | Set when the element is readonly\n`opened` | Set when the overlay is opened\n\n### Internal components\n\nIn addition to `<vaadin-time-picker>` itself, the following internal\ncomponents are themable:\n\n- `<vaadin-time-picker-item>` - has the same API as [`<vaadin-item>`](https://cdn.vaadin.com/vaadin-web-components/25.
|
|
19
|
+
"description": "`<vaadin-time-picker>` is a Web Component providing a time-selection field.\n\n```html\n<vaadin-time-picker></vaadin-time-picker>\n```\n```js\ntimePicker.value = '14:30';\n```\n\nWhen the selected `value` is changed, a `value-changed` event is triggered.\n\n### Styling\n\nThe following custom properties are available for styling:\n\nCustom property | Description | Default\n-----------------------------------------|----------------------------|---------\n`--vaadin-field-default-width` | Default width of the field | `12em`\n`--vaadin-time-picker-overlay-width` | Width of the overlay | `auto`\n`--vaadin-time-picker-overlay-max-height`| Max height of the overlay | `65vh`\n\nThe following shadow DOM parts are available for styling:\n\nPart name | Description\n---------------------|----------------\n`label` | The label element\n`input-field` | The element that wraps prefix, value and buttons\n`field-button` | Set on both clear and toggle buttons\n`clear-button` | The clear button\n`error-message` | The error message element\n`helper-text` | The helper text element wrapper\n`required-indicator` | The `required` state indicator element\n`toggle-button` | The toggle button\n`overlay` | The overlay container\n`content` | The overlay content\n\nThe following state attributes are available for styling:\n\nAttribute | Description\n---------------------|---------------------------------\n`disabled` | Set when the element is disabled\n`has-value` | Set when the element has a value\n`has-label` | Set when the element has a label\n`has-helper` | Set when the element has helper text or slot\n`has-error-message` | Set when the element has an error message\n`has-tooltip` | Set when the element has a slotted tooltip\n`invalid` | Set when the element is invalid\n`focused` | Set when the element is focused\n`focus-ring` | Set when the element is keyboard focused\n`readonly` | Set when the element is readonly\n`opened` | Set when the overlay is opened\n\n### Internal components\n\nIn addition to `<vaadin-time-picker>` itself, the following internal\ncomponents are themable:\n\n- `<vaadin-time-picker-item>` - has the same API as [`<vaadin-item>`](https://cdn.vaadin.com/vaadin-web-components/25.2.0-alpha2/#/elements/vaadin-item).\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.\n\n### Change events\n\nDepending on the nature of the value change that the user attempts to commit e.g. by pressing Enter,\nthe component can fire either a `change` event or an `unparsable-change` event:\n\nValue change | Event\n:------------------------|:------------------\nempty => parsable | change\nempty => unparsable | unparsable-change\nparsable => empty | change\nparsable => parsable | change\nparsable => unparsable | change\nunparsable => empty | unparsable-change\nunparsable => parsable | change\nunparsable => unparsable | unparsable-change",
|
|
20
20
|
"extension": true,
|
|
21
21
|
"attributes": [
|
|
22
22
|
{
|