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