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