@vaadin/date-picker 25.0.0-alpha5 → 25.0.0-alpha7
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 +12 -12
- package/src/styles/vaadin-date-picker-overlay-content-base-styles.js +11 -11
- package/src/styles/vaadin-date-picker-year-base-styles.js +1 -1
- package/src/styles/vaadin-month-calendar-base-styles.js +7 -10
- package/src/vaadin-date-picker-overlay-content.js +2 -2
- package/src/vaadin-date-picker-overlay.js +2 -2
- package/src/vaadin-date-picker-year.js +2 -2
- package/src/vaadin-date-picker.js +3 -2
- package/src/vaadin-infinite-scroller.js +0 -17
- package/src/vaadin-month-calendar.js +2 -2
- package/theme/lumo/vaadin-date-picker-overlay-content-styles.js +0 -2
- package/theme/lumo/vaadin-date-picker-overlay-styles.js +0 -1
- package/web-types.json +2 -2
- package/web-types.lit.json +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vaadin/date-picker",
|
|
3
|
-
"version": "25.0.0-
|
|
3
|
+
"version": "25.0.0-alpha7",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -37,19 +37,19 @@
|
|
|
37
37
|
],
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@open-wc/dedupe-mixin": "^1.3.0",
|
|
40
|
-
"@vaadin/a11y-base": "25.0.0-
|
|
41
|
-
"@vaadin/button": "25.0.0-
|
|
42
|
-
"@vaadin/component-base": "25.0.0-
|
|
43
|
-
"@vaadin/field-base": "25.0.0-
|
|
44
|
-
"@vaadin/input-container": "25.0.0-
|
|
45
|
-
"@vaadin/overlay": "25.0.0-
|
|
46
|
-
"@vaadin/vaadin-lumo-styles": "25.0.0-
|
|
47
|
-
"@vaadin/vaadin-themable-mixin": "25.0.0-
|
|
40
|
+
"@vaadin/a11y-base": "25.0.0-alpha7",
|
|
41
|
+
"@vaadin/button": "25.0.0-alpha7",
|
|
42
|
+
"@vaadin/component-base": "25.0.0-alpha7",
|
|
43
|
+
"@vaadin/field-base": "25.0.0-alpha7",
|
|
44
|
+
"@vaadin/input-container": "25.0.0-alpha7",
|
|
45
|
+
"@vaadin/overlay": "25.0.0-alpha7",
|
|
46
|
+
"@vaadin/vaadin-lumo-styles": "25.0.0-alpha7",
|
|
47
|
+
"@vaadin/vaadin-themable-mixin": "25.0.0-alpha7",
|
|
48
48
|
"lit": "^3.0.0"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
|
-
"@vaadin/chai-plugins": "25.0.0-
|
|
52
|
-
"@vaadin/test-runner-commands": "25.0.0-
|
|
51
|
+
"@vaadin/chai-plugins": "25.0.0-alpha7",
|
|
52
|
+
"@vaadin/test-runner-commands": "25.0.0-alpha7",
|
|
53
53
|
"@vaadin/testing-helpers": "^2.0.0",
|
|
54
54
|
"sinon": "^18.0.0"
|
|
55
55
|
},
|
|
@@ -57,5 +57,5 @@
|
|
|
57
57
|
"web-types.json",
|
|
58
58
|
"web-types.lit.json"
|
|
59
59
|
],
|
|
60
|
-
"gitHead": "
|
|
60
|
+
"gitHead": "87f72707ce6866892f8be5782fa0da008e87dcbc"
|
|
61
61
|
}
|
|
@@ -31,19 +31,19 @@ export const overlayContentStyles = css`
|
|
|
31
31
|
[part='years-toggle-button'] {
|
|
32
32
|
display: inline-flex;
|
|
33
33
|
border: var(--vaadin-button-border, var(--vaadin-button-border-width, 1px) solid transparent);
|
|
34
|
-
border-radius: var(--vaadin-button-border-radius, var(--
|
|
34
|
+
border-radius: var(--vaadin-button-border-radius, var(--vaadin-radius-m));
|
|
35
35
|
color: var(--vaadin-button-text-color, var(--_vaadin-button-text-color));
|
|
36
36
|
font-size: var(--vaadin-button-font-size, inherit);
|
|
37
37
|
font-weight: var(--vaadin-button-font-weight, 500);
|
|
38
38
|
height: var(--vaadin-button-height, auto);
|
|
39
39
|
line-height: var(--vaadin-button-line-height, inherit);
|
|
40
|
-
padding: var(--vaadin-button-padding, var(--
|
|
40
|
+
padding: var(--vaadin-button-padding, var(--vaadin-padding-container));
|
|
41
41
|
cursor: var(--vaadin-clickable-cursor);
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
:host([years-visible]) [part='years-toggle-button'] {
|
|
45
|
-
background: var(--
|
|
46
|
-
color: var(--
|
|
45
|
+
background: var(--vaadin-color);
|
|
46
|
+
color: var(--vaadin-background-color);
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
[hidden] {
|
|
@@ -58,23 +58,23 @@ export const overlayContentStyles = css`
|
|
|
58
58
|
}
|
|
59
59
|
|
|
60
60
|
:host([desktop]) ::slotted([slot='months']) {
|
|
61
|
-
border-bottom: 1px solid var(--
|
|
61
|
+
border-bottom: 1px solid var(--vaadin-border-color);
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
::slotted([slot='years']) {
|
|
65
65
|
visibility: hidden;
|
|
66
|
-
background: var(--vaadin-date-picker-year-scroller-background, var(--
|
|
66
|
+
background: var(--vaadin-date-picker-year-scroller-background, var(--vaadin-background-container));
|
|
67
67
|
width: var(--vaadin-date-picker-year-scroller-width, 3rem);
|
|
68
68
|
box-sizing: border-box;
|
|
69
|
-
border-inline-start: 1px solid var(--vaadin-date-picker-year-scroller-border-color, var(--
|
|
69
|
+
border-inline-start: 1px solid var(--vaadin-date-picker-year-scroller-border-color, var(--vaadin-border-color));
|
|
70
70
|
overflow: visible;
|
|
71
71
|
min-height: 0;
|
|
72
72
|
clip-path: inset(0);
|
|
73
73
|
}
|
|
74
74
|
|
|
75
75
|
::slotted([slot='years'])::before {
|
|
76
|
-
background: var(--vaadin-overlay-background, var(--
|
|
77
|
-
border: 1px solid var(--vaadin-date-picker-year-scroller-border-color, var(--
|
|
76
|
+
background: var(--vaadin-overlay-background, var(--vaadin-background-color));
|
|
77
|
+
border: 1px solid var(--vaadin-date-picker-year-scroller-border-color, var(--vaadin-border-color));
|
|
78
78
|
width: 1em;
|
|
79
79
|
height: 1em;
|
|
80
80
|
position: absolute;
|
|
@@ -98,12 +98,12 @@ export const overlayContentStyles = css`
|
|
|
98
98
|
display: flex;
|
|
99
99
|
grid-area: toolbar;
|
|
100
100
|
justify-content: space-between;
|
|
101
|
-
padding: var(--vaadin-date-picker-toolbar-padding, var(--
|
|
101
|
+
padding: var(--vaadin-date-picker-toolbar-padding, var(--vaadin-padding));
|
|
102
102
|
}
|
|
103
103
|
|
|
104
104
|
:host([fullscreen]) [part='toolbar'] {
|
|
105
105
|
grid-area: header;
|
|
106
|
-
border-bottom: 1px solid var(--
|
|
106
|
+
border-bottom: 1px solid var(--vaadin-border-color);
|
|
107
107
|
}
|
|
108
108
|
}
|
|
109
109
|
`;
|
|
@@ -22,7 +22,7 @@ export const datePickerYearStyles = css`
|
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
:host([current]) [part='year-number'] {
|
|
25
|
-
color: var(--vaadin-date-picker-year-scroller-current-year-color, var(--
|
|
25
|
+
color: var(--vaadin-date-picker-year-scroller-current-year-color, var(--vaadin-color));
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
28
|
`;
|
|
@@ -14,7 +14,7 @@ export const monthCalendarStyles = css`
|
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
[part='month-header'] {
|
|
17
|
-
color: var(--vaadin-date-picker-month-header-color, var(--
|
|
17
|
+
color: var(--vaadin-date-picker-month-header-color, var(--vaadin-color));
|
|
18
18
|
font-size: var(--vaadin-date-picker-month-header-font-size, 0.9375rem);
|
|
19
19
|
font-weight: var(--vaadin-date-picker-month-header-font-weight, 500);
|
|
20
20
|
line-height: inherit;
|
|
@@ -60,10 +60,7 @@ export const monthCalendarStyles = css`
|
|
|
60
60
|
content: '';
|
|
61
61
|
height: 1px;
|
|
62
62
|
flex: 1;
|
|
63
|
-
background: var(
|
|
64
|
-
--vaadin-date-picker-week-divider-color,
|
|
65
|
-
var(--vaadin-divider-color, var(--_vaadin-border-color))
|
|
66
|
-
);
|
|
63
|
+
background: var(--vaadin-date-picker-week-divider-color, var(--vaadin-divider-color, var(--vaadin-border-color)));
|
|
67
64
|
}
|
|
68
65
|
|
|
69
66
|
[part~='weekday'],
|
|
@@ -76,7 +73,7 @@ export const monthCalendarStyles = css`
|
|
|
76
73
|
}
|
|
77
74
|
|
|
78
75
|
[part~='date'] {
|
|
79
|
-
border-radius: var(--vaadin-date-picker-date-border-radius, var(--
|
|
76
|
+
border-radius: var(--vaadin-date-picker-date-border-radius, var(--vaadin-radius-m));
|
|
80
77
|
position: relative;
|
|
81
78
|
width: var(--vaadin-date-picker-date-width, 2rem);
|
|
82
79
|
height: var(--vaadin-date-picker-date-height, 2rem);
|
|
@@ -99,21 +96,21 @@ export const monthCalendarStyles = css`
|
|
|
99
96
|
}
|
|
100
97
|
|
|
101
98
|
[part~='today'] {
|
|
102
|
-
color: var(--vaadin-date-picker-date-today-color, var(--
|
|
99
|
+
color: var(--vaadin-date-picker-date-today-color, var(--vaadin-color));
|
|
103
100
|
}
|
|
104
101
|
|
|
105
102
|
[part~='selected'] {
|
|
106
|
-
color: var(--vaadin-date-picker-date-selected-color, var(--
|
|
103
|
+
color: var(--vaadin-date-picker-date-selected-color, var(--vaadin-background-color));
|
|
107
104
|
}
|
|
108
105
|
|
|
109
106
|
[part~='selected']::after {
|
|
110
|
-
background: var(--vaadin-date-picker-date-selected-background, var(--
|
|
107
|
+
background: var(--vaadin-date-picker-date-selected-background, var(--vaadin-color));
|
|
111
108
|
outline-offset: 1px;
|
|
112
109
|
}
|
|
113
110
|
|
|
114
111
|
[disabled] {
|
|
115
112
|
cursor: var(--vaadin-disabled-cursor);
|
|
116
|
-
color: var(--vaadin-date-picker-date-disabled-color, var(--
|
|
113
|
+
color: var(--vaadin-date-picker-date-disabled-color, var(--vaadin-color-disabled));
|
|
117
114
|
opacity: 0.7;
|
|
118
115
|
}
|
|
119
116
|
|
|
@@ -12,7 +12,7 @@ import { html, LitElement } from 'lit';
|
|
|
12
12
|
import { defineCustomElement } from '@vaadin/component-base/src/define.js';
|
|
13
13
|
import { DirMixin } from '@vaadin/component-base/src/dir-mixin.js';
|
|
14
14
|
import { PolylitMixin } from '@vaadin/component-base/src/polylit-mixin.js';
|
|
15
|
-
import {
|
|
15
|
+
import { LumoInjectionMixin } from '@vaadin/vaadin-themable-mixin/lumo-injection-mixin.js';
|
|
16
16
|
import { ThemableMixin } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
|
|
17
17
|
import { overlayContentStyles } from './styles/vaadin-date-picker-overlay-content-core-styles.js';
|
|
18
18
|
import { DatePickerOverlayContentMixin } from './vaadin-date-picker-overlay-content-mixin.js';
|
|
@@ -23,7 +23,7 @@ import { DatePickerOverlayContentMixin } from './vaadin-date-picker-overlay-cont
|
|
|
23
23
|
* @private
|
|
24
24
|
*/
|
|
25
25
|
class DatePickerOverlayContent extends DatePickerOverlayContentMixin(
|
|
26
|
-
|
|
26
|
+
LumoInjectionMixin(ThemableMixin(DirMixin(PolylitMixin(LitElement)))),
|
|
27
27
|
) {
|
|
28
28
|
static get is() {
|
|
29
29
|
return 'vaadin-date-picker-overlay-content';
|
|
@@ -8,7 +8,7 @@ import { defineCustomElement } from '@vaadin/component-base/src/define.js';
|
|
|
8
8
|
import { DirMixin } from '@vaadin/component-base/src/dir-mixin.js';
|
|
9
9
|
import { PolylitMixin } from '@vaadin/component-base/src/polylit-mixin.js';
|
|
10
10
|
import { overlayStyles } from '@vaadin/overlay/src/styles/vaadin-overlay-core-styles.js';
|
|
11
|
-
import {
|
|
11
|
+
import { LumoInjectionMixin } from '@vaadin/vaadin-themable-mixin/lumo-injection-mixin.js';
|
|
12
12
|
import { ThemableMixin } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
|
|
13
13
|
import { datePickerOverlayStyles } from './styles/vaadin-date-picker-overlay-core-styles.js';
|
|
14
14
|
import { DatePickerOverlayMixin } from './vaadin-date-picker-overlay-mixin.js';
|
|
@@ -24,7 +24,7 @@ import { DatePickerOverlayMixin } from './vaadin-date-picker-overlay-mixin.js';
|
|
|
24
24
|
* @private
|
|
25
25
|
*/
|
|
26
26
|
class DatePickerOverlay extends DatePickerOverlayMixin(
|
|
27
|
-
DirMixin(
|
|
27
|
+
DirMixin(LumoInjectionMixin(ThemableMixin(PolylitMixin(LitElement)))),
|
|
28
28
|
) {
|
|
29
29
|
static get is() {
|
|
30
30
|
return 'vaadin-date-picker-overlay';
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
import { html, LitElement } from 'lit';
|
|
7
7
|
import { defineCustomElement } from '@vaadin/component-base/src/define.js';
|
|
8
8
|
import { PolylitMixin } from '@vaadin/component-base/src/polylit-mixin.js';
|
|
9
|
-
import {
|
|
9
|
+
import { LumoInjectionMixin } from '@vaadin/vaadin-themable-mixin/lumo-injection-mixin.js';
|
|
10
10
|
import { ThemableMixin } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
|
|
11
11
|
import { datePickerYearStyles } from './styles/vaadin-date-picker-year-core-styles.js';
|
|
12
12
|
|
|
@@ -19,7 +19,7 @@ import { datePickerYearStyles } from './styles/vaadin-date-picker-year-core-styl
|
|
|
19
19
|
* @mixes DatePickerYearMixin
|
|
20
20
|
* @private
|
|
21
21
|
*/
|
|
22
|
-
export class DatePickerYear extends
|
|
22
|
+
export class DatePickerYear extends LumoInjectionMixin(ThemableMixin(PolylitMixin(LitElement))) {
|
|
23
23
|
static get is() {
|
|
24
24
|
return 'vaadin-date-picker-year';
|
|
25
25
|
}
|
|
@@ -16,7 +16,7 @@ import { InputControlMixin } from '@vaadin/field-base/src/input-control-mixin.js
|
|
|
16
16
|
import { InputController } from '@vaadin/field-base/src/input-controller.js';
|
|
17
17
|
import { LabelledInputController } from '@vaadin/field-base/src/labelled-input-controller.js';
|
|
18
18
|
import { inputFieldShared } from '@vaadin/field-base/src/styles/input-field-shared-styles.js';
|
|
19
|
-
import {
|
|
19
|
+
import { LumoInjectionMixin } from '@vaadin/vaadin-themable-mixin/lumo-injection-mixin.js';
|
|
20
20
|
import { ThemableMixin } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
|
|
21
21
|
import { datePickerStyles } from './styles/vaadin-date-picker-core-styles.js';
|
|
22
22
|
import { DatePickerMixin } from './vaadin-date-picker-mixin.js';
|
|
@@ -145,7 +145,7 @@ import { DatePickerMixin } from './vaadin-date-picker-mixin.js';
|
|
|
145
145
|
* @mixes DatePickerMixin
|
|
146
146
|
*/
|
|
147
147
|
class DatePicker extends DatePickerMixin(
|
|
148
|
-
InputControlMixin(
|
|
148
|
+
InputControlMixin(LumoInjectionMixin(ThemableMixin(ElementMixin(PolylitMixin(LitElement))))),
|
|
149
149
|
) {
|
|
150
150
|
static get is() {
|
|
151
151
|
return 'vaadin-date-picker';
|
|
@@ -207,6 +207,7 @@ class DatePicker extends DatePickerMixin(
|
|
|
207
207
|
|
|
208
208
|
<vaadin-date-picker-overlay
|
|
209
209
|
id="overlay"
|
|
210
|
+
.owner="${this}"
|
|
210
211
|
?fullscreen="${this._fullscreen}"
|
|
211
212
|
?week-numbers="${this.showWeekNumbers}"
|
|
212
213
|
theme="${ifDefined(this._theme)}"
|
|
@@ -21,15 +21,10 @@ template.innerHTML = `
|
|
|
21
21
|
height: 100%;
|
|
22
22
|
overflow: auto;
|
|
23
23
|
outline: none;
|
|
24
|
-
-webkit-overflow-scrolling: touch;
|
|
25
24
|
overflow-x: hidden;
|
|
26
25
|
scrollbar-width: none;
|
|
27
26
|
}
|
|
28
27
|
|
|
29
|
-
#scroller.notouchscroll {
|
|
30
|
-
-webkit-overflow-scrolling: auto;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
28
|
#scroller::-webkit-scrollbar {
|
|
34
29
|
display: none;
|
|
35
30
|
}
|
|
@@ -157,17 +152,6 @@ export class InfiniteScroller extends HTMLElement {
|
|
|
157
152
|
this.$.scroller.scrollTop += (index % 1) * this.itemHeight;
|
|
158
153
|
this._scrollDisabled = false;
|
|
159
154
|
}
|
|
160
|
-
|
|
161
|
-
if (this._mayHaveMomentum) {
|
|
162
|
-
// Stop the possible iOS Safari momentum with -webkit-overflow-scrolling: auto;
|
|
163
|
-
this.$.scroller.classList.add('notouchscroll');
|
|
164
|
-
this._mayHaveMomentum = false;
|
|
165
|
-
|
|
166
|
-
setTimeout(() => {
|
|
167
|
-
// Restore -webkit-overflow-scrolling: touch; after a small delay.
|
|
168
|
-
this.$.scroller.classList.remove('notouchscroll');
|
|
169
|
-
}, 10);
|
|
170
|
-
}
|
|
171
155
|
}
|
|
172
156
|
|
|
173
157
|
/** @protected */
|
|
@@ -291,7 +275,6 @@ export class InfiniteScroller extends HTMLElement {
|
|
|
291
275
|
|
|
292
276
|
if (!this._preventScrollEvent) {
|
|
293
277
|
this.dispatchEvent(new CustomEvent('custom-scroll', { bubbles: false, composed: true }));
|
|
294
|
-
this._mayHaveMomentum = true;
|
|
295
278
|
}
|
|
296
279
|
this._preventScrollEvent = false;
|
|
297
280
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
import { html, LitElement } from 'lit';
|
|
7
7
|
import { defineCustomElement } from '@vaadin/component-base/src/define.js';
|
|
8
8
|
import { PolylitMixin } from '@vaadin/component-base/src/polylit-mixin.js';
|
|
9
|
-
import {
|
|
9
|
+
import { LumoInjectionMixin } from '@vaadin/vaadin-themable-mixin/lumo-injection-mixin.js';
|
|
10
10
|
import { ThemableMixin } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
|
|
11
11
|
import { monthCalendarStyles } from './styles/vaadin-month-calendar-core-styles.js';
|
|
12
12
|
import { MonthCalendarMixin } from './vaadin-month-calendar-mixin.js';
|
|
@@ -16,7 +16,7 @@ import { MonthCalendarMixin } from './vaadin-month-calendar-mixin.js';
|
|
|
16
16
|
* @extends HTMLElement
|
|
17
17
|
* @private
|
|
18
18
|
*/
|
|
19
|
-
class MonthCalendar extends MonthCalendarMixin(
|
|
19
|
+
class MonthCalendar extends MonthCalendarMixin(LumoInjectionMixin(ThemableMixin(PolylitMixin(LitElement)))) {
|
|
20
20
|
static get is() {
|
|
21
21
|
return 'vaadin-month-calendar';
|
|
22
22
|
}
|
|
@@ -40,7 +40,6 @@ registerStyles(
|
|
|
40
40
|
+ var(--lumo-space-s)
|
|
41
41
|
);
|
|
42
42
|
--vaadin-infinite-scroller-buffer-offset: 10%;
|
|
43
|
-
-webkit-mask-image: linear-gradient(transparent, #000 10%, #000 85%, transparent);
|
|
44
43
|
mask-image: linear-gradient(transparent, #000 10%, #000 85%, transparent);
|
|
45
44
|
position: relative;
|
|
46
45
|
}
|
|
@@ -51,7 +50,6 @@ registerStyles(
|
|
|
51
50
|
width: 57px;
|
|
52
51
|
font-size: var(--lumo-font-size-s);
|
|
53
52
|
box-shadow: inset 2px 0 4px 0 var(--lumo-shade-5pct);
|
|
54
|
-
-webkit-mask-image: linear-gradient(transparent, #000 35%, #000 65%, transparent);
|
|
55
53
|
mask-image: linear-gradient(transparent, #000 35%, #000 65%, transparent);
|
|
56
54
|
cursor: var(--lumo-clickable-cursor);
|
|
57
55
|
}
|
package/web-types.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/web-types",
|
|
3
3
|
"name": "@vaadin/date-picker",
|
|
4
|
-
"version": "25.0.0-
|
|
4
|
+
"version": "25.0.0-alpha7",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
8
8
|
"elements": [
|
|
9
9
|
{
|
|
10
10
|
"name": "vaadin-date-picker",
|
|
11
|
-
"description": "`<vaadin-date-picker>` is an input field that allows to enter a date by typing or by selecting from a calendar overlay.\n\n```html\n<vaadin-date-picker label=\"Birthday\"></vaadin-date-picker>\n```\n```js\ndatePicker.value = '2016-03-02';\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\n`<vaadin-date-picker>` provides the same set of shadow DOM parts and state attributes as `<vaadin-text-field>`.\nSee [`<vaadin-text-field>`](https://cdn.vaadin.com/vaadin-web-components/25.0.0-
|
|
11
|
+
"description": "`<vaadin-date-picker>` is an input field that allows to enter a date by typing or by selecting from a calendar overlay.\n\n```html\n<vaadin-date-picker label=\"Birthday\"></vaadin-date-picker>\n```\n```js\ndatePicker.value = '2016-03-02';\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\n`<vaadin-date-picker>` provides the same set of shadow DOM parts and state attributes as `<vaadin-text-field>`.\nSee [`<vaadin-text-field>`](https://cdn.vaadin.com/vaadin-web-components/25.0.0-alpha7/#/elements/vaadin-text-field) for the styling documentation.\n\nIn addition to `<vaadin-text-field>` parts, the following parts are available for theming:\n\nPart name | Description\n----------------------|--------------------\n`toggle-button` | Toggle button\n\nIn addition to `<vaadin-text-field>` state attributes, the following state attributes are available for theming:\n\nAttribute | Description | Part name\n-----------|--------------------------------------------------|-----------\n`opened` | Set when the date selector overlay is opened | :host\n\n### Internal components\n\nIn addition to `<vaadin-date-picker>` itself, the following internal\ncomponents are themable:\n\n- `<vaadin-date-picker-overlay>` - has the same API as [`<vaadin-overlay>`](https://cdn.vaadin.com/vaadin-web-components/25.0.0-alpha7/#/elements/vaadin-overlay).\n- `<vaadin-date-picker-overlay-content>`\n- `<vaadin-date-picker-month-scroller>`\n- `<vaadin-date-picker-year-scroller>`\n- `<vaadin-date-picker-year>`\n- `<vaadin-month-calendar>`\n- [`<vaadin-input-container>`](https://cdn.vaadin.com/vaadin-web-components/25.0.0-alpha7/#/elements/vaadin-input-container) - an internal element wrapping the input.\n\nIn order to style the overlay content, use `<vaadin-date-picker-overlay-content>` shadow DOM parts:\n\nPart name | Description\n----------------------|--------------------\n`years-toggle-button` | Fullscreen mode years scroller toggle\n`toolbar` | Toolbar with slotted buttons\n\nThe following state attributes are available on the `<vaadin-date-picker-overlay-content>` element:\n\nAttribute | Description\n----------------|-------------------------------------------------\n`desktop` | Set when the overlay content is in desktop mode\n`fullscreen` | Set when the overlay content is in fullscreen mode\n`years-visible` | Set when the year scroller is visible in fullscreen mode\n\nIn order to style the month calendar, use `<vaadin-month-calendar>` shadow DOM parts:\n\nPart name | Description\n----------------------|--------------------\n`month-header` | Month title\n`weekdays` | Weekday container\n`weekday` | Weekday element\n`week-numbers` | Week numbers container\n`week-number` | Week number element\n`date` | Date element\n`disabled` | Disabled date element\n`focused` | Focused date element\n`selected` | Selected date element\n`today` | Date element corresponding to the current day\n`past` | Date element corresponding to the date in the past\n`future` | Date element corresponding to the date in the future\n\nIn order to style year scroller elements, use `<vaadin-date-picker-year>` shadow DOM parts:\n\nPart name | Description\n----------------------|--------------------\n`year-number` | Year number\n`year-separator` | Year separator\n\nNote: the `theme` attribute value set on `<vaadin-date-picker>` is\npropagated to the internal components listed above.\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": "disabled",
|
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/date-picker",
|
|
4
|
-
"version": "25.0.0-
|
|
4
|
+
"version": "25.0.0-alpha7",
|
|
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-date-picker",
|
|
19
|
-
"description": "`<vaadin-date-picker>` is an input field that allows to enter a date by typing or by selecting from a calendar overlay.\n\n```html\n<vaadin-date-picker label=\"Birthday\"></vaadin-date-picker>\n```\n```js\ndatePicker.value = '2016-03-02';\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\n`<vaadin-date-picker>` provides the same set of shadow DOM parts and state attributes as `<vaadin-text-field>`.\nSee [`<vaadin-text-field>`](https://cdn.vaadin.com/vaadin-web-components/25.0.0-
|
|
19
|
+
"description": "`<vaadin-date-picker>` is an input field that allows to enter a date by typing or by selecting from a calendar overlay.\n\n```html\n<vaadin-date-picker label=\"Birthday\"></vaadin-date-picker>\n```\n```js\ndatePicker.value = '2016-03-02';\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\n`<vaadin-date-picker>` provides the same set of shadow DOM parts and state attributes as `<vaadin-text-field>`.\nSee [`<vaadin-text-field>`](https://cdn.vaadin.com/vaadin-web-components/25.0.0-alpha7/#/elements/vaadin-text-field) for the styling documentation.\n\nIn addition to `<vaadin-text-field>` parts, the following parts are available for theming:\n\nPart name | Description\n----------------------|--------------------\n`toggle-button` | Toggle button\n\nIn addition to `<vaadin-text-field>` state attributes, the following state attributes are available for theming:\n\nAttribute | Description | Part name\n-----------|--------------------------------------------------|-----------\n`opened` | Set when the date selector overlay is opened | :host\n\n### Internal components\n\nIn addition to `<vaadin-date-picker>` itself, the following internal\ncomponents are themable:\n\n- `<vaadin-date-picker-overlay>` - has the same API as [`<vaadin-overlay>`](https://cdn.vaadin.com/vaadin-web-components/25.0.0-alpha7/#/elements/vaadin-overlay).\n- `<vaadin-date-picker-overlay-content>`\n- `<vaadin-date-picker-month-scroller>`\n- `<vaadin-date-picker-year-scroller>`\n- `<vaadin-date-picker-year>`\n- `<vaadin-month-calendar>`\n- [`<vaadin-input-container>`](https://cdn.vaadin.com/vaadin-web-components/25.0.0-alpha7/#/elements/vaadin-input-container) - an internal element wrapping the input.\n\nIn order to style the overlay content, use `<vaadin-date-picker-overlay-content>` shadow DOM parts:\n\nPart name | Description\n----------------------|--------------------\n`years-toggle-button` | Fullscreen mode years scroller toggle\n`toolbar` | Toolbar with slotted buttons\n\nThe following state attributes are available on the `<vaadin-date-picker-overlay-content>` element:\n\nAttribute | Description\n----------------|-------------------------------------------------\n`desktop` | Set when the overlay content is in desktop mode\n`fullscreen` | Set when the overlay content is in fullscreen mode\n`years-visible` | Set when the year scroller is visible in fullscreen mode\n\nIn order to style the month calendar, use `<vaadin-month-calendar>` shadow DOM parts:\n\nPart name | Description\n----------------------|--------------------\n`month-header` | Month title\n`weekdays` | Weekday container\n`weekday` | Weekday element\n`week-numbers` | Week numbers container\n`week-number` | Week number element\n`date` | Date element\n`disabled` | Disabled date element\n`focused` | Focused date element\n`selected` | Selected date element\n`today` | Date element corresponding to the current day\n`past` | Date element corresponding to the date in the past\n`future` | Date element corresponding to the date in the future\n\nIn order to style year scroller elements, use `<vaadin-date-picker-year>` shadow DOM parts:\n\nPart name | Description\n----------------------|--------------------\n`year-number` | Year number\n`year-separator` | Year separator\n\nNote: the `theme` attribute value set on `<vaadin-date-picker>` is\npropagated to the internal components listed above.\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
|
{
|