@bryntum/taskboard-angular 7.1.1 → 7.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (76) hide show
  1. package/README.md +230 -15
  2. package/package.json +1 -1
  3. package/src/lib/bryntum-button-group.component.ts +1213 -0
  4. package/src/lib/bryntum-button.component.ts +1190 -0
  5. package/src/lib/bryntum-chat-panel.component.ts +1435 -0
  6. package/src/lib/bryntum-checkbox-group.component.ts +1478 -0
  7. package/src/lib/bryntum-checkbox.component.ts +1333 -0
  8. package/src/lib/bryntum-chip-view.component.ts +1225 -0
  9. package/src/lib/bryntum-code-editor.component.ts +1419 -0
  10. package/src/lib/bryntum-color-field.component.ts +1334 -0
  11. package/src/lib/bryntum-column-combo.component.ts +1645 -0
  12. package/src/lib/bryntum-column-filter-field.component.ts +1360 -0
  13. package/src/lib/bryntum-column-picker-button.component.ts +1200 -0
  14. package/src/lib/bryntum-column-scroll-button.component.ts +1200 -0
  15. package/src/lib/bryntum-combo.component.ts +1634 -0
  16. package/src/lib/bryntum-container.component.ts +1166 -0
  17. package/src/lib/bryntum-date-field.component.ts +1413 -0
  18. package/src/lib/bryntum-date-picker.component.ts +1756 -0
  19. package/src/lib/bryntum-date-range-field.component.ts +1417 -0
  20. package/src/lib/bryntum-date-time-field.component.ts +1261 -0
  21. package/src/lib/bryntum-demo-code-editor.component.ts +1441 -0
  22. package/src/lib/bryntum-demo-header.component.ts +141 -0
  23. package/src/lib/bryntum-display-field.component.ts +1308 -0
  24. package/src/lib/bryntum-duration-field.component.ts +1390 -0
  25. package/src/lib/bryntum-editor.component.ts +1343 -0
  26. package/src/lib/bryntum-field-filter-picker-group.component.ts +1308 -0
  27. package/src/lib/bryntum-field-filter-picker.component.ts +1272 -0
  28. package/src/lib/bryntum-field-set.component.ts +1408 -0
  29. package/src/lib/bryntum-file-field.component.ts +1313 -0
  30. package/src/lib/bryntum-file-picker.component.ts +1199 -0
  31. package/src/lib/bryntum-filter-field.component.ts +1367 -0
  32. package/src/lib/bryntum-fullscreen-button.component.ts +53 -0
  33. package/src/lib/bryntum-hint.component.ts +1506 -0
  34. package/src/lib/bryntum-label.component.ts +989 -0
  35. package/src/lib/bryntum-list.component.ts +1196 -0
  36. package/src/lib/bryntum-menu.component.ts +1520 -0
  37. package/src/lib/bryntum-month-picker.component.ts +1400 -0
  38. package/src/lib/bryntum-number-field.component.ts +1368 -0
  39. package/src/lib/bryntum-paging-toolbar.component.ts +1243 -0
  40. package/src/lib/bryntum-panel.component.ts +1377 -0
  41. package/src/lib/bryntum-password-field.component.ts +1296 -0
  42. package/src/lib/bryntum-project-combo.component.ts +1648 -0
  43. package/src/lib/bryntum-radio-group.component.ts +1446 -0
  44. package/src/lib/bryntum-radio.component.ts +1333 -0
  45. package/src/lib/bryntum-resources-combo.component.ts +1644 -0
  46. package/src/lib/bryntum-scheduler-project-combo.component.ts +1638 -0
  47. package/src/lib/bryntum-slide-toggle.component.ts +1333 -0
  48. package/src/lib/bryntum-slider.component.ts +1112 -0
  49. package/src/lib/bryntum-splitter.component.ts +1025 -0
  50. package/src/lib/bryntum-swimlane-combo.component.ts +1644 -0
  51. package/src/lib/bryntum-swimlane-filter-field.component.ts +1377 -0
  52. package/src/lib/bryntum-swimlane-picker-button.component.ts +1200 -0
  53. package/src/lib/bryntum-swimlane-scroll-button.component.ts +1200 -0
  54. package/src/lib/bryntum-tab-panel.component.ts +1441 -0
  55. package/src/lib/bryntum-tag-combo.component.ts +1651 -0
  56. package/src/lib/bryntum-task-board-base.component.ts +2388 -0
  57. package/src/lib/bryntum-task-board-field-filter-picker-group.component.ts +1316 -0
  58. package/src/lib/bryntum-task-board-field-filter-picker.component.ts +1254 -0
  59. package/src/lib/bryntum-task-board-project-model.component.ts +1026 -0
  60. package/src/lib/bryntum-task-board.component.ts +2392 -0
  61. package/src/lib/bryntum-task-color-combo.component.ts +1334 -0
  62. package/src/lib/bryntum-task-filter-field.component.ts +1377 -0
  63. package/src/lib/bryntum-text-area-field.component.ts +1312 -0
  64. package/src/lib/bryntum-text-area-picker-field.component.ts +1343 -0
  65. package/src/lib/bryntum-text-field.component.ts +1321 -0
  66. package/src/lib/bryntum-time-field.component.ts +1388 -0
  67. package/src/lib/bryntum-time-picker.component.ts +1207 -0
  68. package/src/lib/bryntum-todo-list-field.component.ts +1318 -0
  69. package/src/lib/bryntum-toolbar.component.ts +1234 -0
  70. package/src/lib/bryntum-undo-redo.component.ts +1179 -0
  71. package/src/lib/bryntum-widget.component.ts +982 -0
  72. package/src/lib/bryntum-year-picker.component.ts +1423 -0
  73. package/src/lib/bryntum-zoom-slider.component.ts +1122 -0
  74. package/src/lib/taskboard.module.ts +232 -0
  75. package/src/lib/wrapper.helper.ts +89 -0
  76. package/src/public-api.ts +77 -0
@@ -0,0 +1,2392 @@
1
+ /* eslint-disable @typescript-eslint/no-unused-vars */
2
+ /**
3
+ * Angular wrapper for Bryntum TaskBoard
4
+ */
5
+
6
+ import { Component, ElementRef, EventEmitter, Output, Input, SimpleChange, SimpleChanges, OnDestroy, OnInit } from '@angular/core';
7
+
8
+ import WrapperHelper from './wrapper.helper';
9
+
10
+ import { AlignSpec, AssignmentModel, AssignmentModelConfig, Base, BryntumScrollOptions, CardSize, ColumnDrag, ColumnDragConfig, ColumnFilter, ColumnFilterConfig, ColumnHeaderMenu, ColumnHeaderMenuConfig, ColumnLock, ColumnLockConfig, ColumnModel, ColumnModelConfig, ColumnRename, ColumnRenameConfig, ColumnResize, ColumnResizeConfig, ColumnSort, ColumnSortConfig, ColumnToolbars, ColumnToolbarsConfig, Container, ContainerItemConfig, DomConfig, FilterBar, FilterBarConfig, KeyMapConfig, Mask, MaskConfig, Menu, MenuItem, MenuItemEntry, Model, PagingToolbarConfig, Panel, PanelCollapserConfig, PanelCollapserOverlayConfig, PanelHeader, ProjectModel, ProjectModelConfig, Rectangle, ResourceModel, ResourceModelConfig, ScrollManagerConfig, Scroller, ScrollerConfig, SimpleTaskEdit, SimpleTaskEditConfig, StateProvider, Store, StoreConfig, SwimlaneDrag, SwimlaneDragConfig, SwimlaneModel, SwimlaneModelConfig, TabConfig, TaskBoard, TaskBoardListeners, TaskDrag, TaskDragConfig, TaskDragSelect, TaskDragSelectConfig, TaskEdit, TaskEditConfig, TaskEditor, TaskItemOptions, TaskMenu, TaskMenuConfig, TaskModel, TaskModelConfig, TaskTooltip, TaskTooltipConfig, Tool, ToolConfig, ToolbarConfig, ToolbarItems, Widget } from '@bryntum/taskboard';
11
+
12
+ import { StringHelper } from '@bryntum/taskboard';
13
+
14
+ export type BryntumTaskBoardProps = {
15
+ // Configs
16
+ /**
17
+ * The name of the event that should activate a task and trigger editing (if an editing feature is active).
18
+ * Available options are: 'taskClick', 'taskDblClick' or null (disable)
19
+ */
20
+ activateTaskEvent ? : 'taskClick'|'taskDblClick'|null
21
+ /**
22
+ * Element (or element id) to adopt as this Widget's encapsulating element. The widget's
23
+ * content will be placed inside this element.
24
+ * ...
25
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-adopt)
26
+ */
27
+ adopt ? : HTMLElement|string
28
+ /**
29
+ * *Only valid if this Widget is [floating](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#config-floating).*
30
+ * ...
31
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-align)
32
+ */
33
+ align ? : AlignSpec|string
34
+ /**
35
+ * When this widget is a child of a [Container](https://bryntum.com/products/taskboard/docs/api/Core/widget/Container), it will by default be participating in a
36
+ * flexbox layout. This config allows you to set this widget's
37
+ * [align-self](https://developer.mozilla.org/en-US/docs/Web/CSS/align-self) style.
38
+ */
39
+ alignSelf ? : string
40
+ /**
41
+ * *Only valid if this Widget is [floating](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#config-floating) and being shown through [showBy](#Core/widget/Widget#function-showBy).*
42
+ * `true` to show a connector arrow pointing to the align target.
43
+ */
44
+ anchor ? : boolean
45
+ /**
46
+ * Element (or the id of an element) to append this widget's element to. Can be configured, or set once at
47
+ * runtime. To access the element of a rendered widget, see [element](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#property-element).
48
+ */
49
+ appendTo ? : HTMLElement|string
50
+ /**
51
+ * A localizable string (May contain `'L{}'` tokens which resolve in the locale file) to inject
52
+ * into an element which will be linked using the `aria-describedby` attribute.
53
+ * ...
54
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-ariaDescription)
55
+ */
56
+ ariaDescription ? : string
57
+ /**
58
+ * A localizable string (May contain `'L{}'` tokens which resolve in the locale file) to inject as
59
+ * the `aria-label` attribute.
60
+ * ...
61
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-ariaLabel)
62
+ */
63
+ ariaLabel ? : string
64
+ /**
65
+ * Inline [assignments](https://bryntum.com/products/scheduler/docs#Scheduler/model/AssignmentModel), will be loaded into an internally created
66
+ * [AssignmentStore](https://bryntum.com/products/scheduler/docs#Scheduler/data/AssignmentStore) as a part of a [project](https://bryntum.com/products/taskboard/docs/api/TaskBoard/model/ProjectModel).
67
+ */
68
+ assignments ? : AssignmentModel[]|object[]|AssignmentModelConfig[]
69
+ /**
70
+ * Set to `true` to auto generate columns when [columns](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/mixin/TaskBoardColumns#config-columns) is undefined.
71
+ * ...
72
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-autoGenerateColumns)
73
+ */
74
+ autoGenerateColumns ? : boolean
75
+ /**
76
+ * Set to `true` to auto generate swimlanes when [swimlanes](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/mixin/TaskBoardSwimlanes#config-swimlanes) is undefined.
77
+ * ...
78
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-autoGenerateSwimlanes)
79
+ */
80
+ autoGenerateSwimlanes ? : boolean
81
+ /**
82
+ * A Config object representing the configuration of a [Toolbar](https://bryntum.com/products/taskboard/docs/api/Core/widget/Toolbar),
83
+ * 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/taskboard/docs/api/Core/widget/Panel#config-strips).
84
+ * ...
85
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-bbar)
86
+ */
87
+ bbar ? : (ContainerItemConfig|string)[]|ToolbarConfig|PagingToolbarConfig|null
88
+ /**
89
+ * Custom CSS classes to add to the panel's body element.
90
+ * ...
91
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-bodyCls)
92
+ */
93
+ bodyCls ? : string|object
94
+ /**
95
+ * Items to add to each card's body.
96
+ * ...
97
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-bodyItems)
98
+ */
99
+ bodyItems ? : Record<string, TaskItemOptions>
100
+ /**
101
+ * An object where property names with a truthy value indicate which events should bubble up the ownership
102
+ * hierarchy when triggered.
103
+ * ...
104
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-bubbleEvents)
105
+ */
106
+ bubbleEvents ? : object
107
+ /**
108
+ * Set to `false` to not call onXXX method names (e.g. `onShow`, `onClick`), as an easy way to listen for events.
109
+ * ...
110
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-callOnFunctions)
111
+ */
112
+ callOnFunctions ? : boolean
113
+ /**
114
+ * An array of [CardSize](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/mixin/ResponsiveCards#typedef-CardSize) objects to use as responsive levels based on card widths.
115
+ * ...
116
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-cardSizes)
117
+ */
118
+ cardSizes ? : CardSize
119
+ /**
120
+ * By default, if an event handler throws an exception, the error propagates up the stack and the
121
+ * application state is undefined. Code which follows the event handler will *not* be executed.
122
+ * ...
123
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-catchEventHandlerExceptions)
124
+ */
125
+ catchEventHandlerExceptions ? : boolean
126
+ /**
127
+ * *Only valid if this Widget is [floating](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#config-floating).*
128
+ * Set to `true` to centre the Widget in browser viewport space.
129
+ */
130
+ centered ? : boolean
131
+ /**
132
+ * Columns hold their tasks in stores chained off the project's task store. Filters applied to the project store
133
+ * are by default not applied to the column stores; they are only affected by their own filters. By configuring
134
+ * `chainFilters : true`, the filters from the project store will also be taken into account when filtering the
135
+ * columns.
136
+ * ...
137
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-chainFilters)
138
+ */
139
+ chainFilters ? : boolean
140
+ /**
141
+ * Custom CSS classes to add to element.
142
+ * May be specified as a space separated string, or as an object in which property names
143
+ * with truthy values are used as the class names:
144
+ * ...
145
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-cls)
146
+ */
147
+ cls ? : string|object
148
+ /**
149
+ * Controls whether the panel is collapsed (the body of the panel is hidden while only the header is
150
+ * visible). Only valid if the panel is [collapsible](https://bryntum.com/products/taskboard/docs/api/Core/widget/Panel#config-collapsible).
151
+ */
152
+ collapsed ? : boolean
153
+ /**
154
+ * Specify `true` to hide the column title instead of rotating it on collapse.
155
+ * ...
156
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-collapseTitle)
157
+ */
158
+ collapseTitle ? : boolean
159
+ /**
160
+ * This config enables collapsibility for the panel. See [collapsed](https://bryntum.com/products/taskboard/docs/api/Core/widget/Panel#config-collapsed).
161
+ * ...
162
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-collapsible)
163
+ */
164
+ collapsible ? : boolean|PanelCollapserConfig|PanelCollapserOverlayConfig
165
+ /**
166
+ * Applies the specified color to the widget, by setting the `--b-primary` CSS variable in the widgets
167
+ * `style` block.
168
+ * ...
169
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-color)
170
+ */
171
+ color ? : string
172
+ /**
173
+ * Programmatic control over which column to start in when used in a grid layout.
174
+ */
175
+ column ? : number
176
+ /**
177
+ * Field on a task record used to determine which column the task belongs to.
178
+ * ...
179
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-columnField)
180
+ */
181
+ columnField ? : string
182
+ /**
183
+ * Store containing the TaskBoard columns. A tasks [columnField](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/mixin/TaskBoardColumns#config-columnField) is matched against the `id` of a
184
+ * column to determine in which column it is displayed.
185
+ * ...
186
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-columns)
187
+ */
188
+ columns ? : ColumnModel[]|ColumnModelConfig[]|string[]|Store|string|StoreConfig
189
+ /**
190
+ * A function which renders the text, HTML, or `DomConfig` object to show as the column title. If you provide a
191
+ * `DomConfig` object, it will replace the title element and you are responsible for styling it + laying it out.
192
+ * ...
193
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-columnTitleRenderer)
194
+ * @param {object} renderData
195
+ * @param {TaskBoard.model.ColumnModel} columnRecord The column instance
196
+ * @returns {string,DomConfig}
197
+ */
198
+ columnTitleRenderer ? : (renderData: object, columnRecord: ColumnModel) => string|DomConfig
199
+ config ? : object
200
+ /**
201
+ * *Only valid if this Widget is [floating](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#config-floating) or [positioned](#Core/widget/Widget#config-positioned).*
202
+ * Element, Widget or Rectangle to which this Widget is constrained.
203
+ */
204
+ constrainTo ? : HTMLElement|Widget|Rectangle
205
+ /**
206
+ * Initial CSS variables to set.
207
+ * ...
208
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-css)
209
+ */
210
+ css ? : Record<string, string>
211
+ /**
212
+ * CSS variable prefix, appended to the keys used in [css](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoardBase#config-css).
213
+ * ...
214
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-cssVarPrefix)
215
+ */
216
+ cssVarPrefix ? : string
217
+ /**
218
+ * When this Widget configuration is used in the Grid's RowExpander feature's `widget` config, provide the
219
+ * field on the expanded record to use for populating this widget's store (if applicable)
220
+ */
221
+ dataField ? : string
222
+ /**
223
+ * Object to apply to elements dataset (each key will be used as a data-attribute on the element)
224
+ */
225
+ dataset ? : Record<string, string>
226
+ /**
227
+ * Check for CSS compatibility issues when upgrading to v7. Performs the following checks:
228
+ * ...
229
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-detectCSSCompatibilityIssues)
230
+ */
231
+ detectCSSCompatibilityIssues ? : boolean
232
+ /**
233
+ * Disable or enable the widget. It is similar to [readOnly](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#config-readOnly) except a disabled widget
234
+ * cannot be focused, uses a different rendition (usually greyish) and does not allow selecting its value.
235
+ * ...
236
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-disabled)
237
+ */
238
+ disabled ? : boolean|'inert'
239
+ /**
240
+ * Controls the placement of this widget when it is added to a [panel's ](https://bryntum.com/products/taskboard/docs/api/Core/widget/Panel)
241
+ * [strips collection](https://bryntum.com/products/taskboard/docs/api/Core/widget/Panel#config-strips). Typical values for this config are `'top'`,
242
+ * `'bottom'`, `'left'`, or `'right'`, which cause the widget to be placed on that side of the panel's
243
+ * body. Such widgets are called "edge strips".
244
+ * ...
245
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-dock)
246
+ */
247
+ dock ? : 'top'|'bottom'|'left'|'right'|'start'|'end'|'header'|'pre-header'|object
248
+ /**
249
+ * *Only valid if this Widget is [floating](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#config-floating).*
250
+ * Set to `true` to be able to drag a widget freely on the page. Or set to an object with a ´handleSelector´
251
+ * property which controls when a drag should start.
252
+ * ...
253
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-draggable)
254
+ */
255
+ draggable ? : boolean|{
256
+ handleSelector?: string
257
+ }
258
+ /**
259
+ * Make this Panel a docked drawer which slides out from one side of the browser viewport by default.
260
+ * ...
261
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-drawer)
262
+ * @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.
263
+ * @param {string,number} size The size of the drawer in its collapsible axis.
264
+ * @param {boolean} inline If using the [appendTo](https://bryntum.com/products/taskboard/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.
265
+ * @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.
266
+ * @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.
267
+ * @param {boolean,string} autoClose.focusout If focus moves outside of the drawer, the drawer will automatically be hidden.
268
+ * @param {string} autoClose.mouseout Hides the drawer when the mouse leaves the drawer after the `autoCloseDelay` period.
269
+ * @param {number} autoCloseDelay When using `mouseout`, this is the delay in milliseconds
270
+ */
271
+ 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}
272
+ /**
273
+ * Whether to draw cards on scroll, or only when scrolling ends.
274
+ * ...
275
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-drawOnScroll)
276
+ */
277
+ drawOnScroll ? : boolean
278
+ /**
279
+ * An object specifying attributes to assign to the root element of this widget.
280
+ * Set `null` value to attribute to remove it.
281
+ * ...
282
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-elementAttributes)
283
+ */
284
+ elementAttributes ? : Record<string, string|null>
285
+ extraData ? : any
286
+ /**
287
+ * When this widget is a child of a [Container](https://bryntum.com/products/taskboard/docs/api/Core/widget/Container), it will by default be participating in a
288
+ * flexbox layout. This config allows you to set this widget's
289
+ * [flex](https://developer.mozilla.org/en-US/docs/Web/CSS/flex) style.
290
+ * This may be configured as a single number or a `&lt;flex-grow&gt; &lt;flex-shrink&gt; &lt;flex-basis&gt;` format string.
291
+ * numeric-only values are interpreted as the `flex-grow` value.
292
+ */
293
+ flex ? : number|string
294
+ /**
295
+ * Set to `true` to move the widget out of the document flow and position it
296
+ * absolutely in browser viewport space.
297
+ */
298
+ floating ? : boolean
299
+ /**
300
+ * Config object of a footer. May contain a `dock`, `html` and a `cls` property. A footer is not a widget,
301
+ * but rather plain HTML that follows the last element of the panel's body and [strips](https://bryntum.com/products/taskboard/docs/api/Core/widget/Panel#config-strips).
302
+ * ...
303
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-footer)
304
+ */
305
+ footer ? : {
306
+ dock?: 'top'|'right'|'bottom'|'left'|'start'|'end'
307
+ html?: string
308
+ cls?: string
309
+ }|string
310
+ /**
311
+ * Items to add to each card's footer.
312
+ * ...
313
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-footerItems)
314
+ */
315
+ footerItems ? : Record<string, TaskItemOptions>
316
+ /**
317
+ * The function is called for each task as part of the render loop, and is expected to return the height in
318
+ * pixels for the task. Using this function is only recommended when using partial virtualized rendering, see
319
+ * the [virtualize](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/mixin/TaskBoardVirtualization#config-virtualize) setting.
320
+ * ...
321
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-getTaskHeight)
322
+ * @param {TaskBoard.model.TaskModel} taskRecord The task record
323
+ * @returns {number} The height of the task in pixels
324
+ */
325
+ getTaskHeight ? : (taskRecord: TaskModel) => number
326
+ /**
327
+ * A config [object](https://bryntum.com/products/taskboard/docs/api/Core/widget/Panel#typedef-PanelHeader) for the panel's header or a string in place of a `title`.
328
+ * ...
329
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-header)
330
+ */
331
+ header ? : string|boolean|PanelHeader
332
+ /**
333
+ * Items to add to each card's header.
334
+ * ...
335
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-headerItems)
336
+ */
337
+ headerItems ? : Record<string, TaskItemOptions>
338
+ /**
339
+ * Widget's height, used to set element `style.height`. Either specify a valid height string or a number,
340
+ * which will get 'px' appended. We recommend using CSS as the primary way to control height, but in some
341
+ * cases this config is convenient.
342
+ */
343
+ height ? : string|number
344
+ /**
345
+ * Configure with true to make widget initially hidden.
346
+ */
347
+ hidden ? : boolean
348
+ /**
349
+ * *Only valid if this Widget is [floating](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#config-floating).*
350
+ * ...
351
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-hideAnimation)
352
+ */
353
+ hideAnimation ? : boolean|object
354
+ /**
355
+ * By default, the header text is HTML-encoded. Set this flag to `false` disable this and allow html
356
+ * elements in the column headers. Can also be specified on a single
357
+ * [column](https://bryntum.com/products/taskboard/docs/api/TaskBoard/model/ColumnModel#field-htmlEncodeHeaderText).
358
+ */
359
+ htmlEncodeHeaderText ? : boolean
360
+ /**
361
+ * An icon to show before the [title](https://bryntum.com/products/taskboard/docs/api/Core/widget/Panel#config-title). Either pass a CSS class as a string, or pass a
362
+ * [DomConfig](https://bryntum.com/products/taskboard/docs/api/Core/helper/DomHelper#typedef-DomConfig) object describing an element to represent the icon.
363
+ */
364
+ icon ? : string|DomConfig
365
+ /**
366
+ * Widget id, if not specified one will be generated. Also used for lookups through Widget.getById
367
+ */
368
+ id ? : string
369
+ /**
370
+ * Determines if the widgets read-only state should be controlled by its parent.
371
+ * ...
372
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-ignoreParentReadOnly)
373
+ */
374
+ ignoreParentReadOnly ? : boolean
375
+ /**
376
+ * Convenience setting to align input fields of child widgets. By default, the Field input element is
377
+ * placed immediately following the `label`. If you prefer to have all input fields aligned to the
378
+ * right, set this config to `'end'`.
379
+ * ...
380
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-inputFieldAlign)
381
+ */
382
+ inputFieldAlign ? : 'start'|'end'
383
+ /**
384
+ * Element (or element id) to insert this widget before. If provided, [appendTo](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#config-appendTo) config is ignored.
385
+ */
386
+ insertBefore ? : HTMLElement|string
387
+ /**
388
+ * Element (or element id) to append this widget element to, as a first child. If provided, [appendTo](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#config-appendTo) config is ignored.
389
+ */
390
+ insertFirst ? : HTMLElement|string
391
+ /**
392
+ * A template method (empty by default) allowing you to control if a task can be selected or not.
393
+ * ...
394
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-isTaskSelectable)
395
+ * @param {TaskBoard.model.TaskModel} taskRecord The task record
396
+ * @returns {boolean} `true` if the task can be selected, otherwise `false`
397
+ */
398
+ isTaskSelectable ? : (taskRecord: TaskModel) => boolean
399
+ /**
400
+ * See [Keyboard shortcuts](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#keyboard-shortcuts) for details
401
+ */
402
+ keyMap ? : Record<string, KeyMapConfig>
403
+ /**
404
+ * Convenience setting to use same label placement on all child widgets.
405
+ * ...
406
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-labelPosition)
407
+ */
408
+ labelPosition ? : 'before'|'above'|'align-before'|'auto'|null
409
+ /**
410
+ * The listener set for this object.
411
+ * ...
412
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-listeners)
413
+ */
414
+ listeners ? : TaskBoardListeners
415
+ /**
416
+ * A [Mask](https://bryntum.com/products/taskboard/docs/api/Core/widget/Mask) config object, or a message to be shown when a store is performing a remote
417
+ * operation, or Crud Manager is loading data from the sever. Set to `null` to disable default load mask.
418
+ */
419
+ loadMask ? : string|MaskConfig|null
420
+ /**
421
+ * A [Mask](https://bryntum.com/products/taskboard/docs/api/Core/widget/Mask) config object to adjust the [maskDefaults](#Core/widget/Widget#config-maskDefaults)
422
+ * when data is loading. The message and optional configuration from the
423
+ * [loadMask](https://bryntum.com/products/taskboard/docs/api/Core/mixin/LoadMaskable#config-loadMask) config take priority over these options, just as they do
424
+ * for `maskDefaults`, respectively.
425
+ * ...
426
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-loadMaskDefaults)
427
+ */
428
+ loadMaskDefaults ? : MaskConfig
429
+ /**
430
+ * A [Mask](https://bryntum.com/products/taskboard/docs/api/Core/widget/Mask) config object to adjust the [maskDefaults](#Core/widget/Widget#config-maskDefaults)
431
+ * when an error occurs loading data.
432
+ * ...
433
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-loadMaskError)
434
+ */
435
+ loadMaskError ? : MaskConfig|Mask|boolean
436
+ /**
437
+ * A class translations of which are used for translating this entity.
438
+ * This is often used when translations of an item are defined on its container class.
439
+ * For example:
440
+ * ...
441
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-localeClass)
442
+ */
443
+ localeClass ? : typeof Base
444
+ /**
445
+ * Set to `false` to disable localization of this object.
446
+ */
447
+ localizable ? : boolean
448
+ /**
449
+ * List of properties which values should be translated automatically upon a locale applying.
450
+ * In case there is a need to localize not typical value (not a String value or a field with re-defined setter/getter),
451
+ * you could use 'localeKey' meta configuration.
452
+ * Example:
453
+ * ...
454
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-localizableProperties)
455
+ */
456
+ localizableProperties ? : string[]
457
+ /**
458
+ * Widget's margin. This may be configured as a single number or a `TRBL` format string.
459
+ * numeric-only values are interpreted as pixels.
460
+ */
461
+ margin ? : number|string
462
+ /**
463
+ * This config object contains the defaults for the [Mask](https://bryntum.com/products/taskboard/docs/api/Core/widget/Mask) created for the
464
+ * [masked](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#config-masked) config. Any properties specified in the `masked` config will override these
465
+ * values.
466
+ */
467
+ maskDefaults ? : MaskConfig
468
+ /**
469
+ * Set to `true` to apply the default mask to the widget. Alternatively, this can be the mask message or a
470
+ * [Mask](https://bryntum.com/products/taskboard/docs/api/Core/widget/Mask) config object.
471
+ */
472
+ masked ? : boolean|string|MaskConfig
473
+ /**
474
+ * The element's maxHeight. Can be either a String or a Number (which will have 'px' appended). Note that
475
+ * like [height](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#config-height), *reading* the value will return the numeric value in pixels.
476
+ */
477
+ maxHeight ? : string|number
478
+ /**
479
+ * *Only valid if this Widget is [floating](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#config-floating).*
480
+ * ...
481
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-maximizeOnMobile)
482
+ */
483
+ maximizeOnMobile ? : number|string
484
+ /**
485
+ * The elements maxWidth. Can be either a String or a Number (which will have 'px' appended). Note that
486
+ * like [width](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#config-width), *reading* the value will return the numeric value in pixels.
487
+ */
488
+ maxWidth ? : string|number
489
+ /**
490
+ * The element's minHeight. Can be either a String or a Number (which will have 'px' appended). Note that
491
+ * like [height](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#config-height), *reading* the value will return the numeric value in pixels.
492
+ */
493
+ minHeight ? : string|number
494
+ /**
495
+ * The elements minWidth. Can be either a String or a Number (which will have 'px' appended). Note that
496
+ * like [width](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#config-width), *reading* the value will return the numeric value in pixels.
497
+ */
498
+ minWidth ? : string|number
499
+ /**
500
+ * Default values to apply to task records created by task boards features (such as the column header menu and
501
+ * the column toolbar)
502
+ */
503
+ newTaskDefaults ? : TaskModelConfig
504
+ /**
505
+ * The owning Widget of this Widget. If this Widget is directly contained (that is, it is one of the
506
+ * [items](https://bryntum.com/products/taskboard/docs/api/Core/widget/Container#property-items) of a Container), this config will be ignored. In this case
507
+ * the owner is <strong>always</strong> the encapsulating Container.
508
+ * ...
509
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-owner)
510
+ */
511
+ owner ? : Widget|any
512
+ /**
513
+ * Specify plugins (an array of classes) in config
514
+ */
515
+ plugins ? : Function[]
516
+ /**
517
+ * Set to `true` when a widget is rendered into another widget's [contentElement](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#property-contentElement), but must
518
+ * not participate in the standard layout of that widget, and must be positioned relatively to that
519
+ * widget's [contentElement](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#property-contentElement).
520
+ * ...
521
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-positioned)
522
+ */
523
+ positioned ? : boolean
524
+ /**
525
+ * A function called on each render before adding items to a tasks card, allowing runtime manipulation of them.
526
+ * ...
527
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-processItems)
528
+ * @param {object} context
529
+ * @param {Record<string, TaskItemOptions>} context.headerItems Item config objects for the task header, keyed by ref
530
+ * @param {Record<string, TaskItemOptions>} context.bodyItems Item config objects for the task body, keyed by ref
531
+ * @param {Record<string, TaskItemOptions>} context.footerItems Item config objects for the task footer, keyed by ref
532
+ * @param {TaskBoard.model.TaskModel} context.taskRecord Record representing task to be rendered
533
+ * @returns {boolean,void} Returning `false` from this function prevents the menu being shown
534
+ */
535
+ processItems ? : (context: { headerItems: Record<string, TaskItemOptions>, bodyItems: Record<string, TaskItemOptions>, footerItems: Record<string, TaskItemOptions>, taskRecord: TaskModel }) => boolean|void
536
+ /**
537
+ * A [project config object](https://bryntum.com/products/taskboard/docs/api/TaskBoard/model/ProjectModel#configs) or an instance that holds all stores and
538
+ * data used by the TaskBoard.
539
+ * ...
540
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-project)
541
+ */
542
+ project ? : ProjectModel|ProjectModelConfig|object
543
+ /**
544
+ * Whether this widget is read-only. This is only valid if the widget is an input
545
+ * field, <strong>or contains input fields at any depth</strong>.
546
+ * ...
547
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-readOnly)
548
+ */
549
+ readOnly ? : boolean
550
+ /**
551
+ * [Record](https://bryntum.com/products/taskboard/docs/api/Core/data/Model) whose values will be used to populate fields in the container.
552
+ * ...
553
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-record)
554
+ */
555
+ record ? : Model
556
+ relayStoreEvents ? : boolean
557
+ /**
558
+ * Either a default `rendition` to apply to all child widgets, or a map of renditions keyed by child widget
559
+ * `type`.
560
+ * ...
561
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-rendition)
562
+ */
563
+ rendition ? : string|Record<string, string>|null
564
+ /**
565
+ * Path to load resource images from. Used by the for example the resource picker in the task editor and by the
566
+ * ResourceAvatars task item. Set this to display miniature images for each resource using their `image` field.
567
+ * ...
568
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-resourceImagePath)
569
+ */
570
+ resourceImagePath ? : string
571
+ /**
572
+ * Inline [resources](https://bryntum.com/products/scheduler/docs#Scheduler/model/ResourceModel), will be loaded into an internally created
573
+ * [ResourceStore](https://bryntum.com/products/scheduler/docs#Scheduler/data/ResourceStore) as a part of a [project](https://bryntum.com/products/taskboard/docs/api/TaskBoard/model/ProjectModel).
574
+ */
575
+ resources ? : ResourceModel[]|object[]|ResourceModelConfig[]
576
+ /**
577
+ * Specifies the various responsive state objects keyed by their name. Each key (except `'*'`, see below) in
578
+ * this object is a state name (see [responsiveState](https://bryntum.com/products/taskboard/docs/api/Core/widget/mixin/Responsive#config-responsiveState)) and its corresponding value is the
579
+ * associated [ResponsiveState](https://bryntum.com/products/taskboard/docs/api/Core/widget/mixin/Responsive#typedef-ResponsiveState) object.
580
+ * ...
581
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-responsive)
582
+ */
583
+ responsive ? : object
584
+ /**
585
+ * Set to `true` to mark this instance as the default [responsiveTarget](https://bryntum.com/products/taskboard/docs/api/Core/widget/mixin/Responsive#config-responsiveTarget) for descendants that do
586
+ * not specify an explicit [responsiveTarget](https://bryntum.com/products/taskboard/docs/api/Core/widget/mixin/Responsive#config-responsiveTarget) of their own.
587
+ */
588
+ responsiveRoot ? : boolean
589
+ /**
590
+ * The name of the active state of the [responsive](https://bryntum.com/products/taskboard/docs/api/Core/widget/mixin/Responsive#config-responsive) config. This is assigned internally
591
+ * and should not be assigned directly.
592
+ */
593
+ responsiveState ? : string
594
+ /**
595
+ * The widget whose size and other properties drive this object's responsive behavior. If this config is not
596
+ * specified, the closest ancestor that specified [responsiveRoot=true](https://bryntum.com/products/taskboard/docs/api/Core/widget/mixin/Responsive#config-responsiveRoot) will be
597
+ * used. If there is no such ancestor, then the instance using this mixin is used.
598
+ * ...
599
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-responsiveTarget)
600
+ */
601
+ responsiveTarget ? : string|Widget
602
+ /**
603
+ * 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`
604
+ */
605
+ rootElement ? : ShadowRoot|HTMLElement
606
+ /**
607
+ * This may be configured as `true` to make the widget's element use the `direction:rtl` style.
608
+ * ...
609
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-rtl)
610
+ */
611
+ rtl ? : boolean
612
+ /**
613
+ * Specifies whether (and optionally in which axes) a Widget may scroll. `true` means this widget may scroll
614
+ * in both axes. May be an object containing boolean `overflowX` and `overflowY` properties which are
615
+ * applied to CSS style properties `overflowX` and `overflowY`. If they are boolean, they are translated to
616
+ * CSS overflow properties thus:
617
+ * ...
618
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-scrollable)
619
+ */
620
+ scrollable ? : boolean|ScrollerConfig|Scroller
621
+ /**
622
+ * Defines what to do if document is scrolled while Widget is visible (only relevant when floating is set to `true`).
623
+ * Valid values: ´null´: do nothing, ´hide´: hide the widget or ´realign´: realign to the target if possible.
624
+ */
625
+ scrollAction ? : 'hide'|'realign'|null
626
+ /**
627
+ * Configuration values for the [ScrollManager](https://bryntum.com/products/taskboard/docs/api/Core/util/ScrollManager) class. It is used to manage column/body
628
+ * scrolling during task, column or swimlane drag.
629
+ * ...
630
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-scrollManager)
631
+ */
632
+ scrollManager ? : ScrollManagerConfig
633
+ /**
634
+ * Default scroll options, see the options for [scrollIntoView](https://bryntum.com/products/taskboard/docs/api/Core/helper/util/Scroller#function-scrollIntoView)
635
+ * ...
636
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-scrollOptions)
637
+ */
638
+ scrollOptions ? : BryntumScrollOptions
639
+ /**
640
+ * Selected tasks.
641
+ */
642
+ selectedTasks ? : TaskModel[]
643
+ /**
644
+ * Configure with `true` to change the default behaviour of keyboard navigation from moving focus to selecting
645
+ * tasks:
646
+ * ...
647
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-selectOnNavigation)
648
+ */
649
+ selectOnNavigation ? : boolean|string
650
+ /**
651
+ * *Only valid if this Widget is [floating](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#config-floating).*
652
+ * ...
653
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-showAnimation)
654
+ */
655
+ showAnimation ? : boolean|object
656
+ /**
657
+ * Show an icon to expand/collapse columns and swimlanes in their headers.
658
+ * ...
659
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-showCollapseInHeader)
660
+ */
661
+ showCollapseInHeader ? : boolean
662
+ /**
663
+ * By default, a tooltip showing `Expand XX`/`Collapse XX` is shown when hovering the expand/collapse icon for
664
+ * a column or swimlane. To disable the tooltip, set this to `false`.
665
+ */
666
+ showCollapseTooltip ? : boolean
667
+ /**
668
+ * Show task count for a column in its header, appended after the title
669
+ * ...
670
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-showCountInHeader)
671
+ */
672
+ showCountInHeader ? : boolean
673
+ /**
674
+ * Programmatic control over how many columns to span when used in a grid layout.
675
+ */
676
+ span ? : number
677
+ /**
678
+ * This value can be one of the following:
679
+ * ...
680
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-stateful)
681
+ */
682
+ stateful ? : boolean|object|string[]
683
+ /**
684
+ * The events that, when fired by this component, should trigger it to save its state by calling
685
+ * [saveState](https://bryntum.com/products/taskboard/docs/api/Core/mixin/State#function-saveState).
686
+ * ...
687
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-statefulEvents)
688
+ */
689
+ statefulEvents ? : object|string[]
690
+ /**
691
+ * The key to use when saving this object's state in the [stateProvider](https://bryntum.com/products/taskboard/docs/api/Core/mixin/State#config-stateProvider). If this config is
692
+ * not assigned, and [stateful](https://bryntum.com/products/taskboard/docs/api/Core/mixin/State#config-stateful) is not set to `false`, the [id](#Core/widget/Widget#config-id)
693
+ * (if explicitly specified) will be used as the `stateId`.
694
+ * ...
695
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-stateId)
696
+ */
697
+ stateId ? : string
698
+ /**
699
+ * The `StateProvider` to use to save and restore this object's [state](https://bryntum.com/products/taskboard/docs/api/Core/mixin/State#property-state). By default, `state`
700
+ * will be saved using the [default state provider](https://bryntum.com/products/taskboard/docs/api/Core/state/StateProvider#property-instance-static).
701
+ * ...
702
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-stateProvider)
703
+ */
704
+ stateProvider ? : StateProvider
705
+ /**
706
+ * Makes column and swimlane headers sticky
707
+ * ...
708
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-stickyHeaders)
709
+ */
710
+ stickyHeaders ? : boolean
711
+ /**
712
+ * Setting this will cause cards to expand to share the available width if there are fewer than
713
+ * [tasksPerRow](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoardBase#config-tasksPerRow).
714
+ * ...
715
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-stretchCards)
716
+ */
717
+ stretchCards ? : boolean
718
+ /**
719
+ * Specify `true` to match fields by their `name` property only when assigning a [record](https://bryntum.com/products/taskboard/docs/api/Core/widget/Container#config-record),
720
+ * without falling back to `ref`.
721
+ */
722
+ strictRecordMapping ? : boolean
723
+ /**
724
+ * An object containing widgets keyed by name. By default (when no `type` is given), strips are
725
+ * [toolbars](https://bryntum.com/products/taskboard/docs/api/Core/widget/Toolbar). If you want to pass an array, you can use
726
+ * the toolbar's [items](https://bryntum.com/products/taskboard/docs/api/Core/widget/Container#config-items).
727
+ * ...
728
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-strips)
729
+ */
730
+ strips ? : Record<string, ContainerItemConfig>
731
+ /**
732
+ * Field on a task record used to determine which swimlane the task belongs to.
733
+ * ...
734
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-swimlaneField)
735
+ */
736
+ swimlaneField ? : string
737
+ /**
738
+ * An empty function by default, but provided so that you can override it. This function is called each time
739
+ * a swimlane is rendered into the task board. It allows you to manipulate the DOM config object used for the
740
+ * swimlane before it is synced to DOM, thus giving you control over styling and contents.
741
+ * ...
742
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-swimlaneRenderer)
743
+ * @param {object} detail An object containing the information needed to render a swimlane.
744
+ * @param {TaskBoard.model.SwimlaneModel} detail.swimlaneRecord The swimlane.
745
+ * @param {DomConfig} detail.swimlaneConfig DOM config object for the swimlane
746
+ * @returns {void}
747
+ */
748
+ swimlaneRenderer ? : (detail: { swimlaneRecord: SwimlaneModel, swimlaneConfig: DomConfig }) => void
749
+ /**
750
+ * Store containing the TaskBoard swimlanes. A tasks [swimlaneField](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/mixin/TaskBoardSwimlanes#config-swimlaneField) is matched against the `id`
751
+ * of a swimlane to determine in which swimlane it is displayed.
752
+ * ...
753
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-swimlanes)
754
+ */
755
+ swimlanes ? : SwimlaneModel[]|SwimlaneModelConfig[]|Store|string|StoreConfig
756
+ /**
757
+ * TaskBoard does not use a sync mask by default. If you want one, see
758
+ * [syncMask](https://bryntum.com/products/taskboard/docs/api/Core/mixin/LoadMaskable#config-syncMask) for configuration options.
759
+ */
760
+ syncMask ? : string|object|null
761
+ /**
762
+ * A configuration for the [tab](https://bryntum.com/products/taskboard/docs/api/Core/widget/Tab) created for this widget when it is placed in a
763
+ * [TabPanel](https://bryntum.com/products/taskboard/docs/api/Core/widget/TabPanel). For example, this config can be used to control the icon of the `tab` for
764
+ * this widget:
765
+ * ...
766
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-tab)
767
+ */
768
+ tab ? : boolean|TabConfig
769
+ /**
770
+ * When this container is used as a tab in a TabPanel, these items are added to the
771
+ * [TabBar](https://bryntum.com/products/taskboard/docs/api/Core/widget/TabBar) when this container is the active tab.
772
+ * ...
773
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-tabBarItems)
774
+ */
775
+ tabBarItems ? : ToolbarItems[]|Widget[]
776
+ /**
777
+ * An empty function by default, but provided so that you can override it. This function is called each time
778
+ * a task is rendered into the task board. It allows you to manipulate the DOM config object used for the card
779
+ * before it is synced to DOM, thus giving you control over styling and contents.
780
+ * ...
781
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-taskRenderer)
782
+ * @param {object} detail An object containing the information needed to render a task.
783
+ * @param {TaskBoard.model.TaskModel} detail.taskRecord The task record.
784
+ * @param {TaskBoard.model.ColumnModel} detail.columnRecord The column the task will be displayed in.
785
+ * @param {TaskBoard.model.SwimlaneModel} detail.swimlaneRecord The swimlane the task will be displayed in.
786
+ * @param {DomConfig} detail.cardConfig DOM config object for the cards element
787
+ * @returns {void}
788
+ */
789
+ taskRenderer ? : (detail: { taskRecord: TaskModel, columnRecord: ColumnModel, swimlaneRecord: SwimlaneModel, cardConfig: DomConfig }) => void
790
+ /**
791
+ * Inline [tasks](https://bryntum.com/products/taskboard/docs/api/TaskBoard/model/TaskModel), will be loaded into an internally created
792
+ * [TaskStore](https://bryntum.com/products/taskboard/docs/api/TaskBoard/store/TaskStore) as a part of a [project](#TaskBoard/model/ProjectModel).
793
+ */
794
+ tasks ? : TaskModel[]|object[]|TaskModelConfig[]
795
+ /**
796
+ * Allows sorting tasks in the UI independent of how they are sorted in the task store.
797
+ * ...
798
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-taskSorterFn)
799
+ * @param {TaskBoard.model.TaskModel} first The first task to compare
800
+ * @param {TaskBoard.model.TaskModel} second The second task to compare
801
+ * @returns {number} Return `1` if first task is greater than second task, `-1` if the opposite is true or `0` if they are equal
802
+ */
803
+ taskSorterFn ? : boolean|((first: TaskModel, second: TaskModel) => number)
804
+ /**
805
+ * Controls how many cards are rendered to a row in each column. Can be controlled on a per column basis by
806
+ * setting [tasksPerRow](https://bryntum.com/products/taskboard/docs/api/TaskBoard/model/ColumnModel#field-tasksPerRow)
807
+ * ...
808
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-tasksPerRow)
809
+ */
810
+ tasksPerRow ? : number
811
+ /**
812
+ * A Config object representing the configuration of a [Toolbar](https://bryntum.com/products/taskboard/docs/api/Core/widget/Toolbar),
813
+ * or array of config objects representing the child items of a Toolbar.
814
+ * This creates a toolbar docked to the top of the panel immediately below the header.
815
+ * ...
816
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-tbar)
817
+ */
818
+ tbar ? : (ContainerItemConfig|string)[]|ToolbarConfig|PagingToolbarConfig|null
819
+ /**
820
+ * A title to display in the header or owning TabPanel. Causes creation and docking of a header
821
+ * to the top if no header is configured.
822
+ * ...
823
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-title)
824
+ */
825
+ title ? : string
826
+ /**
827
+ * The [tools](https://bryntum.com/products/taskboard/docs/api/Core/widget/Tool) to add either before or after the `title` in the Panel header. Each
828
+ * property name is the reference by which an instantiated tool may be retrieved from the live
829
+ * `[tools](https://bryntum.com/products/taskboard/docs/api/Core/widget/mixin/Toolable#property-tools)` property.
830
+ * ...
831
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-tools)
832
+ */
833
+ tools ? : Record<string, ToolConfig>|null
834
+ type ? : 'taskboard'
835
+ /**
836
+ * Custom CSS class name suffixes to apply to the elements rendered by this widget. This may be specified
837
+ * as a space separated string, an array of strings, or as an object in which property names with truthy
838
+ * values are used as the class names.
839
+ * ...
840
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-ui)
841
+ */
842
+ ui ? : 'plain'|'toolbar'|string|object
843
+ /**
844
+ * Experimental, animate actions that cannot be animated using CSS transitions. Currently includes:
845
+ * ...
846
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-useDomTransition)
847
+ */
848
+ useDomTransition ? : boolean
849
+ /**
850
+ * By turning on this setting you enable partial virtualized rendering for the board, which reduces initial
851
+ * rendering time and makes interaction less sluggish when using thousands of tasks. The tradeoff is that
852
+ * scrolling in most cases will be slower.
853
+ * ...
854
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-virtualize)
855
+ */
856
+ virtualize ? : boolean
857
+ /**
858
+ * A widgets weight determines its position among siblings when added to a [Container](https://bryntum.com/products/taskboard/docs/api/Core/widget/Container).
859
+ * Higher weights go further down.
860
+ */
861
+ weight ? : number
862
+ /**
863
+ * Widget's width, used to set element `style.width`. Either specify a valid width string or a number, which
864
+ * will get 'px' appended. We recommend using CSS as the primary way to control width, but in some cases
865
+ * this config is convenient.
866
+ */
867
+ width ? : string|number
868
+ /**
869
+ * The x position for the widget.
870
+ * ...
871
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-x)
872
+ */
873
+ x ? : number
874
+ /**
875
+ * The y position for the widget.
876
+ * ...
877
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#config-y)
878
+ */
879
+ y ? : number
880
+
881
+ // Features
882
+ /**
883
+ * This feature allows users to drag columns on the TaskBoard to change the column order. Drag is initiated upon
884
+ * mouse down in the column header. Try it out below!
885
+ * ...
886
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/feature/ColumnDrag)
887
+ */
888
+ columnDragFeature ? : object|boolean|string|ColumnDrag|ColumnDragConfig
889
+ /**
890
+ * Adds the ability to filter each column of the TaskBoard.
891
+ * ...
892
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/feature/ColumnFilter)
893
+ */
894
+ columnFilterFeature ? : object|boolean|string|ColumnFilter|ColumnFilterConfig
895
+ /**
896
+ * Adds a menu button (`···`) to column headers, clicking it displays a menu. Items are populated by other features
897
+ * and/or application code.
898
+ * ...
899
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/feature/ColumnHeaderMenu)
900
+ */
901
+ columnHeaderMenuFeature ? : object|boolean|string|ColumnHeaderMenu|ColumnHeaderMenuConfig
902
+ /**
903
+ * Allows user to lock columns to the left or right using the new [locked](https://bryntum.com/products/taskboard/docs/api/TaskBoard/model/ColumnModel#field-locked) field
904
+ * on columns.
905
+ * ...
906
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/feature/ColumnLock)
907
+ */
908
+ columnLockFeature ? : object|boolean|string|ColumnLock|ColumnLockConfig
909
+ /**
910
+ * Allows user to rename columns by either double-clicking column text, or via the column header menu.
911
+ * ...
912
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/feature/ColumnRename)
913
+ */
914
+ columnRenameFeature ? : object|boolean|string|ColumnRename|ColumnRenameConfig
915
+ /**
916
+ * This feature allows users to change the width of individual TaskBoard columns. Resize is initiated upon mouse down on
917
+ * the separator element between column headers. Try it out below!
918
+ * ...
919
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/feature/ColumnResize)
920
+ */
921
+ columnResizeFeature ? : object|boolean|string|ColumnResize|ColumnResizeConfig
922
+ /**
923
+ * Adds the ability to sort each column of the TaskBoard.
924
+ * ...
925
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/feature/ColumnSort)
926
+ */
927
+ columnSortFeature ? : object|boolean|string|ColumnSort|ColumnSortConfig
928
+ /**
929
+ * Adds toolbars to the top and/or bottom of each column. By default it adds a bottom toolbar containing a single button
930
+ * for adding events to that column/swimlane:
931
+ * ...
932
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/feature/ColumnToolbars)
933
+ */
934
+ columnToolbarsFeature ? : object|boolean|string|ColumnToolbars|ColumnToolbarsConfig
935
+ /**
936
+ * Adds the ability to quick search in configured fields of tasks.
937
+ * Renders a filter bar below each column's header.
938
+ * ...
939
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/feature/FilterBar)
940
+ */
941
+ filterBarFeature ? : object|boolean|string|FilterBar|FilterBarConfig
942
+ /**
943
+ * This feature allows inline editing of tasks. Double-clicking an item starts editing it:
944
+ * ...
945
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/feature/SimpleTaskEdit)
946
+ */
947
+ simpleTaskEditFeature ? : object|boolean|string|SimpleTaskEdit|SimpleTaskEditConfig
948
+ /**
949
+ * This feature allows users to drag drop swimlanes on the TaskBoard changing their order (by grabbing their header).
950
+ * ...
951
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/feature/SwimlaneDrag)
952
+ */
953
+ swimlaneDragFeature ? : object|boolean|string|SwimlaneDrag|SwimlaneDragConfig
954
+ /**
955
+ * This feature allows cards on the TaskBoard to be dragged across swimlanes and columns but also vertically in the
956
+ * same column to change the order:
957
+ * ...
958
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/feature/TaskDrag)
959
+ */
960
+ taskDragFeature ? : object|boolean|string|TaskDrag|TaskDragConfig
961
+ /**
962
+ * Enables users to click and drag to select cards on the TaskBoard (marquee selection).
963
+ * ...
964
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/feature/TaskDragSelect)
965
+ */
966
+ taskDragSelectFeature ? : object|boolean|string|TaskDragSelect|TaskDragSelectConfig
967
+ /**
968
+ * This features allows the user to edit tasks in a popup editor that can either be shown centered on screen (the
969
+ * default, double click a task to show the editor):
970
+ * ...
971
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/feature/TaskEdit)
972
+ */
973
+ taskEditFeature ? : object|boolean|string|TaskEdit|TaskEditConfig
974
+ /**
975
+ * Displays a context menu for tasks. Items are populated by other features and/or application code.
976
+ * ...
977
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/feature/TaskMenu)
978
+ */
979
+ taskMenuFeature ? : object|boolean|string|TaskMenu|TaskMenuConfig
980
+ /**
981
+ * Displays a tooltip when hovering a task. By default the tooltip displays:
982
+ * ...
983
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/feature/TaskTooltip)
984
+ */
985
+ taskTooltipFeature ? : object|boolean|string|TaskTooltip|TaskTooltipConfig
986
+
987
+ }
988
+
989
+ @Component({
990
+ selector : 'bryntum-task-board',
991
+ template : ''
992
+ })
993
+ export class BryntumTaskBoardComponent implements OnInit, OnDestroy {
994
+
995
+ public static instanceClass = TaskBoard;
996
+
997
+ public static instanceName = 'TaskBoard';
998
+
999
+ private static bryntumEvents: string[] = [
1000
+ 'onActivateTask',
1001
+ 'onBeforeColumnDrag',
1002
+ 'onBeforeColumnDrop',
1003
+ 'onBeforeColumnResize',
1004
+ 'onBeforeDestroy',
1005
+ 'onBeforeHide',
1006
+ 'onBeforeResponsiveStateChange',
1007
+ 'onBeforeShow',
1008
+ 'onBeforeSimpleTaskEdit',
1009
+ 'onBeforeStateApply',
1010
+ 'onBeforeStateSave',
1011
+ 'onBeforeTaskDrag',
1012
+ 'onBeforeTaskDrop',
1013
+ 'onBeforeTaskEdit',
1014
+ 'onBeforeTaskEditShow',
1015
+ 'onBeforeTaskRemove',
1016
+ 'onCatchAll',
1017
+ 'onCellMenuItem',
1018
+ 'onCellMenuShow',
1019
+ 'onCellMenuToggleItem',
1020
+ 'onCollapse',
1021
+ 'onColumnCollapse',
1022
+ 'onColumnDrag',
1023
+ 'onColumnDragAbort',
1024
+ 'onColumnDragEnd',
1025
+ 'onColumnDragStart',
1026
+ 'onColumnDrop',
1027
+ 'onColumnExpand',
1028
+ 'onColumnFilterHide',
1029
+ 'onColumnFilterShow',
1030
+ 'onColumnFilterToggle',
1031
+ 'onColumnHeaderClick',
1032
+ 'onColumnHeaderContextMenu',
1033
+ 'onColumnHeaderDblClick',
1034
+ 'onColumnHeaderMenuBeforeShow',
1035
+ 'onColumnResize',
1036
+ 'onColumnResizeStart',
1037
+ 'onColumnTitleClick',
1038
+ 'onColumnTitleContextMenu',
1039
+ 'onColumnTitleDblClick',
1040
+ 'onColumnToggle',
1041
+ 'onDestroy',
1042
+ 'onDirtyStateChange',
1043
+ 'onElementCreated',
1044
+ 'onExpand',
1045
+ 'onFocusIn',
1046
+ 'onFocusOut',
1047
+ 'onHide',
1048
+ 'onPaint',
1049
+ 'onReadOnly',
1050
+ 'onRecompose',
1051
+ 'onRemoveTaskElement',
1052
+ 'onRenderTask',
1053
+ 'onRenderTasks',
1054
+ 'onResize',
1055
+ 'onResponsiveStateChange',
1056
+ 'onSelectionChange',
1057
+ 'onShow',
1058
+ 'onSimpleTaskEditCancel',
1059
+ 'onSimpleTaskEditComplete',
1060
+ 'onSwimlaneCollapse',
1061
+ 'onSwimlaneExpand',
1062
+ 'onSwimlaneHeaderClick',
1063
+ 'onSwimlaneHeaderContextMenu',
1064
+ 'onSwimlaneHeaderDblClick',
1065
+ 'onSwimlaneToggle',
1066
+ 'onTaskClick',
1067
+ 'onTaskDblClick',
1068
+ 'onTaskDrag',
1069
+ 'onTaskDragAbort',
1070
+ 'onTaskDragEnd',
1071
+ 'onTaskDragStart',
1072
+ 'onTaskDrop',
1073
+ 'onTaskMenuBeforeShow',
1074
+ 'onTaskMenuItem',
1075
+ 'onTaskMenuShow',
1076
+ 'onTaskMenuToggleItem',
1077
+ 'onTaskMouseEnter',
1078
+ 'onTaskMouseLeave',
1079
+ 'onToolClick'
1080
+ ];
1081
+
1082
+ private static bryntumFeatureNames: string[] = [
1083
+ 'columnDragFeature',
1084
+ 'columnFilterFeature',
1085
+ 'columnHeaderMenuFeature',
1086
+ 'columnLockFeature',
1087
+ 'columnRenameFeature',
1088
+ 'columnResizeFeature',
1089
+ 'columnSortFeature',
1090
+ 'columnToolbarsFeature',
1091
+ 'filterBarFeature',
1092
+ 'simpleTaskEditFeature',
1093
+ 'swimlaneDragFeature',
1094
+ 'taskDragFeature',
1095
+ 'taskDragSelectFeature',
1096
+ 'taskEditFeature',
1097
+ 'taskMenuFeature',
1098
+ 'taskTooltipFeature'
1099
+ ];
1100
+
1101
+ private static bryntumConfigs: string[] = BryntumTaskBoardComponent.bryntumFeatureNames.concat([
1102
+ 'activateTaskEvent',
1103
+ 'adopt',
1104
+ 'align',
1105
+ 'alignSelf',
1106
+ 'anchor',
1107
+ 'appendTo',
1108
+ 'ariaDescription',
1109
+ 'ariaLabel',
1110
+ 'assignments',
1111
+ 'autoGenerateColumns',
1112
+ 'autoGenerateSwimlanes',
1113
+ 'bbar',
1114
+ 'bodyCls',
1115
+ 'bodyItems',
1116
+ 'bubbleEvents',
1117
+ 'callOnFunctions',
1118
+ 'cardSizes',
1119
+ 'catchEventHandlerExceptions',
1120
+ 'centered',
1121
+ 'chainFilters',
1122
+ 'cls',
1123
+ 'collapsed',
1124
+ 'collapseTitle',
1125
+ 'collapsible',
1126
+ 'color',
1127
+ 'column',
1128
+ 'columnField',
1129
+ 'columns',
1130
+ 'columnTitleRenderer',
1131
+ 'config',
1132
+ 'constrainTo',
1133
+ 'css',
1134
+ 'cssVarPrefix',
1135
+ 'dataField',
1136
+ 'dataset',
1137
+ 'detectCSSCompatibilityIssues',
1138
+ 'disabled',
1139
+ 'dock',
1140
+ 'draggable',
1141
+ 'drawer',
1142
+ 'drawOnScroll',
1143
+ 'elementAttributes',
1144
+ 'extraData',
1145
+ 'flex',
1146
+ 'floating',
1147
+ 'footer',
1148
+ 'footerItems',
1149
+ 'getTaskHeight',
1150
+ 'header',
1151
+ 'headerItems',
1152
+ 'height',
1153
+ 'hidden',
1154
+ 'hideAnimation',
1155
+ 'htmlEncodeHeaderText',
1156
+ 'icon',
1157
+ 'id',
1158
+ 'ignoreParentReadOnly',
1159
+ 'inputFieldAlign',
1160
+ 'insertBefore',
1161
+ 'insertFirst',
1162
+ 'isTaskSelectable',
1163
+ 'keyMap',
1164
+ 'labelPosition',
1165
+ 'listeners',
1166
+ 'loadMask',
1167
+ 'loadMaskDefaults',
1168
+ 'loadMaskError',
1169
+ 'localeClass',
1170
+ 'localizable',
1171
+ 'localizableProperties',
1172
+ 'margin',
1173
+ 'maskDefaults',
1174
+ 'masked',
1175
+ 'maxHeight',
1176
+ 'maximizeOnMobile',
1177
+ 'maxWidth',
1178
+ 'minHeight',
1179
+ 'minWidth',
1180
+ 'newTaskDefaults',
1181
+ 'owner',
1182
+ 'plugins',
1183
+ 'positioned',
1184
+ 'processItems',
1185
+ 'project',
1186
+ 'readOnly',
1187
+ 'record',
1188
+ 'relayStoreEvents',
1189
+ 'rendition',
1190
+ 'resourceImagePath',
1191
+ 'resources',
1192
+ 'responsive',
1193
+ 'responsiveRoot',
1194
+ 'responsiveState',
1195
+ 'responsiveTarget',
1196
+ 'rootElement',
1197
+ 'rtl',
1198
+ 'scrollable',
1199
+ 'scrollAction',
1200
+ 'scrollManager',
1201
+ 'scrollOptions',
1202
+ 'selectedTasks',
1203
+ 'selectOnNavigation',
1204
+ 'showAnimation',
1205
+ 'showCollapseInHeader',
1206
+ 'showCollapseTooltip',
1207
+ 'showCountInHeader',
1208
+ 'span',
1209
+ 'stateful',
1210
+ 'statefulEvents',
1211
+ 'stateId',
1212
+ 'stateProvider',
1213
+ 'stickyHeaders',
1214
+ 'stretchCards',
1215
+ 'strictRecordMapping',
1216
+ 'strips',
1217
+ 'swimlaneField',
1218
+ 'swimlaneRenderer',
1219
+ 'swimlanes',
1220
+ 'syncMask',
1221
+ 'tab',
1222
+ 'tabBarItems',
1223
+ 'taskRenderer',
1224
+ 'tasks',
1225
+ 'taskSorterFn',
1226
+ 'tasksPerRow',
1227
+ 'tbar',
1228
+ 'title',
1229
+ 'tools',
1230
+ 'type',
1231
+ 'ui',
1232
+ 'useDomTransition',
1233
+ 'virtualize',
1234
+ 'weight',
1235
+ 'width',
1236
+ 'x',
1237
+ 'y'
1238
+ ]);
1239
+
1240
+ private static bryntumConfigsOnly: string[] = [
1241
+ 'activateTaskEvent',
1242
+ 'adopt',
1243
+ 'align',
1244
+ 'anchor',
1245
+ 'ariaDescription',
1246
+ 'ariaLabel',
1247
+ 'autoGenerateColumns',
1248
+ 'autoGenerateSwimlanes',
1249
+ 'bbar',
1250
+ 'bodyCls',
1251
+ 'bubbleEvents',
1252
+ 'cardSizes',
1253
+ 'centered',
1254
+ 'chainFilters',
1255
+ 'collapseTitle',
1256
+ 'collapsible',
1257
+ 'color',
1258
+ 'columnTitleRenderer',
1259
+ 'config',
1260
+ 'constrainTo',
1261
+ 'cssVarPrefix',
1262
+ 'dataField',
1263
+ 'detectCSSCompatibilityIssues',
1264
+ 'dock',
1265
+ 'draggable',
1266
+ 'drawer',
1267
+ 'elementAttributes',
1268
+ 'floating',
1269
+ 'footer',
1270
+ 'header',
1271
+ 'hideAnimation',
1272
+ 'htmlEncodeHeaderText',
1273
+ 'icon',
1274
+ 'ignoreParentReadOnly',
1275
+ 'listeners',
1276
+ 'loadMask',
1277
+ 'loadMaskDefaults',
1278
+ 'loadMaskError',
1279
+ 'localeClass',
1280
+ 'localizable',
1281
+ 'localizableProperties',
1282
+ 'maskDefaults',
1283
+ 'masked',
1284
+ 'newTaskDefaults',
1285
+ 'owner',
1286
+ 'plugins',
1287
+ 'positioned',
1288
+ 'processItems',
1289
+ 'record',
1290
+ 'relayStoreEvents',
1291
+ 'resourceImagePath',
1292
+ 'responsive',
1293
+ 'responsiveRoot',
1294
+ 'responsiveState',
1295
+ 'responsiveTarget',
1296
+ 'rootElement',
1297
+ 'scrollable',
1298
+ 'scrollAction',
1299
+ 'scrollManager',
1300
+ 'scrollOptions',
1301
+ 'selectOnNavigation',
1302
+ 'showAnimation',
1303
+ 'showCollapseInHeader',
1304
+ 'showCountInHeader',
1305
+ 'stateful',
1306
+ 'statefulEvents',
1307
+ 'stateId',
1308
+ 'stateProvider',
1309
+ 'stickyHeaders',
1310
+ 'strips',
1311
+ 'swimlaneRenderer',
1312
+ 'syncMask',
1313
+ 'tab',
1314
+ 'tabBarItems',
1315
+ 'taskRenderer',
1316
+ 'taskSorterFn',
1317
+ 'tasksPerRow',
1318
+ 'tbar',
1319
+ 'type',
1320
+ 'ui',
1321
+ 'useDomTransition',
1322
+ 'weight'
1323
+ ];
1324
+
1325
+ private static bryntumProps: string[] = BryntumTaskBoardComponent.bryntumFeatureNames.concat([
1326
+ 'alignSelf',
1327
+ 'anchorSize',
1328
+ 'appendTo',
1329
+ 'assignments',
1330
+ 'bodyItems',
1331
+ 'callOnFunctions',
1332
+ 'catchEventHandlerExceptions',
1333
+ 'cls',
1334
+ 'collapsed',
1335
+ 'column',
1336
+ 'columnField',
1337
+ 'columns',
1338
+ 'css',
1339
+ 'dataset',
1340
+ 'disabled',
1341
+ 'drawOnScroll',
1342
+ 'extraData',
1343
+ 'flex',
1344
+ 'focusVisible',
1345
+ 'footerItems',
1346
+ 'getTaskHeight',
1347
+ 'hasChanges',
1348
+ 'headerItems',
1349
+ 'height',
1350
+ 'hidden',
1351
+ 'id',
1352
+ 'inputFieldAlign',
1353
+ 'insertBefore',
1354
+ 'insertFirst',
1355
+ 'isTaskSelectable',
1356
+ 'keyMap',
1357
+ 'labelPosition',
1358
+ 'margin',
1359
+ 'maxHeight',
1360
+ 'maximizeOnMobile',
1361
+ 'maxWidth',
1362
+ 'minHeight',
1363
+ 'minWidth',
1364
+ 'parent',
1365
+ 'project',
1366
+ 'readOnly',
1367
+ 'rendition',
1368
+ 'resources',
1369
+ 'rtl',
1370
+ 'selectedTasks',
1371
+ 'showCollapseTooltip',
1372
+ 'span',
1373
+ 'state',
1374
+ 'stretchCards',
1375
+ 'strictRecordMapping',
1376
+ 'swimlaneField',
1377
+ 'swimlanes',
1378
+ 'tasks',
1379
+ 'title',
1380
+ 'tools',
1381
+ 'virtualize',
1382
+ 'width',
1383
+ 'x',
1384
+ 'y'
1385
+ ]);
1386
+
1387
+ private elementRef: ElementRef;
1388
+ public instance!: TaskBoard;
1389
+
1390
+ private bryntumConfig = {
1391
+ adopt : undefined,
1392
+ appendTo : undefined,
1393
+ href : undefined,
1394
+ angularComponent : this,
1395
+ features : {},
1396
+ listeners : {}
1397
+ };
1398
+
1399
+ constructor(element: ElementRef) {
1400
+ this.elementRef = element;
1401
+ }
1402
+
1403
+ // Configs only
1404
+ @Input() activateTaskEvent ! : 'taskClick'|'taskDblClick'|null;
1405
+ @Input() adopt ! : HTMLElement|string;
1406
+ @Input() align ! : AlignSpec|string;
1407
+ @Input() anchor ! : boolean;
1408
+ @Input() ariaDescription ! : string;
1409
+ @Input() ariaLabel ! : string;
1410
+ @Input() autoGenerateColumns ! : boolean;
1411
+ @Input() autoGenerateSwimlanes ! : boolean;
1412
+ @Input() bbar ! : (ContainerItemConfig|string)[]|ToolbarConfig|PagingToolbarConfig|null;
1413
+ @Input() bodyCls ! : string|object;
1414
+ @Input() bubbleEvents ! : object;
1415
+ @Input() cardSizes ! : CardSize;
1416
+ @Input() centered ! : boolean;
1417
+ @Input() chainFilters ! : boolean;
1418
+ @Input() collapseTitle ! : boolean;
1419
+ @Input() collapsible ! : boolean|PanelCollapserConfig|PanelCollapserOverlayConfig;
1420
+ @Input() color ! : string;
1421
+ @Input() columnTitleRenderer ! : (renderData: object, columnRecord: ColumnModel) => string|DomConfig;
1422
+ @Input() config ! : object;
1423
+ @Input() constrainTo ! : HTMLElement|Widget|Rectangle;
1424
+ @Input() cssVarPrefix ! : string;
1425
+ @Input() dataField ! : string;
1426
+ @Input() detectCSSCompatibilityIssues ! : boolean;
1427
+ @Input() dock ! : 'top'|'bottom'|'left'|'right'|'start'|'end'|'header'|'pre-header'|object;
1428
+ @Input() draggable ! : boolean|{
1429
+ handleSelector?: string
1430
+ };
1431
+ @Input() 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};
1432
+ @Input() elementAttributes ! : Record<string, string|null>;
1433
+ @Input() floating ! : boolean;
1434
+ @Input() footer ! : {
1435
+ dock?: 'top'|'right'|'bottom'|'left'|'start'|'end'
1436
+ html?: string
1437
+ cls?: string
1438
+ }|string;
1439
+ @Input() header ! : string|boolean|PanelHeader;
1440
+ @Input() hideAnimation ! : boolean|object;
1441
+ @Input() htmlEncodeHeaderText ! : boolean;
1442
+ @Input() icon ! : string|DomConfig;
1443
+ @Input() ignoreParentReadOnly ! : boolean;
1444
+ @Input() listeners ! : TaskBoardListeners;
1445
+ @Input() loadMask ! : string|MaskConfig|null;
1446
+ @Input() loadMaskDefaults ! : MaskConfig;
1447
+ @Input() loadMaskError ! : MaskConfig|Mask|boolean;
1448
+ @Input() localeClass ! : typeof Base;
1449
+ @Input() localizable ! : boolean;
1450
+ @Input() localizableProperties ! : string[];
1451
+ @Input() maskDefaults ! : MaskConfig;
1452
+ @Input() masked ! : boolean|string|MaskConfig;
1453
+ @Input() newTaskDefaults ! : TaskModelConfig;
1454
+ @Input() owner ! : Widget|any;
1455
+ @Input() plugins ! : Function[];
1456
+ @Input() positioned ! : boolean;
1457
+ @Input() processItems ! : (context: { headerItems: Record<string, TaskItemOptions>, bodyItems: Record<string, TaskItemOptions>, footerItems: Record<string, TaskItemOptions>, taskRecord: TaskModel }) => boolean|void;
1458
+ @Input() record ! : Model;
1459
+ @Input() relayStoreEvents ! : boolean;
1460
+ @Input() resourceImagePath ! : string;
1461
+ @Input() responsive ! : object;
1462
+ @Input() responsiveRoot ! : boolean;
1463
+ @Input() responsiveState ! : string;
1464
+ @Input() responsiveTarget ! : string|Widget;
1465
+ @Input() rootElement ! : ShadowRoot|HTMLElement;
1466
+ @Input() scrollable ! : boolean|ScrollerConfig|Scroller;
1467
+ @Input() scrollAction ! : 'hide'|'realign'|null;
1468
+ @Input() scrollManager ! : ScrollManagerConfig;
1469
+ @Input() scrollOptions ! : BryntumScrollOptions;
1470
+ @Input() selectOnNavigation ! : boolean|string;
1471
+ @Input() showAnimation ! : boolean|object;
1472
+ @Input() showCollapseInHeader ! : boolean;
1473
+ @Input() showCountInHeader ! : boolean;
1474
+ @Input() stateful ! : boolean|object|string[];
1475
+ @Input() statefulEvents ! : object|string[];
1476
+ @Input() stateId ! : string;
1477
+ @Input() stateProvider ! : StateProvider;
1478
+ @Input() stickyHeaders ! : boolean;
1479
+ @Input() strips ! : Record<string, ContainerItemConfig>;
1480
+ @Input() swimlaneRenderer ! : (detail: { swimlaneRecord: SwimlaneModel, swimlaneConfig: DomConfig }) => void;
1481
+ @Input() syncMask ! : string|object|null;
1482
+ @Input() tab ! : boolean|TabConfig;
1483
+ @Input() tabBarItems ! : ToolbarItems[]|Widget[];
1484
+ @Input() taskRenderer ! : (detail: { taskRecord: TaskModel, columnRecord: ColumnModel, swimlaneRecord: SwimlaneModel, cardConfig: DomConfig }) => void;
1485
+ @Input() taskSorterFn ! : boolean|((first: TaskModel, second: TaskModel) => number);
1486
+ @Input() tasksPerRow ! : number;
1487
+ @Input() tbar ! : (ContainerItemConfig|string)[]|ToolbarConfig|PagingToolbarConfig|null;
1488
+ @Input() type ! : 'taskboard';
1489
+ @Input() ui ! : 'plain'|'toolbar'|string|object;
1490
+ @Input() useDomTransition ! : boolean;
1491
+ @Input() weight ! : number;
1492
+
1493
+ // Configs and properties
1494
+ @Input() alignSelf ! : string;
1495
+ @Input() appendTo ! : HTMLElement|string;
1496
+ @Input() assignments ! : AssignmentModel[]|object[]|AssignmentModelConfig[];
1497
+ @Input() bodyItems ! : Record<string, TaskItemOptions>;
1498
+ @Input() callOnFunctions ! : boolean;
1499
+ @Input() catchEventHandlerExceptions ! : boolean;
1500
+ @Input() cls ! : string|object;
1501
+ @Input() collapsed ! : boolean;
1502
+ @Input() column ! : number;
1503
+ @Input() columnField ! : string;
1504
+ @Input() columns ! : Store|ColumnModel[]|ColumnModelConfig[]|string[]|string|StoreConfig;
1505
+ @Input() css ! : typeof Proxy|Record<string, string>;
1506
+ @Input() dataset ! : object|Record<string, string>;
1507
+ @Input() disabled ! : boolean|'inert';
1508
+ @Input() drawOnScroll ! : boolean;
1509
+ @Input() extraData ! : any;
1510
+ @Input() flex ! : number|string;
1511
+ @Input() footerItems ! : Record<string, TaskItemOptions>;
1512
+ @Input() getTaskHeight ! : (taskRecord: TaskModel) => number;
1513
+ @Input() headerItems ! : Record<string, TaskItemOptions>;
1514
+ @Input() height ! : number|string;
1515
+ @Input() hidden ! : boolean;
1516
+ @Input() id ! : string;
1517
+ @Input() inputFieldAlign ! : 'start'|'end';
1518
+ @Input() insertBefore ! : HTMLElement|string;
1519
+ @Input() insertFirst ! : HTMLElement|string;
1520
+ @Input() isTaskSelectable ! : (taskRecord: TaskModel) => boolean;
1521
+ @Input() keyMap ! : Record<string, KeyMapConfig>;
1522
+ @Input() labelPosition ! : 'before'|'above'|'align-before'|'auto'|null;
1523
+ @Input() margin ! : number|string;
1524
+ @Input() maxHeight ! : string|number;
1525
+ @Input() maximizeOnMobile ! : number|string;
1526
+ @Input() maxWidth ! : string|number;
1527
+ @Input() minHeight ! : string|number;
1528
+ @Input() minWidth ! : string|number;
1529
+ @Input() project ! : ProjectModel|ProjectModelConfig|object;
1530
+ @Input() readOnly ! : boolean;
1531
+ @Input() rendition ! : string|Record<string, string>|null;
1532
+ @Input() resources ! : ResourceModel[]|object[]|ResourceModelConfig[];
1533
+ @Input() rtl ! : boolean;
1534
+ @Input() selectedTasks ! : TaskModel[];
1535
+ @Input() showCollapseTooltip ! : boolean;
1536
+ @Input() span ! : number;
1537
+ @Input() stretchCards ! : boolean;
1538
+ @Input() strictRecordMapping ! : boolean;
1539
+ @Input() swimlaneField ! : string;
1540
+ @Input() swimlanes ! : Store|SwimlaneModel[]|SwimlaneModelConfig[]|string|StoreConfig;
1541
+ @Input() tasks ! : TaskModel[]|object[]|TaskModelConfig[];
1542
+ @Input() title ! : string;
1543
+ @Input() tools ! : Record<string, Tool|ToolConfig>|null|Record<string, Tool>|Record<string, ToolConfig>;
1544
+ @Input() virtualize ! : boolean;
1545
+ @Input() width ! : number|string;
1546
+ @Input() x ! : number;
1547
+ @Input() y ! : number;
1548
+
1549
+ // Properties only
1550
+ @Input() anchorSize ! : number[];
1551
+ @Input() focusVisible ! : boolean;
1552
+ @Input() hasChanges ! : boolean;
1553
+ @Input() parent ! : Widget;
1554
+ @Input() state ! : any;
1555
+
1556
+ // Features
1557
+ @Input() columnDragFeature ! : object|boolean|string|ColumnDrag|ColumnDragConfig;
1558
+ @Input() columnFilterFeature ! : object|boolean|string|ColumnFilter|ColumnFilterConfig;
1559
+ @Input() columnHeaderMenuFeature ! : object|boolean|string|ColumnHeaderMenu|ColumnHeaderMenuConfig;
1560
+ @Input() columnLockFeature ! : object|boolean|string|ColumnLock|ColumnLockConfig;
1561
+ @Input() columnRenameFeature ! : object|boolean|string|ColumnRename|ColumnRenameConfig;
1562
+ @Input() columnResizeFeature ! : object|boolean|string|ColumnResize|ColumnResizeConfig;
1563
+ @Input() columnSortFeature ! : object|boolean|string|ColumnSort|ColumnSortConfig;
1564
+ @Input() columnToolbarsFeature ! : object|boolean|string|ColumnToolbars|ColumnToolbarsConfig;
1565
+ @Input() filterBarFeature ! : object|boolean|string|FilterBar|FilterBarConfig;
1566
+ @Input() simpleTaskEditFeature ! : object|boolean|string|SimpleTaskEdit|SimpleTaskEditConfig;
1567
+ @Input() swimlaneDragFeature ! : object|boolean|string|SwimlaneDrag|SwimlaneDragConfig;
1568
+ @Input() taskDragFeature ! : object|boolean|string|TaskDrag|TaskDragConfig;
1569
+ @Input() taskDragSelectFeature ! : object|boolean|string|TaskDragSelect|TaskDragSelectConfig;
1570
+ @Input() taskEditFeature ! : object|boolean|string|TaskEdit|TaskEditConfig;
1571
+ @Input() taskMenuFeature ! : object|boolean|string|TaskMenu|TaskMenuConfig;
1572
+ @Input() taskTooltipFeature ! : object|boolean|string|TaskTooltip|TaskTooltipConfig;
1573
+
1574
+ // Events emitters
1575
+ /**
1576
+ * Triggered when a task is "activated" by pressing `Enter` or double clicking it.
1577
+ * ...
1578
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#event-activateTask)
1579
+ * @param {object} event Event object
1580
+ * @param {TaskBoard.view.TaskBoard} event.source This TaskBoard
1581
+ * @param {TaskBoard.model.TaskModel} event.taskRecord Task record
1582
+ * @param {MouseEvent} event.event Browser event
1583
+ */
1584
+ @Output() onActivateTask: any = new EventEmitter<((event: { source: TaskBoard, taskRecord: TaskModel, event: MouseEvent }) => void)|string>();
1585
+ /**
1586
+ * Fires on the owning TaskBoard before column dragging starts. Return `false` to prevent the action
1587
+ * @param {object} event Event object
1588
+ * @param {TaskBoard.view.TaskBoard} event.source Owning TaskBoard
1589
+ * @param {TaskBoard.model.ColumnModel} event.columnRecord Column to be dragged
1590
+ */
1591
+ @Output() onBeforeColumnDrag: any = new EventEmitter<((event: { source: TaskBoard, columnRecord: ColumnModel }) => Promise<boolean>|boolean|void)|string>();
1592
+ /**
1593
+ * Fires on the owning TaskBoard when dropping a column, before the operation completes. Handles async
1594
+ * listeners, returning `false` from one will abort the operation
1595
+ * ...
1596
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#event-beforeColumnDrop)
1597
+ * @param {object} event Event object
1598
+ * @param {TaskBoard.view.TaskBoard} event.source Owning TaskBoard
1599
+ * @param {TaskBoard.model.ColumnModel} event.columnRecord Dropped column
1600
+ * @param {TaskBoard.model.ColumnModel} event.beforeColumn Dropped before this column
1601
+ */
1602
+ @Output() onBeforeColumnDrop: any = new EventEmitter<((event: { source: TaskBoard, columnRecord: ColumnModel, beforeColumn: ColumnModel }) => Promise<boolean>|boolean|void)|string>();
1603
+ /**
1604
+ * This event is fired prior to starting a column resize gesture. The resize is canceled if a listener returns
1605
+ * `false`.
1606
+ * @param {object} event Event object
1607
+ * @param {TaskBoard.view.TaskBoard} event.source The TaskBoard instance
1608
+ * @param {TaskBoard.model.ColumnModel} event.column The column
1609
+ * @param {Event} event.domEvent The browser event
1610
+ */
1611
+ @Output() onBeforeColumnResize: any = new EventEmitter<((event: { source: TaskBoard, column: ColumnModel, domEvent: Event }) => Promise<boolean>|boolean|void)|string>();
1612
+ /**
1613
+ * Fires before an object is destroyed.
1614
+ * @param {object} event Event object
1615
+ * @param {Core.Base} event.source The Object that is being destroyed.
1616
+ */
1617
+ @Output() onBeforeDestroy: any = new EventEmitter<((event: { source: Base }) => void)|string>();
1618
+ /**
1619
+ * Triggered before a widget is hidden. Return `false` to prevent the action.
1620
+ * @param {object} event Event object
1621
+ * @param {Core.widget.Widget} event.source The widget being hidden.
1622
+ */
1623
+ @Output() onBeforeHide: any = new EventEmitter<((event: { source: Widget }) => Promise<boolean>|boolean|void)|string>();
1624
+ /**
1625
+ * Triggered before a new [responsiveState](https://bryntum.com/products/taskboard/docs/api/Core/widget/mixin/Responsive#config-responsiveState) is applied.
1626
+ * @param {object} event Event object
1627
+ * @param {Core.widget.Widget} event.source The widget whose `responsiveState` is to be changed
1628
+ * @param {string} event.state The new value for the widget's `responsiveState`
1629
+ * @param {string} event.oldState The previous value for the widget's `responsiveState`
1630
+ */
1631
+ @Output() onBeforeResponsiveStateChange: any = new EventEmitter<((event: { source: Widget, state: string, oldState: string }) => void)|string>();
1632
+ /**
1633
+ * Triggered before a widget is shown. Return `false` to prevent the action.
1634
+ * @param {object} event Event object
1635
+ * @param {Core.widget.Widget,any} event.source The widget being shown
1636
+ */
1637
+ @Output() onBeforeShow: any = new EventEmitter<((event: { source: Widget|any }) => Promise<boolean>|boolean|void)|string>();
1638
+ /**
1639
+ * Fires on the owning TaskBoard before displaying an inline editor. Returning `false` stops the editor from
1640
+ * being shown.
1641
+ * ...
1642
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#event-beforeSimpleTaskEdit)
1643
+ * @param {object} event Event object
1644
+ * @param {TaskBoard.view.TaskBoard} event.source The task board
1645
+ * @param {TaskBoard.feature.SimpleTaskEdit} event.simpleTaskEdit The simpleTaskEdit feature
1646
+ * @param {TaskBoard.model.TaskModel} event.taskRecord The record about to be shown in the editor
1647
+ * @param {string} event.field Field name being edited
1648
+ */
1649
+ @Output() onBeforeSimpleTaskEdit: any = new EventEmitter<((event: { source: TaskBoard, simpleTaskEdit: SimpleTaskEdit, taskRecord: TaskModel, field: string }) => Promise<boolean>|boolean|void)|string>();
1650
+ /**
1651
+ * Fired before state is applied to the source. Allows editing the state object or preventing the operation.
1652
+ * @param {object} event Event object
1653
+ * @param {any} event.state State object config
1654
+ */
1655
+ @Output() onBeforeStateApply: any = new EventEmitter<((event: { state: any }) => Promise<boolean>|boolean|void)|string>();
1656
+ /**
1657
+ * Fired before state is saved by the StateProvider. Allows editing the state object or preventing the operation.
1658
+ * @param {object} event Event object
1659
+ * @param {any} event.state State object config
1660
+ */
1661
+ @Output() onBeforeStateSave: any = new EventEmitter<((event: { state: any }) => Promise<boolean>|boolean|void)|string>();
1662
+ /**
1663
+ * Fires on the owning TaskBoard before task dragging starts. Return `false` to prevent the action
1664
+ * @param {object} event Event object
1665
+ * @param {TaskBoard.view.TaskBoard} event.source Owning TaskBoard
1666
+ * @param {TaskBoard.model.TaskModel[]} event.taskRecords Tasks to be dragged
1667
+ * @param {Event} event.domEvent The mouse event
1668
+ */
1669
+ @Output() onBeforeTaskDrag: any = new EventEmitter<((event: { source: TaskBoard, taskRecords: TaskModel[], domEvent: Event }) => Promise<boolean>|boolean|void)|string>();
1670
+ /**
1671
+ * Fires on the owning TaskBoard when tasks are dropped, before the operation completes. Handles async
1672
+ * listeners, returning `false` from one will abort the operation
1673
+ * ...
1674
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#event-beforeTaskDrop)
1675
+ * @param {object} event Event object
1676
+ * @param {TaskBoard.view.TaskBoard} event.source Owning TaskBoard
1677
+ * @param {TaskBoard.model.TaskModel[]} event.taskRecords Dropped tasks
1678
+ * @param {TaskBoard.model.ColumnModel} event.targetColumn Dropped on this column
1679
+ * @param {TaskBoard.model.SwimlaneModel} event.targetSwimlane Dropped in this swimlane (if used)
1680
+ * @param {Event} event.domEvent The mouse event
1681
+ */
1682
+ @Output() onBeforeTaskDrop: any = new EventEmitter<((event: { source: TaskBoard, taskRecords: TaskModel[], targetColumn: ColumnModel, targetSwimlane: SwimlaneModel, domEvent: Event }) => Promise<boolean>|boolean|void)|string>();
1683
+ /**
1684
+ * Fires on the owning TaskBoard before a task is displayed in an editor.
1685
+ * ...
1686
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#event-beforeTaskEdit)
1687
+ * @param {object} event Event object
1688
+ * @param {TaskBoard.view.TaskBoard} event.source The owning TaskBoard
1689
+ * @param {TaskBoard.model.TaskModel} event.taskRecord The record about to be shown in the task editor
1690
+ */
1691
+ @Output() onBeforeTaskEdit: any = new EventEmitter<((event: { source: TaskBoard, taskRecord: TaskModel }) => Promise<boolean>|boolean|void)|string>();
1692
+ /**
1693
+ * Fires on the owning TaskBoard when the editor for a task is available, but before it is populated with data
1694
+ * and shown. Allows manipulating fields etc.
1695
+ * ...
1696
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#event-beforeTaskEditShow)
1697
+ * @param {object} event Event object
1698
+ * @param {TaskBoard.view.TaskBoard} event.source The owning TaskBoard
1699
+ * @param {TaskBoard.model.TaskModel} event.taskRecord The record about to be shown in the task editor
1700
+ * @param {TaskBoard.widget.TaskEditor} event.editor The editor
1701
+ */
1702
+ @Output() onBeforeTaskEditShow: any = new EventEmitter<((event: { source: TaskBoard, taskRecord: TaskModel, editor: TaskEditor }) => void)|string>();
1703
+ /**
1704
+ * Triggered when one or more tasks are to be removed by a call to `removeTask()`.
1705
+ * ...
1706
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#event-beforeTaskRemove)
1707
+ * @param {object} event Event object
1708
+ * @param {TaskBoard.view.TaskBoard} event.source This TaskBoard
1709
+ * @param {TaskBoard.model.TaskModel[]} event.taskRecords Task records to be removed
1710
+ */
1711
+ @Output() onBeforeTaskRemove: any = new EventEmitter<((event: { source: TaskBoard, taskRecords: TaskModel[] }) => Promise<boolean>|boolean|void)|string>();
1712
+ /**
1713
+ * Fires when any other event is fired from the object.
1714
+ * ...
1715
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#event-catchAll)
1716
+ * @param {object} event Event object
1717
+ * @param {{[key: string]: any, type: string}} event.event The Object that contains event details
1718
+ * @param {string} event.event.type The type of the event which is caught by the listener
1719
+ */
1720
+ @Output() onCatchAll: any = new EventEmitter<((event: {[key: string]: any, type: string}) => void)|string>();
1721
+ /**
1722
+ * This event fires on the owning TaskBoard when an item is selected in the column header menu.
1723
+ * @param {object} event Event object
1724
+ * @param {TaskBoard.view.TaskBoard} event.source The grid
1725
+ * @param {Core.widget.Menu} event.menu The menu
1726
+ * @param {Core.widget.MenuItem} event.item Selected menu item
1727
+ * @param {TaskBoard.model.ColumnModel} event.columnRecord The column
1728
+ */
1729
+ @Output() onCellMenuItem: any = new EventEmitter<((event: { source: TaskBoard, menu: Menu, item: MenuItem, columnRecord: ColumnModel }) => void)|string>();
1730
+ /**
1731
+ * This event fires on the owning TaskBoard after the context menu is shown for a column header.
1732
+ * @param {object} event Event object
1733
+ * @param {TaskBoard.view.TaskBoard} event.source The grid
1734
+ * @param {Core.widget.Menu} event.menu The menu
1735
+ * @param {Record<string, MenuItemEntry>} event.items Menu item configs
1736
+ * @param {TaskBoard.model.ColumnModel} event.columnRecord The column
1737
+ */
1738
+ @Output() onCellMenuShow: any = new EventEmitter<((event: { source: TaskBoard, menu: Menu, items: Record<string, MenuItemEntry>, columnRecord: ColumnModel }) => void)|string>();
1739
+ /**
1740
+ * This event fires on the owning TaskBoard when a check item is toggled in the column header menu.
1741
+ * @param {object} event Event object
1742
+ * @param {TaskBoard.view.TaskBoard} event.source The grid
1743
+ * @param {Core.widget.Menu} event.menu The menu
1744
+ * @param {Core.widget.MenuItem} event.item Selected menu item
1745
+ * @param {TaskBoard.model.ColumnModel} event.columnRecord The column
1746
+ * @param {boolean} event.checked Checked or not
1747
+ */
1748
+ @Output() onCellMenuToggleItem: any = new EventEmitter<((event: { source: TaskBoard, menu: Menu, item: MenuItem, columnRecord: ColumnModel, checked: boolean }) => void)|string>();
1749
+ /**
1750
+ * Fires when a Panel is collapsed using the [collapsible](https://bryntum.com/products/taskboard/docs/api/Core/widget/Panel#config-collapsible) setting.
1751
+ * @param {object} event Event object
1752
+ * @param {Core.widget.Panel} event.source This Panel.
1753
+ */
1754
+ @Output() onCollapse: any = new EventEmitter<((event: { source: Panel }) => void)|string>();
1755
+ /**
1756
+ * Triggered when a column is collapsed.
1757
+ * @param {object} event Event object
1758
+ * @param {TaskBoard.view.TaskBoard} event.source This TaskBoard
1759
+ * @param {TaskBoard.model.ColumnModel} event.columnRecord Column record
1760
+ */
1761
+ @Output() onColumnCollapse: any = new EventEmitter<((event: { source: TaskBoard, columnRecord: ColumnModel }) => void)|string>();
1762
+ /**
1763
+ * Fires on the owning TaskBoard when a column is dragged, if the drag leads to a change compared to
1764
+ * the last columnDrag event.
1765
+ * ...
1766
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#event-columnDrag)
1767
+ * @param {object} event Event object
1768
+ * @param {TaskBoard.view.TaskBoard} event.source Owning TaskBoard
1769
+ * @param {TaskBoard.model.ColumnModel} event.columnRecord Column being dragged
1770
+ * @param {TaskBoard.model.ColumnModel} event.beforeColumn Insert before this column on drop, `null` if last
1771
+ */
1772
+ @Output() onColumnDrag: any = new EventEmitter<((event: { source: TaskBoard, columnRecord: ColumnModel, beforeColumn: ColumnModel }) => void)|string>();
1773
+ /**
1774
+ * Fires on the owning TaskBoard when a drag operation is aborted (invalid drop or aborted using ESC)
1775
+ * @param {object} event Event object
1776
+ * @param {TaskBoard.view.TaskBoard} event.source Owning TaskBoard
1777
+ * @param {TaskBoard.model.ColumnModel} event.columnRecord Dragged column
1778
+ */
1779
+ @Output() onColumnDragAbort: any = new EventEmitter<((event: { source: TaskBoard, columnRecord: ColumnModel }) => void)|string>();
1780
+ /**
1781
+ * Fires on the owning TaskBoard when a previously started drag operation ends, no matter the
1782
+ * outcome of it (whether valid, invalid or aborted)
1783
+ * @param {object} event Event object
1784
+ * @param {TaskBoard.view.TaskBoard} event.source Owning TaskBoard
1785
+ * @param {TaskBoard.model.ColumnModel} event.columnRecord Affected column
1786
+ */
1787
+ @Output() onColumnDragEnd: any = new EventEmitter<((event: { source: TaskBoard, columnRecord: ColumnModel }) => void)|string>();
1788
+ /**
1789
+ * Fires on the owning TaskBoard when column dragging starts
1790
+ * @param {object} event Event object
1791
+ * @param {TaskBoard.view.TaskBoard} event.source Owning TaskBoard
1792
+ * @param {TaskBoard.model.ColumnModel} event.columnRecord Column to be dragged
1793
+ */
1794
+ @Output() onColumnDragStart: any = new EventEmitter<((event: { source: TaskBoard, columnRecord: ColumnModel }) => void)|string>();
1795
+ /**
1796
+ * Fires on the owning TaskBoard when a column is successfully dropped (after the drop transition
1797
+ * has finished)
1798
+ * @param {object} event Event object
1799
+ * @param {TaskBoard.view.TaskBoard} event.source Owning TaskBoard
1800
+ * @param {TaskBoard.model.ColumnModel} event.columnRecord Dropped column
1801
+ * @param {TaskBoard.model.ColumnModel} event.beforeColumn Dropped before this column (`null` if last)
1802
+ * @param {TaskBoard.model.SwimlaneModel} event.targetSwimlane Dropped in this swimlane (if used)
1803
+ */
1804
+ @Output() onColumnDrop: any = new EventEmitter<((event: { source: TaskBoard, columnRecord: ColumnModel, beforeColumn: ColumnModel, targetSwimlane: SwimlaneModel }) => void)|string>();
1805
+ /**
1806
+ * Triggered when a column is expanded.
1807
+ * @param {object} event Event object
1808
+ * @param {TaskBoard.view.TaskBoard} event.source This TaskBoard
1809
+ * @param {TaskBoard.model.ColumnModel} event.columnRecord Column record
1810
+ */
1811
+ @Output() onColumnExpand: any = new EventEmitter<((event: { source: TaskBoard, columnRecord: ColumnModel }) => void)|string>();
1812
+ /**
1813
+ * Triggered when the column filter is hidden.
1814
+ * @param {object} event Event object
1815
+ * @param {TaskBoard.view.TaskBoard} event.source This TaskBoard
1816
+ * @param {TaskBoard.model.ColumnModel} event.columnRecord Column record
1817
+ */
1818
+ @Output() onColumnFilterHide: any = new EventEmitter<((event: { source: TaskBoard, columnRecord: ColumnModel }) => void)|string>();
1819
+ /**
1820
+ * Triggered when the column filter is displayed.
1821
+ * @param {object} event Event object
1822
+ * @param {TaskBoard.view.TaskBoard} event.source This TaskBoard
1823
+ * @param {TaskBoard.model.ColumnModel} event.columnRecord Column record
1824
+ */
1825
+ @Output() onColumnFilterShow: any = new EventEmitter<((event: { source: TaskBoard, columnRecord: ColumnModel }) => void)|string>();
1826
+ /**
1827
+ * Triggered when the column filter visibility is toggled.
1828
+ * @param {object} event Event object
1829
+ * @param {TaskBoard.view.TaskBoard} event.source This TaskBoard
1830
+ * @param {TaskBoard.model.ColumnModel} event.columnRecord Column record
1831
+ * @param {boolean} event.visible True if filter popup is visible, false otherwise
1832
+ */
1833
+ @Output() onColumnFilterToggle: any = new EventEmitter<((event: { source: TaskBoard, columnRecord: ColumnModel, visible: boolean }) => void)|string>();
1834
+ /**
1835
+ * Triggered when a column header is clicked.
1836
+ * ...
1837
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#event-columnHeaderClick)
1838
+ * @param {object} event Event object
1839
+ * @param {TaskBoard.view.TaskBoard} event.source This TaskBoard
1840
+ * @param {TaskBoard.model.ColumnModel} event.columnRecord Column record
1841
+ * @param {MouseEvent} event.event Browser event
1842
+ */
1843
+ @Output() onColumnHeaderClick: any = new EventEmitter<((event: { source: TaskBoard, columnRecord: ColumnModel, event: MouseEvent }) => void)|string>();
1844
+ /**
1845
+ * Triggered when a column header is right-clicked.
1846
+ * ...
1847
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#event-columnHeaderContextMenu)
1848
+ * @param {object} event Event object
1849
+ * @param {TaskBoard.view.TaskBoard} event.source This TaskBoard
1850
+ * @param {TaskBoard.model.ColumnModel} event.columnRecord Column record
1851
+ * @param {MouseEvent} event.event Browser event
1852
+ */
1853
+ @Output() onColumnHeaderContextMenu: any = new EventEmitter<((event: { source: TaskBoard, columnRecord: ColumnModel, event: MouseEvent }) => void)|string>();
1854
+ /**
1855
+ * Triggered when a column header is double-clicked.
1856
+ * ...
1857
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#event-columnHeaderDblClick)
1858
+ * @param {object} event Event object
1859
+ * @param {TaskBoard.view.TaskBoard} event.source This TaskBoard
1860
+ * @param {TaskBoard.model.ColumnModel} event.columnRecord Column record
1861
+ * @param {MouseEvent} event.event Browser event
1862
+ */
1863
+ @Output() onColumnHeaderDblClick: any = new EventEmitter<((event: { source: TaskBoard, columnRecord: ColumnModel, event: MouseEvent }) => void)|string>();
1864
+ /**
1865
+ * This event fires on the owning TaskBoard before the menu is shown for a column header.
1866
+ * Allows manipulation of the items to show in the same way as in the [processItems](https://bryntum.com/products/taskboard/docs/api/TaskBoard/feature/ColumnHeaderMenu#config-processItems).
1867
+ * ...
1868
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#event-columnHeaderMenuBeforeShow)
1869
+ * @param {object} event Event object
1870
+ * @param {TaskBoard.view.TaskBoard} event.source The grid
1871
+ * @param {Core.widget.Menu} event.menu The menu
1872
+ * @param {Record<string, MenuItemEntry>} event.items Menu item configs
1873
+ * @param {TaskBoard.model.ColumnModel} event.columnRecord The column
1874
+ */
1875
+ @Output() onColumnHeaderMenuBeforeShow: any = new EventEmitter<((event: { source: TaskBoard, menu: Menu, items: Record<string, MenuItemEntry>, columnRecord: ColumnModel }) => Promise<boolean>|boolean|void)|string>();
1876
+ /**
1877
+ * This event is fired after a resize gesture is completed.
1878
+ * @param {object} event Event object
1879
+ * @param {TaskBoard.view.TaskBoard} event.source The TaskBoard instance
1880
+ * @param {TaskBoard.model.ColumnModel} event.column The column
1881
+ * @param {Event} event.domEvent The browser event
1882
+ */
1883
+ @Output() onColumnResize: any = new EventEmitter<((event: { source: TaskBoard, column: ColumnModel, domEvent: Event }) => void)|string>();
1884
+ /**
1885
+ * This event is fired when a column resize gesture starts.
1886
+ * @param {object} event Event object
1887
+ * @param {TaskBoard.view.TaskBoard} event.source The TaskBoard instance
1888
+ * @param {TaskBoard.model.ColumnModel} event.column The column
1889
+ * @param {Event} event.domEvent The browser event
1890
+ */
1891
+ @Output() onColumnResizeStart: any = new EventEmitter<((event: { source: TaskBoard, column: ColumnModel, domEvent: Event }) => void)|string>();
1892
+ /**
1893
+ * Triggered when a column title element is clicked.
1894
+ * ...
1895
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#event-columnTitleClick)
1896
+ * @param {object} event Event object
1897
+ * @param {TaskBoard.view.TaskBoard} event.source This TaskBoard
1898
+ * @param {TaskBoard.model.ColumnModel} event.columnRecord Column record
1899
+ * @param {MouseEvent} event.event Browser event
1900
+ */
1901
+ @Output() onColumnTitleClick: any = new EventEmitter<((event: { source: TaskBoard, columnRecord: ColumnModel, event: MouseEvent }) => void)|string>();
1902
+ /**
1903
+ * Triggered when a column title element is right-clicked.
1904
+ * ...
1905
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#event-columnTitleContextMenu)
1906
+ * @param {object} event Event object
1907
+ * @param {TaskBoard.view.TaskBoard} event.source This TaskBoard
1908
+ * @param {TaskBoard.model.ColumnModel} event.columnRecord Column record
1909
+ * @param {MouseEvent} event.event Browser event
1910
+ */
1911
+ @Output() onColumnTitleContextMenu: any = new EventEmitter<((event: { source: TaskBoard, columnRecord: ColumnModel, event: MouseEvent }) => void)|string>();
1912
+ /**
1913
+ * Triggered when a column title element is double-clicked.
1914
+ * ...
1915
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#event-columnTitleDblClick)
1916
+ * @param {object} event Event object
1917
+ * @param {TaskBoard.view.TaskBoard} event.source This TaskBoard
1918
+ * @param {TaskBoard.model.ColumnModel} event.columnRecord Column record
1919
+ * @param {MouseEvent} event.event Browser event
1920
+ */
1921
+ @Output() onColumnTitleDblClick: any = new EventEmitter<((event: { source: TaskBoard, columnRecord: ColumnModel, event: MouseEvent }) => void)|string>();
1922
+ /**
1923
+ * Triggered when the column collapsed state is toggled.
1924
+ * @param {object} event Event object
1925
+ * @param {TaskBoard.view.TaskBoard} event.source This TaskBoard
1926
+ * @param {TaskBoard.model.ColumnModel} event.columnRecord Column record
1927
+ * @param {boolean} event.collapse `true` if the column is being collapsed.
1928
+ */
1929
+ @Output() onColumnToggle: any = new EventEmitter<((event: { source: TaskBoard, columnRecord: ColumnModel, collapse: boolean }) => void)|string>();
1930
+ /**
1931
+ * Fires when an object is destroyed.
1932
+ * @param {object} event Event object
1933
+ * @param {Core.Base} event.source The Object that is being destroyed.
1934
+ */
1935
+ @Output() onDestroy: any = new EventEmitter<((event: { source: Base }) => void)|string>();
1936
+ /**
1937
+ * Fires when a field is mutated and the state of the [hasChanges](https://bryntum.com/products/taskboard/docs/api/Core/widget/Container#property-hasChanges) property changes
1938
+ * @param {object} event Event object
1939
+ * @param {Core.widget.Container} event.source The container.
1940
+ * @param {boolean} event.dirty The dirty state of the Container - `true` if there are any fields which have been changed since initial load.
1941
+ */
1942
+ @Output() onDirtyStateChange: any = new EventEmitter<((event: { source: Container, dirty: boolean }) => void)|string>();
1943
+ /**
1944
+ * Triggered when a widget's [element](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#property-element) is available.
1945
+ * @param {object} event Event object
1946
+ * @param {HTMLElement} event.element The Widget's element.
1947
+ */
1948
+ @Output() onElementCreated: any = new EventEmitter<((event: { element: HTMLElement }) => void)|string>();
1949
+ /**
1950
+ * Fires when a Panel is expanded using the [collapsible](https://bryntum.com/products/taskboard/docs/api/Core/widget/Panel#config-collapsible) setting.
1951
+ * @param {object} event Event object
1952
+ * @param {Core.widget.Panel} event.source This Panel.
1953
+ */
1954
+ @Output() onExpand: any = new EventEmitter<((event: { source: Panel }) => void)|string>();
1955
+ /**
1956
+ * Fired when focus enters this Widget.
1957
+ * @param {object} event Event object
1958
+ * @param {Core.widget.Widget} event.source This Widget
1959
+ * @param {HTMLElement} event.fromElement The element which lost focus.
1960
+ * @param {HTMLElement} event.toElement The element which gained focus.
1961
+ * @param {Core.widget.Widget} event.fromWidget The widget which lost focus.
1962
+ * @param {Core.widget.Widget} event.toWidget The widget which gained focus.
1963
+ * @param {boolean} event.backwards `true` if the `toElement` is before the `fromElement` in document order.
1964
+ */
1965
+ @Output() onFocusIn: any = new EventEmitter<((event: { source: Widget, fromElement: HTMLElement, toElement: HTMLElement, fromWidget: Widget, toWidget: Widget, backwards: boolean }) => void)|string>();
1966
+ /**
1967
+ * Fired when focus exits this Widget's ownership tree. This is different from a `blur` event.
1968
+ * focus moving from within this Widget's ownership tree, even if there are floating widgets
1969
+ * will not trigger this event. This is when focus exits this widget completely.
1970
+ * @param {object} event Event object
1971
+ * @param {Core.widget.Widget} event.source This Widget
1972
+ * @param {HTMLElement} event.fromElement The element which lost focus.
1973
+ * @param {HTMLElement} event.toElement The element which gained focus.
1974
+ * @param {Core.widget.Widget} event.fromWidget The widget which lost focus.
1975
+ * @param {Core.widget.Widget} event.toWidget The widget which gained focus.
1976
+ * @param {boolean} event.backwards `true` if the `toElement` is before the `fromElement` in document order.
1977
+ */
1978
+ @Output() onFocusOut: any = new EventEmitter<((event: { source: Widget, fromElement: HTMLElement, toElement: HTMLElement, fromWidget: Widget, toWidget: Widget, backwards: boolean }) => void)|string>();
1979
+ /**
1980
+ * Triggered after a widget was hidden
1981
+ * @param {object} event Event object
1982
+ * @param {Core.widget.Widget} event.source The widget
1983
+ */
1984
+ @Output() onHide: any = new EventEmitter<((event: { source: Widget }) => void)|string>();
1985
+ /**
1986
+ * Triggered when a widget which had been in a non-visible state for any reason
1987
+ * achieves visibility.
1988
+ * ...
1989
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#event-paint)
1990
+ * @param {object} event Event object
1991
+ * @param {Core.widget.Widget} event.source The widget being painted.
1992
+ * @param {boolean} event.firstPaint `true` if this is the first paint.
1993
+ */
1994
+ @Output() onPaint: any = new EventEmitter<((event: { source: Widget, firstPaint: boolean }) => void)|string>();
1995
+ /**
1996
+ * Fired when a Widget's read only state is toggled
1997
+ * @param {object} event Event object
1998
+ * @param {boolean} event.readOnly Read only or not
1999
+ */
2000
+ @Output() onReadOnly: any = new EventEmitter<((event: { readOnly: boolean }) => void)|string>();
2001
+ /**
2002
+ * This event is fired after a widget's elements have been synchronized due to a direct or indirect call
2003
+ * to [recompose](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#function-recompose), if this results in some change to the widget's rendered DOM elements.
2004
+ */
2005
+ @Output() onRecompose: any = new EventEmitter<(() => void)|string>();
2006
+ /**
2007
+ * Triggered when a tasks element is removed.
2008
+ * ...
2009
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#event-removeTaskElement)
2010
+ * @param {object} event Event object
2011
+ * @param {TaskBoard.view.TaskBoard} event.source TaskBoard instance
2012
+ * @param {string,number} event.taskId Id of the task (not the record itself since it might be removed)
2013
+ * @param {HTMLElement} event.element Tasks element
2014
+ */
2015
+ @Output() onRemoveTaskElement: any = new EventEmitter<((event: { source: TaskBoard, taskId: string|number, element: HTMLElement }) => void)|string>();
2016
+ /**
2017
+ * Triggered when a task is rendered.
2018
+ * ...
2019
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#event-renderTask)
2020
+ * @param {object} event Event object
2021
+ * @param {TaskBoard.view.TaskBoard} event.source TaskBoard instance
2022
+ * @param {TaskBoard.model.TaskModel} event.taskRecord Task being rendered
2023
+ * @param {boolean} event.isRefresh `true` if the element was updated, `false` if it was added
2024
+ * @param {HTMLElement} event.element Tasks element
2025
+ */
2026
+ @Output() onRenderTask: any = new EventEmitter<((event: { source: TaskBoard, taskRecord: TaskModel, isRefresh: boolean, element: HTMLElement }) => void)|string>();
2027
+ /**
2028
+ * Triggered when all tasks in the task board are rendered
2029
+ * @param {object} event Event object
2030
+ * @param {TaskBoard.view.TaskBoard} event.source TaskBoard instance
2031
+ * @param {TaskBoard.model.TaskModel[]} event.taskRecords Tasks being rendered
2032
+ */
2033
+ @Output() onRenderTasks: any = new EventEmitter<((event: { source: TaskBoard, taskRecords: TaskModel[] }) => void)|string>();
2034
+ /**
2035
+ * Fired when the encapsulating element of a Widget resizes *only when [monitorResize](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#config-monitorResize) is `true`*.
2036
+ * @param {object} event Event object
2037
+ * @param {Core.widget.Widget} event.source This Widget
2038
+ * @param {number} event.width The new width
2039
+ * @param {number} event.height The new height
2040
+ * @param {number} event.oldWidth The old width
2041
+ * @param {number} event.oldHeight The old height
2042
+ */
2043
+ @Output() onResize: any = new EventEmitter<((event: { source: Widget, width: number, height: number, oldWidth: number, oldHeight: number }) => void)|string>();
2044
+ /**
2045
+ * Triggered when a new [responsiveState](https://bryntum.com/products/taskboard/docs/api/Core/widget/mixin/Responsive#config-responsiveState) is applied.
2046
+ * @param {object} event Event object
2047
+ * @param {Core.widget.Widget} event.source The widget whose `responsiveState` has changed
2048
+ * @param {string} event.state The new value for the widget's `responsiveState`
2049
+ * @param {string} event.oldState The previous value for the widget's `responsiveState`
2050
+ */
2051
+ @Output() onResponsiveStateChange: any = new EventEmitter<((event: { source: Widget, state: string, oldState: string }) => void)|string>();
2052
+ /**
2053
+ * Triggered when task selection changes.
2054
+ * @param {object} event Event object
2055
+ * @param {TaskBoard.view.TaskBoard} event.source TaskBoard instance
2056
+ * @param {'select','deselect'} event.action Either 'select' or 'deselect', depending on operation
2057
+ * @param {TaskBoard.model.TaskModel[]} event.selection All currently selected tasks
2058
+ * @param {TaskBoard.model.TaskModel[]} event.select Tasks selected by the operation
2059
+ * @param {TaskBoard.model.TaskModel[]} event.deselect Tasks deselected by the operation
2060
+ */
2061
+ @Output() onSelectionChange: any = new EventEmitter<((event: { source: TaskBoard, action: 'select'|'deselect', selection: TaskModel[], select: TaskModel[], deselect: TaskModel[] }) => void)|string>();
2062
+ /**
2063
+ * Triggered after a widget is shown.
2064
+ * @param {object} event Event object
2065
+ * @param {Core.widget.Widget} event.source The widget
2066
+ */
2067
+ @Output() onShow: any = new EventEmitter<((event: { source: Widget }) => void)|string>();
2068
+ /**
2069
+ * Fires on the owning TaskBoard when inline editing of a field is cancelled (by pressing ESC).
2070
+ * ...
2071
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#event-simpleTaskEditCancel)
2072
+ * @param {object} event Event object
2073
+ * @param {TaskBoard.view.TaskBoard} event.source The task board
2074
+ * @param {TaskBoard.feature.SimpleTaskEdit} event.simpleTaskEdit The simpleTaskEdit feature
2075
+ * @param {TaskBoard.model.TaskModel} event.taskRecord Record that was edited
2076
+ * @param {string} event.field Field name being edited
2077
+ */
2078
+ @Output() onSimpleTaskEditCancel: any = new EventEmitter<((event: { source: TaskBoard, simpleTaskEdit: SimpleTaskEdit, taskRecord: TaskModel, field: string }) => Promise<boolean>|boolean|void)|string>();
2079
+ /**
2080
+ * Fires on the owning TaskBoard when inline editing of a field has successfully finished.
2081
+ * ...
2082
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#event-simpleTaskEditComplete)
2083
+ * @param {object} event Event object
2084
+ * @param {TaskBoard.view.TaskBoard} event.source The task board
2085
+ * @param {TaskBoard.feature.SimpleTaskEdit} event.simpleTaskEdit The simpleTaskEdit feature
2086
+ * @param {TaskBoard.model.TaskModel} event.taskRecord Record that was edited
2087
+ * @param {string} event.field Field name being edited
2088
+ */
2089
+ @Output() onSimpleTaskEditComplete: any = new EventEmitter<((event: { source: TaskBoard, simpleTaskEdit: SimpleTaskEdit, taskRecord: TaskModel, field: string }) => Promise<boolean>|boolean|void)|string>();
2090
+ /**
2091
+ * Triggered when a swimlane is collapsed.
2092
+ * @param {object} event Event object
2093
+ * @param {TaskBoard.view.TaskBoard} event.source This TaskBoard
2094
+ * @param {TaskBoard.model.SwimlaneModel} event.swimlaneRecord Swimlane record
2095
+ */
2096
+ @Output() onSwimlaneCollapse: any = new EventEmitter<((event: { source: TaskBoard, swimlaneRecord: SwimlaneModel }) => void)|string>();
2097
+ /**
2098
+ * Triggered when a swimlane is expanded.
2099
+ * @param {object} event Event object
2100
+ * @param {TaskBoard.view.TaskBoard} event.source This TaskBoard
2101
+ * @param {TaskBoard.model.SwimlaneModel} event.swimlaneRecord Swimlane record
2102
+ */
2103
+ @Output() onSwimlaneExpand: any = new EventEmitter<((event: { source: TaskBoard, swimlaneRecord: SwimlaneModel }) => void)|string>();
2104
+ /**
2105
+ * Triggered when a swimlane header is clicked.
2106
+ * ...
2107
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#event-swimlaneHeaderClick)
2108
+ * @param {object} event Event object
2109
+ * @param {TaskBoard.view.TaskBoard} event.source This TaskBoard
2110
+ * @param {TaskBoard.model.SwimlaneModel} event.swimlaneRecord Swimlane record
2111
+ * @param {MouseEvent} event.event Browser event
2112
+ */
2113
+ @Output() onSwimlaneHeaderClick: any = new EventEmitter<((event: { source: TaskBoard, swimlaneRecord: SwimlaneModel, event: MouseEvent }) => void)|string>();
2114
+ /**
2115
+ * Triggered when a swimlane header is right-clicked.
2116
+ * ...
2117
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#event-swimlaneHeaderContextMenu)
2118
+ * @param {object} event Event object
2119
+ * @param {TaskBoard.view.TaskBoard} event.source This TaskBoard
2120
+ * @param {TaskBoard.model.SwimlaneModel} event.swimlaneRecord Swimlane record
2121
+ * @param {MouseEvent} event.event Browser event
2122
+ */
2123
+ @Output() onSwimlaneHeaderContextMenu: any = new EventEmitter<((event: { source: TaskBoard, swimlaneRecord: SwimlaneModel, event: MouseEvent }) => void)|string>();
2124
+ /**
2125
+ * Triggered when a swimlane header is double-clicked.
2126
+ * ...
2127
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#event-swimlaneHeaderDblClick)
2128
+ * @param {object} event Event object
2129
+ * @param {TaskBoard.view.TaskBoard} event.source This TaskBoard
2130
+ * @param {TaskBoard.model.SwimlaneModel} event.swimlaneRecord Swimlane record
2131
+ * @param {MouseEvent} event.event Browser event
2132
+ */
2133
+ @Output() onSwimlaneHeaderDblClick: any = new EventEmitter<((event: { source: TaskBoard, swimlaneRecord: SwimlaneModel, event: MouseEvent }) => void)|string>();
2134
+ /**
2135
+ * Triggered when the swimlane collapsed state is toggled.
2136
+ * @param {object} event Event object
2137
+ * @param {TaskBoard.view.TaskBoard} event.source This TaskBoard
2138
+ * @param {TaskBoard.model.SwimlaneModel} event.swimlaneRecord Swimlane record
2139
+ * @param {boolean} event.collapse `true` if the column is being collapsed.
2140
+ */
2141
+ @Output() onSwimlaneToggle: any = new EventEmitter<((event: { source: TaskBoard, swimlaneRecord: SwimlaneModel, collapse: boolean }) => void)|string>();
2142
+ /**
2143
+ * Triggered when a card is clicked.
2144
+ * ...
2145
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#event-taskClick)
2146
+ * @param {object} event Event object
2147
+ * @param {TaskBoard.view.TaskBoard} event.source This TaskBoard
2148
+ * @param {TaskBoard.model.TaskModel} event.taskRecord Task record
2149
+ * @param {TaskBoard.model.ColumnModel} event.columnRecord Column record for the tasks column
2150
+ * @param {TaskBoard.model.SwimlaneModel} event.swimlaneRecord Swimlane record for the tasks swimlane (if used)
2151
+ * @param {MouseEvent} event.event Browser event
2152
+ */
2153
+ @Output() onTaskClick: any = new EventEmitter<((event: { source: TaskBoard, taskRecord: TaskModel, columnRecord: ColumnModel, swimlaneRecord: SwimlaneModel, event: MouseEvent }) => void)|string>();
2154
+ /**
2155
+ * Triggered when a card is double-clicked
2156
+ * ...
2157
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#event-taskDblClick)
2158
+ * @param {object} event Event object
2159
+ * @param {TaskBoard.view.TaskBoard} event.source This TaskBoard
2160
+ * @param {TaskBoard.model.TaskModel} event.taskRecord Task record
2161
+ * @param {TaskBoard.model.ColumnModel} event.columnRecord Column record for the tasks column
2162
+ * @param {TaskBoard.model.SwimlaneModel} event.swimlaneRecord Swimlane record for the tasks swimlane (if used)
2163
+ * @param {MouseEvent} event.event Browser event
2164
+ */
2165
+ @Output() onTaskDblClick: any = new EventEmitter<((event: { source: TaskBoard, taskRecord: TaskModel, columnRecord: ColumnModel, swimlaneRecord: SwimlaneModel, event: MouseEvent }) => void)|string>();
2166
+ /**
2167
+ * Fires on the owning TaskBoard when tasks are dragged, if the drag leads to any changes compared to
2168
+ * the last taskDrag event (moved to a new column or changed order within a column).
2169
+ * ...
2170
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#event-taskDrag)
2171
+ * @param {object} event Event object
2172
+ * @param {TaskBoard.view.TaskBoard} event.source Owning TaskBoard
2173
+ * @param {TaskBoard.model.TaskModel[]} event.taskRecords Dragged tasks
2174
+ * @param {TaskBoard.model.ColumnModel} event.targetColumn Currently over this column
2175
+ * @param {TaskBoard.model.SwimlaneModel} event.targetSwimlane Currently over this swimlane (if used)
2176
+ * @param {Event} event.domEvent The mouse event
2177
+ */
2178
+ @Output() onTaskDrag: any = new EventEmitter<((event: { source: TaskBoard, taskRecords: TaskModel[], targetColumn: ColumnModel, targetSwimlane: SwimlaneModel, domEvent: Event }) => void)|string>();
2179
+ /**
2180
+ * Fires on the owning TaskBoard when a drag operation is aborted (invalid drop or aborted using ESC)
2181
+ * @param {object} event Event object
2182
+ * @param {TaskBoard.view.TaskBoard} event.source Owning TaskBoard
2183
+ * @param {TaskBoard.model.TaskModel[]} event.taskRecords Dragged tasks
2184
+ */
2185
+ @Output() onTaskDragAbort: any = new EventEmitter<((event: { source: TaskBoard, taskRecords: TaskModel[] }) => void)|string>();
2186
+ /**
2187
+ * Fires on the owning TaskBoard when a previously started drag operation ends, no matter the
2188
+ * outcome of it (whether valid, invalid or aborted)
2189
+ * @param {object} event Event object
2190
+ * @param {TaskBoard.view.TaskBoard} event.source Owning TaskBoard
2191
+ * @param {TaskBoard.model.TaskModel[]} event.taskRecords Affected tasks
2192
+ * @param {Event} event.domEvent The mouse event
2193
+ */
2194
+ @Output() onTaskDragEnd: any = new EventEmitter<((event: { source: TaskBoard, taskRecords: TaskModel[], domEvent: Event }) => void)|string>();
2195
+ /**
2196
+ * Fires on the owning TaskBoard when task dragging starts
2197
+ * @param {object} event Event object
2198
+ * @param {TaskBoard.view.TaskBoard} event.source Owning TaskBoard
2199
+ * @param {TaskBoard.model.TaskModel[]} event.taskRecords Tasks to be dragged
2200
+ * @param {Event} event.domEvent The mouse event
2201
+ */
2202
+ @Output() onTaskDragStart: any = new EventEmitter<((event: { source: TaskBoard, taskRecords: TaskModel[], domEvent: Event }) => void)|string>();
2203
+ /**
2204
+ * Fires on the owning TaskBoard when tasks are successfully dropped (after the drop transition has
2205
+ * finished)
2206
+ * @param {object} event Event object
2207
+ * @param {TaskBoard.view.TaskBoard} event.source Owning TaskBoard
2208
+ * @param {TaskBoard.model.TaskModel[]} event.taskRecords Dropped tasks
2209
+ * @param {TaskBoard.model.ColumnModel} event.targetColumn Dropped on this column
2210
+ * @param {TaskBoard.model.SwimlaneModel} event.targetSwimlane Dropped in this swimlane (if used)
2211
+ * @param {Event} event.domEvent The mouse event
2212
+ */
2213
+ @Output() onTaskDrop: any = new EventEmitter<((event: { source: TaskBoard, taskRecords: TaskModel[], targetColumn: ColumnModel, targetSwimlane: SwimlaneModel, domEvent: Event }) => void)|string>();
2214
+ /**
2215
+ * This event fires on the owning TaskBoard before the context menu is shown for a task.
2216
+ * Allows manipulation of the items to show in the same way as in the [processItems](https://bryntum.com/products/taskboard/docs/api/TaskBoard/feature/TaskMenu#config-processItems).
2217
+ * ...
2218
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#event-taskMenuBeforeShow)
2219
+ * @param {object} event Event object
2220
+ * @param {TaskBoard.view.TaskBoard} event.source The grid
2221
+ * @param {Core.widget.Menu} event.menu The menu
2222
+ * @param {Record<string, MenuItemEntry>} event.items Menu item configs
2223
+ * @param {TaskBoard.model.TaskModel} event.taskRecord The task
2224
+ */
2225
+ @Output() onTaskMenuBeforeShow: any = new EventEmitter<((event: { source: TaskBoard, menu: Menu, items: Record<string, MenuItemEntry>, taskRecord: TaskModel }) => Promise<boolean>|boolean|void)|string>();
2226
+ /**
2227
+ * This event fires on the owning TaskBoard when an item is selected in the task context menu.
2228
+ * @param {object} event Event object
2229
+ * @param {TaskBoard.view.TaskBoard} event.source The grid
2230
+ * @param {Core.widget.Menu} event.menu The menu
2231
+ * @param {Core.widget.MenuItem} event.item Selected menu item
2232
+ * @param {TaskBoard.model.TaskModel} event.taskRecord The task
2233
+ */
2234
+ @Output() onTaskMenuItem: any = new EventEmitter<((event: { source: TaskBoard, menu: Menu, item: MenuItem, taskRecord: TaskModel }) => void)|string>();
2235
+ /**
2236
+ * This event fires on the owning TaskBoard after the context menu is shown for a task.
2237
+ * @param {object} event Event object
2238
+ * @param {TaskBoard.view.TaskBoard} event.source The grid
2239
+ * @param {Core.widget.Menu} event.menu The menu
2240
+ * @param {Record<string, MenuItemEntry>} event.items Menu item configs
2241
+ * @param {TaskBoard.model.TaskModel} event.taskRecord The task
2242
+ */
2243
+ @Output() onTaskMenuShow: any = new EventEmitter<((event: { source: TaskBoard, menu: Menu, items: Record<string, MenuItemEntry>, taskRecord: TaskModel }) => void)|string>();
2244
+ /**
2245
+ * This event fires on the owning TaskBoard when a check item is toggled in the task context menu.
2246
+ * @param {object} event Event object
2247
+ * @param {TaskBoard.view.TaskBoard} event.source The grid
2248
+ * @param {Core.widget.Menu} event.menu The menu
2249
+ * @param {Core.widget.MenuItem} event.item Selected menu item
2250
+ * @param {TaskBoard.model.TaskModel} event.taskRecord The task
2251
+ * @param {boolean} event.checked Checked or not
2252
+ */
2253
+ @Output() onTaskMenuToggleItem: any = new EventEmitter<((event: { source: TaskBoard, menu: Menu, item: MenuItem, taskRecord: TaskModel, checked: boolean }) => void)|string>();
2254
+ /**
2255
+ * Triggered when the mouse enters a card
2256
+ * ...
2257
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#event-taskMouseEnter)
2258
+ * @param {object} event Event object
2259
+ * @param {TaskBoard.view.TaskBoard} event.source This TaskBoard
2260
+ * @param {TaskBoard.model.TaskModel} event.taskRecord Task record
2261
+ * @param {TaskBoard.model.ColumnModel} event.columnRecord Column record for the tasks column
2262
+ * @param {TaskBoard.model.SwimlaneModel} event.swimlaneRecord Swimlane record for the tasks swimlane (if used)
2263
+ * @param {MouseEvent} event.event Browser event
2264
+ */
2265
+ @Output() onTaskMouseEnter: any = new EventEmitter<((event: { source: TaskBoard, taskRecord: TaskModel, columnRecord: ColumnModel, swimlaneRecord: SwimlaneModel, event: MouseEvent }) => void)|string>();
2266
+ /**
2267
+ * Triggered when the mouse leaves a card
2268
+ * ...
2269
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/view/TaskBoard#event-taskMouseLeave)
2270
+ * @param {object} event Event object
2271
+ * @param {TaskBoard.view.TaskBoard} event.source This TaskBoard
2272
+ * @param {TaskBoard.model.TaskModel} event.taskRecord Task record
2273
+ * @param {TaskBoard.model.ColumnModel} event.columnRecord Column record for the tasks column
2274
+ * @param {TaskBoard.model.SwimlaneModel} event.swimlaneRecord Swimlane record for the tasks swimlane (if used)
2275
+ * @param {MouseEvent} event.event Browser event
2276
+ */
2277
+ @Output() onTaskMouseLeave: any = new EventEmitter<((event: { source: TaskBoard, taskRecord: TaskModel, columnRecord: ColumnModel, swimlaneRecord: SwimlaneModel, event: MouseEvent }) => void)|string>();
2278
+ /**
2279
+ * A header [tool](https://bryntum.com/products/taskboard/docs/api/Core/widget/Panel#config-tools) has been clicked.
2280
+ * @param {object} event Event object
2281
+ * @param {Core.widget.Tool} event.source This Panel.
2282
+ * @param {Core.widget.Tool} event.tool The tool which is being clicked.
2283
+ */
2284
+ @Output() onToolClick: any = new EventEmitter<((event: { source: Tool, tool: Tool }) => void)|string>();
2285
+
2286
+ /**
2287
+ * Create and append the underlying widget
2288
+ */
2289
+ ngOnInit(): void {
2290
+ const
2291
+ me = this,
2292
+ {
2293
+ elementRef,
2294
+ bryntumConfig
2295
+ } = me,
2296
+ {
2297
+ instanceClass,
2298
+ instanceName,
2299
+ bryntumConfigs,
2300
+ bryntumEvents
2301
+ } = BryntumTaskBoardComponent;
2302
+
2303
+ bryntumConfigs.filter(prop => prop in this).forEach(prop => {
2304
+ // @ts-ignore
2305
+ WrapperHelper.applyPropValue(bryntumConfig, prop, this[prop]);
2306
+ if (['features', 'config'].includes(prop)) {
2307
+ WrapperHelper.devWarningConfigProp(instanceName, prop);
2308
+ }
2309
+ });
2310
+ // @ts-ignore
2311
+ bryntumEvents.filter(event => this[event] && this[event].observers.length > 0).forEach(event => {
2312
+ const
2313
+ uncapitalize = (str: string) => str.charAt(0).toLowerCase() + str.slice(1),
2314
+ eventName = (str: string) => uncapitalize(str.slice(2));
2315
+
2316
+ // @ts-ignore
2317
+ bryntumConfig.listeners[eventName(event)] = e => {
2318
+ // @ts-ignore
2319
+ me[event].emit(e);
2320
+ // EventEmitter does not return values in the normal way, work around it by setting `returnValue` flag
2321
+ // in Angular listeners
2322
+ return e.returnValue;
2323
+ };
2324
+ });
2325
+
2326
+ // If component has no container specified in config then use adopt to Wrapper's element
2327
+ const
2328
+ containerParam = [
2329
+ 'adopt',
2330
+ 'appendTo',
2331
+ 'insertAfter',
2332
+ 'insertBefore'
2333
+ // @ts-ignore
2334
+ ].find(prop => bryntumConfig[prop]);
2335
+ if (!containerParam) {
2336
+ if (instanceName === 'Button' || elementRef.nativeElement.getRootNode() instanceof ShadowRoot) {
2337
+ // Button should always be <a> or <button> inside owner element
2338
+ bryntumConfig.appendTo = elementRef.nativeElement;
2339
+ }
2340
+ else {
2341
+ bryntumConfig.adopt = elementRef.nativeElement;
2342
+ }
2343
+ }
2344
+ else {
2345
+ WrapperHelper.devWarningContainer(instanceName, containerParam);
2346
+ }
2347
+
2348
+ // @ts-ignore
2349
+ me.instance = instanceName === 'Widget' ? Widget.create(bryntumConfig) : new instanceClass(bryntumConfig);
2350
+
2351
+ // Backwards compatibility for gridInstance, schedulerInstance etc.
2352
+ // @ts-ignore
2353
+ me[StringHelper.uncapitalize(instanceName) + 'Instance'] = me.instance;
2354
+ //
2355
+ }
2356
+
2357
+ /**
2358
+ * Watch for changes
2359
+ * @param changes
2360
+ */
2361
+ ngOnChanges(changes: SimpleChanges): void {
2362
+ const
2363
+ { instance } = this,
2364
+ { instanceName } = BryntumTaskBoardComponent;
2365
+ if (!instance) {
2366
+ return;
2367
+ }
2368
+ // Iterate over all changes
2369
+ Object.entries(changes).forEach(([prop, change]) => {
2370
+ const
2371
+ newValue = (change as SimpleChange).currentValue,
2372
+ { instance } = this,
2373
+ { bryntumConfigsOnly, bryntumProps } = BryntumTaskBoardComponent;
2374
+ if (bryntumProps.includes(prop)) {
2375
+ WrapperHelper.applyPropValue(instance, prop, newValue, false);
2376
+ if (bryntumConfigsOnly.includes(prop)) {
2377
+ WrapperHelper.devWarningUpdateProp(instanceName, prop);
2378
+ }
2379
+ }
2380
+ });
2381
+ }
2382
+
2383
+ /**
2384
+ * Destroy the component
2385
+ */
2386
+ ngOnDestroy(): void {
2387
+ // @ts-ignore
2388
+ if (this.instance && this.instance.destroy) {
2389
+ this.instance.destroy();
2390
+ }
2391
+ }
2392
+ }