@@ -111,15 +111,15 @@ export class Appointment extends DOMComponent<AppointmentProperties> {
111111 this . _invalidate ( ) ;
112112 break ;
113113 case 'isDragSource' :
114- this . _renderDragSourceClass ( ) ;
114+ this . renderDragSourceClass ( ) ;
115115 break ;
116116 default :
117117 // @ts -expect-error
118118 super . _optionChanged ( args ) ;
119119 }
120120 }
121121
122- _getHorizontalResizingRule ( ) {
122+ private getHorizontalResizingRule ( ) {
123123 const reducedHandles = {
124124 head : this . option ( 'rtlEnabled' ) ? 'right' : 'left' ,
125125 body : '' ,
@@ -137,7 +137,7 @@ export class Appointment extends DOMComponent<AppointmentProperties> {
137137 } ;
138138 }
139139
140- _getVerticalResizingRule ( ) {
140+ private getVerticalResizingRule ( ) {
141141 const height = Math . round ( this . invoke ( 'getCellHeight' ) ) ;
142142
143143 return {
@@ -153,24 +153,24 @@ export class Appointment extends DOMComponent<AppointmentProperties> {
153153 // @ts -expect-error
154154 super . _render ( ) ;
155155
156- this . _renderAppointmentGeometry ( ) ;
157- this . _renderAriaLabel ( ) ;
158- this . _renderEmptyClass ( ) ;
159- this . _renderReducedAppointment ( ) ;
160- this . _renderAllDayClass ( ) ;
161- this . _renderDragSourceClass ( ) ;
162- this . _renderDirection ( ) ;
156+ this . renderAppointmentGeometry ( ) ;
157+ this . renderAriaLabel ( ) ;
158+ this . renderEmptyClass ( ) ;
159+ this . renderReducedAppointment ( ) ;
160+ this . renderAllDayClass ( ) ;
161+ this . renderDragSourceClass ( ) ;
162+ this . renderDirection ( ) ;
163163
164164 this . $element ( ) . data ( 'dxAppointmentStartDate' , this . option ( 'startDate' ) ) ;
165165 this . $element ( ) . attr ( 'role' , 'button' ) ;
166166
167- this . _renderRecurrenceClass ( ) ;
168- this . _renderResizable ( ) ;
167+ this . renderRecurrenceClass ( ) ;
168+ this . renderResizable ( ) ;
169169
170- this . _setResourceColor ( ) ;
170+ this . setResourceColor ( ) ;
171171 }
172172
173- _setResourceColor ( ) {
173+ private setResourceColor ( ) {
174174 const appointmentConfig = {
175175 itemData : this . rawAppointment ,
176176 groupIndex : this . option ( 'groupIndex' ) ?? 0 ,
@@ -186,7 +186,7 @@ export class Appointment extends DOMComponent<AppointmentProperties> {
186186 } ) ;
187187 }
188188
189- _renderAriaLabel ( ) : void {
189+ private renderAriaLabel ( ) : void {
190190 const $element : dxElementWrapper = this . $element ( ) ;
191191 $element . attr ( 'aria-label' , getAriaLabel ( this . option ( ) ) ) ;
192192
@@ -205,7 +205,7 @@ export class Appointment extends DOMComponent<AppointmentProperties> {
205205 } ) ;
206206 }
207207
208- _renderAppointmentGeometry ( ) : void {
208+ private renderAppointmentGeometry ( ) : void {
209209 const geometry : any = this . option ( 'geometry' ) ;
210210 const $element : any = this . $element ( ) ;
211211 move ( $element , {
@@ -219,15 +219,15 @@ export class Appointment extends DOMComponent<AppointmentProperties> {
219219 } ) ;
220220 }
221221
222- _renderEmptyClass ( ) {
222+ private renderEmptyClass ( ) {
223223 const geometry : any = this . option ( 'geometry' ) ;
224224
225225 if ( geometry . empty || this . option ( 'isCompact' ) ) {
226226 ( this . $element ( ) as any ) . addClass ( EMPTY_APPOINTMENT_CLASS ) ;
227227 }
228228 }
229229
230- _renderReducedAppointment ( ) {
230+ private renderReducedAppointment ( ) {
231231 const reducedPart : any = this . option ( 'reduced' ) ;
232232
233233 if ( ! reducedPart ) {
@@ -238,10 +238,10 @@ export class Appointment extends DOMComponent<AppointmentProperties> {
238238 . toggleClass ( REDUCED_APPOINTMENT_CLASS , true )
239239 . toggleClass ( REDUCED_APPOINTMENT_PARTS_CLASSES [ reducedPart ] , true ) ;
240240
241- this . _renderAppointmentReducedIcon ( ) ;
241+ this . renderAppointmentReducedIcon ( ) ;
242242 }
243243
244- _renderAppointmentReducedIcon ( ) {
244+ private renderAppointmentReducedIcon ( ) {
245245 const $icon = $ ( '<div>' )
246246 . addClass ( REDUCED_APPOINTMENT_ICON )
247247 . appendTo ( this . $element ( ) ) ;
@@ -259,28 +259,28 @@ export class Appointment extends DOMComponent<AppointmentProperties> {
259259 } ) ;
260260 }
261261
262- _renderAllDayClass ( ) {
262+ private renderAllDayClass ( ) {
263263 ( this . $element ( ) as any ) . toggleClass ( ALL_DAY_APPOINTMENT_CLASS , Boolean ( this . option ( 'allDay' ) ) ) ;
264264 }
265265
266- _renderDragSourceClass ( ) {
266+ private renderDragSourceClass ( ) {
267267 ( this . $element ( ) as any ) . toggleClass ( APPOINTMENT_DRAG_SOURCE_CLASS , Boolean ( this . option ( 'isDragSource' ) ) ) ;
268268 }
269269
270- _renderRecurrenceClass ( ) {
270+ private renderRecurrenceClass ( ) {
271271 const rule = this . dataAccessors . get ( 'recurrenceRule' , this . rawAppointment ) ;
272272
273273 if ( validateRRule ( rule ) ) {
274274 ( this . $element ( ) as any ) . addClass ( RECURRENCE_APPOINTMENT_CLASS ) ;
275275 }
276276 }
277277
278- _renderDirection ( ) {
278+ private renderDirection ( ) {
279279 ( this . $element ( ) as any ) . addClass ( DIRECTION_APPOINTMENT_CLASSES [ this . option ( 'direction' ) as any ] ) ;
280280 }
281281
282- _createResizingConfig ( ) {
283- const config : any = this . option ( 'direction' ) === 'vertical' ? this . _getVerticalResizingRule ( ) : this . _getHorizontalResizingRule ( ) ;
282+ private createResizingConfig ( ) {
283+ const config : any = this . option ( 'direction' ) === 'vertical' ? this . getVerticalResizingRule ( ) : this . getHorizontalResizingRule ( ) ;
284284
285285 if ( ! this . invoke ( 'isGroupedByDate' ) ) {
286286 config . stepPrecision = 'strict' ;
@@ -289,14 +289,14 @@ export class Appointment extends DOMComponent<AppointmentProperties> {
289289 return config ;
290290 }
291291
292- _renderResizable ( ) {
292+ private renderResizable ( ) {
293293 if ( this . option ( 'allowResize' ) ) {
294294 // @ts -expect-error
295295 this . _createComponent (
296296 this . $element ( ) ,
297297 Resizable ,
298298 extend (
299- this . _createResizingConfig ( ) ,
299+ this . createResizingConfig ( ) ,
300300 this . option ( 'resizableConfig' ) ,
301301 ) ,
302302 ) ;
0 commit comments