@bryntum/calendar-vue-3 7.3.0 → 7.3.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 +1 -1
  2. package/lib/chunks/-gfCfICt.js.map +1 -1
  3. package/lib/chunks/{BBmKbcBm.js → 0OZOSj3K.js} +11 -9
  4. package/lib/chunks/0OZOSj3K.js.map +1 -0
  5. package/lib/chunks/{DQEdPoQo.js → 6ysIOAeQ.js} +9 -7
  6. package/lib/chunks/6ysIOAeQ.js.map +1 -0
  7. package/lib/chunks/8f6XqGsD.js.map +1 -1
  8. package/lib/chunks/9tApH0if.js.map +1 -1
  9. package/lib/chunks/AVadRojY.js.map +1 -1
  10. package/lib/chunks/B4eYsje_.js.map +1 -1
  11. package/lib/chunks/{CPHxjIqw.js → B7wodVs1.js} +9 -7
  12. package/lib/chunks/B7wodVs1.js.map +1 -0
  13. package/lib/chunks/BBc3kJ2l.js.map +1 -1
  14. package/lib/chunks/BD3V-SxA.js.map +1 -1
  15. package/lib/chunks/{DURERga3.js → BFQMFysc.js} +6 -4
  16. package/lib/chunks/BFQMFysc.js.map +1 -0
  17. package/lib/chunks/BHB_Xr7B.js.map +1 -1
  18. package/lib/chunks/BRHH9-fs.js.map +1 -1
  19. package/lib/chunks/{DxT4VIUT.js → BSTFzAku.js} +3 -1
  20. package/lib/chunks/BSTFzAku.js.map +1 -0
  21. package/lib/chunks/BUTdFPf9.js.map +1 -1
  22. package/lib/chunks/BVEipTu4.js.map +1 -1
  23. package/lib/chunks/BYLyV5Qz.js.map +1 -1
  24. package/lib/chunks/BbOrQ8ft.js.map +1 -1
  25. package/lib/chunks/{DzuHthMw.js → BdoTFJhe.js} +9 -7
  26. package/lib/chunks/BdoTFJhe.js.map +1 -0
  27. package/lib/chunks/{j6GbzQ11.js → BeA4Wx8Y.js} +12 -10
  28. package/lib/chunks/BeA4Wx8Y.js.map +1 -0
  29. package/lib/chunks/{JKRtgYCJ.js → BeiCK7f8.js} +9 -7
  30. package/lib/chunks/BeiCK7f8.js.map +1 -0
  31. package/lib/chunks/BoILvqhB.js.map +1 -1
  32. package/lib/chunks/{BKPgz4z1.js → C-rJdjwM.js} +14 -12
  33. package/lib/chunks/C-rJdjwM.js.map +1 -0
  34. package/lib/chunks/C1e81geK.js.map +1 -1
  35. package/lib/chunks/C3im5F6T.js.map +1 -1
  36. package/lib/chunks/C4_EvmHb.js.map +1 -1
  37. package/lib/chunks/{BI8wQGwJ.js → C8FspEDS.js} +7 -5
  38. package/lib/chunks/C8FspEDS.js.map +1 -0
  39. package/lib/chunks/{CWM22e1v.js → CI4tLO9K.js} +6 -4
  40. package/lib/chunks/CI4tLO9K.js.map +1 -0
  41. package/lib/chunks/{kCsdJsDp.js → CIV2Plgi.js} +5 -3
  42. package/lib/chunks/CIV2Plgi.js.map +1 -0
  43. package/lib/chunks/CK8pVkWO.js.map +1 -1
  44. package/lib/chunks/{fCOl6gGe.js → CL2aSYwL.js} +4 -2
  45. package/lib/chunks/CL2aSYwL.js.map +1 -0
  46. package/lib/chunks/COQRF4O2.js.map +1 -1
  47. package/lib/chunks/CObxLUVv.js.map +1 -1
  48. package/lib/chunks/CYO0U3xG.js.map +1 -1
  49. package/lib/chunks/{QXeRMnaM.js → CZmKZOXs.js} +11 -9
  50. package/lib/chunks/CZmKZOXs.js.map +1 -0
  51. package/lib/chunks/{uBR9aAgk.js → CbvZfQIb.js} +6 -4
  52. package/lib/chunks/CbvZfQIb.js.map +1 -0
  53. package/lib/chunks/{BWhkyANY.js → CeQqNQur.js} +12 -10
  54. package/lib/chunks/CeQqNQur.js.map +1 -0
  55. package/lib/chunks/{VUkGxEQX.js → CeiQfFj4.js} +9 -7
  56. package/lib/chunks/CeiQfFj4.js.map +1 -0
  57. package/lib/chunks/CfyHmkPe.js.map +1 -1
  58. package/lib/chunks/CiecGioc.js.map +1 -1
  59. package/lib/chunks/CjfHlzPr.js.map +1 -1
  60. package/lib/chunks/{JkqrKvFU.js → Cl2RaLEy.js} +10 -8
  61. package/lib/chunks/Cl2RaLEy.js.map +1 -0
  62. package/lib/chunks/Cpmv-8CX.js.map +1 -1
  63. package/lib/chunks/CsRtPonL.js.map +1 -1
  64. package/lib/chunks/Ct9WYKLH.js.map +1 -1
  65. package/lib/chunks/{C6c2zNh0.js → CuaZAnUQ.js} +9 -7
  66. package/lib/chunks/CuaZAnUQ.js.map +1 -0
  67. package/lib/chunks/D2Rp5DqD.js.map +1 -1
  68. package/lib/chunks/D8LFX3Si.js.map +1 -1
  69. package/lib/chunks/DCeVwori.js.map +1 -1
  70. package/lib/chunks/DFdgK5Ff.js.map +1 -1
  71. package/lib/chunks/DGNDLzjC.js.map +1 -1
  72. package/lib/chunks/DKh1JBaq.js.map +1 -1
  73. package/lib/chunks/DQ2aBJ55.js.map +1 -1
  74. package/lib/chunks/{DI98porG.js → DSTwKMaq.js} +11 -9
  75. package/lib/chunks/DSTwKMaq.js.map +1 -0
  76. package/lib/chunks/DTAFonQW.js.map +1 -1
  77. package/lib/chunks/{B8gQABN9.js → DUaUWLyw.js} +3 -1
  78. package/lib/chunks/DUaUWLyw.js.map +1 -0
  79. package/lib/chunks/DUsiYkFK.js.map +1 -1
  80. package/lib/chunks/DdpHkb3E.js.map +1 -1
  81. package/lib/chunks/DgIBeET0.js.map +1 -1
  82. package/lib/chunks/DgJZ6ZlB.js.map +1 -1
  83. package/lib/chunks/DhwKNWjD.js.map +1 -1
  84. package/lib/chunks/{C19d7e9r.js → DoFyfMXF.js} +7 -5
  85. package/lib/chunks/DoFyfMXF.js.map +1 -0
  86. package/lib/chunks/DpVMBZKg.js.map +1 -1
  87. package/lib/chunks/DpX76W8R.js.map +1 -1
  88. package/lib/chunks/{FzMaadW6.js → Dw8g2KwQ.js} +9 -7
  89. package/lib/chunks/Dw8g2KwQ.js.map +1 -0
  90. package/lib/chunks/DwfSxgDx.js.map +1 -1
  91. package/lib/chunks/{CNs1dLtt.js → DxoJlWU3.js} +8 -6
  92. package/lib/chunks/DxoJlWU3.js.map +1 -0
  93. package/lib/chunks/DyrhHazx.js.map +1 -1
  94. package/lib/chunks/{CvRb-PD8.js → DzXzhdwr.js} +13 -11
  95. package/lib/chunks/DzXzhdwr.js.map +1 -0
  96. package/lib/chunks/Ffj7MYiP.js.map +1 -1
  97. package/lib/chunks/{E1AHpT8W.js → GFug45r8.js} +9 -7
  98. package/lib/chunks/GFug45r8.js.map +1 -0
  99. package/lib/chunks/KzCo7H0B.js.map +1 -1
  100. package/lib/chunks/PBX4P85B.js.map +1 -1
  101. package/lib/chunks/Tt3YRLoT.js.map +1 -1
  102. package/lib/chunks/UIRN-9Gk.js.map +1 -1
  103. package/lib/chunks/Uub1pbHE.js.map +1 -1
  104. package/lib/chunks/VxQFGAPu.js.map +1 -1
  105. package/lib/chunks/cT-MuN_z.js.map +1 -1
  106. package/lib/chunks/{3pMrXrSV.js → dSkHfi4J.js} +10 -8
  107. package/lib/chunks/dSkHfi4J.js.map +1 -0
  108. package/lib/chunks/gdOjznoN.js.map +1 -1
  109. package/lib/chunks/lkmEYnvD.js.map +1 -1
  110. package/lib/chunks/mzLGzWY5.js.map +1 -1
  111. package/lib/chunks/{7r3BIYih.js → nMvWDbO6.js} +9 -7
  112. package/lib/chunks/nMvWDbO6.js.map +1 -0
  113. package/lib/chunks/qmIX92PW.js.map +1 -1
  114. package/lib/chunks/{BspGLrQY.js → r66Wz1km.js} +6 -4
  115. package/lib/chunks/r66Wz1km.js.map +1 -0
  116. package/lib/chunks/rg6JAh_X.js.map +1 -1
  117. package/lib/chunks/wPKCUEuQ.js.map +1 -1
  118. package/lib/components/BryntumAIFilterField.js +1 -1
  119. package/lib/components/BryntumBooleanCombo.js +1 -1
  120. package/lib/components/BryntumCalendar.js +1 -1
  121. package/lib/components/BryntumCheckbox.js +1 -1
  122. package/lib/components/BryntumChecklistFilterCombo.js +1 -1
  123. package/lib/components/BryntumColorField.js +1 -1
  124. package/lib/components/BryntumCombo.js +1 -1
  125. package/lib/components/BryntumDateField.js +1 -1
  126. package/lib/components/BryntumDateRangeField.js +1 -1
  127. package/lib/components/BryntumDateTimeField.js +1 -1
  128. package/lib/components/BryntumDisplayField.js +1 -1
  129. package/lib/components/BryntumDurationField.js +1 -1
  130. package/lib/components/BryntumEventColorField.js +1 -1
  131. package/lib/components/BryntumFileField.js +1 -1
  132. package/lib/components/BryntumFilterField.js +1 -1
  133. package/lib/components/BryntumNumberField.js +1 -1
  134. package/lib/components/BryntumPasswordField.js +1 -1
  135. package/lib/components/BryntumProjectCombo.js +1 -1
  136. package/lib/components/BryntumRadio.js +1 -1
  137. package/lib/components/BryntumResourceCombo.js +1 -1
  138. package/lib/components/BryntumScheduler.js +1 -1
  139. package/lib/components/BryntumSchedulerBase.js +1 -1
  140. package/lib/components/BryntumSlideToggle.js +1 -1
  141. package/lib/components/BryntumTextAreaField.js +1 -1
  142. package/lib/components/BryntumTextAreaPickerField.js +1 -1
  143. package/lib/components/BryntumTextField.js +1 -1
  144. package/lib/components/BryntumTimeField.js +1 -1
  145. package/lib/components/BryntumTreeCombo.js +1 -1
  146. package/lib/components/BryntumViewPresetCombo.js +1 -1
  147. package/lib/index.js +29 -29
  148. package/package.json +1 -1
  149. package/src/components/BryntumAIFilterField.vue +11 -1
  150. package/src/components/BryntumAIFilterFieldProps.ts +9 -0
  151. package/src/components/BryntumAgendaView.vue +27 -27
  152. package/src/components/BryntumBooleanCombo.vue +11 -1
  153. package/src/components/BryntumBooleanComboProps.ts +9 -0
  154. package/src/components/BryntumButton.vue +3 -3
  155. package/src/components/BryntumButtonGroup.vue +1 -1
  156. package/src/components/BryntumCalendar.vue +30 -24
  157. package/src/components/BryntumCalendarDatePicker.vue +3 -3
  158. package/src/components/BryntumCalendarProps.ts +6 -1
  159. package/src/components/BryntumChatPanel.vue +3 -3
  160. package/src/components/BryntumCheckbox.vue +12 -2
  161. package/src/components/BryntumCheckboxGroup.vue +3 -3
  162. package/src/components/BryntumCheckboxProps.ts +9 -0
  163. package/src/components/BryntumChecklistFilterCombo.vue +11 -1
  164. package/src/components/BryntumChecklistFilterComboProps.ts +9 -0
  165. package/src/components/BryntumChipView.vue +2 -2
  166. package/src/components/BryntumCodeEditor.vue +3 -3
  167. package/src/components/BryntumColorField.vue +11 -1
  168. package/src/components/BryntumColorFieldProps.ts +9 -0
  169. package/src/components/BryntumCombo.vue +11 -1
  170. package/src/components/BryntumComboProps.ts +9 -0
  171. package/src/components/BryntumContainer.vue +1 -1
  172. package/src/components/BryntumDateField.vue +11 -1
  173. package/src/components/BryntumDateFieldProps.ts +9 -0
  174. package/src/components/BryntumDatePicker.vue +3 -3
  175. package/src/components/BryntumDateRangeField.vue +11 -1
  176. package/src/components/BryntumDateRangeFieldProps.ts +9 -0
  177. package/src/components/BryntumDateTimeField.vue +11 -1
  178. package/src/components/BryntumDateTimeFieldProps.ts +9 -0
  179. package/src/components/BryntumDayAgendaView.vue +5 -5
  180. package/src/components/BryntumDayResourceView.vue +11 -7
  181. package/src/components/BryntumDayResourceViewProps.ts +6 -2
  182. package/src/components/BryntumDayView.vue +11 -7
  183. package/src/components/BryntumDayViewProps.ts +6 -2
  184. package/src/components/BryntumDemoCodeEditor.vue +3 -3
  185. package/src/components/BryntumDisplayField.vue +11 -1
  186. package/src/components/BryntumDisplayFieldProps.ts +9 -0
  187. package/src/components/BryntumDurationField.vue +11 -1
  188. package/src/components/BryntumDurationFieldProps.ts +9 -0
  189. package/src/components/BryntumEditor.vue +5 -5
  190. package/src/components/BryntumEventColorField.vue +11 -1
  191. package/src/components/BryntumEventColorFieldProps.ts +9 -0
  192. package/src/components/BryntumEventList.vue +27 -27
  193. package/src/components/BryntumFieldFilterPicker.vue +1 -1
  194. package/src/components/BryntumFieldFilterPickerGroup.vue +2 -2
  195. package/src/components/BryntumFieldSet.vue +3 -3
  196. package/src/components/BryntumFileField.vue +11 -1
  197. package/src/components/BryntumFileFieldProps.ts +9 -0
  198. package/src/components/BryntumFilePicker.vue +1 -1
  199. package/src/components/BryntumFilterField.vue +11 -1
  200. package/src/components/BryntumFilterFieldProps.ts +9 -0
  201. package/src/components/BryntumGrid.vue +25 -25
  202. package/src/components/BryntumGridBase.vue +25 -25
  203. package/src/components/BryntumGridChartDesigner.vue +1 -1
  204. package/src/components/BryntumGridFieldFilterPicker.vue +1 -1
  205. package/src/components/BryntumGridFieldFilterPickerGroup.vue +2 -2
  206. package/src/components/BryntumGroupBar.vue +2 -2
  207. package/src/components/BryntumHint.vue +3 -3
  208. package/src/components/BryntumLabel.vue +1 -1
  209. package/src/components/BryntumList.vue +2 -2
  210. package/src/components/BryntumMenu.vue +3 -3
  211. package/src/components/BryntumModeSelector.vue +1 -1
  212. package/src/components/BryntumMonthAgendaView.vue +5 -5
  213. package/src/components/BryntumMonthGrid.vue +7 -7
  214. package/src/components/BryntumMonthPicker.vue +3 -3
  215. package/src/components/BryntumMonthView.vue +6 -6
  216. package/src/components/BryntumNumberField.vue +11 -1
  217. package/src/components/BryntumNumberFieldProps.ts +9 -0
  218. package/src/components/BryntumPagingToolbar.vue +2 -2
  219. package/src/components/BryntumPanel.vue +3 -3
  220. package/src/components/BryntumPasswordField.vue +11 -1
  221. package/src/components/BryntumPasswordFieldProps.ts +9 -0
  222. package/src/components/BryntumProgressBar.vue +1 -1
  223. package/src/components/BryntumProjectCombo.vue +11 -1
  224. package/src/components/BryntumProjectComboProps.ts +9 -0
  225. package/src/components/BryntumRadio.vue +12 -2
  226. package/src/components/BryntumRadioGroup.vue +3 -3
  227. package/src/components/BryntumRadioProps.ts +9 -0
  228. package/src/components/BryntumRangeMenu.vue +3 -3
  229. package/src/components/BryntumResourceCombo.vue +11 -1
  230. package/src/components/BryntumResourceComboProps.ts +9 -0
  231. package/src/components/BryntumResourceFilter.vue +2 -2
  232. package/src/components/BryntumResourceView.vue +5 -5
  233. package/src/components/BryntumScheduler.vue +60 -50
  234. package/src/components/BryntumSchedulerBase.vue +60 -50
  235. package/src/components/BryntumSchedulerBaseProps.ts +5 -0
  236. package/src/components/BryntumSchedulerDatePicker.vue +3 -3
  237. package/src/components/BryntumSchedulerProps.ts +5 -0
  238. package/src/components/BryntumSlideToggle.vue +12 -2
  239. package/src/components/BryntumSlideToggleProps.ts +9 -0
  240. package/src/components/BryntumSlider.vue +1 -1
  241. package/src/components/BryntumSplitter.vue +1 -1
  242. package/src/components/BryntumTabPanel.vue +4 -4
  243. package/src/components/BryntumTextAreaField.vue +11 -1
  244. package/src/components/BryntumTextAreaFieldProps.ts +9 -0
  245. package/src/components/BryntumTextAreaPickerField.vue +11 -1
  246. package/src/components/BryntumTextAreaPickerFieldProps.ts +9 -0
  247. package/src/components/BryntumTextField.vue +11 -1
  248. package/src/components/BryntumTextFieldProps.ts +9 -0
  249. package/src/components/BryntumTimeField.vue +11 -1
  250. package/src/components/BryntumTimeFieldProps.ts +9 -0
  251. package/src/components/BryntumTimePicker.vue +1 -1
  252. package/src/components/BryntumTimeVisualizingEditor.vue +3 -3
  253. package/src/components/BryntumTimeZoomSlider.vue +1 -1
  254. package/src/components/BryntumTimelineHistogram.vue +30 -30
  255. package/src/components/BryntumToolbar.vue +2 -2
  256. package/src/components/BryntumTreeCombo.vue +11 -1
  257. package/src/components/BryntumTreeComboProps.ts +9 -0
  258. package/src/components/BryntumTreeGrid.vue +25 -25
  259. package/src/components/BryntumUndoRedo.vue +1 -1
  260. package/src/components/BryntumViewPresetCombo.vue +11 -1
  261. package/src/components/BryntumViewPresetComboProps.ts +9 -0
  262. package/src/components/BryntumWeekView.vue +11 -7
  263. package/src/components/BryntumWeekViewProps.ts +6 -2
  264. package/src/components/BryntumWidget.vue +1 -1
  265. package/src/components/BryntumYearPicker.vue +3 -3
  266. package/src/components/BryntumYearPlanner.vue +5 -5
  267. package/src/components/BryntumYearView.vue +6 -6
  268. package/lib/chunks/3pMrXrSV.js.map +0 -1
  269. package/lib/chunks/7r3BIYih.js.map +0 -1
  270. package/lib/chunks/B8gQABN9.js.map +0 -1
  271. package/lib/chunks/BBmKbcBm.js.map +0 -1
  272. package/lib/chunks/BI8wQGwJ.js.map +0 -1
  273. package/lib/chunks/BKPgz4z1.js.map +0 -1
  274. package/lib/chunks/BWhkyANY.js.map +0 -1
  275. package/lib/chunks/BspGLrQY.js.map +0 -1
  276. package/lib/chunks/C19d7e9r.js.map +0 -1
  277. package/lib/chunks/C6c2zNh0.js.map +0 -1
  278. package/lib/chunks/CNs1dLtt.js.map +0 -1
  279. package/lib/chunks/CPHxjIqw.js.map +0 -1
  280. package/lib/chunks/CWM22e1v.js.map +0 -1
  281. package/lib/chunks/CvRb-PD8.js.map +0 -1
  282. package/lib/chunks/DI98porG.js.map +0 -1
  283. package/lib/chunks/DQEdPoQo.js.map +0 -1
  284. package/lib/chunks/DURERga3.js.map +0 -1
  285. package/lib/chunks/DxT4VIUT.js.map +0 -1
  286. package/lib/chunks/DzuHthMw.js.map +0 -1
  287. package/lib/chunks/E1AHpT8W.js.map +0 -1
  288. package/lib/chunks/FzMaadW6.js.map +0 -1
  289. package/lib/chunks/JKRtgYCJ.js.map +0 -1
  290. package/lib/chunks/JkqrKvFU.js.map +0 -1
  291. package/lib/chunks/QXeRMnaM.js.map +0 -1
  292. package/lib/chunks/VUkGxEQX.js.map +0 -1
  293. package/lib/chunks/fCOl6gGe.js.map +0 -1
  294. package/lib/chunks/j6GbzQ11.js.map +0 -1
  295. package/lib/chunks/kCsdJsDp.js.map +0 -1
  296. package/lib/chunks/uBR9aAgk.js.map +0 -1
@@ -202,7 +202,7 @@ export declare type BryntumCalendarProps = {
202
202
  * or [drag-create](https://bryntum.com/products/calendar/docs/api/Calendar/feature/CalendarDrag), or [dragging in](#Calendar/feature/ExternalEventSource).
203
203
  * [More...](https://bryntum.com/products/calendar/docs/api/Calendar/view/Calendar#config-defaultCalendar)
204
204
  */
205
- defaultCalendar ? : string|ResourceModel
205
+ defaultCalendar ? : string|number|ResourceModel
206
206
  /**
207
207
  * A [query](https://bryntum.com/products/calendar/docs/api/Core/widget/Container#function-query) selector function which can identify the descendant widget to which
208
208
  * focus should be directed by default.
@@ -639,6 +639,11 @@ export declare type BryntumCalendarProps = {
639
639
  * [More...](https://bryntum.com/products/calendar/docs/api/Calendar/view/Calendar#config-project)
640
640
  */
641
641
  project ? : ProjectModel|ProjectModelConfig|object
642
+ /**
643
+ * The project model class to use when creating the project instance. Override this to use a custom project
644
+ * model class. In SchedulerPro and Gantt, this is overridden to use their respective project model classes.
645
+ */
646
+ projectModelClass ? : typeof ProjectModel
642
647
  /**
643
648
  * The names of properties which are propagated down from the Calendar to child views
644
649
  * unless the view has its own value for that property.
@@ -696,7 +696,7 @@ const emit = defineEmits<{
696
696
  * @param {object} params.event Event object
697
697
  * @param {Core.widget.Widget} params.event.source The widget being hidden.
698
698
  */
699
- (e: 'beforeHide', params: ((event: { source: Widget }) => Promise<boolean>|boolean|void)|string): Promise<boolean>|boolean|void
699
+ (e: 'beforeHide', params: ((event: { source: Widget }) => boolean|void)|string): boolean|void
700
700
  /**
701
701
  * Fired before this container will load record values into its child fields. This is useful if you
702
702
  * want to modify the UI before data is loaded (e.g. set some input field to be readonly)
@@ -722,7 +722,7 @@ const emit = defineEmits<{
722
722
  * @param {object} params.event Event object
723
723
  * @param {any} params.event.state State object config
724
724
  */
725
- (e: 'beforeStateApply', params: ((event: { state: any }) => Promise<boolean>|boolean|void)|string): Promise<boolean>|boolean|void
725
+ (e: 'beforeStateApply', params: ((event: { state: any }) => boolean|void)|string): boolean|void
726
726
  /**
727
727
  * Fired before state is saved by the StateProvider. Allows editing the state object or preventing the operation.
728
728
  * @param {string} e Event name
@@ -730,7 +730,7 @@ const emit = defineEmits<{
730
730
  * @param {object} params.event Event object
731
731
  * @param {any} params.event.state State object config
732
732
  */
733
- (e: 'beforeStateSave', params: ((event: { state: any }) => Promise<boolean>|boolean|void)|string): Promise<boolean>|boolean|void
733
+ (e: 'beforeStateSave', params: ((event: { state: any }) => boolean|void)|string): boolean|void
734
734
  /**
735
735
  * Fired when the chat bubble tool icon is clicked.
736
736
  * @param {string} e Event name
@@ -108,6 +108,15 @@ defineProps<{
108
108
  * A value of `undefined` will cause this widget not to include its value when checked.
109
109
  */
110
110
  checkedValue ? : any
111
+ /**
112
+ * A function (or the name of a function in the ownership hierarchy) called during field validation
113
+ * to perform custom validity checks. The function is called as part of the [isValid](https://bryntum.com/products/calendar/docs/api/Core/widget/Field#property-isValid)
114
+ * evaluation, after the built-in [required](https://bryntum.com/products/calendar/docs/api/Core/widget/Field#config-required) check.
115
+ * [More...](https://bryntum.com/products/calendar/docs/api/Core/widget/Checkbox#config-checkValidity)
116
+ * @param {Core.widget.Field} field The field being validated
117
+ * @returns {void}
118
+ */
119
+ checkValidity ? : ((field: Field) => void)|string
111
120
  /**
112
121
  * Custom CSS classes to add to element.
113
122
  * May be specified as a space separated string, or as an object in which property names
@@ -624,7 +633,7 @@ const emit = defineEmits<{
624
633
  * @param {boolean} params.event.valid True if this field is in a valid state.
625
634
  * @param {Event} params.event.event The triggering DOM event if any
626
635
  */
627
- (e: 'beforeChange', params: ((event: { source: Checkbox, checked: boolean, value: boolean, oldValue: boolean, userAction: boolean, valid: boolean, event: Event }) => Promise<boolean>|boolean|void)|string): Promise<boolean>|boolean|void
636
+ (e: 'beforeChange', params: ((event: { source: Checkbox, checked: boolean, value: boolean, oldValue: boolean, userAction: boolean, valid: boolean, event: Event }) => boolean|void)|string): boolean|void
628
637
  /**
629
638
  * Fires before an object is destroyed.
630
639
  * @param {string} e Event name
@@ -640,7 +649,7 @@ const emit = defineEmits<{
640
649
  * @param {object} params.event Event object
641
650
  * @param {Core.widget.Widget} params.event.source The widget being hidden.
642
651
  */
643
- (e: 'beforeHide', params: ((event: { source: Widget }) => Promise<boolean>|boolean|void)|string): Promise<boolean>|boolean|void
652
+ (e: 'beforeHide', params: ((event: { source: Widget }) => boolean|void)|string): boolean|void
644
653
  /**
645
654
  * Triggered before a widget is shown. Return `false` to prevent the action.
646
655
  * @param {string} e Event name
@@ -824,6 +833,7 @@ const widgetData = {
824
833
  'bubbleEvents',
825
834
  'centered',
826
835
  'checkedValue',
836
+ 'checkValidity',
827
837
  'color',
828
838
  'config',
829
839
  'constrainTo',
@@ -709,7 +709,7 @@ const emit = defineEmits<{
709
709
  * @param {object} params.event Event object
710
710
  * @param {Core.widget.Widget} params.event.source The widget being hidden.
711
711
  */
712
- (e: 'beforeHide', params: ((event: { source: Widget }) => Promise<boolean>|boolean|void)|string): Promise<boolean>|boolean|void
712
+ (e: 'beforeHide', params: ((event: { source: Widget }) => boolean|void)|string): boolean|void
713
713
  /**
714
714
  * Fired before this container will load record values into its child fields. This is useful if you
715
715
  * want to modify the UI before data is loaded (e.g. set some input field to be readonly)
@@ -735,7 +735,7 @@ const emit = defineEmits<{
735
735
  * @param {object} params.event Event object
736
736
  * @param {any} params.event.state State object config
737
737
  */
738
- (e: 'beforeStateApply', params: ((event: { state: any }) => Promise<boolean>|boolean|void)|string): Promise<boolean>|boolean|void
738
+ (e: 'beforeStateApply', params: ((event: { state: any }) => boolean|void)|string): boolean|void
739
739
  /**
740
740
  * Fired before state is saved by the StateProvider. Allows editing the state object or preventing the operation.
741
741
  * @param {string} e Event name
@@ -743,7 +743,7 @@ const emit = defineEmits<{
743
743
  * @param {object} params.event Event object
744
744
  * @param {any} params.event.state State object config
745
745
  */
746
- (e: 'beforeStateSave', params: ((event: { state: any }) => Promise<boolean>|boolean|void)|string): Promise<boolean>|boolean|void
746
+ (e: 'beforeStateSave', params: ((event: { state: any }) => boolean|void)|string): boolean|void
747
747
  /**
748
748
  * Fires when any other event is fired from the object.
749
749
  * [More...](https://bryntum.com/products/calendar/docs/api/Core/widget/CheckboxGroup#event-catchAll)
@@ -94,6 +94,15 @@ export declare type BryntumCheckboxProps = {
94
94
  * A value of `undefined` will cause this widget not to include its value when checked.
95
95
  */
96
96
  checkedValue ? : any
97
+ /**
98
+ * A function (or the name of a function in the ownership hierarchy) called during field validation
99
+ * to perform custom validity checks. The function is called as part of the [isValid](https://bryntum.com/products/calendar/docs/api/Core/widget/Field#property-isValid)
100
+ * evaluation, after the built-in [required](https://bryntum.com/products/calendar/docs/api/Core/widget/Field#config-required) check.
101
+ * [More...](https://bryntum.com/products/calendar/docs/api/Core/widget/Checkbox#config-checkValidity)
102
+ * @param {Core.widget.Field} field The field being validated
103
+ * @returns {void}
104
+ */
105
+ checkValidity ? : ((field: Field) => void)|string
97
106
  /**
98
107
  * Custom CSS classes to add to element.
99
108
  * May be specified as a space separated string, or as an object in which property names
@@ -104,6 +104,15 @@ defineProps<{
104
104
  * Set to `true` to centre the Widget in browser viewport space.
105
105
  */
106
106
  centered ? : Boolean
107
+ /**
108
+ * A function (or the name of a function in the ownership hierarchy) called during field validation
109
+ * to perform custom validity checks. The function is called as part of the [isValid](https://bryntum.com/products/calendar/docs/api/Core/widget/Field#property-isValid)
110
+ * evaluation, after the built-in [required](https://bryntum.com/products/calendar/docs/api/Core/widget/Field#config-required) check.
111
+ * [More...](https://bryntum.com/products/calendar/docs/api/Grid/widget/ChecklistFilterCombo#config-checkValidity)
112
+ * @param {Core.widget.Field} field The field being validated
113
+ * @returns {void}
114
+ */
115
+ checkValidity ? : ((field: Field) => void)|string
107
116
  /**
108
117
  * A config object to configure the [ChipView](https://bryntum.com/products/calendar/docs/api/Core/widget/ChipView) to display the
109
118
  * selected value set when [multiSelect](https://bryntum.com/products/calendar/docs/api/Core/widget/Combo#config-multiSelect) is `true`.
@@ -824,7 +833,7 @@ const emit = defineEmits<{
824
833
  * @param {object} params.event Event object
825
834
  * @param {Core.widget.Widget} params.event.source The widget being hidden.
826
835
  */
827
- (e: 'beforeHide', params: ((event: { source: Widget }) => Promise<boolean>|boolean|void)|string): Promise<boolean>|boolean|void
836
+ (e: 'beforeHide', params: ((event: { source: Widget }) => boolean|void)|string): boolean|void
828
837
  /**
829
838
  * Triggered before a widget is shown. Return `false` to prevent the action.
830
839
  * @param {string} e Event name
@@ -1012,6 +1021,7 @@ const widgetData = {
1012
1021
  'cacheLastResult',
1013
1022
  'caseSensitive',
1014
1023
  'centered',
1024
+ 'checkValidity',
1015
1025
  'chipView',
1016
1026
  'clearable',
1017
1027
  'clearTextOnPickerHide',
@@ -90,6 +90,15 @@ export declare type BryntumChecklistFilterComboProps = {
90
90
  * Set to `true` to centre the Widget in browser viewport space.
91
91
  */
92
92
  centered ? : Boolean
93
+ /**
94
+ * A function (or the name of a function in the ownership hierarchy) called during field validation
95
+ * to perform custom validity checks. The function is called as part of the [isValid](https://bryntum.com/products/calendar/docs/api/Core/widget/Field#property-isValid)
96
+ * evaluation, after the built-in [required](https://bryntum.com/products/calendar/docs/api/Core/widget/Field#config-required) check.
97
+ * [More...](https://bryntum.com/products/calendar/docs/api/Grid/widget/ChecklistFilterCombo#config-checkValidity)
98
+ * @param {Core.widget.Field} field The field being validated
99
+ * @returns {void}
100
+ */
101
+ checkValidity ? : ((field: Field) => void)|string
93
102
  /**
94
103
  * A config object to configure the [ChipView](https://bryntum.com/products/calendar/docs/api/Core/widget/ChipView) to display the
95
104
  * selected value set when [multiSelect](https://bryntum.com/products/calendar/docs/api/Core/widget/Combo#config-multiSelect) is `true`.
@@ -567,7 +567,7 @@ const emit = defineEmits<{
567
567
  * @param {object} params.event Event object
568
568
  * @param {Core.widget.Widget} params.event.source The widget being hidden.
569
569
  */
570
- (e: 'beforeHide', params: ((event: { source: Widget }) => Promise<boolean>|boolean|void)|string): Promise<boolean>|boolean|void
570
+ (e: 'beforeHide', params: ((event: { source: Widget }) => boolean|void)|string): boolean|void
571
571
  /**
572
572
  * User going to activate an item in the list either by pointer or keyboard.
573
573
  * The active record, list item index, and the triggering event are passed.
@@ -581,7 +581,7 @@ const emit = defineEmits<{
581
581
  * @param {number} params.event.index List item index
582
582
  * @param {Event} params.event.event Triggering event
583
583
  */
584
- (e: 'beforeItem', params: ((event: { source: List, item: HTMLElement, record: Model, index: number, event: Event }) => Promise<boolean>|boolean|void)|string): Promise<boolean>|boolean|void
584
+ (e: 'beforeItem', params: ((event: { source: List, item: HTMLElement, record: Model, index: number, event: Event }) => boolean|void)|string): boolean|void
585
585
  /**
586
586
  * Triggered before a widget is shown. Return `false` to prevent the action.
587
587
  * @param {string} e Event name
@@ -677,7 +677,7 @@ const emit = defineEmits<{
677
677
  * @param {object} params.event Event object
678
678
  * @param {Core.widget.Widget} params.event.source The widget being hidden.
679
679
  */
680
- (e: 'beforeHide', params: ((event: { source: Widget }) => Promise<boolean>|boolean|void)|string): Promise<boolean>|boolean|void
680
+ (e: 'beforeHide', params: ((event: { source: Widget }) => boolean|void)|string): boolean|void
681
681
  /**
682
682
  * Fired before this container will load record values into its child fields. This is useful if you
683
683
  * want to modify the UI before data is loaded (e.g. set some input field to be readonly)
@@ -703,7 +703,7 @@ const emit = defineEmits<{
703
703
  * @param {object} params.event Event object
704
704
  * @param {any} params.event.state State object config
705
705
  */
706
- (e: 'beforeStateApply', params: ((event: { state: any }) => Promise<boolean>|boolean|void)|string): Promise<boolean>|boolean|void
706
+ (e: 'beforeStateApply', params: ((event: { state: any }) => boolean|void)|string): boolean|void
707
707
  /**
708
708
  * Fired before state is saved by the StateProvider. Allows editing the state object or preventing the operation.
709
709
  * @param {string} e Event name
@@ -711,7 +711,7 @@ const emit = defineEmits<{
711
711
  * @param {object} params.event Event object
712
712
  * @param {any} params.event.state State object config
713
713
  */
714
- (e: 'beforeStateSave', params: ((event: { state: any }) => Promise<boolean>|boolean|void)|string): Promise<boolean>|boolean|void
714
+ (e: 'beforeStateSave', params: ((event: { state: any }) => boolean|void)|string): boolean|void
715
715
  /**
716
716
  * Fires when any other event is fired from the object.
717
717
  * [More...](https://bryntum.com/products/calendar/docs/api/Core/widget/CodeEditor#event-catchAll)
@@ -99,6 +99,15 @@ defineProps<{
99
99
  * Set to `true` to centre the Widget in browser viewport space.
100
100
  */
101
101
  centered ? : Boolean
102
+ /**
103
+ * A function (or the name of a function in the ownership hierarchy) called during field validation
104
+ * to perform custom validity checks. The function is called as part of the [isValid](https://bryntum.com/products/calendar/docs/api/Core/widget/Field#property-isValid)
105
+ * evaluation, after the built-in [required](https://bryntum.com/products/calendar/docs/api/Core/widget/Field#config-required) check.
106
+ * [More...](https://bryntum.com/products/calendar/docs/api/Core/widget/ColorField#config-checkValidity)
107
+ * @param {Core.widget.Field} field The field being validated
108
+ * @returns {void}
109
+ */
110
+ checkValidity ? : ((field: Field) => void)|string
102
111
  /**
103
112
  * Show a trigger to clear field, if this field is not [readOnly](https://bryntum.com/products/calendar/docs/api/Core/widget/Field#config-readOnly). The trigger is available
104
113
  * in the [triggers](https://bryntum.com/products/calendar/docs/api/Core/widget/Field#property-triggers) object under the name `clear`. May also be an object which
@@ -639,7 +648,7 @@ const emit = defineEmits<{
639
648
  * @param {object} params.event Event object
640
649
  * @param {Core.widget.Widget} params.event.source The widget being hidden.
641
650
  */
642
- (e: 'beforeHide', params: ((event: { source: Widget }) => Promise<boolean>|boolean|void)|string): Promise<boolean>|boolean|void
651
+ (e: 'beforeHide', params: ((event: { source: Widget }) => boolean|void)|string): boolean|void
643
652
  /**
644
653
  * Triggered before a widget is shown. Return `false` to prevent the action.
645
654
  * @param {string} e Event name
@@ -813,6 +822,7 @@ const widgetData = {
813
822
  'autoSelect',
814
823
  'bubbleEvents',
815
824
  'centered',
825
+ 'checkValidity',
816
826
  'clearable',
817
827
  'config',
818
828
  'constrainTo',
@@ -85,6 +85,15 @@ export declare type BryntumColorFieldProps = {
85
85
  * Set to `true` to centre the Widget in browser viewport space.
86
86
  */
87
87
  centered ? : Boolean
88
+ /**
89
+ * A function (or the name of a function in the ownership hierarchy) called during field validation
90
+ * to perform custom validity checks. The function is called as part of the [isValid](https://bryntum.com/products/calendar/docs/api/Core/widget/Field#property-isValid)
91
+ * evaluation, after the built-in [required](https://bryntum.com/products/calendar/docs/api/Core/widget/Field#config-required) check.
92
+ * [More...](https://bryntum.com/products/calendar/docs/api/Core/widget/ColorField#config-checkValidity)
93
+ * @param {Core.widget.Field} field The field being validated
94
+ * @returns {void}
95
+ */
96
+ checkValidity ? : ((field: Field) => void)|string
88
97
  /**
89
98
  * Show a trigger to clear field, if this field is not [readOnly](https://bryntum.com/products/calendar/docs/api/Core/widget/Field#config-readOnly). The trigger is available
90
99
  * in the [triggers](https://bryntum.com/products/calendar/docs/api/Core/widget/Field#property-triggers) object under the name `clear`. May also be an object which
@@ -104,6 +104,15 @@ defineProps<{
104
104
  * Set to `true` to centre the Widget in browser viewport space.
105
105
  */
106
106
  centered ? : Boolean
107
+ /**
108
+ * A function (or the name of a function in the ownership hierarchy) called during field validation
109
+ * to perform custom validity checks. The function is called as part of the [isValid](https://bryntum.com/products/calendar/docs/api/Core/widget/Field#property-isValid)
110
+ * evaluation, after the built-in [required](https://bryntum.com/products/calendar/docs/api/Core/widget/Field#config-required) check.
111
+ * [More...](https://bryntum.com/products/calendar/docs/api/Core/widget/Combo#config-checkValidity)
112
+ * @param {Core.widget.Field} field The field being validated
113
+ * @returns {void}
114
+ */
115
+ checkValidity ? : ((field: Field) => void)|string
107
116
  /**
108
117
  * A config object to configure the [ChipView](https://bryntum.com/products/calendar/docs/api/Core/widget/ChipView) to display the
109
118
  * selected value set when [multiSelect](https://bryntum.com/products/calendar/docs/api/Core/widget/Combo#config-multiSelect) is `true`.
@@ -815,7 +824,7 @@ const emit = defineEmits<{
815
824
  * @param {object} params.event Event object
816
825
  * @param {Core.widget.Widget} params.event.source The widget being hidden.
817
826
  */
818
- (e: 'beforeHide', params: ((event: { source: Widget }) => Promise<boolean>|boolean|void)|string): Promise<boolean>|boolean|void
827
+ (e: 'beforeHide', params: ((event: { source: Widget }) => boolean|void)|string): boolean|void
819
828
  /**
820
829
  * Triggered before a widget is shown. Return `false` to prevent the action.
821
830
  * @param {string} e Event name
@@ -1003,6 +1012,7 @@ const widgetData = {
1003
1012
  'cacheLastResult',
1004
1013
  'caseSensitive',
1005
1014
  'centered',
1015
+ 'checkValidity',
1006
1016
  'chipView',
1007
1017
  'clearable',
1008
1018
  'clearTextOnPickerHide',
@@ -90,6 +90,15 @@ export declare type BryntumComboProps = {
90
90
  * Set to `true` to centre the Widget in browser viewport space.
91
91
  */
92
92
  centered ? : Boolean
93
+ /**
94
+ * A function (or the name of a function in the ownership hierarchy) called during field validation
95
+ * to perform custom validity checks. The function is called as part of the [isValid](https://bryntum.com/products/calendar/docs/api/Core/widget/Field#property-isValid)
96
+ * evaluation, after the built-in [required](https://bryntum.com/products/calendar/docs/api/Core/widget/Field#config-required) check.
97
+ * [More...](https://bryntum.com/products/calendar/docs/api/Core/widget/Combo#config-checkValidity)
98
+ * @param {Core.widget.Field} field The field being validated
99
+ * @returns {void}
100
+ */
101
+ checkValidity ? : ((field: Field) => void)|string
93
102
  /**
94
103
  * A config object to configure the [ChipView](https://bryntum.com/products/calendar/docs/api/Core/widget/ChipView) to display the
95
104
  * selected value set when [multiSelect](https://bryntum.com/products/calendar/docs/api/Core/widget/Combo#config-multiSelect) is `true`.
@@ -547,7 +547,7 @@ const emit = defineEmits<{
547
547
  * @param {object} params.event Event object
548
548
  * @param {Core.widget.Widget} params.event.source The widget being hidden.
549
549
  */
550
- (e: 'beforeHide', params: ((event: { source: Widget }) => Promise<boolean>|boolean|void)|string): Promise<boolean>|boolean|void
550
+ (e: 'beforeHide', params: ((event: { source: Widget }) => boolean|void)|string): boolean|void
551
551
  /**
552
552
  * Fired before this container will load record values into its child fields. This is useful if you
553
553
  * want to modify the UI before data is loaded (e.g. set some input field to be readonly)
@@ -95,6 +95,15 @@ defineProps<{
95
95
  * Set to `true` to centre the Widget in browser viewport space.
96
96
  */
97
97
  centered ? : Boolean
98
+ /**
99
+ * A function (or the name of a function in the ownership hierarchy) called during field validation
100
+ * to perform custom validity checks. The function is called as part of the [isValid](https://bryntum.com/products/calendar/docs/api/Core/widget/Field#property-isValid)
101
+ * evaluation, after the built-in [required](https://bryntum.com/products/calendar/docs/api/Core/widget/Field#config-required) check.
102
+ * [More...](https://bryntum.com/products/calendar/docs/api/Core/widget/DateField#config-checkValidity)
103
+ * @param {Core.widget.Field} field The field being validated
104
+ * @returns {void}
105
+ */
106
+ checkValidity ? : ((field: Field) => void)|string
98
107
  /**
99
108
  * Show a trigger to clear field, if this field is not [readOnly](https://bryntum.com/products/calendar/docs/api/Core/widget/Field#config-readOnly). The trigger is available
100
109
  * in the [triggers](https://bryntum.com/products/calendar/docs/api/Core/widget/Field#property-triggers) object under the name `clear`. May also be an object which
@@ -700,7 +709,7 @@ const emit = defineEmits<{
700
709
  * @param {object} params.event Event object
701
710
  * @param {Core.widget.Widget} params.event.source The widget being hidden.
702
711
  */
703
- (e: 'beforeHide', params: ((event: { source: Widget }) => Promise<boolean>|boolean|void)|string): Promise<boolean>|boolean|void
712
+ (e: 'beforeHide', params: ((event: { source: Widget }) => boolean|void)|string): boolean|void
704
713
  /**
705
714
  * Triggered before a widget is shown. Return `false` to prevent the action.
706
715
  * @param {string} e Event name
@@ -874,6 +883,7 @@ const widgetData = {
874
883
  'autoSelect',
875
884
  'bubbleEvents',
876
885
  'centered',
886
+ 'checkValidity',
877
887
  'clearable',
878
888
  'color',
879
889
  'config',
@@ -81,6 +81,15 @@ export declare type BryntumDateFieldProps = {
81
81
  * Set to `true` to centre the Widget in browser viewport space.
82
82
  */
83
83
  centered ? : Boolean
84
+ /**
85
+ * A function (or the name of a function in the ownership hierarchy) called during field validation
86
+ * to perform custom validity checks. The function is called as part of the [isValid](https://bryntum.com/products/calendar/docs/api/Core/widget/Field#property-isValid)
87
+ * evaluation, after the built-in [required](https://bryntum.com/products/calendar/docs/api/Core/widget/Field#config-required) check.
88
+ * [More...](https://bryntum.com/products/calendar/docs/api/Core/widget/DateField#config-checkValidity)
89
+ * @param {Core.widget.Field} field The field being validated
90
+ * @returns {void}
91
+ */
92
+ checkValidity ? : ((field: Field) => void)|string
84
93
  /**
85
94
  * Show a trigger to clear field, if this field is not [readOnly](https://bryntum.com/products/calendar/docs/api/Core/widget/Field#config-readOnly). The trigger is available
86
95
  * in the [triggers](https://bryntum.com/products/calendar/docs/api/Core/widget/Field#property-triggers) object under the name `clear`. May also be an object which
@@ -854,7 +854,7 @@ const emit = defineEmits<{
854
854
  * @param {object} params.event Event object
855
855
  * @param {Core.widget.Widget} params.event.source The widget being hidden.
856
856
  */
857
- (e: 'beforeHide', params: ((event: { source: Widget }) => Promise<boolean>|boolean|void)|string): Promise<boolean>|boolean|void
857
+ (e: 'beforeHide', params: ((event: { source: Widget }) => boolean|void)|string): boolean|void
858
858
  /**
859
859
  * Fires before this CalendarPanel refreshes in response to changes in its month.
860
860
  * @param {string} e Event name
@@ -888,7 +888,7 @@ const emit = defineEmits<{
888
888
  * @param {object} params.event Event object
889
889
  * @param {any} params.event.state State object config
890
890
  */
891
- (e: 'beforeStateApply', params: ((event: { state: any }) => Promise<boolean>|boolean|void)|string): Promise<boolean>|boolean|void
891
+ (e: 'beforeStateApply', params: ((event: { state: any }) => boolean|void)|string): boolean|void
892
892
  /**
893
893
  * Fired before state is saved by the StateProvider. Allows editing the state object or preventing the operation.
894
894
  * @param {string} e Event name
@@ -896,7 +896,7 @@ const emit = defineEmits<{
896
896
  * @param {object} params.event Event object
897
897
  * @param {any} params.event.state State object config
898
898
  */
899
- (e: 'beforeStateSave', params: ((event: { state: any }) => Promise<boolean>|boolean|void)|string): Promise<boolean>|boolean|void
899
+ (e: 'beforeStateSave', params: ((event: { state: any }) => boolean|void)|string): boolean|void
900
900
  /**
901
901
  * Fires when any other event is fired from the object.
902
902
  * [More...](https://bryntum.com/products/calendar/docs/api/Core/widget/DatePicker#event-catchAll)
@@ -95,6 +95,15 @@ defineProps<{
95
95
  * Set to `true` to centre the Widget in browser viewport space.
96
96
  */
97
97
  centered ? : Boolean
98
+ /**
99
+ * A function (or the name of a function in the ownership hierarchy) called during field validation
100
+ * to perform custom validity checks. The function is called as part of the [isValid](https://bryntum.com/products/calendar/docs/api/Core/widget/Field#property-isValid)
101
+ * evaluation, after the built-in [required](https://bryntum.com/products/calendar/docs/api/Core/widget/Field#config-required) check.
102
+ * [More...](https://bryntum.com/products/calendar/docs/api/Core/widget/DateRangeField#config-checkValidity)
103
+ * @param {Core.widget.Field} field The field being validated
104
+ * @returns {void}
105
+ */
106
+ checkValidity ? : ((field: Field) => void)|string
98
107
  /**
99
108
  * Show a trigger to clear field, if this field is not [readOnly](https://bryntum.com/products/calendar/docs/api/Core/widget/Field#config-readOnly). The trigger is available
100
109
  * in the [triggers](https://bryntum.com/products/calendar/docs/api/Core/widget/Field#property-triggers) object under the name `clear`. May also be an object which
@@ -688,7 +697,7 @@ const emit = defineEmits<{
688
697
  * @param {object} params.event Event object
689
698
  * @param {Core.widget.Widget} params.event.source The widget being hidden.
690
699
  */
691
- (e: 'beforeHide', params: ((event: { source: Widget }) => Promise<boolean>|boolean|void)|string): Promise<boolean>|boolean|void
700
+ (e: 'beforeHide', params: ((event: { source: Widget }) => boolean|void)|string): boolean|void
692
701
  /**
693
702
  * Triggered before a widget is shown. Return `false` to prevent the action.
694
703
  * @param {string} e Event name
@@ -862,6 +871,7 @@ const widgetData = {
862
871
  'autoSelect',
863
872
  'bubbleEvents',
864
873
  'centered',
874
+ 'checkValidity',
865
875
  'clearable',
866
876
  'color',
867
877
  'config',
@@ -81,6 +81,15 @@ export declare type BryntumDateRangeFieldProps = {
81
81
  * Set to `true` to centre the Widget in browser viewport space.
82
82
  */
83
83
  centered ? : Boolean
84
+ /**
85
+ * A function (or the name of a function in the ownership hierarchy) called during field validation
86
+ * to perform custom validity checks. The function is called as part of the [isValid](https://bryntum.com/products/calendar/docs/api/Core/widget/Field#property-isValid)
87
+ * evaluation, after the built-in [required](https://bryntum.com/products/calendar/docs/api/Core/widget/Field#config-required) check.
88
+ * [More...](https://bryntum.com/products/calendar/docs/api/Core/widget/DateRangeField#config-checkValidity)
89
+ * @param {Core.widget.Field} field The field being validated
90
+ * @returns {void}
91
+ */
92
+ checkValidity ? : ((field: Field) => void)|string
84
93
  /**
85
94
  * Show a trigger to clear field, if this field is not [readOnly](https://bryntum.com/products/calendar/docs/api/Core/widget/Field#config-readOnly). The trigger is available
86
95
  * in the [triggers](https://bryntum.com/products/calendar/docs/api/Core/widget/Field#property-triggers) object under the name `clear`. May also be an object which
@@ -86,6 +86,15 @@ defineProps<{
86
86
  * Set to `true` to centre the Widget in browser viewport space.
87
87
  */
88
88
  centered ? : Boolean
89
+ /**
90
+ * A function (or the name of a function in the ownership hierarchy) called during field validation
91
+ * to perform custom validity checks. The function is called as part of the [isValid](https://bryntum.com/products/calendar/docs/api/Core/widget/Field#property-isValid)
92
+ * evaluation, after the built-in [required](https://bryntum.com/products/calendar/docs/api/Core/widget/Field#config-required) check.
93
+ * [More...](https://bryntum.com/products/calendar/docs/api/Core/widget/DateTimeField#config-checkValidity)
94
+ * @param {Core.widget.Field} field The field being validated
95
+ * @returns {void}
96
+ */
97
+ checkValidity ? : ((field: Field) => void)|string
89
98
  /**
90
99
  * Show a trigger to clear field, if this field is not [readOnly](https://bryntum.com/products/calendar/docs/api/Core/widget/Field#config-readOnly). The trigger is available
91
100
  * in the [triggers](https://bryntum.com/products/calendar/docs/api/Core/widget/Field#property-triggers) object under the name `clear`. May also be an object which
@@ -597,7 +606,7 @@ const emit = defineEmits<{
597
606
  * @param {object} params.event Event object
598
607
  * @param {Core.widget.Widget} params.event.source The widget being hidden.
599
608
  */
600
- (e: 'beforeHide', params: ((event: { source: Widget }) => Promise<boolean>|boolean|void)|string): Promise<boolean>|boolean|void
609
+ (e: 'beforeHide', params: ((event: { source: Widget }) => boolean|void)|string): boolean|void
601
610
  /**
602
611
  * Triggered before a widget is shown. Return `false` to prevent the action.
603
612
  * @param {string} e Event name
@@ -769,6 +778,7 @@ const widgetData = {
769
778
  'autoSelect',
770
779
  'bubbleEvents',
771
780
  'centered',
781
+ 'checkValidity',
772
782
  'clearable',
773
783
  'color',
774
784
  'config',
@@ -72,6 +72,15 @@ export declare type BryntumDateTimeFieldProps = {
72
72
  * Set to `true` to centre the Widget in browser viewport space.
73
73
  */
74
74
  centered ? : Boolean
75
+ /**
76
+ * A function (or the name of a function in the ownership hierarchy) called during field validation
77
+ * to perform custom validity checks. The function is called as part of the [isValid](https://bryntum.com/products/calendar/docs/api/Core/widget/Field#property-isValid)
78
+ * evaluation, after the built-in [required](https://bryntum.com/products/calendar/docs/api/Core/widget/Field#config-required) check.
79
+ * [More...](https://bryntum.com/products/calendar/docs/api/Core/widget/DateTimeField#config-checkValidity)
80
+ * @param {Core.widget.Field} field The field being validated
81
+ * @returns {void}
82
+ */
83
+ checkValidity ? : ((field: Field) => void)|string
75
84
  /**
76
85
  * Show a trigger to clear field, if this field is not [readOnly](https://bryntum.com/products/calendar/docs/api/Core/widget/Field#config-readOnly). The trigger is available
77
86
  * in the [triggers](https://bryntum.com/products/calendar/docs/api/Core/widget/Field#property-triggers) object under the name `clear`. May also be an object which
@@ -1196,7 +1196,7 @@ const emit = defineEmits<{
1196
1196
  * @param {Scheduler.model.ResourceModel} params.event.resourceRecord The resource if the UI includes a resource.
1197
1197
  * @param {CalendarView} params.event.view This view.
1198
1198
  */
1199
- (e: 'beforeAutoCreate', params: ((event: { domEvent: Event, date: Date, startDate: Date, endDate: Date, resourceRecord: ResourceModel, view: CalendarView }) => Promise<boolean>|boolean|void)|string): Promise<boolean>|boolean|void
1199
+ (e: 'beforeAutoCreate', params: ((event: { domEvent: Event, date: Date, startDate: Date, endDate: Date, resourceRecord: ResourceModel, view: CalendarView }) => boolean|void)|string): boolean|void
1200
1200
  /**
1201
1201
  * Triggered before a view's orientating date changes.
1202
1202
  * [More...](https://bryntum.com/products/calendar/docs/api/Calendar/widget/DayAgendaView#event-beforeChangeDate)
@@ -1206,7 +1206,7 @@ const emit = defineEmits<{
1206
1206
  * @param {Date} params.event.oldDate The current orientating date of this view.
1207
1207
  * @param {Date} params.event.date The new date to which this view is to be orientated.
1208
1208
  */
1209
- (e: 'beforeChangeDate', params: ((event: { oldDate: Date, date: Date }) => Promise<boolean>|boolean|void)|string): Promise<boolean>|boolean|void
1209
+ (e: 'beforeChangeDate', params: ((event: { oldDate: Date, date: Date }) => boolean|void)|string): boolean|void
1210
1210
  /**
1211
1211
  * Fires before an object is destroyed.
1212
1212
  * @param {string} e Event name
@@ -1222,7 +1222,7 @@ const emit = defineEmits<{
1222
1222
  * @param {object} params.event Event object
1223
1223
  * @param {Core.widget.Widget} params.event.source The widget being hidden.
1224
1224
  */
1225
- (e: 'beforeHide', params: ((event: { source: Widget }) => Promise<boolean>|boolean|void)|string): Promise<boolean>|boolean|void
1225
+ (e: 'beforeHide', params: ((event: { source: Widget }) => boolean|void)|string): boolean|void
1226
1226
  /**
1227
1227
  * Triggered before a new [responsiveState](https://bryntum.com/products/calendar/docs/api/Core/widget/mixin/Responsive#config-responsiveState) is applied.
1228
1228
  * @param {string} e Event name
@@ -1258,7 +1258,7 @@ const emit = defineEmits<{
1258
1258
  * @param {object} params.event Event object
1259
1259
  * @param {any} params.event.state State object config
1260
1260
  */
1261
- (e: 'beforeStateApply', params: ((event: { state: any }) => Promise<boolean>|boolean|void)|string): Promise<boolean>|boolean|void
1261
+ (e: 'beforeStateApply', params: ((event: { state: any }) => boolean|void)|string): boolean|void
1262
1262
  /**
1263
1263
  * Fired before state is saved by the StateProvider. Allows editing the state object or preventing the operation.
1264
1264
  * @param {string} e Event name
@@ -1266,7 +1266,7 @@ const emit = defineEmits<{
1266
1266
  * @param {object} params.event Event object
1267
1267
  * @param {any} params.event.state State object config
1268
1268
  */
1269
- (e: 'beforeStateSave', params: ((event: { state: any }) => Promise<boolean>|boolean|void)|string): Promise<boolean>|boolean|void
1269
+ (e: 'beforeStateSave', params: ((event: { state: any }) => boolean|void)|string): boolean|void
1270
1270
  /**
1271
1271
  * Fires when any other event is fired from the object.
1272
1272
  * [More...](https://bryntum.com/products/calendar/docs/api/Calendar/widget/DayAgendaView#event-catchAll)