@syncfusion/ej2-schedule 31.1.17 → 31.1.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (167) hide show
  1. package/dist/ej2-schedule.min.js +2 -2
  2. package/dist/ej2-schedule.umd.min.js +2 -2
  3. package/dist/ej2-schedule.umd.min.js.map +1 -1
  4. package/dist/es6/ej2-schedule.es2015.js +1 -1
  5. package/dist/es6/ej2-schedule.es2015.js.map +1 -1
  6. package/dist/es6/ej2-schedule.es5.js +1 -1
  7. package/dist/es6/ej2-schedule.es5.js.map +1 -1
  8. package/dist/global/ej2-schedule.min.js +2 -2
  9. package/dist/global/ej2-schedule.min.js.map +1 -1
  10. package/dist/global/index.d.ts +1 -1
  11. package/package.json +17 -52
  12. package/src/schedule/event-renderer/event-base.js +1 -1
  13. package/styles/bootstrap4-lite.css +8 -0
  14. package/styles/bootstrap4.css +8 -0
  15. package/styles/recurrence-editor/bootstrap4.css +8 -0
  16. package/styles/schedule/bootstrap4.css +8 -0
  17. package/dist/ts/common/calendar-util.d.ts +0 -92
  18. package/dist/ts/common/calendar-util.ts +0 -261
  19. package/dist/ts/common/index.d.ts +0 -4
  20. package/dist/ts/common/index.ts +0 -4
  21. package/dist/ts/components.d.ts +0 -5
  22. package/dist/ts/components.ts +0 -5
  23. package/dist/ts/index.d.ts +0 -6
  24. package/dist/ts/index.ts +0 -7
  25. package/dist/ts/recurrence-editor/date-generator.d.ts +0 -76
  26. package/dist/ts/recurrence-editor/date-generator.ts +0 -1699
  27. package/dist/ts/recurrence-editor/index.d.ts +0 -6
  28. package/dist/ts/recurrence-editor/index.ts +0 -6
  29. package/dist/ts/recurrence-editor/recurrence-editor-model.d.ts +0 -112
  30. package/dist/ts/recurrence-editor/recurrence-editor.d.ts +0 -245
  31. package/dist/ts/recurrence-editor/recurrence-editor.ts +0 -1257
  32. package/dist/ts/schedule/actions/action-base.d.ts +0 -44
  33. package/dist/ts/schedule/actions/action-base.ts +0 -493
  34. package/dist/ts/schedule/actions/crud.d.ts +0 -41
  35. package/dist/ts/schedule/actions/crud.ts +0 -784
  36. package/dist/ts/schedule/actions/data.d.ts +0 -63
  37. package/dist/ts/schedule/actions/data.ts +0 -128
  38. package/dist/ts/schedule/actions/drag.d.ts +0 -75
  39. package/dist/ts/schedule/actions/drag.ts +0 -1401
  40. package/dist/ts/schedule/actions/keyboard.d.ts +0 -100
  41. package/dist/ts/schedule/actions/keyboard.ts +0 -1435
  42. package/dist/ts/schedule/actions/resize.d.ts +0 -27
  43. package/dist/ts/schedule/actions/resize.ts +0 -602
  44. package/dist/ts/schedule/actions/scroll.d.ts +0 -69
  45. package/dist/ts/schedule/actions/scroll.ts +0 -105
  46. package/dist/ts/schedule/actions/touch.d.ts +0 -32
  47. package/dist/ts/schedule/actions/touch.ts +0 -314
  48. package/dist/ts/schedule/actions/virtual-scroll.d.ts +0 -55
  49. package/dist/ts/schedule/actions/virtual-scroll.ts +0 -596
  50. package/dist/ts/schedule/actions/work-cells.d.ts +0 -14
  51. package/dist/ts/schedule/actions/work-cells.ts +0 -151
  52. package/dist/ts/schedule/base/constant.d.ts +0 -102
  53. package/dist/ts/schedule/base/constant.ts +0 -103
  54. package/dist/ts/schedule/base/css-constant.d.ts +0 -475
  55. package/dist/ts/schedule/base/css-constant.ts +0 -475
  56. package/dist/ts/schedule/base/interface.d.ts +0 -673
  57. package/dist/ts/schedule/base/interface.ts +0 -738
  58. package/dist/ts/schedule/base/resource.d.ts +0 -59
  59. package/dist/ts/schedule/base/resource.ts +0 -1091
  60. package/dist/ts/schedule/base/schedule-model.d.ts +0 -930
  61. package/dist/ts/schedule/base/schedule.d.ts +0 -1967
  62. package/dist/ts/schedule/base/schedule.ts +0 -4221
  63. package/dist/ts/schedule/base/type.d.ts +0 -134
  64. package/dist/ts/schedule/base/type.ts +0 -142
  65. package/dist/ts/schedule/base/util.d.ts +0 -266
  66. package/dist/ts/schedule/base/util.ts +0 -492
  67. package/dist/ts/schedule/event-renderer/agenda-base.d.ts +0 -15
  68. package/dist/ts/schedule/event-renderer/agenda-base.ts +0 -423
  69. package/dist/ts/schedule/event-renderer/event-base.d.ts +0 -101
  70. package/dist/ts/schedule/event-renderer/event-base.ts +0 -1501
  71. package/dist/ts/schedule/event-renderer/inline-edit.d.ts +0 -23
  72. package/dist/ts/schedule/event-renderer/inline-edit.ts +0 -287
  73. package/dist/ts/schedule/event-renderer/month.d.ts +0 -60
  74. package/dist/ts/schedule/event-renderer/month.ts +0 -760
  75. package/dist/ts/schedule/event-renderer/timeline-view.d.ts +0 -51
  76. package/dist/ts/schedule/event-renderer/timeline-view.ts +0 -606
  77. package/dist/ts/schedule/event-renderer/vertical-view.d.ts +0 -57
  78. package/dist/ts/schedule/event-renderer/vertical-view.ts +0 -898
  79. package/dist/ts/schedule/event-renderer/year.d.ts +0 -27
  80. package/dist/ts/schedule/event-renderer/year.ts +0 -623
  81. package/dist/ts/schedule/exports/calendar-export.d.ts +0 -16
  82. package/dist/ts/schedule/exports/calendar-export.ts +0 -160
  83. package/dist/ts/schedule/exports/calendar-import.d.ts +0 -18
  84. package/dist/ts/schedule/exports/calendar-import.ts +0 -277
  85. package/dist/ts/schedule/exports/excel-export.d.ts +0 -14
  86. package/dist/ts/schedule/exports/excel-export.ts +0 -89
  87. package/dist/ts/schedule/exports/index.d.ts +0 -7
  88. package/dist/ts/schedule/exports/index.ts +0 -7
  89. package/dist/ts/schedule/exports/print.d.ts +0 -20
  90. package/dist/ts/schedule/exports/print.ts +0 -233
  91. package/dist/ts/schedule/index.d.ts +0 -26
  92. package/dist/ts/schedule/index.ts +0 -26
  93. package/dist/ts/schedule/models/event-settings-model.d.ts +0 -165
  94. package/dist/ts/schedule/models/event-settings.d.ts +0 -149
  95. package/dist/ts/schedule/models/event-settings.ts +0 -187
  96. package/dist/ts/schedule/models/field-options-model.d.ts +0 -37
  97. package/dist/ts/schedule/models/field-options.d.ts +0 -31
  98. package/dist/ts/schedule/models/field-options.ts +0 -41
  99. package/dist/ts/schedule/models/fields-model.d.ts +0 -129
  100. package/dist/ts/schedule/models/fields.d.ts +0 -117
  101. package/dist/ts/schedule/models/fields.ts +0 -149
  102. package/dist/ts/schedule/models/group-model.d.ts +0 -69
  103. package/dist/ts/schedule/models/group.d.ts +0 -60
  104. package/dist/ts/schedule/models/group.ts +0 -75
  105. package/dist/ts/schedule/models/header-rows-model.d.ts +0 -33
  106. package/dist/ts/schedule/models/header-rows.d.ts +0 -30
  107. package/dist/ts/schedule/models/header-rows.ts +0 -35
  108. package/dist/ts/schedule/models/models.d.ts +0 -14
  109. package/dist/ts/schedule/models/models.ts +0 -15
  110. package/dist/ts/schedule/models/quick-info-templates-model.d.ts +0 -52
  111. package/dist/ts/schedule/models/quick-info-templates.d.ts +0 -47
  112. package/dist/ts/schedule/models/quick-info-templates.ts +0 -56
  113. package/dist/ts/schedule/models/resources-model.d.ts +0 -122
  114. package/dist/ts/schedule/models/resources.d.ts +0 -106
  115. package/dist/ts/schedule/models/resources.ts +0 -138
  116. package/dist/ts/schedule/models/time-scale-model.d.ts +0 -57
  117. package/dist/ts/schedule/models/time-scale.d.ts +0 -50
  118. package/dist/ts/schedule/models/time-scale.ts +0 -61
  119. package/dist/ts/schedule/models/toolbar-model.d.ts +0 -196
  120. package/dist/ts/schedule/models/toolbar.d.ts +0 -176
  121. package/dist/ts/schedule/models/toolbar.ts +0 -196
  122. package/dist/ts/schedule/models/views-model.d.ts +0 -370
  123. package/dist/ts/schedule/models/views.d.ts +0 -335
  124. package/dist/ts/schedule/models/views.ts +0 -408
  125. package/dist/ts/schedule/models/work-hours-model.d.ts +0 -29
  126. package/dist/ts/schedule/models/work-hours.d.ts +0 -24
  127. package/dist/ts/schedule/models/work-hours.ts +0 -31
  128. package/dist/ts/schedule/popups/event-tooltip.d.ts +0 -16
  129. package/dist/ts/schedule/popups/event-tooltip.ts +0 -203
  130. package/dist/ts/schedule/popups/event-window.d.ts +0 -118
  131. package/dist/ts/schedule/popups/event-window.ts +0 -2055
  132. package/dist/ts/schedule/popups/form-validator.d.ts +0 -16
  133. package/dist/ts/schedule/popups/form-validator.ts +0 -110
  134. package/dist/ts/schedule/popups/quick-popups.d.ts +0 -78
  135. package/dist/ts/schedule/popups/quick-popups.ts +0 -1470
  136. package/dist/ts/schedule/renderer/agenda.d.ts +0 -45
  137. package/dist/ts/schedule/renderer/agenda.ts +0 -497
  138. package/dist/ts/schedule/renderer/day.d.ts +0 -20
  139. package/dist/ts/schedule/renderer/day.ts +0 -28
  140. package/dist/ts/schedule/renderer/header-renderer.d.ts +0 -48
  141. package/dist/ts/schedule/renderer/header-renderer.ts +0 -736
  142. package/dist/ts/schedule/renderer/month-agenda.d.ts +0 -29
  143. package/dist/ts/schedule/renderer/month-agenda.ts +0 -184
  144. package/dist/ts/schedule/renderer/month.d.ts +0 -61
  145. package/dist/ts/schedule/renderer/month.ts +0 -766
  146. package/dist/ts/schedule/renderer/renderer.d.ts +0 -13
  147. package/dist/ts/schedule/renderer/renderer.ts +0 -165
  148. package/dist/ts/schedule/renderer/timeline-header-row.d.ts +0 -15
  149. package/dist/ts/schedule/renderer/timeline-header-row.ts +0 -132
  150. package/dist/ts/schedule/renderer/timeline-month.d.ts +0 -29
  151. package/dist/ts/schedule/renderer/timeline-month.ts +0 -184
  152. package/dist/ts/schedule/renderer/timeline-view.d.ts +0 -31
  153. package/dist/ts/schedule/renderer/timeline-view.ts +0 -308
  154. package/dist/ts/schedule/renderer/timeline-year.d.ts +0 -22
  155. package/dist/ts/schedule/renderer/timeline-year.ts +0 -450
  156. package/dist/ts/schedule/renderer/vertical-view.d.ts +0 -63
  157. package/dist/ts/schedule/renderer/vertical-view.ts +0 -911
  158. package/dist/ts/schedule/renderer/view-base.d.ts +0 -83
  159. package/dist/ts/schedule/renderer/view-base.ts +0 -709
  160. package/dist/ts/schedule/renderer/week.d.ts +0 -22
  161. package/dist/ts/schedule/renderer/week.ts +0 -35
  162. package/dist/ts/schedule/renderer/work-week.d.ts +0 -22
  163. package/dist/ts/schedule/renderer/work-week.ts +0 -36
  164. package/dist/ts/schedule/renderer/year.d.ts +0 -46
  165. package/dist/ts/schedule/renderer/year.ts +0 -470
  166. package/dist/ts/schedule/timezone/timezone.d.ts +0 -16
  167. package/dist/ts/schedule/timezone/timezone.ts +0 -313
@@ -1,134 +0,0 @@
1
- /**
2
- * types
3
- */
4
- /**
5
- * An enum that denotes the view mode of the Scheduler.
6
- * ```props
7
- * Day :- Denotes Day view of the scheduler.
8
- * Week :- Denotes Week view of the scheduler.
9
- * WorkWeek :- Denotes Work Week view of the scheduler.
10
- * Month :- Denotes Month view of the scheduler.
11
- * Year :- Denotes Year view of the scheduler.
12
- * Agenda :- Denotes Agenda view of the scheduler.
13
- * MonthAgenda :- Denotes Month Agenda view of the scheduler.
14
- * TimelineDay :- Denotes Timeline Day view of the scheduler.
15
- * TimelineWeek :- Denotes Timeline Week view of the scheduler.
16
- * TimelineWorkWeek :- Denotes Timeline Work Week view of the scheduler.
17
- * TimelineMonth :- Denotes Timeline Month view of the scheduler.
18
- * TimelineYear :- Denotes Timeline Year view of the scheduler.
19
- * ```
20
- */
21
- export declare type View = 'Day' | 'Week' | 'WorkWeek' | 'Month' | 'Year' | 'Agenda' | 'MonthAgenda' | 'TimelineDay' | 'TimelineWeek' | 'TimelineWorkWeek' | 'TimelineMonth' | 'TimelineYear';
22
- /**
23
- * An enum that holds the actions available in scheduler.
24
- * ```props
25
- * Add :- Denotes the current action of the scheduler is appointment creation.
26
- * Save :- Denotes the current action of the scheduler is editing the appointment.
27
- * Delete :- Denotes the current action is deleting the appointment.
28
- * DeleteOccurrence :- Denotes the current action is deleting single occurrence of a recurrence.
29
- * DeleteSeries :- Denotes the current action is deleting the entire series of recurrence appointment.
30
- * EditOccurrence :- Denotes the current action is editing single occurrence of a recurrence.
31
- * EditSeries :- Denotes the current action is editing the entire series of recurrence appointment.
32
- * EditFollowingEvents :- Denotes the current action is editing the following appointments in a recurrence.
33
- * DeleteFollowingEvents :- Denotes the current action is deleting the following appointments in a recurrence.
34
- * ```
35
- */
36
- export declare type CurrentAction = 'Add' | 'Save' | 'Delete' | 'DeleteOccurrence' | 'DeleteSeries' | 'EditOccurrence' | 'EditSeries' | 'EditFollowingEvents' | 'DeleteFollowingEvents';
37
- /**
38
- * An enum that holds the options for success result.
39
- */
40
- export declare type ReturnType = {
41
- result: Record<string, any>[];
42
- count: number;
43
- aggregates?: Record<string, any>;
44
- cancel: boolean;
45
- };
46
- /**
47
- * An enum that holds the available popup types in the scheduler. They are
48
- * ```props
49
- * DeleteAlert :- Denotes the popup showing delete confirmation message.
50
- * EditEventInfo :- Denotes the quick popup on the events in responsive mode.
51
- * Editor :- Denotes the detailed editor window.
52
- * EventContainer :- Denotes the more indicator popup.
53
- * QuickInfo :- Denotes the quick popup.
54
- * OverlapAlert :- Denotes the popup showing overlap events.
55
- * RecurrenceAlert :- Denotes the popup showing recurrence alerts.
56
- * RecurrenceValidationAlert :- Denotes the popup showing recurrence validation alerts.
57
- * ValidationAlert :- Denotes the popup showing validation alerts.
58
- * ViewEventInfo :- Denotes the quick popup on the cells in responsive mode.
59
- * ```
60
- */
61
- export declare type PopupType = 'Editor' | 'EventContainer' | 'QuickInfo' | 'RecurrenceAlert' | 'DeleteAlert' | 'ViewEventInfo' | 'EditEventInfo' | 'ValidationAlert' | 'RecurrenceValidationAlert' | 'OverlapAlert';
62
- /**
63
- * An enum that holds the header row type in the timeline scheduler.
64
- * ```props
65
- * Year :- Denotes the year row in the header bar.
66
- * Month :- Denotes the month row in the header bar.
67
- * Week :- Denotes the week row in the header bar.
68
- * Date :- Denotes the date row in the header bar.
69
- * Hour :- Denotes the hour row in the header bar.
70
- * ```
71
- */
72
- export declare type HeaderRowType = 'Year' | 'Month' | 'Week' | 'Date' | 'Hour';
73
- /**
74
- * An enum that holds the orientation modes of the scheduler.
75
- * ```props
76
- * Vertical :- Denotes the vertical orientation of Timeline Year view.
77
- * Horizontal :- Denotes the horizontal orientation of Timeline Year view.
78
- * ```
79
- */
80
- export declare type Orientation = 'Vertical' | 'Horizontal';
81
- /**
82
- * An enum that holds the supported excel file formats.
83
- * ```props
84
- * csv :- Denotes the excel file format is csv.
85
- * xlsx :- Denotes the excel file format is xlsx.
86
- * ```
87
- */
88
- export declare type ExcelFormat = 'csv' | 'xlsx';
89
- /**
90
- * An enum that holds the type where the quick info template applies.
91
- * ```props
92
- * Both :- Denotes the template applies both to the event and cell.
93
- * Cell :- Denotes the template applies only to the cell.
94
- * Event :- Denotes the template applies to the event alone.
95
- * ```
96
- */
97
- export declare type TemplateType = 'Both' | 'Cell' | 'Event';
98
- /**
99
- * An enum that holds the different type of week number options in the scheduler.
100
- * ```props
101
- * FirstDay :- Denotes that the first week of the year starts on the first day of the year and ends before the following designated first day of the week.
102
- * FirstFourDayWeek :- Denotes that the first week of the year is the first week with four or more days before the designated first day of the week.
103
- * FirstFullWeek :- Denotes that the first week of the year begins on the first occurrence of the designated first day of the week on or after the first day of the year.
104
- * ```
105
- */
106
- export declare type WeekRule = 'FirstDay' | 'FirstFourDayWeek' | 'FirstFullWeek';
107
- /**
108
- * An enum that holds the options to render the spanned events in all day row or time slot.
109
- * ```props
110
- * AllDayRow :- Denotes the rendering of spanned events in an all-day row.
111
- * TimeSlot :- Denotes the rendering of spanned events in an time slot row.
112
- * ```
113
- */
114
- export declare type SpannedEventPlacement = 'AllDayRow' | 'TimeSlot';
115
- /**
116
- * An enum that holds the options to define name of the toolbar items to access default toolbar items in the Scheduler.
117
- * ```props
118
- * Previous :- Denotes the previous date navigation button in the Schedule toolbar.
119
- * Next :- Denotes the next date navigation button in the Schedule toolbar.
120
- * Today :- Denotes the today button in the Schedule toolbar.
121
- * Views :- Denotes the view-switching in the Schedule toolbar.
122
- * DateRangeText :- Denotes the date range text in the Schedule toolbar.
123
- * NewEvent :- Denotes the new event button in the Schedule toolbar.
124
- * ```
125
- */
126
- export declare type ToolbarName = 'Custom' | 'Previous' | 'Next' | 'Today' | 'Views' | 'DateRangeText' | 'NewEvent';
127
- /**
128
- * An enum that defines the possible directions for a date collection.
129
- *
130
- * - **Previous:** Denotes the previous date collection.
131
- * - **Next:** Denotes the next date collection.
132
- * - **Current:** Denotes the current date collection.
133
- */
134
- export declare type NavigationDirection = 'Previous' | 'Next' | 'Current';
@@ -1,142 +0,0 @@
1
- /* eslint-disable @typescript-eslint/no-explicit-any */
2
- /**
3
- * types
4
- */
5
-
6
- /**
7
- * An enum that denotes the view mode of the Scheduler.
8
- * ```props
9
- * Day :- Denotes Day view of the scheduler.
10
- * Week :- Denotes Week view of the scheduler.
11
- * WorkWeek :- Denotes Work Week view of the scheduler.
12
- * Month :- Denotes Month view of the scheduler.
13
- * Year :- Denotes Year view of the scheduler.
14
- * Agenda :- Denotes Agenda view of the scheduler.
15
- * MonthAgenda :- Denotes Month Agenda view of the scheduler.
16
- * TimelineDay :- Denotes Timeline Day view of the scheduler.
17
- * TimelineWeek :- Denotes Timeline Week view of the scheduler.
18
- * TimelineWorkWeek :- Denotes Timeline Work Week view of the scheduler.
19
- * TimelineMonth :- Denotes Timeline Month view of the scheduler.
20
- * TimelineYear :- Denotes Timeline Year view of the scheduler.
21
- * ```
22
- */
23
- export type View = 'Day' | 'Week' | 'WorkWeek' | 'Month' | 'Year' | 'Agenda' | 'MonthAgenda' | 'TimelineDay' | 'TimelineWeek' | 'TimelineWorkWeek' | 'TimelineMonth' | 'TimelineYear';
24
-
25
- /**
26
- * An enum that holds the actions available in scheduler.
27
- * ```props
28
- * Add :- Denotes the current action of the scheduler is appointment creation.
29
- * Save :- Denotes the current action of the scheduler is editing the appointment.
30
- * Delete :- Denotes the current action is deleting the appointment.
31
- * DeleteOccurrence :- Denotes the current action is deleting single occurrence of a recurrence.
32
- * DeleteSeries :- Denotes the current action is deleting the entire series of recurrence appointment.
33
- * EditOccurrence :- Denotes the current action is editing single occurrence of a recurrence.
34
- * EditSeries :- Denotes the current action is editing the entire series of recurrence appointment.
35
- * EditFollowingEvents :- Denotes the current action is editing the following appointments in a recurrence.
36
- * DeleteFollowingEvents :- Denotes the current action is deleting the following appointments in a recurrence.
37
- * ```
38
- */
39
- export type CurrentAction = 'Add' | 'Save' | 'Delete' | 'DeleteOccurrence' | 'DeleteSeries' | 'EditOccurrence' | 'EditSeries' | 'EditFollowingEvents' | 'DeleteFollowingEvents';
40
-
41
- /**
42
- * An enum that holds the options for success result.
43
- */
44
- export type ReturnType = { result: Record<string, any>[], count: number, aggregates?: Record<string, any>, cancel: boolean };
45
-
46
- /**
47
- * An enum that holds the available popup types in the scheduler. They are
48
- * ```props
49
- * DeleteAlert :- Denotes the popup showing delete confirmation message.
50
- * EditEventInfo :- Denotes the quick popup on the events in responsive mode.
51
- * Editor :- Denotes the detailed editor window.
52
- * EventContainer :- Denotes the more indicator popup.
53
- * QuickInfo :- Denotes the quick popup.
54
- * OverlapAlert :- Denotes the popup showing overlap events.
55
- * RecurrenceAlert :- Denotes the popup showing recurrence alerts.
56
- * RecurrenceValidationAlert :- Denotes the popup showing recurrence validation alerts.
57
- * ValidationAlert :- Denotes the popup showing validation alerts.
58
- * ViewEventInfo :- Denotes the quick popup on the cells in responsive mode.
59
- * ```
60
- */
61
- export type PopupType = 'Editor' | 'EventContainer' | 'QuickInfo' | 'RecurrenceAlert' | 'DeleteAlert' | 'ViewEventInfo' | 'EditEventInfo' | 'ValidationAlert' | 'RecurrenceValidationAlert' | 'OverlapAlert';
62
-
63
- /**
64
- * An enum that holds the header row type in the timeline scheduler.
65
- * ```props
66
- * Year :- Denotes the year row in the header bar.
67
- * Month :- Denotes the month row in the header bar.
68
- * Week :- Denotes the week row in the header bar.
69
- * Date :- Denotes the date row in the header bar.
70
- * Hour :- Denotes the hour row in the header bar.
71
- * ```
72
- */
73
- export type HeaderRowType = 'Year' | 'Month' | 'Week' | 'Date' | 'Hour';
74
-
75
- /**
76
- * An enum that holds the orientation modes of the scheduler.
77
- * ```props
78
- * Vertical :- Denotes the vertical orientation of Timeline Year view.
79
- * Horizontal :- Denotes the horizontal orientation of Timeline Year view.
80
- * ```
81
- */
82
- export type Orientation = 'Vertical' | 'Horizontal';
83
-
84
- /**
85
- * An enum that holds the supported excel file formats.
86
- * ```props
87
- * csv :- Denotes the excel file format is csv.
88
- * xlsx :- Denotes the excel file format is xlsx.
89
- * ```
90
- */
91
- export type ExcelFormat = 'csv' | 'xlsx';
92
-
93
- /**
94
- * An enum that holds the type where the quick info template applies.
95
- * ```props
96
- * Both :- Denotes the template applies both to the event and cell.
97
- * Cell :- Denotes the template applies only to the cell.
98
- * Event :- Denotes the template applies to the event alone.
99
- * ```
100
- */
101
- export type TemplateType = 'Both' | 'Cell' | 'Event';
102
-
103
- /**
104
- * An enum that holds the different type of week number options in the scheduler.
105
- * ```props
106
- * FirstDay :- Denotes that the first week of the year starts on the first day of the year and ends before the following designated first day of the week.
107
- * FirstFourDayWeek :- Denotes that the first week of the year is the first week with four or more days before the designated first day of the week.
108
- * FirstFullWeek :- Denotes that the first week of the year begins on the first occurrence of the designated first day of the week on or after the first day of the year.
109
- * ```
110
- */
111
- export type WeekRule = 'FirstDay' | 'FirstFourDayWeek' | 'FirstFullWeek';
112
-
113
- /**
114
- * An enum that holds the options to render the spanned events in all day row or time slot.
115
- * ```props
116
- * AllDayRow :- Denotes the rendering of spanned events in an all-day row.
117
- * TimeSlot :- Denotes the rendering of spanned events in an time slot row.
118
- * ```
119
- */
120
- export type SpannedEventPlacement = 'AllDayRow' | 'TimeSlot';
121
-
122
- /**
123
- * An enum that holds the options to define name of the toolbar items to access default toolbar items in the Scheduler.
124
- * ```props
125
- * Previous :- Denotes the previous date navigation button in the Schedule toolbar.
126
- * Next :- Denotes the next date navigation button in the Schedule toolbar.
127
- * Today :- Denotes the today button in the Schedule toolbar.
128
- * Views :- Denotes the view-switching in the Schedule toolbar.
129
- * DateRangeText :- Denotes the date range text in the Schedule toolbar.
130
- * NewEvent :- Denotes the new event button in the Schedule toolbar.
131
- * ```
132
- */
133
- export type ToolbarName = 'Custom' | 'Previous' | 'Next' | 'Today' | 'Views' | 'DateRangeText' | 'NewEvent';
134
-
135
- /**
136
- * An enum that defines the possible directions for a date collection.
137
- *
138
- * - **Previous:** Denotes the previous date collection.
139
- * - **Next:** Denotes the next date collection.
140
- * - **Current:** Denotes the current date collection.
141
- */
142
- export type NavigationDirection = 'Previous' | 'Next' | 'Current';
@@ -1,266 +0,0 @@
1
- /**
2
- * Schedule common utilities
3
- */
4
- export declare const WEEK_LENGTH: number;
5
- export declare const DEFAULT_WEEKS: number;
6
- export declare const MS_PER_DAY: number;
7
- export declare const MS_PER_MINUTE: number;
8
- /**
9
- * Method to get height from element
10
- *
11
- * @param {Element} container Accepts the DOM element
12
- * @param {string} elementClass Accepts the element class
13
- * @param {boolean} isTransformed Accepts the boolean value that indicates the status of the transform style applied to the element
14
- * @returns {number} Returns the height of the element
15
- */
16
- export declare function getElementHeightFromClass(container: Element, elementClass: string, isTransformed?: boolean): number;
17
- /**
18
- * Method to get width from element
19
- *
20
- * @param {Element} container Accepts the DOM element
21
- * @param {string} elementClass Accepts the element class
22
- * @param {boolean} isTransformed Accepts the boolean value that indicates the status of the transform style applied to the element
23
- * @returns {number} Returns the width of the element
24
- */
25
- export declare function getElementWidthFromClass(container: Element, elementClass: string, isTransformed?: boolean): number;
26
- /**
27
- * Method to get translateY value
28
- *
29
- * @param {HTMLElement | Element} element Accepts the DOM element
30
- * @returns {number} Returns the translateY value of given element
31
- */
32
- export declare function getTranslateY(element: HTMLElement | Element): number;
33
- /**
34
- * Method to get translateX value
35
- *
36
- * @param {HTMLElement | Element} element Accepts the DOM element
37
- * @returns {number} Returns the translateX value of given element
38
- */
39
- export declare function getTranslateX(element: HTMLElement | Element): number;
40
- /**
41
- * Method to get week first date
42
- *
43
- * @param {Date} date Accepts the date object
44
- * @param {number} firstDayOfWeek Accepts the first day of week number
45
- * @returns {Date} Returns the date object
46
- */
47
- export declare function getWeekFirstDate(date: Date, firstDayOfWeek: number): Date;
48
- /**
49
- * Method to get week last date
50
- *
51
- * @param {Date} date Accepts the date object
52
- * @param {number} firstDayOfWeek Accepts the first day of week number
53
- * @returns {Date} Returns the date object
54
- */
55
- export declare function getWeekLastDate(date: Date, firstDayOfWeek: number): Date;
56
- /**
57
- * Method to get first date of month
58
- *
59
- * @param {Date} date Accepts the date object
60
- * @returns {Date} Returns the date object
61
- */
62
- export declare function firstDateOfMonth(date: Date): Date;
63
- /**
64
- * Method to get last date of month
65
- *
66
- * @param {Date} date Accepts the date object
67
- * @returns {Date} Returns the date object
68
- */
69
- export declare function lastDateOfMonth(date: Date): Date;
70
- /**
71
- * Method to get week number
72
- *
73
- * @param {Date} date Accepts the date object
74
- * @returns {number} Returns the week number
75
- */
76
- export declare function getWeekNumber(date: Date): number;
77
- /**
78
- * Method to get week middle date
79
- *
80
- * @param {Date} weekFirst Accepts the week first date object
81
- * @param {Date} weekLast Accepts the week last date object
82
- * @returns {Date} Returns the date object
83
- */
84
- export declare function getWeekMiddleDate(weekFirst: Date, weekLast: Date): Date;
85
- /**
86
- * Method to set time to date object
87
- *
88
- * @param {Date} date Accepts the date object
89
- * @param {number} time Accepts the milliseconds
90
- * @returns {Date} Returns the date object
91
- */
92
- export declare function setTime(date: Date, time: number): Date;
93
- /**
94
- * Method the reset hours in date object
95
- *
96
- * @param {Date} date Accepts the date object
97
- * @returns {Date} Returns the date object
98
- */
99
- export declare function resetTime(date: Date): Date;
100
- /**
101
- * Method to get milliseconds from date object
102
- *
103
- * @param {Date} date Accepts the date object
104
- * @returns {number} Returns the milliseconds from date object
105
- */
106
- export declare function getDateInMs(date: Date): number;
107
- /**
108
- * Method to get date count between two dates
109
- *
110
- * @param {Date} startDate Accepts the date object
111
- * @param {Date} endDate Accepts the date object
112
- * @returns {number} Returns the date count
113
- */
114
- export declare function getDateCount(startDate: Date, endDate: Date): number;
115
- /**
116
- * Method to add no of days in date object
117
- *
118
- * @param {Date} date Accepts the date object
119
- * @param {number} noOfDays Accepts the number of days count
120
- * @returns {Date} Returns the date object
121
- */
122
- export declare function addDays(date: Date, noOfDays: number): Date;
123
- /**
124
- * Method to add no of months in date object
125
- *
126
- * @param {Date} date Accepts the date object
127
- * @param {number} noOfMonths Accepts the number of month count
128
- * @returns {Date} Returns the date object
129
- */
130
- export declare function addMonths(date: Date, noOfMonths: number): Date;
131
- /**
132
- * Method to add no of years in date object
133
- *
134
- * @param {Date} date Accepts the date object
135
- * @param {number} noOfYears Accepts the number of month count
136
- * @returns {Date} Returns the date object
137
- */
138
- export declare function addYears(date: Date, noOfYears: number): Date;
139
- /**
140
- * Method to get start and end hours
141
- *
142
- * @param {Date} date Accepts the date object
143
- * @param {Date} startHour Accepts the start hour date object
144
- * @param {Date} endHour Accepts the end hour date object
145
- * @returns {Object} Returns the start and end hour date objects
146
- */
147
- export declare function getStartEndHours(date: Date, startHour: Date, endHour: Date): Record<string, Date>;
148
- /**
149
- * Method to get month last date
150
- *
151
- * @param {Date} date Accepts the date object
152
- * @returns {number} Returns the month last date
153
- */
154
- export declare function getMaxDays(date: Date): number;
155
- /**
156
- * Method to get days count between two dates
157
- *
158
- * @param {Date} startDate Accepts the date object
159
- * @param {Date} endDate Accepts the date object
160
- * @returns {number} Returns the days count
161
- */
162
- export declare function getDaysCount(startDate: number, endDate: number): number;
163
- /**
164
- * Method to get date object from date string
165
- *
166
- * @param {string} date Accepts the date string
167
- * @returns {Date} Returns the date object
168
- */
169
- export declare function getDateFromString(date: string): Date;
170
- /**
171
- * Method to get scrollbar width
172
- *
173
- * @returns {number} Returns the scrollbar width
174
- * @private
175
- */
176
- export declare function getScrollBarWidth(): number;
177
- /**
178
- * Method to reset scrollbar width
179
- *
180
- * @private
181
- * @returns {void}
182
- */
183
- export declare function resetScrollbarWidth(): void;
184
- /**
185
- * Method to find the index from data collection
186
- *
187
- * @param {Object} data Accepts the data as object
188
- * @param {string} field Accepts the field name
189
- * @param {string} value Accepts the value name
190
- * @param {Object} event Accepts the data as object
191
- * @param {Object[]} resourceCollection Accepts the data collections
192
- * @returns {number} Returns the index number
193
- */
194
- export declare function findIndexInData(data: Record<string, any>[], field: string, value: string, event?: Record<string, any>, resourceCollection?: Record<string, any>[]): number;
195
- /**
196
- * Method to get element outer height
197
- *
198
- * @param {HTMLElement} element Accepts the DOM element
199
- * @returns {number} Returns the outer height of the given element
200
- */
201
- export declare function getOuterHeight(element: HTMLElement): number;
202
- /**
203
- * Method to remove child elements
204
- *
205
- * @param {HTMLElement | Element} element Accepts the DOM element
206
- * @returns {void}
207
- */
208
- export declare function removeChildren(element: HTMLElement | Element): void;
209
- /**
210
- * Method to check DST is present or not in date object
211
- *
212
- * @param {Date} date Accepts the date object
213
- * @returns {boolean} Returns the boolean value for either DST is present or not
214
- */
215
- export declare function isDaylightSavingTime(date: Date): boolean;
216
- /**
217
- * Method to get UTC time value from date
218
- *
219
- * @param {Date} date Accepts the date
220
- * @returns {number} Returns the UTC time value
221
- */
222
- export declare function getUniversalTime(date: Date): number;
223
- /**
224
- * Method to check the device
225
- *
226
- * @returns {boolean} Returns the boolean value for either device is present or not.
227
- */
228
- export declare function isMobile(): boolean;
229
- /**
230
- * Method to check the IPad device
231
- *
232
- * @returns {boolean} Returns the boolean value for either IPad device is present or not.
233
- */
234
- export declare function isIPadDevice(): boolean;
235
- /**
236
- * Method to capitalize the first word in string
237
- *
238
- * @param {string} inputString Accepts the string value
239
- * @param {string} type Accepts the string type
240
- * @returns {string} Returns the output string
241
- */
242
- export declare function capitalizeFirstWord(inputString: string, type: string): string;
243
- /**
244
- * Method to get element cell width
245
- *
246
- * @param {HTMLElement} element Accepts the DOM element
247
- * @param {boolean} isTransformed Accepts the boolean value that indicates the status of the transform style applied to the element
248
- * @returns {number} Returns the width of the given element
249
- */
250
- export declare function getElementWidth(element: HTMLElement, isTransformed?: boolean): number;
251
- /**
252
- * Method to get element cell Height
253
- *
254
- * @param {HTMLElement} element Accepts the DOM element
255
- * @param {boolean} isTransformed Accepts the boolean value that indicates the status of the transform style applied to the element
256
- * @returns {number} Returns the Height of the given element
257
- */
258
- export declare function getElementHeight(element: HTMLElement, isTransformed?: boolean): number;
259
- /**
260
- * Method to get element cell Top
261
- *
262
- * @param {HTMLElement} element Accepts the DOM element
263
- * @param {boolean} isTransformed Accepts the boolean value that indicates the status of the transform style applied to the element
264
- * @returns {number} Returns the top value of the given element
265
- */
266
- export declare function getElementTop(element: HTMLElement, isTransformed?: boolean): number;