@vaadin/a11y-base
Advanced tools
Comparing version 24.2.0-alpha1 to 24.2.0-alpha10
{ | ||
"name": "@vaadin/a11y-base", | ||
"version": "24.2.0-alpha1", | ||
"version": "24.2.0-alpha10", | ||
"publishConfig": { | ||
@@ -35,3 +35,3 @@ "access": "public" | ||
"@polymer/polymer": "^3.0.0", | ||
"@vaadin/component-base": "24.2.0-alpha1", | ||
"@vaadin/component-base": "24.2.0-alpha10", | ||
"lit": "^2.0.0" | ||
@@ -41,6 +41,6 @@ }, | ||
"@esm-bundle/chai": "^4.3.4", | ||
"@vaadin/testing-helpers": "^0.4.2", | ||
"@vaadin/testing-helpers": "^0.5.0", | ||
"sinon": "^13.0.2" | ||
}, | ||
"gitHead": "0dbb118320203ab6c0c07450a3e718815367589f" | ||
"gitHead": "ca16b5f88b00ae05fb6d7c7e9874525048e389f0" | ||
} |
@@ -85,8 +85,5 @@ /** | ||
focus() { | ||
if (!this.focusElement || this.disabled) { | ||
return; | ||
if (this.focusElement && !this.disabled) { | ||
this.focusElement.focus(); | ||
} | ||
this.focusElement.focus(); | ||
this._setFocused(true); | ||
} | ||
@@ -99,7 +96,5 @@ | ||
blur() { | ||
if (!this.focusElement) { | ||
return; | ||
if (this.focusElement) { | ||
this.focusElement.blur(); | ||
} | ||
this.focusElement.blur(); | ||
this._setFocused(false); | ||
} | ||
@@ -171,3 +166,3 @@ | ||
/** | ||
* @param {Event} event | ||
* @param {FocusEvent} event | ||
* @return {boolean} | ||
@@ -182,2 +177,12 @@ * @protected | ||
/** | ||
* @param {FocusEvent} event | ||
* @return {boolean} | ||
* @protected | ||
* @override | ||
*/ | ||
_shouldRemoveFocus(event) { | ||
return event.target === this.focusElement; | ||
} | ||
/** | ||
* @param {boolean} disabled | ||
@@ -184,0 +189,0 @@ * @param {boolean} oldDisabled |
@@ -6,6 +6,7 @@ /** | ||
*/ | ||
import { FlattenedNodesObserver } from '@polymer/polymer/lib/utils/flattened-nodes-observer.js'; | ||
import { timeOut } from '@vaadin/component-base/src/async.js'; | ||
import { Debouncer } from '@vaadin/component-base/src/debounce.js'; | ||
import { getNormalizedScrollLeft, setNormalizedScrollLeft } from '@vaadin/component-base/src/dir-utils.js'; | ||
import { getFlattenedElements } from '@vaadin/component-base/src/dom-utils.js'; | ||
import { SlotObserver } from '@vaadin/component-base/src/slot-observer.js'; | ||
import { KeyboardDirectionMixin } from './keyboard-direction-mixin.js'; | ||
@@ -138,4 +139,5 @@ | ||
this._observer = new FlattenedNodesObserver(this, () => { | ||
this._setItems(this._filterItems(FlattenedNodesObserver.getFlattenedNodes(this))); | ||
const slot = this.shadowRoot.querySelector('slot:not([name])'); | ||
this._observer = new SlotObserver(slot, () => { | ||
this._setItems(this._filterItems(getFlattenedElements(this))); | ||
}); | ||
@@ -142,0 +144,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
103105
74366
2727
15
+ Added@vaadin/component-base@24.2.0-alpha10(transitive)
- Removed@vaadin/component-base@24.2.0-alpha1(transitive)