@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,1065 @@
1
+ /**
2
+ * React wrapper for Bryntum CodeEditor
3
+ */
4
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
5
+ import React, { RefObject } from 'react';
6
+ import { AlignSpec, Base, CodeEditor, CodeEditorListeners, Container, ContainerItemConfig, ContainerLayoutConfig, DomConfig, KeyMapConfig, Layout, MaskConfig, MenuItemConfig, MenuItemEntry, Model, 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 BryntumCodeEditorProps = {
11
+ // Configs
12
+ /**
13
+ * Element (or element id) to adopt as this Widget's encapsulating element. The widget's
14
+ * content will be placed inside this element.
15
+ * ...
16
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/CodeEditor#config-adopt)
17
+ */
18
+ adopt? : HTMLElement|string
19
+ /**
20
+ * *Only valid if this Widget is [floating](https://bryntum.com/products/scheduler/docs/api/Core/widget/Widget#config-floating).*
21
+ * ...
22
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/CodeEditor#config-align)
23
+ */
24
+ align? : AlignSpec|string
25
+ /**
26
+ * When this widget is a child of a [Container](https://bryntum.com/products/scheduler/docs/api/Core/widget/Container), it will by default be participating in a
27
+ * flexbox layout. This config allows you to set this widget's
28
+ * [align-self](https://developer.mozilla.org/en-US/docs/Web/CSS/align-self) style.
29
+ */
30
+ alignSelf? : string
31
+ /**
32
+ * *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).*
33
+ * `true` to show a connector arrow pointing to the align target.
34
+ */
35
+ anchor? : boolean
36
+ /**
37
+ * Element (or the id of an element) to append this widget's element to. Can be configured, or set once at
38
+ * runtime. To access the element of a rendered widget, see [element](https://bryntum.com/products/scheduler/docs/api/Core/widget/Widget#property-element).
39
+ */
40
+ appendTo? : HTMLElement|string
41
+ /**
42
+ * A localizable string (May contain `'L{}'` tokens which resolve in the locale file) to inject
43
+ * into an element which will be linked using the `aria-describedby` attribute.
44
+ * ...
45
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/CodeEditor#config-ariaDescription)
46
+ */
47
+ ariaDescription? : string
48
+ /**
49
+ * A localizable string (May contain `'L{}'` tokens which resolve in the locale file) to inject as
50
+ * the `aria-label` attribute.
51
+ * ...
52
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/CodeEditor#config-ariaLabel)
53
+ */
54
+ ariaLabel? : string
55
+ /**
56
+ * Update assigned [record](https://bryntum.com/products/scheduler/docs/api/Core/widget/Container#config-record) automatically on field changes
57
+ */
58
+ autoUpdateRecord? : boolean
59
+ /**
60
+ * A Config object representing the configuration of a [Toolbar](https://bryntum.com/products/scheduler/docs/api/Core/widget/Toolbar),
61
+ * 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).
62
+ * ...
63
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/CodeEditor#config-bbar)
64
+ */
65
+ bbar? : (ContainerItemConfig|string)[]|ToolbarConfig|PagingToolbarConfig|null
66
+ /**
67
+ * Custom CSS classes to add to the panel's body element.
68
+ * ...
69
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/CodeEditor#config-bodyCls)
70
+ */
71
+ bodyCls? : string|object
72
+ /**
73
+ * An object where property names with a truthy value indicate which events should bubble up the ownership
74
+ * hierarchy when triggered.
75
+ * ...
76
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/CodeEditor#config-bubbleEvents)
77
+ */
78
+ bubbleEvents? : object
79
+ /**
80
+ * Set to `false` to not call onXXX method names (e.g. `onShow`, `onClick`), as an easy way to listen for events.
81
+ * ...
82
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/CodeEditor#config-callOnFunctions)
83
+ */
84
+ callOnFunctions? : boolean
85
+ /**
86
+ * By default, if an event handler throws an exception, the error propagates up the stack and the
87
+ * application state is undefined. Code which follows the event handler will *not* be executed.
88
+ * ...
89
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/CodeEditor#config-catchEventHandlerExceptions)
90
+ */
91
+ catchEventHandlerExceptions? : boolean
92
+ /**
93
+ * *Only valid if this Widget is [floating](https://bryntum.com/products/scheduler/docs/api/Core/widget/Widget#config-floating).*
94
+ * Set to `true` to centre the Widget in browser viewport space.
95
+ */
96
+ centered? : boolean
97
+ /**
98
+ * Custom CSS classes to add to element.
99
+ * May be specified as a space separated string, or as an object in which property names
100
+ * with truthy values are used as the class names:
101
+ * ...
102
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/CodeEditor#config-cls)
103
+ */
104
+ cls? : string|object
105
+ /**
106
+ * The path from which to load the Monaco editor.
107
+ * ...
108
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/CodeEditor#config-codePath)
109
+ */
110
+ codePath? : string
111
+ /**
112
+ * Controls whether the panel is collapsed (the body of the panel is hidden while only the header is
113
+ * visible). Only valid if the panel is [collapsible](https://bryntum.com/products/scheduler/docs/api/Core/widget/Panel#config-collapsible).
114
+ */
115
+ collapsed? : boolean
116
+ /**
117
+ * This config enables collapsibility for the panel. See [collapsed](https://bryntum.com/products/scheduler/docs/api/Core/widget/Panel#config-collapsed).
118
+ * ...
119
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/CodeEditor#config-collapsible)
120
+ */
121
+ collapsible? : boolean|PanelCollapserConfig|PanelCollapserOverlayConfig
122
+ /**
123
+ * Applies the specified color to the widget, by setting the `--b-primary` CSS variable in the widgets
124
+ * `style` block.
125
+ * ...
126
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/CodeEditor#config-color)
127
+ */
128
+ color? : string
129
+ /**
130
+ * Programmatic control over which column to start in when used in a grid layout.
131
+ */
132
+ column? : number
133
+ config? : object
134
+ /**
135
+ * *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).*
136
+ * Element, Widget or Rectangle to which this Widget is constrained.
137
+ */
138
+ constrainTo? : HTMLElement|Widget|Rectangle
139
+ /**
140
+ * The HTML content that coexists with sibling elements which may have been added to the
141
+ * [contentElement](https://bryntum.com/products/scheduler/docs/api/Core/widget/Widget#property-contentElement) by plugins and features.
142
+ * When specifying html, this widget's element will also have the [htmlCls](https://bryntum.com/products/scheduler/docs/api/Core/widget/Widget#config-htmlCls)
143
+ * class added to its classList, to allow targeted styling.
144
+ */
145
+ content? : string
146
+ /**
147
+ * Custom CSS classes to add to the [contentElement](https://bryntum.com/products/scheduler/docs/api/Core/widget/Widget#property-contentElement).
148
+ * May be specified as a space separated string, or as an object in which property names
149
+ * with truthy values are used as the class names:
150
+ * ...
151
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/CodeEditor#config-contentElementCls)
152
+ */
153
+ contentElementCls? : string|object
154
+ /**
155
+ * When this Widget configuration is used in the Grid's RowExpander feature's `widget` config, provide the
156
+ * field on the expanded record to use for populating this widget's store (if applicable)
157
+ */
158
+ dataField? : string
159
+ /**
160
+ * Object to apply to elements dataset (each key will be used as a data-attribute on the element)
161
+ */
162
+ dataset? : Record<string, string>
163
+ /**
164
+ * The name of the property to set when a single value is to be applied to this Widget. Such as when used
165
+ * in a grid WidgetColumn, this is the property to which the column's `field` is applied.
166
+ */
167
+ defaultBindProperty? : string
168
+ /**
169
+ * A [query](https://bryntum.com/products/scheduler/docs/api/Core/widget/Container#function-query) selector function which can identify the descendant widget to which
170
+ * focus should be directed by default.
171
+ * ...
172
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/CodeEditor#config-defaultFocus)
173
+ * @param {Core.widget.Widget} widget Widget passed to method
174
+ * @returns {boolean} truthy value if widget is the default one
175
+ */
176
+ defaultFocus? : ((widget: Widget) => boolean)|string
177
+ /**
178
+ * A config object containing default settings to apply to all child widgets.
179
+ */
180
+ defaults? : ContainerItemConfig
181
+ /**
182
+ * Check for CSS compatibility issues when upgrading to v7. Performs the following checks:
183
+ * ...
184
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/CodeEditor#config-detectCSSCompatibilityIssues)
185
+ */
186
+ detectCSSCompatibilityIssues? : boolean
187
+ /**
188
+ * 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
189
+ * cannot be focused, uses a different rendition (usually greyish) and does not allow selecting its value.
190
+ * ...
191
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/CodeEditor#config-disabled)
192
+ */
193
+ disabled? : boolean|'inert'
194
+ /**
195
+ * Controls the placement of this widget when it is added to a [panel's ](https://bryntum.com/products/scheduler/docs/api/Core/widget/Panel)
196
+ * [strips collection](https://bryntum.com/products/scheduler/docs/api/Core/widget/Panel#config-strips). Typical values for this config are `'top'`,
197
+ * `'bottom'`, `'left'`, or `'right'`, which cause the widget to be placed on that side of the panel's
198
+ * body. Such widgets are called "edge strips".
199
+ * ...
200
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/CodeEditor#config-dock)
201
+ */
202
+ dock? : 'top'|'bottom'|'left'|'right'|'start'|'end'|'header'|'pre-header'|object
203
+ /**
204
+ * *Only valid if this Widget is [floating](https://bryntum.com/products/scheduler/docs/api/Core/widget/Widget#config-floating).*
205
+ * Set to `true` to be able to drag a widget freely on the page. Or set to an object with a ´handleSelector´
206
+ * property which controls when a drag should start.
207
+ * ...
208
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/CodeEditor#config-draggable)
209
+ */
210
+ draggable? : boolean|{
211
+ handleSelector?: string
212
+ }
213
+ /**
214
+ * Make this Panel a docked drawer which slides out from one side of the browser viewport by default.
215
+ * ...
216
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/CodeEditor#config-drawer)
217
+ * @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.
218
+ * @param {string,number} size The size of the drawer in its collapsible axis.
219
+ * @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.
220
+ * @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.
221
+ * @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.
222
+ * @param {boolean,string} autoClose.focusout If focus moves outside of the drawer, the drawer will automatically be hidden.
223
+ * @param {string} autoClose.mouseout Hides the drawer when the mouse leaves the drawer after the `autoCloseDelay` period.
224
+ * @param {number} autoCloseDelay When using `mouseout`, this is the delay in milliseconds
225
+ */
226
+ 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}
227
+ /**
228
+ * An editor configuration object to be passed to https://microsoft.github.io/monaco-editor/docs.html#functions/editor.create.html
229
+ */
230
+ editor? : object
231
+ /**
232
+ * An object specifying attributes to assign to the root element of this widget.
233
+ * Set `null` value to attribute to remove it.
234
+ * ...
235
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/CodeEditor#config-elementAttributes)
236
+ */
237
+ elementAttributes? : Record<string, string|null>
238
+ extraData? : any
239
+ /**
240
+ * 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
241
+ * flexbox layout. This config allows you to set this widget's
242
+ * [flex](https://developer.mozilla.org/en-US/docs/Web/CSS/flex) style.
243
+ * This may be configured as a single number or a `&lt;flex-grow&gt; &lt;flex-shrink&gt; &lt;flex-basis&gt;` format string.
244
+ * numeric-only values are interpreted as the `flex-grow` value.
245
+ */
246
+ flex? : number|string
247
+ /**
248
+ * Set to `true` to move the widget out of the document flow and position it
249
+ * absolutely in browser viewport space.
250
+ */
251
+ floating? : boolean
252
+ /**
253
+ * Config object of a footer. May contain a `dock`, `html` and a `cls` property. A footer is not a widget,
254
+ * 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).
255
+ * ...
256
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/CodeEditor#config-footer)
257
+ */
258
+ footer? : {
259
+ dock?: 'top'|'right'|'bottom'|'left'|'start'|'end'
260
+ html?: string
261
+ cls?: string
262
+ }|string
263
+ /**
264
+ * 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`.
265
+ * ...
266
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/CodeEditor#config-header)
267
+ */
268
+ header? : string|boolean|PanelHeader
269
+ /**
270
+ * Widget's height, used to set element `style.height`. Either specify a valid height string or a number,
271
+ * which will get 'px' appended. We recommend using CSS as the primary way to control height, but in some
272
+ * cases this config is convenient.
273
+ */
274
+ height? : string|number
275
+ /**
276
+ * Configure with true to make widget initially hidden.
277
+ */
278
+ hidden? : boolean
279
+ /**
280
+ * *Only valid if this Widget is [floating](https://bryntum.com/products/scheduler/docs/api/Core/widget/Widget#config-floating).*
281
+ * ...
282
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/CodeEditor#config-hideAnimation)
283
+ */
284
+ hideAnimation? : boolean|object
285
+ /**
286
+ * Specify `true` to make this container hide when it has no visible children (Either empty
287
+ * or all children hidden).
288
+ * ...
289
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/CodeEditor#config-hideWhenEmpty)
290
+ */
291
+ hideWhenEmpty? : boolean
292
+ /**
293
+ * The HTML to display initially or a function returning the markup (called at widget construction time).
294
+ * ...
295
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/CodeEditor#config-html)
296
+ * @param {Core.widget.Widget} widget The calling Widget
297
+ * @returns {string}
298
+ */
299
+ html? : string|((widget: Widget) => string)|DomConfig|DomConfig[]|VueConfig
300
+ /**
301
+ * The CSS class(es) to add when HTML content is being applied to this widget.
302
+ */
303
+ htmlCls? : string|object
304
+ /**
305
+ * 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
306
+ * [DomConfig](https://bryntum.com/products/scheduler/docs/api/Core/helper/DomHelper#typedef-DomConfig) object describing an element to represent the icon.
307
+ */
308
+ icon? : string|DomConfig
309
+ /**
310
+ * Widget id, if not specified one will be generated. Also used for lookups through Widget.getById
311
+ */
312
+ id? : string
313
+ /**
314
+ * Determines if the widgets read-only state should be controlled by its parent.
315
+ * ...
316
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/CodeEditor#config-ignoreParentReadOnly)
317
+ */
318
+ ignoreParentReadOnly? : boolean
319
+ /**
320
+ * Convenience setting to align input fields of child widgets. By default, the Field input element is
321
+ * placed immediately following the `label`. If you prefer to have all input fields aligned to the
322
+ * right, set this config to `'end'`.
323
+ * ...
324
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/CodeEditor#config-inputFieldAlign)
325
+ */
326
+ inputFieldAlign? : 'start'|'end'
327
+ /**
328
+ * 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.
329
+ */
330
+ insertBefore? : HTMLElement|string
331
+ /**
332
+ * 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.
333
+ */
334
+ insertFirst? : HTMLElement|string
335
+ /**
336
+ * An optional CSS class to add to child items of this container.
337
+ */
338
+ itemCls? : string
339
+ /**
340
+ * An object containing typed child widget config objects or Widgets. May also be specified
341
+ * as an array.
342
+ * ...
343
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/CodeEditor#config-items)
344
+ */
345
+ items? : Record<string, ContainerItemConfig|MenuItemEntry>|(ContainerItemConfig|MenuItemEntry|Widget)[]
346
+ /**
347
+ * An object whose keys are the [key](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/key) name
348
+ * and optional modifier prefixes: `'Ctrl+'`, `'Alt+'`, `'Meta+'`, and `'Shift+'` (case-insensitive). The values
349
+ * are the name of the instance method to call when the keystroke is received.
350
+ * ...
351
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/CodeEditor#config-keyMap)
352
+ */
353
+ keyMap? : Record<string, KeyMapConfig>
354
+ /**
355
+ * Convenience setting to use same label placement on all child widgets.
356
+ * ...
357
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/CodeEditor#config-labelPosition)
358
+ */
359
+ labelPosition? : 'before'|'above'|'align-before'|'auto'|null
360
+ /**
361
+ * The language being edited may be set and read using this property.
362
+ */
363
+ language? : string
364
+ /**
365
+ * The short name of a helper class which manages rendering and styling of child items.
366
+ * ...
367
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/CodeEditor#config-layout)
368
+ */
369
+ layout? : string|ContainerLayoutConfig
370
+ /**
371
+ * The CSS style properties to apply to the [contentElement](https://bryntum.com/products/scheduler/docs/api/Core/widget/Widget#property-contentElement).
372
+ * ...
373
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/CodeEditor#config-layoutStyle)
374
+ */
375
+ layoutStyle? : object
376
+ /**
377
+ * 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
378
+ * instances only when this Container is rendered, rather than eagerly at construct time.
379
+ * ...
380
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/CodeEditor#config-lazyItems)
381
+ */
382
+ lazyItems? : Record<string, ContainerItemConfig>|ContainerItemConfig[]|Widget[]
383
+ /**
384
+ * The listener set for this object.
385
+ * ...
386
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/CodeEditor#config-listeners)
387
+ */
388
+ listeners? : CodeEditorListeners
389
+ /**
390
+ * A class translations of which are used for translating this entity.
391
+ * This is often used when translations of an item are defined on its container class.
392
+ * For example:
393
+ * ...
394
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/CodeEditor#config-localeClass)
395
+ */
396
+ localeClass? : typeof Base
397
+ /**
398
+ * Set to `false` to disable localization of this object.
399
+ */
400
+ localizable? : boolean
401
+ /**
402
+ * List of properties which values should be translated automatically upon a locale applying.
403
+ * In case there is a need to localize not typical value (not a String value or a field with re-defined setter/getter),
404
+ * you could use 'localeKey' meta configuration.
405
+ * Example:
406
+ * ...
407
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/CodeEditor#config-localizableProperties)
408
+ */
409
+ localizableProperties? : string[]
410
+ /**
411
+ * Widget's margin. This may be configured as a single number or a `TRBL` format string.
412
+ * numeric-only values are interpreted as pixels.
413
+ */
414
+ margin? : number|string
415
+ /**
416
+ * This config object contains the defaults for the [Mask](https://bryntum.com/products/scheduler/docs/api/Core/widget/Mask) created for the
417
+ * [masked](https://bryntum.com/products/scheduler/docs/api/Core/widget/Widget#config-masked) config. Any properties specified in the `masked` config will override these
418
+ * values.
419
+ */
420
+ maskDefaults? : MaskConfig
421
+ /**
422
+ * Set to `true` to apply the default mask to the widget. Alternatively, this can be the mask message or a
423
+ * [Mask](https://bryntum.com/products/scheduler/docs/api/Core/widget/Mask) config object.
424
+ */
425
+ masked? : boolean|string|MaskConfig
426
+ /**
427
+ * The element's maxHeight. Can be either a String or a Number (which will have 'px' appended). Note that
428
+ * like [height](https://bryntum.com/products/scheduler/docs/api/Core/widget/Widget#config-height), *reading* the value will return the numeric value in pixels.
429
+ */
430
+ maxHeight? : string|number
431
+ /**
432
+ * *Only valid if this Widget is [floating](https://bryntum.com/products/scheduler/docs/api/Core/widget/Widget#config-floating).*
433
+ * ...
434
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/CodeEditor#config-maximizeOnMobile)
435
+ */
436
+ maximizeOnMobile? : number|string
437
+ /**
438
+ * The elements maxWidth. Can be either a String or a Number (which will have 'px' appended). Note that
439
+ * like [width](https://bryntum.com/products/scheduler/docs/api/Core/widget/Widget#config-width), *reading* the value will return the numeric value in pixels.
440
+ */
441
+ maxWidth? : string|number
442
+ /**
443
+ * The element's minHeight. Can be either a String or a Number (which will have 'px' appended). Note that
444
+ * like [height](https://bryntum.com/products/scheduler/docs/api/Core/widget/Widget#config-height), *reading* the value will return the numeric value in pixels.
445
+ */
446
+ minHeight? : string|number
447
+ /**
448
+ * The elements minWidth. Can be either a String or a Number (which will have 'px' appended). Note that
449
+ * like [width](https://bryntum.com/products/scheduler/docs/api/Core/widget/Widget#config-width), *reading* the value will return the numeric value in pixels.
450
+ */
451
+ minWidth? : string|number
452
+ /**
453
+ * When this is configured as `true` a [ResizeObserver](https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserver)
454
+ * is used to monitor this element for size changes caused by either style manipulation, or by CSS
455
+ * layout.
456
+ * ...
457
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/CodeEditor#config-monitorResize)
458
+ */
459
+ monitorResize? : boolean|{
460
+ immediate?: boolean
461
+ }
462
+ /**
463
+ * 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)
464
+ * config. For example, a specialized [Menu](https://bryntum.com/products/scheduler/docs/api/Core/widget/Menu) subclass may have a `namedItems` default
465
+ * value defined like this:
466
+ * ...
467
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/CodeEditor#config-namedItems)
468
+ */
469
+ namedItems? : Record<string, ContainerItemConfig>
470
+ /**
471
+ * The owning Widget of this Widget. If this Widget is directly contained (that is, it is one of the
472
+ * [items](https://bryntum.com/products/scheduler/docs/api/Core/widget/Container#property-items) of a Container), this config will be ignored. In this case
473
+ * the owner is <strong>always</strong> the encapsulating Container.
474
+ * ...
475
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/CodeEditor#config-owner)
476
+ */
477
+ owner? : Widget|any
478
+ /**
479
+ * 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
480
+ * not participate in the standard layout of that widget, and must be positioned relatively to that
481
+ * widget's [contentElement](https://bryntum.com/products/scheduler/docs/api/Core/widget/Widget#property-contentElement).
482
+ * ...
483
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/CodeEditor#config-positioned)
484
+ */
485
+ positioned? : boolean
486
+ /**
487
+ * Prevent tooltip from being displayed on touch devices. Useful for example for buttons that display a
488
+ * menu on click etc, since the tooltip would be displayed at the same time.
489
+ */
490
+ preventTooltipOnTouch? : boolean
491
+ /**
492
+ * The read-only state of the editor may be set and read. This state is by default reflected
493
+ * by an icon in the bottom toolbar.
494
+ */
495
+ readOnly? : boolean
496
+ /**
497
+ * [Record](https://bryntum.com/products/scheduler/docs/api/Core/data/Model) whose values will be used to populate fields in the container.
498
+ * ...
499
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/CodeEditor#config-record)
500
+ */
501
+ record? : Model
502
+ relayStoreEvents? : boolean
503
+ /**
504
+ * Either a default `rendition` to apply to all child widgets, or a map of renditions keyed by child widget
505
+ * `type`.
506
+ * ...
507
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/CodeEditor#config-rendition)
508
+ */
509
+ rendition? : string|Record<string, string>|null
510
+ /**
511
+ * Configure as `true` to have the component display a translucent ripple when its
512
+ * [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
513
+ * current theme supports ripples</em>. Out of the box, only the Material theme supports ripples.
514
+ * ...
515
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/CodeEditor#config-ripple)
516
+ */
517
+ ripple? : boolean|{
518
+ delegate?: string
519
+ color?: string
520
+ radius?: number
521
+ clip?: string
522
+ }
523
+ /**
524
+ * 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`
525
+ */
526
+ rootElement? : ShadowRoot|HTMLElement
527
+ /**
528
+ * This may be configured as `true` to make the widget's element use the `direction:rtl` style.
529
+ * ...
530
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/CodeEditor#config-rtl)
531
+ */
532
+ rtl? : boolean
533
+ /**
534
+ * Specifies whether (and optionally in which axes) a Widget may scroll. `true` means this widget may scroll
535
+ * in both axes. May be an object containing boolean `overflowX` and `overflowY` properties which are
536
+ * applied to CSS style properties `overflowX` and `overflowY`. If they are boolean, they are translated to
537
+ * CSS overflow properties thus:
538
+ * ...
539
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/CodeEditor#config-scrollable)
540
+ */
541
+ scrollable? : boolean|ScrollerConfig|Scroller
542
+ /**
543
+ * Defines what to do if document is scrolled while Widget is visible (only relevant when floating is set to `true`).
544
+ * Valid values: ´null´: do nothing, ´hide´: hide the widget or ´realign´: realign to the target if possible.
545
+ */
546
+ scrollAction? : 'hide'|'realign'|null
547
+ /**
548
+ * *Only valid if this Widget is [floating](https://bryntum.com/products/scheduler/docs/api/Core/widget/Widget#config-floating).*
549
+ * ...
550
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/CodeEditor#config-showAnimation)
551
+ */
552
+ showAnimation? : boolean|object
553
+ /**
554
+ * 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)
555
+ */
556
+ showTooltipWhenDisabled? : boolean
557
+ /**
558
+ * Programmatic control over how many columns to span when used in a grid layout.
559
+ */
560
+ span? : number
561
+ /**
562
+ * This value can be one of the following:
563
+ * ...
564
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/CodeEditor#config-stateful)
565
+ */
566
+ stateful? : boolean|object|string[]
567
+ /**
568
+ * The events that, when fired by this component, should trigger it to save its state by calling
569
+ * [saveState](https://bryntum.com/products/scheduler/docs/api/Core/mixin/State#function-saveState).
570
+ * ...
571
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/CodeEditor#config-statefulEvents)
572
+ */
573
+ statefulEvents? : object|string[]
574
+ /**
575
+ * 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
576
+ * 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)
577
+ * (if explicitly specified) will be used as the `stateId`.
578
+ * ...
579
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/CodeEditor#config-stateId)
580
+ */
581
+ stateId? : string
582
+ /**
583
+ * 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`
584
+ * will be saved using the [default state provider](https://bryntum.com/products/scheduler/docs/api/Core/state/StateProvider#property-instance-static).
585
+ * ...
586
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/CodeEditor#config-stateProvider)
587
+ */
588
+ stateProvider? : StateProvider
589
+ /**
590
+ * The status message displayed un the bottom toolbar may be set and read using this property.
591
+ */
592
+ status? : string
593
+ /**
594
+ * 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),
595
+ * without falling back to `ref`.
596
+ */
597
+ strictRecordMapping? : boolean
598
+ /**
599
+ * An object containing widgets keyed by name. By default (when no `type` is given), strips are
600
+ * [toolbars](https://bryntum.com/products/scheduler/docs/api/Core/widget/Toolbar). If you want to pass an array, you can use
601
+ * the toolbar's [items](https://bryntum.com/products/scheduler/docs/api/Core/widget/Container#config-items).
602
+ * ...
603
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/CodeEditor#config-strips)
604
+ */
605
+ strips? : Record<string, ContainerItemConfig>
606
+ /**
607
+ * 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
608
+ * [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
609
+ * this widget:
610
+ * ...
611
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/CodeEditor#config-tab)
612
+ */
613
+ tab? : boolean|TabConfig
614
+ /**
615
+ * When this container is used as a tab in a TabPanel, these items are added to the
616
+ * [TabBar](https://bryntum.com/products/scheduler/docs/api/Core/widget/TabBar) when this container is the active tab.
617
+ * ...
618
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/CodeEditor#config-tabBarItems)
619
+ */
620
+ tabBarItems? : ToolbarItems[]|Widget[]
621
+ /**
622
+ * The tag name of this Widget's root element
623
+ */
624
+ tag? : string
625
+ /**
626
+ * A Config object representing the configuration of a [Toolbar](https://bryntum.com/products/scheduler/docs/api/Core/widget/Toolbar),
627
+ * or array of config objects representing the child items of a Toolbar.
628
+ * This creates a toolbar docked to the top of the panel immediately below the header.
629
+ * ...
630
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/CodeEditor#config-tbar)
631
+ */
632
+ tbar? : (ContainerItemConfig|string)[]|ToolbarConfig|PagingToolbarConfig|null
633
+ /**
634
+ * The text being edited may be set and read using this property.
635
+ */
636
+ text? : string
637
+ /**
638
+ * Text alignment: 'left', 'center' or 'right'. Also accepts direction neutral 'start' and 'end'.
639
+ * ...
640
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/CodeEditor#config-textAlign)
641
+ */
642
+ textAlign? : 'left'|'center'|'right'|'start'|'end'
643
+ /**
644
+ * Specify `true` for a container used to show text markup. It will apply the CSS class `b-text-content`
645
+ * which specifies a default max-width that makes long text more readable.
646
+ * ...
647
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/CodeEditor#config-textContent)
648
+ */
649
+ textContent? : boolean
650
+ /**
651
+ * The Monaco theme to use. If not specified, it defaults to `'vs'`;
652
+ */
653
+ theme? : 'vs'|'vs-dark'|'hc-black'|'hc-light'
654
+ /**
655
+ * A title to display in the header or owning TabPanel. Causes creation and docking of a header
656
+ * to the top if no header is configured.
657
+ * ...
658
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/CodeEditor#config-title)
659
+ */
660
+ title? : string
661
+ /**
662
+ * 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
663
+ * property name is the reference by which an instantiated tool may be retrieved from the live
664
+ * `[tools](https://bryntum.com/products/scheduler/docs/api/Core/widget/mixin/Toolable#property-tools)` property.
665
+ * ...
666
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/CodeEditor#config-tools)
667
+ */
668
+ tools? : Record<string, ToolConfig>|null
669
+ /**
670
+ * Tooltip for the widget, either as a string or as a Tooltip config object.
671
+ * ...
672
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/CodeEditor#config-tooltip)
673
+ */
674
+ tooltip? : string|TooltipConfig|null
675
+ /**
676
+ * By default, tabbing within a Panel is not contained, ie you can TAB out of the Panel
677
+ * forwards or backwards.
678
+ * Configure this as `true` to disallow tabbing out of the Panel, and make tabbing circular within this Panel.
679
+ */
680
+ trapFocus? : boolean
681
+ type? : 'codeeditor'
682
+ /**
683
+ * Custom CSS class name suffixes to apply to the elements rendered by this widget. This may be specified
684
+ * as a space separated string, an array of strings, or as an object in which property names with truthy
685
+ * values are used as the class names.
686
+ * ...
687
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/CodeEditor#config-ui)
688
+ */
689
+ ui? : 'plain'|'toolbar'|string|object
690
+ /**
691
+ * A widgets weight determines its position among siblings when added to a [Container](https://bryntum.com/products/scheduler/docs/api/Core/widget/Container).
692
+ * Higher weights go further down.
693
+ */
694
+ weight? : number
695
+ /**
696
+ * Widget's width, used to set element `style.width`. Either specify a valid width string or a number, which
697
+ * will get 'px' appended. We recommend using CSS as the primary way to control width, but in some cases
698
+ * this config is convenient.
699
+ */
700
+ width? : string|number
701
+ /**
702
+ * The x position for the widget.
703
+ * ...
704
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/CodeEditor#config-x)
705
+ */
706
+ x? : number
707
+ /**
708
+ * The y position for the widget.
709
+ * ...
710
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/CodeEditor#config-y)
711
+ */
712
+ y? : number
713
+
714
+ // Events
715
+ /**
716
+ * Fires before an object is destroyed.
717
+ * @param {object} event Event object
718
+ * @param {Core.Base} event.source The Object that is being destroyed.
719
+ */
720
+ onBeforeDestroy? : ((event: { source: Base }) => void)|string
721
+ /**
722
+ * Triggered before a widget is hidden. Return `false` to prevent the action.
723
+ * @param {object} event Event object
724
+ * @param {Core.widget.Widget} event.source The widget being hidden.
725
+ */
726
+ onBeforeHide? : ((event: { source: Widget }) => Promise<boolean>|boolean|void)|string
727
+ /**
728
+ * Fired before this container will load record values into its child fields. This is useful if you
729
+ * want to modify the UI before data is loaded (e.g. set some input field to be readonly)
730
+ * @param {object} event Event object
731
+ * @param {Core.widget.Container} event.source The container
732
+ * @param {Core.data.Model} event.record The record
733
+ */
734
+ onBeforeSetRecord? : ((event: { source: Container, record: Model }) => void)|string
735
+ /**
736
+ * Triggered before a widget is shown. Return `false` to prevent the action.
737
+ * @param {object} event Event object
738
+ * @param {Core.widget.Widget,any} event.source The widget being shown
739
+ */
740
+ onBeforeShow? : ((event: { source: Widget|any }) => Promise<boolean>|boolean|void)|string
741
+ /**
742
+ * Fired before state is applied to the source. Allows editing the state object or preventing the operation.
743
+ * @param {object} event Event object
744
+ * @param {any} event.state State object config
745
+ */
746
+ onBeforeStateApply? : ((event: { state: any }) => Promise<boolean>|boolean|void)|string
747
+ /**
748
+ * Fired before state is saved by the StateProvider. Allows editing the state object or preventing the operation.
749
+ * @param {object} event Event object
750
+ * @param {any} event.state State object config
751
+ */
752
+ onBeforeStateSave? : ((event: { state: any }) => Promise<boolean>|boolean|void)|string
753
+ /**
754
+ * Fires when any other event is fired from the object.
755
+ * ...
756
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/CodeEditor#event-catchAll)
757
+ * @param {object} event Event object
758
+ * @param {{[key: string]: any, type: string}} event.event The Object that contains event details
759
+ * @param {string} event.event.type The type of the event which is caught by the listener
760
+ */
761
+ onCatchAll? : ((event: {[key: string]: any, type: string}) => void)|string
762
+ /**
763
+ * Fires when a Panel is collapsed using the [collapsible](https://bryntum.com/products/scheduler/docs/api/Core/widget/Panel#config-collapsible) setting.
764
+ * @param {object} event Event object
765
+ * @param {Core.widget.Panel} event.source This Panel.
766
+ */
767
+ onCollapse? : ((event: { source: Panel }) => void)|string
768
+ /**
769
+ * Fires when an object is destroyed.
770
+ * @param {object} event Event object
771
+ * @param {Core.Base} event.source The Object that is being destroyed.
772
+ */
773
+ onDestroy? : ((event: { source: Base }) => void)|string
774
+ /**
775
+ * 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
776
+ * @param {object} event Event object
777
+ * @param {Core.widget.Container} event.source The container.
778
+ * @param {boolean} event.dirty The dirty state of the Container - `true` if there are any fields which have been changed since initial load.
779
+ */
780
+ onDirtyStateChange? : ((event: { source: Container, dirty: boolean }) => void)|string
781
+ /**
782
+ * Triggered when a widget's [element](https://bryntum.com/products/scheduler/docs/api/Core/widget/Widget#property-element) is available.
783
+ * @param {object} event Event object
784
+ * @param {HTMLElement} event.element The Widget's element.
785
+ */
786
+ onElementCreated? : ((event: { element: HTMLElement }) => void)|string
787
+ /**
788
+ * Fires when a Panel is expanded using the [collapsible](https://bryntum.com/products/scheduler/docs/api/Core/widget/Panel#config-collapsible) setting.
789
+ * @param {object} event Event object
790
+ * @param {Core.widget.Panel} event.source This Panel.
791
+ */
792
+ onExpand? : ((event: { source: Panel }) => void)|string
793
+ /**
794
+ * Fired when focus enters this Widget.
795
+ * @param {object} event Event object
796
+ * @param {Core.widget.Widget} event.source This Widget
797
+ * @param {HTMLElement} event.fromElement The element which lost focus.
798
+ * @param {HTMLElement} event.toElement The element which gained focus.
799
+ * @param {Core.widget.Widget} event.fromWidget The widget which lost focus.
800
+ * @param {Core.widget.Widget} event.toWidget The widget which gained focus.
801
+ * @param {boolean} event.backwards `true` if the `toElement` is before the `fromElement` in document order.
802
+ */
803
+ onFocusIn? : ((event: { source: Widget, fromElement: HTMLElement, toElement: HTMLElement, fromWidget: Widget, toWidget: Widget, backwards: boolean }) => void)|string
804
+ /**
805
+ * Fired when focus exits this Widget's ownership tree. This is different from a `blur` event.
806
+ * focus moving from within this Widget's ownership tree, even if there are floating widgets
807
+ * will not trigger this event. This is when focus exits this widget completely.
808
+ * @param {object} event Event object
809
+ * @param {Core.widget.Widget} event.source This Widget
810
+ * @param {HTMLElement} event.fromElement The element which lost focus.
811
+ * @param {HTMLElement} event.toElement The element which gained focus.
812
+ * @param {Core.widget.Widget} event.fromWidget The widget which lost focus.
813
+ * @param {Core.widget.Widget} event.toWidget The widget which gained focus.
814
+ * @param {boolean} event.backwards `true` if the `toElement` is before the `fromElement` in document order.
815
+ */
816
+ onFocusOut? : ((event: { source: Widget, fromElement: HTMLElement, toElement: HTMLElement, fromWidget: Widget, toWidget: Widget, backwards: boolean }) => void)|string
817
+ /**
818
+ * Triggered after a widget was hidden
819
+ * @param {object} event Event object
820
+ * @param {Core.widget.Widget} event.source The widget
821
+ */
822
+ onHide? : ((event: { source: Widget }) => void)|string
823
+ /**
824
+ * Triggered when a widget which had been in a non-visible state for any reason
825
+ * achieves visibility.
826
+ * ...
827
+ * [View online docs...](https://bryntum.com/products/scheduler/docs/api/Core/widget/CodeEditor#event-paint)
828
+ * @param {object} event Event object
829
+ * @param {Core.widget.Widget} event.source The widget being painted.
830
+ * @param {boolean} event.firstPaint `true` if this is the first paint.
831
+ */
832
+ onPaint? : ((event: { source: Widget, firstPaint: boolean }) => void)|string
833
+ /**
834
+ * Fired when a Widget's read only state is toggled
835
+ * @param {object} event Event object
836
+ * @param {boolean} event.readOnly Read only or not
837
+ */
838
+ onReadOnly? : ((event: { readOnly: boolean }) => void)|string
839
+ /**
840
+ * This event is fired after a widget's elements have been synchronized due to a direct or indirect call
841
+ * 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.
842
+ */
843
+ onRecompose? : (() => void)|string
844
+ /**
845
+ * 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`*.
846
+ * @param {object} event Event object
847
+ * @param {Core.widget.Widget} event.source This Widget
848
+ * @param {number} event.width The new width
849
+ * @param {number} event.height The new height
850
+ * @param {number} event.oldWidth The old width
851
+ * @param {number} event.oldHeight The old height
852
+ */
853
+ onResize? : ((event: { source: Widget, width: number, height: number, oldWidth: number, oldHeight: number }) => void)|string
854
+ /**
855
+ * Triggered after a widget is shown.
856
+ * @param {object} event Event object
857
+ * @param {Core.widget.Widget} event.source The widget
858
+ */
859
+ onShow? : ((event: { source: Widget }) => void)|string
860
+ /**
861
+ * A header [tool](https://bryntum.com/products/scheduler/docs/api/Core/widget/Panel#config-tools) has been clicked.
862
+ * @param {object} event Event object
863
+ * @param {Core.widget.Tool} event.source This Panel.
864
+ * @param {Core.widget.Tool} event.tool The tool which is being clicked.
865
+ */
866
+ onToolClick? : ((event: { source: Tool, tool: Tool }) => void)|string
867
+
868
+ }
869
+
870
+ export class BryntumCodeEditor extends React.Component<BryntumCodeEditorProps> {
871
+
872
+ static instanceClass = CodeEditor;
873
+
874
+ static instanceName = 'CodeEditor';
875
+
876
+ processWidgetContent = processWidgetContent;
877
+
878
+ static configNames = [
879
+ 'adopt',
880
+ 'align',
881
+ 'anchor',
882
+ 'ariaDescription',
883
+ 'ariaLabel',
884
+ 'autoUpdateRecord',
885
+ 'bbar',
886
+ 'bodyCls',
887
+ 'bubbleEvents',
888
+ 'centered',
889
+ 'codePath',
890
+ 'collapsible',
891
+ 'color',
892
+ 'config',
893
+ 'constrainTo',
894
+ 'contentElementCls',
895
+ 'dataField',
896
+ 'defaultBindProperty',
897
+ 'defaultFocus',
898
+ 'defaults',
899
+ 'detectCSSCompatibilityIssues',
900
+ 'dock',
901
+ 'draggable',
902
+ 'drawer',
903
+ 'editor',
904
+ 'elementAttributes',
905
+ 'floating',
906
+ 'footer',
907
+ 'header',
908
+ 'hideAnimation',
909
+ 'hideWhenEmpty',
910
+ 'htmlCls',
911
+ 'icon',
912
+ 'ignoreParentReadOnly',
913
+ 'itemCls',
914
+ 'lazyItems',
915
+ 'listeners',
916
+ 'localeClass',
917
+ 'localizable',
918
+ 'localizableProperties',
919
+ 'maskDefaults',
920
+ 'masked',
921
+ 'monitorResize',
922
+ 'namedItems',
923
+ 'owner',
924
+ 'positioned',
925
+ 'preventTooltipOnTouch',
926
+ 'relayStoreEvents',
927
+ 'ripple',
928
+ 'rootElement',
929
+ 'scrollAction',
930
+ 'showAnimation',
931
+ 'showTooltipWhenDisabled',
932
+ 'stateful',
933
+ 'statefulEvents',
934
+ 'stateId',
935
+ 'stateProvider',
936
+ 'strips',
937
+ 'tab',
938
+ 'tabBarItems',
939
+ 'tag',
940
+ 'tbar',
941
+ 'textAlign',
942
+ 'textContent',
943
+ 'trapFocus',
944
+ 'type',
945
+ 'ui',
946
+ 'weight'
947
+ ];
948
+
949
+ static propertyConfigNames = [
950
+ 'alignSelf',
951
+ 'appendTo',
952
+ 'callOnFunctions',
953
+ 'catchEventHandlerExceptions',
954
+ 'cls',
955
+ 'collapsed',
956
+ 'column',
957
+ 'content',
958
+ 'dataset',
959
+ 'disabled',
960
+ 'extraData',
961
+ 'flex',
962
+ 'height',
963
+ 'hidden',
964
+ 'html',
965
+ 'id',
966
+ 'inputFieldAlign',
967
+ 'insertBefore',
968
+ 'insertFirst',
969
+ 'items',
970
+ 'keyMap',
971
+ 'labelPosition',
972
+ 'language',
973
+ 'layout',
974
+ 'layoutStyle',
975
+ 'margin',
976
+ 'maxHeight',
977
+ 'maximizeOnMobile',
978
+ 'maxWidth',
979
+ 'minHeight',
980
+ 'minWidth',
981
+ 'onBeforeDestroy',
982
+ 'onBeforeHide',
983
+ 'onBeforeSetRecord',
984
+ 'onBeforeShow',
985
+ 'onBeforeStateApply',
986
+ 'onBeforeStateSave',
987
+ 'onCatchAll',
988
+ 'onCollapse',
989
+ 'onDestroy',
990
+ 'onDirtyStateChange',
991
+ 'onElementCreated',
992
+ 'onExpand',
993
+ 'onFocusIn',
994
+ 'onFocusOut',
995
+ 'onHide',
996
+ 'onPaint',
997
+ 'onReadOnly',
998
+ 'onRecompose',
999
+ 'onResize',
1000
+ 'onShow',
1001
+ 'onToolClick',
1002
+ 'readOnly',
1003
+ 'record',
1004
+ 'rendition',
1005
+ 'rtl',
1006
+ 'scrollable',
1007
+ 'span',
1008
+ 'status',
1009
+ 'strictRecordMapping',
1010
+ 'text',
1011
+ 'theme',
1012
+ 'title',
1013
+ 'tools',
1014
+ 'tooltip',
1015
+ 'width',
1016
+ 'x',
1017
+ 'y'
1018
+ ];
1019
+
1020
+ static propertyNames = [
1021
+ 'anchorSize',
1022
+ 'focusVisible',
1023
+ 'hasChanges',
1024
+ 'isSettingValues',
1025
+ 'isValid',
1026
+ 'parent',
1027
+ 'state',
1028
+ 'values'
1029
+ ];
1030
+
1031
+ // Component instance
1032
+ instance!: CodeEditor;
1033
+
1034
+ // Component element
1035
+ element! : HTMLElement;
1036
+
1037
+ componentDidMount(): void {
1038
+ this.instance = createWidget(this);
1039
+ }
1040
+
1041
+ componentWillUnmount(): void {
1042
+ // @ts-ignore
1043
+ this.instance?.destroy?.();
1044
+ }
1045
+
1046
+ /**
1047
+ * Component about to be updated, from changing a prop using state.
1048
+ * React to it depending on what changed and prevent react from re-rendering our component.
1049
+ * @param nextProps
1050
+ * @param nextState
1051
+ * @returns {boolean}
1052
+ */
1053
+ shouldComponentUpdate(nextProps: Readonly<BryntumCodeEditorProps>, nextState: Readonly<{}>): boolean {
1054
+ return shouldComponentUpdate(this, nextProps, nextState);
1055
+ }
1056
+
1057
+ render(): React.ReactNode {
1058
+
1059
+ const className = `b-react-code-editor-container`;
1060
+ return (
1061
+ <div className={className} ref={(element) => (this.element = element!)}></div>
1062
+ );
1063
+
1064
+ }
1065
+ }