@vaadin/time-picker 25.3.0-alpha7 → 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.
- package/custom-elements.json +95 -36
- package/package.json +14 -14
- package/src/vaadin-time-picker-item.js +4 -3
- package/src/vaadin-time-picker-mixin.js +4 -2
- package/src/vaadin-time-picker-overlay.js +4 -1
- package/src/vaadin-time-picker-scroller.js +3 -1
- package/src/vaadin-time-picker.js +1 -0
- package/web-types.json +25 -9
- package/web-types.lit.json +11 -4
package/custom-elements.json
CHANGED
|
@@ -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
|
|
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": "
|
|
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
|
|
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": "
|
|
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
|
|
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": "
|
|
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",
|
|
@@ -1345,41 +1385,25 @@
|
|
|
1345
1385
|
"name": "value-changed"
|
|
1346
1386
|
}
|
|
1347
1387
|
],
|
|
1348
|
-
"
|
|
1349
|
-
{
|
|
1350
|
-
"name": "TimePickerMixin",
|
|
1351
|
-
"module": "src/vaadin-time-picker-mixin.js"
|
|
1352
|
-
},
|
|
1353
|
-
{
|
|
1354
|
-
"name": "ThemableMixin",
|
|
1355
|
-
"package": "@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js"
|
|
1356
|
-
},
|
|
1357
|
-
{
|
|
1358
|
-
"name": "ElementMixin",
|
|
1359
|
-
"package": "@vaadin/component-base/src/element-mixin.js"
|
|
1360
|
-
},
|
|
1388
|
+
"attributes": [
|
|
1361
1389
|
{
|
|
1362
|
-
"name": "
|
|
1363
|
-
"
|
|
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
|
+
}
|
|
1364
1400
|
},
|
|
1365
|
-
{
|
|
1366
|
-
"name": "LumoInjectionMixin",
|
|
1367
|
-
"package": "@vaadin/vaadin-themable-mixin/lumo-injection-mixin.js"
|
|
1368
|
-
}
|
|
1369
|
-
],
|
|
1370
|
-
"superclass": {
|
|
1371
|
-
"name": "LitElement",
|
|
1372
|
-
"package": "lit"
|
|
1373
|
-
},
|
|
1374
|
-
"tagName": "vaadin-time-picker",
|
|
1375
|
-
"customElement": true,
|
|
1376
|
-
"attributes": [
|
|
1377
1401
|
{
|
|
1378
1402
|
"name": "accessible-name",
|
|
1379
1403
|
"type": {
|
|
1380
1404
|
"text": "string"
|
|
1381
1405
|
},
|
|
1382
|
-
"description": "String used to label the component
|
|
1406
|
+
"description": "String used to label the component for screen reader users.",
|
|
1383
1407
|
"fieldName": "accessibleName",
|
|
1384
1408
|
"inheritedFrom": {
|
|
1385
1409
|
"name": "FieldMixin",
|
|
@@ -1391,7 +1415,7 @@
|
|
|
1391
1415
|
"type": {
|
|
1392
1416
|
"text": "string"
|
|
1393
1417
|
},
|
|
1394
|
-
"description": "
|
|
1418
|
+
"description": "A space-separated list of IDs referencing the elements that\nlabel the component for screen reader users.",
|
|
1395
1419
|
"fieldName": "accessibleNameRef",
|
|
1396
1420
|
"inheritedFrom": {
|
|
1397
1421
|
"name": "FieldMixin",
|
|
@@ -1650,6 +1674,13 @@
|
|
|
1650
1674
|
"module": "src/vaadin-time-picker-mixin.js"
|
|
1651
1675
|
}
|
|
1652
1676
|
},
|
|
1677
|
+
{
|
|
1678
|
+
"type": {
|
|
1679
|
+
"text": "string"
|
|
1680
|
+
},
|
|
1681
|
+
"description": "The theme variants to apply to the component.",
|
|
1682
|
+
"name": "theme"
|
|
1683
|
+
},
|
|
1653
1684
|
{
|
|
1654
1685
|
"name": "title",
|
|
1655
1686
|
"type": {
|
|
@@ -1674,7 +1705,35 @@
|
|
|
1674
1705
|
"module": "src/vaadin-time-picker-mixin.js"
|
|
1675
1706
|
}
|
|
1676
1707
|
}
|
|
1677
|
-
]
|
|
1708
|
+
],
|
|
1709
|
+
"mixins": [
|
|
1710
|
+
{
|
|
1711
|
+
"name": "TimePickerMixin",
|
|
1712
|
+
"module": "src/vaadin-time-picker-mixin.js"
|
|
1713
|
+
},
|
|
1714
|
+
{
|
|
1715
|
+
"name": "ThemableMixin",
|
|
1716
|
+
"package": "@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js"
|
|
1717
|
+
},
|
|
1718
|
+
{
|
|
1719
|
+
"name": "ElementMixin",
|
|
1720
|
+
"package": "@vaadin/component-base/src/element-mixin.js"
|
|
1721
|
+
},
|
|
1722
|
+
{
|
|
1723
|
+
"name": "PolylitMixin",
|
|
1724
|
+
"package": "@vaadin/component-base/src/polylit-mixin.js"
|
|
1725
|
+
},
|
|
1726
|
+
{
|
|
1727
|
+
"name": "LumoInjectionMixin",
|
|
1728
|
+
"package": "@vaadin/vaadin-themable-mixin/lumo-injection-mixin.js"
|
|
1729
|
+
}
|
|
1730
|
+
],
|
|
1731
|
+
"superclass": {
|
|
1732
|
+
"name": "LitElement",
|
|
1733
|
+
"package": "lit"
|
|
1734
|
+
},
|
|
1735
|
+
"tagName": "vaadin-time-picker",
|
|
1736
|
+
"customElement": true
|
|
1678
1737
|
}
|
|
1679
1738
|
],
|
|
1680
1739
|
"exports": [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vaadin/time-picker",
|
|
3
|
-
"version": "25.3.0-
|
|
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-
|
|
39
|
-
"@vaadin/combo-box": "25.3.0-
|
|
40
|
-
"@vaadin/component-base": "25.3.0-
|
|
41
|
-
"@vaadin/field-base": "25.3.0-
|
|
42
|
-
"@vaadin/input-container": "25.3.0-
|
|
43
|
-
"@vaadin/item": "25.3.0-
|
|
44
|
-
"@vaadin/overlay": "25.3.0-
|
|
45
|
-
"@vaadin/vaadin-themable-mixin": "25.3.0-
|
|
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-
|
|
50
|
-
"@vaadin/chai-plugins": "25.3.0-
|
|
51
|
-
"@vaadin/test-runner-commands": "25.3.0-
|
|
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-
|
|
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": "
|
|
61
|
+
"gitHead": "cb915ebde095ec5b94a87af93dd4530f51984c52"
|
|
62
62
|
}
|
|
@@ -34,12 +34,11 @@ import { ThemableMixin } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mix
|
|
|
34
34
|
*
|
|
35
35
|
* See [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.
|
|
36
36
|
*
|
|
37
|
+
* @attr {string} theme - The theme variants to apply to the component.
|
|
37
38
|
* @customElement vaadin-time-picker-item
|
|
38
39
|
* @private
|
|
39
40
|
*/
|
|
40
|
-
|
|
41
|
-
ThemableMixin(DirMixin(PolylitMixin(LumoInjectionMixin(LitElement)))),
|
|
42
|
-
) {
|
|
41
|
+
class TimePickerItem extends ComboBoxItemMixin(ThemableMixin(DirMixin(PolylitMixin(LumoInjectionMixin(LitElement))))) {
|
|
43
42
|
static get is() {
|
|
44
43
|
return 'vaadin-time-picker-item';
|
|
45
44
|
}
|
|
@@ -60,3 +59,5 @@ export class TimePickerItem extends ComboBoxItemMixin(
|
|
|
60
59
|
}
|
|
61
60
|
|
|
62
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()) {
|
|
@@ -19,8 +19,9 @@ import { timePickerOverlayStyles } from './styles/vaadin-time-picker-overlay-bas
|
|
|
19
19
|
*
|
|
20
20
|
* @extends HTMLElement
|
|
21
21
|
* @private
|
|
22
|
+
* @attr {string} theme - The theme variants to apply to the component.
|
|
22
23
|
*/
|
|
23
|
-
|
|
24
|
+
class TimePickerOverlay extends ComboBoxOverlayMixin(
|
|
24
25
|
OverlayMixin(DirMixin(ThemableMixin(PolylitMixin(LumoInjectionMixin(LitElement))))),
|
|
25
26
|
) {
|
|
26
27
|
static get is() {
|
|
@@ -44,3 +45,5 @@ export class TimePickerOverlay extends ComboBoxOverlayMixin(
|
|
|
44
45
|
}
|
|
45
46
|
|
|
46
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
|
-
|
|
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 };
|
|
@@ -103,6 +103,7 @@ import { TimePickerMixin } from './vaadin-time-picker-mixin.js';
|
|
|
103
103
|
* @fires {CustomEvent} value-changed - Fired when the `value` property changes.
|
|
104
104
|
* @fires {CustomEvent} validated - Fired whenever the field is validated.
|
|
105
105
|
*
|
|
106
|
+
* @attr {string} theme - The theme variants to apply to the component.
|
|
106
107
|
* @customElement vaadin-time-picker
|
|
107
108
|
* @extends HTMLElement
|
|
108
109
|
*/
|
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-
|
|
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-
|
|
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
|
|
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": "
|
|
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"
|
|
@@ -213,9 +222,7 @@
|
|
|
213
222
|
"description": "The theme variants to apply to the component.",
|
|
214
223
|
"value": {
|
|
215
224
|
"type": [
|
|
216
|
-
"string"
|
|
217
|
-
"null",
|
|
218
|
-
"undefined"
|
|
225
|
+
"string"
|
|
219
226
|
]
|
|
220
227
|
}
|
|
221
228
|
},
|
|
@@ -240,9 +247,18 @@
|
|
|
240
247
|
],
|
|
241
248
|
"js": {
|
|
242
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
|
+
},
|
|
243
259
|
{
|
|
244
260
|
"name": "accessibleName",
|
|
245
|
-
"description": "String used to label the component
|
|
261
|
+
"description": "String used to label the component for screen reader users.",
|
|
246
262
|
"value": {
|
|
247
263
|
"type": [
|
|
248
264
|
"string"
|
|
@@ -251,7 +267,7 @@
|
|
|
251
267
|
},
|
|
252
268
|
{
|
|
253
269
|
"name": "accessibleNameRef",
|
|
254
|
-
"description": "
|
|
270
|
+
"description": "A space-separated list of IDs referencing the elements that\nlabel the component for screen reader users.",
|
|
255
271
|
"value": {
|
|
256
272
|
"type": [
|
|
257
273
|
"string"
|
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.3.0-
|
|
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-
|
|
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
|
|
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": "
|
|
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
|
}
|