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