@ag-grid-enterprise/rich-select
Advanced tools
Comparing version 25.3.0 to 26.0.0
@@ -67,9 +67,10 @@ "use strict"; | ||
RichSelectCellEditor.prototype.onKeyDown = function (event) { | ||
var key = event.key; | ||
var key = event.keyCode; | ||
event.preventDefault(); | ||
switch (key) { | ||
case core_1.KeyName.ENTER: | ||
case core_1.KeyCode.ENTER: | ||
this.onEnterKeyDown(); | ||
break; | ||
case core_1.KeyName.DOWN: | ||
case core_1.KeyName.UP: | ||
case core_1.KeyCode.DOWN: | ||
case core_1.KeyCode.UP: | ||
this.onNavigationKeyPressed(event, key); | ||
@@ -89,3 +90,3 @@ break; | ||
var oldIndex = this.params.values.indexOf(this.selectedValue); | ||
var newIndex = key === core_1.KeyName.UP ? oldIndex - 1 : oldIndex + 1; | ||
var newIndex = key === core_1.KeyCode.UP ? oldIndex - 1 : oldIndex + 1; | ||
if (newIndex >= 0 && newIndex < this.params.values.length) { | ||
@@ -98,6 +99,7 @@ var valueToSelect = this.params.values[newIndex]; | ||
if (typeof key !== 'string') { | ||
var keyName = key.key; | ||
if (keyName === core_1.KeyName.BACKSPACE) { | ||
var keyCode = key.keyCode; | ||
var keyString = key.key; | ||
if (keyCode === core_1.KeyCode.BACKSPACE) { | ||
this.searchString = this.searchString.slice(0, -1); | ||
keyName = ''; | ||
keyString = ''; | ||
} | ||
@@ -107,3 +109,3 @@ else if (!core_1._.isEventFromPrintableCharacter(key)) { | ||
} | ||
this.searchText(keyName); | ||
this.searchText(keyString); | ||
return; | ||
@@ -110,0 +112,0 @@ } |
@@ -20,3 +20,3 @@ var __extends = (this && this.__extends) || (function () { | ||
}; | ||
import { Autowired, PopupComponent, RefSelector, VirtualList, KeyName, _ } from "@ag-grid-community/core"; | ||
import { Autowired, PopupComponent, RefSelector, VirtualList, KeyCode, _, } from "@ag-grid-community/core"; | ||
import { RichSelectRow } from "./richSelectRow"; | ||
@@ -66,9 +66,10 @@ var RichSelectCellEditor = /** @class */ (function (_super) { | ||
RichSelectCellEditor.prototype.onKeyDown = function (event) { | ||
var key = event.key; | ||
var key = event.keyCode; | ||
event.preventDefault(); | ||
switch (key) { | ||
case KeyName.ENTER: | ||
case KeyCode.ENTER: | ||
this.onEnterKeyDown(); | ||
break; | ||
case KeyName.DOWN: | ||
case KeyName.UP: | ||
case KeyCode.DOWN: | ||
case KeyCode.UP: | ||
this.onNavigationKeyPressed(event, key); | ||
@@ -88,3 +89,3 @@ break; | ||
var oldIndex = this.params.values.indexOf(this.selectedValue); | ||
var newIndex = key === KeyName.UP ? oldIndex - 1 : oldIndex + 1; | ||
var newIndex = key === KeyCode.UP ? oldIndex - 1 : oldIndex + 1; | ||
if (newIndex >= 0 && newIndex < this.params.values.length) { | ||
@@ -97,6 +98,7 @@ var valueToSelect = this.params.values[newIndex]; | ||
if (typeof key !== 'string') { | ||
var keyName = key.key; | ||
if (keyName === KeyName.BACKSPACE) { | ||
var keyCode = key.keyCode; | ||
var keyString = key.key; | ||
if (keyCode === KeyCode.BACKSPACE) { | ||
this.searchString = this.searchString.slice(0, -1); | ||
keyName = ''; | ||
keyString = ''; | ||
} | ||
@@ -106,3 +108,3 @@ else if (!_.isEventFromPrintableCharacter(key)) { | ||
} | ||
this.searchText(keyName); | ||
this.searchText(keyString); | ||
return; | ||
@@ -109,0 +111,0 @@ } |
{ | ||
"name": "@ag-grid-enterprise/rich-select", | ||
"version": "25.3.0", | ||
"version": "26.0.0", | ||
"description": "Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components", | ||
@@ -9,4 +9,4 @@ "main": "./dist/cjs/main.js", | ||
"scripts": { | ||
"build-cjs": "tsc -p tsconfig.json", | ||
"build-es6": "tsc -p tsconfig.es6.json", | ||
"build-cjs": "npx tsc -p tsconfig.json", | ||
"build-es6": "npx tsc -p tsconfig.es6.json", | ||
"package": "node ../../module-build/rollup/build.js", | ||
@@ -46,4 +46,4 @@ "build": "npm run build-cjs && npm run build-es6 && npm run hash", | ||
"dependencies": { | ||
"@ag-grid-community/core": "~25.3.0", | ||
"@ag-grid-enterprise/core": "~25.3.0" | ||
"@ag-grid-community/core": "~26.0.0", | ||
"@ag-grid-enterprise/core": "~26.0.0" | ||
}, | ||
@@ -50,0 +50,0 @@ "devDependencies": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
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
205254
1395
1
1
+ Added@ag-grid-community/core@26.0.0(transitive)
+ Added@ag-grid-enterprise/core@26.0.0(transitive)
- Removed@ag-grid-community/core@25.3.0(transitive)
- Removed@ag-grid-enterprise/core@25.3.0(transitive)