@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,1644 @@
1
+ /* eslint-disable @typescript-eslint/no-unused-vars */
2
+ /**
3
+ * Angular wrapper for Bryntum SwimlaneCombo
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, ChipViewConfig, CollectionCompareOperator, CollectionFilterConfig, Combo, ComboModel, ContainerItemConfig, DomConfig, Duration, DurationConfig, Field, FieldContainer, FieldContainerConfig, FieldTriggerConfig, KeyMapConfig, List, ListConfig, MaskConfig, Model, Rectangle, Scroller, Store, StoreConfig, SwimlaneCombo, SwimlaneComboListeners, TabConfig, TaskBoard, TooltipConfig, VueConfig, Widget } from '@bryntum/taskboard';
11
+
12
+ import { StringHelper } from '@bryntum/taskboard';
13
+
14
+ export type BryntumSwimlaneComboProps = {
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/SwimlaneCombo#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/SwimlaneCombo#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/SwimlaneCombo#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/SwimlaneCombo#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
+ * Configure as `true` to have the picker expand upon focus enter.
66
+ */
67
+ autoExpand ? : boolean
68
+ /**
69
+ * Specify `true` to auto select field contents on focus
70
+ */
71
+ autoSelect ? : boolean
72
+ /**
73
+ * Initial text to show in badge.
74
+ */
75
+ badge ? : string
76
+ /**
77
+ * An object where property names with a truthy value indicate which events should bubble up the ownership
78
+ * hierarchy when triggered.
79
+ * ...
80
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/SwimlaneCombo#config-bubbleEvents)
81
+ */
82
+ bubbleEvents ? : object
83
+ /**
84
+ * Enable caching of the last retrieved result until the timeout is reached.
85
+ * ...
86
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/SwimlaneCombo#config-cacheLastResult)
87
+ */
88
+ cacheLastResult ? : number|string|Duration|DurationConfig
89
+ /**
90
+ * Set to `false` to not call onXXX method names (e.g. `onShow`, `onClick`), as an easy way to listen for events.
91
+ * ...
92
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/SwimlaneCombo#config-callOnFunctions)
93
+ */
94
+ callOnFunctions ? : boolean
95
+ /**
96
+ * Configure as `true` to force case matching when filtering the dropdown list based upon the typed value.
97
+ */
98
+ caseSensitive ? : boolean
99
+ /**
100
+ * By default, if an event handler throws an exception, the error propagates up the stack and the
101
+ * application state is undefined. Code which follows the event handler will *not* be executed.
102
+ * ...
103
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/SwimlaneCombo#config-catchEventHandlerExceptions)
104
+ */
105
+ catchEventHandlerExceptions ? : boolean
106
+ /**
107
+ * *Only valid if this Widget is [floating](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#config-floating).*
108
+ * Set to `true` to centre the Widget in browser viewport space.
109
+ */
110
+ centered ? : boolean
111
+ /**
112
+ * A config object to configure the [ChipView](https://bryntum.com/products/taskboard/docs/api/Core/widget/ChipView) to display the
113
+ * selected value set when [multiSelect](https://bryntum.com/products/taskboard/docs/api/Core/widget/Combo#config-multiSelect) is `true`.
114
+ * ...
115
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/SwimlaneCombo#config-chipView)
116
+ */
117
+ chipView ? : ChipViewConfig
118
+ /**
119
+ * 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
120
+ * 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
121
+ * configures the `clear` [trigger](https://bryntum.com/products/taskboard/docs/api/Core/widget/Field#property-triggers).
122
+ */
123
+ clearable ? : boolean|FieldTriggerConfig
124
+ /**
125
+ * `true` to clear value typed to a multiselect combo when picker is collapsed
126
+ */
127
+ clearTextOnPickerHide ? : boolean
128
+ /**
129
+ * Specify `false` to not clear value typed to a multiselect combo when an item is selected.
130
+ */
131
+ clearTextOnSelection ? : boolean
132
+ /**
133
+ * Set to `true` to clear this field when user empties the input element
134
+ */
135
+ clearWhenInputEmpty ? : boolean
136
+ /**
137
+ * Custom CSS classes to add to element.
138
+ * May be specified as a space separated string, or as an object in which property names
139
+ * with truthy values are used as the class names:
140
+ * ...
141
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/SwimlaneCombo#config-cls)
142
+ */
143
+ cls ? : string|object
144
+ /**
145
+ * Applies the specified color to the widget, by setting the `--b-primary` CSS variable in the widgets
146
+ * `style` block.
147
+ * ...
148
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/SwimlaneCombo#config-color)
149
+ */
150
+ color ? : string
151
+ /**
152
+ * Programmatic control over which column to start in when used in a grid layout.
153
+ */
154
+ column ? : number
155
+ config ? : object
156
+ /**
157
+ * *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).*
158
+ * Element, Widget or Rectangle to which this Widget is constrained.
159
+ */
160
+ constrainTo ? : HTMLElement|Widget|Rectangle
161
+ /**
162
+ * The configuration for additional items associated to this field. This is typically used to add contextual
163
+ * fields related to a [checkbox](https://bryntum.com/products/taskboard/docs/api/Core/widget/Checkbox) or [radio button](#Core/widget/Radio). See
164
+ * these classes for examples of nested fields.
165
+ * ...
166
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/SwimlaneCombo#config-container)
167
+ */
168
+ container ? : Record<string, ContainerItemConfig>|ContainerItemConfig[]|FieldContainerConfig|FieldContainer
169
+ /**
170
+ * The config controls how the value of nested items are handled when a parent container gets or sets its
171
+ * [values](https://bryntum.com/products/taskboard/docs/api/Core/widget/Container#property-values).
172
+ * ...
173
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/SwimlaneCombo#config-containValues)
174
+ * @param {Core.widget.Field} field Field instance
175
+ * @returns {boolean}
176
+ */
177
+ containValues ? : boolean|string|((field: Field) => boolean)
178
+ /**
179
+ * Custom CSS classes to add to the [contentElement](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#property-contentElement).
180
+ * May be specified as a space separated string, or as an object in which property names
181
+ * with truthy values are used as the class names:
182
+ * ...
183
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/SwimlaneCombo#config-contentElementCls)
184
+ */
185
+ contentElementCls ? : string|object
186
+ /**
187
+ * If configured as `true`, this means that when an unmatched string is typed into the
188
+ * combo's input field, and `ENTER`, or the [multiValueSeparator](https://bryntum.com/products/taskboard/docs/api/Core/widget/Combo#config-multiValueSeparator) is typed,
189
+ * a new record will be created using the typed string as the [displayField](https://bryntum.com/products/taskboard/docs/api/Core/widget/Combo#config-displayField).
190
+ * ...
191
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/SwimlaneCombo#config-createOnUnmatched)
192
+ * @param {string} name Record name
193
+ * @param {Core.widget.Combo} combo Combo instance
194
+ * @returns {Core.data.Model} New record
195
+ */
196
+ createOnUnmatched ? : ((name: string, combo: Combo) => Model)|string|boolean
197
+ /**
198
+ * When this Widget configuration is used in the Grid's RowExpander feature's `widget` config, provide the
199
+ * field on the expanded record to use for populating this widget's store (if applicable)
200
+ */
201
+ dataField ? : string
202
+ /**
203
+ * Object to apply to elements dataset (each key will be used as a data-attribute on the element)
204
+ */
205
+ dataset ? : Record<string, string>
206
+ /**
207
+ * The name of the property to set when a single value is to be applied to this Widget. Such as when used
208
+ * in a grid WidgetColumn, this is the property to which the column's `field` is applied.
209
+ */
210
+ defaultBindProperty ? : string
211
+ /**
212
+ * Check for CSS compatibility issues when upgrading to v7. Performs the following checks:
213
+ * ...
214
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/SwimlaneCombo#config-detectCSSCompatibilityIssues)
215
+ */
216
+ detectCSSCompatibilityIssues ? : boolean
217
+ /**
218
+ * 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
219
+ * cannot be focused, uses a different rendition (usually greyish) and does not allow selecting its value.
220
+ * ...
221
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/SwimlaneCombo#config-disabled)
222
+ */
223
+ disabled ? : boolean|'inert'
224
+ /**
225
+ * Field used for item text when populating from store
226
+ */
227
+ displayField ? : string
228
+ /**
229
+ * Template function that can be used to customize the displayed value
230
+ * @param {Core.data.Model} record The record to provide a textual value for
231
+ * @param {Core.widget.Combo} combo A reference to this Combo
232
+ * @returns {string,void}
233
+ */
234
+ displayValueRenderer ? : (record: Model|ComboModel, combo: Combo) => string|void
235
+ /**
236
+ * Controls the placement of this widget when it is added to a [panel's ](https://bryntum.com/products/taskboard/docs/api/Core/widget/Panel)
237
+ * [strips collection](https://bryntum.com/products/taskboard/docs/api/Core/widget/Panel#config-strips). Typical values for this config are `'top'`,
238
+ * `'bottom'`, `'left'`, or `'right'`, which cause the widget to be placed on that side of the panel's
239
+ * body. Such widgets are called "edge strips".
240
+ * ...
241
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/SwimlaneCombo#config-dock)
242
+ */
243
+ dock ? : 'top'|'bottom'|'left'|'right'|'start'|'end'|'header'|'pre-header'|object
244
+ /**
245
+ * *Only valid if this Widget is [floating](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#config-floating).*
246
+ * Set to `true` to be able to drag a widget freely on the page. Or set to an object with a ´handleSelector´
247
+ * property which controls when a drag should start.
248
+ * ...
249
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/SwimlaneCombo#config-draggable)
250
+ */
251
+ draggable ? : boolean|{
252
+ handleSelector?: string
253
+ }
254
+ /**
255
+ * User can edit text in text field (otherwise only pick from attached picker)
256
+ */
257
+ editable ? : boolean
258
+ /**
259
+ * An object specifying attributes to assign to the root element of this widget.
260
+ * Set `null` value to attribute to remove it.
261
+ * ...
262
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/SwimlaneCombo#config-elementAttributes)
263
+ */
264
+ elementAttributes ? : Record<string, string|null>
265
+ /**
266
+ * Text to display in the drop down when there are no items in the underlying store.
267
+ * ...
268
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/SwimlaneCombo#config-emptyText)
269
+ */
270
+ emptyText ? : string
271
+ /**
272
+ * A function which creates an array of values for the [filterParamName](https://bryntum.com/products/taskboard/docs/api/Core/widget/Combo#config-filterParamName) to pass
273
+ * any filters to the server upon load.
274
+ * ...
275
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/SwimlaneCombo#config-encodeFilterParams)
276
+ * @param {object[]} filters filters
277
+ * @returns {object[]} array of values
278
+ */
279
+ encodeFilterParams ? : (filters: object[]) => object[]
280
+ extraData ? : any
281
+ /**
282
+ * If `false`, filtering will be triggered once you exceed [minChars](https://bryntum.com/products/taskboard/docs/api/Core/widget/Combo#config-minChars). To filter only when
283
+ * hitting Enter key, set this to `true`;
284
+ */
285
+ filterOnEnter ? : boolean
286
+ /**
287
+ * The name of an operator type as implemented in [operator](https://bryntum.com/products/taskboard/docs/api/Core/util/CollectionFilter#config-operator)
288
+ * to use when filtering the dropdown list based upon the typed value.
289
+ * ...
290
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/SwimlaneCombo#config-filterOperator)
291
+ */
292
+ filterOperator ? : CollectionCompareOperator
293
+ /**
294
+ * If the dropdown is to be populated with a filtered query to a remote server, specify the
295
+ * name of the parameter to pass the typed string here. By default, the string is simply sent
296
+ * as the value of the parameter. For special encoding, configure the combo with [encodeFilterParams](https://bryntum.com/products/taskboard/docs/api/Core/widget/Combo#config-encodeFilterParams)
297
+ */
298
+ filterParamName ? : string
299
+ /**
300
+ * When [multiSelect](https://bryntum.com/products/taskboard/docs/api/Core/widget/Combo#config-multiSelect) is `true`, you may configure `filterSelected` as
301
+ * `true` to hide items in the dropdown when they are added to the selection.
302
+ * It will appear as if the requested item has "moved" into the field's
303
+ * [ChipView](https://bryntum.com/products/taskboard/docs/api/Core/widget/Combo#config-chipView).
304
+ */
305
+ filterSelected ? : boolean
306
+ /**
307
+ * 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
308
+ * flexbox layout. This config allows you to set this widget's
309
+ * [flex](https://developer.mozilla.org/en-US/docs/Web/CSS/flex) style.
310
+ * This may be configured as a single number or a `&lt;flex-grow&gt; &lt;flex-shrink&gt; &lt;flex-basis&gt;` format string.
311
+ * numeric-only values are interpreted as the `flex-grow` value.
312
+ */
313
+ flex ? : number|string
314
+ /**
315
+ * Set to `true` to move the widget out of the document flow and position it
316
+ * absolutely in browser viewport space.
317
+ */
318
+ floating ? : boolean
319
+ /**
320
+ * Widget's height, used to set element `style.height`. Either specify a valid height string or a number,
321
+ * which will get 'px' appended. We recommend using CSS as the primary way to control height, but in some
322
+ * cases this config is convenient.
323
+ */
324
+ height ? : string|number
325
+ /**
326
+ * Configure with true to make widget initially hidden.
327
+ */
328
+ hidden ? : boolean
329
+ /**
330
+ * *Only valid if this Widget is [floating](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#config-floating).*
331
+ * ...
332
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/SwimlaneCombo#config-hideAnimation)
333
+ */
334
+ hideAnimation ? : boolean|object
335
+ /**
336
+ * By default, the picker is hidden on selection in single select mode, and
337
+ * remains to allow more selections when [multiSelect](https://bryntum.com/products/taskboard/docs/api/Core/widget/Combo#config-multiSelect) is `true`.
338
+ * Setting this to a `Boolean` value can override that default.
339
+ */
340
+ hidePickerOnSelect ? : boolean
341
+ /**
342
+ * Configure as `true` to hide the expand trigger. This is automatically set to `true` if
343
+ * remote filtering is enabled by setting the [filterParamName](https://bryntum.com/products/taskboard/docs/api/Core/widget/Combo#config-filterParamName) config.
344
+ */
345
+ hideTrigger ? : boolean
346
+ /**
347
+ * Specify `true` to highlight field after external value changes
348
+ */
349
+ highlightExternalChange ? : boolean
350
+ /**
351
+ * An optional string to display inside the input field as an overlay. This can be useful for displaying
352
+ * a field's units.
353
+ * ...
354
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/SwimlaneCombo#config-hint)
355
+ * @param {object} data A data object
356
+ * @param {Core.widget.Field} data.source A reference to the field instance
357
+ * @param {any} data.value The current value of the field
358
+ * @returns {string}
359
+ */
360
+ hint ? : string|((data: { source: Field, value: any }) => string)
361
+ /**
362
+ * 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.
363
+ * Since this can allow malicious content to be executed, be sure not to include user-entered data or to
364
+ * encode such data (see [encodeHtml](https://bryntum.com/products/taskboard/docs/api/Core/helper/StringHelper#function-encodeHtml-static)).
365
+ * ...
366
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/SwimlaneCombo#config-hintHtml)
367
+ * @param {object} data A data object
368
+ * @param {Core.widget.Field} data.source A reference to the field instance
369
+ * @param {any} data.value The current value of the field
370
+ * @returns {string}
371
+ */
372
+ hintHtml ? : string|((data: { source: Field, value: any }) => string)
373
+ /**
374
+ * Widget id, if not specified one will be generated. Also used for lookups through Widget.getById
375
+ */
376
+ id ? : string
377
+ /**
378
+ * Determines if the widgets read-only state should be controlled by its parent.
379
+ * ...
380
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/SwimlaneCombo#config-ignoreParentReadOnly)
381
+ */
382
+ ignoreParentReadOnly ? : boolean
383
+ /**
384
+ * Set this config to `true` to always display items horizontally along with this field. This assigns an
385
+ * [hbox](https://bryntum.com/products/taskboard/docs/api/Core/widget/layout/Box) as the [layout](#Core/widget/Container#config-layout) to the
386
+ * [container](https://bryntum.com/products/taskboard/docs/api/Core/widget/Field#config-container).
387
+ * ...
388
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/SwimlaneCombo#config-inline)
389
+ */
390
+ inline ? : boolean
391
+ /**
392
+ * Configure this as `true` to render the dropdown list as a permanently visible list
393
+ * in the document flow immediately below the input area instead of as a popup.
394
+ * ...
395
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/SwimlaneCombo#config-inlinePicker)
396
+ */
397
+ inlinePicker ? : boolean
398
+ /**
399
+ * Text alignment for the input field.
400
+ */
401
+ inputAlign ? : string
402
+ /**
403
+ * Sets custom attributes of the underlying input element. For more information, please refer to
404
+ * [MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes)
405
+ */
406
+ inputAttributes ? : Record<string, string>
407
+ /**
408
+ * If you need to use something else than a default `input` element, as the input element, provide the tag
409
+ * name here. Please note that this is used for advanced usage only, for example when using WebComponents
410
+ * (custom elements), and that the configured element must fulfil the same contract as a regular input
411
+ * element.
412
+ */
413
+ inputTag ? : string
414
+ /**
415
+ * Sets the `type` attribute of the underlying input element (password, hidden, date, color, etc.).
416
+ */
417
+ inputType ? : string
418
+ /**
419
+ * The width to apply to the `.b-field-inner` element, which encompasses the `input` element and any
420
+ * triggers. If a number is specified, `px` will be used.
421
+ */
422
+ inputWidth ? : string|number
423
+ /**
424
+ * 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.
425
+ */
426
+ insertBefore ? : HTMLElement|string
427
+ /**
428
+ * 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.
429
+ */
430
+ insertFirst ? : HTMLElement|string
431
+ /**
432
+ * Rows to display in the dropdown (list items).
433
+ * ...
434
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/SwimlaneCombo#config-items)
435
+ */
436
+ items ? : object[]|string[]|object
437
+ /**
438
+ * An object whose keys are the [key](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/key) name
439
+ * and optional modifier prefixes: `'Ctrl+'`, `'Alt+'`, `'Meta+'`, and `'Shift+'` (case-insensitive). The values
440
+ * are the name of the instance method to call when the keystroke is received.
441
+ * ...
442
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/SwimlaneCombo#config-keyMap)
443
+ */
444
+ keyMap ? : Record<string, KeyMapConfig>
445
+ /**
446
+ * The delay in milliseconds to wait after the last keystroke before triggering a change event.
447
+ * Set to 0 to not trigger change events from keystrokes (listen for input event instead to have
448
+ * immediate feedback, change will still be triggered on blur).
449
+ * ...
450
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/SwimlaneCombo#config-keyStrokeChangeDelay)
451
+ */
452
+ keyStrokeChangeDelay ? : number
453
+ /**
454
+ * The delay in milliseconds to wait after the last keystroke before filtering the list.
455
+ * ...
456
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/SwimlaneCombo#config-keyStrokeFilterDelay)
457
+ */
458
+ keyStrokeFilterDelay ? : number
459
+ /**
460
+ * Label, prepended to field
461
+ */
462
+ label ? : string
463
+ /**
464
+ * 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)
465
+ */
466
+ labelCls ? : string|object
467
+ /**
468
+ * Label position, either 'before' the field or 'above' the field
469
+ * ...
470
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/SwimlaneCombo#config-labelPosition)
471
+ */
472
+ labelPosition ? : 'before'|'above'|null
473
+ /**
474
+ * The labels to add either before or after the input field.
475
+ * Each label may have the following properties:
476
+ * ...
477
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/SwimlaneCombo#config-labels)
478
+ */
479
+ labels ? : object[]
480
+ /**
481
+ * The width to apply to the `&lt;label&gt;` element. If a number is specified, `px` will be used.
482
+ */
483
+ labelWidth ? : string|number
484
+ /**
485
+ * CSS class to add to picker
486
+ */
487
+ listCls ? : string
488
+ /**
489
+ * The listener set for this object.
490
+ * ...
491
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/SwimlaneCombo#config-listeners)
492
+ */
493
+ listeners ? : SwimlaneComboListeners
494
+ /**
495
+ * Template string used to render the list items in the dropdown list
496
+ * ...
497
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/SwimlaneCombo#config-listItemTpl)
498
+ * @param {Core.data.Model} record The record representing the item being rendered
499
+ * @returns {string,void}
500
+ */
501
+ listItemTpl ? : (record: Model|ComboModel) => string|void
502
+ /**
503
+ * A class translations of which are used for translating this entity.
504
+ * This is often used when translations of an item are defined on its container class.
505
+ * For example:
506
+ * ...
507
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/SwimlaneCombo#config-localeClass)
508
+ */
509
+ localeClass ? : typeof Base
510
+ /**
511
+ * Set to `false` to disable localization of this object.
512
+ */
513
+ localizable ? : boolean
514
+ /**
515
+ * List of properties which values should be translated automatically upon a locale applying.
516
+ * In case there is a need to localize not typical value (not a String value or a field with re-defined setter/getter),
517
+ * you could use 'localeKey' meta configuration.
518
+ * Example:
519
+ * ...
520
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/SwimlaneCombo#config-localizableProperties)
521
+ */
522
+ localizableProperties ? : string[]
523
+ /**
524
+ * Widget's margin. This may be configured as a single number or a `TRBL` format string.
525
+ * numeric-only values are interpreted as pixels.
526
+ */
527
+ margin ? : number|string
528
+ /**
529
+ * This config object contains the defaults for the [Mask](https://bryntum.com/products/taskboard/docs/api/Core/widget/Mask) created for the
530
+ * [masked](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#config-masked) config. Any properties specified in the `masked` config will override these
531
+ * values.
532
+ */
533
+ maskDefaults ? : MaskConfig
534
+ /**
535
+ * Set to `true` to apply the default mask to the widget. Alternatively, this can be the mask message or a
536
+ * [Mask](https://bryntum.com/products/taskboard/docs/api/Core/widget/Mask) config object.
537
+ */
538
+ masked ? : boolean|string|MaskConfig
539
+ /**
540
+ * The element's maxHeight. Can be either a String or a Number (which will have 'px' appended). Note that
541
+ * like [height](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#config-height), *reading* the value will return the numeric value in pixels.
542
+ */
543
+ maxHeight ? : string|number
544
+ /**
545
+ * *Only valid if this Widget is [floating](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#config-floating).*
546
+ * ...
547
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/SwimlaneCombo#config-maximizeOnMobile)
548
+ */
549
+ maximizeOnMobile ? : number|string
550
+ /**
551
+ * The max number of characters for the input field
552
+ */
553
+ maxLength ? : number
554
+ /**
555
+ * The elements maxWidth. Can be either a String or a Number (which will have 'px' appended). Note that
556
+ * like [width](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#config-width), *reading* the value will return the numeric value in pixels.
557
+ */
558
+ maxWidth ? : string|number
559
+ /**
560
+ * The minimum string length to trigger the filtering, only relevant when [editable](https://bryntum.com/products/taskboard/docs/api/Core/widget/Combo#config-editable) is `true`.
561
+ * ...
562
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/SwimlaneCombo#config-minChars)
563
+ */
564
+ minChars ? : number
565
+ /**
566
+ * The element's minHeight. Can be either a String or a Number (which will have 'px' appended). Note that
567
+ * like [height](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#config-height), *reading* the value will return the numeric value in pixels.
568
+ */
569
+ minHeight ? : string|number
570
+ /**
571
+ * The min number of characters for the input field
572
+ */
573
+ minLength ? : number
574
+ /**
575
+ * The elements minWidth. Can be either a String or a Number (which will have 'px' appended). Note that
576
+ * like [width](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#config-width), *reading* the value will return the numeric value in pixels.
577
+ */
578
+ minWidth ? : string|number
579
+ /**
580
+ * When this is configured as `true` a [ResizeObserver](https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserver)
581
+ * is used to monitor this element for size changes caused by either style manipulation, or by CSS
582
+ * layout.
583
+ * ...
584
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/SwimlaneCombo#config-monitorResize)
585
+ */
586
+ monitorResize ? : boolean|{
587
+ immediate?: boolean
588
+ }
589
+ /**
590
+ * Set to `true` to allow selection of multiple values from the dropdown list.
591
+ * ...
592
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/SwimlaneCombo#config-multiSelect)
593
+ */
594
+ multiSelect ? : boolean
595
+ /**
596
+ * A key value which, when typed in a [multiSelect](https://bryntum.com/products/taskboard/docs/api/Core/widget/Combo#config-multiSelect) Combo, selects the
597
+ * currently active item in the picker, and clears the input field ready for another
598
+ * match to be typed.
599
+ */
600
+ multiValueSeparator ? : string
601
+ /**
602
+ * Name of the field which is used as a key to get/set values from/to the field.
603
+ * Used prior to [ref](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#config-ref) and [id](#Core/widget/Widget#config-id) in
604
+ * [Container.values](https://bryntum.com/products/taskboard/docs/api/Core/widget/Container#property-values).
605
+ * ...
606
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/SwimlaneCombo#config-name)
607
+ */
608
+ name ? : string
609
+ /**
610
+ * This implies that the picker will display an anchor pointer, but also means that the picker will align closer
611
+ * to the input field so that the pointer pierces the [pickerAlignElement](https://bryntum.com/products/taskboard/docs/api/Core/widget/Combo#config-pickerAlignElement)
612
+ */
613
+ overlayAnchor ? : boolean
614
+ /**
615
+ * The owning Widget of this Widget. If this Widget is directly contained (that is, it is one of the
616
+ * [items](https://bryntum.com/products/taskboard/docs/api/Core/widget/Container#property-items) of a Container), this config will be ignored. In this case
617
+ * the owner is <strong>always</strong> the encapsulating Container.
618
+ * ...
619
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/SwimlaneCombo#config-owner)
620
+ */
621
+ owner ? : Widget|any
622
+ /**
623
+ * Configuration object for the [picker](https://bryntum.com/products/taskboard/docs/api/Core/widget/List) on initialization. Returns the
624
+ * [picker](https://bryntum.com/products/taskboard/docs/api/Core/widget/List) instance at runtime.
625
+ * ...
626
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/SwimlaneCombo#config-picker)
627
+ */
628
+ picker ? : ListConfig|List
629
+ /**
630
+ * The name of the element property to which the picker should size and align itself.
631
+ */
632
+ pickerAlignElement ? : string
633
+ /**
634
+ * Width of picker, defaults to this combo's [pickerAlignElement](https://bryntum.com/products/taskboard/docs/api/Core/widget/Combo#config-pickerAlignElement) width
635
+ */
636
+ pickerWidth ? : number|string
637
+ /**
638
+ * Text to display in empty field.
639
+ */
640
+ placeholder ? : string
641
+ /**
642
+ * 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
643
+ * not participate in the standard layout of that widget, and must be positioned relatively to that
644
+ * widget's [contentElement](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#property-contentElement).
645
+ * ...
646
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/SwimlaneCombo#config-positioned)
647
+ */
648
+ positioned ? : boolean
649
+ /**
650
+ * Prevent tooltip from being displayed on touch devices. Useful for example for buttons that display a
651
+ * menu on click etc, since the tooltip would be displayed at the same time.
652
+ */
653
+ preventTooltipOnTouch ? : boolean
654
+ /**
655
+ * Optionally a [Filter](https://bryntum.com/products/taskboard/docs/api/Core/util/CollectionFilter) config object which the combo should use for
656
+ * filtering using the typed value.
657
+ * This may use a `filterBy` property to test its `value` against any field in the passed record.
658
+ * ...
659
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/SwimlaneCombo#config-primaryFilter)
660
+ */
661
+ primaryFilter ? : CollectionFilterConfig
662
+ /**
663
+ * Makes the field unmodifiable by user action. The input area is not editable, and triggers
664
+ * are unresponsive.
665
+ * ...
666
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/SwimlaneCombo#config-readOnly)
667
+ */
668
+ readOnly ? : boolean
669
+ relayStoreEvents ? : boolean
670
+ /**
671
+ * Predefined style to use for the field. Possible values are:
672
+ * ...
673
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/SwimlaneCombo#config-rendition)
674
+ */
675
+ rendition ? : 'outlined'|'filled'|string
676
+ /**
677
+ * Configure as `true` to indicate that a `null` field value is to be marked as invalid. This will
678
+ * optionally append a * to the field label if [showRequiredIndicator](https://bryntum.com/products/taskboard/docs/api/Core/widget/Field#property-showRequiredIndicator) is set.
679
+ */
680
+ required ? : boolean
681
+ /**
682
+ * 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
683
+ * the `ESCAPE` key after editing the field will revert the field to the value it had when
684
+ * 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)
685
+ * behaviour will be activated.
686
+ */
687
+ revertOnEscape ? : boolean
688
+ /**
689
+ * Configure as `true` to have the component display a translucent ripple when its
690
+ * [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
691
+ * current theme supports ripples</em>. Out of the box, only the Material theme supports ripples.
692
+ * ...
693
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/SwimlaneCombo#config-ripple)
694
+ */
695
+ ripple ? : boolean|{
696
+ delegate?: string
697
+ color?: string
698
+ radius?: number
699
+ clip?: string
700
+ }
701
+ /**
702
+ * 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`
703
+ */
704
+ rootElement ? : ShadowRoot|HTMLElement
705
+ /**
706
+ * This may be configured as `true` to make the widget's element use the `direction:rtl` style.
707
+ * ...
708
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/SwimlaneCombo#config-rtl)
709
+ */
710
+ rtl ? : boolean
711
+ /**
712
+ * Defines what to do if document is scrolled while Widget is visible (only relevant when floating is set to `true`).
713
+ * Valid values: ´null´: do nothing, ´hide´: hide the widget or ´realign´: realign to the target if possible.
714
+ */
715
+ scrollAction ? : 'hide'|'realign'|null
716
+ /**
717
+ * *Only valid if this Widget is [floating](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#config-floating).*
718
+ * ...
719
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/SwimlaneCombo#config-showAnimation)
720
+ */
721
+ showAnimation ? : boolean|object
722
+ /**
723
+ * `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).
724
+ */
725
+ showRequiredIndicator ? : string
726
+ /**
727
+ * 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)
728
+ */
729
+ showTooltipWhenDisabled ? : boolean
730
+ /**
731
+ * Set to `true`, completely bypasses validation logic (could be userful if your field is not `editable`
732
+ * to the user).
733
+ */
734
+ skipValidation ? : boolean
735
+ /**
736
+ * Programmatic control over how many columns to span when used in a grid layout.
737
+ */
738
+ span ? : number
739
+ /**
740
+ * Sets the native `spellcheck` property of the underlying input element. For more information, please refer to
741
+ * [MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/spellcheck)
742
+ */
743
+ spellCheck ? : boolean
744
+ /**
745
+ * Store used to populate items. Also accepts a Store config object
746
+ */
747
+ store ? : Store|StoreConfig
748
+ /**
749
+ * 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
750
+ * [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
751
+ * this widget:
752
+ * ...
753
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/SwimlaneCombo#config-tab)
754
+ */
755
+ tab ? : boolean|TabConfig
756
+ /**
757
+ * The tab index of the input field or fields, or `null` for natural tab order (recommended). Setting to `0`
758
+ * is equivalent to natural tab order, but is unnecessary for fields since they are naturally tabbable
759
+ * (i.e., accessible via the TAB key). Setting to `-1` disables tabbability but allows for focus to be set
760
+ * to the element programmatically.
761
+ * ...
762
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/SwimlaneCombo#config-tabIndex)
763
+ */
764
+ tabIndex ? : number
765
+ /**
766
+ * Auto detected when used within a TaskBoard. If you add the widget elsewhere, it will try to find an instance
767
+ * of TaskBoard on page. If that fails you have to supply this config to connect it to a TaskBoard manually.
768
+ * ...
769
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/SwimlaneCombo#config-taskBoard)
770
+ */
771
+ taskBoard ? : TaskBoard
772
+ /**
773
+ * Text alignment: 'left', 'center' or 'right'. Also accepts direction neutral 'start' and 'end'.
774
+ * ...
775
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/SwimlaneCombo#config-textAlign)
776
+ */
777
+ textAlign ? : 'left'|'center'|'right'|'start'|'end'
778
+ /**
779
+ * A title to display for the widget. Only in effect when inside a container that uses it (such as TabPanel)
780
+ */
781
+ title ? : string
782
+ /**
783
+ * Tooltip for the widget, either as a string or as a Tooltip config object.
784
+ * ...
785
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/SwimlaneCombo#config-tooltip)
786
+ */
787
+ tooltip ? : string|TooltipConfig|null
788
+ /**
789
+ * How to query the store upon click of the expand trigger. Specify one of these values:
790
+ * ...
791
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/SwimlaneCombo#config-triggerAction)
792
+ */
793
+ triggerAction ? : 'all'|'last'|null
794
+ /**
795
+ * The triggers to add either before or after the input field. Each property name is the reference by which
796
+ * an instantiated Trigger Widget may be retrieved from the live `triggers` property.
797
+ * ...
798
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/SwimlaneCombo#config-triggers)
799
+ */
800
+ triggers ? : Record<string, FieldTriggerConfig>|Record<string, Widget>
801
+ type ? : 'swimlanecombo'
802
+ /**
803
+ * Custom CSS class name suffixes to apply to the elements rendered by this widget. This may be specified
804
+ * as a space separated string, an array of strings, or as an object in which property names with truthy
805
+ * values are used as the class names.
806
+ * ...
807
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/SwimlaneCombo#config-ui)
808
+ */
809
+ ui ? : string|object
810
+ /**
811
+ * `true` to cause the field to be in an invalid state while the typed filter string does not match a record in the store.
812
+ */
813
+ validateFilter ? : boolean
814
+ /**
815
+ * Set to `false` to not highlight a field as invalid while typing, to instead show it on ENTER key press
816
+ * or similar.
817
+ */
818
+ validateOnInput ? : boolean
819
+ /**
820
+ * The initial value of this Combo box. In single select mode (default) it's a simple string value, for
821
+ * [multiSelect](https://bryntum.com/products/taskboard/docs/api/Core/widget/Combo#config-multiSelect) mode, it should be an array of record ids.
822
+ */
823
+ value ? : string|number|string[]|number[]
824
+ /**
825
+ * Field used for item value when populating from store. Setting this to `null` will
826
+ * yield the selected record as the Combo's [value](https://bryntum.com/products/taskboard/docs/api/Core/widget/Combo#property-value).
827
+ * ...
828
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/SwimlaneCombo#config-valueField)
829
+ */
830
+ valueField ? : string|null
831
+ /**
832
+ * A widgets weight determines its position among siblings when added to a [Container](https://bryntum.com/products/taskboard/docs/api/Core/widget/Container).
833
+ * Higher weights go further down.
834
+ */
835
+ weight ? : number
836
+ /**
837
+ * Widget's width, used to set element `style.width`. Either specify a valid width string or a number, which
838
+ * will get 'px' appended. We recommend using CSS as the primary way to control width, but in some cases
839
+ * this config is convenient.
840
+ */
841
+ width ? : string|number
842
+ /**
843
+ * The x position for the widget.
844
+ * ...
845
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/SwimlaneCombo#config-x)
846
+ */
847
+ x ? : number
848
+ /**
849
+ * The y position for the widget.
850
+ * ...
851
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/SwimlaneCombo#config-y)
852
+ */
853
+ y ? : number
854
+
855
+ }
856
+
857
+ @Component({
858
+ selector : 'bryntum-swimlane-combo',
859
+ template : ''
860
+ })
861
+ export class BryntumSwimlaneComboComponent implements OnInit, OnDestroy {
862
+
863
+ public static instanceClass = SwimlaneCombo;
864
+
865
+ public static instanceName = 'SwimlaneCombo';
866
+
867
+ private static bryntumEvents: string[] = [
868
+ 'onAction',
869
+ 'onBeforeDestroy',
870
+ 'onBeforeHide',
871
+ 'onBeforeShow',
872
+ 'onCatchAll',
873
+ 'onChange',
874
+ 'onClear',
875
+ 'onDestroy',
876
+ 'onElementCreated',
877
+ 'onFocusIn',
878
+ 'onFocusOut',
879
+ 'onHide',
880
+ 'onInput',
881
+ 'onPaint',
882
+ 'onReadOnly',
883
+ 'onRecompose',
884
+ 'onResize',
885
+ 'onSelect',
886
+ 'onShow',
887
+ 'onTrigger'
888
+ ];
889
+
890
+ private static bryntumFeatureNames: string[] = [
891
+
892
+ ];
893
+
894
+ private static bryntumConfigs: string[] = BryntumSwimlaneComboComponent.bryntumFeatureNames.concat([
895
+ 'adopt',
896
+ 'align',
897
+ 'alignSelf',
898
+ 'anchor',
899
+ 'appendTo',
900
+ 'ariaDescription',
901
+ 'ariaLabel',
902
+ 'autoComplete',
903
+ 'autoExpand',
904
+ 'autoSelect',
905
+ 'badge',
906
+ 'bubbleEvents',
907
+ 'cacheLastResult',
908
+ 'callOnFunctions',
909
+ 'caseSensitive',
910
+ 'catchEventHandlerExceptions',
911
+ 'centered',
912
+ 'chipView',
913
+ 'clearable',
914
+ 'clearTextOnPickerHide',
915
+ 'clearTextOnSelection',
916
+ 'clearWhenInputEmpty',
917
+ 'cls',
918
+ 'color',
919
+ 'column',
920
+ 'config',
921
+ 'constrainTo',
922
+ 'container',
923
+ 'containValues',
924
+ 'contentElementCls',
925
+ 'createOnUnmatched',
926
+ 'dataField',
927
+ 'dataset',
928
+ 'defaultBindProperty',
929
+ 'detectCSSCompatibilityIssues',
930
+ 'disabled',
931
+ 'displayField',
932
+ 'displayValueRenderer',
933
+ 'dock',
934
+ 'draggable',
935
+ 'editable',
936
+ 'elementAttributes',
937
+ 'emptyText',
938
+ 'encodeFilterParams',
939
+ 'extraData',
940
+ 'filterOnEnter',
941
+ 'filterOperator',
942
+ 'filterParamName',
943
+ 'filterSelected',
944
+ 'flex',
945
+ 'floating',
946
+ 'height',
947
+ 'hidden',
948
+ 'hideAnimation',
949
+ 'hidePickerOnSelect',
950
+ 'hideTrigger',
951
+ 'highlightExternalChange',
952
+ 'hint',
953
+ 'hintHtml',
954
+ 'id',
955
+ 'ignoreParentReadOnly',
956
+ 'inline',
957
+ 'inlinePicker',
958
+ 'inputAlign',
959
+ 'inputAttributes',
960
+ 'inputTag',
961
+ 'inputType',
962
+ 'inputWidth',
963
+ 'insertBefore',
964
+ 'insertFirst',
965
+ 'items',
966
+ 'keyMap',
967
+ 'keyStrokeChangeDelay',
968
+ 'keyStrokeFilterDelay',
969
+ 'label',
970
+ 'labelCls',
971
+ 'labelPosition',
972
+ 'labels',
973
+ 'labelWidth',
974
+ 'listCls',
975
+ 'listeners',
976
+ 'listItemTpl',
977
+ 'localeClass',
978
+ 'localizable',
979
+ 'localizableProperties',
980
+ 'margin',
981
+ 'maskDefaults',
982
+ 'masked',
983
+ 'maxHeight',
984
+ 'maximizeOnMobile',
985
+ 'maxLength',
986
+ 'maxWidth',
987
+ 'minChars',
988
+ 'minHeight',
989
+ 'minLength',
990
+ 'minWidth',
991
+ 'monitorResize',
992
+ 'multiSelect',
993
+ 'multiValueSeparator',
994
+ 'name',
995
+ 'overlayAnchor',
996
+ 'owner',
997
+ 'picker',
998
+ 'pickerAlignElement',
999
+ 'pickerWidth',
1000
+ 'placeholder',
1001
+ 'positioned',
1002
+ 'preventTooltipOnTouch',
1003
+ 'primaryFilter',
1004
+ 'readOnly',
1005
+ 'relayStoreEvents',
1006
+ 'rendition',
1007
+ 'required',
1008
+ 'revertOnEscape',
1009
+ 'ripple',
1010
+ 'rootElement',
1011
+ 'rtl',
1012
+ 'scrollAction',
1013
+ 'showAnimation',
1014
+ 'showRequiredIndicator',
1015
+ 'showTooltipWhenDisabled',
1016
+ 'skipValidation',
1017
+ 'span',
1018
+ 'spellCheck',
1019
+ 'store',
1020
+ 'tab',
1021
+ 'tabIndex',
1022
+ 'taskBoard',
1023
+ 'textAlign',
1024
+ 'title',
1025
+ 'tooltip',
1026
+ 'triggerAction',
1027
+ 'triggers',
1028
+ 'type',
1029
+ 'ui',
1030
+ 'validateFilter',
1031
+ 'validateOnInput',
1032
+ 'value',
1033
+ 'valueField',
1034
+ 'weight',
1035
+ 'width',
1036
+ 'x',
1037
+ 'y'
1038
+ ]);
1039
+
1040
+ private static bryntumConfigsOnly: string[] = [
1041
+ 'adopt',
1042
+ 'align',
1043
+ 'anchor',
1044
+ 'ariaDescription',
1045
+ 'ariaLabel',
1046
+ 'autoComplete',
1047
+ 'autoExpand',
1048
+ 'autoSelect',
1049
+ 'bubbleEvents',
1050
+ 'cacheLastResult',
1051
+ 'caseSensitive',
1052
+ 'centered',
1053
+ 'chipView',
1054
+ 'clearable',
1055
+ 'clearTextOnPickerHide',
1056
+ 'clearTextOnSelection',
1057
+ 'clearWhenInputEmpty',
1058
+ 'color',
1059
+ 'config',
1060
+ 'constrainTo',
1061
+ 'container',
1062
+ 'containValues',
1063
+ 'contentElementCls',
1064
+ 'createOnUnmatched',
1065
+ 'dataField',
1066
+ 'defaultBindProperty',
1067
+ 'detectCSSCompatibilityIssues',
1068
+ 'displayField',
1069
+ 'displayValueRenderer',
1070
+ 'dock',
1071
+ 'draggable',
1072
+ 'elementAttributes',
1073
+ 'emptyText',
1074
+ 'encodeFilterParams',
1075
+ 'filterOnEnter',
1076
+ 'filterParamName',
1077
+ 'filterSelected',
1078
+ 'floating',
1079
+ 'hideAnimation',
1080
+ 'hidePickerOnSelect',
1081
+ 'hideTrigger',
1082
+ 'highlightExternalChange',
1083
+ 'hint',
1084
+ 'hintHtml',
1085
+ 'ignoreParentReadOnly',
1086
+ 'inline',
1087
+ 'inlinePicker',
1088
+ 'inputAlign',
1089
+ 'inputAttributes',
1090
+ 'inputTag',
1091
+ 'inputType',
1092
+ 'inputWidth',
1093
+ 'items',
1094
+ 'keyStrokeChangeDelay',
1095
+ 'keyStrokeFilterDelay',
1096
+ 'labelCls',
1097
+ 'labelPosition',
1098
+ 'labels',
1099
+ 'labelWidth',
1100
+ 'listCls',
1101
+ 'listeners',
1102
+ 'listItemTpl',
1103
+ 'localeClass',
1104
+ 'localizable',
1105
+ 'localizableProperties',
1106
+ 'maskDefaults',
1107
+ 'masked',
1108
+ 'maxLength',
1109
+ 'minChars',
1110
+ 'minLength',
1111
+ 'monitorResize',
1112
+ 'multiValueSeparator',
1113
+ 'name',
1114
+ 'overlayAnchor',
1115
+ 'owner',
1116
+ 'pickerAlignElement',
1117
+ 'pickerWidth',
1118
+ 'positioned',
1119
+ 'preventTooltipOnTouch',
1120
+ 'primaryFilter',
1121
+ 'relayStoreEvents',
1122
+ 'revertOnEscape',
1123
+ 'ripple',
1124
+ 'rootElement',
1125
+ 'scrollAction',
1126
+ 'showAnimation',
1127
+ 'showTooltipWhenDisabled',
1128
+ 'skipValidation',
1129
+ 'spellCheck',
1130
+ 'tab',
1131
+ 'tabIndex',
1132
+ 'taskBoard',
1133
+ 'textAlign',
1134
+ 'title',
1135
+ 'triggerAction',
1136
+ 'type',
1137
+ 'ui',
1138
+ 'validateFilter',
1139
+ 'validateOnInput',
1140
+ 'valueField',
1141
+ 'weight'
1142
+ ];
1143
+
1144
+ private static bryntumProps: string[] = BryntumSwimlaneComboComponent.bryntumFeatureNames.concat([
1145
+ 'alignSelf',
1146
+ 'anchorSize',
1147
+ 'appendTo',
1148
+ 'badge',
1149
+ 'callOnFunctions',
1150
+ 'catchEventHandlerExceptions',
1151
+ 'cls',
1152
+ 'column',
1153
+ 'content',
1154
+ 'dataset',
1155
+ 'disabled',
1156
+ 'editable',
1157
+ 'extraData',
1158
+ 'filterOperator',
1159
+ 'flex',
1160
+ 'focusVisible',
1161
+ 'formula',
1162
+ 'height',
1163
+ 'hidden',
1164
+ 'html',
1165
+ 'id',
1166
+ 'input',
1167
+ 'insertBefore',
1168
+ 'insertFirst',
1169
+ 'keyMap',
1170
+ 'label',
1171
+ 'margin',
1172
+ 'maxHeight',
1173
+ 'maximizeOnMobile',
1174
+ 'maxWidth',
1175
+ 'minHeight',
1176
+ 'minWidth',
1177
+ 'multiSelect',
1178
+ 'parent',
1179
+ 'picker',
1180
+ 'placeholder',
1181
+ 'readOnly',
1182
+ 'rendition',
1183
+ 'required',
1184
+ 'rtl',
1185
+ 'scrollable',
1186
+ 'showRequiredIndicator',
1187
+ 'span',
1188
+ 'store',
1189
+ 'tooltip',
1190
+ 'triggers',
1191
+ 'value',
1192
+ 'width',
1193
+ 'x',
1194
+ 'y'
1195
+ ]);
1196
+
1197
+ private elementRef: ElementRef;
1198
+ public instance!: SwimlaneCombo;
1199
+
1200
+ private bryntumConfig = {
1201
+ adopt : undefined,
1202
+ appendTo : undefined,
1203
+ href : undefined,
1204
+ angularComponent : this,
1205
+ features : {},
1206
+ listeners : {}
1207
+ };
1208
+
1209
+ constructor(element: ElementRef) {
1210
+ this.elementRef = element;
1211
+ }
1212
+
1213
+ // Configs only
1214
+ @Input() adopt ! : HTMLElement|string;
1215
+ @Input() align ! : AlignSpec|string;
1216
+ @Input() anchor ! : boolean;
1217
+ @Input() ariaDescription ! : string;
1218
+ @Input() ariaLabel ! : string;
1219
+ @Input() autoComplete ! : string;
1220
+ @Input() autoExpand ! : boolean;
1221
+ @Input() autoSelect ! : boolean;
1222
+ @Input() bubbleEvents ! : object;
1223
+ @Input() cacheLastResult ! : number|string|Duration|DurationConfig;
1224
+ @Input() caseSensitive ! : boolean;
1225
+ @Input() centered ! : boolean;
1226
+ @Input() chipView ! : ChipViewConfig;
1227
+ @Input() clearable ! : boolean|FieldTriggerConfig;
1228
+ @Input() clearTextOnPickerHide ! : boolean;
1229
+ @Input() clearTextOnSelection ! : boolean;
1230
+ @Input() clearWhenInputEmpty ! : boolean;
1231
+ @Input() color ! : string;
1232
+ @Input() config ! : object;
1233
+ @Input() constrainTo ! : HTMLElement|Widget|Rectangle;
1234
+ @Input() container ! : Record<string, ContainerItemConfig>|ContainerItemConfig[]|FieldContainerConfig|FieldContainer;
1235
+ @Input() containValues ! : boolean|string|((field: Field) => boolean);
1236
+ @Input() contentElementCls ! : string|object;
1237
+ @Input() createOnUnmatched ! : ((name: string, combo: Combo) => Model)|string|boolean;
1238
+ @Input() dataField ! : string;
1239
+ @Input() defaultBindProperty ! : string;
1240
+ @Input() detectCSSCompatibilityIssues ! : boolean;
1241
+ @Input() displayField ! : string;
1242
+ @Input() displayValueRenderer ! : (record: Model|ComboModel, combo: Combo) => string|void;
1243
+ @Input() dock ! : 'top'|'bottom'|'left'|'right'|'start'|'end'|'header'|'pre-header'|object;
1244
+ @Input() draggable ! : boolean|{
1245
+ handleSelector?: string
1246
+ };
1247
+ @Input() elementAttributes ! : Record<string, string|null>;
1248
+ @Input() emptyText ! : string;
1249
+ @Input() encodeFilterParams ! : (filters: object[]) => object[];
1250
+ @Input() filterOnEnter ! : boolean;
1251
+ @Input() filterParamName ! : string;
1252
+ @Input() filterSelected ! : boolean;
1253
+ @Input() floating ! : boolean;
1254
+ @Input() hideAnimation ! : boolean|object;
1255
+ @Input() hidePickerOnSelect ! : boolean;
1256
+ @Input() hideTrigger ! : boolean;
1257
+ @Input() highlightExternalChange ! : boolean;
1258
+ @Input() hint ! : string|((data: { source: Field, value: any }) => string);
1259
+ @Input() hintHtml ! : string|((data: { source: Field, value: any }) => string);
1260
+ @Input() ignoreParentReadOnly ! : boolean;
1261
+ @Input() inline ! : boolean;
1262
+ @Input() inlinePicker ! : boolean;
1263
+ @Input() inputAlign ! : string;
1264
+ @Input() inputAttributes ! : Record<string, string>;
1265
+ @Input() inputTag ! : string;
1266
+ @Input() inputType ! : string;
1267
+ @Input() inputWidth ! : string|number;
1268
+ @Input() items ! : object[]|string[]|object;
1269
+ @Input() keyStrokeChangeDelay ! : number;
1270
+ @Input() keyStrokeFilterDelay ! : number;
1271
+ @Input() labelCls ! : string|object;
1272
+ @Input() labelPosition ! : 'before'|'above'|null;
1273
+ @Input() labels ! : object[];
1274
+ @Input() labelWidth ! : string|number;
1275
+ @Input() listCls ! : string;
1276
+ @Input() listeners ! : SwimlaneComboListeners;
1277
+ @Input() listItemTpl ! : (record: Model|ComboModel) => string|void;
1278
+ @Input() localeClass ! : typeof Base;
1279
+ @Input() localizable ! : boolean;
1280
+ @Input() localizableProperties ! : string[];
1281
+ @Input() maskDefaults ! : MaskConfig;
1282
+ @Input() masked ! : boolean|string|MaskConfig;
1283
+ @Input() maxLength ! : number;
1284
+ @Input() minChars ! : number;
1285
+ @Input() minLength ! : number;
1286
+ @Input() monitorResize ! : boolean|{
1287
+ immediate?: boolean
1288
+ };
1289
+ @Input() multiValueSeparator ! : string;
1290
+ @Input() name ! : string;
1291
+ @Input() overlayAnchor ! : boolean;
1292
+ @Input() owner ! : Widget|any;
1293
+ @Input() pickerAlignElement ! : string;
1294
+ @Input() pickerWidth ! : number|string;
1295
+ @Input() positioned ! : boolean;
1296
+ @Input() preventTooltipOnTouch ! : boolean;
1297
+ @Input() primaryFilter ! : CollectionFilterConfig;
1298
+ @Input() relayStoreEvents ! : boolean;
1299
+ @Input() revertOnEscape ! : boolean;
1300
+ @Input() ripple ! : boolean|{
1301
+ delegate?: string
1302
+ color?: string
1303
+ radius?: number
1304
+ clip?: string
1305
+ };
1306
+ @Input() rootElement ! : ShadowRoot|HTMLElement;
1307
+ @Input() scrollAction ! : 'hide'|'realign'|null;
1308
+ @Input() showAnimation ! : boolean|object;
1309
+ @Input() showTooltipWhenDisabled ! : boolean;
1310
+ @Input() skipValidation ! : boolean;
1311
+ @Input() spellCheck ! : boolean;
1312
+ @Input() tab ! : boolean|TabConfig;
1313
+ @Input() tabIndex ! : number;
1314
+ @Input() taskBoard ! : TaskBoard;
1315
+ @Input() textAlign ! : 'left'|'center'|'right'|'start'|'end';
1316
+ @Input() title ! : string;
1317
+ @Input() triggerAction ! : 'all'|'last'|null;
1318
+ @Input() type ! : 'swimlanecombo';
1319
+ @Input() ui ! : string|object;
1320
+ @Input() validateFilter ! : boolean;
1321
+ @Input() validateOnInput ! : boolean;
1322
+ @Input() valueField ! : string|null;
1323
+ @Input() weight ! : number;
1324
+
1325
+ // Configs and properties
1326
+ @Input() alignSelf ! : string;
1327
+ @Input() appendTo ! : HTMLElement|string;
1328
+ @Input() badge ! : string;
1329
+ @Input() callOnFunctions ! : boolean;
1330
+ @Input() catchEventHandlerExceptions ! : boolean;
1331
+ @Input() cls ! : string|object;
1332
+ @Input() column ! : number;
1333
+ @Input() dataset ! : object|Record<string, string>;
1334
+ @Input() disabled ! : boolean|'inert';
1335
+ @Input() editable ! : boolean;
1336
+ @Input() extraData ! : any;
1337
+ @Input() filterOperator ! : CollectionCompareOperator;
1338
+ @Input() flex ! : number|string;
1339
+ @Input() height ! : number|string;
1340
+ @Input() hidden ! : boolean;
1341
+ @Input() id ! : string;
1342
+ @Input() insertBefore ! : HTMLElement|string;
1343
+ @Input() insertFirst ! : HTMLElement|string;
1344
+ @Input() keyMap ! : Record<string, KeyMapConfig>;
1345
+ @Input() label ! : string;
1346
+ @Input() margin ! : number|string;
1347
+ @Input() maxHeight ! : string|number;
1348
+ @Input() maximizeOnMobile ! : number|string;
1349
+ @Input() maxWidth ! : string|number;
1350
+ @Input() minHeight ! : string|number;
1351
+ @Input() minWidth ! : string|number;
1352
+ @Input() multiSelect ! : boolean;
1353
+ @Input() picker ! : ListConfig|List;
1354
+ @Input() placeholder ! : string;
1355
+ @Input() readOnly ! : boolean;
1356
+ @Input() rendition ! : 'outlined'|'filled'|string;
1357
+ @Input() required ! : boolean;
1358
+ @Input() rtl ! : boolean;
1359
+ @Input() showRequiredIndicator ! : string;
1360
+ @Input() span ! : number;
1361
+ @Input() store ! : Store|StoreConfig;
1362
+ @Input() tooltip ! : string|TooltipConfig|null;
1363
+ @Input() triggers ! : Record<string, FieldTriggerConfig>|Record<string, Widget>;
1364
+ @Input() value ! : object|number|string|string[]|number[];
1365
+ @Input() width ! : number|string;
1366
+ @Input() x ! : number;
1367
+ @Input() y ! : number;
1368
+
1369
+ // Properties only
1370
+ @Input() anchorSize ! : number[];
1371
+ @Input() content ! : string;
1372
+ @Input() focusVisible ! : boolean;
1373
+ @Input() formula ! : string;
1374
+ @Input() html ! : string|((widget: Widget) => string)|DomConfig|DomConfig[]|VueConfig;
1375
+ @Input() input ! : HTMLElement;
1376
+ @Input() parent ! : Widget;
1377
+ @Input() scrollable ! : Scroller;
1378
+
1379
+ // Events emitters
1380
+ /**
1381
+ * The default action was performed (an item in the list was selected)
1382
+ * @param {object} event Event object
1383
+ * @param {Core.widget.Combo} event.source The combo
1384
+ * @param {any} event.value The [value](https://bryntum.com/products/taskboard/docs/api/Core/widget/Combo#config-valueField) of the selected record
1385
+ * @param {Core.data.Model} event.record Selected record
1386
+ * @param {Core.data.Model[]} event.records Selected records as an array if [multiSelect](https://bryntum.com/products/taskboard/docs/api/Core/widget/Combo#config-multiSelect) is `true`
1387
+ * @param {boolean} event.userAction `true` if the value change is due to user interaction
1388
+ */
1389
+ @Output() onAction: any = new EventEmitter<((event: { source: Combo, value: any, record: Model, records: Model[], userAction: boolean }) => void)|string>();
1390
+ /**
1391
+ * Fires before an object is destroyed.
1392
+ * @param {object} event Event object
1393
+ * @param {Core.Base} event.source The Object that is being destroyed.
1394
+ */
1395
+ @Output() onBeforeDestroy: any = new EventEmitter<((event: { source: Base }) => void)|string>();
1396
+ /**
1397
+ * Triggered before a widget is hidden. Return `false` to prevent the action.
1398
+ * @param {object} event Event object
1399
+ * @param {Core.widget.Widget} event.source The widget being hidden.
1400
+ */
1401
+ @Output() onBeforeHide: any = new EventEmitter<((event: { source: Widget }) => Promise<boolean>|boolean|void)|string>();
1402
+ /**
1403
+ * Triggered before a widget is shown. Return `false` to prevent the action.
1404
+ * @param {object} event Event object
1405
+ * @param {Core.widget.Widget,any} event.source The widget being shown
1406
+ */
1407
+ @Output() onBeforeShow: any = new EventEmitter<((event: { source: Widget|any }) => Promise<boolean>|boolean|void)|string>();
1408
+ /**
1409
+ * Fires when any other event is fired from the object.
1410
+ * ...
1411
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/SwimlaneCombo#event-catchAll)
1412
+ * @param {object} event Event object
1413
+ * @param {{[key: string]: any, type: string}} event.event The Object that contains event details
1414
+ * @param {string} event.event.type The type of the event which is caught by the listener
1415
+ */
1416
+ @Output() onCatchAll: any = new EventEmitter<((event: {[key: string]: any, type: string}) => void)|string>();
1417
+ /**
1418
+ * Fired when this field's value changes.
1419
+ * @param {object} event Event object
1420
+ * @param {Core.widget.Field,any} event.source This Field
1421
+ * @param {string,number,boolean,any} event.value This field's value
1422
+ * @param {string,number,boolean,any} event.oldValue This field's previous value
1423
+ * @param {boolean} event.valid True if this field is in a valid state
1424
+ * @param {Event} event.event The triggering DOM event if any
1425
+ * @param {boolean} event.userAction Triggered by user taking an action (`true`) or by setting a value (`false`)
1426
+ * @param {boolean} event.checked
1427
+ */
1428
+ @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>();
1429
+ /**
1430
+ * Fired when this field is [cleared](https://bryntum.com/products/taskboard/docs/api/Core/widget/Field#function-clear).
1431
+ * ...
1432
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/SwimlaneCombo#event-clear)
1433
+ * @param {object} event Event object
1434
+ * @param {Core.widget.Field,any} event.source This Field
1435
+ */
1436
+ @Output() onClear: any = new EventEmitter<((event: { source: Field|any }) => void)|string>();
1437
+ /**
1438
+ * Fires when an object is destroyed.
1439
+ * @param {object} event Event object
1440
+ * @param {Core.Base} event.source The Object that is being destroyed.
1441
+ */
1442
+ @Output() onDestroy: any = new EventEmitter<((event: { source: Base }) => void)|string>();
1443
+ /**
1444
+ * Triggered when a widget's [element](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#property-element) is available.
1445
+ * @param {object} event Event object
1446
+ * @param {HTMLElement} event.element The Widget's element.
1447
+ */
1448
+ @Output() onElementCreated: any = new EventEmitter<((event: { element: HTMLElement }) => void)|string>();
1449
+ /**
1450
+ * Fired when focus enters this Widget.
1451
+ * @param {object} event Event object
1452
+ * @param {Core.widget.Widget} event.source This Widget
1453
+ * @param {HTMLElement} event.fromElement The element which lost focus.
1454
+ * @param {HTMLElement} event.toElement The element which gained focus.
1455
+ * @param {Core.widget.Widget} event.fromWidget The widget which lost focus.
1456
+ * @param {Core.widget.Widget} event.toWidget The widget which gained focus.
1457
+ * @param {boolean} event.backwards `true` if the `toElement` is before the `fromElement` in document order.
1458
+ */
1459
+ @Output() onFocusIn: any = new EventEmitter<((event: { source: Widget, fromElement: HTMLElement, toElement: HTMLElement, fromWidget: Widget, toWidget: Widget, backwards: boolean }) => void)|string>();
1460
+ /**
1461
+ * Fired when focus exits this Widget's ownership tree. This is different from a `blur` event.
1462
+ * focus moving from within this Widget's ownership tree, even if there are floating widgets
1463
+ * will not trigger this event. This is when focus exits this widget completely.
1464
+ * @param {object} event Event object
1465
+ * @param {Core.widget.Widget} event.source This Widget
1466
+ * @param {HTMLElement} event.fromElement The element which lost focus.
1467
+ * @param {HTMLElement} event.toElement The element which gained focus.
1468
+ * @param {Core.widget.Widget} event.fromWidget The widget which lost focus.
1469
+ * @param {Core.widget.Widget} event.toWidget The widget which gained focus.
1470
+ * @param {boolean} event.backwards `true` if the `toElement` is before the `fromElement` in document order.
1471
+ */
1472
+ @Output() onFocusOut: any = new EventEmitter<((event: { source: Widget, fromElement: HTMLElement, toElement: HTMLElement, fromWidget: Widget, toWidget: Widget, backwards: boolean }) => void)|string>();
1473
+ /**
1474
+ * Triggered after a widget was hidden
1475
+ * @param {object} event Event object
1476
+ * @param {Core.widget.Widget} event.source The widget
1477
+ */
1478
+ @Output() onHide: any = new EventEmitter<((event: { source: Widget }) => void)|string>();
1479
+ /**
1480
+ * User typed into the field. Please note that the value attached to this event is the raw input field value and
1481
+ * not the combos value
1482
+ * @param {object} event Event object
1483
+ * @param {Core.widget.Combo} event.source The combo.
1484
+ * @param {string} event.value Raw input value
1485
+ * @param {Event} event.event The triggering DOM event if any.
1486
+ */
1487
+ @Output() onInput: any = new EventEmitter<((event: { source: Combo, value: string, event: Event }) => void)|string>();
1488
+ /**
1489
+ * Triggered when a widget which had been in a non-visible state for any reason
1490
+ * achieves visibility.
1491
+ * ...
1492
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/SwimlaneCombo#event-paint)
1493
+ * @param {object} event Event object
1494
+ * @param {Core.widget.Widget} event.source The widget being painted.
1495
+ * @param {boolean} event.firstPaint `true` if this is the first paint.
1496
+ */
1497
+ @Output() onPaint: any = new EventEmitter<((event: { source: Widget, firstPaint: boolean }) => void)|string>();
1498
+ /**
1499
+ * Fired when a Widget's read only state is toggled
1500
+ * @param {object} event Event object
1501
+ * @param {boolean} event.readOnly Read only or not
1502
+ */
1503
+ @Output() onReadOnly: any = new EventEmitter<((event: { readOnly: boolean }) => void)|string>();
1504
+ /**
1505
+ * This event is fired after a widget's elements have been synchronized due to a direct or indirect call
1506
+ * 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.
1507
+ */
1508
+ @Output() onRecompose: any = new EventEmitter<(() => void)|string>();
1509
+ /**
1510
+ * 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`*.
1511
+ * @param {object} event Event object
1512
+ * @param {Core.widget.Widget} event.source This Widget
1513
+ * @param {number} event.width The new width
1514
+ * @param {number} event.height The new height
1515
+ * @param {number} event.oldWidth The old width
1516
+ * @param {number} event.oldHeight The old height
1517
+ */
1518
+ @Output() onResize: any = new EventEmitter<((event: { source: Widget, width: number, height: number, oldWidth: number, oldHeight: number }) => void)|string>();
1519
+ /**
1520
+ * An item in the list was selected
1521
+ * @param {object} event Event object
1522
+ * @param {Core.widget.Combo} event.source The combo
1523
+ * @param {Core.data.Model} event.record Selected record
1524
+ * @param {Core.data.Model[]} event.records Selected records as an array if [multiSelect](https://bryntum.com/products/taskboard/docs/api/Core/widget/Combo#config-multiSelect) is `true`
1525
+ * @param {boolean} event.userAction `true` if the value change is due to user interaction
1526
+ */
1527
+ @Output() onSelect: any = new EventEmitter<((event: { source: Combo, record: Model, records: Model[], userAction: boolean }) => void)|string>();
1528
+ /**
1529
+ * Triggered after a widget is shown.
1530
+ * @param {object} event Event object
1531
+ * @param {Core.widget.Widget} event.source The widget
1532
+ */
1533
+ @Output() onShow: any = new EventEmitter<((event: { source: Widget }) => void)|string>();
1534
+ /**
1535
+ * User clicked one of this field's [triggers](https://bryntum.com/products/taskboard/docs/api/Core/widget/Field#property-triggers)
1536
+ * @param {object} event Event object
1537
+ * @param {Core.widget.Field,any} event.source This field
1538
+ * @param {Core.widget.Widget} event.trigger The trigger activated by click or touch tap.
1539
+ */
1540
+ @Output() onTrigger: any = new EventEmitter<((event: { source: Field|any, trigger: Widget }) => void)|string>();
1541
+
1542
+ /**
1543
+ * Create and append the underlying widget
1544
+ */
1545
+ ngOnInit(): void {
1546
+ const
1547
+ me = this,
1548
+ {
1549
+ elementRef,
1550
+ bryntumConfig
1551
+ } = me,
1552
+ {
1553
+ instanceClass,
1554
+ instanceName,
1555
+ bryntumConfigs,
1556
+ bryntumEvents
1557
+ } = BryntumSwimlaneComboComponent;
1558
+
1559
+ bryntumConfigs.filter(prop => prop in this).forEach(prop => {
1560
+ // @ts-ignore
1561
+ WrapperHelper.applyPropValue(bryntumConfig, prop, this[prop]);
1562
+ if (['features', 'config'].includes(prop)) {
1563
+ WrapperHelper.devWarningConfigProp(instanceName, prop);
1564
+ }
1565
+ });
1566
+ // @ts-ignore
1567
+ bryntumEvents.filter(event => this[event] && this[event].observers.length > 0).forEach(event => {
1568
+ const
1569
+ uncapitalize = (str: string) => str.charAt(0).toLowerCase() + str.slice(1),
1570
+ eventName = (str: string) => uncapitalize(str.slice(2));
1571
+
1572
+ // @ts-ignore
1573
+ bryntumConfig.listeners[eventName(event)] = e => {
1574
+ // @ts-ignore
1575
+ me[event].emit(e);
1576
+ // EventEmitter does not return values in the normal way, work around it by setting `returnValue` flag
1577
+ // in Angular listeners
1578
+ return e.returnValue;
1579
+ };
1580
+ });
1581
+
1582
+ // If component has no container specified in config then use adopt to Wrapper's element
1583
+ const
1584
+ containerParam = [
1585
+ 'adopt',
1586
+ 'appendTo',
1587
+ 'insertAfter',
1588
+ 'insertBefore'
1589
+ // @ts-ignore
1590
+ ].find(prop => bryntumConfig[prop]);
1591
+ if (!containerParam) {
1592
+ if (instanceName === 'Button' || elementRef.nativeElement.getRootNode() instanceof ShadowRoot) {
1593
+ // Button should always be <a> or <button> inside owner element
1594
+ bryntumConfig.appendTo = elementRef.nativeElement;
1595
+ }
1596
+ else {
1597
+ bryntumConfig.adopt = elementRef.nativeElement;
1598
+ }
1599
+ }
1600
+ else {
1601
+ WrapperHelper.devWarningContainer(instanceName, containerParam);
1602
+ }
1603
+
1604
+ // @ts-ignore
1605
+ me.instance = instanceName === 'Widget' ? Widget.create(bryntumConfig) : new instanceClass(bryntumConfig);
1606
+
1607
+ }
1608
+
1609
+ /**
1610
+ * Watch for changes
1611
+ * @param changes
1612
+ */
1613
+ ngOnChanges(changes: SimpleChanges): void {
1614
+ const
1615
+ { instance } = this,
1616
+ { instanceName } = BryntumSwimlaneComboComponent;
1617
+ if (!instance) {
1618
+ return;
1619
+ }
1620
+ // Iterate over all changes
1621
+ Object.entries(changes).forEach(([prop, change]) => {
1622
+ const
1623
+ newValue = (change as SimpleChange).currentValue,
1624
+ { instance } = this,
1625
+ { bryntumConfigsOnly, bryntumProps } = BryntumSwimlaneComboComponent;
1626
+ if (bryntumProps.includes(prop)) {
1627
+ WrapperHelper.applyPropValue(instance, prop, newValue, false);
1628
+ if (bryntumConfigsOnly.includes(prop)) {
1629
+ WrapperHelper.devWarningUpdateProp(instanceName, prop);
1630
+ }
1631
+ }
1632
+ });
1633
+ }
1634
+
1635
+ /**
1636
+ * Destroy the component
1637
+ */
1638
+ ngOnDestroy(): void {
1639
+ // @ts-ignore
1640
+ if (this.instance && this.instance.destroy) {
1641
+ this.instance.destroy();
1642
+ }
1643
+ }
1644
+ }