@bryntum/taskboard-angular-thin 7.1.1 → 7.1.3

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