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

@vaadin/vaadin-list-mixin

Package Overview
Dependencies
Maintainers
14
Versions
254
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vaadin/vaadin-list-mixin - npm Package Compare versions

Comparing version 23.1.0-alpha3 to 23.1.0-alpha4

6

package.json
{
"name": "@vaadin/vaadin-list-mixin",
"version": "23.1.0-alpha3",
"version": "23.1.0-alpha4",
"publishConfig": {

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

"@polymer/polymer": "^3.0.0",
"@vaadin/component-base": "23.1.0-alpha3"
"@vaadin/component-base": "23.1.0-alpha4"
},

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

},
"gitHead": "8c9e64e8dfa158dd52a9bf6da351ff038c88ca85"
"gitHead": "aacdb7fe09811894751f0378ff7fb66071892c71"
}

@@ -25,3 +25,3 @@ /**

_hasVaadinListMixin: {
value: true
value: true,
},

@@ -36,3 +36,3 @@

reflectToAttribute: true,
notify: true
notify: true,
},

@@ -49,3 +49,3 @@

reflectToAttribute: true,
value: ''
value: '',
},

@@ -68,3 +68,3 @@

readOnly: true,
notify: true
notify: true,
},

@@ -78,4 +78,4 @@

type: String,
value: ''
}
value: '',
},
};

@@ -105,3 +105,7 @@ }

this.items.forEach((item) => {
orientation ? item.setAttribute('orientation', orientation) : item.removeAttribute('orientation');
if (orientation) {
item.setAttribute('orientation', orientation);
} else {
item.removeAttribute('orientation');
}
});

@@ -175,3 +179,3 @@

.toLowerCase()
.indexOf(this._searchBuf) === 0
.indexOf(this._searchBuf) === 0,
)

@@ -250,3 +254,3 @@ ) {

const totalItems = this.items.length;
for (let i = 0; typeof idx == 'number' && i < totalItems; i++, idx += increment || 1) {
for (let i = 0; typeof idx === 'number' && i < totalItems; i++, idx += increment || 1) {
if (idx < 0) {

@@ -313,3 +317,5 @@ idx = totalItems - 1;

// In initialization (e.g vaadin-select) observer might not been run yet.
this._observer && this._observer.flush();
if (this._observer) {
this._observer.flush();
}
const firstItem = this.querySelector('[tabindex="0"]') || (this.items ? this.items[0] : null);

@@ -316,0 +322,0 @@ this._focusItem(firstItem);

@@ -13,3 +13,3 @@ /**

export declare function MultiSelectListMixin<T extends Constructor<HTMLElement>>(
base: T
base: T,
): T & Constructor<ListMixinClass> & Constructor<ListMixinClass>;

@@ -16,0 +16,0 @@

@@ -25,3 +25,3 @@ /**

reflectToAttribute: true,
observer: '_multipleChanged'
observer: '_multipleChanged',
},

@@ -39,4 +39,4 @@

return [];
}
}
},
},
};

@@ -65,3 +65,3 @@ }

const selectedItems = selectedValues.map((selectedId) => items[selectedId]);
items.forEach((item) => (item.selected = selectedItems.indexOf(item) !== -1));
items.forEach((item) => (item.selected = selectedItems.includes(item)));
}

@@ -92,3 +92,3 @@

event.preventDefault();
if (this.selectedValues.indexOf(idx) !== -1) {
if (this.selectedValues.includes(idx)) {
this.selectedValues = this.selectedValues.filter((v) => v !== idx);

@@ -95,0 +95,0 @@ } else {

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