import { AfterViewInit, ElementRef, EventEmitter, Injector, OnInit, ChangeDetectorRef } from '@angular/core'; import { MatSort, Sort } from '@angular/material/sort'; import { MatTableDataSource } from '@angular/material/table'; import { MatDialog } from '@angular/material/dialog'; import { MatPaginator } from '@angular/material/paginator'; import { SettingsData, SimplifiedMatSortable } from './misc'; import { CdkDragDrop } from '@angular/cdk/drag-drop'; import { SelectionModel } from '@angular/cdk/collections'; import { ElementTemplate } from '../../forms/form.interfaces'; import { BaseInjector } from '../../../services/base-injector.model'; import { LocalStateService } from '../../../services/local-state'; import { TableColumn } from '../../reactive/reactive-form/reactive-simple-table/reactive-table-interfaces'; import { NavigationExtras } from '@angular/router'; import * as i0 from "@angular/core"; declare type CustomDataType = any; export declare class TableComponent extends BaseInjector implements OnInit, AfterViewInit { private elRef; cdr: ChangeDetectorRef; localState: LocalStateService; dialog: MatDialog; constructor(context: Injector, elRef: ElementRef, cdr: ChangeDetectorRef, localState: LocalStateService, dialog: MatDialog); dataSource: MatTableDataSource; title: string; tableId: string; sortField: string; routerRoot: string; routerField: string; queryParamFields: string[]; columns: TableColumn[]; displayedColumns: string[]; data: ElementTemplate[]; selectable: boolean; editable: boolean; single_selection: boolean; all_selected: boolean; simple: boolean; sticky: boolean; disabled: boolean; table_task_template: string; sort: MatSort; paginator: MatPaginator; original_fields: ElementTemplate[]; selectionChange: EventEmitter; removable: boolean; previousIndex: number; filters: any; defaultSettings: SettingsData; settings: SettingsData; unique_table_id: string; selection: SelectionModel; shift: boolean; last_selection: any; sorted_data: any[]; resizePressed: boolean; startX: number; resisedColIndex: number; inital_table_width: number; numOfClicks: number; mouseUp(): void; mousemove(event: any): void; ngOnInit(): void; selectAll(): void; ngAfterViewInit(): void; onChange(object: any, key: any, value: any): void; onFocus(): void; onBlur(): void; createTable(): void; getRowQueryParams(row: any): any; getColumnsWidth(column_width: number): string; onResizeCol(event: any, i: number): void; setColumnsWidth(): void; resizerClick(event: Event): void; remove(filter: string): void; addFilter(): void; applyFilters(): void; customFilterPredicate(data: any, filters: any): boolean; showFilter(filter: any): void; showSettings(): void; onSortChange(sort_data?: Sort): void; processSortData(sort_data: SimplifiedMatSortable): void; restoreValueFromSelection(): void; setDisplayedColumns(): void; dropListDropped(event: CdkDragDrop): void; getCurrentDataset(): any[]; onKeyDown(e: any): void; onKeyUp(e: any): void; onCheckboxClick(event: any): void; onCheckboxChange(event: any, target_row: any): void; selectRowsFill(a: any, b: any): void; private selectRowsBetween; isAllSelected(): boolean; /** Selects all rows if they are not all selected; otherwise clear selection. */ masterToggle(): void; /** The label for the checkbox on the passed row */ checkboxLabel(row?: CustomDataType): string; getClassObjectOfField(row: any, column_index: number): any; getRowValue(row: any, tableCol: TableColumn): string; saveToLS(path: string, value: any): void; isSelected(row: any): boolean; toRoute(e: MouseEvent, row: number): void; navigate(commands: any[], extras?: NavigationExtras): Promise; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } export {};