@ag-grid-enterprise/menu
Advanced tools
Comparing version 31.3.2 to 31.3.3
var __defProp=Object.defineProperty,__defProps=Object.defineProperties,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropDescs=Object.getOwnPropertyDescriptors,__getOwnPropNames=Object.getOwnPropertyNames,__getOwnPropSymbols=Object.getOwnPropertySymbols,__hasOwnProp=Object.prototype.hasOwnProperty,__propIsEnum=Object.prototype.propertyIsEnumerable,__defNormalProp=(t,e,o)=>e in t?__defProp(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o,__spreadValues=(t,e)=>{for(var o in e||(e={}))__hasOwnProp.call(e,o)&&__defNormalProp(t,o,e[o]);if(__getOwnPropSymbols)for(var o of __getOwnPropSymbols(e))__propIsEnum.call(e,o)&&__defNormalProp(t,o,e[o]);return t},__spreadProps=(t,e)=>__defProps(t,__getOwnPropDescs(e)),__export=(t,e)=>{for(var o in e)__defProp(t,o,{get:e[o],enumerable:!0})},__copyProps=(t,e,o,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of __getOwnPropNames(e))!__hasOwnProp.call(t,n)&&n!==o&&__defProp(t,n,{get:()=>e[n],enumerable:!(r=__getOwnPropDesc(e,n))||r.enumerable});return t},__toCommonJS=t=>__copyProps(__defProp({},"__esModule",{value:!0}),t),__decorateClass=(t,e,o,r)=>{for(var n=r>1?void 0:r?__getOwnPropDesc(e,o):e,i=t.length-1,s;i>=0;i--)(s=t[i])&&(n=(r?s(e,o,n):s(n))||n);return r&&n&&__defProp(e,o,n),n},main_exports={};__export(main_exports,{MenuModule:()=>MenuModule}),module.exports=__toCommonJS(main_exports);var import_core8=require("@ag-grid-community/core"),import_core9=require("@ag-grid-enterprise/core"),import_core=require("@ag-grid-community/core"),EnterpriseMenuFactory=class extends import_core.BeanStub{hideActiveMenu(){this.destroyBean(this.activeMenu)}showMenuAfterMouseEvent(t,e,o,r){const n=r?"filterMenuTab":void 0;this.showMenu(t,i=>{var s;const a=i.getGui();this.popupService.positionPopupUnderMouseEvent({type:o,column:t,mouseEvent:e,ePopup:a}),n&&((s=i.showTab)==null||s.call(i,n)),this.dispatchVisibleChangedEvent(!0,!1,t,n)},o,n,void 0,e.target)}showMenuAfterButtonClick(t,e,o,r){let n=-1,i="left";this.gos.get("enableRtl")&&(n=1,i="right");const s=r?"filterMenuTab":void 0,a=s?[s]:void 0,l=this.menuService.isLegacyMenuEnabled();let h=(l?9:4)*n,m=l?-23:4;this.showMenu(t,c=>{var d;const u=c.getGui();this.popupService.positionPopupByComponent({type:o,column:t,eventSource:e,ePopup:u,alignSide:i,nudgeX:h,nudgeY:m,position:"under",keepWithinBounds:!0}),s&&((d=c.showTab)==null||d.call(c,s)),this.dispatchVisibleChangedEvent(!0,!1,t,s)},o,s,a,e)}showMenu(t,e,o,r,n,i){var s;const{menu:a,eMenuGui:l,anchorToElement:h,restoreFocusParams:m}=this.getMenuParams(t,n,i),c=[];c.push(u=>{const g=a.getGui();this.destroyBean(a),t&&(t.setMenuVisible(!1,"contextMenu"),this.menuUtils.restoreFocusOnClose(m,g,u))});const d=this.localeService.getLocaleTextFunc();if(this.popupService.addPopup({modal:!0,eChild:l,closeOnEsc:!0,closedCallback:u=>{c.forEach(g=>g(u)),this.dispatchVisibleChangedEvent(!1,!1,t,r)},afterGuiAttached:u=>a.afterGuiAttached(Object.assign({},{container:o},u)),positionCallback:r?()=>e(a):void 0,ariaLabel:d("ariaLabelColumnMenu","Column Menu")}),r||((s=a.showTabBasedOnPreviousSelection)==null||s.call(a),e(a)),this.menuService.isColumnMenuAnchoringEnabled()){const u=this.popupService.setPopupPositionRelatedToElement(l,h);u&&t&&this.addStopAnchoring(u,t,c)}a.addEventListener(TabbedColumnMenu.EVENT_TAB_SELECTED,u=>{this.dispatchVisibleChangedEvent(!1,!0,t),this.lastSelectedTab=u.key,this.dispatchVisibleChangedEvent(!0,!0,t)}),t?.setMenuVisible(!0,"contextMenu"),this.activeMenu=a,a.addEventListener(import_core.BeanStub.EVENT_DESTROYED,()=>{this.activeMenu===a&&(this.activeMenu=null)})}addStopAnchoring(t,e,o){t.then(r=>{e.addEventListener("leftChanged",r),e.addEventListener("visibleChanged",r),o.push(()=>{e.removeEventListener("leftChanged",r),e.removeEventListener("visibleChanged",r)})})}getMenuParams(t,e,o){const r={column:t,headerPosition:this.focusService.getFocusedHeader(),columnIndex:this.columnModel.getAllDisplayedColumns().indexOf(t),eventSource:o},n=this.createMenu(t,r,e,o);return{menu:n,eMenuGui:n.getGui(),anchorToElement:o||this.ctrlsService.getGridBodyCtrl().getGui(),restoreFocusParams:r}}createMenu(t,e,o,r){return this.menuService.isLegacyMenuEnabled()?this.createBean(new TabbedColumnMenu(t,e,this.lastSelectedTab,o,r)):this.createBean(new ColumnContextMenu(t,e,r))}dispatchVisibleChangedEvent(t,e,o,r){var n,i;const s={type:import_core.Events.EVENT_COLUMN_MENU_VISIBLE_CHANGED,visible:t,switchingTab:e,key:(i=(n=this.lastSelectedTab)!=null?n:r)!=null?i:this.menuService.isLegacyMenuEnabled()?TabbedColumnMenu.TAB_GENERAL:"columnMenu",column:o??null};this.eventService.dispatchEvent(s)}isMenuEnabled(t){var e;if(!this.menuService.isLegacyMenuEnabled())return!0;const o=!this.filterManager.isFilterAllowed(t),r=(e=t.getColDef().menuTabs)!=null?e:TabbedColumnMenu.TABS_DEFAULT;return(o&&r.includes(TabbedColumnMenu.TAB_FILTER)?r.length-1:r.length)>0}showMenuAfterContextMenuEvent(t,e,o){this.menuUtils.onContextMenu(e,o,r=>(this.showMenuAfterMouseEvent(t,r,"columnMenu"),!0))}};__decorateClass([(0,import_core.Autowired)("popupService")],EnterpriseMenuFactory.prototype,"popupService",2),__decorateClass([(0,import_core.Autowired)("focusService")],EnterpriseMenuFactory.prototype,"focusService",2),__decorateClass([(0,import_core.Autowired)("ctrlsService")],EnterpriseMenuFactory.prototype,"ctrlsService",2),__decorateClass([(0,import_core.Autowired)("columnModel")],EnterpriseMenuFactory.prototype,"columnModel",2),__decorateClass([(0,import_core.Autowired)("filterManager")],EnterpriseMenuFactory.prototype,"filterManager",2),__decorateClass([(0,import_core.Autowired)("menuUtils")],EnterpriseMenuFactory.prototype,"menuUtils",2),__decorateClass([(0,import_core.Autowired)("menuService")],EnterpriseMenuFactory.prototype,"menuService",2),EnterpriseMenuFactory=__decorateClass([(0,import_core.Bean)("enterpriseMenuFactory")],EnterpriseMenuFactory);var _TabbedColumnMenu=class p extends import_core.BeanStub{constructor(e,o,r,n,i){super(),this.column=e,this.restoreFocusParams=o,this.initialSelection=r,this.restrictTo=n,this.sourceElement=i,this.tabFactories={},this.includeChecks={},this.tabFactories[p.TAB_GENERAL]=this.createMainPanel.bind(this),this.tabFactories[p.TAB_FILTER]=this.createFilterPanel.bind(this),this.tabFactories[p.TAB_COLUMNS]=this.createColumnsPanel.bind(this),this.includeChecks[p.TAB_GENERAL]=()=>!0,this.includeChecks[p.TAB_FILTER]=()=>e?this.filterManager.isFilterAllowed(e):!1,this.includeChecks[p.TAB_COLUMNS]=()=>!0}init(){const e=this.getTabsToCreate().map(o=>this.createTab(o));this.tabbedLayout=new import_core.TabbedLayout({items:e,cssClass:"ag-menu",onActiveItemClicked:this.onHidePopup.bind(this),onItemClicked:this.onTabItemClicked.bind(this)}),this.createBean(this.tabbedLayout),this.mainMenuList&&this.mainMenuList.setParentComponent(this.tabbedLayout),this.addDestroyFunc(()=>this.destroyBean(this.tabbedLayout))}getTabsToCreate(){var e,o;return this.restrictTo?this.restrictTo:((o=(e=this.column)==null?void 0:e.getColDef().menuTabs)!=null?o:p.TABS_DEFAULT).filter(r=>this.isValidMenuTabItem(r)).filter(r=>this.isNotSuppressed(r)).filter(r=>this.isModuleLoaded(r))}isModuleLoaded(e){return e===p.TAB_COLUMNS?import_core.ModuleRegistry.__isRegistered(import_core.ModuleNames.ColumnsToolPanelModule,this.context.getGridId()):!0}isValidMenuTabItem(e){let o=!0,r=p.TABS_DEFAULT;return this.restrictTo!=null&&(o=this.restrictTo.indexOf(e)>-1,r=this.restrictTo),o=o&&p.TABS_DEFAULT.indexOf(e)>-1,o||console.warn(`AG Grid: Trying to render an invalid menu item '${e}'. Check that your 'menuTabs' contains one of [${r}]`),o}isNotSuppressed(e){return this.includeChecks[e]()}createTab(e){return this.tabFactories[e]()}showTabBasedOnPreviousSelection(){this.showTab(this.initialSelection)}showTab(e){this.tabItemColumns&&e===p.TAB_COLUMNS?this.tabbedLayout.showItem(this.tabItemColumns):this.tabItemFilter&&e===p.TAB_FILTER?this.tabbedLayout.showItem(this.tabItemFilter):this.tabItemGeneral&&e===p.TAB_GENERAL?this.tabbedLayout.showItem(this.tabItemGeneral):this.tabbedLayout.showFirstItem()}onTabItemClicked(e){let o=null;switch(e.item){case this.tabItemColumns:o=p.TAB_COLUMNS;break;case this.tabItemFilter:o=p.TAB_FILTER;break;case this.tabItemGeneral:o=p.TAB_GENERAL;break}o&&this.activateTab(o)}activateTab(e){const o={type:p.EVENT_TAB_SELECTED,key:e};this.dispatchEvent(o)}createMainPanel(){return this.mainMenuList=this.columnMenuFactory.createMenu(this,this.column,()=>{var e;return(e=this.sourceElement)!=null?e:this.getGui()}),this.mainMenuList.addEventListener(import_core.AgMenuItemComponent.EVENT_CLOSE_MENU,this.onHidePopup.bind(this)),this.tabItemGeneral={title:import_core._.createIconNoSpan("menu",this.gos,this.column),titleLabel:p.TAB_GENERAL.replace("MenuTab",""),bodyPromise:import_core.AgPromise.resolve(this.mainMenuList.getGui()),name:p.TAB_GENERAL},this.tabItemGeneral}onHidePopup(e){this.menuUtils.closePopupAndRestoreFocusOnSelect(this.hidePopupFunc,this.restoreFocusParams,e)}createFilterPanel(){const e=this.column?this.createManagedBean(new import_core.FilterWrapperComp(this.column,"COLUMN_MENU")):null;if(!e?.hasFilter())throw new Error("AG Grid - Unable to instantiate filter");const o=n=>e.afterGuiAttached(n),r=()=>e.afterGuiDetached();return this.tabItemFilter={title:import_core._.createIconNoSpan("filter",this.gos,this.column),titleLabel:p.TAB_FILTER.replace("MenuTab",""),bodyPromise:import_core.AgPromise.resolve(e?.getGui()),afterAttachedCallback:o,afterDetachedCallback:r,name:p.TAB_FILTER},this.tabItemFilter}createColumnsPanel(){const e=document.createElement("div");e.classList.add("ag-menu-column-select-wrapper");const r=this.columnChooserFactory.createColumnSelectPanel(this,this.column).getGui();return r.classList.add("ag-menu-column-select"),e.appendChild(r),this.tabItemColumns={title:import_core._.createIconNoSpan("columns",this.gos,this.column),titleLabel:p.TAB_COLUMNS.replace("MenuTab",""),bodyPromise:import_core.AgPromise.resolve(e),name:p.TAB_COLUMNS},this.tabItemColumns}afterGuiAttached(e){const{container:o,hidePopup:r}=e;this.tabbedLayout.setAfterAttachedParams({container:o,hidePopup:r}),r&&(this.hidePopupFunc=r,this.addDestroyFunc(r))}getGui(){return this.tabbedLayout.getGui()}};_TabbedColumnMenu.EVENT_TAB_SELECTED="tabSelected",_TabbedColumnMenu.TAB_FILTER="filterMenuTab",_TabbedColumnMenu.TAB_GENERAL="generalMenuTab",_TabbedColumnMenu.TAB_COLUMNS="columnsMenuTab",_TabbedColumnMenu.TABS_DEFAULT=[_TabbedColumnMenu.TAB_GENERAL,_TabbedColumnMenu.TAB_FILTER,_TabbedColumnMenu.TAB_COLUMNS],__decorateClass([(0,import_core.Autowired)("filterManager")],_TabbedColumnMenu.prototype,"filterManager",2),__decorateClass([(0,import_core.Autowired)("columnChooserFactory")],_TabbedColumnMenu.prototype,"columnChooserFactory",2),__decorateClass([(0,import_core.Autowired)("columnMenuFactory")],_TabbedColumnMenu.prototype,"columnMenuFactory",2),__decorateClass([(0,import_core.Autowired)("menuUtils")],_TabbedColumnMenu.prototype,"menuUtils",2),__decorateClass([import_core.PostConstruct],_TabbedColumnMenu.prototype,"init",1);var TabbedColumnMenu=_TabbedColumnMenu,ColumnContextMenu=class extends import_core.Component{constructor(t,e,o){super(` | ||
<div ref="eColumnMenu" role="presentation" class="ag-menu ag-column-menu"></div> | ||
`),this.column=t,this.restoreFocusParams=e,this.sourceElement=o}init(){this.mainMenuList=this.columnMenuFactory.createMenu(this,this.column,()=>{var t;return(t=this.sourceElement)!=null?t:this.getGui()}),this.mainMenuList.addEventListener(import_core.AgMenuItemComponent.EVENT_CLOSE_MENU,this.onHidePopup.bind(this)),this.eColumnMenu.appendChild(this.mainMenuList.getGui())}onHidePopup(t){this.menuUtils.closePopupAndRestoreFocusOnSelect(this.hidePopupFunc,this.restoreFocusParams,t)}afterGuiAttached({hidePopup:t}){t&&(this.hidePopupFunc=t,this.addDestroyFunc(t)),this.focusService.focusInto(this.mainMenuList.getGui())}};__decorateClass([(0,import_core.Autowired)("columnMenuFactory")],ColumnContextMenu.prototype,"columnMenuFactory",2),__decorateClass([(0,import_core.Autowired)("menuUtils")],ColumnContextMenu.prototype,"menuUtils",2),__decorateClass([(0,import_core.Autowired)("focusService")],ColumnContextMenu.prototype,"focusService",2),__decorateClass([(0,import_core.RefSelector)("eColumnMenu")],ColumnContextMenu.prototype,"eColumnMenu",2),__decorateClass([import_core.PostConstruct],ColumnContextMenu.prototype,"init",1);var import_core2=require("@ag-grid-community/core"),CSS_MENU="ag-menu",CSS_CONTEXT_MENU_OPEN="ag-context-menu-open",ContextMenuFactory=class extends import_core2.BeanStub{hideActiveMenu(){this.destroyBean(this.activeMenu)}getMenuItems(t,e,o){const r=[];if(import_core2._.exists(t)&&import_core2.ModuleRegistry.__isRegistered(import_core2.ModuleNames.ClipboardModule,this.context.getGridId())&&e&&(this.gos.get("suppressCutToClipboard")||r.push("cut"),r.push("copy","copyWithHeaders","copyWithGroupHeaders","paste","separator")),this.gos.get("enableCharts")&&import_core2.ModuleRegistry.__isRegistered(import_core2.ModuleNames.GridChartsModule,this.context.getGridId())&&(this.columnModel.isPivotMode()&&r.push("pivotChart"),this.rangeService&&!this.rangeService.isEmpty()&&r.push("chartRange")),import_core2._.exists(t)){const a=!import_core2.ModuleRegistry.__isRegistered(import_core2.ModuleNames.CsvExportModule,this.context.getGridId()),l=!import_core2.ModuleRegistry.__isRegistered(import_core2.ModuleNames.ExcelExportModule,this.context.getGridId()),h=this.gos.get("suppressExcelExport")||l,m=this.gos.get("suppressCsvExport")||a;!import_core2._.isIOSUserAgent()&&(!h||!m)&&r.push("export")}const n=r.length?r:void 0,i=e?.getColDef().contextMenuItems;if(Array.isArray(i))return i;if(typeof i=="function")return i(this.gos.addGridCommonParams({column:e,node:t,value:o,defaultItems:n}));const s=this.gos.getCallback("getContextMenuItems");return s?s({column:e,node:t,value:o,defaultItems:n}):r}onContextMenu(t,e,o,r,n,i){this.menuUtils.onContextMenu(t,e,s=>this.showMenu(o,r,n,s,i))}showMenu(t,e,o,r,n){const i=this.getMenuItems(t,e,o),s=this.ctrlsService.getGridBodyCtrl().getGui();if(i===void 0||import_core2._.missingOrEmpty(i))return!1;const a=new ContextMenu(i,e,t,o);this.createBean(a);const l=a.getGui(),h={column:e,rowNode:t,type:"contextMenu",mouseEvent:r,ePopup:l,nudgeY:1},m=this.localeService.getLocaleTextFunc(),c=this.popupService.addPopup({modal:!0,eChild:l,closeOnEsc:!0,closedCallback:u=>{s.classList.remove(CSS_CONTEXT_MENU_OPEN),this.destroyBean(a),this.dispatchVisibleChangedEvent(!1,u===void 0?"api":"ui")},click:r,positionCallback:()=>{const u=this.gos.get("enableRtl");this.popupService.positionPopupUnderMouseEvent(__spreadProps(__spreadValues({},h),{nudgeX:u?(l.offsetWidth+1)*-1:1}))},anchorToElement:n,ariaLabel:m("ariaLabelContextMenu","Context Menu")});c&&(s.classList.add(CSS_CONTEXT_MENU_OPEN),a.afterGuiAttached({container:"contextMenu",hidePopup:c.hideFunc})),this.activeMenu&&this.hideActiveMenu(),this.activeMenu=a,a.addEventListener(import_core2.BeanStub.EVENT_DESTROYED,()=>{this.activeMenu===a&&(this.activeMenu=null)}),c&&a.addEventListener(import_core2.AgMenuItemComponent.EVENT_CLOSE_MENU,u=>{var g,C;return c.hideFunc({mouseEvent:(g=u.mouseEvent)!=null?g:void 0,keyboardEvent:(C=u.keyboardEvent)!=null?C:void 0,forceHide:!0})});const d=r&&r instanceof MouseEvent&&r.type==="mousedown";return this.dispatchVisibleChangedEvent(!0,d?"api":"ui"),!0}dispatchVisibleChangedEvent(t,e="ui"){const o={type:import_core2.Events.EVENT_CONTEXT_MENU_VISIBLE_CHANGED,visible:t,source:e};this.eventService.dispatchEvent(o)}};__decorateClass([(0,import_core2.Autowired)("popupService")],ContextMenuFactory.prototype,"popupService",2),__decorateClass([(0,import_core2.Autowired)("ctrlsService")],ContextMenuFactory.prototype,"ctrlsService",2),__decorateClass([(0,import_core2.Autowired)("columnModel")],ContextMenuFactory.prototype,"columnModel",2),__decorateClass([(0,import_core2.Autowired)("menuUtils")],ContextMenuFactory.prototype,"menuUtils",2),__decorateClass([(0,import_core2.Optional)("rangeService")],ContextMenuFactory.prototype,"rangeService",2),ContextMenuFactory=__decorateClass([(0,import_core2.Bean)("contextMenuFactory")],ContextMenuFactory);var ContextMenu=class extends import_core2.Component{constructor(t,e,o,r){super(`<div class="${CSS_MENU}" role="presentation"></div>`),this.menuItems=t,this.column=e,this.node=o,this.value=r,this.menuList=null,this.focusedCell=null}addMenuItems(){const t=this.createManagedBean(new import_core2.AgMenuList(0,{column:this.column,node:this.node,value:this.value})),e=this.menuItemMapper.mapWithStockItems(this.menuItems,null,()=>this.getGui());t.addMenuItems(e),this.appendChild(t),this.menuList=t,t.addEventListener(import_core2.AgMenuItemComponent.EVENT_CLOSE_MENU,o=>this.dispatchEvent(o))}afterGuiAttached(t){t.hidePopup&&this.addDestroyFunc(t.hidePopup),this.focusedCell=this.focusService.getFocusedCell(),this.menuList&&this.focusService.focusInto(this.menuList.getGui())}restoreFocusedCell(){const t=this.focusService.getFocusedCell();if(t&&this.focusedCell&&this.cellPositionUtils.equals(t,this.focusedCell)){const{rowIndex:e,rowPinned:o,column:r}=this.focusedCell,n=this.gos.getDocument(),i=this.gos.getActiveDomElement();(!i||i===n.body)&&this.focusService.setFocusedCell({rowIndex:e,column:r,rowPinned:o,forceBrowserFocus:!0,preventScrollOnBrowserFocus:!this.focusService.isKeyboardMode()})}}destroy(){this.restoreFocusedCell(),super.destroy()}};__decorateClass([(0,import_core2.Autowired)("menuItemMapper")],ContextMenu.prototype,"menuItemMapper",2),__decorateClass([(0,import_core2.Autowired)("focusService")],ContextMenu.prototype,"focusService",2),__decorateClass([(0,import_core2.Autowired)("cellPositionUtils")],ContextMenu.prototype,"cellPositionUtils",2),__decorateClass([import_core2.PostConstruct],ContextMenu.prototype,"addMenuItems",1);var import_core3=require("@ag-grid-community/core"),MenuItemMapper=class extends import_core3.BeanStub{mapWithStockItems(t,e,o){if(!t)return[];const r=[];return t.forEach(n=>{let i;if(typeof n=="string"?i=this.getStockMenuItem(n,e,o):i=__spreadValues({},n),!i)return;const s=i,{subMenu:a}=s;a&&a instanceof Array&&(s.subMenu=this.mapWithStockItems(a,e,o)),i!=null&&r.push(i)}),r}getStockMenuItem(t,e,o){var r;const n=this.localeService.getLocaleTextFunc(),i=this.gos.get("skipHeaderOnAutoSize");switch(t){case"pinSubMenu":return{name:n("pinColumn","Pin Column"),icon:import_core3._.createIconNoSpan("menuPin",this.gos,null),subMenu:["clearPinned","pinLeft","pinRight"]};case"pinLeft":return{name:n("pinLeft","Pin Left"),action:()=>this.columnModel.setColumnsPinned([e],"left","contextMenu"),checked:!!e&&e.isPinnedLeft()};case"pinRight":return{name:n("pinRight","Pin Right"),action:()=>this.columnModel.setColumnsPinned([e],"right","contextMenu"),checked:!!e&&e.isPinnedRight()};case"clearPinned":return{name:n("noPin","No Pin"),action:()=>this.columnModel.setColumnsPinned([e],null,"contextMenu"),checked:!!e&&!e.isPinned()};case"valueAggSubMenu":return import_core3.ModuleRegistry.__assertRegistered(import_core3.ModuleNames.RowGroupingModule,"Aggregation from Menu",this.context.getGridId())?!e?.isPrimary()&&!e?.getColDef().pivotValueColumn?null:{name:n("valueAggregation","Value Aggregation"),icon:import_core3._.createIconNoSpan("menuValue",this.gos,null),subMenu:this.createAggregationSubMenu(e,this.aggFuncService)}:null;case"autoSizeThis":return{name:n("autosizeThiscolumn","Autosize This Column"),action:()=>this.columnModel.autoSizeColumn(e,"contextMenu",i)};case"autoSizeAll":return{name:n("autosizeAllColumns","Autosize All Columns"),action:()=>this.columnModel.autoSizeAllColumns("contextMenu",i)};case"rowGroup":return{name:n("groupBy","Group by")+" "+import_core3._.escapeString(this.columnModel.getDisplayNameForColumn(e,"header")),disabled:e?.isRowGroupActive()||!e?.getColDef().enableRowGroup,action:()=>this.columnModel.addRowGroupColumns([e],"contextMenu"),icon:import_core3._.createIconNoSpan("menuAddRowGroup",this.gos,null)};case"rowUnGroup":const s=import_core3._.createIconNoSpan("menuRemoveRowGroup",this.gos,null),a=e?.getColDef().showRowGroup,l=this.gos.get("groupLockGroupColumns");if(a===!0)return{name:n("ungroupAll","Un-Group All"),disabled:l===-1||l>=this.columnModel.getRowGroupColumns().length,action:()=>this.columnModel.setRowGroupColumns(this.columnModel.getRowGroupColumns().slice(0,l),"contextMenu"),icon:s};if(typeof a=="string"){const d=this.columnModel.getPrimaryColumn(a),u=d!=null?import_core3._.escapeString(this.columnModel.getDisplayNameForColumn(d,"header")):a;return{name:n("ungroupBy","Un-Group by")+" "+u,disabled:d!=null&&this.columnModel.isColumnGroupingLocked(d),action:()=>this.columnModel.removeRowGroupColumns([a],"contextMenu"),icon:s}}return{name:n("ungroupBy","Un-Group by")+" "+import_core3._.escapeString(this.columnModel.getDisplayNameForColumn(e,"header")),disabled:!e?.isRowGroupActive()||!e?.getColDef().enableRowGroup||this.columnModel.isColumnGroupingLocked(e),action:()=>this.columnModel.removeRowGroupColumns([e],"contextMenu"),icon:s};case"resetColumns":return{name:n("resetColumns","Reset Columns"),action:()=>this.columnModel.resetColumnState("contextMenu")};case"expandAll":return{name:n("expandAll","Expand All Row Groups"),action:()=>this.gridApi.expandAll()};case"contractAll":return{name:n("collapseAll","Collapse All Row Groups"),action:()=>this.gridApi.collapseAll()};case"copy":return import_core3.ModuleRegistry.__assertRegistered(import_core3.ModuleNames.ClipboardModule,"Copy from Menu",this.context.getGridId())?{name:n("copy","Copy"),shortcut:n("ctrlC","Ctrl+C"),icon:import_core3._.createIconNoSpan("clipboardCopy",this.gos,null),action:()=>this.clipboardService.copyToClipboard()}:null;case"copyWithHeaders":return import_core3.ModuleRegistry.__assertRegistered(import_core3.ModuleNames.ClipboardModule,"Copy with Headers from Menu",this.context.getGridId())?{name:n("copyWithHeaders","Copy with Headers"),icon:import_core3._.createIconNoSpan("clipboardCopy",this.gos,null),action:()=>this.clipboardService.copyToClipboard({includeHeaders:!0})}:null;case"copyWithGroupHeaders":return import_core3.ModuleRegistry.__assertRegistered(import_core3.ModuleNames.ClipboardModule,"Copy with Group Headers from Menu",this.context.getGridId())?{name:n("copyWithGroupHeaders","Copy with Group Headers"),icon:import_core3._.createIconNoSpan("clipboardCopy",this.gos,null),action:()=>this.clipboardService.copyToClipboard({includeHeaders:!0,includeGroupHeaders:!0})}:null;case"cut":if(import_core3.ModuleRegistry.__assertRegistered(import_core3.ModuleNames.ClipboardModule,"Cut from Menu",this.context.getGridId())){const d=this.focusService.getFocusedCell(),u=d?this.rowPositionUtils.getRowNode(d):null,g=u?d?.column.isCellEditable(u):!1;return{name:n("cut","Cut"),shortcut:n("ctrlX","Ctrl+X"),icon:import_core3._.createIconNoSpan("clipboardCut",this.gos,null),disabled:!g||this.gos.get("suppressCutToClipboard"),action:()=>this.clipboardService.cutToClipboard(void 0,"contextMenu")}}else return null;case"paste":return import_core3.ModuleRegistry.__assertRegistered(import_core3.ModuleNames.ClipboardModule,"Paste from Clipboard",this.context.getGridId())?{name:n("paste","Paste"),shortcut:n("ctrlV","Ctrl+V"),disabled:!0,icon:import_core3._.createIconNoSpan("clipboardPaste",this.gos,null),action:()=>this.clipboardService.pasteFromClipboard()}:null;case"export":const h=[],m=import_core3.ModuleRegistry.__isRegistered(import_core3.ModuleNames.CsvExportModule,this.context.getGridId()),c=import_core3.ModuleRegistry.__isRegistered(import_core3.ModuleNames.ExcelExportModule,this.context.getGridId());return!this.gos.get("suppressCsvExport")&&m&&h.push("csvExport"),!this.gos.get("suppressExcelExport")&&c&&h.push("excelExport"),{name:n("export","Export"),subMenu:h,icon:import_core3._.createIconNoSpan("save",this.gos,null)};case"csvExport":return{name:n("csvExport","CSV Export"),icon:import_core3._.createIconNoSpan("csvExport",this.gos,null),action:()=>this.gridApi.exportDataAsCsv({})};case"excelExport":return{name:n("excelExport","Excel Export"),icon:import_core3._.createIconNoSpan("excelExport",this.gos,null),action:()=>this.gridApi.exportDataAsExcel()};case"separator":return"separator";case"pivotChart":case"chartRange":return(r=this.chartMenuItemMapper.getChartItems(t))!=null?r:null;case"columnFilter":return e?{name:n("columnFilter","Column Filter"),icon:import_core3._.createIconNoSpan("filter",this.gos,null),action:()=>this.menuService.showFilterMenu({column:e,buttonElement:o(),containerType:"columnFilter",positionBy:"button"})}:null;case"columnChooser":return import_core3.ModuleRegistry.__isRegistered(import_core3.ModuleNames.ColumnsToolPanelModule,this.context.getGridId())?{name:n("columnChooser","Choose Columns"),icon:import_core3._.createIconNoSpan("columns",this.gos,null),action:()=>this.menuService.showColumnChooser({column:e,eventSource:o()})}:null;case"sortAscending":return{name:n("sortAscending","Sort Ascending"),icon:import_core3._.createIconNoSpan("sortAscending",this.gos,null),action:()=>this.sortController.setSortForColumn(e,"asc",!1,"columnMenu")};case"sortDescending":return{name:n("sortDescending","Sort Descending"),icon:import_core3._.createIconNoSpan("sortDescending",this.gos,null),action:()=>this.sortController.setSortForColumn(e,"desc",!1,"columnMenu")};case"sortUnSort":return{name:n("sortUnSort","Clear Sort"),icon:import_core3._.createIconNoSpan("sortUnSort",this.gos,null),action:()=>this.sortController.setSortForColumn(e,null,!1,"columnMenu")};default:return console.warn(`AG Grid: unknown menu item type ${t}`),null}}createAggregationSubMenu(t,e){const o=this.localeService.getLocaleTextFunc();let r;if(t.isPrimary())r=t;else{const i=t.getColDef().pivotValueColumn;r=import_core3._.exists(i)?i:void 0}const n=[];if(r){const i=r.isValueActive(),s=e.getFuncNames(r);n.push({name:o("noAggregation","None"),action:()=>{this.columnModel.removeValueColumns([r],"contextMenu"),this.columnModel.setColumnAggFunc(r,void 0,"contextMenu")},checked:!i}),s.forEach(a=>{n.push({name:o(a,e.getDefaultFuncLabel(a)),action:()=>{this.columnModel.setColumnAggFunc(r,a,"contextMenu"),this.columnModel.addValueColumns([r],"contextMenu")},checked:i&&r.getAggFunc()===a})})}return n}};__decorateClass([(0,import_core3.Autowired)("columnModel")],MenuItemMapper.prototype,"columnModel",2),__decorateClass([(0,import_core3.Autowired)("gridApi")],MenuItemMapper.prototype,"gridApi",2),__decorateClass([(0,import_core3.Autowired)("focusService")],MenuItemMapper.prototype,"focusService",2),__decorateClass([(0,import_core3.Autowired)("rowPositionUtils")],MenuItemMapper.prototype,"rowPositionUtils",2),__decorateClass([(0,import_core3.Autowired)("chartMenuItemMapper")],MenuItemMapper.prototype,"chartMenuItemMapper",2),__decorateClass([(0,import_core3.Autowired)("menuService")],MenuItemMapper.prototype,"menuService",2),__decorateClass([(0,import_core3.Autowired)("sortController")],MenuItemMapper.prototype,"sortController",2),__decorateClass([(0,import_core3.Optional)("clipboardService")],MenuItemMapper.prototype,"clipboardService",2),__decorateClass([(0,import_core3.Optional)("aggFuncService")],MenuItemMapper.prototype,"aggFuncService",2),MenuItemMapper=__decorateClass([(0,import_core3.Bean)("menuItemMapper")],MenuItemMapper);var VERSION="31.3.2",import_core4=require("@ag-grid-community/core"),ChartMenuItemMapper=class extends import_core4.BeanStub{getChartItems(t){var e,o;if(!this.chartService){import_core4.ModuleRegistry.__assertRegistered(import_core4.ModuleNames.GridChartsModule,`the Context Menu key "${t}"`,this.context.getGridId());return}const r=t==="pivotChart"?new PivotMenuItemMapper(this.gos,this.chartService,this.localeService):new RangeMenuItemMapper(this.gos,this.chartService,this.localeService),n=this.chartService.isEnterprise();let i=r.getMenuItem();if(i&&i.subMenu&&!n){const a=l=>{var h;return __spreadProps(__spreadValues({},l),{subMenu:(h=l.subMenu)==null?void 0:h.filter(m=>!m._enterprise).map(m=>a(m))})};i=a(i)}const s=(o=(e=this.gos.get("chartToolPanelsDef"))==null?void 0:e.settingsPanel)==null?void 0:o.chartGroupsDef;return s&&(i=ChartMenuItemMapper.filterAndOrderChartMenu(i,s,r.getConfigLookup())),this.cleanInternals(i)}cleanInternals(t){if(!t)return t;const e=o=>{var r;return o==null||delete o._key,o==null||delete o._enterprise,(r=o?.subMenu)==null||r.forEach(n=>e(n)),o};return e(t)}static buildLookup(t){let e={};const o=r=>{e[r._key]=r,r.subMenu&&r.subMenu.forEach(n=>o(n))};return o(t),e}static filterAndOrderChartMenu(t,e,o){var r;const n=this.buildLookup(t);let i=__spreadProps(__spreadValues({},t),{subMenu:[]});if(Object.entries(e).forEach(([s,a])=>{var l,h;const m=o[s];if(m===null)return;if(m==null){import_core4._.warnOnce(`invalid chartGroupsDef config '${s}'`);return}const c=n[m._key];if(c)if(c.subMenu){const d=a.map(u=>{const g=m[u];if(g==null){import_core4._.warnOnce(`invalid chartGroupsDef config '${s}.${u}'`);return}return n[g]}).filter(u=>u!==void 0);d.length>0&&(c.subMenu=d,(l=i.subMenu)==null||l.push(c))}else(h=i.subMenu)==null||h.push(c)}),((r=i.subMenu)==null?void 0:r.length)!=0)return i}};__decorateClass([(0,import_core4.Optional)("chartService")],ChartMenuItemMapper.prototype,"chartService",2),ChartMenuItemMapper=__decorateClass([(0,import_core4.Bean)("chartMenuItemMapper")],ChartMenuItemMapper);var PivotMenuItemMapper=class{constructor(t,e,o){this.gos=t,this.chartService=e,this.localeService=o}getMenuItem(){const t=this.localeService.getLocaleTextFunc(),e=(o,r,n,i,s=!1)=>({name:t(o,r),action:()=>this.chartService.createPivotChart({chartType:n}),_key:i,_enterprise:s});return{name:t("pivotChart","Pivot Chart"),_key:"pivotChart",subMenu:[{_key:"pivotColumnChart",name:t("columnChart","Column"),subMenu:[e("groupedColumn","Grouped‎","groupedColumn","pivotGroupedColumn"),e("stackedColumn","Stacked‎","stackedColumn","pivotStackedColumn"),e("normalizedColumn","100% Stacked‎","normalizedColumn","pivotNormalizedColumn")]},{_key:"pivotBarChart",name:t("barChart","Bar"),subMenu:[e("groupedBar","Grouped‎","groupedBar","pivotGroupedBar"),e("stackedBar","Stacked‎","stackedBar","pivotStackedBar"),e("normalizedBar","100% Stacked‎","normalizedBar","pivotNormalizedBar")]},{_key:"pivotPieChart",name:t("pieChart","Pie"),subMenu:[e("pie","Pie‎","pie","pivotPie"),e("donut","Donut‎","donut","pivotDonut")]},e("line","Line‎","line","pivotLineChart"),{_key:"pivotXYChart",name:t("xyChart","X Y (Scatter)"),subMenu:[e("scatter","Scatter‎","scatter","pivotScatter"),e("bubble","Bubble‎","bubble","pivotBubble")]},{_key:"pivotAreaChart",name:t("areaChart","Area"),subMenu:[e("area","Area‎","area","pivotArea"),e("stackedArea","Stacked‎","stackedArea","pivotStackedArea"),e("normalizedArea","100% Stacked‎","normalizedArea","pivotNormalizedArea")]},{_key:"pivotStatisticalChart",_enterprise:!1,name:t("statisticalChart","Statistical"),subMenu:[e("histogramChart","Histogram‎","histogram","pivotHistogram",!1)]},{_key:"pivotHierarchicalChart",_enterprise:!0,name:t("hierarchicalChart","Hierarchical"),subMenu:[e("treemapChart","Treemap‎","treemap","pivotTreemap",!0),e("sunburstChart","Sunburst‎","sunburst","pivotSunburst",!0)]},{_key:"pivotCombinationChart",name:t("combinationChart","Combination"),subMenu:[e("columnLineCombo","Column & Line‎","columnLineCombo","pivotColumnLineCombo"),e("AreaColumnCombo","Area & Column‎","areaColumnCombo","pivotAreaColumnCombo")]}],icon:import_core4._.createIconNoSpan("chart",this.gos,void 0)}}getConfigLookup(){return{columnGroup:{_key:"pivotColumnChart",column:"pivotGroupedColumn",stackedColumn:"pivotStackedColumn",normalizedColumn:"pivotNormalizedColumn"},barGroup:{_key:"pivotBarChart",bar:"pivotGroupedBar",stackedBar:"pivotStackedBar",normalizedBar:"pivotNormalizedBar"},pieGroup:{_key:"pivotPieChart",pie:"pivotPie",donut:"pivotDonut",doughnut:"pivotDonut"},lineGroup:{_key:"pivotLineChart",line:"pivotLineChart"},scatterGroup:{_key:"pivotXYChart",bubble:"pivotBubble",scatter:"pivotScatter"},areaGroup:{_key:"pivotAreaChart",area:"pivotArea",stackedArea:"pivotStackedArea",normalizedArea:"pivotNormalizedArea"},combinationGroup:{_key:"pivotCombinationChart",columnLineCombo:"pivotColumnLineCombo",areaColumnCombo:"pivotAreaColumnCombo",customCombo:null},hierarchicalGroup:{_key:"pivotHierarchicalChart",treemap:"pivotTreemap",sunburst:"pivotSunburst"},statisticalGroup:{_key:"pivotStatisticalChart",histogram:"pivotHistogram",rangeBar:null,rangeArea:null,boxPlot:null},polarGroup:null,specializedGroup:null}}},RangeMenuItemMapper=class{constructor(t,e,o){this.gos=t,this.chartService=e,this.localeService=o}getMenuItem(){const t=this.localeService.getLocaleTextFunc(),e=(o,r,n,i,s=!1)=>({name:t(o,r),action:()=>this.chartService.createChartFromCurrentRange(n),_key:i,_enterprise:s});return{name:t("chartRange","Chart Range"),_key:"chartRange",subMenu:[{name:t("columnChart","Column"),subMenu:[e("groupedColumn","Grouped‎","groupedColumn","rangeGroupedColumn"),e("stackedColumn","Stacked‎","stackedColumn","rangeStackedColumn"),e("normalizedColumn","100% Stacked‎","normalizedColumn","rangeNormalizedColumn")],_key:"rangeColumnChart"},{name:t("barChart","Bar"),subMenu:[e("groupedBar","Grouped‎","groupedBar","rangeGroupedBar"),e("stackedBar","Stacked‎","stackedBar","rangeStackedBar"),e("normalizedBar","100% Stacked‎","normalizedBar","rangeNormalizedBar")],_key:"rangeBarChart"},{name:t("pieChart","Pie"),subMenu:[e("pie","Pie‎","pie","rangePie"),e("donut","Donut‎","donut","rangeDonut")],_key:"rangePieChart"},e("line","Line‎","line","rangeLineChart"),{name:t("xyChart","X Y (Scatter)"),subMenu:[e("scatter","Scatter‎","scatter","rangeScatter"),e("bubble","Bubble‎","bubble","rangeBubble")],_key:"rangeXYChart"},{name:t("areaChart","Area"),subMenu:[e("area","Area‎","area","rangeArea"),e("stackedArea","Stacked‎","stackedArea","rangeStackedArea"),e("normalizedArea","100% Stacked‎","normalizedArea","rangeNormalizedArea")],_key:"rangeAreaChart"},{name:t("polarChart","Polar"),subMenu:[e("radarLine","Radar Line‎","radarLine","rangeRadarLine"),e("radarArea","Radar Area‎","radarArea","rangeRadarArea"),e("nightingale","Nightingale‎","nightingale","rangeNightingale"),e("radialColumn","Radial Column‎","radialColumn","rangeRadialColumn"),e("radialBar","Radial Bar‎","radialBar","rangeRadialBar")],_key:"rangePolarChart",_enterprise:!0},{name:t("statisticalChart","Statistical"),subMenu:[e("boxPlot","Box Plot‎","boxPlot","rangeBoxPlot",!0),e("histogramChart","Histogram‎","histogram","rangeHistogram",!1),e("rangeBar","Range Bar‎","rangeBar","rangeRangeBar",!0),e("rangeArea","Range Area‎","rangeArea","rangeRangeArea",!0)],_key:"rangeStatisticalChart",_enterprise:!1},{name:t("hierarchicalChart","Hierarchical"),subMenu:[e("treemap","Treemap‎","treemap","rangeTreemap"),e("sunburst","Sunburst‎","sunburst","rangeSunburst")],_key:"rangeHierarchicalChart",_enterprise:!0},{name:t("specializedChart","Specialized"),subMenu:[e("heatmap","Heatmap‎","heatmap","rangeHeatmap"),e("waterfall","Waterfall‎","waterfall","rangeWaterfall")],_key:"rangeSpecializedChart",_enterprise:!0},{name:t("combinationChart","Combination"),subMenu:[e("columnLineCombo","Column & Line‎","columnLineCombo","rangeColumnLineCombo"),e("AreaColumnCombo","Area & Column‎","areaColumnCombo","rangeAreaColumnCombo")],_key:"rangeCombinationChart"}],icon:import_core4._.createIconNoSpan("chart",this.gos,void 0)}}getConfigLookup(){return{columnGroup:{_key:"rangeColumnChart",column:"rangeGroupedColumn",stackedColumn:"rangeStackedColumn",normalizedColumn:"rangeNormalizedColumn"},barGroup:{_key:"rangeBarChart",bar:"rangeGroupedBar",stackedBar:"rangeStackedBar",normalizedBar:"rangeNormalizedBar"},pieGroup:{_key:"rangePieChart",pie:"rangePie",donut:"rangeDonut",doughnut:"rangeDonut"},lineGroup:{_key:"rangeLineChart",line:"rangeLineChart"},scatterGroup:{_key:"rangeXYChart",bubble:"rangeBubble",scatter:"rangeScatter"},areaGroup:{_key:"rangeAreaChart",area:"rangeArea",stackedArea:"rangeStackedArea",normalizedArea:"rangeNormalizedArea"},polarGroup:{_key:"rangePolarChart",radarLine:"rangeRadarLine",radarArea:"rangeRadarArea",nightingale:"rangeNightingale",radialColumn:"rangeRadialColumn",radialBar:"rangeRadialBar"},statisticalGroup:{_key:"rangeStatisticalChart",boxPlot:"rangeBoxPlot",histogram:"rangeHistogram",rangeBar:"rangeRangeBar",rangeArea:"rangeRangeArea"},hierarchicalGroup:{_key:"rangeHierarchicalChart",treemap:"rangeTreemap",sunburst:"rangeSunburst"},specializedGroup:{_key:"rangeSpecializedChart",heatmap:"rangeHeatmap",waterfall:"rangeWaterfall"},combinationGroup:{_key:"rangeCombinationChart",columnLineCombo:"rangeColumnLineCombo",areaColumnCombo:"rangeAreaColumnCombo",customCombo:null}}}},import_core5=require("@ag-grid-community/core"),import_column_tool_panel=require("@ag-grid-enterprise/column-tool-panel"),ColumnChooserFactory=class extends import_core5.BeanStub{createColumnSelectPanel(t,e,o,r){var n,i;const s=t.createManagedBean(new import_column_tool_panel.PrimaryColsPanel),a=(i=(n=r??e?.getColDef().columnChooserParams)!=null?n:e?.getColDef().columnsMenuParams)!=null?i:{},{contractColumnSelection:l,suppressColumnExpandAll:h,suppressColumnFilter:m,suppressColumnSelectAll:c,suppressSyncLayoutWithGrid:d,columnLayout:u}=a;return s.init(!!o,this.gos.addGridCommonParams({suppressColumnMove:!1,suppressValues:!1,suppressPivots:!1,suppressRowGroups:!1,suppressPivotMode:!1,contractColumnSelection:!!l,suppressColumnExpandAll:!!h,suppressColumnFilter:!!m,suppressColumnSelectAll:!!c,suppressSyncLayoutWithGrid:!!u||!!d,onStateUpdated:()=>{}}),"columnMenu"),u&&s.setColumnLayout(u),s}showColumnChooser({column:t,chooserParams:e,eventSource:o}){this.hideActiveColumnChooser();const r=this.createColumnSelectPanel(this,t,!0,e),n=this.localeService.getLocaleTextFunc(),i=this.columnModel.getAllDisplayedColumns().indexOf(t),s=t?this.focusService.getFocusedHeader():null;this.activeColumnChooserDialog=this.createBean(new import_core5.AgDialog({title:n("chooseColumns","Choose Columns"),component:r,width:300,height:300,resizable:!0,movable:!0,centered:!0,closable:!0,afterGuiAttached:()=>{var a;(a=this.focusService.findNextFocusableElement(r.getGui()))==null||a.focus(),this.dispatchVisibleChangedEvent(!0,t)},closedCallback:a=>{const l=this.activeColumnChooser.getGui();this.destroyBean(this.activeColumnChooser),this.activeColumnChooser=void 0,this.activeColumnChooserDialog=void 0,this.dispatchVisibleChangedEvent(!1,t),t&&this.menuUtils.restoreFocusOnClose({column:t,headerPosition:s,columnIndex:i,eventSource:o},l,a,!0)}})),this.activeColumnChooser=r}hideActiveColumnChooser(){this.activeColumnChooserDialog&&this.destroyBean(this.activeColumnChooserDialog)}dispatchVisibleChangedEvent(t,e){const o={type:import_core5.Events.EVENT_COLUMN_MENU_VISIBLE_CHANGED,visible:t,switchingTab:!1,key:"columnChooser",column:e??null};this.eventService.dispatchEvent(o)}};__decorateClass([(0,import_core5.Autowired)("focusService")],ColumnChooserFactory.prototype,"focusService",2),__decorateClass([(0,import_core5.Autowired)("menuUtils")],ColumnChooserFactory.prototype,"menuUtils",2),__decorateClass([(0,import_core5.Autowired)("columnModel")],ColumnChooserFactory.prototype,"columnModel",2),ColumnChooserFactory=__decorateClass([(0,import_core5.Bean)("columnChooserFactory")],ColumnChooserFactory);var import_core6=require("@ag-grid-community/core"),ColumnMenuFactory=class extends import_core6.BeanStub{createMenu(t,e,o){const r=t.createManagedBean(new import_core6.AgMenuList(0,{column:e??null,node:null,value:null})),n=this.getMenuItems(e),i=this.menuItemMapper.mapWithStockItems(n,e??null,o);return r.addMenuItems(i),r}getMenuItems(t){const e=this.getDefaultMenuOptions(t);let o;const r=t?.getColDef().mainMenuItems;if(Array.isArray(r))o=r;else if(typeof r=="function")o=r(this.gos.addGridCommonParams({column:t,defaultItems:e}));else{const n=this.gos.getCallback("getMainMenuItems");n&&t?o=n({column:t,defaultItems:e}):o=e}return import_core6._.removeRepeatsFromArray(o,ColumnMenuFactory.MENU_ITEM_SEPARATOR),o}getDefaultMenuOptions(t){const e=[],o=this.menuService.isLegacyMenuEnabled();if(!t)return o||e.push("columnChooser"),e.push("resetColumns"),e;const r=!t.getColDef().lockPinned,n=this.columnModel.getRowGroupColumns().length,i=n>0,s=t.isAllowValue(),a=t.isAllowRowGroup(),l=t.isPrimary(),h=this.columnModel.isPivotMode(),m=this.rowModel.getType()==="clientSide",c=this.gos.get("treeData"),d=l&&i&&s||!l;if(!o&&t.isSortable()){const C=t.getSort();C!=="asc"&&e.push("sortAscending"),C!=="desc"&&e.push("sortDescending"),C&&e.push("sortUnSort"),e.push(ColumnMenuFactory.MENU_ITEM_SEPARATOR)}return this.menuService.isFilterMenuItemEnabled(t)&&(e.push("columnFilter"),e.push(ColumnMenuFactory.MENU_ITEM_SEPARATOR)),r&&e.push("pinSubMenu"),d&&e.push("valueAggSubMenu"),(r||d)&&e.push(ColumnMenuFactory.MENU_ITEM_SEPARATOR),e.push("autoSizeThis"),e.push("autoSizeAll"),e.push(ColumnMenuFactory.MENU_ITEM_SEPARATOR),t.getColDef().showRowGroup?e.push("rowUnGroup"):a&&t.isPrimary()&&(t.isRowGroupActive()?this.columnModel.isColumnGroupingLocked(t)||e.push("rowUnGroup"):e.push("rowGroup")),e.push(ColumnMenuFactory.MENU_ITEM_SEPARATOR),o||e.push("columnChooser"),e.push("resetColumns"),m&&(c||n>(h?1:0))&&(e.push("expandAll"),e.push("contractAll")),e}};ColumnMenuFactory.MENU_ITEM_SEPARATOR="separator",__decorateClass([(0,import_core6.Autowired)("menuItemMapper")],ColumnMenuFactory.prototype,"menuItemMapper",2),__decorateClass([(0,import_core6.Autowired)("columnModel")],ColumnMenuFactory.prototype,"columnModel",2),__decorateClass([(0,import_core6.Autowired)("rowModel")],ColumnMenuFactory.prototype,"rowModel",2),__decorateClass([(0,import_core6.Autowired)("filterManager")],ColumnMenuFactory.prototype,"filterManager",2),__decorateClass([(0,import_core6.Autowired)("menuService")],ColumnMenuFactory.prototype,"menuService",2),ColumnMenuFactory=__decorateClass([(0,import_core6.Bean)("columnMenuFactory")],ColumnMenuFactory);var import_core7=require("@ag-grid-community/core"),MenuUtils=class extends import_core7.BeanStub{restoreFocusOnClose(t,e,o,r){const{eventSource:n}=t,i=o instanceof KeyboardEvent;if(!r&&!i||!n)return;const s=this.gos.getDocument(),a=this.gos.getActiveDomElement();!e.contains(a)&&a!==s.body||this.focusHeaderCell(t)}closePopupAndRestoreFocusOnSelect(t,e,o){let r;o&&o.keyboardEvent&&(r=o.keyboardEvent),t(r&&{keyboardEvent:r});const n=this.focusService.getFocusedCell(),i=this.gos.getDocument(),s=this.gos.getActiveDomElement();if(!s||s===i.body)if(n){const{rowIndex:a,rowPinned:l,column:h}=n;this.focusService.setFocusedCell({rowIndex:a,column:h,rowPinned:l,forceBrowserFocus:!0,preventScrollOnBrowserFocus:!0})}else this.focusHeaderCell(e)}onContextMenu(t,e,o){if(!this.gos.get("allowContextMenuWithControlKey")&&t&&(t.ctrlKey||t.metaKey)||(t&&this.blockMiddleClickScrollsIfNeeded(t),this.gos.get("suppressContextMenu")))return;const r=t??e.touches[0];if(o(r)){const n=t??e;n&&n.cancelable&&n.preventDefault()}}focusHeaderCell(t){const{column:e,columnIndex:o,headerPosition:r,eventSource:n}=t;if(this.columnModel.getAllDisplayedColumns().some(s=>s===e)&&n&&import_core7._.isVisible(n)){const s=this.focusService.findTabbableParent(n);s&&(e&&this.headerNavigationService.scrollToColumn(e),s.focus())}else if(r&&o!==-1){const s=this.columnModel.getAllDisplayedColumns(),a=s[o]||import_core7._.last(s);a&&this.focusService.focusHeaderPosition({headerPosition:{headerRowIndex:r.headerRowIndex,column:a}})}}blockMiddleClickScrollsIfNeeded(t){this.gos.get("suppressMiddleClickScrolls")&&t.which===2&&t.preventDefault()}};__decorateClass([(0,import_core7.Autowired)("focusService")],MenuUtils.prototype,"focusService",2),__decorateClass([(0,import_core7.Autowired)("headerNavigationService")],MenuUtils.prototype,"headerNavigationService",2),__decorateClass([(0,import_core7.Autowired)("columnModel")],MenuUtils.prototype,"columnModel",2),MenuUtils=__decorateClass([(0,import_core7.Bean)("menuUtils")],MenuUtils);var MenuModule={version:VERSION,moduleName:import_core8.ModuleNames.MenuModule,beans:[EnterpriseMenuFactory,ContextMenuFactory,MenuItemMapper,ChartMenuItemMapper,ColumnChooserFactory,ColumnMenuFactory,MenuUtils],dependantModules:[import_core9.EnterpriseCoreModule]}; | ||
`),this.column=t,this.restoreFocusParams=e,this.sourceElement=o}init(){this.mainMenuList=this.columnMenuFactory.createMenu(this,this.column,()=>{var t;return(t=this.sourceElement)!=null?t:this.getGui()}),this.mainMenuList.addEventListener(import_core.AgMenuItemComponent.EVENT_CLOSE_MENU,this.onHidePopup.bind(this)),this.eColumnMenu.appendChild(this.mainMenuList.getGui())}onHidePopup(t){this.menuUtils.closePopupAndRestoreFocusOnSelect(this.hidePopupFunc,this.restoreFocusParams,t)}afterGuiAttached({hidePopup:t}){t&&(this.hidePopupFunc=t,this.addDestroyFunc(t)),this.focusService.focusInto(this.mainMenuList.getGui())}};__decorateClass([(0,import_core.Autowired)("columnMenuFactory")],ColumnContextMenu.prototype,"columnMenuFactory",2),__decorateClass([(0,import_core.Autowired)("menuUtils")],ColumnContextMenu.prototype,"menuUtils",2),__decorateClass([(0,import_core.Autowired)("focusService")],ColumnContextMenu.prototype,"focusService",2),__decorateClass([(0,import_core.RefSelector)("eColumnMenu")],ColumnContextMenu.prototype,"eColumnMenu",2),__decorateClass([import_core.PostConstruct],ColumnContextMenu.prototype,"init",1);var import_core2=require("@ag-grid-community/core"),CSS_MENU="ag-menu",CSS_CONTEXT_MENU_OPEN="ag-context-menu-open",ContextMenuFactory=class extends import_core2.BeanStub{hideActiveMenu(){this.destroyBean(this.activeMenu)}getMenuItems(t,e,o){const r=[];if(import_core2._.exists(t)&&import_core2.ModuleRegistry.__isRegistered(import_core2.ModuleNames.ClipboardModule,this.context.getGridId())&&e&&(this.gos.get("suppressCutToClipboard")||r.push("cut"),r.push("copy","copyWithHeaders","copyWithGroupHeaders","paste","separator")),this.gos.get("enableCharts")&&import_core2.ModuleRegistry.__isRegistered(import_core2.ModuleNames.GridChartsModule,this.context.getGridId())&&(this.columnModel.isPivotMode()&&r.push("pivotChart"),this.rangeService&&!this.rangeService.isEmpty()&&r.push("chartRange")),import_core2._.exists(t)){const a=!import_core2.ModuleRegistry.__isRegistered(import_core2.ModuleNames.CsvExportModule,this.context.getGridId()),l=!import_core2.ModuleRegistry.__isRegistered(import_core2.ModuleNames.ExcelExportModule,this.context.getGridId()),h=this.gos.get("suppressExcelExport")||l,m=this.gos.get("suppressCsvExport")||a;!import_core2._.isIOSUserAgent()&&(!h||!m)&&r.push("export")}const n=r.length?r:void 0,i=e?.getColDef().contextMenuItems;if(Array.isArray(i))return i;if(typeof i=="function")return i(this.gos.addGridCommonParams({column:e,node:t,value:o,defaultItems:n}));const s=this.gos.getCallback("getContextMenuItems");return s?s({column:e,node:t,value:o,defaultItems:n}):r}onContextMenu(t,e,o,r,n,i){this.menuUtils.onContextMenu(t,e,s=>this.showMenu(o,r,n,s,i))}showMenu(t,e,o,r,n){const i=this.getMenuItems(t,e,o),s=this.ctrlsService.getGridBodyCtrl().getGui();if(i===void 0||import_core2._.missingOrEmpty(i))return!1;const a=new ContextMenu(i,e,t,o);this.createBean(a);const l=a.getGui(),h={column:e,rowNode:t,type:"contextMenu",mouseEvent:r,ePopup:l,nudgeY:1},m=this.localeService.getLocaleTextFunc(),c=this.popupService.addPopup({modal:!0,eChild:l,closeOnEsc:!0,closedCallback:u=>{s.classList.remove(CSS_CONTEXT_MENU_OPEN),this.destroyBean(a),this.dispatchVisibleChangedEvent(!1,u===void 0?"api":"ui")},click:r,positionCallback:()=>{const u=this.gos.get("enableRtl");this.popupService.positionPopupUnderMouseEvent(__spreadProps(__spreadValues({},h),{nudgeX:u?(l.offsetWidth+1)*-1:1}))},anchorToElement:n,ariaLabel:m("ariaLabelContextMenu","Context Menu")});c&&(s.classList.add(CSS_CONTEXT_MENU_OPEN),a.afterGuiAttached({container:"contextMenu",hidePopup:c.hideFunc})),this.activeMenu&&this.hideActiveMenu(),this.activeMenu=a,a.addEventListener(import_core2.BeanStub.EVENT_DESTROYED,()=>{this.activeMenu===a&&(this.activeMenu=null)}),c&&a.addEventListener(import_core2.AgMenuItemComponent.EVENT_CLOSE_MENU,u=>{var g,C;return c.hideFunc({mouseEvent:(g=u.mouseEvent)!=null?g:void 0,keyboardEvent:(C=u.keyboardEvent)!=null?C:void 0,forceHide:!0})});const d=r&&r instanceof MouseEvent&&r.type==="mousedown";return this.dispatchVisibleChangedEvent(!0,d?"api":"ui"),!0}dispatchVisibleChangedEvent(t,e="ui"){const o={type:import_core2.Events.EVENT_CONTEXT_MENU_VISIBLE_CHANGED,visible:t,source:e};this.eventService.dispatchEvent(o)}};__decorateClass([(0,import_core2.Autowired)("popupService")],ContextMenuFactory.prototype,"popupService",2),__decorateClass([(0,import_core2.Autowired)("ctrlsService")],ContextMenuFactory.prototype,"ctrlsService",2),__decorateClass([(0,import_core2.Autowired)("columnModel")],ContextMenuFactory.prototype,"columnModel",2),__decorateClass([(0,import_core2.Autowired)("menuUtils")],ContextMenuFactory.prototype,"menuUtils",2),__decorateClass([(0,import_core2.Optional)("rangeService")],ContextMenuFactory.prototype,"rangeService",2),ContextMenuFactory=__decorateClass([(0,import_core2.Bean)("contextMenuFactory")],ContextMenuFactory);var ContextMenu=class extends import_core2.Component{constructor(t,e,o,r){super(`<div class="${CSS_MENU}" role="presentation"></div>`),this.menuItems=t,this.column=e,this.node=o,this.value=r,this.menuList=null,this.focusedCell=null}addMenuItems(){const t=this.createManagedBean(new import_core2.AgMenuList(0,{column:this.column,node:this.node,value:this.value})),e=this.menuItemMapper.mapWithStockItems(this.menuItems,null,()=>this.getGui());t.addMenuItems(e),this.appendChild(t),this.menuList=t,t.addEventListener(import_core2.AgMenuItemComponent.EVENT_CLOSE_MENU,o=>this.dispatchEvent(o))}afterGuiAttached(t){t.hidePopup&&this.addDestroyFunc(t.hidePopup),this.focusedCell=this.focusService.getFocusedCell(),this.menuList&&this.focusService.focusInto(this.menuList.getGui())}restoreFocusedCell(){const t=this.focusService.getFocusedCell();if(t&&this.focusedCell&&this.cellPositionUtils.equals(t,this.focusedCell)){const{rowIndex:e,rowPinned:o,column:r}=this.focusedCell,n=this.gos.getDocument(),i=this.gos.getActiveDomElement();(!i||i===n.body)&&this.focusService.setFocusedCell({rowIndex:e,column:r,rowPinned:o,forceBrowserFocus:!0,preventScrollOnBrowserFocus:!this.focusService.isKeyboardMode()})}}destroy(){this.restoreFocusedCell(),super.destroy()}};__decorateClass([(0,import_core2.Autowired)("menuItemMapper")],ContextMenu.prototype,"menuItemMapper",2),__decorateClass([(0,import_core2.Autowired)("focusService")],ContextMenu.prototype,"focusService",2),__decorateClass([(0,import_core2.Autowired)("cellPositionUtils")],ContextMenu.prototype,"cellPositionUtils",2),__decorateClass([import_core2.PostConstruct],ContextMenu.prototype,"addMenuItems",1);var import_core3=require("@ag-grid-community/core"),MenuItemMapper=class extends import_core3.BeanStub{mapWithStockItems(t,e,o){if(!t)return[];const r=[];return t.forEach(n=>{let i;if(typeof n=="string"?i=this.getStockMenuItem(n,e,o):i=__spreadValues({},n),!i)return;const s=i,{subMenu:a}=s;a&&a instanceof Array&&(s.subMenu=this.mapWithStockItems(a,e,o)),i!=null&&r.push(i)}),r}getStockMenuItem(t,e,o){var r;const n=this.localeService.getLocaleTextFunc(),i=this.gos.get("skipHeaderOnAutoSize");switch(t){case"pinSubMenu":return{name:n("pinColumn","Pin Column"),icon:import_core3._.createIconNoSpan("menuPin",this.gos,null),subMenu:["clearPinned","pinLeft","pinRight"]};case"pinLeft":return{name:n("pinLeft","Pin Left"),action:()=>this.columnModel.setColumnsPinned([e],"left","contextMenu"),checked:!!e&&e.isPinnedLeft()};case"pinRight":return{name:n("pinRight","Pin Right"),action:()=>this.columnModel.setColumnsPinned([e],"right","contextMenu"),checked:!!e&&e.isPinnedRight()};case"clearPinned":return{name:n("noPin","No Pin"),action:()=>this.columnModel.setColumnsPinned([e],null,"contextMenu"),checked:!!e&&!e.isPinned()};case"valueAggSubMenu":return import_core3.ModuleRegistry.__assertRegistered(import_core3.ModuleNames.RowGroupingModule,"Aggregation from Menu",this.context.getGridId())?!e?.isPrimary()&&!e?.getColDef().pivotValueColumn?null:{name:n("valueAggregation","Value Aggregation"),icon:import_core3._.createIconNoSpan("menuValue",this.gos,null),subMenu:this.createAggregationSubMenu(e,this.aggFuncService)}:null;case"autoSizeThis":return{name:n("autosizeThiscolumn","Autosize This Column"),action:()=>this.columnModel.autoSizeColumn(e,"contextMenu",i)};case"autoSizeAll":return{name:n("autosizeAllColumns","Autosize All Columns"),action:()=>this.columnModel.autoSizeAllColumns("contextMenu",i)};case"rowGroup":return{name:n("groupBy","Group by")+" "+import_core3._.escapeString(this.columnModel.getDisplayNameForColumn(e,"header")),disabled:e?.isRowGroupActive()||!e?.getColDef().enableRowGroup,action:()=>this.columnModel.addRowGroupColumns([e],"contextMenu"),icon:import_core3._.createIconNoSpan("menuAddRowGroup",this.gos,null)};case"rowUnGroup":const s=import_core3._.createIconNoSpan("menuRemoveRowGroup",this.gos,null),a=e?.getColDef().showRowGroup,l=this.gos.get("groupLockGroupColumns");if(a===!0)return{name:n("ungroupAll","Un-Group All"),disabled:l===-1||l>=this.columnModel.getRowGroupColumns().length,action:()=>this.columnModel.setRowGroupColumns(this.columnModel.getRowGroupColumns().slice(0,l),"contextMenu"),icon:s};if(typeof a=="string"){const d=this.columnModel.getPrimaryColumn(a),u=d!=null?import_core3._.escapeString(this.columnModel.getDisplayNameForColumn(d,"header")):a;return{name:n("ungroupBy","Un-Group by")+" "+u,disabled:d!=null&&this.columnModel.isColumnGroupingLocked(d),action:()=>this.columnModel.removeRowGroupColumns([a],"contextMenu"),icon:s}}return{name:n("ungroupBy","Un-Group by")+" "+import_core3._.escapeString(this.columnModel.getDisplayNameForColumn(e,"header")),disabled:!e?.isRowGroupActive()||!e?.getColDef().enableRowGroup||this.columnModel.isColumnGroupingLocked(e),action:()=>this.columnModel.removeRowGroupColumns([e],"contextMenu"),icon:s};case"resetColumns":return{name:n("resetColumns","Reset Columns"),action:()=>this.columnModel.resetColumnState("contextMenu")};case"expandAll":return{name:n("expandAll","Expand All Row Groups"),action:()=>this.gridApi.expandAll()};case"contractAll":return{name:n("collapseAll","Collapse All Row Groups"),action:()=>this.gridApi.collapseAll()};case"copy":return import_core3.ModuleRegistry.__assertRegistered(import_core3.ModuleNames.ClipboardModule,"Copy from Menu",this.context.getGridId())?{name:n("copy","Copy"),shortcut:n("ctrlC","Ctrl+C"),icon:import_core3._.createIconNoSpan("clipboardCopy",this.gos,null),action:()=>this.clipboardService.copyToClipboard()}:null;case"copyWithHeaders":return import_core3.ModuleRegistry.__assertRegistered(import_core3.ModuleNames.ClipboardModule,"Copy with Headers from Menu",this.context.getGridId())?{name:n("copyWithHeaders","Copy with Headers"),icon:import_core3._.createIconNoSpan("clipboardCopy",this.gos,null),action:()=>this.clipboardService.copyToClipboard({includeHeaders:!0})}:null;case"copyWithGroupHeaders":return import_core3.ModuleRegistry.__assertRegistered(import_core3.ModuleNames.ClipboardModule,"Copy with Group Headers from Menu",this.context.getGridId())?{name:n("copyWithGroupHeaders","Copy with Group Headers"),icon:import_core3._.createIconNoSpan("clipboardCopy",this.gos,null),action:()=>this.clipboardService.copyToClipboard({includeHeaders:!0,includeGroupHeaders:!0})}:null;case"cut":if(import_core3.ModuleRegistry.__assertRegistered(import_core3.ModuleNames.ClipboardModule,"Cut from Menu",this.context.getGridId())){const d=this.focusService.getFocusedCell(),u=d?this.rowPositionUtils.getRowNode(d):null,g=u?d?.column.isCellEditable(u):!1;return{name:n("cut","Cut"),shortcut:n("ctrlX","Ctrl+X"),icon:import_core3._.createIconNoSpan("clipboardCut",this.gos,null),disabled:!g||this.gos.get("suppressCutToClipboard"),action:()=>this.clipboardService.cutToClipboard(void 0,"contextMenu")}}else return null;case"paste":return import_core3.ModuleRegistry.__assertRegistered(import_core3.ModuleNames.ClipboardModule,"Paste from Clipboard",this.context.getGridId())?{name:n("paste","Paste"),shortcut:n("ctrlV","Ctrl+V"),disabled:!0,icon:import_core3._.createIconNoSpan("clipboardPaste",this.gos,null),action:()=>this.clipboardService.pasteFromClipboard()}:null;case"export":const h=[],m=import_core3.ModuleRegistry.__isRegistered(import_core3.ModuleNames.CsvExportModule,this.context.getGridId()),c=import_core3.ModuleRegistry.__isRegistered(import_core3.ModuleNames.ExcelExportModule,this.context.getGridId());return!this.gos.get("suppressCsvExport")&&m&&h.push("csvExport"),!this.gos.get("suppressExcelExport")&&c&&h.push("excelExport"),{name:n("export","Export"),subMenu:h,icon:import_core3._.createIconNoSpan("save",this.gos,null)};case"csvExport":return{name:n("csvExport","CSV Export"),icon:import_core3._.createIconNoSpan("csvExport",this.gos,null),action:()=>this.gridApi.exportDataAsCsv({})};case"excelExport":return{name:n("excelExport","Excel Export"),icon:import_core3._.createIconNoSpan("excelExport",this.gos,null),action:()=>this.gridApi.exportDataAsExcel()};case"separator":return"separator";case"pivotChart":case"chartRange":return(r=this.chartMenuItemMapper.getChartItems(t))!=null?r:null;case"columnFilter":return e?{name:n("columnFilter","Column Filter"),icon:import_core3._.createIconNoSpan("filter",this.gos,null),action:()=>this.menuService.showFilterMenu({column:e,buttonElement:o(),containerType:"columnFilter",positionBy:"button"})}:null;case"columnChooser":return import_core3.ModuleRegistry.__isRegistered(import_core3.ModuleNames.ColumnsToolPanelModule,this.context.getGridId())?{name:n("columnChooser","Choose Columns"),icon:import_core3._.createIconNoSpan("columns",this.gos,null),action:()=>this.menuService.showColumnChooser({column:e,eventSource:o()})}:null;case"sortAscending":return{name:n("sortAscending","Sort Ascending"),icon:import_core3._.createIconNoSpan("sortAscending",this.gos,null),action:()=>this.sortController.setSortForColumn(e,"asc",!1,"columnMenu")};case"sortDescending":return{name:n("sortDescending","Sort Descending"),icon:import_core3._.createIconNoSpan("sortDescending",this.gos,null),action:()=>this.sortController.setSortForColumn(e,"desc",!1,"columnMenu")};case"sortUnSort":return{name:n("sortUnSort","Clear Sort"),icon:import_core3._.createIconNoSpan("sortUnSort",this.gos,null),action:()=>this.sortController.setSortForColumn(e,null,!1,"columnMenu")};default:return console.warn(`AG Grid: unknown menu item type ${t}`),null}}createAggregationSubMenu(t,e){const o=this.localeService.getLocaleTextFunc();let r;if(t.isPrimary())r=t;else{const i=t.getColDef().pivotValueColumn;r=import_core3._.exists(i)?i:void 0}const n=[];if(r){const i=r.isValueActive(),s=e.getFuncNames(r);n.push({name:o("noAggregation","None"),action:()=>{this.columnModel.removeValueColumns([r],"contextMenu"),this.columnModel.setColumnAggFunc(r,void 0,"contextMenu")},checked:!i}),s.forEach(a=>{n.push({name:o(a,e.getDefaultFuncLabel(a)),action:()=>{this.columnModel.setColumnAggFunc(r,a,"contextMenu"),this.columnModel.addValueColumns([r],"contextMenu")},checked:i&&r.getAggFunc()===a})})}return n}};__decorateClass([(0,import_core3.Autowired)("columnModel")],MenuItemMapper.prototype,"columnModel",2),__decorateClass([(0,import_core3.Autowired)("gridApi")],MenuItemMapper.prototype,"gridApi",2),__decorateClass([(0,import_core3.Autowired)("focusService")],MenuItemMapper.prototype,"focusService",2),__decorateClass([(0,import_core3.Autowired)("rowPositionUtils")],MenuItemMapper.prototype,"rowPositionUtils",2),__decorateClass([(0,import_core3.Autowired)("chartMenuItemMapper")],MenuItemMapper.prototype,"chartMenuItemMapper",2),__decorateClass([(0,import_core3.Autowired)("menuService")],MenuItemMapper.prototype,"menuService",2),__decorateClass([(0,import_core3.Autowired)("sortController")],MenuItemMapper.prototype,"sortController",2),__decorateClass([(0,import_core3.Optional)("clipboardService")],MenuItemMapper.prototype,"clipboardService",2),__decorateClass([(0,import_core3.Optional)("aggFuncService")],MenuItemMapper.prototype,"aggFuncService",2),MenuItemMapper=__decorateClass([(0,import_core3.Bean)("menuItemMapper")],MenuItemMapper);var VERSION="31.3.3",import_core4=require("@ag-grid-community/core"),ChartMenuItemMapper=class extends import_core4.BeanStub{getChartItems(t){var e,o;if(!this.chartService){import_core4.ModuleRegistry.__assertRegistered(import_core4.ModuleNames.GridChartsModule,`the Context Menu key "${t}"`,this.context.getGridId());return}const r=t==="pivotChart"?new PivotMenuItemMapper(this.gos,this.chartService,this.localeService):new RangeMenuItemMapper(this.gos,this.chartService,this.localeService),n=this.chartService.isEnterprise();let i=r.getMenuItem();if(i&&i.subMenu&&!n){const a=l=>{var h;return __spreadProps(__spreadValues({},l),{subMenu:(h=l.subMenu)==null?void 0:h.filter(m=>!m._enterprise).map(m=>a(m))})};i=a(i)}const s=(o=(e=this.gos.get("chartToolPanelsDef"))==null?void 0:e.settingsPanel)==null?void 0:o.chartGroupsDef;return s&&(i=ChartMenuItemMapper.filterAndOrderChartMenu(i,s,r.getConfigLookup())),this.cleanInternals(i)}cleanInternals(t){if(!t)return t;const e=o=>{var r;return o==null||delete o._key,o==null||delete o._enterprise,(r=o?.subMenu)==null||r.forEach(n=>e(n)),o};return e(t)}static buildLookup(t){let e={};const o=r=>{e[r._key]=r,r.subMenu&&r.subMenu.forEach(n=>o(n))};return o(t),e}static filterAndOrderChartMenu(t,e,o){var r;const n=this.buildLookup(t);let i=__spreadProps(__spreadValues({},t),{subMenu:[]});if(Object.entries(e).forEach(([s,a])=>{var l,h;const m=o[s];if(m===null)return;if(m==null){import_core4._.warnOnce(`invalid chartGroupsDef config '${s}'`);return}const c=n[m._key];if(c)if(c.subMenu){const d=a.map(u=>{const g=m[u];if(g==null){import_core4._.warnOnce(`invalid chartGroupsDef config '${s}.${u}'`);return}return n[g]}).filter(u=>u!==void 0);d.length>0&&(c.subMenu=d,(l=i.subMenu)==null||l.push(c))}else(h=i.subMenu)==null||h.push(c)}),((r=i.subMenu)==null?void 0:r.length)!=0)return i}};__decorateClass([(0,import_core4.Optional)("chartService")],ChartMenuItemMapper.prototype,"chartService",2),ChartMenuItemMapper=__decorateClass([(0,import_core4.Bean)("chartMenuItemMapper")],ChartMenuItemMapper);var PivotMenuItemMapper=class{constructor(t,e,o){this.gos=t,this.chartService=e,this.localeService=o}getMenuItem(){const t=this.localeService.getLocaleTextFunc(),e=(o,r,n,i,s=!1)=>({name:t(o,r),action:()=>this.chartService.createPivotChart({chartType:n}),_key:i,_enterprise:s});return{name:t("pivotChart","Pivot Chart"),_key:"pivotChart",subMenu:[{_key:"pivotColumnChart",name:t("columnChart","Column"),subMenu:[e("groupedColumn","Grouped‎","groupedColumn","pivotGroupedColumn"),e("stackedColumn","Stacked‎","stackedColumn","pivotStackedColumn"),e("normalizedColumn","100% Stacked‎","normalizedColumn","pivotNormalizedColumn")]},{_key:"pivotBarChart",name:t("barChart","Bar"),subMenu:[e("groupedBar","Grouped‎","groupedBar","pivotGroupedBar"),e("stackedBar","Stacked‎","stackedBar","pivotStackedBar"),e("normalizedBar","100% Stacked‎","normalizedBar","pivotNormalizedBar")]},{_key:"pivotPieChart",name:t("pieChart","Pie"),subMenu:[e("pie","Pie‎","pie","pivotPie"),e("donut","Donut‎","donut","pivotDonut")]},e("line","Line‎","line","pivotLineChart"),{_key:"pivotXYChart",name:t("xyChart","X Y (Scatter)"),subMenu:[e("scatter","Scatter‎","scatter","pivotScatter"),e("bubble","Bubble‎","bubble","pivotBubble")]},{_key:"pivotAreaChart",name:t("areaChart","Area"),subMenu:[e("area","Area‎","area","pivotArea"),e("stackedArea","Stacked‎","stackedArea","pivotStackedArea"),e("normalizedArea","100% Stacked‎","normalizedArea","pivotNormalizedArea")]},{_key:"pivotStatisticalChart",_enterprise:!1,name:t("statisticalChart","Statistical"),subMenu:[e("histogramChart","Histogram‎","histogram","pivotHistogram",!1)]},{_key:"pivotHierarchicalChart",_enterprise:!0,name:t("hierarchicalChart","Hierarchical"),subMenu:[e("treemapChart","Treemap‎","treemap","pivotTreemap",!0),e("sunburstChart","Sunburst‎","sunburst","pivotSunburst",!0)]},{_key:"pivotCombinationChart",name:t("combinationChart","Combination"),subMenu:[e("columnLineCombo","Column & Line‎","columnLineCombo","pivotColumnLineCombo"),e("AreaColumnCombo","Area & Column‎","areaColumnCombo","pivotAreaColumnCombo")]}],icon:import_core4._.createIconNoSpan("chart",this.gos,void 0)}}getConfigLookup(){return{columnGroup:{_key:"pivotColumnChart",column:"pivotGroupedColumn",stackedColumn:"pivotStackedColumn",normalizedColumn:"pivotNormalizedColumn"},barGroup:{_key:"pivotBarChart",bar:"pivotGroupedBar",stackedBar:"pivotStackedBar",normalizedBar:"pivotNormalizedBar"},pieGroup:{_key:"pivotPieChart",pie:"pivotPie",donut:"pivotDonut",doughnut:"pivotDonut"},lineGroup:{_key:"pivotLineChart",line:"pivotLineChart"},scatterGroup:{_key:"pivotXYChart",bubble:"pivotBubble",scatter:"pivotScatter"},areaGroup:{_key:"pivotAreaChart",area:"pivotArea",stackedArea:"pivotStackedArea",normalizedArea:"pivotNormalizedArea"},combinationGroup:{_key:"pivotCombinationChart",columnLineCombo:"pivotColumnLineCombo",areaColumnCombo:"pivotAreaColumnCombo",customCombo:null},hierarchicalGroup:{_key:"pivotHierarchicalChart",treemap:"pivotTreemap",sunburst:"pivotSunburst"},statisticalGroup:{_key:"pivotStatisticalChart",histogram:"pivotHistogram",rangeBar:null,rangeArea:null,boxPlot:null},polarGroup:null,specializedGroup:null}}},RangeMenuItemMapper=class{constructor(t,e,o){this.gos=t,this.chartService=e,this.localeService=o}getMenuItem(){const t=this.localeService.getLocaleTextFunc(),e=(o,r,n,i,s=!1)=>({name:t(o,r),action:()=>this.chartService.createChartFromCurrentRange(n),_key:i,_enterprise:s});return{name:t("chartRange","Chart Range"),_key:"chartRange",subMenu:[{name:t("columnChart","Column"),subMenu:[e("groupedColumn","Grouped‎","groupedColumn","rangeGroupedColumn"),e("stackedColumn","Stacked‎","stackedColumn","rangeStackedColumn"),e("normalizedColumn","100% Stacked‎","normalizedColumn","rangeNormalizedColumn")],_key:"rangeColumnChart"},{name:t("barChart","Bar"),subMenu:[e("groupedBar","Grouped‎","groupedBar","rangeGroupedBar"),e("stackedBar","Stacked‎","stackedBar","rangeStackedBar"),e("normalizedBar","100% Stacked‎","normalizedBar","rangeNormalizedBar")],_key:"rangeBarChart"},{name:t("pieChart","Pie"),subMenu:[e("pie","Pie‎","pie","rangePie"),e("donut","Donut‎","donut","rangeDonut")],_key:"rangePieChart"},e("line","Line‎","line","rangeLineChart"),{name:t("xyChart","X Y (Scatter)"),subMenu:[e("scatter","Scatter‎","scatter","rangeScatter"),e("bubble","Bubble‎","bubble","rangeBubble")],_key:"rangeXYChart"},{name:t("areaChart","Area"),subMenu:[e("area","Area‎","area","rangeArea"),e("stackedArea","Stacked‎","stackedArea","rangeStackedArea"),e("normalizedArea","100% Stacked‎","normalizedArea","rangeNormalizedArea")],_key:"rangeAreaChart"},{name:t("polarChart","Polar"),subMenu:[e("radarLine","Radar Line‎","radarLine","rangeRadarLine"),e("radarArea","Radar Area‎","radarArea","rangeRadarArea"),e("nightingale","Nightingale‎","nightingale","rangeNightingale"),e("radialColumn","Radial Column‎","radialColumn","rangeRadialColumn"),e("radialBar","Radial Bar‎","radialBar","rangeRadialBar")],_key:"rangePolarChart",_enterprise:!0},{name:t("statisticalChart","Statistical"),subMenu:[e("boxPlot","Box Plot‎","boxPlot","rangeBoxPlot",!0),e("histogramChart","Histogram‎","histogram","rangeHistogram",!1),e("rangeBar","Range Bar‎","rangeBar","rangeRangeBar",!0),e("rangeArea","Range Area‎","rangeArea","rangeRangeArea",!0)],_key:"rangeStatisticalChart",_enterprise:!1},{name:t("hierarchicalChart","Hierarchical"),subMenu:[e("treemap","Treemap‎","treemap","rangeTreemap"),e("sunburst","Sunburst‎","sunburst","rangeSunburst")],_key:"rangeHierarchicalChart",_enterprise:!0},{name:t("specializedChart","Specialized"),subMenu:[e("heatmap","Heatmap‎","heatmap","rangeHeatmap"),e("waterfall","Waterfall‎","waterfall","rangeWaterfall")],_key:"rangeSpecializedChart",_enterprise:!0},{name:t("combinationChart","Combination"),subMenu:[e("columnLineCombo","Column & Line‎","columnLineCombo","rangeColumnLineCombo"),e("AreaColumnCombo","Area & Column‎","areaColumnCombo","rangeAreaColumnCombo")],_key:"rangeCombinationChart"}],icon:import_core4._.createIconNoSpan("chart",this.gos,void 0)}}getConfigLookup(){return{columnGroup:{_key:"rangeColumnChart",column:"rangeGroupedColumn",stackedColumn:"rangeStackedColumn",normalizedColumn:"rangeNormalizedColumn"},barGroup:{_key:"rangeBarChart",bar:"rangeGroupedBar",stackedBar:"rangeStackedBar",normalizedBar:"rangeNormalizedBar"},pieGroup:{_key:"rangePieChart",pie:"rangePie",donut:"rangeDonut",doughnut:"rangeDonut"},lineGroup:{_key:"rangeLineChart",line:"rangeLineChart"},scatterGroup:{_key:"rangeXYChart",bubble:"rangeBubble",scatter:"rangeScatter"},areaGroup:{_key:"rangeAreaChart",area:"rangeArea",stackedArea:"rangeStackedArea",normalizedArea:"rangeNormalizedArea"},polarGroup:{_key:"rangePolarChart",radarLine:"rangeRadarLine",radarArea:"rangeRadarArea",nightingale:"rangeNightingale",radialColumn:"rangeRadialColumn",radialBar:"rangeRadialBar"},statisticalGroup:{_key:"rangeStatisticalChart",boxPlot:"rangeBoxPlot",histogram:"rangeHistogram",rangeBar:"rangeRangeBar",rangeArea:"rangeRangeArea"},hierarchicalGroup:{_key:"rangeHierarchicalChart",treemap:"rangeTreemap",sunburst:"rangeSunburst"},specializedGroup:{_key:"rangeSpecializedChart",heatmap:"rangeHeatmap",waterfall:"rangeWaterfall"},combinationGroup:{_key:"rangeCombinationChart",columnLineCombo:"rangeColumnLineCombo",areaColumnCombo:"rangeAreaColumnCombo",customCombo:null}}}},import_core5=require("@ag-grid-community/core"),import_column_tool_panel=require("@ag-grid-enterprise/column-tool-panel"),ColumnChooserFactory=class extends import_core5.BeanStub{createColumnSelectPanel(t,e,o,r){var n,i;const s=t.createManagedBean(new import_column_tool_panel.PrimaryColsPanel),a=(i=(n=r??e?.getColDef().columnChooserParams)!=null?n:e?.getColDef().columnsMenuParams)!=null?i:{},{contractColumnSelection:l,suppressColumnExpandAll:h,suppressColumnFilter:m,suppressColumnSelectAll:c,suppressSyncLayoutWithGrid:d,columnLayout:u}=a;return s.init(!!o,this.gos.addGridCommonParams({suppressColumnMove:!1,suppressValues:!1,suppressPivots:!1,suppressRowGroups:!1,suppressPivotMode:!1,contractColumnSelection:!!l,suppressColumnExpandAll:!!h,suppressColumnFilter:!!m,suppressColumnSelectAll:!!c,suppressSyncLayoutWithGrid:!!u||!!d,onStateUpdated:()=>{}}),"columnMenu"),u&&s.setColumnLayout(u),s}showColumnChooser({column:t,chooserParams:e,eventSource:o}){this.hideActiveColumnChooser();const r=this.createColumnSelectPanel(this,t,!0,e),n=this.localeService.getLocaleTextFunc(),i=this.columnModel.getAllDisplayedColumns().indexOf(t),s=t?this.focusService.getFocusedHeader():null;this.activeColumnChooserDialog=this.createBean(new import_core5.AgDialog({title:n("chooseColumns","Choose Columns"),component:r,width:300,height:300,resizable:!0,movable:!0,centered:!0,closable:!0,afterGuiAttached:()=>{var a;(a=this.focusService.findNextFocusableElement(r.getGui()))==null||a.focus(),this.dispatchVisibleChangedEvent(!0,t)},closedCallback:a=>{const l=this.activeColumnChooser.getGui();this.destroyBean(this.activeColumnChooser),this.activeColumnChooser=void 0,this.activeColumnChooserDialog=void 0,this.dispatchVisibleChangedEvent(!1,t),t&&this.menuUtils.restoreFocusOnClose({column:t,headerPosition:s,columnIndex:i,eventSource:o},l,a,!0)}})),this.activeColumnChooser=r}hideActiveColumnChooser(){this.activeColumnChooserDialog&&this.destroyBean(this.activeColumnChooserDialog)}dispatchVisibleChangedEvent(t,e){const o={type:import_core5.Events.EVENT_COLUMN_MENU_VISIBLE_CHANGED,visible:t,switchingTab:!1,key:"columnChooser",column:e??null};this.eventService.dispatchEvent(o)}};__decorateClass([(0,import_core5.Autowired)("focusService")],ColumnChooserFactory.prototype,"focusService",2),__decorateClass([(0,import_core5.Autowired)("menuUtils")],ColumnChooserFactory.prototype,"menuUtils",2),__decorateClass([(0,import_core5.Autowired)("columnModel")],ColumnChooserFactory.prototype,"columnModel",2),ColumnChooserFactory=__decorateClass([(0,import_core5.Bean)("columnChooserFactory")],ColumnChooserFactory);var import_core6=require("@ag-grid-community/core"),ColumnMenuFactory=class extends import_core6.BeanStub{createMenu(t,e,o){const r=t.createManagedBean(new import_core6.AgMenuList(0,{column:e??null,node:null,value:null})),n=this.getMenuItems(e),i=this.menuItemMapper.mapWithStockItems(n,e??null,o);return r.addMenuItems(i),r}getMenuItems(t){const e=this.getDefaultMenuOptions(t);let o;const r=t?.getColDef().mainMenuItems;if(Array.isArray(r))o=r;else if(typeof r=="function")o=r(this.gos.addGridCommonParams({column:t,defaultItems:e}));else{const n=this.gos.getCallback("getMainMenuItems");n&&t?o=n({column:t,defaultItems:e}):o=e}return import_core6._.removeRepeatsFromArray(o,ColumnMenuFactory.MENU_ITEM_SEPARATOR),o}getDefaultMenuOptions(t){const e=[],o=this.menuService.isLegacyMenuEnabled();if(!t)return o||e.push("columnChooser"),e.push("resetColumns"),e;const r=!t.getColDef().lockPinned,n=this.columnModel.getRowGroupColumns().length,i=n>0,s=t.isAllowValue(),a=t.isAllowRowGroup(),l=t.isPrimary(),h=this.columnModel.isPivotMode(),m=this.rowModel.getType()==="clientSide",c=this.gos.get("treeData"),d=l&&i&&s||!l;if(!o&&t.isSortable()){const C=t.getSort();C!=="asc"&&e.push("sortAscending"),C!=="desc"&&e.push("sortDescending"),C&&e.push("sortUnSort"),e.push(ColumnMenuFactory.MENU_ITEM_SEPARATOR)}return this.menuService.isFilterMenuItemEnabled(t)&&(e.push("columnFilter"),e.push(ColumnMenuFactory.MENU_ITEM_SEPARATOR)),r&&e.push("pinSubMenu"),d&&e.push("valueAggSubMenu"),(r||d)&&e.push(ColumnMenuFactory.MENU_ITEM_SEPARATOR),e.push("autoSizeThis"),e.push("autoSizeAll"),e.push(ColumnMenuFactory.MENU_ITEM_SEPARATOR),t.getColDef().showRowGroup?e.push("rowUnGroup"):a&&t.isPrimary()&&(t.isRowGroupActive()?this.columnModel.isColumnGroupingLocked(t)||e.push("rowUnGroup"):e.push("rowGroup")),e.push(ColumnMenuFactory.MENU_ITEM_SEPARATOR),o||e.push("columnChooser"),e.push("resetColumns"),m&&(c||n>(h?1:0))&&(e.push("expandAll"),e.push("contractAll")),e}};ColumnMenuFactory.MENU_ITEM_SEPARATOR="separator",__decorateClass([(0,import_core6.Autowired)("menuItemMapper")],ColumnMenuFactory.prototype,"menuItemMapper",2),__decorateClass([(0,import_core6.Autowired)("columnModel")],ColumnMenuFactory.prototype,"columnModel",2),__decorateClass([(0,import_core6.Autowired)("rowModel")],ColumnMenuFactory.prototype,"rowModel",2),__decorateClass([(0,import_core6.Autowired)("filterManager")],ColumnMenuFactory.prototype,"filterManager",2),__decorateClass([(0,import_core6.Autowired)("menuService")],ColumnMenuFactory.prototype,"menuService",2),ColumnMenuFactory=__decorateClass([(0,import_core6.Bean)("columnMenuFactory")],ColumnMenuFactory);var import_core7=require("@ag-grid-community/core"),MenuUtils=class extends import_core7.BeanStub{restoreFocusOnClose(t,e,o,r){const{eventSource:n}=t,i=o instanceof KeyboardEvent;if(!r&&!i||!n)return;const s=this.gos.getDocument(),a=this.gos.getActiveDomElement();!e.contains(a)&&a!==s.body||this.focusHeaderCell(t)}closePopupAndRestoreFocusOnSelect(t,e,o){let r;o&&o.keyboardEvent&&(r=o.keyboardEvent),t(r&&{keyboardEvent:r});const n=this.focusService.getFocusedCell(),i=this.gos.getDocument(),s=this.gos.getActiveDomElement();if(!s||s===i.body)if(n){const{rowIndex:a,rowPinned:l,column:h}=n;this.focusService.setFocusedCell({rowIndex:a,column:h,rowPinned:l,forceBrowserFocus:!0,preventScrollOnBrowserFocus:!0})}else this.focusHeaderCell(e)}onContextMenu(t,e,o){if(!this.gos.get("allowContextMenuWithControlKey")&&t&&(t.ctrlKey||t.metaKey)||(t&&this.blockMiddleClickScrollsIfNeeded(t),this.gos.get("suppressContextMenu")))return;const r=t??e.touches[0];if(o(r)){const n=t??e;n&&n.cancelable&&n.preventDefault()}}focusHeaderCell(t){const{column:e,columnIndex:o,headerPosition:r,eventSource:n}=t;if(this.columnModel.getAllDisplayedColumns().some(s=>s===e)&&n&&import_core7._.isVisible(n)){const s=this.focusService.findTabbableParent(n);s&&(e&&this.headerNavigationService.scrollToColumn(e),s.focus())}else if(r&&o!==-1){const s=this.columnModel.getAllDisplayedColumns(),a=s[o]||import_core7._.last(s);a&&this.focusService.focusHeaderPosition({headerPosition:{headerRowIndex:r.headerRowIndex,column:a}})}}blockMiddleClickScrollsIfNeeded(t){this.gos.get("suppressMiddleClickScrolls")&&t.which===2&&t.preventDefault()}};__decorateClass([(0,import_core7.Autowired)("focusService")],MenuUtils.prototype,"focusService",2),__decorateClass([(0,import_core7.Autowired)("headerNavigationService")],MenuUtils.prototype,"headerNavigationService",2),__decorateClass([(0,import_core7.Autowired)("columnModel")],MenuUtils.prototype,"columnModel",2),MenuUtils=__decorateClass([(0,import_core7.Bean)("menuUtils")],MenuUtils);var MenuModule={version:VERSION,moduleName:import_core8.ModuleNames.MenuModule,beans:[EnterpriseMenuFactory,ContextMenuFactory,MenuItemMapper,ChartMenuItemMapper,ColumnChooserFactory,ColumnMenuFactory,MenuUtils],dependantModules:[import_core9.EnterpriseCoreModule]}; |
{ | ||
"name": "@ag-grid-enterprise/menu", | ||
"version": "31.3.2", | ||
"version": "31.3.3", | ||
"description": "Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue", | ||
@@ -15,5 +15,5 @@ "main": "./dist/package/main.cjs.js", | ||
"dependencies": { | ||
"@ag-grid-community/core": "31.3.2", | ||
"@ag-grid-enterprise/core": "31.3.2", | ||
"@ag-grid-enterprise/column-tool-panel": "31.3.2" | ||
"@ag-grid-community/core": "31.3.3", | ||
"@ag-grid-enterprise/core": "31.3.3", | ||
"@ag-grid-enterprise/column-tool-panel": "31.3.3" | ||
}, | ||
@@ -20,0 +20,0 @@ "devDependencies": { |
{ | ||
"name": "@ag-grid-enterprise/menu", | ||
"version": "31.3.2", | ||
"version": "31.3.3", | ||
"description": "Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue", | ||
@@ -15,5 +15,5 @@ "main": "./src/main.js", | ||
"dependencies": { | ||
"@ag-grid-community/core": "31.3.2", | ||
"@ag-grid-enterprise/core": "31.3.2", | ||
"@ag-grid-enterprise/column-tool-panel": "31.3.2" | ||
"@ag-grid-community/core": "31.3.3", | ||
"@ag-grid-enterprise/core": "31.3.3", | ||
"@ag-grid-enterprise/column-tool-panel": "31.3.3" | ||
}, | ||
@@ -20,0 +20,0 @@ "devDependencies": { |
@@ -1,1 +0,1 @@ | ||
export declare const VERSION = "31.3.2"; | ||
export declare const VERSION = "31.3.3"; |
{ | ||
"name": "@ag-grid-enterprise/menu", | ||
"version": "31.3.2", | ||
"version": "31.3.3", | ||
"description": "Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue", | ||
@@ -15,5 +15,5 @@ "main": "./dist/package/main.cjs.js", | ||
"dependencies": { | ||
"@ag-grid-community/core": "31.3.2", | ||
"@ag-grid-enterprise/core": "31.3.2", | ||
"@ag-grid-enterprise/column-tool-panel": "31.3.2" | ||
"@ag-grid-community/core": "31.3.3", | ||
"@ag-grid-enterprise/core": "31.3.3", | ||
"@ag-grid-enterprise/column-tool-panel": "31.3.3" | ||
}, | ||
@@ -20,0 +20,0 @@ "devDependencies": { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
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
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
+ Added@ag-grid-community/core@31.3.3(transitive)
+ Added@ag-grid-enterprise/column-tool-panel@31.3.3(transitive)
+ Added@ag-grid-enterprise/core@31.3.3(transitive)
+ Added@ag-grid-enterprise/row-grouping@31.3.3(transitive)
+ Added@ag-grid-enterprise/side-bar@31.3.3(transitive)
- Removed@ag-grid-community/core@31.3.2(transitive)
- Removed@ag-grid-enterprise/column-tool-panel@31.3.2(transitive)
- Removed@ag-grid-enterprise/core@31.3.2(transitive)
- Removed@ag-grid-enterprise/row-grouping@31.3.2(transitive)
- Removed@ag-grid-enterprise/side-bar@31.3.2(transitive)