@@ -34,7 +34,7 @@ const checkFormWithRecurrenceEditor = (assert, instance, visibility) => {
3434 assert . equal ( form . itemOption ( APPOINTMENT_FORM_GROUP_NAMES . Main ) . colSpan , colSpan , 'colSpan of main group is correct' ) ;
3535 assert . equal ( form . itemOption ( APPOINTMENT_FORM_GROUP_NAMES . Recurrence ) . colSpan , colSpan , 'colSpan of recurrence group is correct' ) ;
3636
37- assert . equal ( instance . _appointmentPopup . popup . option ( 'maxWidth' ) , width , 'maxWidth of popup is correct' ) ;
37+ assert . equal ( instance . appointmentPopup . popup . option ( 'maxWidth' ) , width , 'maxWidth of popup is correct' ) ;
3838} ;
3939
4040const createInstance = ( options ) => {
@@ -162,12 +162,12 @@ QUnit.module('Appointment popup form', moduleConfig, () => {
162162 scheduler . appointments . dblclick ( 0 ) ;
163163 scheduler . appointmentPopup . dialog . clickEditSeries ( ) ;
164164
165- const form = scheduler . instance . _appointmentPopup . form . form ;
165+ const form = scheduler . instance . appointmentPopup . form . form ;
166166
167167 assert . ok ( form . getEditor ( 'repeat' ) . option ( 'value' ) , 'repeat checkbox should be checked' ) ;
168168 assert . ok ( form . option ( 'items' ) [ 1 ] . visible , 'recurrence form should be visible' ) ;
169169
170- scheduler . instance . _appointmentPopup . popup . hide ( ) ;
170+ scheduler . instance . appointmentPopup . popup . hide ( ) ;
171171 scheduler . instance . showAppointmentPopup ( ) ;
172172
173173 assert . notOk ( form . getEditor ( 'repeat' ) . option ( 'value' ) , 'repeat checkbox should be unchecked if empty form' ) ;
@@ -330,11 +330,11 @@ QUnit.module('Appointment popup form', moduleConfig, () => {
330330
331331 scheduler . appointments . dblclick ( ) ;
332332 assert . equal ( scheduler . appointmentPopup . isVisible ( ) , expected , text + ' if call from UI' ) ;
333- scheduler . instance . _appointmentPopup . popup . option ( 'visible' , false ) ;
333+ scheduler . instance . appointmentPopup . popup . option ( 'visible' , false ) ;
334334
335335 scheduler . instance . showAppointmentPopup ( data [ 0 ] ) ;
336336 assert . equal ( scheduler . appointmentPopup . isVisible ( ) , expected , text + ' if call showAppointmentPopup method' ) ;
337- scheduler . instance . _appointmentPopup . popup . option ( 'visible' , false ) ;
337+ scheduler . instance . appointmentPopup . popup . option ( 'visible' , false ) ;
338338 } ) ;
339339 } ) ;
340340
@@ -674,11 +674,11 @@ if(isDesktopEnvironment()) {
674674 const scheduler = await createScheduler ( ) ;
675675 scheduler . instance . showAppointmentPopup ( { startDate : new Date ( 2018 , 5 , 18 ) , endDate : Date ( 2018 , 5 , 18 ) , text : 'a' } ) ;
676676 checkFormWithRecurrenceEditor ( assert , scheduler . instance , false ) ;
677- scheduler . instance . _appointmentPopup . popup . hide ( ) ;
677+ scheduler . instance . appointmentPopup . popup . hide ( ) ;
678678 scheduler . instance . showAppointmentPopup ( { startDate : new Date ( 2018 , 5 , 18 ) , endDate : Date ( 2018 , 5 , 18 ) , text : 'b' , recurrenceRule : 'FREQ=WEEKLY' } ) ;
679679 $ ( '.dx-dialog-buttons .dx-button' ) . eq ( 0 ) . trigger ( 'dxclick' ) ;
680680 checkFormWithRecurrenceEditor ( assert , scheduler . instance , true ) ;
681- scheduler . instance . _appointmentPopup . popup . hide ( ) ;
681+ scheduler . instance . appointmentPopup . popup . hide ( ) ;
682682
683683 scheduler . instance . showAppointmentPopup ( { startDate : new Date ( 2018 , 5 , 18 ) , endDate : Date ( 2018 , 5 , 18 ) , text : 'c' } ) ;
684684 checkFormWithRecurrenceEditor ( assert , scheduler . instance , false ) ;
@@ -690,7 +690,7 @@ if(isDesktopEnvironment()) {
690690
691691 const form = scheduler . instance . getAppointmentDetailsForm ( ) ;
692692 form . getEditor ( 'visibilityChanged' ) . option ( 'value' , true ) ;
693- scheduler . instance . _appointmentPopup . popup . hide ( ) ;
693+ scheduler . instance . appointmentPopup . popup . hide ( ) ;
694694
695695 scheduler . instance . showAppointmentPopup ( { startDate : new Date ( 2018 , 5 , 18 ) , endDate : Date ( 2018 , 5 , 18 ) , text : 'b' , recurrenceRule : 'FREQ=WEEKLY' } ) ;
696696 $ ( '.dx-dialog-buttons .dx-button' ) . eq ( 0 ) . trigger ( 'dxclick' ) ;
@@ -712,7 +712,7 @@ if(isDesktopEnvironment()) {
712712 const form = scheduler . instance . getAppointmentDetailsForm ( ) ;
713713
714714 assert . ok ( ! form . getEditor ( null ) , 'Editor is not rendered' ) ;
715- assert . equal ( scheduler . instance . _appointmentPopup . popup . option ( 'maxWidth' ) , APPOINTMENT_POPUP_WIDTH ) ;
715+ assert . equal ( scheduler . instance . appointmentPopup . popup . option ( 'maxWidth' ) , APPOINTMENT_POPUP_WIDTH ) ;
716716 assert . equal ( form . option ( 'items' ) [ 0 ] . colSpan , 2 , 'colSpan of main group' ) ;
717717
718718 scheduler . instance . option ( 'recurrenceRuleExpr' , 'recurrenceRule' ) ;
@@ -737,7 +737,7 @@ if(isDesktopEnvironment()) {
737737 const form = scheduler . instance . getAppointmentDetailsForm ( ) ;
738738
739739 assert . ok ( ! form . getEditor ( null ) , 'Editor is not rendered' ) ;
740- assert . equal ( scheduler . instance . _appointmentPopup . popup . option ( 'maxWidth' ) , APPOINTMENT_POPUP_WIDTH ) ;
740+ assert . equal ( scheduler . instance . appointmentPopup . popup . option ( 'maxWidth' ) , APPOINTMENT_POPUP_WIDTH ) ;
741741 assert . equal ( form . option ( 'items' ) [ 0 ] . colSpan , 2 , 'colSpan of main group' ) ;
742742 } ) ;
743743
@@ -769,7 +769,7 @@ QUnit.module('Appointment Popup Content', moduleOptions, () => {
769769
770770 scheduler . instance . showAppointmentPopup ( { startDate : new Date ( 2015 , 1 , 1 ) , endDate : new Date ( 2015 , 1 , 2 ) } ) ;
771771
772- const appointmentPopupOptions = scheduler . instance . _appointmentPopup . popup . option ( ) ;
772+ const appointmentPopupOptions = scheduler . instance . appointmentPopup . popup . option ( ) ;
773773
774774 assert . strictEqual ( appointmentPopupOptions . enableBodyScroll , false , 'enable body scroll' ) ;
775775 assert . strictEqual ( appointmentPopupOptions . preventScrollEvents , false , 'prevent scroll events' ) ;
@@ -885,7 +885,7 @@ QUnit.module('Appointment Popup Content', moduleOptions, () => {
885885
886886 scheduler . instance . showAppointmentPopup ( { startDate : new Date ( 2015 , 1 , 1 ) , endDate : new Date ( 2015 , 1 , 2 ) , text : 'appointment 1' } ) ;
887887
888- const popup = scheduler . instance . _appointmentPopup . popup ;
888+ const popup = scheduler . instance . appointmentPopup . popup ;
889889
890890 assert . equal ( popup . option ( 'height' ) , 'auto' , 'popup has correct height' ) ;
891891 assert . equal ( popup . option ( 'maxHeight' ) , '100%' , 'popup has correct max-height' ) ;
@@ -896,7 +896,7 @@ QUnit.module('Appointment Popup Content', moduleOptions, () => {
896896
897897 scheduler . instance . showAppointmentPopup ( { startDate : new Date ( 2015 , 1 , 1 ) , endDate : new Date ( 2015 , 1 , 2 ) , text : 'appointment 1' } ) ;
898898
899- const popup = scheduler . instance . _appointmentPopup . popup ;
899+ const popup = scheduler . instance . appointmentPopup . popup ;
900900 let contentReadyCalled = 0 ;
901901
902902 popup . option ( 'onContentReady' , function ( ) {
@@ -1392,7 +1392,7 @@ QUnit.module('Appointment Popup Content', moduleOptions, () => {
13921392 QUnit . test ( 'Done button default configuration should be correct' , async function ( assert ) {
13931393 const scheduler = await createInstance ( {
13941394 onAppointmentFormOpening : function ( e ) {
1395- const popup = e . component . _appointmentPopup . popup ;
1395+ const popup = e . component . appointmentPopup . popup ;
13961396 const buttons = popup . option ( 'toolbarItems' ) ;
13971397 const doneButton = buttons [ 0 ] ;
13981398
@@ -1414,7 +1414,7 @@ QUnit.module('Appointment Popup Content', moduleOptions, () => {
14141414 store : this . tasks
14151415 } ) ,
14161416 onAppointmentFormOpening : function ( e ) {
1417- const popup = e . component . _appointmentPopup . popup ;
1417+ const popup = e . component . appointmentPopup . popup ;
14181418 const buttons = popup . option ( 'toolbarItems' ) ;
14191419 buttons [ 0 ] . options = { text : 'Text 1' } ;
14201420 popup . option ( 'toolbarItems' , buttons ) ;
@@ -1555,7 +1555,7 @@ QUnit.module('Appointment Popup', moduleOptions, () => {
15551555 recurrenceRule : 'FREQ=WEEKLY;BYDAY=MO,TH;COUNT=10'
15561556 } ) ;
15571557
1558- const popup = scheduler . instance . _appointmentPopup . popup ;
1558+ const popup = scheduler . instance . appointmentPopup . popup ;
15591559 const $buttonGroup = $ ( popup . $content ( ) ) . find ( '.dx-buttongroup' ) ;
15601560
15611561 assert . deepEqual ( $buttonGroup . eq ( 0 ) . dxButtonGroup ( 'instance' ) . option ( 'selectedItemKeys' ) , [ 'MO' , 'TH' ] , 'Right buttons was checked' ) ;
0 commit comments