vendor/assets/javascripts/fullcalendar.js in fullcalendar-3.8.1 vs vendor/assets/javascripts/fullcalendar.js in fullcalendar-3.8.2

- old
+ new

@@ -1,9 +1,9 @@ /*! - * FullCalendar v3.8.1 + * FullCalendar v3.8.2 * Docs & License: https://fullcalendar.io/ - * (c) 2017 Adam Shaw + * (c) 2018 Adam Shaw */ (function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(require("moment"), require("jquery")); else if(typeof define === 'function' && define.amd) @@ -1606,11 +1606,11 @@ Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = __webpack_require__(2); var EventDef_1 = __webpack_require__(33); var EventInstance_1 = __webpack_require__(209); -var EventDateProfile_1 = __webpack_require__(18); +var EventDateProfile_1 = __webpack_require__(17); var SingleEventDef = /** @class */ (function (_super) { tslib_1.__extends(SingleEventDef, _super); function SingleEventDef() { return _super !== null && _super.apply(this, arguments) || this; } @@ -1699,181 +1699,10 @@ exports.default = Mixin; /***/ }), /* 15 */ -/***/ (function(module, exports, __webpack_require__) { - -Object.defineProperty(exports, "__esModule", { value: true }); -var $ = __webpack_require__(3); -var exportHooks = __webpack_require__(17); -var EmitterMixin_1 = __webpack_require__(11); -var ListenerMixin_1 = __webpack_require__(7); -exportHooks.touchMouseIgnoreWait = 500; -var globalEmitter = null; -var neededCount = 0; -/* -Listens to document and window-level user-interaction events, like touch events and mouse events, -and fires these events as-is to whoever is observing a GlobalEmitter. -Best when used as a singleton via GlobalEmitter.get() - -Normalizes mouse/touch events. For examples: -- ignores the the simulated mouse events that happen after a quick tap: mousemove+mousedown+mouseup+click -- compensates for various buggy scenarios where a touchend does not fire -*/ -var GlobalEmitter = /** @class */ (function () { - function GlobalEmitter() { - this.isTouching = false; - this.mouseIgnoreDepth = 0; - } - // gets the singleton - GlobalEmitter.get = function () { - if (!globalEmitter) { - globalEmitter = new GlobalEmitter(); - globalEmitter.bind(); - } - return globalEmitter; - }; - // called when an object knows it will need a GlobalEmitter in the near future. - GlobalEmitter.needed = function () { - GlobalEmitter.get(); // ensures globalEmitter - neededCount++; - }; - // called when the object that originally called needed() doesn't need a GlobalEmitter anymore. - GlobalEmitter.unneeded = function () { - neededCount--; - if (!neededCount) { - globalEmitter.unbind(); - globalEmitter = null; - } - }; - GlobalEmitter.prototype.bind = function () { - var _this = this; - this.listenTo($(document), { - touchstart: this.handleTouchStart, - touchcancel: this.handleTouchCancel, - touchend: this.handleTouchEnd, - mousedown: this.handleMouseDown, - mousemove: this.handleMouseMove, - mouseup: this.handleMouseUp, - click: this.handleClick, - selectstart: this.handleSelectStart, - contextmenu: this.handleContextMenu - }); - // because we need to call preventDefault - // because https://www.chromestatus.com/features/5093566007214080 - // TODO: investigate performance because this is a global handler - window.addEventListener('touchmove', this.handleTouchMoveProxy = function (ev) { - _this.handleTouchMove($.Event(ev)); - }, { passive: false } // allows preventDefault() - ); - // attach a handler to get called when ANY scroll action happens on the page. - // this was impossible to do with normal on/off because 'scroll' doesn't bubble. - // http://stackoverflow.com/a/32954565/96342 - window.addEventListener('scroll', this.handleScrollProxy = function (ev) { - _this.handleScroll($.Event(ev)); - }, true // useCapture - ); - }; - GlobalEmitter.prototype.unbind = function () { - this.stopListeningTo($(document)); - window.removeEventListener('touchmove', this.handleTouchMoveProxy); - window.removeEventListener('scroll', this.handleScrollProxy, true // useCapture - ); - }; - // Touch Handlers - // ----------------------------------------------------------------------------------------------------------------- - GlobalEmitter.prototype.handleTouchStart = function (ev) { - // if a previous touch interaction never ended with a touchend, then implicitly end it, - // but since a new touch interaction is about to begin, don't start the mouse ignore period. - this.stopTouch(ev, true); // skipMouseIgnore=true - this.isTouching = true; - this.trigger('touchstart', ev); - }; - GlobalEmitter.prototype.handleTouchMove = function (ev) { - if (this.isTouching) { - this.trigger('touchmove', ev); - } - }; - GlobalEmitter.prototype.handleTouchCancel = function (ev) { - if (this.isTouching) { - this.trigger('touchcancel', ev); - // Have touchcancel fire an artificial touchend. That way, handlers won't need to listen to both. - // If touchend fires later, it won't have any effect b/c isTouching will be false. - this.stopTouch(ev); - } - }; - GlobalEmitter.prototype.handleTouchEnd = function (ev) { - this.stopTouch(ev); - }; - // Mouse Handlers - // ----------------------------------------------------------------------------------------------------------------- - GlobalEmitter.prototype.handleMouseDown = function (ev) { - if (!this.shouldIgnoreMouse()) { - this.trigger('mousedown', ev); - } - }; - GlobalEmitter.prototype.handleMouseMove = function (ev) { - if (!this.shouldIgnoreMouse()) { - this.trigger('mousemove', ev); - } - }; - GlobalEmitter.prototype.handleMouseUp = function (ev) { - if (!this.shouldIgnoreMouse()) { - this.trigger('mouseup', ev); - } - }; - GlobalEmitter.prototype.handleClick = function (ev) { - if (!this.shouldIgnoreMouse()) { - this.trigger('click', ev); - } - }; - // Misc Handlers - // ----------------------------------------------------------------------------------------------------------------- - GlobalEmitter.prototype.handleSelectStart = function (ev) { - this.trigger('selectstart', ev); - }; - GlobalEmitter.prototype.handleContextMenu = function (ev) { - this.trigger('contextmenu', ev); - }; - GlobalEmitter.prototype.handleScroll = function (ev) { - this.trigger('scroll', ev); - }; - // Utils - // ----------------------------------------------------------------------------------------------------------------- - GlobalEmitter.prototype.stopTouch = function (ev, skipMouseIgnore) { - if (skipMouseIgnore === void 0) { skipMouseIgnore = false; } - if (this.isTouching) { - this.isTouching = false; - this.trigger('touchend', ev); - if (!skipMouseIgnore) { - this.startTouchMouseIgnore(); - } - } - }; - GlobalEmitter.prototype.startTouchMouseIgnore = function () { - var _this = this; - var wait = exportHooks.touchMouseIgnoreWait; - if (wait) { - this.mouseIgnoreDepth++; - setTimeout(function () { - _this.mouseIgnoreDepth--; - }, wait); - } - }; - GlobalEmitter.prototype.shouldIgnoreMouse = function () { - return this.isTouching || Boolean(this.mouseIgnoreDepth); - }; - return GlobalEmitter; -}()); -exports.default = GlobalEmitter; -ListenerMixin_1.default.mixInto(GlobalEmitter); -EmitterMixin_1.default.mixInto(GlobalEmitter); - - -/***/ }), -/* 16 */ /***/ (function(module, exports) { Object.defineProperty(exports, "__esModule", { value: true }); var Interaction = /** @class */ (function () { function Interaction(component) { @@ -1890,15 +1719,15 @@ }()); exports.default = Interaction; /***/ }), -/* 17 */ +/* 16 */ /***/ (function(module, exports, __webpack_require__) { Object.defineProperty(exports, "__esModule", { value: true }); -exports.version = '3.8.1'; +exports.version = '3.8.2'; // When introducing internal API incompatibilities (where fullcalendar plugins would break), // the minor version of the calendar should be upped (ex: 2.7.2 -> 2.8.0) // and the below integer should be incremented. exports.internalApiVersion = 12; var util_1 = __webpack_require__(4); @@ -1958,11 +1787,11 @@ exports.EventSourceParser = EventSourceParser_1.default; var EventSource_1 = __webpack_require__(6); exports.EventSource = EventSource_1.default; var ThemeRegistry_1 = __webpack_require__(51); exports.defineThemeSystem = ThemeRegistry_1.defineThemeSystem; -var EventInstanceGroup_1 = __webpack_require__(19); +var EventInstanceGroup_1 = __webpack_require__(18); exports.EventInstanceGroup = EventInstanceGroup_1.default; var ArrayEventSource_1 = __webpack_require__(52); exports.ArrayEventSource = ArrayEventSource_1.default; var FuncEventSource_1 = __webpack_require__(215); exports.FuncEventSource = FuncEventSource_1.default; @@ -1976,11 +1805,11 @@ exports.Mixin = Mixin_1.default; var CoordCache_1 = __webpack_require__(53); exports.CoordCache = CoordCache_1.default; var DragListener_1 = __webpack_require__(54); exports.DragListener = DragListener_1.default; -var Promise_1 = __webpack_require__(20); +var Promise_1 = __webpack_require__(19); exports.Promise = Promise_1.default; var TaskQueue_1 = __webpack_require__(217); exports.TaskQueue = TaskQueue_1.default; var RenderQueue_1 = __webpack_require__(218); exports.RenderQueue = RenderQueue_1.default; @@ -2034,11 +1863,11 @@ var ListView_1 = __webpack_require__(230); exports.ListView = ListView_1.default; /***/ }), -/* 18 */ +/* 17 */ /***/ (function(module, exports, __webpack_require__) { Object.defineProperty(exports, "__esModule", { value: true }); var UnzonedRange_1 = __webpack_require__(5); /* @@ -2122,11 +1951,11 @@ }()); exports.default = EventDateProfile; /***/ }), -/* 19 */ +/* 18 */ /***/ (function(module, exports, __webpack_require__) { Object.defineProperty(exports, "__esModule", { value: true }); var UnzonedRange_1 = __webpack_require__(5); var util_1 = __webpack_require__(34); @@ -2188,11 +2017,11 @@ }()); exports.default = EventInstanceGroup; /***/ }), -/* 20 */ +/* 19 */ /***/ (function(module, exports, __webpack_require__) { Object.defineProperty(exports, "__esModule", { value: true }); var $ = __webpack_require__(3); var PromiseStub = { @@ -2241,15 +2070,186 @@ }; } /***/ }), +/* 20 */ +/***/ (function(module, exports, __webpack_require__) { + +Object.defineProperty(exports, "__esModule", { value: true }); +var $ = __webpack_require__(3); +var exportHooks = __webpack_require__(16); +var EmitterMixin_1 = __webpack_require__(11); +var ListenerMixin_1 = __webpack_require__(7); +exportHooks.touchMouseIgnoreWait = 500; +var globalEmitter = null; +var neededCount = 0; +/* +Listens to document and window-level user-interaction events, like touch events and mouse events, +and fires these events as-is to whoever is observing a GlobalEmitter. +Best when used as a singleton via GlobalEmitter.get() + +Normalizes mouse/touch events. For examples: +- ignores the the simulated mouse events that happen after a quick tap: mousemove+mousedown+mouseup+click +- compensates for various buggy scenarios where a touchend does not fire +*/ +var GlobalEmitter = /** @class */ (function () { + function GlobalEmitter() { + this.isTouching = false; + this.mouseIgnoreDepth = 0; + } + // gets the singleton + GlobalEmitter.get = function () { + if (!globalEmitter) { + globalEmitter = new GlobalEmitter(); + globalEmitter.bind(); + } + return globalEmitter; + }; + // called when an object knows it will need a GlobalEmitter in the near future. + GlobalEmitter.needed = function () { + GlobalEmitter.get(); // ensures globalEmitter + neededCount++; + }; + // called when the object that originally called needed() doesn't need a GlobalEmitter anymore. + GlobalEmitter.unneeded = function () { + neededCount--; + if (!neededCount) { + globalEmitter.unbind(); + globalEmitter = null; + } + }; + GlobalEmitter.prototype.bind = function () { + var _this = this; + this.listenTo($(document), { + touchstart: this.handleTouchStart, + touchcancel: this.handleTouchCancel, + touchend: this.handleTouchEnd, + mousedown: this.handleMouseDown, + mousemove: this.handleMouseMove, + mouseup: this.handleMouseUp, + click: this.handleClick, + selectstart: this.handleSelectStart, + contextmenu: this.handleContextMenu + }); + // because we need to call preventDefault + // because https://www.chromestatus.com/features/5093566007214080 + // TODO: investigate performance because this is a global handler + window.addEventListener('touchmove', this.handleTouchMoveProxy = function (ev) { + _this.handleTouchMove($.Event(ev)); + }, { passive: false } // allows preventDefault() + ); + // attach a handler to get called when ANY scroll action happens on the page. + // this was impossible to do with normal on/off because 'scroll' doesn't bubble. + // http://stackoverflow.com/a/32954565/96342 + window.addEventListener('scroll', this.handleScrollProxy = function (ev) { + _this.handleScroll($.Event(ev)); + }, true // useCapture + ); + }; + GlobalEmitter.prototype.unbind = function () { + this.stopListeningTo($(document)); + window.removeEventListener('touchmove', this.handleTouchMoveProxy); + window.removeEventListener('scroll', this.handleScrollProxy, true // useCapture + ); + }; + // Touch Handlers + // ----------------------------------------------------------------------------------------------------------------- + GlobalEmitter.prototype.handleTouchStart = function (ev) { + // if a previous touch interaction never ended with a touchend, then implicitly end it, + // but since a new touch interaction is about to begin, don't start the mouse ignore period. + this.stopTouch(ev, true); // skipMouseIgnore=true + this.isTouching = true; + this.trigger('touchstart', ev); + }; + GlobalEmitter.prototype.handleTouchMove = function (ev) { + if (this.isTouching) { + this.trigger('touchmove', ev); + } + }; + GlobalEmitter.prototype.handleTouchCancel = function (ev) { + if (this.isTouching) { + this.trigger('touchcancel', ev); + // Have touchcancel fire an artificial touchend. That way, handlers won't need to listen to both. + // If touchend fires later, it won't have any effect b/c isTouching will be false. + this.stopTouch(ev); + } + }; + GlobalEmitter.prototype.handleTouchEnd = function (ev) { + this.stopTouch(ev); + }; + // Mouse Handlers + // ----------------------------------------------------------------------------------------------------------------- + GlobalEmitter.prototype.handleMouseDown = function (ev) { + if (!this.shouldIgnoreMouse()) { + this.trigger('mousedown', ev); + } + }; + GlobalEmitter.prototype.handleMouseMove = function (ev) { + if (!this.shouldIgnoreMouse()) { + this.trigger('mousemove', ev); + } + }; + GlobalEmitter.prototype.handleMouseUp = function (ev) { + if (!this.shouldIgnoreMouse()) { + this.trigger('mouseup', ev); + } + }; + GlobalEmitter.prototype.handleClick = function (ev) { + if (!this.shouldIgnoreMouse()) { + this.trigger('click', ev); + } + }; + // Misc Handlers + // ----------------------------------------------------------------------------------------------------------------- + GlobalEmitter.prototype.handleSelectStart = function (ev) { + this.trigger('selectstart', ev); + }; + GlobalEmitter.prototype.handleContextMenu = function (ev) { + this.trigger('contextmenu', ev); + }; + GlobalEmitter.prototype.handleScroll = function (ev) { + this.trigger('scroll', ev); + }; + // Utils + // ----------------------------------------------------------------------------------------------------------------- + GlobalEmitter.prototype.stopTouch = function (ev, skipMouseIgnore) { + if (skipMouseIgnore === void 0) { skipMouseIgnore = false; } + if (this.isTouching) { + this.isTouching = false; + this.trigger('touchend', ev); + if (!skipMouseIgnore) { + this.startTouchMouseIgnore(); + } + } + }; + GlobalEmitter.prototype.startTouchMouseIgnore = function () { + var _this = this; + var wait = exportHooks.touchMouseIgnoreWait; + if (wait) { + this.mouseIgnoreDepth++; + setTimeout(function () { + _this.mouseIgnoreDepth--; + }, wait); + } + }; + GlobalEmitter.prototype.shouldIgnoreMouse = function () { + return this.isTouching || Boolean(this.mouseIgnoreDepth); + }; + return GlobalEmitter; +}()); +exports.default = GlobalEmitter; +ListenerMixin_1.default.mixInto(GlobalEmitter); +EmitterMixin_1.default.mixInto(GlobalEmitter); + + +/***/ }), /* 21 */ /***/ (function(module, exports, __webpack_require__) { Object.defineProperty(exports, "__esModule", { value: true }); -var exportHooks = __webpack_require__(17); +var exportHooks = __webpack_require__(16); exports.viewHash = {}; exportHooks.views = exports.viewHash; function defineView(viewName, viewConfig) { exports.viewHash[viewName] = viewConfig; } @@ -2435,11 +2435,11 @@ /***/ (function(module, exports, __webpack_require__) { Object.defineProperty(exports, "__esModule", { value: true }); var $ = __webpack_require__(3); var moment = __webpack_require__(0); -var exportHooks = __webpack_require__(17); +var exportHooks = __webpack_require__(16); var options_1 = __webpack_require__(31); var util_1 = __webpack_require__(4); exports.localeOptionHash = {}; exportHooks.locales = exports.localeOptionHash; // NOTE: can't guarantee any of these computations will run because not every locale has datepicker @@ -2961,11 +2961,11 @@ /* 36 */ /***/ (function(module, exports, __webpack_require__) { Object.defineProperty(exports, "__esModule", { value: true }); var util_1 = __webpack_require__(4); -var EventDateProfile_1 = __webpack_require__(18); +var EventDateProfile_1 = __webpack_require__(17); var EventDef_1 = __webpack_require__(33); var EventDefDateMutation_1 = __webpack_require__(50); var SingleEventDef_1 = __webpack_require__(13); var EventDefMutation = /** @class */ (function () { function EventDefMutation() { @@ -3256,11 +3256,11 @@ Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = __webpack_require__(2); var $ = __webpack_require__(3); var util_1 = __webpack_require__(4); var DateComponent_1 = __webpack_require__(219); -var GlobalEmitter_1 = __webpack_require__(15); +var GlobalEmitter_1 = __webpack_require__(20); var InteractiveDateComponent = /** @class */ (function (_super) { tslib_1.__extends(InteractiveDateComponent, _super); function InteractiveDateComponent(_view, _options) { var _this = _super.call(this, _view, _options) || this; // self-config, overridable by subclasses @@ -3514,11 +3514,11 @@ var moment = __webpack_require__(0); var util_1 = __webpack_require__(4); var RenderQueue_1 = __webpack_require__(218); var DateProfileGenerator_1 = __webpack_require__(221); var InteractiveDateComponent_1 = __webpack_require__(40); -var GlobalEmitter_1 = __webpack_require__(15); +var GlobalEmitter_1 = __webpack_require__(20); var UnzonedRange_1 = __webpack_require__(5); /* An abstract class from which other views inherit from ----------------------------------------------------------------------------------------------------------------------*/ var View = /** @class */ (function (_super) { tslib_1.__extends(View, _super); @@ -5202,11 +5202,11 @@ /* 50 */ /***/ (function(module, exports, __webpack_require__) { Object.defineProperty(exports, "__esModule", { value: true }); var util_1 = __webpack_require__(4); -var EventDateProfile_1 = __webpack_require__(18); +var EventDateProfile_1 = __webpack_require__(17); var EventDefDateMutation = /** @class */ (function () { function EventDefDateMutation() { this.clearEnd = false; this.forceTimed = false; this.forceAllDay = false; @@ -5368,11 +5368,11 @@ Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = __webpack_require__(2); var $ = __webpack_require__(3); var util_1 = __webpack_require__(4); -var Promise_1 = __webpack_require__(20); +var Promise_1 = __webpack_require__(19); var EventSource_1 = __webpack_require__(6); var SingleEventDef_1 = __webpack_require__(13); var ArrayEventSource = /** @class */ (function (_super) { tslib_1.__extends(ArrayEventSource, _super); function ArrayEventSource(calendar) { @@ -5645,11 +5645,11 @@ Object.defineProperty(exports, "__esModule", { value: true }); var $ = __webpack_require__(3); var util_1 = __webpack_require__(4); var ListenerMixin_1 = __webpack_require__(7); -var GlobalEmitter_1 = __webpack_require__(15); +var GlobalEmitter_1 = __webpack_require__(20); /* Tracks a drag's mouse movement, firing various handlers ----------------------------------------------------------------------------------------------------------------------*/ // TODO: use Emitter var DragListener = /** @class */ (function () { function DragListener(options) { @@ -6576,12 +6576,12 @@ /* 59 */ /***/ (function(module, exports, __webpack_require__) { Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = __webpack_require__(2); -var GlobalEmitter_1 = __webpack_require__(15); -var Interaction_1 = __webpack_require__(16); +var GlobalEmitter_1 = __webpack_require__(20); +var Interaction_1 = __webpack_require__(15); var EventPointing = /** @class */ (function (_super) { tslib_1.__extends(EventPointing, _super); function EventPointing() { return _super !== null && _super.apply(this, arguments) || this; } @@ -8058,11 +8058,11 @@ var tslib_1 = __webpack_require__(2); var $ = __webpack_require__(3); var moment = __webpack_require__(0); var EventDef_1 = __webpack_require__(33); var EventInstance_1 = __webpack_require__(209); -var EventDateProfile_1 = __webpack_require__(18); +var EventDateProfile_1 = __webpack_require__(17); var RecurringEventDef = /** @class */ (function (_super) { tslib_1.__extends(RecurringEventDef, _super); function RecurringEventDef() { return _super !== null && _super.apply(this, arguments) || this; } @@ -8172,11 +8172,11 @@ /***/ (function(module, exports, __webpack_require__) { Object.defineProperty(exports, "__esModule", { value: true }); var $ = __webpack_require__(3); var util_1 = __webpack_require__(34); -var EventInstanceGroup_1 = __webpack_require__(19); +var EventInstanceGroup_1 = __webpack_require__(18); var RecurringEventDef_1 = __webpack_require__(210); var EventSource_1 = __webpack_require__(6); var BUSINESS_HOUR_EVENT_DEFAULTS = { start: '09:00', end: '17:00', @@ -8340,11 +8340,11 @@ /***/ (function(module, exports, __webpack_require__) { Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = __webpack_require__(2); var $ = __webpack_require__(3); -var Promise_1 = __webpack_require__(20); +var Promise_1 = __webpack_require__(19); var EventSource_1 = __webpack_require__(6); var FuncEventSource = /** @class */ (function (_super) { tslib_1.__extends(FuncEventSource, _super); function FuncEventSource() { return _super !== null && _super.apply(this, arguments) || this; @@ -8395,11 +8395,11 @@ Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = __webpack_require__(2); var $ = __webpack_require__(3); var util_1 = __webpack_require__(4); -var Promise_1 = __webpack_require__(20); +var Promise_1 = __webpack_require__(19); var EventSource_1 = __webpack_require__(6); var JsonFeedEventSource = /** @class */ (function (_super) { tslib_1.__extends(JsonFeedEventSource, _super); function JsonFeedEventSource() { return _super !== null && _super.apply(this, arguments) || this; @@ -9284,22 +9284,22 @@ var $ = __webpack_require__(3); var moment = __webpack_require__(0); var util_1 = __webpack_require__(4); var options_1 = __webpack_require__(31); var Iterator_1 = __webpack_require__(238); -var GlobalEmitter_1 = __webpack_require__(15); +var GlobalEmitter_1 = __webpack_require__(20); var EmitterMixin_1 = __webpack_require__(11); var ListenerMixin_1 = __webpack_require__(7); var Toolbar_1 = __webpack_require__(239); var OptionsManager_1 = __webpack_require__(240); var ViewSpecManager_1 = __webpack_require__(241); var Constraints_1 = __webpack_require__(207); var locale_1 = __webpack_require__(30); var moment_ext_1 = __webpack_require__(10); var UnzonedRange_1 = __webpack_require__(5); var ComponentFootprint_1 = __webpack_require__(12); -var EventDateProfile_1 = __webpack_require__(18); +var EventDateProfile_1 = __webpack_require__(17); var EventManager_1 = __webpack_require__(242); var BusinessHourGenerator_1 = __webpack_require__(212); var EventSourceParser_1 = __webpack_require__(37); var EventDefParser_1 = __webpack_require__(49); var SingleEventDef_1 = __webpack_require__(13); @@ -10494,19 +10494,19 @@ Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = __webpack_require__(2); var $ = __webpack_require__(3); var moment = __webpack_require__(0); -var exportHooks = __webpack_require__(17); +var exportHooks = __webpack_require__(16); var util_1 = __webpack_require__(4); var moment_ext_1 = __webpack_require__(10); var ListenerMixin_1 = __webpack_require__(7); var HitDragListener_1 = __webpack_require__(22); var SingleEventDef_1 = __webpack_require__(13); -var EventInstanceGroup_1 = __webpack_require__(19); +var EventInstanceGroup_1 = __webpack_require__(18); var EventSource_1 = __webpack_require__(6); -var Interaction_1 = __webpack_require__(16); +var Interaction_1 = __webpack_require__(15); var ExternalDropping = /** @class */ (function (_super) { tslib_1.__extends(ExternalDropping, _super); function ExternalDropping() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.isDragging = false; // jqui-dragging an external element? boolean @@ -10712,11 +10712,11 @@ var $ = __webpack_require__(3); var util_1 = __webpack_require__(4); var EventDefMutation_1 = __webpack_require__(36); var EventDefDateMutation_1 = __webpack_require__(50); var HitDragListener_1 = __webpack_require__(22); -var Interaction_1 = __webpack_require__(16); +var Interaction_1 = __webpack_require__(15); var EventResizing = /** @class */ (function (_super) { tslib_1.__extends(EventResizing, _super); /* component impements: - bindSegHandlerToEl @@ -10905,12 +10905,11 @@ var EventDefMutation_1 = __webpack_require__(36); var EventDefDateMutation_1 = __webpack_require__(50); var DragListener_1 = __webpack_require__(54); var HitDragListener_1 = __webpack_require__(22); var MouseFollower_1 = __webpack_require__(244); -var GlobalEmitter_1 = __webpack_require__(15); -var Interaction_1 = __webpack_require__(16); +var Interaction_1 = __webpack_require__(15); var EventDragging = /** @class */ (function (_super) { tslib_1.__extends(EventDragging, _super); /* component implements: - bindSegHandlerToEl @@ -10941,29 +10940,27 @@ var component = this.component; component.bindSegHandlerToEl(el, 'mousedown', this.handleMousedown.bind(this)); component.bindSegHandlerToEl(el, 'touchstart', this.handleTouchStart.bind(this)); }; EventDragging.prototype.handleMousedown = function (seg, ev) { - if (!GlobalEmitter_1.default.get().shouldIgnoreMouse() && // TODO: move to a deeper level + if (!this.component.shouldIgnoreMouse() && this.component.canStartDrag(seg, ev)) { this.buildDragListener(seg).startInteraction(ev, { distance: 5 }); } }; EventDragging.prototype.handleTouchStart = function (seg, ev) { var component = this.component; var settings = { delay: this.view.isEventDefSelected(seg.footprint.eventDef) ? // already selected? 0 : this.getSelectionDelay() }; - if (!GlobalEmitter_1.default.get().shouldIgnoreMouse()) { - if (component.canStartDrag(seg, ev)) { - this.buildDragListener(seg).startInteraction(ev, settings); - } - else if (component.canStartSelection(seg, ev)) { - this.buildSelectListener(seg).startInteraction(ev, settings); - } + if (component.canStartDrag(seg, ev)) { + this.buildDragListener(seg).startInteraction(ev, settings); } + else if (component.canStartSelection(seg, ev)) { + this.buildSelectListener(seg).startInteraction(ev, settings); + } }; // seg isn't draggable, but let's use a generic DragListener // simply for the delay, so it can be selected. // Has side effect of setting/unsetting `dragListener` EventDragging.prototype.buildSelectListener = function (seg) { @@ -11180,11 +11177,11 @@ var tslib_1 = __webpack_require__(2); var util_1 = __webpack_require__(4); var HitDragListener_1 = __webpack_require__(22); var ComponentFootprint_1 = __webpack_require__(12); var UnzonedRange_1 = __webpack_require__(5); -var Interaction_1 = __webpack_require__(16); +var Interaction_1 = __webpack_require__(15); var DateSelecting = /** @class */ (function (_super) { tslib_1.__extends(DateSelecting, _super); /* component must implement: - bindDateHandlerToEl @@ -12372,11 +12369,11 @@ /* 235 */, /* 236 */ /***/ (function(module, exports, __webpack_require__) { var $ = __webpack_require__(3); -var exportHooks = __webpack_require__(17); +var exportHooks = __webpack_require__(16); var util_1 = __webpack_require__(4); var Calendar_1 = __webpack_require__(220); // for intentional side-effects __webpack_require__(10); __webpack_require__(47); @@ -12997,11 +12994,11 @@ var EventPeriod_1 = __webpack_require__(243); var ArrayEventSource_1 = __webpack_require__(52); var EventSource_1 = __webpack_require__(6); var EventSourceParser_1 = __webpack_require__(37); var SingleEventDef_1 = __webpack_require__(13); -var EventInstanceGroup_1 = __webpack_require__(19); +var EventInstanceGroup_1 = __webpack_require__(18); var EmitterMixin_1 = __webpack_require__(11); var ListenerMixin_1 = __webpack_require__(7); var EventManager = /** @class */ (function () { function EventManager(calendar) { this.calendar = calendar; @@ -13254,14 +13251,14 @@ /***/ (function(module, exports, __webpack_require__) { Object.defineProperty(exports, "__esModule", { value: true }); var $ = __webpack_require__(3); var util_1 = __webpack_require__(4); -var Promise_1 = __webpack_require__(20); +var Promise_1 = __webpack_require__(19); var EmitterMixin_1 = __webpack_require__(11); var UnzonedRange_1 = __webpack_require__(5); -var EventInstanceGroup_1 = __webpack_require__(19); +var EventInstanceGroup_1 = __webpack_require__(18); var EventPeriod = /** @class */ (function () { function EventPeriod(start, end, timezone) { this.pendingCnt = 0; this.freezeDepth = 0; this.stuntedReleaseCnt = 0; @@ -13650,10 +13647,10 @@ /***/ (function(module, exports, __webpack_require__) { Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = __webpack_require__(2); var HitDragListener_1 = __webpack_require__(22); -var Interaction_1 = __webpack_require__(16); +var Interaction_1 = __webpack_require__(15); var DateClicking = /** @class */ (function (_super) { tslib_1.__extends(DateClicking, _super); /* component must implement: - bindDateHandlerToEl \ No newline at end of file