makula-schedule 2.3.0 → 2.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -162,7 +162,8 @@ var DnDContext = exports["default"] = /*#__PURE__*/_createClass(function DnDCont
|
|
|
162
162
|
title: title,
|
|
163
163
|
eventItemHeight: config.eventItemHeight,
|
|
164
164
|
newStart: newStart,
|
|
165
|
-
newEnd: newEnd
|
|
165
|
+
newEnd: newEnd,
|
|
166
|
+
eventItem: isEvent ? item : null
|
|
166
167
|
};
|
|
167
168
|
}
|
|
168
169
|
},
|
|
@@ -39,7 +39,7 @@ function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new T
|
|
|
39
39
|
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
40
40
|
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
41
41
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
42
|
-
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
42
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
43
43
|
var ResourceEvents = /*#__PURE__*/function (_Component) {
|
|
44
44
|
function ResourceEvents(props) {
|
|
45
45
|
var _this;
|
|
@@ -461,14 +461,8 @@ var ResourceEvents = /*#__PURE__*/function (_Component) {
|
|
|
461
461
|
previewWidth = Math.max(1, totalWidth * _durationPercentage2);
|
|
462
462
|
}
|
|
463
463
|
}
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
style: {
|
|
467
|
-
left: previewLeft,
|
|
468
|
-
width: Math.max(0, previewWidth),
|
|
469
|
-
top: 1
|
|
470
|
-
}
|
|
471
|
-
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
464
|
+
var eventItemTemplateResolver = this.props.eventItemTemplateResolver;
|
|
465
|
+
var previewContent = /*#__PURE__*/_react["default"].createElement("div", {
|
|
472
466
|
className: "round-all event-item",
|
|
473
467
|
style: {
|
|
474
468
|
height: dropPreview.eventItemHeight,
|
|
@@ -479,7 +473,18 @@ var ResourceEvents = /*#__PURE__*/function (_Component) {
|
|
|
479
473
|
marginLeft: '10px',
|
|
480
474
|
lineHeight: "".concat(dropPreview.eventItemHeight, "px")
|
|
481
475
|
}
|
|
482
|
-
}, dropPreview.title))
|
|
476
|
+
}, dropPreview.title));
|
|
477
|
+
if (eventItemTemplateResolver && dropPreview.eventItem) {
|
|
478
|
+
previewContent = eventItemTemplateResolver(schedulerData, dropPreview.eventItem, dropPreview.bgColor, true, true, 'event-item', dropPreview.eventItemHeight, undefined);
|
|
479
|
+
}
|
|
480
|
+
dropPreviewElement = /*#__PURE__*/_react["default"].createElement("a", {
|
|
481
|
+
className: "timeline-event drop-preview",
|
|
482
|
+
style: {
|
|
483
|
+
left: previewLeft,
|
|
484
|
+
width: Math.max(0, previewWidth),
|
|
485
|
+
top: 1
|
|
486
|
+
}
|
|
487
|
+
}, previewContent);
|
|
483
488
|
}
|
|
484
489
|
var eventContainer = /*#__PURE__*/_react["default"].createElement("div", {
|
|
485
490
|
ref: this.eventContainerRef,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "makula-schedule",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.1",
|
|
4
4
|
"description": "React Big Schedule is a powerful and intuitive scheduler and resource planning solution built with React. Seamlessly integrate this modern browser-compatible component into your applications to effectively manage time, appointments, and resources. With drag-and-drop functionality, interactive UI, and granular views, react-big-schedule empowers users to effortlessly schedule and allocate resources with precision. Enhance productivity and streamline your workflow with this React-based solution, designed to optimize time management and simplify calendar-based operations. Perfect for applications requiring advanced scheduling capabilities, react-big-schedule offers a seamless and intuitive experience for managing appointments, resource allocation, and time slots. Unlock the potential of your React projects with react-big-schedule and revolutionize the way you handle scheduling and resource planning. It is the updated version of react-big-scheduler",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react-big-schedule",
|