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