@vaadin/date-picker 22.0.19 → 22.0.21

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": "22.0.19",
3
+ "version": "22.0.21",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -35,21 +35,21 @@
35
35
  "@polymer/iron-a11y-announcer": "^3.0.0",
36
36
  "@polymer/iron-media-query": "^3.0.0",
37
37
  "@polymer/polymer": "^3.2.0",
38
- "@vaadin/button": "^22.0.19",
39
- "@vaadin/component-base": "^22.0.19",
40
- "@vaadin/field-base": "^22.0.19",
41
- "@vaadin/input-container": "^22.0.19",
42
- "@vaadin/vaadin-lumo-styles": "^22.0.19",
43
- "@vaadin/vaadin-material-styles": "^22.0.19",
44
- "@vaadin/vaadin-overlay": "^22.0.19",
45
- "@vaadin/vaadin-themable-mixin": "^22.0.19"
38
+ "@vaadin/button": "^22.0.21",
39
+ "@vaadin/component-base": "^22.0.21",
40
+ "@vaadin/field-base": "^22.0.21",
41
+ "@vaadin/input-container": "^22.0.21",
42
+ "@vaadin/vaadin-lumo-styles": "^22.0.21",
43
+ "@vaadin/vaadin-material-styles": "^22.0.21",
44
+ "@vaadin/vaadin-overlay": "^22.0.21",
45
+ "@vaadin/vaadin-themable-mixin": "^22.0.21"
46
46
  },
47
47
  "devDependencies": {
48
48
  "@esm-bundle/chai": "^4.3.4",
49
- "@vaadin/dialog": "^22.0.19",
50
- "@vaadin/polymer-legacy-adapter": "^22.0.19",
49
+ "@vaadin/dialog": "^22.0.21",
50
+ "@vaadin/polymer-legacy-adapter": "^22.0.21",
51
51
  "@vaadin/testing-helpers": "^0.3.2",
52
52
  "sinon": "^9.2.0"
53
53
  },
54
- "gitHead": "6995c629cf6314ccbfebfcbc819bcfc47e1745ce"
54
+ "gitHead": "f0a522c6e48a10c4850abc7be8bb2fbe3fdcc8f3"
55
55
  }
@@ -976,7 +976,7 @@ export const DatePickerMixin = (subclass) =>
976
976
 
977
977
  /** @private */
978
978
  _userInputValueChanged() {
979
- if (this.opened && this._inputValue) {
979
+ if (this._inputValue) {
980
980
  const parsedDate = this._getParsedDate();
981
981
 
982
982
  if (this._isValidDate(parsedDate)) {
@@ -681,10 +681,6 @@ class DatePickerOverlayContent extends ThemableMixin(DirMixin(GestureEventListen
681
681
  return months - date2.getMonth() + date1.getMonth();
682
682
  }
683
683
 
684
- _differenceInYears(date1, date2) {
685
- return this._differenceInMonths(date1, date2) / 12;
686
- }
687
-
688
684
  _clear() {
689
685
  this.selectedDate = '';
690
686
  }
@@ -9,13 +9,11 @@ registerStyles(
9
9
  'vaadin-date-picker-overlay-content',
10
10
  css`
11
11
  :host {
12
+ background: var(--material-background-color);
12
13
  font-family: var(--material-font-family);
13
14
  font-size: var(--material-body-font-size);
14
15
  -webkit-text-size-adjust: 100%;
15
16
  line-height: 1.4;
16
-
17
- /* FIXME(platosha): fix the core styles and remove this override. */
18
- background: transparent;
19
17
  }
20
18
 
21
19
  :host([fullscreen]) {
@@ -132,11 +130,6 @@ registerStyles(
132
130
  background: var(--material-background-color);
133
131
  }
134
132
 
135
- :host([years-visible]) [part='years']::after {
136
- top: calc(20px + 16px);
137
- height: calc(100% - 20px - 16px);
138
- }
139
-
140
133
  [part='year-number'] {
141
134
  font-size: var(--material-small-font-size);
142
135
  line-height: 10px; /* NOTE(platosha): chosen to align years to months */