@@ -37,6 +37,7 @@ import { dateUtilsTs } from '@ts/core/utils/date';
3737
3838import { createA11yStatusContainer } from './a11y_status/a11y_status_render' ;
3939import { getA11yStatusText } from './a11y_status/a11y_status_text' ;
40+ import type { AppointmentFormScheduler } from './appointment_popup/form' ;
4041import { AppointmentForm } from './appointment_popup/form' ;
4142import { AppointmentPopup } from './appointment_popup/popup' ;
4243import AppointmentCollection from './appointments/m_appointment_collection' ;
@@ -1132,7 +1133,7 @@ class Scheduler extends SchedulerOptionsBaseWidget {
11321133 }
11331134
11341135 createAppointmentForm ( ) {
1135- const scheduler = {
1136+ const scheduler : AppointmentFormScheduler = {
11361137 getResourceById : ( ) => this . resourceManager . resourceById ,
11371138 getDataAccessors : ( ) => this . _dataAccessors ,
11381139 // @ts -expect-error
@@ -1141,7 +1142,7 @@ class Scheduler extends SchedulerOptionsBaseWidget {
11411142 getEditingConfig : ( ) => this . editing ,
11421143 getResourceManager : ( ) => this . resourceManager ,
11431144
1144- getFirstDayOfWeek : ( ) => this . option ( 'firstDayOfWeek' ) ,
1145+ getFirstDayOfWeek : ( ) => this . getFirstDayOfWeek ( ) ,
11451146 getStartDayHour : ( ) => this . option ( 'startDayHour' ) ,
11461147 getCalculatedEndDate : ( startDateWithStartHour ) => this . _workSpace . calculateEndDate ( startDateWithStartHour ) ,
11471148 getTimeZoneCalculator : ( ) => this . timeZoneCalculator ,
0 commit comments