@vaadin/date-picker 25.3.1 → 25.3.2
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 +2 -2
- package/package.json +13 -13
- package/src/vaadin-date-picker-overlay-mixin.js +9 -0
- package/web-types.json +1 -1
- package/web-types.lit.json +1 -1
package/custom-elements.json
CHANGED
|
@@ -1629,7 +1629,7 @@
|
|
|
1629
1629
|
"type": {
|
|
1630
1630
|
"text": "boolean"
|
|
1631
1631
|
},
|
|
1632
|
-
"description": "Set to true to move focus into the overlay automatically on open.\n\nFocus moves to the first tabbable element in the tab order. This\ncan be the overlay itself if it has `tabindex` attribute set to `0`\non the host element or the `overlay` shadow DOM part.",
|
|
1632
|
+
"description": "Set to true to move focus into the overlay automatically on open.\n\nFocus moves to the first tabbable element in the tab order. This\ncan be the overlay itself if it has `tabindex` attribute set to `0`\non the host element or the `overlay` shadow DOM part.\n\nAn element inside the overlay that has `autofocus` set, such as\n`<vaadin-text-field autofocus>`, receives focus on open instead,\neven when this property is false.",
|
|
1633
1633
|
"attribute": "autofocus",
|
|
1634
1634
|
"inheritedFrom": {
|
|
1635
1635
|
"name": "OverlayFocusMixin",
|
|
@@ -1940,7 +1940,7 @@
|
|
|
1940
1940
|
"type": {
|
|
1941
1941
|
"text": "boolean"
|
|
1942
1942
|
},
|
|
1943
|
-
"description": "Set to true to move focus into the overlay automatically on open.\n\nFocus moves to the first tabbable element in the tab order. This\ncan be the overlay itself if it has `tabindex` attribute set to `0`\non the host element or the `overlay` shadow DOM part.",
|
|
1943
|
+
"description": "Set to true to move focus into the overlay automatically on open.\n\nFocus moves to the first tabbable element in the tab order. This\ncan be the overlay itself if it has `tabindex` attribute set to `0`\non the host element or the `overlay` shadow DOM part.\n\nAn element inside the overlay that has `autofocus` set, such as\n`<vaadin-text-field autofocus>`, receives focus on open instead,\neven when this property is false.",
|
|
1944
1944
|
"fieldName": "autofocus",
|
|
1945
1945
|
"inheritedFrom": {
|
|
1946
1946
|
"name": "OverlayFocusMixin",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vaadin/date-picker",
|
|
3
|
-
"version": "25.3.
|
|
3
|
+
"version": "25.3.2",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -35,21 +35,21 @@
|
|
|
35
35
|
],
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@open-wc/dedupe-mixin": "^1.3.0",
|
|
38
|
-
"@vaadin/a11y-base": "~25.3.
|
|
39
|
-
"@vaadin/button": "~25.3.
|
|
40
|
-
"@vaadin/component-base": "~25.3.
|
|
41
|
-
"@vaadin/field-base": "~25.3.
|
|
42
|
-
"@vaadin/input-container": "~25.3.
|
|
43
|
-
"@vaadin/overlay": "~25.3.
|
|
44
|
-
"@vaadin/vaadin-themable-mixin": "~25.3.
|
|
38
|
+
"@vaadin/a11y-base": "~25.3.2",
|
|
39
|
+
"@vaadin/button": "~25.3.2",
|
|
40
|
+
"@vaadin/component-base": "~25.3.2",
|
|
41
|
+
"@vaadin/field-base": "~25.3.2",
|
|
42
|
+
"@vaadin/input-container": "~25.3.2",
|
|
43
|
+
"@vaadin/overlay": "~25.3.2",
|
|
44
|
+
"@vaadin/vaadin-themable-mixin": "~25.3.2",
|
|
45
45
|
"lit": "^3.0.0"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
|
-
"@vaadin/aura": "~25.3.
|
|
49
|
-
"@vaadin/chai-plugins": "~25.3.
|
|
50
|
-
"@vaadin/test-runner-commands": "~25.3.
|
|
48
|
+
"@vaadin/aura": "~25.3.2",
|
|
49
|
+
"@vaadin/chai-plugins": "~25.3.2",
|
|
50
|
+
"@vaadin/test-runner-commands": "~25.3.2",
|
|
51
51
|
"@vaadin/testing-helpers": "^2.0.0",
|
|
52
|
-
"@vaadin/vaadin-lumo-styles": "~25.3.
|
|
52
|
+
"@vaadin/vaadin-lumo-styles": "~25.3.2",
|
|
53
53
|
"sinon": "^22.0.0"
|
|
54
54
|
},
|
|
55
55
|
"customElements": "custom-elements.json",
|
|
@@ -57,5 +57,5 @@
|
|
|
57
57
|
"web-types.json",
|
|
58
58
|
"web-types.lit.json"
|
|
59
59
|
],
|
|
60
|
-
"gitHead": "
|
|
60
|
+
"gitHead": "3f75254a3f77da3977cb79a77f549f37b8a5d54e"
|
|
61
61
|
}
|
|
@@ -9,6 +9,15 @@ import { PositionMixin } from '@vaadin/overlay/src/vaadin-overlay-position-mixin
|
|
|
9
9
|
|
|
10
10
|
export const DatePickerOverlayMixin = (superClass) =>
|
|
11
11
|
class DatePickerOverlayMixin extends PositionMixin(OverlayMixin(superClass)) {
|
|
12
|
+
/**
|
|
13
|
+
* Override method from `OverlayFocusMixin` to skip moving focus on open.
|
|
14
|
+
* The date picker moves focus itself, and only uses focus restoration.
|
|
15
|
+
*
|
|
16
|
+
* @protected
|
|
17
|
+
* @override
|
|
18
|
+
*/
|
|
19
|
+
_initFocus() {}
|
|
20
|
+
|
|
12
21
|
/**
|
|
13
22
|
* Override method inherited from `OverlayMixin` to not close on input click.
|
|
14
23
|
* Needed to ignore date-picker's own input in the mousedown listener below.
|
package/web-types.json
CHANGED