@vaadin/combo-box
Advanced tools
Comparing version 23.1.0-beta1 to 23.1.0-beta2
{ | ||
"name": "@vaadin/combo-box", | ||
"version": "23.1.0-beta1", | ||
"version": "23.1.0-beta2", | ||
"publishConfig": { | ||
@@ -24,2 +24,4 @@ "access": "public" | ||
"theme", | ||
"lit.js", | ||
"lit.d.ts", | ||
"vaadin-*.d.ts", | ||
@@ -38,21 +40,22 @@ "vaadin-*.js" | ||
"@polymer/polymer": "^3.0.0", | ||
"@vaadin/component-base": "23.1.0-beta1", | ||
"@vaadin/field-base": "23.1.0-beta1", | ||
"@vaadin/input-container": "23.1.0-beta1", | ||
"@vaadin/item": "23.1.0-beta1", | ||
"@vaadin/vaadin-lumo-styles": "23.1.0-beta1", | ||
"@vaadin/vaadin-material-styles": "23.1.0-beta1", | ||
"@vaadin/vaadin-overlay": "23.1.0-beta1", | ||
"@vaadin/vaadin-themable-mixin": "23.1.0-beta1" | ||
"@vaadin/component-base": "23.1.0-beta2", | ||
"@vaadin/field-base": "23.1.0-beta2", | ||
"@vaadin/input-container": "23.1.0-beta2", | ||
"@vaadin/item": "23.1.0-beta2", | ||
"@vaadin/lit-renderer": "23.1.0-beta2", | ||
"@vaadin/vaadin-lumo-styles": "23.1.0-beta2", | ||
"@vaadin/vaadin-material-styles": "23.1.0-beta2", | ||
"@vaadin/vaadin-overlay": "23.1.0-beta2", | ||
"@vaadin/vaadin-themable-mixin": "23.1.0-beta2" | ||
}, | ||
"devDependencies": { | ||
"@esm-bundle/chai": "^4.3.4", | ||
"@vaadin/dialog": "23.1.0-beta1", | ||
"@vaadin/polymer-legacy-adapter": "23.1.0-beta1", | ||
"@vaadin/dialog": "23.1.0-beta2", | ||
"@vaadin/polymer-legacy-adapter": "23.1.0-beta2", | ||
"@vaadin/testing-helpers": "^0.3.2", | ||
"@vaadin/text-field": "23.1.0-beta1", | ||
"@vaadin/text-field": "23.1.0-beta2", | ||
"lit": "^2.0.0", | ||
"sinon": "^13.0.2" | ||
}, | ||
"gitHead": "8be43cf83102a6b9ccf309687446e590ce0164e8" | ||
"gitHead": "f11f9245a0b5e6bf912725a501c27c24b74e7c8d" | ||
} |
@@ -167,3 +167,3 @@ /** | ||
_loadPage(page) { | ||
// make sure same page isn't requested multiple times. | ||
// Make sure same page isn't requested multiple times. | ||
if (!this._pendingRequests[page] && this.dataProvider) { | ||
@@ -170,0 +170,0 @@ this.loading = true; |
@@ -177,3 +177,3 @@ /** | ||
new CustomEvent('vaadin-overlay-touch-action', { | ||
detail: { sourceEvent: sourceEvent }, | ||
detail: { sourceEvent }, | ||
}), | ||
@@ -279,3 +279,3 @@ ); | ||
_positionTargetChanged(target) { | ||
// we must update the overlay width when the positionTarget is set (or changes) | ||
// We must update the overlay width when the positionTarget is set (or changes) | ||
if (target) { | ||
@@ -282,0 +282,0 @@ this._setOverlayWidth(); |
@@ -154,3 +154,3 @@ /** | ||
super._isClearButton(event) || | ||
(event.type === 'input' && !event.isTrusted) || // fake input event dispatched by clear button | ||
(event.type === 'input' && !event.isTrusted) || // Fake input event dispatched by clear button | ||
event.composedPath()[0].getAttribute('part') === 'clear-button' | ||
@@ -157,0 +157,0 @@ ); |
@@ -472,3 +472,3 @@ /** | ||
// prevent caret from moving | ||
// Prevent caret from moving | ||
e.preventDefault(); | ||
@@ -480,3 +480,3 @@ } else if (e.key === 'ArrowUp') { | ||
// prevent caret from moving | ||
// Prevent caret from moving | ||
e.preventDefault(); | ||
@@ -581,3 +581,3 @@ } else if (e.key === 'Enter') { | ||
_onEnter(e) { | ||
// do not commit value when custom values are disallowed and input value is not a valid option | ||
// Do not commit value when custom values are disallowed and input value is not a valid option | ||
// also stop propagation of the event, otherwise the user could submit a form while the input | ||
@@ -593,3 +593,3 @@ // still contains an invalid value | ||
// stop propagation of the enter event only if the dropdown is opened, this | ||
// Stop propagation of the enter event only if the dropdown is opened, this | ||
// "consumes" the enter event for the action of closing the dropdown | ||
@@ -711,3 +711,3 @@ if (this.opened) { | ||
} | ||
// make sure input field is updated in case value doesn't change (i.e. FOO -> foo) | ||
// Make sure input field is updated in case value doesn't change (i.e. FOO -> foo) | ||
this._inputElementValue = this._getItemLabel(this.selectedItem); | ||
@@ -731,3 +731,3 @@ } else if (this._inputElementValue === '' || this._inputElementValue === undefined) { | ||
this.allowCustomValue && | ||
// to prevent a repetitive input value being saved after pressing ESC and Tab. | ||
// To prevent a repetitive input value being saved after pressing ESC and Tab. | ||
!itemMatchingByLabel | ||
@@ -980,6 +980,7 @@ ) { | ||
if (this._inputElementValue === undefined || this._inputElementValue === this.value) { | ||
const inputValue = this._inputElementValue; | ||
if (inputValue === undefined || inputValue === this._getItemLabel(this.selectedItem)) { | ||
// When the input element value is the same as the current value or not defined, | ||
// set the focused index to the item that matches the value. | ||
this._focusedIndex = this._indexOfValue(this.value, this.filteredItems); | ||
this._focusedIndex = this.$.dropdown.indexOfLabel(this._getItemLabel(this.selectedItem)); | ||
} else { | ||
@@ -1066,3 +1067,3 @@ // When the user filled in something that is different from the current value = filtering is enabled, | ||
_overlaySelectedItemChanged(e) { | ||
// stop this private event from leaking outside. | ||
// Stop this private event from leaking outside. | ||
e.stopPropagation(); | ||
@@ -1069,0 +1070,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
138555
34
3504
11
+ Added@vaadin/component-base@23.1.0-beta2(transitive)
+ Added@vaadin/field-base@23.1.0-beta2(transitive)
+ Added@vaadin/icon@23.1.0-beta2(transitive)
+ Added@vaadin/input-container@23.1.0-beta2(transitive)
+ Added@vaadin/item@23.1.0-beta2(transitive)
+ Added@vaadin/lit-renderer@23.1.0-beta2(transitive)
+ Added@vaadin/vaadin-lumo-styles@23.1.0-beta2(transitive)
+ Added@vaadin/vaadin-material-styles@23.1.0-beta2(transitive)
+ Added@vaadin/vaadin-overlay@23.1.0-beta2(transitive)
+ Added@vaadin/vaadin-themable-mixin@23.1.0-beta2(transitive)
- Removed@vaadin/component-base@23.1.0-beta1(transitive)
- Removed@vaadin/field-base@23.1.0-beta1(transitive)
- Removed@vaadin/icon@23.1.0-beta1(transitive)
- Removed@vaadin/input-container@23.1.0-beta1(transitive)
- Removed@vaadin/item@23.1.0-beta1(transitive)
- Removed@vaadin/vaadin-lumo-styles@23.1.0-beta1(transitive)
- Removed@vaadin/vaadin-material-styles@23.1.0-beta1(transitive)
- Removed@vaadin/vaadin-overlay@23.1.0-beta1(transitive)
- Removed@vaadin/vaadin-themable-mixin@23.1.0-beta1(transitive)
Updated@vaadin/item@23.1.0-beta2