Socket
Socket
Sign inDemoInstall

@ag-grid-enterprise/rich-select

Package Overview
Dependencies
2
Maintainers
3
Versions
62
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 26.1.0 to 26.2.0

5

dist/cjs/richSelect/richSelectCellEditor.js

@@ -164,4 +164,5 @@ "use strict";

};
var promise = this.userComponentFactory.newCellRenderer(this.params, params);
if (core_1._.exists(promise)) {
var compDetails = this.userComponentFactory.getCellRendererDetails(this.params, params);
var promise = compDetails ? compDetails.newAgStackInstance() : undefined;
if (promise) {
core_1._.bindCellRendererToHtmlElement(promise, eValue);

@@ -168,0 +169,0 @@ promise.then(function (renderer) {

3

dist/cjs/richSelect/richSelectRow.js

@@ -58,3 +58,4 @@ "use strict";

};
var cellRendererPromise = this.userComponentFactory.newCellRenderer(this.params, params);
var compDetails = this.userComponentFactory.getCellRendererDetails(this.params, params);
var cellRendererPromise = compDetails ? compDetails.newAgStackInstance() : undefined;
if (cellRendererPromise != null) {

@@ -61,0 +62,0 @@ core_1._.bindCellRendererToHtmlElement(cellRendererPromise, this.getGui());

@@ -162,4 +162,5 @@ var __extends = (this && this.__extends) || (function () {

};
var promise = this.userComponentFactory.newCellRenderer(this.params, params);
if (_.exists(promise)) {
var compDetails = this.userComponentFactory.getCellRendererDetails(this.params, params);
var promise = compDetails ? compDetails.newAgStackInstance() : undefined;
if (promise) {
_.bindCellRendererToHtmlElement(promise, eValue);

@@ -166,0 +167,0 @@ promise.then(function (renderer) {

@@ -56,3 +56,4 @@ var __extends = (this && this.__extends) || (function () {

};
var cellRendererPromise = this.userComponentFactory.newCellRenderer(this.params, params);
var compDetails = this.userComponentFactory.getCellRendererDetails(this.params, params);
var cellRendererPromise = compDetails ? compDetails.newAgStackInstance() : undefined;
if (cellRendererPromise != null) {

@@ -59,0 +60,0 @@ _.bindCellRendererToHtmlElement(cellRendererPromise, this.getGui());

/**
* @ag-grid-enterprise/rich-select - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components * @version v26.1.0
* @ag-grid-enterprise/rich-select - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components * @version v26.2.0
* @link http://www.ag-grid.com/

@@ -68,3 +68,4 @@ ' * @license Commercial

};
var cellRendererPromise = this.userComponentFactory.newCellRenderer(this.params, params);
var compDetails = this.userComponentFactory.getCellRendererDetails(this.params, params);
var cellRendererPromise = compDetails ? compDetails.newAgStackInstance() : undefined;
if (cellRendererPromise != null) {

@@ -251,4 +252,5 @@ core._.bindCellRendererToHtmlElement(cellRendererPromise, this.getGui());

};
var promise = this.userComponentFactory.newCellRenderer(this.params, params);
if (core._.exists(promise)) {
var compDetails = this.userComponentFactory.getCellRendererDetails(this.params, params);
var promise = compDetails ? compDetails.newAgStackInstance() : undefined;
if (promise) {
core._.bindCellRendererToHtmlElement(promise, eValue);

@@ -255,0 +257,0 @@ promise.then(function (renderer) {

/**
* @ag-grid-enterprise/rich-select - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components * @version v26.1.0
* @ag-grid-enterprise/rich-select - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components * @version v26.2.0
* @link http://www.ag-grid.com/

@@ -8,6 +8,6 @@ ' * @license Commercial

/**
* @ag-grid-enterprise/rich-select - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components * @version v26.1.0
* @ag-grid-enterprise/rich-select - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components * @version v26.2.0
* @link http://www.ag-grid.com/
' * @license Commercial
*/
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e,t=require("@ag-grid-community/core"),r=require("@ag-grid-enterprise/core"),i=(e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(t,r)},function(t,r){function i(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(i.prototype=r.prototype,new i)}),o=function(e,t,r,i){var o,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(n<3?o(s):n>3?o(t,r,s):o(t,r))||s);return n>3&&s&&Object.defineProperty(t,r,s),s},n=function(e){function r(t){var r=e.call(this,'<div class="ag-rich-select-row"></div>')||this;return r.params=t,r}return i(r,e),r.prototype.setState=function(e,r,i){this.populateWithRenderer(e,r)||this.populateWithoutRenderer(e,r),t._.addOrRemoveCssClass(this.getGui(),"ag-rich-select-row-selected",i)},r.prototype.populateWithoutRenderer=function(e,r){var i=null!=r?r:e;t._.exists(i)&&""!==i?this.getGui().textContent=i.toString():this.getGui().innerHTML="&nbsp;"},r.prototype.populateWithRenderer=function(e,r){var i=this,o={value:e,valueFormatted:r,api:this.gridOptionsWrapper.getApi()},n=this.userComponentFactory.newCellRenderer(this.params,o);return null!=n?t._.bindCellRendererToHtmlElement(n,this.getGui()):this.getGui().innerText=null!=o.valueFormatted?o.valueFormatted:o.value,!!n&&(n.then((function(e){i.addDestroyFunc((function(){i.getContext().destroyBean(e)}))})),!0)},o([t.Autowired("userComponentFactory")],r.prototype,"userComponentFactory",void 0),r}(t.Component),s=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(t,r)};return function(t,r){function i(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(i.prototype=r.prototype,new i)}}(),a=function(e,t,r,i){var o,n=arguments.length,s=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(n<3?o(s):n>3?o(t,r,s):o(t,r))||s);return n>3&&s&&Object.defineProperty(t,r,s),s},c=function(e){function r(){var t=e.call(this,r.TEMPLATE)||this;return t.selectionConfirmed=!1,t.searchString="",t}return s(r,e),r.prototype.init=function(e){this.params=e,this.selectedValue=e.value,this.originalSelectedValue=e.value,this.focusAfterAttached=e.cellStartedEdit;var r=t._.createIconNoSpan("smallDown",this.gridOptionsWrapper);if(t._.addCssClass(r,"ag-rich-select-value-icon"),this.eValue.appendChild(r),this.virtualList=this.getContext().createBean(new t.VirtualList("rich-select")),this.virtualList.setComponentCreator(this.createRowComponent.bind(this)),this.eList.appendChild(this.virtualList.getGui()),t._.exists(this.params.cellHeight)&&this.virtualList.setRowHeight(this.params.cellHeight),this.renderSelectedValue(),t._.missing(e.values))console.warn("AG Grid: richSelectCellEditor requires values for it to work");else{var i=e.values;this.virtualList.setModel({getRowCount:function(){return i.length},getRow:function(e){return i[e]}}),this.addGuiEventListener("keydown",this.onKeyDown.bind(this));var o=this.virtualList.getGui();this.addManagedListener(o,"click",this.onClick.bind(this)),this.addManagedListener(o,"mousemove",this.onMouseMove.bind(this));var n=t._.exists(e.searchDebounceDelay)?e.searchDebounceDelay:300;this.clearSearchString=t._.debounce(this.clearSearchString,n),t._.exists(e.charPress)&&this.searchText(e.charPress)}},r.prototype.onKeyDown=function(e){var r=e.keyCode;switch(e.preventDefault(),r){case t.KeyCode.ENTER:this.onEnterKeyDown();break;case t.KeyCode.TAB:this.confirmSelection();break;case t.KeyCode.DOWN:case t.KeyCode.UP:this.onNavigationKeyPressed(e,r);break;default:this.searchText(e)}},r.prototype.confirmSelection=function(){this.selectionConfirmed=!0},r.prototype.onEnterKeyDown=function(){this.confirmSelection(),this.params.stopEditing()},r.prototype.onNavigationKeyPressed=function(e,r){e.preventDefault();var i=this.params.values.indexOf(this.selectedValue),o=r===t.KeyCode.UP?i-1:i+1;if(o>=0&&o<this.params.values.length){var n=this.params.values[o];this.setSelectedValue(n)}},r.prototype.searchText=function(e){if("string"==typeof e)this.searchString+=e,this.runSearch(),this.clearSearchString();else{var r=e.keyCode,i=e.key;if(r===t.KeyCode.BACKSPACE)this.searchString=this.searchString.slice(0,-1),i="";else if(!t._.isEventFromPrintableCharacter(e))return;this.searchText(i)}},r.prototype.runSearch=function(){var e,r=this,i=this.params.values;if("number"!=typeof i[0]&&"string"!=typeof i[0]||(e=i.map(String)),"object"==typeof i[0]&&this.params.colDef.keyCreator&&(e=i.map((function(e){var t={value:e,colDef:r.params.colDef,column:r.params.column,node:r.params.node,data:r.params.data,api:r.gridOptionsWrapper.getApi(),columnApi:r.gridOptionsWrapper.getColumnApi(),context:r.gridOptionsWrapper.getContext()};return r.params.colDef.keyCreator(t)}))),e){var o=t._.fuzzySuggestions(this.searchString,e,!0,!0)[0];if(o){var n=i[e.indexOf(o)];this.setSelectedValue(n)}}},r.prototype.clearSearchString=function(){this.searchString=""},r.prototype.renderSelectedValue=function(){var e=this,r=this.params.formatValue(this.selectedValue),i=this.eValue,o={value:this.selectedValue,valueFormatted:r,api:this.gridOptionsWrapper.getApi()},n=this.userComponentFactory.newCellRenderer(this.params,o);t._.exists(n)?(t._.bindCellRendererToHtmlElement(n,i),n.then((function(t){e.addDestroyFunc((function(){return e.getContext().destroyBean(t)}))}))):t._.exists(this.selectedValue)?i.innerHTML=r:t._.clearElement(i)},r.prototype.setSelectedValue=function(e){if(this.selectedValue!==e){var t=this.params.values.indexOf(e);-1!==t&&(this.selectedValue=e,this.virtualList.ensureIndexVisible(t),this.virtualList.refresh())}},r.prototype.createRowComponent=function(e){var t=this.params.formatValue(e),r=new n(this.params);return this.getContext().createBean(r),r.setState(e,t,e===this.selectedValue),r},r.prototype.onMouseMove=function(e){var t=this.virtualList.getGui().getBoundingClientRect(),r=this.virtualList.getScrollTop(),i=e.clientY-t.top+r,o=Math.floor(i/this.virtualList.getRowHeight()),n=this.params.values[o];void 0!==n&&this.setSelectedValue(n)},r.prototype.onClick=function(){this.confirmSelection(),this.params.stopEditing()},r.prototype.afterGuiAttached=function(){var e=this.params.values.indexOf(this.selectedValue);this.virtualList.refresh(),e>=0&&this.virtualList.ensureIndexVisible(e),this.virtualList.refresh(),this.focusAfterAttached&&this.getGui().focus()},r.prototype.getValue=function(){return this.selectionConfirmed?this.selectedValue:this.originalSelectedValue},r.TEMPLATE='<div class="ag-rich-select" tabindex="-1">\n <div ref="eValue" class="ag-rich-select-value"></div>\n <div ref="eList" class="ag-rich-select-list"></div>\n </div>',a([t.Autowired("userComponentFactory")],r.prototype,"userComponentFactory",void 0),a([t.RefSelector("eValue")],r.prototype,"eValue",void 0),a([t.RefSelector("eList")],r.prototype,"eList",void 0),r}(t.PopupComponent),l={moduleName:t.ModuleNames.RichSelectModule,beans:[],userComponents:[{componentName:"agRichSelect",componentClass:c},{componentName:"agRichSelectCellEditor",componentClass:c}],dependantModules:[r.EnterpriseCoreModule]};exports.RichSelectModule=l;
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e,t=require("@ag-grid-community/core"),i=require("@ag-grid-enterprise/core"),r=(e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(t,i)},function(t,i){function r(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}),o=function(e,t,i,r){var o,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(n<3?o(s):n>3?o(t,i,s):o(t,i))||s);return n>3&&s&&Object.defineProperty(t,i,s),s},n=function(e){function i(t){var i=e.call(this,'<div class="ag-rich-select-row"></div>')||this;return i.params=t,i}return r(i,e),i.prototype.setState=function(e,i,r){this.populateWithRenderer(e,i)||this.populateWithoutRenderer(e,i),t._.addOrRemoveCssClass(this.getGui(),"ag-rich-select-row-selected",r)},i.prototype.populateWithoutRenderer=function(e,i){var r=null!=i?i:e;t._.exists(r)&&""!==r?this.getGui().textContent=r.toString():this.getGui().innerHTML="&nbsp;"},i.prototype.populateWithRenderer=function(e,i){var r=this,o={value:e,valueFormatted:i,api:this.gridOptionsWrapper.getApi()},n=this.userComponentFactory.getCellRendererDetails(this.params,o),s=n?n.newAgStackInstance():void 0;return null!=s?t._.bindCellRendererToHtmlElement(s,this.getGui()):this.getGui().innerText=null!=o.valueFormatted?o.valueFormatted:o.value,!!s&&(s.then((function(e){r.addDestroyFunc((function(){r.getContext().destroyBean(e)}))})),!0)},o([t.Autowired("userComponentFactory")],i.prototype,"userComponentFactory",void 0),i}(t.Component),s=function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(t,i)};return function(t,i){function r(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),a=function(e,t,i,r){var o,n=arguments.length,s=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(n<3?o(s):n>3?o(t,i,s):o(t,i))||s);return n>3&&s&&Object.defineProperty(t,i,s),s},c=function(e){function i(){var t=e.call(this,i.TEMPLATE)||this;return t.selectionConfirmed=!1,t.searchString="",t}return s(i,e),i.prototype.init=function(e){this.params=e,this.selectedValue=e.value,this.originalSelectedValue=e.value,this.focusAfterAttached=e.cellStartedEdit;var i=t._.createIconNoSpan("smallDown",this.gridOptionsWrapper);if(t._.addCssClass(i,"ag-rich-select-value-icon"),this.eValue.appendChild(i),this.virtualList=this.getContext().createBean(new t.VirtualList("rich-select")),this.virtualList.setComponentCreator(this.createRowComponent.bind(this)),this.eList.appendChild(this.virtualList.getGui()),t._.exists(this.params.cellHeight)&&this.virtualList.setRowHeight(this.params.cellHeight),this.renderSelectedValue(),t._.missing(e.values))console.warn("AG Grid: richSelectCellEditor requires values for it to work");else{var r=e.values;this.virtualList.setModel({getRowCount:function(){return r.length},getRow:function(e){return r[e]}}),this.addGuiEventListener("keydown",this.onKeyDown.bind(this));var o=this.virtualList.getGui();this.addManagedListener(o,"click",this.onClick.bind(this)),this.addManagedListener(o,"mousemove",this.onMouseMove.bind(this));var n=t._.exists(e.searchDebounceDelay)?e.searchDebounceDelay:300;this.clearSearchString=t._.debounce(this.clearSearchString,n),t._.exists(e.charPress)&&this.searchText(e.charPress)}},i.prototype.onKeyDown=function(e){var i=e.keyCode;switch(e.preventDefault(),i){case t.KeyCode.ENTER:this.onEnterKeyDown();break;case t.KeyCode.TAB:this.confirmSelection();break;case t.KeyCode.DOWN:case t.KeyCode.UP:this.onNavigationKeyPressed(e,i);break;default:this.searchText(e)}},i.prototype.confirmSelection=function(){this.selectionConfirmed=!0},i.prototype.onEnterKeyDown=function(){this.confirmSelection(),this.params.stopEditing()},i.prototype.onNavigationKeyPressed=function(e,i){e.preventDefault();var r=this.params.values.indexOf(this.selectedValue),o=i===t.KeyCode.UP?r-1:r+1;if(o>=0&&o<this.params.values.length){var n=this.params.values[o];this.setSelectedValue(n)}},i.prototype.searchText=function(e){if("string"==typeof e)this.searchString+=e,this.runSearch(),this.clearSearchString();else{var i=e.keyCode,r=e.key;if(i===t.KeyCode.BACKSPACE)this.searchString=this.searchString.slice(0,-1),r="";else if(!t._.isEventFromPrintableCharacter(e))return;this.searchText(r)}},i.prototype.runSearch=function(){var e,i=this,r=this.params.values;if("number"!=typeof r[0]&&"string"!=typeof r[0]||(e=r.map(String)),"object"==typeof r[0]&&this.params.colDef.keyCreator&&(e=r.map((function(e){var t={value:e,colDef:i.params.colDef,column:i.params.column,node:i.params.node,data:i.params.data,api:i.gridOptionsWrapper.getApi(),columnApi:i.gridOptionsWrapper.getColumnApi(),context:i.gridOptionsWrapper.getContext()};return i.params.colDef.keyCreator(t)}))),e){var o=t._.fuzzySuggestions(this.searchString,e,!0,!0)[0];if(o){var n=r[e.indexOf(o)];this.setSelectedValue(n)}}},i.prototype.clearSearchString=function(){this.searchString=""},i.prototype.renderSelectedValue=function(){var e=this,i=this.params.formatValue(this.selectedValue),r=this.eValue,o={value:this.selectedValue,valueFormatted:i,api:this.gridOptionsWrapper.getApi()},n=this.userComponentFactory.getCellRendererDetails(this.params,o),s=n?n.newAgStackInstance():void 0;s?(t._.bindCellRendererToHtmlElement(s,r),s.then((function(t){e.addDestroyFunc((function(){return e.getContext().destroyBean(t)}))}))):t._.exists(this.selectedValue)?r.innerHTML=i:t._.clearElement(r)},i.prototype.setSelectedValue=function(e){if(this.selectedValue!==e){var t=this.params.values.indexOf(e);-1!==t&&(this.selectedValue=e,this.virtualList.ensureIndexVisible(t),this.virtualList.refresh())}},i.prototype.createRowComponent=function(e){var t=this.params.formatValue(e),i=new n(this.params);return this.getContext().createBean(i),i.setState(e,t,e===this.selectedValue),i},i.prototype.onMouseMove=function(e){var t=this.virtualList.getGui().getBoundingClientRect(),i=this.virtualList.getScrollTop(),r=e.clientY-t.top+i,o=Math.floor(r/this.virtualList.getRowHeight()),n=this.params.values[o];void 0!==n&&this.setSelectedValue(n)},i.prototype.onClick=function(){this.confirmSelection(),this.params.stopEditing()},i.prototype.afterGuiAttached=function(){var e=this.params.values.indexOf(this.selectedValue);this.virtualList.refresh(),e>=0&&this.virtualList.ensureIndexVisible(e),this.virtualList.refresh(),this.focusAfterAttached&&this.getGui().focus()},i.prototype.getValue=function(){return this.selectionConfirmed?this.selectedValue:this.originalSelectedValue},i.TEMPLATE='<div class="ag-rich-select" tabindex="-1">\n <div ref="eValue" class="ag-rich-select-value"></div>\n <div ref="eList" class="ag-rich-select-list"></div>\n </div>',a([t.Autowired("userComponentFactory")],i.prototype,"userComponentFactory",void 0),a([t.RefSelector("eValue")],i.prototype,"eValue",void 0),a([t.RefSelector("eList")],i.prototype,"eList",void 0),i}(t.PopupComponent),l={moduleName:t.ModuleNames.RichSelectModule,beans:[],userComponents:[{componentName:"agRichSelect",componentClass:c},{componentName:"agRichSelectCellEditor",componentClass:c}],dependantModules:[i.EnterpriseCoreModule]};exports.RichSelectModule=l;
{
"name": "@ag-grid-enterprise/rich-select",
"version": "26.1.0",
"version": "26.2.0",
"description": "Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components",

@@ -45,4 +45,4 @@ "main": "./dist/cjs/main.js",

"dependencies": {
"@ag-grid-community/core": "~26.1.0",
"@ag-grid-enterprise/core": "~26.1.0"
"@ag-grid-community/core": "~26.2.0",
"@ag-grid-enterprise/core": "~26.2.0"
},

@@ -49,0 +49,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 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

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc