mirror of https://github.com/ColorlibHQ/AdminLTE
1 line
174 KiB
Plaintext
1 line
174 KiB
Plaintext
|
{"version":3,"file":"main.js","sources":["../../../tmp/tsc-output/packages/interaction/src/dnd/PointerDragging.js","../../../tmp/tsc-output/packages/interaction/src/dnd/ElementMirror.js","../../../tmp/tsc-output/packages/interaction/src/scroll-geom-cache.js","../../../tmp/tsc-output/packages/interaction/src/dnd/AutoScroller.js","../../../tmp/tsc-output/packages/interaction/src/dnd/FeaturefulElementDragging.js","../../../tmp/tsc-output/packages/interaction/src/OffsetTracker.js","../../../tmp/tsc-output/packages/interaction/src/interactions/HitDragging.js","../../../tmp/tsc-output/packages/interaction/src/interactions/DateClicking.js","../../../tmp/tsc-output/packages/interaction/src/interactions/DateSelecting.js","../../../tmp/tsc-output/packages/interaction/src/interactions/EventDragging.js","../../../tmp/tsc-output/packages/interaction/src/interactions/EventResizing.js","../../../tmp/tsc-output/packages/interaction/src/interactions/UnselectAuto.js","../../../tmp/tsc-output/packages/interaction/src/interactions-external/ExternalElementDragging.js","../../../tmp/tsc-output/packages/interaction/src/interactions-external/ExternalDraggable.js","../../../tmp/tsc-output/packages/interaction/src/interactions-external/InferredElementDragging.js","../../../tmp/tsc-output/packages/interaction/src/interactions-external/ThirdPartyDraggable.js","../../../tmp/tsc-output/packages/interaction/src/main.js"],"sourcesContent":["import { config, elementClosest, EmitterMixin } from '@fullcalendar/core';\nconfig.touchMouseIgnoreWait = 500;\nvar ignoreMouseDepth = 0;\nvar listenerCnt = 0;\nvar isWindowTouchMoveCancelled = false;\n/*\nUses a \"pointer\" abstraction, which monitors UI events for both mouse and touch.\nTracks when the pointer \"drags\" on a certain element, meaning down+move+up.\n\nAlso, tracks if there was touch-scrolling.\nAlso, can prevent touch-scrolling from happening.\nAlso, can fire pointermove events when scrolling happens underneath, even when no real pointer movement.\n\nemits:\n- pointerdown\n- pointermove\n- pointerup\n*/\nvar PointerDragging = /** @class */ (function () {\n function PointerDragging(containerEl) {\n var _this = this;\n this.subjectEl = null;\n this.downEl = null;\n // options that can be directly assigned by caller\n this.selector = ''; // will cause subjectEl in all emitted events to be this element\n this.handleSelector = '';\n this.shouldIgnoreMove = false;\n this.shouldWatchScroll = true; // for simulating pointermove on scroll\n // internal states\n this.isDragging = false;\n this.isTouchDragging = false;\n this.wasTouchScroll = false;\n // Mouse\n // ----------------------------------------------------------------------------------------------------\n this.handleMouseDown = function (ev) {\n if (!_this.shouldIgnoreMouse() &&\n isPrimaryMouseButton(ev) &&\n _this.tryStart(ev)) {\n var pev = _this.createEventFromMouse(ev, true);\n _this.emitter.trigger('pointerdown', pev);\n _this.initScrollWatch(pev);\n if (!_this.shouldIgnoreMove) {\n document.addEventListener('mousemove', _this.handleMouseMove);\n }\n document.addEventListener('mouseup', _this.handleMouseUp);\n }\n };\n this.handleMouseMove = function (ev) {\n var pev = _this.createEventFromMouse(ev);\n _this.recordCoords(pev);\n _this.emitter.trigger('pointermove', pev);\n };\n this.handleMouseUp = function (ev) {\n document.removeEventListener('mousemove', _this.handleMouseMove);\n document.removeEventListener('mouseup', _this.handleMouseUp);\n _this.emitter.trigger('pointerup', _this.createEventFromMouse(ev));\n _this.cleanup(); // call last so that pointerup has access to props\n };\n // Touch\n // ------------------------------------------------------
|