import { NgZone } from '@angular/core'; import { ElementRef } from '@angular/core'; import { SgSortService } from '../services/sorting/sg-sort.service'; import { SgEventService } from '../services/event/sg-event.service'; import { SgReflectService } from '../services/reflective/sg-reflect.service'; import { SgStoreService } from '../services/store/sg-store.service'; import { SgScrollHelperService } from '../services/helpers/scroll-helper/scroll-helper.service'; import { SimpleChanges } from '@angular/core'; import { SgMultiSelectService } from '../services/multi-select/sg-multi-select.service'; import { SgElementHelperService } from '../services/helpers/element-helper/element-helper.service'; import { EventEmitter } from '@angular/core'; import { OnChanges } from '@angular/core'; import { OnDestroy } from '@angular/core'; import { AfterViewInit } from '@angular/core'; import { SnSgOrderChange } from '../../sortable-grid/models/SnSgDragElement'; import { Renderer2 } from '@angular/core'; import { SortableGridGroupingComponent } from '../components/sortable-grid-grouping/sortable-grid-grouping.component'; import * as i0 from "@angular/core"; export declare class SortGridGroupingItemDirective implements OnChanges, AfterViewInit, OnDestroy { private hostElement; el: ElementRef; private sortService; private selectionService; private reflectService; private sgStore; private sgEventService; private elementHelper; private renderer; private scrollHelperService; private ngZone; snSortGridGroup: string; set snSortGridGroupingItems(x: any[]); get snSortGridItems(): any; private snSortGridGroupingItemsΩ; set disabled(disable: boolean); get disabled(): boolean; private _disabled; scrollOffset?: number; scrollMultiplier?: number; scrollProgression?: number; openModalChange: EventEmitter; sorted: EventEmitter>; private dragOverSubscription?; private selected; private isDragging; private entered; private destroy$; private lastHoverChangeTime; private static hoveredTarget; private static grouping; private static placeholder; private static mousePositionInCard; private previewPositionInPage; private cardPosition; private cardDimensions; private readonly placeholderTime; constructor(hostElement: SortableGridGroupingComponent, el: ElementRef, sortService: SgSortService, selectionService: SgMultiSelectService, reflectService: SgReflectService, sgStore: SgStoreService, sgEventService: SgEventService, elementHelper: SgElementHelperService, renderer: Renderer2, scrollHelperService: SgScrollHelperService, ngZone: NgZone); ngAfterViewInit(): void; ngOnChanges(changes: SimpleChanges): void; private setItems; ngOnDestroy(): void; dragStart(event: any): void; dragEnter(event: DragEvent): void; /** * This sets the listener with throttling that then calls the handlerForDragOver. * Document:dragover is used instead of simply drag. (Drag events on desktop have coordinates as zero, while mobile works fine). * * To avoid perfomance issues as much as possible, we don't use \@HostListerner; we throttle the handler; * and we only have one listener at a time (for the element that the user is dragging). Otherwise, all elements inside the grid will be calling this simulatenously. */ initDragListener(): void; /** * Captures both desktop and mobile events. * @param event DragEvent (we want the coordinates) */ handleDragOverDocument(event: DragEvent): void; /** * This event is called from the host element. Removes the shake, since the dragged element exited the hovered element. */ dragExit(): void; /** * Called from the host element. Decides whether the card should shake or not. * @param hoveredElement * @param clientX of dragging event * @param clientY " */ dragOverCommon(hoveredElement: HTMLElement, clientX: number, clientY: number): void; stopShaking(): void; /** * Determines how much the preview of the dragged card overlaps with the element currently being hovered over. * @returns percentage of overlapping area */ private calculateOverlapPercentage; private handlePlaceholder; showPlaceholder(): void; hidePlaceholder(): void; drop(): void; clicked(): void; private isItemCurrentlySelected; private occurredOnHost; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; }