@syncfusion/ej2-schedule 26.1.39 → 26.1.41-16103

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 (298) hide show
  1. package/.eslintrc.json +243 -260
  2. package/README.md +82 -82
  3. package/dist/ej2-schedule.umd.min.js +1 -10
  4. package/dist/ej2-schedule.umd.min.js.map +1 -1
  5. package/dist/es6/ej2-schedule.es2015.js +605 -249
  6. package/dist/es6/ej2-schedule.es2015.js.map +1 -1
  7. package/dist/es6/ej2-schedule.es5.js +1072 -709
  8. package/dist/es6/ej2-schedule.es5.js.map +1 -1
  9. package/helpers/e2e/index.js +3 -3
  10. package/helpers/e2e/recurrence-editor.js +13 -13
  11. package/helpers/e2e/schedule.js +13 -13
  12. package/license +9 -9
  13. package/package.json +79 -79
  14. package/src/recurrence-editor/date-generator.js +3 -0
  15. package/src/recurrence-editor/recurrence-editor-model.d.ts +65 -65
  16. package/src/recurrence-editor/recurrence-editor.js +19 -19
  17. package/src/schedule/actions/crud.js +22 -6
  18. package/src/schedule/actions/drag.d.ts +4 -0
  19. package/src/schedule/actions/drag.js +73 -34
  20. package/src/schedule/actions/keyboard.d.ts +1 -0
  21. package/src/schedule/actions/keyboard.js +45 -3
  22. package/src/schedule/actions/resize.js +34 -32
  23. package/src/schedule/actions/touch.js +4 -0
  24. package/src/schedule/actions/virtual-scroll.d.ts +6 -0
  25. package/src/schedule/actions/virtual-scroll.js +119 -34
  26. package/src/schedule/base/interface.d.ts +6 -2
  27. package/src/schedule/base/resource.js +5 -0
  28. package/src/schedule/base/schedule-model.d.ts +805 -805
  29. package/src/schedule/base/schedule.d.ts +26 -0
  30. package/src/schedule/base/schedule.js +63 -21
  31. package/src/schedule/base/util.d.ts +10 -5
  32. package/src/schedule/base/util.js +15 -10
  33. package/src/schedule/event-renderer/agenda-base.js +15 -14
  34. package/src/schedule/event-renderer/event-base.js +18 -3
  35. package/src/schedule/event-renderer/inline-edit.js +13 -5
  36. package/src/schedule/event-renderer/month.js +20 -17
  37. package/src/schedule/event-renderer/timeline-view.js +21 -18
  38. package/src/schedule/event-renderer/vertical-view.d.ts +2 -1
  39. package/src/schedule/event-renderer/vertical-view.js +66 -34
  40. package/src/schedule/event-renderer/year.js +20 -20
  41. package/src/schedule/exports/print.js +1 -0
  42. package/src/schedule/models/event-settings-model.d.ts +155 -155
  43. package/src/schedule/models/event-settings.js +19 -19
  44. package/src/schedule/models/field-options-model.d.ts +22 -22
  45. package/src/schedule/models/field-options.js +19 -19
  46. package/src/schedule/models/fields-model.d.ts +92 -92
  47. package/src/schedule/models/fields.js +19 -19
  48. package/src/schedule/models/group-model.d.ts +48 -48
  49. package/src/schedule/models/group.js +19 -19
  50. package/src/schedule/models/header-rows-model.d.ts +22 -22
  51. package/src/schedule/models/header-rows.js +19 -19
  52. package/src/schedule/models/quick-info-templates-model.d.ts +37 -37
  53. package/src/schedule/models/quick-info-templates.js +19 -19
  54. package/src/schedule/models/resources-model.d.ts +85 -85
  55. package/src/schedule/models/resources.js +19 -19
  56. package/src/schedule/models/time-scale-model.d.ts +40 -40
  57. package/src/schedule/models/time-scale.js +19 -19
  58. package/src/schedule/models/toolbar-model.d.ts +187 -187
  59. package/src/schedule/models/toolbar.js +19 -19
  60. package/src/schedule/models/views-model.d.ts +329 -329
  61. package/src/schedule/models/views.js +19 -19
  62. package/src/schedule/models/work-hours-model.d.ts +16 -16
  63. package/src/schedule/models/work-hours.js +19 -19
  64. package/src/schedule/popups/event-tooltip.js +2 -1
  65. package/src/schedule/popups/event-window.d.ts +1 -0
  66. package/src/schedule/popups/event-window.js +25 -15
  67. package/src/schedule/renderer/agenda.js +13 -13
  68. package/src/schedule/renderer/day.js +13 -13
  69. package/src/schedule/renderer/header-renderer.d.ts +1 -0
  70. package/src/schedule/renderer/header-renderer.js +20 -12
  71. package/src/schedule/renderer/month-agenda.js +13 -13
  72. package/src/schedule/renderer/month.js +19 -13
  73. package/src/schedule/renderer/timeline-header-row.js +1 -1
  74. package/src/schedule/renderer/timeline-month.js +13 -13
  75. package/src/schedule/renderer/timeline-view.js +22 -17
  76. package/src/schedule/renderer/timeline-year.js +19 -15
  77. package/src/schedule/renderer/vertical-view.js +33 -23
  78. package/src/schedule/renderer/view-base.d.ts +1 -0
  79. package/src/schedule/renderer/view-base.js +14 -1
  80. package/src/schedule/renderer/week.js +13 -13
  81. package/src/schedule/renderer/work-week.js +13 -13
  82. package/src/schedule/renderer/year.js +17 -17
  83. package/styles/bootstrap-dark-lite.css +4174 -0
  84. package/styles/bootstrap-dark-lite.scss +18 -0
  85. package/styles/bootstrap-dark.css +823 -595
  86. package/styles/bootstrap-dark.scss +3 -2
  87. package/styles/bootstrap-lite.css +4169 -0
  88. package/styles/bootstrap-lite.scss +18 -0
  89. package/styles/bootstrap.css +823 -595
  90. package/styles/bootstrap.scss +3 -2
  91. package/styles/bootstrap4-lite.css +4216 -0
  92. package/styles/bootstrap4-lite.scss +18 -0
  93. package/styles/bootstrap4.css +809 -636
  94. package/styles/bootstrap4.scss +3 -2
  95. package/styles/bootstrap5-dark-lite.css +4215 -0
  96. package/styles/bootstrap5-dark-lite.scss +18 -0
  97. package/styles/bootstrap5-dark.css +824 -596
  98. package/styles/bootstrap5-dark.scss +3 -2
  99. package/styles/bootstrap5-lite.css +4215 -0
  100. package/styles/bootstrap5-lite.scss +18 -0
  101. package/styles/bootstrap5.3-lite.css +4261 -0
  102. package/styles/bootstrap5.3-lite.scss +18 -0
  103. package/styles/bootstrap5.3.css +5023 -0
  104. package/styles/bootstrap5.3.scss +20 -0
  105. package/styles/bootstrap5.css +824 -596
  106. package/styles/bootstrap5.scss +3 -2
  107. package/styles/fabric-dark-lite.css +4144 -0
  108. package/styles/fabric-dark-lite.scss +18 -0
  109. package/styles/fabric-dark.css +830 -594
  110. package/styles/fabric-dark.scss +3 -2
  111. package/styles/fabric-lite.css +4141 -0
  112. package/styles/fabric-lite.scss +18 -0
  113. package/styles/fabric.css +830 -587
  114. package/styles/fabric.scss +3 -2
  115. package/styles/fluent-dark-lite.css +4207 -0
  116. package/styles/fluent-dark-lite.scss +18 -0
  117. package/styles/fluent-dark.css +828 -592
  118. package/styles/fluent-dark.scss +3 -2
  119. package/styles/fluent-lite.css +4207 -0
  120. package/styles/fluent-lite.scss +18 -0
  121. package/styles/fluent.css +828 -592
  122. package/styles/fluent.scss +3 -2
  123. package/styles/fluent2-lite.css +4427 -0
  124. package/styles/fluent2-lite.scss +18 -0
  125. package/styles/fluent2.css +863 -1627
  126. package/styles/fluent2.scss +3 -2
  127. package/styles/highcontrast-light-lite.css +4233 -0
  128. package/styles/highcontrast-light-lite.scss +18 -0
  129. package/styles/highcontrast-light.css +833 -583
  130. package/styles/highcontrast-light.scss +3 -2
  131. package/styles/highcontrast-lite.css +4242 -0
  132. package/styles/highcontrast-lite.scss +18 -0
  133. package/styles/highcontrast.css +834 -584
  134. package/styles/highcontrast.scss +3 -2
  135. package/styles/material-dark-lite.css +4221 -0
  136. package/styles/material-dark-lite.scss +18 -0
  137. package/styles/material-dark.css +839 -581
  138. package/styles/material-dark.scss +3 -2
  139. package/styles/material-lite.css +4247 -0
  140. package/styles/material-lite.scss +18 -0
  141. package/styles/material.css +836 -599
  142. package/styles/material.scss +3 -2
  143. package/styles/material3-dark-lite.css +4238 -0
  144. package/styles/material3-dark-lite.scss +18 -0
  145. package/styles/material3-dark.css +832 -656
  146. package/styles/material3-dark.scss +4 -3
  147. package/styles/material3-lite.css +4240 -0
  148. package/styles/material3-lite.scss +18 -0
  149. package/styles/material3.css +831 -709
  150. package/styles/material3.scss +4 -3
  151. package/styles/recurrence-editor/_all.scss +2 -2
  152. package/styles/recurrence-editor/_bds-definition.scss +14 -14
  153. package/styles/recurrence-editor/_bigger.scss +134 -0
  154. package/styles/recurrence-editor/_bootstrap-dark-definition.scss +14 -14
  155. package/styles/recurrence-editor/_bootstrap-definition.scss +14 -14
  156. package/styles/recurrence-editor/_bootstrap4-definition.scss +14 -14
  157. package/styles/recurrence-editor/_bootstrap5-definition.scss +14 -14
  158. package/styles/recurrence-editor/_bootstrap5.3-definition.scss +14 -14
  159. package/styles/recurrence-editor/_fabric-dark-definition.scss +14 -14
  160. package/styles/recurrence-editor/_fabric-definition.scss +14 -14
  161. package/styles/recurrence-editor/_fluent-definition.scss +14 -14
  162. package/styles/recurrence-editor/_fluent2-definition.scss +14 -14
  163. package/styles/recurrence-editor/_fusionnew-definition.scss +14 -14
  164. package/styles/recurrence-editor/_highcontrast-definition.scss +14 -14
  165. package/styles/recurrence-editor/_highcontrast-light-definition.scss +14 -14
  166. package/styles/recurrence-editor/_layout.scss +415 -525
  167. package/styles/recurrence-editor/_material-dark-definition.scss +14 -14
  168. package/styles/recurrence-editor/_material-definition.scss +14 -14
  169. package/styles/recurrence-editor/_material3-definition.scss +14 -14
  170. package/styles/recurrence-editor/_tailwind-definition.scss +14 -14
  171. package/styles/recurrence-editor/_theme.scss +1 -1
  172. package/styles/recurrence-editor/bootstrap-dark.css +87 -131
  173. package/styles/recurrence-editor/bootstrap-dark.scss +1 -0
  174. package/styles/recurrence-editor/bootstrap.css +87 -131
  175. package/styles/recurrence-editor/bootstrap.scss +1 -0
  176. package/styles/recurrence-editor/bootstrap4.css +87 -149
  177. package/styles/recurrence-editor/bootstrap4.scss +1 -0
  178. package/styles/recurrence-editor/bootstrap5-dark.css +87 -135
  179. package/styles/recurrence-editor/bootstrap5-dark.scss +1 -0
  180. package/styles/recurrence-editor/bootstrap5.3.css +501 -0
  181. package/styles/recurrence-editor/bootstrap5.3.scss +9 -0
  182. package/styles/recurrence-editor/bootstrap5.css +87 -135
  183. package/styles/recurrence-editor/bootstrap5.scss +1 -0
  184. package/styles/recurrence-editor/fabric-dark.css +87 -130
  185. package/styles/recurrence-editor/fabric-dark.scss +1 -0
  186. package/styles/recurrence-editor/fabric.css +87 -123
  187. package/styles/recurrence-editor/fabric.scss +1 -0
  188. package/styles/recurrence-editor/fluent-dark.css +87 -122
  189. package/styles/recurrence-editor/fluent-dark.scss +1 -0
  190. package/styles/recurrence-editor/fluent.css +87 -122
  191. package/styles/recurrence-editor/fluent.scss +1 -0
  192. package/styles/recurrence-editor/fluent2.css +94 -1148
  193. package/styles/recurrence-editor/fluent2.scss +1 -0
  194. package/styles/recurrence-editor/highcontrast-light.css +87 -118
  195. package/styles/recurrence-editor/highcontrast-light.scss +1 -0
  196. package/styles/recurrence-editor/highcontrast.css +87 -118
  197. package/styles/recurrence-editor/highcontrast.scss +1 -0
  198. package/styles/recurrence-editor/material-dark.css +87 -115
  199. package/styles/recurrence-editor/material-dark.scss +1 -0
  200. package/styles/recurrence-editor/material.css +87 -136
  201. package/styles/recurrence-editor/material.scss +1 -0
  202. package/styles/recurrence-editor/material3-dark.css +88 -194
  203. package/styles/recurrence-editor/material3-dark.scss +2 -1
  204. package/styles/recurrence-editor/material3.css +89 -249
  205. package/styles/recurrence-editor/material3.scss +2 -1
  206. package/styles/recurrence-editor/tailwind-dark.css +87 -116
  207. package/styles/recurrence-editor/tailwind-dark.scss +1 -0
  208. package/styles/recurrence-editor/tailwind.css +87 -116
  209. package/styles/recurrence-editor/tailwind.scss +1 -0
  210. package/styles/schedule/_all.scss +2 -2
  211. package/styles/schedule/_bds-definition.scss +272 -272
  212. package/styles/schedule/_bigger.scss +810 -0
  213. package/styles/schedule/_bootstrap-dark-definition.scss +270 -270
  214. package/styles/schedule/_bootstrap-definition.scss +270 -270
  215. package/styles/schedule/_bootstrap4-definition.scss +273 -273
  216. package/styles/schedule/_bootstrap5-definition.scss +274 -274
  217. package/styles/schedule/_bootstrap5.3-definition.scss +276 -273
  218. package/styles/schedule/_fabric-dark-definition.scss +271 -271
  219. package/styles/schedule/_fabric-definition.scss +270 -270
  220. package/styles/schedule/_fluent-definition.scss +276 -276
  221. package/styles/schedule/_fluent2-definition.scss +273 -273
  222. package/styles/schedule/_fusionnew-definition.scss +273 -273
  223. package/styles/schedule/_highcontrast-definition.scss +271 -271
  224. package/styles/schedule/_highcontrast-light-definition.scss +271 -271
  225. package/styles/schedule/_layout.scss +3787 -4218
  226. package/styles/schedule/_material-dark-definition.scss +270 -270
  227. package/styles/schedule/_material-definition.scss +270 -270
  228. package/styles/schedule/_material3-definition.scss +275 -275
  229. package/styles/schedule/_tailwind-definition.scss +271 -271
  230. package/styles/schedule/_theme.scss +589 -567
  231. package/styles/schedule/bootstrap-dark.css +706 -484
  232. package/styles/schedule/bootstrap-dark.scss +1 -0
  233. package/styles/schedule/bootstrap.css +706 -484
  234. package/styles/schedule/bootstrap.scss +1 -0
  235. package/styles/schedule/bootstrap4.css +699 -532
  236. package/styles/schedule/bootstrap4.scss +1 -0
  237. package/styles/schedule/bootstrap5-dark.css +714 -492
  238. package/styles/schedule/bootstrap5-dark.scss +1 -0
  239. package/styles/schedule/bootstrap5.3.css +4621 -0
  240. package/styles/schedule/bootstrap5.3.scss +17 -0
  241. package/styles/schedule/bootstrap5.css +714 -492
  242. package/styles/schedule/bootstrap5.scss +1 -0
  243. package/styles/schedule/fabric-dark.css +713 -483
  244. package/styles/schedule/fabric-dark.scss +1 -0
  245. package/styles/schedule/fabric.css +713 -476
  246. package/styles/schedule/fabric.scss +1 -0
  247. package/styles/schedule/fluent-dark.css +723 -493
  248. package/styles/schedule/fluent-dark.scss +1 -0
  249. package/styles/schedule/fluent.css +723 -493
  250. package/styles/schedule/fluent.scss +1 -0
  251. package/styles/schedule/fluent2.css +752 -1525
  252. package/styles/schedule/fluent2.scss +1 -0
  253. package/styles/schedule/highcontrast-light.css +721 -477
  254. package/styles/schedule/highcontrast-light.scss +1 -0
  255. package/styles/schedule/highcontrast.css +721 -477
  256. package/styles/schedule/highcontrast.scss +1 -0
  257. package/styles/schedule/icons/_bds.scss +220 -220
  258. package/styles/schedule/icons/_bootstrap-dark.scss +223 -223
  259. package/styles/schedule/icons/_bootstrap.scss +223 -223
  260. package/styles/schedule/icons/_bootstrap4.scss +217 -217
  261. package/styles/schedule/icons/_bootstrap5.3.scss +220 -220
  262. package/styles/schedule/icons/_bootstrap5.scss +220 -220
  263. package/styles/schedule/icons/_fabric-dark.scss +223 -223
  264. package/styles/schedule/icons/_fabric.scss +223 -223
  265. package/styles/schedule/icons/_fluent.scss +220 -220
  266. package/styles/schedule/icons/_fluent2.scss +220 -220
  267. package/styles/schedule/icons/_fusionnew.scss +220 -220
  268. package/styles/schedule/icons/_highcontrast-light.scss +223 -223
  269. package/styles/schedule/icons/_highcontrast.scss +223 -223
  270. package/styles/schedule/icons/_material-dark.scss +223 -223
  271. package/styles/schedule/icons/_material.scss +223 -223
  272. package/styles/schedule/icons/_material3.scss +220 -220
  273. package/styles/schedule/icons/_tailwind.scss +220 -220
  274. package/styles/schedule/material-dark.css +732 -480
  275. package/styles/schedule/material-dark.scss +1 -0
  276. package/styles/schedule/material.css +729 -498
  277. package/styles/schedule/material.scss +1 -0
  278. package/styles/schedule/material3-dark.css +713 -543
  279. package/styles/schedule/material3-dark.scss +2 -1
  280. package/styles/schedule/material3.css +714 -598
  281. package/styles/schedule/material3.scss +2 -1
  282. package/styles/schedule/tailwind-dark.css +725 -484
  283. package/styles/schedule/tailwind-dark.scss +1 -0
  284. package/styles/schedule/tailwind.css +725 -484
  285. package/styles/schedule/tailwind.scss +1 -0
  286. package/styles/tailwind-dark-lite.css +4184 -0
  287. package/styles/tailwind-dark-lite.scss +18 -0
  288. package/styles/tailwind-dark.css +832 -585
  289. package/styles/tailwind-dark.scss +3 -2
  290. package/styles/tailwind-lite.css +4184 -0
  291. package/styles/tailwind-lite.scss +18 -0
  292. package/styles/tailwind.css +832 -585
  293. package/styles/tailwind.scss +3 -2
  294. package/dist/ej2-schedule.min.js +0 -10
  295. package/dist/global/ej2-schedule.min.js +0 -11
  296. package/dist/global/ej2-schedule.min.js.map +0 -1
  297. package/dist/global/index.d.ts +0 -14
  298. package/tslint.json +0 -111
@@ -1,4 +1,4 @@
1
- import { Property, ChildProperty, Complex, Collection } from '@syncfusion/ej2-base';import { View, Orientation } from '../base/type';import { TimeScale } from '../models/time-scale';import { TimeScaleModel, GroupModel, HeaderRowsModel } from '../models/models';import { Group } from '../models/group';import { HeaderRows } from './header-rows';
1
+ import { Property, ChildProperty, Complex, Collection } from '@syncfusion/ej2-base';
2
2
 
3
3
  /**
4
4
  * Interface for a class Views
@@ -6,333 +6,333 @@ import { Property, ChildProperty, Complex, Collection } from '@syncfusion/ej2-ba
6
6
  export interface ViewsModel {
7
7
 
8
8
  /**
9
- * It accepts the schedule view name, based on which we can define with its related properties in a single object.
10
- * The applicable view names are,
11
- * * Day - Denotes Day view of the scheduler.
12
- * * Week - Denotes Week view of the scheduler.
13
- * * WorkWeek - Denotes Work Week view of the scheduler.
14
- * * Month - Denotes Month view of the scheduler.
15
- * * Year - Denotes Year view of the scheduler.
16
- * * Agenda - Denotes Agenda view of the scheduler.
17
- * * MonthAgenda - Denotes Month Agenda view of the scheduler.
18
- * * TimelineDay - Denotes Timeline Day view of the scheduler.
19
- * * TimelineWeek - Denotes Timeline Week view of the scheduler.
20
- * * TimelineWorkWeek - Denotes Timeline Work Week view of the scheduler.
21
- * * TimelineMonth - Denotes Timeline Month view of the scheduler.
22
- * * TimelineYear - Denotes Timeline Year view of the scheduler.
23
- *
24
- * @default null
25
- */
26
- option?: View;
27
-
28
- /**
29
- * To denote whether the view name given on the `option` is active or not.
30
- * It acts similar to the [`currentView`](../../schedule/#current-view/)
31
- * property and defines the active view of Schedule.
32
- *
33
- * @default false
34
- */
35
- isSelected?: boolean;
36
-
37
- /**
38
- * By default, Schedule follows the date-format as per the default culture assigned to it. It is also possible to manually set
39
- * specific date format by using the `dateFormat` property. The format of the date range label in the header bar depends on
40
- * the `dateFormat` value or else based on the locale assigned to the Schedule.
41
- * It gets applied only to the view objects on which it is defined.
42
- *
43
- * @default null
44
- */
45
- dateFormat?: string;
46
-
47
- /**
48
- * When set to `true`, displays a quick popup with cell or event details on single clicking over the cells or on events.
49
- * By default, it is set to `true`. It gets applied only to the view objects on which it is defined.
50
- *
51
- * @default false
52
- */
53
- readonly?: boolean;
54
-
55
- /**
56
- * It is used to specify the starting hour, from which the Schedule starts to display.
57
- * It accepts the time string in a short skeleton format and also, hides the time beyond the specified start time.
58
- *
59
- * @default '00:00'
60
- */
61
- startHour?: string;
62
-
63
- /**
64
- * It is used to specify the end hour, at which the Schedule ends. It too accepts the time string in a short skeleton format.
65
- *
66
- * @default '24:00'
67
- */
68
- endHour?: string;
69
-
70
- /**
71
- * It is used to allow or disallow the virtual scrolling functionality.
72
- *
73
- * @default false
74
- */
75
- allowVirtualScrolling?: boolean;
76
-
77
- /**
78
- * Specifies the maximum number of events to be displayed in a single row.
79
- * This property is applicable when the 'rowAutoHeight' property is disabled.
80
- * This property is only applicable for the month view, timeline views, and timeline year view.
81
- *
82
- * @default null
83
- */
84
- maxEventsPerRow?: number;
85
-
86
- /**
87
- * It accepts either the string or HTMLElement as template design content and parse it appropriately before displaying it onto the
88
- * month date cells.
89
- * This template is only applicable for month view day cells.
90
- *
91
- * @default null
92
- * @angularType string | object
93
- * @reactType string | function | JSX.Element
94
- * @vueType string | function
95
- * @aspType string
96
- */
97
- cellHeaderTemplate?: string | Function;
98
-
99
- /**
100
- * It accepts either the string or HTMLElement as template design content and parse it appropriately before displaying it onto the
101
- * date header cells. The field that can be accessed via this template is `date`.
102
- * It gets applied only to the view objects on which it is defined.
103
- *
104
- * @default null
105
- * @aspType string
106
- */
107
- dateHeaderTemplate?: string | Function;
108
-
109
- /**
110
- * It accepts either the string or HTMLElement as template design content and parse it appropriately before displaying it onto the header date range.
111
- *
112
- * @default null
113
- * @angularType string | object
114
- * @reactType string | function | JSX.Element
115
- * @vueType string | function
116
- * @aspType string
117
- */
118
- dateRangeTemplate?: string | Function;
119
-
120
- /**
121
- * The template option which is used to render the customized work cells on the Schedule. Here, the
122
- * template accepts either the string or HTMLElement as template design and then the parsed design is displayed onto the work cells.
123
- * The field accessible via template is `date`. It gets applied only to the view objects on which it is defined.
124
- *
125
- * @default null
126
- * @angularType string | object
127
- * @reactType string | function | JSX.Element
128
- * @vueType string | function
129
- * @aspType string
130
- */
131
- cellTemplate?: string | Function;
132
-
133
- /**
134
- * It accepts either the string or HTMLElement as template design content and parse it appropriately before displaying it onto the
135
- * Year view day cell header.
136
- * This template is only applicable for year view header cells.
137
- *
138
- * @default null
139
- * @angularType string | object
140
- * @reactType string | function | JSX.Element
141
- * @vueType string | function
142
- * @aspType string
143
- */
144
- dayHeaderTemplate?: string | Function;
145
-
146
- /**
147
- * It accepts either the string or HTMLElement as template design content and parse it appropriately before displaying it onto the
148
- * Year view day cell header.
149
- * This template is only applicable for year view header cells.
150
- *
151
- * @default null
152
- * @angularType string | object
153
- * @reactType string | function | JSX.Element
154
- * @vueType string | function
155
- * @aspType string
156
- */
157
- monthHeaderTemplate?: string | Function;
158
-
159
- /**
160
- * It accepts either the string or HTMLElement as template design content and parse it appropriately before displaying it onto
161
- * the event background. All the event fields mapped to Schedule from dataSource can be accessed within this template code.
162
- * It is similar to that of the `template` option available within the `eventSettings` property,
163
- * whereas it will get applied only on the events of the view to which it is currently being defined.
164
- *
165
- * @default null
166
- * @angularType string | object
167
- * @reactType string | function | JSX.Element
168
- * @vueType string | function
169
- * @aspType string
170
- */
171
- eventTemplate?: string | Function;
172
-
173
- /**
174
- * When set to `false`, it hides the weekend days of a week from the Schedule.
175
- * The days which are not defined in the working days collection are usually treated as weekend days.
176
- * Note: By default, this option is not applicable on `Work Week` view.
177
- * For example, if the working days are defined as [1, 2, 3, 4], then the remaining days of that week will be considered as the
178
- * weekend days and will be hidden on all the views.
179
- *
180
- * @default true
181
- */
182
- showWeekend?: boolean;
183
-
184
- /**
185
- * When set to `true`, displays the week number of the current view date range.
186
- *
187
- * @default false
188
- */
189
- showWeekNumber?: boolean;
190
-
191
- /**
192
- * When the same view is customized with different intervals, this property allows the user to set different display name
193
- * for those views.
194
- *
195
- * @default null
196
- */
197
- displayName?: string;
198
-
199
- /**
200
- * It accepts the number value denoting to include the number of days, weeks, workweeks or months on the defined view type.
201
- *
202
- * @default 1
203
- */
204
- interval?: number;
205
-
206
- /**
207
- * This option allows the user to set the first day of a week on Schedule. It should be based on the locale set to it and each culture
208
- * defines its own first day of week values. If needed, the user can set it manually on his own by defining the value through
209
- * this property. It usually accepts the integer values, whereby 0 is always denoted as Sunday, 1 as Monday and so on.
210
- *
211
- * @default 0
212
- */
213
- firstDayOfWeek?: number;
214
-
215
- /**
216
- * This property helps render the year view customized months.
217
- * By default, it is set to `0`.
218
- *
219
- * @default 0
220
- */
221
- firstMonthOfYear?: number;
222
-
223
- /**
224
- * This option allows the user to set the number of months count to be displayed on the Schedule.
225
- * {% codeBlock src='schedule/monthsCount/index.md' %}{% endcodeBlock %}
226
- *
227
- * @default 12
228
- * @aspType int
229
- */
230
- monthsCount?: number;
231
-
232
- /**
233
- * It is used to set the working days on schedule. The only days that are defined in this collection will be rendered on the
234
- * `workWeek` view whereas on other views, it will display all the usual days and simply highlights the working days with different
235
- * shade.
236
- *
237
- * @default '[1, 2, 3, 4, 5]'
238
- * @aspType int[]
239
- */
240
- workDays?: number[];
241
-
242
- /**
243
- * The template option which is used to render the customized header cells on the schedule. Here, the
244
- * template accepts either the string or HTMLElement as template design and then the parsed design is displayed onto the header cells.
245
- * All the resource fields mapped within resources can be accessed within this template code.
246
- * It gets applied only to the view objects on which it is defined.
247
- *
248
- * @default null
249
- * @angularType string | object
250
- * @reactType string | function | JSX.Element
251
- * @vueType string | function
252
- * @aspType string
253
- */
254
- resourceHeaderTemplate?: string | Function;
255
-
256
- /**
257
- * The template option which is used to render the customized header indent cell on the schedule. Here, the
258
- * template accepts either the string or HTMLElement as template design and then the parsed design is displayed onto the header indent cell.
259
- * It gets applied only to the view objects on which it is defined.
260
- *
261
- * @default null
262
- * @angularType string | object
263
- * @reactType string | function | JSX.Element
264
- * @vueType string | function
265
- * @aspType string
266
- */
267
- headerIndentTemplate?: string | Function;
268
-
269
- /**
270
- * By default, Schedule follows the time-format as per the default culture assigned to it.
271
- * It is also possible to manually set specific time format by using the `timeFormat` property.
272
- * {% codeBlock src='schedule/timeFormat/index.md' %}{% endcodeBlock %}
273
- *
274
- * @default null
275
- */
276
- timeFormat?: string;
277
-
278
- /**
279
- * It is used to specify the year view rendering orientation on the schedule.
280
- * The applicable orientation values are,
281
- * * Horizontal - Denotes the horizontal orientation of Timeline Year view.
282
- * * Vertical - Denotes the vertical orientation of Timeline Year view.
283
- *
284
- * @default 'Horizontal'
285
- */
286
- orientation?: Orientation;
287
-
288
- /**
289
- * Allows to set different timescale configuration on each applicable view modes such as day, week and work week.
290
- *
291
- * @default { enable: true, interval: 60, slotCount: 2, majorSlotTemplate: null, minorSlotTemplate: null }
292
- */
293
- timeScale?: TimeScaleModel;
294
-
295
- /**
296
- * Allows to set different resource grouping options on all available schedule view modes.
297
- *
298
- * @default { byDate: false, byGroupID: true, allowGroupEdit: false, resources:[], hideNonWorkingDays: false }
299
- */
300
- group?: GroupModel;
301
-
302
- /**
303
- * Allows defining the collection of custom header rows to display the year, month, week, date and hour label as an individual row
304
- * on the timeline view of the scheduler.
305
- *
306
- * @default []
307
- */
308
- headerRows?: HeaderRowsModel[];
309
-
310
- /**
311
- * This property customizes the number of weeks that are shown in month view. By default, it shows all weeks in the current month.
312
- * Use displayDate property to customize the starting week of month.
313
- * {% codeBlock src='schedule/numberOfWeeks/index.md' %}{% endcodeBlock %}
314
- *
315
- * @default 0
316
- * @aspType int
317
- */
318
- numberOfWeeks?: number;
319
-
320
- /**
321
- * Specifies the starting week date at an initial rendering of month view. This property is only applicable for month view.
322
- * If this property value is not set, then the month view will be rendered from the first week of the month.
323
- * {% codeBlock src='schedule/displayDate/index.md' %}{% endcodeBlock %}
324
- *
325
- * @default null
326
- */
327
- displayDate?: Date;
328
-
329
- /**
330
- * Enables the lazy loading of events for scrolling actions only when the resources grouping property is enabled.
331
- * Lazy loading allows the scheduler to fetch the appointments dynamically during scroll actions for the currently rendered resource collection.
332
- * New event data is fetched on-demand as the user scrolls through the schedule content.
333
- *
334
- * @default false
335
- */
336
- enableLazyLoading?: boolean;
9
+ * It accepts the schedule view name, based on which we can define with its related properties in a single object.
10
+ * The applicable view names are,
11
+ * * Day - Denotes Day view of the scheduler.
12
+ * * Week - Denotes Week view of the scheduler.
13
+ * * WorkWeek - Denotes Work Week view of the scheduler.
14
+ * * Month - Denotes Month view of the scheduler.
15
+ * * Year - Denotes Year view of the scheduler.
16
+ * * Agenda - Denotes Agenda view of the scheduler.
17
+ * * MonthAgenda - Denotes Month Agenda view of the scheduler.
18
+ * * TimelineDay - Denotes Timeline Day view of the scheduler.
19
+ * * TimelineWeek - Denotes Timeline Week view of the scheduler.
20
+ * * TimelineWorkWeek - Denotes Timeline Work Week view of the scheduler.
21
+ * * TimelineMonth - Denotes Timeline Month view of the scheduler.
22
+ * * TimelineYear - Denotes Timeline Year view of the scheduler.
23
+ *
24
+ * @default null
25
+ */
26
+ option?: View;
27
+
28
+ /**
29
+ * To denote whether the view name given on the `option` is active or not.
30
+ * It acts similar to the [`currentView`](../../schedule/#current-view/)
31
+ * property and defines the active view of Schedule.
32
+ *
33
+ * @default false
34
+ */
35
+ isSelected?: boolean;
36
+
37
+ /**
38
+ * By default, Schedule follows the date-format as per the default culture assigned to it. It is also possible to manually set
39
+ * specific date format by using the `dateFormat` property. The format of the date range label in the header bar depends on
40
+ * the `dateFormat` value or else based on the locale assigned to the Schedule.
41
+ * It gets applied only to the view objects on which it is defined.
42
+ *
43
+ * @default null
44
+ */
45
+ dateFormat?: string;
46
+
47
+ /**
48
+ * When set to `true`, displays a quick popup with cell or event details on single clicking over the cells or on events.
49
+ * By default, it is set to `true`. It gets applied only to the view objects on which it is defined.
50
+ *
51
+ * @default false
52
+ */
53
+ readonly?: boolean;
54
+
55
+ /**
56
+ * It is used to specify the starting hour, from which the Schedule starts to display.
57
+ * It accepts the time string in a short skeleton format and also, hides the time beyond the specified start time.
58
+ *
59
+ * @default '00:00'
60
+ */
61
+ startHour?: string;
62
+
63
+ /**
64
+ * It is used to specify the end hour, at which the Schedule ends. It too accepts the time string in a short skeleton format.
65
+ *
66
+ * @default '24:00'
67
+ */
68
+ endHour?: string;
69
+
70
+ /**
71
+ * It is used to allow or disallow the virtual scrolling functionality.
72
+ *
73
+ * @default false
74
+ */
75
+ allowVirtualScrolling?: boolean;
76
+
77
+ /**
78
+ * Specifies the maximum number of events to be displayed in a single row.
79
+ * This property is applicable when the 'rowAutoHeight' property is disabled.
80
+ * This property is only applicable for the month view, timeline views, and timeline year view.
81
+ *
82
+ * @default null
83
+ */
84
+ maxEventsPerRow?: number;
85
+
86
+ /**
87
+ * It accepts either the string or HTMLElement as template design content and parse it appropriately before displaying it onto the
88
+ * month date cells.
89
+ * This template is only applicable for month view day cells.
90
+ *
91
+ * @default null
92
+ * @angularType string | object
93
+ * @reactType string | function | JSX.Element
94
+ * @vueType string | function
95
+ * @aspType string
96
+ */
97
+ cellHeaderTemplate?: string | Function;
98
+
99
+ /**
100
+ * It accepts either the string or HTMLElement as template design content and parse it appropriately before displaying it onto the
101
+ * date header cells. The field that can be accessed via this template is `date`.
102
+ * It gets applied only to the view objects on which it is defined.
103
+ *
104
+ * @default null
105
+ * @aspType string
106
+ */
107
+ dateHeaderTemplate?: string | Function;
108
+
109
+ /**
110
+ * It accepts either the string or HTMLElement as template design content and parse it appropriately before displaying it onto the header date range.
111
+ *
112
+ * @default null
113
+ * @angularType string | object
114
+ * @reactType string | function | JSX.Element
115
+ * @vueType string | function
116
+ * @aspType string
117
+ */
118
+ dateRangeTemplate?: string | Function;
119
+
120
+ /**
121
+ * The template option which is used to render the customized work cells on the Schedule. Here, the
122
+ * template accepts either the string or HTMLElement as template design and then the parsed design is displayed onto the work cells.
123
+ * The field accessible via template is `date`. It gets applied only to the view objects on which it is defined.
124
+ *
125
+ * @default null
126
+ * @angularType string | object
127
+ * @reactType string | function | JSX.Element
128
+ * @vueType string | function
129
+ * @aspType string
130
+ */
131
+ cellTemplate?: string | Function;
132
+
133
+ /**
134
+ * It accepts either the string or HTMLElement as template design content and parse it appropriately before displaying it onto the
135
+ * Year view day cell header.
136
+ * This template is only applicable for year view header cells.
137
+ *
138
+ * @default null
139
+ * @angularType string | object
140
+ * @reactType string | function | JSX.Element
141
+ * @vueType string | function
142
+ * @aspType string
143
+ */
144
+ dayHeaderTemplate?: string | Function;
145
+
146
+ /**
147
+ * It accepts either the string or HTMLElement as template design content and parse it appropriately before displaying it onto the
148
+ * Year view day cell header.
149
+ * This template is only applicable for year view header cells.
150
+ *
151
+ * @default null
152
+ * @angularType string | object
153
+ * @reactType string | function | JSX.Element
154
+ * @vueType string | function
155
+ * @aspType string
156
+ */
157
+ monthHeaderTemplate?: string | Function;
158
+
159
+ /**
160
+ * It accepts either the string or HTMLElement as template design content and parse it appropriately before displaying it onto
161
+ * the event background. All the event fields mapped to Schedule from dataSource can be accessed within this template code.
162
+ * It is similar to that of the `template` option available within the `eventSettings` property,
163
+ * whereas it will get applied only on the events of the view to which it is currently being defined.
164
+ *
165
+ * @default null
166
+ * @angularType string | object
167
+ * @reactType string | function | JSX.Element
168
+ * @vueType string | function
169
+ * @aspType string
170
+ */
171
+ eventTemplate?: string | Function;
172
+
173
+ /**
174
+ * When set to `false`, it hides the weekend days of a week from the Schedule.
175
+ * The days which are not defined in the working days collection are usually treated as weekend days.
176
+ * Note: By default, this option is not applicable on `Work Week` view.
177
+ * For example, if the working days are defined as [1, 2, 3, 4], then the remaining days of that week will be considered as the
178
+ * weekend days and will be hidden on all the views.
179
+ *
180
+ * @default true
181
+ */
182
+ showWeekend?: boolean;
183
+
184
+ /**
185
+ * When set to `true`, displays the week number of the current view date range.
186
+ *
187
+ * @default false
188
+ */
189
+ showWeekNumber?: boolean;
190
+
191
+ /**
192
+ * When the same view is customized with different intervals, this property allows the user to set different display name
193
+ * for those views.
194
+ *
195
+ * @default null
196
+ */
197
+ displayName?: string;
198
+
199
+ /**
200
+ * It accepts the number value denoting to include the number of days, weeks, workweeks or months on the defined view type.
201
+ *
202
+ * @default 1
203
+ */
204
+ interval?: number;
205
+
206
+ /**
207
+ * This option allows the user to set the first day of a week on Schedule. It should be based on the locale set to it and each culture
208
+ * defines its own first day of week values. If needed, the user can set it manually on his own by defining the value through
209
+ * this property. It usually accepts the integer values, whereby 0 is always denoted as Sunday, 1 as Monday and so on.
210
+ *
211
+ * @default 0
212
+ */
213
+ firstDayOfWeek?: number;
214
+
215
+ /**
216
+ * This property helps render the year view customized months.
217
+ * By default, it is set to `0`.
218
+ *
219
+ * @default 0
220
+ */
221
+ firstMonthOfYear?: number;
222
+
223
+ /**
224
+ * This option allows the user to set the number of months count to be displayed on the Schedule.
225
+ * {% codeBlock src='schedule/monthsCount/index.md' %}{% endcodeBlock %}
226
+ *
227
+ * @default 12
228
+ * @aspType int
229
+ */
230
+ monthsCount?: number;
231
+
232
+ /**
233
+ * It is used to set the working days on schedule. The only days that are defined in this collection will be rendered on the
234
+ * `workWeek` view whereas on other views, it will display all the usual days and simply highlights the working days with different
235
+ * shade.
236
+ *
237
+ * @default '[1, 2, 3, 4, 5]'
238
+ * @aspType int[]
239
+ */
240
+ workDays?: number[];
241
+
242
+ /**
243
+ * The template option which is used to render the customized header cells on the schedule. Here, the
244
+ * template accepts either the string or HTMLElement as template design and then the parsed design is displayed onto the header cells.
245
+ * All the resource fields mapped within resources can be accessed within this template code.
246
+ * It gets applied only to the view objects on which it is defined.
247
+ *
248
+ * @default null
249
+ * @angularType string | object
250
+ * @reactType string | function | JSX.Element
251
+ * @vueType string | function
252
+ * @aspType string
253
+ */
254
+ resourceHeaderTemplate?: string | Function;
255
+
256
+ /**
257
+ * The template option which is used to render the customized header indent cell on the schedule. Here, the
258
+ * template accepts either the string or HTMLElement as template design and then the parsed design is displayed onto the header indent cell.
259
+ * It gets applied only to the view objects on which it is defined.
260
+ *
261
+ * @default null
262
+ * @angularType string | object
263
+ * @reactType string | function | JSX.Element
264
+ * @vueType string | function
265
+ * @aspType string
266
+ */
267
+ headerIndentTemplate?: string | Function;
268
+
269
+ /**
270
+ * By default, Schedule follows the time-format as per the default culture assigned to it.
271
+ * It is also possible to manually set specific time format by using the `timeFormat` property.
272
+ * {% codeBlock src='schedule/timeFormat/index.md' %}{% endcodeBlock %}
273
+ *
274
+ * @default null
275
+ */
276
+ timeFormat?: string;
277
+
278
+ /**
279
+ * It is used to specify the year view rendering orientation on the schedule.
280
+ * The applicable orientation values are,
281
+ * * Horizontal - Denotes the horizontal orientation of Timeline Year view.
282
+ * * Vertical - Denotes the vertical orientation of Timeline Year view.
283
+ *
284
+ * @default 'Horizontal'
285
+ */
286
+ orientation?: Orientation;
287
+
288
+ /**
289
+ * Allows to set different timescale configuration on each applicable view modes such as day, week and work week.
290
+ *
291
+ * @default { enable: true, interval: 60, slotCount: 2, majorSlotTemplate: null, minorSlotTemplate: null }
292
+ */
293
+ timeScale?: TimeScaleModel;
294
+
295
+ /**
296
+ * Allows to set different resource grouping options on all available schedule view modes.
297
+ *
298
+ * @default { byDate: false, byGroupID: true, allowGroupEdit: false, resources:[], hideNonWorkingDays: false }
299
+ */
300
+ group?: GroupModel;
301
+
302
+ /**
303
+ * Allows defining the collection of custom header rows to display the year, month, week, date and hour label as an individual row
304
+ * on the timeline view of the scheduler.
305
+ *
306
+ * @default []
307
+ */
308
+ headerRows?: HeaderRowsModel[];
309
+
310
+ /**
311
+ * This property customizes the number of weeks that are shown in month view. By default, it shows all weeks in the current month.
312
+ * Use displayDate property to customize the starting week of month.
313
+ * {% codeBlock src='schedule/numberOfWeeks/index.md' %}{% endcodeBlock %}
314
+ *
315
+ * @default 0
316
+ * @aspType int
317
+ */
318
+ numberOfWeeks?: number;
319
+
320
+ /**
321
+ * Specifies the starting week date at an initial rendering of month view. This property is only applicable for month view.
322
+ * If this property value is not set, then the month view will be rendered from the first week of the month.
323
+ * {% codeBlock src='schedule/displayDate/index.md' %}{% endcodeBlock %}
324
+ *
325
+ * @default null
326
+ */
327
+ displayDate?: Date;
328
+
329
+ /**
330
+ * Enables the lazy loading of events for scrolling actions only when the resources grouping property is enabled.
331
+ * Lazy loading allows the scheduler to fetch the appointments dynamically during scroll actions for the currently rendered resource collection.
332
+ * New event data is fetched on-demand as the user scrolls through the schedule content.
333
+ *
334
+ * @default false
335
+ */
336
+ enableLazyLoading?: boolean;
337
337
 
338
338
  }