Socket
Socket
Sign inDemoInstall

@vaadin/scroller

Package Overview
Dependencies
Maintainers
19
Versions
364
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vaadin/scroller - npm Package Compare versions

Comparing version 23.0.0-alpha1 to 23.0.0-alpha2

theme/lumo/vaadin-scroller-styles.js

12

package.json
{
"name": "@vaadin/scroller",
"version": "23.0.0-alpha1",
"version": "23.0.0-alpha2",
"publishConfig": {

@@ -36,6 +36,6 @@ "access": "public"

"@polymer/polymer": "^3.0.0",
"@vaadin/component-base": "23.0.0-alpha1",
"@vaadin/vaadin-lumo-styles": "23.0.0-alpha1",
"@vaadin/vaadin-material-styles": "23.0.0-alpha1",
"@vaadin/vaadin-themable-mixin": "23.0.0-alpha1"
"@vaadin/component-base": "23.0.0-alpha2",
"@vaadin/vaadin-lumo-styles": "23.0.0-alpha2",
"@vaadin/vaadin-material-styles": "23.0.0-alpha2",
"@vaadin/vaadin-themable-mixin": "23.0.0-alpha2"
},

@@ -46,3 +46,3 @@ "devDependencies": {

},
"gitHead": "fbcb07328fdf88260e3b461088d207426b21c710"
"gitHead": "070f586dead02ca41b66717820c647f48bf1665f"
}

@@ -7,2 +7,3 @@ /**

import { ElementMixin } from '@vaadin/component-base/src/element-mixin.js';
import { FocusMixin } from '@vaadin/component-base/src/focus-mixin.js';
import { ThemableMixin } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';

@@ -18,4 +19,10 @@

* ```
* The following attributes are exposed for styling:
*
* Attribute | Description
* -------------| -----------
* `focus-ring` | Set when the element is focused using the keyboard.
* `focused` | Set when the element is focused.
*/
declare class Scroller extends ThemableMixin(ElementMixin(HTMLElement)) {
declare class Scroller extends FocusMixin(ThemableMixin(ElementMixin(HTMLElement))) {
/**

@@ -26,2 +33,7 @@ * This property indicates the scroll direction. Supported values are `vertical`, `horizontal`, `none`.

scrollDirection: 'horizontal' | 'vertical' | 'none' | undefined;
/**
* Indicates whether the element can be focused and where it participates in sequential keyboard navigation.
*/
tabindex: number;
}

@@ -28,0 +40,0 @@

@@ -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 { ThemableMixin } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';

@@ -19,8 +20,15 @@

* ```
* The following attributes are exposed for styling:
*
* Attribute | Description
* -------------| -----------
* `focus-ring` | Set when the element is focused using the keyboard.
* `focused` | Set when the element is focused.
*
* @extends HTMLElement
* @mixes ThemableMixin
* @mixes ElementMixin
* @mixes FocusMixin
*/
class Scroller extends ElementMixin(ThemableMixin(PolymerElement)) {
class Scroller extends FocusMixin(ElementMixin(ThemableMixin(PolymerElement))) {
static get template() {

@@ -68,5 +76,26 @@ return html`

reflectToAttribute: true
},
/**
* Indicates whether the element can be focused and where it participates in sequential keyboard navigation.
* @protected
*/
tabindex: {
type: Number,
value: 0,
reflectToAttribute: true
}
};
}
/**
* Override method inherited from `FocusMixin` to mark the scroller as focused
* only when the host is focused.
* @param {Event} event
* @return {boolean}
* @protected
*/
_shouldSetFocus(event) {
return event.target === this;
}
}

@@ -73,0 +102,0 @@

@@ -0,1 +1,2 @@

import './vaadin-scroller-styles.js';
import '../../src/vaadin-scroller.js';

@@ -0,1 +1,2 @@

import './vaadin-scroller-styles.js';
import '../../src/vaadin-scroller.js';
SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc