Socket
Socket
Sign inDemoInstall

@ag-grid-enterprise/side-bar

Package Overview
Dependencies
Maintainers
3
Versions
69
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ag-grid-enterprise/side-bar - npm Package Compare versions

Comparing version 29.3.3 to 29.3.4

2

dist/cjs/es5/version.d.ts

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

export declare const VERSION = "29.3.3";
export declare const VERSION = "29.3.4";

@@ -5,2 +5,2 @@ "use strict";

// DO NOT UPDATE MANUALLY: Generated from script during build time
exports.VERSION = '29.3.3';
exports.VERSION = '29.3.4';

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

export declare const VERSION = "29.3.3";
export declare const VERSION = "29.3.4";

@@ -5,2 +5,2 @@ "use strict";

// DO NOT UPDATE MANUALLY: Generated from script during build time
exports.VERSION = '29.3.3';
exports.VERSION = '29.3.4';

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

export declare const VERSION = "29.3.3";
export declare const VERSION = "29.3.4";
// DO NOT UPDATE MANUALLY: Generated from script during build time
export var VERSION = '29.3.3';
export var VERSION = '29.3.4';

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

export declare const VERSION = "29.3.3";
export declare const VERSION = "29.3.4";
// DO NOT UPDATE MANUALLY: Generated from script during build time
export const VERSION = '29.3.3';
export const VERSION = '29.3.4';
/**
* @ag-grid-enterprise/side-bar - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue * @version v29.3.3
* @ag-grid-enterprise/side-bar - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue * @version v29.3.4
* @link https://www.ag-grid.com/

@@ -910,3 +910,3 @@ * @license Commercial

// DO NOT UPDATE MANUALLY: Generated from script during build time
var VERSION = '29.3.3';
var VERSION = '29.3.4';

@@ -913,0 +913,0 @@ var SideBarModule = {

/**
* @ag-grid-enterprise/side-bar - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue * @version v29.3.3
* @ag-grid-enterprise/side-bar - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue * @version v29.3.4
* @link https://www.ag-grid.com/

@@ -7,6 +7,6 @@ * @license Commercial

/**
* @ag-grid-enterprise/side-bar - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue * @version v29.3.3
* @ag-grid-enterprise/side-bar - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue * @version v29.3.4
* @link https://www.ag-grid.com/
* @license Commercial
*/
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e,t=require("@ag-grid-community/core"),o=require("@ag-grid-enterprise/core"),n=(e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)},function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}),r=function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},i=function(e){function o(){var t=e.call(this,'<div class="ag-tool-panel-horizontal-resize"></div>')||this;return t.minWidth=100,t.maxWidth=null,t}return n(o,e),o.prototype.setElementToResize=function(e){this.elementToResize=e},o.prototype.postConstruct=function(){var e=this.horizontalResizeService.addResizeBar({eResizeBar:this.getGui(),dragStartPixels:1,onResizeStart:this.onResizeStart.bind(this),onResizing:this.onResizing.bind(this),onResizeEnd:this.onResizeEnd.bind(this)});this.addDestroyFunc(e),this.setInverted(this.gridOptionsService.is("enableRtl"))},o.prototype.dispatchResizeEvent=function(e,o,n){var r={type:t.Events.EVENT_TOOL_PANEL_SIZE_CHANGED,width:n,started:e,ended:o};this.eventService.dispatchEvent(r)},o.prototype.onResizeStart=function(){this.startingWidth=this.elementToResize.offsetWidth,this.dispatchResizeEvent(!0,!1,this.startingWidth)},o.prototype.onResizeEnd=function(e){return this.onResizing(e,!0)},o.prototype.onResizing=function(e,t){void 0===t&&(t=!1);var o=this.inverted?-1:1,n=Math.max(this.minWidth,Math.floor(this.startingWidth-e*o));null!=this.maxWidth&&(n=Math.min(this.maxWidth,n)),this.elementToResize.style.width=n+"px",this.dispatchResizeEvent(!1,t,n)},o.prototype.setInverted=function(e){this.inverted=e},o.prototype.setMaxWidth=function(e){this.maxWidth=e},o.prototype.setMinWidth=function(e){this.minWidth=null!=e?e:100},r([t.Autowired("horizontalResizeService")],o.prototype,"horizontalResizeService",void 0),r([t.PostConstruct],o.prototype,"postConstruct",null),o}(t.Component),s=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),a=function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},l=function(e){function o(t){var o=e.call(this)||this;return o.toolPanelDef=t,o}return s(o,e),o.prototype.getToolPanelId=function(){return this.toolPanelDef.id},o.prototype.postConstruct=function(){var e=this.createTemplate();this.setTemplate(e),this.setLabel(),this.setIcon(),this.addManagedListener(this.eToggleButton,"click",this.onButtonPressed.bind(this))},o.prototype.createTemplate=function(){return'<div class="ag-side-button" role="presentation">\n <button type="button" ref="eToggleButton" tabindex="-1" role="tab" class="ag-side-button-button">\n <div ref="eIconWrapper" class="ag-side-button-icon-wrapper" aria-hidden="true"></div>\n <span ref ="eLabel" class="ag-side-button-label"></span>\n </button>\n </div>'},o.prototype.setLabel=function(){var e=this.localeService.getLocaleTextFunc(),t=this.toolPanelDef,o=e(t.labelKey,t.labelDefault);this.eLabel.innerText=o},o.prototype.setIcon=function(){this.eIconWrapper.insertAdjacentElement("afterbegin",t._.createIconNoSpan(this.toolPanelDef.iconKey,this.gridOptionsService))},o.prototype.onButtonPressed=function(){this.dispatchEvent({type:o.EVENT_TOGGLE_BUTTON_CLICKED})},o.prototype.setSelected=function(e){this.addOrRemoveCssClass("ag-selected",e)},o.EVENT_TOGGLE_BUTTON_CLICKED="toggleButtonClicked",a([t.RefSelector("eToggleButton")],o.prototype,"eToggleButton",void 0),a([t.RefSelector("eIconWrapper")],o.prototype,"eIconWrapper",void 0),a([t.RefSelector("eLabel")],o.prototype,"eLabel",void 0),a([t.PostConstruct],o.prototype,"postConstruct",null),o}(t.Component),c=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),u=function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},p=function(e){function o(){var t=e.call(this,o.TEMPLATE)||this;return t.buttonComps=[],t}return c(o,e),o.prototype.postConstruct=function(){this.addManagedListener(this.getFocusableElement(),"keydown",this.handleKeyDown.bind(this))},o.prototype.handleKeyDown=function(e){if(e.key===t.KeyCode.TAB&&e.shiftKey){var o=t._.last(this.columnModel.getAllDisplayedColumns());this.focusService.focusGridView(o,!0)&&e.preventDefault()}},o.prototype.setToolPanelDefs=function(e){e.forEach(this.addButtonComp.bind(this))},o.prototype.setActiveButton=function(e){this.buttonComps.forEach((function(t){t.setSelected(e===t.getToolPanelId())}))},o.prototype.addButtonComp=function(e){var t=this,n=this.createBean(new l(e));this.buttonComps.push(n),this.appendChild(n),n.addEventListener(l.EVENT_TOGGLE_BUTTON_CLICKED,(function(){t.dispatchEvent({type:o.EVENT_SIDE_BAR_BUTTON_CLICKED,toolPanelId:e.id})}))},o.prototype.clearButtons=function(){this.buttonComps=this.destroyBeans(this.buttonComps),t._.clearElement(this.getGui())},o.EVENT_SIDE_BAR_BUTTON_CLICKED="sideBarButtonClicked",o.TEMPLATE='<div class="ag-side-buttons" role="tablist"></div>',u([t.Autowired("focusService")],o.prototype,"focusService",void 0),u([t.Autowired("columnModel")],o.prototype,"columnModel",void 0),u([t.PostConstruct],o.prototype,"postConstruct",null),u([t.PreDestroy],o.prototype,"clearButtons",null),o}(t.Component),d=function(){function e(){}return e.parse=function(t){if(t){if(!0===t)return{toolPanels:[e.DEFAULT_COLUMN_COMP,e.DEFAULT_FILTER_COMP],defaultToolPanel:"columns"};if("string"==typeof t)return e.parse([t]);if(Array.isArray(t)){var o=[];if(t.forEach((function(t){var n=e.DEFAULT_BY_KEY[t];n?o.push(n):console.warn("AG Grid: the key "+t+" is not a valid key for specifying a tool panel, valid keys are: "+Object.keys(e.DEFAULT_BY_KEY).join(","))})),0===o.length)return;return{toolPanels:o,defaultToolPanel:o[0].id}}return{toolPanels:e.parseComponents(t.toolPanels),defaultToolPanel:t.defaultToolPanel,hiddenByDefault:t.hiddenByDefault,position:t.position}}},e.parseComponents=function(t){var o=[];return t?(t.forEach((function(t){var n=null;if("string"==typeof t){var r=e.DEFAULT_BY_KEY[t];if(!r)return void console.warn("AG Grid: the key "+t+" is not a valid key for specifying a tool panel, valid keys are: "+Object.keys(e.DEFAULT_BY_KEY).join(","));n=r}else n=t;o.push(n)})),o):o},e.DEFAULT_COLUMN_COMP={id:"columns",labelDefault:"Columns",labelKey:"columns",iconKey:"columns",toolPanel:"agColumnsToolPanel"},e.DEFAULT_FILTER_COMP={id:"filters",labelDefault:"Filters",labelKey:"filters",iconKey:"filter",toolPanel:"agFiltersToolPanel"},e.DEFAULT_BY_KEY={columns:e.DEFAULT_COLUMN_COMP,filters:e.DEFAULT_FILTER_COMP},e}(),f=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),h=function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},y=function(e){function o(){return e.call(this,o.TEMPLATE)||this}return f(o,e),o.prototype.setupResize=function(){var e=this.getGui(),t=this.resizeBar=this.createManagedBean(new i);t.setElementToResize(e),this.appendChild(t)},o.prototype.getToolPanelId=function(){return this.toolPanelId},o.prototype.setToolPanelDef=function(e){var t=e.id,o=e.minWidth,n=e.maxWidth,r=e.width;this.toolPanelId=t,this.width=r;var i=this.userComponentFactory.getToolPanelCompDetails(e,{}).newAgStackInstance();null!=i?(i.then(this.setToolPanelComponent.bind(this)),null!=o&&this.resizeBar.setMinWidth(o),null!=n&&this.resizeBar.setMaxWidth(n)):console.warn("AG Grid: error processing tool panel component "+t+". You need to specify either 'toolPanel' or 'toolPanelFramework'")},o.prototype.setToolPanelComponent=function(e){var t=this;this.toolPanelCompInstance=e,this.appendChild(e.getGui()),this.addDestroyFunc((function(){t.destroyBean(e)})),this.width&&(this.getGui().style.width=this.width+"px")},o.prototype.getToolPanelInstance=function(){return this.toolPanelCompInstance},o.prototype.setResizerSizerSide=function(e){var t="left"===e,o=this.gridOptionsService.is("enableRtl")?t:!t;this.resizeBar.setInverted(o)},o.prototype.refresh=function(){this.toolPanelCompInstance.refresh()},o.TEMPLATE='<div class="ag-tool-panel-wrapper"/>',h([t.Autowired("userComponentFactory")],o.prototype,"userComponentFactory",void 0),h([t.PostConstruct],o.prototype,"setupResize",null),o}(t.Component),v=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),g=function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},P=function(e){function o(){var t=e.call(this,o.TEMPLATE)||this;return t.toolPanelWrappers=[],t}return v(o,e),o.prototype.postConstruct=function(){var e=this;this.sideBarButtonsComp.addEventListener(p.EVENT_SIDE_BAR_BUTTON_CLICKED,this.onToolPanelButtonClicked.bind(this)),this.setSideBarDef(),this.addManagedPropertyListener("sideBar",(function(){e.clearDownUi(),e.setSideBarDef()})),this.gridApi.registerSideBarComp(this),this.createManagedBean(new t.ManagedFocusFeature(this.getFocusableElement(),{onTabKeyDown:this.onTabKeyDown.bind(this),handleKeyDown:this.handleKeyDown.bind(this)}))},o.prototype.onTabKeyDown=function(e){if(!e.defaultPrevented){var t=this.focusService,o=this.sideBarButtonsComp,n=this.getGui(),r=o.getGui(),i=this.gridOptionsService.getDocument().activeElement,s=n.querySelector(".ag-tool-panel-wrapper:not(.ag-hidden)"),a=e.target;if(s)if(r.contains(i))t.focusInto(s,e.shiftKey)&&e.preventDefault();else if(e.shiftKey){var l=null;s.contains(i)?l=this.focusService.findNextFocusableElement(s,void 0,!0):t.isTargetUnderManagedComponent(s,a)&&e.shiftKey&&(l=this.focusService.findFocusableElementBeforeTabGuard(s,a)),l||(l=r.querySelector(".ag-selected button")),l&&(e.preventDefault(),l.focus())}}},o.prototype.handleKeyDown=function(e){var o=this.gridOptionsService.getDocument();if(this.sideBarButtonsComp.getGui().contains(o.activeElement)){var n=this.sideBarButtonsComp.getGui(),r=Array.prototype.slice.call(n.querySelectorAll(".ag-side-button")),i=o.activeElement,s=r.findIndex((function(e){return e.contains(i)})),a=null;switch(e.key){case t.KeyCode.LEFT:case t.KeyCode.UP:a=Math.max(0,s-1);break;case t.KeyCode.RIGHT:case t.KeyCode.DOWN:a=Math.min(s+1,r.length-1)}if(null!==a){var l=r[a].querySelector("button");l&&(l.focus(),e.preventDefault())}}},o.prototype.onToolPanelButtonClicked=function(e){var t=e.toolPanelId;this.openedItem()===t?this.openToolPanel(void 0,"sideBarButtonClicked"):this.openToolPanel(t,"sideBarButtonClicked")},o.prototype.clearDownUi=function(){this.sideBarButtonsComp.clearButtons(),this.destroyToolPanelWrappers()},o.prototype.setSideBarDef=function(){this.setDisplayed(!1);var e=this.gridOptionsService.get("sideBar");if(this.sideBar=d.parse(e),this.sideBar&&this.sideBar.toolPanels){var t=!this.sideBar.hiddenByDefault;this.setDisplayed(t);var o=this.sideBar.toolPanels;this.sideBarButtonsComp.setToolPanelDefs(o),this.setupToolPanels(o),this.setSideBarPosition(this.sideBar.position),this.sideBar.hiddenByDefault||this.openToolPanel(this.sideBar.defaultToolPanel,"sideBarInitializing")}},o.prototype.getDef=function(){return this.sideBar},o.prototype.setSideBarPosition=function(e){e||(e="right");var t="left"===e,o=t?"right":"left";return this.addOrRemoveCssClass("ag-side-bar-left",t),this.addOrRemoveCssClass("ag-side-bar-right",!t),this.toolPanelWrappers.forEach((function(e){e.setResizerSizerSide(o)})),this},o.prototype.setupToolPanels=function(e){var o=this;e.forEach((function(e){if(null!=e.id){if("agColumnsToolPanel"===e.toolPanel)if(!t.ModuleRegistry.assertRegistered(t.ModuleNames.ColumnsToolPanelModule,"Column Tool Panel"))return;if("agFiltersToolPanel"===e.toolPanel)if(!t.ModuleRegistry.assertRegistered(t.ModuleNames.FiltersToolPanelModule,"Filters Tool Panel"))return;var n=new y;o.getContext().createBean(n),n.setToolPanelDef(e),n.setDisplayed(!1),o.getGui().appendChild(n.getGui()),o.toolPanelWrappers.push(n)}else console.warn("AG Grid: please review all your toolPanel components, it seems like at least one of them doesn't have an id")}))},o.prototype.refresh=function(){this.toolPanelWrappers.forEach((function(e){return e.refresh()}))},o.prototype.openToolPanel=function(e,t){void 0===t&&(t="api");var o=this.openedItem();o!==e&&(this.toolPanelWrappers.forEach((function(t){var o=e===t.getToolPanelId();t.setDisplayed(o)})),o!==this.openedItem()&&(this.sideBarButtonsComp.setActiveButton(e),this.raiseToolPanelVisibleEvent(e,null!=o?o:void 0,t)))},o.prototype.getToolPanelInstance=function(e){var t=this.toolPanelWrappers.filter((function(t){return t.getToolPanelId()===e}))[0];if(t)return t.getToolPanelInstance();console.warn("AG Grid: unable to lookup Tool Panel as invalid key supplied: "+e)},o.prototype.raiseToolPanelVisibleEvent=function(e,o,n){var r={type:t.Events.EVENT_TOOL_PANEL_VISIBLE_CHANGED,source:e};if(this.eventService.dispatchEvent(r),o){var i={type:t.Events.EVENT_INTERNAL_TOOL_PANEL_VISIBLE_CHANGED,source:n,key:o,visible:!1};this.eventService.dispatchEvent(i)}if(e){var s={type:t.Events.EVENT_INTERNAL_TOOL_PANEL_VISIBLE_CHANGED,source:n,key:e,visible:!0};this.eventService.dispatchEvent(s)}},o.prototype.close=function(e){void 0===e&&(e="api"),this.openToolPanel(void 0,e)},o.prototype.isToolPanelShowing=function(){return!!this.openedItem()},o.prototype.openedItem=function(){var e=null;return this.toolPanelWrappers.forEach((function(t){t.isDisplayed()&&(e=t.getToolPanelId())})),e},o.prototype.destroyToolPanelWrappers=function(){var e=this;this.toolPanelWrappers.forEach((function(o){t._.removeFromParent(o.getGui()),e.destroyBean(o)})),this.toolPanelWrappers.length=0},o.prototype.destroy=function(){this.destroyToolPanelWrappers(),e.prototype.destroy.call(this)},o.TEMPLATE='<div class="ag-side-bar ag-unselectable">\n <ag-side-bar-buttons ref="sideBarButtons"></ag-side-bar-buttons>\n </div>',g([t.Autowired("gridApi")],o.prototype,"gridApi",void 0),g([t.Autowired("focusService")],o.prototype,"focusService",void 0),g([t.RefSelector("sideBarButtons")],o.prototype,"sideBarButtonsComp",void 0),g([t.PostConstruct],o.prototype,"postConstruct",null),o}(t.Component),T=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),m=function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},C=function(e){function o(){var t=null!==e&&e.apply(this,arguments)||this;return t.isColGroupDef=function(e){return e&&void 0!==e.children},t.getId=function(e){return t.isColGroupDef(e)?e.groupId:e.colId},t}return T(o,e),o.prototype.createColumnTree=function(e){var o=this,n=[],r=function(e,i){if(o.isColGroupDef(e)){var s=e,a=void 0!==s.groupId?s.groupId:s.headerName,l=new t.ProvidedColumnGroup(s,a,!1,i),c=[];return s.children.forEach((function(e){var t=r(e,i+1);t&&c.push(t)})),l.setChildren(c),l}var u=e,p=u.colId?u.colId:u.field,d=o.columnModel.getPrimaryColumn(p);return d||n.push(u),d},i=[];return e.forEach((function(e){var t=r(e,0);t&&i.push(t)})),n.length>0&&console.warn("AG Grid: unable to find grid columns for the supplied colDef(s):",n),i},o.prototype.syncLayoutWithGrid=function(e){var t=this.getLeafPathTrees();e(this.mergeLeafPathTrees(t))},o.prototype.getLeafPathTrees=function(){var e=function(o,n){var r;if(o instanceof t.ProvidedColumnGroup)if(o.isPadding())r=n;else{var i=Object.assign({},o.getColGroupDef());i.groupId=o.getGroupId(),i.children=[n],r=i}else{var s=Object.assign({},o.getColDef());s.colId=o.getColId(),r=s}var a=o.getOriginalParent();return a?e(a,r):r};return this.columnModel.getAllGridColumns().filter((function(e){var t=e.getColDef();return e.isPrimary()&&!t.showRowGroup})).map((function(t){return e(t,t.getColDef())}))},o.prototype.mergeLeafPathTrees=function(e){for(var t,o,n=this,r=function(e,t){if(!n.isColGroupDef(t))return e;var o=e,i=t;if(i.children&&i.groupId&&n.addChildrenToGroup(o,i.groupId,i.children[0]))return o;return i.children.forEach((function(e){return r(o,e)})),o},i=[],s=1;s<=e.length;s++){var a=e[s-1],l=e[s];t=a,o=l,n.isColGroupDef(t)&&n.isColGroupDef(o)&&n.getId(t)===n.getId(o)?e[s]=r(a,l):i.push(a)}return i},o.prototype.addChildrenToGroup=function(e,o,n){var r=this;if(!this.isColGroupDef(e))return!0;var i=e,s=n;if(function(e,o){var n=e.children.map(r.getId),i=t._.includes(n,r.getId(o)),s=t._.last(e.children),a=s&&r.getId(s)!==r.getId(o);return i&&a}(i,s))return i.children.push(s),!0;if(i.groupId===o){var a=i.children.map(this.getId);if(!t._.includes(a,this.getId(s)))return i.children.push(s),!0}return i.children.forEach((function(e){return r.addChildrenToGroup(e,o,n)})),!1},m([t.Autowired("columnModel")],o.prototype,"columnModel",void 0),o=m([t.Bean("toolPanelColDefService")],o)}(t.BeanStub),E={version:"29.3.3",moduleName:t.ModuleNames.SideBarModule,beans:[C],agStackComponents:[{componentName:"AgHorizontalResize",componentClass:i},{componentName:"AgSideBar",componentClass:P},{componentName:"AgSideBarButtons",componentClass:p}],dependantModules:[o.EnterpriseCoreModule]};exports.SideBarModule=E,exports.ToolPanelColDefService=C;
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e,t=require("@ag-grid-community/core"),o=require("@ag-grid-enterprise/core"),n=(e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)},function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}),r=function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},i=function(e){function o(){var t=e.call(this,'<div class="ag-tool-panel-horizontal-resize"></div>')||this;return t.minWidth=100,t.maxWidth=null,t}return n(o,e),o.prototype.setElementToResize=function(e){this.elementToResize=e},o.prototype.postConstruct=function(){var e=this.horizontalResizeService.addResizeBar({eResizeBar:this.getGui(),dragStartPixels:1,onResizeStart:this.onResizeStart.bind(this),onResizing:this.onResizing.bind(this),onResizeEnd:this.onResizeEnd.bind(this)});this.addDestroyFunc(e),this.setInverted(this.gridOptionsService.is("enableRtl"))},o.prototype.dispatchResizeEvent=function(e,o,n){var r={type:t.Events.EVENT_TOOL_PANEL_SIZE_CHANGED,width:n,started:e,ended:o};this.eventService.dispatchEvent(r)},o.prototype.onResizeStart=function(){this.startingWidth=this.elementToResize.offsetWidth,this.dispatchResizeEvent(!0,!1,this.startingWidth)},o.prototype.onResizeEnd=function(e){return this.onResizing(e,!0)},o.prototype.onResizing=function(e,t){void 0===t&&(t=!1);var o=this.inverted?-1:1,n=Math.max(this.minWidth,Math.floor(this.startingWidth-e*o));null!=this.maxWidth&&(n=Math.min(this.maxWidth,n)),this.elementToResize.style.width=n+"px",this.dispatchResizeEvent(!1,t,n)},o.prototype.setInverted=function(e){this.inverted=e},o.prototype.setMaxWidth=function(e){this.maxWidth=e},o.prototype.setMinWidth=function(e){this.minWidth=null!=e?e:100},r([t.Autowired("horizontalResizeService")],o.prototype,"horizontalResizeService",void 0),r([t.PostConstruct],o.prototype,"postConstruct",null),o}(t.Component),s=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),a=function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},l=function(e){function o(t){var o=e.call(this)||this;return o.toolPanelDef=t,o}return s(o,e),o.prototype.getToolPanelId=function(){return this.toolPanelDef.id},o.prototype.postConstruct=function(){var e=this.createTemplate();this.setTemplate(e),this.setLabel(),this.setIcon(),this.addManagedListener(this.eToggleButton,"click",this.onButtonPressed.bind(this))},o.prototype.createTemplate=function(){return'<div class="ag-side-button" role="presentation">\n <button type="button" ref="eToggleButton" tabindex="-1" role="tab" class="ag-side-button-button">\n <div ref="eIconWrapper" class="ag-side-button-icon-wrapper" aria-hidden="true"></div>\n <span ref ="eLabel" class="ag-side-button-label"></span>\n </button>\n </div>'},o.prototype.setLabel=function(){var e=this.localeService.getLocaleTextFunc(),t=this.toolPanelDef,o=e(t.labelKey,t.labelDefault);this.eLabel.innerText=o},o.prototype.setIcon=function(){this.eIconWrapper.insertAdjacentElement("afterbegin",t._.createIconNoSpan(this.toolPanelDef.iconKey,this.gridOptionsService))},o.prototype.onButtonPressed=function(){this.dispatchEvent({type:o.EVENT_TOGGLE_BUTTON_CLICKED})},o.prototype.setSelected=function(e){this.addOrRemoveCssClass("ag-selected",e)},o.EVENT_TOGGLE_BUTTON_CLICKED="toggleButtonClicked",a([t.RefSelector("eToggleButton")],o.prototype,"eToggleButton",void 0),a([t.RefSelector("eIconWrapper")],o.prototype,"eIconWrapper",void 0),a([t.RefSelector("eLabel")],o.prototype,"eLabel",void 0),a([t.PostConstruct],o.prototype,"postConstruct",null),o}(t.Component),c=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),u=function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},p=function(e){function o(){var t=e.call(this,o.TEMPLATE)||this;return t.buttonComps=[],t}return c(o,e),o.prototype.postConstruct=function(){this.addManagedListener(this.getFocusableElement(),"keydown",this.handleKeyDown.bind(this))},o.prototype.handleKeyDown=function(e){if(e.key===t.KeyCode.TAB&&e.shiftKey){var o=t._.last(this.columnModel.getAllDisplayedColumns());this.focusService.focusGridView(o,!0)&&e.preventDefault()}},o.prototype.setToolPanelDefs=function(e){e.forEach(this.addButtonComp.bind(this))},o.prototype.setActiveButton=function(e){this.buttonComps.forEach((function(t){t.setSelected(e===t.getToolPanelId())}))},o.prototype.addButtonComp=function(e){var t=this,n=this.createBean(new l(e));this.buttonComps.push(n),this.appendChild(n),n.addEventListener(l.EVENT_TOGGLE_BUTTON_CLICKED,(function(){t.dispatchEvent({type:o.EVENT_SIDE_BAR_BUTTON_CLICKED,toolPanelId:e.id})}))},o.prototype.clearButtons=function(){this.buttonComps=this.destroyBeans(this.buttonComps),t._.clearElement(this.getGui())},o.EVENT_SIDE_BAR_BUTTON_CLICKED="sideBarButtonClicked",o.TEMPLATE='<div class="ag-side-buttons" role="tablist"></div>',u([t.Autowired("focusService")],o.prototype,"focusService",void 0),u([t.Autowired("columnModel")],o.prototype,"columnModel",void 0),u([t.PostConstruct],o.prototype,"postConstruct",null),u([t.PreDestroy],o.prototype,"clearButtons",null),o}(t.Component),d=function(){function e(){}return e.parse=function(t){if(t){if(!0===t)return{toolPanels:[e.DEFAULT_COLUMN_COMP,e.DEFAULT_FILTER_COMP],defaultToolPanel:"columns"};if("string"==typeof t)return e.parse([t]);if(Array.isArray(t)){var o=[];if(t.forEach((function(t){var n=e.DEFAULT_BY_KEY[t];n?o.push(n):console.warn("AG Grid: the key "+t+" is not a valid key for specifying a tool panel, valid keys are: "+Object.keys(e.DEFAULT_BY_KEY).join(","))})),0===o.length)return;return{toolPanels:o,defaultToolPanel:o[0].id}}return{toolPanels:e.parseComponents(t.toolPanels),defaultToolPanel:t.defaultToolPanel,hiddenByDefault:t.hiddenByDefault,position:t.position}}},e.parseComponents=function(t){var o=[];return t?(t.forEach((function(t){var n=null;if("string"==typeof t){var r=e.DEFAULT_BY_KEY[t];if(!r)return void console.warn("AG Grid: the key "+t+" is not a valid key for specifying a tool panel, valid keys are: "+Object.keys(e.DEFAULT_BY_KEY).join(","));n=r}else n=t;o.push(n)})),o):o},e.DEFAULT_COLUMN_COMP={id:"columns",labelDefault:"Columns",labelKey:"columns",iconKey:"columns",toolPanel:"agColumnsToolPanel"},e.DEFAULT_FILTER_COMP={id:"filters",labelDefault:"Filters",labelKey:"filters",iconKey:"filter",toolPanel:"agFiltersToolPanel"},e.DEFAULT_BY_KEY={columns:e.DEFAULT_COLUMN_COMP,filters:e.DEFAULT_FILTER_COMP},e}(),f=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),h=function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},y=function(e){function o(){return e.call(this,o.TEMPLATE)||this}return f(o,e),o.prototype.setupResize=function(){var e=this.getGui(),t=this.resizeBar=this.createManagedBean(new i);t.setElementToResize(e),this.appendChild(t)},o.prototype.getToolPanelId=function(){return this.toolPanelId},o.prototype.setToolPanelDef=function(e){var t=e.id,o=e.minWidth,n=e.maxWidth,r=e.width;this.toolPanelId=t,this.width=r;var i=this.userComponentFactory.getToolPanelCompDetails(e,{}).newAgStackInstance();null!=i?(i.then(this.setToolPanelComponent.bind(this)),null!=o&&this.resizeBar.setMinWidth(o),null!=n&&this.resizeBar.setMaxWidth(n)):console.warn("AG Grid: error processing tool panel component "+t+". You need to specify either 'toolPanel' or 'toolPanelFramework'")},o.prototype.setToolPanelComponent=function(e){var t=this;this.toolPanelCompInstance=e,this.appendChild(e.getGui()),this.addDestroyFunc((function(){t.destroyBean(e)})),this.width&&(this.getGui().style.width=this.width+"px")},o.prototype.getToolPanelInstance=function(){return this.toolPanelCompInstance},o.prototype.setResizerSizerSide=function(e){var t="left"===e,o=this.gridOptionsService.is("enableRtl")?t:!t;this.resizeBar.setInverted(o)},o.prototype.refresh=function(){this.toolPanelCompInstance.refresh()},o.TEMPLATE='<div class="ag-tool-panel-wrapper"/>',h([t.Autowired("userComponentFactory")],o.prototype,"userComponentFactory",void 0),h([t.PostConstruct],o.prototype,"setupResize",null),o}(t.Component),v=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),g=function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},P=function(e){function o(){var t=e.call(this,o.TEMPLATE)||this;return t.toolPanelWrappers=[],t}return v(o,e),o.prototype.postConstruct=function(){var e=this;this.sideBarButtonsComp.addEventListener(p.EVENT_SIDE_BAR_BUTTON_CLICKED,this.onToolPanelButtonClicked.bind(this)),this.setSideBarDef(),this.addManagedPropertyListener("sideBar",(function(){e.clearDownUi(),e.setSideBarDef()})),this.gridApi.registerSideBarComp(this),this.createManagedBean(new t.ManagedFocusFeature(this.getFocusableElement(),{onTabKeyDown:this.onTabKeyDown.bind(this),handleKeyDown:this.handleKeyDown.bind(this)}))},o.prototype.onTabKeyDown=function(e){if(!e.defaultPrevented){var t=this.focusService,o=this.sideBarButtonsComp,n=this.getGui(),r=o.getGui(),i=this.gridOptionsService.getDocument().activeElement,s=n.querySelector(".ag-tool-panel-wrapper:not(.ag-hidden)"),a=e.target;if(s)if(r.contains(i))t.focusInto(s,e.shiftKey)&&e.preventDefault();else if(e.shiftKey){var l=null;s.contains(i)?l=this.focusService.findNextFocusableElement(s,void 0,!0):t.isTargetUnderManagedComponent(s,a)&&e.shiftKey&&(l=this.focusService.findFocusableElementBeforeTabGuard(s,a)),l||(l=r.querySelector(".ag-selected button")),l&&(e.preventDefault(),l.focus())}}},o.prototype.handleKeyDown=function(e){var o=this.gridOptionsService.getDocument();if(this.sideBarButtonsComp.getGui().contains(o.activeElement)){var n=this.sideBarButtonsComp.getGui(),r=Array.prototype.slice.call(n.querySelectorAll(".ag-side-button")),i=o.activeElement,s=r.findIndex((function(e){return e.contains(i)})),a=null;switch(e.key){case t.KeyCode.LEFT:case t.KeyCode.UP:a=Math.max(0,s-1);break;case t.KeyCode.RIGHT:case t.KeyCode.DOWN:a=Math.min(s+1,r.length-1)}if(null!==a){var l=r[a].querySelector("button");l&&(l.focus(),e.preventDefault())}}},o.prototype.onToolPanelButtonClicked=function(e){var t=e.toolPanelId;this.openedItem()===t?this.openToolPanel(void 0,"sideBarButtonClicked"):this.openToolPanel(t,"sideBarButtonClicked")},o.prototype.clearDownUi=function(){this.sideBarButtonsComp.clearButtons(),this.destroyToolPanelWrappers()},o.prototype.setSideBarDef=function(){this.setDisplayed(!1);var e=this.gridOptionsService.get("sideBar");if(this.sideBar=d.parse(e),this.sideBar&&this.sideBar.toolPanels){var t=!this.sideBar.hiddenByDefault;this.setDisplayed(t);var o=this.sideBar.toolPanels;this.sideBarButtonsComp.setToolPanelDefs(o),this.setupToolPanels(o),this.setSideBarPosition(this.sideBar.position),this.sideBar.hiddenByDefault||this.openToolPanel(this.sideBar.defaultToolPanel,"sideBarInitializing")}},o.prototype.getDef=function(){return this.sideBar},o.prototype.setSideBarPosition=function(e){e||(e="right");var t="left"===e,o=t?"right":"left";return this.addOrRemoveCssClass("ag-side-bar-left",t),this.addOrRemoveCssClass("ag-side-bar-right",!t),this.toolPanelWrappers.forEach((function(e){e.setResizerSizerSide(o)})),this},o.prototype.setupToolPanels=function(e){var o=this;e.forEach((function(e){if(null!=e.id){if("agColumnsToolPanel"===e.toolPanel)if(!t.ModuleRegistry.assertRegistered(t.ModuleNames.ColumnsToolPanelModule,"Column Tool Panel"))return;if("agFiltersToolPanel"===e.toolPanel)if(!t.ModuleRegistry.assertRegistered(t.ModuleNames.FiltersToolPanelModule,"Filters Tool Panel"))return;var n=new y;o.getContext().createBean(n),n.setToolPanelDef(e),n.setDisplayed(!1),o.getGui().appendChild(n.getGui()),o.toolPanelWrappers.push(n)}else console.warn("AG Grid: please review all your toolPanel components, it seems like at least one of them doesn't have an id")}))},o.prototype.refresh=function(){this.toolPanelWrappers.forEach((function(e){return e.refresh()}))},o.prototype.openToolPanel=function(e,t){void 0===t&&(t="api");var o=this.openedItem();o!==e&&(this.toolPanelWrappers.forEach((function(t){var o=e===t.getToolPanelId();t.setDisplayed(o)})),o!==this.openedItem()&&(this.sideBarButtonsComp.setActiveButton(e),this.raiseToolPanelVisibleEvent(e,null!=o?o:void 0,t)))},o.prototype.getToolPanelInstance=function(e){var t=this.toolPanelWrappers.filter((function(t){return t.getToolPanelId()===e}))[0];if(t)return t.getToolPanelInstance();console.warn("AG Grid: unable to lookup Tool Panel as invalid key supplied: "+e)},o.prototype.raiseToolPanelVisibleEvent=function(e,o,n){var r={type:t.Events.EVENT_TOOL_PANEL_VISIBLE_CHANGED,source:e};if(this.eventService.dispatchEvent(r),o){var i={type:t.Events.EVENT_INTERNAL_TOOL_PANEL_VISIBLE_CHANGED,source:n,key:o,visible:!1};this.eventService.dispatchEvent(i)}if(e){var s={type:t.Events.EVENT_INTERNAL_TOOL_PANEL_VISIBLE_CHANGED,source:n,key:e,visible:!0};this.eventService.dispatchEvent(s)}},o.prototype.close=function(e){void 0===e&&(e="api"),this.openToolPanel(void 0,e)},o.prototype.isToolPanelShowing=function(){return!!this.openedItem()},o.prototype.openedItem=function(){var e=null;return this.toolPanelWrappers.forEach((function(t){t.isDisplayed()&&(e=t.getToolPanelId())})),e},o.prototype.destroyToolPanelWrappers=function(){var e=this;this.toolPanelWrappers.forEach((function(o){t._.removeFromParent(o.getGui()),e.destroyBean(o)})),this.toolPanelWrappers.length=0},o.prototype.destroy=function(){this.destroyToolPanelWrappers(),e.prototype.destroy.call(this)},o.TEMPLATE='<div class="ag-side-bar ag-unselectable">\n <ag-side-bar-buttons ref="sideBarButtons"></ag-side-bar-buttons>\n </div>',g([t.Autowired("gridApi")],o.prototype,"gridApi",void 0),g([t.Autowired("focusService")],o.prototype,"focusService",void 0),g([t.RefSelector("sideBarButtons")],o.prototype,"sideBarButtonsComp",void 0),g([t.PostConstruct],o.prototype,"postConstruct",null),o}(t.Component),T=function(){var e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])})(t,o)};return function(t,o){function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),m=function(e,t,o,n){var r,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,o,s):r(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s},C=function(e){function o(){var t=null!==e&&e.apply(this,arguments)||this;return t.isColGroupDef=function(e){return e&&void 0!==e.children},t.getId=function(e){return t.isColGroupDef(e)?e.groupId:e.colId},t}return T(o,e),o.prototype.createColumnTree=function(e){var o=this,n=[],r=function(e,i){if(o.isColGroupDef(e)){var s=e,a=void 0!==s.groupId?s.groupId:s.headerName,l=new t.ProvidedColumnGroup(s,a,!1,i),c=[];return s.children.forEach((function(e){var t=r(e,i+1);t&&c.push(t)})),l.setChildren(c),l}var u=e,p=u.colId?u.colId:u.field,d=o.columnModel.getPrimaryColumn(p);return d||n.push(u),d},i=[];return e.forEach((function(e){var t=r(e,0);t&&i.push(t)})),n.length>0&&console.warn("AG Grid: unable to find grid columns for the supplied colDef(s):",n),i},o.prototype.syncLayoutWithGrid=function(e){var t=this.getLeafPathTrees();e(this.mergeLeafPathTrees(t))},o.prototype.getLeafPathTrees=function(){var e=function(o,n){var r;if(o instanceof t.ProvidedColumnGroup)if(o.isPadding())r=n;else{var i=Object.assign({},o.getColGroupDef());i.groupId=o.getGroupId(),i.children=[n],r=i}else{var s=Object.assign({},o.getColDef());s.colId=o.getColId(),r=s}var a=o.getOriginalParent();return a?e(a,r):r};return this.columnModel.getAllGridColumns().filter((function(e){var t=e.getColDef();return e.isPrimary()&&!t.showRowGroup})).map((function(t){return e(t,t.getColDef())}))},o.prototype.mergeLeafPathTrees=function(e){for(var t,o,n=this,r=function(e,t){if(!n.isColGroupDef(t))return e;var o=e,i=t;if(i.children&&i.groupId&&n.addChildrenToGroup(o,i.groupId,i.children[0]))return o;return i.children.forEach((function(e){return r(o,e)})),o},i=[],s=1;s<=e.length;s++){var a=e[s-1],l=e[s];t=a,o=l,n.isColGroupDef(t)&&n.isColGroupDef(o)&&n.getId(t)===n.getId(o)?e[s]=r(a,l):i.push(a)}return i},o.prototype.addChildrenToGroup=function(e,o,n){var r=this;if(!this.isColGroupDef(e))return!0;var i=e,s=n;if(function(e,o){var n=e.children.map(r.getId),i=t._.includes(n,r.getId(o)),s=t._.last(e.children),a=s&&r.getId(s)!==r.getId(o);return i&&a}(i,s))return i.children.push(s),!0;if(i.groupId===o){var a=i.children.map(this.getId);if(!t._.includes(a,this.getId(s)))return i.children.push(s),!0}return i.children.forEach((function(e){return r.addChildrenToGroup(e,o,n)})),!1},m([t.Autowired("columnModel")],o.prototype,"columnModel",void 0),o=m([t.Bean("toolPanelColDefService")],o)}(t.BeanStub),E={version:"29.3.4",moduleName:t.ModuleNames.SideBarModule,beans:[C],agStackComponents:[{componentName:"AgHorizontalResize",componentClass:i},{componentName:"AgSideBar",componentClass:P},{componentName:"AgSideBarButtons",componentClass:p}],dependantModules:[o.EnterpriseCoreModule]};exports.SideBarModule=E,exports.ToolPanelColDefService=C;
{
"name": "@ag-grid-enterprise/side-bar",
"version": "29.3.3",
"version": "29.3.4",
"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": "~29.3.3",
"@ag-grid-enterprise/core": "~29.3.3"
"@ag-grid-community/core": "~29.3.4",
"@ag-grid-enterprise/core": "~29.3.4"
},

@@ -54,0 +54,0 @@ "devDependencies": {

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc