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