react-big-calendar
Advanced tools
Comparing version 1.8.7 to 1.9.0
@@ -0,1 +1,8 @@ | ||
# [1.9.0](https://github.com/jquense/react-big-calendar/compare/v1.8.7...v1.9.0) (2024-02-07) | ||
### Features | ||
* showMore message add event info ([#2496](https://github.com/jquense/react-big-calendar/issues/2496)) ([18012b7](https://github.com/jquense/react-big-calendar/commit/18012b70ad48a5613bcb08f0a13251d88a9d258f)) | ||
## [1.8.7](https://github.com/jquense/react-big-calendar/compare/v1.8.6...v1.8.7) (2024-01-26) | ||
@@ -2,0 +9,0 @@ |
@@ -24,3 +24,5 @@ "use strict"; | ||
return isSegmentInSlot(seg, slot); | ||
}).length; | ||
}).map(function (seg) { | ||
return seg.event; | ||
}); | ||
}; | ||
@@ -83,3 +85,3 @@ var EventEndingRow = /*#__PURE__*/function (_React$Component) { | ||
return (0, _range.default)(slot, slot + span).every(function (s) { | ||
var count = eventsInSlot(segments, s); | ||
var count = eventsInSlot(segments, s).length; | ||
return count === 1; | ||
@@ -92,4 +94,8 @@ }); | ||
var _this = this; | ||
var localizer = this.props.localizer; | ||
var count = eventsInSlot(segments, slot); | ||
var _this$props2 = this.props, | ||
localizer = _this$props2.localizer, | ||
slotMetrics = _this$props2.slotMetrics; | ||
var events = slotMetrics.getEventsForSlot(slot); | ||
var remainingEvents = eventsInSlot(segments, slot); | ||
var count = remainingEvents.length; | ||
return count ? /*#__PURE__*/_react.default.createElement("button", { | ||
@@ -102,3 +108,3 @@ type: "button", | ||
} | ||
}, localizer.messages.showMore(count)) : false; | ||
}, localizer.messages.showMore(count, remainingEvents, events)) : false; | ||
} | ||
@@ -105,0 +111,0 @@ }, { |
{ | ||
"name": "react-big-calendar", | ||
"version": "1.8.7", | ||
"version": "1.9.0", | ||
"description": "Calendar! with events", | ||
@@ -5,0 +5,0 @@ "author": { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
2537843
55647