@bryntum/taskboard-angular 7.1.1 → 7.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (76) hide show
  1. package/README.md +230 -15
  2. package/package.json +1 -1
  3. package/src/lib/bryntum-button-group.component.ts +1213 -0
  4. package/src/lib/bryntum-button.component.ts +1190 -0
  5. package/src/lib/bryntum-chat-panel.component.ts +1435 -0
  6. package/src/lib/bryntum-checkbox-group.component.ts +1478 -0
  7. package/src/lib/bryntum-checkbox.component.ts +1333 -0
  8. package/src/lib/bryntum-chip-view.component.ts +1225 -0
  9. package/src/lib/bryntum-code-editor.component.ts +1419 -0
  10. package/src/lib/bryntum-color-field.component.ts +1334 -0
  11. package/src/lib/bryntum-column-combo.component.ts +1645 -0
  12. package/src/lib/bryntum-column-filter-field.component.ts +1360 -0
  13. package/src/lib/bryntum-column-picker-button.component.ts +1200 -0
  14. package/src/lib/bryntum-column-scroll-button.component.ts +1200 -0
  15. package/src/lib/bryntum-combo.component.ts +1634 -0
  16. package/src/lib/bryntum-container.component.ts +1166 -0
  17. package/src/lib/bryntum-date-field.component.ts +1413 -0
  18. package/src/lib/bryntum-date-picker.component.ts +1756 -0
  19. package/src/lib/bryntum-date-range-field.component.ts +1417 -0
  20. package/src/lib/bryntum-date-time-field.component.ts +1261 -0
  21. package/src/lib/bryntum-demo-code-editor.component.ts +1441 -0
  22. package/src/lib/bryntum-demo-header.component.ts +141 -0
  23. package/src/lib/bryntum-display-field.component.ts +1308 -0
  24. package/src/lib/bryntum-duration-field.component.ts +1390 -0
  25. package/src/lib/bryntum-editor.component.ts +1343 -0
  26. package/src/lib/bryntum-field-filter-picker-group.component.ts +1308 -0
  27. package/src/lib/bryntum-field-filter-picker.component.ts +1272 -0
  28. package/src/lib/bryntum-field-set.component.ts +1408 -0
  29. package/src/lib/bryntum-file-field.component.ts +1313 -0
  30. package/src/lib/bryntum-file-picker.component.ts +1199 -0
  31. package/src/lib/bryntum-filter-field.component.ts +1367 -0
  32. package/src/lib/bryntum-fullscreen-button.component.ts +53 -0
  33. package/src/lib/bryntum-hint.component.ts +1506 -0
  34. package/src/lib/bryntum-label.component.ts +989 -0
  35. package/src/lib/bryntum-list.component.ts +1196 -0
  36. package/src/lib/bryntum-menu.component.ts +1520 -0
  37. package/src/lib/bryntum-month-picker.component.ts +1400 -0
  38. package/src/lib/bryntum-number-field.component.ts +1368 -0
  39. package/src/lib/bryntum-paging-toolbar.component.ts +1243 -0
  40. package/src/lib/bryntum-panel.component.ts +1377 -0
  41. package/src/lib/bryntum-password-field.component.ts +1296 -0
  42. package/src/lib/bryntum-project-combo.component.ts +1648 -0
  43. package/src/lib/bryntum-radio-group.component.ts +1446 -0
  44. package/src/lib/bryntum-radio.component.ts +1333 -0
  45. package/src/lib/bryntum-resources-combo.component.ts +1644 -0
  46. package/src/lib/bryntum-scheduler-project-combo.component.ts +1638 -0
  47. package/src/lib/bryntum-slide-toggle.component.ts +1333 -0
  48. package/src/lib/bryntum-slider.component.ts +1112 -0
  49. package/src/lib/bryntum-splitter.component.ts +1025 -0
  50. package/src/lib/bryntum-swimlane-combo.component.ts +1644 -0
  51. package/src/lib/bryntum-swimlane-filter-field.component.ts +1377 -0
  52. package/src/lib/bryntum-swimlane-picker-button.component.ts +1200 -0
  53. package/src/lib/bryntum-swimlane-scroll-button.component.ts +1200 -0
  54. package/src/lib/bryntum-tab-panel.component.ts +1441 -0
  55. package/src/lib/bryntum-tag-combo.component.ts +1651 -0
  56. package/src/lib/bryntum-task-board-base.component.ts +2388 -0
  57. package/src/lib/bryntum-task-board-field-filter-picker-group.component.ts +1316 -0
  58. package/src/lib/bryntum-task-board-field-filter-picker.component.ts +1254 -0
  59. package/src/lib/bryntum-task-board-project-model.component.ts +1026 -0
  60. package/src/lib/bryntum-task-board.component.ts +2392 -0
  61. package/src/lib/bryntum-task-color-combo.component.ts +1334 -0
  62. package/src/lib/bryntum-task-filter-field.component.ts +1377 -0
  63. package/src/lib/bryntum-text-area-field.component.ts +1312 -0
  64. package/src/lib/bryntum-text-area-picker-field.component.ts +1343 -0
  65. package/src/lib/bryntum-text-field.component.ts +1321 -0
  66. package/src/lib/bryntum-time-field.component.ts +1388 -0
  67. package/src/lib/bryntum-time-picker.component.ts +1207 -0
  68. package/src/lib/bryntum-todo-list-field.component.ts +1318 -0
  69. package/src/lib/bryntum-toolbar.component.ts +1234 -0
  70. package/src/lib/bryntum-undo-redo.component.ts +1179 -0
  71. package/src/lib/bryntum-widget.component.ts +982 -0
  72. package/src/lib/bryntum-year-picker.component.ts +1423 -0
  73. package/src/lib/bryntum-zoom-slider.component.ts +1122 -0
  74. package/src/lib/taskboard.module.ts +232 -0
  75. package/src/lib/wrapper.helper.ts +89 -0
  76. package/src/public-api.ts +77 -0
@@ -0,0 +1,1200 @@
1
+ /* eslint-disable @typescript-eslint/no-unused-vars */
2
+ /**
3
+ * Angular wrapper for Bryntum SwimlaneScrollButton
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, Button, ContainerItemConfig, DomConfig, KeyMapConfig, MaskConfig, Menu, MenuConfig, MenuItemEntry, PopupConfig, Rectangle, Scroller, ScrollerConfig, SwimlaneScrollButton, SwimlaneScrollButtonListeners, TabConfig, TaskBoard, TooltipConfig, VueConfig, Widget } from '@bryntum/taskboard';
11
+
12
+ import { StringHelper } from '@bryntum/taskboard';
13
+
14
+ export type BryntumSwimlaneScrollButtonProps = {
15
+ // Configs
16
+ /**
17
+ * Element (or element id) to adopt as this Widget's encapsulating element. The widget's
18
+ * content will be placed inside this element.
19
+ * ...
20
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/SwimlaneScrollButton#config-adopt)
21
+ */
22
+ adopt ? : HTMLElement|string
23
+ /**
24
+ * *Only valid if this Widget is [floating](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#config-floating).*
25
+ * ...
26
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/SwimlaneScrollButton#config-align)
27
+ */
28
+ align ? : AlignSpec|string
29
+ /**
30
+ * When this widget is a child of a [Container](https://bryntum.com/products/taskboard/docs/api/Core/widget/Container), it will by default be participating in a
31
+ * flexbox layout. This config allows you to set this widget's
32
+ * [align-self](https://developer.mozilla.org/en-US/docs/Web/CSS/align-self) style.
33
+ */
34
+ alignSelf ? : string
35
+ /**
36
+ * *Only valid if this Widget is [floating](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#config-floating) and being shown through [showBy](#Core/widget/Widget#function-showBy).*
37
+ * `true` to show a connector arrow pointing to the align target.
38
+ */
39
+ anchor ? : boolean
40
+ /**
41
+ * Element (or the id of an element) to append this widget's element to. Can be configured, or set once at
42
+ * runtime. To access the element of a rendered widget, see [element](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#property-element).
43
+ */
44
+ appendTo ? : HTMLElement|string
45
+ /**
46
+ * A localizable string (May contain `'L{}'` tokens which resolve in the locale file) to inject
47
+ * into an element which will be linked using the `aria-describedby` attribute.
48
+ * ...
49
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/SwimlaneScrollButton#config-ariaDescription)
50
+ */
51
+ ariaDescription ? : string
52
+ /**
53
+ * A localizable string (May contain `'L{}'` tokens which resolve in the locale file) to inject as
54
+ * the `aria-label` attribute.
55
+ * ...
56
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/SwimlaneScrollButton#config-ariaLabel)
57
+ */
58
+ ariaLabel ? : string
59
+ /**
60
+ * Initial text to show in badge.
61
+ */
62
+ badge ? : string
63
+ /**
64
+ * The button behavioral type, will be applied as a `type` attribute to this button's element.
65
+ */
66
+ behaviorType ? : 'button'|'submit'|'reset'
67
+ /**
68
+ * An object where property names with a truthy value indicate which events should bubble up the ownership
69
+ * hierarchy when triggered.
70
+ * ...
71
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/SwimlaneScrollButton#config-bubbleEvents)
72
+ */
73
+ bubbleEvents ? : object
74
+ /**
75
+ * Set to `false` to not call onXXX method names (e.g. `onShow`, `onClick`), as an easy way to listen for events.
76
+ * ...
77
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/SwimlaneScrollButton#config-callOnFunctions)
78
+ */
79
+ callOnFunctions ? : boolean
80
+ /**
81
+ * By default, if an event handler throws an exception, the error propagates up the stack and the
82
+ * application state is undefined. Code which follows the event handler will *not* be executed.
83
+ * ...
84
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/SwimlaneScrollButton#config-catchEventHandlerExceptions)
85
+ */
86
+ catchEventHandlerExceptions ? : boolean
87
+ /**
88
+ * *Only valid if this Widget is [floating](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#config-floating).*
89
+ * Set to `true` to centre the Widget in browser viewport space.
90
+ */
91
+ centered ? : boolean
92
+ /**
93
+ * Custom CSS classes to add to element.
94
+ * May be specified as a space separated string, or as an object in which property names
95
+ * with truthy values are used as the class names:
96
+ * ...
97
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/SwimlaneScrollButton#config-cls)
98
+ */
99
+ cls ? : string|object
100
+ /**
101
+ * Applies the specified color to the widget, by setting the `--b-primary` CSS variable in the widgets
102
+ * `style` block.
103
+ * ...
104
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/SwimlaneScrollButton#config-color)
105
+ */
106
+ color ? : string
107
+ /**
108
+ * Programmatic control over which column to start in when used in a grid layout.
109
+ */
110
+ column ? : number
111
+ config ? : object
112
+ /**
113
+ * *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).*
114
+ * Element, Widget or Rectangle to which this Widget is constrained.
115
+ */
116
+ constrainTo ? : HTMLElement|Widget|Rectangle
117
+ /**
118
+ * The HTML content that coexists with sibling elements which may have been added to the
119
+ * [contentElement](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#property-contentElement) by plugins and features.
120
+ * When specifying html, this widget's element will also have the [htmlCls](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#config-htmlCls)
121
+ * class added to its classList, to allow targeted styling.
122
+ */
123
+ content ? : string
124
+ /**
125
+ * Custom CSS classes to add to the [contentElement](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#property-contentElement).
126
+ * May be specified as a space separated string, or as an object in which property names
127
+ * with truthy values are used as the class names:
128
+ * ...
129
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/SwimlaneScrollButton#config-contentElementCls)
130
+ */
131
+ contentElementCls ? : string|object
132
+ /**
133
+ * When this Widget configuration is used in the Grid's RowExpander feature's `widget` config, provide the
134
+ * field on the expanded record to use for populating this widget's store (if applicable)
135
+ */
136
+ dataField ? : string
137
+ /**
138
+ * Object to apply to elements dataset (each key will be used as a data-attribute on the element)
139
+ */
140
+ dataset ? : Record<string, string>
141
+ /**
142
+ * The name of the property to set when a single value is to be applied to this Widget. Such as when used
143
+ * in a grid WidgetColumn, this is the property to which the column's `field` is applied.
144
+ */
145
+ defaultBindProperty ? : string
146
+ /**
147
+ * Check for CSS compatibility issues when upgrading to v7. Performs the following checks:
148
+ * ...
149
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/SwimlaneScrollButton#config-detectCSSCompatibilityIssues)
150
+ */
151
+ detectCSSCompatibilityIssues ? : boolean
152
+ /**
153
+ * 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
154
+ * cannot be focused, uses a different rendition (usually greyish) and does not allow selecting its value.
155
+ * ...
156
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/SwimlaneScrollButton#config-disabled)
157
+ */
158
+ disabled ? : boolean|'inert'
159
+ /**
160
+ * Controls the placement of this widget when it is added to a [panel's ](https://bryntum.com/products/taskboard/docs/api/Core/widget/Panel)
161
+ * [strips collection](https://bryntum.com/products/taskboard/docs/api/Core/widget/Panel#config-strips). Typical values for this config are `'top'`,
162
+ * `'bottom'`, `'left'`, or `'right'`, which cause the widget to be placed on that side of the panel's
163
+ * body. Such widgets are called "edge strips".
164
+ * ...
165
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/SwimlaneScrollButton#config-dock)
166
+ */
167
+ dock ? : 'top'|'bottom'|'left'|'right'|'start'|'end'|'header'|'pre-header'|object
168
+ /**
169
+ * *Only valid if this Widget is [floating](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#config-floating).*
170
+ * Set to `true` to be able to drag a widget freely on the page. Or set to an object with a ´handleSelector´
171
+ * property which controls when a drag should start.
172
+ * ...
173
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/SwimlaneScrollButton#config-draggable)
174
+ */
175
+ draggable ? : boolean|{
176
+ handleSelector?: string
177
+ }
178
+ /**
179
+ * An object specifying attributes to assign to the root element of this widget.
180
+ * Set `null` value to attribute to remove it.
181
+ * ...
182
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/SwimlaneScrollButton#config-elementAttributes)
183
+ */
184
+ elementAttributes ? : Record<string, string|null>
185
+ extraData ? : any
186
+ /**
187
+ * 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
188
+ * flexbox layout. This config allows you to set this widget's
189
+ * [flex](https://developer.mozilla.org/en-US/docs/Web/CSS/flex) style.
190
+ * This may be configured as a single number or a `&lt;flex-grow&gt; &lt;flex-shrink&gt; &lt;flex-basis&gt;` format string.
191
+ * numeric-only values are interpreted as the `flex-grow` value.
192
+ */
193
+ flex ? : number|string
194
+ /**
195
+ * Set to `true` to move the widget out of the document flow and position it
196
+ * absolutely in browser viewport space.
197
+ */
198
+ floating ? : boolean
199
+ /**
200
+ * Widget's height, used to set element `style.height`. Either specify a valid height string or a number,
201
+ * which will get 'px' appended. We recommend using CSS as the primary way to control height, but in some
202
+ * cases this config is convenient.
203
+ */
204
+ height ? : string|number
205
+ /**
206
+ * Configure with true to make widget initially hidden.
207
+ */
208
+ hidden ? : boolean
209
+ /**
210
+ * *Only valid if this Widget is [floating](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#config-floating).*
211
+ * ...
212
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/SwimlaneScrollButton#config-hideAnimation)
213
+ */
214
+ hideAnimation ? : boolean|object
215
+ /**
216
+ * If provided, turns the button into a link.
217
+ * ...
218
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/SwimlaneScrollButton#config-href)
219
+ */
220
+ href ? : string
221
+ /**
222
+ * The HTML to display initially or a function returning the markup (called at widget construction time).
223
+ * ...
224
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/SwimlaneScrollButton#config-html)
225
+ * @param {Core.widget.Widget} widget The calling Widget
226
+ * @returns {string}
227
+ */
228
+ html ? : string|((widget: Widget) => string)|DomConfig|DomConfig[]|VueConfig
229
+ /**
230
+ * The CSS class(es) to add when HTML content is being applied to this widget.
231
+ */
232
+ htmlCls ? : string|object
233
+ /**
234
+ * Button icon class, a developer-defined CSS class string which results in the desired icon.
235
+ * ...
236
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/SwimlaneScrollButton#config-icon)
237
+ */
238
+ icon ? : string
239
+ /**
240
+ * Button icon alignment. May be `'start'` or `'end'`. Defaults to `'start'`
241
+ */
242
+ iconAlign ? : 'start'|'end'
243
+ /**
244
+ * Widget id, if not specified one will be generated. Also used for lookups through Widget.getById
245
+ */
246
+ id ? : string
247
+ /**
248
+ * Determines if the widgets read-only state should be controlled by its parent.
249
+ * ...
250
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/SwimlaneScrollButton#config-ignoreParentReadOnly)
251
+ */
252
+ ignoreParentReadOnly ? : boolean
253
+ /**
254
+ * 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.
255
+ */
256
+ insertBefore ? : HTMLElement|string
257
+ /**
258
+ * 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.
259
+ */
260
+ insertFirst ? : HTMLElement|string
261
+ /**
262
+ * An object whose keys are the [key](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/key) name
263
+ * and optional modifier prefixes: `'Ctrl+'`, `'Alt+'`, `'Meta+'`, and `'Shift+'` (case-insensitive). The values
264
+ * are the name of the instance method to call when the keystroke is received.
265
+ * ...
266
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/SwimlaneScrollButton#config-keyMap)
267
+ */
268
+ keyMap ? : Record<string, KeyMapConfig>
269
+ /**
270
+ * The listener set for this object.
271
+ * ...
272
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/SwimlaneScrollButton#config-listeners)
273
+ */
274
+ listeners ? : SwimlaneScrollButtonListeners
275
+ /**
276
+ * A class translations of which are used for translating this entity.
277
+ * This is often used when translations of an item are defined on its container class.
278
+ * For example:
279
+ * ...
280
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/SwimlaneScrollButton#config-localeClass)
281
+ */
282
+ localeClass ? : typeof Base
283
+ /**
284
+ * Set to `false` to disable localization of this object.
285
+ */
286
+ localizable ? : boolean
287
+ /**
288
+ * List of properties which values should be translated automatically upon a locale applying.
289
+ * In case there is a need to localize not typical value (not a String value or a field with re-defined setter/getter),
290
+ * you could use 'localeKey' meta configuration.
291
+ * Example:
292
+ * ...
293
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/SwimlaneScrollButton#config-localizableProperties)
294
+ */
295
+ localizableProperties ? : string[]
296
+ /**
297
+ * Widget's margin. This may be configured as a single number or a `TRBL` format string.
298
+ * numeric-only values are interpreted as pixels.
299
+ */
300
+ margin ? : number|string
301
+ /**
302
+ * This config object contains the defaults for the [Mask](https://bryntum.com/products/taskboard/docs/api/Core/widget/Mask) created for the
303
+ * [masked](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#config-masked) config. Any properties specified in the `masked` config will override these
304
+ * values.
305
+ */
306
+ maskDefaults ? : MaskConfig
307
+ /**
308
+ * Set to `true` to apply the default mask to the widget. Alternatively, this can be the mask message or a
309
+ * [Mask](https://bryntum.com/products/taskboard/docs/api/Core/widget/Mask) config object.
310
+ */
311
+ masked ? : boolean|string|MaskConfig
312
+ /**
313
+ * The element's maxHeight. Can be either a String or a Number (which will have 'px' appended). Note that
314
+ * like [height](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#config-height), *reading* the value will return the numeric value in pixels.
315
+ */
316
+ maxHeight ? : string|number
317
+ /**
318
+ * *Only valid if this Widget is [floating](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#config-floating).*
319
+ * ...
320
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/SwimlaneScrollButton#config-maximizeOnMobile)
321
+ */
322
+ maximizeOnMobile ? : number|string
323
+ /**
324
+ * The elements maxWidth. Can be either a String or a Number (which will have 'px' appended). Note that
325
+ * like [width](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#config-width), *reading* the value will return the numeric value in pixels.
326
+ */
327
+ maxWidth ? : string|number
328
+ /**
329
+ * A submenu configuration object, or an array of MenuItem configuration objects from which to create a
330
+ * submenu which is shown when this button is pressed.
331
+ * ...
332
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/SwimlaneScrollButton#config-menu)
333
+ */
334
+ menu ? : Record<string, MenuItemEntry|ContainerItemConfig>|(MenuItemEntry|ContainerItemConfig)[]|MenuConfig|PopupConfig
335
+ /**
336
+ * The menu icon class to show when the button has a menu. Set to `null` to not show a menu icon.
337
+ * ...
338
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/SwimlaneScrollButton#config-menuIcon)
339
+ */
340
+ menuIcon ? : string
341
+ /**
342
+ * The element's minHeight. Can be either a String or a Number (which will have 'px' appended). Note that
343
+ * like [height](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#config-height), *reading* the value will return the numeric value in pixels.
344
+ */
345
+ minHeight ? : string|number
346
+ /**
347
+ * The elements minWidth. Can be either a String or a Number (which will have 'px' appended). Note that
348
+ * like [width](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#config-width), *reading* the value will return the numeric value in pixels.
349
+ */
350
+ minWidth ? : string|number
351
+ /**
352
+ * When this is configured as `true` a [ResizeObserver](https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserver)
353
+ * is used to monitor this element for size changes caused by either style manipulation, or by CSS
354
+ * layout.
355
+ * ...
356
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/SwimlaneScrollButton#config-monitorResize)
357
+ */
358
+ monitorResize ? : boolean|{
359
+ immediate?: boolean
360
+ }
361
+ /**
362
+ * The owning Widget of this Widget. If this Widget is directly contained (that is, it is one of the
363
+ * [items](https://bryntum.com/products/taskboard/docs/api/Core/widget/Container#property-items) of a Container), this config will be ignored. In this case
364
+ * the owner is <strong>always</strong> the encapsulating Container.
365
+ * ...
366
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/SwimlaneScrollButton#config-owner)
367
+ */
368
+ owner ? : Widget|any
369
+ /**
370
+ * 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
371
+ * not participate in the standard layout of that widget, and must be positioned relatively to that
372
+ * widget's [contentElement](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#property-contentElement).
373
+ * ...
374
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/SwimlaneScrollButton#config-positioned)
375
+ */
376
+ positioned ? : boolean
377
+ /**
378
+ * Initially pressed or not. Only applies with `toggleable = true`.
379
+ * ...
380
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/SwimlaneScrollButton#config-pressed)
381
+ */
382
+ pressed ? : boolean
383
+ /**
384
+ * A CSS class to add to the pressed state of the button. A `b-pressed` CSS class is always added,
385
+ * when a button is pressed.
386
+ */
387
+ pressedCls ? : string
388
+ /**
389
+ * Icon class for the buttons pressed state, a developer-defined CSS class string which results in the
390
+ * desired icon. Only applies to toggle buttons
391
+ * ...
392
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/SwimlaneScrollButton#config-pressedIcon)
393
+ */
394
+ pressedIcon ? : string
395
+ /**
396
+ * Prevent tooltip from being displayed on touch devices. Useful for example for buttons that display a
397
+ * menu on click etc, since the tooltip would be displayed at the same time.
398
+ */
399
+ preventTooltipOnTouch ? : boolean
400
+ /**
401
+ * Whether this widget is read-only. This is only valid if the widget is an input
402
+ * field, <strong>or contains input fields at any depth</strong>.
403
+ * ...
404
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/SwimlaneScrollButton#config-readOnly)
405
+ */
406
+ readOnly ? : boolean
407
+ relayStoreEvents ? : boolean
408
+ /**
409
+ * Predefined style to use for the button. Possible values are:
410
+ * ...
411
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/SwimlaneScrollButton#config-rendition)
412
+ */
413
+ rendition ? : 'elevated'|'filled'|'tonal'|'outlined'|'text'|string
414
+ /**
415
+ * Configure as `true` to have the component display a translucent ripple when its
416
+ * [focusElement](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#property-focusElement), or [element](#Core/widget/Widget#property-element) is tapped <em>if the
417
+ * current theme supports ripples</em>. Out of the box, only the Material theme supports ripples.
418
+ * ...
419
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/SwimlaneScrollButton#config-ripple)
420
+ */
421
+ ripple ? : boolean|{
422
+ delegate?: string
423
+ color?: string
424
+ radius?: number
425
+ clip?: string
426
+ }
427
+ /**
428
+ * 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`
429
+ */
430
+ rootElement ? : ShadowRoot|HTMLElement
431
+ /**
432
+ * This may be configured as `true` to make the widget's element use the `direction:rtl` style.
433
+ * ...
434
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/SwimlaneScrollButton#config-rtl)
435
+ */
436
+ rtl ? : boolean
437
+ /**
438
+ * Specifies whether (and optionally in which axes) a Widget may scroll. `true` means this widget may scroll
439
+ * in both axes. May be an object containing boolean `overflowX` and `overflowY` properties which are
440
+ * applied to CSS style properties `overflowX` and `overflowY`. If they are boolean, they are translated to
441
+ * CSS overflow properties thus:
442
+ * ...
443
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/SwimlaneScrollButton#config-scrollable)
444
+ */
445
+ scrollable ? : boolean|ScrollerConfig|Scroller
446
+ /**
447
+ * Defines what to do if document is scrolled while Widget is visible (only relevant when floating is set to `true`).
448
+ * Valid values: ´null´: do nothing, ´hide´: hide the widget or ´realign´: realign to the target if possible.
449
+ */
450
+ scrollAction ? : 'hide'|'realign'|null
451
+ /**
452
+ * *Only valid if this Widget is [floating](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#config-floating).*
453
+ * ...
454
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/SwimlaneScrollButton#config-showAnimation)
455
+ */
456
+ showAnimation ? : boolean|object
457
+ /**
458
+ * Set to `false` to not show the tooltip when this widget is [disabled](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#property-disabled)
459
+ */
460
+ showTooltipWhenDisabled ? : boolean
461
+ /**
462
+ * Programmatic control over how many columns to span when used in a grid layout.
463
+ */
464
+ span ? : number
465
+ /**
466
+ * Set to `true` to create a split button. A split button has a main action and a dropdown arrow to show a menu.
467
+ * ...
468
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/SwimlaneScrollButton#config-split)
469
+ */
470
+ split ? : boolean|'mouseover'|'hover'
471
+ /**
472
+ * Set to `true` to perform action on clicking the button if it's already pressed
473
+ * and belongs to a [toggleGroup](https://bryntum.com/products/taskboard/docs/api/Core/widget/Button#config-toggleGroup).
474
+ */
475
+ supportsPressedClick ? : boolean
476
+ /**
477
+ * 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
478
+ * [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
479
+ * this widget:
480
+ * ...
481
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/SwimlaneScrollButton#config-tab)
482
+ */
483
+ tab ? : boolean|TabConfig
484
+ /**
485
+ * The tab index of the button, or `null` for natural tab order (recommended). Setting to `0` is equivalent
486
+ * to natural tab order, but is unnecessary for buttons since they are naturally tabbable (i.e., accessible
487
+ * via the TAB key). Setting to `-1` disables tabbability but allows for focus to be set to the element
488
+ * programmatically.
489
+ * ...
490
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/SwimlaneScrollButton#config-tabIndex)
491
+ */
492
+ tabIndex ? : number
493
+ /**
494
+ * The tag name of this Widget's root element
495
+ */
496
+ tag ? : string
497
+ /**
498
+ * The `target` attribute for the [href](https://bryntum.com/products/taskboard/docs/api/Core/widget/Button#config-href) config
499
+ */
500
+ target ? : string
501
+ /**
502
+ * Auto detected when used within a TaskBoard. If you add the widget elsewhere, it will try to find an instance
503
+ * of TaskBoard on page. If that fails you have to supply this config to connect it to a TaskBoard manually.
504
+ * ...
505
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/SwimlaneScrollButton#config-taskBoard)
506
+ */
507
+ taskBoard ? : TaskBoard
508
+ /**
509
+ * The button's text. You can also supply a [DomConfig](https://bryntum.com/products/taskboard/docs/api/Core/helper/DomHelper#typedef-DomConfig) or an array of DomConfigs for complex button
510
+ * content.
511
+ */
512
+ text ? : string|DomConfig|DomConfig[]
513
+ /**
514
+ * Text alignment: 'left', 'center' or 'right'. Also accepts direction neutral 'start' and 'end'.
515
+ * ...
516
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/SwimlaneScrollButton#config-textAlign)
517
+ */
518
+ textAlign ? : 'left'|'center'|'right'|'start'|'end'
519
+ /**
520
+ * A title to display for the widget. Only in effect when inside a container that uses it (such as TabPanel)
521
+ */
522
+ title ? : string
523
+ /**
524
+ * Enabled toggling of the button (stays pressed when pressed).
525
+ */
526
+ toggleable ? : boolean
527
+ /**
528
+ * Indicates that this button is part of a group where only one button can be pressed. Assigning a value
529
+ * also sets `toggleable` to `true`.
530
+ * ...
531
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/SwimlaneScrollButton#config-toggleGroup)
532
+ */
533
+ toggleGroup ? : string
534
+ /**
535
+ * Tooltip for the widget, either as a string or as a Tooltip config object.
536
+ * ...
537
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/SwimlaneScrollButton#config-tooltip)
538
+ */
539
+ tooltip ? : string|TooltipConfig|null
540
+ type ? : 'swimlaneScrollButton'|'swimlanescrollbutton'
541
+ /**
542
+ * Custom CSS class name suffixes to apply to the elements rendered by this widget. This may be specified
543
+ * as a space separated string, an array of strings, or as an object in which property names with truthy
544
+ * values are used as the class names.
545
+ * ...
546
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/SwimlaneScrollButton#config-ui)
547
+ */
548
+ ui ? : string|object
549
+ /**
550
+ * A widgets weight determines its position among siblings when added to a [Container](https://bryntum.com/products/taskboard/docs/api/Core/widget/Container).
551
+ * Higher weights go further down.
552
+ */
553
+ weight ? : number
554
+ /**
555
+ * Widget's width, used to set element `style.width`. Either specify a valid width string or a number, which
556
+ * will get 'px' appended. We recommend using CSS as the primary way to control width, but in some cases
557
+ * this config is convenient.
558
+ */
559
+ width ? : string|number
560
+ /**
561
+ * The x position for the widget.
562
+ * ...
563
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/SwimlaneScrollButton#config-x)
564
+ */
565
+ x ? : number
566
+ /**
567
+ * The y position for the widget.
568
+ * ...
569
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/SwimlaneScrollButton#config-y)
570
+ */
571
+ y ? : number
572
+
573
+ }
574
+
575
+ @Component({
576
+ selector : 'bryntum-swimlane-scroll-button',
577
+ template : ''
578
+ })
579
+ export class BryntumSwimlaneScrollButtonComponent implements OnInit, OnDestroy {
580
+
581
+ public static instanceClass = SwimlaneScrollButton;
582
+
583
+ public static instanceName = 'SwimlaneScrollButton';
584
+
585
+ private static bryntumEvents: string[] = [
586
+ 'onAction',
587
+ 'onBeforeDestroy',
588
+ 'onBeforeHide',
589
+ 'onBeforeShow',
590
+ 'onBeforeShowMenu',
591
+ 'onBeforeToggle',
592
+ 'onCatchAll',
593
+ 'onClick',
594
+ 'onDestroy',
595
+ 'onElementCreated',
596
+ 'onFocusIn',
597
+ 'onFocusOut',
598
+ 'onHide',
599
+ 'onPaint',
600
+ 'onReadOnly',
601
+ 'onRecompose',
602
+ 'onResize',
603
+ 'onShow',
604
+ 'onToggle'
605
+ ];
606
+
607
+ private static bryntumFeatureNames: string[] = [
608
+
609
+ ];
610
+
611
+ private static bryntumConfigs: string[] = BryntumSwimlaneScrollButtonComponent.bryntumFeatureNames.concat([
612
+ 'adopt',
613
+ 'align',
614
+ 'alignSelf',
615
+ 'anchor',
616
+ 'appendTo',
617
+ 'ariaDescription',
618
+ 'ariaLabel',
619
+ 'badge',
620
+ 'behaviorType',
621
+ 'bubbleEvents',
622
+ 'callOnFunctions',
623
+ 'catchEventHandlerExceptions',
624
+ 'centered',
625
+ 'cls',
626
+ 'color',
627
+ 'column',
628
+ 'config',
629
+ 'constrainTo',
630
+ 'content',
631
+ 'contentElementCls',
632
+ 'dataField',
633
+ 'dataset',
634
+ 'defaultBindProperty',
635
+ 'detectCSSCompatibilityIssues',
636
+ 'disabled',
637
+ 'dock',
638
+ 'draggable',
639
+ 'elementAttributes',
640
+ 'extraData',
641
+ 'flex',
642
+ 'floating',
643
+ 'height',
644
+ 'hidden',
645
+ 'hideAnimation',
646
+ 'href',
647
+ 'html',
648
+ 'htmlCls',
649
+ 'icon',
650
+ 'iconAlign',
651
+ 'id',
652
+ 'ignoreParentReadOnly',
653
+ 'insertBefore',
654
+ 'insertFirst',
655
+ 'keyMap',
656
+ 'listeners',
657
+ 'localeClass',
658
+ 'localizable',
659
+ 'localizableProperties',
660
+ 'margin',
661
+ 'maskDefaults',
662
+ 'masked',
663
+ 'maxHeight',
664
+ 'maximizeOnMobile',
665
+ 'maxWidth',
666
+ 'menu',
667
+ 'menuIcon',
668
+ 'minHeight',
669
+ 'minWidth',
670
+ 'monitorResize',
671
+ 'owner',
672
+ 'positioned',
673
+ 'pressed',
674
+ 'pressedCls',
675
+ 'pressedIcon',
676
+ 'preventTooltipOnTouch',
677
+ 'readOnly',
678
+ 'relayStoreEvents',
679
+ 'rendition',
680
+ 'ripple',
681
+ 'rootElement',
682
+ 'rtl',
683
+ 'scrollable',
684
+ 'scrollAction',
685
+ 'showAnimation',
686
+ 'showTooltipWhenDisabled',
687
+ 'span',
688
+ 'split',
689
+ 'supportsPressedClick',
690
+ 'tab',
691
+ 'tabIndex',
692
+ 'tag',
693
+ 'target',
694
+ 'taskBoard',
695
+ 'text',
696
+ 'textAlign',
697
+ 'title',
698
+ 'toggleable',
699
+ 'toggleGroup',
700
+ 'tooltip',
701
+ 'type',
702
+ 'ui',
703
+ 'weight',
704
+ 'width',
705
+ 'x',
706
+ 'y'
707
+ ]);
708
+
709
+ private static bryntumConfigsOnly: string[] = [
710
+ 'adopt',
711
+ 'align',
712
+ 'anchor',
713
+ 'ariaDescription',
714
+ 'ariaLabel',
715
+ 'bubbleEvents',
716
+ 'centered',
717
+ 'color',
718
+ 'config',
719
+ 'constrainTo',
720
+ 'contentElementCls',
721
+ 'dataField',
722
+ 'defaultBindProperty',
723
+ 'detectCSSCompatibilityIssues',
724
+ 'dock',
725
+ 'draggable',
726
+ 'elementAttributes',
727
+ 'floating',
728
+ 'hideAnimation',
729
+ 'htmlCls',
730
+ 'ignoreParentReadOnly',
731
+ 'listeners',
732
+ 'localeClass',
733
+ 'localizable',
734
+ 'localizableProperties',
735
+ 'maskDefaults',
736
+ 'masked',
737
+ 'monitorResize',
738
+ 'owner',
739
+ 'positioned',
740
+ 'preventTooltipOnTouch',
741
+ 'relayStoreEvents',
742
+ 'ripple',
743
+ 'rootElement',
744
+ 'scrollAction',
745
+ 'showAnimation',
746
+ 'showTooltipWhenDisabled',
747
+ 'supportsPressedClick',
748
+ 'tab',
749
+ 'tag',
750
+ 'taskBoard',
751
+ 'textAlign',
752
+ 'title',
753
+ 'type',
754
+ 'ui',
755
+ 'weight'
756
+ ];
757
+
758
+ private static bryntumProps: string[] = BryntumSwimlaneScrollButtonComponent.bryntumFeatureNames.concat([
759
+ 'alignSelf',
760
+ 'anchorSize',
761
+ 'appendTo',
762
+ 'badge',
763
+ 'behaviorType',
764
+ 'callOnFunctions',
765
+ 'catchEventHandlerExceptions',
766
+ 'cls',
767
+ 'column',
768
+ 'content',
769
+ 'dataset',
770
+ 'disabled',
771
+ 'extraData',
772
+ 'flex',
773
+ 'focusVisible',
774
+ 'height',
775
+ 'hidden',
776
+ 'href',
777
+ 'html',
778
+ 'icon',
779
+ 'iconAlign',
780
+ 'id',
781
+ 'insertBefore',
782
+ 'insertFirst',
783
+ 'keyMap',
784
+ 'margin',
785
+ 'maxHeight',
786
+ 'maximizeOnMobile',
787
+ 'maxWidth',
788
+ 'menu',
789
+ 'menuIcon',
790
+ 'minHeight',
791
+ 'minWidth',
792
+ 'parent',
793
+ 'pressed',
794
+ 'pressedCls',
795
+ 'pressedIcon',
796
+ 'readOnly',
797
+ 'rendition',
798
+ 'rtl',
799
+ 'scrollable',
800
+ 'span',
801
+ 'split',
802
+ 'tabIndex',
803
+ 'target',
804
+ 'text',
805
+ 'toggleable',
806
+ 'toggleGroup',
807
+ 'tooltip',
808
+ 'width',
809
+ 'x',
810
+ 'y'
811
+ ]);
812
+
813
+ private elementRef: ElementRef;
814
+ public instance!: SwimlaneScrollButton;
815
+
816
+ private bryntumConfig = {
817
+ adopt : undefined,
818
+ appendTo : undefined,
819
+ href : undefined,
820
+ angularComponent : this,
821
+ features : {},
822
+ listeners : {}
823
+ };
824
+
825
+ constructor(element: ElementRef) {
826
+ this.elementRef = element;
827
+ }
828
+
829
+ // Configs only
830
+ @Input() adopt ! : HTMLElement|string;
831
+ @Input() align ! : AlignSpec|string;
832
+ @Input() anchor ! : boolean;
833
+ @Input() ariaDescription ! : string;
834
+ @Input() ariaLabel ! : string;
835
+ @Input() bubbleEvents ! : object;
836
+ @Input() centered ! : boolean;
837
+ @Input() color ! : string;
838
+ @Input() config ! : object;
839
+ @Input() constrainTo ! : HTMLElement|Widget|Rectangle;
840
+ @Input() contentElementCls ! : string|object;
841
+ @Input() dataField ! : string;
842
+ @Input() defaultBindProperty ! : string;
843
+ @Input() detectCSSCompatibilityIssues ! : boolean;
844
+ @Input() dock ! : 'top'|'bottom'|'left'|'right'|'start'|'end'|'header'|'pre-header'|object;
845
+ @Input() draggable ! : boolean|{
846
+ handleSelector?: string
847
+ };
848
+ @Input() elementAttributes ! : Record<string, string|null>;
849
+ @Input() floating ! : boolean;
850
+ @Input() hideAnimation ! : boolean|object;
851
+ @Input() htmlCls ! : string|object;
852
+ @Input() ignoreParentReadOnly ! : boolean;
853
+ @Input() listeners ! : SwimlaneScrollButtonListeners;
854
+ @Input() localeClass ! : typeof Base;
855
+ @Input() localizable ! : boolean;
856
+ @Input() localizableProperties ! : string[];
857
+ @Input() maskDefaults ! : MaskConfig;
858
+ @Input() masked ! : boolean|string|MaskConfig;
859
+ @Input() monitorResize ! : boolean|{
860
+ immediate?: boolean
861
+ };
862
+ @Input() owner ! : Widget|any;
863
+ @Input() positioned ! : boolean;
864
+ @Input() preventTooltipOnTouch ! : boolean;
865
+ @Input() relayStoreEvents ! : boolean;
866
+ @Input() ripple ! : boolean|{
867
+ delegate?: string
868
+ color?: string
869
+ radius?: number
870
+ clip?: string
871
+ };
872
+ @Input() rootElement ! : ShadowRoot|HTMLElement;
873
+ @Input() scrollAction ! : 'hide'|'realign'|null;
874
+ @Input() showAnimation ! : boolean|object;
875
+ @Input() showTooltipWhenDisabled ! : boolean;
876
+ @Input() supportsPressedClick ! : boolean;
877
+ @Input() tab ! : boolean|TabConfig;
878
+ @Input() tag ! : string;
879
+ @Input() taskBoard ! : TaskBoard;
880
+ @Input() textAlign ! : 'left'|'center'|'right'|'start'|'end';
881
+ @Input() title ! : string;
882
+ @Input() type ! : 'swimlaneScrollButton'|'swimlanescrollbutton';
883
+ @Input() ui ! : string|object;
884
+ @Input() weight ! : number;
885
+
886
+ // Configs and properties
887
+ @Input() alignSelf ! : string;
888
+ @Input() appendTo ! : HTMLElement|string;
889
+ @Input() badge ! : string;
890
+ @Input() behaviorType ! : 'button'|'submit'|'reset';
891
+ @Input() callOnFunctions ! : boolean;
892
+ @Input() catchEventHandlerExceptions ! : boolean;
893
+ @Input() cls ! : string|object;
894
+ @Input() column ! : number;
895
+ @Input() content ! : string;
896
+ @Input() dataset ! : object|Record<string, string>;
897
+ @Input() disabled ! : boolean|'inert';
898
+ @Input() extraData ! : any;
899
+ @Input() flex ! : number|string;
900
+ @Input() height ! : number|string;
901
+ @Input() hidden ! : boolean;
902
+ @Input() href ! : string;
903
+ @Input() html ! : string|((widget: Widget) => string)|DomConfig|DomConfig[]|VueConfig;
904
+ @Input() icon ! : string;
905
+ @Input() iconAlign ! : 'start'|'end';
906
+ @Input() id ! : string;
907
+ @Input() insertBefore ! : HTMLElement|string;
908
+ @Input() insertFirst ! : HTMLElement|string;
909
+ @Input() keyMap ! : Record<string, KeyMapConfig>;
910
+ @Input() margin ! : number|string;
911
+ @Input() maxHeight ! : string|number;
912
+ @Input() maximizeOnMobile ! : number|string;
913
+ @Input() maxWidth ! : string|number;
914
+ @Input() menu ! : Widget|Record<string, MenuItemEntry|ContainerItemConfig>|(MenuItemEntry|ContainerItemConfig)[]|MenuConfig|PopupConfig;
915
+ @Input() menuIcon ! : string;
916
+ @Input() minHeight ! : string|number;
917
+ @Input() minWidth ! : string|number;
918
+ @Input() pressed ! : boolean;
919
+ @Input() pressedCls ! : string;
920
+ @Input() pressedIcon ! : string;
921
+ @Input() readOnly ! : boolean;
922
+ @Input() rendition ! : 'elevated'|'filled'|'tonal'|'outlined'|'text'|string;
923
+ @Input() rtl ! : boolean;
924
+ @Input() scrollable ! : Scroller|boolean|ScrollerConfig;
925
+ @Input() span ! : number;
926
+ @Input() split ! : boolean|'mouseover'|'hover';
927
+ @Input() tabIndex ! : number;
928
+ @Input() target ! : string;
929
+ @Input() text ! : string|DomConfig|DomConfig[];
930
+ @Input() toggleable ! : boolean;
931
+ @Input() toggleGroup ! : string;
932
+ @Input() tooltip ! : string|TooltipConfig|null;
933
+ @Input() width ! : number|string;
934
+ @Input() x ! : number;
935
+ @Input() y ! : number;
936
+
937
+ // Properties only
938
+ @Input() anchorSize ! : number[];
939
+ @Input() focusVisible ! : boolean;
940
+ @Input() parent ! : Widget;
941
+
942
+ // Events emitters
943
+ /**
944
+ * Fires when the default action is performed (the button is clicked)
945
+ * @param {object} event Event object
946
+ * @param {Core.widget.Button} event.source The button
947
+ * @param {Event} event.event DEPRECATED - Use domEvent instead.
948
+ * @param {Event} event.domEvent The triggering DOM event. Using the `pointerType` property of this event can help determine if it was a mouse, touch or pen action.
949
+ */
950
+ @Output() onAction: any = new EventEmitter<((event: { source: Button, event: Event, domEvent: Event }) => void)|string>();
951
+ /**
952
+ * Fires before an object is destroyed.
953
+ * @param {object} event Event object
954
+ * @param {Core.Base} event.source The Object that is being destroyed.
955
+ */
956
+ @Output() onBeforeDestroy: any = new EventEmitter<((event: { source: Base }) => void)|string>();
957
+ /**
958
+ * Triggered before a widget is hidden. Return `false` to prevent the action.
959
+ * @param {object} event Event object
960
+ * @param {Core.widget.Widget} event.source The widget being hidden.
961
+ */
962
+ @Output() onBeforeHide: any = new EventEmitter<((event: { source: Widget }) => Promise<boolean>|boolean|void)|string>();
963
+ /**
964
+ * Triggered before a widget is shown. Return `false` to prevent the action.
965
+ * @param {object} event Event object
966
+ * @param {Core.widget.Widget,any} event.source The widget being shown
967
+ */
968
+ @Output() onBeforeShow: any = new EventEmitter<((event: { source: Widget|any }) => Promise<boolean>|boolean|void)|string>();
969
+ /**
970
+ * This event is triggered when the button's menu is about to be shown.
971
+ * @param {object} event Event object
972
+ * @param {Core.widget.Button} event.source This Button instance.
973
+ * @param {Core.widget.Menu} event.menu This button's menu instance.
974
+ * @param {boolean} event.userAction `true` if the toggle was triggered by a user action (click), `false` if it was triggered programmatically.
975
+ * @param {Event} event.domEvent The original DOM event that triggered the action, if any. Using the `pointerType` property of this event can help determine if it was a mouse, touch or pen action.
976
+ */
977
+ @Output() onBeforeShowMenu: any = new EventEmitter<((event: { source: Button, menu: Menu, userAction: boolean, domEvent: Event }) => Promise<boolean>|boolean|void)|string>();
978
+ /**
979
+ * Fires before the button is toggled (the [pressed](https://bryntum.com/products/taskboard/docs/api/Core/widget/Button#property-pressed) state is changed). If the button is part of
980
+ * a [toggleGroup](https://bryntum.com/products/taskboard/docs/api/Core/widget/Button#config-toggleGroup) and you need to process the pressed button only, consider using
981
+ * [click](https://bryntum.com/products/taskboard/docs/api/Core/widget/Button#event-click) event or [action](#Core/widget/Button#event-action) event.
982
+ * Return `false` to prevent the toggle to the new pressed state.
983
+ * @param {object} event Event object
984
+ * @param {Core.widget.Button} event.source Toggled button
985
+ * @param {boolean} event.pressed New pressed state
986
+ * @param {boolean} event.userAction `true` if the toggle was triggered by a user action (click), `false` if it was triggered programmatically.
987
+ * @param {Event} event.domEvent The original DOM event that triggered the action, if any. Using the `pointerType` property of this event can help determine if it was a mouse, touch or pen action.
988
+ */
989
+ @Output() onBeforeToggle: any = new EventEmitter<((event: { source: Button, pressed: boolean, userAction: boolean, domEvent: Event }) => Promise<boolean>|boolean|void)|string>();
990
+ /**
991
+ * Fires when any other event is fired from the object.
992
+ * ...
993
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/SwimlaneScrollButton#event-catchAll)
994
+ * @param {object} event Event object
995
+ * @param {{[key: string]: any, type: string}} event.event The Object that contains event details
996
+ * @param {string} event.event.type The type of the event which is caught by the listener
997
+ */
998
+ @Output() onCatchAll: any = new EventEmitter<((event: {[key: string]: any, type: string}) => void)|string>();
999
+ /**
1000
+ * Fires when the button is clicked
1001
+ * @param {object} event Event object
1002
+ * @param {Core.widget.Button} event.source The button
1003
+ * @param {Event} event.event DEPRECATED - Use domEvent instead.
1004
+ * @param {Event} event.domEvent The triggering DOM event. Using the `pointerType` property of this event can help determine if it was a mouse, touch or pen action.
1005
+ */
1006
+ @Output() onClick: any = new EventEmitter<((event: { source: Button, event: Event, domEvent: Event }) => void)|string>();
1007
+ /**
1008
+ * Fires when an object is destroyed.
1009
+ * @param {object} event Event object
1010
+ * @param {Core.Base} event.source The Object that is being destroyed.
1011
+ */
1012
+ @Output() onDestroy: any = new EventEmitter<((event: { source: Base }) => void)|string>();
1013
+ /**
1014
+ * Triggered when a widget's [element](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#property-element) is available.
1015
+ * @param {object} event Event object
1016
+ * @param {HTMLElement} event.element The Widget's element.
1017
+ */
1018
+ @Output() onElementCreated: any = new EventEmitter<((event: { element: HTMLElement }) => void)|string>();
1019
+ /**
1020
+ * Fired when focus enters this Widget.
1021
+ * @param {object} event Event object
1022
+ * @param {Core.widget.Widget} event.source This Widget
1023
+ * @param {HTMLElement} event.fromElement The element which lost focus.
1024
+ * @param {HTMLElement} event.toElement The element which gained focus.
1025
+ * @param {Core.widget.Widget} event.fromWidget The widget which lost focus.
1026
+ * @param {Core.widget.Widget} event.toWidget The widget which gained focus.
1027
+ * @param {boolean} event.backwards `true` if the `toElement` is before the `fromElement` in document order.
1028
+ */
1029
+ @Output() onFocusIn: any = new EventEmitter<((event: { source: Widget, fromElement: HTMLElement, toElement: HTMLElement, fromWidget: Widget, toWidget: Widget, backwards: boolean }) => void)|string>();
1030
+ /**
1031
+ * Fired when focus exits this Widget's ownership tree. This is different from a `blur` event.
1032
+ * focus moving from within this Widget's ownership tree, even if there are floating widgets
1033
+ * will not trigger this event. This is when focus exits this widget completely.
1034
+ * @param {object} event Event object
1035
+ * @param {Core.widget.Widget} event.source This Widget
1036
+ * @param {HTMLElement} event.fromElement The element which lost focus.
1037
+ * @param {HTMLElement} event.toElement The element which gained focus.
1038
+ * @param {Core.widget.Widget} event.fromWidget The widget which lost focus.
1039
+ * @param {Core.widget.Widget} event.toWidget The widget which gained focus.
1040
+ * @param {boolean} event.backwards `true` if the `toElement` is before the `fromElement` in document order.
1041
+ */
1042
+ @Output() onFocusOut: any = new EventEmitter<((event: { source: Widget, fromElement: HTMLElement, toElement: HTMLElement, fromWidget: Widget, toWidget: Widget, backwards: boolean }) => void)|string>();
1043
+ /**
1044
+ * Triggered after a widget was hidden
1045
+ * @param {object} event Event object
1046
+ * @param {Core.widget.Widget} event.source The widget
1047
+ */
1048
+ @Output() onHide: any = new EventEmitter<((event: { source: Widget }) => void)|string>();
1049
+ /**
1050
+ * Triggered when a widget which had been in a non-visible state for any reason
1051
+ * achieves visibility.
1052
+ * ...
1053
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/SwimlaneScrollButton#event-paint)
1054
+ * @param {object} event Event object
1055
+ * @param {Core.widget.Widget} event.source The widget being painted.
1056
+ * @param {boolean} event.firstPaint `true` if this is the first paint.
1057
+ */
1058
+ @Output() onPaint: any = new EventEmitter<((event: { source: Widget, firstPaint: boolean }) => void)|string>();
1059
+ /**
1060
+ * Fired when a Widget's read only state is toggled
1061
+ * @param {object} event Event object
1062
+ * @param {boolean} event.readOnly Read only or not
1063
+ */
1064
+ @Output() onReadOnly: any = new EventEmitter<((event: { readOnly: boolean }) => void)|string>();
1065
+ /**
1066
+ * This event is fired after a widget's elements have been synchronized due to a direct or indirect call
1067
+ * 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.
1068
+ */
1069
+ @Output() onRecompose: any = new EventEmitter<(() => void)|string>();
1070
+ /**
1071
+ * 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`*.
1072
+ * @param {object} event Event object
1073
+ * @param {Core.widget.Widget} event.source This Widget
1074
+ * @param {number} event.width The new width
1075
+ * @param {number} event.height The new height
1076
+ * @param {number} event.oldWidth The old width
1077
+ * @param {number} event.oldHeight The old height
1078
+ */
1079
+ @Output() onResize: any = new EventEmitter<((event: { source: Widget, width: number, height: number, oldWidth: number, oldHeight: number }) => void)|string>();
1080
+ /**
1081
+ * Triggered after a widget is shown.
1082
+ * @param {object} event Event object
1083
+ * @param {Core.widget.Widget} event.source The widget
1084
+ */
1085
+ @Output() onShow: any = new EventEmitter<((event: { source: Widget }) => void)|string>();
1086
+ /**
1087
+ * Fires when the button is toggled via a UI interaction (the [pressed](https://bryntum.com/products/taskboard/docs/api/Core/widget/Button#property-pressed) state is changed). If the button is part of a
1088
+ * [toggleGroup](https://bryntum.com/products/taskboard/docs/api/Core/widget/Button#config-toggleGroup) and you need to process the pressed button only, consider using
1089
+ * [click](https://bryntum.com/products/taskboard/docs/api/Core/widget/Button#event-click) event or [action](#Core/widget/Button#event-action) event.
1090
+ * @param {object} event Event object
1091
+ * @param {Core.widget.Button} event.source Toggled button
1092
+ * @param {boolean} event.pressed New pressed state
1093
+ * @param {boolean} event.userAction `true` if the toggle was triggered by a user action (click), `false` if it was triggered programmatically.
1094
+ * @param {Event} event.domEvent The original DOM event that triggered the action, if any. Using the `pointerType` property of this event can help determine if it was a mouse, touch or pen action.
1095
+ */
1096
+ @Output() onToggle: any = new EventEmitter<((event: { source: Button, pressed: boolean, userAction: boolean, domEvent: Event }) => void)|string>();
1097
+
1098
+ /**
1099
+ * Create and append the underlying widget
1100
+ */
1101
+ ngOnInit(): void {
1102
+ const
1103
+ me = this,
1104
+ {
1105
+ elementRef,
1106
+ bryntumConfig
1107
+ } = me,
1108
+ {
1109
+ instanceClass,
1110
+ instanceName,
1111
+ bryntumConfigs,
1112
+ bryntumEvents
1113
+ } = BryntumSwimlaneScrollButtonComponent;
1114
+
1115
+ bryntumConfigs.filter(prop => prop in this).forEach(prop => {
1116
+ // @ts-ignore
1117
+ WrapperHelper.applyPropValue(bryntumConfig, prop, this[prop]);
1118
+ if (['features', 'config'].includes(prop)) {
1119
+ WrapperHelper.devWarningConfigProp(instanceName, prop);
1120
+ }
1121
+ });
1122
+ // @ts-ignore
1123
+ bryntumEvents.filter(event => this[event] && this[event].observers.length > 0).forEach(event => {
1124
+ const
1125
+ uncapitalize = (str: string) => str.charAt(0).toLowerCase() + str.slice(1),
1126
+ eventName = (str: string) => uncapitalize(str.slice(2));
1127
+
1128
+ // @ts-ignore
1129
+ bryntumConfig.listeners[eventName(event)] = e => {
1130
+ // @ts-ignore
1131
+ me[event].emit(e);
1132
+ // EventEmitter does not return values in the normal way, work around it by setting `returnValue` flag
1133
+ // in Angular listeners
1134
+ return e.returnValue;
1135
+ };
1136
+ });
1137
+
1138
+ // If component has no container specified in config then use adopt to Wrapper's element
1139
+ const
1140
+ containerParam = [
1141
+ 'adopt',
1142
+ 'appendTo',
1143
+ 'insertAfter',
1144
+ 'insertBefore'
1145
+ // @ts-ignore
1146
+ ].find(prop => bryntumConfig[prop]);
1147
+ if (!containerParam) {
1148
+ if (instanceName === 'Button' || elementRef.nativeElement.getRootNode() instanceof ShadowRoot) {
1149
+ // Button should always be <a> or <button> inside owner element
1150
+ bryntumConfig.appendTo = elementRef.nativeElement;
1151
+ }
1152
+ else {
1153
+ bryntumConfig.adopt = elementRef.nativeElement;
1154
+ }
1155
+ }
1156
+ else {
1157
+ WrapperHelper.devWarningContainer(instanceName, containerParam);
1158
+ }
1159
+
1160
+ // @ts-ignore
1161
+ me.instance = instanceName === 'Widget' ? Widget.create(bryntumConfig) : new instanceClass(bryntumConfig);
1162
+
1163
+ }
1164
+
1165
+ /**
1166
+ * Watch for changes
1167
+ * @param changes
1168
+ */
1169
+ ngOnChanges(changes: SimpleChanges): void {
1170
+ const
1171
+ { instance } = this,
1172
+ { instanceName } = BryntumSwimlaneScrollButtonComponent;
1173
+ if (!instance) {
1174
+ return;
1175
+ }
1176
+ // Iterate over all changes
1177
+ Object.entries(changes).forEach(([prop, change]) => {
1178
+ const
1179
+ newValue = (change as SimpleChange).currentValue,
1180
+ { instance } = this,
1181
+ { bryntumConfigsOnly, bryntumProps } = BryntumSwimlaneScrollButtonComponent;
1182
+ if (bryntumProps.includes(prop)) {
1183
+ WrapperHelper.applyPropValue(instance, prop, newValue, false);
1184
+ if (bryntumConfigsOnly.includes(prop)) {
1185
+ WrapperHelper.devWarningUpdateProp(instanceName, prop);
1186
+ }
1187
+ }
1188
+ });
1189
+ }
1190
+
1191
+ /**
1192
+ * Destroy the component
1193
+ */
1194
+ ngOnDestroy(): void {
1195
+ // @ts-ignore
1196
+ if (this.instance && this.instance.destroy) {
1197
+ this.instance.destroy();
1198
+ }
1199
+ }
1200
+ }