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