@@ -9,8 +9,8 @@ import type {
99 CalendarSelectionMode , FirstDayOfWeek , WeekNumberRule ,
1010} from '@js/ui/calendar' ;
1111
12- import type { BaseViewProperties } from './m_calendar .base_view' ;
13- import BaseView from './m_calendar .base_view' ;
12+ import type { BaseViewProperties } from './calendar .base_view' ;
13+ import BaseView from './calendar .base_view' ;
1414
1515const CALENDAR_OTHER_MONTH_CLASS = 'dx-calendar-other-month' ;
1616const CALENDAR_OTHER_VIEW_CLASS = 'dx-calendar-other-view' ;
@@ -149,13 +149,15 @@ export class MonthView extends BaseView<MonthViewProperties> {
149149 const { weekNumberRule = 'auto' , firstDayOfWeek } = this . option ( ) ;
150150
151151 if ( weekNumberRule === 'auto' ) {
152+ // eslint-disable-next-line @typescript-eslint/no-unsafe-return
152153 return dateUtils . getWeekNumber (
153154 date ,
154155 firstDayOfWeek ,
155156 firstDayOfWeek === 1 ? 'firstFourDays' : 'firstDay' ,
156157 ) ;
157158 }
158159
160+ // eslint-disable-next-line @typescript-eslint/no-unsafe-return
159161 return dateUtils . getWeekNumber ( date , firstDayOfWeek , weekNumberRule ) ;
160162 }
161163
@@ -168,6 +170,7 @@ export class MonthView extends BaseView<MonthViewProperties> {
168170 _isTodayCell ( cellDate : Date ) : boolean {
169171 const { _todayDate : today } = this . option ( ) ;
170172
173+ // eslint-disable-next-line @typescript-eslint/no-unsafe-return
171174 return dateUtils . sameDate ( cellDate , today ( ) ) ;
172175 }
173176
@@ -185,10 +188,12 @@ export class MonthView extends BaseView<MonthViewProperties> {
185188 }
186189
187190 _isStartDayOfMonth ( cellDate : Date ) : boolean {
191+ // eslint-disable-next-line @typescript-eslint/no-unsafe-return
188192 return dateUtils . sameDate ( cellDate , dateUtils . getFirstMonthDate ( this . option ( 'date' ) ) ) ;
189193 }
190194
191195 _isEndDayOfMonth ( cellDate : Date ) : boolean {
196+ // eslint-disable-next-line @typescript-eslint/no-unsafe-return
192197 return dateUtils . sameDate ( cellDate , dateUtils . getLastMonthDate ( this . option ( 'date' ) ) ) ;
193198 }
194199
@@ -232,6 +237,7 @@ export class MonthView extends BaseView<MonthViewProperties> {
232237 }
233238
234239 isBoundary ( date : Date ) : boolean {
240+ // eslint-disable-next-line @typescript-eslint/no-unsafe-return
235241 return dateUtils . sameMonthAndYear ( date , this . option ( 'min' ) ) || dateUtils . sameMonthAndYear ( date , this . option ( 'max' ) ) ;
236242 }
237243
@@ -254,6 +260,7 @@ export class YearView extends BaseView {
254260 _isTodayCell ( cellDate : Date ) : boolean {
255261 const { _todayDate : today } = this . option ( ) ;
256262
263+ // eslint-disable-next-line @typescript-eslint/no-unsafe-return
257264 return dateUtils . sameMonthAndYear ( cellDate , today ( ) ) ;
258265 }
259266
@@ -308,6 +315,7 @@ export class YearView extends BaseView {
308315 }
309316
310317 isBoundary ( date : Date ) : boolean {
318+ // eslint-disable-next-line @typescript-eslint/no-unsafe-return
311319 return dateUtils . sameYear ( date , this . option ( 'min' ) ) || dateUtils . sameYear ( date , this . option ( 'max' ) ) ;
312320 }
313321
@@ -322,6 +330,7 @@ export class DecadeView extends BaseView {
322330 _isTodayCell ( cellDate : Date ) : boolean {
323331 const { _todayDate : today } = this . option ( ) ;
324332
333+ // eslint-disable-next-line @typescript-eslint/no-unsafe-return
325334 return dateUtils . sameYear ( cellDate , today ( ) ) ;
326335 }
327336
@@ -375,6 +384,7 @@ export class DecadeView extends BaseView {
375384 }
376385
377386 _isValueOnCurrentView ( currentDate : Date , value : Date ) : boolean {
387+ // eslint-disable-next-line @typescript-eslint/no-unsafe-return
378388 return dateUtils . sameDecade ( currentDate , value ) ;
379389 }
380390
@@ -387,6 +397,7 @@ export class DecadeView extends BaseView {
387397 }
388398
389399 isBoundary ( date : Date ) : boolean {
400+ // eslint-disable-next-line @typescript-eslint/no-unsafe-return
390401 return dateUtils . sameDecade ( date , this . option ( 'min' ) ) || dateUtils . sameDecade ( date , this . option ( 'max' ) ) ;
391402 }
392403
@@ -401,6 +412,7 @@ export class CenturyView extends BaseView {
401412 _isTodayCell ( cellDate : Date ) : boolean {
402413 const { _todayDate : today } = this . option ( ) ;
403414
415+ // eslint-disable-next-line @typescript-eslint/no-unsafe-return
404416 return dateUtils . sameDecade ( cellDate , today ( ) ) ;
405417 }
406418
@@ -470,6 +482,7 @@ export class CenturyView extends BaseView {
470482 }
471483
472484 isBoundary ( date : Date ) : boolean {
485+ // eslint-disable-next-line @typescript-eslint/no-unsafe-return
473486 return dateUtils . sameCentury ( date , this . option ( 'min' ) ) || dateUtils . sameCentury ( date , this . option ( 'max' ) ) ;
474487 }
475488
0 commit comments