react-big-schedule 8.0.0 → 8.1.0

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.
@@ -1,4 +1,5 @@
1
1
  import PropTypes from 'prop-types';
2
+ import { DATE_FORMAT } from '../config/default';
2
3
  import AgendaEventItem from './AgendaEventItem';
3
4
  import { createElement as _createElement } from "react";
4
5
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
@@ -21,7 +22,8 @@ function AgendaResourceEvents(props) {
21
22
  const end = localeDayjs(endDate).add(1, 'days');
22
23
  const headerStart = localeDayjs(new Date(item.start));
23
24
  const headerEnd = localeDayjs(new Date(item.end));
24
- if (start === headerStart && end === headerEnd) {
25
+ // compare calendar dates: dayjs objects are never === each other
26
+ if (start.format(DATE_FORMAT) === headerStart.format(DATE_FORMAT) && end.format(DATE_FORMAT) === headerEnd.format(DATE_FORMAT)) {
25
27
  return item.events.map(evt => {
26
28
  const durationStart = localeDayjs(new Date(startDate));
27
29
  const durationEnd = localeDayjs(endDate).add(1, 'days');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-big-schedule",
3
- "version": "8.0.0",
3
+ "version": "8.1.0",
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",