react-big-schedule 5.4.5-beta.1 → 5.4.5

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.
package/README.md CHANGED
@@ -1,13 +1,11 @@
1
1
  # React Big Schedule (react-big-schedule)
2
2
 
3
- [![NPM version][npm-image]][npm-url] [![MIT License][mit-image]][mit-url] [![CodeQL][codeql-image]][codeql-url] [![CodeFactor][codeFactor-badge]][codeFactor-link]
3
+ [![NPM version][npm-image]][npm-url] [![MIT License][mit-image]][mit-url] [![CodeFactor][codeFactor-badge]][codeFactor-link]
4
4
 
5
5
  [npm-image]: http://img.shields.io/npm/v/react-big-schedule.svg
6
6
  [npm-url]: http://npmjs.org/package/react-big-schedule
7
7
  [mit-image]: https://img.shields.io/badge/License-MIT-green.svg
8
8
  [mit-url]: https://github.com/ansulagrawal/react-big-schedule/blob/master/LICENSE
9
- [codeql-image]: https://github.com/ansulagrawal/react-big-schedule/actions/workflows/github-code-scanning/codeql/badge.svg?branch=master
10
- [codeql-url]: https://github.com/ansulagrawal/react-big-schedule/actions/workflows/github-code-scanning/codeql
11
9
  [codeFactor-badge]: https://www.codefactor.io/repository/github/ansulagrawal/react-big-schedule/badge
12
10
  [codeFactor-link]: https://www.codefactor.io/repository/github/ansulagrawal/react-big-schedule
13
11
 
@@ -97,9 +95,6 @@ We would like to acknowledge the following projects for their inspiration and co
97
95
 
98
96
  We are continuously working on enhancing react-big-schedule and welcome your feedback and suggestions for future improvements.
99
97
 
100
- ## Changelog
101
-
102
- Please refer to the [CHANGELOG.md](https://github.com/ansulagrawal/react-big-schedule/blob/master/CHANGELOG.md) file.
103
98
 
104
99
  ## Use and Setup
105
100
 
@@ -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,15 @@ 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
+ // Only extend to end-of-day if the event does not end exactly at midnight
1054
+ // (midnight = start of the day, treated as exclusive by the header-item check)
1055
+ if (endDate.getHours() !== 0 || endDate.getMinutes() !== 0 || endDate.getSeconds() !== 0) {
1056
+ endDate.setHours(23, 59, 59, 0);
1057
+ } else {
1058
+ endDate.setDate(endDate.getDate() - 1);
1059
+ endDate.setHours(23, 59, 59, 0);
1060
+ }
1052
1061
  span = Math.ceil(timeBetween(startDate, endDate, 'days'));
1053
1062
  } else {
1054
1063
  if (this.cellUnit === _default.CellUnit.Day) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-big-schedule",
3
- "version": "5.4.5-beta.1",
3
+ "version": "5.4.5",
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",
@@ -71,7 +71,7 @@
71
71
  "react": "^19.2.4",
72
72
  "react-dnd": "^16.0.1",
73
73
  "react-dnd-html5-backend": "^16.0.1",
74
- "react-dom": "^19.2.3",
74
+ "react-dom": "^19.2.4",
75
75
  "react-router-dom": "^7.13.0",
76
76
  "rrule": "^2.8.1"
77
77
  },
@@ -79,11 +79,11 @@
79
79
  "@babel/cli": "^7.28.6",
80
80
  "@babel/core": "^7.28.5",
81
81
  "@babel/eslint-parser": "^7.28.6",
82
- "@babel/preset-env": "^7.28.6",
82
+ "@babel/preset-env": "^7.29.0",
83
83
  "@babel/preset-react": "^7.28.5",
84
84
  "babel-loader": "^10.0.0",
85
85
  "copy-webpack-plugin": "^13.0.1",
86
- "css-loader": "^7.1.2",
86
+ "css-loader": "^7.1.3",
87
87
  "eslint": "^9.39.2",
88
88
  "eslint-config-prettier": "^10.1.8",
89
89
  "eslint-plugin-import": "^2.32.0",