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