@@ -12,8 +12,6 @@ import {
12
12
TemplateRef
13
13
} from '@angular/core' ;
14
14
import {
15
- getDayView ,
16
- getDayViewHourGrid ,
17
15
CalendarEvent ,
18
16
DayView ,
19
17
DayViewHour ,
@@ -27,6 +25,7 @@ import addMinutes from 'date-fns/add_minutes';
27
25
import { CalendarDragHelper } from '../../providers/calendarDragHelper.provider' ;
28
26
import { CalendarResizeHelper } from '../../providers/calendarResizeHelper.provider' ;
29
27
import { CalendarEventTimesChangedEvent } from '../../interfaces/calendarEventTimesChangedEvent.interface' ;
28
+ import { CalendarUtils } from '../../providers/calendarUtils.provider' ;
30
29
31
30
/**
32
31
* @hidden
@@ -248,7 +247,7 @@ export class CalendarDayViewComponent implements OnChanges, OnInit, OnDestroy {
248
247
/**
249
248
* @hidden
250
249
*/
251
- constructor ( private cdr : ChangeDetectorRef , @Inject ( LOCALE_ID ) locale : string ) {
250
+ constructor ( private cdr : ChangeDetectorRef , private utils : CalendarUtils , @Inject ( LOCALE_ID ) locale : string ) {
252
251
this . locale = locale ;
253
252
}
254
253
@@ -373,7 +372,7 @@ export class CalendarDayViewComponent implements OnChanges, OnInit, OnDestroy {
373
372
}
374
373
375
374
private refreshHourGrid ( ) : void {
376
- this . hours = getDayViewHourGrid ( {
375
+ this . hours = this . utils . getDayViewHourGrid ( {
377
376
viewDate : this . viewDate ,
378
377
hourSegments : this . hourSegments ,
379
378
dayStart : {
@@ -393,7 +392,7 @@ export class CalendarDayViewComponent implements OnChanges, OnInit, OnDestroy {
393
392
}
394
393
395
394
private refreshView ( ) : void {
396
- this . view = getDayView ( {
395
+ this . view = this . utils . getDayView ( {
397
396
events : this . events ,
398
397
viewDate : this . viewDate ,
399
398
hourSegments : this . hourSegments ,
0 commit comments