@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,1364 @@
1
+ /**
2
+ * React wrapper for Bryntum SchedulerDatePicker
3
+ */
4
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
5
+ import React, { RefObject } from 'react';
6
+ import { AlignSpec, Base, CalendarPanel, Container, ContainerItemConfig, ContainerLayoutConfig, DatePicker, DomConfig, EventModel, EventStore, KeyMapConfig, Layout, MaskConfig, MenuItemConfig, MenuItemEntry, Model, Month, MonthConfig, PagingToolbarConfig, Panel, PanelCollapserConfig, PanelCollapserOverlayConfig, PanelHeader, Rectangle, SchedulerDatePicker, SchedulerDatePickerListeners, Scroller, ScrollerConfig, StateProvider, TabConfig, Tool, ToolConfig, ToolbarConfig, ToolbarItems, TooltipConfig, VueConfig, Widget } from '@bryntum/scheduler';
7
+
8
+ import { createWidget, shouldComponentUpdate, processWidgetContent } from './WrapperHelper.js';
9
+
10
+ export type BryntumSchedulerDatePickerProps = {
11
+ // Configs
12
+ /**
13
+ * The date that the user has navigated to using the UI *prior* to setting the widget's
14
+ * value by selecting it. The initial default is today's date. Can also be supplied as a `YYYY-MM-DD` date
15
+ * string.
16
+ * ...
17
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/SchedulerDatePicker#config-activeDate)
18
+ */
19
+ activeDate? : Date|'today'|string
20
+ /**
21
+ * Element (or element id) to adopt as this Widget's encapsulating element. The widget's
22
+ * content will be placed inside this element.
23
+ * ...
24
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/SchedulerDatePicker#config-adopt)
25
+ */
26
+ adopt? : HTMLElement|string
27
+ /**
28
+ * *Only valid if this Widget is [floating](https://bryntum.com/products/scheduler/docs/api/Core/widget/Widget#config-floating).*
29
+ * ...
30
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/SchedulerDatePicker#config-align)
31
+ */
32
+ align? : AlignSpec|string
33
+ /**
34
+ * 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
35
+ * flexbox layout. This config allows you to set this widget's
36
+ * [align-self](https://developer.mozilla.org/en-US/docs/Web/CSS/align-self) style.
37
+ */
38
+ alignSelf? : string
39
+ /**
40
+ * *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).*
41
+ * `true` to show a connector arrow pointing to the align target.
42
+ */
43
+ anchor? : boolean
44
+ /**
45
+ * By default, when navigating through time, the next time
46
+ * block will be animated in from the appropriate direction.
47
+ * ...
48
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/SchedulerDatePicker#config-animateTimeShift)
49
+ */
50
+ animateTimeShift? : boolean
51
+ /**
52
+ * Element (or the id of an element) to append this widget's element to. Can be configured, or set once at
53
+ * runtime. To access the element of a rendered widget, see [element](https://bryntum.com/products/scheduler/docs/api/Core/widget/Widget#property-element).
54
+ */
55
+ appendTo? : HTMLElement|string
56
+ /**
57
+ * A localizable string (May contain `'L{}'` tokens which resolve in the locale file) to inject
58
+ * into an element which will be linked using the `aria-describedby` attribute.
59
+ * ...
60
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/SchedulerDatePicker#config-ariaDescription)
61
+ */
62
+ ariaDescription? : string
63
+ /**
64
+ * A localizable string (May contain `'L{}'` tokens which resolve in the locale file) to inject as
65
+ * the `aria-label` attribute.
66
+ * ...
67
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/SchedulerDatePicker#config-ariaLabel)
68
+ */
69
+ ariaLabel? : string
70
+ /**
71
+ * Update assigned [record](https://bryntum.com/products/scheduler/docs/api/Core/widget/Container#config-record) automatically on field changes
72
+ */
73
+ autoUpdateRecord? : boolean
74
+ /**
75
+ * A Config object representing the configuration of a [Toolbar](https://bryntum.com/products/scheduler/docs/api/Core/widget/Toolbar),
76
+ * or array of config objects representing the child items of a Toolbar. Another way to add a bbar is to use [strips](https://bryntum.com/products/scheduler/docs/api/Core/widget/Panel#config-strips).
77
+ * ...
78
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/SchedulerDatePicker#config-bbar)
79
+ */
80
+ bbar? : (ContainerItemConfig|string)[]|ToolbarConfig|PagingToolbarConfig|null
81
+ /**
82
+ * Custom CSS classes to add to the panel's body element.
83
+ * ...
84
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/SchedulerDatePicker#config-bodyCls)
85
+ */
86
+ bodyCls? : string|object
87
+ /**
88
+ * An object where property names with a truthy value indicate which events should bubble up the ownership
89
+ * hierarchy when triggered.
90
+ * ...
91
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/SchedulerDatePicker#config-bubbleEvents)
92
+ */
93
+ bubbleEvents? : object
94
+ /**
95
+ * Set to `false` to not call onXXX method names (e.g. `onShow`, `onClick`), as an easy way to listen for events.
96
+ * ...
97
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/SchedulerDatePicker#config-callOnFunctions)
98
+ */
99
+ callOnFunctions? : boolean
100
+ /**
101
+ * By default, if an event handler throws an exception, the error propagates up the stack and the
102
+ * application state is undefined. Code which follows the event handler will *not* be executed.
103
+ * ...
104
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/SchedulerDatePicker#config-catchEventHandlerExceptions)
105
+ */
106
+ catchEventHandlerExceptions? : boolean
107
+ /**
108
+ * A function (or the name of a function) which creates content in, and may mutate a day cell element.
109
+ * ...
110
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/SchedulerDatePicker#config-cellRenderer)
111
+ * @param {object} renderData
112
+ * @param {HTMLElement} renderData.cell The cell's encapsulating element. This has the `b-calendar-panel-cell` class and is the element which receives focus, so this should be the target of any accessibility attributes.
113
+ * @param {HTMLElement} renderData.innerCell The inner element of the cell which contains the date number. This is the `aspect-ratio : 1` element which contains the date. It is not recommeneded to mutate this element. Instead use the `cellPayload` element (see below).
114
+ * @param {HTMLElement} renderData.cellPayload An empty, absolutely positioned element, by default docked at the bottom of the cell. Content may be added to this element to augment cell content.
115
+ * @param {Date} renderData.date The date for the cell
116
+ * @param {number} renderData.day The day for the cell (`0` to `6` for Sunday to Saturday)
117
+ * @param {number[]} renderData.rowIndex The row index, 0 to month row count (6 if [sixWeeks](https://bryntum.com/products/scheduler/docs/api/Core/widget/DatePicker#config-sixWeeks) is `true`)
118
+ * @param {HTMLElement} renderData.row The row element encapsulating the week which the cell is a part of
119
+ * @param {Core.widget.CalendarPanel} renderData.source The widget being rendered
120
+ * @param {number[]} renderData.cellIndex The cell index in the whole panel. May be from `0` to up to `42`
121
+ * @param {number[]} renderData.columnIndex The column index, `0` to `6`
122
+ * @param {number[]} renderData.visibleColumnIndex The visible column index taking hidden non working days into account
123
+ * @returns {string,DomConfig,void}
124
+ */
125
+ cellRenderer? : ((renderData: { cell: HTMLElement, innerCell: HTMLElement, cellPayload: HTMLElement, date: Date, day: number, rowIndex: number[], row: HTMLElement, source: CalendarPanel, cellIndex: number[], columnIndex: number[], visibleColumnIndex: number[] }) => string|DomConfig|void)|string
126
+ /**
127
+ * *Only valid if this Widget is [floating](https://bryntum.com/products/scheduler/docs/api/Core/widget/Widget#config-floating).*
128
+ * Set to `true` to centre the Widget in browser viewport space.
129
+ */
130
+ centered? : boolean
131
+ /**
132
+ * Custom CSS classes to add to element.
133
+ * May be specified as a space separated string, or as an object in which property names
134
+ * with truthy values are used as the class names:
135
+ * ...
136
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/SchedulerDatePicker#config-cls)
137
+ */
138
+ cls? : string|object
139
+ /**
140
+ * Controls whether the panel is collapsed (the body of the panel is hidden while only the header is
141
+ * visible). Only valid if the panel is [collapsible](https://bryntum.com/products/scheduler/docs/api/Core/widget/Panel#config-collapsible).
142
+ */
143
+ collapsed? : boolean
144
+ /**
145
+ * This config enables collapsibility for the panel. See [collapsed](https://bryntum.com/products/scheduler/docs/api/Core/widget/Panel#config-collapsed).
146
+ * ...
147
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/SchedulerDatePicker#config-collapsible)
148
+ */
149
+ collapsible? : boolean|PanelCollapserConfig|PanelCollapserOverlayConfig
150
+ /**
151
+ * Applies the specified color to the widget, by setting the `--b-primary` CSS variable in the widgets
152
+ * `style` block.
153
+ * ...
154
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/SchedulerDatePicker#config-color)
155
+ */
156
+ color? : string
157
+ /**
158
+ * Programmatic control over which column to start in when used in a grid layout.
159
+ */
160
+ column? : number
161
+ config? : object
162
+ /**
163
+ * *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).*
164
+ * Element, Widget or Rectangle to which this Widget is constrained.
165
+ */
166
+ constrainTo? : HTMLElement|Widget|Rectangle
167
+ /**
168
+ * The HTML content that coexists with sibling elements which may have been added to the
169
+ * [contentElement](https://bryntum.com/products/scheduler/docs/api/Core/widget/Widget#property-contentElement) by plugins and features.
170
+ * When specifying html, this widget's element will also have the [htmlCls](https://bryntum.com/products/scheduler/docs/api/Core/widget/Widget#config-htmlCls)
171
+ * class added to its classList, to allow targeted styling.
172
+ */
173
+ content? : string
174
+ /**
175
+ * Custom CSS classes to add to the [contentElement](https://bryntum.com/products/scheduler/docs/api/Core/widget/Widget#property-contentElement).
176
+ * May be specified as a space separated string, or as an object in which property names
177
+ * with truthy values are used as the class names:
178
+ * ...
179
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/SchedulerDatePicker#config-contentElementCls)
180
+ */
181
+ contentElementCls? : string|object
182
+ /**
183
+ * When this Widget configuration is used in the Grid's RowExpander feature's `widget` config, provide the
184
+ * field on the expanded record to use for populating this widget's store (if applicable)
185
+ */
186
+ dataField? : string
187
+ /**
188
+ * Object to apply to elements dataset (each key will be used as a data-attribute on the element)
189
+ */
190
+ dataset? : Record<string, string>
191
+ /**
192
+ * The initially selected date (or a `YYYY-MM-DD` date string).
193
+ */
194
+ date? : Date|string
195
+ /**
196
+ * The [DateHelper](https://bryntum.com/products/scheduler/docs/api/Core/helper/DateHelper) format string to format the day names.
197
+ */
198
+ dayNameFormat? : string
199
+ /**
200
+ * The name of the property to set when a single value is to be applied to this Widget. Such as when used
201
+ * in a grid WidgetColumn, this is the property to which the column's `field` is applied.
202
+ */
203
+ defaultBindProperty? : string
204
+ /**
205
+ * A [query](https://bryntum.com/products/scheduler/docs/api/Core/widget/Container#function-query) selector function which can identify the descendant widget to which
206
+ * focus should be directed by default.
207
+ * ...
208
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/SchedulerDatePicker#config-defaultFocus)
209
+ * @param {Core.widget.Widget} widget Widget passed to method
210
+ * @returns {boolean} truthy value if widget is the default one
211
+ */
212
+ defaultFocus? : ((widget: Widget) => boolean)|string
213
+ /**
214
+ * A config object containing default settings to apply to all child widgets.
215
+ */
216
+ defaults? : ContainerItemConfig
217
+ /**
218
+ * Check for CSS compatibility issues when upgrading to v7. Performs the following checks:
219
+ * ...
220
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/SchedulerDatePicker#config-detectCSSCompatibilityIssues)
221
+ */
222
+ detectCSSCompatibilityIssues? : boolean
223
+ /**
224
+ * 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
225
+ * cannot be focused, uses a different rendition (usually greyish) and does not allow selecting its value.
226
+ * ...
227
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/SchedulerDatePicker#config-disabled)
228
+ */
229
+ disabled? : boolean|'inert'
230
+ /**
231
+ * The class name to add to disabled calendar cells.
232
+ */
233
+ disabledCls? : string
234
+ /**
235
+ * Either an array of `Date` objects which are to be disabled (or date strings), or
236
+ * a function (or the name of a function), which, when passed a `Date` returns `true` if the
237
+ * date is disabled. Disabled dates cannot be interacted with.
238
+ * @param {Date} date Date to check
239
+ * @returns {boolean} Returns `true` if the provided date is disabled
240
+ */
241
+ disabledDates? : ((date: Date) => boolean)|string|Date[]|string[]
242
+ /**
243
+ * Configure as `true` to render non working days as [disabledDates](https://bryntum.com/products/scheduler/docs/api/Core/widget/CalendarPanel#config-disabledDates).
244
+ * ...
245
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/SchedulerDatePicker#config-disableNonWorkingDays)
246
+ */
247
+ disableNonWorkingDays? : boolean
248
+ /**
249
+ * Configure this as true to disable pointer interaction with cells which are outside the
250
+ * range of the current month.
251
+ */
252
+ disableOtherMonthCells? : boolean
253
+ /**
254
+ * Configure as `true` to render Saturdays and Sundays as [disabledDates](https://bryntum.com/products/scheduler/docs/api/Core/widget/CalendarPanel#config-disabledDates).
255
+ */
256
+ disableWeekends? : boolean
257
+ /**
258
+ * Controls the placement of this widget when it is added to a [panel's ](https://bryntum.com/products/scheduler/docs/api/Core/widget/Panel)
259
+ * [strips collection](https://bryntum.com/products/scheduler/docs/api/Core/widget/Panel#config-strips). Typical values for this config are `'top'`,
260
+ * `'bottom'`, `'left'`, or `'right'`, which cause the widget to be placed on that side of the panel's
261
+ * body. Such widgets are called "edge strips".
262
+ * ...
263
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/SchedulerDatePicker#config-dock)
264
+ */
265
+ dock? : 'top'|'bottom'|'left'|'right'|'start'|'end'|'header'|'pre-header'|object
266
+ /**
267
+ * *Only valid if this Widget is [floating](https://bryntum.com/products/scheduler/docs/api/Core/widget/Widget#config-floating).*
268
+ * Set to `true` to be able to drag a widget freely on the page. Or set to an object with a ´handleSelector´
269
+ * property which controls when a drag should start.
270
+ * ...
271
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/SchedulerDatePicker#config-draggable)
272
+ */
273
+ draggable? : boolean|{
274
+ handleSelector?: string
275
+ }
276
+ /**
277
+ * This property is only valid if [multiSelect](https://bryntum.com/products/scheduler/docs/api/Core/widget/DatePicker#config-multiSelect) is set to `'range'`
278
+ * or `true`.
279
+ * ...
280
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/SchedulerDatePicker#config-dragSelect)
281
+ */
282
+ dragSelect? : boolean
283
+ /**
284
+ * Make this Panel a docked drawer which slides out from one side of the browser viewport by default.
285
+ * ...
286
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/SchedulerDatePicker#config-drawer)
287
+ * @param {'start','left','end','right','top','bottom'} side The side of the viewport to dock the drawer to. * `'start'` means the `inline-start` side. * `'end'` means the `inline-end` side.
288
+ * @param {string,number} size The size of the drawer in its collapsible axis.
289
+ * @param {boolean} inline If using the [appendTo](https://bryntum.com/products/scheduler/docs/api/Core/widget/Panel#config-appendTo) config to place the drawer inside a host widget, this may be set to `true` to make the drawer inline within that host. Note that, if using this, the layout of the host element must have `flex-direction` set appropriately.
290
+ * @param {boolean,object} autoClose Specifies what user actions should automatically close the drawer. Defaults to closing when the user clicks outside of the drawer or when focus moves outside of the drawer.
291
+ * @param {boolean,string} autoClose.mousedown If the user clicks outside of the drawer, the drawer will automatically be hidden. If the value is a string, it is used as a CSS selector to filter clicks which should close the drawer.
292
+ * @param {boolean,string} autoClose.focusout If focus moves outside of the drawer, the drawer will automatically be hidden.
293
+ * @param {string} autoClose.mouseout Hides the drawer when the mouse leaves the drawer after the `autoCloseDelay` period.
294
+ * @param {number} autoCloseDelay When using `mouseout`, this is the delay in milliseconds
295
+ */
296
+ drawer? : boolean|{side?: 'start'|'left'|'end'|'right'|'top'|'bottom', size?: string|number, inline?: boolean, autoClose: { mousedown?: boolean|string, focusout?: boolean|string, mouseout?: string }, autoCloseDelay?: number}
297
+ /**
298
+ * By default, the month and year are editable. Configure this as `false` to prevent that.
299
+ */
300
+ editMonth? : boolean
301
+ /**
302
+ * An object specifying attributes to assign to the root element of this widget.
303
+ * Set `null` value to attribute to remove it.
304
+ * ...
305
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/SchedulerDatePicker#config-elementAttributes)
306
+ */
307
+ elementAttributes? : Record<string, string|null>
308
+ /**
309
+ * A function, or the name of a function in the ownership hierarchy to filter which events
310
+ * are collected into the day cell data blocks.
311
+ * ...
312
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/SchedulerDatePicker#config-eventFilter)
313
+ * @param {Scheduler.model.EventModel} event Event for filtering
314
+ * @returns {boolean} Return `true` to include the passed event
315
+ */
316
+ eventFilter? : ((event: EventModel) => boolean)|string
317
+ /**
318
+ * The [event store](https://bryntum.com/products/scheduler/docs/api/Scheduler/data/EventStore) from which the in-cell event presence
319
+ * indicators are drawn.
320
+ */
321
+ eventStore? : EventStore
322
+ extraData? : any
323
+ /**
324
+ * 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
325
+ * flexbox layout. This config allows you to set this widget's
326
+ * [flex](https://developer.mozilla.org/en-US/docs/Web/CSS/flex) style.
327
+ * This may be configured as a single number or a `&lt;flex-grow&gt; &lt;flex-shrink&gt; &lt;flex-basis&gt;` format string.
328
+ * numeric-only values are interpreted as the `flex-grow` value.
329
+ */
330
+ flex? : number|string
331
+ /**
332
+ * Set to `true` to move the widget out of the document flow and position it
333
+ * absolutely in browser viewport space.
334
+ */
335
+ floating? : boolean
336
+ /**
337
+ * By default, disabled dates cannot be navigated to, and they are skipped over
338
+ * during keyboard navigation. Configure this as `true` to enable navigation to
339
+ * disabled dates.
340
+ */
341
+ focusDisabledDates? : boolean
342
+ /**
343
+ * Config object of a footer. May contain a `dock`, `html` and a `cls` property. A footer is not a widget,
344
+ * but rather plain HTML that follows the last element of the panel's body and [strips](https://bryntum.com/products/scheduler/docs/api/Core/widget/Panel#config-strips).
345
+ * ...
346
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/SchedulerDatePicker#config-footer)
347
+ */
348
+ footer? : {
349
+ dock?: 'top'|'right'|'bottom'|'left'|'start'|'end'
350
+ html?: string
351
+ cls?: string
352
+ }|string
353
+ /**
354
+ * A config [object](https://bryntum.com/products/scheduler/docs/api/Core/widget/Panel#typedef-PanelHeader) for the panel's header or a string in place of a `title`.
355
+ * ...
356
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/SchedulerDatePicker#config-header)
357
+ */
358
+ header? : string|boolean|PanelHeader
359
+ /**
360
+ * A function (or the name of a function) which creates content in, and may mutate a day header element.
361
+ * ...
362
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/SchedulerDatePicker#config-headerRenderer)
363
+ * @param {HTMLElement} cell The header element
364
+ * @param {number} columnIndex The day column. Will be in the range `0` to `6`
365
+ * @param {number} weekDay The canonical day number where Monday is `0` and Sunday is `6`
366
+ * @returns {string,DomConfig,void}
367
+ */
368
+ headerRenderer? : ((cell: HTMLElement, columnIndex: number, weekDay: number) => string|DomConfig|void)|string
369
+ /**
370
+ * Widget's height, used to set element `style.height`. Either specify a valid height string or a number,
371
+ * which will get 'px' appended. We recommend using CSS as the primary way to control height, but in some
372
+ * cases this config is convenient.
373
+ */
374
+ height? : string|number
375
+ /**
376
+ * Configure with true to make widget initially hidden.
377
+ */
378
+ hidden? : boolean
379
+ /**
380
+ * *Only valid if this Widget is [floating](https://bryntum.com/products/scheduler/docs/api/Core/widget/Widget#config-floating).*
381
+ * ...
382
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/SchedulerDatePicker#config-hideAnimation)
383
+ */
384
+ hideAnimation? : boolean|object
385
+ /**
386
+ * Configure this as `true` to hide cells which are outside the range of the current month.
387
+ */
388
+ hideOtherMonthCells? : boolean
389
+ /**
390
+ * Specify `true` to make this container hide when it has no visible children (Either empty
391
+ * or all children hidden).
392
+ * ...
393
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/SchedulerDatePicker#config-hideWhenEmpty)
394
+ */
395
+ hideWhenEmpty? : boolean
396
+ /**
397
+ * Configure as `true` to add a highlighted border and background to the week row which
398
+ * encapsulates the selected date.
399
+ */
400
+ highlightSelectedWeek? : boolean
401
+ /**
402
+ * The HTML to display initially or a function returning the markup (called at widget construction time).
403
+ * ...
404
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/SchedulerDatePicker#config-html)
405
+ * @param {Core.widget.Widget} widget The calling Widget
406
+ * @returns {string}
407
+ */
408
+ html? : string|((widget: Widget) => string)|DomConfig|DomConfig[]|VueConfig
409
+ /**
410
+ * The CSS class(es) to add when HTML content is being applied to this widget.
411
+ */
412
+ htmlCls? : string|object
413
+ /**
414
+ * An icon to show before the [title](https://bryntum.com/products/scheduler/docs/api/Core/widget/Panel#config-title). Either pass a CSS class as a string, or pass a
415
+ * [DomConfig](https://bryntum.com/products/scheduler/docs/api/Core/helper/DomHelper#typedef-DomConfig) object describing an element to represent the icon.
416
+ */
417
+ icon? : string|DomConfig
418
+ /**
419
+ * Widget id, if not specified one will be generated. Also used for lookups through Widget.getById
420
+ */
421
+ id? : string
422
+ /**
423
+ * Determines if the widgets read-only state should be controlled by its parent.
424
+ * ...
425
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/SchedulerDatePicker#config-ignoreParentReadOnly)
426
+ */
427
+ ignoreParentReadOnly? : boolean
428
+ /**
429
+ * By default, the year is visible. Configure this as `false` to prevent that.
430
+ */
431
+ includeYear? : boolean
432
+ /**
433
+ * Convenience setting to align input fields of child widgets. By default, the Field input element is
434
+ * placed immediately following the `label`. If you prefer to have all input fields aligned to the
435
+ * right, set this config to `'end'`.
436
+ * ...
437
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/SchedulerDatePicker#config-inputFieldAlign)
438
+ */
439
+ inputFieldAlign? : 'start'|'end'
440
+ /**
441
+ * 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.
442
+ */
443
+ insertBefore? : HTMLElement|string
444
+ /**
445
+ * 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.
446
+ */
447
+ insertFirst? : HTMLElement|string
448
+ /**
449
+ * An optional CSS class to add to child items of this container.
450
+ */
451
+ itemCls? : string
452
+ /**
453
+ * An object containing typed child widget config objects or Widgets. May also be specified
454
+ * as an array.
455
+ * ...
456
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/SchedulerDatePicker#config-items)
457
+ */
458
+ items? : Record<string, ContainerItemConfig|MenuItemEntry>|(ContainerItemConfig|MenuItemEntry|Widget)[]
459
+ /**
460
+ * An object whose keys are the [key](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/key) name
461
+ * and optional modifier prefixes: `'Ctrl+'`, `'Alt+'`, `'Meta+'`, and `'Shift+'` (case-insensitive). The values
462
+ * are the name of the instance method to call when the keystroke is received.
463
+ * ...
464
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/SchedulerDatePicker#config-keyMap)
465
+ */
466
+ keyMap? : Record<string, KeyMapConfig>
467
+ /**
468
+ * Convenience setting to use same label placement on all child widgets.
469
+ * ...
470
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/SchedulerDatePicker#config-labelPosition)
471
+ */
472
+ labelPosition? : 'before'|'above'|'align-before'|'auto'|null
473
+ /**
474
+ * The short name of a helper class which manages rendering and styling of child items.
475
+ * ...
476
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/SchedulerDatePicker#config-layout)
477
+ */
478
+ layout? : string|ContainerLayoutConfig
479
+ /**
480
+ * The CSS style properties to apply to the [contentElement](https://bryntum.com/products/scheduler/docs/api/Core/widget/Widget#property-contentElement).
481
+ * ...
482
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/SchedulerDatePicker#config-layoutStyle)
483
+ */
484
+ layoutStyle? : object
485
+ /**
486
+ * An array of [child item](https://bryntum.com/products/scheduler/docs/api/Core/widget/Container#config-items) *config objects* which is to be converted into
487
+ * instances only when this Container is rendered, rather than eagerly at construct time.
488
+ * ...
489
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/SchedulerDatePicker#config-lazyItems)
490
+ */
491
+ lazyItems? : Record<string, ContainerItemConfig>|ContainerItemConfig[]|Widget[]
492
+ /**
493
+ * The listener set for this object.
494
+ * ...
495
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/SchedulerDatePicker#config-listeners)
496
+ */
497
+ listeners? : SchedulerDatePickerListeners
498
+ /**
499
+ * A class translations of which are used for translating this entity.
500
+ * This is often used when translations of an item are defined on its container class.
501
+ * For example:
502
+ * ...
503
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/SchedulerDatePicker#config-localeClass)
504
+ */
505
+ localeClass? : typeof Base
506
+ /**
507
+ * Set to `false` to disable localization of this object.
508
+ */
509
+ localizable? : boolean
510
+ /**
511
+ * List of properties which values should be translated automatically upon a locale applying.
512
+ * In case there is a need to localize not typical value (not a String value or a field with re-defined setter/getter),
513
+ * you could use 'localeKey' meta configuration.
514
+ * Example:
515
+ * ...
516
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/SchedulerDatePicker#config-localizableProperties)
517
+ */
518
+ localizableProperties? : string[]
519
+ /**
520
+ * Widget's margin. This may be configured as a single number or a `TRBL` format string.
521
+ * numeric-only values are interpreted as pixels.
522
+ */
523
+ margin? : number|string
524
+ /**
525
+ * This config object contains the defaults for the [Mask](https://bryntum.com/products/scheduler/docs/api/Core/widget/Mask) created for the
526
+ * [masked](https://bryntum.com/products/scheduler/docs/api/Core/widget/Widget#config-masked) config. Any properties specified in the `masked` config will override these
527
+ * values.
528
+ */
529
+ maskDefaults? : MaskConfig
530
+ /**
531
+ * Set to `true` to apply the default mask to the widget. Alternatively, this can be the mask message or a
532
+ * [Mask](https://bryntum.com/products/scheduler/docs/api/Core/widget/Mask) config object.
533
+ */
534
+ masked? : boolean|string|MaskConfig
535
+ /**
536
+ * The maximum selectable date. Selection of and navigation to dates after
537
+ * this date will not be possible.
538
+ */
539
+ maxDate? : Date
540
+ /**
541
+ * The element's maxHeight. Can be either a String or a Number (which will have 'px' appended). Note that
542
+ * like [height](https://bryntum.com/products/scheduler/docs/api/Core/widget/Widget#config-height), *reading* the value will return the numeric value in pixels.
543
+ */
544
+ maxHeight? : string|number
545
+ /**
546
+ * *Only valid if this Widget is [floating](https://bryntum.com/products/scheduler/docs/api/Core/widget/Widget#config-floating).*
547
+ * ...
548
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/SchedulerDatePicker#config-maximizeOnMobile)
549
+ */
550
+ maximizeOnMobile? : number|string
551
+ /**
552
+ * The elements maxWidth. Can be either a String or a Number (which will have 'px' appended). Note that
553
+ * like [width](https://bryntum.com/products/scheduler/docs/api/Core/widget/Widget#config-width), *reading* the value will return the numeric value in pixels.
554
+ */
555
+ maxWidth? : string|number
556
+ /**
557
+ * By default, day cells flex to share available Panel width equally.
558
+ * ...
559
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/SchedulerDatePicker#config-minColumnWidth)
560
+ */
561
+ minColumnWidth? : number
562
+ /**
563
+ * The minimum selectable date. Selection of and navigation to dates prior
564
+ * to this date will not be possible.
565
+ */
566
+ minDate? : Date
567
+ /**
568
+ * The element's minHeight. Can be either a String or a Number (which will have 'px' appended). Note that
569
+ * like [height](https://bryntum.com/products/scheduler/docs/api/Core/widget/Widget#config-height), *reading* the value will return the numeric value in pixels.
570
+ */
571
+ minHeight? : string|number
572
+ /**
573
+ * By default, week rows flex to share available Panel height equally.
574
+ * ...
575
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/SchedulerDatePicker#config-minRowHeight)
576
+ */
577
+ minRowHeight? : number|string
578
+ /**
579
+ * The elements minWidth. Can be either a String or a Number (which will have 'px' appended). Note that
580
+ * like [width](https://bryntum.com/products/scheduler/docs/api/Core/widget/Widget#config-width), *reading* the value will return the numeric value in pixels.
581
+ */
582
+ minWidth? : string|number
583
+ /**
584
+ * When this is configured as `true` a [ResizeObserver](https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserver)
585
+ * is used to monitor this element for size changes caused by either style manipulation, or by CSS
586
+ * layout.
587
+ * ...
588
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/SchedulerDatePicker#config-monitorResize)
589
+ */
590
+ monitorResize? : boolean|{
591
+ immediate?: boolean
592
+ }
593
+ /**
594
+ * A [Month](https://bryntum.com/products/scheduler/docs/api/Core/util/Month) Month utility object which encapsulates this Panel's month
595
+ * and provides contextual information and navigation services.
596
+ */
597
+ month? : Month|MonthConfig
598
+ /**
599
+ * The format string to use to create the text of the month button.
600
+ * ...
601
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/SchedulerDatePicker#config-monthButtonFormat)
602
+ */
603
+ monthButtonFormat? : string
604
+ /**
605
+ * Configure as `true` to enable selecting multiple discontiguous date ranges using
606
+ * click and Shift+click to create ranges and Ctrl+click to select/deselect individual dates.
607
+ * ...
608
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/SchedulerDatePicker#config-multiSelect)
609
+ */
610
+ multiSelect? : boolean|'range'|'simple'
611
+ /**
612
+ * An object containing default config objects which may be referenced by name in the [items](https://bryntum.com/products/scheduler/docs/api/Core/widget/Container#config-items)
613
+ * config. For example, a specialized [Menu](https://bryntum.com/products/scheduler/docs/api/Core/widget/Menu) subclass may have a `namedItems` default
614
+ * value defined like this:
615
+ * ...
616
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/SchedulerDatePicker#config-namedItems)
617
+ */
618
+ namedItems? : Record<string, ContainerItemConfig>
619
+ /**
620
+ * The class name to add to calendar cells which are [nonWorkingDays](https://bryntum.com/products/scheduler/docs/api/Core/widget/CalendarPanel#config-nonWorkingDays).
621
+ */
622
+ nonWorkingDayCls? : string
623
+ /**
624
+ * Non-working days as an object where keys are day indices, 0-6 (Sunday-Saturday), and the value is `true`.
625
+ * Defaults to [nonWorkingDays](https://bryntum.com/products/scheduler/docs/api/Core/helper/DateHelper#property-nonWorkingDays-static).
626
+ */
627
+ nonWorkingDays? : Record<number, boolean>
628
+ /**
629
+ * The class name to add to calendar cells which are in the previous or next month.
630
+ */
631
+ otherMonthCls? : string
632
+ /**
633
+ * The owning Widget of this Widget. If this Widget is directly contained (that is, it is one of the
634
+ * [items](https://bryntum.com/products/scheduler/docs/api/Core/widget/Container#property-items) of a Container), this config will be ignored. In this case
635
+ * the owner is <strong>always</strong> the encapsulating Container.
636
+ * ...
637
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/SchedulerDatePicker#config-owner)
638
+ */
639
+ owner? : Widget|any
640
+ /**
641
+ * 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
642
+ * not participate in the standard layout of that widget, and must be positioned relatively to that
643
+ * widget's [contentElement](https://bryntum.com/products/scheduler/docs/api/Core/widget/Widget#property-contentElement).
644
+ * ...
645
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/SchedulerDatePicker#config-positioned)
646
+ */
647
+ positioned? : boolean
648
+ /**
649
+ * Prevent tooltip from being displayed on touch devices. Useful for example for buttons that display a
650
+ * menu on click etc, since the tooltip would be displayed at the same time.
651
+ */
652
+ preventTooltipOnTouch? : boolean
653
+ /**
654
+ * Whether this widget is read-only. This is only valid if the widget is an input
655
+ * field, <strong>or contains input fields at any depth</strong>.
656
+ * ...
657
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/SchedulerDatePicker#config-readOnly)
658
+ */
659
+ readOnly? : boolean
660
+ /**
661
+ * [Record](https://bryntum.com/products/scheduler/docs/api/Core/data/Model) whose values will be used to populate fields in the container.
662
+ * ...
663
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/SchedulerDatePicker#config-record)
664
+ */
665
+ record? : Model
666
+ relayStoreEvents? : boolean
667
+ /**
668
+ * Either a default `rendition` to apply to all child widgets, or a map of renditions keyed by child widget
669
+ * `type`.
670
+ * ...
671
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/SchedulerDatePicker#config-rendition)
672
+ */
673
+ rendition? : string|Record<string, string>|null
674
+ /**
675
+ * Configure as `true` to have the component display a translucent ripple when its
676
+ * [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
677
+ * current theme supports ripples</em>. Out of the box, only the Material theme supports ripples.
678
+ * ...
679
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/SchedulerDatePicker#config-ripple)
680
+ */
681
+ ripple? : boolean|{
682
+ delegate?: string
683
+ color?: string
684
+ radius?: number
685
+ clip?: string
686
+ }
687
+ /**
688
+ * 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`
689
+ */
690
+ rootElement? : ShadowRoot|HTMLElement
691
+ /**
692
+ * This may be configured as `true` to make the widget's element use the `direction:rtl` style.
693
+ * ...
694
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/SchedulerDatePicker#config-rtl)
695
+ */
696
+ rtl? : boolean
697
+ /**
698
+ * Specifies whether (and optionally in which axes) a Widget may scroll. `true` means this widget may scroll
699
+ * in both axes. May be an object containing boolean `overflowX` and `overflowY` properties which are
700
+ * applied to CSS style properties `overflowX` and `overflowY`. If they are boolean, they are translated to
701
+ * CSS overflow properties thus:
702
+ * ...
703
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/SchedulerDatePicker#config-scrollable)
704
+ */
705
+ scrollable? : boolean|ScrollerConfig|Scroller
706
+ /**
707
+ * Defines what to do if document is scrolled while Widget is visible (only relevant when floating is set to `true`).
708
+ * Valid values: ´null´: do nothing, ´hide´: hide the widget or ´realign´: realign to the target if possible.
709
+ */
710
+ scrollAction? : 'hide'|'realign'|null
711
+ /**
712
+ * If [multiSelect](https://bryntum.com/products/scheduler/docs/api/Core/widget/DatePicker#config-multiSelect) is configured as `true`, this is an array of dates
713
+ * which are selected. There may be multiple, discontiguous date ranges.
714
+ * ...
715
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/SchedulerDatePicker#config-selection)
716
+ */
717
+ selection? : Date[]|string[]
718
+ /**
719
+ * Configure as `true` to render past dates in a lighter text color.
720
+ */
721
+ shadePastDates? : boolean
722
+ /**
723
+ * *Only valid if this Widget is [floating](https://bryntum.com/products/scheduler/docs/api/Core/widget/Widget#config-floating).*
724
+ * ...
725
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/SchedulerDatePicker#config-showAnimation)
726
+ */
727
+ showAnimation? : boolean|object
728
+ /**
729
+ * How to show presence of events in the configured [eventStore](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/SchedulerDatePicker#config-eventStore) in the
730
+ * day cells. Values may be:
731
+ * ...
732
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/SchedulerDatePicker#config-showEvents)
733
+ */
734
+ showEvents? : boolean|'count'|'heatmap'
735
+ /**
736
+ * 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)
737
+ */
738
+ showTooltipWhenDisabled? : boolean
739
+ /**
740
+ * Configure as `true` to show a week number column at the start of the calendar block.
741
+ */
742
+ showWeekColumn? : boolean
743
+ /**
744
+ * Configure as `true` to always show a six-week calendar.
745
+ */
746
+ sixWeeks? : boolean
747
+ /**
748
+ * Programmatic control over how many columns to span when used in a grid layout.
749
+ */
750
+ span? : number
751
+ /**
752
+ * This value can be one of the following:
753
+ * ...
754
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/SchedulerDatePicker#config-stateful)
755
+ */
756
+ stateful? : boolean|object|string[]
757
+ /**
758
+ * The events that, when fired by this component, should trigger it to save its state by calling
759
+ * [saveState](https://bryntum.com/products/scheduler/docs/api/Core/mixin/State#function-saveState).
760
+ * ...
761
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/SchedulerDatePicker#config-statefulEvents)
762
+ */
763
+ statefulEvents? : object|string[]
764
+ /**
765
+ * The key to use when saving this object's state in the [stateProvider](https://bryntum.com/products/scheduler/docs/api/Core/mixin/State#config-stateProvider). If this config is
766
+ * not assigned, and [stateful](https://bryntum.com/products/scheduler/docs/api/Core/mixin/State#config-stateful) is not set to `false`, the [id](#Core/widget/Widget#config-id)
767
+ * (if explicitly specified) will be used as the `stateId`.
768
+ * ...
769
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/SchedulerDatePicker#config-stateId)
770
+ */
771
+ stateId? : string
772
+ /**
773
+ * The `StateProvider` to use to save and restore this object's [state](https://bryntum.com/products/scheduler/docs/api/Core/mixin/State#property-state). By default, `state`
774
+ * will be saved using the [default state provider](https://bryntum.com/products/scheduler/docs/api/Core/state/StateProvider#property-instance-static).
775
+ * ...
776
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/SchedulerDatePicker#config-stateProvider)
777
+ */
778
+ stateProvider? : StateProvider
779
+ /**
780
+ * Specify `true` to match fields by their `name` property only when assigning a [record](https://bryntum.com/products/scheduler/docs/api/Core/widget/Container#config-record),
781
+ * without falling back to `ref`.
782
+ */
783
+ strictRecordMapping? : boolean
784
+ /**
785
+ * An object containing widgets keyed by name. By default (when no `type` is given), strips are
786
+ * [toolbars](https://bryntum.com/products/scheduler/docs/api/Core/widget/Toolbar). If you want to pass an array, you can use
787
+ * the toolbar's [items](https://bryntum.com/products/scheduler/docs/api/Core/widget/Container#config-items).
788
+ * ...
789
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/SchedulerDatePicker#config-strips)
790
+ */
791
+ strips? : Record<string, ContainerItemConfig>
792
+ /**
793
+ * 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
794
+ * [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
795
+ * this widget:
796
+ * ...
797
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/SchedulerDatePicker#config-tab)
798
+ */
799
+ tab? : boolean|TabConfig
800
+ /**
801
+ * When this container is used as a tab in a TabPanel, these items are added to the
802
+ * [TabBar](https://bryntum.com/products/scheduler/docs/api/Core/widget/TabBar) when this container is the active tab.
803
+ * ...
804
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/SchedulerDatePicker#config-tabBarItems)
805
+ */
806
+ tabBarItems? : ToolbarItems[]|Widget[]
807
+ /**
808
+ * The tag name of this Widget's root element
809
+ */
810
+ tag? : string
811
+ /**
812
+ * A Config object representing the configuration of a [Toolbar](https://bryntum.com/products/scheduler/docs/api/Core/widget/Toolbar),
813
+ * or array of config objects representing the child items of a Toolbar.
814
+ * This creates a toolbar docked to the top of the panel immediately below the header.
815
+ * ...
816
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/SchedulerDatePicker#config-tbar)
817
+ */
818
+ tbar? : (ContainerItemConfig|string)[]|ToolbarConfig|PagingToolbarConfig|null
819
+ /**
820
+ * Text alignment: 'left', 'center' or 'right'. Also accepts direction neutral 'start' and 'end'.
821
+ * ...
822
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/SchedulerDatePicker#config-textAlign)
823
+ */
824
+ textAlign? : 'left'|'center'|'right'|'start'|'end'
825
+ /**
826
+ * Specify `true` for a container used to show text markup. It will apply the CSS class `b-text-content`
827
+ * which specifies a default max-width that makes long text more readable.
828
+ * ...
829
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/SchedulerDatePicker#config-textContent)
830
+ */
831
+ textContent? : boolean
832
+ /**
833
+ * A config object to create a tooltip which will show on hover of a date cell including disabled, weekend,
834
+ * and "other month" cells.
835
+ * ...
836
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/SchedulerDatePicker#config-tip)
837
+ */
838
+ tip? : TooltipConfig
839
+ /**
840
+ * A title to display in the header or owning TabPanel. Causes creation and docking of a header
841
+ * to the top if no header is configured.
842
+ * ...
843
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/SchedulerDatePicker#config-title)
844
+ */
845
+ title? : string
846
+ /**
847
+ * The class name to add to the calendar cell which contains today's date.
848
+ */
849
+ todayCls? : string
850
+ /**
851
+ * The [tools](https://bryntum.com/products/scheduler/docs/api/Core/widget/Tool) to add either before or after the `title` in the Panel header. Each
852
+ * property name is the reference by which an instantiated tool may be retrieved from the live
853
+ * `[tools](https://bryntum.com/products/scheduler/docs/api/Core/widget/mixin/Toolable#property-tools)` property.
854
+ * ...
855
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/SchedulerDatePicker#config-tools)
856
+ */
857
+ tools? : Record<string, ToolConfig>|null
858
+ /**
859
+ * Tooltip for the widget, either as a string or as a Tooltip config object.
860
+ * ...
861
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/SchedulerDatePicker#config-tooltip)
862
+ */
863
+ tooltip? : string|TooltipConfig|null
864
+ /**
865
+ * By default, tabbing within a Panel is not contained, ie you can TAB out of the Panel
866
+ * forwards or backwards.
867
+ * Configure this as `true` to disallow tabbing out of the Panel, and make tabbing circular within this Panel.
868
+ */
869
+ trapFocus? : boolean
870
+ type? : 'datepicker'
871
+ /**
872
+ * Custom CSS class name suffixes to apply to the elements rendered by this widget. This may be specified
873
+ * as a space separated string, an array of strings, or as an object in which property names with truthy
874
+ * values are used as the class names.
875
+ * ...
876
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/SchedulerDatePicker#config-ui)
877
+ */
878
+ ui? : 'plain'|'toolbar'|string|object
879
+ /**
880
+ * The header text for the week number column, if shown.
881
+ */
882
+ weekColumnHeader? : string
883
+ /**
884
+ * The class name to add to calendar cells which are weekend dates.
885
+ */
886
+ weekendCls? : string
887
+ /**
888
+ * A function (or the name of a function) which creates content in, and may mutate the week cell element at the start of a week row.
889
+ * ...
890
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/SchedulerDatePicker#config-weekRenderer)
891
+ * @param {HTMLElement} weekCell The header element
892
+ * @param {number[]} week An array containing `[year, weekNumber]`
893
+ * @returns {string,DomConfig,void}
894
+ */
895
+ weekRenderer? : ((weekCell: HTMLElement, week: number[]) => string|DomConfig|void)|string
896
+ /**
897
+ * The week start day, 0 meaning Sunday, 6 meaning Saturday.
898
+ * Defaults to [weekStartDay](https://bryntum.com/products/scheduler/docs/api/Core/helper/DateHelper#property-weekStartDay-static).
899
+ */
900
+ weekStartDay? : number
901
+ /**
902
+ * A widgets weight determines its position among siblings when added to a [Container](https://bryntum.com/products/scheduler/docs/api/Core/widget/Container).
903
+ * Higher weights go further down.
904
+ */
905
+ weight? : number
906
+ /**
907
+ * Widget's width, used to set element `style.width`. Either specify a valid width string or a number, which
908
+ * will get 'px' appended. We recommend using CSS as the primary way to control width, but in some cases
909
+ * this config is convenient.
910
+ */
911
+ width? : string|number
912
+ /**
913
+ * The x position for the widget.
914
+ * ...
915
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/SchedulerDatePicker#config-x)
916
+ */
917
+ x? : number
918
+ /**
919
+ * The y position for the widget.
920
+ * ...
921
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/SchedulerDatePicker#config-y)
922
+ */
923
+ y? : number
924
+
925
+ // Events
926
+ /**
927
+ * Fires before an object is destroyed.
928
+ * @param {object} event Event object
929
+ * @param {Core.Base} event.source The Object that is being destroyed.
930
+ */
931
+ onBeforeDestroy? : ((event: { source: Base }) => void)|string
932
+ /**
933
+ * Triggered before a widget is hidden. Return `false` to prevent the action.
934
+ * @param {object} event Event object
935
+ * @param {Core.widget.Widget} event.source The widget being hidden.
936
+ */
937
+ onBeforeHide? : ((event: { source: Widget }) => Promise<boolean>|boolean|void)|string
938
+ /**
939
+ * Fires before this CalendarPanel refreshes in response to changes in its month.
940
+ * @param {object} event Event object
941
+ * @param {Core.widget.DatePicker} event.source This DatePicker.
942
+ */
943
+ onBeforeRefresh? : ((event: { source: DatePicker }) => void)|string
944
+ /**
945
+ * Fired before this container will load record values into its child fields. This is useful if you
946
+ * want to modify the UI before data is loaded (e.g. set some input field to be readonly)
947
+ * @param {object} event Event object
948
+ * @param {Core.widget.Container} event.source The container
949
+ * @param {Core.data.Model} event.record The record
950
+ */
951
+ onBeforeSetRecord? : ((event: { source: Container, record: Model }) => void)|string
952
+ /**
953
+ * Triggered before a widget is shown. Return `false` to prevent the action.
954
+ * @param {object} event Event object
955
+ * @param {Core.widget.Widget,any} event.source The widget being shown
956
+ */
957
+ onBeforeShow? : ((event: { source: Widget|any }) => Promise<boolean>|boolean|void)|string
958
+ /**
959
+ * Fired before state is applied to the source. Allows editing the state object or preventing the operation.
960
+ * @param {object} event Event object
961
+ * @param {any} event.state State object config
962
+ */
963
+ onBeforeStateApply? : ((event: { state: any }) => Promise<boolean>|boolean|void)|string
964
+ /**
965
+ * Fired before state is saved by the StateProvider. Allows editing the state object or preventing the operation.
966
+ * @param {object} event Event object
967
+ * @param {any} event.state State object config
968
+ */
969
+ onBeforeStateSave? : ((event: { state: any }) => Promise<boolean>|boolean|void)|string
970
+ /**
971
+ * Fires when any other event is fired from the object.
972
+ * ...
973
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/SchedulerDatePicker#event-catchAll)
974
+ * @param {object} event Event object
975
+ * @param {{[key: string]: any, type: string}} event.event The Object that contains event details
976
+ * @param {string} event.event.type The type of the event which is caught by the listener
977
+ */
978
+ onCatchAll? : ((event: {[key: string]: any, type: string}) => void)|string
979
+ /**
980
+ * Fired when a date cell is clicked.
981
+ * @param {object} event Event object
982
+ * @param {HTMLElement} event.cell The clicked cell element.
983
+ * @param {Date} event.date The date represented by the cell.
984
+ * @param {number[]} event.week The week array `[year, weekNumber]`.
985
+ * @param {Event} event.domEvent The original DOM event.
986
+ */
987
+ onCellClick? : ((event: { cell: HTMLElement, date: Date, week: number[], domEvent: Event }) => void)|string
988
+ /**
989
+ * Fires when a Panel is collapsed using the [collapsible](https://bryntum.com/products/scheduler/docs/api/Core/widget/Panel#config-collapsible) setting.
990
+ * @param {object} event Event object
991
+ * @param {Core.widget.Panel} event.source This Panel.
992
+ */
993
+ onCollapse? : ((event: { source: Panel }) => void)|string
994
+ /**
995
+ * Fires when the date of this CalendarPanel is set.
996
+ * @param {object} event Event object
997
+ * @param {Date} event.value The new date.
998
+ * @param {Date} event.oldValue The old date.
999
+ * @param {object} event.changes An object which contains properties which indicate what part of the date changed.
1000
+ * @param {boolean} event.changes.d True if the date changed in any way.
1001
+ * @param {boolean} event.changes.w True if the week changed (including same week in a different year).
1002
+ * @param {boolean} event.changes.m True if the month changed (including same month in a different year).
1003
+ * @param {boolean} event.changes.y True if the year changed.
1004
+ */
1005
+ onDateChange? : ((event: { value: Date, oldValue: Date, changes: { d: boolean, w: boolean, m: boolean, y: boolean } }) => void)|string
1006
+ /**
1007
+ * Fires when an object is destroyed.
1008
+ * @param {object} event Event object
1009
+ * @param {Core.Base} event.source The Object that is being destroyed.
1010
+ */
1011
+ onDestroy? : ((event: { source: Base }) => void)|string
1012
+ /**
1013
+ * Fires when a field is mutated and the state of the [hasChanges](https://bryntum.com/products/scheduler/docs/api/Core/widget/Container#property-hasChanges) property changes
1014
+ * @param {object} event Event object
1015
+ * @param {Core.widget.Container} event.source The container.
1016
+ * @param {boolean} event.dirty The dirty state of the Container - `true` if there are any fields which have been changed since initial load.
1017
+ */
1018
+ onDirtyStateChange? : ((event: { source: Container, dirty: boolean }) => void)|string
1019
+ /**
1020
+ * Triggered when a widget's [element](https://bryntum.com/products/scheduler/docs/api/Core/widget/Widget#property-element) is available.
1021
+ * @param {object} event Event object
1022
+ * @param {HTMLElement} event.element The Widget's element.
1023
+ */
1024
+ onElementCreated? : ((event: { element: HTMLElement }) => void)|string
1025
+ /**
1026
+ * Fires when a Panel is expanded using the [collapsible](https://bryntum.com/products/scheduler/docs/api/Core/widget/Panel#config-collapsible) setting.
1027
+ * @param {object} event Event object
1028
+ * @param {Core.widget.Panel} event.source This Panel.
1029
+ */
1030
+ onExpand? : ((event: { source: Panel }) => void)|string
1031
+ /**
1032
+ * Fired when focus enters this Widget.
1033
+ * @param {object} event Event object
1034
+ * @param {Core.widget.Widget} event.source This Widget
1035
+ * @param {HTMLElement} event.fromElement The element which lost focus.
1036
+ * @param {HTMLElement} event.toElement The element which gained focus.
1037
+ * @param {Core.widget.Widget} event.fromWidget The widget which lost focus.
1038
+ * @param {Core.widget.Widget} event.toWidget The widget which gained focus.
1039
+ * @param {boolean} event.backwards `true` if the `toElement` is before the `fromElement` in document order.
1040
+ */
1041
+ onFocusIn? : ((event: { source: Widget, fromElement: HTMLElement, toElement: HTMLElement, fromWidget: Widget, toWidget: Widget, backwards: boolean }) => void)|string
1042
+ /**
1043
+ * Fired when focus exits this Widget's ownership tree. This is different from a `blur` event.
1044
+ * focus moving from within this Widget's ownership tree, even if there are floating widgets
1045
+ * will not trigger this event. This is when focus exits this widget completely.
1046
+ * @param {object} event Event object
1047
+ * @param {Core.widget.Widget} event.source This Widget
1048
+ * @param {HTMLElement} event.fromElement The element which lost focus.
1049
+ * @param {HTMLElement} event.toElement The element which gained focus.
1050
+ * @param {Core.widget.Widget} event.fromWidget The widget which lost focus.
1051
+ * @param {Core.widget.Widget} event.toWidget The widget which gained focus.
1052
+ * @param {boolean} event.backwards `true` if the `toElement` is before the `fromElement` in document order.
1053
+ */
1054
+ onFocusOut? : ((event: { source: Widget, fromElement: HTMLElement, toElement: HTMLElement, fromWidget: Widget, toWidget: Widget, backwards: boolean }) => void)|string
1055
+ /**
1056
+ * Triggered after a widget was hidden
1057
+ * @param {object} event Event object
1058
+ * @param {Core.widget.Widget} event.source The widget
1059
+ */
1060
+ onHide? : ((event: { source: Widget }) => void)|string
1061
+ /**
1062
+ * Triggered when a widget which had been in a non-visible state for any reason
1063
+ * achieves visibility.
1064
+ * ...
1065
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/SchedulerDatePicker#event-paint)
1066
+ * @param {object} event Event object
1067
+ * @param {Core.widget.Widget} event.source The widget being painted.
1068
+ * @param {boolean} event.firstPaint `true` if this is the first paint.
1069
+ */
1070
+ onPaint? : ((event: { source: Widget, firstPaint: boolean }) => void)|string
1071
+ /**
1072
+ * Fired when a Widget's read only state is toggled
1073
+ * @param {object} event Event object
1074
+ * @param {boolean} event.readOnly Read only or not
1075
+ */
1076
+ onReadOnly? : ((event: { readOnly: boolean }) => void)|string
1077
+ /**
1078
+ * This event is fired after a widget's elements have been synchronized due to a direct or indirect call
1079
+ * 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.
1080
+ */
1081
+ onRecompose? : (() => void)|string
1082
+ /**
1083
+ * Fires when this CalendarPanel refreshes.
1084
+ */
1085
+ onRefresh? : (() => void)|string
1086
+ /**
1087
+ * 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`*.
1088
+ * @param {object} event Event object
1089
+ * @param {Core.widget.Widget} event.source This Widget
1090
+ * @param {number} event.width The new width
1091
+ * @param {number} event.height The new height
1092
+ * @param {number} event.oldWidth The old width
1093
+ * @param {number} event.oldHeight The old height
1094
+ */
1095
+ onResize? : ((event: { source: Widget, width: number, height: number, oldWidth: number, oldHeight: number }) => void)|string
1096
+ /**
1097
+ * Fires when a date or date range is selected. If [multiSelect](https://bryntum.com/products/scheduler/docs/api/Core/widget/DatePicker#config-multiSelect) is specified,
1098
+ * this will fire upon deselection and selection of dates.
1099
+ * @param {object} event Event object
1100
+ * @param {Date[]} event.selection The selected dates. If [multiSelect](https://bryntum.com/products/scheduler/docs/api/Core/widget/DatePicker#config-multiSelect) is specified this may be a two element array specifying start and end dates.
1101
+ * @param {Date[]} event.oldSelection The previously selected dates. If [multiSelect](https://bryntum.com/products/scheduler/docs/api/Core/widget/DatePicker#config-multiSelect) is specified this may be a two element array specifying start and end dates.
1102
+ * @param {boolean} event.userAction This will be `true` if the change was caused by user interaction as opposed to programmatic setting.
1103
+ */
1104
+ onSelectionChange? : ((event: { selection: Date[], oldSelection: Date[], userAction: boolean }) => void)|string
1105
+ /**
1106
+ * Triggered after a widget is shown.
1107
+ * @param {object} event Event object
1108
+ * @param {Core.widget.Widget} event.source The widget
1109
+ */
1110
+ onShow? : ((event: { source: Widget }) => void)|string
1111
+ /**
1112
+ * A header [tool](https://bryntum.com/products/scheduler/docs/api/Core/widget/Panel#config-tools) has been clicked.
1113
+ * @param {object} event Event object
1114
+ * @param {Core.widget.Tool} event.source This Panel.
1115
+ * @param {Core.widget.Tool} event.tool The tool which is being clicked.
1116
+ */
1117
+ onToolClick? : ((event: { source: Tool, tool: Tool }) => void)|string
1118
+ /**
1119
+ * Fired when a week number cell is clicked.
1120
+ * @param {object} event Event object
1121
+ * @param {Date} event.date The start date of the week.
1122
+ * @param {number[]} event.week The week array `[year, weekNumber]`.
1123
+ * @param {Event} event.domEvent The original DOM event.
1124
+ */
1125
+ onWeekCellClick? : ((event: { date: Date, week: number[], domEvent: Event }) => void)|string
1126
+
1127
+ }
1128
+
1129
+ export class BryntumSchedulerDatePicker extends React.Component<BryntumSchedulerDatePickerProps> {
1130
+
1131
+ static instanceClass = SchedulerDatePicker;
1132
+
1133
+ static instanceName = 'SchedulerDatePicker';
1134
+
1135
+ processWidgetContent = processWidgetContent;
1136
+
1137
+ static configNames = [
1138
+ 'activeDate',
1139
+ 'adopt',
1140
+ 'align',
1141
+ 'anchor',
1142
+ 'ariaDescription',
1143
+ 'ariaLabel',
1144
+ 'autoUpdateRecord',
1145
+ 'bbar',
1146
+ 'bodyCls',
1147
+ 'bubbleEvents',
1148
+ 'cellRenderer',
1149
+ 'centered',
1150
+ 'collapsible',
1151
+ 'color',
1152
+ 'config',
1153
+ 'constrainTo',
1154
+ 'contentElementCls',
1155
+ 'dataField',
1156
+ 'dayNameFormat',
1157
+ 'defaultBindProperty',
1158
+ 'defaultFocus',
1159
+ 'defaults',
1160
+ 'detectCSSCompatibilityIssues',
1161
+ 'disabledCls',
1162
+ 'disabledDates',
1163
+ 'disableNonWorkingDays',
1164
+ 'disableOtherMonthCells',
1165
+ 'disableWeekends',
1166
+ 'dock',
1167
+ 'draggable',
1168
+ 'drawer',
1169
+ 'editMonth',
1170
+ 'elementAttributes',
1171
+ 'eventFilter',
1172
+ 'eventStore',
1173
+ 'floating',
1174
+ 'focusDisabledDates',
1175
+ 'footer',
1176
+ 'header',
1177
+ 'headerRenderer',
1178
+ 'hideAnimation',
1179
+ 'hideOtherMonthCells',
1180
+ 'hideWhenEmpty',
1181
+ 'htmlCls',
1182
+ 'icon',
1183
+ 'ignoreParentReadOnly',
1184
+ 'includeYear',
1185
+ 'itemCls',
1186
+ 'lazyItems',
1187
+ 'listeners',
1188
+ 'localeClass',
1189
+ 'localizable',
1190
+ 'localizableProperties',
1191
+ 'maskDefaults',
1192
+ 'masked',
1193
+ 'maxDate',
1194
+ 'minColumnWidth',
1195
+ 'minDate',
1196
+ 'minRowHeight',
1197
+ 'monitorResize',
1198
+ 'month',
1199
+ 'monthButtonFormat',
1200
+ 'multiSelect',
1201
+ 'namedItems',
1202
+ 'nonWorkingDayCls',
1203
+ 'nonWorkingDays',
1204
+ 'otherMonthCls',
1205
+ 'owner',
1206
+ 'positioned',
1207
+ 'preventTooltipOnTouch',
1208
+ 'relayStoreEvents',
1209
+ 'ripple',
1210
+ 'rootElement',
1211
+ 'scrollAction',
1212
+ 'showAnimation',
1213
+ 'showEvents',
1214
+ 'showTooltipWhenDisabled',
1215
+ 'showWeekColumn',
1216
+ 'sixWeeks',
1217
+ 'stateful',
1218
+ 'statefulEvents',
1219
+ 'stateId',
1220
+ 'stateProvider',
1221
+ 'strips',
1222
+ 'tab',
1223
+ 'tabBarItems',
1224
+ 'tag',
1225
+ 'tbar',
1226
+ 'textAlign',
1227
+ 'textContent',
1228
+ 'tip',
1229
+ 'todayCls',
1230
+ 'trapFocus',
1231
+ 'type',
1232
+ 'ui',
1233
+ 'weekendCls',
1234
+ 'weekRenderer',
1235
+ 'weekStartDay',
1236
+ 'weight'
1237
+ ];
1238
+
1239
+ static propertyConfigNames = [
1240
+ 'alignSelf',
1241
+ 'animateTimeShift',
1242
+ 'appendTo',
1243
+ 'callOnFunctions',
1244
+ 'catchEventHandlerExceptions',
1245
+ 'cls',
1246
+ 'collapsed',
1247
+ 'column',
1248
+ 'content',
1249
+ 'dataset',
1250
+ 'date',
1251
+ 'disabled',
1252
+ 'dragSelect',
1253
+ 'extraData',
1254
+ 'flex',
1255
+ 'height',
1256
+ 'hidden',
1257
+ 'highlightSelectedWeek',
1258
+ 'html',
1259
+ 'id',
1260
+ 'inputFieldAlign',
1261
+ 'insertBefore',
1262
+ 'insertFirst',
1263
+ 'items',
1264
+ 'keyMap',
1265
+ 'labelPosition',
1266
+ 'layout',
1267
+ 'layoutStyle',
1268
+ 'margin',
1269
+ 'maxHeight',
1270
+ 'maximizeOnMobile',
1271
+ 'maxWidth',
1272
+ 'minHeight',
1273
+ 'minWidth',
1274
+ 'onBeforeDestroy',
1275
+ 'onBeforeHide',
1276
+ 'onBeforeRefresh',
1277
+ 'onBeforeSetRecord',
1278
+ 'onBeforeShow',
1279
+ 'onBeforeStateApply',
1280
+ 'onBeforeStateSave',
1281
+ 'onCatchAll',
1282
+ 'onCellClick',
1283
+ 'onCollapse',
1284
+ 'onDateChange',
1285
+ 'onDestroy',
1286
+ 'onDirtyStateChange',
1287
+ 'onElementCreated',
1288
+ 'onExpand',
1289
+ 'onFocusIn',
1290
+ 'onFocusOut',
1291
+ 'onHide',
1292
+ 'onPaint',
1293
+ 'onReadOnly',
1294
+ 'onRecompose',
1295
+ 'onRefresh',
1296
+ 'onResize',
1297
+ 'onSelectionChange',
1298
+ 'onShow',
1299
+ 'onToolClick',
1300
+ 'onWeekCellClick',
1301
+ 'readOnly',
1302
+ 'record',
1303
+ 'rendition',
1304
+ 'rtl',
1305
+ 'scrollable',
1306
+ 'selection',
1307
+ 'shadePastDates',
1308
+ 'span',
1309
+ 'strictRecordMapping',
1310
+ 'title',
1311
+ 'tools',
1312
+ 'tooltip',
1313
+ 'weekColumnHeader',
1314
+ 'width',
1315
+ 'x',
1316
+ 'y'
1317
+ ];
1318
+
1319
+ static propertyNames = [
1320
+ 'anchorSize',
1321
+ 'focusVisible',
1322
+ 'hasChanges',
1323
+ 'isSettingValues',
1324
+ 'isValid',
1325
+ 'parent',
1326
+ 'state',
1327
+ 'values'
1328
+ ];
1329
+
1330
+ // Component instance
1331
+ instance!: SchedulerDatePicker;
1332
+
1333
+ // Component element
1334
+ element! : HTMLElement;
1335
+
1336
+ componentDidMount(): void {
1337
+ this.instance = createWidget(this);
1338
+ }
1339
+
1340
+ componentWillUnmount(): void {
1341
+ // @ts-ignore
1342
+ this.instance?.destroy?.();
1343
+ }
1344
+
1345
+ /**
1346
+ * Component about to be updated, from changing a prop using state.
1347
+ * React to it depending on what changed and prevent react from re-rendering our component.
1348
+ * @param nextProps
1349
+ * @param nextState
1350
+ * @returns {boolean}
1351
+ */
1352
+ shouldComponentUpdate(nextProps: Readonly<BryntumSchedulerDatePickerProps>, nextState: Readonly<{}>): boolean {
1353
+ return shouldComponentUpdate(this, nextProps, nextState);
1354
+ }
1355
+
1356
+ render(): React.ReactNode {
1357
+
1358
+ const className = `b-react-scheduler-date-picker-container`;
1359
+ return (
1360
+ <div className={className} ref={(element) => (this.element = element!)}></div>
1361
+ );
1362
+
1363
+ }
1364
+ }