body-cell.component.d.ts 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. import { ChangeDetectorRef, EventEmitter, ElementRef, ViewContainerRef, OnDestroy, DoCheck } from '@angular/core';
  2. import { TableColumn } from '../../types/table-column.type';
  3. import { SortDirection } from '../../types/sort-direction.type';
  4. export declare type TreeStatus = 'collapsed' | 'expanded' | 'loading' | 'disabled';
  5. export declare class DataTableBodyCellComponent implements DoCheck, OnDestroy {
  6. private cd;
  7. displayCheck: (row: any, column?: TableColumn, value?: any) => boolean;
  8. group: any;
  9. rowHeight: number;
  10. isSelected: boolean;
  11. expanded: boolean;
  12. rowIndex: number;
  13. column: TableColumn;
  14. row: any;
  15. sorts: any[];
  16. treeStatus: TreeStatus;
  17. activate: EventEmitter<any>;
  18. treeAction: EventEmitter<any>;
  19. cellTemplate: ViewContainerRef;
  20. readonly columnCssClasses: any;
  21. readonly width: number;
  22. readonly minWidth: number;
  23. readonly maxWidth: number;
  24. readonly height: string | number;
  25. sanitizedValue: any;
  26. value: any;
  27. sortDir: SortDirection;
  28. isFocused: boolean;
  29. onCheckboxChangeFn: any;
  30. activateFn: any;
  31. cellContext: any;
  32. private _isSelected;
  33. private _sorts;
  34. private _column;
  35. private _row;
  36. private _group;
  37. private _rowHeight;
  38. private _rowIndex;
  39. private _expanded;
  40. private _element;
  41. private _treeStatus;
  42. constructor(element: ElementRef, cd: ChangeDetectorRef);
  43. ngDoCheck(): void;
  44. ngOnDestroy(): void;
  45. checkValueUpdates(): void;
  46. onFocus(): void;
  47. onBlur(): void;
  48. onClick(event: MouseEvent): void;
  49. onDblClick(event: MouseEvent): void;
  50. onKeyDown(event: KeyboardEvent): void;
  51. onCheckboxChange(event: any): void;
  52. calcSortDir(sorts: any[]): any;
  53. stripHtml(html: string): string;
  54. onTreeAction(): void;
  55. calcLeftMargin(column: any, row: any): number;
  56. }