import { OnChanges, OnDestroy, SimpleChanges } from '@angular/core'; import { FormGroup } from '@angular/forms'; import { Subscription } from 'rxjs'; import { GalaxyColumnDef } from '../../../table.interface'; import { GalaxyColumnsSortService } from '../../../services/column-sort.service'; import { CdkDragDrop } from '@angular/cdk/drag-drop'; import * as i0 from "@angular/core"; export declare class ColumnSortSimpleComponent implements OnDestroy, OnChanges { colSortService: GalaxyColumnsSortService; /** List of colums to be controlled by this component */ columns: GalaxyColumnDef[]; columnsFlat: any[]; formGroup: FormGroup; controlSubs: Subscription[]; constructor(colSortService: GalaxyColumnsSortService); ngOnDestroy(): void; ngOnChanges(changes: SimpleChanges): void; /** * Flattens the list of columns for use in UI. * Note: we might want to pull this into a utility method */ flattenColumns(): void; /** * NOTE THAT THIS EVENT STRIPS GROUPS. We don't care about groups in simple column arrangement * @param event - CDK Drop event provided when we drop an element in the list, in a new position */ drop(event: CdkDragDrop): void; /** * Confirm that we can allow the columns to be sorted when this item is droped. * @param index - Index of the item to work into the list * @returns True if the target location is not a pinned spot, and we can allow the drop */ sortAgainstPinned: (index: number) => boolean; /** * Update a column's visibility. * @param col - The column to updated * @param hidden - If true, this column will be hidden */ updateColHidden(col: GalaxyColumnDef, hidden: boolean): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; }