@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,1638 @@
1
+ /* eslint-disable @typescript-eslint/no-unused-vars */
2
+ /**
3
+ * Angular wrapper for Bryntum SchedulerProjectCombo
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, SchedulerProjectCombo, SchedulerProjectComboListeners, SchedulerProjectModel, Scroller, Store, StoreConfig, TabConfig, TooltipConfig, VueConfig, Widget } from '@bryntum/taskboard';
11
+
12
+ import { StringHelper } from '@bryntum/taskboard';
13
+
14
+ export type BryntumSchedulerProjectComboProps = {
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/Scheduler/widget/ProjectCombo#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/Scheduler/widget/ProjectCombo#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/Scheduler/widget/ProjectCombo#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/Scheduler/widget/ProjectCombo#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/Scheduler/widget/ProjectCombo#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/Scheduler/widget/ProjectCombo#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/Scheduler/widget/ProjectCombo#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/Scheduler/widget/ProjectCombo#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/Scheduler/widget/ProjectCombo#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/Scheduler/widget/ProjectCombo#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/Scheduler/widget/ProjectCombo#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/Scheduler/widget/ProjectCombo#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/Scheduler/widget/ProjectCombo#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/Scheduler/widget/ProjectCombo#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/Scheduler/widget/ProjectCombo#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/Scheduler/widget/ProjectCombo#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/Scheduler/widget/ProjectCombo#config-disabled)
222
+ */
223
+ disabled ? : boolean|'inert'
224
+ /**
225
+ * Field used as projects title.
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/Scheduler/widget/ProjectCombo#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/Scheduler/widget/ProjectCombo#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/Scheduler/widget/ProjectCombo#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/Scheduler/widget/ProjectCombo#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/Scheduler/widget/ProjectCombo#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/Scheduler/widget/ProjectCombo#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/Scheduler/widget/ProjectCombo#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/Scheduler/widget/ProjectCombo#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/Scheduler/widget/ProjectCombo#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/Scheduler/widget/ProjectCombo#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/Scheduler/widget/ProjectCombo#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/Scheduler/widget/ProjectCombo#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/Scheduler/widget/ProjectCombo#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/Scheduler/widget/ProjectCombo#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/Scheduler/widget/ProjectCombo#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/Scheduler/widget/ProjectCombo#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/Scheduler/widget/ProjectCombo#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/Scheduler/widget/ProjectCombo#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/Scheduler/widget/ProjectCombo#config-listeners)
492
+ */
493
+ listeners ? : SchedulerProjectComboListeners
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/Scheduler/widget/ProjectCombo#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/Scheduler/widget/ProjectCombo#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/Scheduler/widget/ProjectCombo#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/Scheduler/widget/ProjectCombo#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/Scheduler/widget/ProjectCombo#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/Scheduler/widget/ProjectCombo#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/Scheduler/widget/ProjectCombo#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/Scheduler/widget/ProjectCombo#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/Scheduler/widget/ProjectCombo#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/Scheduler/widget/ProjectCombo#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/Scheduler/widget/ProjectCombo#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/Scheduler/widget/ProjectCombo#config-primaryFilter)
660
+ */
661
+ primaryFilter ? : CollectionFilterConfig
662
+ /**
663
+ * Project to reconfigure when picking an item.
664
+ */
665
+ project ? : SchedulerProjectModel|object
666
+ /**
667
+ * Makes the field unmodifiable by user action. The input area is not editable, and triggers
668
+ * are unresponsive.
669
+ * ...
670
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/Scheduler/widget/ProjectCombo#config-readOnly)
671
+ */
672
+ readOnly ? : boolean
673
+ relayStoreEvents ? : boolean
674
+ /**
675
+ * Predefined style to use for the field. Possible values are:
676
+ * ...
677
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/Scheduler/widget/ProjectCombo#config-rendition)
678
+ */
679
+ rendition ? : 'outlined'|'filled'|string
680
+ /**
681
+ * Configure as `true` to indicate that a `null` field value is to be marked as invalid. This will
682
+ * optionally append a * to the field label if [showRequiredIndicator](https://bryntum.com/products/taskboard/docs/api/Core/widget/Field#property-showRequiredIndicator) is set.
683
+ */
684
+ required ? : boolean
685
+ /**
686
+ * 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
687
+ * the `ESCAPE` key after editing the field will revert the field to the value it had when
688
+ * 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)
689
+ * behaviour will be activated.
690
+ */
691
+ revertOnEscape ? : boolean
692
+ /**
693
+ * Configure as `true` to have the component display a translucent ripple when its
694
+ * [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
695
+ * current theme supports ripples</em>. Out of the box, only the Material theme supports ripples.
696
+ * ...
697
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/Scheduler/widget/ProjectCombo#config-ripple)
698
+ */
699
+ ripple ? : boolean|{
700
+ delegate?: string
701
+ color?: string
702
+ radius?: number
703
+ clip?: string
704
+ }
705
+ /**
706
+ * 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`
707
+ */
708
+ rootElement ? : ShadowRoot|HTMLElement
709
+ /**
710
+ * This may be configured as `true` to make the widget's element use the `direction:rtl` style.
711
+ * ...
712
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/Scheduler/widget/ProjectCombo#config-rtl)
713
+ */
714
+ rtl ? : boolean
715
+ /**
716
+ * Defines what to do if document is scrolled while Widget is visible (only relevant when floating is set to `true`).
717
+ * Valid values: ´null´: do nothing, ´hide´: hide the widget or ´realign´: realign to the target if possible.
718
+ */
719
+ scrollAction ? : 'hide'|'realign'|null
720
+ /**
721
+ * *Only valid if this Widget is [floating](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#config-floating).*
722
+ * ...
723
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/Scheduler/widget/ProjectCombo#config-showAnimation)
724
+ */
725
+ showAnimation ? : boolean|object
726
+ /**
727
+ * `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).
728
+ */
729
+ showRequiredIndicator ? : string
730
+ /**
731
+ * 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)
732
+ */
733
+ showTooltipWhenDisabled ? : boolean
734
+ /**
735
+ * Set to `true`, completely bypasses validation logic (could be userful if your field is not `editable`
736
+ * to the user).
737
+ */
738
+ skipValidation ? : boolean
739
+ /**
740
+ * Programmatic control over how many columns to span when used in a grid layout.
741
+ */
742
+ span ? : number
743
+ /**
744
+ * Sets the native `spellcheck` property of the underlying input element. For more information, please refer to
745
+ * [MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/spellcheck)
746
+ */
747
+ spellCheck ? : boolean
748
+ /**
749
+ * Store used to populate items. Also accepts a Store config object
750
+ */
751
+ store ? : Store|StoreConfig
752
+ /**
753
+ * 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
754
+ * [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
755
+ * this widget:
756
+ * ...
757
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/Scheduler/widget/ProjectCombo#config-tab)
758
+ */
759
+ tab ? : boolean|TabConfig
760
+ /**
761
+ * The tab index of the input field or fields, or `null` for natural tab order (recommended). Setting to `0`
762
+ * is equivalent to natural tab order, but is unnecessary for fields since they are naturally tabbable
763
+ * (i.e., accessible via the TAB key). Setting to `-1` disables tabbability but allows for focus to be set
764
+ * to the element programmatically.
765
+ * ...
766
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/Scheduler/widget/ProjectCombo#config-tabIndex)
767
+ */
768
+ tabIndex ? : number
769
+ /**
770
+ * Text alignment: 'left', 'center' or 'right'. Also accepts direction neutral 'start' and 'end'.
771
+ * ...
772
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/Scheduler/widget/ProjectCombo#config-textAlign)
773
+ */
774
+ textAlign ? : 'left'|'center'|'right'|'start'|'end'
775
+ /**
776
+ * A title to display for the widget. Only in effect when inside a container that uses it (such as TabPanel)
777
+ */
778
+ title ? : string
779
+ /**
780
+ * Tooltip for the widget, either as a string or as a Tooltip config object.
781
+ * ...
782
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/Scheduler/widget/ProjectCombo#config-tooltip)
783
+ */
784
+ tooltip ? : string|TooltipConfig|null
785
+ /**
786
+ * How to query the store upon click of the expand trigger. Specify one of these values:
787
+ * ...
788
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/Scheduler/widget/ProjectCombo#config-triggerAction)
789
+ */
790
+ triggerAction ? : 'all'|'last'|null
791
+ /**
792
+ * The triggers to add either before or after the input field. Each property name is the reference by which
793
+ * an instantiated Trigger Widget may be retrieved from the live `triggers` property.
794
+ * ...
795
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/Scheduler/widget/ProjectCombo#config-triggers)
796
+ */
797
+ triggers ? : Record<string, FieldTriggerConfig>|Record<string, Widget>
798
+ type ? : 'projectcombo'
799
+ /**
800
+ * Custom CSS class name suffixes to apply to the elements rendered by this widget. This may be specified
801
+ * as a space separated string, an array of strings, or as an object in which property names with truthy
802
+ * values are used as the class names.
803
+ * ...
804
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/Scheduler/widget/ProjectCombo#config-ui)
805
+ */
806
+ ui ? : string|object
807
+ /**
808
+ * `true` to cause the field to be in an invalid state while the typed filter string does not match a record in the store.
809
+ */
810
+ validateFilter ? : boolean
811
+ /**
812
+ * Set to `false` to not highlight a field as invalid while typing, to instead show it on ENTER key press
813
+ * or similar.
814
+ */
815
+ validateOnInput ? : boolean
816
+ /**
817
+ * The initial value of this Combo box. In single select mode (default) it's a simple string value, for
818
+ * [multiSelect](https://bryntum.com/products/taskboard/docs/api/Core/widget/Combo#config-multiSelect) mode, it should be an array of record ids.
819
+ */
820
+ value ? : string|number|string[]|number[]
821
+ /**
822
+ * Field used as projects load url.
823
+ */
824
+ valueField ? : string
825
+ /**
826
+ * A widgets weight determines its position among siblings when added to a [Container](https://bryntum.com/products/taskboard/docs/api/Core/widget/Container).
827
+ * Higher weights go further down.
828
+ */
829
+ weight ? : number
830
+ /**
831
+ * Widget's width, used to set element `style.width`. Either specify a valid width string or a number, which
832
+ * will get 'px' appended. We recommend using CSS as the primary way to control width, but in some cases
833
+ * this config is convenient.
834
+ */
835
+ width ? : string|number
836
+ /**
837
+ * The x position for the widget.
838
+ * ...
839
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/Scheduler/widget/ProjectCombo#config-x)
840
+ */
841
+ x ? : number
842
+ /**
843
+ * The y position for the widget.
844
+ * ...
845
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/Scheduler/widget/ProjectCombo#config-y)
846
+ */
847
+ y ? : number
848
+
849
+ }
850
+
851
+ @Component({
852
+ selector : 'bryntum-scheduler-project-combo',
853
+ template : ''
854
+ })
855
+ export class BryntumSchedulerProjectComboComponent implements OnInit, OnDestroy {
856
+
857
+ public static instanceClass = SchedulerProjectCombo;
858
+
859
+ public static instanceName = 'SchedulerProjectCombo';
860
+
861
+ private static bryntumEvents: string[] = [
862
+ 'onAction',
863
+ 'onBeforeDestroy',
864
+ 'onBeforeHide',
865
+ 'onBeforeShow',
866
+ 'onCatchAll',
867
+ 'onChange',
868
+ 'onClear',
869
+ 'onDestroy',
870
+ 'onElementCreated',
871
+ 'onFocusIn',
872
+ 'onFocusOut',
873
+ 'onHide',
874
+ 'onInput',
875
+ 'onPaint',
876
+ 'onReadOnly',
877
+ 'onRecompose',
878
+ 'onResize',
879
+ 'onSelect',
880
+ 'onShow',
881
+ 'onTrigger'
882
+ ];
883
+
884
+ private static bryntumFeatureNames: string[] = [
885
+
886
+ ];
887
+
888
+ private static bryntumConfigs: string[] = BryntumSchedulerProjectComboComponent.bryntumFeatureNames.concat([
889
+ 'adopt',
890
+ 'align',
891
+ 'alignSelf',
892
+ 'anchor',
893
+ 'appendTo',
894
+ 'ariaDescription',
895
+ 'ariaLabel',
896
+ 'autoComplete',
897
+ 'autoExpand',
898
+ 'autoSelect',
899
+ 'badge',
900
+ 'bubbleEvents',
901
+ 'cacheLastResult',
902
+ 'callOnFunctions',
903
+ 'caseSensitive',
904
+ 'catchEventHandlerExceptions',
905
+ 'centered',
906
+ 'chipView',
907
+ 'clearable',
908
+ 'clearTextOnPickerHide',
909
+ 'clearTextOnSelection',
910
+ 'clearWhenInputEmpty',
911
+ 'cls',
912
+ 'color',
913
+ 'column',
914
+ 'config',
915
+ 'constrainTo',
916
+ 'container',
917
+ 'containValues',
918
+ 'contentElementCls',
919
+ 'createOnUnmatched',
920
+ 'dataField',
921
+ 'dataset',
922
+ 'defaultBindProperty',
923
+ 'detectCSSCompatibilityIssues',
924
+ 'disabled',
925
+ 'displayField',
926
+ 'displayValueRenderer',
927
+ 'dock',
928
+ 'draggable',
929
+ 'editable',
930
+ 'elementAttributes',
931
+ 'emptyText',
932
+ 'encodeFilterParams',
933
+ 'extraData',
934
+ 'filterOnEnter',
935
+ 'filterOperator',
936
+ 'filterParamName',
937
+ 'filterSelected',
938
+ 'flex',
939
+ 'floating',
940
+ 'height',
941
+ 'hidden',
942
+ 'hideAnimation',
943
+ 'hidePickerOnSelect',
944
+ 'hideTrigger',
945
+ 'highlightExternalChange',
946
+ 'hint',
947
+ 'hintHtml',
948
+ 'id',
949
+ 'ignoreParentReadOnly',
950
+ 'inline',
951
+ 'inlinePicker',
952
+ 'inputAlign',
953
+ 'inputAttributes',
954
+ 'inputTag',
955
+ 'inputType',
956
+ 'inputWidth',
957
+ 'insertBefore',
958
+ 'insertFirst',
959
+ 'items',
960
+ 'keyMap',
961
+ 'keyStrokeChangeDelay',
962
+ 'keyStrokeFilterDelay',
963
+ 'label',
964
+ 'labelCls',
965
+ 'labelPosition',
966
+ 'labels',
967
+ 'labelWidth',
968
+ 'listCls',
969
+ 'listeners',
970
+ 'listItemTpl',
971
+ 'localeClass',
972
+ 'localizable',
973
+ 'localizableProperties',
974
+ 'margin',
975
+ 'maskDefaults',
976
+ 'masked',
977
+ 'maxHeight',
978
+ 'maximizeOnMobile',
979
+ 'maxLength',
980
+ 'maxWidth',
981
+ 'minChars',
982
+ 'minHeight',
983
+ 'minLength',
984
+ 'minWidth',
985
+ 'monitorResize',
986
+ 'multiSelect',
987
+ 'multiValueSeparator',
988
+ 'name',
989
+ 'overlayAnchor',
990
+ 'owner',
991
+ 'picker',
992
+ 'pickerAlignElement',
993
+ 'pickerWidth',
994
+ 'placeholder',
995
+ 'positioned',
996
+ 'preventTooltipOnTouch',
997
+ 'primaryFilter',
998
+ 'project',
999
+ 'readOnly',
1000
+ 'relayStoreEvents',
1001
+ 'rendition',
1002
+ 'required',
1003
+ 'revertOnEscape',
1004
+ 'ripple',
1005
+ 'rootElement',
1006
+ 'rtl',
1007
+ 'scrollAction',
1008
+ 'showAnimation',
1009
+ 'showRequiredIndicator',
1010
+ 'showTooltipWhenDisabled',
1011
+ 'skipValidation',
1012
+ 'span',
1013
+ 'spellCheck',
1014
+ 'store',
1015
+ 'tab',
1016
+ 'tabIndex',
1017
+ 'textAlign',
1018
+ 'title',
1019
+ 'tooltip',
1020
+ 'triggerAction',
1021
+ 'triggers',
1022
+ 'type',
1023
+ 'ui',
1024
+ 'validateFilter',
1025
+ 'validateOnInput',
1026
+ 'value',
1027
+ 'valueField',
1028
+ 'weight',
1029
+ 'width',
1030
+ 'x',
1031
+ 'y'
1032
+ ]);
1033
+
1034
+ private static bryntumConfigsOnly: string[] = [
1035
+ 'adopt',
1036
+ 'align',
1037
+ 'anchor',
1038
+ 'ariaDescription',
1039
+ 'ariaLabel',
1040
+ 'autoComplete',
1041
+ 'autoExpand',
1042
+ 'autoSelect',
1043
+ 'bubbleEvents',
1044
+ 'cacheLastResult',
1045
+ 'caseSensitive',
1046
+ 'centered',
1047
+ 'chipView',
1048
+ 'clearable',
1049
+ 'clearTextOnPickerHide',
1050
+ 'clearTextOnSelection',
1051
+ 'clearWhenInputEmpty',
1052
+ 'color',
1053
+ 'config',
1054
+ 'constrainTo',
1055
+ 'container',
1056
+ 'containValues',
1057
+ 'contentElementCls',
1058
+ 'createOnUnmatched',
1059
+ 'dataField',
1060
+ 'defaultBindProperty',
1061
+ 'detectCSSCompatibilityIssues',
1062
+ 'displayField',
1063
+ 'displayValueRenderer',
1064
+ 'dock',
1065
+ 'draggable',
1066
+ 'elementAttributes',
1067
+ 'emptyText',
1068
+ 'encodeFilterParams',
1069
+ 'filterOnEnter',
1070
+ 'filterParamName',
1071
+ 'filterSelected',
1072
+ 'floating',
1073
+ 'hideAnimation',
1074
+ 'hidePickerOnSelect',
1075
+ 'hideTrigger',
1076
+ 'highlightExternalChange',
1077
+ 'hint',
1078
+ 'hintHtml',
1079
+ 'ignoreParentReadOnly',
1080
+ 'inline',
1081
+ 'inlinePicker',
1082
+ 'inputAlign',
1083
+ 'inputAttributes',
1084
+ 'inputTag',
1085
+ 'inputType',
1086
+ 'inputWidth',
1087
+ 'items',
1088
+ 'keyStrokeChangeDelay',
1089
+ 'keyStrokeFilterDelay',
1090
+ 'labelCls',
1091
+ 'labelPosition',
1092
+ 'labels',
1093
+ 'labelWidth',
1094
+ 'listCls',
1095
+ 'listeners',
1096
+ 'listItemTpl',
1097
+ 'localeClass',
1098
+ 'localizable',
1099
+ 'localizableProperties',
1100
+ 'maskDefaults',
1101
+ 'masked',
1102
+ 'maxLength',
1103
+ 'minChars',
1104
+ 'minLength',
1105
+ 'monitorResize',
1106
+ 'multiValueSeparator',
1107
+ 'name',
1108
+ 'overlayAnchor',
1109
+ 'owner',
1110
+ 'pickerAlignElement',
1111
+ 'pickerWidth',
1112
+ 'positioned',
1113
+ 'preventTooltipOnTouch',
1114
+ 'primaryFilter',
1115
+ 'project',
1116
+ 'relayStoreEvents',
1117
+ 'revertOnEscape',
1118
+ 'ripple',
1119
+ 'rootElement',
1120
+ 'scrollAction',
1121
+ 'showAnimation',
1122
+ 'showTooltipWhenDisabled',
1123
+ 'skipValidation',
1124
+ 'spellCheck',
1125
+ 'tab',
1126
+ 'tabIndex',
1127
+ 'textAlign',
1128
+ 'title',
1129
+ 'triggerAction',
1130
+ 'type',
1131
+ 'ui',
1132
+ 'validateFilter',
1133
+ 'validateOnInput',
1134
+ 'valueField',
1135
+ 'weight'
1136
+ ];
1137
+
1138
+ private static bryntumProps: string[] = BryntumSchedulerProjectComboComponent.bryntumFeatureNames.concat([
1139
+ 'alignSelf',
1140
+ 'anchorSize',
1141
+ 'appendTo',
1142
+ 'badge',
1143
+ 'callOnFunctions',
1144
+ 'catchEventHandlerExceptions',
1145
+ 'cls',
1146
+ 'column',
1147
+ 'content',
1148
+ 'dataset',
1149
+ 'disabled',
1150
+ 'editable',
1151
+ 'extraData',
1152
+ 'filterOperator',
1153
+ 'flex',
1154
+ 'focusVisible',
1155
+ 'formula',
1156
+ 'height',
1157
+ 'hidden',
1158
+ 'html',
1159
+ 'id',
1160
+ 'input',
1161
+ 'insertBefore',
1162
+ 'insertFirst',
1163
+ 'keyMap',
1164
+ 'label',
1165
+ 'margin',
1166
+ 'maxHeight',
1167
+ 'maximizeOnMobile',
1168
+ 'maxWidth',
1169
+ 'minHeight',
1170
+ 'minWidth',
1171
+ 'multiSelect',
1172
+ 'parent',
1173
+ 'picker',
1174
+ 'placeholder',
1175
+ 'readOnly',
1176
+ 'rendition',
1177
+ 'required',
1178
+ 'rtl',
1179
+ 'scrollable',
1180
+ 'showRequiredIndicator',
1181
+ 'span',
1182
+ 'store',
1183
+ 'tooltip',
1184
+ 'triggers',
1185
+ 'value',
1186
+ 'width',
1187
+ 'x',
1188
+ 'y'
1189
+ ]);
1190
+
1191
+ private elementRef: ElementRef;
1192
+ public instance!: SchedulerProjectCombo;
1193
+
1194
+ private bryntumConfig = {
1195
+ adopt : undefined,
1196
+ appendTo : undefined,
1197
+ href : undefined,
1198
+ angularComponent : this,
1199
+ features : {},
1200
+ listeners : {}
1201
+ };
1202
+
1203
+ constructor(element: ElementRef) {
1204
+ this.elementRef = element;
1205
+ }
1206
+
1207
+ // Configs only
1208
+ @Input() adopt ! : HTMLElement|string;
1209
+ @Input() align ! : AlignSpec|string;
1210
+ @Input() anchor ! : boolean;
1211
+ @Input() ariaDescription ! : string;
1212
+ @Input() ariaLabel ! : string;
1213
+ @Input() autoComplete ! : string;
1214
+ @Input() autoExpand ! : boolean;
1215
+ @Input() autoSelect ! : boolean;
1216
+ @Input() bubbleEvents ! : object;
1217
+ @Input() cacheLastResult ! : number|string|Duration|DurationConfig;
1218
+ @Input() caseSensitive ! : boolean;
1219
+ @Input() centered ! : boolean;
1220
+ @Input() chipView ! : ChipViewConfig;
1221
+ @Input() clearable ! : boolean|FieldTriggerConfig;
1222
+ @Input() clearTextOnPickerHide ! : boolean;
1223
+ @Input() clearTextOnSelection ! : boolean;
1224
+ @Input() clearWhenInputEmpty ! : boolean;
1225
+ @Input() color ! : string;
1226
+ @Input() config ! : object;
1227
+ @Input() constrainTo ! : HTMLElement|Widget|Rectangle;
1228
+ @Input() container ! : Record<string, ContainerItemConfig>|ContainerItemConfig[]|FieldContainerConfig|FieldContainer;
1229
+ @Input() containValues ! : boolean|string|((field: Field) => boolean);
1230
+ @Input() contentElementCls ! : string|object;
1231
+ @Input() createOnUnmatched ! : ((name: string, combo: Combo) => Model)|string|boolean;
1232
+ @Input() dataField ! : string;
1233
+ @Input() defaultBindProperty ! : string;
1234
+ @Input() detectCSSCompatibilityIssues ! : boolean;
1235
+ @Input() displayField ! : string;
1236
+ @Input() displayValueRenderer ! : (record: Model|ComboModel, combo: Combo) => string|void;
1237
+ @Input() dock ! : 'top'|'bottom'|'left'|'right'|'start'|'end'|'header'|'pre-header'|object;
1238
+ @Input() draggable ! : boolean|{
1239
+ handleSelector?: string
1240
+ };
1241
+ @Input() elementAttributes ! : Record<string, string|null>;
1242
+ @Input() emptyText ! : string;
1243
+ @Input() encodeFilterParams ! : (filters: object[]) => object[];
1244
+ @Input() filterOnEnter ! : boolean;
1245
+ @Input() filterParamName ! : string;
1246
+ @Input() filterSelected ! : boolean;
1247
+ @Input() floating ! : boolean;
1248
+ @Input() hideAnimation ! : boolean|object;
1249
+ @Input() hidePickerOnSelect ! : boolean;
1250
+ @Input() hideTrigger ! : boolean;
1251
+ @Input() highlightExternalChange ! : boolean;
1252
+ @Input() hint ! : string|((data: { source: Field, value: any }) => string);
1253
+ @Input() hintHtml ! : string|((data: { source: Field, value: any }) => string);
1254
+ @Input() ignoreParentReadOnly ! : boolean;
1255
+ @Input() inline ! : boolean;
1256
+ @Input() inlinePicker ! : boolean;
1257
+ @Input() inputAlign ! : string;
1258
+ @Input() inputAttributes ! : Record<string, string>;
1259
+ @Input() inputTag ! : string;
1260
+ @Input() inputType ! : string;
1261
+ @Input() inputWidth ! : string|number;
1262
+ @Input() items ! : object[]|string[]|object;
1263
+ @Input() keyStrokeChangeDelay ! : number;
1264
+ @Input() keyStrokeFilterDelay ! : number;
1265
+ @Input() labelCls ! : string|object;
1266
+ @Input() labelPosition ! : 'before'|'above'|null;
1267
+ @Input() labels ! : object[];
1268
+ @Input() labelWidth ! : string|number;
1269
+ @Input() listCls ! : string;
1270
+ @Input() listeners ! : SchedulerProjectComboListeners;
1271
+ @Input() listItemTpl ! : (record: Model|ComboModel) => string|void;
1272
+ @Input() localeClass ! : typeof Base;
1273
+ @Input() localizable ! : boolean;
1274
+ @Input() localizableProperties ! : string[];
1275
+ @Input() maskDefaults ! : MaskConfig;
1276
+ @Input() masked ! : boolean|string|MaskConfig;
1277
+ @Input() maxLength ! : number;
1278
+ @Input() minChars ! : number;
1279
+ @Input() minLength ! : number;
1280
+ @Input() monitorResize ! : boolean|{
1281
+ immediate?: boolean
1282
+ };
1283
+ @Input() multiValueSeparator ! : string;
1284
+ @Input() name ! : string;
1285
+ @Input() overlayAnchor ! : boolean;
1286
+ @Input() owner ! : Widget|any;
1287
+ @Input() pickerAlignElement ! : string;
1288
+ @Input() pickerWidth ! : number|string;
1289
+ @Input() positioned ! : boolean;
1290
+ @Input() preventTooltipOnTouch ! : boolean;
1291
+ @Input() primaryFilter ! : CollectionFilterConfig;
1292
+ @Input() project ! : SchedulerProjectModel|object;
1293
+ @Input() relayStoreEvents ! : boolean;
1294
+ @Input() revertOnEscape ! : boolean;
1295
+ @Input() ripple ! : boolean|{
1296
+ delegate?: string
1297
+ color?: string
1298
+ radius?: number
1299
+ clip?: string
1300
+ };
1301
+ @Input() rootElement ! : ShadowRoot|HTMLElement;
1302
+ @Input() scrollAction ! : 'hide'|'realign'|null;
1303
+ @Input() showAnimation ! : boolean|object;
1304
+ @Input() showTooltipWhenDisabled ! : boolean;
1305
+ @Input() skipValidation ! : boolean;
1306
+ @Input() spellCheck ! : boolean;
1307
+ @Input() tab ! : boolean|TabConfig;
1308
+ @Input() tabIndex ! : number;
1309
+ @Input() textAlign ! : 'left'|'center'|'right'|'start'|'end';
1310
+ @Input() title ! : string;
1311
+ @Input() triggerAction ! : 'all'|'last'|null;
1312
+ @Input() type ! : 'projectcombo';
1313
+ @Input() ui ! : string|object;
1314
+ @Input() validateFilter ! : boolean;
1315
+ @Input() validateOnInput ! : boolean;
1316
+ @Input() valueField ! : string;
1317
+ @Input() weight ! : number;
1318
+
1319
+ // Configs and properties
1320
+ @Input() alignSelf ! : string;
1321
+ @Input() appendTo ! : HTMLElement|string;
1322
+ @Input() badge ! : string;
1323
+ @Input() callOnFunctions ! : boolean;
1324
+ @Input() catchEventHandlerExceptions ! : boolean;
1325
+ @Input() cls ! : string|object;
1326
+ @Input() column ! : number;
1327
+ @Input() dataset ! : object|Record<string, string>;
1328
+ @Input() disabled ! : boolean|'inert';
1329
+ @Input() editable ! : boolean;
1330
+ @Input() extraData ! : any;
1331
+ @Input() filterOperator ! : CollectionCompareOperator;
1332
+ @Input() flex ! : number|string;
1333
+ @Input() height ! : number|string;
1334
+ @Input() hidden ! : boolean;
1335
+ @Input() id ! : string;
1336
+ @Input() insertBefore ! : HTMLElement|string;
1337
+ @Input() insertFirst ! : HTMLElement|string;
1338
+ @Input() keyMap ! : Record<string, KeyMapConfig>;
1339
+ @Input() label ! : string;
1340
+ @Input() margin ! : number|string;
1341
+ @Input() maxHeight ! : string|number;
1342
+ @Input() maximizeOnMobile ! : number|string;
1343
+ @Input() maxWidth ! : string|number;
1344
+ @Input() minHeight ! : string|number;
1345
+ @Input() minWidth ! : string|number;
1346
+ @Input() multiSelect ! : boolean;
1347
+ @Input() picker ! : ListConfig|List;
1348
+ @Input() placeholder ! : string;
1349
+ @Input() readOnly ! : boolean;
1350
+ @Input() rendition ! : 'outlined'|'filled'|string;
1351
+ @Input() required ! : boolean;
1352
+ @Input() rtl ! : boolean;
1353
+ @Input() showRequiredIndicator ! : string;
1354
+ @Input() span ! : number;
1355
+ @Input() store ! : Store|StoreConfig;
1356
+ @Input() tooltip ! : string|TooltipConfig|null;
1357
+ @Input() triggers ! : Record<string, FieldTriggerConfig>|Record<string, Widget>;
1358
+ @Input() value ! : object|number|string|string[]|number[];
1359
+ @Input() width ! : number|string;
1360
+ @Input() x ! : number;
1361
+ @Input() y ! : number;
1362
+
1363
+ // Properties only
1364
+ @Input() anchorSize ! : number[];
1365
+ @Input() content ! : string;
1366
+ @Input() focusVisible ! : boolean;
1367
+ @Input() formula ! : string;
1368
+ @Input() html ! : string|((widget: Widget) => string)|DomConfig|DomConfig[]|VueConfig;
1369
+ @Input() input ! : HTMLElement;
1370
+ @Input() parent ! : Widget;
1371
+ @Input() scrollable ! : Scroller;
1372
+
1373
+ // Events emitters
1374
+ /**
1375
+ * The default action was performed (an item in the list was selected)
1376
+ * @param {object} event Event object
1377
+ * @param {Core.widget.Combo} event.source The combo
1378
+ * @param {any} event.value The [value](https://bryntum.com/products/taskboard/docs/api/Core/widget/Combo#config-valueField) of the selected record
1379
+ * @param {Core.data.Model} event.record Selected record
1380
+ * @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`
1381
+ * @param {boolean} event.userAction `true` if the value change is due to user interaction
1382
+ */
1383
+ @Output() onAction: any = new EventEmitter<((event: { source: Combo, value: any, record: Model, records: Model[], userAction: boolean }) => void)|string>();
1384
+ /**
1385
+ * Fires before an object is destroyed.
1386
+ * @param {object} event Event object
1387
+ * @param {Core.Base} event.source The Object that is being destroyed.
1388
+ */
1389
+ @Output() onBeforeDestroy: any = new EventEmitter<((event: { source: Base }) => void)|string>();
1390
+ /**
1391
+ * Triggered before a widget is hidden. Return `false` to prevent the action.
1392
+ * @param {object} event Event object
1393
+ * @param {Core.widget.Widget} event.source The widget being hidden.
1394
+ */
1395
+ @Output() onBeforeHide: any = new EventEmitter<((event: { source: Widget }) => Promise<boolean>|boolean|void)|string>();
1396
+ /**
1397
+ * Triggered before a widget is shown. Return `false` to prevent the action.
1398
+ * @param {object} event Event object
1399
+ * @param {Core.widget.Widget,any} event.source The widget being shown
1400
+ */
1401
+ @Output() onBeforeShow: any = new EventEmitter<((event: { source: Widget|any }) => Promise<boolean>|boolean|void)|string>();
1402
+ /**
1403
+ * Fires when any other event is fired from the object.
1404
+ * ...
1405
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/Scheduler/widget/ProjectCombo#event-catchAll)
1406
+ * @param {object} event Event object
1407
+ * @param {{[key: string]: any, type: string}} event.event The Object that contains event details
1408
+ * @param {string} event.event.type The type of the event which is caught by the listener
1409
+ */
1410
+ @Output() onCatchAll: any = new EventEmitter<((event: {[key: string]: any, type: string}) => void)|string>();
1411
+ /**
1412
+ * Fired when this field's value changes.
1413
+ * @param {object} event Event object
1414
+ * @param {Core.widget.Field,any} event.source This Field
1415
+ * @param {string,number,boolean,any} event.value This field's value
1416
+ * @param {string,number,boolean,any} event.oldValue This field's previous value
1417
+ * @param {boolean} event.valid True if this field is in a valid state
1418
+ * @param {Event} event.event The triggering DOM event if any
1419
+ * @param {boolean} event.userAction Triggered by user taking an action (`true`) or by setting a value (`false`)
1420
+ * @param {boolean} event.checked
1421
+ */
1422
+ @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>();
1423
+ /**
1424
+ * Fired when this field is [cleared](https://bryntum.com/products/taskboard/docs/api/Core/widget/Field#function-clear).
1425
+ * ...
1426
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/Scheduler/widget/ProjectCombo#event-clear)
1427
+ * @param {object} event Event object
1428
+ * @param {Core.widget.Field,any} event.source This Field
1429
+ */
1430
+ @Output() onClear: any = new EventEmitter<((event: { source: Field|any }) => void)|string>();
1431
+ /**
1432
+ * Fires when an object is destroyed.
1433
+ * @param {object} event Event object
1434
+ * @param {Core.Base} event.source The Object that is being destroyed.
1435
+ */
1436
+ @Output() onDestroy: any = new EventEmitter<((event: { source: Base }) => void)|string>();
1437
+ /**
1438
+ * Triggered when a widget's [element](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#property-element) is available.
1439
+ * @param {object} event Event object
1440
+ * @param {HTMLElement} event.element The Widget's element.
1441
+ */
1442
+ @Output() onElementCreated: any = new EventEmitter<((event: { element: HTMLElement }) => void)|string>();
1443
+ /**
1444
+ * Fired when focus enters this Widget.
1445
+ * @param {object} event Event object
1446
+ * @param {Core.widget.Widget} event.source This Widget
1447
+ * @param {HTMLElement} event.fromElement The element which lost focus.
1448
+ * @param {HTMLElement} event.toElement The element which gained focus.
1449
+ * @param {Core.widget.Widget} event.fromWidget The widget which lost focus.
1450
+ * @param {Core.widget.Widget} event.toWidget The widget which gained focus.
1451
+ * @param {boolean} event.backwards `true` if the `toElement` is before the `fromElement` in document order.
1452
+ */
1453
+ @Output() onFocusIn: any = new EventEmitter<((event: { source: Widget, fromElement: HTMLElement, toElement: HTMLElement, fromWidget: Widget, toWidget: Widget, backwards: boolean }) => void)|string>();
1454
+ /**
1455
+ * Fired when focus exits this Widget's ownership tree. This is different from a `blur` event.
1456
+ * focus moving from within this Widget's ownership tree, even if there are floating widgets
1457
+ * will not trigger this event. This is when focus exits this widget completely.
1458
+ * @param {object} event Event object
1459
+ * @param {Core.widget.Widget} event.source This Widget
1460
+ * @param {HTMLElement} event.fromElement The element which lost focus.
1461
+ * @param {HTMLElement} event.toElement The element which gained focus.
1462
+ * @param {Core.widget.Widget} event.fromWidget The widget which lost focus.
1463
+ * @param {Core.widget.Widget} event.toWidget The widget which gained focus.
1464
+ * @param {boolean} event.backwards `true` if the `toElement` is before the `fromElement` in document order.
1465
+ */
1466
+ @Output() onFocusOut: any = new EventEmitter<((event: { source: Widget, fromElement: HTMLElement, toElement: HTMLElement, fromWidget: Widget, toWidget: Widget, backwards: boolean }) => void)|string>();
1467
+ /**
1468
+ * Triggered after a widget was hidden
1469
+ * @param {object} event Event object
1470
+ * @param {Core.widget.Widget} event.source The widget
1471
+ */
1472
+ @Output() onHide: any = new EventEmitter<((event: { source: Widget }) => void)|string>();
1473
+ /**
1474
+ * User typed into the field. Please note that the value attached to this event is the raw input field value and
1475
+ * not the combos value
1476
+ * @param {object} event Event object
1477
+ * @param {Core.widget.Combo} event.source The combo.
1478
+ * @param {string} event.value Raw input value
1479
+ * @param {Event} event.event The triggering DOM event if any.
1480
+ */
1481
+ @Output() onInput: any = new EventEmitter<((event: { source: Combo, value: string, event: Event }) => void)|string>();
1482
+ /**
1483
+ * Triggered when a widget which had been in a non-visible state for any reason
1484
+ * achieves visibility.
1485
+ * ...
1486
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/Scheduler/widget/ProjectCombo#event-paint)
1487
+ * @param {object} event Event object
1488
+ * @param {Core.widget.Widget} event.source The widget being painted.
1489
+ * @param {boolean} event.firstPaint `true` if this is the first paint.
1490
+ */
1491
+ @Output() onPaint: any = new EventEmitter<((event: { source: Widget, firstPaint: boolean }) => void)|string>();
1492
+ /**
1493
+ * Fired when a Widget's read only state is toggled
1494
+ * @param {object} event Event object
1495
+ * @param {boolean} event.readOnly Read only or not
1496
+ */
1497
+ @Output() onReadOnly: any = new EventEmitter<((event: { readOnly: boolean }) => void)|string>();
1498
+ /**
1499
+ * This event is fired after a widget's elements have been synchronized due to a direct or indirect call
1500
+ * 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.
1501
+ */
1502
+ @Output() onRecompose: any = new EventEmitter<(() => void)|string>();
1503
+ /**
1504
+ * 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`*.
1505
+ * @param {object} event Event object
1506
+ * @param {Core.widget.Widget} event.source This Widget
1507
+ * @param {number} event.width The new width
1508
+ * @param {number} event.height The new height
1509
+ * @param {number} event.oldWidth The old width
1510
+ * @param {number} event.oldHeight The old height
1511
+ */
1512
+ @Output() onResize: any = new EventEmitter<((event: { source: Widget, width: number, height: number, oldWidth: number, oldHeight: number }) => void)|string>();
1513
+ /**
1514
+ * An item in the list was selected
1515
+ * @param {object} event Event object
1516
+ * @param {Core.widget.Combo} event.source The combo
1517
+ * @param {Core.data.Model} event.record Selected record
1518
+ * @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`
1519
+ * @param {boolean} event.userAction `true` if the value change is due to user interaction
1520
+ */
1521
+ @Output() onSelect: any = new EventEmitter<((event: { source: Combo, record: Model, records: Model[], userAction: boolean }) => void)|string>();
1522
+ /**
1523
+ * Triggered after a widget is shown.
1524
+ * @param {object} event Event object
1525
+ * @param {Core.widget.Widget} event.source The widget
1526
+ */
1527
+ @Output() onShow: any = new EventEmitter<((event: { source: Widget }) => void)|string>();
1528
+ /**
1529
+ * User clicked one of this field's [triggers](https://bryntum.com/products/taskboard/docs/api/Core/widget/Field#property-triggers)
1530
+ * @param {object} event Event object
1531
+ * @param {Core.widget.Field,any} event.source This field
1532
+ * @param {Core.widget.Widget} event.trigger The trigger activated by click or touch tap.
1533
+ */
1534
+ @Output() onTrigger: any = new EventEmitter<((event: { source: Field|any, trigger: Widget }) => void)|string>();
1535
+
1536
+ /**
1537
+ * Create and append the underlying widget
1538
+ */
1539
+ ngOnInit(): void {
1540
+ const
1541
+ me = this,
1542
+ {
1543
+ elementRef,
1544
+ bryntumConfig
1545
+ } = me,
1546
+ {
1547
+ instanceClass,
1548
+ instanceName,
1549
+ bryntumConfigs,
1550
+ bryntumEvents
1551
+ } = BryntumSchedulerProjectComboComponent;
1552
+
1553
+ bryntumConfigs.filter(prop => prop in this).forEach(prop => {
1554
+ // @ts-ignore
1555
+ WrapperHelper.applyPropValue(bryntumConfig, prop, this[prop]);
1556
+ if (['features', 'config'].includes(prop)) {
1557
+ WrapperHelper.devWarningConfigProp(instanceName, prop);
1558
+ }
1559
+ });
1560
+ // @ts-ignore
1561
+ bryntumEvents.filter(event => this[event] && this[event].observers.length > 0).forEach(event => {
1562
+ const
1563
+ uncapitalize = (str: string) => str.charAt(0).toLowerCase() + str.slice(1),
1564
+ eventName = (str: string) => uncapitalize(str.slice(2));
1565
+
1566
+ // @ts-ignore
1567
+ bryntumConfig.listeners[eventName(event)] = e => {
1568
+ // @ts-ignore
1569
+ me[event].emit(e);
1570
+ // EventEmitter does not return values in the normal way, work around it by setting `returnValue` flag
1571
+ // in Angular listeners
1572
+ return e.returnValue;
1573
+ };
1574
+ });
1575
+
1576
+ // If component has no container specified in config then use adopt to Wrapper's element
1577
+ const
1578
+ containerParam = [
1579
+ 'adopt',
1580
+ 'appendTo',
1581
+ 'insertAfter',
1582
+ 'insertBefore'
1583
+ // @ts-ignore
1584
+ ].find(prop => bryntumConfig[prop]);
1585
+ if (!containerParam) {
1586
+ if (instanceName === 'Button' || elementRef.nativeElement.getRootNode() instanceof ShadowRoot) {
1587
+ // Button should always be <a> or <button> inside owner element
1588
+ bryntumConfig.appendTo = elementRef.nativeElement;
1589
+ }
1590
+ else {
1591
+ bryntumConfig.adopt = elementRef.nativeElement;
1592
+ }
1593
+ }
1594
+ else {
1595
+ WrapperHelper.devWarningContainer(instanceName, containerParam);
1596
+ }
1597
+
1598
+ // @ts-ignore
1599
+ me.instance = instanceName === 'Widget' ? Widget.create(bryntumConfig) : new instanceClass(bryntumConfig);
1600
+
1601
+ }
1602
+
1603
+ /**
1604
+ * Watch for changes
1605
+ * @param changes
1606
+ */
1607
+ ngOnChanges(changes: SimpleChanges): void {
1608
+ const
1609
+ { instance } = this,
1610
+ { instanceName } = BryntumSchedulerProjectComboComponent;
1611
+ if (!instance) {
1612
+ return;
1613
+ }
1614
+ // Iterate over all changes
1615
+ Object.entries(changes).forEach(([prop, change]) => {
1616
+ const
1617
+ newValue = (change as SimpleChange).currentValue,
1618
+ { instance } = this,
1619
+ { bryntumConfigsOnly, bryntumProps } = BryntumSchedulerProjectComboComponent;
1620
+ if (bryntumProps.includes(prop)) {
1621
+ WrapperHelper.applyPropValue(instance, prop, newValue, false);
1622
+ if (bryntumConfigsOnly.includes(prop)) {
1623
+ WrapperHelper.devWarningUpdateProp(instanceName, prop);
1624
+ }
1625
+ }
1626
+ });
1627
+ }
1628
+
1629
+ /**
1630
+ * Destroy the component
1631
+ */
1632
+ ngOnDestroy(): void {
1633
+ // @ts-ignore
1634
+ if (this.instance && this.instance.destroy) {
1635
+ this.instance.destroy();
1636
+ }
1637
+ }
1638
+ }