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