@@ -105,12 +105,25 @@ const DATE_GROUP_NAME = 'dateGroup';
105105const START_DATE_GROUP_NAME = 'startDateGroup' ;
106106const END_DATE_GROUP_NAME = 'endDateGroup' ;
107107const RESOURCES_GROUP_NAME = 'resourcesGroup' ;
108+ const SUBJECT_GROUP_NAME = 'subjectGroup' ;
109+ const REPEAT_GROUP_NAME = 'repeatGroup' ;
110+ const DESCRIPTION_GROUP_NAME = 'descriptionGroup' ;
108111
109112const START_DATE_EDITOR_NAME = 'startDate' ;
110113const START_TIME_EDITOR_NAME = 'startTime' ;
111114const END_DATE_EDITOR_NAME = 'endDate' ;
112115const END_TIME_EDITOR_NAME = 'endTime' ;
113116const REPEAT_EDITOR_NAME = 'repeat' ;
117+ const ALL_DAY_EDITOR_NAME = 'allDay' ;
118+ const SUBJECT_EDITOR_NAME = 'subject' ;
119+ const DESCRIPTION_EDITOR_NAME = 'description' ;
120+ const START_DATE_TIMEZONE_EDITOR_NAME = 'startDateTimeZone' ;
121+ const END_DATE_TIMEZONE_EDITOR_NAME = 'endDateTimeZone' ;
122+
123+ const SUBJECT_ICON_NAME = 'subjectIcon' ;
124+ const DATE_ICON_NAME = 'dateIcon' ;
125+ const REPEAT_ICON_NAME = 'repeatIcon' ;
126+ const DESCRIPTION_ICON_NAME = 'descriptionIcon' ;
114127
115128export class AppointmentForm {
116129 private readonly scheduler : any ;
@@ -286,7 +299,7 @@ export class AppointmentForm {
286299 const { textExpr } = this . scheduler . getDataAccessors ( ) . expr ;
287300
288301 return {
289- name : 'subjectGroup' ,
302+ name : SUBJECT_GROUP_NAME ,
290303 itemType : 'group' ,
291304 cssClass : `${ CLASSES . subjectGroup } ${ CLASSES . groupWithIcon } ` ,
292305 colCount : 2 ,
@@ -295,13 +308,13 @@ export class AppointmentForm {
295308 } ,
296309 items : [
297310 {
298- name : 'subjectIcon' ,
311+ name : SUBJECT_ICON_NAME ,
299312 colSpan : 1 ,
300313 cssClass : CLASSES . formIcon ,
301314 template : createFormIconTemplate ( 'isnotblank' ) ,
302315 } ,
303316 {
304- name : 'subject' ,
317+ name : SUBJECT_EDITOR_NAME ,
305318 colSpan : 1 ,
306319 itemType : 'simple' ,
307320 cssClass : CLASSES . textEditor ,
@@ -326,7 +339,7 @@ export class AppointmentForm {
326339 } ,
327340 items : [
328341 {
329- name : 'dateIcon' ,
342+ name : DATE_ICON_NAME ,
330343 colSpan : 1 ,
331344 cssClass : CLASSES . formIcon ,
332345 template : createFormIconTemplate ( 'clock' ) ,
@@ -348,7 +361,7 @@ export class AppointmentForm {
348361 const { allDayExpr, startDateExpr, endDateExpr } = this . scheduler . getDataAccessors ( ) . expr ;
349362
350363 return {
351- name : 'allDay' ,
364+ name : ALL_DAY_EDITOR_NAME ,
352365 itemType : 'simple' ,
353366 dataField : allDayExpr ,
354367 cssClass : CLASSES . allDaySwitch ,
@@ -407,7 +420,7 @@ export class AppointmentForm {
407420 cssClass : CLASSES . startTimeEditor ,
408421 } ,
409422 {
410- name : 'startDateTimeZone' ,
423+ name : START_DATE_TIMEZONE_EDITOR_NAME ,
411424 dataField : startDateTimeZoneExpr ,
412425 cssClass : CLASSES . startDateTimeZoneEditor ,
413426 editorOptions : {
@@ -442,7 +455,7 @@ export class AppointmentForm {
442455 cssClass : CLASSES . endTimeEditor ,
443456 } ,
444457 {
445- name : 'endDateTimeZone' ,
458+ name : END_DATE_TIMEZONE_EDITOR_NAME ,
446459 dataField : endDateTimeZoneExpr ,
447460 cssClass : CLASSES . endDateTimeZoneEditor ,
448461 } ,
@@ -580,7 +593,7 @@ export class AppointmentForm {
580593
581594 private createRepeatGroup ( ) : GroupItem {
582595 return {
583- name : 'repeatGroup' ,
596+ name : REPEAT_GROUP_NAME ,
584597 itemType : 'group' ,
585598 colCount : 2 ,
586599 colCountByScreen : {
@@ -589,7 +602,7 @@ export class AppointmentForm {
589602 cssClass : `${ CLASSES . repeatGroup } ${ CLASSES . groupWithIcon } ` ,
590603 items : [
591604 {
592- name : 'repeatIcon' ,
605+ name : REPEAT_ICON_NAME ,
593606 colSpan : 1 ,
594607 cssClass : CLASSES . formIcon ,
595608 template : createFormIconTemplate ( 'repeat' ) ,
@@ -626,7 +639,7 @@ export class AppointmentForm {
626639
627640 private createDescriptionGroup ( ) : GroupItem {
628641 return {
629- name : 'descriptionGroup' ,
642+ name : DESCRIPTION_GROUP_NAME ,
630643 itemType : 'group' ,
631644 colCount : 2 ,
632645 colCountByScreen : {
@@ -635,13 +648,13 @@ export class AppointmentForm {
635648 cssClass : `${ CLASSES . descriptionGroup } ${ CLASSES . groupWithIcon } ` ,
636649 items : [
637650 {
638- name : 'descriptionIcon' ,
651+ name : DESCRIPTION_ICON_NAME ,
639652 colSpan : 1 ,
640653 cssClass : CLASSES . formIcon ,
641654 template : createFormIconTemplate ( 'description' ) ,
642655 } ,
643656 {
644- name : 'description' ,
657+ name : DESCRIPTION_EDITOR_NAME ,
645658 colSpan : 1 ,
646659 itemType : 'simple' ,
647660 cssClass : CLASSES . descriptionEditor ,
0 commit comments