Skip to content

Commit fe59aad

Browse files
author
Matt Lewis
committed
feat: upgrade calendar-utils
BREAKING CHANGE: the getWeekView function return signature has changed from an array of event rows to an object with the eventRows property set to the previous arrat value. This should only affect people overriding the CalendarUtils.getWeekView method.
1 parent 29b4237 commit fe59aad

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

package-lock.json

+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@
184184
"dependencies": {
185185
"angular-draggable-droppable": "^2.0.0",
186186
"angular-resizable-element": "^2.0.0",
187-
"calendar-utils": "0.0.59",
187+
"calendar-utils": "0.0.60",
188188
"date-fns": "^1.28.5",
189189
"positioning": "^1.3.1"
190190
}

src/modules/common/calendar-utils.provider.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ import {
88
WeekDay,
99
getWeekView,
1010
GetWeekViewArgs,
11-
WeekViewEventRow,
1211
getDayView,
1312
GetDayViewArgs,
1413
DayView,
1514
getDayViewHourGrid,
1615
GetDayViewHourGridArgs,
17-
DayViewHour
16+
DayViewHour,
17+
WeekView
1818
} from 'calendar-utils';
1919

2020
@Injectable()
@@ -27,7 +27,7 @@ export class CalendarUtils {
2727
return getWeekViewHeader(args);
2828
}
2929

30-
getWeekView(args: GetWeekViewArgs): WeekViewEventRow[] {
30+
getWeekView(args: GetWeekViewArgs): WeekView {
3131
return getWeekView(args);
3232
}
3333

src/modules/week/calendar-week-view.component.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ export class CalendarWeekViewComponent implements OnChanges, OnInit, OnDestroy {
414414
excluded: this.excludeDays,
415415
precision: this.precision,
416416
absolutePositionedEvents: true
417-
});
417+
}).eventRows;
418418
}
419419

420420
private refreshAll(): void {

0 commit comments

Comments
 (0)