@vaadin/grid
Advanced tools
Comparing version 24.3.8 to 24.3.9
{ | ||
"name": "@vaadin/grid", | ||
"version": "24.3.8", | ||
"version": "24.3.9", | ||
"publishConfig": { | ||
@@ -49,10 +49,10 @@ "access": "public" | ||
"@polymer/polymer": "^3.0.0", | ||
"@vaadin/a11y-base": "~24.3.8", | ||
"@vaadin/checkbox": "~24.3.8", | ||
"@vaadin/component-base": "~24.3.8", | ||
"@vaadin/lit-renderer": "~24.3.8", | ||
"@vaadin/text-field": "~24.3.8", | ||
"@vaadin/vaadin-lumo-styles": "~24.3.8", | ||
"@vaadin/vaadin-material-styles": "~24.3.8", | ||
"@vaadin/vaadin-themable-mixin": "~24.3.8" | ||
"@vaadin/a11y-base": "~24.3.9", | ||
"@vaadin/checkbox": "~24.3.9", | ||
"@vaadin/component-base": "~24.3.9", | ||
"@vaadin/lit-renderer": "~24.3.9", | ||
"@vaadin/text-field": "~24.3.9", | ||
"@vaadin/vaadin-lumo-styles": "~24.3.9", | ||
"@vaadin/vaadin-material-styles": "~24.3.9", | ||
"@vaadin/vaadin-themable-mixin": "~24.3.9" | ||
}, | ||
@@ -69,3 +69,3 @@ "devDependencies": { | ||
], | ||
"gitHead": "144e479d60d7d52edd4d35aba032c6863c02e878" | ||
"gitHead": "89f71cc95b22840de910070c145f9cbf9714f4f4" | ||
} |
@@ -577,2 +577,6 @@ /** | ||
if (column && column._onCellKeyDown) { | ||
cell.addEventListener('keydown', column._onCellKeyDown.bind(column)); | ||
} | ||
const slot = document.createElement('slot'); | ||
@@ -709,3 +713,3 @@ slot.setAttribute('name', slotName); | ||
if (isColumnRow || column.localName === 'vaadin-grid-column-group') { | ||
cell = column[`_${section}Cell`] || this._createCell(tagName); | ||
cell = column[`_${section}Cell`] || this._createCell(tagName, column); | ||
cell._column = column; | ||
@@ -712,0 +716,0 @@ row.appendChild(cell); |
@@ -237,2 +237,12 @@ /** | ||
/** @private */ | ||
_onCellKeyDown(e) { | ||
const target = e.composedPath()[0]; | ||
// Toggle on Space without having to enter interaction mode first | ||
if (e.keyCode === 32 && (target === this._headerCell || (this._cells.includes(target) && !this.autoSelect))) { | ||
const checkbox = target._content.firstElementChild; | ||
checkbox.checked = !checkbox.checked; | ||
} | ||
} | ||
/** @private */ | ||
__dragAutoScroller() { | ||
@@ -239,0 +249,0 @@ if (this.__dragStartIndex === undefined) { |
@@ -128,6 +128,4 @@ /** | ||
/** @protected */ | ||
ready() { | ||
super.ready(); | ||
constructor() { | ||
super(); | ||
this.addEventListener('click', (e) => this._onClick(e)); | ||
@@ -134,0 +132,0 @@ } |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
663330
15962