Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@ag-grid-enterprise/rich-select

Package Overview
Dependencies
Maintainers
3
Versions
73
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ag-grid-enterprise/rich-select - npm Package Compare versions

Comparing version 25.3.0 to 26.0.0

20

dist/cjs/richSelect/richSelectCellEditor.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc