@yoyoboot/l-52abp-ng-form-generator
Version:
This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 12.2.0.
55 lines (54 loc) • 2.53 kB
TypeScript
import { AfterViewInit, ElementRef, EventEmitter, NgZone, OnDestroy, Renderer2 } from "@angular/core";
import { DndEvent } from "./dnd-utils";
import { DropEffect, EffectAllowed } from "./dnd-types";
import * as i0 from "@angular/core";
export interface DndDropEvent {
event: DragEvent;
dropEffect: DropEffect;
isExternal: boolean;
data?: any;
index?: number;
type?: any;
}
export declare class DndPlaceholderRefDirective {
readonly elementRef: ElementRef;
constructor(elementRef: ElementRef);
static ɵfac: i0.ɵɵFactoryDeclaration<DndPlaceholderRefDirective, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<DndPlaceholderRefDirective, "[dndPlaceholderRef]", never, {}, {}, never>;
}
export declare class DndDropzoneDirective implements AfterViewInit, OnDestroy {
private ngZone;
private elementRef;
private renderer;
dndDropzone?: string[];
dndEffectAllowed: EffectAllowed;
dndAllowExternal: boolean;
dndHorizontal: boolean;
dndDragoverClass: string;
dndDropzoneDisabledClass: string;
readonly dndDragover: EventEmitter<DragEvent>;
readonly dndDrop: EventEmitter<DndDropEvent>;
private readonly dndPlaceholderRef?;
private placeholder;
private disabled;
private readonly dragEnterEventHandler;
private readonly dragOverEventHandler;
private readonly dragLeaveEventHandler;
set dndDisableIf(value: boolean);
set dndDisableDropIf(value: boolean);
constructor(ngZone: NgZone, elementRef: ElementRef, renderer: Renderer2);
ngAfterViewInit(): void;
ngOnDestroy(): void;
onDragEnter(event: DndEvent): void;
onDragOver(event: DragEvent): void;
onDrop(event: DragEvent): void;
onDragLeave(event: DndEvent): void;
private isDropAllowed;
private tryGetPlaceholder;
private removePlaceholderFromDOM;
private checkAndUpdatePlaceholderPosition;
private getPlaceholderIndex;
private cleanupDragoverState;
static ɵfac: i0.ɵɵFactoryDeclaration<DndDropzoneDirective, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<DndDropzoneDirective, "[dndDropZone]", never, { "dndDropzone": "dndDropzone"; "dndEffectAllowed": "dndEffectAllowed"; "dndAllowExternal": "dndAllowExternal"; "dndHorizontal": "dndHorizontal"; "dndDragoverClass": "dndDragoverClass"; "dndDropzoneDisabledClass": "dndDropzoneDisabledClass"; "dndDisableIf": "dndDisableIf"; "dndDisableDropIf": "dndDisableDropIf"; }, { "dndDragover": "dndDragover"; "dndDrop": "dndDrop"; }, ["dndPlaceholderRef"]>;
}