0.27.0 (2019-03-22)
Bug Fixes
- week-view: respect hourSegmentHeight when resizing events (241f7c3), closes #929
- allow events to be dragged back to their original location (0f69010), closes #847
- expose all track by fns to custom templates (d6fb3de)
- sanitise invalid hours and minutes on day and week view ranges (f54a5f5), closes #907
- day-view: set allDay to false when dragging events (c4c8bd5)
- week-view: handle dragging and resizing across excluded days (5d1c69a)
Features
- tooltip: add a configurable tooltip delay (#891) (07aec13), closes #790
- add sass mixins for easier theming (447aea9), closes #858
- month-view: add activeDay input to override the active day (864462b), closes #885
- month-view: add columnHeaderClicked output (2bd5e2b), closes #722
- week-view: track by a unique row id instead of the index (481eb02)
Performance Improvements
- only call beforeViewRender output once when changing view date (ec7021a)
- use correct track by on month rows and event actions (302170e)
BREAKING CHANGES
- all 3 views now have a default white background set. If you were relying on it being transparent before you will need to override with css. To migrate you can add this to your global CSS:
.cal-month-view, .cal-week-view, .cal-day-view {
background-color: initial;
}
- If overriding the main week view template, replace
*ngFor="let eventRow of view.allDayEventRows; trackBy:trackByIndex"
with
*ngFor="let eventRow of view.allDayEventRows; trackBy:trackById"
- If extending the
CalendarMonthViewComponent
you must add [ngStyle]="{ backgroundColor: day.backgroundColor }"
to the mwl-calendar-month-cell
component.
<a name="0.26.11"></a>