@ng-matero/extensions
Version:
Angular Material Extensions
44 lines (43 loc) • 2.05 kB
TypeScript
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import { AfterViewInit, ElementRef, OnDestroy, NgZone } from '@angular/core';
import { Directionality } from '@angular/cdk/bidi';
import { CdkColumnDef, _CoalescedStyleScheduler } from '@angular/cdk/table';
import { Subject } from 'rxjs';
import { ColumnResizeNotifierSource } from './column-resize-notifier';
import { HeaderRowEventDispatcher } from './event-dispatcher';
import { ResizeRef } from './resize-ref';
import * as i0 from "@angular/core";
/**
* Base class for a component shown over the edge of a resizable column that is responsible
* for handling column resize mouse events and displaying any visible UI on the column edge.
*/
export declare abstract class ResizeOverlayHandle implements AfterViewInit, OnDestroy {
protected readonly destroyed: Subject<void>;
protected abstract readonly columnDef: CdkColumnDef;
protected abstract readonly document: Document;
protected abstract readonly directionality: Directionality;
protected abstract readonly elementRef: ElementRef;
protected abstract readonly eventDispatcher: HeaderRowEventDispatcher;
protected abstract readonly ngZone: NgZone;
protected abstract readonly resizeNotifier: ColumnResizeNotifierSource;
protected abstract readonly resizeRef: ResizeRef;
protected abstract readonly styleScheduler: _CoalescedStyleScheduler;
ngAfterViewInit(): void;
ngOnDestroy(): void;
private _listenForMouseEvents;
private _dragStarted;
protected updateResizeActive(active: boolean): void;
private _getOriginWidth;
private _getOriginOffset;
private _updateOverlayOffset;
private _isLtr;
private _notifyResizeEnded;
static ɵfac: i0.ɵɵFactoryDeclaration<ResizeOverlayHandle, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<ResizeOverlayHandle, never, never, {}, {}, never, never, false, never>;
}