@syncfusion/ej2-schedule 30.2.7 → 31.1.17

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 (304) 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 +110 -36
  5. package/dist/es6/ej2-schedule.es2015.js.map +1 -1
  6. package/dist/es6/ej2-schedule.es5.js +110 -36
  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/dist/ts/common/calendar-util.d.ts +92 -0
  12. package/dist/ts/common/calendar-util.ts +261 -0
  13. package/dist/ts/common/index.d.ts +4 -0
  14. package/dist/ts/common/index.ts +4 -0
  15. package/dist/ts/components.d.ts +5 -0
  16. package/dist/ts/components.ts +5 -0
  17. package/dist/ts/index.d.ts +6 -0
  18. package/dist/ts/index.ts +7 -0
  19. package/dist/ts/recurrence-editor/date-generator.d.ts +76 -0
  20. package/dist/ts/recurrence-editor/date-generator.ts +1699 -0
  21. package/dist/ts/recurrence-editor/index.d.ts +6 -0
  22. package/dist/ts/recurrence-editor/index.ts +6 -0
  23. package/dist/ts/recurrence-editor/recurrence-editor-model.d.ts +112 -0
  24. package/dist/ts/recurrence-editor/recurrence-editor.d.ts +245 -0
  25. package/dist/ts/recurrence-editor/recurrence-editor.ts +1257 -0
  26. package/dist/ts/schedule/actions/action-base.d.ts +44 -0
  27. package/dist/ts/schedule/actions/action-base.ts +493 -0
  28. package/dist/ts/schedule/actions/crud.d.ts +41 -0
  29. package/dist/ts/schedule/actions/crud.ts +784 -0
  30. package/dist/ts/schedule/actions/data.d.ts +63 -0
  31. package/dist/ts/schedule/actions/data.ts +128 -0
  32. package/dist/ts/schedule/actions/drag.d.ts +75 -0
  33. package/dist/ts/schedule/actions/drag.ts +1401 -0
  34. package/dist/ts/schedule/actions/keyboard.d.ts +100 -0
  35. package/dist/ts/schedule/actions/keyboard.ts +1435 -0
  36. package/dist/ts/schedule/actions/resize.d.ts +27 -0
  37. package/dist/ts/schedule/actions/resize.ts +602 -0
  38. package/dist/ts/schedule/actions/scroll.d.ts +69 -0
  39. package/dist/ts/schedule/actions/scroll.ts +105 -0
  40. package/dist/ts/schedule/actions/touch.d.ts +32 -0
  41. package/dist/ts/schedule/actions/touch.ts +314 -0
  42. package/dist/ts/schedule/actions/virtual-scroll.d.ts +55 -0
  43. package/dist/ts/schedule/actions/virtual-scroll.ts +596 -0
  44. package/dist/ts/schedule/actions/work-cells.d.ts +14 -0
  45. package/dist/ts/schedule/actions/work-cells.ts +151 -0
  46. package/dist/ts/schedule/base/constant.d.ts +102 -0
  47. package/dist/ts/schedule/base/constant.ts +103 -0
  48. package/dist/ts/schedule/base/css-constant.d.ts +475 -0
  49. package/dist/ts/schedule/base/css-constant.ts +475 -0
  50. package/dist/ts/schedule/base/interface.d.ts +673 -0
  51. package/dist/ts/schedule/base/interface.ts +738 -0
  52. package/dist/ts/schedule/base/resource.d.ts +59 -0
  53. package/dist/ts/schedule/base/resource.ts +1091 -0
  54. package/dist/ts/schedule/base/schedule-model.d.ts +930 -0
  55. package/dist/ts/schedule/base/schedule.d.ts +1967 -0
  56. package/dist/ts/schedule/base/schedule.ts +4221 -0
  57. package/dist/ts/schedule/base/type.d.ts +134 -0
  58. package/dist/ts/schedule/base/type.ts +142 -0
  59. package/dist/ts/schedule/base/util.d.ts +266 -0
  60. package/dist/ts/schedule/base/util.ts +492 -0
  61. package/dist/ts/schedule/event-renderer/agenda-base.d.ts +15 -0
  62. package/dist/ts/schedule/event-renderer/agenda-base.ts +423 -0
  63. package/dist/ts/schedule/event-renderer/event-base.d.ts +101 -0
  64. package/dist/ts/schedule/event-renderer/event-base.ts +1501 -0
  65. package/dist/ts/schedule/event-renderer/inline-edit.d.ts +23 -0
  66. package/dist/ts/schedule/event-renderer/inline-edit.ts +287 -0
  67. package/dist/ts/schedule/event-renderer/month.d.ts +60 -0
  68. package/dist/ts/schedule/event-renderer/month.ts +760 -0
  69. package/dist/ts/schedule/event-renderer/timeline-view.d.ts +51 -0
  70. package/dist/ts/schedule/event-renderer/timeline-view.ts +606 -0
  71. package/dist/ts/schedule/event-renderer/vertical-view.d.ts +57 -0
  72. package/dist/ts/schedule/event-renderer/vertical-view.ts +898 -0
  73. package/dist/ts/schedule/event-renderer/year.d.ts +27 -0
  74. package/dist/ts/schedule/event-renderer/year.ts +623 -0
  75. package/dist/ts/schedule/exports/calendar-export.d.ts +16 -0
  76. package/dist/ts/schedule/exports/calendar-export.ts +160 -0
  77. package/dist/ts/schedule/exports/calendar-import.d.ts +18 -0
  78. package/dist/ts/schedule/exports/calendar-import.ts +277 -0
  79. package/dist/ts/schedule/exports/excel-export.d.ts +14 -0
  80. package/dist/ts/schedule/exports/excel-export.ts +89 -0
  81. package/dist/ts/schedule/exports/index.d.ts +7 -0
  82. package/dist/ts/schedule/exports/index.ts +7 -0
  83. package/dist/ts/schedule/exports/print.d.ts +20 -0
  84. package/dist/ts/schedule/exports/print.ts +233 -0
  85. package/dist/ts/schedule/index.d.ts +26 -0
  86. package/dist/ts/schedule/index.ts +26 -0
  87. package/dist/ts/schedule/models/event-settings-model.d.ts +165 -0
  88. package/dist/ts/schedule/models/event-settings.d.ts +149 -0
  89. package/dist/ts/schedule/models/event-settings.ts +187 -0
  90. package/dist/ts/schedule/models/field-options-model.d.ts +37 -0
  91. package/dist/ts/schedule/models/field-options.d.ts +31 -0
  92. package/dist/ts/schedule/models/field-options.ts +41 -0
  93. package/dist/ts/schedule/models/fields-model.d.ts +129 -0
  94. package/dist/ts/schedule/models/fields.d.ts +117 -0
  95. package/dist/ts/schedule/models/fields.ts +149 -0
  96. package/dist/ts/schedule/models/group-model.d.ts +69 -0
  97. package/dist/ts/schedule/models/group.d.ts +60 -0
  98. package/dist/ts/schedule/models/group.ts +75 -0
  99. package/dist/ts/schedule/models/header-rows-model.d.ts +33 -0
  100. package/dist/ts/schedule/models/header-rows.d.ts +30 -0
  101. package/dist/ts/schedule/models/header-rows.ts +35 -0
  102. package/dist/ts/schedule/models/models.d.ts +14 -0
  103. package/dist/ts/schedule/models/models.ts +15 -0
  104. package/dist/ts/schedule/models/quick-info-templates-model.d.ts +52 -0
  105. package/dist/ts/schedule/models/quick-info-templates.d.ts +47 -0
  106. package/dist/ts/schedule/models/quick-info-templates.ts +56 -0
  107. package/dist/ts/schedule/models/resources-model.d.ts +122 -0
  108. package/dist/ts/schedule/models/resources.d.ts +106 -0
  109. package/dist/ts/schedule/models/resources.ts +138 -0
  110. package/dist/ts/schedule/models/time-scale-model.d.ts +57 -0
  111. package/dist/ts/schedule/models/time-scale.d.ts +50 -0
  112. package/dist/ts/schedule/models/time-scale.ts +61 -0
  113. package/dist/ts/schedule/models/toolbar-model.d.ts +196 -0
  114. package/dist/ts/schedule/models/toolbar.d.ts +176 -0
  115. package/dist/ts/schedule/models/toolbar.ts +196 -0
  116. package/dist/ts/schedule/models/views-model.d.ts +370 -0
  117. package/dist/ts/schedule/models/views.d.ts +335 -0
  118. package/dist/ts/schedule/models/views.ts +408 -0
  119. package/dist/ts/schedule/models/work-hours-model.d.ts +29 -0
  120. package/dist/ts/schedule/models/work-hours.d.ts +24 -0
  121. package/dist/ts/schedule/models/work-hours.ts +31 -0
  122. package/dist/ts/schedule/popups/event-tooltip.d.ts +16 -0
  123. package/dist/ts/schedule/popups/event-tooltip.ts +203 -0
  124. package/dist/ts/schedule/popups/event-window.d.ts +118 -0
  125. package/dist/ts/schedule/popups/event-window.ts +2055 -0
  126. package/dist/ts/schedule/popups/form-validator.d.ts +16 -0
  127. package/dist/ts/schedule/popups/form-validator.ts +110 -0
  128. package/dist/ts/schedule/popups/quick-popups.d.ts +78 -0
  129. package/dist/ts/schedule/popups/quick-popups.ts +1470 -0
  130. package/dist/ts/schedule/renderer/agenda.d.ts +45 -0
  131. package/dist/ts/schedule/renderer/agenda.ts +497 -0
  132. package/dist/ts/schedule/renderer/day.d.ts +20 -0
  133. package/dist/ts/schedule/renderer/day.ts +28 -0
  134. package/dist/ts/schedule/renderer/header-renderer.d.ts +48 -0
  135. package/dist/ts/schedule/renderer/header-renderer.ts +736 -0
  136. package/dist/ts/schedule/renderer/month-agenda.d.ts +29 -0
  137. package/dist/ts/schedule/renderer/month-agenda.ts +184 -0
  138. package/dist/ts/schedule/renderer/month.d.ts +61 -0
  139. package/dist/ts/schedule/renderer/month.ts +766 -0
  140. package/dist/ts/schedule/renderer/renderer.d.ts +13 -0
  141. package/dist/ts/schedule/renderer/renderer.ts +165 -0
  142. package/dist/ts/schedule/renderer/timeline-header-row.d.ts +15 -0
  143. package/dist/ts/schedule/renderer/timeline-header-row.ts +132 -0
  144. package/dist/ts/schedule/renderer/timeline-month.d.ts +29 -0
  145. package/dist/ts/schedule/renderer/timeline-month.ts +184 -0
  146. package/dist/ts/schedule/renderer/timeline-view.d.ts +31 -0
  147. package/dist/ts/schedule/renderer/timeline-view.ts +308 -0
  148. package/dist/ts/schedule/renderer/timeline-year.d.ts +22 -0
  149. package/dist/ts/schedule/renderer/timeline-year.ts +450 -0
  150. package/dist/ts/schedule/renderer/vertical-view.d.ts +63 -0
  151. package/dist/ts/schedule/renderer/vertical-view.ts +911 -0
  152. package/dist/ts/schedule/renderer/view-base.d.ts +83 -0
  153. package/dist/ts/schedule/renderer/view-base.ts +709 -0
  154. package/dist/ts/schedule/renderer/week.d.ts +22 -0
  155. package/dist/ts/schedule/renderer/week.ts +35 -0
  156. package/dist/ts/schedule/renderer/work-week.d.ts +22 -0
  157. package/dist/ts/schedule/renderer/work-week.ts +36 -0
  158. package/dist/ts/schedule/renderer/year.d.ts +46 -0
  159. package/dist/ts/schedule/renderer/year.ts +470 -0
  160. package/dist/ts/schedule/timezone/timezone.d.ts +16 -0
  161. package/dist/ts/schedule/timezone/timezone.ts +313 -0
  162. package/package.json +56 -21
  163. package/src/schedule/actions/action-base.js +3 -0
  164. package/src/schedule/actions/drag.js +11 -4
  165. package/src/schedule/actions/keyboard.js +1 -1
  166. package/src/schedule/actions/resize.js +8 -5
  167. package/src/schedule/base/css-constant.d.ts +2 -0
  168. package/src/schedule/base/css-constant.js +2 -0
  169. package/src/schedule/base/schedule.js +15 -1
  170. package/src/schedule/event-renderer/agenda-base.d.ts +1 -1
  171. package/src/schedule/event-renderer/agenda-base.js +5 -4
  172. package/src/schedule/event-renderer/inline-edit.js +11 -6
  173. package/src/schedule/event-renderer/month.js +5 -3
  174. package/src/schedule/event-renderer/vertical-view.js +3 -0
  175. package/src/schedule/event-renderer/year.d.ts +2 -0
  176. package/src/schedule/event-renderer/year.js +28 -4
  177. package/src/schedule/popups/event-tooltip.js +4 -0
  178. package/src/schedule/popups/event-window.js +2 -2
  179. package/src/schedule/popups/quick-popups.js +5 -1
  180. package/src/schedule/renderer/agenda.js +3 -2
  181. package/src/schedule/renderer/vertical-view.js +1 -1
  182. package/src/schedule/renderer/year.js +3 -2
  183. package/styles/bds-lite.css +11 -8
  184. package/styles/bds.css +11 -8
  185. package/styles/bootstrap-dark-lite.css +12 -9
  186. package/styles/bootstrap-dark.css +12 -9
  187. package/styles/bootstrap-lite.css +12 -9
  188. package/styles/bootstrap.css +12 -9
  189. package/styles/bootstrap4-lite.css +11 -8
  190. package/styles/bootstrap4.css +11 -8
  191. package/styles/bootstrap5-dark-lite.css +11 -8
  192. package/styles/bootstrap5-dark.css +11 -8
  193. package/styles/bootstrap5-lite.css +11 -8
  194. package/styles/bootstrap5.3-lite.css +11 -8
  195. package/styles/bootstrap5.3.css +11 -8
  196. package/styles/bootstrap5.css +11 -8
  197. package/styles/fabric-dark-lite.css +12 -9
  198. package/styles/fabric-dark.css +12 -9
  199. package/styles/fabric-lite.css +12 -9
  200. package/styles/fabric.css +12 -9
  201. package/styles/fluent-dark-lite.css +13 -10
  202. package/styles/fluent-dark.css +13 -10
  203. package/styles/fluent-lite.css +13 -10
  204. package/styles/fluent.css +13 -10
  205. package/styles/fluent2-lite.css +11 -8
  206. package/styles/fluent2.css +11 -8
  207. package/styles/highcontrast-light-lite.css +12 -9
  208. package/styles/highcontrast-light.css +12 -9
  209. package/styles/highcontrast-lite.css +12 -9
  210. package/styles/highcontrast.css +12 -9
  211. package/styles/material-dark-lite.css +12 -9
  212. package/styles/material-dark.css +12 -9
  213. package/styles/material-lite.css +12 -9
  214. package/styles/material.css +12 -9
  215. package/styles/material3-dark-lite.css +11 -8
  216. package/styles/material3-dark.css +11 -8
  217. package/styles/material3-lite.css +11 -8
  218. package/styles/material3.css +11 -8
  219. package/styles/recurrence-editor/_bds-definition.scss +1 -0
  220. package/styles/recurrence-editor/_bootstrap-dark-definition.scss +1 -0
  221. package/styles/recurrence-editor/_bootstrap-definition.scss +1 -0
  222. package/styles/recurrence-editor/_bootstrap4-definition.scss +1 -0
  223. package/styles/recurrence-editor/_bootstrap5-definition.scss +1 -0
  224. package/styles/recurrence-editor/_bootstrap5.3-definition.scss +1 -0
  225. package/styles/recurrence-editor/_fabric-dark-definition.scss +1 -0
  226. package/styles/recurrence-editor/_fabric-definition.scss +1 -0
  227. package/styles/recurrence-editor/_fluent-definition.scss +1 -0
  228. package/styles/recurrence-editor/_fluent2-definition.scss +1 -0
  229. package/styles/recurrence-editor/_fusionnew-definition.scss +1 -0
  230. package/styles/recurrence-editor/_highcontrast-definition.scss +1 -0
  231. package/styles/recurrence-editor/_highcontrast-light-definition.scss +1 -0
  232. package/styles/recurrence-editor/_layout.scss +5 -1
  233. package/styles/recurrence-editor/_material-dark-definition.scss +1 -0
  234. package/styles/recurrence-editor/_material-definition.scss +1 -0
  235. package/styles/recurrence-editor/_material3-definition.scss +1 -0
  236. package/styles/recurrence-editor/_tailwind-definition.scss +1 -0
  237. package/styles/recurrence-editor/_tailwind3-definition.scss +1 -0
  238. package/styles/recurrence-editor/bds.css +3 -0
  239. package/styles/recurrence-editor/bootstrap-dark.css +4 -1
  240. package/styles/recurrence-editor/bootstrap.css +4 -1
  241. package/styles/recurrence-editor/bootstrap4.css +3 -0
  242. package/styles/recurrence-editor/bootstrap5-dark.css +3 -0
  243. package/styles/recurrence-editor/bootstrap5.3.css +3 -0
  244. package/styles/recurrence-editor/bootstrap5.css +3 -0
  245. package/styles/recurrence-editor/fabric-dark.css +4 -1
  246. package/styles/recurrence-editor/fabric.css +4 -1
  247. package/styles/recurrence-editor/fluent-dark.css +4 -1
  248. package/styles/recurrence-editor/fluent.css +4 -1
  249. package/styles/recurrence-editor/fluent2.css +3 -0
  250. package/styles/recurrence-editor/highcontrast-light.css +4 -1
  251. package/styles/recurrence-editor/highcontrast.css +4 -1
  252. package/styles/recurrence-editor/material-dark.css +4 -1
  253. package/styles/recurrence-editor/material.css +4 -1
  254. package/styles/recurrence-editor/material3-dark.css +3 -0
  255. package/styles/recurrence-editor/material3.css +3 -0
  256. package/styles/recurrence-editor/tailwind-dark.css +3 -0
  257. package/styles/recurrence-editor/tailwind.css +3 -0
  258. package/styles/recurrence-editor/tailwind3.css +3 -0
  259. package/styles/schedule/_bds-definition.scss +2 -0
  260. package/styles/schedule/_bootstrap-dark-definition.scss +2 -0
  261. package/styles/schedule/_bootstrap-definition.scss +2 -0
  262. package/styles/schedule/_bootstrap4-definition.scss +2 -0
  263. package/styles/schedule/_bootstrap5-definition.scss +2 -0
  264. package/styles/schedule/_bootstrap5.3-definition.scss +2 -0
  265. package/styles/schedule/_fabric-dark-definition.scss +2 -0
  266. package/styles/schedule/_fabric-definition.scss +2 -0
  267. package/styles/schedule/_fluent-definition.scss +3 -1
  268. package/styles/schedule/_fluent2-definition.scss +2 -0
  269. package/styles/schedule/_fusionnew-definition.scss +2 -0
  270. package/styles/schedule/_highcontrast-definition.scss +2 -0
  271. package/styles/schedule/_highcontrast-light-definition.scss +2 -0
  272. package/styles/schedule/_layout.scss +12 -11
  273. package/styles/schedule/_material-dark-definition.scss +2 -0
  274. package/styles/schedule/_material-definition.scss +2 -0
  275. package/styles/schedule/_material3-definition.scss +2 -0
  276. package/styles/schedule/_tailwind-definition.scss +2 -0
  277. package/styles/schedule/_tailwind3-definition.scss +2 -0
  278. package/styles/schedule/bds.css +8 -8
  279. package/styles/schedule/bootstrap-dark.css +8 -8
  280. package/styles/schedule/bootstrap.css +8 -8
  281. package/styles/schedule/bootstrap4.css +8 -8
  282. package/styles/schedule/bootstrap5-dark.css +8 -8
  283. package/styles/schedule/bootstrap5.3.css +8 -8
  284. package/styles/schedule/bootstrap5.css +8 -8
  285. package/styles/schedule/fabric-dark.css +8 -8
  286. package/styles/schedule/fabric.css +8 -8
  287. package/styles/schedule/fluent-dark.css +9 -9
  288. package/styles/schedule/fluent.css +9 -9
  289. package/styles/schedule/fluent2.css +8 -8
  290. package/styles/schedule/highcontrast-light.css +8 -8
  291. package/styles/schedule/highcontrast.css +8 -8
  292. package/styles/schedule/material-dark.css +8 -8
  293. package/styles/schedule/material.css +8 -8
  294. package/styles/schedule/material3-dark.css +8 -8
  295. package/styles/schedule/material3.css +8 -8
  296. package/styles/schedule/tailwind-dark.css +8 -8
  297. package/styles/schedule/tailwind.css +8 -8
  298. package/styles/schedule/tailwind3.css +8 -8
  299. package/styles/tailwind-dark-lite.css +11 -8
  300. package/styles/tailwind-dark.css +11 -8
  301. package/styles/tailwind-lite.css +11 -8
  302. package/styles/tailwind.css +11 -8
  303. package/styles/tailwind3-lite.css +11 -8
  304. package/styles/tailwind3.css +11 -8
@@ -0,0 +1,122 @@
1
+ import { Property, ChildProperty } from '@syncfusion/ej2-base';import { DataManager, Query } from '@syncfusion/ej2-data';
2
+
3
+ /**
4
+ * Interface for a class Resources
5
+ */
6
+ export interface ResourcesModel {
7
+
8
+ /**
9
+ * A value that binds to the resource field of event object.
10
+ *
11
+ * @default null
12
+ */
13
+ field?: string;
14
+
15
+ /**
16
+ * It holds the title of the resource field to be displayed on the schedule event editor window.
17
+ *
18
+ * @default null
19
+ */
20
+ title?: string;
21
+
22
+ /**
23
+ * It represents a unique resource name for differentiating various resource objects while grouping.
24
+ *
25
+ * @default null
26
+ */
27
+ name?: string;
28
+
29
+ /**
30
+ * When set to true, allows multiple selection of resource names, thus creating multiple instances of same appointment for the
31
+ * selected resources.
32
+ *
33
+ * @default false
34
+ */
35
+ allowMultiple?: boolean;
36
+
37
+ /**
38
+ * Assigns the resource dataSource
39
+ * The data can be passed either as an array of JavaScript objects,
40
+ * or else can create an instance of [`DataManager`](http://ej2.syncfusion.com/documentation/data/api-dataManager.html)
41
+ * in case of processing remote data and can be assigned to the `dataSource` property.
42
+ * With the remote data assigned to dataSource, check the available
43
+ * [adaptors](http://ej2.syncfusion.com/documentation/data/adaptors.html) to customize the data processing.
44
+ *
45
+ * @default []
46
+ */
47
+ dataSource?: Record<string, any>[] | DataManager;
48
+
49
+ /**
50
+ * Defines the external [`query`](http://ej2.syncfusion.com/documentation/data/api-query.html)
51
+ * that will be executed along with the data processing.
52
+ *
53
+ * @default null
54
+ */
55
+ query?: Query;
56
+
57
+ /**
58
+ * It maps the `id` field from the dataSource and is used to uniquely identify the resources.
59
+ *
60
+ * @default 'Id'
61
+ */
62
+ idField?: string;
63
+
64
+ /**
65
+ * It maps the `text` field from the dataSource, which is used to specify the resource names.
66
+ *
67
+ * @default 'Text'
68
+ */
69
+ textField?: string;
70
+
71
+ /**
72
+ * It maps the `expanded` field from the dataSource, which is used to specify whether each resource levels
73
+ * in timeline view needs to be maintained in an expanded or collapsed state by default.
74
+ *
75
+ * @default 'Expanded'
76
+ */
77
+ expandedField?: string;
78
+
79
+ /**
80
+ * It maps the `groupID` field from the dataSource, which is used to specify under which parent resource,
81
+ * the child should be grouped.
82
+ *
83
+ * @default 'GroupID'
84
+ */
85
+ groupIDField?: string;
86
+
87
+ /**
88
+ * It maps the `color` field from the dataSource, which is used to specify colors for the resources.
89
+ *
90
+ * @default 'Color'
91
+ */
92
+ colorField?: string;
93
+
94
+ /**
95
+ * It maps the `startHour` field from the dataSource, which is used to specify different work start hour for each resources.
96
+ *
97
+ * @default 'StartHour'
98
+ */
99
+ startHourField?: string;
100
+
101
+ /**
102
+ * It maps the `endHour` field from the dataSource, which is used to specify different work end hour for each resources.
103
+ *
104
+ * @default 'EndHour'
105
+ */
106
+ endHourField?: string;
107
+
108
+ /**
109
+ * It maps the working days field from the dataSource, which is used to specify different working days for each resources.
110
+ *
111
+ * @default 'WorkDays'
112
+ */
113
+ workDaysField?: string;
114
+
115
+ /**
116
+ * It maps the `cssClass` field from the dataSource, which is used to specify different styles to each resource appointments.
117
+ *
118
+ * @default 'CssClass'
119
+ */
120
+ cssClassField?: string;
121
+
122
+ }
@@ -0,0 +1,106 @@
1
+ import { ChildProperty } from '@syncfusion/ej2-base';
2
+ import { DataManager, Query } from '@syncfusion/ej2-data';
3
+ /**
4
+ * A class that represents the resource related configurations and its data binding options.
5
+ */
6
+ export declare class Resources extends ChildProperty<Resources> {
7
+ /**
8
+ * A value that binds to the resource field of event object.
9
+ *
10
+ * @default null
11
+ */
12
+ field: string;
13
+ /**
14
+ * It holds the title of the resource field to be displayed on the schedule event editor window.
15
+ *
16
+ * @default null
17
+ */
18
+ title: string;
19
+ /**
20
+ * It represents a unique resource name for differentiating various resource objects while grouping.
21
+ *
22
+ * @default null
23
+ */
24
+ name: string;
25
+ /**
26
+ * When set to true, allows multiple selection of resource names, thus creating multiple instances of same appointment for the
27
+ * selected resources.
28
+ *
29
+ * @default false
30
+ */
31
+ allowMultiple: boolean;
32
+ /**
33
+ * Assigns the resource dataSource
34
+ * The data can be passed either as an array of JavaScript objects,
35
+ * or else can create an instance of [`DataManager`](http://ej2.syncfusion.com/documentation/data/api-dataManager.html)
36
+ * in case of processing remote data and can be assigned to the `dataSource` property.
37
+ * With the remote data assigned to dataSource, check the available
38
+ * [adaptors](http://ej2.syncfusion.com/documentation/data/adaptors.html) to customize the data processing.
39
+ *
40
+ * @default []
41
+ */
42
+ dataSource: Record<string, any>[] | DataManager;
43
+ /**
44
+ * Defines the external [`query`](http://ej2.syncfusion.com/documentation/data/api-query.html)
45
+ * that will be executed along with the data processing.
46
+ *
47
+ * @default null
48
+ */
49
+ query: Query;
50
+ /**
51
+ * It maps the `id` field from the dataSource and is used to uniquely identify the resources.
52
+ *
53
+ * @default 'Id'
54
+ */
55
+ idField: string;
56
+ /**
57
+ * It maps the `text` field from the dataSource, which is used to specify the resource names.
58
+ *
59
+ * @default 'Text'
60
+ */
61
+ textField: string;
62
+ /**
63
+ * It maps the `expanded` field from the dataSource, which is used to specify whether each resource levels
64
+ * in timeline view needs to be maintained in an expanded or collapsed state by default.
65
+ *
66
+ * @default 'Expanded'
67
+ */
68
+ expandedField: string;
69
+ /**
70
+ * It maps the `groupID` field from the dataSource, which is used to specify under which parent resource,
71
+ * the child should be grouped.
72
+ *
73
+ * @default 'GroupID'
74
+ */
75
+ groupIDField: string;
76
+ /**
77
+ * It maps the `color` field from the dataSource, which is used to specify colors for the resources.
78
+ *
79
+ * @default 'Color'
80
+ */
81
+ colorField: string;
82
+ /**
83
+ * It maps the `startHour` field from the dataSource, which is used to specify different work start hour for each resources.
84
+ *
85
+ * @default 'StartHour'
86
+ */
87
+ startHourField: string;
88
+ /**
89
+ * It maps the `endHour` field from the dataSource, which is used to specify different work end hour for each resources.
90
+ *
91
+ * @default 'EndHour'
92
+ */
93
+ endHourField: string;
94
+ /**
95
+ * It maps the working days field from the dataSource, which is used to specify different working days for each resources.
96
+ *
97
+ * @default 'WorkDays'
98
+ */
99
+ workDaysField: string;
100
+ /**
101
+ * It maps the `cssClass` field from the dataSource, which is used to specify different styles to each resource appointments.
102
+ *
103
+ * @default 'CssClass'
104
+ */
105
+ cssClassField: string;
106
+ }
@@ -0,0 +1,138 @@
1
+ /* eslint-disable @typescript-eslint/no-explicit-any */
2
+ import { Property, ChildProperty } from '@syncfusion/ej2-base';
3
+ import { DataManager, Query } from '@syncfusion/ej2-data';
4
+
5
+ /**
6
+ * A class that represents the resource related configurations and its data binding options.
7
+ */
8
+ export class Resources extends ChildProperty<Resources> {
9
+ /**
10
+ * A value that binds to the resource field of event object.
11
+ *
12
+ * @default null
13
+ */
14
+ @Property()
15
+ public field: string;
16
+
17
+ /**
18
+ * It holds the title of the resource field to be displayed on the schedule event editor window.
19
+ *
20
+ * @default null
21
+ */
22
+ @Property()
23
+ public title: string;
24
+
25
+ /**
26
+ * It represents a unique resource name for differentiating various resource objects while grouping.
27
+ *
28
+ * @default null
29
+ */
30
+ @Property()
31
+ public name: string;
32
+
33
+ /**
34
+ * When set to true, allows multiple selection of resource names, thus creating multiple instances of same appointment for the
35
+ * selected resources.
36
+ *
37
+ * @default false
38
+ */
39
+ @Property(false)
40
+ public allowMultiple: boolean;
41
+
42
+ /**
43
+ * Assigns the resource dataSource
44
+ * The data can be passed either as an array of JavaScript objects,
45
+ * or else can create an instance of [`DataManager`](http://ej2.syncfusion.com/documentation/data/api-dataManager.html)
46
+ * in case of processing remote data and can be assigned to the `dataSource` property.
47
+ * With the remote data assigned to dataSource, check the available
48
+ * [adaptors](http://ej2.syncfusion.com/documentation/data/adaptors.html) to customize the data processing.
49
+ *
50
+ * @default []
51
+ */
52
+ @Property([])
53
+ public dataSource: Record<string, any>[] | DataManager;
54
+
55
+ /**
56
+ * Defines the external [`query`](http://ej2.syncfusion.com/documentation/data/api-query.html)
57
+ * that will be executed along with the data processing.
58
+ *
59
+ * @default null
60
+ */
61
+ @Property()
62
+ public query: Query;
63
+
64
+ /**
65
+ * It maps the `id` field from the dataSource and is used to uniquely identify the resources.
66
+ *
67
+ * @default 'Id'
68
+ */
69
+ @Property('Id')
70
+ public idField: string;
71
+
72
+ /**
73
+ * It maps the `text` field from the dataSource, which is used to specify the resource names.
74
+ *
75
+ * @default 'Text'
76
+ */
77
+ @Property('Text')
78
+ public textField: string;
79
+
80
+ /**
81
+ * It maps the `expanded` field from the dataSource, which is used to specify whether each resource levels
82
+ * in timeline view needs to be maintained in an expanded or collapsed state by default.
83
+ *
84
+ * @default 'Expanded'
85
+ */
86
+ @Property('Expanded')
87
+ public expandedField: string;
88
+
89
+ /**
90
+ * It maps the `groupID` field from the dataSource, which is used to specify under which parent resource,
91
+ * the child should be grouped.
92
+ *
93
+ * @default 'GroupID'
94
+ */
95
+ @Property('GroupID')
96
+ public groupIDField: string;
97
+
98
+ /**
99
+ * It maps the `color` field from the dataSource, which is used to specify colors for the resources.
100
+ *
101
+ * @default 'Color'
102
+ */
103
+ @Property('Color')
104
+ public colorField: string;
105
+
106
+ /**
107
+ * It maps the `startHour` field from the dataSource, which is used to specify different work start hour for each resources.
108
+ *
109
+ * @default 'StartHour'
110
+ */
111
+ @Property('StartHour')
112
+ public startHourField: string;
113
+
114
+ /**
115
+ * It maps the `endHour` field from the dataSource, which is used to specify different work end hour for each resources.
116
+ *
117
+ * @default 'EndHour'
118
+ */
119
+ @Property('EndHour')
120
+ public endHourField: string;
121
+
122
+ /**
123
+ * It maps the working days field from the dataSource, which is used to specify different working days for each resources.
124
+ *
125
+ * @default 'WorkDays'
126
+ */
127
+ @Property('WorkDays')
128
+ public workDaysField: string;
129
+
130
+ /**
131
+ * It maps the `cssClass` field from the dataSource, which is used to specify different styles to each resource appointments.
132
+ *
133
+ * @default 'CssClass'
134
+ */
135
+ @Property('CssClass')
136
+ public cssClassField: string;
137
+
138
+ }
@@ -0,0 +1,57 @@
1
+ import { Property, ChildProperty } from '@syncfusion/ej2-base';
2
+
3
+ /**
4
+ * Interface for a class TimeScale
5
+ */
6
+ export interface TimeScaleModel {
7
+
8
+ /**
9
+ * When set to `true`, allows the schedule to display the appointments accurately against the exact time duration.
10
+ * If set to `false`, all the appointments of a day will be displayed one below the other.
11
+ *
12
+ * @default true
13
+ */
14
+ enable?: boolean;
15
+
16
+ /**
17
+ * Defines the time duration on which the time axis to be displayed either in 1 hour or 30 minutes interval and so on.
18
+ * It accepts the values in minutes.
19
+ *
20
+ * @default 60
21
+ */
22
+ interval?: number;
23
+
24
+ /**
25
+ * Decides the number of slot count to be split for the specified time interval duration.
26
+ *
27
+ * @default 2
28
+ */
29
+ slotCount?: number;
30
+
31
+ /**
32
+ * The template option to be applied for minor time slot. Here, the
33
+ * template accepts either the string or HTMLElement as template design and then the parsed design is displayed
34
+ * onto the time cells. The time details can be accessed within this template.
35
+ *
36
+ * @default null
37
+ * @angularType string | object
38
+ * @reactType string | function | JSX.Element
39
+ * @vueType string | function
40
+ * @aspType string
41
+ */
42
+ minorSlotTemplate?: string | Function;
43
+
44
+ /**
45
+ * The template option to be applied for major time slot. Here, the
46
+ * template accepts either the string or HTMLElement as template design and then the parsed design is displayed
47
+ * onto the time cells. The time details can be accessed within this template.
48
+ *
49
+ * @default null
50
+ * @angularType string | object
51
+ * @reactType string | function | JSX.Element
52
+ * @vueType string | function
53
+ * @aspType string
54
+ */
55
+ majorSlotTemplate?: string | Function;
56
+
57
+ }
@@ -0,0 +1,50 @@
1
+ import { ChildProperty } from '@syncfusion/ej2-base';
2
+ /**
3
+ * A class that represents the configuration of options related to timescale on scheduler.
4
+ */
5
+ export declare class TimeScale extends ChildProperty<TimeScale> {
6
+ /**
7
+ * When set to `true`, allows the schedule to display the appointments accurately against the exact time duration.
8
+ * If set to `false`, all the appointments of a day will be displayed one below the other.
9
+ *
10
+ * @default true
11
+ */
12
+ enable: boolean;
13
+ /**
14
+ * Defines the time duration on which the time axis to be displayed either in 1 hour or 30 minutes interval and so on.
15
+ * It accepts the values in minutes.
16
+ *
17
+ * @default 60
18
+ */
19
+ interval: number;
20
+ /**
21
+ * Decides the number of slot count to be split for the specified time interval duration.
22
+ *
23
+ * @default 2
24
+ */
25
+ slotCount: number;
26
+ /**
27
+ * The template option to be applied for minor time slot. Here, the
28
+ * template accepts either the string or HTMLElement as template design and then the parsed design is displayed
29
+ * onto the time cells. The time details can be accessed within this template.
30
+ *
31
+ * @default null
32
+ * @angularType string | object
33
+ * @reactType string | function | JSX.Element
34
+ * @vueType string | function
35
+ * @aspType string
36
+ */
37
+ minorSlotTemplate: string | Function;
38
+ /**
39
+ * The template option to be applied for major time slot. Here, the
40
+ * template accepts either the string or HTMLElement as template design and then the parsed design is displayed
41
+ * onto the time cells. The time details can be accessed within this template.
42
+ *
43
+ * @default null
44
+ * @angularType string | object
45
+ * @reactType string | function | JSX.Element
46
+ * @vueType string | function
47
+ * @aspType string
48
+ */
49
+ majorSlotTemplate: string | Function;
50
+ }
@@ -0,0 +1,61 @@
1
+ import { Property, ChildProperty } from '@syncfusion/ej2-base';
2
+
3
+ /**
4
+ * A class that represents the configuration of options related to timescale on scheduler.
5
+ */
6
+ export class TimeScale extends ChildProperty<TimeScale> {
7
+ /**
8
+ * When set to `true`, allows the schedule to display the appointments accurately against the exact time duration.
9
+ * If set to `false`, all the appointments of a day will be displayed one below the other.
10
+ *
11
+ * @default true
12
+ */
13
+ @Property(true)
14
+ public enable: boolean;
15
+
16
+ /**
17
+ * Defines the time duration on which the time axis to be displayed either in 1 hour or 30 minutes interval and so on.
18
+ * It accepts the values in minutes.
19
+ *
20
+ * @default 60
21
+ */
22
+ @Property(60)
23
+ public interval: number;
24
+
25
+ /**
26
+ * Decides the number of slot count to be split for the specified time interval duration.
27
+ *
28
+ * @default 2
29
+ */
30
+ @Property(2)
31
+ public slotCount: number;
32
+
33
+ /**
34
+ * The template option to be applied for minor time slot. Here, the
35
+ * template accepts either the string or HTMLElement as template design and then the parsed design is displayed
36
+ * onto the time cells. The time details can be accessed within this template.
37
+ *
38
+ * @default null
39
+ * @angularType string | object
40
+ * @reactType string | function | JSX.Element
41
+ * @vueType string | function
42
+ * @aspType string
43
+ */
44
+ @Property()
45
+ public minorSlotTemplate: string | Function;
46
+
47
+ /**
48
+ * The template option to be applied for major time slot. Here, the
49
+ * template accepts either the string or HTMLElement as template design and then the parsed design is displayed
50
+ * onto the time cells. The time details can be accessed within this template.
51
+ *
52
+ * @default null
53
+ * @angularType string | object
54
+ * @reactType string | function | JSX.Element
55
+ * @vueType string | function
56
+ * @aspType string
57
+ */
58
+ @Property()
59
+ public majorSlotTemplate: string | Function;
60
+
61
+ }