@vaadin/vaadin-combo-box
Advanced tools
Comparing version 21.0.0-beta2 to 21.0.0-rc1
{ | ||
"name": "@vaadin/vaadin-combo-box", | ||
"version": "21.0.0-beta2", | ||
"version": "21.0.0-rc1", | ||
"description": "Web Component for displaying a list of items with filtering", | ||
@@ -31,10 +31,10 @@ "main": "vaadin-combo-box.js", | ||
"@polymer/polymer": "^3.0.0", | ||
"@vaadin/vaadin-control-state-mixin": "^21.0.0-beta2", | ||
"@vaadin/vaadin-element-mixin": "^21.0.0-beta2", | ||
"@vaadin/vaadin-item": "^21.0.0-beta2", | ||
"@vaadin/vaadin-lumo-styles": "^21.0.0-beta2", | ||
"@vaadin/vaadin-material-styles": "^21.0.0-beta2", | ||
"@vaadin/vaadin-overlay": "^21.0.0-beta2", | ||
"@vaadin/vaadin-text-field": "^21.0.0-beta2", | ||
"@vaadin/vaadin-themable-mixin": "^21.0.0-beta2" | ||
"@vaadin/vaadin-control-state-mixin": "^21.0.0-rc1", | ||
"@vaadin/vaadin-element-mixin": "^21.0.0-rc1", | ||
"@vaadin/vaadin-item": "^21.0.0-rc1", | ||
"@vaadin/vaadin-lumo-styles": "^21.0.0-rc1", | ||
"@vaadin/vaadin-material-styles": "^21.0.0-rc1", | ||
"@vaadin/vaadin-overlay": "^21.0.0-rc1", | ||
"@vaadin/vaadin-text-field": "^21.0.0-rc1", | ||
"@vaadin/vaadin-themable-mixin": "^21.0.0-rc1" | ||
}, | ||
@@ -46,4 +46,5 @@ "devDependencies": { | ||
"@vaadin/testing-helpers": "^0.2.1", | ||
"@vaadin/vaadin-dialog": "^21.0.0-beta2", | ||
"@vaadin/vaadin-template-renderer": "^21.0.0-beta2", | ||
"@vaadin/vaadin-dialog": "^21.0.0-rc1", | ||
"@vaadin/vaadin-template-renderer": "^21.0.0-rc1", | ||
"lit": "^2.0.0-rc.1", | ||
"sinon": "^9.2.0" | ||
@@ -54,3 +55,3 @@ }, | ||
}, | ||
"gitHead": "85ac717fc9f16941a1593a44d1aec90735a5db54" | ||
"gitHead": "50d1c1ce987f97069674ea2e2002eade479bbf09" | ||
} |
@@ -1,10 +0,1 @@ | ||
[![npm latest version](https://badgen.net/npm/v/@vaadin/vaadin-combo-box/latest)](https://www.npmjs.com/package/@vaadin/vaadin-combo-box) | ||
[![Published on webcomponents.org](https://img.shields.io/badge/webcomponents.org-published-blue.svg)](https://www.webcomponents.org/element/vaadin/vaadin-combo-box) | ||
[![Build Status](https://travis-ci.org/vaadin/vaadin-combo-box.svg?branch=master)](https://travis-ci.org/vaadin/vaadin-combo-box) | ||
[![Coverage Status](https://coveralls.io/repos/github/vaadin/vaadin-combo-box/badge.svg?branch=master)](https://coveralls.io/github/vaadin/vaadin-combo-box?branch=master) | ||
[![Gitter](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/vaadin/web-components?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge) | ||
[![Published on Vaadin Directory](https://img.shields.io/badge/Vaadin%20Directory-published-00b4f0.svg)](https://vaadin.com/directory/component/vaadinvaadin-combo-box) | ||
[![Stars on vaadin.com/directory](https://img.shields.io/vaadin-directory/star/vaadinvaadin-combo-box.svg)](https://vaadin.com/directory/component/vaadinvaadin-combo-box) | ||
# <vaadin-combo-box> | ||
@@ -18,4 +9,13 @@ | ||
[![npm version](https://badgen.net/npm/v/@vaadin/vaadin-combo-box)](https://www.npmjs.com/package/@vaadin/vaadin-combo-box) | ||
[![Published on Vaadin Directory](https://img.shields.io/badge/Vaadin%20Directory-published-00b4f0.svg)](https://vaadin.com/directory/component/vaadinvaadin-combo-box) | ||
[![Discord](https://img.shields.io/discord/732335336448852018?label=discord)](https://discord.gg/PHmkCKC) | ||
```html | ||
<vaadin-combo-box label="User" placeholder="Please select" item-value-path="email" item-label-path="email"></vaadin-combo-box> | ||
<vaadin-combo-box | ||
label="User" | ||
placeholder="Please select" | ||
item-value-path="email" | ||
item-label-path="email" | ||
></vaadin-combo-box> | ||
@@ -26,4 +26,4 @@ <script> | ||
fetch('https://randomuser.me/api?results=100&inc=name,email') | ||
.then(res => res.json()) | ||
.then(json => comboBox.items = json.results); | ||
.then((res) => res.json()) | ||
.then((json) => (comboBox.items = json.results)); | ||
</script> | ||
@@ -72,43 +72,6 @@ ``` | ||
## Running API docs and tests in a browser | ||
1. Fork the `vaadin-combo-box` repository and clone it locally. | ||
1. Make sure you have [node.js](https://nodejs.org/) 12.x installed. | ||
1. Make sure you have [npm](https://www.npmjs.com/) installed. | ||
1. When in the `vaadin-combo-box` directory, run `npm install` to install dependencies. | ||
1. Run `npm start`, browser will automatically open the component API documentation. | ||
1. You can also open visual tests, for example: | ||
- http://127.0.0.1:3000/test/visual/default.html | ||
## Running tests from the command line | ||
1. When in the `vaadin-combo-box` directory, run `npm test` | ||
## Debugging tests in the browser | ||
1. Run `npm run debug`, then choose manual mode (M) and open the link in browser. | ||
## Following the coding style | ||
We are using [ESLint](http://eslint.org/) for linting JavaScript code. You can check if your code is following our standards by running `npm run lint`, which will automatically lint all `.js` files. | ||
## Big Thanks | ||
Cross-browser Testing Platform and Open Source <3 Provided by [Sauce Labs](https://saucelabs.com). | ||
## Contributing | ||
To contribute to the component, please read [the guideline](https://github.com/vaadin/vaadin-core/blob/master/CONTRIBUTING.md) first. | ||
Read the [contributing guide](https://vaadin.com/docs/latest/guide/contributing/overview) to learn about our development process, how to propose bugfixes and improvements, and how to test your changes to Vaadin components. | ||
## License | ||
@@ -115,0 +78,0 @@ |
@@ -148,2 +148,6 @@ /** | ||
this.$.content.innerHTML = ''; | ||
// Whenever a Lit-based renderer is used, it assigns a Lit part to the node it was rendered into. | ||
// When clearing the rendered content, this part needs to be manually disposed of. | ||
// Otherwise, using a Lit-based renderer on the same node will throw an exception or render nothing afterward. | ||
delete this.$.content._$litPart$; | ||
} | ||
@@ -150,0 +154,0 @@ |
@@ -246,3 +246,3 @@ /** | ||
static get version() { | ||
return '21.0.0-beta2'; | ||
return '21.0.0-rc1'; | ||
} | ||
@@ -249,0 +249,0 @@ |
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
3566
138711
8
79