import { ElementRef, Injector, OnChanges, OnDestroy, OnInit, Renderer2, SimpleChanges } from '@angular/core'; import { Subscription } from 'rxjs'; import { Grid, GridOrderableCell, OrderableIndicatorRenderer, Ordering, GridPluginInstances } from '../../interfaces'; import * as i0 from "@angular/core"; /** * Directive that is used for handling ordering of column */ export declare class OrderableDirective implements OnInit, OnDestroy, OnChanges { /** * Subscriptions created during initialization */ protected initSubscriptions: Subscription; /** * Subscription for ordering changes */ protected orderingChangeSubscription: Subscription | undefined | null; /** * Indication whether is grid initialized */ protected gridInitialized: boolean; /** * Current html element that is this directive attached to */ protected element: ElementRef; /** * Available instances of grid plugins */ protected plugins: GridPluginInstances; /** * Instance of renderer used for rendering html */ protected renderer: Renderer2; /** * Instance of grid */ protected grid: Grid; /** * Angular injector used for injecting dependencies */ protected injector: Injector; /** * Instance of renderer used for rendering ordering 'visual state' */ protected indicatorRenderer: OrderableIndicatorRenderer | undefined | null; /** * Current css class that is applied to cell */ protected currentCssClass: string | undefined | null; /** * Gets instance of ordering */ protected get ordering(): Ordering; /** * Gets or sets indication whether is column orderable or not */ orderable: boolean; /** * Id of column which should be used for order by */ orderById: string | undefined | null; constructor(orderable?: GridOrderableCell); /** * Initialize component */ ngOnInit(): void; /** * Called when input value changes */ ngOnChanges(changes: SimpleChanges): void; /** * Called when component is destroyed */ ngOnDestroy(): void; /** * Handles click event, that should trigger ordering for column * @param event - Event that occured */ protected orderBy(event: MouseEvent): void; /** * Initialized ordering according current ordering flag */ protected initOrdering(): void; /** * Applies css classes according current ordering state */ protected applyCssClasses(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; static ngAcceptInputType_orderable: unknown; } //# sourceMappingURL=orderable.directive.d.ts.map