UNPKG

ag-grid-community

Version:

Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue

1 lines 1.34 MB
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.agGrid=t():e.agGrid=t()}(self,(function(){return function(){"use strict";var e={2074:function(e,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.AlignedGridsModule=void 0;const i=o(2027),n=o(7205),r=o(8963);t.AlignedGridsModule={moduleName:"AlignedGrids",version:n.VERSION,beans:[r.AlignedGridsService],dependsOn:[i.ColumnApiModule]}},8963:function(e,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.AlignedGridsService=void 0;const i=o(2885),n=o(8731),r=o(7764);class s extends n.BeanStub{constructor(){super(...arguments),this.beanName="alignedGridsSvc",this.consuming=!1}getAlignedGridApis(){let e=this.gos.get("alignedGrids")??[];const t="function"==typeof e;"function"==typeof e&&(e=e());return e.map((e=>{if(!e)return(0,r._error)(18),void(t||(0,r._error)(20));if(this.isGridApi(e))return e;const o=e;return"current"in o?o.current?.api:(o.api||(0,r._error)(19),o.api)})).filter((e=>!!e&&!e.isDestroyed()))}isGridApi(e){return!!e&&!!e.dispatchEvent}postConstruct(){const e=this.fireColumnEvent.bind(this);this.addManagedEventListeners({columnMoved:e,columnVisible:e,columnPinned:e,columnGroupOpened:e,columnResized:e,bodyScroll:this.fireScrollEvent.bind(this),alignedGridColumn:({event:e})=>this.onColumnEvent(e),alignedGridScroll:({event:e})=>this.onScrollEvent(e)})}fireEvent(e){this.consuming||this.getAlignedGridApis().forEach((t=>{t.isDestroyed()||t.dispatchEvent(e)}))}onEvent(e){this.consuming=!0,e(),this.consuming=!1}fireColumnEvent(e){this.fireEvent({type:"alignedGridColumn",event:e})}fireScrollEvent(e){"horizontal"===e.direction&&this.fireEvent({type:"alignedGridScroll",event:e})}onScrollEvent(e){this.onEvent((()=>{this.beans.ctrlsSvc.getScrollFeature().setHorizontalScrollPosition(e.left,!0)}))}extractDataFromEvent(e,t){const o=[];return e.columns?e.columns.forEach((e=>{o.push(t(e))})):e.column&&o.push(t(e.column)),o}getMasterColumns(e){return this.extractDataFromEvent(e,(e=>e))}getColumnIds(e){return this.extractDataFromEvent(e,(e=>e.getColId()))}onColumnEvent(e){this.onEvent((()=>{switch(e.type){case"columnMoved":case"columnVisible":case"columnPinned":case"columnResized":this.processColumnEvent(e);break;case"columnGroupOpened":this.processGroupOpenedEvent(e);break;case"columnPivotChanged":(0,r._warn)(21)}}))}processGroupOpenedEvent(e){const{colGroupSvc:t}=this.beans;t&&e.columnGroups.forEach((e=>{let o=null;e&&(o=t.getProvidedColGroup(e.getGroupId())),e&&!o||t.setColumnGroupOpened(o,e.isExpanded(),"alignedGridChanged")}))}processColumnEvent(e){const t=e.column;let o=null;const n=this.beans,{colResize:r,ctrlsSvc:s,colModel:l}=n;if(t&&(o=l.getColDefCol(t.getColId())),t&&!o)return;const a=this.getMasterColumns(e);switch(e.type){case"columnMoved":{const t=e.api.getColumnState().map((e=>({colId:e.colId})));(0,i._applyColumnState)(n,{state:t,applyOrder:!0},"alignedGridChanged")}break;case"columnVisible":{const t=e.api.getColumnState().map((e=>({colId:e.colId,hide:e.hide})));(0,i._applyColumnState)(n,{state:t},"alignedGridChanged")}break;case"columnPinned":{const t=e.api.getColumnState().map((e=>({colId:e.colId,pinned:e.pinned})));(0,i._applyColumnState)(n,{state:t},"alignedGridChanged")}break;case"columnResized":{const t=e,o={};a.forEach((e=>{o[e.getId()]={key:e.getColId(),newWidth:e.getActualWidth()}})),t.flexColumns?.forEach((e=>{o[e.getId()]&&delete o[e.getId()]})),r?.setColumnWidths(Object.values(o),!1,t.finished,"alignedGridChanged");break}}const d=s.getGridBodyCtrl().isVerticalScrollShowing();this.getAlignedGridApis().forEach((e=>{e.setGridOption("alwaysShowVerticalScroll",d)}))}}t.AlignedGridsService=s},1621:function(e,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.AllCommunityModule=void 0;const i=o(2074),n=o(9642),r=o(9722),s=o(9722),l=o(3856),a=o(1690),d=o(2027),c=o(9734),u=o(4388),h=o(4652),g=o(5432),p=o(4002),m=o(9410),f=o(9519),C=o(6989),v=o(1824),w=o(5423),b=o(3498),S=o(6964),y=o(4577),R=o(4265),E=o(3352),P=o(8594),F=o(4658),x=o(5010),M=o(6431),_=o(7205);t.AllCommunityModule={moduleName:"AllCommunity",version:_.VERSION,dependsOn:[r.ClientSideRowModelModule,c.CsvExportModule,p.InfiniteRowModelModule,x.ValidationModule,h.TextEditorModule,h.NumberEditorModule,h.DateEditorModule,h.CheckboxEditorModule,h.SelectEditorModule,h.LargeTextEditorModule,h.CustomEditorModule,h.UndoRedoEditModule,g.TextFilterModule,g.NumberFilterModule,g.DateFilterModule,g.CustomFilterModule,g.QuickFilterModule,g.ExternalFilterModule,C.GridStateModule,i.AlignedGridsModule,v.PaginationModule,d.ColumnApiModule,n.RowApiModule,n.ScrollApiModule,S.RenderApiModule,l.ColumnAutoSizeModule,u.RowDragModule,w.PinnedRowModule,E.RowSelectionModule,M.ValueCacheModule,P.CellStyleModule,a.ColumnHoverModule,P.RowStyleModule,m.EventApiModule,M.CellApiModule,b.HighlightChangesModule,F.TooltipModule,f.LocaleModule,y.RowAutoHeightModule,u.DragAndDropModule,s.ClientSideRowModelApiModule,R.CellSpanModule]}},3907:function(e,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.ApiFunctionService=void 0;const i=o(8731),n=o(7764),r=o(7689),s={isDestroyed:()=>!0,destroy(){},preConstruct(){},postConstruct(){},preWireBeans(){},wireBeans(){}},l=(e,t)=>e.eventSvc.dispatchEvent(t);class a{}Reflect.defineProperty(a,"name",{value:"GridApi"});class d extends i.BeanStub{constructor(){super(),this.beanName="apiFunctionSvc",this.api=new a,this.fns={...s,dispatchEvent:l},this.preDestroyLink="";const{api:e}=this;for(const t of Object.keys(r.gridApiFunctionsMap))e[t]=this.makeApi(t)[t]}postConstruct(){this.preDestroyLink=this.beans.frameworkOverrides.getDocLink("grid-lifecycle/#grid-pre-destroyed")}addFunction(e,t){const{fns:o,beans:i}=this;o!==s&&(o[e]=i?.validation?.validateApiFunction(e,t)??t)}makeApi(e){return{[e]:(...t)=>{const{beans:o,fns:{[e]:i}}=this;return i?i(o,...t):this.apiNotFound(e)}}}apiNotFound(e){const{beans:t,gos:o,preDestroyLink:i}=this;if(t){const t=r.gridApiFunctionsMap[e];o.assertModuleRegistered(t,`api.${e}`)&&(0,n._warn)(27,{fnName:e,module:t})}else(0,n._warn)(26,{fnName:e,preDestroyLink:i})}destroy(){super.destroy(),this.fns=s,this.beans=null}}t.ApiFunctionService=d},9642:function(e,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.ScrollApiModule=t.RowApiModule=void 0;const i=o(7205),n=o(8192),r=o(1765);t.RowApiModule={moduleName:"RowApi",version:i.VERSION,apiFunctions:{redrawRows:n.redrawRows,setRowNodeExpanded:n.setRowNodeExpanded,getRowNode:n.getRowNode,addRenderedRowListener:n.addRenderedRowListener,getRenderedNodes:n.getRenderedNodes,forEachNode:n.forEachNode,getFirstDisplayedRowIndex:n.getFirstDisplayedRowIndex,getLastDisplayedRowIndex:n.getLastDisplayedRowIndex,getDisplayedRowAtIndex:n.getDisplayedRowAtIndex,getDisplayedRowCount:n.getDisplayedRowCount}},t.ScrollApiModule={moduleName:"ScrollApi",version:i.VERSION,apiFunctions:{getVerticalPixelRange:r.getVerticalPixelRange,getHorizontalPixelRange:r.getHorizontalPixelRange,ensureColumnVisible:r.ensureColumnVisible,ensureIndexVisible:r.ensureIndexVisible,ensureNodeVisible:r.ensureNodeVisible}}},6433:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.createGridApi=void 0,t.createGridApi=function(e){return{beanName:"gridApi",bean:e.getBean("apiFunctionSvc").api}}},9875:function(e,t){function o(e,t){e.gos.updateGridOptions({options:t})}Object.defineProperty(t,"__esModule",{value:!0}),t.isModuleRegistered=t.updateGridOptions=t.setGridOption=t.getGridOption=t.isDestroyed=t.destroy=t.getGridId=void 0,t.getGridId=function(e){return e.context.getGridId()},t.destroy=function(e){e.gridDestroySvc.destroy()},t.isDestroyed=function(e){return e.gridDestroySvc.destroyCalled},t.getGridOption=function(e,t){return e.gos.get(t)},t.setGridOption=function(e,t,i){o(e,{[t]:i})},t.updateGridOptions=o,t.isModuleRegistered=function(e,t){const o=t.replace(/Module$/,"");return e.gos.isModuleRegistered(o)}},9513:function(e,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.onRowHeightChanged=t.collapseAll=t.expandAll=void 0;const i=o(6876);t.expandAll=function(e){e.expansionSvc?.expandAll(!0)},t.collapseAll=function(e){e.expansionSvc?.expandAll(!1)},t.onRowHeightChanged=function(e){const t=(0,i._getClientSideRowModel)(e),o=(0,i._getServerSideRowModel)(e);t?t.onRowHeightChanged():o&&o.onRowHeightChanged()}},7689:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.gridApiFunctionsMap=void 0;const o=(e,t)=>{for(const o of Object.keys(t))t[o]=e;return t};t.gridApiFunctionsMap={dispatchEvent:"CommunityCore",...o("CommunityCore",{destroy:0,getGridId:0,getGridOption:0,isDestroyed:0,setGridOption:0,updateGridOptions:0,isModuleRegistered:0}),...o("GridState",{getState:0,setState:0}),...o("SharedRowSelection",{setNodesSelected:0,selectAll:0,deselectAll:0,selectAllFiltered:0,deselectAllFiltered:0,selectAllOnCurrentPage:0,deselectAllOnCurrentPage:0,getSelectedNodes:0,getSelectedRows:0}),...o("RowApi",{redrawRows:0,setRowNodeExpanded:0,getRowNode:0,addRenderedRowListener:0,getRenderedNodes:0,forEachNode:0,getFirstDisplayedRowIndex:0,getLastDisplayedRowIndex:0,getDisplayedRowAtIndex:0,getDisplayedRowCount:0}),...o("ScrollApi",{getVerticalPixelRange:0,getHorizontalPixelRange:0,ensureColumnVisible:0,ensureIndexVisible:0,ensureNodeVisible:0}),...o("KeyboardNavigation",{getFocusedCell:0,clearFocusedCell:0,setFocusedCell:0,tabToNextCell:0,tabToPreviousCell:0,setFocusedHeader:0}),...o("EventApi",{addEventListener:0,addGlobalListener:0,removeEventListener:0,removeGlobalListener:0}),...o("ValueCache",{expireValueCache:0}),...o("CellApi",{getCellValue:0}),...o("SharedMenu",{showColumnMenu:0,hidePopupMenu:0}),...o("Sort",{onSortChanged:0}),...o("PinnedRow",{getPinnedTopRowCount:0,getPinnedBottomRowCount:0,getPinnedTopRow:0,getPinnedBottomRow:0,forEachPinnedRow:0}),...o("Overlay",{showLoadingOverlay:0,showNoRowsOverlay:0,hideOverlay:0}),...o("RenderApi",{setGridAriaProperty:0,refreshCells:0,refreshHeader:0,isAnimationFrameQueueEmpty:0,flushAllAnimationFrames:0,getSizesForCurrentTheme:0,getCellRendererInstances:0}),...o("HighlightChanges",{flashCells:0}),...o("RowDrag",{addRowDropZone:0,removeRowDropZone:0,getRowDropZoneParams:0,getRowDropPositionIndicator:0,setRowDropPositionIndicator:0}),...o("ColumnApi",{getColumnDefs:0,getColumnDef:0,getDisplayNameForColumn:0,getColumn:0,getColumns:0,applyColumnState:0,getColumnState:0,resetColumnState:0,isPinning:0,isPinningLeft:0,isPinningRight:0,getDisplayedColAfter:0,getDisplayedColBefore:0,setColumnsVisible:0,setColumnsPinned:0,getAllGridColumns:0,getDisplayedLeftColumns:0,getDisplayedCenterColumns:0,getDisplayedRightColumns:0,getAllDisplayedColumns:0,getAllDisplayedVirtualColumns:0}),...o("ColumnAutoSize",{sizeColumnsToFit:0,autoSizeColumns:0,autoSizeAllColumns:0}),...o("ColumnGroup",{setColumnGroupOpened:0,getColumnGroup:0,getProvidedColumnGroup:0,getDisplayNameForColumnGroup:0,getColumnGroupState:0,setColumnGroupState:0,resetColumnGroupState:0,getLeftDisplayedColumnGroups:0,getCenterDisplayedColumnGroups:0,getRightDisplayedColumnGroups:0,getAllDisplayedColumnGroups:0}),...o("ColumnMove",{moveColumnByIndex:0,moveColumns:0}),...o("ColumnResize",{setColumnWidths:0}),...o("ColumnHover",{isColumnHovered:0}),...o("EditCore",{getCellEditorInstances:0,getEditingCells:0,stopEditing:0,startEditingCell:0,isEditing:0,validateEdit:0}),...o("BatchEdit",{startBatchEdit:0,cancelBatchEdit:0,commitBatchEdit:0,isBatchEditing:0}),...o("UndoRedoEdit",{undoCellEditing:0,redoCellEditing:0,getCurrentUndoSize:0,getCurrentRedoSize:0}),...o("FilterCore",{isAnyFilterPresent:0,onFilterChanged:0}),...o("ColumnFilter",{isColumnFilterPresent:0,getColumnFilterInstance:0,destroyFilter:0,setFilterModel:0,getFilterModel:0,getColumnFilterModel:0,setColumnFilterModel:0,showColumnFilter:0,hideColumnFilter:0,getColumnFilterHandler:0,doFilterAction:0}),...o("QuickFilter",{isQuickFilterPresent:0,getQuickFilter:0,resetQuickFilter:0}),...o("Find",{findGetActiveMatch:0,findGetTotalMatches:0,findGoTo:0,findNext:0,findPrevious:0,findGetNumMatches:0,findGetParts:0,findClearActive:0,findRefresh:0}),...o("Pagination",{paginationIsLastPageFound:0,paginationGetPageSize:0,paginationGetCurrentPage:0,paginationGetTotalPages:0,paginationGetRowCount:0,paginationGoToNextPage:0,paginationGoToPreviousPage:0,paginationGoToFirstPage:0,paginationGoToLastPage:0,paginationGoToPage:0}),...o("CsrmSsrmSharedApi",{expandAll:0,collapseAll:0,onRowHeightChanged:0}),...o("SsrmInfiniteSharedApi",{setRowCount:0,getCacheBlockState:0,isLastRowIndexKnown:0}),...o("ClientSideRowModelApi",{onGroupExpandedOrCollapsed:0,refreshClientSideRowModel:0,isRowDataEmpty:0,forEachLeafNode:0,forEachNodeAfterFilter:0,forEachNodeAfterFilterAndSort:0,resetRowHeights:0,applyTransaction:0,applyTransactionAsync:0,flushAsyncTransactions:0,getBestCostNodeSelection:0}),...o("CsvExport",{getDataAsCsv:0,exportDataAsCsv:0}),...o("InfiniteRowModel",{refreshInfiniteCache:0,purgeInfiniteCache:0,getInfiniteRowCount:0}),...o("AdvancedFilter",{getAdvancedFilterModel:0,setAdvancedFilterModel:0,showAdvancedFilterBuilder:0,hideAdvancedFilterBuilder:0}),...o("IntegratedCharts",{getChartModels:0,getChartRef:0,getChartImageDataURL:0,downloadChart:0,openChartToolPanel:0,closeChartToolPanel:0,createRangeChart:0,createPivotChart:0,createCrossFilterChart:0,updateChart:0,restoreChart:0}),...o("Clipboard",{copyToClipboard:0,cutToClipboard:0,copySelectedRowsToClipboard:0,copySelectedRangeToClipboard:0,copySelectedRangeDown:0,pasteFromClipboard:0}),...o("ExcelExport",{getDataAsExcel:0,exportDataAsExcel:0,getSheetDataForExcel:0,getMultipleSheetsAsExcel:0,exportMultipleSheetsAsExcel:0}),...o("SharedMasterDetail",{addDetailGridInfo:0,removeDetailGridInfo:0,getDetailGridInfo:0,forEachDetailGridInfo:0}),...o("ContextMenu",{showContextMenu:0}),...o("ColumnMenu",{showColumnChooser:0,hideColumnChooser:0}),...o("CellSelection",{getCellRanges:0,addCellRange:0,clearRangeSelection:0,clearCellSelection:0}),...o("SharedRowGrouping",{setRowGroupColumns:0,removeRowGroupColumns:0,addRowGroupColumns:0,getRowGroupColumns:0,moveRowGroupColumn:0}),...o("SharedAggregation",{addAggFuncs:0,clearAggFuncs:0,setColumnAggFunc:0}),...o("SharedPivot",{isPivotMode:0,getPivotResultColumn:0,setValueColumns:0,getValueColumns:0,removeValueColumns:0,addValueColumns:0,setPivotColumns:0,removePivotColumns:0,addPivotColumns:0,getPivotColumns:0,setPivotResultColumns:0,getPivotResultColumns:0}),...o("ServerSideRowModelApi",{getServerSideSelectionState:0,setServerSideSelectionState:0,applyServerSideTransaction:0,applyServerSideTransactionAsync:0,applyServerSideRowData:0,retryServerSideLoads:0,flushServerSideAsyncTransactions:0,refreshServerSide:0,getServerSideGroupLevelState:0}),...o("SideBar",{isSideBarVisible:0,setSideBarVisible:0,setSideBarPosition:0,openToolPanel:0,closeToolPanel:0,getOpenedToolPanel:0,refreshToolPanel:0,isToolPanelShowing:0,getToolPanelInstance:0,getSideBar:0}),...o("StatusBar",{getStatusPanel:0})}},8192:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.getDisplayedRowCount=t.getDisplayedRowAtIndex=t.getLastDisplayedRowIndex=t.getFirstDisplayedRowIndex=t.forEachNode=t.getRenderedNodes=t.addRenderedRowListener=t.getRowNode=t.setRowNodeExpanded=t.redrawRows=void 0,t.redrawRows=function(e,t={}){const o=t?t.rowNodes:void 0;e.frameworkOverrides.wrapIncoming((()=>e.rowRenderer.redrawRows(o)))},t.setRowNodeExpanded=function e(t,o,i,n,r){o&&(n&&o.parent&&-1!==o.parent.level&&e(t,o.parent,i,n,r),o.setExpanded(i,void 0,r))},t.getRowNode=function(e,t){return e.rowModel.getRowNode(t)},t.addRenderedRowListener=function(e,t,o,i){e.rowRenderer.addRenderedRowListener(t,o,i)},t.getRenderedNodes=function(e){return e.rowRenderer.getRenderedNodes()},t.forEachNode=function(e,t,o){e.rowModel.forEachNode(t,o)},t.getFirstDisplayedRowIndex=function(e){return e.rowRenderer.firstRenderedRow},t.getLastDisplayedRowIndex=function(e){return e.rowRenderer.lastRenderedRow},t.getDisplayedRowAtIndex=function(e,t){return e.rowModel.getRow(t)},t.getDisplayedRowCount=function(e){return e.rowModel.getRowCount()}},6876:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t._getServerSideRowModel=t._getInfiniteRowModel=t._getClientSideRowModel=void 0,t._getClientSideRowModel=function(e){const t=e.rowModel;return"clientSide"===t.getType()?t:void 0},t._getInfiniteRowModel=function(e){const t=e.rowModel;return"infinite"===t.getType()?t:void 0},t._getServerSideRowModel=function(e){const t=e.rowModel;return"serverSide"===t.getType()?t:void 0}},1765:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.ensureNodeVisible=t.ensureIndexVisible=t.ensureColumnVisible=t.getHorizontalPixelRange=t.getVerticalPixelRange=void 0,t.getVerticalPixelRange=function(e){return e.ctrlsSvc.getScrollFeature().getVScrollPosition()},t.getHorizontalPixelRange=function(e){return e.ctrlsSvc.getScrollFeature().getHScrollPosition()},t.ensureColumnVisible=function(e,t,o="auto"){e.frameworkOverrides.wrapIncoming((()=>e.ctrlsSvc.getScrollFeature().ensureColumnVisible(t,o)),"ensureVisible")},t.ensureIndexVisible=function(e,t,o){e.frameworkOverrides.wrapIncoming((()=>e.ctrlsSvc.getScrollFeature().ensureIndexVisible(t,o)),"ensureVisible")},t.ensureNodeVisible=function(e,t,o=null){e.frameworkOverrides.wrapIncoming((()=>e.ctrlsSvc.getScrollFeature().ensureNodeVisible(t,o)),"ensureVisible")}},6437:function(e,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.SsrmInfiniteSharedApiModule=t.CsrmSsrmSharedApiModule=void 0;const i=o(7205),n=o(9513),r=o(8496);t.CsrmSsrmSharedApiModule={moduleName:"CsrmSsrmSharedApi",version:i.VERSION,apiFunctions:{expandAll:n.expandAll,collapseAll:n.collapseAll,onRowHeightChanged:n.onRowHeightChanged}},t.SsrmInfiniteSharedApiModule={moduleName:"SsrmInfiniteSharedApi",version:i.VERSION,apiFunctions:{setRowCount:r.setRowCount,getCacheBlockState:r.getCacheBlockState,isLastRowIndexKnown:r.isLastRowIndexKnown}}},8496:function(e,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.isLastRowIndexKnown=t.getCacheBlockState=t.setRowCount=void 0;const i=o(7274),n=o(7764),r=o(6876);t.setRowCount=function(e,t,o){const i=(0,r._getServerSideRowModel)(e);if(i)return 0===e.rowGroupColsSvc?.columns.length?t<0?void(0,n._error)(238):void i.setRowCount(t,o):void(0,n._error)(28);const s=(0,r._getInfiniteRowModel)(e);s&&s.setRowCount(t,o)},t.getCacheBlockState=function(e){if((0,i._isServerSideRowModel)(e.gos)){return e.rowModel.getBlockStates()}return e.rowNodeBlockLoader?.getBlockState()??{}},t.isLastRowIndexKnown=function(e){return e.rowModel.isLastRowIndexKnown()}},5628:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.AutoScrollService=void 0;t.AutoScrollService=class{constructor(e){this.tickingInterval=null,this.onScrollCallback=null,this.scrollContainer=e.scrollContainer,this.scrollHorizontally=-1!==e.scrollAxis.indexOf("x"),this.scrollVertically=-1!==e.scrollAxis.indexOf("y"),this.scrollByTick=null!=e.scrollByTick?e.scrollByTick:20,e.onScrollCallback&&(this.onScrollCallback=e.onScrollCallback),this.scrollVertically&&(this.getVerticalPosition=e.getVerticalPosition,this.setVerticalPosition=e.setVerticalPosition),this.scrollHorizontally&&(this.getHorizontalPosition=e.getHorizontalPosition,this.setHorizontalPosition=e.setHorizontalPosition),this.shouldSkipVerticalScroll=e.shouldSkipVerticalScroll||(()=>!1),this.shouldSkipHorizontalScroll=e.shouldSkipHorizontalScroll||(()=>!1)}check(e,t=!1){const o=t||this.shouldSkipVerticalScroll();if(o&&this.shouldSkipHorizontalScroll())return;const i=this.scrollContainer.getBoundingClientRect(),n=this.scrollByTick;this.tickLeft=e.clientX<i.left+n,this.tickRight=e.clientX>i.right-n,this.tickUp=e.clientY<i.top+n&&!o,this.tickDown=e.clientY>i.bottom-n&&!o,this.tickLeft||this.tickRight||this.tickUp||this.tickDown?this.ensureTickingStarted():this.ensureCleared()}ensureTickingStarted(){null===this.tickingInterval&&(this.tickingInterval=window.setInterval(this.doTick.bind(this),100),this.tickCount=0)}doTick(){this.tickCount++;const e=this.tickCount>20?200:this.tickCount>10?80:40;if(this.scrollVertically){const t=this.getVerticalPosition();this.tickUp&&this.setVerticalPosition(t-e),this.tickDown&&this.setVerticalPosition(t+e)}if(this.scrollHorizontally){const t=this.getHorizontalPosition();this.tickLeft&&this.setHorizontalPosition(t-e),this.tickRight&&this.setHorizontalPosition(t+e)}this.onScrollCallback&&this.onScrollCallback()}ensureCleared(){this.tickingInterval&&(window.clearInterval(this.tickingInterval),this.tickingInterval=null)}}},3263:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.BASE_URL=void 0,t.BASE_URL="https://www.ag-grid.com"},1954:function(e,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.AbstractClientSideNodeManager=void 0;const i=o(8731),n=o(3373),r=o(7274),s=o(7764);class l extends i.BeanStub{constructor(){super(...arguments),this.nextId=0,this.allNodesMap={},this.rootNode=null}getRowNode(e){return this.allNodesMap[e]}extractRowData(){return this.rootNode?.allLeafChildren?.map((e=>e.data))}activate(e){this.rootNode=e,e.group=!0,e.level=-1,e.id="ROOT_NODE_ID",e.allLeafChildren=[],e.childrenAfterGroup=[],e.childrenAfterSort=[],e.childrenAfterAggFilter=[],e.childrenAfterFilter=[],this.updateRootSiblingArrays(e)}deactivate(){this.rootNode&&(this.allNodesMap={},this.rootNode=null)}destroy(){super.destroy(),this.allNodesMap={},this.rootNode=null}setNewRowData(e){const t=this.rootNode;t&&(this.dispatchRowDataUpdateStartedEvent(e),t.childrenAfterFilter=null,t.childrenAfterGroup=null,t.childrenAfterAggFilter=null,t.childrenAfterSort=null,t.childrenMapped=null,t.updateHasChildren(),this.allNodesMap={},this.nextId=0,this.loadNewRowData(e),this.updateRootSiblingArrays(t))}updateRootSiblingArrays(e){const t=e.sibling;t&&(t.childrenAfterFilter=e.childrenAfterFilter,t.childrenAfterGroup=e.childrenAfterGroup,t.childrenAfterAggFilter=e.childrenAfterAggFilter,t.childrenAfterSort=e.childrenAfterSort,t.childrenMapped=e.childrenMapped,t.allLeafChildren=e.allLeafChildren)}loadNewRowData(e){this.rootNode.allLeafChildren=e?.map(((e,t)=>this.createRowNode(e,t)))??[]}setImmutableRowData(e,t){const o=(0,r._getRowIdCallback)(this.gos),i=!this.gos.get("suppressMaintainUnsortedOrder"),n=e.changedRowNodes,s=new Set,l=this.rootNode,a=l.allLeafChildren,d=a.length;let c=!1,u=!1,h=!1,g=!1;for(let e=0,r=-1,l=t.length;e<l;e++){const l=t[e];let a=this.getRowNode(o({data:l,level:0}));if(a){if(i){const e=a.sourceRowIndex;g||(g=e<=r||c),r=e}a.data!==l&&(h=!0,a.updateData(l),n.update(a))}else c=!0,a=this.createRowNode(l,-1),n.add(a);s.add(a)}const p=[];for(let e=0;e<d;e++){const t=a[e];s.has(t)||(u=!0,t.isSelected()&&p.push(t),t.pinnedSibling&&this.beans.pinnedRowModel?.pinRow(t.pinnedSibling,null),this.rowNodeDeleted(t),n.remove(t))}if(c||u||g){const t=new Array(s.size);let o=0;if(!i)for(let e=0;e<d;++e){const i=a[e];s.delete(i)&&(i.sourceRowIndex=o,t[o++]=i)}for(const e of s)e.sourceRowIndex=o,t[o++]=e;l.allLeafChildren=t;const n=l.sibling;n&&(n.allLeafChildren=t),e.rowNodesOrderChanged||(e.rowNodesOrderChanged=g)}(c||u||g||h)&&(this.deselectNodes(p),e.rowDataUpdated=!0)}rowNodeDeleted(e){e.clearRowTopAndRowIndex();const t=e.id,o=this.allNodesMap;o[t]===e&&delete o[t]}updateRowData(e,t){this.dispatchRowDataUpdateStartedEvent(e.add);const o={changedRowNodes:t,rowNodeTransaction:{remove:[],update:[],add:[]},rowsInserted:!1},i=[],n=(0,r._getRowIdCallback)(this.gos);return this.executeRemove(n,e,o,i),this.executeUpdate(n,e,o,i),this.executeAdd(e,o),this.deselectNodes(i),o}executeAdd(e,t){const o=e.add;if(!o?.length)return;let i=this.rootNode.allLeafChildren,n=i.length;if("number"==typeof e.addIndex&&(n=this.sanitizeAddIndex(e.addIndex),n>0)){if(this.gos.get("treeData")&&this.gos.get("getDataPath"))for(let e=0;e<i.length;e++){const t=i[e];if(t?.rowIndex==n-1){n=e+1;break}}}const r=o.length,s=t.changedRowNodes,l=new Array(r);for(let e=0;e<r;e++){const t=this.createRowNode(o[e],n+e);s.add(t),l[e]=t}const a=this.rootNode;if(n<i.length){const e=i.slice(0,n),o=i.slice(n,i.length),r=e.length+l.length;for(let e=0,t=o.length;e<t;++e)o[e].sourceRowIndex=r+e;i=[...e,...l,...o],t.rowsInserted=!0}else i=i.concat(l);a.allLeafChildren=i;const d=a.sibling;d&&(d.allLeafChildren=i),t.rowNodeTransaction.add=l}executeRemove(e,t,{changedRowNodes:o,rowNodeTransaction:i},n){const{remove:r}=t;if(!r?.length)return;const s={};r.forEach((t=>{const r=this.lookupRowNode(e,t);r&&(r.isSelected()&&n.push(r),r.pinnedSibling&&this.beans.pinnedRowModel?.pinRow(r.pinnedSibling,null),r.clearRowTopAndRowIndex(),s[r.id]=!0,delete this.allNodesMap[r.id],i.remove.push(r),o.remove(r))}));const l=this.rootNode;l.allLeafChildren=l.allLeafChildren?.filter((e=>!s[e.id]))??null,l.allLeafChildren?.forEach(((e,t)=>{e.sourceRowIndex=t}));const a=l.sibling;a&&(a.allLeafChildren=l.allLeafChildren)}executeUpdate(e,t,{changedRowNodes:o,rowNodeTransaction:i},n){const{update:r}=t;r?.length&&r.forEach((t=>{const r=this.lookupRowNode(e,t);r&&(r.updateData(t),!r.selectable&&r.isSelected()&&n.push(r),i.update.push(r),o.update(r))}))}dispatchRowDataUpdateStartedEvent(e){this.eventSvc.dispatchEvent({type:"rowDataUpdateStarted",firstRowData:e?.length?e[0]:null})}deselectNodes(e){const t="rowDataChanged",o=this.beans.selectionSvc,i=e.length>0;i&&o?.setNodesSelected({newValue:!1,nodes:e,suppressFinishActions:!0,source:t}),o?.updateGroupsFromChildrenSelections?.(t),i&&this.eventSvc.dispatchEvent({type:"selectionChanged",source:t,selectedNodes:o?.getSelectedNodes()??null,serverSideState:null})}sanitizeAddIndex(e){const t=this.rootNode.allLeafChildren?.length??0;return e<0||e>=t||Number.isNaN(e)?t:Math.ceil(e)}createRowNode(e,t){const o=new n.RowNode(this.beans);return o.parent=this.rootNode,o.level=0,o.group=!1,o.expanded=!1,o.sourceRowIndex=t,o.setDataAndId(e,String(this.nextId)),this.allNodesMap[o.id]&&(0,s._warn)(2,{nodeId:o.id}),this.allNodesMap[o.id]=o,this.nextId++,o}lookupRowNode(e,t){let o;if(e){const i=e({data:t,level:0});if(o=this.allNodesMap[i],!o)return(0,s._error)(4,{id:i}),null}else if(o=this.rootNode?.allLeafChildren?.find((e=>e.data===t)),!o)return(0,s._error)(5,{data:t}),null;return o||null}}t.AbstractClientSideNodeManager=l},2106:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.ChangedRowNodes=void 0;t.ChangedRowNodes=class{constructor(){this.removals=new Set,this.updates=new Set,this.adds=new Set}remove(e){this.adds.delete(e)||(this.updates.delete(e),this.removals.add(e))}update(e){this.adds.has(e)||this.updates.add(e)}add(e){this.adds.add(e)}}},8128:function(e,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.ClientSideNodeManager=void 0;const i=o(1954);class n extends i.AbstractClientSideNodeManager{constructor(){super(...arguments),this.beanName="csrmNodeSvc"}}t.ClientSideNodeManager=n},3278:function(e,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.ClientSideRowModel=void 0;const i=o(8731),n=o(3373),r=o(7274),s=o(1502),l=o(6800),a=o(2043),d=o(7764),c=o(2106),u=o(8287),h=o(9849);class g extends i.BeanStub{constructor(){super(...arguments),this.beanName="rowModel",this.rootNode=null,this.rowsToDisplay=[],this.rowDataUpdatedPending=!1,this.started=!1,this.isRefreshingModel=!1,this.rowNodesCountReady=!1,this.rowCountReady=!1,this.onRowHeightChanged_debounced=(0,a._debounce)(this,this.onRowHeightChanged.bind(this),100)}wireBeans(e){this.colModel=e.colModel,this.valueCache=e.valueCache,this.filterStage=e.filterStage,this.sortStage=e.sortStage,this.flattenStage=e.flattenStage,this.groupStage=e.groupStage,this.aggStage=e.aggStage,this.pivotStage=e.pivotStage,this.filterAggStage=e.filterAggStage}postConstruct(){this.orderedStages=[this.groupStage,this.filterStage,this.pivotStage,this.aggStage,this.sortStage,this.filterAggStage,this.flattenStage].filter((e=>!!e));const e=this.refreshModel.bind(this,{step:"group"}),t=this.refreshModel.bind(this,{step:"group",afterColumnsChanged:!0,keepRenderedRows:!0,animate:!this.gos.get("suppressAnimationFrame")});this.addManagedEventListeners({newColumnsLoaded:t,columnRowGroupChanged:e,columnValueChanged:this.onValueChanged.bind(this),columnPivotChanged:this.refreshModel.bind(this,{step:"pivot"}),filterChanged:this.onFilterChanged.bind(this),sortChanged:this.onSortChanged.bind(this),columnPivotModeChanged:e,gridStylesChanged:this.onGridStylesChanges.bind(this),gridReady:this.onGridReady.bind(this)}),this.addPropertyListeners(),this.rootNode=new n.RowNode(this.beans);const o=this.getNewNodeManager();this.nodeManager=o,o.activate(this.rootNode)}getNewNodeManager(){const{gos:e,beans:t}=this;return"treeNested"===(0,r._getGroupingApproach)(e)&&t.csrmChildrenTreeNodeSvc||t.csrmNodeSvc}addPropertyListeners(){const e=["treeData","treeDataChildrenField",...this.orderedStages.flatMap((({refreshProps:e})=>[...e]))];this.addManagedPropertyListeners(e,(e=>{const t=e.changeSet?.properties;t&&this.onPropChange(t)})),this.addManagedPropertyListener("rowData",(()=>this.onPropChange(["rowData"]))),this.addManagedPropertyListener("rowHeight",(()=>this.resetRowHeights()))}start(){this.started=!0,this.rowNodesCountReady?this.refreshModel({step:"group",rowDataUpdated:!0,newData:!0}):this.setInitialData()}setInitialData(){this.gos.get("rowData")&&this.onPropChange(["rowData"])}ensureRowHeightsValid(e,t,o,i){let n,s=!1;do{n=!1;const l=this.getRowIndexAtPixel(e),a=this.getRowIndexAtPixel(t),d=Math.max(l,o),c=Math.min(a,i);for(let e=d;e<=c;e++){const t=this.getRow(e);if(t.rowHeightEstimated){const e=(0,r._getRowHeightForNode)(this.beans,t);t.setRowHeight(e.height),n=!0,s=!0}}n&&this.setRowTopAndRowIndex()}while(n);return s}onPropChange(e){if(!this.rootNode)return;const t=this.gos,o=new Set(e),i={step:"nothing",changedProps:o},n=o.has("rowData"),r=this.nodeManager,s=this.getNewNodeManager(),l=r!==s||n&&o.has("treeData")&&t.get("treeData")||o.has("treeDataChildrenField")&&t.get("treeData");let a;if((l||n)&&(a=t.get("rowData"),null==a||Array.isArray(a)||(a=null,(0,d._warn)(1))),l&&(n||(a=r?.extractRowData()??a),r!==s&&(r?.deactivate(),this.nodeManager=s),s.activate(this.rootNode)),a){if(!l&&!this.isEmpty()&&a.length>0&&t.exists("getRowId")&&!t.get("resetRowDataOnUpdate"))i.keepRenderedRows=!0,i.animate=!this.gos.get("suppressAnimationFrame"),i.changedRowNodes=new c.ChangedRowNodes,s.setImmutableRowData(i,a);else{i.rowDataUpdated=!0,i.newData=!0;const{selectionSvc:e,pinnedRowModel:t}=this.beans;e?.reset("rowDataChanged"),t?.isManual()&&t.reset(),this.rowNodesCountReady=!0,s.setNewRowData(a)}}if(i.rowDataUpdated)i.step="group";else if("nothing"===i.step)for(const{refreshProps:t,step:o}of this.orderedStages)if(e.some((e=>t.has(e)))){i.step=o;break}"nothing"!==i.step&&this.refreshModel(i)}setRowTopAndRowIndex(){const{beans:e,rowsToDisplay:t}=this,o=e.environment.getDefaultRowHeight();let i=0;const n=new Set,s=(0,r._isDomLayout)(this.gos,"normal");for(let l=0,a=t.length;l<a;++l){const a=t[l];if(null!=a.id&&n.add(a.id),null==a.rowHeight){const t=(0,r._getRowHeightForNode)(e,a,s,o);a.setRowHeight(t.height,t.estimated)}a.setRowTop(i),a.setRowIndex(l),i+=a.rowHeight}return n}clearRowTopAndRowIndex(e,t){const o=e.active,i=e=>{e&&null!=e.id&&!t.has(e.id)&&e.clearRowTopAndRowIndex()},n=e=>{if(null!==e&&(i(e),i(e.detailNode),i(e.sibling),e.hasChildren()&&e.childrenAfterGroup)){const t=-1==e.level;o&&!t&&!e.expanded||e.childrenAfterGroup.forEach(n)}};n(this.rootNode)}isLastRowIndexKnown(){return!0}getRowCount(){return this.rowsToDisplay?this.rowsToDisplay.length:0}getTopLevelRowCount(){const e=this.rootNode;if(!e)return 0;if(0===this.rowsToDisplay.length)return 0;if(this.rowsToDisplay&&this.rowsToDisplay[0]===e)return 1;const t=e.childrenAfterSort,o=e.sibling&&e.sibling.displayed?1:0;return(t?t.length:0)+o}getTopLevelRowDisplayedIndex(e){const{rootNode:t,rowsToDisplay:o}=this;if(!t||!o.length||o[0]===t)return e;const{childrenAfterSort:i}=t,n=e=>{let t=i[e];if(this.gos.get("groupHideOpenParents"))for(;t.expanded&&t.childrenAfterSort&&t.childrenAfterSort.length>0;)t=t.childrenAfterSort[0];return t.rowIndex},{footerSvc:r}=this.beans;return r?r.getTopDisplayIndex(o,e,i,n):n(e)}getTopLevelIndexFromDisplayedIndex(e){const{rootNode:t,rowsToDisplay:o}=this;if(!t||!o.length||o[0]===t)return e;let i=this.getRow(e);for(i.footer&&(i=i.sibling);i.parent&&i.parent!==t;)i=i.parent;const n=t.childrenAfterSort?.findIndex((e=>e===i));return-1===n?e:n??e}getRowBounds(e){const t=this.rowsToDisplay[e];return t?{rowTop:t.rowTop,rowHeight:t.rowHeight}:null}onRowGroupOpened(){const e=(0,r._isAnimateRows)(this.gos);this.refreshModel({step:"map",keepRenderedRows:!0,animate:e})}onFilterChanged(e){if(e.afterDataChange)return;const t=(0,r._isAnimateRows)(this.gos),o=0===e.columns.length||e.columns.some((e=>e.isPrimary()))?"filter":"filter_aggregates";this.refreshModel({step:o,keepRenderedRows:!0,animate:t})}onSortChanged(){const e=(0,r._isAnimateRows)(this.gos);this.refreshModel({step:"sort",keepRenderedRows:!0,animate:e})}getType(){return"clientSide"}onValueChanged(){this.refreshModel({step:this.colModel.isPivotActive()?"pivot":"aggregate"})}createChangePath(e){const t=new l.ChangedPath(!1,this.rootNode);return e||(t.active=!1),t}isSuppressModelUpdateAfterUpdateTransaction(e){if(!this.gos.get("suppressModelUpdateAfterUpdateTransaction"))return!1;const{changedRowNodes:t,newData:o,rowDataUpdated:i}=e;return!(!t||o||!i)&&(!t.removals.size&&!t.adds.size)}refreshModel(e){if(!this.rootNode)return;const t=this.beans;let o=!!e.rowDataUpdated;const i=e.changedPath??(e.changedPath=this.createChangePath(!e.newData&&o));if(this.started&&o&&this.eventSvc.dispatchEvent({type:"rowDataUpdated"}),this.rowDataUpdatedPending||(this.rowDataUpdatedPending=o),!this.started||this.isRefreshingModel||this.colModel.changeEventsDispatching||this.isSuppressModelUpdateAfterUpdateTransaction(e))return;switch(this.rowDataUpdatedPending&&(this.rowDataUpdatedPending=!1,e.rowDataUpdated=o=!0),this.isRefreshingModel=!0,t.masterDetailSvc?.refreshModel(e),o&&"group"!==e.step&&t.colFilter?.refreshModel(),e.step){case"group":(this.doRowGrouping(e)||o)&&t.colFilter?.refreshModel(),!this.rowCountReady&&this.rowNodesCountReady&&(this.rowCountReady=!0,this.eventSvc.dispatchEventOnce({type:"rowCountReady"}));case"filter":this.doFilter(i);case"pivot":this.doPivot(i);case"aggregate":this.doAggregate(i);case"filter_aggregates":this.doFilterAggregates(i);case"sort":this.doSort(e.changedRowNodes,i);case"map":this.doRowsToDisplay()}const n=this.setRowTopAndRowIndex();this.clearRowTopAndRowIndex(i,n),this.isRefreshingModel=!1,this.eventSvc.dispatchEvent({type:"modelUpdated",animate:e.animate,keepRenderedRows:e.keepRenderedRows,newData:e.newData,newPage:!1,keepUndoRedoStack:e.keepUndoRedoStack})}isEmpty(){return!this.rootNode?.allLeafChildren?.length||!this.colModel?.ready}isRowsToRender(){return this.rowsToDisplay.length>0}getNodesInRangeForSelection(e,t){let o=!1,i=!1;const n=[],s=(0,r._getGroupSelectsDescendants)(this.gos);return this.forEachNodeAfterFilterAndSort((r=>{if(i)return;if(o&&(r===t||r===e)&&(i=!0,r.group&&s))return void n.push(...r.allLeafChildren);if(!o){if(r!==t&&r!==e)return;o=!0}(!r.group||!s)&&n.push(r)})),n}getTopLevelNodes(){return this.rootNode?.childrenAfterGroup??null}getRow(e){return this.rowsToDisplay[e]}isRowPresent(e){return this.rowsToDisplay.indexOf(e)>=0}getRowIndexAtPixel(e){const t=this.rowsToDisplay;if(this.isEmpty()||0===t.length)return-1;let o=0,i=t.length-1;if(e<=0)return 0;if((0,s._last)(t).rowTop<=e)return t.length-1;let n=-1,r=-1;for(;;){const s=Math.floor((o+i)/2),l=t[s];if(this.isRowInPixel(l,e))return s;l.rowTop<e?o=s+1:l.rowTop>e&&(i=s-1);if(n===o&&r===i)return s;n=o,r=i}}isRowInPixel(e,t){const o=e.rowTop,i=e.rowTop+e.rowHeight;return o<=t&&i>t}forEachLeafNode(e){this.rootNode?.allLeafChildren?.forEach(((t,o)=>e(t,o)))}forEachNode(e,t=!1){this.depthFirstSearchRowNodes(e,t)}forEachDisplayedNode(e){this.rowsToDisplay.forEach(e)}forEachNodeAfterFilter(e,t=!1){this.depthFirstSearchRowNodes(e,t,(e=>e.childrenAfterAggFilter))}forEachNodeAfterFilterAndSort(e,t=!1){this.depthFirstSearchRowNodes(e,t,(e=>e.childrenAfterSort))}forEachPivotNode(e,t=!1,o=!1){const{colModel:i,rowGroupColsSvc:n}=this.beans;if(!i.isPivotMode())return;if(!n?.columns.length)return void e(this.rootNode,0);const r=o?"childrenAfterSort":"childrenAfterGroup";this.depthFirstSearchRowNodes(e,t,(e=>e.leafGroup?null:e[r]))}depthFirstSearchRowNodes(e,t=!1,o=e=>e.childrenAfterGroup,i=this.rootNode,n=0){let r=n;if(!i)return r;const s=i===this.rootNode;s||e(i,r++);const{footerSvc:l}=this.beans;if(i.hasChildren()&&!i.footer){const n=o(i);if(n){r=l?.addTotalRows(r,i,e,t,s,"top")??r;for(const i of n)r=this.depthFirstSearchRowNodes(e,t,o,i,r);return l?.addTotalRows(r,i,e,t,s,"bottom")??r}}return r}doAggregate(e){const t=this.rootNode;t&&this.aggStage?.execute({rowNode:t,changedPath:e})}doFilterAggregates(e){const t=this.rootNode;this.filterAggStage?this.filterAggStage.execute({rowNode:t,changedPath:e}):t.childrenAfterAggFilter=t.childrenAfterFilter}doSort(e,t){this.sortStage?this.sortStage.execute({rowNode:this.rootNode,changedRowNodes:e,changedPath:t}):t.forEachChangedNodeDepthFirst((e=>{e.childrenAfterSort=e.childrenAfterAggFilter.slice(0),(0,h.updateRowNodeAfterSort)(e)}))}doRowGrouping(e){const t=this.rootNode,o=this.groupStage?.execute({rowNode:t,changedRowNodes:e.changedRowNodes,changedPath:e.changedPath,rowNodesOrderChanged:!!e.rowNodesOrderChanged,afterColumnsChanged:!!e.afterColumnsChanged});if(void 0!==o)return o;const i=t.sibling;return t.childrenAfterGroup=t.allLeafChildren,i&&(i.childrenAfterGroup=t.childrenAfterGroup),t.updateHasChildren(),!1}doFilter(e){this.filterStage?this.filterStage.execute({rowNode:this.rootNode,changedPath:e}):e.forEachChangedNodeDepthFirst((e=>{e.childrenAfterFilter=e.childrenAfterGroup,(0,u.updateRowNodeAfterFilter)(e)}),!0)}doPivot(e){this.pivotStage?.execute({rowNode:this.rootNode,changedPath:e})}getRowNode(e){const t=this.nodeManager.getRowNode(e);if("object"==typeof t)return t;return"string"==typeof e&&0===e.indexOf(n.ROW_ID_PREFIX_ROW_GROUP)?this.groupStage?.getNode(e):void 0}batchUpdateRowData(e,t){if(null==this.applyAsyncTransactionsTimeout){this.rowDataTransactionBatch=[];const e=this.gos.get("asyncTransactionWaitMillis");this.applyAsyncTransactionsTimeout=window.setTimeout((()=>{this.isAlive()&&this.executeBatchUpdateRowData()}),e)}this.rowDataTransactionBatch.push({rowDataTransaction:e,callback:t})}flushAsyncTransactions(){null!=this.applyAsyncTransactionsTimeout&&(clearTimeout(this.applyAsyncTransactionsTimeout),this.executeBatchUpdateRowData())}executeBatchUpdateRowData(){this.valueCache?.onDataChanged();const e=[],t=[],o=new c.ChangedRowNodes;let i=!1;this.rowDataTransactionBatch?.forEach((n=>{this.rowNodesCountReady=!0;const{rowNodeTransaction:r,rowsInserted:s}=this.nodeManager.updateRowData(n.rowDataTransaction,o);s&&(i=!0),t.push(r),n.callback&&e.push(n.callback.bind(null,r))})),this.commitTransactions(i,o),e.length>0&&window.setTimeout((()=>{e.forEach((e=>e()))}),0),t.length>0&&this.eventSvc.dispatchEvent({type:"asyncTransactionsFlushed",results:t}),this.rowDataTransactionBatch=null,this.applyAsyncTransactionsTimeout=void 0}updateRowData(e){this.valueCache?.onDataChanged(),this.rowNodesCountReady=!0;const t=new c.ChangedRowNodes,{rowNodeTransaction:o,rowsInserted:i}=this.nodeManager.updateRowData(e,t);return this.commitTransactions(i,t),o}commitTransactions(e,t){this.refreshModel({step:"group",rowDataUpdated:!0,rowNodesOrderChanged:e,keepRenderedRows:!0,animate:!this.gos.get("suppressAnimationFrame"),changedRowNodes:t,changedPath:this.createChangePath(!0)})}doRowsToDisplay(){const{flattenStage:e,rootNode:t}=this;let o;if(e)o=e.execute({rowNode:t});else{o=t?.childrenAfterSort??[];for(const e of o)e.setUiLevel(0)}this.rowsToDisplay=o}onRowHeightChanged(){this.refreshModel({step:"map",keepRenderedRows:!0,keepUndoRedoStack:!0})}resetRowHeights(){const e=this.rootNode;if(!e)return;const t=this.resetRowHeightsForAllRowNodes();e.setRowHeight(e.rowHeight,!0),e.sibling&&e.sibling.setRowHeight(e.sibling.rowHeight,!0),t&&this.onRowHeightChanged()}resetRowHeightsForAllRowNodes(){let e=!1;return this.forEachNode((t=>{t.setRowHeight(t.rowHeight,!0);const o=t.detailNode;o&&o.setRowHeight(o.rowHeight,!0),t.sibling&&t.sibling.setRowHeight(t.sibling.rowHeight,!0),e=!0})),e}onGridStylesChanges(e){if(e.rowHeightChanged){if(this.beans.rowAutoHeight?.active)return;this.resetRowHeights()}}onGridReady(){this.started||this.setInitialData()}isRowDataLoaded(){return this.rowCountReady}destroy(){super.destroy(),this.started=!1,this.rootNode=null,this.nodeManager=null,this.rowDataTransactionBatch=null,this.orderedStages=s._EmptyArray,this.rowsToDisplay=s._EmptyArray}onRowHeightChangedDebounced(){this.onRowHeightChanged_debounced()}}t.ClientSideRowModel=g},4452:function(e,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.getBestCostNodeSelection=t.flushAsyncTransactions=t.applyTransactionAsync=t.applyTransaction=t.resetRowHeights=t.forEachNodeAfterFilterAndSort=t.forEachNodeAfterFilter=t.forEachLeafNode=t.isRowDataEmpty=t.refreshClientSideRowModel=t.onGroupExpandedOrCollapsed=void 0;const i=o(6876),n=o(7764);t.onGroupExpandedOrCollapsed=function(e){e.expansionSvc?.onGroupExpandedOrCollapsed()},t.refreshClientSideRowModel=function(e,t){const o=(0,i._getClientSideRowModel)(e);o&&(t&&"everything"!==t||(t="group"),o.refreshModel({step:t,keepRenderedRows:!0,animate:!e.gos.get("suppressAnimationFrame")}))},t.isRowDataEmpty=function(e){return(0,i._getClientSideRowModel)(e)?.isEmpty()??!0},t.forEachLeafNode=function(e,t){(0,i._getClientSideRowModel)(e)?.forEachLeafNode(t)},t.forEachNodeAfterFilter=function(e,t){(0,i._getClientSideRowModel)(e)?.forEachNodeAfterFilter(t)},t.forEachNodeAfterFilterAndSort=function(e,t){(0,i._getClientSideRowModel)(e)?.forEachNodeAfterFilterAndSort(t)},t.resetRowHeights=function(e){e.rowAutoHeight?.active?(0,n._warn)(3):(0,i._getClientSideRowModel)(e)?.resetRowHeights()},t.applyTransaction=function(e,t){return e.frameworkOverrides.wrapIncoming((()=>(0,i._getClientSideRowModel)(e)?.updateRowData(t)))},t.applyTransactionAsync=function(e,t,o){e.frameworkOverrides.wrapIncoming((()=>(0,i._getClientSideRowModel)(e)?.batchUpdateRowData(t,o)))},t.flushAsyncTransactions=function(e){e.frameworkOverrides.wrapIncoming((()=>(0,i._getClientSideRowModel)(e)?.flushAsyncTransactions()))},t.getBestCostNodeSelection=function(e){return e.selectionSvc?.getBestCostNodeSelection()}},9722:function(e,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.ClientSideRowModelApiModule=t.ClientSideRowModelModule=void 0;const i=o(6437),n=o(6620),r=o(7205),s=o(8128),l=o(3278),a=o(4452),d=o(9849);t.ClientSideRowModelModule={moduleName:"ClientSideRowModel",version:r.VERSION,rowModels:["clientSide"],beans:[s.ClientSideNodeManager,l.ClientSideRowModel,d.SortStage],dependsOn:[n.SortModule]},t.ClientSideRowModelApiModule={moduleName:"ClientSideRowModelApi",version:r.VERSION,apiFunctions:{onGroupExpandedOrCollapsed:a.onGroupExpandedOrCollapsed,refreshClientSideRowModel:a.refreshClientSideRowModel,isRowDataEmpty:a.isRowDataEmpty,forEachLeafNode:a.forEachLeafNode,forEachNodeAfterFilter:a.forEachNodeAfterFilter,forEachNodeAfterFilterAndSort:a.forEachNodeAfterFilterAndSort,resetRowHeights:a.resetRowHeights,applyTransaction:a.applyTransaction,applyTransactionAsync:a.applyTransactionAsync,flushAsyncTransactions:a.flushAsyncTransactions,getBestCostNodeSelection:a.getBestCostNodeSelection},dependsOn:[i.CsrmSsrmSharedApiModule]}},8287:function(e,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.FilterStage=t.updateRowNodeAfterFilter=void 0;const i=o(8731);function n(e){e.sibling&&(e.sibling.childrenAfterFilter=e.childrenAfterFilter)}t.updateRowNodeAfterFilter=n;class r extends i.BeanStub{constructor(){super(...arguments),this.beanName="filterStage",this.refreshProps=new Set(["excludeChildrenWhenTreeDataFiltering"]),this.step="filter"}wireBeans(e){this.filterManager=e.filterManager}execute(e){const{changedPath:t}=e;this.filter(t)}filter(e){const t=!!this.filterManager?.isChildFilterPresent();this.filterNodes(t,e)}filterNodes(e,t){const o=(t,o)=>{t.hasChildren()?t.childrenAfterFilter=e&&!o?t.childrenAfterGroup.filter((e=>{const t=e.childrenAfterFilter&&e.childrenAfterFilter.length>0,o=e.data&&this.filterManager.doesRowPassFilter({rowNode:e});return t||o})):t.childrenAfterGroup:t.childrenAfterFilter=t.childrenAfterGroup,n(t)};if(this.doingTreeDataFiltering()){const e=(t,i)=>{if(t.childrenAfterGroup)for(let n=0;n<t.childrenAfterGroup.length;n++){const r=t.childrenAfterGroup[n],s=i||this.filterManager.doesRowPassFilter({rowNode:r});r.childrenAfterGroup?e(t.childrenAfterGroup[n],s):o(r,s)}o(t,i)},i=t=>e(t,!1);t.executeFromRootNode(i)}else{const e=e=>o(e,!1);t.forEachChangedNodeDepthFirst(e,!0)}}doingTreeDataFiltering(){return this.gos.get("treeData")&&!this.gos.get("excludeChildrenWhenTreeDataFiltering")}}t.FilterStage=r},9849:function(e,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.SortStage=t.updateRowNodeAfterSort=void 0;const i=o(8731),n=o(7274),r=o(4422);function s(e){e.sibling&&(e.sibling.childrenAfterSort=e.childrenAfterSort),function(e){if((0,r._missing)(e.childrenAfterSort))return;const t=e.childrenAfterSort;for(let o=0;o<t.length;o++){const i=t[o],n=0===o,r=o===e.childrenAfterSort.length-1;i.setFirstChild(n),i.lastChild!==r&&(i.lastChild=r,i.dispatchRowEvent("lastChildChanged")),i.childIndex!==o&&(i.childIndex=o,i.dispatchRowEvent("childIndexChanged"))}}(e)}t.updateRowNodeAfterSort=s;class l extends i.BeanStub{constructor(){super(...arguments),this.beanName="sortStage",this.refreshProps=new Set(["postSortRows","groupDisplayType","accentedSort"]),this.step="sort"}execute(e){const t=this.beans,o=t.sortSvc.getSortOptions(),i=(0,r._exists)(o)&&o.length>0,s=i&&!!e.changedRowNodes&&this.gos.get("deltaSort"),l=o.some((({column:e})=>(0,n._isColumnsSortingCoupledToGroup)(t.gos)?e.isPrimary()&&e.isRowGroupActive():!!e.getColDef().showRowGroup));this.sort(t,o,i,s,e.changedRowNodes,e.changedPath,l)}sort(e,t,o,i,n,r,l){const{gos:a,colModel:d,rowGroupColsSvc:c,rowNodeSorter:u,rowRenderer:h,showRowGroupCols:g}=e,p=a.get("groupMaintainOrder"),m=d.getCols().some((e=>e.isRowGroupActive())),f=d.isPivotMode(),C=a.getCallback("postSortRows");let v=!1;if(r?.forEachChangedNodeDepthFirst((e=>{const a=f&&e.leafGroup;let d;if(p&&m&&!e.leafGroup&&!l){const t=c?.columns?.[e.level+1],o=null===t?.getSort(),i=e.childrenAfterAggFilter.slice(0);if(e.childrenAfterSort&&!o){const t={};e.childrenAfterSort.forEach(((e,o)=>{t[e.id]=o})),i.sort(((e,o)=>(t[e.id]??0)-(t[o.id]??0)))}d=i}else d=!o||a?e.childrenAfterAggFilter.slice(0):i&&n?function(e,t,o,i,n){const r=t.childrenAfterAggFilter,s=t.childrenAfterSort;if(!s)return e.doFullSort(r,n);const l=new Set,a=[],{updates:d,adds:c}=o;for(let e=0,t=r.length;e<t;++e){const t=r[e];d.has(t)||c.has(t)||i&&!i.canSkip(t)?a.push({currentPos:a.length,rowNode:t}):l.add(t.id)}const u=s.filter((e=>l.has(e.id))).map(((e,t)=>({currentPos:t,rowNode:e})));return a.sort(((t,o)=>e.compareRowNodes(n,t,o))),function(e,t,o,i){const n=[];let r=0,s=0;const l=o.length,a=i.length;for(;r<l&&s<a;){const l=o[r],a=i[s];let d;e.compareRowNodes(t,l,a)<0?(d=l,++r):(d=a,++s),n.push(d.rowNode)}for(;r<l;)n.push(o[r++].rowNode);for(;s<a;)n.push(i[s++].rowNode);return n}(e,n,a,u)}(u,e,n,r,t):u.doFullSort(e.childrenAfterAggFilter,t);if(v||(v=e.childrenAfterSort?.[0]!==d[0]),e.childrenAfterSort=d,s(e),C){const t={nodes:e.childrenAfterSort};C(t)}})),v&&this.gos.get("groupHideOpenParents")){const e=g?.getShowRowGroupCols();e?.length&&h.refreshCells({columns:e,force:!0})}}}t.SortStage=l},3218:function(e,t){function o({colAutosize:e,visibleCols:t},o,i){Array.isArray(o)?e?.autoSizeCols({colKeys:o,skipHeader:i,source:"api"}):e?.autoSizeCols({colKeys:o.colIds??t.allCols,skipHeader:o.skipHeader,defaultMaxWidth:o.defaultMaxWidth,defaultMinWidth:o.defaultMinWidth,columnLimits:o.columnLimits,source:"api"})}Object.defineProperty(t,"__esModule",{value:!0}),t.autoSizeAllColumns=t.autoSizeColumns=t.sizeColumnsToFit=void 0,t.sizeColumnsToFit=function(e,t){"number"==typeof t?e.colAutosize?.sizeColumnsToFit(t,"api"):e.colAutosize?.sizeColumnsToFitGridBody(t)},t.autoSizeColumns=o,t.autoSizeAllColumns=function(e,t){t&&"object"==typeof t?o(e,t):e.colAutosize?.autoSizeAllColumns({source:"api",skipHeader:t})}},3856:function(e,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.ColumnAutoSizeModule=void 0;const i=o(447),n=o(7205),r=o(3218),s=o(4817);t.ColumnAutoSizeModule={moduleName:"ColumnAutoSize",version:n.VERSION,beans:[s.ColumnAutosizeService],apiFunctions:{sizeColumnsToFit:r.sizeColumnsToFit,autoSizeColumns:r.autoSizeColumns,autoSizeAllColumns:r.autoSizeAllColumns},dependsOn:[i.AutoWidthModule]}},4817:function(e,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.ColumnAutosizeService=void 0;const i=o(2934),n=o(3146),r=o(8731),s=o(1502),l=o(3507),a=o(7764),d=o(9644);class c extends r.BeanStub{constructor(){super(...arguments),this.beanName="colAutosize",this.timesDelayed=0,this.shouldQueueResizeOperations=!1,this.resizeOperationQueue=[]}postConstruct(){this.addManagedEventListeners({firstDataRendered:()=>this.onFirstDataRendered()})}autoSizeCols(e){if(this.shouldQueueResizeOperations)return void this.pushResizeOperation((()=>this.autoSizeCols(e)));const{colKeys:t,skipHeader:o,skipHeaderGroups:r,stopAtGroup:s,defaultMaxWidth:l,defaultMinWidth:a,columnLimits:d=[],source:c="api"}=e,{animationFrameSvc:h,renderStatus:g,colModel:p,autoWidthCalc:m,visibleCols:f}=this.beans;if(h?.flushAllFrames(),this.timesDelayed<5&&g&&!g.areHeaderCellsRendered())return this.timesDelayed++,void setTimeout((()=>{this.isAlive()&&this.autoSizeCols(e)}));this.timesDelayed=0;const C=[];let v=-1;const w=Object.fromEntries(d.map((({colId:e,maxWidth:t,minWidth:o})=>[e,{maxWidth:t,minWidth:o}]))),b=null!=o?o:this.gos.get("skipHeaderOnAutoSize"),S=null!=r?r:b;for(;0!==v;){v=0;const e=[];t.forEach((t=>{if(!t||(0,n.isSpecialCol)(t))return;const o=p.getCol(t);if(!o)return;if(C.indexOf(