@@ -35,7 +35,7 @@ const HORIZONTAL = 'horizontal';
3535const toMs = dateUtils . dateToMilliseconds ;
3636
3737class SchedulerTimeline extends SchedulerWorkSpace {
38- _ $sidebarTable : any ;
38+ protected override $sidebarTable : any ;
3939
4040 get verticalGroupTableClass ( ) { return GROUP_TABLE_CLASS ; }
4141
@@ -44,7 +44,7 @@ class SchedulerTimeline extends SchedulerWorkSpace {
4444 get renovatedHeaderPanelComponent ( ) { return HeaderPanelTimelineComponent ; }
4545
4646 getGroupTableWidth ( ) {
47- return this . _ $sidebarTable ? getOuterWidth ( this . _ $sidebarTable) : 0 ;
47+ return this . $sidebarTable ? getOuterWidth ( this . $sidebarTable ) : 0 ;
4848 }
4949
5050 protected override getTotalRowCount ( groupCount ) {
@@ -96,19 +96,17 @@ class SchedulerTimeline extends SchedulerWorkSpace {
9696 if ( this . _isHorizontalGroupedWorkSpace ( ) ) {
9797 return this . _$thead ;
9898 }
99- return this . _ $sidebarTable;
99+ return this . $sidebarTable ;
100100 }
101101
102102 protected override insertAllDayRowsIntoDateTable ( ) {
103103 return false ;
104104 }
105105
106- // Overridden in SchedulerTimelineDay, SchedulerTimelineWeek
107106 protected needRenderWeekHeader ( ) {
108107 return false ;
109108 }
110109
111- // Overridden in SchedulerTimelineWeek, SchedulerTimelineWorkWeek
112110 protected incrementDate ( date ) {
113111 date . setDate ( date . getDate ( ) + 1 ) ;
114112 }
@@ -132,20 +130,19 @@ class SchedulerTimeline extends SchedulerWorkSpace {
132130 return today . getTime ( ) - date . getTime ( ) ;
133131 }
134132
135- // Overridden in SchedulerTimelineMonth
136133 protected calculateDurationInCells ( timeDiff ) {
137134 const today = this . getToday ( ) ;
138135 const differenceInDays = Math . floor ( timeDiff / toMs ( 'day' ) ) ;
139136 let duration = ( timeDiff - differenceInDays * toMs ( 'day' ) - ( this . option ( 'startDayHour' ) as any ) * toMs ( 'hour' ) ) / this . getCellDuration ( ) ;
140137
141138 if ( today . getHours ( ) > ( this . option ( 'endDayHour' ) as any ) ) {
142- duration = this . getCellCountInDay ( ) ;
139+ duration = this . _getCellCountInDay ( ) ;
143140 }
144141
145142 if ( duration < 0 ) {
146143 duration = 0 ;
147144 }
148- return differenceInDays * this . getCellCountInDay ( ) + duration ;
145+ return differenceInDays * this . _getCellCountInDay ( ) + duration ;
149146 }
150147
151148 getIndicationWidth ( ) {
@@ -159,19 +156,19 @@ class SchedulerTimeline extends SchedulerWorkSpace {
159156 return this . getIndicationCellCount ( ) * this . getCellWidth ( ) ;
160157 }
161158
162- isVerticalShader ( ) {
159+ protected override isVerticalShader ( ) {
163160 return false ;
164161 }
165162
166- isCurrentTimeHeaderCell ( ) {
163+ protected override isCurrentTimeHeaderCell ( ) {
167164 return false ;
168165 }
169166
170167 protected override setTableSizes ( ) {
171168 super . setTableSizes ( ) ;
172169
173170 const minHeight = this . getWorkSpaceMinHeight ( ) ;
174- setHeight ( this . _ $sidebarTable, minHeight ) ;
171+ setHeight ( this . $sidebarTable , minHeight ) ;
175172 setHeight ( this . _$dateTable , minHeight ) ;
176173
177174 this . virtualScrollingDispatcher . updateDimensions ( ) ;
@@ -226,7 +223,7 @@ class SchedulerTimeline extends SchedulerWorkSpace {
226223 const fullDays = Math . floor ( fullInterval / toMs ( 'day' ) ) ;
227224 const tailDuration = fullInterval - ( fullDays * toMs ( 'day' ) ) ;
228225 let tailDelta = 0 ;
229- const cellCount = this . getCellCountInDay ( ) * ( fullDays - this . getWeekendsCount ( fullDays ) ) ;
226+ const cellCount = this . _getCellCountInDay ( ) * ( fullDays - this . getWeekendsCount ( fullDays ) ) ;
230227 const gapBeforeAppt = apptStart - dateUtils . trimTime ( new Date ( currentDate ) ) . getTime ( ) ;
231228 let result = cellCount * ( this . option ( 'hoursInterval' ) as any ) * toMs ( 'hour' ) ;
232229
@@ -307,7 +304,7 @@ class SchedulerTimeline extends SchedulerWorkSpace {
307304 super . _init ( ) ;
308305
309306 ( this . $element ( ) as any ) . addClass ( TIMELINE_CLASS ) ;
310- this . _ $sidebarTable = $ ( '<div>' )
307+ this . $sidebarTable = $ ( '<div>' )
311308 . addClass ( GROUP_TABLE_CLASS ) ;
312309 }
313310
@@ -349,7 +346,7 @@ class SchedulerTimeline extends SchedulerWorkSpace {
349346
350347 this . _shader = new HorizontalShader ( this ) ;
351348
352- this . _ $sidebarTable. appendTo ( this . _sidebarScrollable . $content ( ) ) ;
349+ this . $sidebarTable . appendTo ( this . _sidebarScrollable . $content ( ) ) ;
353350
354351 if ( this . isRenovatedRender ( ) && this . isVerticalGroupedWorkSpace ( ) ) {
355352 this . renderRGroupPanel ( ) ;
@@ -403,7 +400,7 @@ class SchedulerTimeline extends SchedulerWorkSpace {
403400
404401 const $cells : any [ ] = [ ] ;
405402 const groupCount = this . _getGroupCount ( ) ;
406- const cellCountInDay = this . getCellCountInDay ( ) ;
403+ const cellCountInDay = this . _getCellCountInDay ( ) ;
407404 const colSpan = this . isGroupedByDate ( )
408405 ? cellCountInDay * groupCount
409406 : cellCountInDay ;
@@ -455,7 +452,7 @@ class SchedulerTimeline extends SchedulerWorkSpace {
455452 }
456453 }
457454
458- renderIndicator ( height , rtlOffset , $container , groupCount ) {
455+ protected override renderIndicator ( height , rtlOffset , $container , groupCount ) {
459456 let $indicator ;
460457 const width = this . getIndicationWidth ( ) ;
461458
@@ -496,7 +493,7 @@ class SchedulerTimeline extends SchedulerWorkSpace {
496493 // Old render methods.
497494 // TODO Old render: delete these methods with the old render.
498495
499- setCurrentTimeCells ( ) : void {
496+ protected override setCurrentTimeCells ( ) : void {
500497 const timePanelCells = this . getTimePanelCells ( ) ;
501498 const currentTimeCellIndices = this . getCurrentTimePanelCellIndices ( ) ;
502499 currentTimeCellIndices . forEach ( ( timePanelCellIndex ) => {
0 commit comments