@ag-grid-enterprise/rich-select
Advanced tools
Comparing version 27.3.0 to 28.0.0
@@ -190,3 +190,5 @@ "use strict"; | ||
this.virtualList.ensureIndexVisible(index); | ||
this.virtualList.refresh(); | ||
this.virtualList.forEachRenderedRow(function (cmp, idx) { | ||
cmp.updateSelected(index === idx); | ||
}); | ||
}; | ||
@@ -193,0 +195,0 @@ RichSelectCellEditor.prototype.createRowComponent = function (value) { |
@@ -7,4 +7,5 @@ import { Component, IRichCellEditorParams } from "@ag-grid-community/core"; | ||
setState(value: any, valueFormatted: string, selected: boolean): void; | ||
updateSelected(selected: boolean): void; | ||
private populateWithoutRenderer; | ||
private populateWithRenderer; | ||
} |
@@ -35,2 +35,5 @@ "use strict"; | ||
} | ||
this.updateSelected(selected); | ||
}; | ||
RichSelectRow.prototype.updateSelected = function (selected) { | ||
this.addOrRemoveCssClass('ag-rich-select-row-selected', selected); | ||
@@ -37,0 +40,0 @@ }; |
@@ -173,3 +173,5 @@ "use strict"; | ||
this.virtualList.ensureIndexVisible(index); | ||
this.virtualList.refresh(); | ||
this.virtualList.forEachRenderedRow((cmp, idx) => { | ||
cmp.updateSelected(index === idx); | ||
}); | ||
} | ||
@@ -176,0 +178,0 @@ createRowComponent(value) { |
@@ -7,4 +7,5 @@ import { Component, IRichCellEditorParams } from "@ag-grid-community/core"; | ||
setState(value: any, valueFormatted: string, selected: boolean): void; | ||
updateSelected(selected: boolean): void; | ||
private populateWithoutRenderer; | ||
private populateWithRenderer; | ||
} |
@@ -20,2 +20,5 @@ "use strict"; | ||
} | ||
this.updateSelected(selected); | ||
} | ||
updateSelected(selected) { | ||
this.addOrRemoveCssClass('ag-rich-select-row-selected', selected); | ||
@@ -22,0 +25,0 @@ } |
@@ -188,3 +188,5 @@ var __extends = (this && this.__extends) || (function () { | ||
this.virtualList.ensureIndexVisible(index); | ||
this.virtualList.refresh(); | ||
this.virtualList.forEachRenderedRow(function (cmp, idx) { | ||
cmp.updateSelected(index === idx); | ||
}); | ||
}; | ||
@@ -191,0 +193,0 @@ RichSelectCellEditor.prototype.createRowComponent = function (value) { |
@@ -7,4 +7,5 @@ import { Component, IRichCellEditorParams } from "@ag-grid-community/core"; | ||
setState(value: any, valueFormatted: string, selected: boolean): void; | ||
updateSelected(selected: boolean): void; | ||
private populateWithoutRenderer; | ||
private populateWithRenderer; | ||
} |
@@ -33,2 +33,5 @@ var __extends = (this && this.__extends) || (function () { | ||
} | ||
this.updateSelected(selected); | ||
}; | ||
RichSelectRow.prototype.updateSelected = function (selected) { | ||
this.addOrRemoveCssClass('ag-rich-select-row-selected', selected); | ||
@@ -35,0 +38,0 @@ }; |
@@ -171,3 +171,5 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { | ||
this.virtualList.ensureIndexVisible(index); | ||
this.virtualList.refresh(); | ||
this.virtualList.forEachRenderedRow((cmp, idx) => { | ||
cmp.updateSelected(index === idx); | ||
}); | ||
} | ||
@@ -174,0 +176,0 @@ createRowComponent(value) { |
@@ -7,4 +7,5 @@ import { Component, IRichCellEditorParams } from "@ag-grid-community/core"; | ||
setState(value: any, valueFormatted: string, selected: boolean): void; | ||
updateSelected(selected: boolean): void; | ||
private populateWithoutRenderer; | ||
private populateWithRenderer; | ||
} |
@@ -18,2 +18,5 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { | ||
} | ||
this.updateSelected(selected); | ||
} | ||
updateSelected(selected) { | ||
this.addOrRemoveCssClass('ag-rich-select-row-selected', selected); | ||
@@ -20,0 +23,0 @@ } |
/** | ||
* @ag-grid-enterprise/rich-select - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue * @version v27.3.0 | ||
* @ag-grid-enterprise/rich-select - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue * @version v28.0.0 | ||
* @link https://www.ag-grid.com/ | ||
@@ -13,3 +13,3 @@ * @license Commercial | ||
var __extends = (undefined && undefined.__extends) || (function () { | ||
var __extends$1 = (undefined && undefined.__extends) || (function () { | ||
var extendStatics = function (d, b) { | ||
@@ -27,3 +27,3 @@ extendStatics = Object.setPrototypeOf || | ||
})(); | ||
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { | ||
var __decorate$1 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { | ||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; | ||
@@ -35,3 +35,3 @@ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); | ||
var RichSelectRow = /** @class */ (function (_super) { | ||
__extends(RichSelectRow, _super); | ||
__extends$1(RichSelectRow, _super); | ||
function RichSelectRow(params) { | ||
@@ -47,2 +47,5 @@ var _this = _super.call(this, /* html */ "<div class=\"ag-rich-select-row\"></div>") || this; | ||
} | ||
this.updateSelected(selected); | ||
}; | ||
RichSelectRow.prototype.updateSelected = function (selected) { | ||
this.addOrRemoveCssClass('ag-rich-select-row-selected', selected); | ||
@@ -89,3 +92,3 @@ }; | ||
}; | ||
__decorate([ | ||
__decorate$1([ | ||
core.Autowired('userComponentFactory') | ||
@@ -96,3 +99,3 @@ ], RichSelectRow.prototype, "userComponentFactory", void 0); | ||
var __extends$1 = (undefined && undefined.__extends) || (function () { | ||
var __extends = (undefined && undefined.__extends) || (function () { | ||
var extendStatics = function (d, b) { | ||
@@ -110,3 +113,3 @@ extendStatics = Object.setPrototypeOf || | ||
})(); | ||
var __decorate$1 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { | ||
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) { | ||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; | ||
@@ -118,3 +121,3 @@ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); | ||
var RichSelectCellEditor = /** @class */ (function (_super) { | ||
__extends$1(RichSelectCellEditor, _super); | ||
__extends(RichSelectCellEditor, _super); | ||
function RichSelectCellEditor() { | ||
@@ -284,3 +287,5 @@ var _this = _super.call(this, RichSelectCellEditor.TEMPLATE) || this; | ||
this.virtualList.ensureIndexVisible(index); | ||
this.virtualList.refresh(); | ||
this.virtualList.forEachRenderedRow(function (cmp, idx) { | ||
cmp.updateSelected(index === idx); | ||
}); | ||
}; | ||
@@ -333,9 +338,9 @@ RichSelectCellEditor.prototype.createRowComponent = function (value) { | ||
RichSelectCellEditor.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>"; | ||
__decorate$1([ | ||
__decorate([ | ||
core.Autowired('userComponentFactory') | ||
], RichSelectCellEditor.prototype, "userComponentFactory", void 0); | ||
__decorate$1([ | ||
__decorate([ | ||
core.RefSelector('eValue') | ||
], RichSelectCellEditor.prototype, "eValue", void 0); | ||
__decorate$1([ | ||
__decorate([ | ||
core.RefSelector('eList') | ||
@@ -342,0 +347,0 @@ ], RichSelectCellEditor.prototype, "eList", void 0); |
/** | ||
* @ag-grid-enterprise/rich-select - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue * @version v27.3.0 | ||
* @ag-grid-enterprise/rich-select - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue * @version v28.0.0 | ||
* @link https://www.ag-grid.com/ | ||
@@ -7,6 +7,6 @@ * @license Commercial | ||
/** | ||
* @ag-grid-enterprise/rich-select - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue * @version v27.3.0 | ||
* @ag-grid-enterprise/rich-select - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue * @version v28.0.0 | ||
* @link https://www.ag-grid.com/ | ||
* @license Commercial | ||
*/ | ||
"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,t,i){this.populateWithRenderer(e,t)||this.populateWithoutRenderer(e,t),this.addOrRemoveCssClass("ag-rich-select-row-selected",i)},i.prototype.populateWithoutRenderer=function(e,i){var r=null!=i?i:e;t._.exists(r)&&""!==r?this.getGui().textContent=r.toString():this.getGui().innerHTML=" "},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(i.classList.add("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.key;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.key;if(i===t.KeyCode.BACKSPACE)this.searchString=this.searchString.slice(0,-1),i="";else if(!t._.isEventFromPrintableCharacter(e))return;this.searchText(i)}},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; | ||
"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,t,i){this.populateWithRenderer(e,t)||this.populateWithoutRenderer(e,t),this.updateSelected(i)},i.prototype.updateSelected=function(e){this.addOrRemoveCssClass("ag-rich-select-row-selected",e)},i.prototype.populateWithoutRenderer=function(e,i){var r=null!=i?i:e;t._.exists(r)&&""!==r?this.getGui().textContent=r.toString():this.getGui().innerHTML=" "},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(i.classList.add("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.key;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.key;if(i===t.KeyCode.BACKSPACE)this.searchString=this.searchString.slice(0,-1),i="";else if(!t._.isEventFromPrintableCharacter(e))return;this.searchText(i)}},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.forEachRenderedRow((function(e,i){e.updateSelected(t===i)})))}},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": "27.3.0", | ||
"version": "28.0.0", | ||
"description": "Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue", | ||
@@ -50,4 +50,4 @@ "main": "./dist/cjs/es5/main.js", | ||
"dependencies": { | ||
"@ag-grid-community/core": "~27.3.0", | ||
"@ag-grid-enterprise/core": "~27.3.0" | ||
"@ag-grid-community/core": "~28.0.0", | ||
"@ag-grid-enterprise/core": "~28.0.0" | ||
}, | ||
@@ -54,0 +54,0 @@ "devDependencies": { |
@@ -12,3 +12,3 @@ AG Grid Enterprise | ||
[Angular](https://www.ag-grid.com/angular-grid/getting-started/) | [Javascript](https://www.ag-grid.com/javascript-grid/getting-started/) | [React](https://www.ag-grid.com/react-grid/getting-started/) | [TypeScript](https://www.ag-grid.com/javascript-grid/building-typescript/) | [VueJS](https://www.ag-grid.com/vue-grid/getting-started/) | ||
[Angular](https://www.ag-grid.com/angular-data-grid/getting-started/) | [Javascript](https://www.ag-grid.com/javascript-grid/getting-started/) | [React](https://www.ag-grid.com/react-data-grid/getting-started/) | [TypeScript](https://www.ag-grid.com/javascript-grid/building-typescript/) | [VueJS](https://www.ag-grid.com/vue-data-grid/getting-started/) | ||
@@ -29,8 +29,1 @@ This is not free software, this software is covered by copyright and to use you need a commercial license. | ||
Building | ||
============== | ||
To build: | ||
- `npm install` | ||
- `npm install gulp -g` | ||
- `gulp` or `gulp release` |
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 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
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
3537709
55540
46
28
1
+ Added@ag-grid-community/core@28.0.2(transitive)
+ Added@ag-grid-enterprise/core@28.0.2(transitive)
- Removed@ag-grid-community/core@27.3.0(transitive)
- Removed@ag-grid-enterprise/core@27.3.0(transitive)