import { QueryList } from '@angular/core'; import { MatColumnDef } from '@angular/material/table'; import { BehaviorSubject, Observable } from 'rxjs'; import { GalaxyColumnDef } from '../table.interface'; import * as i0 from "@angular/core"; /** * Service for managing which columns are displayed, and which aren't * A single "table view service" should manage saving this off to local storage, query * params, and any other storage option */ export declare class GalaxyColumnsSortService { columns: GalaxyColumnDef[]; columnDefs: QueryList; /** * Behaviour subject containing the list of columns that are managed by this service. */ columns$$: BehaviorSubject; /** * Observable containing a list of IDs of columns that are visible. */ visibleColumns$: Observable; /** * Update the list of columns * @param columns - List of columns to override the current with */ setColumns(columns: GalaxyColumnDef[]): void; setColumnDefs(columnDefs: QueryList): void; /** * Updates the list of columns to make sure they are allowed to be pinnable * Columns at the start or end, and touching a pinnable column, are allowed to be pinned */ private updatePinnableColumns; /** * Update columns to be sticky if the galaxy column def says it is so */ private updateStickyColumns; /** * Flatten the list of columns so that we can handle it easily * @returns Flattened list of columns */ private flattenCols; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; }