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