@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,986 @@
1
+ /**
2
+ * React wrapper for Bryntum TodoListField
3
+ */
4
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
5
+ import React, { RefObject } from 'react';
6
+ import { AlignSpec, Base, DomConfig, Field, FieldContainer, FieldContainerConfig, FieldTriggerConfig, KeyMapConfig, MaskConfig, Model, Rectangle, Scroller, TabConfig, TooltipConfig, VueConfig, Widget } from '@bryntum/core-thin';
7
+ import { TaskBoardContainerItemConfig, TodoListField, TodoListFieldListeners } from '@bryntum/taskboard-thin';
8
+
9
+ import { createWidget, shouldComponentUpdate, processWidgetContent } from './WrapperHelper.js';
10
+
11
+ export type BryntumTodoListFieldProps = {
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/TodoListField#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/TodoListField#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/TodoListField#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/TodoListField#config-ariaLabel)
54
+ */
55
+ ariaLabel? : string
56
+ /**
57
+ * Sets the native `autocomplete` property of the underlying input element. For more information, please refer to
58
+ * [MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete)
59
+ */
60
+ autoComplete? : string
61
+ /**
62
+ * Specify `true` to auto select field contents on focus
63
+ */
64
+ autoSelect? : boolean
65
+ /**
66
+ * Initial text to show in badge.
67
+ */
68
+ badge? : string
69
+ /**
70
+ * An object where property names with a truthy value indicate which events should bubble up the ownership
71
+ * hierarchy when triggered.
72
+ * ...
73
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/TodoListField#config-bubbleEvents)
74
+ */
75
+ bubbleEvents? : object
76
+ /**
77
+ * Set to `false` to not call onXXX method names (e.g. `onShow`, `onClick`), as an easy way to listen for events.
78
+ * ...
79
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/TodoListField#config-callOnFunctions)
80
+ */
81
+ callOnFunctions? : boolean
82
+ /**
83
+ * By default, if an event handler throws an exception, the error propagates up the stack and the
84
+ * application state is undefined. Code which follows the event handler will *not* be executed.
85
+ * ...
86
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/TodoListField#config-catchEventHandlerExceptions)
87
+ */
88
+ catchEventHandlerExceptions? : boolean
89
+ /**
90
+ * *Only valid if this Widget is [floating](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#config-floating).*
91
+ * Set to `true` to centre the Widget in browser viewport space.
92
+ */
93
+ centered? : boolean
94
+ /**
95
+ * Name of a property on a todo item to use for the checkbox. The property is expected to be a boolean.
96
+ */
97
+ checkedField? : string
98
+ /**
99
+ * Show a trigger to clear field, if this field is not [readOnly](https://bryntum.com/products/taskboard/docs/api/Core/widget/Field#config-readOnly). The trigger is available
100
+ * in the [triggers](https://bryntum.com/products/taskboard/docs/api/Core/widget/Field#property-triggers) object under the name `clear`. May also be an object which
101
+ * configures the `clear` [trigger](https://bryntum.com/products/taskboard/docs/api/Core/widget/Field#property-triggers).
102
+ */
103
+ clearable? : boolean|FieldTriggerConfig
104
+ /**
105
+ * Custom CSS classes to add to element.
106
+ * May be specified as a space separated string, or as an object in which property names
107
+ * with truthy values are used as the class names:
108
+ * ...
109
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/TodoListField#config-cls)
110
+ */
111
+ cls? : string|object
112
+ /**
113
+ * Applies the specified color to the widget, by setting the `--b-primary` CSS variable in the widgets
114
+ * `style` block.
115
+ * ...
116
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/TodoListField#config-color)
117
+ */
118
+ color? : string
119
+ /**
120
+ * Programmatic control over which column to start in when used in a grid layout.
121
+ */
122
+ column? : number
123
+ config? : object
124
+ /**
125
+ * *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).*
126
+ * Element, Widget or Rectangle to which this Widget is constrained.
127
+ */
128
+ constrainTo? : HTMLElement|Widget|Rectangle
129
+ /**
130
+ * The configuration for additional items associated to this field. This is typically used to add contextual
131
+ * fields related to a [checkbox](https://bryntum.com/products/taskboard/docs/api/Core/widget/Checkbox) or [radio button](#Core/widget/Radio). See
132
+ * these classes for examples of nested fields.
133
+ * ...
134
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/TodoListField#config-container)
135
+ */
136
+ container? : Record<string, TaskBoardContainerItemConfig>|TaskBoardContainerItemConfig[]|FieldContainerConfig|FieldContainer
137
+ /**
138
+ * The config controls how the value of nested items are handled when a parent container gets or sets its
139
+ * [values](https://bryntum.com/products/taskboard/docs/api/Core/widget/Container#property-values).
140
+ * ...
141
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/TodoListField#config-containValues)
142
+ * @param {Core.widget.Field} field Field instance
143
+ * @returns {boolean}
144
+ */
145
+ containValues? : boolean|string|((field: Field) => boolean)
146
+ /**
147
+ * Custom CSS classes to add to the [contentElement](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#property-contentElement).
148
+ * May be specified as a space separated string, or as an object in which property names
149
+ * with truthy values are used as the class names:
150
+ * ...
151
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/TodoListField#config-contentElementCls)
152
+ */
153
+ contentElementCls? : string|object
154
+ /**
155
+ * When this Widget configuration is used in the Grid's RowExpander feature's `widget` config, provide the
156
+ * field on the expanded record to use for populating this widget's store (if applicable)
157
+ */
158
+ dataField? : string
159
+ /**
160
+ * Object to apply to elements dataset (each key will be used as a data-attribute on the element)
161
+ */
162
+ dataset? : Record<string, string>
163
+ /**
164
+ * The name of the property to set when a single value is to be applied to this Widget. Such as when used
165
+ * in a grid WidgetColumn, this is the property to which the column's `field` is applied.
166
+ */
167
+ defaultBindProperty? : string
168
+ /**
169
+ * Check for CSS compatibility issues when upgrading to v7. Performs the following checks:
170
+ * ...
171
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/TodoListField#config-detectCSSCompatibilityIssues)
172
+ */
173
+ detectCSSCompatibilityIssues? : boolean
174
+ /**
175
+ * 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
176
+ * cannot be focused, uses a different rendition (usually greyish) and does not allow selecting its value.
177
+ * ...
178
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/TodoListField#config-disabled)
179
+ */
180
+ disabled? : boolean|'inert'
181
+ /**
182
+ * Controls the placement of this widget when it is added to a [panel's ](https://bryntum.com/products/taskboard/docs/api/Core/widget/Panel)
183
+ * [strips collection](https://bryntum.com/products/taskboard/docs/api/Core/widget/Panel#config-strips). Typical values for this config are `'top'`,
184
+ * `'bottom'`, `'left'`, or `'right'`, which cause the widget to be placed on that side of the panel's
185
+ * body. Such widgets are called "edge strips".
186
+ * ...
187
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/TodoListField#config-dock)
188
+ */
189
+ dock? : 'top'|'bottom'|'left'|'right'|'start'|'end'|'header'|'pre-header'|object
190
+ /**
191
+ * *Only valid if this Widget is [floating](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#config-floating).*
192
+ * Set to `true` to be able to drag a widget freely on the page. Or set to an object with a ´handleSelector´
193
+ * property which controls when a drag should start.
194
+ * ...
195
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/TodoListField#config-draggable)
196
+ */
197
+ draggable? : boolean|{
198
+ handleSelector?: string
199
+ }
200
+ /**
201
+ * Set to `false` to prevent user from editing the field. For TextFields it is basically the same as setting
202
+ * [readOnly](https://bryntum.com/products/taskboard/docs/api/Core/widget/Field#config-readOnly), but for PickerFields there is a distinction where it allows you to pick a value
203
+ * but not to type one in the field.
204
+ * ...
205
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/TodoListField#config-editable)
206
+ */
207
+ editable? : boolean
208
+ /**
209
+ * Configure as `false` to hide the per item edit button and the add item button. Users can still check/uncheck
210
+ * items.
211
+ */
212
+ editableItems? : boolean
213
+ /**
214
+ * An object specifying attributes to assign to the root element of this widget.
215
+ * Set `null` value to attribute to remove it.
216
+ * ...
217
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/TodoListField#config-elementAttributes)
218
+ */
219
+ elementAttributes? : Record<string, string|null>
220
+ extraData? : any
221
+ /**
222
+ * 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
223
+ * flexbox layout. This config allows you to set this widget's
224
+ * [flex](https://developer.mozilla.org/en-US/docs/Web/CSS/flex) style.
225
+ * This may be configured as a single number or a `&lt;flex-grow&gt; &lt;flex-shrink&gt; &lt;flex-basis&gt;` format string.
226
+ * numeric-only values are interpreted as the `flex-grow` value.
227
+ */
228
+ flex? : number|string
229
+ /**
230
+ * Set to `true` to move the widget out of the document flow and position it
231
+ * absolutely in browser viewport space.
232
+ */
233
+ floating? : boolean
234
+ /**
235
+ * Widget's height, used to set element `style.height`. Either specify a valid height string or a number,
236
+ * which will get 'px' appended. We recommend using CSS as the primary way to control height, but in some
237
+ * cases this config is convenient.
238
+ */
239
+ height? : string|number
240
+ /**
241
+ * Configure with true to make widget initially hidden.
242
+ */
243
+ hidden? : boolean
244
+ /**
245
+ * *Only valid if this Widget is [floating](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#config-floating).*
246
+ * ...
247
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/TodoListField#config-hideAnimation)
248
+ */
249
+ hideAnimation? : boolean|object
250
+ /**
251
+ * Specify `true` to highlight field after external value changes
252
+ */
253
+ highlightExternalChange? : boolean
254
+ /**
255
+ * An optional string to display inside the input field as an overlay. This can be useful for displaying
256
+ * a field's units.
257
+ * ...
258
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/TodoListField#config-hint)
259
+ * @param {object} data A data object
260
+ * @param {Core.widget.Field} data.source A reference to the field instance
261
+ * @param {any} data.value The current value of the field
262
+ * @returns {string}
263
+ */
264
+ hint? : string|((data: { source: Field, value: any }) => string)
265
+ /**
266
+ * This config is similar to [hint](https://bryntum.com/products/taskboard/docs/api/Core/widget/Field#config-hint) except that this config is used to display HTML content.
267
+ * Since this can allow malicious content to be executed, be sure not to include user-entered data or to
268
+ * encode such data (see [encodeHtml](https://bryntum.com/products/taskboard/docs/api/Core/helper/StringHelper#function-encodeHtml-static)).
269
+ * ...
270
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/TodoListField#config-hintHtml)
271
+ * @param {object} data A data object
272
+ * @param {Core.widget.Field} data.source A reference to the field instance
273
+ * @param {any} data.value The current value of the field
274
+ * @returns {string}
275
+ */
276
+ hintHtml? : string|((data: { source: Field, value: any }) => string)
277
+ /**
278
+ * Widget id, if not specified one will be generated. Also used for lookups through Widget.getById
279
+ */
280
+ id? : string
281
+ /**
282
+ * Determines if the widgets read-only state should be controlled by its parent.
283
+ * ...
284
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/TodoListField#config-ignoreParentReadOnly)
285
+ */
286
+ ignoreParentReadOnly? : boolean
287
+ /**
288
+ * Set this config to `true` to always display items horizontally along with this field. This assigns an
289
+ * [hbox](https://bryntum.com/products/taskboard/docs/api/Core/widget/layout/Box) as the [layout](#Core/widget/Container#config-layout) to the
290
+ * [container](https://bryntum.com/products/taskboard/docs/api/Core/widget/Field#config-container).
291
+ * ...
292
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/TodoListField#config-inline)
293
+ */
294
+ inline? : boolean
295
+ /**
296
+ * Text alignment for the input field.
297
+ */
298
+ inputAlign? : string
299
+ /**
300
+ * Sets custom attributes of the underlying input element. For more information, please refer to
301
+ * [MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes)
302
+ */
303
+ inputAttributes? : Record<string, string>
304
+ /**
305
+ * If you need to use something else than a default `input` element, as the input element, provide the tag
306
+ * name here. Please note that this is used for advanced usage only, for example when using WebComponents
307
+ * (custom elements), and that the configured element must fulfil the same contract as a regular input
308
+ * element.
309
+ */
310
+ inputTag? : string
311
+ /**
312
+ * Sets the `type` attribute of the underlying input element (password, hidden, date, color, etc.).
313
+ */
314
+ inputType? : string
315
+ /**
316
+ * The width to apply to the `.b-field-inner` element, which encompasses the `input` element and any
317
+ * triggers. If a number is specified, `px` will be used.
318
+ */
319
+ inputWidth? : string|number
320
+ /**
321
+ * 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.
322
+ */
323
+ insertBefore? : HTMLElement|string
324
+ /**
325
+ * 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.
326
+ */
327
+ insertFirst? : HTMLElement|string
328
+ /**
329
+ * An object whose keys are the [key](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/key) name
330
+ * and optional modifier prefixes: `'Ctrl+'`, `'Alt+'`, `'Meta+'`, and `'Shift+'` (case-insensitive). The values
331
+ * are the name of the instance method to call when the keystroke is received.
332
+ * ...
333
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/TodoListField#config-keyMap)
334
+ */
335
+ keyMap? : Record<string, KeyMapConfig>
336
+ /**
337
+ * The delay in milliseconds to wait after the last keystroke before triggering a change event.
338
+ * Set to 0 to not trigger change events from keystrokes (listen for input event instead to have
339
+ * immediate feedback, change will still be triggered on blur).
340
+ * ...
341
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/TodoListField#config-keyStrokeChangeDelay)
342
+ */
343
+ keyStrokeChangeDelay? : number
344
+ /**
345
+ * Label, prepended to field
346
+ */
347
+ label? : string
348
+ /**
349
+ * CSS class name or class names to add to any configured [label](https://bryntum.com/products/taskboard/docs/api/Core/widget/mixin/Labelable#config-label)
350
+ */
351
+ labelCls? : string|object
352
+ /**
353
+ * Label position, either 'before' the field or 'above' the field
354
+ * ...
355
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/TodoListField#config-labelPosition)
356
+ */
357
+ labelPosition? : 'before'|'above'|null
358
+ /**
359
+ * The labels to add either before or after the input field.
360
+ * Each label may have the following properties:
361
+ * ...
362
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/TodoListField#config-labels)
363
+ */
364
+ labels? : object[]
365
+ /**
366
+ * The width to apply to the `&lt;label&gt;` element. If a number is specified, `px` will be used.
367
+ */
368
+ labelWidth? : string|number
369
+ /**
370
+ * The listener set for this object.
371
+ * ...
372
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/TodoListField#config-listeners)
373
+ */
374
+ listeners? : TodoListFieldListeners
375
+ /**
376
+ * A class translations of which are used for translating this entity.
377
+ * This is often used when translations of an item are defined on its container class.
378
+ * For example:
379
+ * ...
380
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/TodoListField#config-localeClass)
381
+ */
382
+ localeClass? : typeof Base
383
+ /**
384
+ * Set to `false` to disable localization of this object.
385
+ */
386
+ localizable? : boolean
387
+ /**
388
+ * List of properties which values should be translated automatically upon a locale applying.
389
+ * In case there is a need to localize not typical value (not a String value or a field with re-defined setter/getter),
390
+ * you could use 'localeKey' meta configuration.
391
+ * Example:
392
+ * ...
393
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/TodoListField#config-localizableProperties)
394
+ */
395
+ localizableProperties? : string[]
396
+ /**
397
+ * Widget's margin. This may be configured as a single number or a `TRBL` format string.
398
+ * numeric-only values are interpreted as pixels.
399
+ */
400
+ margin? : number|string
401
+ /**
402
+ * This config object contains the defaults for the [Mask](https://bryntum.com/products/taskboard/docs/api/Core/widget/Mask) created for the
403
+ * [masked](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#config-masked) config. Any properties specified in the `masked` config will override these
404
+ * values.
405
+ */
406
+ maskDefaults? : MaskConfig
407
+ /**
408
+ * Set to `true` to apply the default mask to the widget. Alternatively, this can be the mask message or a
409
+ * [Mask](https://bryntum.com/products/taskboard/docs/api/Core/widget/Mask) config object.
410
+ */
411
+ masked? : boolean|string|MaskConfig
412
+ /**
413
+ * The element's maxHeight. Can be either a String or a Number (which will have 'px' appended). Note that
414
+ * like [height](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#config-height), *reading* the value will return the numeric value in pixels.
415
+ */
416
+ maxHeight? : string|number
417
+ /**
418
+ * *Only valid if this Widget is [floating](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#config-floating).*
419
+ * ...
420
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/TodoListField#config-maximizeOnMobile)
421
+ */
422
+ maximizeOnMobile? : number|string
423
+ /**
424
+ * The elements maxWidth. Can be either a String or a Number (which will have 'px' appended). Note that
425
+ * like [width](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#config-width), *reading* the value will return the numeric value in pixels.
426
+ */
427
+ maxWidth? : string|number
428
+ /**
429
+ * The element's minHeight. Can be either a String or a Number (which will have 'px' appended). Note that
430
+ * like [height](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#config-height), *reading* the value will return the numeric value in pixels.
431
+ */
432
+ minHeight? : string|number
433
+ /**
434
+ * The elements minWidth. Can be either a String or a Number (which will have 'px' appended). Note that
435
+ * like [width](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#config-width), *reading* the value will return the numeric value in pixels.
436
+ */
437
+ minWidth? : string|number
438
+ /**
439
+ * When this is configured as `true` a [ResizeObserver](https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserver)
440
+ * is used to monitor this element for size changes caused by either style manipulation, or by CSS
441
+ * layout.
442
+ * ...
443
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/TodoListField#config-monitorResize)
444
+ */
445
+ monitorResize? : boolean|{
446
+ immediate?: boolean
447
+ }
448
+ /**
449
+ * Name of the field which is used as a key to get/set values from/to the field.
450
+ * Used prior to [ref](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#config-ref) and [id](#Core/widget/Widget#config-id) in
451
+ * [Container.values](https://bryntum.com/products/taskboard/docs/api/Core/widget/Container#property-values).
452
+ * ...
453
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/TodoListField#config-name)
454
+ */
455
+ name? : string
456
+ /**
457
+ * The owning Widget of this Widget. If this Widget is directly contained (that is, it is one of the
458
+ * [items](https://bryntum.com/products/taskboard/docs/api/Core/widget/Container#property-items) of a Container), this config will be ignored. In this case
459
+ * the owner is <strong>always</strong> the encapsulating Container.
460
+ * ...
461
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/TodoListField#config-owner)
462
+ */
463
+ owner? : Widget|any
464
+ /**
465
+ * Text to display in empty field.
466
+ */
467
+ placeholder? : string
468
+ /**
469
+ * 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
470
+ * not participate in the standard layout of that widget, and must be positioned relatively to that
471
+ * widget's [contentElement](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#property-contentElement).
472
+ * ...
473
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/TodoListField#config-positioned)
474
+ */
475
+ positioned? : boolean
476
+ /**
477
+ * Prevent tooltip from being displayed on touch devices. Useful for example for buttons that display a
478
+ * menu on click etc, since the tooltip would be displayed at the same time.
479
+ */
480
+ preventTooltipOnTouch? : boolean
481
+ /**
482
+ * Makes the field unmodifiable by user action. The input area is not editable, and triggers
483
+ * are unresponsive.
484
+ * ...
485
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/TodoListField#config-readOnly)
486
+ */
487
+ readOnly? : boolean
488
+ relayStoreEvents? : boolean
489
+ /**
490
+ * Configure as `true` to indicate that a `null` field value is to be marked as invalid. This will
491
+ * optionally append a * to the field label if [showRequiredIndicator](https://bryntum.com/products/taskboard/docs/api/Core/widget/Field#property-showRequiredIndicator) is set.
492
+ */
493
+ required? : boolean
494
+ /**
495
+ * If this field is not [readOnly](https://bryntum.com/products/taskboard/docs/api/Core/widget/Field#config-readOnly), then setting this option means that pressing
496
+ * the `ESCAPE` key after editing the field will revert the field to the value it had when
497
+ * the user focused the field. If the field is *not* changed from when focused, the [clearable](https://bryntum.com/products/taskboard/docs/api/Core/widget/Field#config-clearable)
498
+ * behaviour will be activated.
499
+ */
500
+ revertOnEscape? : boolean
501
+ /**
502
+ * Configure as `true` to have the component display a translucent ripple when its
503
+ * [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
504
+ * current theme supports ripples</em>. Out of the box, only the Material theme supports ripples.
505
+ * ...
506
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/TodoListField#config-ripple)
507
+ */
508
+ ripple? : boolean|{
509
+ delegate?: string
510
+ color?: string
511
+ radius?: number
512
+ clip?: string
513
+ }
514
+ /**
515
+ * 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`
516
+ */
517
+ rootElement? : ShadowRoot|HTMLElement
518
+ /**
519
+ * This may be configured as `true` to make the widget's element use the `direction:rtl` style.
520
+ * ...
521
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/TodoListField#config-rtl)
522
+ */
523
+ rtl? : boolean
524
+ /**
525
+ * Defines what to do if document is scrolled while Widget is visible (only relevant when floating is set to `true`).
526
+ * Valid values: ´null´: do nothing, ´hide´: hide the widget or ´realign´: realign to the target if possible.
527
+ */
528
+ scrollAction? : 'hide'|'realign'|null
529
+ /**
530
+ * *Only valid if this Widget is [floating](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#config-floating).*
531
+ * ...
532
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/TodoListField#config-showAnimation)
533
+ */
534
+ showAnimation? : boolean|object
535
+ /**
536
+ * `true` to automatically display a * after the label for this field when it is [required](https://bryntum.com/products/taskboard/docs/api/Core/widget/Field#property-required).
537
+ */
538
+ showRequiredIndicator? : string
539
+ /**
540
+ * 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)
541
+ */
542
+ showTooltipWhenDisabled? : boolean
543
+ /**
544
+ * Set to `true`, completely bypasses validation logic (could be userful if your field is not `editable`
545
+ * to the user).
546
+ */
547
+ skipValidation? : boolean
548
+ /**
549
+ * Programmatic control over how many columns to span when used in a grid layout.
550
+ */
551
+ span? : number
552
+ /**
553
+ * Sets the native `spellcheck` property of the underlying input element. For more information, please refer to
554
+ * [MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/spellcheck)
555
+ */
556
+ spellCheck? : boolean
557
+ /**
558
+ * 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
559
+ * [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
560
+ * this widget:
561
+ * ...
562
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/TodoListField#config-tab)
563
+ */
564
+ tab? : boolean|TabConfig
565
+ /**
566
+ * The tab index of the input field or fields, or `null` for natural tab order (recommended). Setting to `0`
567
+ * is equivalent to natural tab order, but is unnecessary for fields since they are naturally tabbable
568
+ * (i.e., accessible via the TAB key). Setting to `-1` disables tabbability but allows for focus to be set
569
+ * to the element programmatically.
570
+ * ...
571
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/TodoListField#config-tabIndex)
572
+ */
573
+ tabIndex? : number
574
+ /**
575
+ * Text alignment: 'left', 'center' or 'right'. Also accepts direction neutral 'start' and 'end'.
576
+ * ...
577
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/TodoListField#config-textAlign)
578
+ */
579
+ textAlign? : 'left'|'center'|'right'|'start'|'end'
580
+ /**
581
+ * Name of a property on a todo item to display as its text.
582
+ */
583
+ textField? : string
584
+ /**
585
+ * A title to display for the widget. Only in effect when inside a container that uses it (such as TabPanel)
586
+ */
587
+ title? : string
588
+ /**
589
+ * Tooltip for the widget, either as a string or as a Tooltip config object.
590
+ * ...
591
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/TodoListField#config-tooltip)
592
+ */
593
+ tooltip? : string|TooltipConfig|null
594
+ /**
595
+ * The triggers to add either before or after the input field. Each property name is the reference by which
596
+ * an instantiated Trigger Widget may be retrieved from the live `triggers` property.
597
+ * ...
598
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/TodoListField#config-triggers)
599
+ */
600
+ triggers? : Record<string, FieldTriggerConfig>|Record<string, Widget>
601
+ type? : 'todolistfield'|'todolist'
602
+ /**
603
+ * Custom CSS class name suffixes to apply to the elements rendered by this widget. This may be specified
604
+ * as a space separated string, an array of strings, or as an object in which property names with truthy
605
+ * values are used as the class names.
606
+ * ...
607
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/TodoListField#config-ui)
608
+ */
609
+ ui? : string|object
610
+ /**
611
+ * Set to `false` to not highlight a field as invalid while typing, to instead show it on ENTER key press
612
+ * or similar.
613
+ */
614
+ validateOnInput? : boolean
615
+ /**
616
+ * Default value
617
+ */
618
+ value? : string
619
+ /**
620
+ * A widgets weight determines its position among siblings when added to a [Container](https://bryntum.com/products/taskboard/docs/api/Core/widget/Container).
621
+ * Higher weights go further down.
622
+ */
623
+ weight? : number
624
+ /**
625
+ * Widget's width, used to set element `style.width`. Either specify a valid width string or a number, which
626
+ * will get 'px' appended. We recommend using CSS as the primary way to control width, but in some cases
627
+ * this config is convenient.
628
+ */
629
+ width? : string|number
630
+ /**
631
+ * The x position for the widget.
632
+ * ...
633
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/TodoListField#config-x)
634
+ */
635
+ x? : number
636
+ /**
637
+ * The y position for the widget.
638
+ * ...
639
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/TodoListField#config-y)
640
+ */
641
+ y? : number
642
+
643
+ // Events
644
+ /**
645
+ * User performed default action (typed into this field).
646
+ * @param {object} event Event object
647
+ * @param {Core.widget.Field,any} event.source This Field
648
+ * @param {string,number,boolean,any} event.value This field's value
649
+ * @param {string,number,boolean,any} event.oldValue This field's previous value
650
+ * @param {boolean} event.valid True if this field is in a valid state
651
+ * @param {Event} event.event The triggering DOM event if any
652
+ * @param {Core.data.Model} event.record Selected record. Available for fields with records selection functionality
653
+ * @param {Core.data.Model[]} event.records Selected records as an array. Available for fields with records selection functionality
654
+ * @param {boolean} event.userAction Triggered by user taking an action (`true`) or by setting a value (`false`)
655
+ * @param {boolean} event.checked
656
+ */
657
+ onAction? : ((event: { source: Field|any, value: string|number|boolean|any, oldValue: string|number|boolean|any, valid: boolean, event: Event, record: Model, records: Model[], userAction: boolean, checked: boolean }) => void)|string
658
+ /**
659
+ * Fires before an object is destroyed.
660
+ * @param {object} event Event object
661
+ * @param {Core.Base} event.source The Object that is being destroyed.
662
+ */
663
+ onBeforeDestroy? : ((event: { source: Base }) => void)|string
664
+ /**
665
+ * Triggered before a widget is hidden. Return `false` to prevent the action.
666
+ * @param {object} event Event object
667
+ * @param {Core.widget.Widget} event.source The widget being hidden.
668
+ */
669
+ onBeforeHide? : ((event: { source: Widget }) => Promise<boolean>|boolean|void)|string
670
+ /**
671
+ * Triggered before a widget is shown. Return `false` to prevent the action.
672
+ * @param {object} event Event object
673
+ * @param {Core.widget.Widget,any} event.source The widget being shown
674
+ */
675
+ onBeforeShow? : ((event: { source: Widget|any }) => Promise<boolean>|boolean|void)|string
676
+ /**
677
+ * Fires when any other event is fired from the object.
678
+ * ...
679
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/TodoListField#event-catchAll)
680
+ * @param {object} event Event object
681
+ * @param {{[key: string]: any, type: string}} event.event The Object that contains event details
682
+ * @param {string} event.event.type The type of the event which is caught by the listener
683
+ */
684
+ onCatchAll? : ((event: {[key: string]: any, type: string}) => void)|string
685
+ /**
686
+ * Fired when this field's value changes.
687
+ * @param {object} event Event object
688
+ * @param {Core.widget.Field,any} event.source This Field
689
+ * @param {string,number,boolean,any} event.value This field's value
690
+ * @param {string,number,boolean,any} event.oldValue This field's previous value
691
+ * @param {boolean} event.valid True if this field is in a valid state
692
+ * @param {Event} event.event The triggering DOM event if any
693
+ * @param {boolean} event.userAction Triggered by user taking an action (`true`) or by setting a value (`false`)
694
+ * @param {boolean} event.checked
695
+ */
696
+ onChange? : ((event: { source: Field|any, value: string|number|boolean|any, oldValue: string|number|boolean|any, valid: boolean, event: Event, userAction: boolean, checked: boolean }) => void)|string
697
+ /**
698
+ * Fired when this field is [cleared](https://bryntum.com/products/taskboard/docs/api/Core/widget/Field#function-clear).
699
+ * ...
700
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/TodoListField#event-clear)
701
+ * @param {object} event Event object
702
+ * @param {Core.widget.Field,any} event.source This Field
703
+ */
704
+ onClear? : ((event: { source: Field|any }) => void)|string
705
+ /**
706
+ * Fires when an object is destroyed.
707
+ * @param {object} event Event object
708
+ * @param {Core.Base} event.source The Object that is being destroyed.
709
+ */
710
+ onDestroy? : ((event: { source: Base }) => void)|string
711
+ /**
712
+ * Triggered when a widget's [element](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#property-element) is available.
713
+ * @param {object} event Event object
714
+ * @param {HTMLElement} event.element The Widget's element.
715
+ */
716
+ onElementCreated? : ((event: { element: HTMLElement }) => void)|string
717
+ /**
718
+ * Fired when focus enters this Widget.
719
+ * @param {object} event Event object
720
+ * @param {Core.widget.Widget} event.source This Widget
721
+ * @param {HTMLElement} event.fromElement The element which lost focus.
722
+ * @param {HTMLElement} event.toElement The element which gained focus.
723
+ * @param {Core.widget.Widget} event.fromWidget The widget which lost focus.
724
+ * @param {Core.widget.Widget} event.toWidget The widget which gained focus.
725
+ * @param {boolean} event.backwards `true` if the `toElement` is before the `fromElement` in document order.
726
+ */
727
+ onFocusIn? : ((event: { source: Widget, fromElement: HTMLElement, toElement: HTMLElement, fromWidget: Widget, toWidget: Widget, backwards: boolean }) => void)|string
728
+ /**
729
+ * Fired when focus exits this Widget's ownership tree. This is different from a `blur` event.
730
+ * focus moving from within this Widget's ownership tree, even if there are floating widgets
731
+ * will not trigger this event. This is when focus exits this widget completely.
732
+ * @param {object} event Event object
733
+ * @param {Core.widget.Widget} event.source This Widget
734
+ * @param {HTMLElement} event.fromElement The element which lost focus.
735
+ * @param {HTMLElement} event.toElement The element which gained focus.
736
+ * @param {Core.widget.Widget} event.fromWidget The widget which lost focus.
737
+ * @param {Core.widget.Widget} event.toWidget The widget which gained focus.
738
+ * @param {boolean} event.backwards `true` if the `toElement` is before the `fromElement` in document order.
739
+ */
740
+ onFocusOut? : ((event: { source: Widget, fromElement: HTMLElement, toElement: HTMLElement, fromWidget: Widget, toWidget: Widget, backwards: boolean }) => void)|string
741
+ /**
742
+ * Triggered after a widget was hidden
743
+ * @param {object} event Event object
744
+ * @param {Core.widget.Widget} event.source The widget
745
+ */
746
+ onHide? : ((event: { source: Widget }) => void)|string
747
+ /**
748
+ * Fired when the user types into this field.
749
+ * @param {object} event Event object
750
+ * @param {Core.widget.Field,any} event.source This field
751
+ * @param {string,number,boolean,any} event.value This field's value
752
+ * @param {Event} event.event The triggering DOM event
753
+ */
754
+ onInput? : ((event: { source: Field|any, value: string|number|boolean|any, event: Event }) => void)|string
755
+ /**
756
+ * Triggered when a widget which had been in a non-visible state for any reason
757
+ * achieves visibility.
758
+ * ...
759
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/TodoListField#event-paint)
760
+ * @param {object} event Event object
761
+ * @param {Core.widget.Widget} event.source The widget being painted.
762
+ * @param {boolean} event.firstPaint `true` if this is the first paint.
763
+ */
764
+ onPaint? : ((event: { source: Widget, firstPaint: boolean }) => void)|string
765
+ /**
766
+ * Fired when a Widget's read only state is toggled
767
+ * @param {object} event Event object
768
+ * @param {boolean} event.readOnly Read only or not
769
+ */
770
+ onReadOnly? : ((event: { readOnly: boolean }) => void)|string
771
+ /**
772
+ * This event is fired after a widget's elements have been synchronized due to a direct or indirect call
773
+ * 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.
774
+ */
775
+ onRecompose? : (() => void)|string
776
+ /**
777
+ * 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`*.
778
+ * @param {object} event Event object
779
+ * @param {Core.widget.Widget} event.source This Widget
780
+ * @param {number} event.width The new width
781
+ * @param {number} event.height The new height
782
+ * @param {number} event.oldWidth The old width
783
+ * @param {number} event.oldHeight The old height
784
+ */
785
+ onResize? : ((event: { source: Widget, width: number, height: number, oldWidth: number, oldHeight: number }) => void)|string
786
+ /**
787
+ * Triggered after a widget is shown.
788
+ * @param {object} event Event object
789
+ * @param {Core.widget.Widget} event.source The widget
790
+ */
791
+ onShow? : ((event: { source: Widget }) => void)|string
792
+ /**
793
+ * User clicked one of this field's [triggers](https://bryntum.com/products/taskboard/docs/api/Core/widget/Field#property-triggers)
794
+ * @param {object} event Event object
795
+ * @param {Core.widget.Field,any} event.source This field
796
+ * @param {Core.widget.Widget} event.trigger The trigger activated by click or touch tap.
797
+ */
798
+ onTrigger? : ((event: { source: Field|any, trigger: Widget }) => void)|string
799
+
800
+ }
801
+
802
+ export class BryntumTodoListField extends React.Component<BryntumTodoListFieldProps> {
803
+
804
+ static instanceClass = TodoListField;
805
+
806
+ static instanceName = 'TodoListField';
807
+
808
+ processWidgetContent = processWidgetContent;
809
+
810
+ static configNames = [
811
+ 'adopt',
812
+ 'align',
813
+ 'anchor',
814
+ 'ariaDescription',
815
+ 'ariaLabel',
816
+ 'autoComplete',
817
+ 'autoSelect',
818
+ 'bubbleEvents',
819
+ 'centered',
820
+ 'checkedField',
821
+ 'clearable',
822
+ 'color',
823
+ 'config',
824
+ 'constrainTo',
825
+ 'container',
826
+ 'containValues',
827
+ 'contentElementCls',
828
+ 'dataField',
829
+ 'defaultBindProperty',
830
+ 'detectCSSCompatibilityIssues',
831
+ 'dock',
832
+ 'draggable',
833
+ 'editableItems',
834
+ 'elementAttributes',
835
+ 'floating',
836
+ 'hideAnimation',
837
+ 'highlightExternalChange',
838
+ 'hint',
839
+ 'hintHtml',
840
+ 'ignoreParentReadOnly',
841
+ 'inline',
842
+ 'inputAlign',
843
+ 'inputAttributes',
844
+ 'inputTag',
845
+ 'inputType',
846
+ 'inputWidth',
847
+ 'keyStrokeChangeDelay',
848
+ 'labelCls',
849
+ 'labelPosition',
850
+ 'labels',
851
+ 'labelWidth',
852
+ 'listeners',
853
+ 'localeClass',
854
+ 'localizable',
855
+ 'localizableProperties',
856
+ 'maskDefaults',
857
+ 'masked',
858
+ 'monitorResize',
859
+ 'name',
860
+ 'owner',
861
+ 'positioned',
862
+ 'preventTooltipOnTouch',
863
+ 'relayStoreEvents',
864
+ 'revertOnEscape',
865
+ 'ripple',
866
+ 'rootElement',
867
+ 'scrollAction',
868
+ 'showAnimation',
869
+ 'showTooltipWhenDisabled',
870
+ 'skipValidation',
871
+ 'spellCheck',
872
+ 'tab',
873
+ 'tabIndex',
874
+ 'textAlign',
875
+ 'textField',
876
+ 'title',
877
+ 'type',
878
+ 'ui',
879
+ 'validateOnInput',
880
+ 'weight'
881
+ ];
882
+
883
+ static propertyConfigNames = [
884
+ 'alignSelf',
885
+ 'appendTo',
886
+ 'badge',
887
+ 'callOnFunctions',
888
+ 'catchEventHandlerExceptions',
889
+ 'cls',
890
+ 'column',
891
+ 'dataset',
892
+ 'disabled',
893
+ 'editable',
894
+ 'extraData',
895
+ 'flex',
896
+ 'height',
897
+ 'hidden',
898
+ 'id',
899
+ 'insertBefore',
900
+ 'insertFirst',
901
+ 'keyMap',
902
+ 'label',
903
+ 'margin',
904
+ 'maxHeight',
905
+ 'maximizeOnMobile',
906
+ 'maxWidth',
907
+ 'minHeight',
908
+ 'minWidth',
909
+ 'onAction',
910
+ 'onBeforeDestroy',
911
+ 'onBeforeHide',
912
+ 'onBeforeShow',
913
+ 'onCatchAll',
914
+ 'onChange',
915
+ 'onClear',
916
+ 'onDestroy',
917
+ 'onElementCreated',
918
+ 'onFocusIn',
919
+ 'onFocusOut',
920
+ 'onHide',
921
+ 'onInput',
922
+ 'onPaint',
923
+ 'onReadOnly',
924
+ 'onRecompose',
925
+ 'onResize',
926
+ 'onShow',
927
+ 'onTrigger',
928
+ 'placeholder',
929
+ 'readOnly',
930
+ 'required',
931
+ 'rtl',
932
+ 'showRequiredIndicator',
933
+ 'span',
934
+ 'tooltip',
935
+ 'triggers',
936
+ 'value',
937
+ 'width',
938
+ 'x',
939
+ 'y'
940
+ ];
941
+
942
+ static propertyNames = [
943
+ 'anchorSize',
944
+ 'content',
945
+ 'focusVisible',
946
+ 'html',
947
+ 'input',
948
+ 'parent',
949
+ 'scrollable'
950
+ ];
951
+
952
+ // Component instance
953
+ instance!: TodoListField;
954
+
955
+ // Component element
956
+ element! : HTMLElement;
957
+
958
+ componentDidMount(): void {
959
+ this.instance = createWidget(this);
960
+ }
961
+
962
+ componentWillUnmount(): void {
963
+ // @ts-ignore
964
+ this.instance?.destroy?.();
965
+ }
966
+
967
+ /**
968
+ * Component about to be updated, from changing a prop using state.
969
+ * React to it depending on what changed and prevent react from re-rendering our component.
970
+ * @param nextProps
971
+ * @param nextState
972
+ * @returns {boolean}
973
+ */
974
+ shouldComponentUpdate(nextProps: Readonly<BryntumTodoListFieldProps>, nextState: Readonly<{}>): boolean {
975
+ return shouldComponentUpdate(this, nextProps, nextState);
976
+ }
977
+
978
+ render(): React.ReactNode {
979
+
980
+ const className = `b-react-todo-list-field-container`;
981
+ return (
982
+ <div className={className} ref={(element) => (this.element = element!)}></div>
983
+ );
984
+
985
+ }
986
+ }