UNPKG

gentics-ui-core

Version:

This is the common core framework for the Gentics CMS and Mesh UI, and other Angular applications.

21 lines (20 loc) 976 B
export declare function getDataTransfer(event: any): DataTransfer; export declare function getEventTarget(event: any): HTMLElement; /** * Note: there are issues with current TypeScript lib defs for the DataTransfer interface, which * seems to define the `types` property as a `string[]` rather than a DOMStringList. * See https://github.com/Microsoft/TypeScript/issues/12069 */ export declare function transferHasFiles(transfer: DataTransfer): boolean; export declare function clientReportsMimeTypesOnDrag(): boolean; /** * If the browser does not report a MIME type, match against this value instead. */ export declare const FALLBACK_MIME_TYPE = "unknown/unknown"; /** * Returns a list of mime types in a DataTransfer if supported by the browser. * * This is a workaround for missing DataTransfer.items support in Firefox < 52 * https://bugzilla.mozilla.org/show_bug.cgi?id=906420 */ export declare function getTransferMimeTypes(transfer: DataTransfer): string[];