@progress/kendo-react-gantt 6.1.1 → 7.0.0-develop.2

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 (292) hide show
  1. package/{dist/npm/Gantt.d.ts → Gantt.d.ts} +4 -0
  2. package/LICENSE.md +1 -1
  3. package/{dist/es/cells → cells}/FilterCells/GanttBooleanFilter.d.ts +4 -0
  4. package/{dist/npm/cells → cells}/FilterCells/GanttDateFilter.d.ts +4 -0
  5. package/{dist/es/cells → cells}/FilterCells/GanttNumericFilter.d.ts +4 -0
  6. package/{dist/npm/cells → cells}/FilterCells/GanttTextFilter.d.ts +4 -0
  7. package/{dist/npm/cells → cells}/FilterCells/utils.d.ts +4 -0
  8. package/{dist/npm/components → components}/BaseView.d.ts +4 -0
  9. package/components/GanttDependency.d.ts +13 -0
  10. package/{dist/npm/components → components}/GanttTask.d.ts +4 -0
  11. package/{dist/npm/components → components}/GanttTreelist.d.ts +6 -2
  12. package/{dist/npm/components → components}/toolbar/AddButton.d.ts +4 -0
  13. package/{dist/npm/components → components}/toolbar/Toolbar.d.ts +4 -0
  14. package/{dist/es/components → components}/toolbar/view-selector/ViewSelector.d.ts +4 -0
  15. package/components/toolbar/view-selector/ViewSelectorItem.d.ts +15 -0
  16. package/components/toolbar/view-selector/ViewSelectorList.d.ts +7 -0
  17. package/{dist/npm/constants → constants}/index.d.ts +4 -0
  18. package/{dist/es/context → context}/GanttContext.d.ts +17 -13
  19. package/{dist/npm/context → context}/GanttViewContext.d.ts +8 -4
  20. package/dist/cdn/js/kendo-react-gantt.js +5 -1
  21. package/editors/FormDateTimePicker.d.ts +8 -0
  22. package/editors/FormInput.d.ts +8 -0
  23. package/editors/FormNumericTextBox.d.ts +8 -0
  24. package/editors/GanttEditor.d.ts +8 -0
  25. package/{dist/npm/editors → editors}/GanttForm.d.ts +4 -0
  26. package/{dist/es/editors → editors}/GanttRemoveDialog.d.ts +4 -0
  27. package/hooks/useControlledState.d.ts +8 -0
  28. package/{dist/es/hooks → hooks}/useDictionaryStore.d.ts +5 -1
  29. package/hooks/useGanttTask.d.ts +8 -0
  30. package/index.d.ts +30 -0
  31. package/index.js +5 -0
  32. package/index.mjs +2582 -0
  33. package/interfaces/AddDirection.d.ts +10 -0
  34. package/interfaces/DataItem.d.ts +10 -0
  35. package/interfaces/DateRange.d.ts +12 -0
  36. package/{dist/es/interfaces → interfaces}/DependencyModelFields.d.ts +4 -0
  37. package/{dist/npm/interfaces → interfaces}/GanttBaseProps.d.ts +4 -1
  38. package/{dist/es/interfaces → interfaces}/GanttCellProps.d.ts +4 -1
  39. package/{dist/npm/interfaces → interfaces}/GanttColumnProps.d.ts +4 -0
  40. package/{dist/npm/interfaces → interfaces}/GanttDependencyModelFields.d.ts +4 -0
  41. package/interfaces/GanttFilterCellProps.d.ts +10 -0
  42. package/interfaces/GanttFilterOperator.d.ts +10 -0
  43. package/interfaces/GanttHeaderCellProps.d.ts +10 -0
  44. package/interfaces/GanttNoRecordsProps.d.ts +13 -0
  45. package/{dist/npm/interfaces → interfaces}/GanttProps.d.ts +4 -1
  46. package/{dist/es/interfaces → interfaces}/GanttRowProps.d.ts +4 -1
  47. package/{dist/es/interfaces → interfaces}/GanttSelectableSettings.d.ts +5 -1
  48. package/interfaces/GanttSlotType.d.ts +8 -0
  49. package/interfaces/GanttSortSettings.d.ts +17 -0
  50. package/{dist/es/interfaces → interfaces}/GanttTaskModelFields.d.ts +4 -0
  51. package/{dist/npm/interfaces → interfaces}/GanttView.d.ts +6 -3
  52. package/{dist/es/interfaces → interfaces}/GanttViewTimelineHeaderCellProps.d.ts +4 -0
  53. package/interfaces/Rectangle.d.ts +10 -0
  54. package/interfaces/Slot.d.ts +16 -0
  55. package/interfaces/TaskModelFields.d.ts +19 -0
  56. package/{dist/npm/interfaces → interfaces}/events.d.ts +4 -0
  57. package/{dist/es/messages → messages}/index.d.ts +4 -0
  58. package/package-metadata.d.ts +9 -0
  59. package/package.json +40 -57
  60. package/rows/GanttRow.d.ts +8 -0
  61. package/{dist/es/utils → utils}/data-operations.d.ts +4 -0
  62. package/{dist/es/utils → utils}/index.d.ts +11 -7
  63. package/{dist/npm/views → views}/GanttDayView.d.ts +4 -0
  64. package/{dist/npm/views → views}/GanttMonthView.d.ts +4 -0
  65. package/{dist/es/views → views}/GanttWeekView.d.ts +4 -0
  66. package/{dist/npm/views → views}/GanttYearView.d.ts +4 -0
  67. package/about.md +0 -3
  68. package/dist/es/Gantt.d.ts +0 -25
  69. package/dist/es/Gantt.js +0 -332
  70. package/dist/es/GanttNoRecords.d.ts +0 -12
  71. package/dist/es/GanttNoRecords.js +0 -37
  72. package/dist/es/cells/FilterCells/GanttBooleanFilter.js +0 -31
  73. package/dist/es/cells/FilterCells/GanttDateFilter.d.ts +0 -10
  74. package/dist/es/cells/FilterCells/GanttDateFilter.js +0 -31
  75. package/dist/es/cells/FilterCells/GanttNumericFilter.js +0 -31
  76. package/dist/es/cells/FilterCells/GanttTextFilter.d.ts +0 -10
  77. package/dist/es/cells/FilterCells/GanttTextFilter.js +0 -31
  78. package/dist/es/cells/FilterCells/utils.d.ts +0 -38
  79. package/dist/es/cells/FilterCells/utils.js +0 -66
  80. package/dist/es/components/BaseView.d.ts +0 -20
  81. package/dist/es/components/BaseView.js +0 -253
  82. package/dist/es/components/GanttDependency.d.ts +0 -10
  83. package/dist/es/components/GanttDependency.js +0 -56
  84. package/dist/es/components/GanttTask.d.ts +0 -12
  85. package/dist/es/components/GanttTask.js +0 -164
  86. package/dist/es/components/GanttTreelist.d.ts +0 -138
  87. package/dist/es/components/GanttTreelist.js +0 -607
  88. package/dist/es/components/toolbar/AddButton.d.ts +0 -12
  89. package/dist/es/components/toolbar/AddButton.js +0 -47
  90. package/dist/es/components/toolbar/Toolbar.d.ts +0 -21
  91. package/dist/es/components/toolbar/Toolbar.js +0 -41
  92. package/dist/es/components/toolbar/view-selector/ViewSelector.js +0 -38
  93. package/dist/es/components/toolbar/view-selector/ViewSelectorItem.d.ts +0 -12
  94. package/dist/es/components/toolbar/view-selector/ViewSelectorItem.js +0 -17
  95. package/dist/es/components/toolbar/view-selector/ViewSelectorList.d.ts +0 -3
  96. package/dist/es/components/toolbar/view-selector/ViewSelectorList.js +0 -42
  97. package/dist/es/constants/index.d.ts +0 -53
  98. package/dist/es/constants/index.js +0 -63
  99. package/dist/es/context/GanttContext.js +0 -105
  100. package/dist/es/context/GanttViewContext.d.ts +0 -40
  101. package/dist/es/context/GanttViewContext.js +0 -31
  102. package/dist/es/editors/FormAssingmentsEditor.d.ts +0 -5
  103. package/dist/es/editors/FormAssingmentsEditor.js +0 -20
  104. package/dist/es/editors/FormDateTimePicker.d.ts +0 -5
  105. package/dist/es/editors/FormDateTimePicker.js +0 -45
  106. package/dist/es/editors/FormInput.d.ts +0 -5
  107. package/dist/es/editors/FormInput.js +0 -44
  108. package/dist/es/editors/FormNumericTextBox.d.ts +0 -5
  109. package/dist/es/editors/FormNumericTextBox.js +0 -44
  110. package/dist/es/editors/GanttEditor.d.ts +0 -5
  111. package/dist/es/editors/GanttEditor.js +0 -39
  112. package/dist/es/editors/GanttForm.d.ts +0 -44
  113. package/dist/es/editors/GanttForm.js +0 -72
  114. package/dist/es/editors/GanttRemoveDialog.js +0 -61
  115. package/dist/es/hooks/useControlledState.d.ts +0 -4
  116. package/dist/es/hooks/useControlledState.js +0 -23
  117. package/dist/es/hooks/useDictionaryStore.js +0 -24
  118. package/dist/es/hooks/useGanttTask.d.ts +0 -4
  119. package/dist/es/hooks/useGanttTask.js +0 -27
  120. package/dist/es/interfaces/AddDirection.d.ts +0 -6
  121. package/dist/es/interfaces/AddDirection.js +0 -1
  122. package/dist/es/interfaces/DataAction.d.ts +0 -25
  123. package/dist/es/interfaces/DataAction.js +0 -9
  124. package/dist/es/interfaces/DataItem.d.ts +0 -6
  125. package/dist/es/interfaces/DataItem.js +0 -1
  126. package/dist/es/interfaces/DateRange.d.ts +0 -8
  127. package/dist/es/interfaces/DateRange.js +0 -1
  128. package/dist/es/interfaces/DependencyModelFields.js +0 -1
  129. package/dist/es/interfaces/DragEvent.d.ts +0 -14
  130. package/dist/es/interfaces/DragEvent.js +0 -1
  131. package/dist/es/interfaces/GanttBaseProps.d.ts +0 -63
  132. package/dist/es/interfaces/GanttBaseProps.js +0 -1
  133. package/dist/es/interfaces/GanttCellProps.js +0 -1
  134. package/dist/es/interfaces/GanttColumnProps.d.ts +0 -36
  135. package/dist/es/interfaces/GanttColumnProps.js +0 -1
  136. package/dist/es/interfaces/GanttDependencyModelFields.d.ts +0 -25
  137. package/dist/es/interfaces/GanttDependencyModelFields.js +0 -1
  138. package/dist/es/interfaces/GanttFilterCellProps.d.ts +0 -6
  139. package/dist/es/interfaces/GanttFilterCellProps.js +0 -1
  140. package/dist/es/interfaces/GanttFilterOperator.d.ts +0 -6
  141. package/dist/es/interfaces/GanttFilterOperator.js +0 -1
  142. package/dist/es/interfaces/GanttHeaderCellProps.d.ts +0 -6
  143. package/dist/es/interfaces/GanttHeaderCellProps.js +0 -1
  144. package/dist/es/interfaces/GanttNoRecordsProps.d.ts +0 -10
  145. package/dist/es/interfaces/GanttNoRecordsProps.js +0 -1
  146. package/dist/es/interfaces/GanttProps.d.ts +0 -147
  147. package/dist/es/interfaces/GanttProps.js +0 -1
  148. package/dist/es/interfaces/GanttRowProps.js +0 -1
  149. package/dist/es/interfaces/GanttSelectableSettings.js +0 -2
  150. package/dist/es/interfaces/GanttSlotType.d.ts +0 -4
  151. package/dist/es/interfaces/GanttSlotType.js +0 -1
  152. package/dist/es/interfaces/GanttSortSettings.d.ts +0 -13
  153. package/dist/es/interfaces/GanttSortSettings.js +0 -19
  154. package/dist/es/interfaces/GanttTaskModelFields.js +0 -1
  155. package/dist/es/interfaces/GanttView.d.ts +0 -77
  156. package/dist/es/interfaces/GanttView.js +0 -1
  157. package/dist/es/interfaces/GanttViewTimelineHeaderCellProps.js +0 -1
  158. package/dist/es/interfaces/Rectangle.d.ts +0 -6
  159. package/dist/es/interfaces/Rectangle.js +0 -1
  160. package/dist/es/interfaces/Slot.d.ts +0 -12
  161. package/dist/es/interfaces/Slot.js +0 -1
  162. package/dist/es/interfaces/TaskModelFields.d.ts +0 -15
  163. package/dist/es/interfaces/TaskModelFields.js +0 -1
  164. package/dist/es/interfaces/events.d.ts +0 -294
  165. package/dist/es/interfaces/events.js +0 -84
  166. package/dist/es/main.d.ts +0 -26
  167. package/dist/es/main.js +0 -17
  168. package/dist/es/messages/index.js +0 -138
  169. package/dist/es/package-metadata.d.ts +0 -5
  170. package/dist/es/package-metadata.js +0 -11
  171. package/dist/es/rows/GanttRow.d.ts +0 -5
  172. package/dist/es/rows/GanttRow.js +0 -5
  173. package/dist/es/utils/data-operations.js +0 -319
  174. package/dist/es/utils/index.js +0 -455
  175. package/dist/es/views/GanttDayView.d.ts +0 -17
  176. package/dist/es/views/GanttDayView.js +0 -102
  177. package/dist/es/views/GanttMonthView.d.ts +0 -13
  178. package/dist/es/views/GanttMonthView.js +0 -78
  179. package/dist/es/views/GanttWeekView.js +0 -84
  180. package/dist/es/views/GanttYearView.d.ts +0 -13
  181. package/dist/es/views/GanttYearView.js +0 -70
  182. package/dist/npm/Gantt.js +0 -335
  183. package/dist/npm/GanttNoRecords.d.ts +0 -12
  184. package/dist/npm/GanttNoRecords.js +0 -40
  185. package/dist/npm/cells/FilterCells/GanttBooleanFilter.d.ts +0 -10
  186. package/dist/npm/cells/FilterCells/GanttBooleanFilter.js +0 -35
  187. package/dist/npm/cells/FilterCells/GanttDateFilter.js +0 -35
  188. package/dist/npm/cells/FilterCells/GanttNumericFilter.d.ts +0 -10
  189. package/dist/npm/cells/FilterCells/GanttNumericFilter.js +0 -35
  190. package/dist/npm/cells/FilterCells/GanttTextFilter.js +0 -35
  191. package/dist/npm/cells/FilterCells/utils.js +0 -70
  192. package/dist/npm/components/BaseView.js +0 -256
  193. package/dist/npm/components/GanttDependency.d.ts +0 -10
  194. package/dist/npm/components/GanttDependency.js +0 -60
  195. package/dist/npm/components/GanttTask.js +0 -167
  196. package/dist/npm/components/GanttTreelist.js +0 -610
  197. package/dist/npm/components/toolbar/AddButton.js +0 -50
  198. package/dist/npm/components/toolbar/Toolbar.js +0 -44
  199. package/dist/npm/components/toolbar/view-selector/ViewSelector.d.ts +0 -24
  200. package/dist/npm/components/toolbar/view-selector/ViewSelector.js +0 -41
  201. package/dist/npm/components/toolbar/view-selector/ViewSelectorItem.d.ts +0 -12
  202. package/dist/npm/components/toolbar/view-selector/ViewSelectorItem.js +0 -21
  203. package/dist/npm/components/toolbar/view-selector/ViewSelectorList.d.ts +0 -3
  204. package/dist/npm/components/toolbar/view-selector/ViewSelectorList.js +0 -45
  205. package/dist/npm/constants/index.js +0 -67
  206. package/dist/npm/context/GanttContext.d.ts +0 -121
  207. package/dist/npm/context/GanttContext.js +0 -121
  208. package/dist/npm/context/GanttViewContext.js +0 -38
  209. package/dist/npm/editors/FormAssingmentsEditor.d.ts +0 -5
  210. package/dist/npm/editors/FormAssingmentsEditor.js +0 -24
  211. package/dist/npm/editors/FormDateTimePicker.d.ts +0 -5
  212. package/dist/npm/editors/FormDateTimePicker.js +0 -49
  213. package/dist/npm/editors/FormInput.d.ts +0 -5
  214. package/dist/npm/editors/FormInput.js +0 -48
  215. package/dist/npm/editors/FormNumericTextBox.d.ts +0 -5
  216. package/dist/npm/editors/FormNumericTextBox.js +0 -48
  217. package/dist/npm/editors/GanttEditor.d.ts +0 -5
  218. package/dist/npm/editors/GanttEditor.js +0 -43
  219. package/dist/npm/editors/GanttForm.js +0 -76
  220. package/dist/npm/editors/GanttRemoveDialog.d.ts +0 -44
  221. package/dist/npm/editors/GanttRemoveDialog.js +0 -65
  222. package/dist/npm/hooks/useControlledState.d.ts +0 -4
  223. package/dist/npm/hooks/useControlledState.js +0 -27
  224. package/dist/npm/hooks/useDictionaryStore.d.ts +0 -18
  225. package/dist/npm/hooks/useDictionaryStore.js +0 -28
  226. package/dist/npm/hooks/useGanttTask.d.ts +0 -4
  227. package/dist/npm/hooks/useGanttTask.js +0 -31
  228. package/dist/npm/interfaces/AddDirection.d.ts +0 -6
  229. package/dist/npm/interfaces/AddDirection.js +0 -2
  230. package/dist/npm/interfaces/DataAction.d.ts +0 -25
  231. package/dist/npm/interfaces/DataAction.js +0 -12
  232. package/dist/npm/interfaces/DataItem.d.ts +0 -6
  233. package/dist/npm/interfaces/DataItem.js +0 -2
  234. package/dist/npm/interfaces/DateRange.d.ts +0 -8
  235. package/dist/npm/interfaces/DateRange.js +0 -2
  236. package/dist/npm/interfaces/DependencyModelFields.d.ts +0 -25
  237. package/dist/npm/interfaces/DependencyModelFields.js +0 -2
  238. package/dist/npm/interfaces/DragEvent.d.ts +0 -14
  239. package/dist/npm/interfaces/DragEvent.js +0 -2
  240. package/dist/npm/interfaces/GanttBaseProps.js +0 -2
  241. package/dist/npm/interfaces/GanttCellProps.d.ts +0 -42
  242. package/dist/npm/interfaces/GanttCellProps.js +0 -2
  243. package/dist/npm/interfaces/GanttColumnProps.js +0 -2
  244. package/dist/npm/interfaces/GanttDependencyModelFields.js +0 -2
  245. package/dist/npm/interfaces/GanttFilterCellProps.d.ts +0 -6
  246. package/dist/npm/interfaces/GanttFilterCellProps.js +0 -2
  247. package/dist/npm/interfaces/GanttFilterOperator.d.ts +0 -6
  248. package/dist/npm/interfaces/GanttFilterOperator.js +0 -2
  249. package/dist/npm/interfaces/GanttHeaderCellProps.d.ts +0 -6
  250. package/dist/npm/interfaces/GanttHeaderCellProps.js +0 -2
  251. package/dist/npm/interfaces/GanttNoRecordsProps.d.ts +0 -10
  252. package/dist/npm/interfaces/GanttNoRecordsProps.js +0 -2
  253. package/dist/npm/interfaces/GanttProps.js +0 -2
  254. package/dist/npm/interfaces/GanttRowProps.d.ts +0 -92
  255. package/dist/npm/interfaces/GanttRowProps.js +0 -2
  256. package/dist/npm/interfaces/GanttSelectableSettings.d.ts +0 -18
  257. package/dist/npm/interfaces/GanttSelectableSettings.js +0 -3
  258. package/dist/npm/interfaces/GanttSlotType.d.ts +0 -4
  259. package/dist/npm/interfaces/GanttSlotType.js +0 -2
  260. package/dist/npm/interfaces/GanttSortSettings.d.ts +0 -13
  261. package/dist/npm/interfaces/GanttSortSettings.js +0 -23
  262. package/dist/npm/interfaces/GanttTaskModelFields.d.ts +0 -55
  263. package/dist/npm/interfaces/GanttTaskModelFields.js +0 -2
  264. package/dist/npm/interfaces/GanttView.js +0 -2
  265. package/dist/npm/interfaces/GanttViewTimelineHeaderCellProps.d.ts +0 -19
  266. package/dist/npm/interfaces/GanttViewTimelineHeaderCellProps.js +0 -2
  267. package/dist/npm/interfaces/Rectangle.d.ts +0 -6
  268. package/dist/npm/interfaces/Rectangle.js +0 -2
  269. package/dist/npm/interfaces/Slot.d.ts +0 -12
  270. package/dist/npm/interfaces/Slot.js +0 -2
  271. package/dist/npm/interfaces/TaskModelFields.d.ts +0 -15
  272. package/dist/npm/interfaces/TaskModelFields.js +0 -2
  273. package/dist/npm/interfaces/events.js +0 -85
  274. package/dist/npm/main.d.ts +0 -26
  275. package/dist/npm/main.js +0 -46
  276. package/dist/npm/messages/index.d.ts +0 -137
  277. package/dist/npm/messages/index.js +0 -141
  278. package/dist/npm/package-metadata.d.ts +0 -5
  279. package/dist/npm/package-metadata.js +0 -14
  280. package/dist/npm/rows/GanttRow.d.ts +0 -5
  281. package/dist/npm/rows/GanttRow.js +0 -8
  282. package/dist/npm/utils/data-operations.d.ts +0 -43
  283. package/dist/npm/utils/data-operations.js +0 -326
  284. package/dist/npm/utils/index.d.ts +0 -178
  285. package/dist/npm/utils/index.js +0 -485
  286. package/dist/npm/views/GanttDayView.js +0 -105
  287. package/dist/npm/views/GanttMonthView.js +0 -81
  288. package/dist/npm/views/GanttWeekView.d.ts +0 -13
  289. package/dist/npm/views/GanttWeekView.js +0 -87
  290. package/dist/npm/views/GanttYearView.js +0 -73
  291. package/dist/systemjs/kendo-react-gantt.js +0 -1
  292. package/e2e-next/gantt.basic.tests.ts +0 -24
@@ -1,147 +0,0 @@
1
- /// <reference types="react" />
2
- import { GanttBaseProps } from './GanttBaseProps';
3
- import { GanttTaskModelFields } from './GanttTaskModelFields';
4
- import { GanttDependencyModelFields } from './GanttDependencyModelFields';
5
- import { GanttView } from './GanttView';
6
- import { GanttViewChangeEvent, GanttDataStateChangeEvent, GanttSortChangeEvent, GanttFilterChangeEvent, GanttExpandChangeEvent, GanttRowClickEvent, GanttColumnResizeEvent, GanttColumnReorderEvent, GanttColumnMenuFilterChangeEvent, GanttAddClickEvent, GanttTaskContextMenuEvent, GanttTaskClickEvent, GanttTaskDoubleClickEvent, GanttRowDoubleClickEvent, GanttRowContextMenuEvent, GanttTaskRemoveClickEvent, GanttDependencyCreateEvent, GanttKeyDownEvent, GanttSelectionChangeEvent, GanttHeaderSelectionChangeEvent } from './events';
7
- import { DataItem } from './DataItem';
8
- /**
9
- * Represents the props of the [KendoReact Gantt component]({% slug overview_gantt %}).
10
- */
11
- export interface GanttProps extends GanttBaseProps {
12
- /**
13
- * Sets custom CSS classes to the Gantt DOM element.
14
- */
15
- className?: string;
16
- /**
17
- * Represents the `style` HTML attribute.
18
- */
19
- style?: React.CSSProperties;
20
- /**
21
- * Sets the task data of the Gantt component. The data is then parsed and rendered as a visual Gantt tasks.
22
- */
23
- taskData?: DataItem[];
24
- /**
25
- * Sets the dependency data of the Gantt component. The data is then parsed and rendered as a visual connections between Gantt tasks.
26
- */
27
- dependencyData?: any[];
28
- /**
29
- * The names of the model fields from which the Gantt will read its task data.
30
- */
31
- taskModelFields?: GanttTaskModelFields;
32
- /**
33
- * The names of the model fields from which the Gantt will read its task data.
34
- */
35
- dependencyModelFields?: GanttDependencyModelFields;
36
- /**
37
- * Specify the available `view` components as `children` and the Gantt will match the currently selected view and render it.
38
- */
39
- children?: GanttView[] | GanttView;
40
- /**
41
- * Sets the initially selected view. The available values are:
42
- * * `day`
43
- * * `week` (Default)
44
- * * `month`
45
- * * `year`
46
- */
47
- defaultView?: string;
48
- /**
49
- * Sets the currently selected view. The value is matched with the `title` property of the view.
50
- */
51
- view?: string;
52
- /**
53
- * Specifies the id of the timezone that will be displayed in the Gantt.
54
- * For example, `Europe/Sofia`.
55
- */
56
- timezone?: string;
57
- /**
58
- * Defines the row height and implements equal heights for all rows.
59
- */
60
- rowHeight?: number;
61
- /**
62
- * Allow configuration of the Gantt toolbar. Currently allows enabling the add button.
63
- */
64
- toolbar?: {
65
- addTaskButton: boolean;
66
- };
67
- /**
68
- * Called when new `view` is selected. Useful for controlling the selected view.
69
- */
70
- onViewChange?: (args: GanttViewChangeEvent) => void;
71
- onColumnMenuFilterChange?: (event: GanttColumnMenuFilterChangeEvent) => void;
72
- /**
73
- * Fires when the data state of the Gantt is changed.
74
- */
75
- onDataStateChange?: (event: GanttDataStateChangeEvent) => void;
76
- /**
77
- * Fires when the sorting of the Gantt is changed ([see example]({% slug sorting_gantt %})).
78
- * You have to handle the event yourself and sort the data.
79
- */
80
- onSortChange?: (event: GanttSortChangeEvent) => void;
81
- /**
82
- * Fires when the Gantt filter is modified through the UI
83
- * ([more information and examples]({% slug filtering_gantt %})).
84
- * You have to handle the event yourself and filter the data.
85
- */
86
- onFilterChange?: (event: GanttFilterChangeEvent) => void;
87
- /**
88
- * Fires when the user clicks on the expand or collapse icon of a row.
89
- */
90
- onExpandChange?: (event: GanttExpandChangeEvent) => void;
91
- /**
92
- * Fires when the user clicks on Gantt add button.
93
- */
94
- onAddClick?: (event: GanttAddClickEvent) => void;
95
- /**
96
- * Fires when a column is resized.
97
- */
98
- onColumnResize?: (event: GanttColumnResizeEvent) => void;
99
- /**
100
- * Fires when the columns are reordered.
101
- */
102
- onColumnReorder?: (event: GanttColumnReorderEvent) => void;
103
- /**
104
- * Fires when the user clicks a row.
105
- */
106
- onRowClick?: (event: GanttRowClickEvent) => void;
107
- /**
108
- * Fires when the user double clicks a row.
109
- */
110
- onRowDoubleClick?: (event: GanttRowDoubleClickEvent) => void;
111
- /**
112
- * Fires when the user trigger the context menu of row.
113
- */
114
- onRowContextMenu?: (event: GanttRowContextMenuEvent) => void;
115
- /**
116
- * Fires when the user clicks a task.
117
- */
118
- onTaskClick?: (event: GanttTaskClickEvent) => void;
119
- /**
120
- * Fires when the user double clicks a task.
121
- */
122
- onTaskDoubleClick?: (event: GanttTaskDoubleClickEvent) => void;
123
- /**
124
- * Fires when the user trigger the context menu of task.
125
- */
126
- onTaskContextMenu?: (event: GanttTaskContextMenuEvent) => void;
127
- /**
128
- * Fires when the user clicks the task remove action.
129
- */
130
- onTaskRemoveClick?: (event: GanttTaskRemoveClickEvent) => void;
131
- /**
132
- * Fires when the user creates dependecy between two tasks.
133
- */
134
- onDependencyCreate?: (event: GanttDependencyCreateEvent) => void;
135
- /**
136
- * Fires when the user press keyboard key.
137
- */
138
- onKeyDown?: (event: GanttKeyDownEvent) => void;
139
- /**
140
- * Fires when the user tries to select or deselect a row or cell.
141
- */
142
- onSelectionChange?: (event: GanttSelectionChangeEvent) => void;
143
- /**
144
- * Fires when the user clicks the checkbox of a column header whose `field` matches `selectedField`
145
- */
146
- onHeaderSelectionChange?: (event: GanttHeaderSelectionChangeEvent) => void;
147
- }
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1,2 +0,0 @@
1
- ;
2
- export {};
@@ -1,4 +0,0 @@
1
- /**
2
- * The types of Gantt slot.
3
- */
4
- export declare type GanttSlotType = 'time' | 'day' | 'week' | 'month' | 'year';
@@ -1 +0,0 @@
1
- export {};
@@ -1,13 +0,0 @@
1
- import { ColumnSortSettings, SortSettings } from '@progress/kendo-react-data-tools';
2
- /**
3
- * The settings for sorting the Gantt columns.
4
- */
5
- export declare type GanttColumnSortSettings = ColumnSortSettings;
6
- /**
7
- * The settings for sorting the Gantt data.
8
- */
9
- export declare type GanttSortSettings = SortSettings;
10
- /**
11
- * @hidden
12
- */
13
- export declare const normalize: (...settings: (GanttSortSettings | GanttColumnSortSettings)[]) => any;
@@ -1,19 +0,0 @@
1
- var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
2
- if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
3
- if (ar || !(i in from)) {
4
- if (!ar) ar = Array.prototype.slice.call(from, 0, i);
5
- ar[i] = from[i];
6
- }
7
- }
8
- return to.concat(ar || Array.prototype.slice.call(from));
9
- };
10
- /**
11
- * @hidden
12
- */
13
- export var normalize = function () {
14
- var settings = [];
15
- for (var _i = 0; _i < arguments.length; _i++) {
16
- settings[_i] = arguments[_i];
17
- }
18
- return Object.assign.apply(Object, __spreadArray([{ allowUnsort: true, mode: 'single' }], settings, false));
19
- };
@@ -1 +0,0 @@
1
- export {};
@@ -1,77 +0,0 @@
1
- /// <reference types="react" />
2
- import { LocalizationService, IntlService } from '@progress/kendo-react-intl';
3
- import { Day } from '@progress/kendo-date-math';
4
- import { DateRange } from './DateRange';
5
- import { GanttViewTimelineHeaderCellProps } from './GanttViewTimelineHeaderCellProps';
6
- /**
7
- * Represents the arguments which are passed to the [dateRange]({% slug api_gantt_ganttviewprops %}#toc-daterange) function.
8
- */
9
- export interface GanttViewDateRangeArgs {
10
- tasksStart: Date;
11
- tasksEnd: Date;
12
- intl: IntlService;
13
- timezone?: string;
14
- numberOfDays?: number;
15
- }
16
- export declare type GanttViewDateRangeFunction = (args: GanttViewDateRangeArgs) => DateRange;
17
- /**
18
- * Represents the Object which is passed to the [`ref`](https://reactjs.org/docs/refs-and-the-dom.html) callback of the GanttView component.
19
- */
20
- export interface GanttViewHandle {
21
- /**
22
- * Method to allow the scroll to be set to a specific row index.
23
- */
24
- scrollIntoView: (options: {
25
- rowIndex?: number;
26
- }) => void;
27
- }
28
- /**
29
- * Represents the required props which every [GanttView]({% slug api_Gantt_Ganttview %}) must accept.
30
- */
31
- export interface GanttViewProps {
32
- /**
33
- * The name property is used by the Gantt to match which view is selected. Every view has a default name.
34
- */
35
- name?: string;
36
- /**
37
- * The title to be displayed in the view selection list in the Toolbar.
38
- * If a function is passed, it will receive a [LocalizationService]({ slug api_intl_localizationservice }) as an argument
39
- */
40
- title?: string | ((localization: LocalizationService) => string);
41
- /**
42
- * The width of a single time slot in pixels. Default is 100px.
43
- */
44
- slotWidth?: number;
45
- /**
46
- * Overrides the `dateRange` calculated by the `Gantt` component.
47
- *
48
- * If a function is passed, an object of type [GanttViewDateRangeArgs]({% slug api_gantt_ganttviewdaterangeargs %}) will be passed.
49
- */
50
- dateRange?: DateRange | ((args: GanttViewDateRangeArgs) => DateRange);
51
- /**
52
- * Sets the start of the work day.
53
- */
54
- workDayStart?: string;
55
- /**
56
- * Sets the end of the work day.
57
- */
58
- workDayEnd?: string;
59
- /**
60
- * The start of the work week.
61
- */
62
- workWeekStart?: Day;
63
- /**
64
- * The end of the work week.
65
- */
66
- workWeekEnd?: Day;
67
- /**
68
- * The component to be rendered in header cells of the timeline part of the Gantt.
69
- */
70
- timelineHeaderCell?: React.ComponentType<GanttViewTimelineHeaderCellProps>;
71
- /** @hidden */
72
- firstSlotRangeRef?: React.MutableRefObject<DateRange | null>;
73
- }
74
- /**
75
- * Represents a single Gantt view.
76
- */
77
- export declare type GanttView = React.ReactElement<GanttViewProps>;
@@ -1 +0,0 @@
1
- export {};
@@ -1,6 +0,0 @@
1
- /** @hidden */
2
- export interface Rectangle {
3
- top: number;
4
- start: number;
5
- end: number;
6
- }
@@ -1 +0,0 @@
1
- export {};
@@ -1,12 +0,0 @@
1
- import { DateRange } from './DateRange';
2
- import { GanttSlotType } from './GanttSlotType';
3
- /**
4
- * @hidden
5
- */
6
- export interface Slot {
7
- range: DateRange;
8
- isWork: boolean;
9
- span: number;
10
- text: string;
11
- type: GanttSlotType;
12
- }
@@ -1 +0,0 @@
1
- export {};
@@ -1,15 +0,0 @@
1
- /**
2
- * Represents the combined object of the default and custom GanttTaskModelFields.
3
- */
4
- export interface TaskModelFields {
5
- id: string;
6
- start: string;
7
- end: string;
8
- title: string;
9
- percentComplete: string;
10
- isRollup: string;
11
- isExpanded: string;
12
- children: string;
13
- isInEdit: string;
14
- isSelected: string;
15
- }
@@ -1 +0,0 @@
1
- export {};
@@ -1,294 +0,0 @@
1
- import { SortDescriptor, FilterDescriptor, CompositeFilterDescriptor } from '@progress/kendo-data-query';
2
- import { GanttColumnProps } from './GanttColumnProps';
3
- import { BaseEvent } from '@progress/kendo-react-common';
4
- import { GanttHandle } from '../Gantt';
5
- import { AddDirection } from './AddDirection';
6
- import { TableKeyDownEvent, TableSelectionChangeEvent } from '@progress/kendo-react-data-tools';
7
- /**
8
- * Represents the base event object of the Gantt.
9
- */
10
- export interface GanttEvent extends BaseEvent<GanttHandle> {
11
- }
12
- /**
13
- * Represents the object of the `onDataStateChange` Gantt event.
14
- */
15
- export interface GanttDataStateChangeEvent extends GanttEvent {
16
- /**
17
- * The state of the Gantt based on the user action.
18
- */
19
- dataState: {
20
- /**
21
- * The descriptors that are used for sorting.
22
- */
23
- sort?: Array<SortDescriptor>;
24
- /**
25
- * The descriptors that are used for filtering.
26
- */
27
- filter?: Array<FilterDescriptor>;
28
- /**
29
- * The field of the column which triggers the event.
30
- */
31
- field?: string;
32
- };
33
- }
34
- /**
35
- * Represents the object of the `onSortChange` Gantt event.
36
- */
37
- export interface GanttSortChangeEvent extends GanttEvent {
38
- /**
39
- * The new `SortDescriptor` according to the user action.
40
- */
41
- sort: SortDescriptor[];
42
- /**
43
- * The field of the column which triggers the event.
44
- */
45
- field: string;
46
- }
47
- /**
48
- * Represents the object of the `onFilterChange` Gantt event.
49
- */
50
- export interface GanttFilterChangeEvent extends GanttEvent {
51
- /**
52
- * The new `FilterDescriptor` based on the user action.
53
- */
54
- filter: FilterDescriptor[];
55
- /**
56
- * The field of the column which triggers the event.
57
- */
58
- field: string;
59
- }
60
- /**
61
- * Represents the object of the `onColumnMenuFilterChange` Gantt event.
62
- */
63
- export interface GanttColumnMenuFilterChangeEvent extends GanttEvent {
64
- /**
65
- * The new `CompositeFilterDescriptor` based on the user action.
66
- */
67
- filter: CompositeFilterDescriptor[];
68
- /**
69
- * The field of the column which triggers the event.
70
- */
71
- field: string;
72
- }
73
- /**
74
- * Represents the object of the `onExpandChange` Gantt event.
75
- */
76
- export interface GanttExpandChangeEvent extends GanttEvent {
77
- /**
78
- * The data item which is expanded or collapsed.
79
- */
80
- dataItem: any;
81
- /**
82
- * An array of indexes of each parent and current item in the data tree.
83
- */
84
- level: number[];
85
- /**
86
- * The available values are:
87
- * - `true`&mdash;If the data item is expanded.
88
- * - `false`&mdash;If the data item is collapsed.
89
- */
90
- value: boolean;
91
- }
92
- /**
93
- * Represents the object of the `onAddClick` Gantt event.
94
- */
95
- export interface GanttAddClickEvent extends GanttEvent {
96
- /**
97
- * The direction of the add action.
98
- */
99
- direction: AddDirection;
100
- /**
101
- * The data item which is currently selected.
102
- */
103
- selectedDataItem?: any;
104
- /**
105
- * Current view first slot range start date.
106
- */
107
- slotStart: Date;
108
- /**
109
- * Current view first slot range end date.
110
- */
111
- slotEnd: Date;
112
- }
113
- /**
114
- * Represents the object of the `onKeyDownEvent` Gantt event.
115
- */
116
- export interface GanttKeyDownEvent extends GanttEvent, TableKeyDownEvent<GanttHandle> {
117
- }
118
- /**
119
- * Represents the object of the `onHeaderSelectionChange` Gantt event.
120
- */
121
- export interface GanttHeaderSelectionChangeEvent extends GanttEvent {
122
- /**
123
- * The field of the column in which the cell is located.
124
- */
125
- field?: string;
126
- }
127
- /**
128
- * Represents the object of the `onSelectionChange` Gantt event.
129
- */
130
- export interface GanttSelectionChangeEvent extends GanttEvent, TableSelectionChangeEvent<GanttHandle> {
131
- /**
132
- * An array of indexes of each parent and current item in the data tree.
133
- */
134
- level: number[];
135
- }
136
- /**
137
- * Called every time the user changes the active `view`.
138
- */
139
- export interface GanttViewChangeEvent extends GanttEvent {
140
- value: string;
141
- }
142
- interface ColumnDragEvent {
143
- /**
144
- * An event target.
145
- */
146
- target: GanttHandle;
147
- /**
148
- * A native DOM event.
149
- */
150
- nativeEvent: any;
151
- /**
152
- * The current columns collection.
153
- */
154
- columns: GanttColumnProps[];
155
- }
156
- /**
157
- * Represents the object of the `onColumnResize` Gantt event.
158
- */
159
- export interface GanttColumnResizeEvent extends ColumnDragEvent {
160
- /**
161
- * The index of the column.
162
- */
163
- index: number;
164
- /**
165
- * The new width of the column.
166
- */
167
- newWidth: number;
168
- /**
169
- * The actual width of the column prior to resizing.
170
- */
171
- oldWidth: number;
172
- /**
173
- * Indicates that resizing is complete and the user has dropped the resize handler.
174
- */
175
- end: boolean;
176
- /**
177
- * The total width of the columns after the resizing.
178
- */
179
- totalWidth: number;
180
- }
181
- /**
182
- * Represents the object of the `onColumnReorder` Gantt event.
183
- */
184
- export interface GanttColumnReorderEvent extends ColumnDragEvent {
185
- }
186
- /**
187
- * Represents the object of the `onRowClick` Gantt event.
188
- */
189
- export interface GanttRowClickEvent extends GanttEvent {
190
- /**
191
- * The data item which corresponds to the clicked row.
192
- */
193
- dataItem: any;
194
- /**
195
- * An array of indexes of each parent and current item in the data tree.
196
- */
197
- level: number[];
198
- }
199
- /**
200
- * Represents the object of the `onRowDoubleClick` Gantt event.
201
- */
202
- export interface GanttRowDoubleClickEvent extends GanttEvent {
203
- /**
204
- * The data item which corresponds to the clicked row.
205
- */
206
- dataItem: any;
207
- /**
208
- * An array of indexes of each parent and current item in the data tree.
209
- */
210
- level: number[];
211
- }
212
- /**
213
- * Represents the object of the `onRowContextMenu` Gantt event.
214
- */
215
- export interface GanttRowContextMenuEvent extends GanttEvent {
216
- /**
217
- * The data item which corresponds to the clicked row.
218
- */
219
- dataItem: any;
220
- /**
221
- * An array of indexes of each parent and current item in the data tree.
222
- */
223
- level: number[];
224
- }
225
- /**
226
- * Represents the object of the `onTaskClick` Gantt event.
227
- */
228
- export interface GanttTaskClickEvent extends GanttEvent {
229
- /**
230
- * The data item which corresponds to the clicked task.
231
- */
232
- dataItem: any;
233
- /**
234
- * An array of indexes of each parent and current item in the data tree.
235
- */
236
- level: number[];
237
- }
238
- /**
239
- * Represents the object of the `onTaskDoubleClick` Gantt event.
240
- */
241
- export interface GanttTaskDoubleClickEvent extends GanttEvent {
242
- /**
243
- * The data item which corresponds to the double clicked task.
244
- */
245
- dataItem: any;
246
- /**
247
- * An array of indexes of each parent and current item in the data tree.
248
- */
249
- level: number[];
250
- }
251
- /**
252
- * Represents the object of the `onTaskContextMenu` Gantt event.
253
- */
254
- export interface GanttTaskContextMenuEvent extends GanttEvent {
255
- /**
256
- * The data item which corresponds to the clicked task.
257
- */
258
- dataItem: any;
259
- /**
260
- * An array of indexes of each parent and current item in the data tree.
261
- */
262
- level: number[];
263
- }
264
- /**
265
- * Represents the object of the `onTaskRemoveClick` Gantt event.
266
- */
267
- export interface GanttTaskRemoveClickEvent extends GanttEvent {
268
- /**
269
- * The data item which corresponds to the clicked task.
270
- */
271
- dataItem: any;
272
- /**
273
- * An array of indexes of each parent and current item in the data tree.
274
- */
275
- level: number[];
276
- }
277
- /**
278
- * Represents the object of the `onDependencyCreateEvent` Gantt event.
279
- */
280
- export interface GanttDependencyCreateEvent extends GanttEvent {
281
- /**
282
- * The id of the source task.
283
- */
284
- fromId: any;
285
- /**
286
- * The id of the destination task.
287
- */
288
- toId: any;
289
- /**
290
- * The type of the dependency.
291
- */
292
- type: number;
293
- }
294
- export {};