@bryntum/gantt-react 7.1.2 → 7.2.0

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 (341) hide show
  1. package/README.md +12 -6
  2. package/lib/BryntumAIFilterField.d.ts +2 -2
  3. package/lib/BryntumAIFilterField.js.map +1 -1
  4. package/lib/BryntumAssignmentField.d.ts +2 -2
  5. package/lib/BryntumAssignmentField.js.map +1 -1
  6. package/lib/BryntumAssignmentGrid.d.ts +22 -10
  7. package/lib/BryntumAssignmentGrid.js +3 -0
  8. package/lib/BryntumAssignmentGrid.js.map +1 -1
  9. package/lib/BryntumAssignmentPicker.d.ts +254 -0
  10. package/lib/BryntumAssignmentPicker.js +183 -0
  11. package/lib/BryntumAssignmentPicker.js.map +1 -0
  12. package/lib/BryntumButton.d.ts +2 -2
  13. package/lib/BryntumButton.js.map +1 -1
  14. package/lib/BryntumButtonGroup.d.ts +1 -0
  15. package/lib/BryntumButtonGroup.js +1 -0
  16. package/lib/BryntumButtonGroup.js.map +1 -1
  17. package/lib/BryntumCalendarEditor.d.ts +3 -2
  18. package/lib/BryntumCalendarEditor.js +1 -0
  19. package/lib/BryntumCalendarEditor.js.map +1 -1
  20. package/lib/BryntumCalendarField.d.ts +2 -2
  21. package/lib/BryntumCalendarField.js.map +1 -1
  22. package/lib/BryntumCalendarPicker.d.ts +2 -2
  23. package/lib/BryntumCalendarPicker.js.map +1 -1
  24. package/lib/BryntumChatPanel.d.ts +3 -2
  25. package/lib/BryntumChatPanel.js +1 -0
  26. package/lib/BryntumChatPanel.js.map +1 -1
  27. package/lib/BryntumCheckboxGroup.d.ts +3 -2
  28. package/lib/BryntumCheckboxGroup.js +1 -0
  29. package/lib/BryntumCheckboxGroup.js.map +1 -1
  30. package/lib/BryntumChecklistFilterCombo.d.ts +2 -2
  31. package/lib/BryntumChecklistFilterCombo.js.map +1 -1
  32. package/lib/BryntumChipView.d.ts +2 -2
  33. package/lib/BryntumChipView.js +2 -2
  34. package/lib/BryntumChipView.js.map +1 -1
  35. package/lib/BryntumCodeEditor.d.ts +3 -2
  36. package/lib/BryntumCodeEditor.js +1 -0
  37. package/lib/BryntumCodeEditor.js.map +1 -1
  38. package/lib/BryntumCombo.d.ts +2 -2
  39. package/lib/BryntumCombo.js.map +1 -1
  40. package/lib/BryntumConstraintTypePicker.d.ts +2 -2
  41. package/lib/BryntumConstraintTypePicker.js.map +1 -1
  42. package/lib/BryntumContainer.d.ts +3 -2
  43. package/lib/BryntumContainer.js +1 -0
  44. package/lib/BryntumContainer.js.map +1 -1
  45. package/lib/BryntumCostAccrualField.d.ts +2 -2
  46. package/lib/BryntumCostAccrualField.js.map +1 -1
  47. package/lib/BryntumDateField.d.ts +3 -2
  48. package/lib/BryntumDateField.js +1 -0
  49. package/lib/BryntumDateField.js.map +1 -1
  50. package/lib/BryntumDatePicker.d.ts +3 -2
  51. package/lib/BryntumDatePicker.js +2 -1
  52. package/lib/BryntumDatePicker.js.map +1 -1
  53. package/lib/BryntumDateRangeField.d.ts +2 -2
  54. package/lib/BryntumDateRangeField.js.map +1 -1
  55. package/lib/BryntumDateTimeField.d.ts +2 -2
  56. package/lib/BryntumDateTimeField.js.map +1 -1
  57. package/lib/BryntumDemoCodeEditor.d.ts +3 -2
  58. package/lib/BryntumDemoCodeEditor.js +1 -0
  59. package/lib/BryntumDemoCodeEditor.js.map +1 -1
  60. package/lib/BryntumDependencyField.d.ts +2 -2
  61. package/lib/BryntumDependencyField.js.map +1 -1
  62. package/lib/BryntumDependencyTypePicker.d.ts +3 -2
  63. package/lib/BryntumDependencyTypePicker.js +1 -0
  64. package/lib/BryntumDependencyTypePicker.js.map +1 -1
  65. package/lib/BryntumDisplayField.d.ts +2 -2
  66. package/lib/BryntumDisplayField.js.map +1 -1
  67. package/lib/BryntumDurationField.d.ts +2 -2
  68. package/lib/BryntumDurationField.js.map +1 -1
  69. package/lib/BryntumEditor.d.ts +3 -2
  70. package/lib/BryntumEditor.js +1 -0
  71. package/lib/BryntumEditor.js.map +1 -1
  72. package/lib/BryntumEffortField.d.ts +2 -2
  73. package/lib/BryntumEffortField.js.map +1 -1
  74. package/lib/BryntumEndDateField.d.ts +3 -2
  75. package/lib/BryntumEndDateField.js +1 -0
  76. package/lib/BryntumEndDateField.js.map +1 -1
  77. package/lib/BryntumFieldFilterPicker.d.ts +3 -2
  78. package/lib/BryntumFieldFilterPicker.js +1 -0
  79. package/lib/BryntumFieldFilterPicker.js.map +1 -1
  80. package/lib/BryntumFieldFilterPickerGroup.d.ts +3 -2
  81. package/lib/BryntumFieldFilterPickerGroup.js +1 -0
  82. package/lib/BryntumFieldFilterPickerGroup.js.map +1 -1
  83. package/lib/BryntumFieldSet.d.ts +3 -2
  84. package/lib/BryntumFieldSet.js +1 -0
  85. package/lib/BryntumFieldSet.js.map +1 -1
  86. package/lib/BryntumFileField.d.ts +2 -2
  87. package/lib/BryntumFileField.js.map +1 -1
  88. package/lib/BryntumFilePicker.d.ts +3 -2
  89. package/lib/BryntumFilePicker.js +1 -0
  90. package/lib/BryntumFilePicker.js.map +1 -1
  91. package/lib/BryntumFilterField.d.ts +2 -2
  92. package/lib/BryntumFilterField.js.map +1 -1
  93. package/lib/BryntumGantt.d.ts +24 -11
  94. package/lib/BryntumGantt.js +5 -0
  95. package/lib/BryntumGantt.js.map +1 -1
  96. package/lib/BryntumGanttBase.d.ts +24 -11
  97. package/lib/BryntumGanttBase.js +5 -0
  98. package/lib/BryntumGanttBase.js.map +1 -1
  99. package/lib/BryntumGanttProjectModel.d.ts +1 -0
  100. package/lib/BryntumGanttProjectModel.js +1 -0
  101. package/lib/BryntumGanttProjectModel.js.map +1 -1
  102. package/lib/BryntumGrid.d.ts +22 -10
  103. package/lib/BryntumGrid.js +4 -0
  104. package/lib/BryntumGrid.js.map +1 -1
  105. package/lib/BryntumGridBase.d.ts +22 -10
  106. package/lib/BryntumGridBase.js +4 -0
  107. package/lib/BryntumGridBase.js.map +1 -1
  108. package/lib/BryntumGridChartDesigner.d.ts +2 -2
  109. package/lib/BryntumGridChartDesigner.js.map +1 -1
  110. package/lib/BryntumGridFieldFilterPicker.d.ts +3 -2
  111. package/lib/BryntumGridFieldFilterPicker.js +1 -0
  112. package/lib/BryntumGridFieldFilterPicker.js.map +1 -1
  113. package/lib/BryntumGridFieldFilterPickerGroup.d.ts +3 -2
  114. package/lib/BryntumGridFieldFilterPickerGroup.js +1 -0
  115. package/lib/BryntumGridFieldFilterPickerGroup.js.map +1 -1
  116. package/lib/BryntumGroupBar.d.ts +2 -2
  117. package/lib/BryntumGroupBar.js +2 -2
  118. package/lib/BryntumGroupBar.js.map +1 -1
  119. package/lib/BryntumHint.d.ts +3 -2
  120. package/lib/BryntumHint.js +1 -0
  121. package/lib/BryntumHint.js.map +1 -1
  122. package/lib/BryntumLabel.d.ts +2 -2
  123. package/lib/BryntumLabel.js.map +1 -1
  124. package/lib/BryntumList.d.ts +2 -2
  125. package/lib/BryntumList.js +2 -2
  126. package/lib/BryntumList.js.map +1 -1
  127. package/lib/BryntumMenu.d.ts +3 -2
  128. package/lib/BryntumMenu.js +1 -0
  129. package/lib/BryntumMenu.js.map +1 -1
  130. package/lib/BryntumModelCombo.d.ts +2 -2
  131. package/lib/BryntumModelCombo.js.map +1 -1
  132. package/lib/BryntumMonthPicker.d.ts +3 -2
  133. package/lib/BryntumMonthPicker.js +1 -0
  134. package/lib/BryntumMonthPicker.js.map +1 -1
  135. package/lib/BryntumNumberField.d.ts +2 -2
  136. package/lib/BryntumNumberField.js.map +1 -1
  137. package/lib/BryntumPagingToolbar.d.ts +3 -2
  138. package/lib/BryntumPagingToolbar.js +1 -0
  139. package/lib/BryntumPagingToolbar.js.map +1 -1
  140. package/lib/BryntumPanel.d.ts +3 -2
  141. package/lib/BryntumPanel.js +1 -0
  142. package/lib/BryntumPanel.js.map +1 -1
  143. package/lib/BryntumPasswordField.d.ts +2 -2
  144. package/lib/BryntumPasswordField.js.map +1 -1
  145. package/lib/BryntumProgressBar.d.ts +165 -0
  146. package/lib/BryntumProgressBar.js +130 -0
  147. package/lib/BryntumProgressBar.js.map +1 -0
  148. package/lib/BryntumProjectCombo.d.ts +2 -2
  149. package/lib/BryntumProjectCombo.js.map +1 -1
  150. package/lib/BryntumRadioGroup.d.ts +3 -2
  151. package/lib/BryntumRadioGroup.js +1 -0
  152. package/lib/BryntumRadioGroup.js.map +1 -1
  153. package/lib/BryntumRateTableField.d.ts +2 -2
  154. package/lib/BryntumRateTableField.js.map +1 -1
  155. package/lib/BryntumResourceCombo.d.ts +2 -2
  156. package/lib/BryntumResourceCombo.js.map +1 -1
  157. package/lib/BryntumResourceEditor.d.ts +3 -2
  158. package/lib/BryntumResourceEditor.js +1 -0
  159. package/lib/BryntumResourceEditor.js.map +1 -1
  160. package/lib/BryntumResourceFilter.d.ts +2 -2
  161. package/lib/BryntumResourceFilter.js +2 -2
  162. package/lib/BryntumResourceFilter.js.map +1 -1
  163. package/lib/BryntumResourceGrid.d.ts +22 -10
  164. package/lib/BryntumResourceGrid.js +3 -0
  165. package/lib/BryntumResourceGrid.js.map +1 -1
  166. package/lib/BryntumResourceHistogram.d.ts +23 -11
  167. package/lib/BryntumResourceHistogram.js +4 -0
  168. package/lib/BryntumResourceHistogram.js.map +1 -1
  169. package/lib/BryntumResourceTypeField.d.ts +2 -2
  170. package/lib/BryntumResourceTypeField.js.map +1 -1
  171. package/lib/BryntumResourceUtilization.d.ts +23 -11
  172. package/lib/BryntumResourceUtilization.js +4 -0
  173. package/lib/BryntumResourceUtilization.js.map +1 -1
  174. package/lib/BryntumScheduler.d.ts +75 -11
  175. package/lib/BryntumScheduler.js +12 -0
  176. package/lib/BryntumScheduler.js.map +1 -1
  177. package/lib/BryntumSchedulerBase.d.ts +75 -11
  178. package/lib/BryntumSchedulerBase.js +12 -0
  179. package/lib/BryntumSchedulerBase.js.map +1 -1
  180. package/lib/BryntumSchedulerDatePicker.d.ts +3 -2
  181. package/lib/BryntumSchedulerDatePicker.js +2 -1
  182. package/lib/BryntumSchedulerDatePicker.js.map +1 -1
  183. package/lib/BryntumSchedulerPro.d.ts +75 -11
  184. package/lib/BryntumSchedulerPro.js +12 -0
  185. package/lib/BryntumSchedulerPro.js.map +1 -1
  186. package/lib/BryntumSchedulerProBase.d.ts +75 -11
  187. package/lib/BryntumSchedulerProBase.js +12 -0
  188. package/lib/BryntumSchedulerProBase.js.map +1 -1
  189. package/lib/BryntumSchedulingDirectionPicker.d.ts +2 -2
  190. package/lib/BryntumSchedulingDirectionPicker.js.map +1 -1
  191. package/lib/BryntumSchedulingModePicker.d.ts +2 -2
  192. package/lib/BryntumSchedulingModePicker.js.map +1 -1
  193. package/lib/BryntumSlider.d.ts +2 -2
  194. package/lib/BryntumSlider.js.map +1 -1
  195. package/lib/BryntumSplitter.d.ts +2 -2
  196. package/lib/BryntumSplitter.js.map +1 -1
  197. package/lib/BryntumStartDateField.d.ts +3 -2
  198. package/lib/BryntumStartDateField.js +1 -0
  199. package/lib/BryntumStartDateField.js.map +1 -1
  200. package/lib/BryntumTabPanel.d.ts +3 -2
  201. package/lib/BryntumTabPanel.js +1 -0
  202. package/lib/BryntumTabPanel.js.map +1 -1
  203. package/lib/BryntumTextAreaField.d.ts +2 -2
  204. package/lib/BryntumTextAreaField.js.map +1 -1
  205. package/lib/BryntumTextAreaPickerField.d.ts +2 -2
  206. package/lib/BryntumTextAreaPickerField.js.map +1 -1
  207. package/lib/BryntumTextField.d.ts +2 -2
  208. package/lib/BryntumTextField.js.map +1 -1
  209. package/lib/BryntumTimeField.d.ts +3 -2
  210. package/lib/BryntumTimeField.js +1 -0
  211. package/lib/BryntumTimeField.js.map +1 -1
  212. package/lib/BryntumTimePicker.d.ts +3 -2
  213. package/lib/BryntumTimePicker.js +1 -0
  214. package/lib/BryntumTimePicker.js.map +1 -1
  215. package/lib/BryntumTimeline.d.ts +75 -11
  216. package/lib/BryntumTimeline.js +10 -0
  217. package/lib/BryntumTimeline.js.map +1 -1
  218. package/lib/BryntumTimelineHistogram.d.ts +23 -11
  219. package/lib/BryntumTimelineHistogram.js +4 -0
  220. package/lib/BryntumTimelineHistogram.js.map +1 -1
  221. package/lib/BryntumToolbar.d.ts +3 -2
  222. package/lib/BryntumToolbar.js +1 -0
  223. package/lib/BryntumToolbar.js.map +1 -1
  224. package/lib/BryntumTreeCombo.d.ts +2 -2
  225. package/lib/BryntumTreeCombo.js.map +1 -1
  226. package/lib/BryntumTreeGrid.d.ts +22 -10
  227. package/lib/BryntumTreeGrid.js +4 -0
  228. package/lib/BryntumTreeGrid.js.map +1 -1
  229. package/lib/BryntumUndoRedo.d.ts +1 -0
  230. package/lib/BryntumUndoRedo.js +1 -0
  231. package/lib/BryntumUndoRedo.js.map +1 -1
  232. package/lib/BryntumVersionGrid.d.ts +22 -10
  233. package/lib/BryntumVersionGrid.js +3 -0
  234. package/lib/BryntumVersionGrid.js.map +1 -1
  235. package/lib/BryntumViewPresetCombo.d.ts +2 -2
  236. package/lib/BryntumViewPresetCombo.js.map +1 -1
  237. package/lib/BryntumWidget.d.ts +2 -2
  238. package/lib/BryntumWidget.js.map +1 -1
  239. package/lib/BryntumYearPicker.d.ts +3 -2
  240. package/lib/BryntumYearPicker.js +1 -0
  241. package/lib/BryntumYearPicker.js.map +1 -1
  242. package/lib/WrapperHelper.js +46 -1
  243. package/lib/WrapperHelper.js.map +1 -1
  244. package/lib/index.d.ts +2 -0
  245. package/lib/index.js +2 -0
  246. package/lib/index.js.map +1 -1
  247. package/package.json +1 -1
  248. package/src/BryntumAIFilterField.tsx +2 -2
  249. package/src/BryntumAssignmentField.tsx +2 -2
  250. package/src/BryntumAssignmentGrid.tsx +56 -24
  251. package/src/BryntumAssignmentPicker.tsx +1114 -0
  252. package/src/BryntumButton.tsx +2 -2
  253. package/src/BryntumButtonGroup.tsx +5 -0
  254. package/src/BryntumCalendarEditor.tsx +7 -2
  255. package/src/BryntumCalendarField.tsx +2 -2
  256. package/src/BryntumCalendarPicker.tsx +2 -2
  257. package/src/BryntumChatPanel.tsx +7 -2
  258. package/src/BryntumCheckboxGroup.tsx +7 -2
  259. package/src/BryntumChecklistFilterCombo.tsx +2 -2
  260. package/src/BryntumChipView.tsx +4 -4
  261. package/src/BryntumCodeEditor.tsx +7 -2
  262. package/src/BryntumCombo.tsx +2 -2
  263. package/src/BryntumConstraintTypePicker.tsx +2 -2
  264. package/src/BryntumContainer.tsx +7 -2
  265. package/src/BryntumCostAccrualField.tsx +2 -2
  266. package/src/BryntumDateField.tsx +13 -3
  267. package/src/BryntumDatePicker.tsx +8 -3
  268. package/src/BryntumDateRangeField.tsx +2 -2
  269. package/src/BryntumDateTimeField.tsx +2 -2
  270. package/src/BryntumDemoCodeEditor.tsx +7 -2
  271. package/src/BryntumDependencyField.tsx +2 -2
  272. package/src/BryntumDependencyTypePicker.tsx +8 -2
  273. package/src/BryntumDisplayField.tsx +2 -2
  274. package/src/BryntumDurationField.tsx +2 -2
  275. package/src/BryntumEditor.tsx +7 -2
  276. package/src/BryntumEffortField.tsx +2 -2
  277. package/src/BryntumEndDateField.tsx +13 -3
  278. package/src/BryntumFieldFilterPicker.tsx +7 -2
  279. package/src/BryntumFieldFilterPickerGroup.tsx +7 -2
  280. package/src/BryntumFieldSet.tsx +7 -2
  281. package/src/BryntumFileField.tsx +2 -2
  282. package/src/BryntumFilePicker.tsx +7 -2
  283. package/src/BryntumFilterField.tsx +2 -2
  284. package/src/BryntumGantt.tsx +65 -26
  285. package/src/BryntumGanttBase.tsx +65 -26
  286. package/src/BryntumGanttProjectModel.tsx +9 -0
  287. package/src/BryntumGrid.tsx +57 -24
  288. package/src/BryntumGridBase.tsx +57 -24
  289. package/src/BryntumGridChartDesigner.tsx +2 -2
  290. package/src/BryntumGridFieldFilterPicker.tsx +7 -2
  291. package/src/BryntumGridFieldFilterPickerGroup.tsx +7 -2
  292. package/src/BryntumGroupBar.tsx +4 -4
  293. package/src/BryntumHint.tsx +7 -2
  294. package/src/BryntumLabel.tsx +2 -2
  295. package/src/BryntumList.tsx +4 -4
  296. package/src/BryntumMenu.tsx +7 -2
  297. package/src/BryntumModelCombo.tsx +2 -2
  298. package/src/BryntumMonthPicker.tsx +7 -2
  299. package/src/BryntumNumberField.tsx +2 -2
  300. package/src/BryntumPagingToolbar.tsx +7 -2
  301. package/src/BryntumPanel.tsx +7 -2
  302. package/src/BryntumPasswordField.tsx +2 -2
  303. package/src/BryntumProgressBar.tsx +742 -0
  304. package/src/BryntumProjectCombo.tsx +2 -2
  305. package/src/BryntumRadioGroup.tsx +7 -2
  306. package/src/BryntumRateTableField.tsx +2 -2
  307. package/src/BryntumResourceCombo.tsx +2 -2
  308. package/src/BryntumResourceEditor.tsx +7 -2
  309. package/src/BryntumResourceFilter.tsx +4 -4
  310. package/src/BryntumResourceGrid.tsx +56 -24
  311. package/src/BryntumResourceHistogram.tsx +58 -25
  312. package/src/BryntumResourceTypeField.tsx +2 -2
  313. package/src/BryntumResourceUtilization.tsx +58 -25
  314. package/src/BryntumScheduler.tsx +142 -25
  315. package/src/BryntumSchedulerBase.tsx +142 -25
  316. package/src/BryntumSchedulerDatePicker.tsx +8 -3
  317. package/src/BryntumSchedulerPro.tsx +142 -25
  318. package/src/BryntumSchedulerProBase.tsx +142 -25
  319. package/src/BryntumSchedulingDirectionPicker.tsx +2 -2
  320. package/src/BryntumSchedulingModePicker.tsx +2 -2
  321. package/src/BryntumSlider.tsx +2 -2
  322. package/src/BryntumSplitter.tsx +2 -2
  323. package/src/BryntumStartDateField.tsx +13 -3
  324. package/src/BryntumTabPanel.tsx +7 -2
  325. package/src/BryntumTextAreaField.tsx +2 -2
  326. package/src/BryntumTextAreaPickerField.tsx +2 -2
  327. package/src/BryntumTextField.tsx +2 -2
  328. package/src/BryntumTimeField.tsx +11 -2
  329. package/src/BryntumTimePicker.tsx +7 -2
  330. package/src/BryntumTimeline.tsx +140 -25
  331. package/src/BryntumTimelineHistogram.tsx +58 -25
  332. package/src/BryntumToolbar.tsx +7 -2
  333. package/src/BryntumTreeCombo.tsx +2 -2
  334. package/src/BryntumTreeGrid.tsx +57 -24
  335. package/src/BryntumUndoRedo.tsx +5 -0
  336. package/src/BryntumVersionGrid.tsx +56 -24
  337. package/src/BryntumViewPresetCombo.tsx +2 -2
  338. package/src/BryntumWidget.tsx +2 -2
  339. package/src/BryntumYearPicker.tsx +7 -2
  340. package/src/WrapperHelper.tsx +162 -35
  341. package/src/index.ts +2 -0
@@ -0,0 +1,742 @@
1
+ /**
2
+ * React wrapper for Bryntum ProgressBar
3
+ */
4
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
5
+ import React, { RefObject } from 'react';
6
+ import { AlignSpec, Base, Color, DomConfig, KeyMapConfig, MaskConfig, ProgressBar, ProgressBarListeners, Rectangle, Scroller, ScrollerConfig, TabConfig, TooltipConfig, VueConfig, Widget } from '@bryntum/gantt';
7
+
8
+ import { createWidget, shouldComponentUpdate, processWidgetContent } from './WrapperHelper.js';
9
+
10
+ export type BryntumProgressBarProps = {
11
+ // Configs
12
+ /**
13
+ * Element (or element id) to adopt as this Widget's encapsulating element. The widget's
14
+ * content will be placed inside this element.
15
+ * ...
16
+ * [View online docs...](https://bryntum.com/products/gantt/docs/api/Core/widget/ProgressBar#config-adopt)
17
+ */
18
+ adopt? : HTMLElement|string
19
+ /**
20
+ * *Only valid if this Widget is [floating](https://bryntum.com/products/gantt/docs/api/Core/widget/Widget#config-floating).*
21
+ * ...
22
+ * [View online docs...](https://bryntum.com/products/gantt/docs/api/Core/widget/ProgressBar#config-align)
23
+ */
24
+ align? : AlignSpec|string
25
+ /**
26
+ * When this widget is a child of a [Container](https://bryntum.com/products/gantt/docs/api/Core/widget/Container), it will by default be participating in a
27
+ * flexbox layout. This config allows you to set this widget's
28
+ * [align-self](https://developer.mozilla.org/en-US/docs/Web/CSS/align-self) style.
29
+ */
30
+ alignSelf? : string
31
+ /**
32
+ * *Only valid if this Widget is [floating](https://bryntum.com/products/gantt/docs/api/Core/widget/Widget#config-floating) and being shown through [showBy](#Core/widget/Widget#function-showBy).*
33
+ * `true` to show a connector arrow pointing to the align target.
34
+ */
35
+ anchor? : boolean
36
+ /**
37
+ * Element (or the id of an element) to append this widget's element to. Can be configured, or set once at
38
+ * runtime. To access the element of a rendered widget, see [element](https://bryntum.com/products/gantt/docs/api/Core/widget/Widget#property-element).
39
+ */
40
+ appendTo? : HTMLElement|string
41
+ /**
42
+ * A localizable string (May contain `'L{}'` tokens which resolve in the locale file) to inject
43
+ * into an element which will be linked using the `aria-describedby` attribute.
44
+ * ...
45
+ * [View online docs...](https://bryntum.com/products/gantt/docs/api/Core/widget/ProgressBar#config-ariaDescription)
46
+ */
47
+ ariaDescription? : string
48
+ /**
49
+ * A localizable string (May contain `'L{}'` tokens which resolve in the locale file) to inject as
50
+ * the `aria-label` attribute.
51
+ * ...
52
+ * [View online docs...](https://bryntum.com/products/gantt/docs/api/Core/widget/ProgressBar#config-ariaLabel)
53
+ */
54
+ ariaLabel? : string
55
+ /**
56
+ * An object where property names with a truthy value indicate which events should bubble up the ownership
57
+ * hierarchy when triggered.
58
+ * ...
59
+ * [View online docs...](https://bryntum.com/products/gantt/docs/api/Core/widget/ProgressBar#config-bubbleEvents)
60
+ */
61
+ bubbleEvents? : object
62
+ /**
63
+ * Set to `false` to not call onXXX method names (e.g. `onShow`, `onClick`), as an easy way to listen for events.
64
+ * ...
65
+ * [View online docs...](https://bryntum.com/products/gantt/docs/api/Core/widget/ProgressBar#config-callOnFunctions)
66
+ */
67
+ callOnFunctions? : boolean
68
+ /**
69
+ * By default, if an event handler throws an exception, the error propagates up the stack and the
70
+ * application state is undefined. Code which follows the event handler will *not* be executed.
71
+ * ...
72
+ * [View online docs...](https://bryntum.com/products/gantt/docs/api/Core/widget/ProgressBar#config-catchEventHandlerExceptions)
73
+ */
74
+ catchEventHandlerExceptions? : boolean
75
+ /**
76
+ * *Only valid if this Widget is [floating](https://bryntum.com/products/gantt/docs/api/Core/widget/Widget#config-floating).*
77
+ * Set to `true` to centre the Widget in browser viewport space.
78
+ */
79
+ centered? : boolean
80
+ /**
81
+ * Custom CSS classes to add to element.
82
+ * May be specified as a space separated string, or as an object in which property names
83
+ * with truthy values are used as the class names:
84
+ * ...
85
+ * [View online docs...](https://bryntum.com/products/gantt/docs/api/Core/widget/ProgressBar#config-cls)
86
+ */
87
+ cls? : string|object
88
+ /**
89
+ * Color of the progress bar ('b-green', 'b-yellow', 'b-orange', etc.)
90
+ */
91
+ color? : Color
92
+ /**
93
+ * Programmatic control over which column to start in when used in a grid layout.
94
+ */
95
+ column? : number
96
+ config? : object
97
+ /**
98
+ * *Only valid if this Widget is [floating](https://bryntum.com/products/gantt/docs/api/Core/widget/Widget#config-floating) or [positioned](#Core/widget/Widget#config-positioned).*
99
+ * Element, Widget or Rectangle to which this Widget is constrained.
100
+ */
101
+ constrainTo? : HTMLElement|Widget|Rectangle
102
+ /**
103
+ * The HTML content that coexists with sibling elements which may have been added to the
104
+ * [contentElement](https://bryntum.com/products/gantt/docs/api/Core/widget/Widget#property-contentElement) by plugins and features.
105
+ * When specifying html, this widget's element will also have the [htmlCls](https://bryntum.com/products/gantt/docs/api/Core/widget/Widget#config-htmlCls)
106
+ * class added to its classList, to allow targeted styling.
107
+ */
108
+ content? : string
109
+ /**
110
+ * Custom CSS classes to add to the [contentElement](https://bryntum.com/products/gantt/docs/api/Core/widget/Widget#property-contentElement).
111
+ * May be specified as a space separated string, or as an object in which property names
112
+ * with truthy values are used as the class names:
113
+ * ...
114
+ * [View online docs...](https://bryntum.com/products/gantt/docs/api/Core/widget/ProgressBar#config-contentElementCls)
115
+ */
116
+ contentElementCls? : string|object
117
+ /**
118
+ * When this Widget configuration is used in the Grid's RowExpander feature's `widget` config, provide the
119
+ * field on the expanded record to use for populating this widget's store (if applicable)
120
+ */
121
+ dataField? : string
122
+ /**
123
+ * Object to apply to elements dataset (each key will be used as a data-attribute on the element)
124
+ */
125
+ dataset? : Record<string, string>
126
+ /**
127
+ * The name of the property to set when a single value is to be applied to this Widget. Such as when used
128
+ * in a grid WidgetColumn, this is the property to which the column's `field` is applied.
129
+ */
130
+ defaultBindProperty? : string
131
+ /**
132
+ * Check for CSS compatibility issues when upgrading to v7. Performs the following checks:
133
+ * ...
134
+ * [View online docs...](https://bryntum.com/products/gantt/docs/api/Core/widget/ProgressBar#config-detectCSSCompatibilityIssues)
135
+ */
136
+ detectCSSCompatibilityIssues? : boolean
137
+ /**
138
+ * Disable or enable the widget. It is similar to [readOnly](https://bryntum.com/products/gantt/docs/api/Core/widget/Widget#config-readOnly) except a disabled widget
139
+ * cannot be focused, uses a different rendition (usually greyish) and does not allow selecting its value.
140
+ * ...
141
+ * [View online docs...](https://bryntum.com/products/gantt/docs/api/Core/widget/ProgressBar#config-disabled)
142
+ */
143
+ disabled? : boolean|'inert'
144
+ /**
145
+ * Controls the placement of this widget when it is added to a [panel's ](https://bryntum.com/products/gantt/docs/api/Core/widget/Panel)
146
+ * [strips collection](https://bryntum.com/products/gantt/docs/api/Core/widget/Panel#config-strips). Typical values for this config are `'top'`,
147
+ * `'bottom'`, `'left'`, or `'right'`, which cause the widget to be placed on that side of the panel's
148
+ * body. Such widgets are called "edge strips".
149
+ * ...
150
+ * [View online docs...](https://bryntum.com/products/gantt/docs/api/Core/widget/ProgressBar#config-dock)
151
+ */
152
+ dock? : 'top'|'bottom'|'left'|'right'|'start'|'end'|'header'|'pre-header'|object
153
+ /**
154
+ * *Only valid if this Widget is [floating](https://bryntum.com/products/gantt/docs/api/Core/widget/Widget#config-floating).*
155
+ * Set to `true` to be able to drag a widget freely on the page. Or set to an object with a ´handleSelector´
156
+ * property which controls when a drag should start.
157
+ * ...
158
+ * [View online docs...](https://bryntum.com/products/gantt/docs/api/Core/widget/ProgressBar#config-draggable)
159
+ */
160
+ draggable? : boolean|{
161
+ handleSelector?: string
162
+ }
163
+ /**
164
+ * An object specifying attributes to assign to the root element of this widget.
165
+ * Set `null` value to attribute to remove it.
166
+ * ...
167
+ * [View online docs...](https://bryntum.com/products/gantt/docs/api/Core/widget/ProgressBar#config-elementAttributes)
168
+ */
169
+ elementAttributes? : Record<string, string|null>
170
+ extraData? : any
171
+ /**
172
+ * When this widget is a child of a [Container](https://bryntum.com/products/gantt/docs/api/Core/widget/Container), it will by default be participating in a
173
+ * flexbox layout. This config allows you to set this widget's
174
+ * [flex](https://developer.mozilla.org/en-US/docs/Web/CSS/flex) style.
175
+ * This may be configured as a single number or a `&lt;flex-grow&gt; &lt;flex-shrink&gt; &lt;flex-basis&gt;` format string.
176
+ * numeric-only values are interpreted as the `flex-grow` value.
177
+ */
178
+ flex? : number|string
179
+ /**
180
+ * Set to `true` to move the widget out of the document flow and position it
181
+ * absolutely in browser viewport space.
182
+ */
183
+ floating? : boolean
184
+ /**
185
+ * Widget's height, used to set element `style.height`. Either specify a valid height string or a number,
186
+ * which will get 'px' appended. We recommend using CSS as the primary way to control height, but in some
187
+ * cases this config is convenient.
188
+ */
189
+ height? : string|number
190
+ /**
191
+ * Configure with true to make widget initially hidden.
192
+ */
193
+ hidden? : boolean
194
+ /**
195
+ * *Only valid if this Widget is [floating](https://bryntum.com/products/gantt/docs/api/Core/widget/Widget#config-floating).*
196
+ * ...
197
+ * [View online docs...](https://bryntum.com/products/gantt/docs/api/Core/widget/ProgressBar#config-hideAnimation)
198
+ */
199
+ hideAnimation? : boolean|object
200
+ /**
201
+ * The HTML to display initially or a function returning the markup (called at widget construction time).
202
+ * ...
203
+ * [View online docs...](https://bryntum.com/products/gantt/docs/api/Core/widget/ProgressBar#config-html)
204
+ * @param {Core.widget.Widget} widget The calling Widget
205
+ * @returns {string}
206
+ */
207
+ html? : string|((widget: Widget) => string)|DomConfig|DomConfig[]|VueConfig
208
+ /**
209
+ * The CSS class(es) to add when HTML content is being applied to this widget.
210
+ */
211
+ htmlCls? : string|object
212
+ /**
213
+ * Widget id, if not specified one will be generated. Also used for lookups through Widget.getById
214
+ */
215
+ id? : string
216
+ /**
217
+ * Determines if the widgets read-only state should be controlled by its parent.
218
+ * ...
219
+ * [View online docs...](https://bryntum.com/products/gantt/docs/api/Core/widget/ProgressBar#config-ignoreParentReadOnly)
220
+ */
221
+ ignoreParentReadOnly? : boolean
222
+ /**
223
+ * Element (or element id) to insert this widget before. If provided, [appendTo](https://bryntum.com/products/gantt/docs/api/Core/widget/Widget#config-appendTo) config is ignored.
224
+ */
225
+ insertBefore? : HTMLElement|string
226
+ /**
227
+ * Element (or element id) to append this widget element to, as a first child. If provided, [appendTo](https://bryntum.com/products/gantt/docs/api/Core/widget/Widget#config-appendTo) config is ignored.
228
+ */
229
+ insertFirst? : HTMLElement|string
230
+ /**
231
+ * An object whose keys are the [key](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/key) name
232
+ * and optional modifier prefixes: `'Ctrl+'`, `'Alt+'`, `'Meta+'`, and `'Shift+'` (case-insensitive). The values
233
+ * are the name of the instance method to call when the keystroke is received.
234
+ * ...
235
+ * [View online docs...](https://bryntum.com/products/gantt/docs/api/Core/widget/ProgressBar#config-keyMap)
236
+ */
237
+ keyMap? : Record<string, KeyMapConfig>
238
+ /**
239
+ * The label text to display at the top left
240
+ */
241
+ label? : string
242
+ /**
243
+ * The listener set for this object.
244
+ * ...
245
+ * [View online docs...](https://bryntum.com/products/gantt/docs/api/Core/widget/ProgressBar#config-listeners)
246
+ */
247
+ listeners? : ProgressBarListeners
248
+ /**
249
+ * A class translations of which are used for translating this entity.
250
+ * This is often used when translations of an item are defined on its container class.
251
+ * For example:
252
+ * ...
253
+ * [View online docs...](https://bryntum.com/products/gantt/docs/api/Core/widget/ProgressBar#config-localeClass)
254
+ */
255
+ localeClass? : typeof Base
256
+ /**
257
+ * Set to `false` to disable localization of this object.
258
+ */
259
+ localizable? : boolean
260
+ /**
261
+ * List of properties which values should be translated automatically upon a locale applying.
262
+ * In case there is a need to localize not typical value (not a String value or a field with re-defined setter/getter),
263
+ * you could use 'localeKey' meta configuration.
264
+ * Example:
265
+ * ...
266
+ * [View online docs...](https://bryntum.com/products/gantt/docs/api/Core/widget/ProgressBar#config-localizableProperties)
267
+ */
268
+ localizableProperties? : string[]
269
+ /**
270
+ * Widget's margin. This may be configured as a single number or a `TRBL` format string.
271
+ * numeric-only values are interpreted as pixels.
272
+ */
273
+ margin? : number|string
274
+ /**
275
+ * This config object contains the defaults for the [Mask](https://bryntum.com/products/gantt/docs/api/Core/widget/Mask) created for the
276
+ * [masked](https://bryntum.com/products/gantt/docs/api/Core/widget/Widget#config-masked) config. Any properties specified in the `masked` config will override these
277
+ * values.
278
+ */
279
+ maskDefaults? : MaskConfig
280
+ /**
281
+ * Set to `true` to apply the default mask to the widget. Alternatively, this can be the mask message or a
282
+ * [Mask](https://bryntum.com/products/gantt/docs/api/Core/widget/Mask) config object.
283
+ */
284
+ masked? : boolean|string|MaskConfig
285
+ /**
286
+ * Maximum value for progress calculation. When specified, value is treated as absolute.
287
+ */
288
+ max? : number
289
+ /**
290
+ * The element's maxHeight. Can be either a String or a Number (which will have 'px' appended). Note that
291
+ * like [height](https://bryntum.com/products/gantt/docs/api/Core/widget/Widget#config-height), *reading* the value will return the numeric value in pixels.
292
+ */
293
+ maxHeight? : string|number
294
+ /**
295
+ * *Only valid if this Widget is [floating](https://bryntum.com/products/gantt/docs/api/Core/widget/Widget#config-floating).*
296
+ * ...
297
+ * [View online docs...](https://bryntum.com/products/gantt/docs/api/Core/widget/ProgressBar#config-maximizeOnMobile)
298
+ */
299
+ maximizeOnMobile? : number|string
300
+ /**
301
+ * The elements maxWidth. Can be either a String or a Number (which will have 'px' appended). Note that
302
+ * like [width](https://bryntum.com/products/gantt/docs/api/Core/widget/Widget#config-width), *reading* the value will return the numeric value in pixels.
303
+ */
304
+ maxWidth? : string|number
305
+ /**
306
+ * The element's minHeight. Can be either a String or a Number (which will have 'px' appended). Note that
307
+ * like [height](https://bryntum.com/products/gantt/docs/api/Core/widget/Widget#config-height), *reading* the value will return the numeric value in pixels.
308
+ */
309
+ minHeight? : string|number
310
+ /**
311
+ * The elements minWidth. Can be either a String or a Number (which will have 'px' appended). Note that
312
+ * like [width](https://bryntum.com/products/gantt/docs/api/Core/widget/Widget#config-width), *reading* the value will return the numeric value in pixels.
313
+ */
314
+ minWidth? : string|number
315
+ /**
316
+ * When this is configured as `true` a [ResizeObserver](https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserver)
317
+ * is used to monitor this element for size changes caused by either style manipulation, or by CSS
318
+ * layout.
319
+ * ...
320
+ * [View online docs...](https://bryntum.com/products/gantt/docs/api/Core/widget/ProgressBar#config-monitorResize)
321
+ */
322
+ monitorResize? : boolean|{
323
+ immediate?: boolean
324
+ }
325
+ /**
326
+ * The owning Widget of this Widget. If this Widget is directly contained (that is, it is one of the
327
+ * [items](https://bryntum.com/products/gantt/docs/api/Core/widget/Container#property-items) of a Container), this config will be ignored. In this case
328
+ * the owner is <strong>always</strong> the encapsulating Container.
329
+ * ...
330
+ * [View online docs...](https://bryntum.com/products/gantt/docs/api/Core/widget/ProgressBar#config-owner)
331
+ */
332
+ owner? : Widget|any
333
+ /**
334
+ * Set to `true` when a widget is rendered into another widget's [contentElement](https://bryntum.com/products/gantt/docs/api/Core/widget/Widget#property-contentElement), but must
335
+ * not participate in the standard layout of that widget, and must be positioned relatively to that
336
+ * widget's [contentElement](https://bryntum.com/products/gantt/docs/api/Core/widget/Widget#property-contentElement).
337
+ * ...
338
+ * [View online docs...](https://bryntum.com/products/gantt/docs/api/Core/widget/ProgressBar#config-positioned)
339
+ */
340
+ positioned? : boolean
341
+ /**
342
+ * Prevent tooltip from being displayed on touch devices. Useful for example for buttons that display a
343
+ * menu on click etc, since the tooltip would be displayed at the same time.
344
+ */
345
+ preventTooltipOnTouch? : boolean
346
+ /**
347
+ * Whether this widget is read-only. This is only valid if the widget is an input
348
+ * field, <strong>or contains input fields at any depth</strong>.
349
+ * ...
350
+ * [View online docs...](https://bryntum.com/products/gantt/docs/api/Core/widget/ProgressBar#config-readOnly)
351
+ */
352
+ readOnly? : boolean
353
+ relayStoreEvents? : boolean
354
+ /**
355
+ * Configure as `true` to have the component display a translucent ripple when its
356
+ * [focusElement](https://bryntum.com/products/gantt/docs/api/Core/widget/Widget#property-focusElement), or [element](#Core/widget/Widget#property-element) is tapped <em>if the
357
+ * current theme supports ripples</em>. Out of the box, only the Material theme supports ripples.
358
+ * ...
359
+ * [View online docs...](https://bryntum.com/products/gantt/docs/api/Core/widget/ProgressBar#config-ripple)
360
+ */
361
+ ripple? : boolean|{
362
+ delegate?: string
363
+ color?: string
364
+ radius?: number
365
+ clip?: string
366
+ }
367
+ /**
368
+ * If you are rendering this widget to a shadow root inside a web component, set this config to the shadowRoot. If not inside a web component, set it to `document.body`
369
+ */
370
+ rootElement? : ShadowRoot|HTMLElement
371
+ /**
372
+ * This may be configured as `true` to make the widget's element use the `direction:rtl` style.
373
+ * ...
374
+ * [View online docs...](https://bryntum.com/products/gantt/docs/api/Core/widget/ProgressBar#config-rtl)
375
+ */
376
+ rtl? : boolean
377
+ /**
378
+ * Specifies whether (and optionally in which axes) a Widget may scroll. `true` means this widget may scroll
379
+ * in both axes. May be an object containing boolean `overflowX` and `overflowY` properties which are
380
+ * applied to CSS style properties `overflowX` and `overflowY`. If they are boolean, they are translated to
381
+ * CSS overflow properties thus:
382
+ * ...
383
+ * [View online docs...](https://bryntum.com/products/gantt/docs/api/Core/widget/ProgressBar#config-scrollable)
384
+ */
385
+ scrollable? : boolean|ScrollerConfig|Scroller
386
+ /**
387
+ * Defines what to do if document is scrolled while Widget is visible (only relevant when floating is set to `true`).
388
+ * Valid values: ´null´: do nothing, ´hide´: hide the widget or ´realign´: realign to the target if possible.
389
+ */
390
+ scrollAction? : 'hide'|'realign'|null
391
+ /**
392
+ * *Only valid if this Widget is [floating](https://bryntum.com/products/gantt/docs/api/Core/widget/Widget#config-floating).*
393
+ * ...
394
+ * [View online docs...](https://bryntum.com/products/gantt/docs/api/Core/widget/ProgressBar#config-showAnimation)
395
+ */
396
+ showAnimation? : boolean|object
397
+ /**
398
+ * Set to `false` to not show the tooltip when this widget is [disabled](https://bryntum.com/products/gantt/docs/api/Core/widget/Widget#property-disabled)
399
+ */
400
+ showTooltipWhenDisabled? : boolean
401
+ /**
402
+ * Programmatic control over how many columns to span when used in a grid layout.
403
+ */
404
+ span? : number
405
+ /**
406
+ * A configuration for the [tab](https://bryntum.com/products/gantt/docs/api/Core/widget/Tab) created for this widget when it is placed in a
407
+ * [TabPanel](https://bryntum.com/products/gantt/docs/api/Core/widget/TabPanel). For example, this config can be used to control the icon of the `tab` for
408
+ * this widget:
409
+ * ...
410
+ * [View online docs...](https://bryntum.com/products/gantt/docs/api/Core/widget/ProgressBar#config-tab)
411
+ */
412
+ tab? : boolean|TabConfig
413
+ /**
414
+ * The tag name of this Widget's root element
415
+ */
416
+ tag? : string
417
+ /**
418
+ * Text alignment: 'left', 'center' or 'right'. Also accepts direction neutral 'start' and 'end'.
419
+ * ...
420
+ * [View online docs...](https://bryntum.com/products/gantt/docs/api/Core/widget/ProgressBar#config-textAlign)
421
+ */
422
+ textAlign? : 'left'|'center'|'right'|'start'|'end'
423
+ /**
424
+ * A title to display for the widget. Only in effect when inside a container that uses it (such as TabPanel)
425
+ */
426
+ title? : string
427
+ /**
428
+ * Tooltip for the widget, either as a string or as a Tooltip config object.
429
+ * ...
430
+ * [View online docs...](https://bryntum.com/products/gantt/docs/api/Core/widget/ProgressBar#config-tooltip)
431
+ */
432
+ tooltip? : string|TooltipConfig|null
433
+ type? : 'progressbar'
434
+ /**
435
+ * Custom CSS class name suffixes to apply to the elements rendered by this widget. This may be specified
436
+ * as a space separated string, an array of strings, or as an object in which property names with truthy
437
+ * values are used as the class names.
438
+ * ...
439
+ * [View online docs...](https://bryntum.com/products/gantt/docs/api/Core/widget/ProgressBar#config-ui)
440
+ */
441
+ ui? : string|object
442
+ /**
443
+ * Progress value. If max is specified, this is an absolute value (e.g., 8 out of 10).
444
+ * If max is not specified, this should be between 0 and 1 (e.g., 0.5 for 50%)
445
+ */
446
+ value? : number
447
+ /**
448
+ * Template function that can be used to customize the displayed value
449
+ * @param {number} value The value to provide a textual value for
450
+ * @param {number} max The max value of the progress bar
451
+ * @returns {string,number,void}
452
+ */
453
+ valueRenderer? : (value: number, max: number) => string|number|void
454
+ /**
455
+ * The value text to display at the top right
456
+ * If not specified and max is provided, will auto-generate as "value/max"
457
+ */
458
+ valueText? : string
459
+ /**
460
+ * A widgets weight determines its position among siblings when added to a [Container](https://bryntum.com/products/gantt/docs/api/Core/widget/Container).
461
+ * Higher weights go further down.
462
+ */
463
+ weight? : number
464
+ /**
465
+ * Widget's width, used to set element `style.width`. Either specify a valid width string or a number, which
466
+ * will get 'px' appended. We recommend using CSS as the primary way to control width, but in some cases
467
+ * this config is convenient.
468
+ */
469
+ width? : string|number
470
+ /**
471
+ * The x position for the widget.
472
+ * ...
473
+ * [View online docs...](https://bryntum.com/products/gantt/docs/api/Core/widget/ProgressBar#config-x)
474
+ */
475
+ x? : number
476
+ /**
477
+ * The y position for the widget.
478
+ * ...
479
+ * [View online docs...](https://bryntum.com/products/gantt/docs/api/Core/widget/ProgressBar#config-y)
480
+ */
481
+ y? : number
482
+
483
+ // Events
484
+ /**
485
+ * Fires before an object is destroyed.
486
+ * @param {object} event Event object
487
+ * @param {Core.Base} event.source The Object that is being destroyed.
488
+ */
489
+ onBeforeDestroy? : ((event: { source: Base }) => void)|string
490
+ /**
491
+ * Triggered before a widget is hidden. Return `false` to prevent the action.
492
+ * @param {object} event Event object
493
+ * @param {Core.widget.Widget} event.source The widget being hidden.
494
+ */
495
+ onBeforeHide? : ((event: { source: Widget }) => Promise<boolean>|boolean|void)|string
496
+ /**
497
+ * Triggered before a widget is shown. Return `false` to prevent the action.
498
+ * @param {object} event Event object
499
+ * @param {Core.widget.Widget,any} event.source The widget being shown
500
+ */
501
+ onBeforeShow? : ((event: { source: Widget|any }) => Promise<boolean>|boolean|void)|string
502
+ /**
503
+ * Fires when any other event is fired from the object.
504
+ * ...
505
+ * [View online docs...](https://bryntum.com/products/gantt/docs/api/Core/widget/ProgressBar#event-catchAll)
506
+ * @param {object} event Event object
507
+ * @param {{[key: string]: any, type: string}} event.event The Object that contains event details
508
+ * @param {string} event.event.type The type of the event which is caught by the listener
509
+ */
510
+ onCatchAll? : ((event: {[key: string]: any, type: string}) => void)|string
511
+ /**
512
+ * Fires when an object is destroyed.
513
+ * @param {object} event Event object
514
+ * @param {Core.Base} event.source The Object that is being destroyed.
515
+ */
516
+ onDestroy? : ((event: { source: Base }) => void)|string
517
+ /**
518
+ * Triggered when a widget's [element](https://bryntum.com/products/gantt/docs/api/Core/widget/Widget#property-element) is available.
519
+ * @param {object} event Event object
520
+ * @param {HTMLElement} event.element The Widget's element.
521
+ */
522
+ onElementCreated? : ((event: { element: HTMLElement }) => void)|string
523
+ /**
524
+ * Fired when focus enters this Widget.
525
+ * @param {object} event Event object
526
+ * @param {Core.widget.Widget} event.source This Widget
527
+ * @param {HTMLElement} event.fromElement The element which lost focus.
528
+ * @param {HTMLElement} event.toElement The element which gained focus.
529
+ * @param {Core.widget.Widget} event.fromWidget The widget which lost focus.
530
+ * @param {Core.widget.Widget} event.toWidget The widget which gained focus.
531
+ * @param {boolean} event.backwards `true` if the `toElement` is before the `fromElement` in document order.
532
+ */
533
+ onFocusIn? : ((event: { source: Widget, fromElement: HTMLElement, toElement: HTMLElement, fromWidget: Widget, toWidget: Widget, backwards: boolean }) => void)|string
534
+ /**
535
+ * Fired when focus exits this Widget's ownership tree. This is different from a `blur` event.
536
+ * focus moving from within this Widget's ownership tree, even if there are floating widgets
537
+ * will not trigger this event. This is when focus exits this widget completely.
538
+ * @param {object} event Event object
539
+ * @param {Core.widget.Widget} event.source This Widget
540
+ * @param {HTMLElement} event.fromElement The element which lost focus.
541
+ * @param {HTMLElement} event.toElement The element which gained focus.
542
+ * @param {Core.widget.Widget} event.fromWidget The widget which lost focus.
543
+ * @param {Core.widget.Widget} event.toWidget The widget which gained focus.
544
+ * @param {boolean} event.backwards `true` if the `toElement` is before the `fromElement` in document order.
545
+ */
546
+ onFocusOut? : ((event: { source: Widget, fromElement: HTMLElement, toElement: HTMLElement, fromWidget: Widget, toWidget: Widget, backwards: boolean }) => void)|string
547
+ /**
548
+ * Triggered after a widget was hidden
549
+ * @param {object} event Event object
550
+ * @param {Core.widget.Widget} event.source The widget
551
+ */
552
+ onHide? : ((event: { source: Widget }) => void)|string
553
+ /**
554
+ * Triggered when a widget which had been in a non-visible state for any reason
555
+ * achieves visibility.
556
+ * ...
557
+ * [View online docs...](https://bryntum.com/products/gantt/docs/api/Core/widget/ProgressBar#event-paint)
558
+ * @param {object} event Event object
559
+ * @param {Core.widget.Widget} event.source The widget being painted.
560
+ * @param {boolean} event.firstPaint `true` if this is the first paint.
561
+ */
562
+ onPaint? : ((event: { source: Widget, firstPaint: boolean }) => void)|string
563
+ /**
564
+ * Fired when a Widget's read only state is toggled
565
+ * @param {object} event Event object
566
+ * @param {boolean} event.readOnly Read only or not
567
+ */
568
+ onReadOnly? : ((event: { readOnly: boolean }) => void)|string
569
+ /**
570
+ * This event is fired after a widget's elements have been synchronized due to a direct or indirect call
571
+ * to [recompose](https://bryntum.com/products/gantt/docs/api/Core/widget/Widget#function-recompose), if this results in some change to the widget's rendered DOM elements.
572
+ */
573
+ onRecompose? : (() => void)|string
574
+ /**
575
+ * Fired when the encapsulating element of a Widget resizes *only when [monitorResize](https://bryntum.com/products/gantt/docs/api/Core/widget/Widget#config-monitorResize) is `true`*.
576
+ * @param {object} event Event object
577
+ * @param {Core.widget.Widget} event.source This Widget
578
+ * @param {number} event.width The new width
579
+ * @param {number} event.height The new height
580
+ * @param {number} event.oldWidth The old width
581
+ * @param {number} event.oldHeight The old height
582
+ */
583
+ onResize? : ((event: { source: Widget, width: number, height: number, oldWidth: number, oldHeight: number }) => void)|string
584
+ /**
585
+ * Triggered after a widget is shown.
586
+ * @param {object} event Event object
587
+ * @param {Core.widget.Widget} event.source The widget
588
+ */
589
+ onShow? : ((event: { source: Widget }) => void)|string
590
+
591
+ }
592
+
593
+ export class BryntumProgressBar extends React.Component<BryntumProgressBarProps> {
594
+
595
+ static instanceClass = ProgressBar;
596
+
597
+ static instanceName = 'ProgressBar';
598
+
599
+ processWidgetContent = processWidgetContent;
600
+
601
+ static configNames = [
602
+ 'adopt',
603
+ 'align',
604
+ 'anchor',
605
+ 'ariaDescription',
606
+ 'ariaLabel',
607
+ 'bubbleEvents',
608
+ 'centered',
609
+ 'config',
610
+ 'constrainTo',
611
+ 'contentElementCls',
612
+ 'dataField',
613
+ 'defaultBindProperty',
614
+ 'detectCSSCompatibilityIssues',
615
+ 'dock',
616
+ 'draggable',
617
+ 'elementAttributes',
618
+ 'floating',
619
+ 'hideAnimation',
620
+ 'htmlCls',
621
+ 'ignoreParentReadOnly',
622
+ 'listeners',
623
+ 'localeClass',
624
+ 'localizable',
625
+ 'localizableProperties',
626
+ 'maskDefaults',
627
+ 'masked',
628
+ 'monitorResize',
629
+ 'owner',
630
+ 'positioned',
631
+ 'preventTooltipOnTouch',
632
+ 'relayStoreEvents',
633
+ 'ripple',
634
+ 'rootElement',
635
+ 'scrollAction',
636
+ 'showAnimation',
637
+ 'showTooltipWhenDisabled',
638
+ 'tab',
639
+ 'tag',
640
+ 'textAlign',
641
+ 'title',
642
+ 'type',
643
+ 'ui',
644
+ 'weight'
645
+ ];
646
+
647
+ static propertyConfigNames = [
648
+ 'alignSelf',
649
+ 'appendTo',
650
+ 'callOnFunctions',
651
+ 'catchEventHandlerExceptions',
652
+ 'cls',
653
+ 'color',
654
+ 'column',
655
+ 'content',
656
+ 'dataset',
657
+ 'disabled',
658
+ 'extraData',
659
+ 'flex',
660
+ 'height',
661
+ 'hidden',
662
+ 'html',
663
+ 'id',
664
+ 'insertBefore',
665
+ 'insertFirst',
666
+ 'keyMap',
667
+ 'label',
668
+ 'margin',
669
+ 'max',
670
+ 'maxHeight',
671
+ 'maximizeOnMobile',
672
+ 'maxWidth',
673
+ 'minHeight',
674
+ 'minWidth',
675
+ 'onBeforeDestroy',
676
+ 'onBeforeHide',
677
+ 'onBeforeShow',
678
+ 'onCatchAll',
679
+ 'onDestroy',
680
+ 'onElementCreated',
681
+ 'onFocusIn',
682
+ 'onFocusOut',
683
+ 'onHide',
684
+ 'onPaint',
685
+ 'onReadOnly',
686
+ 'onRecompose',
687
+ 'onResize',
688
+ 'onShow',
689
+ 'readOnly',
690
+ 'rtl',
691
+ 'scrollable',
692
+ 'span',
693
+ 'tooltip',
694
+ 'value',
695
+ 'valueRenderer',
696
+ 'valueText',
697
+ 'width',
698
+ 'x',
699
+ 'y'
700
+ ];
701
+
702
+ static propertyNames = [
703
+ 'anchorSize',
704
+ 'focusVisible',
705
+ 'parent'
706
+ ];
707
+
708
+ // Component instance
709
+ instance!: ProgressBar;
710
+
711
+ // Component element
712
+ element! : HTMLElement;
713
+
714
+ componentDidMount(): void {
715
+ this.instance = createWidget(this);
716
+ }
717
+
718
+ componentWillUnmount(): void {
719
+ // @ts-ignore
720
+ this.instance?.destroy?.();
721
+ }
722
+
723
+ /**
724
+ * Component about to be updated, from changing a prop using state.
725
+ * React to it depending on what changed and prevent react from re-rendering our component.
726
+ * @param nextProps
727
+ * @param nextState
728
+ * @returns {boolean}
729
+ */
730
+ shouldComponentUpdate(nextProps: Readonly<BryntumProgressBarProps>, nextState: Readonly<{}>): boolean {
731
+ return shouldComponentUpdate(this, nextProps, nextState);
732
+ }
733
+
734
+ render(): React.ReactNode {
735
+
736
+ const className = `b-react-progress-bar-container`;
737
+ return (
738
+ <div className={className} ref={(element) => (this.element = element!)}></div>
739
+ );
740
+
741
+ }
742
+ }