@vaadin/date-time-picker
Advanced tools
Comparing version 23.0.0-alpha4 to 23.0.0-alpha5
{ | ||
"name": "@vaadin/date-time-picker", | ||
"version": "23.0.0-alpha4", | ||
"version": "23.0.0-alpha5", | ||
"publishConfig": { | ||
@@ -37,10 +37,10 @@ "access": "public" | ||
"@polymer/polymer": "^3.0.0", | ||
"@vaadin/component-base": "23.0.0-alpha4", | ||
"@vaadin/custom-field": "23.0.0-alpha4", | ||
"@vaadin/date-picker": "23.0.0-alpha4", | ||
"@vaadin/field-base": "23.0.0-alpha4", | ||
"@vaadin/time-picker": "23.0.0-alpha4", | ||
"@vaadin/vaadin-lumo-styles": "23.0.0-alpha4", | ||
"@vaadin/vaadin-material-styles": "23.0.0-alpha4", | ||
"@vaadin/vaadin-themable-mixin": "23.0.0-alpha4" | ||
"@vaadin/component-base": "23.0.0-alpha5", | ||
"@vaadin/custom-field": "23.0.0-alpha5", | ||
"@vaadin/date-picker": "23.0.0-alpha5", | ||
"@vaadin/field-base": "23.0.0-alpha5", | ||
"@vaadin/time-picker": "23.0.0-alpha5", | ||
"@vaadin/vaadin-lumo-styles": "23.0.0-alpha5", | ||
"@vaadin/vaadin-material-styles": "23.0.0-alpha5", | ||
"@vaadin/vaadin-themable-mixin": "23.0.0-alpha5" | ||
}, | ||
@@ -52,3 +52,3 @@ "devDependencies": { | ||
}, | ||
"gitHead": "81e2deee5147bb7c1f4884760f4598613306f1fb" | ||
"gitHead": "74f9294964eb8552d96578c14af6ad214f5257bc" | ||
} |
@@ -8,2 +8,3 @@ /** | ||
import { ElementMixin } from '@vaadin/component-base/src/element-mixin.js'; | ||
import { FocusMixin } from '@vaadin/component-base/src/focus-mixin.js'; | ||
import { SlotMixin } from '@vaadin/component-base/src/slot-mixin.js'; | ||
@@ -73,2 +74,4 @@ import { DatePickerI18n } from '@vaadin/date-picker/src/vaadin-date-picker.js'; | ||
* `disabled` | Set when the element is disabled | :host | ||
* `focused` | Set when the element is focused | :host | ||
* `focus-ring` | Set when the element is keyboard focused | :host | ||
* `readonly` | Set when the element is readonly | :host | ||
@@ -98,3 +101,5 @@ * `invalid` | Set when the element is invalid | :host | ||
*/ | ||
declare class DateTimePicker extends FieldMixin(SlotMixin(DisabledMixin(ThemableMixin(ElementMixin(HTMLElement))))) { | ||
declare class DateTimePicker extends FieldMixin( | ||
SlotMixin(DisabledMixin(FocusMixin(ThemableMixin(ElementMixin(HTMLElement))))) | ||
) { | ||
/** | ||
@@ -101,0 +106,0 @@ * The name of the control, which is submitted with the form data. |
@@ -12,2 +12,3 @@ /** | ||
import { ElementMixin } from '@vaadin/component-base/src/element-mixin.js'; | ||
import { FocusMixin } from '@vaadin/component-base/src/focus-mixin.js'; | ||
import { SlotMixin } from '@vaadin/component-base/src/slot-mixin.js'; | ||
@@ -75,2 +76,4 @@ import { dateEquals } from '@vaadin/date-picker/src/vaadin-date-picker-helper.js'; | ||
* `disabled` | Set when the element is disabled | :host | ||
* `focused` | Set when the element is focused | :host | ||
* `focus-ring` | Set when the element is keyboard focused | :host | ||
* `readonly` | Set when the element is readonly | :host | ||
@@ -103,2 +106,3 @@ * `invalid` | Set when the element is invalid | :host | ||
* @mixes ThemableMixin | ||
* @mixes FocusMixin | ||
* @mixes DisabledMixin | ||
@@ -108,3 +112,5 @@ * @mixes SlotMixin | ||
*/ | ||
class DateTimePicker extends FieldMixin(SlotMixin(DisabledMixin(ThemableMixin(ElementMixin(PolymerElement))))) { | ||
class DateTimePicker extends FieldMixin( | ||
SlotMixin(DisabledMixin(FocusMixin(ThemableMixin(ElementMixin(PolymerElement))))) | ||
) { | ||
static get template() { | ||
@@ -441,2 +447,24 @@ return html` | ||
/** | ||
* Override method inherited from `FocusMixin` to not remove focused | ||
* state when focus moves between pickers or to the overlay. | ||
* @param {FocusEvent} event | ||
* @return {boolean} | ||
* @protected | ||
* @override | ||
*/ | ||
_shouldRemoveFocus(event) { | ||
const target = event.relatedTarget; | ||
if ( | ||
this.__datePicker.contains(target) || | ||
this.__timePicker.contains(target) || | ||
target === this.__datePicker.$.overlay | ||
) { | ||
return false; | ||
} | ||
return true; | ||
} | ||
/** @private */ | ||
@@ -443,0 +471,0 @@ __syncI18n(target, source, props) { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
58239
1238
+ Added@vaadin/button@23.0.0-alpha5(transitive)
+ Added@vaadin/combo-box@23.0.0-alpha5(transitive)
+ Added@vaadin/component-base@23.0.0-alpha5(transitive)
+ Added@vaadin/custom-field@23.0.0-alpha5(transitive)
+ Added@vaadin/date-picker@23.0.0-alpha5(transitive)
+ Added@vaadin/field-base@23.0.0-alpha5(transitive)
+ Added@vaadin/icon@23.0.0-alpha5(transitive)
+ Added@vaadin/input-container@23.0.0-alpha5(transitive)
+ Added@vaadin/item@23.0.0-alpha5(transitive)
+ Added@vaadin/time-picker@23.0.0-alpha5(transitive)
+ Added@vaadin/vaadin-lumo-styles@23.0.0-alpha5(transitive)
+ Added@vaadin/vaadin-material-styles@23.0.0-alpha5(transitive)
+ Added@vaadin/vaadin-overlay@23.0.0-alpha5(transitive)
+ Added@vaadin/vaadin-themable-mixin@23.0.0-alpha5(transitive)
- Removed@vaadin/button@23.0.0-alpha4(transitive)
- Removed@vaadin/combo-box@23.0.0-alpha4(transitive)
- Removed@vaadin/component-base@23.0.0-alpha4(transitive)
- Removed@vaadin/custom-field@23.0.0-alpha4(transitive)
- Removed@vaadin/date-picker@23.0.0-alpha4(transitive)
- Removed@vaadin/field-base@23.0.0-alpha4(transitive)
- Removed@vaadin/icon@23.0.0-alpha4(transitive)
- Removed@vaadin/input-container@23.0.0-alpha4(transitive)
- Removed@vaadin/item@23.0.0-alpha4(transitive)
- Removed@vaadin/time-picker@23.0.0-alpha4(transitive)
- Removed@vaadin/vaadin-lumo-styles@23.0.0-alpha4(transitive)
- Removed@vaadin/vaadin-material-styles@23.0.0-alpha4(transitive)
- Removed@vaadin/vaadin-overlay@23.0.0-alpha4(transitive)
- Removed@vaadin/vaadin-themable-mixin@23.0.0-alpha4(transitive)