@vaadin/grid
Advanced tools
Comparing version 24.6.0-rc1 to 24.6.0
{ | ||
"name": "@vaadin/grid", | ||
"version": "24.6.0-rc1", | ||
"version": "24.6.0", | ||
"publishConfig": { | ||
@@ -49,14 +49,14 @@ "access": "public" | ||
"@polymer/polymer": "^3.0.0", | ||
"@vaadin/a11y-base": "24.6.0-rc1", | ||
"@vaadin/checkbox": "24.6.0-rc1", | ||
"@vaadin/component-base": "24.6.0-rc1", | ||
"@vaadin/lit-renderer": "24.6.0-rc1", | ||
"@vaadin/text-field": "24.6.0-rc1", | ||
"@vaadin/vaadin-lumo-styles": "24.6.0-rc1", | ||
"@vaadin/vaadin-material-styles": "24.6.0-rc1", | ||
"@vaadin/vaadin-themable-mixin": "24.6.0-rc1", | ||
"@vaadin/a11y-base": "~24.6.0", | ||
"@vaadin/checkbox": "~24.6.0", | ||
"@vaadin/component-base": "~24.6.0", | ||
"@vaadin/lit-renderer": "~24.6.0", | ||
"@vaadin/text-field": "~24.6.0", | ||
"@vaadin/vaadin-lumo-styles": "~24.6.0", | ||
"@vaadin/vaadin-material-styles": "~24.6.0", | ||
"@vaadin/vaadin-themable-mixin": "~24.6.0", | ||
"lit": "^3.0.0" | ||
}, | ||
"devDependencies": { | ||
"@vaadin/chai-plugins": "24.6.0-rc1", | ||
"@vaadin/chai-plugins": "~24.6.0", | ||
"@vaadin/testing-helpers": "^1.0.0", | ||
@@ -69,3 +69,3 @@ "sinon": "^18.0.0" | ||
], | ||
"gitHead": "d62ba309e3286777ad3ea7e015d50a2c4976bb42" | ||
"gitHead": "c0b38aa981494d04fac64da35aa3890ad72551ea" | ||
} |
@@ -222,7 +222,3 @@ /** | ||
if (this.__dragStartItem) { | ||
if (this.__selectOnDrag) { | ||
this._selectItem(this.__dragStartItem); | ||
} else { | ||
this._deselectItem(this.__dragStartItem); | ||
} | ||
this.__toggleItem(this.__dragStartItem, this.__selectOnDrag); | ||
} | ||
@@ -293,2 +289,3 @@ // clear drag state after timeout, which allows preventing the | ||
} | ||
// Get the row being hovered over | ||
@@ -318,7 +315,3 @@ const renderedRows = this._grid._getRenderedRows(); | ||
) { | ||
if (this.__selectOnDrag) { | ||
this._selectItem(row._item); | ||
} else { | ||
this._deselectItem(row._item); | ||
} | ||
this.__toggleItem(row._item, this.__selectOnDrag); | ||
this.__dragStartItem = undefined; | ||
@@ -405,2 +398,10 @@ } | ||
__toggleItem(item, selected = !this._grid._isSelected(item)) { | ||
if (selected === this._grid._isSelected(item)) { | ||
// Skip selection if the item is already in the desired state. | ||
// Note, _selectItem and _deselectItem may be overridden in custom | ||
// selection column implementations, and calling them unnecessarily | ||
// might affect performance (e.g. vaadin-grid-flow-selection-column). | ||
return; | ||
} | ||
if (selected) { | ||
@@ -407,0 +408,0 @@ this._selectItem(item); |
@@ -56,3 +56,3 @@ /** | ||
display: inline-block; | ||
width: calc(var(---level, '0') * var(--vaadin-grid-tree-toggle-level-offset)); | ||
width: calc(var(--_level, '0') * var(--vaadin-grid-tree-toggle-level-offset)); | ||
} | ||
@@ -150,4 +150,4 @@ | ||
const value = Number(level).toString(); | ||
this.style.setProperty('---level', value); | ||
this.style.setProperty('--_level', value); | ||
} | ||
}; |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
687976
0
16492
+ Added@vaadin/a11y-base@24.6.0(transitive)
+ Added@vaadin/checkbox@24.6.0(transitive)
+ Added@vaadin/component-base@24.6.0(transitive)
+ Added@vaadin/field-base@24.6.0(transitive)
+ Added@vaadin/icon@24.6.0(transitive)
+ Added@vaadin/input-container@24.6.0(transitive)
+ Added@vaadin/lit-renderer@24.6.0(transitive)
+ Added@vaadin/text-field@24.6.0(transitive)
+ Added@vaadin/vaadin-lumo-styles@24.6.0(transitive)
+ Added@vaadin/vaadin-material-styles@24.6.0(transitive)
+ Added@vaadin/vaadin-themable-mixin@24.6.0(transitive)
- Removed@vaadin/a11y-base@24.6.0-rc1(transitive)
- Removed@vaadin/checkbox@24.6.0-rc1(transitive)
- Removed@vaadin/component-base@24.6.0-rc1(transitive)
- Removed@vaadin/field-base@24.6.0-rc1(transitive)
- Removed@vaadin/icon@24.6.0-rc1(transitive)
- Removed@vaadin/input-container@24.6.0-rc1(transitive)
- Removed@vaadin/lit-renderer@24.6.0-rc1(transitive)
- Removed@vaadin/text-field@24.6.0-rc1(transitive)
- Removed@vaadin/vaadin-lumo-styles@24.6.0-rc1(transitive)
- Removed@vaadin/vaadin-material-styles@24.6.0-rc1(transitive)
- Removed@vaadin/vaadin-themable-mixin@24.6.0-rc1(transitive)
Updated@vaadin/a11y-base@~24.6.0
Updated@vaadin/checkbox@~24.6.0
Updated@vaadin/lit-renderer@~24.6.0
Updated@vaadin/text-field@~24.6.0