UNPKG

@angular/cdk

Version:

Angular Material Component Development Kit

400 lines 61.3 kB
/** * @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 { Directionality } from '@angular/cdk/bidi'; import { DOCUMENT } from '@angular/common'; import { ContentChild, ContentChildren, Directive, ElementRef, EventEmitter, Inject, Input, NgZone, Optional, Output, QueryList, SkipSelf, ViewContainerRef, ChangeDetectorRef, Self, } from '@angular/core'; import { coerceBooleanProperty, coerceNumberProperty, coerceElement } from '@angular/cdk/coercion'; import { Observable, Subject, merge } from 'rxjs'; import { startWith, take, map, takeUntil, switchMap, tap } from 'rxjs/operators'; import { CDK_DRAG_HANDLE, CdkDragHandle } from './drag-handle'; import { CDK_DRAG_PLACEHOLDER, CdkDragPlaceholder } from './drag-placeholder'; import { CDK_DRAG_PREVIEW, CdkDragPreview } from './drag-preview'; import { CDK_DRAG_PARENT } from '../drag-parent'; import { CDK_DROP_LIST } from './drop-list'; import { DragDrop } from '../drag-drop'; import { CDK_DRAG_CONFIG } from './config'; import { assertElementNode } from './assertions'; const DRAG_HOST_CLASS = 'cdk-drag'; /** Element that can be moved inside a CdkDropList container. */ export class CdkDrag { constructor( /** Element that the draggable is attached to. */ element, /** Droppable container that the draggable is a part of. */ dropContainer, /** * @deprecated `_document` parameter no longer being used and will be removed. * @breaking-change 12.0.0 */ _document, _ngZone, _viewContainerRef, config, _dir, dragDrop, _changeDetectorRef, _selfHandle, _parentDrag) { this.element = element; this.dropContainer = dropContainer; this._ngZone = _ngZone; this._viewContainerRef = _viewContainerRef; this._dir = _dir; this._changeDetectorRef = _changeDetectorRef; this._selfHandle = _selfHandle; this._parentDrag = _parentDrag; this._destroyed = new Subject(); /** Emits when the user starts dragging the item. */ this.started = new EventEmitter(); /** Emits when the user has released a drag item, before any animations have started. */ this.released = new EventEmitter(); /** Emits when the user stops dragging an item in the container. */ this.ended = new EventEmitter(); /** Emits when the user has moved the item into a new container. */ this.entered = new EventEmitter(); /** Emits when the user removes the item its container by dragging it into another container. */ this.exited = new EventEmitter(); /** Emits when the user drops the item inside a container. */ this.dropped = new EventEmitter(); /** * Emits as the user is dragging the item. Use with caution, * because this event will fire for every pixel that the user has dragged. */ this.moved = new Observable((observer) => { const subscription = this._dragRef.moved.pipe(map(movedEvent => ({ source: this, pointerPosition: movedEvent.pointerPosition, event: movedEvent.event, delta: movedEvent.delta, distance: movedEvent.distance }))).subscribe(observer); return () => { subscription.unsubscribe(); }; }); this._dragRef = dragDrop.createDrag(element, { dragStartThreshold: config && config.dragStartThreshold != null ? config.dragStartThreshold : 5, pointerDirectionChangeThreshold: config && config.pointerDirectionChangeThreshold != null ? config.pointerDirectionChangeThreshold : 5, zIndex: config === null || config === void 0 ? void 0 : config.zIndex, }); this._dragRef.data = this; // We have to keep track of the drag instances in order to be able to match an element to // a drag instance. We can't go through the global registry of `DragRef`, because the root // element could be different. CdkDrag._dragInstances.push(this); if (config) { this._assignDefaults(config); } // Note that usually the container is assigned when the drop list is picks up the item, but in // some cases (mainly transplanted views with OnPush, see #18341) we may end up in a situation // where there are no items on the first change detection pass, but the items get picked up as // soon as the user triggers another pass by dragging. This is a problem, because the item would // have to switch from standalone mode to drag mode in the middle of the dragging sequence which // is too late since the two modes save different kinds of information. We work around it by // assigning the drop container both from here and the list. if (dropContainer) { this._dragRef._withDropContainer(dropContainer._dropListRef); dropContainer.addItem(this); } this._syncInputs(this._dragRef); this._handleEvents(this._dragRef); } /** Whether starting to drag this element is disabled. */ get disabled() { return this._disabled || (this.dropContainer && this.dropContainer.disabled); } set disabled(value) { this._disabled = coerceBooleanProperty(value); this._dragRef.disabled = this._disabled; } /** * Returns the element that is being used as a placeholder * while the current element is being dragged. */ getPlaceholderElement() { return this._dragRef.getPlaceholderElement(); } /** Returns the root draggable element. */ getRootElement() { return this._dragRef.getRootElement(); } /** Resets a standalone drag item to its initial position. */ reset() { this._dragRef.reset(); } /** * Gets the pixel coordinates of the draggable outside of a drop container. */ getFreeDragPosition() { return this._dragRef.getFreeDragPosition(); } ngAfterViewInit() { // We need to wait for the zone to stabilize, in order for the reference // element to be in the proper place in the DOM. This is mostly relevant // for draggable elements inside portals since they get stamped out in // their original DOM position and then they get transferred to the portal. this._ngZone.onStable .pipe(take(1), takeUntil(this._destroyed)) .subscribe(() => { this._updateRootElement(); // Listen for any newly-added handles. this._handles.changes.pipe(startWith(this._handles), // Sync the new handles with the DragRef. tap((handles) => { const childHandleElements = handles .filter(handle => handle._parentDrag === this) .map(handle => handle.element); // Usually handles are only allowed to be a descendant of the drag element, but if // the consumer defined a different drag root, we should allow the drag element // itself to be a handle too. if (this._selfHandle && this.rootElementSelector) { childHandleElements.push(this.element); } this._dragRef.withHandles(childHandleElements); }), // Listen if the state of any of the handles changes. switchMap((handles) => { return merge(...handles.map(item => { return item._stateChanges.pipe(startWith(item)); })); }), takeUntil(this._destroyed)).subscribe(handleInstance => { // Enabled/disable the handle that changed in the DragRef. const dragRef = this._dragRef; const handle = handleInstance.element.nativeElement; handleInstance.disabled ? dragRef.disableHandle(handle) : dragRef.enableHandle(handle); }); if (this.freeDragPosition) { this._dragRef.setFreeDragPosition(this.freeDragPosition); } }); } ngOnChanges(changes) { const rootSelectorChange = changes['rootElementSelector']; const positionChange = changes['freeDragPosition']; // We don't have to react to the first change since it's being // handled in `ngAfterViewInit` where it needs to be deferred. if (rootSelectorChange && !rootSelectorChange.firstChange) { this._updateRootElement(); } // Skip the first change since it's being handled in `ngAfterViewInit`. if (positionChange && !positionChange.firstChange && this.freeDragPosition) { this._dragRef.setFreeDragPosition(this.freeDragPosition); } } ngOnDestroy() { if (this.dropContainer) { this.dropContainer.removeItem(this); } const index = CdkDrag._dragInstances.indexOf(this); if (index > -1) { CdkDrag._dragInstances.splice(index, 1); } this._destroyed.next(); this._destroyed.complete(); this._dragRef.dispose(); } /** Syncs the root element with the `DragRef`. */ _updateRootElement() { const element = this.element.nativeElement; const rootElement = this.rootElementSelector ? getClosestMatchingAncestor(element, this.rootElementSelector) : element; if (rootElement && (typeof ngDevMode === 'undefined' || ngDevMode)) { assertElementNode(rootElement, 'cdkDrag'); } this._dragRef.withRootElement(rootElement || element); } /** Gets the boundary element, based on the `boundaryElement` value. */ _getBoundaryElement() { const boundary = this.boundaryElement; if (!boundary) { return null; } if (typeof boundary === 'string') { return getClosestMatchingAncestor(this.element.nativeElement, boundary); } const element = coerceElement(boundary); if ((typeof ngDevMode === 'undefined' || ngDevMode) && !element.contains(this.element.nativeElement)) { throw Error('Draggable element is not inside of the node passed into cdkDragBoundary.'); } return element; } /** Syncs the inputs of the CdkDrag with the options of the underlying DragRef. */ _syncInputs(ref) { ref.beforeStarted.subscribe(() => { if (!ref.isDragging()) { const dir = this._dir; const dragStartDelay = this.dragStartDelay; const placeholder = this._placeholderTemplate ? { template: this._placeholderTemplate.templateRef, context: this._placeholderTemplate.data, viewContainer: this._viewContainerRef } : null; const preview = this._previewTemplate ? { template: this._previewTemplate.templateRef, context: this._previewTemplate.data, matchSize: this._previewTemplate.matchSize, viewContainer: this._viewContainerRef } : null; ref.disabled = this.disabled; ref.lockAxis = this.lockAxis; ref.dragStartDelay = (typeof dragStartDelay === 'object' && dragStartDelay) ? dragStartDelay : coerceNumberProperty(dragStartDelay); ref.constrainPosition = this.constrainPosition; ref.previewClass = this.previewClass; ref .withBoundaryElement(this._getBoundaryElement()) .withPlaceholderTemplate(placeholder) .withPreviewTemplate(preview); if (dir) { ref.withDirection(dir.value); } } }); // This only needs to be resolved once. ref.beforeStarted.pipe(take(1)).subscribe(() => { var _a, _b; // If we managed to resolve a parent through DI, use it. if (this._parentDrag) { ref.withParent(this._parentDrag._dragRef); return; } // Otherwise fall back to resolving the parent by looking up the DOM. This can happen if // the item was projected into another item by something like `ngTemplateOutlet`. let parent = this.element.nativeElement.parentElement; while (parent) { // `classList` needs to be null checked, because IE doesn't have it on some elements. if ((_a = parent.classList) === null || _a === void 0 ? void 0 : _a.contains(DRAG_HOST_CLASS)) { ref.withParent(((_b = CdkDrag._dragInstances.find(drag => { return drag.element.nativeElement === parent; })) === null || _b === void 0 ? void 0 : _b._dragRef) || null); break; } parent = parent.parentElement; } }); } /** Handles the events from the underlying `DragRef`. */ _handleEvents(ref) { ref.started.subscribe(() => { this.started.emit({ source: this }); // Since all of these events run outside of change detection, // we need to ensure that everything is marked correctly. this._changeDetectorRef.markForCheck(); }); ref.released.subscribe(() => { this.released.emit({ source: this }); }); ref.ended.subscribe(event => { this.ended.emit({ source: this, distance: event.distance }); // Since all of these events run outside of change detection, // we need to ensure that everything is marked correctly. this._changeDetectorRef.markForCheck(); }); ref.entered.subscribe(event => { this.entered.emit({ container: event.container.data, item: this, currentIndex: event.currentIndex }); }); ref.exited.subscribe(event => { this.exited.emit({ container: event.container.data, item: this }); }); ref.dropped.subscribe(event => { this.dropped.emit({ previousIndex: event.previousIndex, currentIndex: event.currentIndex, previousContainer: event.previousContainer.data, container: event.container.data, isPointerOverContainer: event.isPointerOverContainer, item: this, distance: event.distance }); }); } /** Assigns the default input values based on a provided config object. */ _assignDefaults(config) { const { lockAxis, dragStartDelay, constrainPosition, previewClass, boundaryElement, draggingDisabled, rootElementSelector } = config; this.disabled = draggingDisabled == null ? false : draggingDisabled; this.dragStartDelay = dragStartDelay || 0; if (lockAxis) { this.lockAxis = lockAxis; } if (constrainPosition) { this.constrainPosition = constrainPosition; } if (previewClass) { this.previewClass = previewClass; } if (boundaryElement) { this.boundaryElement = boundaryElement; } if (rootElementSelector) { this.rootElementSelector = rootElementSelector; } } } CdkDrag._dragInstances = []; CdkDrag.decorators = [ { type: Directive, args: [{ selector: '[cdkDrag]', exportAs: 'cdkDrag', host: { 'class': DRAG_HOST_CLASS, '[class.cdk-drag-disabled]': 'disabled', '[class.cdk-drag-dragging]': '_dragRef.isDragging()', }, providers: [{ provide: CDK_DRAG_PARENT, useExisting: CdkDrag }] },] } ]; CdkDrag.ctorParameters = () => [ { type: ElementRef }, { type: undefined, decorators: [{ type: Inject, args: [CDK_DROP_LIST,] }, { type: Optional }, { type: SkipSelf }] }, { type: undefined, decorators: [{ type: Inject, args: [DOCUMENT,] }] }, { type: NgZone }, { type: ViewContainerRef }, { type: undefined, decorators: [{ type: Optional }, { type: Inject, args: [CDK_DRAG_CONFIG,] }] }, { type: Directionality, decorators: [{ type: Optional }] }, { type: DragDrop }, { type: ChangeDetectorRef }, { type: CdkDragHandle, decorators: [{ type: Optional }, { type: Self }, { type: Inject, args: [CDK_DRAG_HANDLE,] }] }, { type: CdkDrag, decorators: [{ type: Optional }, { type: SkipSelf }, { type: Inject, args: [CDK_DRAG_PARENT,] }] } ]; CdkDrag.propDecorators = { _handles: [{ type: ContentChildren, args: [CDK_DRAG_HANDLE, { descendants: true },] }], _previewTemplate: [{ type: ContentChild, args: [CDK_DRAG_PREVIEW,] }], _placeholderTemplate: [{ type: ContentChild, args: [CDK_DRAG_PLACEHOLDER,] }], data: [{ type: Input, args: ['cdkDragData',] }], lockAxis: [{ type: Input, args: ['cdkDragLockAxis',] }], rootElementSelector: [{ type: Input, args: ['cdkDragRootElement',] }], boundaryElement: [{ type: Input, args: ['cdkDragBoundary',] }], dragStartDelay: [{ type: Input, args: ['cdkDragStartDelay',] }], freeDragPosition: [{ type: Input, args: ['cdkDragFreeDragPosition',] }], disabled: [{ type: Input, args: ['cdkDragDisabled',] }], constrainPosition: [{ type: Input, args: ['cdkDragConstrainPosition',] }], previewClass: [{ type: Input, args: ['cdkDragPreviewClass',] }], started: [{ type: Output, args: ['cdkDragStarted',] }], released: [{ type: Output, args: ['cdkDragReleased',] }], ended: [{ type: Output, args: ['cdkDragEnded',] }], entered: [{ type: Output, args: ['cdkDragEntered',] }], exited: [{ type: Output, args: ['cdkDragExited',] }], dropped: [{ type: Output, args: ['cdkDragDropped',] }], moved: [{ type: Output, args: ['cdkDragMoved',] }] }; /** Gets the closest ancestor of an element that matches a selector. */ function getClosestMatchingAncestor(element, selector) { let currentElement = element.parentElement; while (currentElement) { // IE doesn't support `matches` so we have to fall back to `msMatchesSelector`. if (currentElement.matches ? currentElement.matches(selector) : currentElement.msMatchesSelector(selector)) { return currentElement; } currentElement = currentElement.parentElement; } return null; } //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZHJhZy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3NyYy9jZGsvZHJhZy1kcm9wL2RpcmVjdGl2ZXMvZHJhZy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7Ozs7O0dBTUc7QUFFSCxPQUFPLEVBQUMsY0FBYyxFQUFDLE1BQU0sbUJBQW1CLENBQUM7QUFDakQsT0FBTyxFQUFDLFFBQVEsRUFBQyxNQUFNLGlCQUFpQixDQUFDO0FBQ3pDLE9BQU8sRUFFTCxZQUFZLEVBQ1osZUFBZSxFQUNmLFNBQVMsRUFDVCxVQUFVLEVBQ1YsWUFBWSxFQUNaLE1BQU0sRUFDTixLQUFLLEVBQ0wsTUFBTSxFQUVOLFFBQVEsRUFDUixNQUFNLEVBQ04sU0FBUyxFQUNULFFBQVEsRUFDUixnQkFBZ0IsRUFHaEIsaUJBQWlCLEVBQ2pCLElBQUksR0FDTCxNQUFNLGVBQWUsQ0FBQztBQUN2QixPQUFPLEVBQ0wscUJBQXFCLEVBQ3JCLG9CQUFvQixFQUNwQixhQUFhLEVBRWQsTUFBTSx1QkFBdUIsQ0FBQztBQUMvQixPQUFPLEVBQUMsVUFBVSxFQUFZLE9BQU8sRUFBRSxLQUFLLEVBQUMsTUFBTSxNQUFNLENBQUM7QUFDMUQsT0FBTyxFQUFDLFNBQVMsRUFBRSxJQUFJLEVBQUUsR0FBRyxFQUFFLFNBQVMsRUFBRSxTQUFTLEVBQUUsR0FBRyxFQUFDLE1BQU0sZ0JBQWdCLENBQUM7QUFVL0UsT0FBTyxFQUFDLGVBQWUsRUFBRSxhQUFhLEVBQUMsTUFBTSxlQUFlLENBQUM7QUFDN0Q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