@vaadin/date-picker 24.2.0-alpha4 → 24.2.0-dev.538d07bdf
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vaadin/date-picker",
|
|
3
|
-
"version": "24.2.0-
|
|
3
|
+
"version": "24.2.0-dev.538d07bdf",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -36,24 +36,24 @@
|
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@open-wc/dedupe-mixin": "^1.3.0",
|
|
38
38
|
"@polymer/polymer": "^3.2.0",
|
|
39
|
-
"@vaadin/a11y-base": "24.2.0-
|
|
40
|
-
"@vaadin/button": "24.2.0-
|
|
41
|
-
"@vaadin/component-base": "24.2.0-
|
|
42
|
-
"@vaadin/field-base": "24.2.0-
|
|
43
|
-
"@vaadin/input-container": "24.2.0-
|
|
44
|
-
"@vaadin/overlay": "24.2.0-
|
|
45
|
-
"@vaadin/vaadin-lumo-styles": "24.2.0-
|
|
46
|
-
"@vaadin/vaadin-material-styles": "24.2.0-
|
|
47
|
-
"@vaadin/vaadin-themable-mixin": "24.2.0-
|
|
39
|
+
"@vaadin/a11y-base": "24.2.0-dev.538d07bdf",
|
|
40
|
+
"@vaadin/button": "24.2.0-dev.538d07bdf",
|
|
41
|
+
"@vaadin/component-base": "24.2.0-dev.538d07bdf",
|
|
42
|
+
"@vaadin/field-base": "24.2.0-dev.538d07bdf",
|
|
43
|
+
"@vaadin/input-container": "24.2.0-dev.538d07bdf",
|
|
44
|
+
"@vaadin/overlay": "24.2.0-dev.538d07bdf",
|
|
45
|
+
"@vaadin/vaadin-lumo-styles": "24.2.0-dev.538d07bdf",
|
|
46
|
+
"@vaadin/vaadin-material-styles": "24.2.0-dev.538d07bdf",
|
|
47
|
+
"@vaadin/vaadin-themable-mixin": "24.2.0-dev.538d07bdf"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"@esm-bundle/chai": "^4.3.4",
|
|
51
|
-
"@vaadin/testing-helpers": "^0.4.
|
|
51
|
+
"@vaadin/testing-helpers": "^0.4.3",
|
|
52
52
|
"sinon": "^13.0.2"
|
|
53
53
|
},
|
|
54
54
|
"web-types": [
|
|
55
55
|
"web-types.json",
|
|
56
56
|
"web-types.lit.json"
|
|
57
57
|
],
|
|
58
|
-
"gitHead": "
|
|
58
|
+
"gitHead": "86c2fd5f37cf1240af98f7c7d752518c8d701db2"
|
|
59
59
|
}
|
|
@@ -3,34 +3,33 @@
|
|
|
3
3
|
* Copyright (c) 2016 - 2023 Vaadin Ltd.
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
5
|
*/
|
|
6
|
-
import {
|
|
6
|
+
import { html, PolymerElement } from '@polymer/polymer/polymer-element.js';
|
|
7
|
+
import { DirMixin } from '@vaadin/component-base/src/dir-mixin.js';
|
|
8
|
+
import { OverlayMixin } from '@vaadin/overlay/src/vaadin-overlay-mixin.js';
|
|
7
9
|
import { PositionMixin } from '@vaadin/overlay/src/vaadin-overlay-position-mixin.js';
|
|
8
|
-
import {
|
|
10
|
+
import { overlayStyles } from '@vaadin/overlay/src/vaadin-overlay-styles.js';
|
|
11
|
+
import { css, registerStyles, ThemableMixin } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
|
|
9
12
|
|
|
10
|
-
|
|
11
|
-
'
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
flex: auto;
|
|
16
|
-
}
|
|
13
|
+
const datePickerOverlayStyles = css`
|
|
14
|
+
[part='overlay'] {
|
|
15
|
+
display: flex;
|
|
16
|
+
flex: auto;
|
|
17
|
+
}
|
|
17
18
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
[part~='content'] {
|
|
20
|
+
flex: auto;
|
|
21
|
+
}
|
|
21
22
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
}
|
|
23
|
+
@media (forced-colors: active) {
|
|
24
|
+
[part='overlay'] {
|
|
25
|
+
outline: 3px solid;
|
|
26
26
|
}
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
moduleId: 'vaadin-date-picker-overlay-styles',
|
|
30
|
-
},
|
|
31
|
-
);
|
|
27
|
+
}
|
|
28
|
+
`;
|
|
32
29
|
|
|
33
|
-
|
|
30
|
+
registerStyles('vaadin-date-picker-overlay', [overlayStyles, datePickerOverlayStyles], {
|
|
31
|
+
moduleId: 'vaadin-date-picker-overlay-styles',
|
|
32
|
+
});
|
|
34
33
|
|
|
35
34
|
/**
|
|
36
35
|
* An element used internally by `<vaadin-date-picker>`. Not intended to be used separately.
|
|
@@ -38,18 +37,20 @@ let memoizedTemplate;
|
|
|
38
37
|
* @extends Overlay
|
|
39
38
|
* @private
|
|
40
39
|
*/
|
|
41
|
-
class DatePickerOverlay extends PositionMixin(
|
|
40
|
+
class DatePickerOverlay extends PositionMixin(OverlayMixin(DirMixin(ThemableMixin(PolymerElement)))) {
|
|
42
41
|
static get is() {
|
|
43
42
|
return 'vaadin-date-picker-overlay';
|
|
44
43
|
}
|
|
45
44
|
|
|
46
45
|
static get template() {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
46
|
+
return html`
|
|
47
|
+
<div id="backdrop" part="backdrop" hidden$="[[!withBackdrop]]"></div>
|
|
48
|
+
<div part="overlay" id="overlay">
|
|
49
|
+
<div part="content" id="content">
|
|
50
|
+
<slot></slot>
|
|
51
|
+
</div>
|
|
52
|
+
</div>
|
|
53
|
+
`;
|
|
53
54
|
}
|
|
54
55
|
}
|
|
55
56
|
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import '@vaadin/vaadin-lumo-styles/sizing.js';
|
|
2
2
|
import '@vaadin/vaadin-lumo-styles/spacing.js';
|
|
3
|
-
import '@vaadin/overlay/theme/lumo/vaadin-overlay.js';
|
|
4
3
|
import { menuOverlay } from '@vaadin/vaadin-lumo-styles/mixins/menu-overlay.js';
|
|
5
4
|
import { css, registerStyles } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
|
|
6
5
|
|