@bryntum/gantt-react 7.1.1

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 (404) hide show
  1. package/README.md +52 -0
  2. package/lib/BryntumAIFilterField.d.ts +231 -0
  3. package/lib/BryntumAIFilterField.js +168 -0
  4. package/lib/BryntumAIFilterField.js.map +1 -0
  5. package/lib/BryntumAssignmentField.d.ts +271 -0
  6. package/lib/BryntumAssignmentField.js +204 -0
  7. package/lib/BryntumAssignmentField.js.map +1 -0
  8. package/lib/BryntumAssignmentGrid.d.ts +834 -0
  9. package/lib/BryntumAssignmentGrid.js +283 -0
  10. package/lib/BryntumAssignmentGrid.js.map +1 -0
  11. package/lib/BryntumButton.d.ts +206 -0
  12. package/lib/BryntumButton.js +148 -0
  13. package/lib/BryntumButton.js.map +1 -0
  14. package/lib/BryntumButtonGroup.d.ts +201 -0
  15. package/lib/BryntumButtonGroup.js +154 -0
  16. package/lib/BryntumButtonGroup.js.map +1 -0
  17. package/lib/BryntumCalendarEditor.d.ts +259 -0
  18. package/lib/BryntumCalendarEditor.js +187 -0
  19. package/lib/BryntumCalendarEditor.js.map +1 -0
  20. package/lib/BryntumCalendarField.d.ts +268 -0
  21. package/lib/BryntumCalendarField.js +204 -0
  22. package/lib/BryntumCalendarField.js.map +1 -0
  23. package/lib/BryntumCalendarPicker.d.ts +266 -0
  24. package/lib/BryntumCalendarPicker.js +202 -0
  25. package/lib/BryntumCalendarPicker.js.map +1 -0
  26. package/lib/BryntumChatPanel.d.ts +246 -0
  27. package/lib/BryntumChatPanel.js +178 -0
  28. package/lib/BryntumChatPanel.js.map +1 -0
  29. package/lib/BryntumCheckbox.d.ts +239 -0
  30. package/lib/BryntumCheckbox.js +168 -0
  31. package/lib/BryntumCheckbox.js.map +1 -0
  32. package/lib/BryntumCheckboxGroup.d.ts +249 -0
  33. package/lib/BryntumCheckboxGroup.js +182 -0
  34. package/lib/BryntumCheckboxGroup.js.map +1 -0
  35. package/lib/BryntumChecklistFilterCombo.d.ts +268 -0
  36. package/lib/BryntumChecklistFilterCombo.js +205 -0
  37. package/lib/BryntumChecklistFilterCombo.js.map +1 -0
  38. package/lib/BryntumChipView.d.ts +208 -0
  39. package/lib/BryntumChipView.js +152 -0
  40. package/lib/BryntumChipView.js.map +1 -0
  41. package/lib/BryntumCodeEditor.d.ts +237 -0
  42. package/lib/BryntumCodeEditor.js +176 -0
  43. package/lib/BryntumCodeEditor.js.map +1 -0
  44. package/lib/BryntumColorField.d.ts +231 -0
  45. package/lib/BryntumColorField.js +169 -0
  46. package/lib/BryntumColorField.js.map +1 -0
  47. package/lib/BryntumCombo.d.ts +266 -0
  48. package/lib/BryntumCombo.js +202 -0
  49. package/lib/BryntumCombo.js.map +1 -0
  50. package/lib/BryntumConstraintTypePicker.d.ts +266 -0
  51. package/lib/BryntumConstraintTypePicker.js +202 -0
  52. package/lib/BryntumConstraintTypePicker.js.map +1 -0
  53. package/lib/BryntumContainer.d.ts +185 -0
  54. package/lib/BryntumContainer.js +148 -0
  55. package/lib/BryntumContainer.js.map +1 -0
  56. package/lib/BryntumCostAccrualField.d.ts +266 -0
  57. package/lib/BryntumCostAccrualField.js +202 -0
  58. package/lib/BryntumCostAccrualField.js.map +1 -0
  59. package/lib/BryntumDateField.d.ts +241 -0
  60. package/lib/BryntumDateField.js +178 -0
  61. package/lib/BryntumDateField.js.map +1 -0
  62. package/lib/BryntumDatePicker.d.ts +310 -0
  63. package/lib/BryntumDatePicker.js +213 -0
  64. package/lib/BryntumDatePicker.js.map +1 -0
  65. package/lib/BryntumDateRangeField.d.ts +242 -0
  66. package/lib/BryntumDateRangeField.js +179 -0
  67. package/lib/BryntumDateRangeField.js.map +1 -0
  68. package/lib/BryntumDateTimeField.d.ts +222 -0
  69. package/lib/BryntumDateTimeField.js +158 -0
  70. package/lib/BryntumDateTimeField.js.map +1 -0
  71. package/lib/BryntumDemoCodeEditor.d.ts +240 -0
  72. package/lib/BryntumDemoCodeEditor.js +179 -0
  73. package/lib/BryntumDemoCodeEditor.js.map +1 -0
  74. package/lib/BryntumDemoHeader.d.ts +30 -0
  75. package/lib/BryntumDemoHeader.js +84 -0
  76. package/lib/BryntumDemoHeader.js.map +1 -0
  77. package/lib/BryntumDependencyField.d.ts +273 -0
  78. package/lib/BryntumDependencyField.js +209 -0
  79. package/lib/BryntumDependencyField.js.map +1 -0
  80. package/lib/BryntumDependencyTypePicker.d.ts +266 -0
  81. package/lib/BryntumDependencyTypePicker.js +202 -0
  82. package/lib/BryntumDependencyTypePicker.js.map +1 -0
  83. package/lib/BryntumDisplayField.d.ts +227 -0
  84. package/lib/BryntumDisplayField.js +163 -0
  85. package/lib/BryntumDisplayField.js.map +1 -0
  86. package/lib/BryntumDurationField.d.ts +234 -0
  87. package/lib/BryntumDurationField.js +175 -0
  88. package/lib/BryntumDurationField.js.map +1 -0
  89. package/lib/BryntumEditor.d.ts +249 -0
  90. package/lib/BryntumEditor.js +167 -0
  91. package/lib/BryntumEditor.js.map +1 -0
  92. package/lib/BryntumEffortField.d.ts +234 -0
  93. package/lib/BryntumEffortField.js +175 -0
  94. package/lib/BryntumEffortField.js.map +1 -0
  95. package/lib/BryntumEndDateField.d.ts +243 -0
  96. package/lib/BryntumEndDateField.js +180 -0
  97. package/lib/BryntumEndDateField.js.map +1 -0
  98. package/lib/BryntumEventColorField.d.ts +231 -0
  99. package/lib/BryntumEventColorField.js +169 -0
  100. package/lib/BryntumEventColorField.js.map +1 -0
  101. package/lib/BryntumFieldFilterPicker.d.ts +202 -0
  102. package/lib/BryntumFieldFilterPicker.js +161 -0
  103. package/lib/BryntumFieldFilterPicker.js.map +1 -0
  104. package/lib/BryntumFieldFilterPickerGroup.d.ts +207 -0
  105. package/lib/BryntumFieldFilterPickerGroup.js +164 -0
  106. package/lib/BryntumFieldFilterPickerGroup.js.map +1 -0
  107. package/lib/BryntumFieldSet.d.ts +235 -0
  108. package/lib/BryntumFieldSet.js +174 -0
  109. package/lib/BryntumFieldSet.js.map +1 -0
  110. package/lib/BryntumFileField.d.ts +228 -0
  111. package/lib/BryntumFileField.js +164 -0
  112. package/lib/BryntumFileField.js.map +1 -0
  113. package/lib/BryntumFilePicker.d.ts +192 -0
  114. package/lib/BryntumFilePicker.js +153 -0
  115. package/lib/BryntumFilePicker.js.map +1 -0
  116. package/lib/BryntumFilterField.d.ts +234 -0
  117. package/lib/BryntumFilterField.js +171 -0
  118. package/lib/BryntumFilterField.js.map +1 -0
  119. package/lib/BryntumFullscreenButton.d.ts +8 -0
  120. package/lib/BryntumFullscreenButton.js +37 -0
  121. package/lib/BryntumFullscreenButton.js.map +1 -0
  122. package/lib/BryntumGantt.d.ts +1772 -0
  123. package/lib/BryntumGantt.js +601 -0
  124. package/lib/BryntumGantt.js.map +1 -0
  125. package/lib/BryntumGanttBase.d.ts +1771 -0
  126. package/lib/BryntumGanttBase.js +600 -0
  127. package/lib/BryntumGanttBase.js.map +1 -0
  128. package/lib/BryntumGanttProjectModel.d.ts +303 -0
  129. package/lib/BryntumGanttProjectModel.js +188 -0
  130. package/lib/BryntumGanttProjectModel.js.map +1 -0
  131. package/lib/BryntumGrid.d.ts +844 -0
  132. package/lib/BryntumGrid.js +335 -0
  133. package/lib/BryntumGrid.js.map +1 -0
  134. package/lib/BryntumGridBase.d.ts +842 -0
  135. package/lib/BryntumGridBase.js +333 -0
  136. package/lib/BryntumGridBase.js.map +1 -0
  137. package/lib/BryntumGridChartDesigner.d.ts +162 -0
  138. package/lib/BryntumGridChartDesigner.js +127 -0
  139. package/lib/BryntumGridChartDesigner.js.map +1 -0
  140. package/lib/BryntumGridFieldFilterPicker.d.ts +203 -0
  141. package/lib/BryntumGridFieldFilterPicker.js +162 -0
  142. package/lib/BryntumGridFieldFilterPicker.js.map +1 -0
  143. package/lib/BryntumGridFieldFilterPickerGroup.d.ts +206 -0
  144. package/lib/BryntumGridFieldFilterPickerGroup.js +163 -0
  145. package/lib/BryntumGridFieldFilterPickerGroup.js.map +1 -0
  146. package/lib/BryntumGroupBar.d.ts +208 -0
  147. package/lib/BryntumGroupBar.js +152 -0
  148. package/lib/BryntumGroupBar.js.map +1 -0
  149. package/lib/BryntumHint.d.ts +260 -0
  150. package/lib/BryntumHint.js +184 -0
  151. package/lib/BryntumHint.js.map +1 -0
  152. package/lib/BryntumLabel.d.ts +161 -0
  153. package/lib/BryntumLabel.js +126 -0
  154. package/lib/BryntumLabel.js.map +1 -0
  155. package/lib/BryntumList.d.ts +205 -0
  156. package/lib/BryntumList.js +149 -0
  157. package/lib/BryntumList.js.map +1 -0
  158. package/lib/BryntumMenu.d.ts +264 -0
  159. package/lib/BryntumMenu.js +187 -0
  160. package/lib/BryntumMenu.js.map +1 -0
  161. package/lib/BryntumModelCombo.d.ts +266 -0
  162. package/lib/BryntumModelCombo.js +202 -0
  163. package/lib/BryntumModelCombo.js.map +1 -0
  164. package/lib/BryntumMonthPicker.d.ts +240 -0
  165. package/lib/BryntumMonthPicker.js +173 -0
  166. package/lib/BryntumMonthPicker.js.map +1 -0
  167. package/lib/BryntumNumberField.d.ts +234 -0
  168. package/lib/BryntumNumberField.js +170 -0
  169. package/lib/BryntumNumberField.js.map +1 -0
  170. package/lib/BryntumPagingToolbar.d.ts +210 -0
  171. package/lib/BryntumPagingToolbar.js +156 -0
  172. package/lib/BryntumPagingToolbar.js.map +1 -0
  173. package/lib/BryntumPanel.d.ts +231 -0
  174. package/lib/BryntumPanel.js +170 -0
  175. package/lib/BryntumPanel.js.map +1 -0
  176. package/lib/BryntumPasswordField.d.ts +226 -0
  177. package/lib/BryntumPasswordField.js +162 -0
  178. package/lib/BryntumPasswordField.js.map +1 -0
  179. package/lib/BryntumProjectCombo.d.ts +267 -0
  180. package/lib/BryntumProjectCombo.js +203 -0
  181. package/lib/BryntumProjectCombo.js.map +1 -0
  182. package/lib/BryntumRadio.d.ts +239 -0
  183. package/lib/BryntumRadio.js +168 -0
  184. package/lib/BryntumRadio.js.map +1 -0
  185. package/lib/BryntumRadioGroup.d.ts +239 -0
  186. package/lib/BryntumRadioGroup.js +178 -0
  187. package/lib/BryntumRadioGroup.js.map +1 -0
  188. package/lib/BryntumRateTableField.d.ts +266 -0
  189. package/lib/BryntumRateTableField.js +202 -0
  190. package/lib/BryntumRateTableField.js.map +1 -0
  191. package/lib/BryntumResourceCombo.d.ts +267 -0
  192. package/lib/BryntumResourceCombo.js +203 -0
  193. package/lib/BryntumResourceCombo.js.map +1 -0
  194. package/lib/BryntumResourceEditor.d.ts +256 -0
  195. package/lib/BryntumResourceEditor.js +184 -0
  196. package/lib/BryntumResourceEditor.js.map +1 -0
  197. package/lib/BryntumResourceFilter.d.ts +214 -0
  198. package/lib/BryntumResourceFilter.js +154 -0
  199. package/lib/BryntumResourceFilter.js.map +1 -0
  200. package/lib/BryntumResourceGrid.d.ts +833 -0
  201. package/lib/BryntumResourceGrid.js +283 -0
  202. package/lib/BryntumResourceGrid.js.map +1 -0
  203. package/lib/BryntumResourceHistogram.d.ts +1263 -0
  204. package/lib/BryntumResourceHistogram.js +486 -0
  205. package/lib/BryntumResourceHistogram.js.map +1 -0
  206. package/lib/BryntumResourceTypeField.d.ts +266 -0
  207. package/lib/BryntumResourceTypeField.js +202 -0
  208. package/lib/BryntumResourceTypeField.js.map +1 -0
  209. package/lib/BryntumResourceUtilization.d.ts +1278 -0
  210. package/lib/BryntumResourceUtilization.js +489 -0
  211. package/lib/BryntumResourceUtilization.js.map +1 -0
  212. package/lib/BryntumScheduler.d.ts +2038 -0
  213. package/lib/BryntumScheduler.js +643 -0
  214. package/lib/BryntumScheduler.js.map +1 -0
  215. package/lib/BryntumSchedulerBase.d.ts +2037 -0
  216. package/lib/BryntumSchedulerBase.js +642 -0
  217. package/lib/BryntumSchedulerBase.js.map +1 -0
  218. package/lib/BryntumSchedulerDatePicker.d.ts +313 -0
  219. package/lib/BryntumSchedulerDatePicker.js +216 -0
  220. package/lib/BryntumSchedulerDatePicker.js.map +1 -0
  221. package/lib/BryntumSchedulerPro.d.ts +2269 -0
  222. package/lib/BryntumSchedulerPro.js +700 -0
  223. package/lib/BryntumSchedulerPro.js.map +1 -0
  224. package/lib/BryntumSchedulerProBase.d.ts +2268 -0
  225. package/lib/BryntumSchedulerProBase.js +699 -0
  226. package/lib/BryntumSchedulerProBase.js.map +1 -0
  227. package/lib/BryntumSchedulingDirectionPicker.d.ts +266 -0
  228. package/lib/BryntumSchedulingDirectionPicker.js +202 -0
  229. package/lib/BryntumSchedulingDirectionPicker.js.map +1 -0
  230. package/lib/BryntumSchedulingModePicker.d.ts +267 -0
  231. package/lib/BryntumSchedulingModePicker.js +203 -0
  232. package/lib/BryntumSchedulingModePicker.js.map +1 -0
  233. package/lib/BryntumSlideToggle.d.ts +239 -0
  234. package/lib/BryntumSlideToggle.js +168 -0
  235. package/lib/BryntumSlideToggle.js.map +1 -0
  236. package/lib/BryntumSlider.d.ts +184 -0
  237. package/lib/BryntumSlider.js +142 -0
  238. package/lib/BryntumSlider.js.map +1 -0
  239. package/lib/BryntumSplitter.d.ts +174 -0
  240. package/lib/BryntumSplitter.js +130 -0
  241. package/lib/BryntumSplitter.js.map +1 -0
  242. package/lib/BryntumStartDateField.d.ts +245 -0
  243. package/lib/BryntumStartDateField.js +182 -0
  244. package/lib/BryntumStartDateField.js.map +1 -0
  245. package/lib/BryntumTabPanel.d.ts +249 -0
  246. package/lib/BryntumTabPanel.js +178 -0
  247. package/lib/BryntumTabPanel.js.map +1 -0
  248. package/lib/BryntumTextAreaField.d.ts +228 -0
  249. package/lib/BryntumTextAreaField.js +164 -0
  250. package/lib/BryntumTextAreaField.js.map +1 -0
  251. package/lib/BryntumTextAreaPickerField.d.ts +232 -0
  252. package/lib/BryntumTextAreaPickerField.js +170 -0
  253. package/lib/BryntumTextAreaPickerField.js.map +1 -0
  254. package/lib/BryntumTextField.d.ts +229 -0
  255. package/lib/BryntumTextField.js +166 -0
  256. package/lib/BryntumTextField.js.map +1 -0
  257. package/lib/BryntumThemeCombo.d.ts +17 -0
  258. package/lib/BryntumThemeCombo.js +75 -0
  259. package/lib/BryntumThemeCombo.js.map +1 -0
  260. package/lib/BryntumTimeField.d.ts +238 -0
  261. package/lib/BryntumTimeField.js +175 -0
  262. package/lib/BryntumTimeField.js.map +1 -0
  263. package/lib/BryntumTimePicker.d.ts +192 -0
  264. package/lib/BryntumTimePicker.js +154 -0
  265. package/lib/BryntumTimePicker.js.map +1 -0
  266. package/lib/BryntumTimeline.d.ts +2019 -0
  267. package/lib/BryntumTimeline.js +553 -0
  268. package/lib/BryntumTimeline.js.map +1 -0
  269. package/lib/BryntumTimelineHistogram.d.ts +1183 -0
  270. package/lib/BryntumTimelineHistogram.js +448 -0
  271. package/lib/BryntumTimelineHistogram.js.map +1 -0
  272. package/lib/BryntumToolbar.d.ts +209 -0
  273. package/lib/BryntumToolbar.js +155 -0
  274. package/lib/BryntumToolbar.js.map +1 -0
  275. package/lib/BryntumTreeCombo.d.ts +266 -0
  276. package/lib/BryntumTreeCombo.js +202 -0
  277. package/lib/BryntumTreeCombo.js.map +1 -0
  278. package/lib/BryntumTreeGrid.d.ts +843 -0
  279. package/lib/BryntumTreeGrid.js +334 -0
  280. package/lib/BryntumTreeGrid.js.map +1 -0
  281. package/lib/BryntumUndoRedo.d.ts +189 -0
  282. package/lib/BryntumUndoRedo.js +152 -0
  283. package/lib/BryntumUndoRedo.js.map +1 -0
  284. package/lib/BryntumVersionGrid.d.ts +844 -0
  285. package/lib/BryntumVersionGrid.js +289 -0
  286. package/lib/BryntumVersionGrid.js.map +1 -0
  287. package/lib/BryntumViewPresetCombo.d.ts +215 -0
  288. package/lib/BryntumViewPresetCombo.js +158 -0
  289. package/lib/BryntumViewPresetCombo.js.map +1 -0
  290. package/lib/BryntumWidget.d.ts +160 -0
  291. package/lib/BryntumWidget.js +125 -0
  292. package/lib/BryntumWidget.js.map +1 -0
  293. package/lib/BryntumYearPicker.d.ts +240 -0
  294. package/lib/BryntumYearPicker.js +177 -0
  295. package/lib/BryntumYearPicker.js.map +1 -0
  296. package/lib/WrapperHelper.d.ts +26 -0
  297. package/lib/WrapperHelper.js +569 -0
  298. package/lib/WrapperHelper.js.map +1 -0
  299. package/lib/index.d.ts +98 -0
  300. package/lib/index.js +99 -0
  301. package/lib/index.js.map +1 -0
  302. package/license.pdf +0 -0
  303. package/licenses.md +310 -0
  304. package/package.json +25 -0
  305. package/src/BryntumAIFilterField.tsx +998 -0
  306. package/src/BryntumAssignmentField.tsx +1249 -0
  307. package/src/BryntumAssignmentGrid.tsx +2347 -0
  308. package/src/BryntumButton.tsx +887 -0
  309. package/src/BryntumButtonGroup.tsx +902 -0
  310. package/src/BryntumCalendarEditor.tsx +1151 -0
  311. package/src/BryntumCalendarField.tsx +1243 -0
  312. package/src/BryntumCalendarPicker.tsx +1230 -0
  313. package/src/BryntumChatPanel.tsx +1082 -0
  314. package/src/BryntumCheckbox.tsx +1000 -0
  315. package/src/BryntumCheckboxGroup.tsx +1116 -0
  316. package/src/BryntumChecklistFilterCombo.tsx +1241 -0
  317. package/src/BryntumChipView.tsx +914 -0
  318. package/src/BryntumCodeEditor.tsx +1065 -0
  319. package/src/BryntumColorField.tsx +995 -0
  320. package/src/BryntumCombo.tsx +1230 -0
  321. package/src/BryntumConstraintTypePicker.tsx +1230 -0
  322. package/src/BryntumContainer.tsx +861 -0
  323. package/src/BryntumCostAccrualField.tsx +1230 -0
  324. package/src/BryntumDateField.tsx +1055 -0
  325. package/src/BryntumDatePicker.tsx +1340 -0
  326. package/src/BryntumDateRangeField.tsx +1057 -0
  327. package/src/BryntumDateTimeField.tsx +942 -0
  328. package/src/BryntumDemoCodeEditor.tsx +1081 -0
  329. package/src/BryntumDemoHeader.tsx +160 -0
  330. package/src/BryntumDependencyField.tsx +1271 -0
  331. package/src/BryntumDependencyTypePicker.tsx +1230 -0
  332. package/src/BryntumDisplayField.tsx +979 -0
  333. package/src/BryntumDurationField.tsx +1038 -0
  334. package/src/BryntumEditor.tsx +1013 -0
  335. package/src/BryntumEffortField.tsx +1038 -0
  336. package/src/BryntumEndDateField.tsx +1065 -0
  337. package/src/BryntumEventColorField.tsx +995 -0
  338. package/src/BryntumFieldFilterPicker.tsx +943 -0
  339. package/src/BryntumFieldFilterPickerGroup.tsx +976 -0
  340. package/src/BryntumFieldSet.tsx +1058 -0
  341. package/src/BryntumFileField.tsx +982 -0
  342. package/src/BryntumFilePicker.tsx +888 -0
  343. package/src/BryntumFilterField.tsx +1023 -0
  344. package/src/BryntumFullscreenButton.tsx +45 -0
  345. package/src/BryntumGantt.tsx +4694 -0
  346. package/src/BryntumGanttBase.tsx +4692 -0
  347. package/src/BryntumGanttProjectModel.tsx +1144 -0
  348. package/src/BryntumGrid.tsx +2402 -0
  349. package/src/BryntumGridBase.tsx +2399 -0
  350. package/src/BryntumGridChartDesigner.tsx +728 -0
  351. package/src/BryntumGridFieldFilterPicker.tsx +956 -0
  352. package/src/BryntumGridFieldFilterPickerGroup.tsx +970 -0
  353. package/src/BryntumGroupBar.tsx +914 -0
  354. package/src/BryntumHint.tsx +1125 -0
  355. package/src/BryntumLabel.tsx +720 -0
  356. package/src/BryntumList.tsx +891 -0
  357. package/src/BryntumMenu.tsx +1143 -0
  358. package/src/BryntumModelCombo.tsx +1230 -0
  359. package/src/BryntumMonthPicker.tsx +1056 -0
  360. package/src/BryntumNumberField.tsx +1025 -0
  361. package/src/BryntumPagingToolbar.tsx +924 -0
  362. package/src/BryntumPanel.tsx +1035 -0
  363. package/src/BryntumPasswordField.tsx +969 -0
  364. package/src/BryntumProjectCombo.tsx +1232 -0
  365. package/src/BryntumRadio.tsx +1000 -0
  366. package/src/BryntumRadioGroup.tsx +1088 -0
  367. package/src/BryntumRateTableField.tsx +1230 -0
  368. package/src/BryntumResourceCombo.tsx +1235 -0
  369. package/src/BryntumResourceEditor.tsx +1130 -0
  370. package/src/BryntumResourceFilter.tsx +930 -0
  371. package/src/BryntumResourceGrid.tsx +2344 -0
  372. package/src/BryntumResourceHistogram.tsx +3684 -0
  373. package/src/BryntumResourceTypeField.tsx +1230 -0
  374. package/src/BryntumResourceUtilization.tsx +3699 -0
  375. package/src/BryntumScheduler.tsx +5183 -0
  376. package/src/BryntumSchedulerBase.tsx +5181 -0
  377. package/src/BryntumSchedulerDatePicker.tsx +1364 -0
  378. package/src/BryntumSchedulerPro.tsx +5711 -0
  379. package/src/BryntumSchedulerProBase.tsx +5709 -0
  380. package/src/BryntumSchedulingDirectionPicker.tsx +1230 -0
  381. package/src/BryntumSchedulingModePicker.tsx +1238 -0
  382. package/src/BryntumSlideToggle.tsx +1000 -0
  383. package/src/BryntumSlider.tsx +815 -0
  384. package/src/BryntumSplitter.tsx +754 -0
  385. package/src/BryntumStartDateField.tsx +1083 -0
  386. package/src/BryntumTabPanel.tsx +1087 -0
  387. package/src/BryntumTextAreaField.tsx +981 -0
  388. package/src/BryntumTextAreaPickerField.tsx +1002 -0
  389. package/src/BryntumTextField.tsx +987 -0
  390. package/src/BryntumThemeCombo.tsx +101 -0
  391. package/src/BryntumTimeField.tsx +1036 -0
  392. package/src/BryntumTimePicker.tsx +893 -0
  393. package/src/BryntumTimeline.tsx +5064 -0
  394. package/src/BryntumTimelineHistogram.tsx +3425 -0
  395. package/src/BryntumToolbar.tsx +917 -0
  396. package/src/BryntumTreeCombo.tsx +1230 -0
  397. package/src/BryntumTreeGrid.tsx +2401 -0
  398. package/src/BryntumUndoRedo.tsx +885 -0
  399. package/src/BryntumVersionGrid.tsx +2379 -0
  400. package/src/BryntumViewPresetCombo.tsx +914 -0
  401. package/src/BryntumWidget.tsx +715 -0
  402. package/src/BryntumYearPicker.tsx +1070 -0
  403. package/src/WrapperHelper.tsx +1125 -0
  404. package/src/index.ts +103 -0
@@ -0,0 +1,1144 @@
1
+ /**
2
+ * React wrapper for Bryntum ProjectModel
3
+ */
4
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
5
+ import React, { RefObject } from 'react';
6
+ import { AbstractCrudManager, AssignmentModel, AssignmentModelConfig, AssignmentStore, AssignmentStoreConfig, Base, CalendarManagerStore, CalendarManagerStoreConfig, CalendarModel, CalendarModelConfig, CoreStateTrackingManager, CrudManagerRequestResponse, CrudManagerStoreDescriptor, DependencyModel, DependencyModelConfig, DependencyStore, DependencyStoreConfig, DurationUnit, EventSegmentModel, LazyLoadCrudManagerRequestParams, Model, ModelConfig, ProjectModel, ProjectModelListeners, ResourceModel, ResourceModelConfig, ResourceStore, ResourceStoreConfig, StateTrackingManagerConfig, Store, StoreConfig, TaskModel, TaskModelConfig, TaskStore, TaskStoreConfig, TimeRangeModel, TimeRangeModelConfig, TimeRangeStore, TimeRangeStoreConfig, TimeSpan, TimeSpanConfig } from '@bryntum/gantt';
7
+
8
+ import { createWidget, shouldComponentUpdate, processWidgetContent } from './WrapperHelper.js';
9
+
10
+ export type BryntumGanttProjectModelProps = {
11
+ // Configs
12
+ /**
13
+ * If this flag is set to `true` (default) when a start/end date is set on the event, a corresponding
14
+ * `start-no-earlier/later-than` constraint is added, automatically. This is done in order to
15
+ * keep the event "attached" to this date, according to the user intention.
16
+ * ...
17
+ * [View online docs...](https://bryntum.com/products/gantt/docs/api/Gantt/model/ProjectModel#config-addConstraintOnDateSet)
18
+ */
19
+ addConstraintOnDateSet? : boolean
20
+ /**
21
+ * This config manages DST correction in the scheduling engine. It only has effect when DST transition hour is
22
+ * working time. Usually DST transition occurs on Sunday, so with non working weekends the DST correction logic
23
+ * is not involved.
24
+ * ...
25
+ * [View online docs...](https://bryntum.com/products/gantt/docs/api/Gantt/model/ProjectModel#config-adjustDurationToDST)
26
+ */
27
+ adjustDurationToDST? : boolean
28
+ /**
29
+ * If this field is set to `true` scheduling conflicts
30
+ * will include an additional resolution option to "postpone" the conflict resolution.
31
+ * The conflict then is stored in the task
32
+ * [postponedConflict](https://bryntum.com/products/gantt/docs/api/Gantt/model/TaskModel#field-postponedConflict) field
33
+ * and can be visualized with the [TaskInfoColumn](https://bryntum.com/products/gantt/docs/api/Gantt/column/TaskInfoColumn).
34
+ * ...
35
+ * [View online docs...](https://bryntum.com/products/gantt/docs/api/Gantt/model/ProjectModel#config-allowPostponedConflicts)
36
+ */
37
+ allowPostponedConflicts? : boolean
38
+ /**
39
+ * The constructor of the assignment model class, to be used in the project. Will be set as the [modelClass](https://bryntum.com/products/gantt/docs/api/Core/data/Store#config-modelClass)
40
+ * property of the [assignmentStore](https://bryntum.com/products/gantt/docs/api/Gantt/model/ProjectModel#property-assignmentStore)
41
+ */
42
+ assignmentModelClass? : typeof AssignmentModel
43
+ /**
44
+ * Data use to fill the [assignmentStore](https://bryntum.com/products/gantt/docs/api/Gantt/model/ProjectModel#property-assignmentStore). Should be an array of
45
+ * [AssignmentModels](https://bryntum.com/products/gantt/docs/api/Gantt/model/AssignmentModel) or its configuration objects.
46
+ */
47
+ assignments? : AssignmentModel[]|AssignmentModelConfig[]
48
+ /**
49
+ * The initial data, to fill the [assignmentStore](https://bryntum.com/products/gantt/docs/api/Gantt/model/ProjectModel#property-assignmentStore) with.
50
+ * Should be an array of [AssignmentModels](https://bryntum.com/products/gantt/docs/api/Gantt/model/AssignmentModel) or configuration objects.
51
+ * @deprecated 6.3.0 Use [assignments](https://bryntum.com/products/gantt/docs/api/Gantt/model/ProjectModel#config-assignments) instead
52
+ */
53
+ assignmentsData? : AssignmentModelConfig[]|AssignmentModel[]
54
+ /**
55
+ * An [AssignmentStore](https://bryntum.com/products/gantt/docs/api/Gantt/data/AssignmentStore) instance or a config object.
56
+ */
57
+ assignmentStore? : AssignmentStore|AssignmentStoreConfig
58
+ /**
59
+ * The constructor to create a dependency store instance with. Should be a class, subclassing the [AssignmentStore](https://bryntum.com/products/gantt/docs/api/Gantt/data/AssignmentStore)
60
+ */
61
+ assignmentStoreClass? : typeof AssignmentStore
62
+ /**
63
+ * `true` to enable automatic [% done](https://bryntum.com/products/gantt/docs/api/Gantt/model/TaskModel#field-percentDone) calculation for summary
64
+ * tasks, `false` to disable it.
65
+ */
66
+ autoCalculatePercentDoneForParentTasks? : boolean
67
+ /**
68
+ * Specify `true` to automatically call [load](https://bryntum.com/products/gantt/docs/api/Scheduler/crud/AbstractCrudManagerMixin#function-load) method on the next frame after creation.
69
+ * ...
70
+ * [View online docs...](https://bryntum.com/products/gantt/docs/api/Gantt/model/ProjectModel#config-autoLoad)
71
+ */
72
+ autoLoad? : boolean
73
+ /**
74
+ * When `true` (default) adjacent or overlapping task segments get merged automatically.
75
+ */
76
+ autoMergeAdjacentSegments? : boolean
77
+ /**
78
+ * If this field is set to `true` scheduling conflicts
79
+ * will not show the conflict resolution popup but instead will be saved into
80
+ * tasks [postponedConflict](https://bryntum.com/products/gantt/docs/api/Gantt/model/TaskModel#field-postponedConflict) field.
81
+ * ...
82
+ * [View online docs...](https://bryntum.com/products/gantt/docs/api/Gantt/model/ProjectModel#config-autoPostponeConflicts)
83
+ */
84
+ autoPostponeConflicts? : boolean
85
+ /**
86
+ * If this field is set to `true` scheduling conflicts
87
+ * will not show the conflict resolution popup but instead will be saved into
88
+ * tasks [postponedConflict](https://bryntum.com/products/gantt/docs/api/Gantt/model/TaskModel#field-postponedConflict) field.
89
+ * @deprecated Please use [autoPostponeConflicts](https://bryntum.com/products/gantt/docs/api/Gantt/model/ProjectModel#field-autoPostponeConflicts) field name.
90
+ */
91
+ autoPostponedConflicts? : boolean
92
+ /**
93
+ * When this flag is enabled (default), manually scheduled tasks are scheduled automatically on the 2nd scheduling pass.
94
+ * This is a backward pass ("late" start/end dates) for forward-scheduled project and forward pass
95
+ * ("early" start/end dates) for backward-scheduled project. Because of it, manually scheduled tasks
96
+ * may have non-zero slack.
97
+ * ...
98
+ * [View online docs...](https://bryntum.com/products/gantt/docs/api/Gantt/model/ProjectModel#config-autoScheduleManualTasksOnSecondPass)
99
+ */
100
+ autoScheduleManualTasksOnSecondPass? : boolean
101
+ /**
102
+ * When set to `true`, pins a task at its starting date. Otherwise, it is rescheduled to the
103
+ * project's starting date if there is no predecessor or constraint supplied.
104
+ * ...
105
+ * [View online docs...](https://bryntum.com/products/gantt/docs/api/Gantt/model/ProjectModel#config-autoSetConstraints)
106
+ */
107
+ autoSetConstraints? : boolean
108
+ /**
109
+ * `true` to automatically persist store changes after edits are made in any of the stores monitored.
110
+ * Please note that sync request will not be invoked immediately but only after
111
+ * [autoSyncTimeout](https://bryntum.com/products/gantt/docs/api/Scheduler/crud/AbstractCrudManagerMixin#config-autoSyncTimeout) interval.
112
+ */
113
+ autoSync? : boolean
114
+ /**
115
+ * The timeout in milliseconds to wait before persisting changes to the server.
116
+ * Used when [autoSync](https://bryntum.com/products/gantt/docs/api/Scheduler/crud/AbstractCrudManagerMixin#config-autoSync) is set to `true`.
117
+ */
118
+ autoSyncTimeout? : number
119
+ /**
120
+ * An object where property names with a truthy value indicate which events should bubble up the ownership
121
+ * hierarchy when triggered.
122
+ * ...
123
+ * [View online docs...](https://bryntum.com/products/gantt/docs/api/Gantt/model/ProjectModel#config-bubbleEvents)
124
+ */
125
+ bubbleEvents? : object
126
+ /**
127
+ * Enables backward compatible conflicts postponing logic
128
+ * covering only conflicts between a task constraint and its incoming dependencies.
129
+ * @deprecated The flag is added as a temporary solution and is going to be removed in a next release. Please contact us if you need that old behavior.
130
+ */
131
+ bwcConflictPostpone? : boolean
132
+ /**
133
+ * The project calendar.
134
+ */
135
+ calendar? : string|CalendarModelConfig|CalendarModel
136
+ /**
137
+ * A [CalendarManagerStore](https://bryntum.com/products/gantt/docs/api/Gantt/data/CalendarManagerStore) instance or a config object.
138
+ */
139
+ calendarManagerStore? : CalendarManagerStore|CalendarManagerStoreConfig
140
+ /**
141
+ * The constructor to create a calendar store instance with. Should be a class, subclassing the [CalendarManagerStore](https://bryntum.com/products/gantt/docs/api/Gantt/data/CalendarManagerStore)
142
+ */
143
+ calendarManagerStoreClass? : typeof CalendarManagerStore
144
+ /**
145
+ * The constructor of the calendar model class, to be used in the project. Will be set as the [modelClass](https://bryntum.com/products/gantt/docs/api/Core/data/Store#config-modelClass)
146
+ * property of the [calendarManagerStore](https://bryntum.com/products/gantt/docs/api/Gantt/model/ProjectModel#property-calendarManagerStore)
147
+ */
148
+ calendarModelClass? : typeof CalendarModel
149
+ /**
150
+ * Data use to fill the [calendarManagerStore](https://bryntum.com/products/gantt/docs/api/Gantt/model/ProjectModel#property-calendarManagerStore). Should be a
151
+ * [CalendarModel](https://bryntum.com/products/gantt/docs/api/Gantt/model/CalendarModel) array or its configuration objects.
152
+ */
153
+ calendars? : CalendarModel[]|CalendarModelConfig[]
154
+ /**
155
+ * The initial data, to fill the [calendarManagerStore](https://bryntum.com/products/gantt/docs/api/Gantt/model/ProjectModel#property-calendarManagerStore) with.
156
+ * Should be an array of [CalendarModels](https://bryntum.com/products/gantt/docs/api/Gantt/model/CalendarModel) or configuration objects.
157
+ * @deprecated 6.3.0 Use [calendars](https://bryntum.com/products/gantt/docs/api/Gantt/model/ProjectModel#config-calendars) instead
158
+ */
159
+ calendarsData? : CalendarModelConfig[]|CalendarModel[]
160
+ /**
161
+ * Set to `true` to call onXXX method names (e.g. `onShow`, `onClick`), as an easy way to listen for events.
162
+ * ...
163
+ * [View online docs...](https://bryntum.com/products/gantt/docs/api/Gantt/model/ProjectModel#config-callOnFunctions)
164
+ */
165
+ callOnFunctions? : boolean
166
+ /**
167
+ * By default, if an event handler throws an exception, the error propagates up the stack and the
168
+ * application state is undefined. Code which follows the event handler will *not* be executed.
169
+ * ...
170
+ * [View online docs...](https://bryntum.com/products/gantt/docs/api/Gantt/model/ProjectModel#config-catchEventHandlerExceptions)
171
+ */
172
+ catchEventHandlerExceptions? : boolean
173
+ /**
174
+ * Child nodes. To allow loading children on demand, specify `children : true` in your data. Omit the field for leaf
175
+ * tasks.
176
+ * ...
177
+ * [View online docs...](https://bryntum.com/products/gantt/docs/api/Gantt/model/ProjectModel#config-children)
178
+ */
179
+ children? : boolean|object[]|Model[]|ModelConfig[]
180
+ /**
181
+ * Sets the list of stores controlled by the CRUD manager.
182
+ * ...
183
+ * [View online docs...](https://bryntum.com/products/gantt/docs/api/Gantt/model/ProjectModel#config-crudStores)
184
+ */
185
+ crudStores? : Store[]|string[]|CrudManagerStoreDescriptor[]|StoreConfig[]
186
+ /**
187
+ * The number of days per month.
188
+ * ...
189
+ * [View online docs...](https://bryntum.com/products/gantt/docs/api/Gantt/model/ProjectModel#config-daysPerMonth)
190
+ */
191
+ daysPerMonth? : number
192
+ /**
193
+ * The number of days per week.
194
+ * ...
195
+ * [View online docs...](https://bryntum.com/products/gantt/docs/api/Gantt/model/ProjectModel#config-daysPerWeek)
196
+ */
197
+ daysPerWeek? : number
198
+ /**
199
+ * Enables early rendering in Gantt, by postponing calculations to after the first refresh.
200
+ * ...
201
+ * [View online docs...](https://bryntum.com/products/gantt/docs/api/Gantt/model/ProjectModel#config-delayCalculation)
202
+ */
203
+ delayCalculation? : boolean
204
+ /**
205
+ * Data use to fill the [dependencyStore](https://bryntum.com/products/gantt/docs/api/Gantt/model/ProjectModel#property-dependencyStore). Should be an array of
206
+ * [DependencyModels](https://bryntum.com/products/gantt/docs/api/Gantt/model/DependencyModel) or its configuration objects.
207
+ */
208
+ dependencies? : DependencyModel[]|DependencyModelConfig[]
209
+ /**
210
+ * The source of the calendar for dependencies (the calendar used for taking dependencies lag into account).
211
+ * Possible values are:
212
+ * ...
213
+ * [View online docs...](https://bryntum.com/products/gantt/docs/api/Gantt/model/ProjectModel#config-dependenciesCalendar)
214
+ */
215
+ dependenciesCalendar? : 'ToEvent'|'FromEvent'|'Project'|'AllWorking'
216
+ /**
217
+ * The initial data, to fill the [dependencyStore](https://bryntum.com/products/gantt/docs/api/Gantt/model/ProjectModel#property-dependencyStore) with.
218
+ * Should be an array of [DependencyModels](https://bryntum.com/products/gantt/docs/api/Gantt/model/DependencyModel) or configuration objects.
219
+ * @deprecated 6.3.0 Use [dependencies](https://bryntum.com/products/gantt/docs/api/Gantt/model/ProjectModel#config-dependencies) instead
220
+ */
221
+ dependenciesData? : DependencyModelConfig[]|DependencyModel[]
222
+ /**
223
+ * The constructor of the dependency model class, to be used in the project. Will be set as the [modelClass](https://bryntum.com/products/gantt/docs/api/Core/data/Store#config-modelClass)
224
+ * property of the [dependencyStore](https://bryntum.com/products/gantt/docs/api/Gantt/model/ProjectModel#property-dependencyStore)
225
+ */
226
+ dependencyModelClass? : typeof DependencyModel
227
+ /**
228
+ * A [DependencyStore](https://bryntum.com/products/gantt/docs/api/Gantt/data/DependencyStore) instance or a config object.
229
+ */
230
+ dependencyStore? : DependencyStore|DependencyStoreConfig
231
+ /**
232
+ * The constructor to create a dependency store instance with. Should be a class, subclassing the [DependencyStore](https://bryntum.com/products/gantt/docs/api/Gantt/data/DependencyStore)
233
+ */
234
+ dependencyStoreClass? : typeof DependencyStore
235
+ /**
236
+ * Description of the project
237
+ */
238
+ description? : string
239
+ /**
240
+ * The scheduling direction of the project tasks.
241
+ * The `Forward` direction corresponds to the As-Soon-As-Possible (ASAP) scheduling,
242
+ * `Backward` - to As-Late-As-Possible (ALAP).
243
+ * ...
244
+ * [View online docs...](https://bryntum.com/products/gantt/docs/api/Gantt/model/ProjectModel#config-direction)
245
+ */
246
+ direction? : 'Forward'|'Backward'
247
+ /**
248
+ * Set to `true` to enable calculation progress notifications.
249
+ * When enabled, the project fires [progress](https://bryntum.com/products/gantt/docs/api/Gantt/model/ProjectModel#event-progress) events and the Gantt chart load mask reacts by showing a progress bar for the Engine calculations.
250
+ * ...
251
+ * [View online docs...](https://bryntum.com/products/gantt/docs/api/Gantt/model/ProjectModel#config-enableProgressNotifications)
252
+ */
253
+ enableProgressNotifications? : boolean
254
+ /**
255
+ * Configuration of the JSON encoder used by the *Crud Manager*.
256
+ */
257
+ encoder? : {
258
+ requestData?: object
259
+ }
260
+ /**
261
+ * End date of the project in the ISO 8601 format.
262
+ * The value is calculated as the latest date among all tasks.
263
+ * ...
264
+ * [View online docs...](https://bryntum.com/products/gantt/docs/api/Gantt/model/ProjectModel#config-endDate)
265
+ */
266
+ endDate? : string|Date
267
+ /**
268
+ * Alias to [tasksData](https://bryntum.com/products/gantt/docs/api/Gantt/model/ProjectModel#config-tasksData).
269
+ * @deprecated 6.3.0 Use [tasks](https://bryntum.com/products/gantt/docs/api/Gantt/model/ProjectModel#config-tasks) instead
270
+ */
271
+ eventsData? : TaskModelConfig[]|TaskModel[]
272
+ /**
273
+ * A [TaskStore](https://bryntum.com/products/gantt/docs/api/Gantt/data/TaskStore) instance or a config object.
274
+ */
275
+ eventStore? : TaskStore|TaskStoreConfig
276
+ /**
277
+ * Start expanded or not (only valid for tree data)
278
+ */
279
+ expanded? : boolean
280
+ /**
281
+ * Specify as `true` to force sync requests to be sent when calling `sync()`, even if there are no local
282
+ * changes. Useful in a polling scenario, to keep client up to date with the backend.
283
+ */
284
+ forceSync? : boolean
285
+ /**
286
+ * The number of hours per day.
287
+ * ...
288
+ * [View online docs...](https://bryntum.com/products/gantt/docs/api/Gantt/model/ProjectModel#config-hoursPerDay)
289
+ */
290
+ hoursPerDay? : number
291
+ /**
292
+ * Unique identifier for the record. Might be mapped to another dataSource using idField, but always exposed as
293
+ * record.id. Will get a generated value if none is specified in records data.
294
+ * ...
295
+ * [View online docs...](https://bryntum.com/products/gantt/docs/api/Gantt/model/ProjectModel#config-id)
296
+ */
297
+ id? : string|number
298
+ /**
299
+ * <strong>This option is experimental and subject for possible change</strong>.
300
+ * ...
301
+ * [View online docs...](https://bryntum.com/products/gantt/docs/api/Gantt/model/ProjectModel#config-ignoreConstraintsOnConflictDuringSecondPass)
302
+ * @deprecated The option is no longer needed since the code now by default ignores conflicts faced on the second pass.
303
+ */
304
+ ignoreConstraintsOnConflictDuringSecondPass? : boolean
305
+ /**
306
+ * Set to `true` to make STM ignore changes coming from the backend. This will allow user to only undo redo
307
+ * local changes.
308
+ */
309
+ ignoreRemoteChangesInSTM? : boolean
310
+ /**
311
+ * Whether to include "As soon as possible" and "As late as possible" in the list of the constraints,
312
+ * for compatibility with the MS Project. Enabled by default.
313
+ * ...
314
+ * [View online docs...](https://bryntum.com/products/gantt/docs/api/Gantt/model/ProjectModel#config-includeAsapAlapAsConstraints)
315
+ */
316
+ includeAsapAlapAsConstraints? : boolean
317
+ /**
318
+ * Set to `false` to only include the id of a removed parent node in the request to the backend (also
319
+ * affects programmatic calls to get [changes](https://bryntum.com/products/gantt/docs/api/Scheduler/crud/AbstractCrudManagerMixin#property-changes) etc.), and not the ids of its children.
320
+ * ...
321
+ * [View online docs...](https://bryntum.com/products/gantt/docs/api/Gantt/model/ProjectModel#config-includeChildrenInRemoveRequest)
322
+ */
323
+ includeChildrenInRemoveRequest? : boolean
324
+ /**
325
+ * Whether to include legacy data properties in the JSON / inlineData output. The legacy data properties are
326
+ * the `xxData` (`eventsData`, `resourcesData` etc.) properties that are deprecated and will be removed in
327
+ * the future.
328
+ * @deprecated 6.3.0 This config will be removed when the eventsData, resourcesData etc. properties are removed in a future release.
329
+ */
330
+ includeLegacyDataProperties? : boolean
331
+ /**
332
+ * This field is added to the class at runtime when the Store is configured with
333
+ * [lazyLoad](https://bryntum.com/products/gantt/docs/api/Core/data/Store#config-lazyLoad). If set on a parent record at load time, that parent will not cause any
334
+ * more child load requests. If omitted, it will be automatically set to `true` when a load request receives fewer
335
+ * child records than requested.
336
+ * ...
337
+ * [View online docs...](https://bryntum.com/products/gantt/docs/api/Gantt/model/ProjectModel#config-isFullyLoaded)
338
+ */
339
+ isFullyLoaded? : boolean
340
+ /**
341
+ * Project data as a JSON string, used to populate its stores.
342
+ * ...
343
+ * [View online docs...](https://bryntum.com/products/gantt/docs/api/Gantt/model/ProjectModel#config-json)
344
+ */
345
+ json? : string
346
+ /**
347
+ * If set to `true`, or a config object, this makes the CrudManager load records only when needed. When a record
348
+ * or a date range that is not already loaded is requested, a load request will be made to the specified URL.
349
+ * More more details about lazy loading, see the [guide](https://bryntum.com/products/gantt/docs/api/Grid/guides/data/lazyloading.md)
350
+ * @param {object} lazyLoad Lazy load config
351
+ * @param {number} lazyLoad.chunkSize The number of records to be loaded before and after the requested index (only affects the ResourceStore).
352
+ * @param {DurationUnit} bufferUnit Used together with bufferAmount to calculate the start and end dates of each load request. The value is added to the current visible start or end date. Defaults to the visible time span length (does not affect ResourceStore).
353
+ * @param {number} bufferAmount See `bufferUnit`
354
+ */
355
+ lazyLoad? : boolean|{lazyLoad: { chunkSize: number }, bufferUnit: DurationUnit, bufferAmount: number}
356
+ /**
357
+ * The listener set for this object.
358
+ * ...
359
+ * [View online docs...](https://bryntum.com/products/gantt/docs/api/Gantt/model/ProjectModel#config-listeners)
360
+ */
361
+ listeners? : ProjectModelListeners
362
+ /**
363
+ * Convenience shortcut to set only the url to load from, when you do not need to supply any other config
364
+ * options in the `load` section of the `transport` config.
365
+ * ...
366
+ * [View online docs...](https://bryntum.com/products/gantt/docs/api/Gantt/model/ProjectModel#config-loadUrl)
367
+ */
368
+ loadUrl? : string
369
+ /**
370
+ * Maximum range the project calendars can iterate.
371
+ * The value is defined in milliseconds and by default equals `5 years` roughly.
372
+ * ...
373
+ * [View online docs...](https://bryntum.com/products/gantt/docs/api/Gantt/model/ProjectModel#config-maxCalendarRange)
374
+ */
375
+ maxCalendarRange? : number
376
+ /**
377
+ * The maximum number of *critical paths* to collect in [criticalPaths](https://bryntum.com/products/gantt/docs/api/Gantt/model/ProjectModel#property-criticalPaths).
378
+ * When critical tasks connectivity is high (there are many of such tasks having many
379
+ * critical predecessors) the tasks might produce a huge number of critical paths which
380
+ * can't really be handled by a browser.
381
+ * So this value limits the number of paths to collect to protect from such cases.
382
+ * ...
383
+ * [View online docs...](https://bryntum.com/products/gantt/docs/api/Gantt/model/ProjectModel#config-maxCriticalPathsCount)
384
+ */
385
+ maxCriticalPathsCount? : number
386
+ /**
387
+ * Name of the project
388
+ */
389
+ name? : string
390
+ /**
391
+ * This is a read-only field provided in server synchronization packets to specify
392
+ * which position the node takes in the parent's ordered children array.
393
+ * This index is set on load and gets updated on reordering nodes in tree. Sorting and filtering
394
+ * have no effect on it.
395
+ */
396
+ orderedParentIndex? : number
397
+ /**
398
+ * The number of Resource records each page should contain, when using [remotePaging](https://bryntum.com/products/gantt/docs/api/Scheduler/crud/mixin/LazyLoadCrudManager#config-remotePaging)
399
+ */
400
+ pageSize? : number
401
+ /**
402
+ * This is a read-only field provided in server synchronization packets to specify
403
+ * which record id is the parent of the record.
404
+ */
405
+ parentId? : string|number|null
406
+ /**
407
+ * This is a read-only field provided in server synchronization packets to specify
408
+ * which position the node takes in the parent's children array.
409
+ * This index is set on load and gets updated automatically after row reordering, sorting, etc.
410
+ * To save the order, need to persist the field on the server and when data is fetched to be loaded,
411
+ * need to sort by this field.
412
+ */
413
+ parentIndex? : number
414
+ /**
415
+ * Field name to be used to transfer a phantom record identifier.
416
+ */
417
+ phantomIdField? : string
418
+ /**
419
+ * Field name to be used to transfer a phantom parent record identifier.
420
+ */
421
+ phantomParentIdField? : string
422
+ /**
423
+ * Flag the record as read-only on the UI level, preventing the end user from manipulating it using editing
424
+ * features such as cell editing and event dragging.
425
+ * ...
426
+ * [View online docs...](https://bryntum.com/products/gantt/docs/api/Gantt/model/ProjectModel#config-readOnly)
427
+ */
428
+ readOnly? : boolean
429
+ /**
430
+ * This field is added to the class at runtime when the Store is configured with
431
+ * [lazyLoad](https://bryntum.com/products/gantt/docs/api/Core/data/Store#config-lazyLoad). The
432
+ * number specified should reflect the <strong>total</strong> amount of children of a parent node, including nested descendants.
433
+ * @deprecated This field has been deprecated. Please read the [guide](https://bryntum.com/products/gantt/docs/api/Grid/guides/data/lazyloading.md) to find out if your app needs to use the new [isFullyLoaded](https://bryntum.com/products/gantt/docs/api/Core/data/mixin/TreeNode#field-isFullyLoaded) field.
434
+ */
435
+ remoteChildCount? : number
436
+ /**
437
+ * If set to `true`, this makes the CrudManager load pages of data, instead of loading the complete dataset at
438
+ * once. The requests made to the [loadUrl](https://bryntum.com/products/gantt/docs/api/Scheduler/crud/AbstractCrudManagerMixin#config-loadUrl) will contain
439
+ * params with info about the current dataset being requested:
440
+ * ...
441
+ * [View online docs...](https://bryntum.com/products/gantt/docs/api/Gantt/model/ProjectModel#config-remotePaging)
442
+ */
443
+ remotePaging? : boolean
444
+ /**
445
+ * When the CrudManager/Project is configured with [lazyLoad](https://bryntum.com/products/gantt/docs/api/Scheduler/crud/mixin/LazyLoadCrudManager#config-lazyLoad) set to `true`, you can configure
446
+ * your own data fetching logic by implementing this function. Doing this will override the built-in fetching
447
+ * mechanism using the [loadUrl](https://bryntum.com/products/gantt/docs/api/Scheduler/data/CrudManager#config-loadUrl).
448
+ * ...
449
+ * [View online docs...](https://bryntum.com/products/gantt/docs/api/Gantt/model/ProjectModel#config-requestData)
450
+ * @param {LazyLoadCrudManagerRequestParams} params Object containing info of what data is requested
451
+ * @returns {CrudManagerRequestResponse}
452
+ */
453
+ requestData? : (params: LazyLoadCrudManagerRequestParams) => Promise<CrudManagerRequestResponse>
454
+ /**
455
+ * `True` to reset identifiers (defined by `idField` config) of phantom records before submitting them
456
+ * to the server.
457
+ */
458
+ resetIdsBeforeSync? : boolean
459
+ /**
460
+ * Set to `true` to reset the undo/redo queues of the internal [StateTrackingManager](https://bryntum.com/products/gantt/docs/api/Core/data/stm/StateTrackingManager)
461
+ * after the Project has loaded. Defaults to `false`
462
+ */
463
+ resetUndoRedoQueuesAfterLoad? : boolean
464
+ /**
465
+ * The constructor of the resource model class, to be used in the project. Will be set as the [modelClass](https://bryntum.com/products/gantt/docs/api/Core/data/Store#config-modelClass)
466
+ * property of the [resourceStore](https://bryntum.com/products/gantt/docs/api/Gantt/model/ProjectModel#property-resourceStore)
467
+ */
468
+ resourceModelClass? : typeof ResourceModel
469
+ /**
470
+ * Data use to fill the [resourceStore](https://bryntum.com/products/gantt/docs/api/Gantt/model/ProjectModel#property-resourceStore). Should be an array of
471
+ * [ResourceModels](https://bryntum.com/products/gantt/docs/api/Gantt/model/ResourceModel) or its configuration objects.
472
+ */
473
+ resources? : ResourceModel[]|ResourceModelConfig[]
474
+ /**
475
+ * The initial data, to fill the [resourceStore](https://bryntum.com/products/gantt/docs/api/Gantt/model/ProjectModel#property-resourceStore) with.
476
+ * Should be an array of [ResourceModels](https://bryntum.com/products/gantt/docs/api/Gantt/model/ResourceModel) or configuration objects.
477
+ * @deprecated 6.3.0 Use [resources](https://bryntum.com/products/gantt/docs/api/Gantt/model/ProjectModel#config-resources) instead
478
+ */
479
+ resourcesData? : ResourceModelConfig[]|ResourceModel[]
480
+ /**
481
+ * A [ResourceStore](https://bryntum.com/products/gantt/docs/api/Gantt/data/ResourceStore) instance or a config object.
482
+ */
483
+ resourceStore? : ResourceStore|ResourceStoreConfig
484
+ /**
485
+ * The constructor to create a dependency store instance with. Should be a class, subclassing the [ResourceStore](https://bryntum.com/products/gantt/docs/api/Gantt/data/ResourceStore)
486
+ */
487
+ resourceStoreClass? : typeof ResourceStore
488
+ /**
489
+ * Experimental hook that lets the app determine if a bound dataset needs syncing with the store or not, and
490
+ * if it does - which records that should be processed. Only called for stores that are configured with
491
+ * `syncDataOnLoad: true` (which is the default in the React, Angular and Vue wrappers).
492
+ * ...
493
+ * [View online docs...](https://bryntum.com/products/gantt/docs/api/Gantt/model/ProjectModel#config-shouldSyncDataOnLoad)
494
+ * @param {object} options Options passed by the store to this hook
495
+ * @param {Core.data.Store} options.store Store about to be synced
496
+ * @param {Core.data.Model} options.records Records currently in the store
497
+ * @param {object[]} options.data Incoming data
498
+ * @returns {Set<any>,boolean} Return `false` to prevent the store from syncing, or a set of record ids that need further processing (for records that has some kind of change, eg. an update, removal or addition)
499
+ */
500
+ shouldSyncDataOnLoad? : (options: { store: Store, records: Model, data: object[] }) => Set<any>|boolean
501
+ /**
502
+ * Silences propagations caused by the project loading.
503
+ * ...
504
+ * [View online docs...](https://bryntum.com/products/gantt/docs/api/Gantt/model/ProjectModel#config-silenceInitialCommit)
505
+ */
506
+ silenceInitialCommit? : boolean
507
+ /**
508
+ * When `true` the project's manually scheduled tasks duration will include only working periods of time.
509
+ * When `false` such tasks will ignore working time calendars and treat all intervals as working.
510
+ * ...
511
+ * [View online docs...](https://bryntum.com/products/gantt/docs/api/Gantt/model/ProjectModel#config-skipNonWorkingTimeInDurationWhenSchedulingManually)
512
+ */
513
+ skipNonWorkingTimeInDurationWhenSchedulingManually? : boolean
514
+ /**
515
+ * When `true` the project manually scheduled tasks will adjust their proposed start/end dates
516
+ * to skip non working time.
517
+ * ...
518
+ * [View online docs...](https://bryntum.com/products/gantt/docs/api/Gantt/model/ProjectModel#config-skipNonWorkingTimeWhenSchedulingManually)
519
+ */
520
+ skipNonWorkingTimeWhenSchedulingManually? : boolean
521
+ /**
522
+ * When `true` treats parsed responses without `success` property as successful.
523
+ * In this mode a parsed response is treated as invalid if it has explicitly set `success : false`.
524
+ */
525
+ skipSuccessProperty? : boolean
526
+ /**
527
+ * Start date of the project in the ISO 8601 format. Setting this date will constrain all other tasks in the
528
+ * project to start no earlier than it.
529
+ * ...
530
+ * [View online docs...](https://bryntum.com/products/gantt/docs/api/Gantt/model/ProjectModel#config-startDate)
531
+ */
532
+ startDate? : string|Date
533
+ /**
534
+ * Specifies how started tasks are scheduled. Possible values are:
535
+ * ...
536
+ * [View online docs...](https://bryntum.com/products/gantt/docs/api/Gantt/model/ProjectModel#config-startedTaskScheduling)
537
+ */
538
+ startedTaskScheduling? : string
539
+ /**
540
+ * The status date of the project. It is just a date, that sets a reference point to various reporting facilities,
541
+ * like [ProgressLine](https://bryntum.com/products/gantt/docs/api/Gantt/feature/ProgressLine) or [PlannedPercentDoneColumn](#Gantt/column/PlannedPercentDoneColumn).
542
+ * ...
543
+ * [View online docs...](https://bryntum.com/products/gantt/docs/api/Gantt/model/ProjectModel#config-statusDate)
544
+ */
545
+ statusDate? : Date
546
+ /**
547
+ * Configuration options to provide to the STM manager
548
+ */
549
+ stm? : StateTrackingManagerConfig|CoreStateTrackingManager
550
+ /**
551
+ * Name of a store property to retrieve store identifiers from. Make sure you have an instance of a
552
+ * store to use it by id. Store identifier is used as a container name holding corresponding store data
553
+ * while transferring them to/from the server. By default, `id` property is used. And in case a
554
+ * container identifier has to differ this config can be used:
555
+ * ...
556
+ * [View online docs...](https://bryntum.com/products/gantt/docs/api/Gantt/model/ProjectModel#config-storeIdProperty)
557
+ */
558
+ storeIdProperty? : string
559
+ /**
560
+ * When `true` the Crud Manager does not require all updated and removed records to be mentioned in the
561
+ * *sync* response. In this case response should include only server side changes.
562
+ * ...
563
+ * [View online docs...](https://bryntum.com/products/gantt/docs/api/Gantt/model/ProjectModel#config-supportShortSyncResponse)
564
+ */
565
+ supportShortSyncResponse? : boolean
566
+ /**
567
+ * An array of store identifiers sets an alternative sync responses apply order.
568
+ * By default, the order in which sync responses are applied to the stores is the same as they
569
+ * registered in. But in case of some tricky dependencies between stores this order can be changed:
570
+ * ...
571
+ * [View online docs...](https://bryntum.com/products/gantt/docs/api/Gantt/model/ProjectModel#config-syncApplySequence)
572
+ */
573
+ syncApplySequence? : string[]|CrudManagerStoreDescriptor[]
574
+ /**
575
+ * Convenience shortcut to set only the url to sync to, when you do not need to supply any other config
576
+ * options in the `sync` section of the `transport` config.
577
+ * ...
578
+ * [View online docs...](https://bryntum.com/products/gantt/docs/api/Gantt/model/ProjectModel#config-syncUrl)
579
+ */
580
+ syncUrl? : string
581
+ /**
582
+ * The constructor of the event model class, to be used in the project. Will be set as the [modelClass](https://bryntum.com/products/gantt/docs/api/Core/data/Store#config-modelClass)
583
+ * property of the [eventStore](https://bryntum.com/products/gantt/docs/api/Gantt/model/ProjectModel#property-eventStore)
584
+ */
585
+ taskModelClass? : typeof TaskModel
586
+ /**
587
+ * Data use to fill the [taskStore](https://bryntum.com/products/gantt/docs/api/Gantt/model/ProjectModel#property-taskStore). Should be an array of
588
+ * [TaskModels](https://bryntum.com/products/gantt/docs/api/Gantt/model/TaskModel) or its configuration objects.
589
+ */
590
+ tasks? : TaskModel[]|TaskModelConfig[]
591
+ /**
592
+ * The initial data, to fill the [taskStore](https://bryntum.com/products/gantt/docs/api/Gantt/model/ProjectModel#property-taskStore) with.
593
+ * Should be an array of [TaskModels](https://bryntum.com/products/gantt/docs/api/Gantt/model/TaskModel) or configuration objects.
594
+ * @deprecated 6.3.0 Use [tasks](https://bryntum.com/products/gantt/docs/api/Gantt/model/ProjectModel#config-tasks) instead
595
+ */
596
+ tasksData? : TaskModelConfig[]|TaskModel[]
597
+ /**
598
+ * An alias for the [eventStore](https://bryntum.com/products/gantt/docs/api/Gantt/model/ProjectModel#config-eventStore).
599
+ */
600
+ taskStore? : TaskStore|TaskStoreConfig
601
+ /**
602
+ * The constructor to create an task store instance with. Should be a class, subclassing the [TaskStore](https://bryntum.com/products/gantt/docs/api/Gantt/data/TaskStore)
603
+ */
604
+ taskStoreClass? : typeof TaskStore
605
+ /**
606
+ * Data use to fill the [timeRangeStore](https://bryntum.com/products/gantt/docs/api/Gantt/model/ProjectModel#property-timeRangeStore). Should be an array of
607
+ * [TimeRangeModels](https://bryntum.com/products/gantt/docs/api/Scheduler/model/TimeRangeModel) or its configuration objects.
608
+ */
609
+ timeRanges? : TimeRangeModel[]|TimeRangeModelConfig[]
610
+ /**
611
+ * The initial data, to fill the [timeRangeStore](https://bryntum.com/products/gantt/docs/api/Gantt/model/ProjectModel#property-timeRangeStore) with.
612
+ * Should be an array of [TimeRangeModels](https://bryntum.com/products/gantt/docs/api/Scheduler/model/TimeRangeModel) or configuration objects.
613
+ * @deprecated 6.3.0 Use [timeRanges](https://bryntum.com/products/gantt/docs/api/Gantt/model/ProjectModel#config-timeRanges) instead
614
+ */
615
+ timeRangesData? : TimeSpanConfig[]|TimeSpan[]
616
+ /**
617
+ * Store that holds time ranges - instances of [TimeRangeModel](https://bryntum.com/products/gantt/docs/api/Scheduler/model/TimeRangeModel) for the
618
+ * [TimeRanges](https://bryntum.com/products/gantt/docs/api/Scheduler/feature/TimeRanges) feature. A store will be automatically created if none is specified.
619
+ */
620
+ timeRangeStore? : TimeRangeStoreConfig|TimeRangeStore
621
+ /**
622
+ * Set to a IANA time zone (i.e. `Europe/Stockholm`) or a UTC offset in minutes (i.e. `-120`). This will
623
+ * convert all events, tasks and time ranges to the specified time zone or offset. It will also affect the
624
+ * displayed timeline's headers as well at the start and end date of it.
625
+ * ...
626
+ * [View online docs...](https://bryntum.com/products/gantt/docs/api/Gantt/model/ProjectModel#config-timeZone)
627
+ */
628
+ timeZone? : string|number
629
+ /**
630
+ * Specifies the output format of [toJSON](https://bryntum.com/products/gantt/docs/api/Scheduler/model/mixin/ProjectModelCommon#function-toJSON).
631
+ * ...
632
+ * [View online docs...](https://bryntum.com/products/gantt/docs/api/Gantt/model/ProjectModel#config-toJSONResultFormat)
633
+ */
634
+ toJSONResultFormat? : 'inlineData'|'model'
635
+ /**
636
+ * If `true`, project [changes](https://bryntum.com/products/gantt/docs/api/SchedulerPro/data/mixin/ProjectCrudManager#property-changes) API will also report project model changes: start/end date,
637
+ * calendar, effort, duration, etc.
638
+ */
639
+ trackProjectModelChanges? : boolean
640
+ /**
641
+ * When `true` forces the CRUD manager to process responses depending on their `type` attribute.
642
+ * So `load` request may be responded with `sync` response for example.
643
+ * Can be used for smart server logic allowing the server to decide when it's better to respond with a
644
+ * complete data set (`load` response) or it's enough to return just a delta (`sync` response).
645
+ */
646
+ trackResponseType? : boolean
647
+ /**
648
+ * Configuration of the AJAX requests used by *Crud Manager* to communicate with a server-side.
649
+ * ...
650
+ * [View online docs...](https://bryntum.com/products/gantt/docs/api/Gantt/model/ProjectModel#config-transport)
651
+ */
652
+ transport? : {
653
+ load?: object
654
+ sync?: object
655
+ }
656
+ /**
657
+ * By default, the stores of a project use the raw data objects passed to them as the data source for their
658
+ * records if data is loaded remotely (using an `AjaxStore` or a `CrudManager`). For data supplied inline,
659
+ * the data objects are instead by default cloned to avoid the original data object being modified by the
660
+ * store.
661
+ * ...
662
+ * [View online docs...](https://bryntum.com/products/gantt/docs/api/Gantt/model/ProjectModel#config-useRawData)
663
+ */
664
+ useRawData? : boolean
665
+ /**
666
+ * This config validates the response structure for requests made by the Crud Manager.
667
+ * When `true`, the Crud Manager checks every parsed response structure for errors
668
+ * and if the response format is invalid, a warning is logged to the browser console.
669
+ * ...
670
+ * [View online docs...](https://bryntum.com/products/gantt/docs/api/Gantt/model/ProjectModel#config-validateResponse)
671
+ */
672
+ validateResponse? : boolean
673
+ /**
674
+ * `true` to write all fields from the record to the server.
675
+ * If set to `false` it will only send the fields that were modified.
676
+ * Note that any fields that have [persist](https://bryntum.com/products/gantt/docs/api/Core/data/field/DataField#config-persist) set to `false` will
677
+ * still be ignored and fields having [alwaysWrite](https://bryntum.com/products/gantt/docs/api/Core/data/field/DataField#config-alwaysWrite) set to `true`
678
+ * will always be included.
679
+ */
680
+ writeAllFields? : boolean
681
+
682
+ // Events
683
+ /**
684
+ * Fires before an object is destroyed.
685
+ * @param {object} event Event object
686
+ * @param {Core.Base} event.source The Object that is being destroyed.
687
+ */
688
+ onBeforeDestroy? : ((event: { source: Base }) => void)|string
689
+ /**
690
+ * Fires before [load request](https://bryntum.com/products/gantt/docs/api/Scheduler/crud/AbstractCrudManagerMixin#function-load) is sent. Return `false` to cancel load request.
691
+ * @param {object} event Event object
692
+ * @param {Scheduler.crud.AbstractCrudManager} event.source The CRUD manager.
693
+ * @param {object} event.pack The data package which contains data for all stores managed by the crud manager.
694
+ */
695
+ onBeforeLoad? : ((event: { source: AbstractCrudManager, pack: object }) => Promise<boolean>|boolean|void)|string
696
+ /**
697
+ * Fires before loaded data get applied to the stores. Return `false` to prevent data applying.
698
+ * This event can be used for server data preprocessing. To achieve it user can modify the `response` object.
699
+ * @param {object} event Event object
700
+ * @param {Scheduler.crud.AbstractCrudManager} event.source The CRUD manager.
701
+ * @param {object} event.response The decoded server response object.
702
+ * @param {object} event.options Options provided to the [load](https://bryntum.com/products/gantt/docs/api/Scheduler/crud/AbstractCrudManagerMixin#function-load) method.
703
+ */
704
+ onBeforeLoadApply? : ((event: { source: AbstractCrudManager, response: object, options: object }) => Promise<boolean>|boolean|void)|string
705
+ /**
706
+ * Fires before server response gets applied to the stores. Return `false` to prevent data applying.
707
+ * This event can be used for server data preprocessing. To achieve it user can modify the `response` object.
708
+ * @param {object} event Event object
709
+ * @param {Scheduler.crud.AbstractCrudManager} event.source The CRUD manager.
710
+ * @param {'sync','load'} event.requestType The request type (`sync` or `load`).
711
+ * @param {object} event.response The decoded server response object.
712
+ */
713
+ onBeforeResponseApply? : ((event: { source: AbstractCrudManager, requestType: 'sync'|'load', response: object }) => Promise<boolean>|boolean|void)|string
714
+ /**
715
+ * Fires before a request is sent to the server.
716
+ * ...
717
+ * [View online docs...](https://bryntum.com/products/gantt/docs/api/Gantt/model/ProjectModel#event-beforeSend)
718
+ * @param {object} event Event object
719
+ * @param {Scheduler.crud.AbstractCrudManager} event.crudManager The CRUD manager.
720
+ * @param {object} event.params HTTP request params to be passed in the request URL.
721
+ * @param {'sync','load'} event.requestType CrudManager request type (`load`/`sync`)
722
+ * @param {object} event.requestConfig Configuration object for Ajax request call
723
+ */
724
+ onBeforeSend? : ((event: { crudManager: AbstractCrudManager, params: object, requestType: 'sync'|'load', requestConfig: object }) => Promise<void>)|string
725
+ /**
726
+ * Fires before [sync request](https://bryntum.com/products/gantt/docs/api/Scheduler/crud/AbstractCrudManagerMixin#function-sync) is sent. Return `false` to cancel sync request.
727
+ * ...
728
+ * [View online docs...](https://bryntum.com/products/gantt/docs/api/Gantt/model/ProjectModel#event-beforeSync)
729
+ * @param {object} event Event object
730
+ * @param {Scheduler.crud.AbstractCrudManager} event.source The CRUD manager.
731
+ * @param {object} event.pack The data package which contains data for all stores managed by the crud manager.
732
+ */
733
+ onBeforeSync? : ((event: { source: AbstractCrudManager, pack: object }) => Promise<boolean>|boolean|void)|string
734
+ /**
735
+ * Fires before sync response data get applied to the stores. Return `false` to prevent data applying.
736
+ * This event can be used for server data preprocessing. To achieve it user can modify the `response` object.
737
+ * @param {object} event Event object
738
+ * @param {Scheduler.crud.AbstractCrudManager} event.source The CRUD manager.
739
+ * @param {object} event.response The decoded server response object.
740
+ */
741
+ onBeforeSyncApply? : ((event: { source: AbstractCrudManager, response: object }) => Promise<boolean>|boolean|void)|string
742
+ /**
743
+ * Fires when any other event is fired from the object.
744
+ * ...
745
+ * [View online docs...](https://bryntum.com/products/gantt/docs/api/Gantt/model/ProjectModel#event-catchAll)
746
+ * @param {object} event Event object
747
+ * @param {{[key: string]: any, type: string}} event.event The Object that contains event details
748
+ * @param {string} event.event.type The type of the event which is caught by the listener
749
+ */
750
+ onCatchAll? : ((event: {[key: string]: any, type: string}) => void)|string
751
+ /**
752
+ * Fired when data in any of the projects stores changes.
753
+ * ...
754
+ * [View online docs...](https://bryntum.com/products/gantt/docs/api/Gantt/model/ProjectModel#event-change)
755
+ * @param {object} event Event object
756
+ * @param {Gantt.model.ProjectModel} event.source This project
757
+ * @param {Core.data.Store} event.store Affected store
758
+ * @param {'remove','removeAll','add','clearchanges','filter','update','dataset','replace'} event.action Name of action which triggered the change. May be one of the options listed above.
759
+ * @param {Core.data.Model} event.record Changed record, for actions that affects exactly one record (`'update'`)
760
+ * @param {Core.data.Model[]} event.records Changed records, passed for all actions except `'removeAll'`
761
+ * @param {object} event.changes Passed for the `'update'` action, info on which record fields changed
762
+ */
763
+ onChange? : ((event: { source: ProjectModel, store: Store, action: 'remove'|'removeAll'|'add'|'clearchanges'|'filter'|'update'|'dataset'|'replace', record: Model, records: Model[], changes: object }) => void)|string
764
+ /**
765
+ * Fired when the Engine detects a computation cycle.
766
+ * @param {object} event Event object
767
+ * @param {object} event.schedulingIssue Scheduling error describing the case:
768
+ * @param {Function} event.schedulingIssue.getDescription Returns the cycle description
769
+ * @param {object} event.schedulingIssue.cycle Object providing the cycle info
770
+ * @param {Function} event.schedulingIssue.getResolutions Returns possible resolutions
771
+ * @param {Function} event.continueWithResolutionResult Function to call after a resolution is chosen to proceed with the Engine calculations: ```javascript project.on('cycle', ({ continueWithResolutionResult }) => { // cancel changes in case of a cycle continueWithResolutionResult(EffectResolutionResult.Cancel); }) ``` Where `EffectResolutionResult.Cancel` results in cancelling the changes.
772
+ */
773
+ onCycle? : ((event: { schedulingIssue: { getDescription: Function, cycle: object, getResolutions: Function }, continueWithResolutionResult: Function }) => void)|string
774
+ /**
775
+ * Fired when the engine has finished its calculations and the results has been written back to the records.
776
+ * ...
777
+ * [View online docs...](https://bryntum.com/products/gantt/docs/api/Gantt/model/ProjectModel#event-dataReady)
778
+ * @param {object} event Event object
779
+ * @param {Gantt.model.ProjectModel} event.source The project
780
+ * @param {boolean} event.isInitialCommit Flag that shows if this commit is initial
781
+ * @param {Set<any>} event.records Set of all [Model](https://bryntum.com/products/gantt/docs/api/Core/data/Model)s that were modified in the completed transaction. Use the [modifications](https://bryntum.com/products/gantt/docs/api/Core/data/Model#property-modifications) property of each Model to identify modified fields.
782
+ */
783
+ onDataReady? : ((event: { source: ProjectModel, isInitialCommit: boolean, records: Set<any> }) => void)|string
784
+ /**
785
+ * Fires when an object is destroyed.
786
+ * @param {object} event Event object
787
+ * @param {Core.Base} event.source The Object that is being destroyed.
788
+ */
789
+ onDestroy? : ((event: { source: Base }) => void)|string
790
+ /**
791
+ * Fired when the Engine detects a calendar misconfiguration when the calendar does
792
+ * not provide any working periods of time which makes usage impossible.
793
+ * @param {object} event Event object
794
+ * @param {object} event.schedulingIssue Scheduling error describing the case:
795
+ * @param {Function} event.schedulingIssue.getDescription Returns the error description
796
+ * @param {Function} event.schedulingIssue.getCalendar Returns the calendar that must be fixed
797
+ * @param {Function} event.schedulingIssue.getResolutions Returns possible resolutions
798
+ * @param {Function} event.continueWithResolutionResult Function to call after a resolution is chosen to proceed with the Engine calculations: ```javascript project.on('emptyCalendar', ({ schedulingIssue, continueWithResolutionResult }) => { // apply the first resolution and continue schedulingIssue.getResolutions()[0].resolve(); continueWithResolutionResult(EffectResolutionResult.Resume); }) ```
799
+ */
800
+ onEmptyCalendar? : ((event: { schedulingIssue: { getDescription: Function, getCalendar: Function, getResolutions: Function }, continueWithResolutionResult: Function }) => void)|string
801
+ /**
802
+ * Fires when data in any of the registered data stores is changed.
803
+ * ...
804
+ * [View online docs...](https://bryntum.com/products/gantt/docs/api/Gantt/model/ProjectModel#event-hasChanges)
805
+ * @param {object} event Event object
806
+ * @param {Scheduler.crud.AbstractCrudManager} event.source The CRUD manager.
807
+ */
808
+ onHasChanges? : ((event: { source: AbstractCrudManager }) => void)|string
809
+ /**
810
+ * Fires on successful [load request](https://bryntum.com/products/gantt/docs/api/Scheduler/crud/AbstractCrudManagerMixin#function-load) completion after data gets loaded to the stores.
811
+ * @param {object} event Event object
812
+ * @param {Scheduler.crud.AbstractCrudManager} event.source The CRUD manager.
813
+ * @param {object} event.response The decoded server response object.
814
+ * @param {object} event.responseOptions [DEPRECATED] see `requestOptions`
815
+ * @param {object} event.requestOptions The request options passed to the request.
816
+ * @param {Response} event.rawResponse The native Response object
817
+ */
818
+ onLoad? : ((event: { source: AbstractCrudManager, response: object, responseOptions: object, requestOptions: object, rawResponse: any }) => void)|string
819
+ /**
820
+ * Fired after [load request](https://bryntum.com/products/gantt/docs/api/Scheduler/crud/AbstractCrudManagerMixin#function-load) was canceled by some [beforeLoad](#Scheduler/crud/AbstractCrudManagerMixin#event-beforeLoad)
821
+ * listener or due to incomplete prior load request.
822
+ * @param {object} event Event object
823
+ * @param {Scheduler.crud.AbstractCrudManager} event.source The CRUD manager.
824
+ * @param {object} event.pack The data package which contains data for all stores managed by the crud manager.
825
+ */
826
+ onLoadCanceled? : ((event: { source: AbstractCrudManager, pack: object }) => void)|string
827
+ /**
828
+ * Fires when a [load request](https://bryntum.com/products/gantt/docs/api/Scheduler/crud/AbstractCrudManagerMixin#function-load) fails.
829
+ * @param {object} event Event object
830
+ * @param {Scheduler.crud.AbstractCrudManager} event.source The CRUD manager instance.
831
+ * @param {object} event.response The decoded server response object.
832
+ * @param {string} event.responseText The raw server response text
833
+ * @param {object} event.responseOptions [DEPRECATED] see `requestOptions`
834
+ * @param {object} event.requestOptions The request options passed to the request.
835
+ * @param {Response} event.rawResponse The native Response object
836
+ */
837
+ onLoadFail? : ((event: { source: AbstractCrudManager, response: object, responseText: string, responseOptions: object, requestOptions: object, rawResponse: any }) => void)|string
838
+ /**
839
+ * Fires when registered stores get into state when they don't have any
840
+ * not persisted change. This happens after [load](https://bryntum.com/products/gantt/docs/api/Scheduler/crud/AbstractCrudManagerMixin#function-load) or [sync](#Scheduler/crud/AbstractCrudManagerMixin#function-sync) request
841
+ * completion. Or this may happen after a record update which turns its fields back to their original state.
842
+ * ...
843
+ * [View online docs...](https://bryntum.com/products/gantt/docs/api/Gantt/model/ProjectModel#event-noChanges)
844
+ * @param {object} event Event object
845
+ * @param {Scheduler.crud.AbstractCrudManager} event.source The CRUD manager.
846
+ */
847
+ onNoChanges? : ((event: { source: AbstractCrudManager }) => void)|string
848
+ /**
849
+ * Fired during the Engine calculation if [enableProgressNotifications](https://bryntum.com/products/gantt/docs/api/Gantt/model/ProjectModel#config-enableProgressNotifications) config is `true`
850
+ * @param {object} event Event object
851
+ * @param {Gantt.model.ProjectModel} event.source The owning project
852
+ * @param {number} event.total The total number of operations
853
+ * @param {number} event.remaining The number of remaining operations
854
+ * @param {'storePopulation','propagating'} event.phase The phase of the calculation, either 'storePopulation' when data is getting loaded, or 'propagating' when data is getting calculated
855
+ */
856
+ onProgress? : ((event: { source: ProjectModel, total: number, remaining: number, phase: 'storePopulation'|'propagating' }) => void)|string
857
+ /**
858
+ * Fires on successful request completion after data gets applied to the stores.
859
+ * @param {object} event Event object
860
+ * @param {Scheduler.crud.AbstractCrudManager} event.source The CRUD manager.
861
+ * @param {'sync','load'} event.requestType The request type (`sync` or `load`).
862
+ * @param {object} event.response The decoded server response object.
863
+ * @param {object} event.responseOptions [DEPRECATED] see `requestOptions`
864
+ * @param {object} event.requestOptions The request options passed to the request.
865
+ * @param {Response} event.rawResponse The native Response object
866
+ */
867
+ onRequestDone? : ((event: { source: AbstractCrudManager, requestType: 'sync'|'load', response: object, responseOptions: object, requestOptions: object, rawResponse: any }) => void)|string
868
+ /**
869
+ * Fires when a request fails.
870
+ * @param {object} event Event object
871
+ * @param {Scheduler.crud.AbstractCrudManager} event.source The CRUD manager instance.
872
+ * @param {'sync','load'} event.requestType The request type (`sync` or `load`).
873
+ * @param {object} event.response The decoded server response object.
874
+ * @param {string} event.responseText The raw server response text
875
+ * @param {object} event.responseOptions [DEPRECATED] see `requestOptions`
876
+ * @param {object} event.requestOptions The request options passed to the request.
877
+ * @param {Response} event.rawResponse The native Response object
878
+ */
879
+ onRequestFail? : ((event: { source: AbstractCrudManager, requestType: 'sync'|'load', response: object, responseText: string, responseOptions: object, requestOptions: object, rawResponse: any }) => void)|string
880
+ /**
881
+ * This event triggers when a new revision is added to the project. It is used to notify the backend about the
882
+ * new revision.
883
+ * @param {object} event Event object
884
+ * @param {string} event.localRevisionId ID of the local revision. Backend should send it in the broadcast channel
885
+ * @param {string} event.conflictResolutionFor ID of the revision with a conflict which was resolved by this revision
886
+ * @param {string} event.clientId ID of the client instance. Used to distinguish own revisions from the broadcast channel
887
+ * @param {object} event.changes Object with changes constituting revision
888
+ */
889
+ onRevisionNotification? : ((event: { localRevisionId: string, conflictResolutionFor?: string, clientId: string, changes: object }) => void)|string
890
+ /**
891
+ * Fired when the Engine detects a scheduling conflict.
892
+ * @param {object} event Event object
893
+ * @param {object} event.schedulingIssue The conflict details:
894
+ * @param {Function} event.schedulingIssue.getDescription Returns the conflict description
895
+ * @param {object[]} event.schedulingIssue.intervals Array of conflicting intervals
896
+ * @param {Function} event.schedulingIssue.getResolutions Function to get possible resolutions
897
+ * @param {Function} event.continueWithResolutionResult Function to call after a resolution is chosen to proceed with the Engine calculations: ```javascript project.on('schedulingConflict', ({ schedulingIssue, continueWithResolutionResult }) => { // apply the first resolution and continue schedulingIssue.getResolutions()[0].resolve(); continueWithResolutionResult(EffectResolutionResult.Resume); }) ``` Where `EffectResolutionResult.Resume` results in a resolution being applied and current transaction should be continued.
898
+ */
899
+ onSchedulingConflict? : ((event: { schedulingIssue: { getDescription: Function, intervals: object[], getResolutions: Function }, continueWithResolutionResult: Function }) => void)|string
900
+ /**
901
+ * Fires on successful [sync request](https://bryntum.com/products/gantt/docs/api/Scheduler/crud/AbstractCrudManagerMixin#function-sync) completion.
902
+ * @param {object} event Event object
903
+ * @param {Scheduler.crud.AbstractCrudManager} event.source The CRUD manager.
904
+ * @param {object} event.response The decoded server response object.
905
+ * @param {object} event.responseOptions [DEPRECATED] see `requestOptions`
906
+ * @param {object} event.requestOptions The request options passed to the request.
907
+ * @param {Response} event.rawResponse The native Response object
908
+ */
909
+ onSync? : ((event: { source: AbstractCrudManager, response: object, responseOptions: object, requestOptions: object, rawResponse: any }) => void)|string
910
+ /**
911
+ * Fires after [sync request](https://bryntum.com/products/gantt/docs/api/Scheduler/crud/AbstractCrudManagerMixin#function-sync) was canceled by some [beforeSync](#Scheduler/crud/AbstractCrudManagerMixin#event-beforeSync) listener.
912
+ * @param {object} event Event object
913
+ * @param {Scheduler.crud.AbstractCrudManager} event.source The CRUD manager.
914
+ * @param {object} event.pack The data package which contains data for all stores managed by the crud manager.
915
+ */
916
+ onSyncCanceled? : ((event: { source: AbstractCrudManager, pack: object }) => void)|string
917
+ /**
918
+ * Fires after [sync request](https://bryntum.com/products/gantt/docs/api/Scheduler/crud/AbstractCrudManagerMixin#function-sync) was delayed due to incomplete previous one.
919
+ * @param {object} event Event object
920
+ * @param {Scheduler.crud.AbstractCrudManager} event.source The CRUD manager.
921
+ * @param {object} event.arguments The arguments of [sync](https://bryntum.com/products/gantt/docs/api/Scheduler/crud/AbstractCrudManagerMixin#function-sync) call.
922
+ */
923
+ onSyncDelayed? : ((event: { source: AbstractCrudManager, arguments: object }) => void)|string
924
+ /**
925
+ * Fires when a [sync request](https://bryntum.com/products/gantt/docs/api/Scheduler/crud/AbstractCrudManagerMixin#function-sync) fails.
926
+ * @param {object} event Event object
927
+ * @param {Scheduler.crud.AbstractCrudManager} event.source The CRUD manager instance.
928
+ * @param {object} event.response The decoded server response object.
929
+ * @param {string} event.responseText The raw server response text
930
+ * @param {object} event.responseOptions [DEPRECATED] see `requestOptions`
931
+ * @param {object} event.requestOptions The request options passed to the request.
932
+ * @param {Response} event.rawResponse The native Response object
933
+ */
934
+ onSyncFail? : ((event: { source: AbstractCrudManager, response: object, responseText: string, responseOptions: object, requestOptions: object, rawResponse: any }) => void)|string
935
+
936
+ }
937
+
938
+ export class BryntumGanttProjectModel extends React.Component<BryntumGanttProjectModelProps> {
939
+
940
+ static instanceClass = ProjectModel;
941
+
942
+ static instanceName = 'ProjectModel';
943
+
944
+ processWidgetContent = processWidgetContent;
945
+
946
+ dataStores = {
947
+ 'assignmentStore': 'assignments',
948
+ 'calendarManagerStore': 'calendars',
949
+ 'dependencyStore': 'dependencies',
950
+ 'eventStore': 'events',
951
+ 'resourceStore': 'resources',
952
+ 'taskStore': 'tasks',
953
+ 'timeRangeStore': 'timeRanges'
954
+ };
955
+
956
+ static configNames = [
957
+ 'adjustDurationToDST',
958
+ 'assignmentModelClass',
959
+ 'assignmentsData',
960
+ 'assignmentStoreClass',
961
+ 'autoLoad',
962
+ 'autoSetConstraints',
963
+ 'autoSync',
964
+ 'autoSyncTimeout',
965
+ 'bubbleEvents',
966
+ 'bwcConflictPostpone',
967
+ 'calendarManagerStoreClass',
968
+ 'calendarModelClass',
969
+ 'calendarsData',
970
+ 'children',
971
+ 'delayCalculation',
972
+ 'dependenciesData',
973
+ 'dependencyModelClass',
974
+ 'dependencyStoreClass',
975
+ 'encoder',
976
+ 'eventsData',
977
+ 'expanded',
978
+ 'includeAsapAlapAsConstraints',
979
+ 'includeChildrenInRemoveRequest',
980
+ 'listeners',
981
+ 'maxCalendarRange',
982
+ 'orderedParentIndex',
983
+ 'pageSize',
984
+ 'parentIndex',
985
+ 'phantomIdField',
986
+ 'phantomParentIdField',
987
+ 'remotePaging',
988
+ 'requestData',
989
+ 'resetIdsBeforeSync',
990
+ 'resetUndoRedoQueuesAfterLoad',
991
+ 'resourceModelClass',
992
+ 'resourcesData',
993
+ 'resourceStoreClass',
994
+ 'silenceInitialCommit',
995
+ 'skipSuccessProperty',
996
+ 'storeIdProperty',
997
+ 'supportShortSyncResponse',
998
+ 'taskModelClass',
999
+ 'tasksData',
1000
+ 'taskStoreClass',
1001
+ 'timeRangesData',
1002
+ 'toJSONResultFormat',
1003
+ 'trackResponseType',
1004
+ 'transport',
1005
+ 'useRawData',
1006
+ 'validateResponse',
1007
+ 'writeAllFields'
1008
+ ];
1009
+
1010
+ static propertyConfigNames = [
1011
+ 'addConstraintOnDateSet',
1012
+ 'allowPostponedConflicts',
1013
+ 'assignments',
1014
+ 'assignmentStore',
1015
+ 'autoCalculatePercentDoneForParentTasks',
1016
+ 'autoMergeAdjacentSegments',
1017
+ 'autoPostponeConflicts',
1018
+ 'autoPostponedConflicts',
1019
+ 'autoScheduleManualTasksOnSecondPass',
1020
+ 'calendar',
1021
+ 'calendarManagerStore',
1022
+ 'calendars',
1023
+ 'callOnFunctions',
1024
+ 'catchEventHandlerExceptions',
1025
+ 'crudStores',
1026
+ 'daysPerMonth',
1027
+ 'daysPerWeek',
1028
+ 'dependencies',
1029
+ 'dependenciesCalendar',
1030
+ 'dependencyStore',
1031
+ 'description',
1032
+ 'direction',
1033
+ 'enableProgressNotifications',
1034
+ 'endDate',
1035
+ 'eventStore',
1036
+ 'forceSync',
1037
+ 'hoursPerDay',
1038
+ 'id',
1039
+ 'ignoreConstraintsOnConflictDuringSecondPass',
1040
+ 'ignoreRemoteChangesInSTM',
1041
+ 'includeLegacyDataProperties',
1042
+ 'isFullyLoaded',
1043
+ 'json',
1044
+ 'lazyLoad',
1045
+ 'loadUrl',
1046
+ 'maxCriticalPathsCount',
1047
+ 'name',
1048
+ 'onBeforeDestroy',
1049
+ 'onBeforeLoad',
1050
+ 'onBeforeLoadApply',
1051
+ 'onBeforeResponseApply',
1052
+ 'onBeforeSend',
1053
+ 'onBeforeSync',
1054
+ 'onBeforeSyncApply',
1055
+ 'onCatchAll',
1056
+ 'onChange',
1057
+ 'onCycle',
1058
+ 'onDataReady',
1059
+ 'onDestroy',
1060
+ 'onEmptyCalendar',
1061
+ 'onHasChanges',
1062
+ 'onLoad',
1063
+ 'onLoadCanceled',
1064
+ 'onLoadFail',
1065
+ 'onNoChanges',
1066
+ 'onProgress',
1067
+ 'onRequestDone',
1068
+ 'onRequestFail',
1069
+ 'onRevisionNotification',
1070
+ 'onSchedulingConflict',
1071
+ 'onSync',
1072
+ 'onSyncCanceled',
1073
+ 'onSyncDelayed',
1074
+ 'onSyncFail',
1075
+ 'parentId',
1076
+ 'readOnly',
1077
+ 'remoteChildCount',
1078
+ 'resources',
1079
+ 'resourceStore',
1080
+ 'shouldSyncDataOnLoad',
1081
+ 'skipNonWorkingTimeInDurationWhenSchedulingManually',
1082
+ 'skipNonWorkingTimeWhenSchedulingManually',
1083
+ 'startDate',
1084
+ 'startedTaskScheduling',
1085
+ 'statusDate',
1086
+ 'stm',
1087
+ 'syncApplySequence',
1088
+ 'syncUrl',
1089
+ 'tasks',
1090
+ 'taskStore',
1091
+ 'timeRanges',
1092
+ 'timeRangeStore',
1093
+ 'timeZone',
1094
+ 'trackProjectModelChanges'
1095
+ ];
1096
+
1097
+ static propertyNames = [
1098
+ 'allChildren',
1099
+ 'allUnfilteredChildren',
1100
+ 'criticalPaths',
1101
+ 'descendantCount',
1102
+ 'hasGeneratedId',
1103
+ 'inlineData',
1104
+ 'internalId',
1105
+ 'isCommitting',
1106
+ 'isCreating',
1107
+ 'isValid',
1108
+ 'previousSiblingsTotalCount',
1109
+ 'segmentModelClass',
1110
+ 'visibleDescendantCount'
1111
+ ];
1112
+
1113
+ // Component instance
1114
+ instance!: ProjectModel;
1115
+
1116
+ // Component element
1117
+ element! : HTMLElement;
1118
+
1119
+ componentDidMount(): void {
1120
+ this.instance = createWidget(this);
1121
+ }
1122
+
1123
+ componentWillUnmount(): void {
1124
+ // @ts-ignore
1125
+ this.instance?.destroy?.();
1126
+ }
1127
+
1128
+ /**
1129
+ * Component about to be updated, from changing a prop using state.
1130
+ * React to it depending on what changed and prevent react from re-rendering our component.
1131
+ * @param nextProps
1132
+ * @param nextState
1133
+ * @returns {boolean}
1134
+ */
1135
+ shouldComponentUpdate(nextProps: Readonly<BryntumGanttProjectModelProps>, nextState: Readonly<{}>): boolean {
1136
+ return shouldComponentUpdate(this, nextProps, nextState);
1137
+ }
1138
+
1139
+ render(): React.ReactNode {
1140
+
1141
+ return null
1142
+
1143
+ }
1144
+ }