@bryntum/scheduler-react-thin 7.1.1

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