@vaadin/grid
Advanced tools
Comparing version 24.4.0-alpha6 to 24.4.0-alpha7
{ | ||
"name": "@vaadin/grid", | ||
"version": "24.4.0-alpha6", | ||
"version": "24.4.0-alpha7", | ||
"publishConfig": { | ||
@@ -49,10 +49,10 @@ "access": "public" | ||
"@polymer/polymer": "^3.0.0", | ||
"@vaadin/a11y-base": "24.4.0-alpha6", | ||
"@vaadin/checkbox": "24.4.0-alpha6", | ||
"@vaadin/component-base": "24.4.0-alpha6", | ||
"@vaadin/lit-renderer": "24.4.0-alpha6", | ||
"@vaadin/text-field": "24.4.0-alpha6", | ||
"@vaadin/vaadin-lumo-styles": "24.4.0-alpha6", | ||
"@vaadin/vaadin-material-styles": "24.4.0-alpha6", | ||
"@vaadin/vaadin-themable-mixin": "24.4.0-alpha6", | ||
"@vaadin/a11y-base": "24.4.0-alpha7", | ||
"@vaadin/checkbox": "24.4.0-alpha7", | ||
"@vaadin/component-base": "24.4.0-alpha7", | ||
"@vaadin/lit-renderer": "24.4.0-alpha7", | ||
"@vaadin/text-field": "24.4.0-alpha7", | ||
"@vaadin/vaadin-lumo-styles": "24.4.0-alpha7", | ||
"@vaadin/vaadin-material-styles": "24.4.0-alpha7", | ||
"@vaadin/vaadin-themable-mixin": "24.4.0-alpha7", | ||
"lit": "^3.0.0" | ||
@@ -69,3 +69,3 @@ }, | ||
], | ||
"gitHead": "7d555ad342715966005883fafcd20001425a6d8c" | ||
"gitHead": "12359cbbdd3986af34cd4479c93aae5c3f568c37" | ||
} |
@@ -112,2 +112,7 @@ /** | ||
/** @private */ | ||
get _visibleItemsCount() { | ||
return this._lastVisibleIndex - this._firstVisibleIndex - 1; | ||
} | ||
/** @protected */ | ||
@@ -308,4 +313,5 @@ ready() { | ||
const visibleItemsCount = this._lastVisibleIndex - this._firstVisibleIndex - 1; | ||
const isRTL = this.__isRTL; | ||
const activeRow = e.composedPath().find((el) => this.__isRow(el)); | ||
const activeCell = e.composedPath().find((el) => this.__isCell(el)); | ||
@@ -355,6 +361,13 @@ // Handle keyboard interaction as defined in: | ||
case 'PageDown': | ||
dy = visibleItemsCount; | ||
// Check if the active group is body | ||
if (this.$.items.contains(activeRow)) { | ||
const currentRowIndex = this.__getIndexInGroup(activeRow, this._focusedItemIndex); | ||
// Scroll the current row to the top... | ||
this._scrollToFlatIndex(currentRowIndex); | ||
} | ||
// ...only then measure the visible items count | ||
dy = this._visibleItemsCount; | ||
break; | ||
case 'PageUp': | ||
dy = -visibleItemsCount; | ||
dy = -this._visibleItemsCount; | ||
break; | ||
@@ -365,5 +378,2 @@ default: | ||
const activeRow = e.composedPath().find((el) => this.__isRow(el)); | ||
const activeCell = e.composedPath().find((el) => this.__isCell(el)); | ||
if ((this.__rowFocusMode && !activeRow) || (!this.__rowFocusMode && !activeCell)) { | ||
@@ -370,0 +380,0 @@ // When using a screen reader, it's possible that neither a cell nor a row is focused. |
@@ -677,7 +677,9 @@ /** | ||
row.__cells.push(cell); | ||
if (!column._bodyContentHidden) { | ||
const isSizerRow = row === this.$.sizer; | ||
if (!column._bodyContentHidden || isSizerRow) { | ||
row.appendChild(cell); | ||
} | ||
if (row === this.$.sizer) { | ||
if (isSizerRow) { | ||
column._sizerCell = cell; | ||
@@ -684,0 +686,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
668189
16078
+ Added@vaadin/a11y-base@24.4.0-alpha7(transitive)
+ Added@vaadin/checkbox@24.4.0-alpha7(transitive)
+ Added@vaadin/component-base@24.4.0-alpha7(transitive)
+ Added@vaadin/field-base@24.4.0-alpha7(transitive)
+ Added@vaadin/icon@24.4.0-alpha7(transitive)
+ Added@vaadin/input-container@24.4.0-alpha7(transitive)
+ Added@vaadin/lit-renderer@24.4.0-alpha7(transitive)
+ Added@vaadin/text-field@24.4.0-alpha7(transitive)
+ Added@vaadin/vaadin-lumo-styles@24.4.0-alpha7(transitive)
+ Added@vaadin/vaadin-material-styles@24.4.0-alpha7(transitive)
+ Added@vaadin/vaadin-themable-mixin@24.4.0-alpha7(transitive)
- Removed@vaadin/a11y-base@24.4.0-alpha6(transitive)
- Removed@vaadin/checkbox@24.4.0-alpha6(transitive)
- Removed@vaadin/component-base@24.4.0-alpha6(transitive)
- Removed@vaadin/field-base@24.4.0-alpha6(transitive)
- Removed@vaadin/icon@24.4.0-alpha6(transitive)
- Removed@vaadin/input-container@24.4.0-alpha6(transitive)
- Removed@vaadin/lit-renderer@24.4.0-alpha6(transitive)
- Removed@vaadin/text-field@24.4.0-alpha6(transitive)
- Removed@vaadin/vaadin-lumo-styles@24.4.0-alpha6(transitive)
- Removed@vaadin/vaadin-material-styles@24.4.0-alpha6(transitive)
- Removed@vaadin/vaadin-themable-mixin@24.4.0-alpha6(transitive)