@bryntum/gantt-react 7.1.2 → 7.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (74) hide show
  1. package/README.md +12 -6
  2. package/lib/BryntumAssignmentGrid.d.ts +18 -8
  3. package/lib/BryntumAssignmentGrid.js +2 -0
  4. package/lib/BryntumAssignmentGrid.js.map +1 -1
  5. package/lib/BryntumAssignmentPicker.d.ts +253 -0
  6. package/lib/BryntumAssignmentPicker.js +182 -0
  7. package/lib/BryntumAssignmentPicker.js.map +1 -0
  8. package/lib/BryntumGantt.d.ts +18 -8
  9. package/lib/BryntumGantt.js +2 -0
  10. package/lib/BryntumGantt.js.map +1 -1
  11. package/lib/BryntumGanttBase.d.ts +18 -8
  12. package/lib/BryntumGanttBase.js +2 -0
  13. package/lib/BryntumGanttBase.js.map +1 -1
  14. package/lib/BryntumGrid.d.ts +18 -8
  15. package/lib/BryntumGrid.js +2 -0
  16. package/lib/BryntumGrid.js.map +1 -1
  17. package/lib/BryntumGridBase.d.ts +18 -8
  18. package/lib/BryntumGridBase.js +2 -0
  19. package/lib/BryntumGridBase.js.map +1 -1
  20. package/lib/BryntumResourceGrid.d.ts +18 -8
  21. package/lib/BryntumResourceGrid.js +2 -0
  22. package/lib/BryntumResourceGrid.js.map +1 -1
  23. package/lib/BryntumResourceHistogram.d.ts +18 -8
  24. package/lib/BryntumResourceHistogram.js +2 -0
  25. package/lib/BryntumResourceHistogram.js.map +1 -1
  26. package/lib/BryntumResourceUtilization.d.ts +18 -8
  27. package/lib/BryntumResourceUtilization.js +2 -0
  28. package/lib/BryntumResourceUtilization.js.map +1 -1
  29. package/lib/BryntumScheduler.d.ts +18 -8
  30. package/lib/BryntumScheduler.js +2 -0
  31. package/lib/BryntumScheduler.js.map +1 -1
  32. package/lib/BryntumSchedulerBase.d.ts +18 -8
  33. package/lib/BryntumSchedulerBase.js +2 -0
  34. package/lib/BryntumSchedulerBase.js.map +1 -1
  35. package/lib/BryntumSchedulerPro.d.ts +18 -8
  36. package/lib/BryntumSchedulerPro.js +2 -0
  37. package/lib/BryntumSchedulerPro.js.map +1 -1
  38. package/lib/BryntumSchedulerProBase.d.ts +18 -8
  39. package/lib/BryntumSchedulerProBase.js +2 -0
  40. package/lib/BryntumSchedulerProBase.js.map +1 -1
  41. package/lib/BryntumTimeline.d.ts +18 -8
  42. package/lib/BryntumTimeline.js +2 -0
  43. package/lib/BryntumTimeline.js.map +1 -1
  44. package/lib/BryntumTimelineHistogram.d.ts +18 -8
  45. package/lib/BryntumTimelineHistogram.js +2 -0
  46. package/lib/BryntumTimelineHistogram.js.map +1 -1
  47. package/lib/BryntumTreeGrid.d.ts +18 -8
  48. package/lib/BryntumTreeGrid.js +2 -0
  49. package/lib/BryntumTreeGrid.js.map +1 -1
  50. package/lib/BryntumVersionGrid.d.ts +18 -8
  51. package/lib/BryntumVersionGrid.js +2 -0
  52. package/lib/BryntumVersionGrid.js.map +1 -1
  53. package/lib/index.d.ts +1 -0
  54. package/lib/index.js +1 -0
  55. package/lib/index.js.map +1 -1
  56. package/package.json +1 -1
  57. package/src/BryntumAssignmentGrid.tsx +40 -22
  58. package/src/BryntumAssignmentPicker.tsx +1109 -0
  59. package/src/BryntumGantt.tsx +42 -23
  60. package/src/BryntumGanttBase.tsx +42 -23
  61. package/src/BryntumGrid.tsx +40 -22
  62. package/src/BryntumGridBase.tsx +40 -22
  63. package/src/BryntumResourceGrid.tsx +40 -22
  64. package/src/BryntumResourceHistogram.tsx +40 -22
  65. package/src/BryntumResourceUtilization.tsx +40 -22
  66. package/src/BryntumScheduler.tsx +40 -22
  67. package/src/BryntumSchedulerBase.tsx +40 -22
  68. package/src/BryntumSchedulerPro.tsx +40 -22
  69. package/src/BryntumSchedulerProBase.tsx +40 -22
  70. package/src/BryntumTimeline.tsx +40 -22
  71. package/src/BryntumTimelineHistogram.tsx +40 -22
  72. package/src/BryntumTreeGrid.tsx +40 -22
  73. package/src/BryntumVersionGrid.tsx +40 -22
  74. package/src/index.ts +1 -0
@@ -0,0 +1,1109 @@
1
+ /**
2
+ * React wrapper for Bryntum AssignmentPicker
3
+ */
4
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
5
+ import React, { RefObject } from 'react';
6
+ import { AlignSpec, AssignmentPicker, AssignmentPickerListeners, AssignmentsManipulationStore, Base, Container, ContainerItemConfig, ContainerLayoutConfig, DomConfig, KeyMapConfig, Layout, MaskConfig, MenuItemConfig, MenuItemEntry, Model, PagingToolbarConfig, Panel, PanelCollapserConfig, PanelCollapserOverlayConfig, PanelHeader, Rectangle, Scroller, ScrollerConfig, StateProvider, TabBarConfig, TabConfig, TaskModel, Tool, ToolConfig, ToolbarConfig, ToolbarItems, TooltipConfig, VueConfig, Widget } from '@bryntum/gantt';
7
+
8
+ import { createWidget, shouldComponentUpdate, processWidgetContent } from './WrapperHelper.js';
9
+
10
+ export type BryntumAssignmentPickerProps = {
11
+ // Configs
12
+ /**
13
+ * The index of the initially active tab.
14
+ */
15
+ activeTab? : number
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/gantt/docs/api/Gantt/widget/AssignmentPicker#config-adopt)
21
+ */
22
+ adopt? : HTMLElement|string
23
+ /**
24
+ * *Only valid if this Widget is [floating](https://bryntum.com/products/gantt/docs/api/Core/widget/Widget#config-floating).*
25
+ * ...
26
+ * [View online docs...](https://bryntum.com/products/gantt/docs/api/Gantt/widget/AssignmentPicker#config-align)
27
+ */
28
+ align? : AlignSpec|string
29
+ /**
30
+ * When this widget is a child of a [Container](https://bryntum.com/products/gantt/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/gantt/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
+ * Specifies whether to slide tabs in and out of visibility.
42
+ */
43
+ animateTabChange? : boolean
44
+ /**
45
+ * Element (or the id of an element) to append this widget's element to. Can be configured, or set once at
46
+ * runtime. To access the element of a rendered widget, see [element](https://bryntum.com/products/gantt/docs/api/Core/widget/Widget#property-element).
47
+ */
48
+ appendTo? : HTMLElement|string
49
+ /**
50
+ * A localizable string (May contain `'L{}'` tokens which resolve in the locale file) to inject
51
+ * into an element which will be linked using the `aria-describedby` attribute.
52
+ * ...
53
+ * [View online docs...](https://bryntum.com/products/gantt/docs/api/Gantt/widget/AssignmentPicker#config-ariaDescription)
54
+ */
55
+ ariaDescription? : string
56
+ /**
57
+ * A localizable string (May contain `'L{}'` tokens which resolve in the locale file) to inject as
58
+ * the `aria-label` attribute.
59
+ * ...
60
+ * [View online docs...](https://bryntum.com/products/gantt/docs/api/Gantt/widget/AssignmentPicker#config-ariaLabel)
61
+ */
62
+ ariaLabel? : string
63
+ /**
64
+ * Set the height of all tabs to match the tab with the highest content.
65
+ */
66
+ autoHeight? : boolean
67
+ /**
68
+ * Set to `true` to automatically hide tabs representing resource types not used in the project.
69
+ */
70
+ autoHideResourceTypeTabs? : boolean
71
+ /**
72
+ * Update assigned [record](https://bryntum.com/products/gantt/docs/api/Core/widget/Container#config-record) automatically on field changes
73
+ */
74
+ autoUpdateRecord? : boolean
75
+ /**
76
+ * A Config object representing the configuration of a [Toolbar](https://bryntum.com/products/gantt/docs/api/Core/widget/Toolbar),
77
+ * or array of config objects representing the child items of a Toolbar. Another way to add a bbar is to use [strips](https://bryntum.com/products/gantt/docs/api/Core/widget/Panel#config-strips).
78
+ * ...
79
+ * [View online docs...](https://bryntum.com/products/gantt/docs/api/Gantt/widget/AssignmentPicker#config-bbar)
80
+ */
81
+ bbar? : (ContainerItemConfig|string)[]|ToolbarConfig|PagingToolbarConfig|null
82
+ /**
83
+ * Custom CSS classes to add to the panel's body element.
84
+ * ...
85
+ * [View online docs...](https://bryntum.com/products/gantt/docs/api/Gantt/widget/AssignmentPicker#config-bodyCls)
86
+ */
87
+ bodyCls? : string|object
88
+ /**
89
+ * An object where property names with a truthy value indicate which events should bubble up the ownership
90
+ * hierarchy when triggered.
91
+ * ...
92
+ * [View online docs...](https://bryntum.com/products/gantt/docs/api/Gantt/widget/AssignmentPicker#config-bubbleEvents)
93
+ */
94
+ bubbleEvents? : object
95
+ /**
96
+ * Set to `false` to not call onXXX method names (e.g. `onShow`, `onClick`), as an easy way to listen for events.
97
+ * ...
98
+ * [View online docs...](https://bryntum.com/products/gantt/docs/api/Gantt/widget/AssignmentPicker#config-callOnFunctions)
99
+ */
100
+ callOnFunctions? : boolean
101
+ /**
102
+ * By default, if an event handler throws an exception, the error propagates up the stack and the
103
+ * application state is undefined. Code which follows the event handler will *not* be executed.
104
+ * ...
105
+ * [View online docs...](https://bryntum.com/products/gantt/docs/api/Gantt/widget/AssignmentPicker#config-catchEventHandlerExceptions)
106
+ */
107
+ catchEventHandlerExceptions? : boolean
108
+ /**
109
+ * *Only valid if this Widget is [floating](https://bryntum.com/products/gantt/docs/api/Core/widget/Widget#config-floating).*
110
+ * Set to `true` to centre the Widget in browser viewport space.
111
+ */
112
+ centered? : boolean
113
+ /**
114
+ * Custom CSS classes to add to element.
115
+ * May be specified as a space separated string, or as an object in which property names
116
+ * with truthy values are used as the class names:
117
+ * ...
118
+ * [View online docs...](https://bryntum.com/products/gantt/docs/api/Gantt/widget/AssignmentPicker#config-cls)
119
+ */
120
+ cls? : string|object
121
+ /**
122
+ * Controls whether the panel is collapsed (the body of the panel is hidden while only the header is
123
+ * visible). Only valid if the panel is [collapsible](https://bryntum.com/products/gantt/docs/api/Core/widget/Panel#config-collapsible).
124
+ */
125
+ collapsed? : boolean
126
+ /**
127
+ * This config enables collapsibility for the panel. See [collapsed](https://bryntum.com/products/gantt/docs/api/Core/widget/Panel#config-collapsed).
128
+ * ...
129
+ * [View online docs...](https://bryntum.com/products/gantt/docs/api/Gantt/widget/AssignmentPicker#config-collapsible)
130
+ */
131
+ collapsible? : boolean|PanelCollapserConfig|PanelCollapserOverlayConfig
132
+ /**
133
+ * Applies the specified color to the widget, by setting the `--b-primary` CSS variable in the widgets
134
+ * `style` block.
135
+ * ...
136
+ * [View online docs...](https://bryntum.com/products/gantt/docs/api/Gantt/widget/AssignmentPicker#config-color)
137
+ */
138
+ color? : string
139
+ /**
140
+ * Programmatic control over which column to start in when used in a grid layout.
141
+ */
142
+ column? : number
143
+ config? : object
144
+ /**
145
+ * *Only valid if this Widget is [floating](https://bryntum.com/products/gantt/docs/api/Core/widget/Widget#config-floating) or [positioned](#Core/widget/Widget#config-positioned).*
146
+ * Element, Widget or Rectangle to which this Widget is constrained.
147
+ */
148
+ constrainTo? : HTMLElement|Widget|Rectangle
149
+ /**
150
+ * The HTML content that coexists with sibling elements which may have been added to the
151
+ * [contentElement](https://bryntum.com/products/gantt/docs/api/Core/widget/Widget#property-contentElement) by plugins and features.
152
+ * When specifying html, this widget's element will also have the [htmlCls](https://bryntum.com/products/gantt/docs/api/Core/widget/Widget#config-htmlCls)
153
+ * class added to its classList, to allow targeted styling.
154
+ */
155
+ content? : string
156
+ /**
157
+ * Custom CSS classes to add to the [contentElement](https://bryntum.com/products/gantt/docs/api/Core/widget/Widget#property-contentElement).
158
+ * May be specified as a space separated string, or as an object in which property names
159
+ * with truthy values are used as the class names:
160
+ * ...
161
+ * [View online docs...](https://bryntum.com/products/gantt/docs/api/Gantt/widget/AssignmentPicker#config-contentElementCls)
162
+ */
163
+ contentElementCls? : string|object
164
+ /**
165
+ * When this Widget configuration is used in the Grid's RowExpander feature's `widget` config, provide the
166
+ * field on the expanded record to use for populating this widget's store (if applicable)
167
+ */
168
+ dataField? : string
169
+ /**
170
+ * Object to apply to elements dataset (each key will be used as a data-attribute on the element)
171
+ */
172
+ dataset? : Record<string, string>
173
+ /**
174
+ * The name of the property to set when a single value is to be applied to this Widget. Such as when used
175
+ * in a grid WidgetColumn, this is the property to which the column's `field` is applied.
176
+ */
177
+ defaultBindProperty? : string
178
+ /**
179
+ * A [query](https://bryntum.com/products/gantt/docs/api/Core/widget/Container#function-query) selector function which can identify the descendant widget to which
180
+ * focus should be directed by default.
181
+ * ...
182
+ * [View online docs...](https://bryntum.com/products/gantt/docs/api/Gantt/widget/AssignmentPicker#config-defaultFocus)
183
+ * @param {Core.widget.Widget} widget Widget passed to method
184
+ * @returns {boolean} truthy value if widget is the default one
185
+ */
186
+ defaultFocus? : ((widget: Widget) => boolean)|string
187
+ /**
188
+ * A config object containing default settings to apply to all child widgets.
189
+ */
190
+ defaults? : ContainerItemConfig
191
+ /**
192
+ * Check for CSS compatibility issues when upgrading to v7. Performs the following checks:
193
+ * ...
194
+ * [View online docs...](https://bryntum.com/products/gantt/docs/api/Gantt/widget/AssignmentPicker#config-detectCSSCompatibilityIssues)
195
+ */
196
+ detectCSSCompatibilityIssues? : boolean
197
+ /**
198
+ * Disable or enable the widget. It is similar to [readOnly](https://bryntum.com/products/gantt/docs/api/Core/widget/Widget#config-readOnly) except a disabled widget
199
+ * cannot be focused, uses a different rendition (usually greyish) and does not allow selecting its value.
200
+ * ...
201
+ * [View online docs...](https://bryntum.com/products/gantt/docs/api/Gantt/widget/AssignmentPicker#config-disabled)
202
+ */
203
+ disabled? : boolean|'inert'
204
+ /**
205
+ * Controls the placement of this widget when it is added to a [panel's ](https://bryntum.com/products/gantt/docs/api/Core/widget/Panel)
206
+ * [strips collection](https://bryntum.com/products/gantt/docs/api/Core/widget/Panel#config-strips). Typical values for this config are `'top'`,
207
+ * `'bottom'`, `'left'`, or `'right'`, which cause the widget to be placed on that side of the panel's
208
+ * body. Such widgets are called "edge strips".
209
+ * ...
210
+ * [View online docs...](https://bryntum.com/products/gantt/docs/api/Gantt/widget/AssignmentPicker#config-dock)
211
+ */
212
+ dock? : 'top'|'bottom'|'left'|'right'|'start'|'end'|'header'|'pre-header'|object
213
+ /**
214
+ * *Only valid if this Widget is [floating](https://bryntum.com/products/gantt/docs/api/Core/widget/Widget#config-floating).*
215
+ * Set to `true` to be able to drag a widget freely on the page. Or set to an object with a ´handleSelector´
216
+ * property which controls when a drag should start.
217
+ * ...
218
+ * [View online docs...](https://bryntum.com/products/gantt/docs/api/Gantt/widget/AssignmentPicker#config-draggable)
219
+ */
220
+ draggable? : boolean|{
221
+ handleSelector?: string
222
+ }
223
+ /**
224
+ * Make this Panel a docked drawer which slides out from one side of the browser viewport by default.
225
+ * ...
226
+ * [View online docs...](https://bryntum.com/products/gantt/docs/api/Gantt/widget/AssignmentPicker#config-drawer)
227
+ * @param {'start','left','end','right','top','bottom'} side The side of the viewport to dock the drawer to. * `'start'` means the `inline-start` side. * `'end'` means the `inline-end` side.
228
+ * @param {string,number} size The size of the drawer in its collapsible axis.
229
+ * @param {boolean} inline If using the [appendTo](https://bryntum.com/products/gantt/docs/api/Core/widget/Panel#config-appendTo) config to place the drawer inside a host widget, this may be set to `true` to make the drawer inline within that host. Note that, if using this, the layout of the host element must have `flex-direction` set appropriately.
230
+ * @param {boolean,object} autoClose Specifies what user actions should automatically close the drawer. Defaults to closing when the user clicks outside of the drawer or when focus moves outside of the drawer.
231
+ * @param {boolean,string} autoClose.mousedown If the user clicks outside of the drawer, the drawer will automatically be hidden. If the value is a string, it is used as a CSS selector to filter clicks which should close the drawer.
232
+ * @param {boolean,string} autoClose.focusout If focus moves outside of the drawer, the drawer will automatically be hidden.
233
+ * @param {string} autoClose.mouseout Hides the drawer when the mouse leaves the drawer after the `autoCloseDelay` period.
234
+ * @param {number} autoCloseDelay When using `mouseout`, this is the delay in milliseconds
235
+ */
236
+ drawer? : boolean|{side?: 'start'|'left'|'end'|'right'|'top'|'bottom', size?: string|number, inline?: boolean, autoClose: { mousedown?: boolean|string, focusout?: boolean|string, mouseout?: string }, autoCloseDelay?: number}
237
+ /**
238
+ * An object specifying attributes to assign to the root element of this widget.
239
+ * Set `null` value to attribute to remove it.
240
+ * ...
241
+ * [View online docs...](https://bryntum.com/products/gantt/docs/api/Gantt/widget/AssignmentPicker#config-elementAttributes)
242
+ */
243
+ elementAttributes? : Record<string, string|null>
244
+ extraData? : any
245
+ /**
246
+ * When this widget is a child of a [Container](https://bryntum.com/products/gantt/docs/api/Core/widget/Container), it will by default be participating in a
247
+ * flexbox layout. This config allows you to set this widget's
248
+ * [flex](https://developer.mozilla.org/en-US/docs/Web/CSS/flex) style.
249
+ * This may be configured as a single number or a `&lt;flex-grow&gt; &lt;flex-shrink&gt; &lt;flex-basis&gt;` format string.
250
+ * numeric-only values are interpreted as the `flex-grow` value.
251
+ */
252
+ flex? : number|string
253
+ /**
254
+ * Set to `true` to move the widget out of the document flow and position it
255
+ * absolutely in browser viewport space.
256
+ */
257
+ floating? : boolean
258
+ /**
259
+ * Config object of a footer. May contain a `dock`, `html` and a `cls` property. A footer is not a widget,
260
+ * but rather plain HTML that follows the last element of the panel's body and [strips](https://bryntum.com/products/gantt/docs/api/Core/widget/Panel#config-strips).
261
+ * ...
262
+ * [View online docs...](https://bryntum.com/products/gantt/docs/api/Gantt/widget/AssignmentPicker#config-footer)
263
+ */
264
+ footer? : {
265
+ dock?: 'top'|'right'|'bottom'|'left'|'start'|'end'
266
+ html?: string
267
+ cls?: string
268
+ }|string
269
+ /**
270
+ * A config [object](https://bryntum.com/products/gantt/docs/api/Core/widget/Panel#typedef-PanelHeader) for the panel's header or a string in place of a `title`.
271
+ * ...
272
+ * [View online docs...](https://bryntum.com/products/gantt/docs/api/Gantt/widget/AssignmentPicker#config-header)
273
+ */
274
+ header? : string|boolean|PanelHeader
275
+ /**
276
+ * Widget's height, used to set element `style.height`. Either specify a valid height string or a number,
277
+ * which will get 'px' appended. We recommend using CSS as the primary way to control height, but in some
278
+ * cases this config is convenient.
279
+ */
280
+ height? : string|number
281
+ /**
282
+ * Configure with true to make widget initially hidden.
283
+ */
284
+ hidden? : boolean
285
+ /**
286
+ * *Only valid if this Widget is [floating](https://bryntum.com/products/gantt/docs/api/Core/widget/Widget#config-floating).*
287
+ * ...
288
+ * [View online docs...](https://bryntum.com/products/gantt/docs/api/Gantt/widget/AssignmentPicker#config-hideAnimation)
289
+ */
290
+ hideAnimation? : boolean|object
291
+ /**
292
+ * Specify `true` to make this container hide when it has no visible children (Either empty
293
+ * or all children hidden).
294
+ * ...
295
+ * [View online docs...](https://bryntum.com/products/gantt/docs/api/Gantt/widget/AssignmentPicker#config-hideWhenEmpty)
296
+ */
297
+ hideWhenEmpty? : boolean
298
+ /**
299
+ * The HTML to display initially or a function returning the markup (called at widget construction time).
300
+ * ...
301
+ * [View online docs...](https://bryntum.com/products/gantt/docs/api/Gantt/widget/AssignmentPicker#config-html)
302
+ * @param {Core.widget.Widget} widget The calling Widget
303
+ * @returns {string}
304
+ */
305
+ html? : string|((widget: Widget) => string)|DomConfig|DomConfig[]|VueConfig
306
+ /**
307
+ * The CSS class(es) to add when HTML content is being applied to this widget.
308
+ */
309
+ htmlCls? : string|object
310
+ /**
311
+ * An icon to show before the [title](https://bryntum.com/products/gantt/docs/api/Core/widget/Panel#config-title). Either pass a CSS class as a string, or pass a
312
+ * [DomConfig](https://bryntum.com/products/gantt/docs/api/Core/helper/DomHelper#typedef-DomConfig) object describing an element to represent the icon.
313
+ */
314
+ icon? : string|DomConfig
315
+ /**
316
+ * Widget id, if not specified one will be generated. Also used for lookups through Widget.getById
317
+ */
318
+ id? : string
319
+ /**
320
+ * Determines if the widgets read-only state should be controlled by its parent.
321
+ * ...
322
+ * [View online docs...](https://bryntum.com/products/gantt/docs/api/Gantt/widget/AssignmentPicker#config-ignoreParentReadOnly)
323
+ */
324
+ ignoreParentReadOnly? : boolean
325
+ /**
326
+ * Convenience setting to align input fields of child widgets. By default, the Field input element is
327
+ * placed immediately following the `label`. If you prefer to have all input fields aligned to the
328
+ * right, set this config to `'end'`.
329
+ * ...
330
+ * [View online docs...](https://bryntum.com/products/gantt/docs/api/Gantt/widget/AssignmentPicker#config-inputFieldAlign)
331
+ */
332
+ inputFieldAlign? : 'start'|'end'
333
+ /**
334
+ * Element (or element id) to insert this widget before. If provided, [appendTo](https://bryntum.com/products/gantt/docs/api/Core/widget/Widget#config-appendTo) config is ignored.
335
+ */
336
+ insertBefore? : HTMLElement|string
337
+ /**
338
+ * Element (or element id) to append this widget element to, as a first child. If provided, [appendTo](https://bryntum.com/products/gantt/docs/api/Core/widget/Widget#config-appendTo) config is ignored.
339
+ */
340
+ insertFirst? : HTMLElement|string
341
+ /**
342
+ * An optional CSS class to add to child items of this container.
343
+ */
344
+ itemCls? : string
345
+ /**
346
+ * An object containing typed child widget config objects or Widgets. May also be specified
347
+ * as an array.
348
+ * ...
349
+ * [View online docs...](https://bryntum.com/products/gantt/docs/api/Gantt/widget/AssignmentPicker#config-items)
350
+ */
351
+ items? : Record<string, ContainerItemConfig|MenuItemEntry>|(ContainerItemConfig|MenuItemEntry|Widget)[]
352
+ /**
353
+ * An object whose keys are the [key](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/key) name
354
+ * and optional modifier prefixes: `'Ctrl+'`, `'Alt+'`, `'Meta+'`, and `'Shift+'` (case-insensitive). The values
355
+ * are the name of the instance method to call when the keystroke is received.
356
+ * ...
357
+ * [View online docs...](https://bryntum.com/products/gantt/docs/api/Gantt/widget/AssignmentPicker#config-keyMap)
358
+ */
359
+ keyMap? : Record<string, KeyMapConfig>
360
+ /**
361
+ * Convenience setting to use same label placement on all child widgets.
362
+ * ...
363
+ * [View online docs...](https://bryntum.com/products/gantt/docs/api/Gantt/widget/AssignmentPicker#config-labelPosition)
364
+ */
365
+ labelPosition? : 'before'|'above'|'align-before'|'auto'|null
366
+ /**
367
+ * The short name of a helper class which manages rendering and styling of child items.
368
+ * ...
369
+ * [View online docs...](https://bryntum.com/products/gantt/docs/api/Gantt/widget/AssignmentPicker#config-layout)
370
+ */
371
+ layout? : string|ContainerLayoutConfig
372
+ /**
373
+ * The CSS style properties to apply to the [contentElement](https://bryntum.com/products/gantt/docs/api/Core/widget/Widget#property-contentElement).
374
+ * ...
375
+ * [View online docs...](https://bryntum.com/products/gantt/docs/api/Gantt/widget/AssignmentPicker#config-layoutStyle)
376
+ */
377
+ layoutStyle? : object
378
+ /**
379
+ * An array of [child item](https://bryntum.com/products/gantt/docs/api/Core/widget/Container#config-items) *config objects* which is to be converted into
380
+ * instances only when this Container is rendered, rather than eagerly at construct time.
381
+ * ...
382
+ * [View online docs...](https://bryntum.com/products/gantt/docs/api/Gantt/widget/AssignmentPicker#config-lazyItems)
383
+ */
384
+ lazyItems? : Record<string, ContainerItemConfig>|ContainerItemConfig[]|Widget[]
385
+ /**
386
+ * The listener set for this object.
387
+ * ...
388
+ * [View online docs...](https://bryntum.com/products/gantt/docs/api/Gantt/widget/AssignmentPicker#config-listeners)
389
+ */
390
+ listeners? : AssignmentPickerListeners
391
+ /**
392
+ * A class translations of which are used for translating this entity.
393
+ * This is often used when translations of an item are defined on its container class.
394
+ * For example:
395
+ * ...
396
+ * [View online docs...](https://bryntum.com/products/gantt/docs/api/Gantt/widget/AssignmentPicker#config-localeClass)
397
+ */
398
+ localeClass? : typeof Base
399
+ /**
400
+ * Set to `false` to disable localization of this object.
401
+ */
402
+ localizable? : boolean
403
+ /**
404
+ * List of properties which values should be translated automatically upon a locale applying.
405
+ * In case there is a need to localize not typical value (not a String value or a field with re-defined setter/getter),
406
+ * you could use 'localeKey' meta configuration.
407
+ * Example:
408
+ * ...
409
+ * [View online docs...](https://bryntum.com/products/gantt/docs/api/Gantt/widget/AssignmentPicker#config-localizableProperties)
410
+ */
411
+ localizableProperties? : string[]
412
+ /**
413
+ * Widget's margin. This may be configured as a single number or a `TRBL` format string.
414
+ * numeric-only values are interpreted as pixels.
415
+ */
416
+ margin? : number|string
417
+ /**
418
+ * This config object contains the defaults for the [Mask](https://bryntum.com/products/gantt/docs/api/Core/widget/Mask) created for the
419
+ * [masked](https://bryntum.com/products/gantt/docs/api/Core/widget/Widget#config-masked) config. Any properties specified in the `masked` config will override these
420
+ * values.
421
+ */
422
+ maskDefaults? : MaskConfig
423
+ /**
424
+ * Set to `true` to apply the default mask to the widget. Alternatively, this can be the mask message or a
425
+ * [Mask](https://bryntum.com/products/gantt/docs/api/Core/widget/Mask) config object.
426
+ */
427
+ masked? : boolean|string|MaskConfig
428
+ /**
429
+ * The element's maxHeight. Can be either a String or a Number (which will have 'px' appended). Note that
430
+ * like [height](https://bryntum.com/products/gantt/docs/api/Core/widget/Widget#config-height), *reading* the value will return the numeric value in pixels.
431
+ */
432
+ maxHeight? : string|number
433
+ /**
434
+ * *Only valid if this Widget is [floating](https://bryntum.com/products/gantt/docs/api/Core/widget/Widget#config-floating).*
435
+ * ...
436
+ * [View online docs...](https://bryntum.com/products/gantt/docs/api/Gantt/widget/AssignmentPicker#config-maximizeOnMobile)
437
+ */
438
+ maximizeOnMobile? : number|string
439
+ /**
440
+ * The elements maxWidth. Can be either a String or a Number (which will have 'px' appended). Note that
441
+ * like [width](https://bryntum.com/products/gantt/docs/api/Core/widget/Widget#config-width), *reading* the value will return the numeric value in pixels.
442
+ */
443
+ maxWidth? : string|number
444
+ /**
445
+ * The element's minHeight. Can be either a String or a Number (which will have 'px' appended). Note that
446
+ * like [height](https://bryntum.com/products/gantt/docs/api/Core/widget/Widget#config-height), *reading* the value will return the numeric value in pixels.
447
+ */
448
+ minHeight? : string|number
449
+ /**
450
+ * The elements minWidth. Can be either a String or a Number (which will have 'px' appended). Note that
451
+ * like [width](https://bryntum.com/products/gantt/docs/api/Core/widget/Widget#config-width), *reading* the value will return the numeric value in pixels.
452
+ */
453
+ minWidth? : string|number
454
+ /**
455
+ * When this is configured as `true` a [ResizeObserver](https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserver)
456
+ * is used to monitor this element for size changes caused by either style manipulation, or by CSS
457
+ * layout.
458
+ * ...
459
+ * [View online docs...](https://bryntum.com/products/gantt/docs/api/Gantt/widget/AssignmentPicker#config-monitorResize)
460
+ */
461
+ monitorResize? : boolean|{
462
+ immediate?: boolean
463
+ }
464
+ /**
465
+ * An object containing default config objects which may be referenced by name in the [items](https://bryntum.com/products/gantt/docs/api/Core/widget/Container#config-items)
466
+ * config. For example, a specialized [Menu](https://bryntum.com/products/gantt/docs/api/Core/widget/Menu) subclass may have a `namedItems` default
467
+ * value defined like this:
468
+ * ...
469
+ * [View online docs...](https://bryntum.com/products/gantt/docs/api/Gantt/widget/AssignmentPicker#config-namedItems)
470
+ */
471
+ namedItems? : Record<string, ContainerItemConfig>
472
+ /**
473
+ * The owning Widget of this Widget. If this Widget is directly contained (that is, it is one of the
474
+ * [items](https://bryntum.com/products/gantt/docs/api/Core/widget/Container#property-items) of a Container), this config will be ignored. In this case
475
+ * the owner is <strong>always</strong> the encapsulating Container.
476
+ * ...
477
+ * [View online docs...](https://bryntum.com/products/gantt/docs/api/Gantt/widget/AssignmentPicker#config-owner)
478
+ */
479
+ owner? : Widget|any
480
+ /**
481
+ * Set to `true` when a widget is rendered into another widget's [contentElement](https://bryntum.com/products/gantt/docs/api/Core/widget/Widget#property-contentElement), but must
482
+ * not participate in the standard layout of that widget, and must be positioned relatively to that
483
+ * widget's [contentElement](https://bryntum.com/products/gantt/docs/api/Core/widget/Widget#property-contentElement).
484
+ * ...
485
+ * [View online docs...](https://bryntum.com/products/gantt/docs/api/Gantt/widget/AssignmentPicker#config-positioned)
486
+ */
487
+ positioned? : boolean
488
+ /**
489
+ * Prevent tooltip from being displayed on touch devices. Useful for example for buttons that display a
490
+ * menu on click etc, since the tooltip would be displayed at the same time.
491
+ */
492
+ preventTooltipOnTouch? : boolean
493
+ /**
494
+ * The Event to load resource assignments for.
495
+ * Either an Event or [store](https://bryntum.com/products/gantt/docs/api/Gantt/widget/AssignmentPicker#config-store) should be given.
496
+ */
497
+ projectEvent? : TaskModel
498
+ /**
499
+ * Whether this widget is read-only. This is only valid if the widget is an input
500
+ * field, <strong>or contains input fields at any depth</strong>.
501
+ * ...
502
+ * [View online docs...](https://bryntum.com/products/gantt/docs/api/Gantt/widget/AssignmentPicker#config-readOnly)
503
+ */
504
+ readOnly? : boolean
505
+ /**
506
+ * [Record](https://bryntum.com/products/gantt/docs/api/Core/data/Model) whose values will be used to populate fields in the container.
507
+ * ...
508
+ * [View online docs...](https://bryntum.com/products/gantt/docs/api/Gantt/widget/AssignmentPicker#config-record)
509
+ */
510
+ record? : Model
511
+ relayStoreEvents? : boolean
512
+ /**
513
+ * Either a default `rendition` to apply to all child widgets, or a map of renditions keyed by child widget
514
+ * `type`.
515
+ * ...
516
+ * [View online docs...](https://bryntum.com/products/gantt/docs/api/Gantt/widget/AssignmentPicker#config-rendition)
517
+ */
518
+ rendition? : string|Record<string, string>|null
519
+ /**
520
+ * Configure as `true` to have the component display a translucent ripple when its
521
+ * [focusElement](https://bryntum.com/products/gantt/docs/api/Core/widget/Widget#property-focusElement), or [element](#Core/widget/Widget#property-element) is tapped <em>if the
522
+ * current theme supports ripples</em>. Out of the box, only the Material theme supports ripples.
523
+ * ...
524
+ * [View online docs...](https://bryntum.com/products/gantt/docs/api/Gantt/widget/AssignmentPicker#config-ripple)
525
+ */
526
+ ripple? : boolean|{
527
+ delegate?: string
528
+ color?: string
529
+ radius?: number
530
+ clip?: string
531
+ }
532
+ /**
533
+ * 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`
534
+ */
535
+ rootElement? : ShadowRoot|HTMLElement
536
+ /**
537
+ * This may be configured as `true` to make the widget's element use the `direction:rtl` style.
538
+ * ...
539
+ * [View online docs...](https://bryntum.com/products/gantt/docs/api/Gantt/widget/AssignmentPicker#config-rtl)
540
+ */
541
+ rtl? : boolean
542
+ /**
543
+ * Specifies whether (and optionally in which axes) a Widget may scroll. `true` means this widget may scroll
544
+ * in both axes. May be an object containing boolean `overflowX` and `overflowY` properties which are
545
+ * applied to CSS style properties `overflowX` and `overflowY`. If they are boolean, they are translated to
546
+ * CSS overflow properties thus:
547
+ * ...
548
+ * [View online docs...](https://bryntum.com/products/gantt/docs/api/Gantt/widget/AssignmentPicker#config-scrollable)
549
+ */
550
+ scrollable? : boolean|ScrollerConfig|Scroller
551
+ /**
552
+ * Defines what to do if document is scrolled while Widget is visible (only relevant when floating is set to `true`).
553
+ * Valid values: ´null´: do nothing, ´hide´: hide the widget or ´realign´: realign to the target if possible.
554
+ */
555
+ scrollAction? : 'hide'|'realign'|null
556
+ /**
557
+ * *Only valid if this Widget is [floating](https://bryntum.com/products/gantt/docs/api/Core/widget/Widget#config-floating).*
558
+ * ...
559
+ * [View online docs...](https://bryntum.com/products/gantt/docs/api/Gantt/widget/AssignmentPicker#config-showAnimation)
560
+ */
561
+ showAnimation? : boolean|object
562
+ /**
563
+ * If set to `true` this will show rate table columns.
564
+ */
565
+ showCostControls? : boolean
566
+ /**
567
+ * Set to `false` to not show the tooltip when this widget is [disabled](https://bryntum.com/products/gantt/docs/api/Core/widget/Widget#property-disabled)
568
+ */
569
+ showTooltipWhenDisabled? : boolean
570
+ /**
571
+ * Programmatic control over how many columns to span when used in a grid layout.
572
+ */
573
+ span? : number
574
+ /**
575
+ * This value can be one of the following:
576
+ * ...
577
+ * [View online docs...](https://bryntum.com/products/gantt/docs/api/Gantt/widget/AssignmentPicker#config-stateful)
578
+ */
579
+ stateful? : boolean|object|string[]
580
+ /**
581
+ * The events that, when fired by this component, should trigger it to save its state by calling
582
+ * [saveState](https://bryntum.com/products/gantt/docs/api/Core/mixin/State#function-saveState).
583
+ * ...
584
+ * [View online docs...](https://bryntum.com/products/gantt/docs/api/Gantt/widget/AssignmentPicker#config-statefulEvents)
585
+ */
586
+ statefulEvents? : object|string[]
587
+ /**
588
+ * The key to use when saving this object's state in the [stateProvider](https://bryntum.com/products/gantt/docs/api/Core/mixin/State#config-stateProvider). If this config is
589
+ * not assigned, and [stateful](https://bryntum.com/products/gantt/docs/api/Core/mixin/State#config-stateful) is not set to `false`, the [id](#Core/widget/Widget#config-id)
590
+ * (if explicitly specified) will be used as the `stateId`.
591
+ * ...
592
+ * [View online docs...](https://bryntum.com/products/gantt/docs/api/Gantt/widget/AssignmentPicker#config-stateId)
593
+ */
594
+ stateId? : string
595
+ /**
596
+ * The `StateProvider` to use to save and restore this object's [state](https://bryntum.com/products/gantt/docs/api/Core/mixin/State#property-state). By default, `state`
597
+ * will be saved using the [default state provider](https://bryntum.com/products/gantt/docs/api/Core/state/StateProvider#property-instance-static).
598
+ * ...
599
+ * [View online docs...](https://bryntum.com/products/gantt/docs/api/Gantt/widget/AssignmentPicker#config-stateProvider)
600
+ */
601
+ stateProvider? : StateProvider
602
+ /**
603
+ * Store for the picker.
604
+ * Either store or [projectEvent](https://bryntum.com/products/gantt/docs/api/Gantt/widget/AssignmentPicker#config-projectEvent) should be given
605
+ */
606
+ store? : AssignmentsManipulationStore
607
+ /**
608
+ * Specify `true` to match fields by their `name` property only when assigning a [record](https://bryntum.com/products/gantt/docs/api/Core/widget/Container#config-record),
609
+ * without falling back to `ref`.
610
+ */
611
+ strictRecordMapping? : boolean
612
+ /**
613
+ * An object containing widgets keyed by name. By default (when no `type` is given), strips are
614
+ * [toolbars](https://bryntum.com/products/gantt/docs/api/Core/widget/Toolbar). If you want to pass an array, you can use
615
+ * the toolbar's [items](https://bryntum.com/products/gantt/docs/api/Core/widget/Container#config-items).
616
+ * ...
617
+ * [View online docs...](https://bryntum.com/products/gantt/docs/api/Gantt/widget/AssignmentPicker#config-strips)
618
+ */
619
+ strips? : Record<string, ContainerItemConfig>
620
+ /**
621
+ * A configuration for the [tab](https://bryntum.com/products/gantt/docs/api/Core/widget/Tab) created for this widget when it is placed in a
622
+ * [TabPanel](https://bryntum.com/products/gantt/docs/api/Core/widget/TabPanel). For example, this config can be used to control the icon of the `tab` for
623
+ * this widget:
624
+ * ...
625
+ * [View online docs...](https://bryntum.com/products/gantt/docs/api/Gantt/widget/AssignmentPicker#config-tab)
626
+ */
627
+ tab? : boolean|TabConfig
628
+ /**
629
+ * Additional configuration for the tab bar.
630
+ * ...
631
+ * [View online docs...](https://bryntum.com/products/gantt/docs/api/Gantt/widget/AssignmentPicker#config-tabBar)
632
+ */
633
+ tabBar? : TabBarConfig
634
+ /**
635
+ * When this container is used as a tab in a TabPanel, these items are added to the
636
+ * [TabBar](https://bryntum.com/products/gantt/docs/api/Core/widget/TabBar) when this container is the active tab.
637
+ * ...
638
+ * [View online docs...](https://bryntum.com/products/gantt/docs/api/Gantt/widget/AssignmentPicker#config-tabBarItems)
639
+ */
640
+ tabBarItems? : ToolbarItems[]|Widget[]
641
+ /**
642
+ * Max width of a tab title. 0 means no maximum width. This is default.
643
+ */
644
+ tabMaxWidth? : number
645
+ /**
646
+ * Min width of a tab title. 0 means no minimum width. This is default.
647
+ */
648
+ tabMinWidth? : number
649
+ /**
650
+ * The tag name of this Widget's root element
651
+ */
652
+ tag? : string
653
+ /**
654
+ * A Config object representing the configuration of a [Toolbar](https://bryntum.com/products/gantt/docs/api/Core/widget/Toolbar),
655
+ * or array of config objects representing the child items of a Toolbar.
656
+ * This creates a toolbar docked to the top of the panel immediately below the header.
657
+ * ...
658
+ * [View online docs...](https://bryntum.com/products/gantt/docs/api/Gantt/widget/AssignmentPicker#config-tbar)
659
+ */
660
+ tbar? : (ContainerItemConfig|string)[]|ToolbarConfig|PagingToolbarConfig|null
661
+ /**
662
+ * Text alignment: 'left', 'center' or 'right'. Also accepts direction neutral 'start' and 'end'.
663
+ * ...
664
+ * [View online docs...](https://bryntum.com/products/gantt/docs/api/Gantt/widget/AssignmentPicker#config-textAlign)
665
+ */
666
+ textAlign? : 'left'|'center'|'right'|'start'|'end'
667
+ /**
668
+ * Specify `true` for a container used to show text markup. It will apply the CSS class `b-text-content`
669
+ * which specifies a default max-width that makes long text more readable.
670
+ * ...
671
+ * [View online docs...](https://bryntum.com/products/gantt/docs/api/Gantt/widget/AssignmentPicker#config-textContent)
672
+ */
673
+ textContent? : boolean
674
+ /**
675
+ * A title to display in the header or owning TabPanel. Causes creation and docking of a header
676
+ * to the top if no header is configured.
677
+ * ...
678
+ * [View online docs...](https://bryntum.com/products/gantt/docs/api/Gantt/widget/AssignmentPicker#config-title)
679
+ */
680
+ title? : string
681
+ /**
682
+ * The [tools](https://bryntum.com/products/gantt/docs/api/Core/widget/Tool) to add either before or after the `title` in the Panel header. Each
683
+ * property name is the reference by which an instantiated tool may be retrieved from the live
684
+ * `[tools](https://bryntum.com/products/gantt/docs/api/Core/widget/mixin/Toolable#property-tools)` property.
685
+ * ...
686
+ * [View online docs...](https://bryntum.com/products/gantt/docs/api/Gantt/widget/AssignmentPicker#config-tools)
687
+ */
688
+ tools? : Record<string, ToolConfig>|null
689
+ /**
690
+ * Tooltip for the widget, either as a string or as a Tooltip config object.
691
+ * ...
692
+ * [View online docs...](https://bryntum.com/products/gantt/docs/api/Gantt/widget/AssignmentPicker#config-tooltip)
693
+ */
694
+ tooltip? : string|TooltipConfig|null
695
+ /**
696
+ * By default, tabbing within a Panel is not contained, ie you can TAB out of the Panel
697
+ * forwards or backwards.
698
+ * Configure this as `true` to disallow tabbing out of the Panel, and make tabbing circular within this Panel.
699
+ */
700
+ trapFocus? : boolean
701
+ type? : 'assignmentpicker'
702
+ /**
703
+ * Custom CSS class name suffixes to apply to the elements rendered by this widget. This may be specified
704
+ * as a space separated string, an array of strings, or as an object in which property names with truthy
705
+ * values are used as the class names.
706
+ * ...
707
+ * [View online docs...](https://bryntum.com/products/gantt/docs/api/Gantt/widget/AssignmentPicker#config-ui)
708
+ */
709
+ ui? : 'plain'|'toolbar'|string|object
710
+ /**
711
+ * A widgets weight determines its position among siblings when added to a [Container](https://bryntum.com/products/gantt/docs/api/Core/widget/Container).
712
+ * Higher weights go further down.
713
+ */
714
+ weight? : number
715
+ /**
716
+ * Widget's width, used to set element `style.width`. Either specify a valid width string or a number, which
717
+ * will get 'px' appended. We recommend using CSS as the primary way to control width, but in some cases
718
+ * this config is convenient.
719
+ */
720
+ width? : string|number
721
+ /**
722
+ * The x position for the widget.
723
+ * ...
724
+ * [View online docs...](https://bryntum.com/products/gantt/docs/api/Gantt/widget/AssignmentPicker#config-x)
725
+ */
726
+ x? : number
727
+ /**
728
+ * The y position for the widget.
729
+ * ...
730
+ * [View online docs...](https://bryntum.com/products/gantt/docs/api/Gantt/widget/AssignmentPicker#config-y)
731
+ */
732
+ y? : number
733
+
734
+ // Events
735
+ /**
736
+ * Fires before an object is destroyed.
737
+ * @param {object} event Event object
738
+ * @param {Core.Base} event.source The Object that is being destroyed.
739
+ */
740
+ onBeforeDestroy? : ((event: { source: Base }) => void)|string
741
+ /**
742
+ * Triggered before a widget is hidden. Return `false` to prevent the action.
743
+ * @param {object} event Event object
744
+ * @param {Core.widget.Widget} event.source The widget being hidden.
745
+ */
746
+ onBeforeHide? : ((event: { source: Widget }) => Promise<boolean>|boolean|void)|string
747
+ /**
748
+ * Fired before this container will load record values into its child fields. This is useful if you
749
+ * want to modify the UI before data is loaded (e.g. set some input field to be readonly)
750
+ * @param {object} event Event object
751
+ * @param {Core.widget.Container} event.source The container
752
+ * @param {Core.data.Model} event.record The record
753
+ */
754
+ onBeforeSetRecord? : ((event: { source: Container, record: Model }) => void)|string
755
+ /**
756
+ * Triggered before a widget is shown. Return `false` to prevent the action.
757
+ * @param {object} event Event object
758
+ * @param {Core.widget.Widget,any} event.source The widget being shown
759
+ */
760
+ onBeforeShow? : ((event: { source: Widget|any }) => Promise<boolean>|boolean|void)|string
761
+ /**
762
+ * Fired before state is applied to the source. Allows editing the state object or preventing the operation.
763
+ * @param {object} event Event object
764
+ * @param {any} event.state State object config
765
+ */
766
+ onBeforeStateApply? : ((event: { state: any }) => Promise<boolean>|boolean|void)|string
767
+ /**
768
+ * Fired before state is saved by the StateProvider. Allows editing the state object or preventing the operation.
769
+ * @param {object} event Event object
770
+ * @param {any} event.state State object config
771
+ */
772
+ onBeforeStateSave? : ((event: { state: any }) => Promise<boolean>|boolean|void)|string
773
+ /**
774
+ * The active tab is about to be changed. Return `false` to prevent this.
775
+ * @param {object} event Event object
776
+ * @param {number} event.activeIndex The new active index.
777
+ * @param {Core.widget.Widget} event.activeItem The new active child widget.
778
+ * @param {number} event.prevActiveIndex The previous active index.
779
+ * @param {Core.widget.Widget} event.prevActiveItem The previous active child widget.
780
+ */
781
+ onBeforeTabChange? : ((event: { activeIndex: number, activeItem: Widget, prevActiveIndex: number, prevActiveItem: Widget }) => Promise<boolean>|boolean|void)|string
782
+ /**
783
+ * Fires when any other event is fired from the object.
784
+ * ...
785
+ * [View online docs...](https://bryntum.com/products/gantt/docs/api/Gantt/widget/AssignmentPicker#event-catchAll)
786
+ * @param {object} event Event object
787
+ * @param {{[key: string]: any, type: string}} event.event The Object that contains event details
788
+ * @param {string} event.event.type The type of the event which is caught by the listener
789
+ */
790
+ onCatchAll? : ((event: {[key: string]: any, type: string}) => void)|string
791
+ /**
792
+ * Fires when a Panel is collapsed using the [collapsible](https://bryntum.com/products/gantt/docs/api/Core/widget/Panel#config-collapsible) setting.
793
+ * @param {object} event Event object
794
+ * @param {Core.widget.Panel} event.source This Panel.
795
+ */
796
+ onCollapse? : ((event: { source: Panel }) => void)|string
797
+ /**
798
+ * Fires when an object is destroyed.
799
+ * @param {object} event Event object
800
+ * @param {Core.Base} event.source The Object that is being destroyed.
801
+ */
802
+ onDestroy? : ((event: { source: Base }) => void)|string
803
+ /**
804
+ * Fires when a field is mutated and the state of the [hasChanges](https://bryntum.com/products/gantt/docs/api/Core/widget/Container#property-hasChanges) property changes
805
+ * @param {object} event Event object
806
+ * @param {Core.widget.Container} event.source The container.
807
+ * @param {boolean} event.dirty The dirty state of the Container - `true` if there are any fields which have been changed since initial load.
808
+ */
809
+ onDirtyStateChange? : ((event: { source: Container, dirty: boolean }) => void)|string
810
+ /**
811
+ * Triggered when a widget's [element](https://bryntum.com/products/gantt/docs/api/Core/widget/Widget#property-element) is available.
812
+ * @param {object} event Event object
813
+ * @param {HTMLElement} event.element The Widget's element.
814
+ */
815
+ onElementCreated? : ((event: { element: HTMLElement }) => void)|string
816
+ /**
817
+ * Fires when a Panel is expanded using the [collapsible](https://bryntum.com/products/gantt/docs/api/Core/widget/Panel#config-collapsible) setting.
818
+ * @param {object} event Event object
819
+ * @param {Core.widget.Panel} event.source This Panel.
820
+ */
821
+ onExpand? : ((event: { source: Panel }) => void)|string
822
+ /**
823
+ * Fired when focus enters this Widget.
824
+ * @param {object} event Event object
825
+ * @param {Core.widget.Widget} event.source This Widget
826
+ * @param {HTMLElement} event.fromElement The element which lost focus.
827
+ * @param {HTMLElement} event.toElement The element which gained focus.
828
+ * @param {Core.widget.Widget} event.fromWidget The widget which lost focus.
829
+ * @param {Core.widget.Widget} event.toWidget The widget which gained focus.
830
+ * @param {boolean} event.backwards `true` if the `toElement` is before the `fromElement` in document order.
831
+ */
832
+ onFocusIn? : ((event: { source: Widget, fromElement: HTMLElement, toElement: HTMLElement, fromWidget: Widget, toWidget: Widget, backwards: boolean }) => void)|string
833
+ /**
834
+ * Fired when focus exits this Widget's ownership tree. This is different from a `blur` event.
835
+ * focus moving from within this Widget's ownership tree, even if there are floating widgets
836
+ * will not trigger this event. This is when focus exits this widget completely.
837
+ * @param {object} event Event object
838
+ * @param {Core.widget.Widget} event.source This Widget
839
+ * @param {HTMLElement} event.fromElement The element which lost focus.
840
+ * @param {HTMLElement} event.toElement The element which gained focus.
841
+ * @param {Core.widget.Widget} event.fromWidget The widget which lost focus.
842
+ * @param {Core.widget.Widget} event.toWidget The widget which gained focus.
843
+ * @param {boolean} event.backwards `true` if the `toElement` is before the `fromElement` in document order.
844
+ */
845
+ onFocusOut? : ((event: { source: Widget, fromElement: HTMLElement, toElement: HTMLElement, fromWidget: Widget, toWidget: Widget, backwards: boolean }) => void)|string
846
+ /**
847
+ * Triggered after a widget was hidden
848
+ * @param {object} event Event object
849
+ * @param {Core.widget.Widget} event.source The widget
850
+ */
851
+ onHide? : ((event: { source: Widget }) => void)|string
852
+ /**
853
+ * Triggered when a widget which had been in a non-visible state for any reason
854
+ * achieves visibility.
855
+ * ...
856
+ * [View online docs...](https://bryntum.com/products/gantt/docs/api/Gantt/widget/AssignmentPicker#event-paint)
857
+ * @param {object} event Event object
858
+ * @param {Core.widget.Widget} event.source The widget being painted.
859
+ * @param {boolean} event.firstPaint `true` if this is the first paint.
860
+ */
861
+ onPaint? : ((event: { source: Widget, firstPaint: boolean }) => void)|string
862
+ /**
863
+ * Fired when a Widget's read only state is toggled
864
+ * @param {object} event Event object
865
+ * @param {boolean} event.readOnly Read only or not
866
+ */
867
+ onReadOnly? : ((event: { readOnly: boolean }) => void)|string
868
+ /**
869
+ * This event is fired after a widget's elements have been synchronized due to a direct or indirect call
870
+ * to [recompose](https://bryntum.com/products/gantt/docs/api/Core/widget/Widget#function-recompose), if this results in some change to the widget's rendered DOM elements.
871
+ */
872
+ onRecompose? : (() => void)|string
873
+ /**
874
+ * Fired when the encapsulating element of a Widget resizes *only when [monitorResize](https://bryntum.com/products/gantt/docs/api/Core/widget/Widget#config-monitorResize) is `true`*.
875
+ * @param {object} event Event object
876
+ * @param {Core.widget.Widget} event.source This Widget
877
+ * @param {number} event.width The new width
878
+ * @param {number} event.height The new height
879
+ * @param {number} event.oldWidth The old width
880
+ * @param {number} event.oldHeight The old height
881
+ */
882
+ onResize? : ((event: { source: Widget, width: number, height: number, oldWidth: number, oldHeight: number }) => void)|string
883
+ /**
884
+ * Triggered after a widget is shown.
885
+ * @param {object} event Event object
886
+ * @param {Core.widget.Widget} event.source The widget
887
+ */
888
+ onShow? : ((event: { source: Widget }) => void)|string
889
+ /**
890
+ * The active tab has changed.
891
+ * @param {object} event Event object
892
+ * @param {number} event.activeIndex The new active index.
893
+ * @param {Core.widget.Widget} event.activeItem The new active child widget.
894
+ * @param {number} event.prevActiveIndex The previous active index.
895
+ * @param {Core.widget.Widget} event.prevActiveItem The previous active child widget.
896
+ */
897
+ onTabChange? : ((event: { activeIndex: number, activeItem: Widget, prevActiveIndex: number, prevActiveItem: Widget }) => void)|string
898
+ /**
899
+ * A header [tool](https://bryntum.com/products/gantt/docs/api/Core/widget/Panel#config-tools) has been clicked.
900
+ * @param {object} event Event object
901
+ * @param {Core.widget.Tool} event.source This Panel.
902
+ * @param {Core.widget.Tool} event.tool The tool which is being clicked.
903
+ */
904
+ onToolClick? : ((event: { source: Tool, tool: Tool }) => void)|string
905
+
906
+ }
907
+
908
+ export class BryntumAssignmentPicker extends React.Component<BryntumAssignmentPickerProps> {
909
+
910
+ static instanceClass = AssignmentPicker;
911
+
912
+ static instanceName = 'AssignmentPicker';
913
+
914
+ processWidgetContent = processWidgetContent;
915
+
916
+ static configNames = [
917
+ 'adopt',
918
+ 'align',
919
+ 'anchor',
920
+ 'animateTabChange',
921
+ 'ariaDescription',
922
+ 'ariaLabel',
923
+ 'autoHeight',
924
+ 'autoHideResourceTypeTabs',
925
+ 'autoUpdateRecord',
926
+ 'bbar',
927
+ 'bodyCls',
928
+ 'bubbleEvents',
929
+ 'centered',
930
+ 'collapsible',
931
+ 'color',
932
+ 'config',
933
+ 'constrainTo',
934
+ 'contentElementCls',
935
+ 'dataField',
936
+ 'defaultBindProperty',
937
+ 'defaultFocus',
938
+ 'defaults',
939
+ 'detectCSSCompatibilityIssues',
940
+ 'dock',
941
+ 'draggable',
942
+ 'drawer',
943
+ 'elementAttributes',
944
+ 'floating',
945
+ 'footer',
946
+ 'header',
947
+ 'hideAnimation',
948
+ 'hideWhenEmpty',
949
+ 'htmlCls',
950
+ 'icon',
951
+ 'ignoreParentReadOnly',
952
+ 'itemCls',
953
+ 'lazyItems',
954
+ 'listeners',
955
+ 'localeClass',
956
+ 'localizable',
957
+ 'localizableProperties',
958
+ 'maskDefaults',
959
+ 'masked',
960
+ 'monitorResize',
961
+ 'namedItems',
962
+ 'owner',
963
+ 'positioned',
964
+ 'preventTooltipOnTouch',
965
+ 'projectEvent',
966
+ 'relayStoreEvents',
967
+ 'ripple',
968
+ 'rootElement',
969
+ 'scrollAction',
970
+ 'showAnimation',
971
+ 'showCostControls',
972
+ 'showTooltipWhenDisabled',
973
+ 'stateful',
974
+ 'statefulEvents',
975
+ 'stateId',
976
+ 'stateProvider',
977
+ 'store',
978
+ 'strips',
979
+ 'tab',
980
+ 'tabBar',
981
+ 'tabBarItems',
982
+ 'tabMaxWidth',
983
+ 'tabMinWidth',
984
+ 'tag',
985
+ 'tbar',
986
+ 'textAlign',
987
+ 'textContent',
988
+ 'trapFocus',
989
+ 'type',
990
+ 'ui',
991
+ 'weight'
992
+ ];
993
+
994
+ static propertyConfigNames = [
995
+ 'activeTab',
996
+ 'alignSelf',
997
+ 'appendTo',
998
+ 'callOnFunctions',
999
+ 'catchEventHandlerExceptions',
1000
+ 'cls',
1001
+ 'collapsed',
1002
+ 'column',
1003
+ 'content',
1004
+ 'dataset',
1005
+ 'disabled',
1006
+ 'extraData',
1007
+ 'flex',
1008
+ 'height',
1009
+ 'hidden',
1010
+ 'html',
1011
+ 'id',
1012
+ 'inputFieldAlign',
1013
+ 'insertBefore',
1014
+ 'insertFirst',
1015
+ 'items',
1016
+ 'keyMap',
1017
+ 'labelPosition',
1018
+ 'layout',
1019
+ 'layoutStyle',
1020
+ 'margin',
1021
+ 'maxHeight',
1022
+ 'maximizeOnMobile',
1023
+ 'maxWidth',
1024
+ 'minHeight',
1025
+ 'minWidth',
1026
+ 'onBeforeDestroy',
1027
+ 'onBeforeHide',
1028
+ 'onBeforeSetRecord',
1029
+ 'onBeforeShow',
1030
+ 'onBeforeStateApply',
1031
+ 'onBeforeStateSave',
1032
+ 'onBeforeTabChange',
1033
+ 'onCatchAll',
1034
+ 'onCollapse',
1035
+ 'onDestroy',
1036
+ 'onDirtyStateChange',
1037
+ 'onElementCreated',
1038
+ 'onExpand',
1039
+ 'onFocusIn',
1040
+ 'onFocusOut',
1041
+ 'onHide',
1042
+ 'onPaint',
1043
+ 'onReadOnly',
1044
+ 'onRecompose',
1045
+ 'onResize',
1046
+ 'onShow',
1047
+ 'onTabChange',
1048
+ 'onToolClick',
1049
+ 'readOnly',
1050
+ 'record',
1051
+ 'rendition',
1052
+ 'rtl',
1053
+ 'scrollable',
1054
+ 'span',
1055
+ 'strictRecordMapping',
1056
+ 'title',
1057
+ 'tools',
1058
+ 'tooltip',
1059
+ 'width',
1060
+ 'x',
1061
+ 'y'
1062
+ ];
1063
+
1064
+ static propertyNames = [
1065
+ 'anchorSize',
1066
+ 'focusVisible',
1067
+ 'hasChanges',
1068
+ 'isSettingValues',
1069
+ 'isValid',
1070
+ 'parent',
1071
+ 'state',
1072
+ 'values'
1073
+ ];
1074
+
1075
+ // Component instance
1076
+ instance!: AssignmentPicker;
1077
+
1078
+ // Component element
1079
+ element! : HTMLElement;
1080
+
1081
+ componentDidMount(): void {
1082
+ this.instance = createWidget(this);
1083
+ }
1084
+
1085
+ componentWillUnmount(): void {
1086
+ // @ts-ignore
1087
+ this.instance?.destroy?.();
1088
+ }
1089
+
1090
+ /**
1091
+ * Component about to be updated, from changing a prop using state.
1092
+ * React to it depending on what changed and prevent react from re-rendering our component.
1093
+ * @param nextProps
1094
+ * @param nextState
1095
+ * @returns {boolean}
1096
+ */
1097
+ shouldComponentUpdate(nextProps: Readonly<BryntumAssignmentPickerProps>, nextState: Readonly<{}>): boolean {
1098
+ return shouldComponentUpdate(this, nextProps, nextState);
1099
+ }
1100
+
1101
+ render(): React.ReactNode {
1102
+
1103
+ const className = `b-react-assignment-picker-container`;
1104
+ return (
1105
+ <div className={className} ref={(element) => (this.element = element!)}></div>
1106
+ );
1107
+
1108
+ }
1109
+ }