@vaadin/date-picker 23.0.6 → 23.0.7

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": "23.0.6",
3
+ "version": "23.0.7",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -34,21 +34,21 @@
34
34
  "dependencies": {
35
35
  "@open-wc/dedupe-mixin": "^1.3.0",
36
36
  "@polymer/polymer": "^3.2.0",
37
- "@vaadin/button": "^23.0.6",
38
- "@vaadin/component-base": "^23.0.6",
39
- "@vaadin/field-base": "^23.0.6",
40
- "@vaadin/input-container": "^23.0.6",
41
- "@vaadin/vaadin-lumo-styles": "^23.0.6",
42
- "@vaadin/vaadin-material-styles": "^23.0.6",
43
- "@vaadin/vaadin-overlay": "^23.0.6",
44
- "@vaadin/vaadin-themable-mixin": "^23.0.6"
37
+ "@vaadin/button": "^23.0.7",
38
+ "@vaadin/component-base": "^23.0.7",
39
+ "@vaadin/field-base": "^23.0.7",
40
+ "@vaadin/input-container": "^23.0.7",
41
+ "@vaadin/vaadin-lumo-styles": "^23.0.7",
42
+ "@vaadin/vaadin-material-styles": "^23.0.7",
43
+ "@vaadin/vaadin-overlay": "^23.0.7",
44
+ "@vaadin/vaadin-themable-mixin": "^23.0.7"
45
45
  },
46
46
  "devDependencies": {
47
47
  "@esm-bundle/chai": "^4.3.4",
48
- "@vaadin/dialog": "^23.0.6",
49
- "@vaadin/polymer-legacy-adapter": "^23.0.6",
48
+ "@vaadin/dialog": "^23.0.7",
49
+ "@vaadin/polymer-legacy-adapter": "^23.0.7",
50
50
  "@vaadin/testing-helpers": "^0.3.2",
51
51
  "sinon": "^9.2.0"
52
52
  },
53
- "gitHead": "82ca8522e24a63343fb28bcb4c686e55d25c8858"
53
+ "gitHead": "005c2d85db8f50cd3b239dd89ac467add6a71049"
54
54
  }
@@ -113,6 +113,7 @@ registerStyles('vaadin-date-picker', [inputFieldShared, datePickerStyles], { mod
113
113
  * @mixes ElementMixin
114
114
  * @mixes ThemableMixin
115
115
  * @mixes InputControlMixin
116
+ * @mixes DatePickerMixin
116
117
  */
117
118
  class DatePicker extends DatePickerMixin(InputControlMixin(ThemableMixin(ElementMixin(PolymerElement)))) {
118
119
  static get is() {
@@ -23,18 +23,8 @@ class MonthCalendar extends FocusMixin(ThemableMixin(PolymerElement)) {
23
23
  }
24
24
 
25
25
  #monthGrid {
26
- display: block;
27
- }
28
-
29
- #monthGrid thead,
30
- #monthGrid tbody {
31
- display: block;
32
26
  width: 100%;
33
- }
34
-
35
- [part='weekdays'] {
36
- display: flex;
37
- flex-grow: 1;
27
+ border-collapse: collapse;
38
28
  }
39
29
 
40
30
  #days-container tr,
@@ -53,9 +43,7 @@ class MonthCalendar extends FocusMixin(ThemableMixin(PolymerElement)) {
53
43
 
54
44
  [part='weekday'],
55
45
  [part='date'] {
56
- display: block;
57
- /* Would use calc(100% / 7) but it doesn't work nice on IE */
58
- width: 14.285714286%;
46
+ width: calc(100% / 7);
59
47
  padding: 0;
60
48
  font-weight: normal;
61
49
  }
@@ -64,6 +52,12 @@ class MonthCalendar extends FocusMixin(ThemableMixin(PolymerElement)) {
64
52
  [part='week-number'] {
65
53
  width: 12.5%;
66
54
  flex-shrink: 0;
55
+ padding: 0;
56
+ }
57
+
58
+ :host([week-numbers]) [part='weekday']:not(:empty),
59
+ :host([week-numbers]) [part='date'] {
60
+ width: 12.5%;
67
61
  }
68
62
  </style>
69
63
 
@@ -68,6 +68,11 @@ registerStyles(
68
68
  cursor: var(--lumo-clickable-cursor);
69
69
  }
70
70
 
71
+ :host([week-numbers]) [part='weekday']:not(:empty),
72
+ :host([week-numbers]) [part='date'] {
73
+ width: calc((100% - var(--lumo-size-xs)) / 7);
74
+ }
75
+
71
76
  /* Today date */
72
77
 
73
78
  [part='date'][today] {