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