UNPKG

3.06 kBTypeScriptView Raw
1import { EventEmitter, ChangeDetectorRef, OnDestroy } from '@angular/core';
2import { SortType } from '../../types/sort.type';
3import { SelectionType } from '../../types/selection.type';
4import { DataTableColumnDirective } from '../columns/column.directive';
5import * as i0 from "@angular/core";
6export declare class DataTableHeaderComponent implements OnDestroy {
7 private cd;
8 sortAscendingIcon: any;
9 sortDescendingIcon: any;
10 sortUnsetIcon: any;
11 scrollbarH: boolean;
12 dealsWithGroup: boolean;
13 targetMarkerTemplate: any;
14 targetMarkerContext: any;
15 set innerWidth(val: number);
16 get innerWidth(): number;
17 sorts: any[];
18 sortType: SortType;
19 allRowsSelected: boolean;
20 selectionType: SelectionType;
21 reorderable: boolean;
22 dragEventTarget: any;
23 set headerHeight(val: any);
24 get headerHeight(): any;
25 set columns(val: any[]);
26 get columns(): any[];
27 set offsetX(val: number);
28 get offsetX(): number;
29 sort: EventEmitter<any>;
30 reorder: EventEmitter<any>;
31 resize: EventEmitter<any>;
32 select: EventEmitter<any>;
33 columnContextmenu: EventEmitter<{
34 event: MouseEvent;
35 column: any;
36 }>;
37 _columnsByPin: any;
38 _columnGroupWidths: any;
39 _innerWidth: number;
40 _offsetX: number;
41 _columns: any[];
42 _headerHeight: string;
43 _styleByGroup: {
44 [prop: string]: {};
45 };
46 private destroyed;
47 constructor(cd: ChangeDetectorRef);
48 ngOnDestroy(): void;
49 onLongPressStart({ event, model }: {
50 event: any;
51 model: any;
52 }): void;
53 onLongPressEnd({ event, model }: {
54 event: any;
55 model: any;
56 }): void;
57 get headerWidth(): string;
58 trackByGroups(index: number, colGroup: any): any;
59 columnTrackingFn(index: number, column: any): any;
60 onColumnResized(width: number, column: DataTableColumnDirective): void;
61 onColumnReordered({ prevIndex, newIndex, model }: any): void;
62 onTargetChanged({ prevIndex, newIndex, initialIndex }: any): void;
63 getColumn(index: number): any;
64 onSort({ column, prevValue, newValue }: any): void;
65 calcNewSorts(column: any, prevValue: number, newValue: number): any[];
66 setStylesByGroup(): void;
67 calcStylesByGroup(group: string): any;
68 static ɵfac: i0.ɵɵFactoryDeclaration<DataTableHeaderComponent, never>;
69 static ɵcmp: i0.ɵɵComponentDeclaration<DataTableHeaderComponent, "datatable-header", never, { "sortAscendingIcon": "sortAscendingIcon"; "sortDescendingIcon": "sortDescendingIcon"; "sortUnsetIcon": "sortUnsetIcon"; "scrollbarH": "scrollbarH"; "dealsWithGroup": "dealsWithGroup"; "targetMarkerTemplate": "targetMarkerTemplate"; "innerWidth": "innerWidth"; "sorts": "sorts"; "sortType": "sortType"; "allRowsSelected": "allRowsSelected"; "selectionType": "selectionType"; "reorderable": "reorderable"; "headerHeight": "headerHeight"; "columns": "columns"; "offsetX": "offsetX"; }, { "sort": "sort"; "reorder": "reorder"; "resize": "resize"; "select": "select"; "columnContextmenu": "columnContextmenu"; }, never, never>;
70}