Socket
Socket
Sign inDemoInstall

@ag-grid-enterprise/rich-select

Package Overview
Dependencies
Maintainers
0
Versions
69
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 31.3.2 to 32.0.0

eslint.config.mjs

30

CONTRIBUTING.md

@@ -5,6 +5,4 @@ # Contributing to AG Grid Enterprise

Retention of Intellectual Property Rights for AG Grid Enterprise component
==============
# Retention of Intellectual Property Rights for AG Grid Enterprise component
1.DEFINITIONS

@@ -27,9 +25,9 @@

- [Question or Problem?](#question)
- [Issues and Bugs](#issue)
- [Feature Requests](#feature)
- [Submission Guidelines](#submit)
- [Coding Rules](#rules)
- [Commit Message Guidelines](#commit)
- [Signing the CLA](#cla)
- [Question or Problem?](#question)
- [Issues and Bugs](#issue)
- [Feature Requests](#feature)
- [Submission Guidelines](#submit)
- [Coding Rules](#rules)
- [Commit Message Guidelines](#commit)
- [Signing the CLA](#cla)

@@ -45,2 +43,3 @@ ## <a name="question"></a> Got a Question or Problem?

## <a name="issue"></a> Found a Bug?
If you find a bug in the source code, you can help us by

@@ -50,3 +49,4 @@ [submitting an issue](#submit-issue) to our [GitHub Repository][github].

## <a name="feature"></a> Missing a Feature?
You can *request* a new feature by [submitting an issue](#submit-issue) to our GitHub
You can _request_ a new feature by [submitting an issue](#submit-issue) to our GitHub
Repository.

@@ -62,5 +62,5 @@

- version of AG Grid Enterprise used
- 3rd-party libraries and their versions
- and most importantly - a use-case that fails
- version of AG Grid Enterprise used
- 3rd-party libraries and their versions
- and most importantly - a use-case that fails

@@ -78,3 +78,1 @@ A minimal reproduce scenario using http://plnkr.co/ allows us to quickly confirm a bug (or point out coding problem) as well as confirm that we are fixing the right problem. If plunker is not a suitable way to demonstrate the problem (for example for issues related to our npm packaging), please create a standalone git repository demonstrating the problem.

[stackoverflow]: http://stackoverflow.com/questions/tagged/ag-grid

@@ -27,7 +27,8 @@ var __defProp = Object.defineProperty;

// enterprise-modules/rich-select/src/richSelectModule.ts
var import_core2 = require("@ag-grid-community/core");
var import_core3 = require("@ag-grid-enterprise/core");
var import_core3 = require("@ag-grid-community/core");
var import_core4 = require("@ag-grid-enterprise/core");
// enterprise-modules/rich-select/src/richSelect/richSelectCellEditor.ts
var import_core = require("@ag-grid-community/core");
var import_core2 = require("@ag-grid-enterprise/core");
var RichSelectCellEditor = class extends import_core.PopupComponent {

@@ -42,8 +43,8 @@ constructor() {

this.params = params;
const { cellStartedEdit, cellHeight, values } = params;
if (import_core._.missing(values)) {
console.warn("AG Grid: agRichSelectCellEditor requires cellEditorParams.values to be set");
const { cellStartedEdit, values } = params;
if ((0, import_core._missing)(values)) {
(0, import_core._warnOnce)("agRichSelectCellEditor requires cellEditorParams.values to be set");
}
const { params: richSelectParams, valuesPromise } = this.buildRichSelectParams();
this.richSelect = this.createManagedBean(new import_core.AgRichSelect(richSelectParams));
this.richSelect = this.createManagedBean(new import_core2.AgRichSelect(richSelectParams));
this.richSelect.addCssClass("ag-cell-editor");

@@ -60,21 +61,14 @@ this.appendChild(this.richSelect);

}
this.addManagedListener(this.richSelect, import_core.Events.EVENT_FIELD_PICKER_VALUE_SELECTED, this.onEditorPickerValueSelected.bind(this));
this.addManagedListener(this.richSelect.getGui(), "focusout", this.onEditorFocusOut.bind(this));
this.addManagedListeners(this.richSelect, {
fieldPickerValueSelected: this.onEditorPickerValueSelected.bind(this)
});
this.focusAfterAttached = cellStartedEdit;
if (import_core._.exists(cellHeight)) {
this.richSelect.setRowHeight(cellHeight);
}
}
onEditorPickerValueSelected(e) {
this.params.stopEditing(!e.fromEnterKey);
setTimeout(() => this.params.stopEditing(!e.fromEnterKey));
}
onEditorFocusOut(e) {
if (this.richSelect.getGui().contains(e.relatedTarget)) {
return;
}
this.params.stopEditing(true);
}
buildRichSelectParams() {
const {
cellRenderer,
cellHeight,
value,

@@ -92,3 +86,6 @@ values,

valuePlaceholder,
eventKey
eventKey,
multiSelect,
suppressDeselectAll,
suppressMultiSelectPillRenderer
} = this.params;

@@ -98,2 +95,3 @@ const ret = {

cellRenderer,
cellRowHeight: cellHeight,
searchDebounceDelay,

@@ -112,3 +110,6 @@ valueFormatter: formatValue,

placeholder: valuePlaceholder,
initialInputValue: (eventKey == null ? void 0 : eventKey.length) === 1 ? eventKey : void 0
initialInputValue: eventKey?.length === 1 ? eventKey : void 0,
multiSelect,
suppressDeselectAll,
suppressMultiSelectPillRenderer
};

@@ -120,3 +121,3 @@ let valuesResult;

} else {
valuesResult = values != null ? values : [];
valuesResult = values ?? [];
}

@@ -129,2 +130,8 @@ if (Array.isArray(valuesResult)) {

}
if (multiSelect && allowTyping) {
this.params.allowTyping = ret.allowTyping = false;
(0, import_core._warnOnce)(
"agRichSelectCellEditor cannot have `multiSelect` and `allowTyping` set to `true`. AllowTyping has been turned off."
);
}
return { params: ret, valuesPromise };

@@ -167,3 +174,3 @@ }

if (eventKey) {
if ((eventKey == null ? void 0 : eventKey.length) === 1) {
if (eventKey?.length === 1) {
this.richSelect.searchTextFromString(eventKey);

@@ -174,2 +181,5 @@ }

}
focusIn() {
this.richSelect.getFocusableElement().focus();
}
getValue() {

@@ -184,3 +194,3 @@ return this.richSelect.getValue();

// enterprise-modules/rich-select/src/version.ts
var VERSION = "31.3.2";
var VERSION = "32.0.0";

@@ -190,11 +200,9 @@ // enterprise-modules/rich-select/src/richSelectModule.ts

version: VERSION,
moduleName: import_core2.ModuleNames.RichSelectModule,
moduleName: import_core3.ModuleNames.RichSelectModule,
beans: [],
userComponents: [
{ componentName: "agRichSelect", componentClass: RichSelectCellEditor },
{ componentName: "agRichSelectCellEditor", componentClass: RichSelectCellEditor }
{ name: "agRichSelect", classImp: RichSelectCellEditor },
{ name: "agRichSelectCellEditor", classImp: RichSelectCellEditor }
],
dependantModules: [
import_core3.EnterpriseCoreModule
]
dependantModules: [import_core4.EnterpriseCoreModule, import_core3._EditCoreModule]
};

@@ -1,1 +0,1 @@

var __defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__hasOwnProp=Object.prototype.hasOwnProperty,__export=(e,r)=>{for(var t in r)__defProp(e,t,{get:r[t],enumerable:!0})},__copyProps=(e,r,t,a)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of __getOwnPropNames(r))!__hasOwnProp.call(e,i)&&i!==t&&__defProp(e,i,{get:()=>r[i],enumerable:!(a=__getOwnPropDesc(r,i))||a.enumerable});return e},__toCommonJS=e=>__copyProps(__defProp({},"__esModule",{value:!0}),e),main_exports={};__export(main_exports,{RichSelectModule:()=>RichSelectModule}),module.exports=__toCommonJS(main_exports);var import_core2=require("@ag-grid-community/core"),import_core3=require("@ag-grid-enterprise/core"),import_core=require("@ag-grid-community/core"),RichSelectCellEditor=class extends import_core.PopupComponent{constructor(){super('<div class="ag-cell-edit-wrapper"></div>')}init(e){this.params=e;const{cellStartedEdit:r,cellHeight:t,values:a}=e;import_core._.missing(a)&&console.warn("AG Grid: agRichSelectCellEditor requires cellEditorParams.values to be set");const{params:i,valuesPromise:s}=this.buildRichSelectParams();this.richSelect=this.createManagedBean(new import_core.AgRichSelect(i)),this.richSelect.addCssClass("ag-cell-editor"),this.appendChild(this.richSelect),s&&s.then(l=>{this.richSelect.setValueList({valueList:l,refresh:!0});const o=this.getSearchStringCallback(l);o&&this.richSelect.setSearchStringCreator(o)}),this.addManagedListener(this.richSelect,import_core.Events.EVENT_FIELD_PICKER_VALUE_SELECTED,this.onEditorPickerValueSelected.bind(this)),this.addManagedListener(this.richSelect.getGui(),"focusout",this.onEditorFocusOut.bind(this)),this.focusAfterAttached=r,import_core._.exists(t)&&this.richSelect.setRowHeight(t)}onEditorPickerValueSelected(e){this.params.stopEditing(!e.fromEnterKey)}onEditorFocusOut(e){this.richSelect.getGui().contains(e.relatedTarget)||this.params.stopEditing(!0)}buildRichSelectParams(){const{cellRenderer:e,value:r,values:t,formatValue:a,searchDebounceDelay:i,valueListGap:s,valueListMaxHeight:l,valueListMaxWidth:o,allowTyping:d,filterList:p,searchType:m,highlightMatch:g,valuePlaceholder:S,eventKey:n}=this.params,h={value:r,cellRenderer:e,searchDebounceDelay:i,valueFormatter:a,pickerAriaLabelKey:"ariaLabelRichSelectField",pickerAriaLabelValue:"Rich Select Field",pickerType:"virtual-list",pickerGap:s,allowTyping:d,filterList:p,searchType:m,highlightMatch:g,maxPickerHeight:l,maxPickerWidth:o,placeholder:S,initialInputValue:n?.length===1?n:void 0};let c,u;return typeof t=="function"?c=t(this.params):c=t??[],Array.isArray(c)?(h.valueList=c,h.searchStringCreator=this.getSearchStringCallback(c)):u=c,{params:h,valuesPromise:u}}getSearchStringCallback(e){const{colDef:r}=this.params;if(!(typeof e[0]!="object"||!r.keyCreator))return t=>t.map(a=>{const i=this.gos.addGridCommonParams({value:a,colDef:this.params.colDef,column:this.params.column,node:this.params.node,data:this.params.data});return r.keyCreator(i)})}afterGuiAttached(){const{focusAfterAttached:e,params:r}=this;setTimeout(()=>{if(!this.isAlive())return;if(e){const a=this.richSelect.getFocusableElement();a.focus();const{allowTyping:i,eventKey:s}=this.params;i&&(!s||s.length!==1)&&a.select()}this.richSelect.showPicker();const{eventKey:t}=r;t&&t?.length===1&&this.richSelect.searchTextFromString(t)})}getValue(){return this.richSelect.getValue()}isPopup(){return!1}},VERSION="31.3.2",RichSelectModule={version:VERSION,moduleName:import_core2.ModuleNames.RichSelectModule,beans:[],userComponents:[{componentName:"agRichSelect",componentClass:RichSelectCellEditor},{componentName:"agRichSelectCellEditor",componentClass:RichSelectCellEditor}],dependantModules:[import_core3.EnterpriseCoreModule]};
var __defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__hasOwnProp=Object.prototype.hasOwnProperty,__export=(e,t)=>{for(var r in t)__defProp(e,r,{get:t[r],enumerable:!0})},__copyProps=(e,t,r,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of __getOwnPropNames(t))!__hasOwnProp.call(e,i)&&i!==r&&__defProp(e,i,{get:()=>t[i],enumerable:!(a=__getOwnPropDesc(t,i))||a.enumerable});return e},__toCommonJS=e=>__copyProps(__defProp({},"__esModule",{value:!0}),e),main_exports={};__export(main_exports,{RichSelectModule:()=>RichSelectModule}),module.exports=__toCommonJS(main_exports);var import_core3=require("@ag-grid-community/core"),import_core4=require("@ag-grid-enterprise/core"),import_core=require("@ag-grid-community/core"),import_core2=require("@ag-grid-enterprise/core"),RichSelectCellEditor=class extends import_core.PopupComponent{constructor(){super('<div class="ag-cell-edit-wrapper"></div>')}init(e){this.params=e;const{cellStartedEdit:t,values:r}=e;(0,import_core._missing)(r)&&(0,import_core._warnOnce)("agRichSelectCellEditor requires cellEditorParams.values to be set");const{params:a,valuesPromise:i}=this.buildRichSelectParams();this.richSelect=this.createManagedBean(new import_core2.AgRichSelect(a)),this.richSelect.addCssClass("ag-cell-editor"),this.appendChild(this.richSelect),i&&i.then(l=>{this.richSelect.setValueList({valueList:l,refresh:!0});const c=this.getSearchStringCallback(l);c&&this.richSelect.setSearchStringCreator(c)}),this.addManagedListeners(this.richSelect,{fieldPickerValueSelected:this.onEditorPickerValueSelected.bind(this)}),this.focusAfterAttached=t}onEditorPickerValueSelected(e){setTimeout(()=>this.params.stopEditing(!e.fromEnterKey))}buildRichSelectParams(){const{cellRenderer:e,cellHeight:t,value:r,values:a,formatValue:i,searchDebounceDelay:l,valueListGap:c,valueListMaxHeight:d,valueListMaxWidth:m,allowTyping:n,filterList:g,searchType:S,highlightMatch:f,valuePlaceholder:v,eventKey:h,multiSelect:u,suppressDeselectAll:y,suppressMultiSelectPillRenderer:P}=this.params,o={value:r,cellRenderer:e,cellRowHeight:t,searchDebounceDelay:l,valueFormatter:i,pickerAriaLabelKey:"ariaLabelRichSelectField",pickerAriaLabelValue:"Rich Select Field",pickerType:"virtual-list",pickerGap:c,allowTyping:n,filterList:g,searchType:S,highlightMatch:f,maxPickerHeight:d,maxPickerWidth:m,placeholder:v,initialInputValue:h?.length===1?h:void 0,multiSelect:u,suppressDeselectAll:y,suppressMultiSelectPillRenderer:P};let s,p;return typeof a=="function"?s=a(this.params):s=a??[],Array.isArray(s)?(o.valueList=s,o.searchStringCreator=this.getSearchStringCallback(s)):p=s,u&&n&&(this.params.allowTyping=o.allowTyping=!1,(0,import_core._warnOnce)("agRichSelectCellEditor cannot have `multiSelect` and `allowTyping` set to `true`. AllowTyping has been turned off.")),{params:o,valuesPromise:p}}getSearchStringCallback(e){const{colDef:t}=this.params;if(!(typeof e[0]!="object"||!t.keyCreator))return r=>r.map(a=>{const i=this.gos.addGridCommonParams({value:a,colDef:this.params.colDef,column:this.params.column,node:this.params.node,data:this.params.data});return t.keyCreator(i)})}afterGuiAttached(){const{focusAfterAttached:e,params:t}=this;setTimeout(()=>{if(!this.isAlive())return;if(e){const a=this.richSelect.getFocusableElement();a.focus();const{allowTyping:i,eventKey:l}=this.params;i&&(!l||l.length!==1)&&a.select()}this.richSelect.showPicker();const{eventKey:r}=t;r&&r?.length===1&&this.richSelect.searchTextFromString(r)})}focusIn(){this.richSelect.getFocusableElement().focus()}getValue(){return this.richSelect.getValue()}isPopup(){return!1}},VERSION="32.0.0",RichSelectModule={version:VERSION,moduleName:import_core3.ModuleNames.RichSelectModule,beans:[],userComponents:[{name:"agRichSelect",classImp:RichSelectCellEditor},{name:"agRichSelectCellEditor",classImp:RichSelectCellEditor}],dependantModules:[import_core4.EnterpriseCoreModule,import_core3._EditCoreModule]};
{
"name": "@ag-grid-enterprise/rich-select",
"version": "31.3.2",
"version": "32.0.0",
"description": "Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue",

@@ -14,5 +14,6 @@ "main": "./dist/package/main.cjs.js",

},
"sideEffects": false,
"dependencies": {
"@ag-grid-community/core": "31.3.2",
"@ag-grid-enterprise/core": "31.3.2"
"@ag-grid-community/core": "32.0.0",
"@ag-grid-enterprise/core": "32.0.0"
},

@@ -19,0 +20,0 @@ "devDependencies": {

{
"name": "@ag-grid-enterprise/rich-select",
"version": "31.3.2",
"version": "32.0.0",
"description": "Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue",

@@ -14,5 +14,6 @@ "main": "./src/main.js",

},
"sideEffects": false,
"dependencies": {
"@ag-grid-community/core": "31.3.2",
"@ag-grid-enterprise/core": "31.3.2"
"@ag-grid-community/core": "32.0.0",
"@ag-grid-enterprise/core": "32.0.0"
},

@@ -19,0 +20,0 @@ "devDependencies": {

@@ -1,1 +0,1 @@

export { RichSelectModule } from "./richSelectModule";
export { RichSelectModule } from './richSelectModule';

@@ -1,2 +0,3 @@

import { ICellEditor, PopupComponent, RichCellEditorParams } from "@ag-grid-community/core";
import type { ICellEditor, RichCellEditorParams } from '@ag-grid-community/core';
import { PopupComponent } from '@ag-grid-community/core';
export declare class RichSelectCellEditor<TData = any, TValue = any> extends PopupComponent implements ICellEditor<TValue> {

@@ -9,8 +10,8 @@ private params;

private onEditorPickerValueSelected;
private onEditorFocusOut;
private buildRichSelectParams;
private getSearchStringCallback;
afterGuiAttached(): void;
focusIn(): void;
getValue(): any;
isPopup(): boolean;
}

@@ -1,2 +0,2 @@

import { Module } from "@ag-grid-community/core";
import type { Module } from '@ag-grid-community/core';
export declare const RichSelectModule: Module;

@@ -1,1 +0,1 @@

export declare const VERSION = "31.3.2";
export declare const VERSION = "32.0.0";
{
"name": "@ag-grid-enterprise/rich-select",
"version": "31.3.2",
"version": "32.0.0",
"description": "Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue",

@@ -14,5 +14,6 @@ "main": "./dist/package/main.cjs.js",

},
"sideEffects": false,
"dependencies": {
"@ag-grid-community/core": "31.3.2",
"@ag-grid-enterprise/core": "31.3.2"
"@ag-grid-community/core": "32.0.0",
"@ag-grid-enterprise/core": "32.0.0"
},

@@ -19,0 +20,0 @@ "devDependencies": {

@@ -1,3 +0,2 @@

AG Grid Enterprise
==============
# AG Grid Enterprise

@@ -8,4 +7,4 @@ This project contains AG Grid Enterprise features.

Frameworks Supported
====================
# Frameworks Supported
Framework specific Getting Started guides:

@@ -21,4 +20,3 @@

Issue Reporting
==============
# Issue Reporting

@@ -29,2 +27,1 @@ If you are an Enterprise customer (or are evaluating AG Grid Enterprise) and wish to report a Bug or raise a new Feature Request please do so on our [Support Portal](https://ag-grid.zendesk.com/).

Send an email to accounts@ag-grid.com with your license key

@@ -1,2 +0,1 @@

Support and Maintenance document is now merged into the licence document. Please see the licence.

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