@vaadin/date-time-picker 23.1.7 → 23.1.9
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 +10 -10
- package/src/vaadin-date-time-picker.js +14 -10
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vaadin/date-time-picker",
|
|
3
|
-
"version": "23.1.
|
|
3
|
+
"version": "23.1.9",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -34,19 +34,19 @@
|
|
|
34
34
|
],
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@polymer/polymer": "^3.0.0",
|
|
37
|
-
"@vaadin/component-base": "~23.1.
|
|
38
|
-
"@vaadin/custom-field": "~23.1.
|
|
39
|
-
"@vaadin/date-picker": "~23.1.
|
|
40
|
-
"@vaadin/field-base": "~23.1.
|
|
41
|
-
"@vaadin/time-picker": "~23.1.
|
|
42
|
-
"@vaadin/vaadin-lumo-styles": "~23.1.
|
|
43
|
-
"@vaadin/vaadin-material-styles": "~23.1.
|
|
44
|
-
"@vaadin/vaadin-themable-mixin": "~23.1.
|
|
37
|
+
"@vaadin/component-base": "~23.1.9",
|
|
38
|
+
"@vaadin/custom-field": "~23.1.9",
|
|
39
|
+
"@vaadin/date-picker": "~23.1.9",
|
|
40
|
+
"@vaadin/field-base": "~23.1.9",
|
|
41
|
+
"@vaadin/time-picker": "~23.1.9",
|
|
42
|
+
"@vaadin/vaadin-lumo-styles": "~23.1.9",
|
|
43
|
+
"@vaadin/vaadin-material-styles": "~23.1.9",
|
|
44
|
+
"@vaadin/vaadin-themable-mixin": "~23.1.9"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@esm-bundle/chai": "^4.3.4",
|
|
48
48
|
"@vaadin/testing-helpers": "^0.3.2",
|
|
49
49
|
"sinon": "^13.0.2"
|
|
50
50
|
},
|
|
51
|
-
"gitHead": "
|
|
51
|
+
"gitHead": "ad8461e09f049c3f04f50278d38d0f5a98604904"
|
|
52
52
|
}
|
|
@@ -121,16 +121,12 @@ class DateTimePicker extends FieldMixin(
|
|
|
121
121
|
--vaadin-field-default-width: 12em;
|
|
122
122
|
}
|
|
123
123
|
|
|
124
|
-
[part='date'],
|
|
125
124
|
.slots ::slotted([slot='date-picker']) {
|
|
126
|
-
pointer-events: all;
|
|
127
125
|
min-width: 0;
|
|
128
126
|
flex: 1 1 auto;
|
|
129
127
|
}
|
|
130
128
|
|
|
131
|
-
[part='time'],
|
|
132
129
|
.slots ::slotted([slot='time-picker']) {
|
|
133
|
-
pointer-events: all;
|
|
134
130
|
min-width: 0;
|
|
135
131
|
flex: 1 1.65 auto;
|
|
136
132
|
}
|
|
@@ -413,12 +409,6 @@ class DateTimePicker extends FieldMixin(
|
|
|
413
409
|
ready() {
|
|
414
410
|
super.ready();
|
|
415
411
|
|
|
416
|
-
this.addEventListener('focusout', (e) => {
|
|
417
|
-
if (e.relatedTarget !== this.__datePicker.$.overlay) {
|
|
418
|
-
this.validate();
|
|
419
|
-
}
|
|
420
|
-
});
|
|
421
|
-
|
|
422
412
|
this.__datePicker = this._getDirectSlotChild('date-picker');
|
|
423
413
|
this.__timePicker = this._getDirectSlotChild('time-picker');
|
|
424
414
|
|
|
@@ -440,6 +430,20 @@ class DateTimePicker extends FieldMixin(
|
|
|
440
430
|
this.__datePicker.focus();
|
|
441
431
|
}
|
|
442
432
|
|
|
433
|
+
/**
|
|
434
|
+
* Override method inherited from `FocusMixin` to validate on blur.
|
|
435
|
+
* @param {boolean} focused
|
|
436
|
+
* @protected
|
|
437
|
+
* @override
|
|
438
|
+
*/
|
|
439
|
+
_setFocused(focused) {
|
|
440
|
+
super._setFocused(focused);
|
|
441
|
+
|
|
442
|
+
if (!focused) {
|
|
443
|
+
this.validate();
|
|
444
|
+
}
|
|
445
|
+
}
|
|
446
|
+
|
|
443
447
|
/**
|
|
444
448
|
* Override method inherited from `FocusMixin` to not remove focused
|
|
445
449
|
* state when focus moves between pickers or to the overlay.
|