import { EventEmitter, QueryList } from '@angular/core'; import { NgZone } from '@angular/core'; import { ChangeDetectorRef } from '@angular/core'; import { ViewContainerRef } from '@angular/core'; import { ElementRef } from '@angular/core'; import { AfterViewInit } from '@angular/core'; import { OnChanges } from '@angular/core'; import { OnDestroy } from '@angular/core'; import { SimpleChanges } from '@angular/core'; import { CdkDrag, DragAxis, DragRef, DragStartDelay, Point } from '@angular/cdk/drag-drop'; import { CdkDropList } from '@angular/cdk/drag-drop'; import { CdkDragHandle } from '@angular/cdk/drag-drop'; import { DragDrop } from '@angular/cdk/drag-drop'; import { DragDropConfig } from '@angular/cdk/drag-drop'; import { Directionality } from '@angular/cdk/bidi'; import { SnDragDrop, SnDragEnter, SnDragExit, SnDragRelease, SnDragStart } from '../../model/drag-drop-events.model'; import { DragHandleDirective } from '../drag-handler/drag-handle.directive'; import { DragPlaceholderDirective } from '../drag-placeholder/drag-placeholder.directive'; import * as i0 from "@angular/core"; export declare class DragDirective extends CdkDrag implements AfterViewInit, OnChanges, OnDestroy { element: ElementRef; dropContainer: CdkDropList; _dragRef: DragRef> | any | undefined; _handles: QueryList; _placeholderTemplate: DragPlaceholderDirective; data: T; lockAxis: DragAxis | any; rootElementSelector: string | any | undefined; boundaryElement: string | any | ElementRef | HTMLElement; dragStartDelay: DragStartDelay | any; freeDragPosition: { x: number; y: number; } | any | undefined; /** * Function that can be used to customize the logic of how the position of the drag item * is limited while it's being dragged. Gets called with a point containing the current position * of the user's pointer on the page and should return a point describing where the item should * be rendered. */ constrainPosition?: (point: Point, dragRef: DragRef) => Point; previewClass: string | string[]; /** * Configures the place into which the preview of the item will be inserted. Can be configured * globally through `CDK_DROP_LIST`. Possible values: * - `global` - Preview will be inserted at the bottom of the ``. The advantage is that * you don't have to worry about `overflow: hidden` or `z-index`, but the item won't retain * its inherited styles. * - `parent` - Preview will be inserted into the parent of the drag item. The advantage is that * inherited styles will be preserved, but it may be clipped by `overflow: hidden` or not be * visible due to `z-index`. Furthermore, the preview is going to have an effect over selectors * like `:nth-child` and some flexbox configurations. * - `ElementRef | HTMLElement` - Preview will be inserted into a specific element. * Same advantages and disadvantages as `parent`. */ previewContainer: 'global' | 'parent' | ElementRef | HTMLElement | any | undefined; readonly started: EventEmitter; readonly released: EventEmitter; readonly entered: EventEmitter>; readonly exited: EventEmitter>; readonly dropped: EventEmitter>; constructor(element: ElementRef, dropContainer: CdkDropList, _document: any, _ngZone: NgZone, _viewContainerRef: ViewContainerRef, config: DragDropConfig, _dir: Directionality, dragDrop: DragDrop, _changeDetectorRef: ChangeDetectorRef, _selfHandle?: CdkDragHandle); ngOnChanges(changes: SimpleChanges): void; ngOnDestroy(): void; ngAfterViewInit(): void; static ɵfac: i0.ɵɵFactoryDeclaration, [null, { optional: true; skipSelf: true; }, null, null, null, { optional: true; }, { optional: true; }, null, null, { optional: true; self: true; }]>; static ɵdir: i0.ɵɵDirectiveDeclaration, "sn-drag, [sn-drag], [snDrag]", never, { "data": "snDragData"; "lockAxis": "snDragLockAxis"; "rootElementSelector": "snDragRootElement"; "boundaryElement": "snDragBoundary"; "dragStartDelay": "snDragStartDelay"; "freeDragPosition": "snDragFreeDragPosition"; "constrainPosition": "snDragConstrainPosition"; "previewClass": "snDragPreviewClass"; "previewContainer": "snDragPreviewContainer"; }, { "started": "snDragStarted"; "released": "snDragReleased"; "entered": "snDragEntered"; "exited": "snDragExited"; "dropped": "snDragDropped"; }, ["_placeholderTemplate", "_handles"], never, false>; }