@vaadin/date-time-picker 23.1.6 → 23.1.8
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 -6
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.8",
|
|
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": "
|
|
38
|
-
"@vaadin/custom-field": "
|
|
39
|
-
"@vaadin/date-picker": "
|
|
40
|
-
"@vaadin/field-base": "
|
|
41
|
-
"@vaadin/time-picker": "
|
|
42
|
-
"@vaadin/vaadin-lumo-styles": "
|
|
43
|
-
"@vaadin/vaadin-material-styles": "
|
|
44
|
-
"@vaadin/vaadin-themable-mixin": "
|
|
37
|
+
"@vaadin/component-base": "~23.1.8",
|
|
38
|
+
"@vaadin/custom-field": "~23.1.8",
|
|
39
|
+
"@vaadin/date-picker": "~23.1.8",
|
|
40
|
+
"@vaadin/field-base": "~23.1.8",
|
|
41
|
+
"@vaadin/time-picker": "~23.1.8",
|
|
42
|
+
"@vaadin/vaadin-lumo-styles": "~23.1.8",
|
|
43
|
+
"@vaadin/vaadin-material-styles": "~23.1.8",
|
|
44
|
+
"@vaadin/vaadin-themable-mixin": "~23.1.8"
|
|
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": "297e4e51743751bed97f5400e661529a7d550870"
|
|
52
52
|
}
|
|
@@ -413,12 +413,6 @@ class DateTimePicker extends FieldMixin(
|
|
|
413
413
|
ready() {
|
|
414
414
|
super.ready();
|
|
415
415
|
|
|
416
|
-
this.addEventListener('focusout', (e) => {
|
|
417
|
-
if (e.relatedTarget !== this.__datePicker.$.overlay) {
|
|
418
|
-
this.validate();
|
|
419
|
-
}
|
|
420
|
-
});
|
|
421
|
-
|
|
422
416
|
this.__datePicker = this._getDirectSlotChild('date-picker');
|
|
423
417
|
this.__timePicker = this._getDirectSlotChild('time-picker');
|
|
424
418
|
|
|
@@ -440,6 +434,20 @@ class DateTimePicker extends FieldMixin(
|
|
|
440
434
|
this.__datePicker.focus();
|
|
441
435
|
}
|
|
442
436
|
|
|
437
|
+
/**
|
|
438
|
+
* Override method inherited from `FocusMixin` to validate on blur.
|
|
439
|
+
* @param {boolean} focused
|
|
440
|
+
* @protected
|
|
441
|
+
* @override
|
|
442
|
+
*/
|
|
443
|
+
_setFocused(focused) {
|
|
444
|
+
super._setFocused(focused);
|
|
445
|
+
|
|
446
|
+
if (!focused) {
|
|
447
|
+
this.validate();
|
|
448
|
+
}
|
|
449
|
+
}
|
|
450
|
+
|
|
443
451
|
/**
|
|
444
452
|
* Override method inherited from `FocusMixin` to not remove focused
|
|
445
453
|
* state when focus moves between pickers or to the overlay.
|