@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,1340 @@
1
+ /**
2
+ * React wrapper for Bryntum DatePicker
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, DatePickerListeners, DomConfig, KeyMapConfig, Layout, MaskConfig, MenuItemConfig, MenuItemEntry, Model, Month, MonthConfig, PagingToolbarConfig, Panel, PanelCollapserConfig, PanelCollapserOverlayConfig, PanelHeader, Rectangle, 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 BryntumDatePickerProps = {
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/Core/widget/DatePicker#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/Core/widget/DatePicker#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/Core/widget/DatePicker#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/Core/widget/DatePicker#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/Core/widget/DatePicker#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/Core/widget/DatePicker#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/Core/widget/DatePicker#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/Core/widget/DatePicker#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/Core/widget/DatePicker#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/Core/widget/DatePicker#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/Core/widget/DatePicker#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/Core/widget/DatePicker#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/Core/widget/DatePicker#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/Core/widget/DatePicker#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/Core/widget/DatePicker#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/Core/widget/DatePicker#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/Core/widget/DatePicker#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/Core/widget/DatePicker#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/Core/widget/DatePicker#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/Core/widget/DatePicker#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/Core/widget/DatePicker#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/Core/widget/DatePicker#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/Core/widget/DatePicker#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/Core/widget/DatePicker#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/Core/widget/DatePicker#config-elementAttributes)
306
+ */
307
+ elementAttributes? : Record<string, string|null>
308
+ extraData? : any
309
+ /**
310
+ * 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
311
+ * flexbox layout. This config allows you to set this widget's
312
+ * [flex](https://developer.mozilla.org/en-US/docs/Web/CSS/flex) style.
313
+ * This may be configured as a single number or a `&lt;flex-grow&gt; &lt;flex-shrink&gt; &lt;flex-basis&gt;` format string.
314
+ * numeric-only values are interpreted as the `flex-grow` value.
315
+ */
316
+ flex? : number|string
317
+ /**
318
+ * Set to `true` to move the widget out of the document flow and position it
319
+ * absolutely in browser viewport space.
320
+ */
321
+ floating? : boolean
322
+ /**
323
+ * By default, disabled dates cannot be navigated to, and they are skipped over
324
+ * during keyboard navigation. Configure this as `true` to enable navigation to
325
+ * disabled dates.
326
+ */
327
+ focusDisabledDates? : boolean
328
+ /**
329
+ * Config object of a footer. May contain a `dock`, `html` and a `cls` property. A footer is not a widget,
330
+ * 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).
331
+ * ...
332
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/DatePicker#config-footer)
333
+ */
334
+ footer? : {
335
+ dock?: 'top'|'right'|'bottom'|'left'|'start'|'end'
336
+ html?: string
337
+ cls?: string
338
+ }|string
339
+ /**
340
+ * 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`.
341
+ * ...
342
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/DatePicker#config-header)
343
+ */
344
+ header? : string|boolean|PanelHeader
345
+ /**
346
+ * A function (or the name of a function) which creates content in, and may mutate a day header element.
347
+ * ...
348
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/DatePicker#config-headerRenderer)
349
+ * @param {HTMLElement} cell The header element
350
+ * @param {number} columnIndex The day column. Will be in the range `0` to `6`
351
+ * @param {number} weekDay The canonical day number where Monday is `0` and Sunday is `6`
352
+ * @returns {string,DomConfig,void}
353
+ */
354
+ headerRenderer? : ((cell: HTMLElement, columnIndex: number, weekDay: number) => string|DomConfig|void)|string
355
+ /**
356
+ * Widget's height, used to set element `style.height`. Either specify a valid height string or a number,
357
+ * which will get 'px' appended. We recommend using CSS as the primary way to control height, but in some
358
+ * cases this config is convenient.
359
+ */
360
+ height? : string|number
361
+ /**
362
+ * Configure with true to make widget initially hidden.
363
+ */
364
+ hidden? : boolean
365
+ /**
366
+ * *Only valid if this Widget is [floating](https://bryntum.com/products/scheduler/docs/api/Core/widget/Widget#config-floating).*
367
+ * ...
368
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/DatePicker#config-hideAnimation)
369
+ */
370
+ hideAnimation? : boolean|object
371
+ /**
372
+ * Configure this as `true` to hide cells which are outside the range of the current month.
373
+ */
374
+ hideOtherMonthCells? : boolean
375
+ /**
376
+ * Specify `true` to make this container hide when it has no visible children (Either empty
377
+ * or all children hidden).
378
+ * ...
379
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/DatePicker#config-hideWhenEmpty)
380
+ */
381
+ hideWhenEmpty? : boolean
382
+ /**
383
+ * Configure as `true` to add a highlighted border and background to the week row which
384
+ * encapsulates the selected date.
385
+ */
386
+ highlightSelectedWeek? : boolean
387
+ /**
388
+ * The HTML to display initially or a function returning the markup (called at widget construction time).
389
+ * ...
390
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/DatePicker#config-html)
391
+ * @param {Core.widget.Widget} widget The calling Widget
392
+ * @returns {string}
393
+ */
394
+ html? : string|((widget: Widget) => string)|DomConfig|DomConfig[]|VueConfig
395
+ /**
396
+ * The CSS class(es) to add when HTML content is being applied to this widget.
397
+ */
398
+ htmlCls? : string|object
399
+ /**
400
+ * 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
401
+ * [DomConfig](https://bryntum.com/products/scheduler/docs/api/Core/helper/DomHelper#typedef-DomConfig) object describing an element to represent the icon.
402
+ */
403
+ icon? : string|DomConfig
404
+ /**
405
+ * Widget id, if not specified one will be generated. Also used for lookups through Widget.getById
406
+ */
407
+ id? : string
408
+ /**
409
+ * Determines if the widgets read-only state should be controlled by its parent.
410
+ * ...
411
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/DatePicker#config-ignoreParentReadOnly)
412
+ */
413
+ ignoreParentReadOnly? : boolean
414
+ /**
415
+ * By default, the year is visible. Configure this as `false` to prevent that.
416
+ */
417
+ includeYear? : boolean
418
+ /**
419
+ * Convenience setting to align input fields of child widgets. By default, the Field input element is
420
+ * placed immediately following the `label`. If you prefer to have all input fields aligned to the
421
+ * right, set this config to `'end'`.
422
+ * ...
423
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/DatePicker#config-inputFieldAlign)
424
+ */
425
+ inputFieldAlign? : 'start'|'end'
426
+ /**
427
+ * 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.
428
+ */
429
+ insertBefore? : HTMLElement|string
430
+ /**
431
+ * 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.
432
+ */
433
+ insertFirst? : HTMLElement|string
434
+ /**
435
+ * An optional CSS class to add to child items of this container.
436
+ */
437
+ itemCls? : string
438
+ /**
439
+ * An object containing typed child widget config objects or Widgets. May also be specified
440
+ * as an array.
441
+ * ...
442
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/DatePicker#config-items)
443
+ */
444
+ items? : Record<string, ContainerItemConfig|MenuItemEntry>|(ContainerItemConfig|MenuItemEntry|Widget)[]
445
+ /**
446
+ * An object whose keys are the [key](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/key) name
447
+ * and optional modifier prefixes: `'Ctrl+'`, `'Alt+'`, `'Meta+'`, and `'Shift+'` (case-insensitive). The values
448
+ * are the name of the instance method to call when the keystroke is received.
449
+ * ...
450
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/DatePicker#config-keyMap)
451
+ */
452
+ keyMap? : Record<string, KeyMapConfig>
453
+ /**
454
+ * Convenience setting to use same label placement on all child widgets.
455
+ * ...
456
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/DatePicker#config-labelPosition)
457
+ */
458
+ labelPosition? : 'before'|'above'|'align-before'|'auto'|null
459
+ /**
460
+ * The short name of a helper class which manages rendering and styling of child items.
461
+ * ...
462
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/DatePicker#config-layout)
463
+ */
464
+ layout? : string|ContainerLayoutConfig
465
+ /**
466
+ * The CSS style properties to apply to the [contentElement](https://bryntum.com/products/scheduler/docs/api/Core/widget/Widget#property-contentElement).
467
+ * ...
468
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/DatePicker#config-layoutStyle)
469
+ */
470
+ layoutStyle? : object
471
+ /**
472
+ * 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
473
+ * instances only when this Container is rendered, rather than eagerly at construct time.
474
+ * ...
475
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/DatePicker#config-lazyItems)
476
+ */
477
+ lazyItems? : Record<string, ContainerItemConfig>|ContainerItemConfig[]|Widget[]
478
+ /**
479
+ * The listener set for this object.
480
+ * ...
481
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/DatePicker#config-listeners)
482
+ */
483
+ listeners? : DatePickerListeners
484
+ /**
485
+ * A class translations of which are used for translating this entity.
486
+ * This is often used when translations of an item are defined on its container class.
487
+ * For example:
488
+ * ...
489
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/DatePicker#config-localeClass)
490
+ */
491
+ localeClass? : typeof Base
492
+ /**
493
+ * Set to `false` to disable localization of this object.
494
+ */
495
+ localizable? : boolean
496
+ /**
497
+ * List of properties which values should be translated automatically upon a locale applying.
498
+ * In case there is a need to localize not typical value (not a String value or a field with re-defined setter/getter),
499
+ * you could use 'localeKey' meta configuration.
500
+ * Example:
501
+ * ...
502
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/DatePicker#config-localizableProperties)
503
+ */
504
+ localizableProperties? : string[]
505
+ /**
506
+ * Widget's margin. This may be configured as a single number or a `TRBL` format string.
507
+ * numeric-only values are interpreted as pixels.
508
+ */
509
+ margin? : number|string
510
+ /**
511
+ * This config object contains the defaults for the [Mask](https://bryntum.com/products/scheduler/docs/api/Core/widget/Mask) created for the
512
+ * [masked](https://bryntum.com/products/scheduler/docs/api/Core/widget/Widget#config-masked) config. Any properties specified in the `masked` config will override these
513
+ * values.
514
+ */
515
+ maskDefaults? : MaskConfig
516
+ /**
517
+ * Set to `true` to apply the default mask to the widget. Alternatively, this can be the mask message or a
518
+ * [Mask](https://bryntum.com/products/scheduler/docs/api/Core/widget/Mask) config object.
519
+ */
520
+ masked? : boolean|string|MaskConfig
521
+ /**
522
+ * The maximum selectable date. Selection of and navigation to dates after
523
+ * this date will not be possible.
524
+ */
525
+ maxDate? : Date
526
+ /**
527
+ * The element's maxHeight. Can be either a String or a Number (which will have 'px' appended). Note that
528
+ * like [height](https://bryntum.com/products/scheduler/docs/api/Core/widget/Widget#config-height), *reading* the value will return the numeric value in pixels.
529
+ */
530
+ maxHeight? : string|number
531
+ /**
532
+ * *Only valid if this Widget is [floating](https://bryntum.com/products/scheduler/docs/api/Core/widget/Widget#config-floating).*
533
+ * ...
534
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/DatePicker#config-maximizeOnMobile)
535
+ */
536
+ maximizeOnMobile? : number|string
537
+ /**
538
+ * The elements maxWidth. Can be either a String or a Number (which will have 'px' appended). Note that
539
+ * like [width](https://bryntum.com/products/scheduler/docs/api/Core/widget/Widget#config-width), *reading* the value will return the numeric value in pixels.
540
+ */
541
+ maxWidth? : string|number
542
+ /**
543
+ * By default, day cells flex to share available Panel width equally.
544
+ * ...
545
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/DatePicker#config-minColumnWidth)
546
+ */
547
+ minColumnWidth? : number
548
+ /**
549
+ * The minimum selectable date. Selection of and navigation to dates prior
550
+ * to this date will not be possible.
551
+ */
552
+ minDate? : Date
553
+ /**
554
+ * The element's minHeight. Can be either a String or a Number (which will have 'px' appended). Note that
555
+ * like [height](https://bryntum.com/products/scheduler/docs/api/Core/widget/Widget#config-height), *reading* the value will return the numeric value in pixels.
556
+ */
557
+ minHeight? : string|number
558
+ /**
559
+ * By default, week rows flex to share available Panel height equally.
560
+ * ...
561
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/DatePicker#config-minRowHeight)
562
+ */
563
+ minRowHeight? : number|string
564
+ /**
565
+ * The elements minWidth. Can be either a String or a Number (which will have 'px' appended). Note that
566
+ * like [width](https://bryntum.com/products/scheduler/docs/api/Core/widget/Widget#config-width), *reading* the value will return the numeric value in pixels.
567
+ */
568
+ minWidth? : string|number
569
+ /**
570
+ * When this is configured as `true` a [ResizeObserver](https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserver)
571
+ * is used to monitor this element for size changes caused by either style manipulation, or by CSS
572
+ * layout.
573
+ * ...
574
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/DatePicker#config-monitorResize)
575
+ */
576
+ monitorResize? : boolean|{
577
+ immediate?: boolean
578
+ }
579
+ /**
580
+ * A [Month](https://bryntum.com/products/scheduler/docs/api/Core/util/Month) Month utility object which encapsulates this Panel's month
581
+ * and provides contextual information and navigation services.
582
+ */
583
+ month? : Month|MonthConfig
584
+ /**
585
+ * The format string to use to create the text of the month button.
586
+ * ...
587
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/DatePicker#config-monthButtonFormat)
588
+ */
589
+ monthButtonFormat? : string
590
+ /**
591
+ * Configure as `true` to enable selecting multiple discontiguous date ranges using
592
+ * click and Shift+click to create ranges and Ctrl+click to select/deselect individual dates.
593
+ * ...
594
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/DatePicker#config-multiSelect)
595
+ */
596
+ multiSelect? : boolean|'range'|'simple'
597
+ /**
598
+ * 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)
599
+ * config. For example, a specialized [Menu](https://bryntum.com/products/scheduler/docs/api/Core/widget/Menu) subclass may have a `namedItems` default
600
+ * value defined like this:
601
+ * ...
602
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/DatePicker#config-namedItems)
603
+ */
604
+ namedItems? : Record<string, ContainerItemConfig>
605
+ /**
606
+ * The class name to add to calendar cells which are [nonWorkingDays](https://bryntum.com/products/scheduler/docs/api/Core/widget/CalendarPanel#config-nonWorkingDays).
607
+ */
608
+ nonWorkingDayCls? : string
609
+ /**
610
+ * Non-working days as an object where keys are day indices, 0-6 (Sunday-Saturday), and the value is `true`.
611
+ * Defaults to [nonWorkingDays](https://bryntum.com/products/scheduler/docs/api/Core/helper/DateHelper#property-nonWorkingDays-static).
612
+ */
613
+ nonWorkingDays? : Record<number, boolean>
614
+ /**
615
+ * The class name to add to calendar cells which are in the previous or next month.
616
+ */
617
+ otherMonthCls? : string
618
+ /**
619
+ * The owning Widget of this Widget. If this Widget is directly contained (that is, it is one of the
620
+ * [items](https://bryntum.com/products/scheduler/docs/api/Core/widget/Container#property-items) of a Container), this config will be ignored. In this case
621
+ * the owner is <strong>always</strong> the encapsulating Container.
622
+ * ...
623
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/DatePicker#config-owner)
624
+ */
625
+ owner? : Widget|any
626
+ /**
627
+ * 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
628
+ * not participate in the standard layout of that widget, and must be positioned relatively to that
629
+ * widget's [contentElement](https://bryntum.com/products/scheduler/docs/api/Core/widget/Widget#property-contentElement).
630
+ * ...
631
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/DatePicker#config-positioned)
632
+ */
633
+ positioned? : boolean
634
+ /**
635
+ * Prevent tooltip from being displayed on touch devices. Useful for example for buttons that display a
636
+ * menu on click etc, since the tooltip would be displayed at the same time.
637
+ */
638
+ preventTooltipOnTouch? : boolean
639
+ /**
640
+ * Whether this widget is read-only. This is only valid if the widget is an input
641
+ * field, <strong>or contains input fields at any depth</strong>.
642
+ * ...
643
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/DatePicker#config-readOnly)
644
+ */
645
+ readOnly? : boolean
646
+ /**
647
+ * [Record](https://bryntum.com/products/scheduler/docs/api/Core/data/Model) whose values will be used to populate fields in the container.
648
+ * ...
649
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/DatePicker#config-record)
650
+ */
651
+ record? : Model
652
+ relayStoreEvents? : boolean
653
+ /**
654
+ * Either a default `rendition` to apply to all child widgets, or a map of renditions keyed by child widget
655
+ * `type`.
656
+ * ...
657
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/DatePicker#config-rendition)
658
+ */
659
+ rendition? : string|Record<string, string>|null
660
+ /**
661
+ * Configure as `true` to have the component display a translucent ripple when its
662
+ * [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
663
+ * current theme supports ripples</em>. Out of the box, only the Material theme supports ripples.
664
+ * ...
665
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/DatePicker#config-ripple)
666
+ */
667
+ ripple? : boolean|{
668
+ delegate?: string
669
+ color?: string
670
+ radius?: number
671
+ clip?: string
672
+ }
673
+ /**
674
+ * 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`
675
+ */
676
+ rootElement? : ShadowRoot|HTMLElement
677
+ /**
678
+ * This may be configured as `true` to make the widget's element use the `direction:rtl` style.
679
+ * ...
680
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/DatePicker#config-rtl)
681
+ */
682
+ rtl? : boolean
683
+ /**
684
+ * Specifies whether (and optionally in which axes) a Widget may scroll. `true` means this widget may scroll
685
+ * in both axes. May be an object containing boolean `overflowX` and `overflowY` properties which are
686
+ * applied to CSS style properties `overflowX` and `overflowY`. If they are boolean, they are translated to
687
+ * CSS overflow properties thus:
688
+ * ...
689
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/DatePicker#config-scrollable)
690
+ */
691
+ scrollable? : boolean|ScrollerConfig|Scroller
692
+ /**
693
+ * Defines what to do if document is scrolled while Widget is visible (only relevant when floating is set to `true`).
694
+ * Valid values: ´null´: do nothing, ´hide´: hide the widget or ´realign´: realign to the target if possible.
695
+ */
696
+ scrollAction? : 'hide'|'realign'|null
697
+ /**
698
+ * If [multiSelect](https://bryntum.com/products/scheduler/docs/api/Core/widget/DatePicker#config-multiSelect) is configured as `true`, this is an array of dates
699
+ * which are selected. There may be multiple, discontiguous date ranges.
700
+ * ...
701
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/DatePicker#config-selection)
702
+ */
703
+ selection? : Date[]|string[]
704
+ /**
705
+ * Configure as `true` to render past dates in a lighter text color.
706
+ */
707
+ shadePastDates? : boolean
708
+ /**
709
+ * *Only valid if this Widget is [floating](https://bryntum.com/products/scheduler/docs/api/Core/widget/Widget#config-floating).*
710
+ * ...
711
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/DatePicker#config-showAnimation)
712
+ */
713
+ showAnimation? : boolean|object
714
+ /**
715
+ * 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)
716
+ */
717
+ showTooltipWhenDisabled? : boolean
718
+ /**
719
+ * Configure as `true` to show a week number column at the start of the calendar block.
720
+ */
721
+ showWeekColumn? : boolean
722
+ /**
723
+ * Configure as `true` to always show a six-week calendar.
724
+ */
725
+ sixWeeks? : boolean
726
+ /**
727
+ * Programmatic control over how many columns to span when used in a grid layout.
728
+ */
729
+ span? : number
730
+ /**
731
+ * This value can be one of the following:
732
+ * ...
733
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/DatePicker#config-stateful)
734
+ */
735
+ stateful? : boolean|object|string[]
736
+ /**
737
+ * The events that, when fired by this component, should trigger it to save its state by calling
738
+ * [saveState](https://bryntum.com/products/scheduler/docs/api/Core/mixin/State#function-saveState).
739
+ * ...
740
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/DatePicker#config-statefulEvents)
741
+ */
742
+ statefulEvents? : object|string[]
743
+ /**
744
+ * 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
745
+ * 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)
746
+ * (if explicitly specified) will be used as the `stateId`.
747
+ * ...
748
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/DatePicker#config-stateId)
749
+ */
750
+ stateId? : string
751
+ /**
752
+ * 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`
753
+ * will be saved using the [default state provider](https://bryntum.com/products/scheduler/docs/api/Core/state/StateProvider#property-instance-static).
754
+ * ...
755
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/DatePicker#config-stateProvider)
756
+ */
757
+ stateProvider? : StateProvider
758
+ /**
759
+ * 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),
760
+ * without falling back to `ref`.
761
+ */
762
+ strictRecordMapping? : boolean
763
+ /**
764
+ * An object containing widgets keyed by name. By default (when no `type` is given), strips are
765
+ * [toolbars](https://bryntum.com/products/scheduler/docs/api/Core/widget/Toolbar). If you want to pass an array, you can use
766
+ * the toolbar's [items](https://bryntum.com/products/scheduler/docs/api/Core/widget/Container#config-items).
767
+ * ...
768
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/DatePicker#config-strips)
769
+ */
770
+ strips? : Record<string, ContainerItemConfig>
771
+ /**
772
+ * 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
773
+ * [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
774
+ * this widget:
775
+ * ...
776
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/DatePicker#config-tab)
777
+ */
778
+ tab? : boolean|TabConfig
779
+ /**
780
+ * When this container is used as a tab in a TabPanel, these items are added to the
781
+ * [TabBar](https://bryntum.com/products/scheduler/docs/api/Core/widget/TabBar) when this container is the active tab.
782
+ * ...
783
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/DatePicker#config-tabBarItems)
784
+ */
785
+ tabBarItems? : ToolbarItems[]|Widget[]
786
+ /**
787
+ * The tag name of this Widget's root element
788
+ */
789
+ tag? : string
790
+ /**
791
+ * A Config object representing the configuration of a [Toolbar](https://bryntum.com/products/scheduler/docs/api/Core/widget/Toolbar),
792
+ * or array of config objects representing the child items of a Toolbar.
793
+ * This creates a toolbar docked to the top of the panel immediately below the header.
794
+ * ...
795
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/DatePicker#config-tbar)
796
+ */
797
+ tbar? : (ContainerItemConfig|string)[]|ToolbarConfig|PagingToolbarConfig|null
798
+ /**
799
+ * Text alignment: 'left', 'center' or 'right'. Also accepts direction neutral 'start' and 'end'.
800
+ * ...
801
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/DatePicker#config-textAlign)
802
+ */
803
+ textAlign? : 'left'|'center'|'right'|'start'|'end'
804
+ /**
805
+ * Specify `true` for a container used to show text markup. It will apply the CSS class `b-text-content`
806
+ * which specifies a default max-width that makes long text more readable.
807
+ * ...
808
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/DatePicker#config-textContent)
809
+ */
810
+ textContent? : boolean
811
+ /**
812
+ * A config object to create a tooltip which will show on hover of a date cell including disabled, weekend,
813
+ * and "other month" cells.
814
+ * ...
815
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/DatePicker#config-tip)
816
+ */
817
+ tip? : TooltipConfig
818
+ /**
819
+ * A title to display in the header or owning TabPanel. Causes creation and docking of a header
820
+ * to the top if no header is configured.
821
+ * ...
822
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/DatePicker#config-title)
823
+ */
824
+ title? : string
825
+ /**
826
+ * The class name to add to the calendar cell which contains today's date.
827
+ */
828
+ todayCls? : string
829
+ /**
830
+ * 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
831
+ * property name is the reference by which an instantiated tool may be retrieved from the live
832
+ * `[tools](https://bryntum.com/products/scheduler/docs/api/Core/widget/mixin/Toolable#property-tools)` property.
833
+ * ...
834
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/DatePicker#config-tools)
835
+ */
836
+ tools? : Record<string, ToolConfig>|null
837
+ /**
838
+ * Tooltip for the widget, either as a string or as a Tooltip config object.
839
+ * ...
840
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/DatePicker#config-tooltip)
841
+ */
842
+ tooltip? : string|TooltipConfig|null
843
+ /**
844
+ * By default, tabbing within a Panel is not contained, ie you can TAB out of the Panel
845
+ * forwards or backwards.
846
+ * Configure this as `true` to disallow tabbing out of the Panel, and make tabbing circular within this Panel.
847
+ */
848
+ trapFocus? : boolean
849
+ type? : 'datepicker'
850
+ /**
851
+ * Custom CSS class name suffixes to apply to the elements rendered by this widget. This may be specified
852
+ * as a space separated string, an array of strings, or as an object in which property names with truthy
853
+ * values are used as the class names.
854
+ * ...
855
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/DatePicker#config-ui)
856
+ */
857
+ ui? : 'plain'|'toolbar'|string|object
858
+ /**
859
+ * The header text for the week number column, if shown.
860
+ */
861
+ weekColumnHeader? : string
862
+ /**
863
+ * The class name to add to calendar cells which are weekend dates.
864
+ */
865
+ weekendCls? : string
866
+ /**
867
+ * 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.
868
+ * ...
869
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/DatePicker#config-weekRenderer)
870
+ * @param {HTMLElement} weekCell The header element
871
+ * @param {number[]} week An array containing `[year, weekNumber]`
872
+ * @returns {string,DomConfig,void}
873
+ */
874
+ weekRenderer? : ((weekCell: HTMLElement, week: number[]) => string|DomConfig|void)|string
875
+ /**
876
+ * The week start day, 0 meaning Sunday, 6 meaning Saturday.
877
+ * Defaults to [weekStartDay](https://bryntum.com/products/scheduler/docs/api/Core/helper/DateHelper#property-weekStartDay-static).
878
+ */
879
+ weekStartDay? : number
880
+ /**
881
+ * A widgets weight determines its position among siblings when added to a [Container](https://bryntum.com/products/scheduler/docs/api/Core/widget/Container).
882
+ * Higher weights go further down.
883
+ */
884
+ weight? : number
885
+ /**
886
+ * Widget's width, used to set element `style.width`. Either specify a valid width string or a number, which
887
+ * will get 'px' appended. We recommend using CSS as the primary way to control width, but in some cases
888
+ * this config is convenient.
889
+ */
890
+ width? : string|number
891
+ /**
892
+ * The x position for the widget.
893
+ * ...
894
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/DatePicker#config-x)
895
+ */
896
+ x? : number
897
+ /**
898
+ * The y position for the widget.
899
+ * ...
900
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/DatePicker#config-y)
901
+ */
902
+ y? : number
903
+
904
+ // Events
905
+ /**
906
+ * Fires before an object is destroyed.
907
+ * @param {object} event Event object
908
+ * @param {Core.Base} event.source The Object that is being destroyed.
909
+ */
910
+ onBeforeDestroy? : ((event: { source: Base }) => void)|string
911
+ /**
912
+ * Triggered before a widget is hidden. Return `false` to prevent the action.
913
+ * @param {object} event Event object
914
+ * @param {Core.widget.Widget} event.source The widget being hidden.
915
+ */
916
+ onBeforeHide? : ((event: { source: Widget }) => Promise<boolean>|boolean|void)|string
917
+ /**
918
+ * Fires before this CalendarPanel refreshes in response to changes in its month.
919
+ * @param {object} event Event object
920
+ * @param {Core.widget.DatePicker} event.source This DatePicker.
921
+ */
922
+ onBeforeRefresh? : ((event: { source: DatePicker }) => void)|string
923
+ /**
924
+ * Fired before this container will load record values into its child fields. This is useful if you
925
+ * want to modify the UI before data is loaded (e.g. set some input field to be readonly)
926
+ * @param {object} event Event object
927
+ * @param {Core.widget.Container} event.source The container
928
+ * @param {Core.data.Model} event.record The record
929
+ */
930
+ onBeforeSetRecord? : ((event: { source: Container, record: Model }) => void)|string
931
+ /**
932
+ * Triggered before a widget is shown. Return `false` to prevent the action.
933
+ * @param {object} event Event object
934
+ * @param {Core.widget.Widget,any} event.source The widget being shown
935
+ */
936
+ onBeforeShow? : ((event: { source: Widget|any }) => Promise<boolean>|boolean|void)|string
937
+ /**
938
+ * Fired before state is applied to the source. Allows editing the state object or preventing the operation.
939
+ * @param {object} event Event object
940
+ * @param {any} event.state State object config
941
+ */
942
+ onBeforeStateApply? : ((event: { state: any }) => Promise<boolean>|boolean|void)|string
943
+ /**
944
+ * Fired before state is saved by the StateProvider. Allows editing the state object or preventing the operation.
945
+ * @param {object} event Event object
946
+ * @param {any} event.state State object config
947
+ */
948
+ onBeforeStateSave? : ((event: { state: any }) => Promise<boolean>|boolean|void)|string
949
+ /**
950
+ * Fires when any other event is fired from the object.
951
+ * ...
952
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/DatePicker#event-catchAll)
953
+ * @param {object} event Event object
954
+ * @param {{[key: string]: any, type: string}} event.event The Object that contains event details
955
+ * @param {string} event.event.type The type of the event which is caught by the listener
956
+ */
957
+ onCatchAll? : ((event: {[key: string]: any, type: string}) => void)|string
958
+ /**
959
+ * Fired when a date cell is clicked.
960
+ * @param {object} event Event object
961
+ * @param {HTMLElement} event.cell The clicked cell element.
962
+ * @param {Date} event.date The date represented by the cell.
963
+ * @param {number[]} event.week The week array `[year, weekNumber]`.
964
+ * @param {Event} event.domEvent The original DOM event.
965
+ */
966
+ onCellClick? : ((event: { cell: HTMLElement, date: Date, week: number[], domEvent: Event }) => void)|string
967
+ /**
968
+ * Fires when a Panel is collapsed using the [collapsible](https://bryntum.com/products/scheduler/docs/api/Core/widget/Panel#config-collapsible) setting.
969
+ * @param {object} event Event object
970
+ * @param {Core.widget.Panel} event.source This Panel.
971
+ */
972
+ onCollapse? : ((event: { source: Panel }) => void)|string
973
+ /**
974
+ * Fires when the date of this CalendarPanel is set.
975
+ * @param {object} event Event object
976
+ * @param {Date} event.value The new date.
977
+ * @param {Date} event.oldValue The old date.
978
+ * @param {object} event.changes An object which contains properties which indicate what part of the date changed.
979
+ * @param {boolean} event.changes.d True if the date changed in any way.
980
+ * @param {boolean} event.changes.w True if the week changed (including same week in a different year).
981
+ * @param {boolean} event.changes.m True if the month changed (including same month in a different year).
982
+ * @param {boolean} event.changes.y True if the year changed.
983
+ */
984
+ onDateChange? : ((event: { value: Date, oldValue: Date, changes: { d: boolean, w: boolean, m: boolean, y: boolean } }) => void)|string
985
+ /**
986
+ * Fires when an object is destroyed.
987
+ * @param {object} event Event object
988
+ * @param {Core.Base} event.source The Object that is being destroyed.
989
+ */
990
+ onDestroy? : ((event: { source: Base }) => void)|string
991
+ /**
992
+ * 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
993
+ * @param {object} event Event object
994
+ * @param {Core.widget.Container} event.source The container.
995
+ * @param {boolean} event.dirty The dirty state of the Container - `true` if there are any fields which have been changed since initial load.
996
+ */
997
+ onDirtyStateChange? : ((event: { source: Container, dirty: boolean }) => void)|string
998
+ /**
999
+ * Triggered when a widget's [element](https://bryntum.com/products/scheduler/docs/api/Core/widget/Widget#property-element) is available.
1000
+ * @param {object} event Event object
1001
+ * @param {HTMLElement} event.element The Widget's element.
1002
+ */
1003
+ onElementCreated? : ((event: { element: HTMLElement }) => void)|string
1004
+ /**
1005
+ * Fires when a Panel is expanded using the [collapsible](https://bryntum.com/products/scheduler/docs/api/Core/widget/Panel#config-collapsible) setting.
1006
+ * @param {object} event Event object
1007
+ * @param {Core.widget.Panel} event.source This Panel.
1008
+ */
1009
+ onExpand? : ((event: { source: Panel }) => void)|string
1010
+ /**
1011
+ * Fired when focus enters this Widget.
1012
+ * @param {object} event Event object
1013
+ * @param {Core.widget.Widget} event.source This Widget
1014
+ * @param {HTMLElement} event.fromElement The element which lost focus.
1015
+ * @param {HTMLElement} event.toElement The element which gained focus.
1016
+ * @param {Core.widget.Widget} event.fromWidget The widget which lost focus.
1017
+ * @param {Core.widget.Widget} event.toWidget The widget which gained focus.
1018
+ * @param {boolean} event.backwards `true` if the `toElement` is before the `fromElement` in document order.
1019
+ */
1020
+ onFocusIn? : ((event: { source: Widget, fromElement: HTMLElement, toElement: HTMLElement, fromWidget: Widget, toWidget: Widget, backwards: boolean }) => void)|string
1021
+ /**
1022
+ * Fired when focus exits this Widget's ownership tree. This is different from a `blur` event.
1023
+ * focus moving from within this Widget's ownership tree, even if there are floating widgets
1024
+ * will not trigger this event. This is when focus exits this widget completely.
1025
+ * @param {object} event Event object
1026
+ * @param {Core.widget.Widget} event.source This Widget
1027
+ * @param {HTMLElement} event.fromElement The element which lost focus.
1028
+ * @param {HTMLElement} event.toElement The element which gained focus.
1029
+ * @param {Core.widget.Widget} event.fromWidget The widget which lost focus.
1030
+ * @param {Core.widget.Widget} event.toWidget The widget which gained focus.
1031
+ * @param {boolean} event.backwards `true` if the `toElement` is before the `fromElement` in document order.
1032
+ */
1033
+ onFocusOut? : ((event: { source: Widget, fromElement: HTMLElement, toElement: HTMLElement, fromWidget: Widget, toWidget: Widget, backwards: boolean }) => void)|string
1034
+ /**
1035
+ * Triggered after a widget was hidden
1036
+ * @param {object} event Event object
1037
+ * @param {Core.widget.Widget} event.source The widget
1038
+ */
1039
+ onHide? : ((event: { source: Widget }) => void)|string
1040
+ /**
1041
+ * Triggered when a widget which had been in a non-visible state for any reason
1042
+ * achieves visibility.
1043
+ * ...
1044
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/DatePicker#event-paint)
1045
+ * @param {object} event Event object
1046
+ * @param {Core.widget.Widget} event.source The widget being painted.
1047
+ * @param {boolean} event.firstPaint `true` if this is the first paint.
1048
+ */
1049
+ onPaint? : ((event: { source: Widget, firstPaint: boolean }) => void)|string
1050
+ /**
1051
+ * Fired when a Widget's read only state is toggled
1052
+ * @param {object} event Event object
1053
+ * @param {boolean} event.readOnly Read only or not
1054
+ */
1055
+ onReadOnly? : ((event: { readOnly: boolean }) => void)|string
1056
+ /**
1057
+ * This event is fired after a widget's elements have been synchronized due to a direct or indirect call
1058
+ * 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.
1059
+ */
1060
+ onRecompose? : (() => void)|string
1061
+ /**
1062
+ * Fires when this CalendarPanel refreshes.
1063
+ */
1064
+ onRefresh? : (() => void)|string
1065
+ /**
1066
+ * 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`*.
1067
+ * @param {object} event Event object
1068
+ * @param {Core.widget.Widget} event.source This Widget
1069
+ * @param {number} event.width The new width
1070
+ * @param {number} event.height The new height
1071
+ * @param {number} event.oldWidth The old width
1072
+ * @param {number} event.oldHeight The old height
1073
+ */
1074
+ onResize? : ((event: { source: Widget, width: number, height: number, oldWidth: number, oldHeight: number }) => void)|string
1075
+ /**
1076
+ * 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,
1077
+ * this will fire upon deselection and selection of dates.
1078
+ * @param {object} event Event object
1079
+ * @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.
1080
+ * @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.
1081
+ * @param {boolean} event.userAction This will be `true` if the change was caused by user interaction as opposed to programmatic setting.
1082
+ */
1083
+ onSelectionChange? : ((event: { selection: Date[], oldSelection: Date[], userAction: boolean }) => void)|string
1084
+ /**
1085
+ * Triggered after a widget is shown.
1086
+ * @param {object} event Event object
1087
+ * @param {Core.widget.Widget} event.source The widget
1088
+ */
1089
+ onShow? : ((event: { source: Widget }) => void)|string
1090
+ /**
1091
+ * A header [tool](https://bryntum.com/products/scheduler/docs/api/Core/widget/Panel#config-tools) has been clicked.
1092
+ * @param {object} event Event object
1093
+ * @param {Core.widget.Tool} event.source This Panel.
1094
+ * @param {Core.widget.Tool} event.tool The tool which is being clicked.
1095
+ */
1096
+ onToolClick? : ((event: { source: Tool, tool: Tool }) => void)|string
1097
+ /**
1098
+ * Fired when a week number cell is clicked.
1099
+ * @param {object} event Event object
1100
+ * @param {Date} event.date The start date of the week.
1101
+ * @param {number[]} event.week The week array `[year, weekNumber]`.
1102
+ * @param {Event} event.domEvent The original DOM event.
1103
+ */
1104
+ onWeekCellClick? : ((event: { date: Date, week: number[], domEvent: Event }) => void)|string
1105
+
1106
+ }
1107
+
1108
+ export class BryntumDatePicker extends React.Component<BryntumDatePickerProps> {
1109
+
1110
+ static instanceClass = DatePicker;
1111
+
1112
+ static instanceName = 'DatePicker';
1113
+
1114
+ processWidgetContent = processWidgetContent;
1115
+
1116
+ static configNames = [
1117
+ 'activeDate',
1118
+ 'adopt',
1119
+ 'align',
1120
+ 'anchor',
1121
+ 'ariaDescription',
1122
+ 'ariaLabel',
1123
+ 'autoUpdateRecord',
1124
+ 'bbar',
1125
+ 'bodyCls',
1126
+ 'bubbleEvents',
1127
+ 'cellRenderer',
1128
+ 'centered',
1129
+ 'collapsible',
1130
+ 'color',
1131
+ 'config',
1132
+ 'constrainTo',
1133
+ 'contentElementCls',
1134
+ 'dataField',
1135
+ 'dayNameFormat',
1136
+ 'defaultBindProperty',
1137
+ 'defaultFocus',
1138
+ 'defaults',
1139
+ 'detectCSSCompatibilityIssues',
1140
+ 'disabledCls',
1141
+ 'disabledDates',
1142
+ 'disableNonWorkingDays',
1143
+ 'disableOtherMonthCells',
1144
+ 'disableWeekends',
1145
+ 'dock',
1146
+ 'draggable',
1147
+ 'drawer',
1148
+ 'editMonth',
1149
+ 'elementAttributes',
1150
+ 'floating',
1151
+ 'focusDisabledDates',
1152
+ 'footer',
1153
+ 'header',
1154
+ 'headerRenderer',
1155
+ 'hideAnimation',
1156
+ 'hideOtherMonthCells',
1157
+ 'hideWhenEmpty',
1158
+ 'htmlCls',
1159
+ 'icon',
1160
+ 'ignoreParentReadOnly',
1161
+ 'includeYear',
1162
+ 'itemCls',
1163
+ 'lazyItems',
1164
+ 'listeners',
1165
+ 'localeClass',
1166
+ 'localizable',
1167
+ 'localizableProperties',
1168
+ 'maskDefaults',
1169
+ 'masked',
1170
+ 'maxDate',
1171
+ 'minColumnWidth',
1172
+ 'minDate',
1173
+ 'minRowHeight',
1174
+ 'monitorResize',
1175
+ 'month',
1176
+ 'monthButtonFormat',
1177
+ 'multiSelect',
1178
+ 'namedItems',
1179
+ 'nonWorkingDayCls',
1180
+ 'nonWorkingDays',
1181
+ 'otherMonthCls',
1182
+ 'owner',
1183
+ 'positioned',
1184
+ 'preventTooltipOnTouch',
1185
+ 'relayStoreEvents',
1186
+ 'ripple',
1187
+ 'rootElement',
1188
+ 'scrollAction',
1189
+ 'showAnimation',
1190
+ 'showTooltipWhenDisabled',
1191
+ 'showWeekColumn',
1192
+ 'sixWeeks',
1193
+ 'stateful',
1194
+ 'statefulEvents',
1195
+ 'stateId',
1196
+ 'stateProvider',
1197
+ 'strips',
1198
+ 'tab',
1199
+ 'tabBarItems',
1200
+ 'tag',
1201
+ 'tbar',
1202
+ 'textAlign',
1203
+ 'textContent',
1204
+ 'tip',
1205
+ 'todayCls',
1206
+ 'trapFocus',
1207
+ 'type',
1208
+ 'ui',
1209
+ 'weekendCls',
1210
+ 'weekRenderer',
1211
+ 'weekStartDay',
1212
+ 'weight'
1213
+ ];
1214
+
1215
+ static propertyConfigNames = [
1216
+ 'alignSelf',
1217
+ 'animateTimeShift',
1218
+ 'appendTo',
1219
+ 'callOnFunctions',
1220
+ 'catchEventHandlerExceptions',
1221
+ 'cls',
1222
+ 'collapsed',
1223
+ 'column',
1224
+ 'content',
1225
+ 'dataset',
1226
+ 'date',
1227
+ 'disabled',
1228
+ 'dragSelect',
1229
+ 'extraData',
1230
+ 'flex',
1231
+ 'height',
1232
+ 'hidden',
1233
+ 'highlightSelectedWeek',
1234
+ 'html',
1235
+ 'id',
1236
+ 'inputFieldAlign',
1237
+ 'insertBefore',
1238
+ 'insertFirst',
1239
+ 'items',
1240
+ 'keyMap',
1241
+ 'labelPosition',
1242
+ 'layout',
1243
+ 'layoutStyle',
1244
+ 'margin',
1245
+ 'maxHeight',
1246
+ 'maximizeOnMobile',
1247
+ 'maxWidth',
1248
+ 'minHeight',
1249
+ 'minWidth',
1250
+ 'onBeforeDestroy',
1251
+ 'onBeforeHide',
1252
+ 'onBeforeRefresh',
1253
+ 'onBeforeSetRecord',
1254
+ 'onBeforeShow',
1255
+ 'onBeforeStateApply',
1256
+ 'onBeforeStateSave',
1257
+ 'onCatchAll',
1258
+ 'onCellClick',
1259
+ 'onCollapse',
1260
+ 'onDateChange',
1261
+ 'onDestroy',
1262
+ 'onDirtyStateChange',
1263
+ 'onElementCreated',
1264
+ 'onExpand',
1265
+ 'onFocusIn',
1266
+ 'onFocusOut',
1267
+ 'onHide',
1268
+ 'onPaint',
1269
+ 'onReadOnly',
1270
+ 'onRecompose',
1271
+ 'onRefresh',
1272
+ 'onResize',
1273
+ 'onSelectionChange',
1274
+ 'onShow',
1275
+ 'onToolClick',
1276
+ 'onWeekCellClick',
1277
+ 'readOnly',
1278
+ 'record',
1279
+ 'rendition',
1280
+ 'rtl',
1281
+ 'scrollable',
1282
+ 'selection',
1283
+ 'shadePastDates',
1284
+ 'span',
1285
+ 'strictRecordMapping',
1286
+ 'title',
1287
+ 'tools',
1288
+ 'tooltip',
1289
+ 'weekColumnHeader',
1290
+ 'width',
1291
+ 'x',
1292
+ 'y'
1293
+ ];
1294
+
1295
+ static propertyNames = [
1296
+ 'anchorSize',
1297
+ 'focusVisible',
1298
+ 'hasChanges',
1299
+ 'isSettingValues',
1300
+ 'isValid',
1301
+ 'parent',
1302
+ 'state',
1303
+ 'values'
1304
+ ];
1305
+
1306
+ // Component instance
1307
+ instance!: DatePicker;
1308
+
1309
+ // Component element
1310
+ element! : HTMLElement;
1311
+
1312
+ componentDidMount(): void {
1313
+ this.instance = createWidget(this);
1314
+ }
1315
+
1316
+ componentWillUnmount(): void {
1317
+ // @ts-ignore
1318
+ this.instance?.destroy?.();
1319
+ }
1320
+
1321
+ /**
1322
+ * Component about to be updated, from changing a prop using state.
1323
+ * React to it depending on what changed and prevent react from re-rendering our component.
1324
+ * @param nextProps
1325
+ * @param nextState
1326
+ * @returns {boolean}
1327
+ */
1328
+ shouldComponentUpdate(nextProps: Readonly<BryntumDatePickerProps>, nextState: Readonly<{}>): boolean {
1329
+ return shouldComponentUpdate(this, nextProps, nextState);
1330
+ }
1331
+
1332
+ render(): React.ReactNode {
1333
+
1334
+ const className = `b-react-date-picker-container`;
1335
+ return (
1336
+ <div className={className} ref={(element) => (this.element = element!)}></div>
1337
+ );
1338
+
1339
+ }
1340
+ }