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