Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@vaadin/date-time-picker

Package Overview
Dependencies
Maintainers
19
Versions
405
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vaadin/date-time-picker - npm Package Compare versions

Comparing version 23.0.0-alpha4 to 23.0.0-alpha5

20

package.json
{
"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) {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc