@bryntum/scheduler-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 (296) 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/BryntumButton.d.ts +206 -0
  6. package/lib/BryntumButton.js +148 -0
  7. package/lib/BryntumButton.js.map +1 -0
  8. package/lib/BryntumButtonGroup.d.ts +201 -0
  9. package/lib/BryntumButtonGroup.js +154 -0
  10. package/lib/BryntumButtonGroup.js.map +1 -0
  11. package/lib/BryntumChatPanel.d.ts +246 -0
  12. package/lib/BryntumChatPanel.js +178 -0
  13. package/lib/BryntumChatPanel.js.map +1 -0
  14. package/lib/BryntumCheckbox.d.ts +239 -0
  15. package/lib/BryntumCheckbox.js +168 -0
  16. package/lib/BryntumCheckbox.js.map +1 -0
  17. package/lib/BryntumCheckboxGroup.d.ts +249 -0
  18. package/lib/BryntumCheckboxGroup.js +182 -0
  19. package/lib/BryntumCheckboxGroup.js.map +1 -0
  20. package/lib/BryntumChecklistFilterCombo.d.ts +268 -0
  21. package/lib/BryntumChecklistFilterCombo.js +205 -0
  22. package/lib/BryntumChecklistFilterCombo.js.map +1 -0
  23. package/lib/BryntumChipView.d.ts +208 -0
  24. package/lib/BryntumChipView.js +152 -0
  25. package/lib/BryntumChipView.js.map +1 -0
  26. package/lib/BryntumCodeEditor.d.ts +237 -0
  27. package/lib/BryntumCodeEditor.js +176 -0
  28. package/lib/BryntumCodeEditor.js.map +1 -0
  29. package/lib/BryntumColorField.d.ts +231 -0
  30. package/lib/BryntumColorField.js +169 -0
  31. package/lib/BryntumColorField.js.map +1 -0
  32. package/lib/BryntumCombo.d.ts +266 -0
  33. package/lib/BryntumCombo.js +202 -0
  34. package/lib/BryntumCombo.js.map +1 -0
  35. package/lib/BryntumContainer.d.ts +185 -0
  36. package/lib/BryntumContainer.js +148 -0
  37. package/lib/BryntumContainer.js.map +1 -0
  38. package/lib/BryntumDateField.d.ts +241 -0
  39. package/lib/BryntumDateField.js +178 -0
  40. package/lib/BryntumDateField.js.map +1 -0
  41. package/lib/BryntumDatePicker.d.ts +310 -0
  42. package/lib/BryntumDatePicker.js +213 -0
  43. package/lib/BryntumDatePicker.js.map +1 -0
  44. package/lib/BryntumDateRangeField.d.ts +242 -0
  45. package/lib/BryntumDateRangeField.js +179 -0
  46. package/lib/BryntumDateRangeField.js.map +1 -0
  47. package/lib/BryntumDateTimeField.d.ts +222 -0
  48. package/lib/BryntumDateTimeField.js +158 -0
  49. package/lib/BryntumDateTimeField.js.map +1 -0
  50. package/lib/BryntumDemoCodeEditor.d.ts +240 -0
  51. package/lib/BryntumDemoCodeEditor.js +179 -0
  52. package/lib/BryntumDemoCodeEditor.js.map +1 -0
  53. package/lib/BryntumDemoHeader.d.ts +30 -0
  54. package/lib/BryntumDemoHeader.js +84 -0
  55. package/lib/BryntumDemoHeader.js.map +1 -0
  56. package/lib/BryntumDisplayField.d.ts +227 -0
  57. package/lib/BryntumDisplayField.js +163 -0
  58. package/lib/BryntumDisplayField.js.map +1 -0
  59. package/lib/BryntumDurationField.d.ts +234 -0
  60. package/lib/BryntumDurationField.js +175 -0
  61. package/lib/BryntumDurationField.js.map +1 -0
  62. package/lib/BryntumEditor.d.ts +249 -0
  63. package/lib/BryntumEditor.js +167 -0
  64. package/lib/BryntumEditor.js.map +1 -0
  65. package/lib/BryntumEventColorField.d.ts +231 -0
  66. package/lib/BryntumEventColorField.js +169 -0
  67. package/lib/BryntumEventColorField.js.map +1 -0
  68. package/lib/BryntumFieldFilterPicker.d.ts +202 -0
  69. package/lib/BryntumFieldFilterPicker.js +161 -0
  70. package/lib/BryntumFieldFilterPicker.js.map +1 -0
  71. package/lib/BryntumFieldFilterPickerGroup.d.ts +207 -0
  72. package/lib/BryntumFieldFilterPickerGroup.js +164 -0
  73. package/lib/BryntumFieldFilterPickerGroup.js.map +1 -0
  74. package/lib/BryntumFieldSet.d.ts +235 -0
  75. package/lib/BryntumFieldSet.js +174 -0
  76. package/lib/BryntumFieldSet.js.map +1 -0
  77. package/lib/BryntumFileField.d.ts +228 -0
  78. package/lib/BryntumFileField.js +164 -0
  79. package/lib/BryntumFileField.js.map +1 -0
  80. package/lib/BryntumFilePicker.d.ts +192 -0
  81. package/lib/BryntumFilePicker.js +153 -0
  82. package/lib/BryntumFilePicker.js.map +1 -0
  83. package/lib/BryntumFilterField.d.ts +234 -0
  84. package/lib/BryntumFilterField.js +171 -0
  85. package/lib/BryntumFilterField.js.map +1 -0
  86. package/lib/BryntumFullscreenButton.d.ts +8 -0
  87. package/lib/BryntumFullscreenButton.js +37 -0
  88. package/lib/BryntumFullscreenButton.js.map +1 -0
  89. package/lib/BryntumGrid.d.ts +844 -0
  90. package/lib/BryntumGrid.js +335 -0
  91. package/lib/BryntumGrid.js.map +1 -0
  92. package/lib/BryntumGridBase.d.ts +842 -0
  93. package/lib/BryntumGridBase.js +333 -0
  94. package/lib/BryntumGridBase.js.map +1 -0
  95. package/lib/BryntumGridChartDesigner.d.ts +162 -0
  96. package/lib/BryntumGridChartDesigner.js +127 -0
  97. package/lib/BryntumGridChartDesigner.js.map +1 -0
  98. package/lib/BryntumGridFieldFilterPicker.d.ts +203 -0
  99. package/lib/BryntumGridFieldFilterPicker.js +162 -0
  100. package/lib/BryntumGridFieldFilterPicker.js.map +1 -0
  101. package/lib/BryntumGridFieldFilterPickerGroup.d.ts +206 -0
  102. package/lib/BryntumGridFieldFilterPickerGroup.js +163 -0
  103. package/lib/BryntumGridFieldFilterPickerGroup.js.map +1 -0
  104. package/lib/BryntumGroupBar.d.ts +208 -0
  105. package/lib/BryntumGroupBar.js +152 -0
  106. package/lib/BryntumGroupBar.js.map +1 -0
  107. package/lib/BryntumHint.d.ts +260 -0
  108. package/lib/BryntumHint.js +184 -0
  109. package/lib/BryntumHint.js.map +1 -0
  110. package/lib/BryntumLabel.d.ts +161 -0
  111. package/lib/BryntumLabel.js +126 -0
  112. package/lib/BryntumLabel.js.map +1 -0
  113. package/lib/BryntumList.d.ts +205 -0
  114. package/lib/BryntumList.js +149 -0
  115. package/lib/BryntumList.js.map +1 -0
  116. package/lib/BryntumMenu.d.ts +264 -0
  117. package/lib/BryntumMenu.js +187 -0
  118. package/lib/BryntumMenu.js.map +1 -0
  119. package/lib/BryntumMonthPicker.d.ts +240 -0
  120. package/lib/BryntumMonthPicker.js +173 -0
  121. package/lib/BryntumMonthPicker.js.map +1 -0
  122. package/lib/BryntumNumberField.d.ts +234 -0
  123. package/lib/BryntumNumberField.js +170 -0
  124. package/lib/BryntumNumberField.js.map +1 -0
  125. package/lib/BryntumPagingToolbar.d.ts +210 -0
  126. package/lib/BryntumPagingToolbar.js +156 -0
  127. package/lib/BryntumPagingToolbar.js.map +1 -0
  128. package/lib/BryntumPanel.d.ts +231 -0
  129. package/lib/BryntumPanel.js +170 -0
  130. package/lib/BryntumPanel.js.map +1 -0
  131. package/lib/BryntumPasswordField.d.ts +226 -0
  132. package/lib/BryntumPasswordField.js +162 -0
  133. package/lib/BryntumPasswordField.js.map +1 -0
  134. package/lib/BryntumProjectCombo.d.ts +267 -0
  135. package/lib/BryntumProjectCombo.js +203 -0
  136. package/lib/BryntumProjectCombo.js.map +1 -0
  137. package/lib/BryntumRadio.d.ts +239 -0
  138. package/lib/BryntumRadio.js +168 -0
  139. package/lib/BryntumRadio.js.map +1 -0
  140. package/lib/BryntumRadioGroup.d.ts +239 -0
  141. package/lib/BryntumRadioGroup.js +178 -0
  142. package/lib/BryntumRadioGroup.js.map +1 -0
  143. package/lib/BryntumResourceCombo.d.ts +267 -0
  144. package/lib/BryntumResourceCombo.js +203 -0
  145. package/lib/BryntumResourceCombo.js.map +1 -0
  146. package/lib/BryntumResourceFilter.d.ts +214 -0
  147. package/lib/BryntumResourceFilter.js +154 -0
  148. package/lib/BryntumResourceFilter.js.map +1 -0
  149. package/lib/BryntumScheduler.d.ts +2037 -0
  150. package/lib/BryntumScheduler.js +642 -0
  151. package/lib/BryntumScheduler.js.map +1 -0
  152. package/lib/BryntumSchedulerBase.d.ts +2036 -0
  153. package/lib/BryntumSchedulerBase.js +641 -0
  154. package/lib/BryntumSchedulerBase.js.map +1 -0
  155. package/lib/BryntumSchedulerDatePicker.d.ts +313 -0
  156. package/lib/BryntumSchedulerDatePicker.js +216 -0
  157. package/lib/BryntumSchedulerDatePicker.js.map +1 -0
  158. package/lib/BryntumSchedulerProjectModel.d.ts +90 -0
  159. package/lib/BryntumSchedulerProjectModel.js +98 -0
  160. package/lib/BryntumSchedulerProjectModel.js.map +1 -0
  161. package/lib/BryntumSlideToggle.d.ts +239 -0
  162. package/lib/BryntumSlideToggle.js +168 -0
  163. package/lib/BryntumSlideToggle.js.map +1 -0
  164. package/lib/BryntumSlider.d.ts +184 -0
  165. package/lib/BryntumSlider.js +142 -0
  166. package/lib/BryntumSlider.js.map +1 -0
  167. package/lib/BryntumSplitter.d.ts +174 -0
  168. package/lib/BryntumSplitter.js +130 -0
  169. package/lib/BryntumSplitter.js.map +1 -0
  170. package/lib/BryntumTabPanel.d.ts +249 -0
  171. package/lib/BryntumTabPanel.js +178 -0
  172. package/lib/BryntumTabPanel.js.map +1 -0
  173. package/lib/BryntumTextAreaField.d.ts +228 -0
  174. package/lib/BryntumTextAreaField.js +164 -0
  175. package/lib/BryntumTextAreaField.js.map +1 -0
  176. package/lib/BryntumTextAreaPickerField.d.ts +232 -0
  177. package/lib/BryntumTextAreaPickerField.js +170 -0
  178. package/lib/BryntumTextAreaPickerField.js.map +1 -0
  179. package/lib/BryntumTextField.d.ts +229 -0
  180. package/lib/BryntumTextField.js +166 -0
  181. package/lib/BryntumTextField.js.map +1 -0
  182. package/lib/BryntumThemeCombo.d.ts +17 -0
  183. package/lib/BryntumThemeCombo.js +75 -0
  184. package/lib/BryntumThemeCombo.js.map +1 -0
  185. package/lib/BryntumTimeField.d.ts +238 -0
  186. package/lib/BryntumTimeField.js +175 -0
  187. package/lib/BryntumTimeField.js.map +1 -0
  188. package/lib/BryntumTimePicker.d.ts +192 -0
  189. package/lib/BryntumTimePicker.js +154 -0
  190. package/lib/BryntumTimePicker.js.map +1 -0
  191. package/lib/BryntumTimelineHistogram.d.ts +1183 -0
  192. package/lib/BryntumTimelineHistogram.js +448 -0
  193. package/lib/BryntumTimelineHistogram.js.map +1 -0
  194. package/lib/BryntumToolbar.d.ts +209 -0
  195. package/lib/BryntumToolbar.js +155 -0
  196. package/lib/BryntumToolbar.js.map +1 -0
  197. package/lib/BryntumTreeCombo.d.ts +266 -0
  198. package/lib/BryntumTreeCombo.js +202 -0
  199. package/lib/BryntumTreeCombo.js.map +1 -0
  200. package/lib/BryntumTreeGrid.d.ts +843 -0
  201. package/lib/BryntumTreeGrid.js +334 -0
  202. package/lib/BryntumTreeGrid.js.map +1 -0
  203. package/lib/BryntumUndoRedo.d.ts +189 -0
  204. package/lib/BryntumUndoRedo.js +152 -0
  205. package/lib/BryntumUndoRedo.js.map +1 -0
  206. package/lib/BryntumViewPresetCombo.d.ts +215 -0
  207. package/lib/BryntumViewPresetCombo.js +158 -0
  208. package/lib/BryntumViewPresetCombo.js.map +1 -0
  209. package/lib/BryntumWidget.d.ts +160 -0
  210. package/lib/BryntumWidget.js +125 -0
  211. package/lib/BryntumWidget.js.map +1 -0
  212. package/lib/BryntumYearPicker.d.ts +240 -0
  213. package/lib/BryntumYearPicker.js +177 -0
  214. package/lib/BryntumYearPicker.js.map +1 -0
  215. package/lib/WrapperHelper.d.ts +26 -0
  216. package/lib/WrapperHelper.js +569 -0
  217. package/lib/WrapperHelper.js.map +1 -0
  218. package/lib/index.d.ts +71 -0
  219. package/lib/index.js +72 -0
  220. package/lib/index.js.map +1 -0
  221. package/license.pdf +0 -0
  222. package/licenses.md +310 -0
  223. package/package.json +25 -0
  224. package/src/BryntumAIFilterField.tsx +998 -0
  225. package/src/BryntumButton.tsx +887 -0
  226. package/src/BryntumButtonGroup.tsx +902 -0
  227. package/src/BryntumChatPanel.tsx +1082 -0
  228. package/src/BryntumCheckbox.tsx +1000 -0
  229. package/src/BryntumCheckboxGroup.tsx +1116 -0
  230. package/src/BryntumChecklistFilterCombo.tsx +1241 -0
  231. package/src/BryntumChipView.tsx +914 -0
  232. package/src/BryntumCodeEditor.tsx +1065 -0
  233. package/src/BryntumColorField.tsx +995 -0
  234. package/src/BryntumCombo.tsx +1230 -0
  235. package/src/BryntumContainer.tsx +861 -0
  236. package/src/BryntumDateField.tsx +1055 -0
  237. package/src/BryntumDatePicker.tsx +1340 -0
  238. package/src/BryntumDateRangeField.tsx +1057 -0
  239. package/src/BryntumDateTimeField.tsx +942 -0
  240. package/src/BryntumDemoCodeEditor.tsx +1081 -0
  241. package/src/BryntumDemoHeader.tsx +160 -0
  242. package/src/BryntumDisplayField.tsx +979 -0
  243. package/src/BryntumDurationField.tsx +1038 -0
  244. package/src/BryntumEditor.tsx +1013 -0
  245. package/src/BryntumEventColorField.tsx +995 -0
  246. package/src/BryntumFieldFilterPicker.tsx +943 -0
  247. package/src/BryntumFieldFilterPickerGroup.tsx +976 -0
  248. package/src/BryntumFieldSet.tsx +1058 -0
  249. package/src/BryntumFileField.tsx +982 -0
  250. package/src/BryntumFilePicker.tsx +888 -0
  251. package/src/BryntumFilterField.tsx +1023 -0
  252. package/src/BryntumFullscreenButton.tsx +45 -0
  253. package/src/BryntumGrid.tsx +2402 -0
  254. package/src/BryntumGridBase.tsx +2399 -0
  255. package/src/BryntumGridChartDesigner.tsx +728 -0
  256. package/src/BryntumGridFieldFilterPicker.tsx +956 -0
  257. package/src/BryntumGridFieldFilterPickerGroup.tsx +970 -0
  258. package/src/BryntumGroupBar.tsx +914 -0
  259. package/src/BryntumHint.tsx +1125 -0
  260. package/src/BryntumLabel.tsx +720 -0
  261. package/src/BryntumList.tsx +891 -0
  262. package/src/BryntumMenu.tsx +1143 -0
  263. package/src/BryntumMonthPicker.tsx +1056 -0
  264. package/src/BryntumNumberField.tsx +1025 -0
  265. package/src/BryntumPagingToolbar.tsx +924 -0
  266. package/src/BryntumPanel.tsx +1035 -0
  267. package/src/BryntumPasswordField.tsx +969 -0
  268. package/src/BryntumProjectCombo.tsx +1232 -0
  269. package/src/BryntumRadio.tsx +1000 -0
  270. package/src/BryntumRadioGroup.tsx +1088 -0
  271. package/src/BryntumResourceCombo.tsx +1235 -0
  272. package/src/BryntumResourceFilter.tsx +930 -0
  273. package/src/BryntumScheduler.tsx +5182 -0
  274. package/src/BryntumSchedulerBase.tsx +5180 -0
  275. package/src/BryntumSchedulerDatePicker.tsx +1364 -0
  276. package/src/BryntumSchedulerProjectModel.tsx +423 -0
  277. package/src/BryntumSlideToggle.tsx +1000 -0
  278. package/src/BryntumSlider.tsx +815 -0
  279. package/src/BryntumSplitter.tsx +754 -0
  280. package/src/BryntumTabPanel.tsx +1087 -0
  281. package/src/BryntumTextAreaField.tsx +981 -0
  282. package/src/BryntumTextAreaPickerField.tsx +1002 -0
  283. package/src/BryntumTextField.tsx +987 -0
  284. package/src/BryntumThemeCombo.tsx +101 -0
  285. package/src/BryntumTimeField.tsx +1036 -0
  286. package/src/BryntumTimePicker.tsx +893 -0
  287. package/src/BryntumTimelineHistogram.tsx +3425 -0
  288. package/src/BryntumToolbar.tsx +917 -0
  289. package/src/BryntumTreeCombo.tsx +1230 -0
  290. package/src/BryntumTreeGrid.tsx +2401 -0
  291. package/src/BryntumUndoRedo.tsx +885 -0
  292. package/src/BryntumViewPresetCombo.tsx +914 -0
  293. package/src/BryntumWidget.tsx +715 -0
  294. package/src/BryntumYearPicker.tsx +1070 -0
  295. package/src/WrapperHelper.tsx +1125 -0
  296. package/src/index.ts +76 -0
@@ -0,0 +1,1038 @@
1
+ /**
2
+ * React wrapper for Bryntum DurationField
3
+ */
4
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
5
+ import React, { RefObject } from 'react';
6
+ import { AlignSpec, Base, ContainerItemConfig, DomConfig, Duration, DurationConfig, DurationField, DurationFieldListeners, DurationUnit, Field, FieldContainer, FieldContainerConfig, FieldTriggerConfig, KeyMapConfig, MaskConfig, Rectangle, Scroller, TabConfig, TooltipConfig, VueConfig, Widget } from '@bryntum/scheduler';
7
+
8
+ import { createWidget, shouldComponentUpdate, processWidgetContent } from './WrapperHelper.js';
9
+
10
+ export type BryntumDurationFieldProps = {
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/scheduler/docs/api/Core/widget/DurationField#config-adopt)
17
+ */
18
+ adopt? : HTMLElement|string
19
+ /**
20
+ * *Only valid if this Widget is [floating](https://bryntum.com/products/scheduler/docs/api/Core/widget/Widget#config-floating).*
21
+ * ...
22
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/DurationField#config-align)
23
+ */
24
+ align? : AlignSpec|string
25
+ /**
26
+ * When this widget is a child of a [Container](https://bryntum.com/products/scheduler/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
+ * Comma-separated list of units to allow in this field, e.g. "day,hour,year". Leave blank to allow all
33
+ * valid units (the default)
34
+ */
35
+ allowedUnits? : string
36
+ /**
37
+ * Set to `true` to allow negative duration
38
+ */
39
+ allowNegative? : boolean
40
+ /**
41
+ * *Only valid if this Widget is [floating](https://bryntum.com/products/scheduler/docs/api/Core/widget/Widget#config-floating) and being shown through [showBy](#Core/widget/Widget#function-showBy).*
42
+ * `true` to show a connector arrow pointing to the align target.
43
+ */
44
+ anchor? : boolean
45
+ /**
46
+ * Element (or the id of an element) to append this widget's element to. Can be configured, or set once at
47
+ * runtime. To access the element of a rendered widget, see [element](https://bryntum.com/products/scheduler/docs/api/Core/widget/Widget#property-element).
48
+ */
49
+ appendTo? : HTMLElement|string
50
+ /**
51
+ * A localizable string (May contain `'L{}'` tokens which resolve in the locale file) to inject
52
+ * into an element which will be linked using the `aria-describedby` attribute.
53
+ * ...
54
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/DurationField#config-ariaDescription)
55
+ */
56
+ ariaDescription? : string
57
+ /**
58
+ * A localizable string (May contain `'L{}'` tokens which resolve in the locale file) to inject as
59
+ * the `aria-label` attribute.
60
+ * ...
61
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/DurationField#config-ariaLabel)
62
+ */
63
+ ariaLabel? : string
64
+ /**
65
+ * Sets the native `autocomplete` property of the underlying input element. For more information, please refer to
66
+ * [MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete)
67
+ */
68
+ autoComplete? : string
69
+ /**
70
+ * Specify `true` to auto select field contents on focus
71
+ */
72
+ autoSelect? : boolean
73
+ /**
74
+ * Initial text to show in badge.
75
+ */
76
+ badge? : string
77
+ /**
78
+ * An object where property names with a truthy value indicate which events should bubble up the ownership
79
+ * hierarchy when triggered.
80
+ * ...
81
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/DurationField#config-bubbleEvents)
82
+ */
83
+ bubbleEvents? : object
84
+ /**
85
+ * Set to `false` to not call onXXX method names (e.g. `onShow`, `onClick`), as an easy way to listen for events.
86
+ * ...
87
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/DurationField#config-callOnFunctions)
88
+ */
89
+ callOnFunctions? : boolean
90
+ /**
91
+ * By default, if an event handler throws an exception, the error propagates up the stack and the
92
+ * application state is undefined. Code which follows the event handler will *not* be executed.
93
+ * ...
94
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/DurationField#config-catchEventHandlerExceptions)
95
+ */
96
+ catchEventHandlerExceptions? : boolean
97
+ /**
98
+ * *Only valid if this Widget is [floating](https://bryntum.com/products/scheduler/docs/api/Core/widget/Widget#config-floating).*
99
+ * Set to `true` to centre the Widget in browser viewport space.
100
+ */
101
+ centered? : boolean
102
+ /**
103
+ * Show a trigger to clear field, if this field is not [readOnly](https://bryntum.com/products/scheduler/docs/api/Core/widget/Field#config-readOnly). The trigger is available
104
+ * in the [triggers](https://bryntum.com/products/scheduler/docs/api/Core/widget/Field#property-triggers) object under the name `clear`. May also be an object which
105
+ * configures the `clear` [trigger](https://bryntum.com/products/scheduler/docs/api/Core/widget/Field#property-triggers).
106
+ */
107
+ clearable? : boolean|FieldTriggerConfig
108
+ /**
109
+ * Custom CSS classes to add to element.
110
+ * May be specified as a space separated string, or as an object in which property names
111
+ * with truthy values are used as the class names:
112
+ * ...
113
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/DurationField#config-cls)
114
+ */
115
+ cls? : string|object
116
+ /**
117
+ * Applies the specified color to the widget, by setting the `--b-primary` CSS variable in the widgets
118
+ * `style` block.
119
+ * ...
120
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/DurationField#config-color)
121
+ */
122
+ color? : string
123
+ /**
124
+ * Programmatic control over which column to start in when used in a grid layout.
125
+ */
126
+ column? : number
127
+ config? : object
128
+ /**
129
+ * *Only valid if this Widget is [floating](https://bryntum.com/products/scheduler/docs/api/Core/widget/Widget#config-floating) or [positioned](#Core/widget/Widget#config-positioned).*
130
+ * Element, Widget or Rectangle to which this Widget is constrained.
131
+ */
132
+ constrainTo? : HTMLElement|Widget|Rectangle
133
+ /**
134
+ * The configuration for additional items associated to this field. This is typically used to add contextual
135
+ * fields related to a [checkbox](https://bryntum.com/products/scheduler/docs/api/Core/widget/Checkbox) or [radio button](#Core/widget/Radio). See
136
+ * these classes for examples of nested fields.
137
+ * ...
138
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/DurationField#config-container)
139
+ */
140
+ container? : Record<string, ContainerItemConfig>|ContainerItemConfig[]|FieldContainerConfig|FieldContainer
141
+ /**
142
+ * The config controls how the value of nested items are handled when a parent container gets or sets its
143
+ * [values](https://bryntum.com/products/scheduler/docs/api/Core/widget/Container#property-values).
144
+ * ...
145
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/DurationField#config-containValues)
146
+ * @param {Core.widget.Field} field Field instance
147
+ * @returns {boolean}
148
+ */
149
+ containValues? : boolean|string|((field: Field) => boolean)
150
+ /**
151
+ * Custom CSS classes to add to the [contentElement](https://bryntum.com/products/scheduler/docs/api/Core/widget/Widget#property-contentElement).
152
+ * May be specified as a space separated string, or as an object in which property names
153
+ * with truthy values are used as the class names:
154
+ * ...
155
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/DurationField#config-contentElementCls)
156
+ */
157
+ contentElementCls? : string|object
158
+ /**
159
+ * When this Widget configuration is used in the Grid's RowExpander feature's `widget` config, provide the
160
+ * field on the expanded record to use for populating this widget's store (if applicable)
161
+ */
162
+ dataField? : string
163
+ /**
164
+ * Object to apply to elements dataset (each key will be used as a data-attribute on the element)
165
+ */
166
+ dataset? : Record<string, string>
167
+ /**
168
+ * The number of decimal places to allow. Defaults to no constraint.
169
+ */
170
+ decimalPrecision? : number
171
+ /**
172
+ * The name of the property to set when a single value is to be applied to this Widget. Such as when used
173
+ * in a grid WidgetColumn, this is the property to which the column's `field` is applied.
174
+ */
175
+ defaultBindProperty? : string
176
+ /**
177
+ * Check for CSS compatibility issues when upgrading to v7. Performs the following checks:
178
+ * ...
179
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/DurationField#config-detectCSSCompatibilityIssues)
180
+ */
181
+ detectCSSCompatibilityIssues? : boolean
182
+ /**
183
+ * Disable or enable the widget. It is similar to [readOnly](https://bryntum.com/products/scheduler/docs/api/Core/widget/Widget#config-readOnly) except a disabled widget
184
+ * cannot be focused, uses a different rendition (usually greyish) and does not allow selecting its value.
185
+ * ...
186
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/DurationField#config-disabled)
187
+ */
188
+ disabled? : boolean|'inert'
189
+ /**
190
+ * Controls the placement of this widget when it is added to a [panel's ](https://bryntum.com/products/scheduler/docs/api/Core/widget/Panel)
191
+ * [strips collection](https://bryntum.com/products/scheduler/docs/api/Core/widget/Panel#config-strips). Typical values for this config are `'top'`,
192
+ * `'bottom'`, `'left'`, or `'right'`, which cause the widget to be placed on that side of the panel's
193
+ * body. Such widgets are called "edge strips".
194
+ * ...
195
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/DurationField#config-dock)
196
+ */
197
+ dock? : 'top'|'bottom'|'left'|'right'|'start'|'end'|'header'|'pre-header'|object
198
+ /**
199
+ * *Only valid if this Widget is [floating](https://bryntum.com/products/scheduler/docs/api/Core/widget/Widget#config-floating).*
200
+ * Set to `true` to be able to drag a widget freely on the page. Or set to an object with a ´handleSelector´
201
+ * property which controls when a drag should start.
202
+ * ...
203
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/DurationField#config-draggable)
204
+ */
205
+ draggable? : boolean|{
206
+ handleSelector?: string
207
+ }
208
+ /**
209
+ * Set to `false` to prevent user from editing the field. For TextFields it is basically the same as setting
210
+ * [readOnly](https://bryntum.com/products/scheduler/docs/api/Core/widget/Field#config-readOnly), but for PickerFields there is a distinction where it allows you to pick a value
211
+ * but not to type one in the field.
212
+ * ...
213
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/DurationField#config-editable)
214
+ */
215
+ editable? : boolean
216
+ /**
217
+ * An object specifying attributes to assign to the root element of this widget.
218
+ * Set `null` value to attribute to remove it.
219
+ * ...
220
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/DurationField#config-elementAttributes)
221
+ */
222
+ elementAttributes? : Record<string, string|null>
223
+ extraData? : any
224
+ /**
225
+ * When this widget is a child of a [Container](https://bryntum.com/products/scheduler/docs/api/Core/widget/Container), it will by default be participating in a
226
+ * flexbox layout. This config allows you to set this widget's
227
+ * [flex](https://developer.mozilla.org/en-US/docs/Web/CSS/flex) style.
228
+ * This may be configured as a single number or a `&lt;flex-grow&gt; &lt;flex-shrink&gt; &lt;flex-basis&gt;` format string.
229
+ * numeric-only values are interpreted as the `flex-grow` value.
230
+ */
231
+ flex? : number|string
232
+ /**
233
+ * Set to `true` to move the widget out of the document flow and position it
234
+ * absolutely in browser viewport space.
235
+ */
236
+ floating? : boolean
237
+ /**
238
+ * Widget's height, used to set element `style.height`. Either specify a valid height string or a number,
239
+ * which will get 'px' appended. We recommend using CSS as the primary way to control height, but in some
240
+ * cases this config is convenient.
241
+ */
242
+ height? : string|number
243
+ /**
244
+ * Configure with true to make widget initially hidden.
245
+ */
246
+ hidden? : boolean
247
+ /**
248
+ * *Only valid if this Widget is [floating](https://bryntum.com/products/scheduler/docs/api/Core/widget/Widget#config-floating).*
249
+ * ...
250
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/DurationField#config-hideAnimation)
251
+ */
252
+ hideAnimation? : boolean|object
253
+ /**
254
+ * Specify `true` to highlight field after external value changes
255
+ */
256
+ highlightExternalChange? : boolean
257
+ /**
258
+ * An optional string to display inside the input field as an overlay. This can be useful for displaying
259
+ * a field's units.
260
+ * ...
261
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/DurationField#config-hint)
262
+ * @param {object} data A data object
263
+ * @param {Core.widget.Field} data.source A reference to the field instance
264
+ * @param {any} data.value The current value of the field
265
+ * @returns {string}
266
+ */
267
+ hint? : string|((data: { source: Field, value: any }) => string)
268
+ /**
269
+ * This config is similar to [hint](https://bryntum.com/products/scheduler/docs/api/Core/widget/Field#config-hint) except that this config is used to display HTML content.
270
+ * Since this can allow malicious content to be executed, be sure not to include user-entered data or to
271
+ * encode such data (see [encodeHtml](https://bryntum.com/products/scheduler/docs/api/Core/helper/StringHelper#function-encodeHtml-static)).
272
+ * ...
273
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/DurationField#config-hintHtml)
274
+ * @param {object} data A data object
275
+ * @param {Core.widget.Field} data.source A reference to the field instance
276
+ * @param {any} data.value The current value of the field
277
+ * @returns {string}
278
+ */
279
+ hintHtml? : string|((data: { source: Field, value: any }) => string)
280
+ /**
281
+ * Widget id, if not specified one will be generated. Also used for lookups through Widget.getById
282
+ */
283
+ id? : string
284
+ /**
285
+ * Determines if the widgets read-only state should be controlled by its parent.
286
+ * ...
287
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/DurationField#config-ignoreParentReadOnly)
288
+ */
289
+ ignoreParentReadOnly? : boolean
290
+ /**
291
+ * Set this config to `true` to always display items horizontally along with this field. This assigns an
292
+ * [hbox](https://bryntum.com/products/scheduler/docs/api/Core/widget/layout/Box) as the [layout](#Core/widget/Container#config-layout) to the
293
+ * [container](https://bryntum.com/products/scheduler/docs/api/Core/widget/Field#config-container).
294
+ * ...
295
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/DurationField#config-inline)
296
+ */
297
+ inline? : boolean
298
+ /**
299
+ * Text alignment for the input field.
300
+ */
301
+ inputAlign? : string
302
+ /**
303
+ * Sets custom attributes of the underlying input element. For more information, please refer to
304
+ * [MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes)
305
+ */
306
+ inputAttributes? : Record<string, string>
307
+ /**
308
+ * If you need to use something else than a default `input` element, as the input element, provide the tag
309
+ * name here. Please note that this is used for advanced usage only, for example when using WebComponents
310
+ * (custom elements), and that the configured element must fulfil the same contract as a regular input
311
+ * element.
312
+ */
313
+ inputTag? : string
314
+ /**
315
+ * Sets the `type` attribute of the underlying input element (password, hidden, date, color, etc.).
316
+ */
317
+ inputType? : string
318
+ /**
319
+ * The width to apply to the `.b-field-inner` element, which encompasses the `input` element and any
320
+ * triggers. If a number is specified, `px` will be used.
321
+ */
322
+ inputWidth? : string|number
323
+ /**
324
+ * Element (or element id) to insert this widget before. If provided, [appendTo](https://bryntum.com/products/scheduler/docs/api/Core/widget/Widget#config-appendTo) config is ignored.
325
+ */
326
+ insertBefore? : HTMLElement|string
327
+ /**
328
+ * Element (or element id) to append this widget element to, as a first child. If provided, [appendTo](https://bryntum.com/products/scheduler/docs/api/Core/widget/Widget#config-appendTo) config is ignored.
329
+ */
330
+ insertFirst? : HTMLElement|string
331
+ /**
332
+ * An object whose keys are the [key](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/key) name
333
+ * and optional modifier prefixes: `'Ctrl+'`, `'Alt+'`, `'Meta+'`, and `'Shift+'` (case-insensitive). The values
334
+ * are the name of the instance method to call when the keystroke is received.
335
+ * ...
336
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/DurationField#config-keyMap)
337
+ */
338
+ keyMap? : Record<string, KeyMapConfig>
339
+ /**
340
+ * The delay in milliseconds to wait after the last keystroke before triggering a change event.
341
+ * Set to 0 to not trigger change events from keystrokes (listen for input event instead to have
342
+ * immediate feedback, change will still be triggered on blur).
343
+ * ...
344
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/DurationField#config-keyStrokeChangeDelay)
345
+ */
346
+ keyStrokeChangeDelay? : number
347
+ /**
348
+ * Label, prepended to field
349
+ */
350
+ label? : string
351
+ /**
352
+ * CSS class name or class names to add to any configured [label](https://bryntum.com/products/scheduler/docs/api/Core/widget/mixin/Labelable#config-label)
353
+ */
354
+ labelCls? : string|object
355
+ /**
356
+ * Label position, either 'before' the field or 'above' the field
357
+ * ...
358
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/DurationField#config-labelPosition)
359
+ */
360
+ labelPosition? : 'before'|'above'|null
361
+ /**
362
+ * The labels to add either before or after the input field.
363
+ * Each label may have the following properties:
364
+ * ...
365
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/DurationField#config-labels)
366
+ */
367
+ labels? : object[]
368
+ /**
369
+ * The width to apply to the `&lt;label&gt;` element. If a number is specified, `px` will be used.
370
+ */
371
+ labelWidth? : string|number
372
+ /**
373
+ * The listener set for this object.
374
+ * ...
375
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/DurationField#config-listeners)
376
+ */
377
+ listeners? : DurationFieldListeners
378
+ /**
379
+ * A class translations of which are used for translating this entity.
380
+ * This is often used when translations of an item are defined on its container class.
381
+ * For example:
382
+ * ...
383
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/DurationField#config-localeClass)
384
+ */
385
+ localeClass? : typeof Base
386
+ /**
387
+ * Set to `false` to disable localization of this object.
388
+ */
389
+ localizable? : boolean
390
+ /**
391
+ * List of properties which values should be translated automatically upon a locale applying.
392
+ * In case there is a need to localize not typical value (not a String value or a field with re-defined setter/getter),
393
+ * you could use 'localeKey' meta configuration.
394
+ * Example:
395
+ * ...
396
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/DurationField#config-localizableProperties)
397
+ */
398
+ localizableProperties? : string[]
399
+ /**
400
+ * The duration magnitude to use with the current unit value. Can be either an integer or a float value.
401
+ * Both "," and "." are valid decimal separators.
402
+ */
403
+ magnitude? : number
404
+ /**
405
+ * Widget's margin. This may be configured as a single number or a `TRBL` format string.
406
+ * numeric-only values are interpreted as pixels.
407
+ */
408
+ margin? : number|string
409
+ /**
410
+ * This config object contains the defaults for the [Mask](https://bryntum.com/products/scheduler/docs/api/Core/widget/Mask) created for the
411
+ * [masked](https://bryntum.com/products/scheduler/docs/api/Core/widget/Widget#config-masked) config. Any properties specified in the `masked` config will override these
412
+ * values.
413
+ */
414
+ maskDefaults? : MaskConfig
415
+ /**
416
+ * Set to `true` to apply the default mask to the widget. Alternatively, this can be the mask message or a
417
+ * [Mask](https://bryntum.com/products/scheduler/docs/api/Core/widget/Mask) config object.
418
+ */
419
+ masked? : boolean|string|MaskConfig
420
+ /**
421
+ * Max duration value (e.g. 10d)
422
+ */
423
+ max? : string
424
+ /**
425
+ * The element's maxHeight. Can be either a String or a Number (which will have 'px' appended). Note that
426
+ * like [height](https://bryntum.com/products/scheduler/docs/api/Core/widget/Widget#config-height), *reading* the value will return the numeric value in pixels.
427
+ */
428
+ maxHeight? : string|number
429
+ /**
430
+ * *Only valid if this Widget is [floating](https://bryntum.com/products/scheduler/docs/api/Core/widget/Widget#config-floating).*
431
+ * ...
432
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/DurationField#config-maximizeOnMobile)
433
+ */
434
+ maximizeOnMobile? : number|string
435
+ /**
436
+ * The max number of characters for the input field
437
+ */
438
+ maxLength? : number
439
+ /**
440
+ * The elements maxWidth. Can be either a String or a Number (which will have 'px' appended). Note that
441
+ * like [width](https://bryntum.com/products/scheduler/docs/api/Core/widget/Widget#config-width), *reading* the value will return the numeric value in pixels.
442
+ */
443
+ maxWidth? : string|number
444
+ /**
445
+ * Minimum duration value (e.g. 1d)
446
+ */
447
+ min? : string
448
+ /**
449
+ * The element's minHeight. Can be either a String or a Number (which will have 'px' appended). Note that
450
+ * like [height](https://bryntum.com/products/scheduler/docs/api/Core/widget/Widget#config-height), *reading* the value will return the numeric value in pixels.
451
+ */
452
+ minHeight? : string|number
453
+ /**
454
+ * The min number of characters for the input field
455
+ */
456
+ minLength? : number
457
+ /**
458
+ * The elements minWidth. Can be either a String or a Number (which will have 'px' appended). Note that
459
+ * like [width](https://bryntum.com/products/scheduler/docs/api/Core/widget/Widget#config-width), *reading* the value will return the numeric value in pixels.
460
+ */
461
+ minWidth? : string|number
462
+ /**
463
+ * When this is configured as `true` a [ResizeObserver](https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserver)
464
+ * is used to monitor this element for size changes caused by either style manipulation, or by CSS
465
+ * layout.
466
+ * ...
467
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/DurationField#config-monitorResize)
468
+ */
469
+ monitorResize? : boolean|{
470
+ immediate?: boolean
471
+ }
472
+ /**
473
+ * Name of the field which is used as a key to get/set values from/to the field.
474
+ * Used prior to [ref](https://bryntum.com/products/scheduler/docs/api/Core/widget/Widget#config-ref) and [id](#Core/widget/Widget#config-id) in
475
+ * [Container.values](https://bryntum.com/products/scheduler/docs/api/Core/widget/Container#property-values).
476
+ * ...
477
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/DurationField#config-name)
478
+ */
479
+ name? : string
480
+ /**
481
+ * The owning Widget of this Widget. If this Widget is directly contained (that is, it is one of the
482
+ * [items](https://bryntum.com/products/scheduler/docs/api/Core/widget/Container#property-items) of a Container), this config will be ignored. In this case
483
+ * the owner is <strong>always</strong> the encapsulating Container.
484
+ * ...
485
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/DurationField#config-owner)
486
+ */
487
+ owner? : Widget|any
488
+ /**
489
+ * Text to display in empty field.
490
+ */
491
+ placeholder? : string
492
+ /**
493
+ * Set to `true` when a widget is rendered into another widget's [contentElement](https://bryntum.com/products/scheduler/docs/api/Core/widget/Widget#property-contentElement), but must
494
+ * not participate in the standard layout of that widget, and must be positioned relatively to that
495
+ * widget's [contentElement](https://bryntum.com/products/scheduler/docs/api/Core/widget/Widget#property-contentElement).
496
+ * ...
497
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/DurationField#config-positioned)
498
+ */
499
+ positioned? : boolean
500
+ /**
501
+ * Prevent tooltip from being displayed on touch devices. Useful for example for buttons that display a
502
+ * menu on click etc, since the tooltip would be displayed at the same time.
503
+ */
504
+ preventTooltipOnTouch? : boolean
505
+ /**
506
+ * Makes the field unmodifiable by user action. The input area is not editable, and triggers
507
+ * are unresponsive.
508
+ * ...
509
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/DurationField#config-readOnly)
510
+ */
511
+ readOnly? : boolean
512
+ relayStoreEvents? : boolean
513
+ /**
514
+ * Predefined style to use for the field. Possible values are:
515
+ * ...
516
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/DurationField#config-rendition)
517
+ */
518
+ rendition? : 'outlined'|'filled'|string
519
+ /**
520
+ * Configure as `true` to indicate that a `null` field value is to be marked as invalid. This will
521
+ * optionally append a * to the field label if [showRequiredIndicator](https://bryntum.com/products/scheduler/docs/api/Core/widget/Field#property-showRequiredIndicator) is set.
522
+ */
523
+ required? : boolean
524
+ /**
525
+ * If this field is not [readOnly](https://bryntum.com/products/scheduler/docs/api/Core/widget/Field#config-readOnly), then setting this option means that pressing
526
+ * the `ESCAPE` key after editing the field will revert the field to the value it had when
527
+ * the user focused the field. If the field is *not* changed from when focused, the [clearable](https://bryntum.com/products/scheduler/docs/api/Core/widget/Field#config-clearable)
528
+ * behaviour will be activated.
529
+ */
530
+ revertOnEscape? : boolean
531
+ /**
532
+ * Configure as `true` to have the component display a translucent ripple when its
533
+ * [focusElement](https://bryntum.com/products/scheduler/docs/api/Core/widget/Widget#property-focusElement), or [element](#Core/widget/Widget#property-element) is tapped <em>if the
534
+ * current theme supports ripples</em>. Out of the box, only the Material theme supports ripples.
535
+ * ...
536
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/DurationField#config-ripple)
537
+ */
538
+ ripple? : boolean|{
539
+ delegate?: string
540
+ color?: string
541
+ radius?: number
542
+ clip?: string
543
+ }
544
+ /**
545
+ * 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`
546
+ */
547
+ rootElement? : ShadowRoot|HTMLElement
548
+ /**
549
+ * This may be configured as `true` to make the widget's element use the `direction:rtl` style.
550
+ * ...
551
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/DurationField#config-rtl)
552
+ */
553
+ rtl? : boolean
554
+ /**
555
+ * Defines what to do if document is scrolled while Widget is visible (only relevant when floating is set to `true`).
556
+ * Valid values: ´null´: do nothing, ´hide´: hide the widget or ´realign´: realign to the target if possible.
557
+ */
558
+ scrollAction? : 'hide'|'realign'|null
559
+ /**
560
+ * *Only valid if this Widget is [floating](https://bryntum.com/products/scheduler/docs/api/Core/widget/Widget#config-floating).*
561
+ * ...
562
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/DurationField#config-showAnimation)
563
+ */
564
+ showAnimation? : boolean|object
565
+ /**
566
+ * `true` to automatically display a * after the label for this field when it is [required](https://bryntum.com/products/scheduler/docs/api/Core/widget/Field#property-required).
567
+ */
568
+ showRequiredIndicator? : string
569
+ /**
570
+ * Set to `false` to not show the tooltip when this widget is [disabled](https://bryntum.com/products/scheduler/docs/api/Core/widget/Widget#property-disabled)
571
+ */
572
+ showTooltipWhenDisabled? : boolean
573
+ /**
574
+ * Set to `true`, completely bypasses validation logic (could be userful if your field is not `editable`
575
+ * to the user).
576
+ */
577
+ skipValidation? : boolean
578
+ /**
579
+ * Programmatic control over how many columns to span when used in a grid layout.
580
+ */
581
+ span? : number
582
+ /**
583
+ * Sets the native `spellcheck` property of the underlying input element. For more information, please refer to
584
+ * [MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/spellcheck)
585
+ */
586
+ spellCheck? : boolean
587
+ /**
588
+ * Step size for spin button clicks. The `step` property may be set in object form specifying two properties,
589
+ * `magnitude`, a Number, and `unit`, a String.
590
+ * ...
591
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/DurationField#config-step)
592
+ */
593
+ step? : DurationConfig|number|string
594
+ /**
595
+ * A configuration for the [tab](https://bryntum.com/products/scheduler/docs/api/Core/widget/Tab) created for this widget when it is placed in a
596
+ * [TabPanel](https://bryntum.com/products/scheduler/docs/api/Core/widget/TabPanel). For example, this config can be used to control the icon of the `tab` for
597
+ * this widget:
598
+ * ...
599
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/DurationField#config-tab)
600
+ */
601
+ tab? : boolean|TabConfig
602
+ /**
603
+ * The tab index of the input field or fields, or `null` for natural tab order (recommended). Setting to `0`
604
+ * is equivalent to natural tab order, but is unnecessary for fields since they are naturally tabbable
605
+ * (i.e., accessible via the TAB key). Setting to `-1` disables tabbability but allows for focus to be set
606
+ * to the element programmatically.
607
+ * ...
608
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/DurationField#config-tabIndex)
609
+ */
610
+ tabIndex? : number
611
+ /**
612
+ * Text alignment: 'left', 'center' or 'right'. Also accepts direction neutral 'start' and 'end'.
613
+ * ...
614
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/DurationField#config-textAlign)
615
+ */
616
+ textAlign? : 'left'|'center'|'right'|'start'|'end'
617
+ /**
618
+ * A title to display for the widget. Only in effect when inside a container that uses it (such as TabPanel)
619
+ */
620
+ title? : string
621
+ /**
622
+ * Tooltip for the widget, either as a string or as a Tooltip config object.
623
+ * ...
624
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/DurationField#config-tooltip)
625
+ */
626
+ tooltip? : string|TooltipConfig|null
627
+ /**
628
+ * Widgets that trigger functionality upon click. Each trigger icon is a [Widget](https://bryntum.com/products/scheduler/docs/api/Core/widget/Widget) instance
629
+ * which may be hidden, shown and observed and styled just like any other widget.
630
+ */
631
+ triggers? : Record<string, FieldTriggerConfig>|Record<string, Widget>
632
+ type? : 'durationfield'|'duration'
633
+ /**
634
+ * Custom CSS class name suffixes to apply to the elements rendered by this widget. This may be specified
635
+ * as a space separated string, an array of strings, or as an object in which property names with truthy
636
+ * values are used as the class names.
637
+ * ...
638
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/DurationField#config-ui)
639
+ */
640
+ ui? : string|object
641
+ /**
642
+ * The duration unit to use with the current magnitude value.
643
+ * ...
644
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/DurationField#config-unit)
645
+ */
646
+ unit? : DurationUnit
647
+ /**
648
+ * When set to `true` the field will use short names of unit durations
649
+ * (as returned by [getShortNameOfUnit](https://bryntum.com/products/scheduler/docs/api/Core/helper/DateHelper#function-getShortNameOfUnit-static)) when creating the
650
+ * input field's display value.
651
+ */
652
+ useAbbreviation? : boolean
653
+ /**
654
+ * Set to `false` to not highlight a field as invalid while typing, to instead show it on ENTER key press
655
+ * or similar.
656
+ */
657
+ validateOnInput? : boolean
658
+ /**
659
+ * The `value` may be set either in object form specifying two properties, a numerical `magnitude` and a
660
+ * string `unit`:
661
+ * ...
662
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/DurationField#config-value)
663
+ */
664
+ value? : string|number|DurationConfig|Duration
665
+ /**
666
+ * A widgets weight determines its position among siblings when added to a [Container](https://bryntum.com/products/scheduler/docs/api/Core/widget/Container).
667
+ * Higher weights go further down.
668
+ */
669
+ weight? : number
670
+ /**
671
+ * Widget's width, used to set element `style.width`. Either specify a valid width string or a number, which
672
+ * will get 'px' appended. We recommend using CSS as the primary way to control width, but in some cases
673
+ * this config is convenient.
674
+ */
675
+ width? : string|number
676
+ /**
677
+ * The x position for the widget.
678
+ * ...
679
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/DurationField#config-x)
680
+ */
681
+ x? : number
682
+ /**
683
+ * The y position for the widget.
684
+ * ...
685
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/DurationField#config-y)
686
+ */
687
+ y? : number
688
+
689
+ // Events
690
+ /**
691
+ * User performed the default action (typed into this field or hit the triggers).
692
+ * @param {object} event Event object
693
+ * @param {Core.data.Duration} event.value This field's value
694
+ * @param {Core.data.Duration} event.oldValue This field's previous value
695
+ * @param {boolean} event.valid True if this field is in a valid state.
696
+ * @param {Event} event.event The triggering DOM event if any.
697
+ * @param {boolean} event.userAction Triggered by user taking an action (`true`) or by setting a value (`false`)
698
+ * @param {Core.widget.DurationField} event.source This field
699
+ */
700
+ onAction? : ((event: { value: Duration, oldValue: Duration, valid: boolean, event?: Event, userAction: boolean, source: DurationField }) => void)|string
701
+ /**
702
+ * Fires before an object is destroyed.
703
+ * @param {object} event Event object
704
+ * @param {Core.Base} event.source The Object that is being destroyed.
705
+ */
706
+ onBeforeDestroy? : ((event: { source: Base }) => void)|string
707
+ /**
708
+ * Triggered before a widget is hidden. Return `false` to prevent the action.
709
+ * @param {object} event Event object
710
+ * @param {Core.widget.Widget} event.source The widget being hidden.
711
+ */
712
+ onBeforeHide? : ((event: { source: Widget }) => Promise<boolean>|boolean|void)|string
713
+ /**
714
+ * Triggered before a widget is shown. Return `false` to prevent the action.
715
+ * @param {object} event Event object
716
+ * @param {Core.widget.Widget,any} event.source The widget being shown
717
+ */
718
+ onBeforeShow? : ((event: { source: Widget|any }) => Promise<boolean>|boolean|void)|string
719
+ /**
720
+ * Fires when any other event is fired from the object.
721
+ * ...
722
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/DurationField#event-catchAll)
723
+ * @param {object} event Event object
724
+ * @param {{[key: string]: any, type: string}} event.event The Object that contains event details
725
+ * @param {string} event.event.type The type of the event which is caught by the listener
726
+ */
727
+ onCatchAll? : ((event: {[key: string]: any, type: string}) => void)|string
728
+ /**
729
+ * Fired when this field's value changes.
730
+ * @param {object} event Event object
731
+ * @param {Core.data.Duration} event.value This field's value
732
+ * @param {Core.data.Duration} event.oldValue This field's previous value
733
+ * @param {boolean} event.valid True if this field is in a valid state.
734
+ * @param {Event} event.event The triggering DOM event if any.
735
+ * @param {boolean} event.userAction Triggered by user taking an action (`true`) or by setting a value (`false`)
736
+ * @param {Core.widget.DurationField} event.source This field
737
+ */
738
+ onChange? : ((event: { value: Duration, oldValue: Duration, valid: boolean, event?: Event, userAction: boolean, source: DurationField }) => void)|string
739
+ /**
740
+ * Fired when this field is [cleared](https://bryntum.com/products/scheduler/docs/api/Core/widget/Field#function-clear).
741
+ * ...
742
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/DurationField#event-clear)
743
+ * @param {object} event Event object
744
+ * @param {Core.widget.Field,any} event.source This Field
745
+ */
746
+ onClear? : ((event: { source: Field|any }) => void)|string
747
+ /**
748
+ * Fires when an object is destroyed.
749
+ * @param {object} event Event object
750
+ * @param {Core.Base} event.source The Object that is being destroyed.
751
+ */
752
+ onDestroy? : ((event: { source: Base }) => void)|string
753
+ /**
754
+ * Triggered when a widget's [element](https://bryntum.com/products/scheduler/docs/api/Core/widget/Widget#property-element) is available.
755
+ * @param {object} event Event object
756
+ * @param {HTMLElement} event.element The Widget's element.
757
+ */
758
+ onElementCreated? : ((event: { element: HTMLElement }) => void)|string
759
+ /**
760
+ * Fired when focus enters this Widget.
761
+ * @param {object} event Event object
762
+ * @param {Core.widget.Widget} event.source This Widget
763
+ * @param {HTMLElement} event.fromElement The element which lost focus.
764
+ * @param {HTMLElement} event.toElement The element which gained focus.
765
+ * @param {Core.widget.Widget} event.fromWidget The widget which lost focus.
766
+ * @param {Core.widget.Widget} event.toWidget The widget which gained focus.
767
+ * @param {boolean} event.backwards `true` if the `toElement` is before the `fromElement` in document order.
768
+ */
769
+ onFocusIn? : ((event: { source: Widget, fromElement: HTMLElement, toElement: HTMLElement, fromWidget: Widget, toWidget: Widget, backwards: boolean }) => void)|string
770
+ /**
771
+ * Fired when focus exits this Widget's ownership tree. This is different from a `blur` event.
772
+ * focus moving from within this Widget's ownership tree, even if there are floating widgets
773
+ * will not trigger this event. This is when focus exits this widget completely.
774
+ * @param {object} event Event object
775
+ * @param {Core.widget.Widget} event.source This Widget
776
+ * @param {HTMLElement} event.fromElement The element which lost focus.
777
+ * @param {HTMLElement} event.toElement The element which gained focus.
778
+ * @param {Core.widget.Widget} event.fromWidget The widget which lost focus.
779
+ * @param {Core.widget.Widget} event.toWidget The widget which gained focus.
780
+ * @param {boolean} event.backwards `true` if the `toElement` is before the `fromElement` in document order.
781
+ */
782
+ onFocusOut? : ((event: { source: Widget, fromElement: HTMLElement, toElement: HTMLElement, fromWidget: Widget, toWidget: Widget, backwards: boolean }) => void)|string
783
+ /**
784
+ * Triggered after a widget was hidden
785
+ * @param {object} event Event object
786
+ * @param {Core.widget.Widget} event.source The widget
787
+ */
788
+ onHide? : ((event: { source: Widget }) => void)|string
789
+ /**
790
+ * Fired when the user types into this field.
791
+ * @param {object} event Event object
792
+ * @param {Core.widget.Field,any} event.source This field
793
+ * @param {string,number,boolean,any} event.value This field's value
794
+ * @param {Event} event.event The triggering DOM event
795
+ */
796
+ onInput? : ((event: { source: Field|any, value: string|number|boolean|any, event: Event }) => void)|string
797
+ /**
798
+ * Triggered when a widget which had been in a non-visible state for any reason
799
+ * achieves visibility.
800
+ * ...
801
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/DurationField#event-paint)
802
+ * @param {object} event Event object
803
+ * @param {Core.widget.Widget} event.source The widget being painted.
804
+ * @param {boolean} event.firstPaint `true` if this is the first paint.
805
+ */
806
+ onPaint? : ((event: { source: Widget, firstPaint: boolean }) => void)|string
807
+ /**
808
+ * Fired when a Widget's read only state is toggled
809
+ * @param {object} event Event object
810
+ * @param {boolean} event.readOnly Read only or not
811
+ */
812
+ onReadOnly? : ((event: { readOnly: boolean }) => void)|string
813
+ /**
814
+ * This event is fired after a widget's elements have been synchronized due to a direct or indirect call
815
+ * to [recompose](https://bryntum.com/products/scheduler/docs/api/Core/widget/Widget#function-recompose), if this results in some change to the widget's rendered DOM elements.
816
+ */
817
+ onRecompose? : (() => void)|string
818
+ /**
819
+ * Fired when the encapsulating element of a Widget resizes *only when [monitorResize](https://bryntum.com/products/scheduler/docs/api/Core/widget/Widget#config-monitorResize) is `true`*.
820
+ * @param {object} event Event object
821
+ * @param {Core.widget.Widget} event.source This Widget
822
+ * @param {number} event.width The new width
823
+ * @param {number} event.height The new height
824
+ * @param {number} event.oldWidth The old width
825
+ * @param {number} event.oldHeight The old height
826
+ */
827
+ onResize? : ((event: { source: Widget, width: number, height: number, oldWidth: number, oldHeight: number }) => void)|string
828
+ /**
829
+ * Triggered after a widget is shown.
830
+ * @param {object} event Event object
831
+ * @param {Core.widget.Widget} event.source The widget
832
+ */
833
+ onShow? : ((event: { source: Widget }) => void)|string
834
+ /**
835
+ * User clicked one of this field's [triggers](https://bryntum.com/products/scheduler/docs/api/Core/widget/Field#property-triggers)
836
+ * @param {object} event Event object
837
+ * @param {Core.widget.Field,any} event.source This field
838
+ * @param {Core.widget.Widget} event.trigger The trigger activated by click or touch tap.
839
+ */
840
+ onTrigger? : ((event: { source: Field|any, trigger: Widget }) => void)|string
841
+
842
+ }
843
+
844
+ export class BryntumDurationField extends React.Component<BryntumDurationFieldProps> {
845
+
846
+ static instanceClass = DurationField;
847
+
848
+ static instanceName = 'DurationField';
849
+
850
+ processWidgetContent = processWidgetContent;
851
+
852
+ static configNames = [
853
+ 'adopt',
854
+ 'align',
855
+ 'allowNegative',
856
+ 'anchor',
857
+ 'ariaDescription',
858
+ 'ariaLabel',
859
+ 'autoComplete',
860
+ 'autoSelect',
861
+ 'bubbleEvents',
862
+ 'centered',
863
+ 'clearable',
864
+ 'color',
865
+ 'config',
866
+ 'constrainTo',
867
+ 'container',
868
+ 'containValues',
869
+ 'contentElementCls',
870
+ 'dataField',
871
+ 'decimalPrecision',
872
+ 'defaultBindProperty',
873
+ 'detectCSSCompatibilityIssues',
874
+ 'dock',
875
+ 'draggable',
876
+ 'elementAttributes',
877
+ 'floating',
878
+ 'hideAnimation',
879
+ 'highlightExternalChange',
880
+ 'hint',
881
+ 'hintHtml',
882
+ 'ignoreParentReadOnly',
883
+ 'inline',
884
+ 'inputAlign',
885
+ 'inputAttributes',
886
+ 'inputTag',
887
+ 'inputType',
888
+ 'inputWidth',
889
+ 'keyStrokeChangeDelay',
890
+ 'labelCls',
891
+ 'labelPosition',
892
+ 'labels',
893
+ 'labelWidth',
894
+ 'listeners',
895
+ 'localeClass',
896
+ 'localizable',
897
+ 'localizableProperties',
898
+ 'maskDefaults',
899
+ 'masked',
900
+ 'maxLength',
901
+ 'minLength',
902
+ 'monitorResize',
903
+ 'name',
904
+ 'owner',
905
+ 'positioned',
906
+ 'preventTooltipOnTouch',
907
+ 'relayStoreEvents',
908
+ 'revertOnEscape',
909
+ 'ripple',
910
+ 'rootElement',
911
+ 'scrollAction',
912
+ 'showAnimation',
913
+ 'showTooltipWhenDisabled',
914
+ 'skipValidation',
915
+ 'spellCheck',
916
+ 'step',
917
+ 'tab',
918
+ 'tabIndex',
919
+ 'textAlign',
920
+ 'title',
921
+ 'type',
922
+ 'ui',
923
+ 'useAbbreviation',
924
+ 'validateOnInput',
925
+ 'weight'
926
+ ];
927
+
928
+ static propertyConfigNames = [
929
+ 'alignSelf',
930
+ 'allowedUnits',
931
+ 'appendTo',
932
+ 'badge',
933
+ 'callOnFunctions',
934
+ 'catchEventHandlerExceptions',
935
+ 'cls',
936
+ 'column',
937
+ 'dataset',
938
+ 'disabled',
939
+ 'editable',
940
+ 'extraData',
941
+ 'flex',
942
+ 'height',
943
+ 'hidden',
944
+ 'id',
945
+ 'insertBefore',
946
+ 'insertFirst',
947
+ 'keyMap',
948
+ 'label',
949
+ 'magnitude',
950
+ 'margin',
951
+ 'max',
952
+ 'maxHeight',
953
+ 'maximizeOnMobile',
954
+ 'maxWidth',
955
+ 'min',
956
+ 'minHeight',
957
+ 'minWidth',
958
+ 'onAction',
959
+ 'onBeforeDestroy',
960
+ 'onBeforeHide',
961
+ 'onBeforeShow',
962
+ 'onCatchAll',
963
+ 'onChange',
964
+ 'onClear',
965
+ 'onDestroy',
966
+ 'onElementCreated',
967
+ 'onFocusIn',
968
+ 'onFocusOut',
969
+ 'onHide',
970
+ 'onInput',
971
+ 'onPaint',
972
+ 'onReadOnly',
973
+ 'onRecompose',
974
+ 'onResize',
975
+ 'onShow',
976
+ 'onTrigger',
977
+ 'placeholder',
978
+ 'readOnly',
979
+ 'rendition',
980
+ 'required',
981
+ 'rtl',
982
+ 'showRequiredIndicator',
983
+ 'span',
984
+ 'tooltip',
985
+ 'triggers',
986
+ 'unit',
987
+ 'value',
988
+ 'width',
989
+ 'x',
990
+ 'y'
991
+ ];
992
+
993
+ static propertyNames = [
994
+ 'anchorSize',
995
+ 'content',
996
+ 'focusVisible',
997
+ 'formula',
998
+ 'html',
999
+ 'input',
1000
+ 'parent',
1001
+ 'scrollable'
1002
+ ];
1003
+
1004
+ // Component instance
1005
+ instance!: DurationField;
1006
+
1007
+ // Component element
1008
+ element! : HTMLElement;
1009
+
1010
+ componentDidMount(): void {
1011
+ this.instance = createWidget(this);
1012
+ }
1013
+
1014
+ componentWillUnmount(): void {
1015
+ // @ts-ignore
1016
+ this.instance?.destroy?.();
1017
+ }
1018
+
1019
+ /**
1020
+ * Component about to be updated, from changing a prop using state.
1021
+ * React to it depending on what changed and prevent react from re-rendering our component.
1022
+ * @param nextProps
1023
+ * @param nextState
1024
+ * @returns {boolean}
1025
+ */
1026
+ shouldComponentUpdate(nextProps: Readonly<BryntumDurationFieldProps>, nextState: Readonly<{}>): boolean {
1027
+ return shouldComponentUpdate(this, nextProps, nextState);
1028
+ }
1029
+
1030
+ render(): React.ReactNode {
1031
+
1032
+ const className = `b-react-duration-field-container`;
1033
+ return (
1034
+ <div className={className} ref={(element) => (this.element = element!)}></div>
1035
+ );
1036
+
1037
+ }
1038
+ }