rowComp.d.ts 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  1. import { Beans } from "./beans";
  2. import { CellComp } from "./cellComp";
  3. import { RowNode } from "../entities/rowNode";
  4. import { Column } from "../entities/column";
  5. import { RowContainerComponent } from "./rowContainerComponent";
  6. import { Component } from "../widgets/component";
  7. import { IFrameworkOverrides } from "../interfaces/iFrameworkOverrides";
  8. export declare class RowComp extends Component {
  9. static DOM_DATA_KEY_RENDERED_ROW: string;
  10. private static FULL_WIDTH_CELL_RENDERER;
  11. private static GROUP_ROW_RENDERER;
  12. private static GROUP_ROW_RENDERER_COMP_NAME;
  13. private static LOADING_CELL_RENDERER;
  14. private static LOADING_CELL_RENDERER_COMP_NAME;
  15. private static DETAIL_CELL_RENDERER;
  16. private static DETAIL_CELL_RENDERER_COMP_NAME;
  17. private readonly rowNode;
  18. private readonly beans;
  19. private ePinnedLeftRow;
  20. private ePinnedRightRow;
  21. private eBodyRow;
  22. private eAllRowContainers;
  23. private eFullWidthRow;
  24. private eFullWidthRowBody;
  25. private eFullWidthRowLeft;
  26. private eFullWidthRowRight;
  27. private readonly bodyContainerComp;
  28. private readonly fullWidthContainerComp;
  29. private readonly pinnedLeftContainerComp;
  30. private readonly pinnedRightContainerComp;
  31. private fullWidthRowComponent;
  32. private fullWidthRowComponentBody;
  33. private fullWidthRowComponentLeft;
  34. private fullWidthRowComponentRight;
  35. private firstRowOnPage;
  36. private lastRowOnPage;
  37. private active;
  38. private fullWidthRow;
  39. private editingRow;
  40. private rowFocused;
  41. private rowContainerReadyCount;
  42. private refreshNeeded;
  43. private columnRefreshPending;
  44. private cellComps;
  45. private createSecondPassFuncs;
  46. private removeFirstPassFuncs;
  47. private removeSecondPassFuncs;
  48. private fadeRowIn;
  49. private slideRowIn;
  50. private readonly useAnimationFrameForCreate;
  51. private rowIsEven;
  52. private paginationPage;
  53. private parentScope;
  54. private scope;
  55. private initialised;
  56. private elementOrderChanged;
  57. private lastMouseDownOnDragger;
  58. private readonly printLayout;
  59. private readonly embedFullWidth;
  60. constructor(parentScope: any, bodyContainerComp: RowContainerComponent, pinnedLeftContainerComp: RowContainerComponent, pinnedRightContainerComp: RowContainerComponent, fullWidthContainerComp: RowContainerComponent, rowNode: RowNode, beans: Beans, animateIn: boolean, useAnimationFrameForCreate: boolean, printLayout: boolean, embedFullWidth: boolean);
  61. init(): void;
  62. private createTemplate;
  63. getCellForCol(column: Column): HTMLElement;
  64. afterFlush(): void;
  65. private executeProcessRowPostCreateFunc;
  66. private getInitialRowTopStyle;
  67. private getRowBusinessKey;
  68. private areAllContainersReady;
  69. private lazyCreateCells;
  70. private createRowContainer;
  71. private createChildScopeOrNull;
  72. private setupRowContainers;
  73. private setupNormalRowContainers;
  74. private createFullWidthRows;
  75. private setAnimateFlags;
  76. isEditing(): boolean;
  77. stopRowEditing(cancel: boolean): void;
  78. isFullWidth(): boolean;
  79. refreshFullWidth(): boolean;
  80. private addListeners;
  81. private addListenersForCellComps;
  82. private onRowNodeDataChanged;
  83. private onRowNodeCellChanged;
  84. private postProcessCss;
  85. private onRowNodeHighlightChanged;
  86. private onRowNodeDraggingChanged;
  87. private postProcessRowDragging;
  88. private onExpandedChanged;
  89. private onDisplayedColumnsChanged;
  90. private destroyFullWidthComponents;
  91. private getContainerForCell;
  92. private onVirtualColumnsChanged;
  93. private onColumnResized;
  94. private refreshCells;
  95. private refreshCellsInAnimationFrame;
  96. private onColumnMoved;
  97. private removeRenderedCells;
  98. private isCellEligibleToBeRemoved;
  99. private ensureCellInCorrectContainer;
  100. private isCellInWrongRow;
  101. private insertCellsIntoContainer;
  102. private addDomData;
  103. private createNewCell;
  104. onMouseEvent(eventName: string, mouseEvent: MouseEvent): void;
  105. private createRowEvent;
  106. private createRowEventWithSource;
  107. private onRowDblClick;
  108. private onRowMouseDown;
  109. onRowClick(mouseEvent: MouseEvent): void;
  110. private createFullWidthRowContainer;
  111. private angular1Compile;
  112. private createFullWidthParams;
  113. private getInitialRowClasses;
  114. private isFirstRowOnPage;
  115. private isLastRowOnPage;
  116. private onModelUpdated;
  117. private preProcessRowClassRules;
  118. private processRowClassRules;
  119. stopEditing(cancel?: boolean): void;
  120. private setEditingRow;
  121. startRowEditing(keyPress?: number | null, charPress?: string | null, sourceRenderedCell?: CellComp | null): void;
  122. forEachCellComp(callback: (renderedCell: CellComp) => void): void;
  123. private postProcessClassesFromGridOptions;
  124. private postProcessRowClassRules;
  125. private processClassesFromGridOptions;
  126. private preProcessStylesFromGridOptions;
  127. private postProcessStylesFromGridOptions;
  128. private processStylesFromGridOptions;
  129. private createCells;
  130. private onRowSelected;
  131. private callAfterRowAttachedOnCells;
  132. private afterRowAttached;
  133. private addHoverFunctionality;
  134. private roundRowTopToBounds;
  135. protected getFrameworkOverrides(): IFrameworkOverrides;
  136. private onRowHeightChanged;
  137. addEventListener(eventType: string, listener: Function): void;
  138. removeEventListener(eventType: string, listener: Function): void;
  139. destroy(animate?: boolean): void;
  140. private destroyContainingCells;
  141. getAndClearDelayedDestroyFunctions(): Function[];
  142. private onCellFocusChanged;
  143. private onPaginationChanged;
  144. private onTopChanged;
  145. private applyPaginationOffset;
  146. private setRowTop;
  147. getAndClearNextVMTurnFunctions(): Function[];
  148. getRowNode(): RowNode;
  149. getRenderedCellForColumn(column: Column): CellComp | undefined;
  150. private onRowIndexChanged;
  151. private updateRowIndexes;
  152. ensureDomOrder(): void;
  153. getPinnedLeftRowElement(): HTMLElement;
  154. getPinnedRightRowElement(): HTMLElement;
  155. getBodyRowElement(): HTMLElement;
  156. getFullWidthRowElement(): HTMLElement;
  157. }