react-big-schedule 4.2.0 → 4.2.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.
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,19 @@
|
|
|
1
|
+
## 4.2.1
|
|
2
|
+
`2023-06-24`
|
|
3
|
+
|
|
4
|
+
- Updated Antd Version and added `@babel/cli` package [#39](https://github.com/ansulagrawal/react-big-schedule/pull/39) [@ansulagrawal](https://github.com/ansulagrawal)
|
|
5
|
+
- Fixes for calculating span and isEnd for events. [#35](https://github.com/ansulagrawal/react-big-schedule/pull/35) [@ansulagrawal](https://github.com/ansulagrawal)
|
|
6
|
+
|
|
7
|
+
## 4.2.0
|
|
8
|
+
`2023-06-17`
|
|
9
|
+
|
|
10
|
+
- Fix the default export file `index.js`.
|
|
11
|
+
- Remove `main.jsx` from the build directory.
|
|
12
|
+
- Fix Importing issue in projects as `src/index.js` file was not properly written.
|
|
13
|
+
- Added `type-definitions` for the library.
|
|
14
|
+
- Fix the locale for both library `antd` and `dayjs`.
|
|
15
|
+
- Fix the `package.json` main parameter value.
|
|
16
|
+
|
|
1
17
|
# [4.0.0](https://github.com/ansulagrawal/react-big-schedule/compare/3.0.2...4.0.0) (2023-06-17)
|
|
2
18
|
|
|
3
19
|
### Bug Fixes
|
|
@@ -302,7 +302,7 @@ var ResourceEvents = /*#__PURE__*/function (_Component) {
|
|
|
302
302
|
headerItem.events.forEach(function (evt, idx) {
|
|
303
303
|
if (idx < renderEventsMaxIndex && evt !== undefined && evt.render) {
|
|
304
304
|
var durationStart = localeDayjs(new Date(startDate));
|
|
305
|
-
var durationEnd = localeDayjs(endDate)
|
|
305
|
+
var durationEnd = localeDayjs(endDate);
|
|
306
306
|
if (cellUnit === _index.CellUnit.Hour) {
|
|
307
307
|
durationStart = localeDayjs(new Date(startDate)).add(config.dayStartFrom, 'hours');
|
|
308
308
|
durationEnd = localeDayjs(endDate).add(config.dayStopTo + 1, 'hours');
|
|
@@ -934,6 +934,8 @@ var SchedulerData = /*#__PURE__*/function () {
|
|
|
934
934
|
span = 0,
|
|
935
935
|
windowStart = new Date(this.startDate),
|
|
936
936
|
windowEnd = new Date(this.endDate);
|
|
937
|
+
windowStart.setHours(0, 0, 0, 0);
|
|
938
|
+
windowEnd.setHours(23, 59, 59);
|
|
937
939
|
if (this.viewType === _index.ViewType.Day) {
|
|
938
940
|
if (headers.length > 0) {
|
|
939
941
|
var day = new Date(headers[0].time);
|
|
@@ -948,17 +950,11 @@ var SchedulerData = /*#__PURE__*/function () {
|
|
|
948
950
|
span = Math.ceil(timeBetween(eventStart, eventEnd, 'minutes') / this.config.minuteStep);
|
|
949
951
|
}
|
|
950
952
|
}
|
|
951
|
-
} else if (this.viewType === _index.ViewType.Week) {
|
|
953
|
+
} else if (this.viewType === _index.ViewType.Week || this.viewType === _index.ViewType.Month || this.viewType === _index.ViewType.Quarter || this.viewType === _index.ViewType.Year) {
|
|
952
954
|
var startDate = windowStart < eventStart ? eventStart : windowStart;
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
var endDate = eventStart.getMonth() === eventEnd.getMonth() ? eventEnd : (0, _dayjs["default"])(eventStart).endOf('month').toDate();
|
|
956
|
-
span = Math.ceil(timeBetween(eventStart, endDate, 'days'));
|
|
957
|
-
} else if (this.viewType === _index.ViewType.Quarter || this.viewType === _index.ViewType.Year) {
|
|
958
|
-
span = Math.ceil(timeBetween(eventStart, eventEnd, 'days'));
|
|
955
|
+
var endDate = windowEnd > eventEnd ? eventEnd : windowEnd;
|
|
956
|
+
span = Math.ceil(timeBetween(startDate, endDate, 'days'));
|
|
959
957
|
} else {
|
|
960
|
-
windowStart.setHours(0, 0, 0, 0);
|
|
961
|
-
windowEnd.setHours(23, 59, 59);
|
|
962
958
|
if (this.cellUnit === _index.CellUnit.Day) {
|
|
963
959
|
eventEnd.setHours(23, 59, 59);
|
|
964
960
|
eventStart.setHours(0, 0, 0, 0);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-big-schedule",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.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",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
},
|
|
58
58
|
"dependencies": {
|
|
59
59
|
"@ant-design/icons": "^5.1.4",
|
|
60
|
-
"antd": "^5.6.
|
|
60
|
+
"antd": "^5.6.2",
|
|
61
61
|
"dayjs": "^1.11.8",
|
|
62
62
|
"prop-types": "^15.8.1",
|
|
63
63
|
"react": "^18.2.0",
|
|
@@ -67,6 +67,7 @@
|
|
|
67
67
|
"rrule": "^2.7.2"
|
|
68
68
|
},
|
|
69
69
|
"devDependencies": {
|
|
70
|
+
"@babel/cli": "^7.22.5",
|
|
70
71
|
"@babel/core": "^7.22.5",
|
|
71
72
|
"@babel/preset-env": "^7.22.5",
|
|
72
73
|
"@babel/preset-react": "^7.22.5",
|