Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@fullcalendar/interaction

Package Overview
Dependencies
Maintainers
1
Versions
61
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fullcalendar/interaction - npm Package Compare versions

Comparing version 5.0.0-beta.2 to 5.0.0-beta.3

main.js.map

548

main.d.ts

@@ -1,323 +0,277 @@

// Generated by dts-bundle v0.7.3-fork.1
// Dependencies for this module:
// ../../../../../@fullcalendar/core
import { Emitter, PointerDragEvent, Rect, ScrollController, ElementDragging, DatePointApi, ViewApi, EventApi, Duration, Identity, DragMetaInput, PluginDef } from '@fullcalendar/common';
declare module '@fullcalendar/interaction' {
import FeaturefulElementDragging from '@fullcalendar/interaction/dnd/FeaturefulElementDragging';
const _default: import("@fullcalendar/core").PluginDef;
export default _default;
export { FeaturefulElementDragging };
export { default as PointerDragging } from '@fullcalendar/interaction/dnd/PointerDragging';
export { default as Draggable } from '@fullcalendar/interaction/interactions-external/ExternalDraggable';
export { default as ThirdPartyDraggable } from '@fullcalendar/interaction/interactions-external/ThirdPartyDraggable';
declare class PointerDragging {
containerEl: EventTarget;
subjectEl: HTMLElement | null;
downEl: HTMLElement | null;
emitter: Emitter<any>;
selector: string;
handleSelector: string;
shouldIgnoreMove: boolean;
shouldWatchScroll: boolean;
isDragging: boolean;
isTouchDragging: boolean;
wasTouchScroll: boolean;
origPageX: number;
origPageY: number;
prevPageX: number;
prevPageY: number;
prevScrollX: number;
prevScrollY: number;
constructor(containerEl: EventTarget);
destroy(): void;
tryStart(ev: UIEvent): boolean;
cleanup(): void;
querySubjectEl(ev: UIEvent): HTMLElement;
handleMouseDown: (ev: MouseEvent) => void;
handleMouseMove: (ev: MouseEvent) => void;
handleMouseUp: (ev: MouseEvent) => void;
shouldIgnoreMouse(): number | boolean;
handleTouchStart: (ev: TouchEvent) => void;
handleTouchMove: (ev: TouchEvent) => void;
handleTouchEnd: (ev: TouchEvent) => void;
handleTouchScroll: () => void;
cancelTouchScroll(): void;
initScrollWatch(ev: PointerDragEvent): void;
recordCoords(ev: PointerDragEvent): void;
handleScroll: (ev: UIEvent) => void;
destroyScrollWatch(): void;
createEventFromMouse(ev: MouseEvent, isFirst?: boolean): PointerDragEvent;
createEventFromTouch(ev: TouchEvent, isFirst?: boolean): PointerDragEvent;
}
declare module '@fullcalendar/interaction/dnd/FeaturefulElementDragging' {
import { PointerDragEvent, ElementDragging } from '@fullcalendar/core';
import PointerDragging from '@fullcalendar/interaction/dnd/PointerDragging';
import ElementMirror from '@fullcalendar/interaction/dnd/ElementMirror';
import AutoScroller from '@fullcalendar/interaction/dnd/AutoScroller';
export { FeaturefulElementDragging as default, FeaturefulElementDragging };
class FeaturefulElementDragging extends ElementDragging {
pointer: PointerDragging;
mirror: ElementMirror;
autoScroller: AutoScroller;
delay: number | null;
minDistance: number;
touchScrollAllowed: boolean;
mirrorNeedsRevert: boolean;
isInteracting: boolean;
isDragging: boolean;
isDelayEnded: boolean;
isDistanceSurpassed: boolean;
delayTimeoutId: number | null;
constructor(containerEl: HTMLElement);
destroy(): void;
onPointerDown: (ev: PointerDragEvent) => void;
onPointerMove: (ev: PointerDragEvent) => void;
onPointerUp: (ev: PointerDragEvent) => void;
startDelay(ev: PointerDragEvent): void;
handleDelayEnd(ev: PointerDragEvent): void;
handleDistanceSurpassed(ev: PointerDragEvent): void;
tryStartDrag(ev: PointerDragEvent): void;
tryStopDrag(ev: PointerDragEvent): void;
stopDrag(ev: PointerDragEvent): void;
setIgnoreMove(bool: boolean): void;
setMirrorIsVisible(bool: boolean): void;
setMirrorNeedsRevert(bool: boolean): void;
setAutoScrollEnabled(bool: boolean): void;
}
declare class ElementMirror {
isVisible: boolean;
origScreenX?: number;
origScreenY?: number;
deltaX?: number;
deltaY?: number;
sourceEl: HTMLElement | null;
mirrorEl: HTMLElement | null;
sourceElRect: Rect | null;
parentNode: HTMLElement;
zIndex: number;
revertDuration: number;
start(sourceEl: HTMLElement, pageX: number, pageY: number): void;
handleMove(pageX: number, pageY: number): void;
setIsVisible(bool: boolean): void;
stop(needsRevertAnimation: boolean, callback: () => void): void;
doRevertAnimation(callback: () => void, revertDuration: number): void;
cleanup(): void;
updateElPosition(): void;
getMirrorEl(): HTMLElement;
}
declare module '@fullcalendar/interaction/dnd/PointerDragging' {
import { EmitterMixin, PointerDragEvent } from '@fullcalendar/core';
export { PointerDragging as default, PointerDragging };
class PointerDragging {
containerEl: EventTarget;
subjectEl: HTMLElement | null;
downEl: HTMLElement | null;
emitter: EmitterMixin;
selector: string;
handleSelector: string;
shouldIgnoreMove: boolean;
shouldWatchScroll: boolean;
isDragging: boolean;
isTouchDragging: boolean;
wasTouchScroll: boolean;
origPageX: number;
origPageY: number;
prevPageX: number;
prevPageY: number;
prevScrollX: number;
prevScrollY: number;
constructor(containerEl: EventTarget);
destroy(): void;
tryStart(ev: UIEvent): boolean;
cleanup(): void;
querySubjectEl(ev: UIEvent): HTMLElement;
handleMouseDown: (ev: MouseEvent) => void;
handleMouseMove: (ev: MouseEvent) => void;
handleMouseUp: (ev: MouseEvent) => void;
shouldIgnoreMouse(): number | boolean;
handleTouchStart: (ev: TouchEvent) => void;
handleTouchMove: (ev: TouchEvent) => void;
handleTouchEnd: (ev: TouchEvent) => void;
handleTouchScroll: () => void;
cancelTouchScroll(): void;
initScrollWatch(ev: PointerDragEvent): void;
recordCoords(ev: PointerDragEvent): void;
handleScroll: (ev: UIEvent) => void;
destroyScrollWatch(): void;
createEventFromMouse(ev: MouseEvent, isFirst?: boolean): PointerDragEvent;
createEventFromTouch(ev: TouchEvent, isFirst?: boolean): PointerDragEvent;
}
declare abstract class ScrollGeomCache extends ScrollController {
clientRect: Rect;
origScrollTop: number;
origScrollLeft: number;
protected scrollController: ScrollController;
protected doesListening: boolean;
protected scrollTop: number;
protected scrollLeft: number;
protected scrollWidth: number;
protected scrollHeight: number;
protected clientWidth: number;
protected clientHeight: number;
constructor(scrollController: ScrollController, doesListening: boolean);
abstract getEventTarget(): EventTarget;
abstract computeClientRect(): Rect;
destroy(): void;
handleScroll: () => void;
getScrollTop(): number;
getScrollLeft(): number;
setScrollTop(top: number): void;
setScrollLeft(top: number): void;
getClientWidth(): number;
getClientHeight(): number;
getScrollWidth(): number;
getScrollHeight(): number;
handleScrollChange(): void;
}
declare module '@fullcalendar/interaction/interactions-external/ExternalDraggable' {
import { PointerDragEvent } from '@fullcalendar/core';
import FeaturefulElementDragging from '@fullcalendar/interaction/dnd/FeaturefulElementDragging';
import { DragMetaGenerator } from '@fullcalendar/interaction/interactions-external/ExternalElementDragging';
export interface ExternalDraggableSettings {
eventData?: DragMetaGenerator;
itemSelector?: string;
minDistance?: number;
longPressDelay?: number;
appendTo?: HTMLElement;
}
export { ExternalDraggable as default, ExternalDraggable };
class ExternalDraggable {
dragging: FeaturefulElementDragging;
settings: ExternalDraggableSettings;
constructor(el: HTMLElement, settings?: ExternalDraggableSettings);
handlePointerDown: (ev: PointerDragEvent) => void;
handleDragStart: (ev: PointerDragEvent) => void;
destroy(): void;
}
declare class AutoScroller {
isEnabled: boolean;
scrollQuery: (Window | string)[];
edgeThreshold: number;
maxVelocity: number;
pointerScreenX: number | null;
pointerScreenY: number | null;
isAnimating: boolean;
scrollCaches: ScrollGeomCache[] | null;
msSinceRequest?: number;
everMovedUp: boolean;
everMovedDown: boolean;
everMovedLeft: boolean;
everMovedRight: boolean;
start(pageX: number, pageY: number): void;
handleMove(pageX: number, pageY: number): void;
stop(): void;
requestAnimation(now: number): void;
private animate;
private handleSide;
private computeBestEdge;
private buildCaches;
private queryScrollEls;
}
declare module '@fullcalendar/interaction/interactions-external/ThirdPartyDraggable' {
import { DragMetaGenerator } from '@fullcalendar/interaction/interactions-external/ExternalElementDragging';
import InferredElementDragging from '@fullcalendar/interaction/interactions-external/InferredElementDragging';
export interface ThirdPartyDraggableSettings {
eventData?: DragMetaGenerator;
itemSelector?: string;
mirrorSelector?: string;
}
export { ThirdPartyDraggable as default, ThirdPartyDraggable };
class ThirdPartyDraggable {
dragging: InferredElementDragging;
constructor(containerOrSettings?: EventTarget | ThirdPartyDraggableSettings, settings?: ThirdPartyDraggableSettings);
destroy(): void;
}
declare class FeaturefulElementDragging extends ElementDragging {
pointer: PointerDragging;
mirror: ElementMirror;
autoScroller: AutoScroller;
delay: number | null;
minDistance: number;
touchScrollAllowed: boolean;
mirrorNeedsRevert: boolean;
isInteracting: boolean;
isDragging: boolean;
isDelayEnded: boolean;
isDistanceSurpassed: boolean;
delayTimeoutId: number | null;
constructor(containerEl: HTMLElement);
destroy(): void;
onPointerDown: (ev: PointerDragEvent) => void;
onPointerMove: (ev: PointerDragEvent) => void;
onPointerUp: (ev: PointerDragEvent) => void;
startDelay(ev: PointerDragEvent): void;
handleDelayEnd(ev: PointerDragEvent): void;
handleDistanceSurpassed(ev: PointerDragEvent): void;
tryStartDrag(ev: PointerDragEvent): void;
tryStopDrag(ev: PointerDragEvent): void;
stopDrag(ev: PointerDragEvent): void;
setIgnoreMove(bool: boolean): void;
setMirrorIsVisible(bool: boolean): void;
setMirrorNeedsRevert(bool: boolean): void;
setAutoScrollEnabled(bool: boolean): void;
}
declare module '@fullcalendar/interaction/dnd/ElementMirror' {
import { Rect } from '@fullcalendar/core';
export { ElementMirror as default, ElementMirror };
class ElementMirror {
isVisible: boolean;
origScreenX?: number;
origScreenY?: number;
deltaX?: number;
deltaY?: number;
sourceEl: HTMLElement | null;
mirrorEl: HTMLElement | null;
sourceElRect: Rect | null;
parentNode: HTMLElement;
zIndex: number;
revertDuration: number;
start(sourceEl: HTMLElement, pageX: number, pageY: number): void;
handleMove(pageX: number, pageY: number): void;
setIsVisible(bool: boolean): void;
stop(needsRevertAnimation: boolean, callback: () => void): void;
doRevertAnimation(callback: () => void, revertDuration: number): void;
cleanup(): void;
updateElPosition(): void;
getMirrorEl(): HTMLElement;
}
interface DateClickArg extends DatePointApi {
dayEl: HTMLElement;
jsEvent: MouseEvent;
view: ViewApi;
}
declare module '@fullcalendar/interaction/dnd/AutoScroller' {
import { ScrollGeomCache } from '@fullcalendar/interaction/scroll-geom-cache';
export { AutoScroller as default, AutoScroller };
class AutoScroller {
isEnabled: boolean;
scrollQuery: (Window | string)[];
edgeThreshold: number;
maxVelocity: number;
pointerScreenX: number | null;
pointerScreenY: number | null;
isAnimating: boolean;
scrollCaches: ScrollGeomCache[] | null;
msSinceRequest?: number;
everMovedUp: boolean;
everMovedDown: boolean;
everMovedLeft: boolean;
everMovedRight: boolean;
start(pageX: number, pageY: number): void;
handleMove(pageX: number, pageY: number): void;
stop(): void;
requestAnimation(now: number): void;
}
declare type EventDragStopArg = EventDragArg;
declare type EventDragStartArg = EventDragArg;
interface EventDragArg {
el: HTMLElement;
event: EventApi;
jsEvent: MouseEvent;
view: ViewApi;
}
interface EventDropArg {
el: HTMLElement;
delta: Duration;
oldEvent: EventApi;
event: EventApi;
revert: () => void;
jsEvent: MouseEvent;
view: ViewApi;
}
declare module '@fullcalendar/interaction/interactions-external/ExternalElementDragging' {
import { Hit, PointerDragEvent, EventTuple, DatePointApi, Calendar, EventInteractionState, DragMetaInput, DragMeta, ElementDragging, ViewApi } from '@fullcalendar/core';
import HitDragging from '@fullcalendar/interaction/interactions/HitDragging';
export type DragMetaGenerator = DragMetaInput | ((el: HTMLElement) => DragMetaInput);
export interface ExternalDropApi extends DatePointApi {
draggedEl: HTMLElement;
jsEvent: UIEvent;
view: ViewApi;
}
export { ExternalElementDragging as default, ExternalElementDragging };
class ExternalElementDragging {
hitDragging: HitDragging;
receivingCalendar: Calendar | null;
droppableEvent: EventTuple | null;
suppliedDragMeta: DragMetaGenerator | null;
dragMeta: DragMeta | null;
constructor(dragging: ElementDragging, suppliedDragMeta?: DragMetaGenerator);
handleDragStart: (ev: PointerDragEvent) => void;
buildDragMeta(subjectEl: HTMLElement): DragMeta;
handleHitUpdate: (hit: Hit, isFinal: boolean, ev: PointerDragEvent) => void;
handleDragEnd: (pev: PointerDragEvent) => void;
displayDrag(nextCalendar: Calendar | null, state: EventInteractionState): void;
clearDrag(): void;
canDropElOnCalendar(el: HTMLElement, receivingCalendar: Calendar): boolean;
}
declare type EventResizeStartArg = EventResizeStartStopArg;
declare type EventResizeStopArg = EventResizeStartStopArg;
interface EventResizeStartStopArg {
el: HTMLElement;
event: EventApi;
jsEvent: MouseEvent;
view: ViewApi;
}
interface EventResizeDoneArg {
el: HTMLElement;
startDelta: Duration;
endDelta: Duration;
prevEvent: EventApi;
event: EventApi;
revert: () => void;
jsEvent: MouseEvent;
view: ViewApi;
}
declare module '@fullcalendar/interaction/interactions-external/InferredElementDragging' {
import { PointerDragEvent, ElementDragging } from '@fullcalendar/core';
import PointerDragging from '@fullcalendar/interaction/dnd/PointerDragging';
export { InferredElementDragging as default, InferredElementDragging };
class InferredElementDragging extends ElementDragging {
pointer: PointerDragging;
shouldIgnoreMove: boolean;
mirrorSelector: string;
currentMirrorEl: HTMLElement | null;
constructor(containerEl: HTMLElement);
destroy(): void;
handlePointerDown: (ev: PointerDragEvent) => void;
handlePointerMove: (ev: PointerDragEvent) => void;
handlePointerUp: (ev: PointerDragEvent) => void;
setIgnoreMove(bool: boolean): void;
setMirrorIsVisible(bool: boolean): void;
}
interface DropArg extends DatePointApi {
draggedEl: HTMLElement;
jsEvent: MouseEvent;
view: ViewApi;
}
declare type EventReceiveArg = EventReceiveLeaveArg;
declare type EventLeaveArg = EventReceiveLeaveArg;
interface EventReceiveLeaveArg {
draggedEl: HTMLElement;
event: EventApi;
view: ViewApi;
}
declare module '@fullcalendar/interaction/scroll-geom-cache' {
import { Rect, ScrollController } from '@fullcalendar/core';
export abstract class ScrollGeomCache extends ScrollController {
clientRect: Rect;
origScrollTop: number;
origScrollLeft: number;
protected scrollController: ScrollController;
protected doesListening: boolean;
protected scrollTop: number;
protected scrollLeft: number;
protected scrollWidth: number;
protected scrollHeight: number;
protected clientWidth: number;
protected clientHeight: number;
constructor(scrollController: ScrollController, doesListening: boolean);
abstract getEventTarget(): EventTarget;
abstract computeClientRect(): Rect;
destroy(): void;
handleScroll: () => void;
getScrollTop(): number;
getScrollLeft(): number;
setScrollTop(top: number): void;
setScrollLeft(top: number): void;
getClientWidth(): number;
getClientHeight(): number;
getScrollWidth(): number;
getScrollHeight(): number;
handleScrollChange(): void;
declare const LISTENER_REFINERS: {
dateClick: Identity<(arg: DateClickArg) => void>;
eventDragStart: Identity<(arg: EventDragStartArg) => void>;
eventDragStop: Identity<(arg: EventDragStopArg) => void>;
eventDrop: Identity<(arg: EventDropArg) => void>;
eventResizeStart: Identity<(arg: EventResizeStartArg) => void>;
eventResizeStop: Identity<(arg: EventResizeStopArg) => void>;
eventResize: Identity<(arg: EventResizeDoneArg) => void>;
drop: Identity<(arg: DropArg) => void>;
eventReceive: Identity<(arg: EventReceiveArg) => void>;
eventLeave: Identity<(arg: EventLeaveArg) => void>;
};
declare type ExtraListenerRefiners = typeof LISTENER_REFINERS;
declare module '@fullcalendar/common' {
interface CalendarListenerRefiners extends ExtraListenerRefiners {
}
export class ElementScrollGeomCache extends ScrollGeomCache {
constructor(el: HTMLElement, doesListening: boolean);
getEventTarget(): EventTarget;
computeClientRect(): {
left: any;
right: number;
top: any;
bottom: number;
};
}
export class WindowScrollGeomCache extends ScrollGeomCache {
constructor(doesListening: boolean);
getEventTarget(): EventTarget;
computeClientRect(): Rect;
handleScrollChange(): void;
}
}
declare module '@fullcalendar/interaction/interactions/HitDragging' {
import { EmitterMixin, PointerDragEvent, Point, Hit, InteractionSettingsStore, ElementDragging } from '@fullcalendar/core';
import OffsetTracker from '@fullcalendar/interaction/OffsetTracker';
export { HitDragging as default, HitDragging };
class HitDragging {
droppableStore: InteractionSettingsStore;
dragging: ElementDragging;
emitter: EmitterMixin;
useSubjectCenter: boolean;
requireInitial: boolean;
offsetTrackers: {
[componentUid: string]: OffsetTracker;
};
initialHit: Hit | null;
movingHit: Hit | null;
finalHit: Hit | null;
coordAdjust?: Point;
constructor(dragging: ElementDragging, droppableStore: InteractionSettingsStore);
handlePointerDown: (ev: PointerDragEvent) => void;
processFirstCoord(ev: PointerDragEvent): void;
handleDragStart: (ev: PointerDragEvent) => void;
handleDragMove: (ev: PointerDragEvent) => void;
handlePointerUp: (ev: PointerDragEvent) => void;
handleDragEnd: (ev: PointerDragEvent) => void;
handleMove(ev: PointerDragEvent, forceHandle?: boolean): void;
prepareHits(): void;
releaseHits(): void;
queryHitForOffset(offsetLeft: number, offsetTop: number): Hit | null;
}
export function isHitsEqual(hit0: Hit | null, hit1: Hit | null): boolean;
declare type DragMetaGenerator = DragMetaInput | ((el: HTMLElement) => DragMetaInput);
interface ExternalDraggableSettings {
eventData?: DragMetaGenerator;
itemSelector?: string;
minDistance?: number;
longPressDelay?: number;
appendTo?: HTMLElement;
}
declare class ExternalDraggable {
dragging: FeaturefulElementDragging;
settings: ExternalDraggableSettings;
constructor(el: HTMLElement, settings?: ExternalDraggableSettings);
handlePointerDown: (ev: PointerDragEvent) => void;
handleDragStart: (ev: PointerDragEvent) => void;
destroy(): void;
}
declare module '@fullcalendar/interaction/OffsetTracker' {
import { Rect } from '@fullcalendar/core';
import { ElementScrollGeomCache } from '@fullcalendar/interaction/scroll-geom-cache';
export { OffsetTracker as default, OffsetTracker };
class OffsetTracker {
scrollCaches: ElementScrollGeomCache[];
origRect: Rect;
constructor(el: HTMLElement);
destroy(): void;
computeLeft(): number;
computeTop(): number;
isWithinClipping(pageX: number, pageY: number): boolean;
}
declare class InferredElementDragging extends ElementDragging {
pointer: PointerDragging;
shouldIgnoreMove: boolean;
mirrorSelector: string;
currentMirrorEl: HTMLElement | null;
constructor(containerEl: HTMLElement);
destroy(): void;
handlePointerDown: (ev: PointerDragEvent) => void;
handlePointerMove: (ev: PointerDragEvent) => void;
handlePointerUp: (ev: PointerDragEvent) => void;
setIgnoreMove(bool: boolean): void;
setMirrorIsVisible(bool: boolean): void;
}
interface ThirdPartyDraggableSettings {
eventData?: DragMetaGenerator;
itemSelector?: string;
mirrorSelector?: string;
}
declare class ThirdPartyDraggable {
dragging: InferredElementDragging;
constructor(containerOrSettings?: EventTarget | ThirdPartyDraggableSettings, settings?: ThirdPartyDraggableSettings);
destroy(): void;
}
declare const _default: PluginDef;
export default _default;
export { ExternalDraggable as Draggable, FeaturefulElementDragging, PointerDragging, ThirdPartyDraggable };
{
"name": "@fullcalendar/interaction",
"version": "5.0.0-beta.2",
"version": "5.0.0-beta.3",
"title": "FullCalendar Interaction Plugin",
"description": "Provides functionality for event drag-n-drop, resizing, dateClick, and selectable actions",
"keywords": [
"calendar",
"event",
"full-sized"
],
"docs": "https://fullcalendar.io/docs/editable",
"dependencies": {
"@fullcalendar/common": "5.0.0-beta.3",
"tslib": "^1.9.3"
},
"module": "main.js",
"types": "main.d.ts",
"homepage": "https://fullcalendar.io/",
"docs": "https://fullcalendar.io/docs/editable",
"bugs": "https://fullcalendar.io/reporting-bugs",

@@ -25,11 +26,3 @@ "repository": {

},
"copyright": "2019 Adam Shaw",
"dependencies": {
"tslib": "^1.9.3"
},
"peerDependencies": {
"@fullcalendar/core": "5.0.0-beta.2"
},
"main": "main.js",
"types": "main.d.ts"
"copyright": "2019 Adam Shaw"
}

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc