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