UNPKG

ontotext-reusable-ui-components

Version:

Unified reusable UI components designed for the Ontotext ecosystem.

42 lines (41 loc) 1.38 kB
import { EventEmitter, OnChanges, SimpleChanges } from '@angular/core'; import { TableConfig } from './models/configuration-types'; import { Sort } from '@angular/material/sort'; import { CdkDragDrop } from '@angular/cdk/drag-drop'; export declare class OntoSearchResultsComponent implements OnChanges { /** * The data source for the table */ datasource: any[]; /** * Table configuration, containing table and column specific configuration * If configuration is changed dynamically it must be passed as new object to * be detected by angular change detection */ config: TableConfig; /** * Table sort information */ sort: Sort; /** * Styling class applied to div wrapper of the table */ componentClass: string | string[]; /** * Fired whenever there is change in sorting column or direction. * Sends a {@link Sort} object */ sortData: EventEmitter<Sort>; displayColumns: string[]; private initialSort; ngOnChanges(changes: SimpleChanges): void; reorderColumns(event: CdkDragDrop<string[]>): void; private findColumnConfigIndexByName; /** * Sorts the column configurations by permanent columns first */ private sortColumnConfigurations; private setDisplayColumns; private getFilteredColumnConfigs; private getVisibleColumnNames; }