Build(blockers) DEV

This commit is contained in:
Matej Glasnák committed 2024-11-21 11:08:50 +01:00
1 parent b56aee8166
commit 9857aea0b3
2 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -444,7 +444,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var core
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n inject: [\"vuecal\", \"utils\", \"modules\", \"view\", \"domEvents\", \"editEvents\"],\n props: {\n cellFormattedDate: {\n type: String,\n default: \"\"\n },\n event: {\n type: Object,\n default: () => ({})\n },\n cellEvents: {\n type: Array,\n default: () => []\n },\n cellOverlaps: {\n type: Object,\n default: () => ({})\n },\n allOverlaps: {\n type: Object,\n default: () => ({})\n },\n // If multiple simultaneous events, the events are placed from left to right from the\n // one starting first to the last. (See utils/event.js > checkCellOverlappingEvents)\n eventPosition: {\n type: Number,\n default: 0\n },\n overlapsStreak: {\n type: Number,\n default: 0\n },\n allDay: {\n type: Boolean,\n default: false\n } // Is the event displayed in the all-day bar.\n },\n\n data: () => ({\n // Event touch detection with 30px threshold.\n touch: {\n dragThreshold: 30,\n // px.\n startX: 0,\n startY: 0,\n // Detect if the event touch start + touch end was a drag or a tap.\n // If it was a drag, don't call the event-click handler.\n dragged: false\n }\n }),\n methods: {\n /**\n * On event mousedown.\n * Do not prevent propagation to trigger cell mousedown which highlights the cell if not highlighted.\n */\n onMouseDown(e, touch = false) {\n // Prevent a double mouse down on touch devices.\n if (\"ontouchstart\" in window && !touch) return false;\n const {\n clickHoldAnEvent,\n focusAnEvent,\n resizeAnEvent,\n dragAnEvent\n } = this.domEvents;\n\n // If the delete button is already out and event is on focus then delete event.\n // Return true so the event-click function (if any) is not called.\n if (focusAnEvent._eid === this.event._eid && clickHoldAnEvent._eid === this.event._eid) {\n return true;\n }\n\n // Focus the clicked event.\n this.focusEvent();\n clickHoldAnEvent._eid = null; // Reinit click hold on each click.\n\n // Show event delete button.\n if (this.vuecal.editEvents.delete && this.event.deletable) {\n clickHoldAnEvent.timeoutId = setTimeout(() => {\n if (!resizeAnEvent._eid && !dragAnEvent._eid) {\n clickHoldAnEvent._eid = this.event._eid;\n this.event.deleting = true;\n }\n }, clickHoldAnEvent.timeout);\n }\n },\n /**\n * The mouseup handler is global (whole document) and initialized in index.vue on mounted.\n * It handles the mouseup on cell, events, and everything.\n * All mouseup on event, should be put there to avoid conflicts with other cases.\n * This function is also called on touchend on the event.\n */\n onMouseUp(e) {\n // Don't allow mouseup to be fired on different event than mousedown for the onEventClick function.\n if (this.domEvents.focusAnEvent._eid === this.event._eid && !this.touch.dragged) {\n // This is used in the global mouseup handler.\n this.domEvents.focusAnEvent.mousedUp = true;\n }\n this.touch.dragged = false; // After the touchend happens, reset the dragged flag.\n },\n\n onMouseEnter(e) {\n e.preventDefault();\n this.vuecal.emitWithEvent(\"event-mouse-enter\", this.event);\n },\n onMouseLeave(e) {\n e.preventDefault();\n this.vuecal.emitWithEvent(\"event-mouse-leave\", this.event);\n },\n // Detect if user taps on an event or drags it. If dragging, don't fire the event-click handler (if any).\n onTouchMove(e) {\n // Skip the maths if there is no event click handler.\n if (typeof this.vuecal.onEventClick !== \"function\") return;\n const {\n clientX,\n clientY\n } = e.touches[0];\n const {\n startX,\n startY,\n dragThreshold\n } = this.touch;\n if (Math.abs(clientX - startX) > dragThreshold || Math.abs(clientY - startY) > dragThreshold) {\n this.touch.dragged = true;\n }\n },\n onTouchStart(e) {\n this.touch.startX = e.touches[0].clientX;\n this.touch.startY = e.touches[0].clientY;\n this.onMouseDown(e, true);\n },\n onEnterKeypress(e) {\n if (typeof this.vuecal.onEventClick === \"function\") return this.vuecal.onEventClick(this.event, e);\n },\n onDblClick(e) {\n if (typeof this.vuecal.onEventDblclick === \"function\") return this.vuecal.onEventDblclick(this.event, e);\n },\n onDragStart(e) {\n if (this.event.type == 'blocker' || this.event.type == 'non-working-hours') return; //|| this.event._timeblock_is_finished || this.event.subtask?.is_finished\n this.event.draggingStatic = false;\n this.dnd && this.dnd.eventDragStart(e, this.event);\n },\n onD Line truncated
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n inject: [\"vuecal\", \"utils\", \"modules\", \"view\", \"domEvents\", \"editEvents\"],\n props: {\n cellFormattedDate: {\n type: String,\n default: \"\"\n },\n event: {\n type: Object,\n default: () => ({})\n },\n cellEvents: {\n type: Array,\n default: () => []\n },\n cellOverlaps: {\n type: Object,\n default: () => ({})\n },\n allOverlaps: {\n type: Object,\n default: () => ({})\n },\n // If multiple simultaneous events, the events are placed from left to right from the\n // one starting first to the last. (See utils/event.js > checkCellOverlappingEvents)\n eventPosition: {\n type: Number,\n default: 0\n },\n overlapsStreak: {\n type: Number,\n default: 0\n },\n allDay: {\n type: Boolean,\n default: false\n } // Is the event displayed in the all-day bar.\n },\n\n data: () => ({\n // Event touch detection with 30px threshold.\n touch: {\n dragThreshold: 30,\n // px.\n startX: 0,\n startY: 0,\n // Detect if the event touch start + touch end was a drag or a tap.\n // If it was a drag, don't call the event-click handler.\n dragged: false\n }\n }),\n methods: {\n /**\n * On event mousedown.\n * Do not prevent propagation to trigger cell mousedown which highlights the cell if not highlighted.\n */\n onMouseDown(e, touch = false) {\n // Prevent a double mouse down on touch devices.\n if (\"ontouchstart\" in window && !touch) return false;\n const {\n clickHoldAnEvent,\n focusAnEvent,\n resizeAnEvent,\n dragAnEvent\n } = this.domEvents;\n\n // If the delete button is already out and event is on focus then delete event.\n // Return true so the event-click function (if any) is not called.\n if (focusAnEvent._eid === this.event._eid && clickHoldAnEvent._eid === this.event._eid) {\n return true;\n }\n\n // Focus the clicked event.\n this.focusEvent();\n clickHoldAnEvent._eid = null; // Reinit click hold on each click.\n\n // Show event delete button.\n if (this.vuecal.editEvents.delete && this.event.deletable) {\n clickHoldAnEvent.timeoutId = setTimeout(() => {\n if (!resizeAnEvent._eid && !dragAnEvent._eid) {\n clickHoldAnEvent._eid = this.event._eid;\n this.event.deleting = true;\n }\n }, clickHoldAnEvent.timeout);\n }\n },\n /**\n * The mouseup handler is global (whole document) and initialized in index.vue on mounted.\n * It handles the mouseup on cell, events, and everything.\n * All mouseup on event, should be put there to avoid conflicts with other cases.\n * This function is also called on touchend on the event.\n */\n onMouseUp(e) {\n // Don't allow mouseup to be fired on different event than mousedown for the onEventClick function.\n if (this.domEvents.focusAnEvent._eid === this.event._eid && !this.touch.dragged) {\n // This is used in the global mouseup handler.\n this.domEvents.focusAnEvent.mousedUp = true;\n }\n this.touch.dragged = false; // After the touchend happens, reset the dragged flag.\n },\n\n onMouseEnter(e) {\n e.preventDefault();\n this.vuecal.emitWithEvent(\"event-mouse-enter\", this.event);\n },\n onMouseLeave(e) {\n e.preventDefault();\n this.vuecal.emitWithEvent(\"event-mouse-leave\", this.event);\n },\n // Detect if user taps on an event or drags it. If dragging, don't fire the event-click handler (if any).\n onTouchMove(e) {\n // Skip the maths if there is no event click handler.\n if (typeof this.vuecal.onEventClick !== \"function\") return;\n const {\n clientX,\n clientY\n } = e.touches[0];\n const {\n startX,\n startY,\n dragThreshold\n } = this.touch;\n if (Math.abs(clientX - startX) > dragThreshold || Math.abs(clientY - startY) > dragThreshold) {\n this.touch.dragged = true;\n }\n },\n onTouchStart(e) {\n this.touch.startX = e.touches[0].clientX;\n this.touch.startY = e.touches[0].clientY;\n this.onMouseDown(e, true);\n },\n onEnterKeypress(e) {\n if (typeof this.vuecal.onEventClick === \"function\") return this.vuecal.onEventClick(this.event, e);\n },\n onDblClick(e) {\n if (typeof this.vuecal.onEventDblclick === \"function\") return this.vuecal.onEventDblclick(this.event, e);\n },\n onDragStart(e) {\n if (this.event.type == 'blocker' || this.event.type == 'non-working-hours' || this.event.type == 'office365_blocker') return; //|| this.event._timeblock_is_finished || this.event.subtask?.is_finished\n this.event.draggingStatic = false;\n this.dnd && this.dnd.event Line truncated
/***/ }),