multiselect-combo-box
Advanced tools
Comparing version 2.3.1 to 2.4.0-alpha
@@ -15,3 +15,3 @@ { | ||
"name": "multiselect-combo-box", | ||
"version": "2.3.1", | ||
"version": "2.4.0-alpha", | ||
"main": "multiselect-combo-box.js", | ||
@@ -18,0 +18,0 @@ "directories": { |
@@ -100,3 +100,5 @@ import {PolymerElement} from '@polymer/polymer/polymer-element.js'; | ||
disabled="[[disabled]]" | ||
pageSize="[[pageSize]]"> | ||
page-size="[[pageSize]]" | ||
allow-custom-value="[[allowCustomValues]]" | ||
on-custom-value-set="_handleCustomValueSet"> | ||
@@ -205,3 +207,5 @@ <multiselect-combo-box-input | ||
/** | ||
* Number of items fetched at a time from the dataprovider. This property is delegated to the underlying `vaadin-combo-box`. | ||
* Number of items fetched at a time from the dataprovider. | ||
* | ||
* This property is delegated to the underlying `vaadin-combo-box`. | ||
*/ | ||
@@ -256,2 +260,13 @@ pageSize: { | ||
/** | ||
* If `true`, the user can input a value that is not present in the items list. | ||
* `value` property will be set to the input value in this case. | ||
* | ||
* This property is delegated to the underlying `vaadin-combo-box`. | ||
*/ | ||
allowCustomValues: { | ||
type: Boolean, | ||
value: false | ||
}, | ||
/** | ||
* Custom function for rendering the content of every item. | ||
@@ -337,2 +352,16 @@ * Receives three arguments: | ||
_handleCustomValueSet(event) { | ||
event.preventDefault(); | ||
if (event.detail) { | ||
this.$.input.value = null; // clear input | ||
const customValuesSetEvent = new CustomEvent('custom-values-set', { | ||
detail: event.detail, | ||
composed: true, | ||
cancelable: true, | ||
bubbles: true | ||
}); | ||
this.dispatchEvent(customValuesSetEvent); | ||
} | ||
} | ||
_customIsSelected(item, selectedItem, itemIdPath) { | ||
@@ -339,0 +368,0 @@ if (item instanceof ComboBoxPlaceholder) { |
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
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
54378
1086
1
2