gridOptionsWrapper.d.ts 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308
  1. import { RowNode } from './entities/rowNode';
  2. import { ChartRef, FillOperationParams, GetChartToolbarItems, GetContextMenuItems, GetMainMenuItems, GetRowNodeIdFunc, GridOptions, IsRowMaster, IsRowSelectable, NavigateToNextCellParams, NodeChildDetails, PaginationNumberFormatterParams, PostProcessPopupParams, ProcessChartOptionsParams, ProcessDataFromClipboardParams, TabToNextCellParams } from './entities/gridOptions';
  3. import { GridApi } from './gridApi';
  4. import { ColDef, ColGroupDef, IAggFunc, SuppressKeyboardEventParams } from './entities/colDef';
  5. import { ColumnApi } from './columnController/columnApi';
  6. import { IViewportDatasource } from './interfaces/iViewportDatasource';
  7. import { IDatasource } from './interfaces/iDatasource';
  8. import { CellPosition } from './entities/cellPosition';
  9. import { IServerSideDatasource } from './interfaces/iServerSideDatasource';
  10. import { BaseExportParams, ProcessCellForExportParams, ProcessHeaderForExportParams } from './interfaces/exportParams';
  11. import { AgEvent } from './events';
  12. import { SideBarDef } from './entities/sideBar';
  13. import { ChartOptions } from './interfaces/iChartOptions';
  14. export interface PropertyChangedEvent extends AgEvent {
  15. currentValue: any;
  16. previousValue: any;
  17. }
  18. export declare class GridOptionsWrapper {
  19. private static MIN_COL_WIDTH;
  20. static PROP_HEADER_HEIGHT: string;
  21. static PROP_GROUP_REMOVE_SINGLE_CHILDREN: string;
  22. static PROP_GROUP_REMOVE_LOWEST_SINGLE_CHILDREN: string;
  23. static PROP_PIVOT_HEADER_HEIGHT: string;
  24. static PROP_SUPPRESS_CLIPBOARD_PASTE: string;
  25. static PROP_GROUP_HEADER_HEIGHT: string;
  26. static PROP_PIVOT_GROUP_HEADER_HEIGHT: string;
  27. static PROP_FLOATING_FILTERS_HEIGHT: string;
  28. static PROP_SUPPRESS_ROW_CLICK_SELECTION: string;
  29. static PROP_SUPPRESS_ROW_DRAG: string;
  30. static PROP_SUPPRESS_MOVE_WHEN_ROW_DRAG: string;
  31. static PROP_POPUP_PARENT: string;
  32. static PROP_DOM_LAYOUT: string;
  33. private readonly gridOptions;
  34. private readonly columnController;
  35. private readonly eventService;
  36. private readonly environment;
  37. private readonly autoHeightCalculator;
  38. private propertyEventService;
  39. private domDataKey;
  40. private layoutElements;
  41. private scrollWidth;
  42. private updateLayoutClassesListener;
  43. private agWire;
  44. private destroy;
  45. init(): void;
  46. private checkColumnDefProperties;
  47. private checkGridOptionsProperties;
  48. private checkProperties;
  49. getDomData(element: Node, key: string): any;
  50. setDomData(element: Element, key: string, value: any): any;
  51. isRowSelection(): boolean;
  52. isRowDeselection(): boolean;
  53. isRowSelectionMulti(): boolean;
  54. isRowMultiSelectWithClick(): boolean;
  55. getContext(): any;
  56. isPivotMode(): boolean;
  57. isPivotTotals(): boolean;
  58. getPivotColumnGroupTotals(): string;
  59. getPivotRowTotals(): string;
  60. isRowModelInfinite(): boolean;
  61. isRowModelViewport(): boolean;
  62. isRowModelServerSide(): boolean;
  63. isRowModelDefault(): boolean;
  64. isFullRowEdit(): boolean;
  65. isSuppressFocusAfterRefresh(): boolean;
  66. isSuppressBrowserResizeObserver(): boolean;
  67. isSuppressMaintainUnsortedOrder(): boolean;
  68. isSuppressClearOnFillReduction(): boolean;
  69. isShowToolPanel(): boolean;
  70. getSideBar(): SideBarDef;
  71. isSuppressTouch(): boolean;
  72. isSuppressRowTransform(): boolean;
  73. isSuppressSetColumnStateEvents(): boolean;
  74. isAllowDragFromColumnsToolPanel(): boolean;
  75. useAsyncEvents(): boolean;
  76. isEnableCellChangeFlash(): boolean;
  77. getCellFlashDelay(): number;
  78. getCellFadeDelay(): number;
  79. isGroupSelectsChildren(): boolean;
  80. isSuppressRowHoverHighlight(): boolean;
  81. isGroupSelectsFiltered(): boolean;
  82. isGroupHideOpenParents(): boolean;
  83. isGroupMultiAutoColumn(): boolean;
  84. isGroupRemoveSingleChildren(): boolean;
  85. isGroupRemoveLowestSingleChildren(): boolean;
  86. isGroupIncludeFooter(): boolean;
  87. isGroupIncludeTotalFooter(): boolean;
  88. isGroupSuppressBlankHeader(): boolean;
  89. isSuppressRowClickSelection(): boolean;
  90. isSuppressCellSelection(): boolean;
  91. isSuppressMultiSort(): boolean;
  92. isMultiSortKeyCtrl(): boolean;
  93. isGroupSuppressAutoColumn(): boolean;
  94. isPivotSuppressAutoColumn(): boolean;
  95. isSuppressDragLeaveHidesColumns(): boolean;
  96. isSuppressScrollOnNewData(): boolean;
  97. isRowDragManaged(): boolean;
  98. isSuppressRowDrag(): boolean;
  99. isSuppressMoveWhenRowDragging(): boolean;
  100. isEnableMultiRowDragging(): boolean;
  101. getDomLayout(): string;
  102. isSuppressHorizontalScroll(): boolean;
  103. isSuppressMaxRenderedRowRestriction(): boolean;
  104. isExcludeChildrenWhenTreeDataFiltering(): boolean;
  105. isAlwaysShowVerticalScroll(): boolean;
  106. isSuppressLoadingOverlay(): boolean;
  107. isSuppressNoRowsOverlay(): boolean;
  108. isSuppressFieldDotNotation(): boolean;
  109. getPinnedTopRowData(): any[] | undefined;
  110. getPinnedBottomRowData(): any[] | undefined;
  111. isFunctionsPassive(): boolean;
  112. isSuppressTabbing(): boolean;
  113. isSuppressChangeDetection(): boolean;
  114. isSuppressAnimationFrame(): boolean;
  115. getQuickFilterText(): string | undefined;
  116. isCacheQuickFilter(): boolean;
  117. isUnSortIcon(): boolean;
  118. isSuppressMenuHide(): boolean;
  119. isEnterMovesDownAfterEdit(): boolean;
  120. isEnterMovesDown(): boolean;
  121. isUndoRedoCellEditing(): boolean;
  122. getUndoRedoCellEditingLimit(): number;
  123. getRowStyle(): any;
  124. getRowClass(): string | string[];
  125. getRowStyleFunc(): Function;
  126. getRowClassFunc(): (params: any) => string | string[];
  127. rowClassRules(): {
  128. [cssClassName: string]: string | ((params: any) => boolean);
  129. };
  130. getCreateChartContainerFunc(): (params: ChartRef) => void | undefined;
  131. getPopupParent(): HTMLElement;
  132. getBlockLoadDebounceMillis(): number;
  133. getPostProcessPopupFunc(): ((params: PostProcessPopupParams) => void) | undefined;
  134. getDoesDataFlowerFunc(): ((data: any) => boolean) | undefined;
  135. getPaginationNumberFormatterFunc(): ((params: PaginationNumberFormatterParams) => string) | undefined;
  136. getChildCountFunc(): (dataItem: any) => number;
  137. getDefaultGroupSortComparator(): (nodeA: RowNode, nodeB: RowNode) => number;
  138. getIsFullWidthCellFunc(): ((rowNode: RowNode) => boolean) | undefined;
  139. getFullWidthCellRendererParams(): any;
  140. isEmbedFullWidthRows(): boolean;
  141. getSuppressKeyboardEventFunc(): (params: SuppressKeyboardEventParams) => boolean;
  142. getBusinessKeyForNodeFunc(): (node: RowNode) => string;
  143. getApi(): GridApi | undefined | null;
  144. getColumnApi(): ColumnApi | undefined | null;
  145. isImmutableData(): boolean;
  146. isImmutableColumns(): boolean;
  147. isEnsureDomOrder(): boolean;
  148. isEnableCharts(): boolean;
  149. getColResizeDefault(): string;
  150. isSingleClickEdit(): boolean;
  151. isSuppressClickEdit(): boolean;
  152. isStopEditingWhenGridLosesFocus(): boolean;
  153. getGroupDefaultExpanded(): number | undefined;
  154. getMaxConcurrentDatasourceRequests(): number;
  155. getMaxBlocksInCache(): number | undefined;
  156. getCacheOverflowSize(): number | undefined;
  157. getPaginationPageSize(): number | undefined;
  158. isPaginateChildRows(): boolean;
  159. getCacheBlockSize(): number | undefined;
  160. getInfiniteInitialRowCount(): number | undefined;
  161. isPurgeClosedRowNodes(): boolean;
  162. isSuppressPaginationPanel(): boolean;
  163. getRowData(): any[] | undefined;
  164. isGroupUseEntireRow(pivotMode: boolean): boolean;
  165. isEnableRtl(): boolean;
  166. getAutoGroupColumnDef(): ColDef | undefined;
  167. isGroupSuppressRow(): boolean;
  168. getRowGroupPanelShow(): string;
  169. getPivotPanelShow(): string;
  170. isAngularCompileRows(): boolean;
  171. isAngularCompileFilters(): boolean;
  172. isAngularCompileHeaders(): boolean;
  173. isDebug(): boolean;
  174. getColumnDefs(): (ColGroupDef | ColDef)[];
  175. getColumnTypes(): {
  176. [key: string]: ColDef;
  177. } | undefined;
  178. getDatasource(): IDatasource | undefined;
  179. getViewportDatasource(): IViewportDatasource;
  180. getServerSideDatasource(): IServerSideDatasource | undefined;
  181. isAccentedSort(): boolean;
  182. isEnableBrowserTooltips(): boolean;
  183. isEnableCellExpressions(): boolean;
  184. isEnableGroupEdit(): boolean;
  185. isSuppressMiddleClickScrolls(): boolean;
  186. isPreventDefaultOnContextMenu(): boolean;
  187. isSuppressPreventDefaultOnMouseWheel(): boolean;
  188. isSuppressColumnVirtualisation(): boolean;
  189. isSuppressContextMenu(): boolean;
  190. isAllowContextMenuWithControlKey(): boolean;
  191. isSuppressCopyRowsToClipboard(): boolean;
  192. isCopyHeadersToClipboard(): boolean;
  193. isSuppressClipboardPaste(): boolean;
  194. isSuppressLastEmptyLineOnPaste(): boolean;
  195. isPagination(): boolean;
  196. isSuppressEnterpriseResetOnNewColumns(): boolean;
  197. getProcessDataFromClipboardFunc(): ((params: ProcessDataFromClipboardParams) => string[][]) | undefined;
  198. getAsyncTransactionWaitMillis(): number | undefined;
  199. isSuppressMovableColumns(): boolean;
  200. isAnimateRows(): boolean;
  201. isSuppressColumnMoveAnimation(): boolean;
  202. isSuppressAggFuncInHeader(): boolean;
  203. isSuppressAggAtRootLevel(): boolean;
  204. isEnableRangeSelection(): boolean;
  205. isEnableRangeHandle(): boolean;
  206. isEnableFillHandle(): boolean;
  207. getFillOperation(): ((params: FillOperationParams) => any) | undefined;
  208. isSuppressMultiRangeSelection(): boolean;
  209. isPaginationAutoPageSize(): boolean;
  210. isRememberGroupStateWhenNewData(): boolean;
  211. getIcons(): any;
  212. getAggFuncs(): {
  213. [key: string]: IAggFunc;
  214. } | undefined;
  215. getSortingOrder(): (string | null)[] | undefined;
  216. getAlignedGrids(): GridOptions[] | undefined;
  217. isMasterDetail(): boolean;
  218. isKeepDetailRows(): boolean;
  219. getKeepDetailRowsCount(): number;
  220. getIsRowMasterFunc(): IsRowMaster | undefined;
  221. getIsRowSelectableFunc(): IsRowSelectable | undefined;
  222. getGroupRowRendererParams(): any;
  223. getOverlayLoadingTemplate(): string;
  224. getOverlayNoRowsTemplate(): string;
  225. isSuppressAutoSize(): boolean;
  226. isEnableCellTextSelection(): boolean;
  227. isSuppressParentsInRowNodes(): boolean;
  228. isFunctionsReadOnly(): boolean;
  229. isFloatingFilter(): boolean | undefined;
  230. isEnableCellTextSelect(): boolean;
  231. isEnableOldSetFilterModel(): boolean;
  232. getDefaultColDef(): ColDef | undefined;
  233. getDefaultColGroupDef(): ColGroupDef | undefined;
  234. getDefaultExportParams(): BaseExportParams | undefined;
  235. isSuppressCsvExport(): boolean;
  236. isAllowShowChangeAfterFilter(): boolean;
  237. isSuppressExcelExport(): boolean;
  238. isSuppressMakeColumnVisibleAfterUnGroup(): boolean;
  239. getNodeChildDetailsFunc(): ((dataItem: any) => NodeChildDetails) | undefined;
  240. getDataPathFunc(): ((dataItem: any) => string[]) | undefined;
  241. getIsServerSideGroupFunc(): ((dataItem: any) => boolean) | undefined;
  242. getServerSideGroupKeyFunc(): ((dataItem: any) => string) | undefined;
  243. getGroupRowAggNodesFunc(): (nodes: RowNode[]) => any;
  244. getContextMenuItemsFunc(): GetContextMenuItems | undefined;
  245. getMainMenuItemsFunc(): GetMainMenuItems | undefined;
  246. getChartToolbarItemsFunc(): GetChartToolbarItems | undefined;
  247. getRowNodeIdFunc(): GetRowNodeIdFunc | undefined;
  248. getNavigateToNextCellFunc(): ((params: NavigateToNextCellParams) => CellPosition) | undefined;
  249. getTabToNextCellFunc(): ((params: TabToNextCellParams) => CellPosition) | undefined;
  250. isTreeData(): boolean;
  251. isValueCache(): boolean;
  252. isValueCacheNeverExpires(): boolean;
  253. isDeltaSort(): boolean;
  254. isAggregateOnlyChangedColumns(): boolean;
  255. getProcessSecondaryColDefFunc(): ((colDef: ColDef) => void) | undefined;
  256. getProcessSecondaryColGroupDefFunc(): ((colGroupDef: ColGroupDef) => void) | undefined;
  257. getSendToClipboardFunc(): (params: any) => void;
  258. getProcessRowPostCreateFunc(): any;
  259. getProcessCellForClipboardFunc(): ((params: ProcessCellForExportParams) => any) | undefined;
  260. getProcessHeaderForClipboardFunc(): ((params: ProcessHeaderForExportParams) => any) | undefined;
  261. getProcessCellFromClipboardFunc(): ((params: ProcessCellForExportParams) => any) | undefined;
  262. getViewportRowModelPageSize(): number;
  263. getViewportRowModelBufferSize(): number;
  264. isServerSideSortingAlwaysResets(): boolean;
  265. getPostSortFunc(): ((rowNodes: RowNode[]) => void) | undefined;
  266. getProcessChartOptionsFunc(): (params: ProcessChartOptionsParams) => ChartOptions<any>;
  267. getClipboardDeliminator(): string;
  268. setProperty(key: string, value: any, force?: boolean): void;
  269. addLayoutElement(element: HTMLElement): void;
  270. private updateLayoutClasses;
  271. addEventListener(key: string, listener: Function): void;
  272. static checkEventDeprecation(eventName: string): void;
  273. removeEventListener(key: string, listener: Function): void;
  274. isSkipHeaderOnAutoSize(): boolean;
  275. getAutoSizePadding(): number;
  276. getHeaderHeight(): number;
  277. getFloatingFiltersHeight(): number;
  278. getGroupHeaderHeight(): number;
  279. getPivotHeaderHeight(): number;
  280. getPivotGroupHeaderHeight(): number;
  281. isExternalFilterPresent(): boolean;
  282. doesExternalFilterPass(node: RowNode): boolean;
  283. getTooltipShowDelay(): number;
  284. isTooltipMouseTrack(): boolean;
  285. getDocument(): Document;
  286. getMinColWidth(): number;
  287. getMaxColWidth(): number;
  288. getColWidth(): number;
  289. getRowBuffer(): number;
  290. getRowBufferInPixels(): number;
  291. getScrollbarWidth(): number;
  292. private checkForDeprecated;
  293. private checkForViolations;
  294. private treeDataViolations;
  295. getLocaleTextFunc(): (key: string, defaultValue: string) => string;
  296. globalEventHandler(eventName: string, event?: any): void;
  297. getRowHeightAsNumber(): number;
  298. getRowHeightForNode(rowNode: RowNode, allowEstimate?: boolean): {
  299. height: number;
  300. estimated: boolean;
  301. };
  302. isDynamicRowHeight(): boolean;
  303. getListItemHeight(): number;
  304. chartMenuPanelWidth(): number;
  305. private isNumeric;
  306. private getFromTheme;
  307. private getDefaultRowHeight;
  308. }