You're Invited: Meet the Socket team at BSidesSF and RSAC - April 27 - May 1.RSVP
Socket
Sign inDemoInstall
Socket

@vaadin/component-base

Package Overview
Dependencies
Maintainers
12
Versions
451
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vaadin/component-base - npm Package Compare versions

Comparing version

to
24.8.0-alpha9

8

package.json
{
"name": "@vaadin/component-base",
"version": "24.8.0-alpha8",
"version": "24.8.0-alpha9",
"publishConfig": {

@@ -41,8 +41,8 @@ "access": "public"

"devDependencies": {
"@vaadin/chai-plugins": "24.8.0-alpha8",
"@vaadin/test-runner-commands": "24.8.0-alpha8",
"@vaadin/chai-plugins": "24.8.0-alpha9",
"@vaadin/test-runner-commands": "24.8.0-alpha9",
"@vaadin/testing-helpers": "^1.1.0",
"sinon": "^18.0.0"
},
"gitHead": "d914bb8f669d7e3d1981feb8eac05688ab9870b4"
"gitHead": "4de3809275ddfd733b0d13fd02af8faf73eb6770"
}

@@ -16,3 +16,3 @@ /**

export function defineCustomElement(CustomElement, version = '24.8.0-alpha8') {
export function defineCustomElement(CustomElement, version = '24.8.0-alpha9') {
Object.defineProperty(CustomElement, 'version', {

@@ -19,0 +19,0 @@ get() {

@@ -93,2 +93,5 @@ /**

set i18n(value) {
if (value === this.__customI18n) {
return;
}
this.__customI18n = value;

@@ -95,0 +98,0 @@ this.__effectiveI18n = deepMerge({}, defaultI18n, this.__customI18n);

@@ -181,2 +181,12 @@ /**

hostConnected() {
// Restore scroll position, which is reset when host is removed from DOM,
// since virtualizer doesn't re-render when adding it to the DOM again.
// If the scroll target isn't visible and its `offsetParent` is `null`, wait
// for the ResizeObserver to handle this case (hiding -> moving -> showing).
if (this.scrollTarget.offsetParent && this.scrollTarget.scrollTop !== this._scrollPosition) {
this.scrollTarget.scrollTop = this._scrollPosition;
}
}
update(startIndex = 0, endIndex = this.size - 1) {

@@ -183,0 +193,0 @@ const updatedElements = [];

@@ -83,2 +83,11 @@ import { IronListAdapter } from './virtualizer-iron-list-adapter.js';

}
/**
* Notifies the virtualizer about its host element connected to the DOM.
*
* @method hostConnected
*/
hostConnected() {
this.__adapter.hostConnected();
}
}