@vaadin/time-picker 25.3.0-alpha8 → 25.3.0-alpha9

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.
@@ -122,6 +122,20 @@
122
122
  "description": "A mixin providing common time-picker functionality.",
123
123
  "name": "TimePickerMixin",
124
124
  "members": [
125
+ {
126
+ "kind": "field",
127
+ "name": "accessibleDescriptionRef",
128
+ "privacy": "public",
129
+ "type": {
130
+ "text": "string"
131
+ },
132
+ "description": "A space-separated list of IDs referencing the elements that\ndescribe the component for screen reader users. The referenced\nelements are announced in addition to the helper text and\nthe error message.",
133
+ "attribute": "accessible-description-ref",
134
+ "inheritedFrom": {
135
+ "name": "FieldMixin",
136
+ "package": "@vaadin/field-base/src/field-mixin.js"
137
+ }
138
+ },
125
139
  {
126
140
  "kind": "field",
127
141
  "name": "accessibleName",
@@ -129,7 +143,7 @@
129
143
  "type": {
130
144
  "text": "string"
131
145
  },
132
- "description": "String used to label the component to screen reader users.",
146
+ "description": "String used to label the component for screen reader users.",
133
147
  "attribute": "accessible-name",
134
148
  "inheritedFrom": {
135
149
  "name": "FieldMixin",
@@ -143,7 +157,7 @@
143
157
  "type": {
144
158
  "text": "string"
145
159
  },
146
- "description": "Id of the element used as label of the component to screen reader users.",
160
+ "description": "A space-separated list of IDs referencing the elements that\nlabel the component for screen reader users.",
147
161
  "attribute": "accessible-name-ref",
148
162
  "inheritedFrom": {
149
163
  "name": "FieldMixin",
@@ -545,12 +559,24 @@
545
559
  }
546
560
  ],
547
561
  "attributes": [
562
+ {
563
+ "name": "accessible-description-ref",
564
+ "type": {
565
+ "text": "string"
566
+ },
567
+ "description": "A space-separated list of IDs referencing the elements that\ndescribe the component for screen reader users. The referenced\nelements are announced in addition to the helper text and\nthe error message.",
568
+ "fieldName": "accessibleDescriptionRef",
569
+ "inheritedFrom": {
570
+ "name": "FieldMixin",
571
+ "package": "@vaadin/field-base/src/field-mixin.js"
572
+ }
573
+ },
548
574
  {
549
575
  "name": "accessible-name",
550
576
  "type": {
551
577
  "text": "string"
552
578
  },
553
- "description": "String used to label the component to screen reader users.",
579
+ "description": "String used to label the component for screen reader users.",
554
580
  "fieldName": "accessibleName",
555
581
  "inheritedFrom": {
556
582
  "name": "FieldMixin",
@@ -562,7 +588,7 @@
562
588
  "type": {
563
589
  "text": "string"
564
590
  },
565
- "description": "Id of the element used as label of the component to screen reader users.",
591
+ "description": "A space-separated list of IDs referencing the elements that\nlabel the component for screen reader users.",
566
592
  "fieldName": "accessibleNameRef",
567
593
  "inheritedFrom": {
568
594
  "name": "FieldMixin",
@@ -887,6 +913,20 @@
887
913
  "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",
888
914
  "name": "TimePicker",
889
915
  "members": [
916
+ {
917
+ "kind": "field",
918
+ "name": "accessibleDescriptionRef",
919
+ "privacy": "public",
920
+ "type": {
921
+ "text": "string"
922
+ },
923
+ "description": "A space-separated list of IDs referencing the elements that\ndescribe the component for screen reader users. The referenced\nelements are announced in addition to the helper text and\nthe error message.",
924
+ "attribute": "accessible-description-ref",
925
+ "inheritedFrom": {
926
+ "name": "FieldMixin",
927
+ "package": "@vaadin/field-base/src/field-mixin.js"
928
+ }
929
+ },
890
930
  {
891
931
  "kind": "field",
892
932
  "name": "accessibleName",
@@ -894,7 +934,7 @@
894
934
  "type": {
895
935
  "text": "string"
896
936
  },
897
- "description": "String used to label the component to screen reader users.",
937
+ "description": "String used to label the component for screen reader users.",
898
938
  "attribute": "accessible-name",
899
939
  "inheritedFrom": {
900
940
  "name": "FieldMixin",
@@ -908,7 +948,7 @@
908
948
  "type": {
909
949
  "text": "string"
910
950
  },
911
- "description": "Id of the element used as label of the component to screen reader users.",
951
+ "description": "A space-separated list of IDs referencing the elements that\nlabel the component for screen reader users.",
912
952
  "attribute": "accessible-name-ref",
913
953
  "inheritedFrom": {
914
954
  "name": "FieldMixin",
@@ -1346,12 +1386,24 @@
1346
1386
  }
1347
1387
  ],
1348
1388
  "attributes": [
1389
+ {
1390
+ "name": "accessible-description-ref",
1391
+ "type": {
1392
+ "text": "string"
1393
+ },
1394
+ "description": "A space-separated list of IDs referencing the elements that\ndescribe the component for screen reader users. The referenced\nelements are announced in addition to the helper text and\nthe error message.",
1395
+ "fieldName": "accessibleDescriptionRef",
1396
+ "inheritedFrom": {
1397
+ "name": "FieldMixin",
1398
+ "package": "@vaadin/field-base/src/field-mixin.js"
1399
+ }
1400
+ },
1349
1401
  {
1350
1402
  "name": "accessible-name",
1351
1403
  "type": {
1352
1404
  "text": "string"
1353
1405
  },
1354
- "description": "String used to label the component to screen reader users.",
1406
+ "description": "String used to label the component for screen reader users.",
1355
1407
  "fieldName": "accessibleName",
1356
1408
  "inheritedFrom": {
1357
1409
  "name": "FieldMixin",
@@ -1363,7 +1415,7 @@
1363
1415
  "type": {
1364
1416
  "text": "string"
1365
1417
  },
1366
- "description": "Id of the element used as label of the component to screen reader users.",
1418
+ "description": "A space-separated list of IDs referencing the elements that\nlabel the component for screen reader users.",
1367
1419
  "fieldName": "accessibleNameRef",
1368
1420
  "inheritedFrom": {
1369
1421
  "name": "FieldMixin",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vaadin/time-picker",
3
- "version": "25.3.0-alpha8",
3
+ "version": "25.3.0-alpha9",
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": "25.3.0-alpha8",
39
- "@vaadin/combo-box": "25.3.0-alpha8",
40
- "@vaadin/component-base": "25.3.0-alpha8",
41
- "@vaadin/field-base": "25.3.0-alpha8",
42
- "@vaadin/input-container": "25.3.0-alpha8",
43
- "@vaadin/item": "25.3.0-alpha8",
44
- "@vaadin/overlay": "25.3.0-alpha8",
45
- "@vaadin/vaadin-themable-mixin": "25.3.0-alpha8",
38
+ "@vaadin/a11y-base": "25.3.0-alpha9",
39
+ "@vaadin/combo-box": "25.3.0-alpha9",
40
+ "@vaadin/component-base": "25.3.0-alpha9",
41
+ "@vaadin/field-base": "25.3.0-alpha9",
42
+ "@vaadin/input-container": "25.3.0-alpha9",
43
+ "@vaadin/item": "25.3.0-alpha9",
44
+ "@vaadin/overlay": "25.3.0-alpha9",
45
+ "@vaadin/vaadin-themable-mixin": "25.3.0-alpha9",
46
46
  "lit": "^3.0.0"
47
47
  },
48
48
  "devDependencies": {
49
- "@vaadin/aura": "25.3.0-alpha8",
50
- "@vaadin/chai-plugins": "25.3.0-alpha8",
51
- "@vaadin/test-runner-commands": "25.3.0-alpha8",
49
+ "@vaadin/aura": "25.3.0-alpha9",
50
+ "@vaadin/chai-plugins": "25.3.0-alpha9",
51
+ "@vaadin/test-runner-commands": "25.3.0-alpha9",
52
52
  "@vaadin/testing-helpers": "^2.0.0",
53
- "@vaadin/vaadin-lumo-styles": "25.3.0-alpha8",
53
+ "@vaadin/vaadin-lumo-styles": "25.3.0-alpha9",
54
54
  "sinon": "^22.0.0"
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": "ccbb4aaffb63c745c6da0426b532d4d05e47af29"
61
+ "gitHead": "cb915ebde095ec5b94a87af93dd4530f51984c52"
62
62
  }
@@ -38,9 +38,7 @@ import { ThemableMixin } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mix
38
38
  * @customElement vaadin-time-picker-item
39
39
  * @private
40
40
  */
41
- export class TimePickerItem extends ComboBoxItemMixin(
42
- ThemableMixin(DirMixin(PolylitMixin(LumoInjectionMixin(LitElement)))),
43
- ) {
41
+ class TimePickerItem extends ComboBoxItemMixin(ThemableMixin(DirMixin(PolylitMixin(LumoInjectionMixin(LitElement))))) {
44
42
  static get is() {
45
43
  return 'vaadin-time-picker-item';
46
44
  }
@@ -61,3 +59,5 @@ export class TimePickerItem extends ComboBoxItemMixin(
61
59
  }
62
60
 
63
61
  defineCustomElement(TimePickerItem);
62
+
63
+ export { TimePickerItem };
@@ -265,8 +265,10 @@ export const TimePickerMixin = (superClass) =>
265
265
  getComputedStyle(this).getPropertyValue(`--${this._tagNamePrefix}-overlay-max-height`) || '65vh';
266
266
  }
267
267
 
268
+ const isClosing = this.hasAttribute('closing');
269
+
268
270
  this._scroller.setProperties({
269
- items: opened ? items : [],
271
+ items: opened || isClosing ? items : [],
270
272
  opened,
271
273
  focusedIndex,
272
274
  theme,
@@ -365,7 +367,7 @@ export const TimePickerMixin = (superClass) =>
365
367
  _setFocused(focused) {
366
368
  super._setFocused(focused);
367
369
 
368
- if (!focused) {
370
+ if (!focused && !this._closeOnBlurIsPrevented) {
369
371
  // Do not validate when focusout is caused by document
370
372
  // losing focus, which happens on browser tab switch.
371
373
  if (document.hasFocus()) {
@@ -21,7 +21,7 @@ import { timePickerOverlayStyles } from './styles/vaadin-time-picker-overlay-bas
21
21
  * @private
22
22
  * @attr {string} theme - The theme variants to apply to the component.
23
23
  */
24
- export class TimePickerOverlay extends ComboBoxOverlayMixin(
24
+ class TimePickerOverlay extends ComboBoxOverlayMixin(
25
25
  OverlayMixin(DirMixin(ThemableMixin(PolylitMixin(LumoInjectionMixin(LitElement))))),
26
26
  ) {
27
27
  static get is() {
@@ -45,3 +45,5 @@ export class TimePickerOverlay extends ComboBoxOverlayMixin(
45
45
  }
46
46
 
47
47
  defineCustomElement(TimePickerOverlay);
48
+
49
+ export { TimePickerOverlay };
@@ -16,7 +16,7 @@ import { timePickerScrollerStyles } from './styles/vaadin-time-picker-scroller-b
16
16
  * @extends HTMLElement
17
17
  * @private
18
18
  */
19
- export class TimePickerScroller extends ComboBoxScrollerMixin(PolylitMixin(LitElement)) {
19
+ class TimePickerScroller extends ComboBoxScrollerMixin(PolylitMixin(LitElement)) {
20
20
  static get is() {
21
21
  return 'vaadin-time-picker-scroller';
22
22
  }
@@ -36,3 +36,5 @@ export class TimePickerScroller extends ComboBoxScrollerMixin(PolylitMixin(LitEl
36
36
  }
37
37
 
38
38
  defineCustomElement(TimePickerScroller);
39
+
40
+ export { TimePickerScroller };
package/web-types.json CHANGED
@@ -1,18 +1,27 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/time-picker",
4
- "version": "25.3.0-alpha8",
4
+ "version": "25.3.0-alpha9",
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.3.0-alpha8/#/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",
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.3.0-alpha9/#/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
+ {
14
+ "name": "accessible-description-ref",
15
+ "description": "A space-separated list of IDs referencing the elements that\ndescribe the component for screen reader users. The referenced\nelements are announced in addition to the helper text and\nthe error message.",
16
+ "value": {
17
+ "type": [
18
+ "string"
19
+ ]
20
+ }
21
+ },
13
22
  {
14
23
  "name": "accessible-name",
15
- "description": "String used to label the component to screen reader users.",
24
+ "description": "String used to label the component for screen reader users.",
16
25
  "value": {
17
26
  "type": [
18
27
  "string"
@@ -21,7 +30,7 @@
21
30
  },
22
31
  {
23
32
  "name": "accessible-name-ref",
24
- "description": "Id of the element used as label of the component to screen reader users.",
33
+ "description": "A space-separated list of IDs referencing the elements that\nlabel the component for screen reader users.",
25
34
  "value": {
26
35
  "type": [
27
36
  "string"
@@ -238,9 +247,18 @@
238
247
  ],
239
248
  "js": {
240
249
  "properties": [
250
+ {
251
+ "name": "accessibleDescriptionRef",
252
+ "description": "A space-separated list of IDs referencing the elements that\ndescribe the component for screen reader users. The referenced\nelements are announced in addition to the helper text and\nthe error message.",
253
+ "value": {
254
+ "type": [
255
+ "string"
256
+ ]
257
+ }
258
+ },
241
259
  {
242
260
  "name": "accessibleName",
243
- "description": "String used to label the component to screen reader users.",
261
+ "description": "String used to label the component for screen reader users.",
244
262
  "value": {
245
263
  "type": [
246
264
  "string"
@@ -249,7 +267,7 @@
249
267
  },
250
268
  {
251
269
  "name": "accessibleNameRef",
252
- "description": "Id of the element used as label of the component to screen reader users.",
270
+ "description": "A space-separated list of IDs referencing the elements that\nlabel the component for screen reader users.",
253
271
  "value": {
254
272
  "type": [
255
273
  "string"
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/time-picker",
4
- "version": "25.3.0-alpha8",
4
+ "version": "25.3.0-alpha9",
5
5
  "description-markup": "markdown",
6
6
  "framework": "lit",
7
7
  "framework-config": {
@@ -16,19 +16,26 @@
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.3.0-alpha8/#/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",
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.3.0-alpha9/#/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
+ {
23
+ "name": ".accessibleDescriptionRef",
24
+ "description": "A space-separated list of IDs referencing the elements that\ndescribe the component for screen reader users. The referenced\nelements are announced in addition to the helper text and\nthe error message.",
25
+ "value": {
26
+ "kind": "expression"
27
+ }
28
+ },
22
29
  {
23
30
  "name": ".accessibleName",
24
- "description": "String used to label the component to screen reader users.",
31
+ "description": "String used to label the component for screen reader users.",
25
32
  "value": {
26
33
  "kind": "expression"
27
34
  }
28
35
  },
29
36
  {
30
37
  "name": ".accessibleNameRef",
31
- "description": "Id of the element used as label of the component to screen reader users.",
38
+ "description": "A space-separated list of IDs referencing the elements that\nlabel the component for screen reader users.",
32
39
  "value": {
33
40
  "kind": "expression"
34
41
  }