makula-schedule 2.0.0 → 2.0.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.
@@ -48,10 +48,10 @@ var SchedulerData = exports["default"] = /*#__PURE__*/function () {
48
48
  this.schedulerHeaderHeight = 0;
49
49
  this._shouldReloadViewType = false;
50
50
  this.calendarPopoverLocale = undefined;
51
- _dayjs["default"].extend(_isoWeek["default"]);
52
51
  _dayjs["default"].extend(_quarterOfYear["default"]);
53
52
  _dayjs["default"].extend(_weekday["default"]);
54
53
  _dayjs["default"].extend(_utc["default"]);
54
+ _dayjs["default"].extend(_isoWeek["default"]);
55
55
  this.localeDayjs = _dayjs["default"];
56
56
  this.config = newConfig === undefined ? _scheduler["default"] : _objectSpread(_objectSpread({}, _scheduler["default"]), newConfig);
57
57
  this._updateLabelsFromI18n();
@@ -1003,7 +1003,7 @@ var SchedulerData = exports["default"] = /*#__PURE__*/function () {
1003
1003
  if (this.showAgenda) return 1;
1004
1004
  var timeBetween = function timeBetween(date1, date2, timeIn) {
1005
1005
  if (timeIn === 'days' || timeIn === 'day') {
1006
- if (date1.getDate() === date2.getDate() && date1.getMonth() === date2.getMonth()) {
1006
+ if (date1.getDate() === date2.getDate() && date1.getMonth() === date2.getMonth() && date1.getFullYear() === date2.getFullYear()) {
1007
1007
  return 1;
1008
1008
  }
1009
1009
  }
@@ -1049,6 +1049,8 @@ var SchedulerData = exports["default"] = /*#__PURE__*/function () {
1049
1049
  } else if (this.viewType === _default.ViewType.Week || this.viewType === _default.ViewType.Month || this.viewType === _default.ViewType.Quarter || this.viewType === _default.ViewType.Year) {
1050
1050
  var startDate = windowStart < eventStart ? eventStart : windowStart;
1051
1051
  var endDate = windowEnd > eventEnd ? eventEnd : windowEnd;
1052
+ startDate.setHours(0, 0, 0, 0);
1053
+ endDate.setHours(23, 59, 59);
1052
1054
  span = Math.ceil(timeBetween(startDate, endDate, 'days'));
1053
1055
  } else {
1054
1056
  if (this.cellUnit === _default.CellUnit.Day) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "makula-schedule",
3
- "version": "2.0.0",
3
+ "version": "2.0.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",