react-big-schedule 4.4.3 → 4.4.4

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.
@@ -39,7 +39,7 @@ var stopDragHelper = function stopDragHelper(_ref) {
39
39
  while (whileTrue) {
40
40
  i = count > 0 ? i + 1 : i - 1;
41
41
  var date = localeDayjs(new Date(eventItem[dragType])).add(i, 'days');
42
- var dayOfWeek = date.weekday();
42
+ var dayOfWeek = date.day();
43
43
  if (dayOfWeek !== 0 && dayOfWeek !== 6) {
44
44
  tCount = count > 0 ? tCount + 1 : tCount - 1;
45
45
  if (tCount === count) {
@@ -736,7 +736,7 @@ var SchedulerData = /*#__PURE__*/function () {
736
736
  } else if (this.cellUnit === CellUnit.Day) {
737
737
  while (header >= start && header <= end) {
738
738
  var _time = header.format(DATETIME_FORMAT);
739
- var dayOfWeek = header.weekday();
739
+ var dayOfWeek = header.day();
740
740
  if (this.config.displayWeekend || dayOfWeek !== 0 && dayOfWeek !== 6) {
741
741
  var _nonWorkingTime = this.behaviors.isNonWorkingTimeFunc(this, _time);
742
742
  headers.push({
@@ -83,7 +83,7 @@ export var isNonWorkingTime = function isNonWorkingTime(schedulerData, time) {
83
83
  var hour = localeDayjs(new Date(time)).hour();
84
84
  return hour < 9 || hour > 18;
85
85
  }
86
- var dayOfWeek = localeDayjs(new Date(time)).weekday();
86
+ var dayOfWeek = localeDayjs(new Date(time)).day();
87
87
  return dayOfWeek === 0 || dayOfWeek === 6;
88
88
  };
89
89
  export default {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-big-schedule",
3
- "version": "4.4.3",
3
+ "version": "4.4.4",
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",