@bryntum/taskboard-angular 7.1.1 → 7.1.2

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 (76) hide show
  1. package/README.md +230 -15
  2. package/package.json +1 -1
  3. package/src/lib/bryntum-button-group.component.ts +1213 -0
  4. package/src/lib/bryntum-button.component.ts +1190 -0
  5. package/src/lib/bryntum-chat-panel.component.ts +1435 -0
  6. package/src/lib/bryntum-checkbox-group.component.ts +1478 -0
  7. package/src/lib/bryntum-checkbox.component.ts +1333 -0
  8. package/src/lib/bryntum-chip-view.component.ts +1225 -0
  9. package/src/lib/bryntum-code-editor.component.ts +1419 -0
  10. package/src/lib/bryntum-color-field.component.ts +1334 -0
  11. package/src/lib/bryntum-column-combo.component.ts +1645 -0
  12. package/src/lib/bryntum-column-filter-field.component.ts +1360 -0
  13. package/src/lib/bryntum-column-picker-button.component.ts +1200 -0
  14. package/src/lib/bryntum-column-scroll-button.component.ts +1200 -0
  15. package/src/lib/bryntum-combo.component.ts +1634 -0
  16. package/src/lib/bryntum-container.component.ts +1166 -0
  17. package/src/lib/bryntum-date-field.component.ts +1413 -0
  18. package/src/lib/bryntum-date-picker.component.ts +1756 -0
  19. package/src/lib/bryntum-date-range-field.component.ts +1417 -0
  20. package/src/lib/bryntum-date-time-field.component.ts +1261 -0
  21. package/src/lib/bryntum-demo-code-editor.component.ts +1441 -0
  22. package/src/lib/bryntum-demo-header.component.ts +141 -0
  23. package/src/lib/bryntum-display-field.component.ts +1308 -0
  24. package/src/lib/bryntum-duration-field.component.ts +1390 -0
  25. package/src/lib/bryntum-editor.component.ts +1343 -0
  26. package/src/lib/bryntum-field-filter-picker-group.component.ts +1308 -0
  27. package/src/lib/bryntum-field-filter-picker.component.ts +1272 -0
  28. package/src/lib/bryntum-field-set.component.ts +1408 -0
  29. package/src/lib/bryntum-file-field.component.ts +1313 -0
  30. package/src/lib/bryntum-file-picker.component.ts +1199 -0
  31. package/src/lib/bryntum-filter-field.component.ts +1367 -0
  32. package/src/lib/bryntum-fullscreen-button.component.ts +53 -0
  33. package/src/lib/bryntum-hint.component.ts +1506 -0
  34. package/src/lib/bryntum-label.component.ts +989 -0
  35. package/src/lib/bryntum-list.component.ts +1196 -0
  36. package/src/lib/bryntum-menu.component.ts +1520 -0
  37. package/src/lib/bryntum-month-picker.component.ts +1400 -0
  38. package/src/lib/bryntum-number-field.component.ts +1368 -0
  39. package/src/lib/bryntum-paging-toolbar.component.ts +1243 -0
  40. package/src/lib/bryntum-panel.component.ts +1377 -0
  41. package/src/lib/bryntum-password-field.component.ts +1296 -0
  42. package/src/lib/bryntum-project-combo.component.ts +1648 -0
  43. package/src/lib/bryntum-radio-group.component.ts +1446 -0
  44. package/src/lib/bryntum-radio.component.ts +1333 -0
  45. package/src/lib/bryntum-resources-combo.component.ts +1644 -0
  46. package/src/lib/bryntum-scheduler-project-combo.component.ts +1638 -0
  47. package/src/lib/bryntum-slide-toggle.component.ts +1333 -0
  48. package/src/lib/bryntum-slider.component.ts +1112 -0
  49. package/src/lib/bryntum-splitter.component.ts +1025 -0
  50. package/src/lib/bryntum-swimlane-combo.component.ts +1644 -0
  51. package/src/lib/bryntum-swimlane-filter-field.component.ts +1377 -0
  52. package/src/lib/bryntum-swimlane-picker-button.component.ts +1200 -0
  53. package/src/lib/bryntum-swimlane-scroll-button.component.ts +1200 -0
  54. package/src/lib/bryntum-tab-panel.component.ts +1441 -0
  55. package/src/lib/bryntum-tag-combo.component.ts +1651 -0
  56. package/src/lib/bryntum-task-board-base.component.ts +2388 -0
  57. package/src/lib/bryntum-task-board-field-filter-picker-group.component.ts +1316 -0
  58. package/src/lib/bryntum-task-board-field-filter-picker.component.ts +1254 -0
  59. package/src/lib/bryntum-task-board-project-model.component.ts +1026 -0
  60. package/src/lib/bryntum-task-board.component.ts +2392 -0
  61. package/src/lib/bryntum-task-color-combo.component.ts +1334 -0
  62. package/src/lib/bryntum-task-filter-field.component.ts +1377 -0
  63. package/src/lib/bryntum-text-area-field.component.ts +1312 -0
  64. package/src/lib/bryntum-text-area-picker-field.component.ts +1343 -0
  65. package/src/lib/bryntum-text-field.component.ts +1321 -0
  66. package/src/lib/bryntum-time-field.component.ts +1388 -0
  67. package/src/lib/bryntum-time-picker.component.ts +1207 -0
  68. package/src/lib/bryntum-todo-list-field.component.ts +1318 -0
  69. package/src/lib/bryntum-toolbar.component.ts +1234 -0
  70. package/src/lib/bryntum-undo-redo.component.ts +1179 -0
  71. package/src/lib/bryntum-widget.component.ts +982 -0
  72. package/src/lib/bryntum-year-picker.component.ts +1423 -0
  73. package/src/lib/bryntum-zoom-slider.component.ts +1122 -0
  74. package/src/lib/taskboard.module.ts +232 -0
  75. package/src/lib/wrapper.helper.ts +89 -0
  76. package/src/public-api.ts +77 -0
@@ -0,0 +1,1318 @@
1
+ /* eslint-disable @typescript-eslint/no-unused-vars */
2
+ /**
3
+ * Angular wrapper for Bryntum TodoListField
4
+ */
5
+
6
+ import { Component, ElementRef, EventEmitter, Output, Input, SimpleChange, SimpleChanges, OnDestroy, OnInit } from '@angular/core';
7
+
8
+ import WrapperHelper from './wrapper.helper';
9
+
10
+ import { AlignSpec, Base, ContainerItemConfig, DomConfig, Field, FieldContainer, FieldContainerConfig, FieldTriggerConfig, KeyMapConfig, MaskConfig, Model, Rectangle, Scroller, TabConfig, TodoListField, TodoListFieldListeners, TooltipConfig, VueConfig, Widget } from '@bryntum/taskboard';
11
+
12
+ import { StringHelper } from '@bryntum/taskboard';
13
+
14
+ export type BryntumTodoListFieldProps = {
15
+ // Configs
16
+ /**
17
+ * Element (or element id) to adopt as this Widget's encapsulating element. The widget's
18
+ * content will be placed inside this element.
19
+ * ...
20
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/TodoListField#config-adopt)
21
+ */
22
+ adopt ? : HTMLElement|string
23
+ /**
24
+ * *Only valid if this Widget is [floating](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#config-floating).*
25
+ * ...
26
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/TodoListField#config-align)
27
+ */
28
+ align ? : AlignSpec|string
29
+ /**
30
+ * 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
31
+ * flexbox layout. This config allows you to set this widget's
32
+ * [align-self](https://developer.mozilla.org/en-US/docs/Web/CSS/align-self) style.
33
+ */
34
+ alignSelf ? : string
35
+ /**
36
+ * *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).*
37
+ * `true` to show a connector arrow pointing to the align target.
38
+ */
39
+ anchor ? : boolean
40
+ /**
41
+ * Element (or the id of an element) to append this widget's element to. Can be configured, or set once at
42
+ * runtime. To access the element of a rendered widget, see [element](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#property-element).
43
+ */
44
+ appendTo ? : HTMLElement|string
45
+ /**
46
+ * A localizable string (May contain `'L{}'` tokens which resolve in the locale file) to inject
47
+ * into an element which will be linked using the `aria-describedby` attribute.
48
+ * ...
49
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/TodoListField#config-ariaDescription)
50
+ */
51
+ ariaDescription ? : string
52
+ /**
53
+ * A localizable string (May contain `'L{}'` tokens which resolve in the locale file) to inject as
54
+ * the `aria-label` attribute.
55
+ * ...
56
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/TodoListField#config-ariaLabel)
57
+ */
58
+ ariaLabel ? : string
59
+ /**
60
+ * Sets the native `autocomplete` property of the underlying input element. For more information, please refer to
61
+ * [MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete)
62
+ */
63
+ autoComplete ? : string
64
+ /**
65
+ * Specify `true` to auto select field contents on focus
66
+ */
67
+ autoSelect ? : boolean
68
+ /**
69
+ * Initial text to show in badge.
70
+ */
71
+ badge ? : string
72
+ /**
73
+ * An object where property names with a truthy value indicate which events should bubble up the ownership
74
+ * hierarchy when triggered.
75
+ * ...
76
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/TodoListField#config-bubbleEvents)
77
+ */
78
+ bubbleEvents ? : object
79
+ /**
80
+ * Set to `false` to not call onXXX method names (e.g. `onShow`, `onClick`), as an easy way to listen for events.
81
+ * ...
82
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/TodoListField#config-callOnFunctions)
83
+ */
84
+ callOnFunctions ? : boolean
85
+ /**
86
+ * By default, if an event handler throws an exception, the error propagates up the stack and the
87
+ * application state is undefined. Code which follows the event handler will *not* be executed.
88
+ * ...
89
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/TodoListField#config-catchEventHandlerExceptions)
90
+ */
91
+ catchEventHandlerExceptions ? : boolean
92
+ /**
93
+ * *Only valid if this Widget is [floating](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#config-floating).*
94
+ * Set to `true` to centre the Widget in browser viewport space.
95
+ */
96
+ centered ? : boolean
97
+ /**
98
+ * Name of a property on a todo item to use for the checkbox. The property is expected to be a boolean.
99
+ */
100
+ checkedField ? : string
101
+ /**
102
+ * 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
103
+ * 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
104
+ * configures the `clear` [trigger](https://bryntum.com/products/taskboard/docs/api/Core/widget/Field#property-triggers).
105
+ */
106
+ clearable ? : boolean|FieldTriggerConfig
107
+ /**
108
+ * Custom CSS classes to add to element.
109
+ * May be specified as a space separated string, or as an object in which property names
110
+ * with truthy values are used as the class names:
111
+ * ...
112
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/TodoListField#config-cls)
113
+ */
114
+ cls ? : string|object
115
+ /**
116
+ * Applies the specified color to the widget, by setting the `--b-primary` CSS variable in the widgets
117
+ * `style` block.
118
+ * ...
119
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/TodoListField#config-color)
120
+ */
121
+ color ? : string
122
+ /**
123
+ * Programmatic control over which column to start in when used in a grid layout.
124
+ */
125
+ column ? : number
126
+ config ? : object
127
+ /**
128
+ * *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).*
129
+ * Element, Widget or Rectangle to which this Widget is constrained.
130
+ */
131
+ constrainTo ? : HTMLElement|Widget|Rectangle
132
+ /**
133
+ * The configuration for additional items associated to this field. This is typically used to add contextual
134
+ * fields related to a [checkbox](https://bryntum.com/products/taskboard/docs/api/Core/widget/Checkbox) or [radio button](#Core/widget/Radio). See
135
+ * these classes for examples of nested fields.
136
+ * ...
137
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/TodoListField#config-container)
138
+ */
139
+ container ? : Record<string, ContainerItemConfig>|ContainerItemConfig[]|FieldContainerConfig|FieldContainer
140
+ /**
141
+ * The config controls how the value of nested items are handled when a parent container gets or sets its
142
+ * [values](https://bryntum.com/products/taskboard/docs/api/Core/widget/Container#property-values).
143
+ * ...
144
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/TodoListField#config-containValues)
145
+ * @param {Core.widget.Field} field Field instance
146
+ * @returns {boolean}
147
+ */
148
+ containValues ? : boolean|string|((field: Field) => boolean)
149
+ /**
150
+ * Custom CSS classes to add to the [contentElement](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#property-contentElement).
151
+ * May be specified as a space separated string, or as an object in which property names
152
+ * with truthy values are used as the class names:
153
+ * ...
154
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/TodoListField#config-contentElementCls)
155
+ */
156
+ contentElementCls ? : string|object
157
+ /**
158
+ * When this Widget configuration is used in the Grid's RowExpander feature's `widget` config, provide the
159
+ * field on the expanded record to use for populating this widget's store (if applicable)
160
+ */
161
+ dataField ? : string
162
+ /**
163
+ * Object to apply to elements dataset (each key will be used as a data-attribute on the element)
164
+ */
165
+ dataset ? : Record<string, string>
166
+ /**
167
+ * The name of the property to set when a single value is to be applied to this Widget. Such as when used
168
+ * in a grid WidgetColumn, this is the property to which the column's `field` is applied.
169
+ */
170
+ defaultBindProperty ? : string
171
+ /**
172
+ * Check for CSS compatibility issues when upgrading to v7. Performs the following checks:
173
+ * ...
174
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/TodoListField#config-detectCSSCompatibilityIssues)
175
+ */
176
+ detectCSSCompatibilityIssues ? : boolean
177
+ /**
178
+ * 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
179
+ * cannot be focused, uses a different rendition (usually greyish) and does not allow selecting its value.
180
+ * ...
181
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/TodoListField#config-disabled)
182
+ */
183
+ disabled ? : boolean|'inert'
184
+ /**
185
+ * Controls the placement of this widget when it is added to a [panel's ](https://bryntum.com/products/taskboard/docs/api/Core/widget/Panel)
186
+ * [strips collection](https://bryntum.com/products/taskboard/docs/api/Core/widget/Panel#config-strips). Typical values for this config are `'top'`,
187
+ * `'bottom'`, `'left'`, or `'right'`, which cause the widget to be placed on that side of the panel's
188
+ * body. Such widgets are called "edge strips".
189
+ * ...
190
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/TodoListField#config-dock)
191
+ */
192
+ dock ? : 'top'|'bottom'|'left'|'right'|'start'|'end'|'header'|'pre-header'|object
193
+ /**
194
+ * *Only valid if this Widget is [floating](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#config-floating).*
195
+ * Set to `true` to be able to drag a widget freely on the page. Or set to an object with a ´handleSelector´
196
+ * property which controls when a drag should start.
197
+ * ...
198
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/TodoListField#config-draggable)
199
+ */
200
+ draggable ? : boolean|{
201
+ handleSelector?: string
202
+ }
203
+ /**
204
+ * Set to `false` to prevent user from editing the field. For TextFields it is basically the same as setting
205
+ * [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
206
+ * but not to type one in the field.
207
+ * ...
208
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/TodoListField#config-editable)
209
+ */
210
+ editable ? : boolean
211
+ /**
212
+ * Configure as `false` to hide the per item edit button and the add item button. Users can still check/uncheck
213
+ * items.
214
+ */
215
+ editableItems ? : boolean
216
+ /**
217
+ * An object specifying attributes to assign to the root element of this widget.
218
+ * Set `null` value to attribute to remove it.
219
+ * ...
220
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/TodoListField#config-elementAttributes)
221
+ */
222
+ elementAttributes ? : Record<string, string|null>
223
+ extraData ? : any
224
+ /**
225
+ * 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
226
+ * flexbox layout. This config allows you to set this widget's
227
+ * [flex](https://developer.mozilla.org/en-US/docs/Web/CSS/flex) style.
228
+ * This may be configured as a single number or a `&lt;flex-grow&gt; &lt;flex-shrink&gt; &lt;flex-basis&gt;` format string.
229
+ * numeric-only values are interpreted as the `flex-grow` value.
230
+ */
231
+ flex ? : number|string
232
+ /**
233
+ * Set to `true` to move the widget out of the document flow and position it
234
+ * absolutely in browser viewport space.
235
+ */
236
+ floating ? : boolean
237
+ /**
238
+ * Widget's height, used to set element `style.height`. Either specify a valid height string or a number,
239
+ * which will get 'px' appended. We recommend using CSS as the primary way to control height, but in some
240
+ * cases this config is convenient.
241
+ */
242
+ height ? : string|number
243
+ /**
244
+ * Configure with true to make widget initially hidden.
245
+ */
246
+ hidden ? : boolean
247
+ /**
248
+ * *Only valid if this Widget is [floating](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#config-floating).*
249
+ * ...
250
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/TodoListField#config-hideAnimation)
251
+ */
252
+ hideAnimation ? : boolean|object
253
+ /**
254
+ * Specify `true` to highlight field after external value changes
255
+ */
256
+ highlightExternalChange ? : boolean
257
+ /**
258
+ * An optional string to display inside the input field as an overlay. This can be useful for displaying
259
+ * a field's units.
260
+ * ...
261
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/TodoListField#config-hint)
262
+ * @param {object} data A data object
263
+ * @param {Core.widget.Field} data.source A reference to the field instance
264
+ * @param {any} data.value The current value of the field
265
+ * @returns {string}
266
+ */
267
+ hint ? : string|((data: { source: Field, value: any }) => string)
268
+ /**
269
+ * 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.
270
+ * Since this can allow malicious content to be executed, be sure not to include user-entered data or to
271
+ * encode such data (see [encodeHtml](https://bryntum.com/products/taskboard/docs/api/Core/helper/StringHelper#function-encodeHtml-static)).
272
+ * ...
273
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/TodoListField#config-hintHtml)
274
+ * @param {object} data A data object
275
+ * @param {Core.widget.Field} data.source A reference to the field instance
276
+ * @param {any} data.value The current value of the field
277
+ * @returns {string}
278
+ */
279
+ hintHtml ? : string|((data: { source: Field, value: any }) => string)
280
+ /**
281
+ * Widget id, if not specified one will be generated. Also used for lookups through Widget.getById
282
+ */
283
+ id ? : string
284
+ /**
285
+ * Determines if the widgets read-only state should be controlled by its parent.
286
+ * ...
287
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/TodoListField#config-ignoreParentReadOnly)
288
+ */
289
+ ignoreParentReadOnly ? : boolean
290
+ /**
291
+ * Set this config to `true` to always display items horizontally along with this field. This assigns an
292
+ * [hbox](https://bryntum.com/products/taskboard/docs/api/Core/widget/layout/Box) as the [layout](#Core/widget/Container#config-layout) to the
293
+ * [container](https://bryntum.com/products/taskboard/docs/api/Core/widget/Field#config-container).
294
+ * ...
295
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/TodoListField#config-inline)
296
+ */
297
+ inline ? : boolean
298
+ /**
299
+ * Text alignment for the input field.
300
+ */
301
+ inputAlign ? : string
302
+ /**
303
+ * Sets custom attributes of the underlying input element. For more information, please refer to
304
+ * [MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes)
305
+ */
306
+ inputAttributes ? : Record<string, string>
307
+ /**
308
+ * If you need to use something else than a default `input` element, as the input element, provide the tag
309
+ * name here. Please note that this is used for advanced usage only, for example when using WebComponents
310
+ * (custom elements), and that the configured element must fulfil the same contract as a regular input
311
+ * element.
312
+ */
313
+ inputTag ? : string
314
+ /**
315
+ * Sets the `type` attribute of the underlying input element (password, hidden, date, color, etc.).
316
+ */
317
+ inputType ? : string
318
+ /**
319
+ * The width to apply to the `.b-field-inner` element, which encompasses the `input` element and any
320
+ * triggers. If a number is specified, `px` will be used.
321
+ */
322
+ inputWidth ? : string|number
323
+ /**
324
+ * 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.
325
+ */
326
+ insertBefore ? : HTMLElement|string
327
+ /**
328
+ * 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.
329
+ */
330
+ insertFirst ? : HTMLElement|string
331
+ /**
332
+ * An object whose keys are the [key](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/key) name
333
+ * and optional modifier prefixes: `'Ctrl+'`, `'Alt+'`, `'Meta+'`, and `'Shift+'` (case-insensitive). The values
334
+ * are the name of the instance method to call when the keystroke is received.
335
+ * ...
336
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/TodoListField#config-keyMap)
337
+ */
338
+ keyMap ? : Record<string, KeyMapConfig>
339
+ /**
340
+ * The delay in milliseconds to wait after the last keystroke before triggering a change event.
341
+ * Set to 0 to not trigger change events from keystrokes (listen for input event instead to have
342
+ * immediate feedback, change will still be triggered on blur).
343
+ * ...
344
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/TodoListField#config-keyStrokeChangeDelay)
345
+ */
346
+ keyStrokeChangeDelay ? : number
347
+ /**
348
+ * Label, prepended to field
349
+ */
350
+ label ? : string
351
+ /**
352
+ * 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)
353
+ */
354
+ labelCls ? : string|object
355
+ /**
356
+ * Label position, either 'before' the field or 'above' the field
357
+ * ...
358
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/TodoListField#config-labelPosition)
359
+ */
360
+ labelPosition ? : 'before'|'above'|null
361
+ /**
362
+ * The labels to add either before or after the input field.
363
+ * Each label may have the following properties:
364
+ * ...
365
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/TodoListField#config-labels)
366
+ */
367
+ labels ? : object[]
368
+ /**
369
+ * The width to apply to the `&lt;label&gt;` element. If a number is specified, `px` will be used.
370
+ */
371
+ labelWidth ? : string|number
372
+ /**
373
+ * The listener set for this object.
374
+ * ...
375
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/TodoListField#config-listeners)
376
+ */
377
+ listeners ? : TodoListFieldListeners
378
+ /**
379
+ * A class translations of which are used for translating this entity.
380
+ * This is often used when translations of an item are defined on its container class.
381
+ * For example:
382
+ * ...
383
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/TodoListField#config-localeClass)
384
+ */
385
+ localeClass ? : typeof Base
386
+ /**
387
+ * Set to `false` to disable localization of this object.
388
+ */
389
+ localizable ? : boolean
390
+ /**
391
+ * List of properties which values should be translated automatically upon a locale applying.
392
+ * In case there is a need to localize not typical value (not a String value or a field with re-defined setter/getter),
393
+ * you could use 'localeKey' meta configuration.
394
+ * Example:
395
+ * ...
396
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/TodoListField#config-localizableProperties)
397
+ */
398
+ localizableProperties ? : string[]
399
+ /**
400
+ * Widget's margin. This may be configured as a single number or a `TRBL` format string.
401
+ * numeric-only values are interpreted as pixels.
402
+ */
403
+ margin ? : number|string
404
+ /**
405
+ * This config object contains the defaults for the [Mask](https://bryntum.com/products/taskboard/docs/api/Core/widget/Mask) created for the
406
+ * [masked](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#config-masked) config. Any properties specified in the `masked` config will override these
407
+ * values.
408
+ */
409
+ maskDefaults ? : MaskConfig
410
+ /**
411
+ * Set to `true` to apply the default mask to the widget. Alternatively, this can be the mask message or a
412
+ * [Mask](https://bryntum.com/products/taskboard/docs/api/Core/widget/Mask) config object.
413
+ */
414
+ masked ? : boolean|string|MaskConfig
415
+ /**
416
+ * The element's maxHeight. Can be either a String or a Number (which will have 'px' appended). Note that
417
+ * like [height](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#config-height), *reading* the value will return the numeric value in pixels.
418
+ */
419
+ maxHeight ? : string|number
420
+ /**
421
+ * *Only valid if this Widget is [floating](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#config-floating).*
422
+ * ...
423
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/TodoListField#config-maximizeOnMobile)
424
+ */
425
+ maximizeOnMobile ? : number|string
426
+ /**
427
+ * The elements maxWidth. Can be either a String or a Number (which will have 'px' appended). Note that
428
+ * like [width](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#config-width), *reading* the value will return the numeric value in pixels.
429
+ */
430
+ maxWidth ? : string|number
431
+ /**
432
+ * The element's minHeight. Can be either a String or a Number (which will have 'px' appended). Note that
433
+ * like [height](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#config-height), *reading* the value will return the numeric value in pixels.
434
+ */
435
+ minHeight ? : string|number
436
+ /**
437
+ * The elements minWidth. Can be either a String or a Number (which will have 'px' appended). Note that
438
+ * like [width](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#config-width), *reading* the value will return the numeric value in pixels.
439
+ */
440
+ minWidth ? : string|number
441
+ /**
442
+ * When this is configured as `true` a [ResizeObserver](https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserver)
443
+ * is used to monitor this element for size changes caused by either style manipulation, or by CSS
444
+ * layout.
445
+ * ...
446
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/TodoListField#config-monitorResize)
447
+ */
448
+ monitorResize ? : boolean|{
449
+ immediate?: boolean
450
+ }
451
+ /**
452
+ * Name of the field which is used as a key to get/set values from/to the field.
453
+ * Used prior to [ref](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#config-ref) and [id](#Core/widget/Widget#config-id) in
454
+ * [Container.values](https://bryntum.com/products/taskboard/docs/api/Core/widget/Container#property-values).
455
+ * ...
456
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/TodoListField#config-name)
457
+ */
458
+ name ? : string
459
+ /**
460
+ * The owning Widget of this Widget. If this Widget is directly contained (that is, it is one of the
461
+ * [items](https://bryntum.com/products/taskboard/docs/api/Core/widget/Container#property-items) of a Container), this config will be ignored. In this case
462
+ * the owner is <strong>always</strong> the encapsulating Container.
463
+ * ...
464
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/TodoListField#config-owner)
465
+ */
466
+ owner ? : Widget|any
467
+ /**
468
+ * Text to display in empty field.
469
+ */
470
+ placeholder ? : string
471
+ /**
472
+ * 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
473
+ * not participate in the standard layout of that widget, and must be positioned relatively to that
474
+ * widget's [contentElement](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#property-contentElement).
475
+ * ...
476
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/TodoListField#config-positioned)
477
+ */
478
+ positioned ? : boolean
479
+ /**
480
+ * Prevent tooltip from being displayed on touch devices. Useful for example for buttons that display a
481
+ * menu on click etc, since the tooltip would be displayed at the same time.
482
+ */
483
+ preventTooltipOnTouch ? : boolean
484
+ /**
485
+ * Makes the field unmodifiable by user action. The input area is not editable, and triggers
486
+ * are unresponsive.
487
+ * ...
488
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/TodoListField#config-readOnly)
489
+ */
490
+ readOnly ? : boolean
491
+ relayStoreEvents ? : boolean
492
+ /**
493
+ * Configure as `true` to indicate that a `null` field value is to be marked as invalid. This will
494
+ * optionally append a * to the field label if [showRequiredIndicator](https://bryntum.com/products/taskboard/docs/api/Core/widget/Field#property-showRequiredIndicator) is set.
495
+ */
496
+ required ? : boolean
497
+ /**
498
+ * 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
499
+ * the `ESCAPE` key after editing the field will revert the field to the value it had when
500
+ * 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)
501
+ * behaviour will be activated.
502
+ */
503
+ revertOnEscape ? : boolean
504
+ /**
505
+ * Configure as `true` to have the component display a translucent ripple when its
506
+ * [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
507
+ * current theme supports ripples</em>. Out of the box, only the Material theme supports ripples.
508
+ * ...
509
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/TodoListField#config-ripple)
510
+ */
511
+ ripple ? : boolean|{
512
+ delegate?: string
513
+ color?: string
514
+ radius?: number
515
+ clip?: string
516
+ }
517
+ /**
518
+ * 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`
519
+ */
520
+ rootElement ? : ShadowRoot|HTMLElement
521
+ /**
522
+ * This may be configured as `true` to make the widget's element use the `direction:rtl` style.
523
+ * ...
524
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/TodoListField#config-rtl)
525
+ */
526
+ rtl ? : boolean
527
+ /**
528
+ * Defines what to do if document is scrolled while Widget is visible (only relevant when floating is set to `true`).
529
+ * Valid values: ´null´: do nothing, ´hide´: hide the widget or ´realign´: realign to the target if possible.
530
+ */
531
+ scrollAction ? : 'hide'|'realign'|null
532
+ /**
533
+ * *Only valid if this Widget is [floating](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#config-floating).*
534
+ * ...
535
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/TodoListField#config-showAnimation)
536
+ */
537
+ showAnimation ? : boolean|object
538
+ /**
539
+ * `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).
540
+ */
541
+ showRequiredIndicator ? : string
542
+ /**
543
+ * 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)
544
+ */
545
+ showTooltipWhenDisabled ? : boolean
546
+ /**
547
+ * Set to `true`, completely bypasses validation logic (could be userful if your field is not `editable`
548
+ * to the user).
549
+ */
550
+ skipValidation ? : boolean
551
+ /**
552
+ * Programmatic control over how many columns to span when used in a grid layout.
553
+ */
554
+ span ? : number
555
+ /**
556
+ * Sets the native `spellcheck` property of the underlying input element. For more information, please refer to
557
+ * [MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/spellcheck)
558
+ */
559
+ spellCheck ? : boolean
560
+ /**
561
+ * 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
562
+ * [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
563
+ * this widget:
564
+ * ...
565
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/TodoListField#config-tab)
566
+ */
567
+ tab ? : boolean|TabConfig
568
+ /**
569
+ * The tab index of the input field or fields, or `null` for natural tab order (recommended). Setting to `0`
570
+ * is equivalent to natural tab order, but is unnecessary for fields since they are naturally tabbable
571
+ * (i.e., accessible via the TAB key). Setting to `-1` disables tabbability but allows for focus to be set
572
+ * to the element programmatically.
573
+ * ...
574
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/TodoListField#config-tabIndex)
575
+ */
576
+ tabIndex ? : number
577
+ /**
578
+ * Text alignment: 'left', 'center' or 'right'. Also accepts direction neutral 'start' and 'end'.
579
+ * ...
580
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/TodoListField#config-textAlign)
581
+ */
582
+ textAlign ? : 'left'|'center'|'right'|'start'|'end'
583
+ /**
584
+ * Name of a property on a todo item to display as its text.
585
+ */
586
+ textField ? : string
587
+ /**
588
+ * A title to display for the widget. Only in effect when inside a container that uses it (such as TabPanel)
589
+ */
590
+ title ? : string
591
+ /**
592
+ * Tooltip for the widget, either as a string or as a Tooltip config object.
593
+ * ...
594
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/TodoListField#config-tooltip)
595
+ */
596
+ tooltip ? : string|TooltipConfig|null
597
+ /**
598
+ * The triggers to add either before or after the input field. Each property name is the reference by which
599
+ * an instantiated Trigger Widget may be retrieved from the live `triggers` property.
600
+ * ...
601
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/TodoListField#config-triggers)
602
+ */
603
+ triggers ? : Record<string, FieldTriggerConfig>|Record<string, Widget>
604
+ type ? : 'todolistfield'|'todolist'
605
+ /**
606
+ * Custom CSS class name suffixes to apply to the elements rendered by this widget. This may be specified
607
+ * as a space separated string, an array of strings, or as an object in which property names with truthy
608
+ * values are used as the class names.
609
+ * ...
610
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/TodoListField#config-ui)
611
+ */
612
+ ui ? : string|object
613
+ /**
614
+ * Set to `false` to not highlight a field as invalid while typing, to instead show it on ENTER key press
615
+ * or similar.
616
+ */
617
+ validateOnInput ? : boolean
618
+ /**
619
+ * Default value
620
+ */
621
+ value ? : string
622
+ /**
623
+ * A widgets weight determines its position among siblings when added to a [Container](https://bryntum.com/products/taskboard/docs/api/Core/widget/Container).
624
+ * Higher weights go further down.
625
+ */
626
+ weight ? : number
627
+ /**
628
+ * Widget's width, used to set element `style.width`. Either specify a valid width string or a number, which
629
+ * will get 'px' appended. We recommend using CSS as the primary way to control width, but in some cases
630
+ * this config is convenient.
631
+ */
632
+ width ? : string|number
633
+ /**
634
+ * The x position for the widget.
635
+ * ...
636
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/TodoListField#config-x)
637
+ */
638
+ x ? : number
639
+ /**
640
+ * The y position for the widget.
641
+ * ...
642
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/TodoListField#config-y)
643
+ */
644
+ y ? : number
645
+
646
+ }
647
+
648
+ @Component({
649
+ selector : 'bryntum-todo-list-field',
650
+ template : ''
651
+ })
652
+ export class BryntumTodoListFieldComponent implements OnInit, OnDestroy {
653
+
654
+ public static instanceClass = TodoListField;
655
+
656
+ public static instanceName = 'TodoListField';
657
+
658
+ private static bryntumEvents: string[] = [
659
+ 'onAction',
660
+ 'onBeforeDestroy',
661
+ 'onBeforeHide',
662
+ 'onBeforeShow',
663
+ 'onCatchAll',
664
+ 'onChange',
665
+ 'onClear',
666
+ 'onDestroy',
667
+ 'onElementCreated',
668
+ 'onFocusIn',
669
+ 'onFocusOut',
670
+ 'onHide',
671
+ 'onInput',
672
+ 'onPaint',
673
+ 'onReadOnly',
674
+ 'onRecompose',
675
+ 'onResize',
676
+ 'onShow',
677
+ 'onTrigger'
678
+ ];
679
+
680
+ private static bryntumFeatureNames: string[] = [
681
+
682
+ ];
683
+
684
+ private static bryntumConfigs: string[] = BryntumTodoListFieldComponent.bryntumFeatureNames.concat([
685
+ 'adopt',
686
+ 'align',
687
+ 'alignSelf',
688
+ 'anchor',
689
+ 'appendTo',
690
+ 'ariaDescription',
691
+ 'ariaLabel',
692
+ 'autoComplete',
693
+ 'autoSelect',
694
+ 'badge',
695
+ 'bubbleEvents',
696
+ 'callOnFunctions',
697
+ 'catchEventHandlerExceptions',
698
+ 'centered',
699
+ 'checkedField',
700
+ 'clearable',
701
+ 'cls',
702
+ 'color',
703
+ 'column',
704
+ 'config',
705
+ 'constrainTo',
706
+ 'container',
707
+ 'containValues',
708
+ 'contentElementCls',
709
+ 'dataField',
710
+ 'dataset',
711
+ 'defaultBindProperty',
712
+ 'detectCSSCompatibilityIssues',
713
+ 'disabled',
714
+ 'dock',
715
+ 'draggable',
716
+ 'editable',
717
+ 'editableItems',
718
+ 'elementAttributes',
719
+ 'extraData',
720
+ 'flex',
721
+ 'floating',
722
+ 'height',
723
+ 'hidden',
724
+ 'hideAnimation',
725
+ 'highlightExternalChange',
726
+ 'hint',
727
+ 'hintHtml',
728
+ 'id',
729
+ 'ignoreParentReadOnly',
730
+ 'inline',
731
+ 'inputAlign',
732
+ 'inputAttributes',
733
+ 'inputTag',
734
+ 'inputType',
735
+ 'inputWidth',
736
+ 'insertBefore',
737
+ 'insertFirst',
738
+ 'keyMap',
739
+ 'keyStrokeChangeDelay',
740
+ 'label',
741
+ 'labelCls',
742
+ 'labelPosition',
743
+ 'labels',
744
+ 'labelWidth',
745
+ 'listeners',
746
+ 'localeClass',
747
+ 'localizable',
748
+ 'localizableProperties',
749
+ 'margin',
750
+ 'maskDefaults',
751
+ 'masked',
752
+ 'maxHeight',
753
+ 'maximizeOnMobile',
754
+ 'maxWidth',
755
+ 'minHeight',
756
+ 'minWidth',
757
+ 'monitorResize',
758
+ 'name',
759
+ 'owner',
760
+ 'placeholder',
761
+ 'positioned',
762
+ 'preventTooltipOnTouch',
763
+ 'readOnly',
764
+ 'relayStoreEvents',
765
+ 'required',
766
+ 'revertOnEscape',
767
+ 'ripple',
768
+ 'rootElement',
769
+ 'rtl',
770
+ 'scrollAction',
771
+ 'showAnimation',
772
+ 'showRequiredIndicator',
773
+ 'showTooltipWhenDisabled',
774
+ 'skipValidation',
775
+ 'span',
776
+ 'spellCheck',
777
+ 'tab',
778
+ 'tabIndex',
779
+ 'textAlign',
780
+ 'textField',
781
+ 'title',
782
+ 'tooltip',
783
+ 'triggers',
784
+ 'type',
785
+ 'ui',
786
+ 'validateOnInput',
787
+ 'value',
788
+ 'weight',
789
+ 'width',
790
+ 'x',
791
+ 'y'
792
+ ]);
793
+
794
+ private static bryntumConfigsOnly: string[] = [
795
+ 'adopt',
796
+ 'align',
797
+ 'anchor',
798
+ 'ariaDescription',
799
+ 'ariaLabel',
800
+ 'autoComplete',
801
+ 'autoSelect',
802
+ 'bubbleEvents',
803
+ 'centered',
804
+ 'checkedField',
805
+ 'clearable',
806
+ 'color',
807
+ 'config',
808
+ 'constrainTo',
809
+ 'container',
810
+ 'containValues',
811
+ 'contentElementCls',
812
+ 'dataField',
813
+ 'defaultBindProperty',
814
+ 'detectCSSCompatibilityIssues',
815
+ 'dock',
816
+ 'draggable',
817
+ 'editableItems',
818
+ 'elementAttributes',
819
+ 'floating',
820
+ 'hideAnimation',
821
+ 'highlightExternalChange',
822
+ 'hint',
823
+ 'hintHtml',
824
+ 'ignoreParentReadOnly',
825
+ 'inline',
826
+ 'inputAlign',
827
+ 'inputAttributes',
828
+ 'inputTag',
829
+ 'inputType',
830
+ 'inputWidth',
831
+ 'keyStrokeChangeDelay',
832
+ 'labelCls',
833
+ 'labelPosition',
834
+ 'labels',
835
+ 'labelWidth',
836
+ 'listeners',
837
+ 'localeClass',
838
+ 'localizable',
839
+ 'localizableProperties',
840
+ 'maskDefaults',
841
+ 'masked',
842
+ 'monitorResize',
843
+ 'name',
844
+ 'owner',
845
+ 'positioned',
846
+ 'preventTooltipOnTouch',
847
+ 'relayStoreEvents',
848
+ 'revertOnEscape',
849
+ 'ripple',
850
+ 'rootElement',
851
+ 'scrollAction',
852
+ 'showAnimation',
853
+ 'showTooltipWhenDisabled',
854
+ 'skipValidation',
855
+ 'spellCheck',
856
+ 'tab',
857
+ 'tabIndex',
858
+ 'textAlign',
859
+ 'textField',
860
+ 'title',
861
+ 'type',
862
+ 'ui',
863
+ 'validateOnInput',
864
+ 'weight'
865
+ ];
866
+
867
+ private static bryntumProps: string[] = BryntumTodoListFieldComponent.bryntumFeatureNames.concat([
868
+ 'alignSelf',
869
+ 'anchorSize',
870
+ 'appendTo',
871
+ 'badge',
872
+ 'callOnFunctions',
873
+ 'catchEventHandlerExceptions',
874
+ 'cls',
875
+ 'column',
876
+ 'content',
877
+ 'dataset',
878
+ 'disabled',
879
+ 'editable',
880
+ 'extraData',
881
+ 'flex',
882
+ 'focusVisible',
883
+ 'height',
884
+ 'hidden',
885
+ 'html',
886
+ 'id',
887
+ 'input',
888
+ 'insertBefore',
889
+ 'insertFirst',
890
+ 'keyMap',
891
+ 'label',
892
+ 'margin',
893
+ 'maxHeight',
894
+ 'maximizeOnMobile',
895
+ 'maxWidth',
896
+ 'minHeight',
897
+ 'minWidth',
898
+ 'parent',
899
+ 'placeholder',
900
+ 'readOnly',
901
+ 'required',
902
+ 'rtl',
903
+ 'scrollable',
904
+ 'showRequiredIndicator',
905
+ 'span',
906
+ 'tooltip',
907
+ 'triggers',
908
+ 'value',
909
+ 'width',
910
+ 'x',
911
+ 'y'
912
+ ]);
913
+
914
+ private elementRef: ElementRef;
915
+ public instance!: TodoListField;
916
+
917
+ private bryntumConfig = {
918
+ adopt : undefined,
919
+ appendTo : undefined,
920
+ href : undefined,
921
+ angularComponent : this,
922
+ features : {},
923
+ listeners : {}
924
+ };
925
+
926
+ constructor(element: ElementRef) {
927
+ this.elementRef = element;
928
+ }
929
+
930
+ // Configs only
931
+ @Input() adopt ! : HTMLElement|string;
932
+ @Input() align ! : AlignSpec|string;
933
+ @Input() anchor ! : boolean;
934
+ @Input() ariaDescription ! : string;
935
+ @Input() ariaLabel ! : string;
936
+ @Input() autoComplete ! : string;
937
+ @Input() autoSelect ! : boolean;
938
+ @Input() bubbleEvents ! : object;
939
+ @Input() centered ! : boolean;
940
+ @Input() checkedField ! : string;
941
+ @Input() clearable ! : boolean|FieldTriggerConfig;
942
+ @Input() color ! : string;
943
+ @Input() config ! : object;
944
+ @Input() constrainTo ! : HTMLElement|Widget|Rectangle;
945
+ @Input() container ! : Record<string, ContainerItemConfig>|ContainerItemConfig[]|FieldContainerConfig|FieldContainer;
946
+ @Input() containValues ! : boolean|string|((field: Field) => boolean);
947
+ @Input() contentElementCls ! : string|object;
948
+ @Input() dataField ! : string;
949
+ @Input() defaultBindProperty ! : string;
950
+ @Input() detectCSSCompatibilityIssues ! : boolean;
951
+ @Input() dock ! : 'top'|'bottom'|'left'|'right'|'start'|'end'|'header'|'pre-header'|object;
952
+ @Input() draggable ! : boolean|{
953
+ handleSelector?: string
954
+ };
955
+ @Input() editableItems ! : boolean;
956
+ @Input() elementAttributes ! : Record<string, string|null>;
957
+ @Input() floating ! : boolean;
958
+ @Input() hideAnimation ! : boolean|object;
959
+ @Input() highlightExternalChange ! : boolean;
960
+ @Input() hint ! : string|((data: { source: Field, value: any }) => string);
961
+ @Input() hintHtml ! : string|((data: { source: Field, value: any }) => string);
962
+ @Input() ignoreParentReadOnly ! : boolean;
963
+ @Input() inline ! : boolean;
964
+ @Input() inputAlign ! : string;
965
+ @Input() inputAttributes ! : Record<string, string>;
966
+ @Input() inputTag ! : string;
967
+ @Input() inputType ! : string;
968
+ @Input() inputWidth ! : string|number;
969
+ @Input() keyStrokeChangeDelay ! : number;
970
+ @Input() labelCls ! : string|object;
971
+ @Input() labelPosition ! : 'before'|'above'|null;
972
+ @Input() labels ! : object[];
973
+ @Input() labelWidth ! : string|number;
974
+ @Input() listeners ! : TodoListFieldListeners;
975
+ @Input() localeClass ! : typeof Base;
976
+ @Input() localizable ! : boolean;
977
+ @Input() localizableProperties ! : string[];
978
+ @Input() maskDefaults ! : MaskConfig;
979
+ @Input() masked ! : boolean|string|MaskConfig;
980
+ @Input() monitorResize ! : boolean|{
981
+ immediate?: boolean
982
+ };
983
+ @Input() name ! : string;
984
+ @Input() owner ! : Widget|any;
985
+ @Input() positioned ! : boolean;
986
+ @Input() preventTooltipOnTouch ! : boolean;
987
+ @Input() relayStoreEvents ! : boolean;
988
+ @Input() revertOnEscape ! : boolean;
989
+ @Input() ripple ! : boolean|{
990
+ delegate?: string
991
+ color?: string
992
+ radius?: number
993
+ clip?: string
994
+ };
995
+ @Input() rootElement ! : ShadowRoot|HTMLElement;
996
+ @Input() scrollAction ! : 'hide'|'realign'|null;
997
+ @Input() showAnimation ! : boolean|object;
998
+ @Input() showTooltipWhenDisabled ! : boolean;
999
+ @Input() skipValidation ! : boolean;
1000
+ @Input() spellCheck ! : boolean;
1001
+ @Input() tab ! : boolean|TabConfig;
1002
+ @Input() tabIndex ! : number;
1003
+ @Input() textAlign ! : 'left'|'center'|'right'|'start'|'end';
1004
+ @Input() textField ! : string;
1005
+ @Input() title ! : string;
1006
+ @Input() type ! : 'todolistfield'|'todolist';
1007
+ @Input() ui ! : string|object;
1008
+ @Input() validateOnInput ! : boolean;
1009
+ @Input() weight ! : number;
1010
+
1011
+ // Configs and properties
1012
+ @Input() alignSelf ! : string;
1013
+ @Input() appendTo ! : HTMLElement|string;
1014
+ @Input() badge ! : string;
1015
+ @Input() callOnFunctions ! : boolean;
1016
+ @Input() catchEventHandlerExceptions ! : boolean;
1017
+ @Input() cls ! : string|object;
1018
+ @Input() column ! : number;
1019
+ @Input() dataset ! : object|Record<string, string>;
1020
+ @Input() disabled ! : boolean|'inert';
1021
+ @Input() editable ! : boolean;
1022
+ @Input() extraData ! : any;
1023
+ @Input() flex ! : number|string;
1024
+ @Input() height ! : number|string;
1025
+ @Input() hidden ! : boolean;
1026
+ @Input() id ! : string;
1027
+ @Input() insertBefore ! : HTMLElement|string;
1028
+ @Input() insertFirst ! : HTMLElement|string;
1029
+ @Input() keyMap ! : Record<string, KeyMapConfig>;
1030
+ @Input() label ! : string;
1031
+ @Input() margin ! : number|string;
1032
+ @Input() maxHeight ! : string|number;
1033
+ @Input() maximizeOnMobile ! : number|string;
1034
+ @Input() maxWidth ! : string|number;
1035
+ @Input() minHeight ! : string|number;
1036
+ @Input() minWidth ! : string|number;
1037
+ @Input() placeholder ! : string;
1038
+ @Input() readOnly ! : boolean;
1039
+ @Input() required ! : boolean;
1040
+ @Input() rtl ! : boolean;
1041
+ @Input() showRequiredIndicator ! : string;
1042
+ @Input() span ! : number;
1043
+ @Input() tooltip ! : string|TooltipConfig|null;
1044
+ @Input() triggers ! : Record<string, FieldTriggerConfig>|Record<string, Widget>;
1045
+ @Input() value ! : any|string;
1046
+ @Input() width ! : number|string;
1047
+ @Input() x ! : number;
1048
+ @Input() y ! : number;
1049
+
1050
+ // Properties only
1051
+ @Input() anchorSize ! : number[];
1052
+ @Input() content ! : string;
1053
+ @Input() focusVisible ! : boolean;
1054
+ @Input() html ! : string|((widget: Widget) => string)|DomConfig|DomConfig[]|VueConfig;
1055
+ @Input() input ! : HTMLElement;
1056
+ @Input() parent ! : Widget;
1057
+ @Input() scrollable ! : Scroller;
1058
+
1059
+ // Events emitters
1060
+ /**
1061
+ * User performed default action (typed into this field).
1062
+ * @param {object} event Event object
1063
+ * @param {Core.widget.Field,any} event.source This Field
1064
+ * @param {string,number,boolean,any} event.value This field's value
1065
+ * @param {string,number,boolean,any} event.oldValue This field's previous value
1066
+ * @param {boolean} event.valid True if this field is in a valid state
1067
+ * @param {Event} event.event The triggering DOM event if any
1068
+ * @param {Core.data.Model} event.record Selected record. Available for fields with records selection functionality
1069
+ * @param {Core.data.Model[]} event.records Selected records as an array. Available for fields with records selection functionality
1070
+ * @param {boolean} event.userAction Triggered by user taking an action (`true`) or by setting a value (`false`)
1071
+ * @param {boolean} event.checked
1072
+ */
1073
+ @Output() onAction: any = new EventEmitter<((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>();
1074
+ /**
1075
+ * Fires before an object is destroyed.
1076
+ * @param {object} event Event object
1077
+ * @param {Core.Base} event.source The Object that is being destroyed.
1078
+ */
1079
+ @Output() onBeforeDestroy: any = new EventEmitter<((event: { source: Base }) => void)|string>();
1080
+ /**
1081
+ * Triggered before a widget is hidden. Return `false` to prevent the action.
1082
+ * @param {object} event Event object
1083
+ * @param {Core.widget.Widget} event.source The widget being hidden.
1084
+ */
1085
+ @Output() onBeforeHide: any = new EventEmitter<((event: { source: Widget }) => Promise<boolean>|boolean|void)|string>();
1086
+ /**
1087
+ * Triggered before a widget is shown. Return `false` to prevent the action.
1088
+ * @param {object} event Event object
1089
+ * @param {Core.widget.Widget,any} event.source The widget being shown
1090
+ */
1091
+ @Output() onBeforeShow: any = new EventEmitter<((event: { source: Widget|any }) => Promise<boolean>|boolean|void)|string>();
1092
+ /**
1093
+ * Fires when any other event is fired from the object.
1094
+ * ...
1095
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/TodoListField#event-catchAll)
1096
+ * @param {object} event Event object
1097
+ * @param {{[key: string]: any, type: string}} event.event The Object that contains event details
1098
+ * @param {string} event.event.type The type of the event which is caught by the listener
1099
+ */
1100
+ @Output() onCatchAll: any = new EventEmitter<((event: {[key: string]: any, type: string}) => void)|string>();
1101
+ /**
1102
+ * Fired when this field's value changes.
1103
+ * @param {object} event Event object
1104
+ * @param {Core.widget.Field,any} event.source This Field
1105
+ * @param {string,number,boolean,any} event.value This field's value
1106
+ * @param {string,number,boolean,any} event.oldValue This field's previous value
1107
+ * @param {boolean} event.valid True if this field is in a valid state
1108
+ * @param {Event} event.event The triggering DOM event if any
1109
+ * @param {boolean} event.userAction Triggered by user taking an action (`true`) or by setting a value (`false`)
1110
+ * @param {boolean} event.checked
1111
+ */
1112
+ @Output() onChange: any = new EventEmitter<((event: { source: Field|any, value: string|number|boolean|any, oldValue: string|number|boolean|any, valid: boolean, event: Event, userAction: boolean, checked: boolean }) => void)|string>();
1113
+ /**
1114
+ * Fired when this field is [cleared](https://bryntum.com/products/taskboard/docs/api/Core/widget/Field#function-clear).
1115
+ * ...
1116
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/TodoListField#event-clear)
1117
+ * @param {object} event Event object
1118
+ * @param {Core.widget.Field,any} event.source This Field
1119
+ */
1120
+ @Output() onClear: any = new EventEmitter<((event: { source: Field|any }) => void)|string>();
1121
+ /**
1122
+ * Fires when an object is destroyed.
1123
+ * @param {object} event Event object
1124
+ * @param {Core.Base} event.source The Object that is being destroyed.
1125
+ */
1126
+ @Output() onDestroy: any = new EventEmitter<((event: { source: Base }) => void)|string>();
1127
+ /**
1128
+ * Triggered when a widget's [element](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#property-element) is available.
1129
+ * @param {object} event Event object
1130
+ * @param {HTMLElement} event.element The Widget's element.
1131
+ */
1132
+ @Output() onElementCreated: any = new EventEmitter<((event: { element: HTMLElement }) => void)|string>();
1133
+ /**
1134
+ * Fired when focus enters this Widget.
1135
+ * @param {object} event Event object
1136
+ * @param {Core.widget.Widget} event.source This Widget
1137
+ * @param {HTMLElement} event.fromElement The element which lost focus.
1138
+ * @param {HTMLElement} event.toElement The element which gained focus.
1139
+ * @param {Core.widget.Widget} event.fromWidget The widget which lost focus.
1140
+ * @param {Core.widget.Widget} event.toWidget The widget which gained focus.
1141
+ * @param {boolean} event.backwards `true` if the `toElement` is before the `fromElement` in document order.
1142
+ */
1143
+ @Output() onFocusIn: any = new EventEmitter<((event: { source: Widget, fromElement: HTMLElement, toElement: HTMLElement, fromWidget: Widget, toWidget: Widget, backwards: boolean }) => void)|string>();
1144
+ /**
1145
+ * Fired when focus exits this Widget's ownership tree. This is different from a `blur` event.
1146
+ * focus moving from within this Widget's ownership tree, even if there are floating widgets
1147
+ * will not trigger this event. This is when focus exits this widget completely.
1148
+ * @param {object} event Event object
1149
+ * @param {Core.widget.Widget} event.source This Widget
1150
+ * @param {HTMLElement} event.fromElement The element which lost focus.
1151
+ * @param {HTMLElement} event.toElement The element which gained focus.
1152
+ * @param {Core.widget.Widget} event.fromWidget The widget which lost focus.
1153
+ * @param {Core.widget.Widget} event.toWidget The widget which gained focus.
1154
+ * @param {boolean} event.backwards `true` if the `toElement` is before the `fromElement` in document order.
1155
+ */
1156
+ @Output() onFocusOut: any = new EventEmitter<((event: { source: Widget, fromElement: HTMLElement, toElement: HTMLElement, fromWidget: Widget, toWidget: Widget, backwards: boolean }) => void)|string>();
1157
+ /**
1158
+ * Triggered after a widget was hidden
1159
+ * @param {object} event Event object
1160
+ * @param {Core.widget.Widget} event.source The widget
1161
+ */
1162
+ @Output() onHide: any = new EventEmitter<((event: { source: Widget }) => void)|string>();
1163
+ /**
1164
+ * Fired when the user types into this field.
1165
+ * @param {object} event Event object
1166
+ * @param {Core.widget.Field,any} event.source This field
1167
+ * @param {string,number,boolean,any} event.value This field's value
1168
+ * @param {Event} event.event The triggering DOM event
1169
+ */
1170
+ @Output() onInput: any = new EventEmitter<((event: { source: Field|any, value: string|number|boolean|any, event: Event }) => void)|string>();
1171
+ /**
1172
+ * Triggered when a widget which had been in a non-visible state for any reason
1173
+ * achieves visibility.
1174
+ * ...
1175
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/TodoListField#event-paint)
1176
+ * @param {object} event Event object
1177
+ * @param {Core.widget.Widget} event.source The widget being painted.
1178
+ * @param {boolean} event.firstPaint `true` if this is the first paint.
1179
+ */
1180
+ @Output() onPaint: any = new EventEmitter<((event: { source: Widget, firstPaint: boolean }) => void)|string>();
1181
+ /**
1182
+ * Fired when a Widget's read only state is toggled
1183
+ * @param {object} event Event object
1184
+ * @param {boolean} event.readOnly Read only or not
1185
+ */
1186
+ @Output() onReadOnly: any = new EventEmitter<((event: { readOnly: boolean }) => void)|string>();
1187
+ /**
1188
+ * This event is fired after a widget's elements have been synchronized due to a direct or indirect call
1189
+ * 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.
1190
+ */
1191
+ @Output() onRecompose: any = new EventEmitter<(() => void)|string>();
1192
+ /**
1193
+ * 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`*.
1194
+ * @param {object} event Event object
1195
+ * @param {Core.widget.Widget} event.source This Widget
1196
+ * @param {number} event.width The new width
1197
+ * @param {number} event.height The new height
1198
+ * @param {number} event.oldWidth The old width
1199
+ * @param {number} event.oldHeight The old height
1200
+ */
1201
+ @Output() onResize: any = new EventEmitter<((event: { source: Widget, width: number, height: number, oldWidth: number, oldHeight: number }) => void)|string>();
1202
+ /**
1203
+ * Triggered after a widget is shown.
1204
+ * @param {object} event Event object
1205
+ * @param {Core.widget.Widget} event.source The widget
1206
+ */
1207
+ @Output() onShow: any = new EventEmitter<((event: { source: Widget }) => void)|string>();
1208
+ /**
1209
+ * User clicked one of this field's [triggers](https://bryntum.com/products/taskboard/docs/api/Core/widget/Field#property-triggers)
1210
+ * @param {object} event Event object
1211
+ * @param {Core.widget.Field,any} event.source This field
1212
+ * @param {Core.widget.Widget} event.trigger The trigger activated by click or touch tap.
1213
+ */
1214
+ @Output() onTrigger: any = new EventEmitter<((event: { source: Field|any, trigger: Widget }) => void)|string>();
1215
+
1216
+ /**
1217
+ * Create and append the underlying widget
1218
+ */
1219
+ ngOnInit(): void {
1220
+ const
1221
+ me = this,
1222
+ {
1223
+ elementRef,
1224
+ bryntumConfig
1225
+ } = me,
1226
+ {
1227
+ instanceClass,
1228
+ instanceName,
1229
+ bryntumConfigs,
1230
+ bryntumEvents
1231
+ } = BryntumTodoListFieldComponent;
1232
+
1233
+ bryntumConfigs.filter(prop => prop in this).forEach(prop => {
1234
+ // @ts-ignore
1235
+ WrapperHelper.applyPropValue(bryntumConfig, prop, this[prop]);
1236
+ if (['features', 'config'].includes(prop)) {
1237
+ WrapperHelper.devWarningConfigProp(instanceName, prop);
1238
+ }
1239
+ });
1240
+ // @ts-ignore
1241
+ bryntumEvents.filter(event => this[event] && this[event].observers.length > 0).forEach(event => {
1242
+ const
1243
+ uncapitalize = (str: string) => str.charAt(0).toLowerCase() + str.slice(1),
1244
+ eventName = (str: string) => uncapitalize(str.slice(2));
1245
+
1246
+ // @ts-ignore
1247
+ bryntumConfig.listeners[eventName(event)] = e => {
1248
+ // @ts-ignore
1249
+ me[event].emit(e);
1250
+ // EventEmitter does not return values in the normal way, work around it by setting `returnValue` flag
1251
+ // in Angular listeners
1252
+ return e.returnValue;
1253
+ };
1254
+ });
1255
+
1256
+ // If component has no container specified in config then use adopt to Wrapper's element
1257
+ const
1258
+ containerParam = [
1259
+ 'adopt',
1260
+ 'appendTo',
1261
+ 'insertAfter',
1262
+ 'insertBefore'
1263
+ // @ts-ignore
1264
+ ].find(prop => bryntumConfig[prop]);
1265
+ if (!containerParam) {
1266
+ if (instanceName === 'Button' || elementRef.nativeElement.getRootNode() instanceof ShadowRoot) {
1267
+ // Button should always be <a> or <button> inside owner element
1268
+ bryntumConfig.appendTo = elementRef.nativeElement;
1269
+ }
1270
+ else {
1271
+ bryntumConfig.adopt = elementRef.nativeElement;
1272
+ }
1273
+ }
1274
+ else {
1275
+ WrapperHelper.devWarningContainer(instanceName, containerParam);
1276
+ }
1277
+
1278
+ // @ts-ignore
1279
+ me.instance = instanceName === 'Widget' ? Widget.create(bryntumConfig) : new instanceClass(bryntumConfig);
1280
+
1281
+ }
1282
+
1283
+ /**
1284
+ * Watch for changes
1285
+ * @param changes
1286
+ */
1287
+ ngOnChanges(changes: SimpleChanges): void {
1288
+ const
1289
+ { instance } = this,
1290
+ { instanceName } = BryntumTodoListFieldComponent;
1291
+ if (!instance) {
1292
+ return;
1293
+ }
1294
+ // Iterate over all changes
1295
+ Object.entries(changes).forEach(([prop, change]) => {
1296
+ const
1297
+ newValue = (change as SimpleChange).currentValue,
1298
+ { instance } = this,
1299
+ { bryntumConfigsOnly, bryntumProps } = BryntumTodoListFieldComponent;
1300
+ if (bryntumProps.includes(prop)) {
1301
+ WrapperHelper.applyPropValue(instance, prop, newValue, false);
1302
+ if (bryntumConfigsOnly.includes(prop)) {
1303
+ WrapperHelper.devWarningUpdateProp(instanceName, prop);
1304
+ }
1305
+ }
1306
+ });
1307
+ }
1308
+
1309
+ /**
1310
+ * Destroy the component
1311
+ */
1312
+ ngOnDestroy(): void {
1313
+ // @ts-ignore
1314
+ if (this.instance && this.instance.destroy) {
1315
+ this.instance.destroy();
1316
+ }
1317
+ }
1318
+ }