UNPKG

ag-grid-community

Version:

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

18 lines (11 loc) 1.09 MB
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=(e,t,i)=>t in e?__defProp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,__spreadValues=(e,t)=>{for(var i in t||(t={}))__hasOwnProp.call(t,i)&&__defNormalProp(e,i,t[i]);if(__getOwnPropSymbols)for(var i of __getOwnPropSymbols(t))__propIsEnum.call(t,i)&&__defNormalProp(e,i,t[i]);return e},__spreadProps=(e,t)=>__defProps(e,__getOwnPropDescs(t)),__objRest=(e,t)=>{var i={};for(var s in e)__hasOwnProp.call(e,s)&&t.indexOf(s)<0&&(i[s]=e[s]);if(e!=null&&__getOwnPropSymbols)for(var s of __getOwnPropSymbols(e))t.indexOf(s)<0&&__propIsEnum.call(e,s)&&(i[s]=e[s]);return i},__export=(e,t)=>{for(var i in t)__defProp(e,i,{get:t[i],enumerable:!0})},__copyProps=(e,t,i,s)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of __getOwnPropNames(t))!__hasOwnProp.call(e,o)&&o!==i&&__defProp(e,o,{get:()=>t[o],enumerable:!(s=__getOwnPropDesc(t,o))||s.enumerable});return e},__toCommonJS=e=>__copyProps(__defProp({},"__esModule",{value:!0}),e),__decorateClass=(e,t,i,s)=>{for(var o=s>1?void 0:s?__getOwnPropDesc(t,i):t,r=e.length-1,n;r>=0;r--)(n=e[r])&&(o=(s?n(t,i,o):n(o))||o);return s&&o&&__defProp(t,i,o),o},__decorateParam=(e,t)=>(i,s)=>t(i,s,e),main_exports={};__export(main_exports,{ALWAYS_SYNC_GLOBAL_EVENTS:()=>ALWAYS_SYNC_GLOBAL_EVENTS,AbstractHeaderCellCtrl:()=>AbstractHeaderCellCtrl,AgAbstractField:()=>AgAbstractField,AgAbstractLabel:()=>AgAbstractLabel,AgAutocomplete:()=>AgAutocomplete,AgCheckbox:()=>AgCheckbox,AgDialog:()=>AgDialog,AgGroupComponent:()=>AgGroupComponent,AgInputDateField:()=>AgInputDateField,AgInputNumberField:()=>AgInputNumberField,AgInputRange:()=>AgInputRange,AgInputTextArea:()=>AgInputTextArea,AgInputTextField:()=>AgInputTextField,AgMenuItemComponent:()=>AgMenuItemComponent,AgMenuItemRenderer:()=>AgMenuItemRenderer,AgMenuList:()=>AgMenuList,AgMenuPanel:()=>AgMenuPanel,AgPanel:()=>AgPanel,AgPickerField:()=>AgPickerField,AgPromise:()=>AgPromise,AgPromiseStatus:()=>AgPromiseStatus,AgRadioButton:()=>AgRadioButton,AgRichSelect:()=>AgRichSelect,AgSelect:()=>AgSelect,AgSlider:()=>AgSlider,AgStackComponentsRegistry:()=>AgStackComponentsRegistry,AgToggleButton:()=>AgToggleButton,AlignedGridsService:()=>AlignedGridsService,AnimateShowChangeCellRenderer:()=>AnimateShowChangeCellRenderer,AnimateSlideCellRenderer:()=>AnimateSlideCellRenderer,AnimationFrameService:()=>AnimationFrameService,AutoScrollService:()=>AutoScrollService,AutoWidthCalculator:()=>AutoWidthCalculator,Autowired:()=>Autowired,BarColumnLabelPlacement:()=>BarColumnLabelPlacement,BaseComponentWrapper:()=>BaseComponentWrapper,BaseCreator:()=>BaseCreator,BaseGridSerializingSession:()=>BaseGridSerializingSession,Bean:()=>Bean,BeanStub:()=>BeanStub,Beans:()=>Beans,BodyDropPivotTarget:()=>BodyDropPivotTarget,BodyDropTarget:()=>BodyDropTarget,CellComp:()=>CellComp,CellCtrl:()=>CellCtrl,CellNavigationService:()=>CellNavigationService,CellPositionUtils:()=>CellPositionUtils,CellRangeType:()=>CellRangeType,ChangedPath:()=>ChangedPath,CheckboxCellEditor:()=>CheckboxCellEditor,CheckboxCellRenderer:()=>CheckboxCellRenderer,CheckboxSelectionComponent:()=>CheckboxSelectionComponent,ClientSideRowModelModule:()=>ClientSideRowModelModule,ClientSideRowModelSteps:()=>ClientSideRowModelSteps,ColDefUtil:()=>ColDefUtil,Column:()=>Column,ColumnApi:()=>ColumnApi,ColumnFactory:()=>ColumnFactory,ColumnGroup:()=>ColumnGroup,ColumnKeyCreator:()=>ColumnKeyCreator,ColumnModel:()=>ColumnModel,ColumnUtils:()=>ColumnUtils,Component:()=>Component,ComponentUtil:()=>ComponentUtil,Context:()=>Context,CssClassApplier:()=>CssClassApplier,CssClassManager:()=>CssClassManager,CsvCreator:()=>CsvCreator,CsvExportModule:()=>CsvExportModule,CtrlsService:()=>CtrlsService,DataTypeService:()=>DataTypeService,DateCellEditor:()=>DateCellEditor,DateFilter:()=>DateFilter,DateStringCellEditor:()=>DateStringCellEditor,DisplayedGroupCreator:()=>DisplayedGroupCreator,Downloader:()=>Downloader,DragAndDropService:()=>DragAndDropService,DragService:()=>DragService,DragSourceType:()=>DragSourceType,Environment:()=>Environment,EventService:()=>EventService,Events:()=>Events,ExcelFactoryMode:()=>ExcelFactoryMode,ExpansionService:()=>ExpansionService,ExpressionService:()=>ExpressionService,FilterManager:()=>FilterManager,FloatingFilterMapper:()=>FloatingFilterMapper,FocusService:()=>FocusService,GROUP_AUTO_COLUMN_ID:()=>GROUP_AUTO_COLUMN_ID,Grid:()=>Grid,GridApi:()=>GridApi,GridBodyComp:()=>GridBodyComp,GridBodyCtrl:()=>GridBodyCtrl,GridComp:()=>GridComp,GridCoreCreator:()=>GridCoreCreator,GridCtrl:()=>GridCtrl,GridHeaderComp:()=>GridHeaderComp,GridHeaderCtrl:()=>GridHeaderCtrl,GridOptionsService:()=>GridOptionsService,GridSerializer:()=>GridSerializer,GroupCellRenderer:()=>GroupCellRenderer,GroupCellRendererCtrl:()=>GroupCellRendererCtrl,GroupInstanceIdCreator:()=>GroupInstanceIdCreator,HeaderCellCtrl:()=>HeaderCellCtrl,HeaderFilterCellComp:()=>HeaderFilterCellComp,HeaderFilterCellCtrl:()=>HeaderFilterCellCtrl,HeaderGroupCellCtrl:()=>HeaderGroupCellCtrl,HeaderNavigationDirection:()=>HeaderNavigationDirection,HeaderNavigationService:()=>HeaderNavigationService,HeaderPositionUtils:()=>HeaderPositionUtils,HeaderRowComp:()=>HeaderRowComp,HeaderRowContainerComp:()=>HeaderRowContainerComp,HeaderRowContainerCtrl:()=>HeaderRowContainerCtrl,HeaderRowCtrl:()=>HeaderRowCtrl,HeaderRowType:()=>HeaderRowType,HorizontalDirection:()=>HorizontalDirection,HorizontalResizeService:()=>HorizontalResizeService,InfiniteRowModelModule:()=>InfiniteRowModelModule,KeyCode:()=>KeyCode,LargeTextCellEditor:()=>LargeTextCellEditor,LayoutCssClasses:()=>LayoutCssClasses,LocaleService:()=>LocaleService,Logger:()=>Logger,LoggerFactory:()=>LoggerFactory,ManagedFocusFeature:()=>ManagedFocusFeature,MenuService:()=>MenuService,ModuleNames:()=>ModuleNames,ModuleRegistry:()=>ModuleRegistry,MouseEventService:()=>MouseEventService,MoveColumnFeature:()=>MoveColumnFeature,NavigationService:()=>NavigationService,NumberCellEditor:()=>NumberCellEditor,NumberFilter:()=>NumberFilter,NumberSequence:()=>NumberSequence,Optional:()=>Optional,PaginationProxy:()=>PaginationProxy,PillDragComp:()=>PillDragComp,PillDropZonePanel:()=>PillDropZonePanel,PinnedRowModel:()=>PinnedRowModel,PopupComponent:()=>PopupComponent,PopupEditorWrapper:()=>PopupEditorWrapper,PopupService:()=>PopupService,PositionableFeature:()=>PositionableFeature,PostConstruct:()=>PostConstruct,PreConstruct:()=>PreConstruct,PreDestroy:()=>PreDestroy,PropertyKeys:()=>PropertyKeys,ProvidedColumnGroup:()=>ProvidedColumnGroup,ProvidedFilter:()=>ProvidedFilter,Qualifier:()=>Qualifier,QuerySelector:()=>QuerySelector,RefSelector:()=>RefSelector,ResizeObserverService:()=>ResizeObserverService,RowAnimationCssClasses:()=>RowAnimationCssClasses,RowContainerComp:()=>RowContainerComp,RowContainerCtrl:()=>RowContainerCtrl,RowContainerName:()=>RowContainerName,RowContainerType:()=>RowContainerType,RowCtrl:()=>RowCtrl,RowHighlightPosition:()=>RowHighlightPosition,RowNode:()=>RowNode,RowNodeBlock:()=>RowNodeBlock,RowNodeBlockLoader:()=>RowNodeBlockLoader,RowNodeSorter:()=>RowNodeSorter,RowPositionUtils:()=>RowPositionUtils,RowRenderer:()=>RowRenderer,RowType:()=>RowType,ScalarFilter:()=>ScalarFilter,ScrollVisibleService:()=>ScrollVisibleService,SelectCellEditor:()=>SelectCellEditor,SelectableService:()=>SelectableService,SelectionHandleType:()=>SelectionHandleType,ServerSideTransactionResultStatus:()=>ServerSideTransactionResultStatus,SetLeftFeature:()=>SetLeftFeature,SimpleFilter:()=>SimpleFilter,SortController:()=>SortController,SortIndicatorComp:()=>SortIndicatorComp,StandardMenuFactory:()=>StandardMenuFactory,StylingService:()=>StylingService,TabGuardClassNames:()=>TabGuardClassNames,TabGuardComp:()=>TabGuardComp,TabGuardCtrl:()=>TabGuardCtrl,TabbedLayout:()=>TabbedLayout,TemplateService:()=>TemplateService,TextCellEditor:()=>TextCellEditor,TextFilter:()=>TextFilter,TextFloatingFilter:()=>TextFloatingFilter,Timer:()=>Timer,TooltipFeature:()=>TooltipFeature,TooltipStateManager:()=>TooltipStateManager,TouchListener:()=>TouchListener,UserComponentFactory:()=>UserComponentFactory,UserComponentRegistry:()=>UserComponentRegistry,ValueCache:()=>ValueCache,ValueFormatterService:()=>ValueFormatterService,ValueParserService:()=>ValueParserService,ValueService:()=>ValueService,VanillaFrameworkOverrides:()=>VanillaFrameworkOverrides,VerticalDirection:()=>VerticalDirection,VirtualList:()=>VirtualList,VirtualListDragFeature:()=>VirtualListDragFeature,XmlFactory:()=>XmlFactory,ZipContainer:()=>ZipContainer,_:()=>_,createGrid:()=>createGrid,getRowContainerTypeForName:()=>getRowContainerTypeForName}),module.exports=__toCommonJS(main_exports);var generic_exports={};__export(generic_exports,{attrToBoolean:()=>attrToBoolean,attrToNumber:()=>attrToNumber,attrToString:()=>attrToString,defaultComparator:()=>defaultComparator,exists:()=>exists,jsonEquals:()=>jsonEquals,makeNull:()=>makeNull,missing:()=>missing,missingOrEmpty:()=>missingOrEmpty,toStringOrNull:()=>toStringOrNull,values:()=>values});function makeNull(e){return e==null||e===""?null:e}function exists(e,t=!1){return e!=null&&(e!==""||t)}function missing(e){return!exists(e)}function missingOrEmpty(e){return e==null||e.length===0}function toStringOrNull(e){return e!=null&&typeof e.toString=="function"?e.toString():null}function attrToNumber(e){if(e===void 0)return;if(e===null||e==="")return null;if(typeof e=="number")return isNaN(e)?void 0:e;const t=parseInt(e,10);return isNaN(t)?void 0:t}function attrToBoolean(e){if(e!==void 0)return e===null||e===""?!1:typeof e=="boolean"?e:/true/i.test(e)}function attrToString(e){if(!(e==null||e===""))return e}function jsonEquals(e,t){const i=e?JSON.stringify(e):null,s=t?JSON.stringify(t):null;return i===s}function defaultComparator(e,t,i=!1){const s=e==null,o=t==null;if(e&&e.toNumber&&(e=e.toNumber()),t&&t.toNumber&&(t=t.toNumber()),s&&o)return 0;if(s)return-1;if(o)return 1;function r(n,l){return n>l?1:n<l?-1:0}if(typeof e!="string"||!i)return r(e,t);try{return e.localeCompare(t)}catch{return r(e,t)}}function values(e){if(e instanceof Set||e instanceof Map){const t=[];return e.forEach(i=>t.push(i)),t}return Object.values(e)}var ColumnKeyCreator=class{constructor(){this.existingKeys={}}addExistingKeys(e){for(let t=0;t<e.length;t++)this.existingKeys[e[t]]=!0}getUniqueKey(e,t){e=toStringOrNull(e);let i=0;for(;;){let s;if(e?(s=e,i!==0&&(s+="_"+i)):t?(s=t,i!==0&&(s+="_"+i)):s=i,!this.existingKeys[s])return this.existingKeys[s]=!0,String(s);i++}}},object_exports={};__export(object_exports,{cloneObject:()=>cloneObject,deepCloneDefinition:()=>deepCloneDefinition,getAllValuesInObject:()=>getAllValuesInObject,getValueUsingField:()=>getValueUsingField,isNonNullObject:()=>isNonNullObject,iterateObject:()=>iterateObject,mergeDeep:()=>mergeDeep,removeAllReferences:()=>removeAllReferences});function iterateObject(e,t){if(e!=null){if(Array.isArray(e)){for(let i=0;i<e.length;i++)t(i.toString(),e[i]);return}for(const[i,s]of Object.entries(e))t(i,s)}}function cloneObject(e){const t={},i=Object.keys(e);for(let s=0;s<i.length;s++){const o=i[s],r=e[o];t[o]=r}return t}function deepCloneDefinition(e,t){if(!e)return;const i=e,s={};return Object.keys(i).forEach(o=>{if(t&&t.indexOf(o)>=0)return;const r=i[o];isNonNullObject(r)&&r.constructor===Object?s[o]=deepCloneDefinition(r):s[o]=r}),s}function getAllValuesInObject(e){if(!e)return[];const t=Object;if(typeof t.values=="function")return t.values(e);const i=[];for(const s in e)e.hasOwnProperty(s)&&e.propertyIsEnumerable(s)&&i.push(e[s]);return i}function mergeDeep(e,t,i=!0,s=!1){exists(t)&&iterateObject(t,(o,r)=>{let n=e[o];n!==r&&(s&&n==null&&r!=null&&typeof r=="object"&&r.constructor===Object&&(n={},e[o]=n),isNonNullObject(r)&&isNonNullObject(n)&&!Array.isArray(n)?mergeDeep(n,r,i,s):(i||r!==void 0)&&(e[o]=r))})}function getValueUsingField(e,t,i){if(!t||!e)return;if(!i)return e[t];const s=t.split(".");let o=e;for(let r=0;r<s.length;r++){if(o==null)return;o=o[s[r]]}return o}function removeAllReferences(e,t=[],i){Object.keys(e).forEach(n=>{typeof e[n]=="object"&&!t.includes(n)&&(e[n]=void 0)});const s=Object.getPrototypeOf(e),o={},r=n=>`AG Grid: Grid API function ${n}() cannot be called as the grid has been destroyed. It is recommended to remove local references to the grid api. Alternatively, check gridApi.isDestroyed() to avoid calling methods against a destroyed grid. To run logic when the grid is about to be destroyed use the gridPreDestroy event. See: ${i}`;Object.getOwnPropertyNames(s).forEach(n=>{if(typeof s[n]=="function"&&!t.includes(n)){const a=()=>{console.warn(r(n))};o[n]={value:a,writable:!0}}}),Object.defineProperties(e,o)}function isNonNullObject(e){return typeof e=="object"&&e!==null}var function_exports={};__export(function_exports,{compose:()=>compose,debounce:()=>debounce,doOnce:()=>doOnce,errorOnce:()=>errorOnce,executeAfter:()=>executeAfter,executeInAWhile:()=>executeInAWhile,executeNextVMTurn:()=>executeNextVMTurn,getFunctionName:()=>getFunctionName,isFunction:()=>isFunction,noop:()=>noop,throttle:()=>throttle,waitUntil:()=>waitUntil,warnOnce:()=>warnOnce});var doOnceFlags={};function doOnce(e,t){doOnceFlags[t]||(e(),doOnceFlags[t]=!0)}function warnOnce(e){doOnce(()=>console.warn("AG Grid: "+e),e)}function errorOnce(e){doOnce(()=>console.error("AG Grid: "+e),e)}function getFunctionName(e){if(e.name)return e.name;const t=/function\s+([^\(]+)/.exec(e.toString());return t&&t.length===2?t[1].trim():null}function isFunction(e){return!!(e&&e.constructor&&e.call&&e.apply)}function executeInAWhile(e){executeAfter(e,400)}var executeNextVMTurnFuncs=[],executeNextVMTurnPending=!1;function executeNextVMTurn(e){executeNextVMTurnFuncs.push(e),!executeNextVMTurnPending&&(executeNextVMTurnPending=!0,window.setTimeout(()=>{const t=executeNextVMTurnFuncs.slice();executeNextVMTurnFuncs.length=0,executeNextVMTurnPending=!1,t.forEach(i=>i())},0))}function executeAfter(e,t=0){e.length>0&&window.setTimeout(()=>e.forEach(i=>i()),t)}function debounce(e,t){let i;return function(...s){const o=this;window.clearTimeout(i),i=window.setTimeout(function(){e.apply(o,s)},t)}}function throttle(e,t){let i=0;return function(...s){const o=this,r=new Date().getTime();r-i<t||(i=r,e.apply(o,s))}}function waitUntil(e,t,i=100,s){const o=new Date().getTime();let r=null,n=!1;const l=()=>{const a=new Date().getTime()-o>i;(e()||a)&&(t(),n=!0,r!=null&&(window.clearInterval(r),r=null),a&&s&&console.warn(s))};l(),n||(r=window.setInterval(l,10))}function compose(...e){return t=>e.reduce((i,s)=>s(i),t)}var noop=()=>{},ModuleNames=(e=>(e.CommunityCoreModule="@ag-grid-community/core",e.InfiniteRowModelModule="@ag-grid-community/infinite-row-model",e.ClientSideRowModelModule="@ag-grid-community/client-side-row-model",e.CsvExportModule="@ag-grid-community/csv-export",e.EnterpriseCoreModule="@ag-grid-enterprise/core",e.RowGroupingModule="@ag-grid-enterprise/row-grouping",e.ColumnsToolPanelModule="@ag-grid-enterprise/column-tool-panel",e.FiltersToolPanelModule="@ag-grid-enterprise/filter-tool-panel",e.MenuModule="@ag-grid-enterprise/menu",e.SetFilterModule="@ag-grid-enterprise/set-filter",e.MultiFilterModule="@ag-grid-enterprise/multi-filter",e.StatusBarModule="@ag-grid-enterprise/status-bar",e.SideBarModule="@ag-grid-enterprise/side-bar",e.RangeSelectionModule="@ag-grid-enterprise/range-selection",e.MasterDetailModule="@ag-grid-enterprise/master-detail",e.RichSelectModule="@ag-grid-enterprise/rich-select",e.GridChartsModule="@ag-grid-enterprise/charts",e.ViewportRowModelModule="@ag-grid-enterprise/viewport-row-model",e.ServerSideRowModelModule="@ag-grid-enterprise/server-side-row-model",e.ExcelExportModule="@ag-grid-enterprise/excel-export",e.ClipboardModule="@ag-grid-enterprise/clipboard",e.SparklinesModule="@ag-grid-enterprise/sparklines",e.AdvancedFilterModule="@ag-grid-enterprise/advanced-filter",e.AngularModule="@ag-grid-community/angular",e.ReactModule="@ag-grid-community/react",e.VueModule="@ag-grid-community/vue",e))(ModuleNames||{}),_ModuleRegistry=class T{static register(t){T.__register(t,!0,void 0)}static registerModules(t){T.__registerModules(t,!0,void 0)}static __register(t,i,s){T.runVersionChecks(t),s!==void 0?(T.areGridScopedModules=!0,T.gridModulesMap[s]===void 0&&(T.gridModulesMap[s]={}),T.gridModulesMap[s][t.moduleName]=t):T.globalModulesMap[t.moduleName]=t,T.setModuleBased(i)}static __unRegisterGridModules(t){delete T.gridModulesMap[t]}static __registerModules(t,i,s){T.setModuleBased(i),t&&t.forEach(o=>T.__register(o,i,s))}static isValidModuleVersion(t){const[i,s]=t.version.split(".")||[],[o,r]=T.currentModuleVersion.split(".")||[];return i===o&&s===r}static runVersionChecks(t){if(T.currentModuleVersion||(T.currentModuleVersion=t.version),t.version?T.isValidModuleVersion(t)||console.error(`AG Grid: You are using incompatible versions of AG Grid modules. Major and minor versions should always match across modules. '${t.moduleName}' is version ${t.version} but the other modules are version ${this.currentModuleVersion}. Please update all modules to the same version.`):console.error(`AG Grid: You are using incompatible versions of AG Grid modules. Major and minor versions should always match across modules. '${t.moduleName}' is incompatible. Please update all modules to the same version.`),t.validate){const i=t.validate();i.isValid||console.error(`AG Grid: ${i.message}`)}}static setModuleBased(t){T.moduleBased===void 0?T.moduleBased=t:T.moduleBased!==t&&doOnce(()=>{console.warn("AG Grid: You are mixing modules (i.e. @ag-grid-community/core) and packages (ag-grid-community) - you can only use one or the other of these mechanisms."),console.warn("Please see https://www.ag-grid.com/javascript-grid/packages-modules/ for more information.")},"ModulePackageCheck")}static __setIsBundled(){T.isBundled=!0}static __assertRegistered(t,i,s){var o;if(this.__isRegistered(t,s))return!0;const r=i+t;let n;if(T.isBundled)n=`AG Grid: unable to use ${i} as 'ag-grid-enterprise' has not been loaded. Check you are using the Enterprise bundle: <script src="https://cdn.jsdelivr.net/npm/ag-grid-enterprise@AG_GRID_VERSION/dist/ag-grid-enterprise.min.js"><\/script> For more info see: https://ag-grid.com/javascript-data-grid/getting-started/#getting-started-with-ag-grid-enterprise`;else if(T.moduleBased||T.moduleBased===void 0){let l=(o=Object.entries(ModuleNames).find(([a,d])=>d===t))==null?void 0:o[0];n=`AG Grid: unable to use ${i} as the ${l} is not registered${T.areGridScopedModules?` for gridId: ${s}`:""}. Check if you have registered the module: import { ModuleRegistry } from '@ag-grid-community/core'; import { ${l} } from '${t}'; ModuleRegistry.registerModules([ ${l} ]); For more info see: https://www.ag-grid.com/javascript-grid/modules/`}else n=`AG Grid: unable to use ${i} as package 'ag-grid-enterprise' has not been imported. Check that you have imported the package: import 'ag-grid-enterprise'; For more info see: https://www.ag-grid.com/javascript-grid/packages/`;return doOnce(()=>{console.warn(n)},r),!1}static __warnEnterpriseChartDisabled(t){const s="ag-charts-enterprise"+":"+t,r=`AG Grid: the '${t}' chart type is not supported in AG Charts Community as 'ag-grid-charts-enterprise' or '@ag-grid-enterprise/charts-enterprise' hasn't been loaded. See https://www.ag-grid.com/javascript-data-grid/integrated-charts-installation/ for more details.`;doOnce(()=>{console.warn(r)},s)}static __isRegistered(t,i){var s;return!!T.globalModulesMap[t]||!!((s=T.gridModulesMap[i])!=null&&s[t])}static __getRegisteredModules(t){return[...values(T.globalModulesMap),...values(T.gridModulesMap[t]||{})]}static __getGridRegisteredModules(t){var i;return values((i=T.gridModulesMap[t])!=null?i:{})||[]}static __isPackageBased(){return!T.moduleBased}};_ModuleRegistry.globalModulesMap={},_ModuleRegistry.gridModulesMap={},_ModuleRegistry.areGridScopedModules=!1;var ModuleRegistry=_ModuleRegistry,Context=class{constructor(e,t){if(this.beanWrappers={},this.destroyed=!1,!e||!e.beanClasses)return;this.contextParams=e,this.logger=t,this.logger.log(">> creating ag-Application Context"),this.createBeans();const i=this.getBeanInstances();this.wireBeans(i),this.logger.log(">> ag-Application Context ready - component is alive")}getBeanInstances(){return values(this.beanWrappers).map(e=>e.beanInstance)}createBean(e,t){if(!e)throw Error("Can't wire to bean since it is null");return this.wireBeans([e],t),e}wireBeans(e,t){this.autoWireBeans(e),this.methodWireBeans(e),this.callLifeCycleMethods(e,"preConstructMethods"),exists(t)&&e.forEach(t),this.callLifeCycleMethods(e,"postConstructMethods")}createBeans(){this.contextParams.beanClasses.forEach(this.createBeanWrapper.bind(this)),iterateObject(this.beanWrappers,(t,i)=>{let s;i.bean.__agBeanMetaData&&i.bean.__agBeanMetaData.autowireMethods&&i.bean.__agBeanMetaData.autowireMethods.agConstructor&&(s=i.bean.__agBeanMetaData.autowireMethods.agConstructor);const o=this.getBeansForParameters(s,i.bean.name),r=new(i.bean.bind.apply(i.bean,[null,...o]));i.beanInstance=r});const e=Object.keys(this.beanWrappers).join(", ");this.logger.log(`created beans: ${e}`)}createBeanWrapper(e){const t=e.__agBeanMetaData;if(!t){let s;e.prototype.constructor?s=getFunctionName(e.prototype.constructor):s=""+e,console.error(`Context item ${s} is not a bean`);return}const i={bean:e,beanInstance:null,beanName:t.beanName};this.beanWrappers[t.beanName]=i}autoWireBeans(e){e.forEach(t=>{this.forEachMetaDataInHierarchy(t,(i,s)=>{const o=i.agClassAttributes;o&&o.forEach(r=>{const n=this.lookupBeanInstance(s,r.beanName,r.optional);t[r.attributeName]=n})})})}methodWireBeans(e){e.forEach(t=>{this.forEachMetaDataInHierarchy(t,(i,s)=>{iterateObject(i.autowireMethods,(o,r)=>{if(o==="agConstructor")return;const n=this.getBeansForParameters(r,s);t[o].apply(t,n)})})})}forEachMetaDataInHierarchy(e,t){let i=Object.getPrototypeOf(e);for(;i!=null;){const s=i.constructor;if(s.hasOwnProperty("__agBeanMetaData")){const o=s.__agBeanMetaData,r=this.getBeanName(s);t(o,r)}i=Object.getPrototypeOf(i)}}getBeanName(e){if(e.__agBeanMetaData&&e.__agBeanMetaData.beanName)return e.__agBeanMetaData.beanName;const t=e.toString();return t.substring(9,t.indexOf("("))}getBeansForParameters(e,t){const i=[];return e&&iterateObject(e,(s,o)=>{const r=this.lookupBeanInstance(t,o);i[Number(s)]=r}),i}lookupBeanInstance(e,t,i=!1){if(this.destroyed)return this.logger.log(`AG Grid: bean reference ${t} is used after the grid is destroyed!`),null;if(t==="context")return this;if(this.contextParams.providedBeanInstances&&this.contextParams.providedBeanInstances.hasOwnProperty(t))return this.contextParams.providedBeanInstances[t];const s=this.beanWrappers[t];return s?s.beanInstance:(i||console.error(`AG Grid: unable to find bean reference ${t} while initialising ${e}`),null)}callLifeCycleMethods(e,t){e.forEach(i=>this.callLifeCycleMethodsOnBean(i,t))}callLifeCycleMethodsOnBean(e,t,i){const s={};this.forEachMetaDataInHierarchy(e,r=>{const n=r[t];n&&n.forEach(l=>{l!=i&&(s[l]=!0)})}),Object.keys(s).forEach(r=>e[r]())}getBean(e){return this.lookupBeanInstance("getBean",e,!0)}destroy(){if(this.destroyed)return;this.destroyed=!0,this.logger.log(">> Shutting down ag-Application Context");const e=this.getBeanInstances();this.destroyBeans(e),this.contextParams.providedBeanInstances=null,ModuleRegistry.__unRegisterGridModules(this.contextParams.gridId),this.logger.log(">> ag-Application Context shut down - component is dead")}destroyBean(e){e&&this.destroyBeans([e])}destroyBeans(e){return e?(e.forEach(t=>{this.callLifeCycleMethodsOnBean(t,"preDestroyMethods","destroy");const i=t;typeof i.destroy=="function"&&i.destroy()}),[]):[]}isDestroyed(){return this.destroyed}getGridId(){return this.contextParams.gridId}};function PreConstruct(e,t,i){const s=getOrCreateProps(e.constructor);s.preConstructMethods||(s.preConstructMethods=[]),s.preConstructMethods.push(t)}function PostConstruct(e,t,i){const s=getOrCreateProps(e.constructor);s.postConstructMethods||(s.postConstructMethods=[]),s.postConstructMethods.push(t)}function PreDestroy(e,t,i){const s=getOrCreateProps(e.constructor);s.preDestroyMethods||(s.preDestroyMethods=[]),s.preDestroyMethods.push(t)}function Bean(e){return t=>{const i=getOrCreateProps(t);i.beanName=e}}function Autowired(e){return(t,i,s)=>{autowiredFunc(t,e,!1,t,i,null)}}function Optional(e){return(t,i,s)=>{autowiredFunc(t,e,!0,t,i,null)}}function autowiredFunc(e,t,i,s,o,r){if(t===null){console.error("AG Grid: Autowired name should not be null");return}if(typeof r=="number"){console.error("AG Grid: Autowired should be on an attribute");return}const n=getOrCreateProps(e.constructor);n.agClassAttributes||(n.agClassAttributes=[]),n.agClassAttributes.push({attributeName:o,beanName:t,optional:i})}function Qualifier(e){return(t,i,s)=>{const o=typeof t=="function"?t:t.constructor;let r;if(typeof s=="number"){let n;i?(r=getOrCreateProps(o),n=i):(r=getOrCreateProps(o),n="agConstructor"),r.autowireMethods||(r.autowireMethods={}),r.autowireMethods[n]||(r.autowireMethods[n]={}),r.autowireMethods[n][s]=e}}}function getOrCreateProps(e){return e.hasOwnProperty("__agBeanMetaData")||(e.__agBeanMetaData={}),e.__agBeanMetaData}var EventService=class{constructor(){this.allSyncListeners=new Map,this.allAsyncListeners=new Map,this.globalSyncListeners=new Set,this.globalAsyncListeners=new Set,this.asyncFunctionsQueue=[],this.scheduled=!1,this.firedEvents={}}setBeans(e,t,i=null,s=null){if(this.frameworkOverrides=t,this.gridOptionsService=e,i){const o=e.useAsyncEvents();this.addGlobalListener(i,o)}s&&this.addGlobalListener(s,!1)}setFrameworkOverrides(e){this.frameworkOverrides=e}getListeners(e,t,i){const s=t?this.allAsyncListeners:this.allSyncListeners;let o=s.get(e);return!o&&i&&(o=new Set,s.set(e,o)),o}noRegisteredListenersExist(){return this.allSyncListeners.size===0&&this.allAsyncListeners.size===0&&this.globalSyncListeners.size===0&&this.globalAsyncListeners.size===0}addEventListener(e,t,i=!1){this.getListeners(e,i,!0).add(t)}removeEventListener(e,t,i=!1){const s=this.getListeners(e,i,!1);s&&(s.delete(t),s.size===0&&(i?this.allAsyncListeners:this.allSyncListeners).delete(e))}addGlobalListener(e,t=!1){(t?this.globalAsyncListeners:this.globalSyncListeners).add(e)}removeGlobalListener(e,t=!1){(t?this.globalAsyncListeners:this.globalSyncListeners).delete(e)}dispatchEvent(e){let t=e;this.gridOptionsService&&this.gridOptionsService.addGridCommonParams(t),this.dispatchToListeners(t,!0),this.dispatchToListeners(t,!1),this.firedEvents[t.type]=!0}dispatchEventOnce(e){this.firedEvents[e.type]||this.dispatchEvent(e)}dispatchToListeners(e,t){var i;const s=e.type;if(t&&"event"in e){const a=e.event;a instanceof Event&&(e.eventPath=a.composedPath())}const o=(a,d)=>a.forEach(h=>{if(!d.has(h))return;const u=this.frameworkOverrides?()=>this.frameworkOverrides.wrapIncoming(()=>h(e)):()=>h(e);t?this.dispatchAsync(u):u()}),r=(i=this.getListeners(s,t,!1))!=null?i:new Set,n=new Set(r);n.size>0&&o(n,r),new Set(t?this.globalAsyncListeners:this.globalSyncListeners).forEach(a=>{const d=this.frameworkOverrides?()=>this.frameworkOverrides.wrapIncoming(()=>a(s,e)):()=>a(s,e);t?this.dispatchAsync(d):d()})}dispatchAsync(e){this.asyncFunctionsQueue.push(e),this.scheduled||(this.frameworkOverrides.wrapIncoming(()=>{window.setTimeout(this.flushAsyncQueue.bind(this),0)}),this.scheduled=!0)}flushAsyncQueue(){this.scheduled=!1;const e=this.asyncFunctionsQueue.slice();this.asyncFunctionsQueue=[],e.forEach(t=>t())}};__decorateClass([__decorateParam(0,Qualifier("gridOptionsService")),__decorateParam(1,Qualifier("frameworkOverrides")),__decorateParam(2,Qualifier("globalEventListener")),__decorateParam(3,Qualifier("globalSyncEventListener"))],EventService.prototype,"setBeans",1),EventService=__decorateClass([Bean("eventService")],EventService);var FrameworkEventListenerService=class{constructor(e){this.frameworkOverrides=e,this.wrappedListeners=new Map,this.wrappedGlobalListeners=new Map}wrap(e){let t=e;return this.frameworkOverrides.shouldWrapOutgoing&&(t=i=>{this.frameworkOverrides.wrapOutgoing(()=>e(i))},this.wrappedListeners.set(e,t)),t}wrapGlobal(e){let t=e;return this.frameworkOverrides.shouldWrapOutgoing&&(t=(i,s)=>{this.frameworkOverrides.wrapOutgoing(()=>e(i,s))},this.wrappedGlobalListeners.set(e,t)),t}unwrap(e){var t;return(t=this.wrappedListeners.get(e))!=null?t:e}unwrapGlobal(e){var t;return(t=this.wrappedGlobalListeners.get(e))!=null?t:e}},COL_DEF_DEFAULTS={resizable:!0,sortable:!0},instanceIdSequence=0;function getNextColInstanceId(){return instanceIdSequence++}var _Column=class oe{constructor(t,i,s,o){this.instanceId=getNextColInstanceId(),this.autoHeaderHeight=null,this.moving=!1,this.menuVisible=!1,this.lastLeftPinned=!1,this.firstRightPinned=!1,this.filterActive=!1,this.eventService=new EventService,this.tooltipEnabled=!1,this.rowGroupActive=!1,this.pivotActive=!1,this.aggregationActive=!1,this.colDef=t,this.userProvidedColDef=i,this.colId=s,this.primary=o,this.setState(t)}getInstanceId(){return this.instanceId}setState(t){t.sort!==void 0?(t.sort==="asc"||t.sort==="desc")&&(this.sort=t.sort):(t.initialSort==="asc"||t.initialSort==="desc")&&(this.sort=t.initialSort);const i=t.sortIndex,s=t.initialSortIndex;i!==void 0?i!==null&&(this.sortIndex=i):s!==null&&(this.sortIndex=s);const o=t.hide,r=t.initialHide;o!==void 0?this.visible=!o:this.visible=!r,t.pinned!==void 0?this.setPinned(t.pinned):this.setPinned(t.initialPinned);const n=t.flex,l=t.initialFlex;n!==void 0?this.flex=n:l!==void 0&&(this.flex=l)}setColDef(t,i,s){this.colDef=t,this.userProvidedColDef=i,this.initMinAndMaxWidths(),this.initDotNotation(),this.initTooltip(),this.eventService.dispatchEvent(this.createColumnEvent("colDefChanged",s))}getUserProvidedColDef(){return this.userProvidedColDef}setParent(t){this.parent=t}getParent(){return this.parent}setOriginalParent(t){this.originalParent=t}getOriginalParent(){return this.originalParent}initialise(){this.initMinAndMaxWidths(),this.resetActualWidth("gridInitializing"),this.initDotNotation(),this.initTooltip()}initDotNotation(){const t=this.gridOptionsService.get("suppressFieldDotNotation");this.fieldContainsDots=exists(this.colDef.field)&&this.colDef.field.indexOf(".")>=0&&!t,this.tooltipFieldContainsDots=exists(this.colDef.tooltipField)&&this.colDef.tooltipField.indexOf(".")>=0&&!t}initMinAndMaxWidths(){const t=this.colDef;this.minWidth=this.columnUtils.calculateColMinWidth(t),this.maxWidth=this.columnUtils.calculateColMaxWidth(t)}initTooltip(){this.tooltipEnabled=exists(this.colDef.tooltipField)||exists(this.colDef.tooltipValueGetter)||exists(this.colDef.tooltipComponent)}resetActualWidth(t){const i=this.columnUtils.calculateColInitialWidth(this.colDef);this.setActualWidth(i,t,!0)}isEmptyGroup(){return!1}isRowGroupDisplayed(t){if(missing(this.colDef)||missing(this.colDef.showRowGroup))return!1;const i=this.colDef.showRowGroup===!0,s=this.colDef.showRowGroup===t;return i||s}isPrimary(){return this.primary}isFilterAllowed(){return!!this.colDef.filter}isFieldContainsDots(){return this.fieldContainsDots}isTooltipEnabled(){return this.tooltipEnabled}isTooltipFieldContainsDots(){return this.tooltipFieldContainsDots}addEventListener(t,i){var s,o;this.frameworkOverrides.shouldWrapOutgoing&&!this.frameworkEventListenerService&&(this.eventService.setFrameworkOverrides(this.frameworkOverrides),this.frameworkEventListenerService=new FrameworkEventListenerService(this.frameworkOverrides));const r=(o=(s=this.frameworkEventListenerService)==null?void 0:s.wrap(i))!=null?o:i;this.eventService.addEventListener(t,r)}removeEventListener(t,i){var s,o;const r=(o=(s=this.frameworkEventListenerService)==null?void 0:s.unwrap(i))!=null?o:i;this.eventService.removeEventListener(t,r)}createColumnFunctionCallbackParams(t){return this.gridOptionsService.addGridCommonParams({node:t,data:t.data,column:this,colDef:this.colDef})}isSuppressNavigable(t){if(typeof this.colDef.suppressNavigable=="boolean")return this.colDef.suppressNavigable;if(typeof this.colDef.suppressNavigable=="function"){const i=this.createColumnFunctionCallbackParams(t),s=this.colDef.suppressNavigable;return s(i)}return!1}isCellEditable(t){return t.group&&!this.gridOptionsService.get("enableGroupEdit")?!1:this.isColumnFunc(t,this.colDef.editable)}isSuppressFillHandle(){return!!this.colDef.suppressFillHandle}isAutoHeight(){return!!this.colDef.autoHeight}isAutoHeaderHeight(){return!!this.colDef.autoHeaderHeight}isRowDrag(t){return this.isColumnFunc(t,this.colDef.rowDrag)}isDndSource(t){return this.isColumnFunc(t,this.colDef.dndSource)}isCellCheckboxSelection(t){return this.isColumnFunc(t,this.colDef.checkboxSelection)}isSuppressPaste(t){return this.isColumnFunc(t,this.colDef?this.colDef.suppressPaste:null)}isResizable(){return!!this.getColDefValue("resizable")}getColDefValue(t){var i;return(i=this.colDef[t])!=null?i:COL_DEF_DEFAULTS[t]}isColumnFunc(t,i){if(typeof i=="boolean")return i;if(typeof i=="function"){const s=this.createColumnFunctionCallbackParams(t);return i(s)}return!1}setMoving(t,i){this.moving=t,this.eventService.dispatchEvent(this.createColumnEvent("movingChanged",i))}createColumnEvent(t,i){return this.gridOptionsService.addGridCommonParams({type:t,column:this,columns:[this],source:i})}isMoving(){return this.moving}getSort(){return this.sort}setSort(t,i){this.sort!==t&&(this.sort=t,this.eventService.dispatchEvent(this.createColumnEvent("sortChanged",i))),this.dispatchStateUpdatedEvent("sort")}setMenuVisible(t,i){this.menuVisible!==t&&(this.menuVisible=t,this.eventService.dispatchEvent(this.createColumnEvent("menuVisibleChanged",i)))}isMenuVisible(){return this.menuVisible}isSortable(){return!!this.getColDefValue("sortable")}isSortAscending(){return this.sort==="asc"}isSortDescending(){return this.sort==="desc"}isSortNone(){return missing(this.sort)}isSorting(){return exists(this.sort)}getSortIndex(){return this.sortIndex}setSortIndex(t){this.sortIndex=t,this.dispatchStateUpdatedEvent("sortIndex")}setAggFunc(t){this.aggFunc=t,this.dispatchStateUpdatedEvent("aggFunc")}getAggFunc(){return this.aggFunc}getLeft(){return this.left}getOldLeft(){return this.oldLeft}getRight(){return this.left+this.actualWidth}setLeft(t,i){this.oldLeft=this.left,this.left!==t&&(this.left=t,this.eventService.dispatchEvent(this.createColumnEvent("leftChanged",i)))}isFilterActive(){return this.filterActive}setFilterActive(t,i,s){this.filterActive!==t&&(this.filterActive=t,this.eventService.dispatchEvent(this.createColumnEvent("filterActiveChanged",i)));const o=this.createColumnEvent("filterChanged",i);s&&mergeDeep(o,s),this.eventService.dispatchEvent(o)}isHovered(){return this.columnHoverService.isHovered(this)}setPinned(t){t===!0||t==="left"?this.pinned="left":t==="right"?this.pinned="right":this.pinned=null,this.dispatchStateUpdatedEvent("pinned")}setFirstRightPinned(t,i){this.firstRightPinned!==t&&(this.firstRightPinned=t,this.eventService.dispatchEvent(this.createColumnEvent("firstRightPinnedChanged",i)))}setLastLeftPinned(t,i){this.lastLeftPinned!==t&&(this.lastLeftPinned=t,this.eventService.dispatchEvent(this.createColumnEvent("lastLeftPinnedChanged",i)))}isFirstRightPinned(){return this.firstRightPinned}isLastLeftPinned(){return this.lastLeftPinned}isPinned(){return this.pinned==="left"||this.pinned==="right"}isPinnedLeft(){return this.pinned==="left"}isPinnedRight(){return this.pinned==="right"}getPinned(){return this.pinned}setVisible(t,i){const s=t===!0;this.visible!==s&&(this.visible=s,this.eventService.dispatchEvent(this.createColumnEvent("visibleChanged",i))),this.dispatchStateUpdatedEvent("hide")}isVisible(){return this.visible}isSpanHeaderHeight(){const t=this.getColDef();return!t.suppressSpanHeaderHeight&&!t.autoHeaderHeight}getColumnGroupPaddingInfo(){let t=this.getParent();if(!t||!t.isPadding())return{numberOfParents:0,isSpanningTotal:!1};const i=t.getPaddingLevel()+1;let s=!0;for(;t;){if(!t.isPadding()){s=!1;break}t=t.getParent()}return{numberOfParents:i,isSpanningTotal:s}}getColDef(){return this.colDef}getColumnGroupShow(){return this.colDef.columnGroupShow}getColId(){return this.colId}getId(){return this.colId}getUniqueId(){return this.colId}getDefinition(){return this.colDef}getActualWidth(){return this.actualWidth}getAutoHeaderHeight(){return this.autoHeaderHeight}setAutoHeaderHeight(t){const i=t!==this.autoHeaderHeight;return this.autoHeaderHeight=t,i}createBaseColDefParams(t){return this.gridOptionsService.addGridCommonParams({node:t,data:t.data,colDef:this.colDef,column:this})}getColSpan(t){if(missing(this.colDef.colSpan))return 1;const i=this.createBaseColDefParams(t),s=this.colDef.colSpan(i);return Math.max(s,1)}getRowSpan(t){if(missing(this.colDef.rowSpan))return 1;const i=this.createBaseColDefParams(t),s=this.colDef.rowSpan(i);return Math.max(s,1)}setActualWidth(t,i,s=!1){this.minWidth!=null&&(t=Math.max(t,this.minWidth)),this.maxWidth!=null&&(t=Math.min(t,this.maxWidth)),this.actualWidth!==t&&(this.actualWidth=t,this.flex&&i!=="flex"&&i!=="gridInitializing"&&(this.flex=null),s||this.fireColumnWidthChangedEvent(i)),this.dispatchStateUpdatedEvent("width")}fireColumnWidthChangedEvent(t){this.eventService.dispatchEvent(this.createColumnEvent("widthChanged",t))}isGreaterThanMax(t){return this.maxWidth!=null?t>this.maxWidth:!1}getMinWidth(){return this.minWidth}getMaxWidth(){return this.maxWidth}getFlex(){return this.flex||0}setFlex(t){this.flex!==t&&(this.flex=t),this.dispatchStateUpdatedEvent("flex")}setMinimum(t){exists(this.minWidth)&&this.setActualWidth(this.minWidth,t)}setRowGroupActive(t,i){this.rowGroupActive!==t&&(this.rowGroupActive=t,this.eventService.dispatchEvent(this.createColumnEvent("columnRowGroupChanged",i))),this.dispatchStateUpdatedEvent("rowGroup")}isRowGroupActive(){return this.rowGroupActive}setPivotActive(t,i){this.pivotActive!==t&&(this.pivotActive=t,this.eventService.dispatchEvent(this.createColumnEvent("columnPivotChanged",i))),this.dispatchStateUpdatedEvent("pivot")}isPivotActive(){return this.pivotActive}isAnyFunctionActive(){return this.isPivotActive()||this.isRowGroupActive()||this.isValueActive()}isAnyFunctionAllowed(){return this.isAllowPivot()||this.isAllowRowGroup()||this.isAllowValue()}setValueActive(t,i){this.aggregationActive!==t&&(this.aggregationActive=t,this.eventService.dispatchEvent(this.createColumnEvent("columnValueChanged",i)))}isValueActive(){return this.aggregationActive}isAllowPivot(){return this.colDef.enablePivot===!0}isAllowValue(){return this.colDef.enableValue===!0}isAllowRowGroup(){return this.colDef.enableRowGroup===!0}getMenuTabs(t){warnOnce("As of v31.1, 'getMenuTabs' is deprecated. Use 'getColDef().menuTabs ?? defaultValues' instead.");let i=this.getColDef().menuTabs;return i==null&&(i=t),i}dispatchStateUpdatedEvent(t){this.eventService.dispatchEvent({type:oe.EVENT_STATE_UPDATED,key:t})}};_Column.EVENT_MOVING_CHANGED="movingChanged",_Column.EVENT_LEFT_CHANGED="leftChanged",_Column.EVENT_WIDTH_CHANGED="widthChanged",_Column.EVENT_LAST_LEFT_PINNED_CHANGED="lastLeftPinnedChanged",_Column.EVENT_FIRST_RIGHT_PINNED_CHANGED="firstRightPinnedChanged",_Column.EVENT_VISIBLE_CHANGED="visibleChanged",_Column.EVENT_FILTER_CHANGED="filterChanged",_Column.EVENT_FILTER_ACTIVE_CHANGED="filterActiveChanged",_Column.EVENT_SORT_CHANGED="sortChanged",_Column.EVENT_COL_DEF_CHANGED="colDefChanged",_Column.EVENT_MENU_VISIBLE_CHANGED="menuVisibleChanged",_Column.EVENT_ROW_GROUP_CHANGED="columnRowGroupChanged",_Column.EVENT_PIVOT_CHANGED="columnPivotChanged",_Column.EVENT_VALUE_CHANGED="columnValueChanged",_Column.EVENT_STATE_UPDATED="columnStateUpdated",__decorateClass([Autowired("gridOptionsService")],_Column.prototype,"gridOptionsService",2),__decorateClass([Autowired("columnUtils")],_Column.prototype,"columnUtils",2),__decorateClass([Autowired("columnHoverService")],_Column.prototype,"columnHoverService",2),__decorateClass([Autowired("frameworkOverrides")],_Column.prototype,"frameworkOverrides",2),__decorateClass([PostConstruct],_Column.prototype,"initialise",1);var Column=_Column,_ProvidedColumnGroup=class W{constructor(t,i,s,o){this.localEventService=new EventService,this.expandable=!1,this.instanceId=getNextColInstanceId(),this.expandableListenerRemoveCallback=null,this.colGroupDef=t,this.groupId=i,this.expanded=!!t&&!!t.openByDefault,this.padding=s,this.level=o}destroy(){this.expandableListenerRemoveCallback&&this.reset(null,void 0)}reset(t,i){this.colGroupDef=t,this.level=i,this.originalParent=null,this.expandableListenerRemoveCallback&&this.expandableListenerRemoveCallback(),this.children=void 0,this.expandable=void 0}getInstanceId(){return this.instanceId}setOriginalParent(t){this.originalParent=t}getOriginalParent(){return this.originalParent}getLevel(){return this.level}isVisible(){return this.children?this.children.some(t=>t.isVisible()):!1}isPadding(){return this.padding}setExpanded(t){this.expanded=t===void 0?!1:t;const i={type:W.EVENT_EXPANDED_CHANGED};this.localEventService.dispatchEvent(i)}isExpandable(){return this.expandable}isExpanded(){return this.expanded}getGroupId(){return this.groupId}getId(){return this.getGroupId()}setChildren(t){this.children=t}getChildren(){return this.children}getColGroupDef(){return this.colGroupDef}getLeafColumns(){const t=[];return this.addLeafColumns(t),t}addLeafColumns(t){this.children&&this.children.forEach(i=>{i instanceof Column?t.push(i):i instanceof W&&i.addLeafColumns(t)})}getColumnGroupShow(){const t=this.colGroupDef;if(t)return t.columnGroupShow}setupExpandable(){this.setExpandable(),this.expandableListenerRemoveCallback&&this.expandableListenerRemoveCallback();const t=this.onColumnVisibilityChanged.bind(this);this.getLeafColumns().forEach(i=>i.addEventListener("visibleChanged",t)),this.expandableListenerRemoveCallback=()=>{this.getLeafColumns().forEach(i=>i.removeEventListener("visibleChanged",t)),this.expandableListenerRemoveCallback=null}}setExpandable(){if(this.isPadding())return;let t=!1,i=!1,s=!1;const o=this.findChildrenRemovingPadding();for(let n=0,l=o.length;n<l;n++){const a=o[n];if(!a.isVisible())continue;const d=a.getColumnGroupShow();d==="open"?(t=!0,s=!0):d==="closed"?(i=!0,s=!0):(t=!0,i=!0)}const r=t&&i&&s;if(this.expandable!==r){this.expandable=r;const n={type:W.EVENT_EXPANDABLE_CHANGED};this.localEventService.dispatchEvent(n)}}findChildrenRemovingPadding(){const t=[],i=s=>{s.forEach(o=>{o instanceof W&&o.isPadding()?i(o.children):t.push(o)})};return i(this.children),t}onColumnVisibilityChanged(){this.setExpandable()}addEventListener(t,i){this.localEventService.addEventListener(t,i)}removeEventListener(t,i){this.localEventService.removeEventListener(t,i)}};_ProvidedColumnGroup.EVENT_EXPANDED_CHANGED="expandedChanged",_ProvidedColumnGroup.EVENT_EXPANDABLE_CHANGED="expandableChanged",__decorateClass([PreDestroy],_ProvidedColumnGroup.prototype,"destroy",1);var ProvidedColumnGroup=_ProvidedColumnGroup,DefaultColumnTypes={numericColumn:{headerClass:"ag-right-aligned-header",cellClass:"ag-right-aligned-cell"},rightAligned:{headerClass:"ag-right-aligned-header",cellClass:"ag-right-aligned-cell"}},event_exports={};__export(event_exports,{addSafePassiveEventListener:()=>addSafePassiveEventListener,createEventPath:()=>createEventPath,getCtrlForEventTarget:()=>getCtrlForEventTarget,getEventPath:()=>getEventPath,isElementInEventPath:()=>isElementInEventPath,isEventSupported:()=>isEventSupported,isStopPropagationForAgGrid:()=>isStopPropagationForAgGrid,stopPropagationForAgGrid:()=>stopPropagationForAgGrid});var array_exports={};__export(array_exports,{areEqual:()=>areEqual,existsAndNotEmpty:()=>existsAndNotEmpty,flatten:()=>flatten,forEachReverse:()=>forEachReverse,includes:()=>includes,insertArrayIntoArray:()=>insertArrayIntoArray,insertIntoArray:()=>insertIntoArray,last:()=>last,moveInArray:()=>moveInArray,pushAll:()=>pushAll,removeAllFromArray:()=>removeAllFromArray,removeAllFromUnorderedArray:()=>removeAllFromUnorderedArray,removeFromArray:()=>removeFromArray,removeFromUnorderedArray:()=>removeFromUnorderedArray,removeRepeatsFromArray:()=>removeRepeatsFromArray,shallowCompare:()=>shallowCompare,sortNumerically:()=>sortNumerically,toStrings:()=>toStrings});function existsAndNotEmpty(e){return e!=null&&e.length>0}function last(e){if(!(!e||!e.length))return e[e.length-1]}function areEqual(e,t,i){return e==null&&t==null?!0:e!=null&&t!=null&&e.length===t.length&&e.every((s,o)=>i?i(s,t[o]):t[o]===s)}function shallowCompare(e,t){return areEqual(e,t)}function sortNumerically(e){return e.sort((t,i)=>t-i)}function removeRepeatsFromArray(e,t){if(e)for(let i=e.length-2;i>=0;i--){const s=e[i]===t,o=e[i+1]===t;s&&o&&e.splice(i+1,1)}}function removeFromUnorderedArray(e,t){const i=e.indexOf(t);i>=0&&(e[i]=e[e.length-1],e.pop())}function removeFromArray(e,t){const i=e.indexOf(t);i>=0&&e.splice(i,1)}function removeAllFromUnorderedArray(e,t){for(let i=0;i<t.length;i++)removeFromUnorderedArray(e,t[i])}function removeAllFromArray(e,t){for(let i=0;i<t.length;i++)removeFromArray(e,t[i])}function insertIntoArray(e,t,i){e.splice(i,0,t)}function insertArrayIntoArray(e,t,i){if(!(e==null||t==null))for(let s=t.length-1;s>=0;s--){const o=t[s];insertIntoArray(e,o,i)}}function moveInArray(e,t,i){removeAllFromArray(e,t),t.slice().reverse().forEach(s=>insertIntoArray(e,s,i))}function includes(e,t){return e.indexOf(t)>-1}function flatten(e){return[].concat.apply([],e)}function pushAll(e,t){t==null||e==null||t.forEach(i=>e.push(i))}function toStrings(e){return e.map(toStringOrNull)}function forEachReverse(e,t){if(e!=null)for(let i=e.length-1;i>=0;i--)t(e[i],i)}var AG_GRID_STOP_PROPAGATION="__ag_Grid_Stop_Propagation",PASSIVE_EVENTS=["touchstart","touchend","touchmove","touchcancel","scroll"],supports={};function stopPropagationForAgGrid(e){e[AG_GRID_STOP_PROPAGATION]=!0}function isStopPropagationForAgGrid(e){return e[AG_GRID_STOP_PROPAGATION]===!0}var isEventSupported=(()=>{const e={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};return i=>{if(typeof supports[i]=="boolean")return supports[i];const s=document.createElement(e[i]||"div");return i="on"+i,supports[i]=i in s}})();function getCtrlForEventTarget(e,t,i){let s=t;for(;s;){const o=e.getDomData(s,i);if(o)return o;s=s.parentElement}return null}function isElementInEventPath(e,t){return!t||!e?!1:getEventPath(t).indexOf(e)>=0}function createEventPath(e){const t=[];let i=e.target;for(;i;)t.push(i),i=i.parentElement;return t}function getEventPath(e){const t=e;return t.path?t.path:t.composedPath?t.composedPath():createEventPath(t)}function addSafePassiveEventListener(e,t,i,s){const r=includes(PASSIVE_EVENTS,i)?{passive:!0}:void 0;e&&e.addEventListener&&e.addEventListener(t,i,s,r)}var _BeanStub=class re{constructor(){this.destroyFunctions=[],this.destroyed=!1,this.__v_skip=!0,this.lastChangeSetIdLookup={},this.propertyListenerId=0,this.isAlive=()=>!this.destroyed}getFrameworkOverrides(){return this.frameworkOverrides}getContext(){return this.context}destroy(){this.destroyFunctions.forEach(t=>t()),this.destroyFunctions.length=0,this.destroyed=!0,this.dispatchEvent({type:re.EVENT_DESTROYED})}addEventListener(t,i){this.localEventService||(this.localEventService=new EventService),this.localEventService.addEventListener(t,i)}removeEventListener(t,i){this.localEventService&&this.localEventService.removeEventListener(t,i)}dispatchEvent(t){this.localEventService&&this.localEventService.dispatchEvent(t)}addManagedListener(t,i,s){if(this.destroyed)return;t instanceof HTMLElement?addSafePassiveEventListener(this.getFrameworkOverrides(),t,i,s):t.addEventListener(i,s);const o=()=>(t.removeEventListener(i,s),this.destroyFunctions=this.destroyFunctions.filter(r=>r!==o),null);return this.destroyFunctions.push(o),o}setupGridOptionListener(t,i){this.gridOptionsService.addEventListener(t,i);const s=()=>(this.gridOptionsService.removeEventListener(t,i),this.destroyFunctions=this.destroyFunctions.filter(o=>o!==s),null);return this.destroyFunctions.push(s),s}addManagedPropertyListener(t,i){return this.destroyed?()=>null:this.setupGridOptionListener(t,i)}addManagedPropertyListeners(t,i){if(this.destroyed)return;const s=t.join("-")+this.propertyListenerId++,o=r=>{if(r.changeSet){if(r.changeSet&&r.changeSet.id===this.lastChangeSetIdLookup[s])return;this.lastChangeSetIdLookup[s]=r.changeSet.id}const n={type:"gridPropertyChanged",changeSet:r.changeSet,source:r.source};i(n)};t.forEach(r=>this.setupGridOptionListener(r,o))}addDestroyFunc(t){this.isAlive()?this.destroyFunctions.push(t):t()}createManagedBean(t,i){const s=this.createBean(t,i);return this.addDestroyFunc(this.destroyBean.bind(this,t,i)),s}createBean(t,i,s){return(i||this.getContext()).createBean(t,s)}destroyBean(t,i){return(i||this.getContext()).destroyBean(t)}destroyBeans(t,i){return t&&t.forEach(s=>this.destroyBean(s,i)),[]}};_BeanStub.EVENT_DESTROYED="destroyed",__decorateClass([Autowired("frameworkOverrides")],_BeanStub.prototype,"frameworkOverrides",2),__decorateClass([Autowired("context")],_BeanStub.prototype,"context",2),__decorateClass([Autowired("eventService")],_BeanStub.prototype,"eventService",2),__decorateClass([Autowired("gridOptionsService")],_BeanStub.prototype,"gridOptionsService",2),__decorateClass([Autowired("localeService")],_BeanStub.prototype,"localeService",2),__decorateClass([Autowired("environment")],_BeanStub.prototype,"environment",2),__decorateClass([PreDestroy],_BeanStub.prototype,"destroy",1);var BeanStub=_BeanStub,ColumnFactory=class extends BeanStub{setBeans(e){this.logger=e.create("ColumnFactory")}createColumnTree(e,t,i,s){const o=new ColumnKeyCreator,{existingCols:r,existingGroups:n,existingColKeys:l}=this.extractExistingTreeData(i);o.addExisting