@vaadin/vaadin-select
Advanced tools
Comparing version 2.0.2 to 2.0.3
@@ -13,3 +13,3 @@ { | ||
"name": "@vaadin/vaadin-select", | ||
"version": "2.0.2", | ||
"version": "2.0.3", | ||
"main": "vaadin-select.js", | ||
@@ -34,4 +34,4 @@ "author": "Vaadin Ltd", | ||
"@polymer/polymer": "^3.0.0", | ||
"@polymer/iron-media-query": "^3.0.0-pre.18", | ||
"@polymer/iron-resizable-behavior": "^3.0.0-pre.18", | ||
"@polymer/iron-media-query": "^3.0.0", | ||
"@polymer/iron-resizable-behavior": "^3.0.0", | ||
"@vaadin/vaadin-control-state-mixin": "^2.1.1", | ||
@@ -48,6 +48,6 @@ "@vaadin/vaadin-themable-mixin": "^1.3.2", | ||
"devDependencies": { | ||
"@polymer/iron-test-helpers": "^3.0.0-pre.18", | ||
"@polymer/iron-component-page": "^3.0.0-pre.18", | ||
"@polymer/iron-form": "^3.0.0-pre.18", | ||
"@polymer/iron-icon": "^3.0.0-pre.18", | ||
"@polymer/iron-test-helpers": "^3.0.0", | ||
"@polymer/iron-component-page": "^4.0.0", | ||
"@polymer/iron-form": "^3.0.0", | ||
"@polymer/iron-icon": "^3.0.0", | ||
"@webcomponents/webcomponentsjs": "^2.0.0", | ||
@@ -54,0 +54,0 @@ "wct-browser-legacy": "^1.0.1", |
@@ -104,16 +104,16 @@ [![npm version](https://badgen.net/npm/v/@vaadin/vaadin-select)](https://www.npmjs.com/package/@vaadin/vaadin-select) | ||
## Running demos and tests in browser | ||
## Running demos and tests in a browser | ||
1. Fork the `vaadin-select` repository and clone it locally. | ||
1. Make sure you have [npm](https://www.npmjs.com/) installed. | ||
1. Make sure you have [npm](https://www.npmjs.com/) and [Bower](https://bower.io) installed. | ||
1. When in the `vaadin-select` directory, run `npm install` and then `bower install` to install dependencies. | ||
1. Run `polymer serve --open`, browser will automatically open the component API documentation. | ||
1. Run `npm start`, browser will automatically open the component API documentation. | ||
1. You can also open demo or in-browser tests by adding **demo** or **test** to the URL, for example: | ||
- http://127.0.0.1:8080/components/vaadin-select/demo | ||
- http://127.0.0.1:8080/components/vaadin-select/test | ||
- http://127.0.0.1:3000/components/vaadin-select/demo | ||
- http://127.0.0.1:3000/components/vaadin-select/test | ||
@@ -120,0 +120,0 @@ |
@@ -28,2 +28,7 @@ /** | ||
static get template() { | ||
// Check if text-field is using slotted input | ||
if (super.template.content.querySelector('slot[name="input"]')) { | ||
return super.template; | ||
} | ||
if (!memoizedTemplate) { | ||
@@ -49,4 +54,8 @@ // Clone the superclass template | ||
} | ||
get inputElement() { | ||
return this.shadowRoot.querySelector('input'); | ||
} | ||
} | ||
customElements.define(SelectTextFieldElement.is, SelectTextFieldElement); |
@@ -182,3 +182,3 @@ /** | ||
static get version() { | ||
return '2.0.2'; | ||
return '2.0.3'; | ||
} | ||
@@ -557,4 +557,7 @@ | ||
// Check if text-field is using slotted input | ||
const slotName = this._inputElement.shadowRoot.querySelector('slot[name="input"]') ? 'input' : 'value'; | ||
// Toggle visibility of _valueElement vs fallback input with placeholder | ||
this._valueElement.slot = hasContent ? 'value' : ''; | ||
this._valueElement.slot = hasContent ? slotName : ''; | ||
@@ -561,0 +564,0 @@ // Ensure the slot distribution to apply correct style scope for cloned item |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
45851
776
0