0.29.0 (2021-12-11)
⚠ BREAKING CHANGES
- angular 12 or higher is now required to use this package
- if you are implementing your own date adapter you will now need to implement the
getTimezoneOffset
method - week-view: Previously when resizing events the minimum event height would be calculated based on
hourSegments
, hourSegmentHeight
and hourDuration
. It now respects the minimumEventHeight
input instead.
To restore the old behaviour you will need to set minimumEventHeight
appropriately (by default it's 30
so should continue to work as expected for most users)
- when using the moment date formatter, the day view title format has changed to be locale aware. If you prefer the old behaviour you can restore it by overriding the
dayViewTitle
method in the moment date formatter like so:
class CustomMomentDateFormatter extends CalendarMomentDateFormatter {
public dayViewTitle({ date, locale }: DateFormatterParams): string {
return this.moment(date).locale(locale).format('dddd, D MMMM, YYYY');
}
}
- week-view: the drag behaviour now mimicks the resize behaviour where you can drag an event down to move it into the next day. To restore the old behaviour you can use the new
validateEventTimesChanged
input to control where an event can be dragged. - week-view: events on the week and day view will now always be at least 30 pixels high by default. To restore the old behaviour you can set
[minimumEventHeight]="1"
.
Features
- add support for rtl (caaf96c), closes #1203
- allow timezone offset to be overridden in the date adapter (96726e1)
- publish package in ivy partial compilation mode (29eb8c9), closes #1536
- week-view: add hourDuration option (6a72448), closes #1080
- week-view: add minimumEventHeight option (7789fda), closes #1192
- week-view: allow customising where events can be dragged (cd12d3c), closes #1183
- week-view: allow customising where events can be resized (ba45051), closes #1183
Bug Fixes
- use locale aware day view title for moment date formatter (acf93a3), closes #1396
- week-view: allow dragging events to span multiple days (ef5749c), closes #1234
- week-view: respect minimumEventHeight input when resizing (5f0f6be)