@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,1025 @@
1
+ /* eslint-disable @typescript-eslint/no-unused-vars */
2
+ /**
3
+ * Angular wrapper for Bryntum Splitter
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, DomConfig, KeyMapConfig, MaskConfig, Rectangle, Scroller, ScrollerConfig, Splitter, SplitterListeners, TabConfig, TooltipConfig, VueConfig, Widget } from '@bryntum/taskboard';
11
+
12
+ import { StringHelper } from '@bryntum/taskboard';
13
+
14
+ export type BryntumSplitterProps = {
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/Splitter#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/Splitter#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/Splitter#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/Splitter#config-ariaLabel)
57
+ */
58
+ ariaLabel ? : string
59
+ /**
60
+ * An object where property names with a truthy value indicate which events should bubble up the ownership
61
+ * hierarchy when triggered.
62
+ * ...
63
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/Core/widget/Splitter#config-bubbleEvents)
64
+ */
65
+ bubbleEvents ? : object
66
+ /**
67
+ * Set to `false` to not call onXXX method names (e.g. `onShow`, `onClick`), as an easy way to listen for events.
68
+ * ...
69
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/Core/widget/Splitter#config-callOnFunctions)
70
+ */
71
+ callOnFunctions ? : boolean
72
+ /**
73
+ * By default, if an event handler throws an exception, the error propagates up the stack and the
74
+ * application state is undefined. Code which follows the event handler will *not* be executed.
75
+ * ...
76
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/Core/widget/Splitter#config-catchEventHandlerExceptions)
77
+ */
78
+ catchEventHandlerExceptions ? : boolean
79
+ /**
80
+ * *Only valid if this Widget is [floating](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#config-floating).*
81
+ * Set to `true` to centre the Widget in browser viewport space.
82
+ */
83
+ centered ? : boolean
84
+ /**
85
+ * Custom CSS classes to add to element.
86
+ * May be specified as a space separated string, or as an object in which property names
87
+ * with truthy values are used as the class names:
88
+ * ...
89
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/Core/widget/Splitter#config-cls)
90
+ */
91
+ cls ? : string|object
92
+ /**
93
+ * Applies the specified color to the widget, by setting the `--b-primary` CSS variable in the widgets
94
+ * `style` block.
95
+ * ...
96
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/Core/widget/Splitter#config-color)
97
+ */
98
+ color ? : string
99
+ /**
100
+ * Programmatic control over which column to start in when used in a grid layout.
101
+ */
102
+ column ? : number
103
+ config ? : object
104
+ /**
105
+ * *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).*
106
+ * Element, Widget or Rectangle to which this Widget is constrained.
107
+ */
108
+ constrainTo ? : HTMLElement|Widget|Rectangle
109
+ /**
110
+ * The HTML content that coexists with sibling elements which may have been added to the
111
+ * [contentElement](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#property-contentElement) by plugins and features.
112
+ * When specifying html, this widget's element will also have the [htmlCls](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#config-htmlCls)
113
+ * class added to its classList, to allow targeted styling.
114
+ */
115
+ content ? : string
116
+ /**
117
+ * Custom CSS classes to add to the [contentElement](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#property-contentElement).
118
+ * May be specified as a space separated string, or as an object in which property names
119
+ * with truthy values are used as the class names:
120
+ * ...
121
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/Core/widget/Splitter#config-contentElementCls)
122
+ */
123
+ contentElementCls ? : string|object
124
+ /**
125
+ * When this Widget configuration is used in the Grid's RowExpander feature's `widget` config, provide the
126
+ * field on the expanded record to use for populating this widget's store (if applicable)
127
+ */
128
+ dataField ? : string
129
+ /**
130
+ * Object to apply to elements dataset (each key will be used as a data-attribute on the element)
131
+ */
132
+ dataset ? : Record<string, string>
133
+ /**
134
+ * The name of the property to set when a single value is to be applied to this Widget. Such as when used
135
+ * in a grid WidgetColumn, this is the property to which the column's `field` is applied.
136
+ */
137
+ defaultBindProperty ? : string
138
+ /**
139
+ * Check for CSS compatibility issues when upgrading to v7. Performs the following checks:
140
+ * ...
141
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/Core/widget/Splitter#config-detectCSSCompatibilityIssues)
142
+ */
143
+ detectCSSCompatibilityIssues ? : boolean
144
+ /**
145
+ * 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
146
+ * cannot be focused, uses a different rendition (usually greyish) and does not allow selecting its value.
147
+ * ...
148
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/Core/widget/Splitter#config-disabled)
149
+ */
150
+ disabled ? : boolean|'inert'
151
+ /**
152
+ * Controls the placement of this widget when it is added to a [panel's ](https://bryntum.com/products/taskboard/docs/api/Core/widget/Panel)
153
+ * [strips collection](https://bryntum.com/products/taskboard/docs/api/Core/widget/Panel#config-strips). Typical values for this config are `'top'`,
154
+ * `'bottom'`, `'left'`, or `'right'`, which cause the widget to be placed on that side of the panel's
155
+ * body. Such widgets are called "edge strips".
156
+ * ...
157
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/Core/widget/Splitter#config-dock)
158
+ */
159
+ dock ? : 'top'|'bottom'|'left'|'right'|'start'|'end'|'header'|'pre-header'|object
160
+ /**
161
+ * *Only valid if this Widget is [floating](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#config-floating).*
162
+ * Set to `true` to be able to drag a widget freely on the page. Or set to an object with a ´handleSelector´
163
+ * property which controls when a drag should start.
164
+ * ...
165
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/Core/widget/Splitter#config-draggable)
166
+ */
167
+ draggable ? : boolean|{
168
+ handleSelector?: string
169
+ }
170
+ /**
171
+ * An object specifying attributes to assign to the root element of this widget.
172
+ * Set `null` value to attribute to remove it.
173
+ * ...
174
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/Core/widget/Splitter#config-elementAttributes)
175
+ */
176
+ elementAttributes ? : Record<string, string|null>
177
+ extraData ? : any
178
+ /**
179
+ * 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
180
+ * flexbox layout. This config allows you to set this widget's
181
+ * [flex](https://developer.mozilla.org/en-US/docs/Web/CSS/flex) style.
182
+ * This may be configured as a single number or a `&lt;flex-grow&gt; &lt;flex-shrink&gt; &lt;flex-basis&gt;` format string.
183
+ * numeric-only values are interpreted as the `flex-grow` value.
184
+ */
185
+ flex ? : number|string
186
+ /**
187
+ * Set to `true` to move the widget out of the document flow and position it
188
+ * absolutely in browser viewport space.
189
+ */
190
+ floating ? : boolean
191
+ /**
192
+ * Widget's height, used to set element `style.height`. Either specify a valid height string or a number,
193
+ * which will get 'px' appended. We recommend using CSS as the primary way to control height, but in some
194
+ * cases this config is convenient.
195
+ */
196
+ height ? : string|number
197
+ /**
198
+ * Configure with true to make widget initially hidden.
199
+ */
200
+ hidden ? : boolean
201
+ /**
202
+ * *Only valid if this Widget is [floating](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#config-floating).*
203
+ * ...
204
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/Core/widget/Splitter#config-hideAnimation)
205
+ */
206
+ hideAnimation ? : boolean|object
207
+ /**
208
+ * The HTML to display initially or a function returning the markup (called at widget construction time).
209
+ * ...
210
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/Core/widget/Splitter#config-html)
211
+ * @param {Core.widget.Widget} widget The calling Widget
212
+ * @returns {string}
213
+ */
214
+ html ? : string|((widget: Widget) => string)|DomConfig|DomConfig[]|VueConfig
215
+ /**
216
+ * The CSS class(es) to add when HTML content is being applied to this widget.
217
+ */
218
+ htmlCls ? : string|object
219
+ /**
220
+ * Widget id, if not specified one will be generated. Also used for lookups through Widget.getById
221
+ */
222
+ id ? : string
223
+ /**
224
+ * Determines if the widgets read-only state should be controlled by its parent.
225
+ * ...
226
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/Core/widget/Splitter#config-ignoreParentReadOnly)
227
+ */
228
+ ignoreParentReadOnly ? : boolean
229
+ /**
230
+ * 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.
231
+ */
232
+ insertBefore ? : HTMLElement|string
233
+ /**
234
+ * 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.
235
+ */
236
+ insertFirst ? : HTMLElement|string
237
+ /**
238
+ * An object whose keys are the [key](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/key) name
239
+ * and optional modifier prefixes: `'Ctrl+'`, `'Alt+'`, `'Meta+'`, and `'Shift+'` (case-insensitive). The values
240
+ * are the name of the instance method to call when the keystroke is received.
241
+ * ...
242
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/Core/widget/Splitter#config-keyMap)
243
+ */
244
+ keyMap ? : Record<string, KeyMapConfig>
245
+ /**
246
+ * The listener set for this object.
247
+ * ...
248
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/Core/widget/Splitter#config-listeners)
249
+ */
250
+ listeners ? : SplitterListeners
251
+ /**
252
+ * A class translations of which are used for translating this entity.
253
+ * This is often used when translations of an item are defined on its container class.
254
+ * For example:
255
+ * ...
256
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/Core/widget/Splitter#config-localeClass)
257
+ */
258
+ localeClass ? : typeof Base
259
+ /**
260
+ * Set to `false` to disable localization of this object.
261
+ */
262
+ localizable ? : boolean
263
+ /**
264
+ * List of properties which values should be translated automatically upon a locale applying.
265
+ * In case there is a need to localize not typical value (not a String value or a field with re-defined setter/getter),
266
+ * you could use 'localeKey' meta configuration.
267
+ * Example:
268
+ * ...
269
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/Core/widget/Splitter#config-localizableProperties)
270
+ */
271
+ localizableProperties ? : string[]
272
+ /**
273
+ * Widget's margin. This may be configured as a single number or a `TRBL` format string.
274
+ * numeric-only values are interpreted as pixels.
275
+ */
276
+ margin ? : number|string
277
+ /**
278
+ * This config object contains the defaults for the [Mask](https://bryntum.com/products/taskboard/docs/api/Core/widget/Mask) created for the
279
+ * [masked](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#config-masked) config. Any properties specified in the `masked` config will override these
280
+ * values.
281
+ */
282
+ maskDefaults ? : MaskConfig
283
+ /**
284
+ * Set to `true` to apply the default mask to the widget. Alternatively, this can be the mask message or a
285
+ * [Mask](https://bryntum.com/products/taskboard/docs/api/Core/widget/Mask) config object.
286
+ */
287
+ masked ? : boolean|string|MaskConfig
288
+ /**
289
+ * The element's maxHeight. Can be either a String or a Number (which will have 'px' appended). Note that
290
+ * like [height](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#config-height), *reading* the value will return the numeric value in pixels.
291
+ */
292
+ maxHeight ? : string|number
293
+ /**
294
+ * *Only valid if this Widget is [floating](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#config-floating).*
295
+ * ...
296
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/Core/widget/Splitter#config-maximizeOnMobile)
297
+ */
298
+ maximizeOnMobile ? : number|string
299
+ /**
300
+ * The elements maxWidth. Can be either a String or a Number (which will have 'px' appended). Note that
301
+ * like [width](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#config-width), *reading* the value will return the numeric value in pixels.
302
+ */
303
+ maxWidth ? : string|number
304
+ /**
305
+ * The element's minHeight. Can be either a String or a Number (which will have 'px' appended). Note that
306
+ * like [height](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#config-height), *reading* the value will return the numeric value in pixels.
307
+ */
308
+ minHeight ? : string|number
309
+ /**
310
+ * The elements minWidth. Can be either a String or a Number (which will have 'px' appended). Note that
311
+ * like [width](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#config-width), *reading* the value will return the numeric value in pixels.
312
+ */
313
+ minWidth ? : string|number
314
+ /**
315
+ * When this is configured as `true` a [ResizeObserver](https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserver)
316
+ * is used to monitor this element for size changes caused by either style manipulation, or by CSS
317
+ * layout.
318
+ * ...
319
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/Core/widget/Splitter#config-monitorResize)
320
+ */
321
+ monitorResize ? : boolean|{
322
+ immediate?: boolean
323
+ }
324
+ /**
325
+ * The splitter's orientation, configurable with 'auto', 'horizontal' or 'vertical'.
326
+ * ...
327
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/Core/widget/Splitter#config-orientation)
328
+ */
329
+ orientation ? : 'auto'|'horizontal'|'vertical'
330
+ /**
331
+ * The owning Widget of this Widget. If this Widget is directly contained (that is, it is one of the
332
+ * [items](https://bryntum.com/products/taskboard/docs/api/Core/widget/Container#property-items) of a Container), this config will be ignored. In this case
333
+ * the owner is <strong>always</strong> the encapsulating Container.
334
+ * ...
335
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/Core/widget/Splitter#config-owner)
336
+ */
337
+ owner ? : Widget|any
338
+ /**
339
+ * 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
340
+ * not participate in the standard layout of that widget, and must be positioned relatively to that
341
+ * widget's [contentElement](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#property-contentElement).
342
+ * ...
343
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/Core/widget/Splitter#config-positioned)
344
+ */
345
+ positioned ? : boolean
346
+ /**
347
+ * Prevent tooltip from being displayed on touch devices. Useful for example for buttons that display a
348
+ * menu on click etc, since the tooltip would be displayed at the same time.
349
+ */
350
+ preventTooltipOnTouch ? : boolean
351
+ /**
352
+ * Whether this widget is read-only. This is only valid if the widget is an input
353
+ * field, <strong>or contains input fields at any depth</strong>.
354
+ * ...
355
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/Core/widget/Splitter#config-readOnly)
356
+ */
357
+ readOnly ? : boolean
358
+ relayStoreEvents ? : boolean
359
+ /**
360
+ * Configure as `true` to have the component display a translucent ripple when its
361
+ * [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
362
+ * current theme supports ripples</em>. Out of the box, only the Material theme supports ripples.
363
+ * ...
364
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/Core/widget/Splitter#config-ripple)
365
+ */
366
+ ripple ? : boolean|{
367
+ delegate?: string
368
+ color?: string
369
+ radius?: number
370
+ clip?: string
371
+ }
372
+ /**
373
+ * 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`
374
+ */
375
+ rootElement ? : ShadowRoot|HTMLElement
376
+ /**
377
+ * This may be configured as `true` to make the widget's element use the `direction:rtl` style.
378
+ * ...
379
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/Core/widget/Splitter#config-rtl)
380
+ */
381
+ rtl ? : boolean
382
+ /**
383
+ * Specifies whether (and optionally in which axes) a Widget may scroll. `true` means this widget may scroll
384
+ * in both axes. May be an object containing boolean `overflowX` and `overflowY` properties which are
385
+ * applied to CSS style properties `overflowX` and `overflowY`. If they are boolean, they are translated to
386
+ * CSS overflow properties thus:
387
+ * ...
388
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/Core/widget/Splitter#config-scrollable)
389
+ */
390
+ scrollable ? : boolean|ScrollerConfig|Scroller
391
+ /**
392
+ * Defines what to do if document is scrolled while Widget is visible (only relevant when floating is set to `true`).
393
+ * Valid values: ´null´: do nothing, ´hide´: hide the widget or ´realign´: realign to the target if possible.
394
+ */
395
+ scrollAction ? : 'hide'|'realign'|null
396
+ /**
397
+ * *Only valid if this Widget is [floating](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#config-floating).*
398
+ * ...
399
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/Core/widget/Splitter#config-showAnimation)
400
+ */
401
+ showAnimation ? : boolean|object
402
+ /**
403
+ * Set to `true` to show the splitter's collapse/expand buttons, or to 'start' or 'end' to only show
404
+ * buttons pointing to the previous or next element respectively.
405
+ * ...
406
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/Core/widget/Splitter#config-showButtons)
407
+ */
408
+ showButtons ? : boolean|'start'|'end'
409
+ /**
410
+ * 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)
411
+ */
412
+ showTooltipWhenDisabled ? : boolean
413
+ /**
414
+ * Programmatic control over how many columns to span when used in a grid layout.
415
+ */
416
+ span ? : number
417
+ /**
418
+ * 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
419
+ * [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
420
+ * this widget:
421
+ * ...
422
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/Core/widget/Splitter#config-tab)
423
+ */
424
+ tab ? : boolean|TabConfig
425
+ /**
426
+ * The tag name of this Widget's root element
427
+ */
428
+ tag ? : string
429
+ /**
430
+ * Text alignment: 'left', 'center' or 'right'. Also accepts direction neutral 'start' and 'end'.
431
+ * ...
432
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/Core/widget/Splitter#config-textAlign)
433
+ */
434
+ textAlign ? : 'left'|'center'|'right'|'start'|'end'
435
+ /**
436
+ * A title to display for the widget. Only in effect when inside a container that uses it (such as TabPanel)
437
+ */
438
+ title ? : string
439
+ /**
440
+ * Tooltip for the widget, either as a string or as a Tooltip config object.
441
+ * ...
442
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/Core/widget/Splitter#config-tooltip)
443
+ */
444
+ tooltip ? : string|TooltipConfig|null
445
+ type ? : 'splitter'
446
+ /**
447
+ * Custom CSS class name suffixes to apply to the elements rendered by this widget. This may be specified
448
+ * as a space separated string, an array of strings, or as an object in which property names with truthy
449
+ * values are used as the class names.
450
+ * ...
451
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/Core/widget/Splitter#config-ui)
452
+ */
453
+ ui ? : string|object
454
+ /**
455
+ * A widgets weight determines its position among siblings when added to a [Container](https://bryntum.com/products/taskboard/docs/api/Core/widget/Container).
456
+ * Higher weights go further down.
457
+ */
458
+ weight ? : number
459
+ /**
460
+ * Widget's width, used to set element `style.width`. Either specify a valid width string or a number, which
461
+ * will get 'px' appended. We recommend using CSS as the primary way to control width, but in some cases
462
+ * this config is convenient.
463
+ */
464
+ width ? : string|number
465
+ /**
466
+ * The x position for the widget.
467
+ * ...
468
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/Core/widget/Splitter#config-x)
469
+ */
470
+ x ? : number
471
+ /**
472
+ * The y position for the widget.
473
+ * ...
474
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/Core/widget/Splitter#config-y)
475
+ */
476
+ y ? : number
477
+
478
+ }
479
+
480
+ @Component({
481
+ selector : 'bryntum-splitter',
482
+ template : ''
483
+ })
484
+ export class BryntumSplitterComponent implements OnInit, OnDestroy {
485
+
486
+ public static instanceClass = Splitter;
487
+
488
+ public static instanceName = 'Splitter';
489
+
490
+ private static bryntumEvents: string[] = [
491
+ 'onBeforeDestroy',
492
+ 'onBeforeHide',
493
+ 'onBeforeShow',
494
+ 'onCatchAll',
495
+ 'onDestroy',
496
+ 'onDrag',
497
+ 'onDragStart',
498
+ 'onDrop',
499
+ 'onElementCreated',
500
+ 'onFocusIn',
501
+ 'onFocusOut',
502
+ 'onHide',
503
+ 'onPaint',
504
+ 'onReadOnly',
505
+ 'onRecompose',
506
+ 'onResize',
507
+ 'onShow'
508
+ ];
509
+
510
+ private static bryntumFeatureNames: string[] = [
511
+
512
+ ];
513
+
514
+ private static bryntumConfigs: string[] = BryntumSplitterComponent.bryntumFeatureNames.concat([
515
+ 'adopt',
516
+ 'align',
517
+ 'alignSelf',
518
+ 'anchor',
519
+ 'appendTo',
520
+ 'ariaDescription',
521
+ 'ariaLabel',
522
+ 'bubbleEvents',
523
+ 'callOnFunctions',
524
+ 'catchEventHandlerExceptions',
525
+ 'centered',
526
+ 'cls',
527
+ 'color',
528
+ 'column',
529
+ 'config',
530
+ 'constrainTo',
531
+ 'content',
532
+ 'contentElementCls',
533
+ 'dataField',
534
+ 'dataset',
535
+ 'defaultBindProperty',
536
+ 'detectCSSCompatibilityIssues',
537
+ 'disabled',
538
+ 'dock',
539
+ 'draggable',
540
+ 'elementAttributes',
541
+ 'extraData',
542
+ 'flex',
543
+ 'floating',
544
+ 'height',
545
+ 'hidden',
546
+ 'hideAnimation',
547
+ 'html',
548
+ 'htmlCls',
549
+ 'id',
550
+ 'ignoreParentReadOnly',
551
+ 'insertBefore',
552
+ 'insertFirst',
553
+ 'keyMap',
554
+ 'listeners',
555
+ 'localeClass',
556
+ 'localizable',
557
+ 'localizableProperties',
558
+ 'margin',
559
+ 'maskDefaults',
560
+ 'masked',
561
+ 'maxHeight',
562
+ 'maximizeOnMobile',
563
+ 'maxWidth',
564
+ 'minHeight',
565
+ 'minWidth',
566
+ 'monitorResize',
567
+ 'orientation',
568
+ 'owner',
569
+ 'positioned',
570
+ 'preventTooltipOnTouch',
571
+ 'readOnly',
572
+ 'relayStoreEvents',
573
+ 'ripple',
574
+ 'rootElement',
575
+ 'rtl',
576
+ 'scrollable',
577
+ 'scrollAction',
578
+ 'showAnimation',
579
+ 'showButtons',
580
+ 'showTooltipWhenDisabled',
581
+ 'span',
582
+ 'tab',
583
+ 'tag',
584
+ 'textAlign',
585
+ 'title',
586
+ 'tooltip',
587
+ 'type',
588
+ 'ui',
589
+ 'weight',
590
+ 'width',
591
+ 'x',
592
+ 'y'
593
+ ]);
594
+
595
+ private static bryntumConfigsOnly: string[] = [
596
+ 'adopt',
597
+ 'align',
598
+ 'anchor',
599
+ 'ariaDescription',
600
+ 'ariaLabel',
601
+ 'bubbleEvents',
602
+ 'centered',
603
+ 'color',
604
+ 'config',
605
+ 'constrainTo',
606
+ 'contentElementCls',
607
+ 'dataField',
608
+ 'defaultBindProperty',
609
+ 'detectCSSCompatibilityIssues',
610
+ 'dock',
611
+ 'draggable',
612
+ 'elementAttributes',
613
+ 'floating',
614
+ 'hideAnimation',
615
+ 'htmlCls',
616
+ 'ignoreParentReadOnly',
617
+ 'listeners',
618
+ 'localeClass',
619
+ 'localizable',
620
+ 'localizableProperties',
621
+ 'maskDefaults',
622
+ 'masked',
623
+ 'monitorResize',
624
+ 'orientation',
625
+ 'owner',
626
+ 'positioned',
627
+ 'preventTooltipOnTouch',
628
+ 'relayStoreEvents',
629
+ 'ripple',
630
+ 'rootElement',
631
+ 'scrollAction',
632
+ 'showAnimation',
633
+ 'showButtons',
634
+ 'showTooltipWhenDisabled',
635
+ 'tab',
636
+ 'tag',
637
+ 'textAlign',
638
+ 'title',
639
+ 'type',
640
+ 'ui',
641
+ 'weight'
642
+ ];
643
+
644
+ private static bryntumProps: string[] = BryntumSplitterComponent.bryntumFeatureNames.concat([
645
+ 'alignSelf',
646
+ 'anchorSize',
647
+ 'appendTo',
648
+ 'callOnFunctions',
649
+ 'catchEventHandlerExceptions',
650
+ 'cls',
651
+ 'column',
652
+ 'content',
653
+ 'dataset',
654
+ 'disabled',
655
+ 'extraData',
656
+ 'flex',
657
+ 'focusVisible',
658
+ 'height',
659
+ 'hidden',
660
+ 'html',
661
+ 'id',
662
+ 'insertBefore',
663
+ 'insertFirst',
664
+ 'keyMap',
665
+ 'margin',
666
+ 'maxHeight',
667
+ 'maximizeOnMobile',
668
+ 'maxWidth',
669
+ 'minHeight',
670
+ 'minWidth',
671
+ 'parent',
672
+ 'readOnly',
673
+ 'rtl',
674
+ 'scrollable',
675
+ 'span',
676
+ 'tooltip',
677
+ 'width',
678
+ 'x',
679
+ 'y'
680
+ ]);
681
+
682
+ private elementRef: ElementRef;
683
+ public instance!: Splitter;
684
+
685
+ private bryntumConfig = {
686
+ adopt : undefined,
687
+ appendTo : undefined,
688
+ href : undefined,
689
+ angularComponent : this,
690
+ features : {},
691
+ listeners : {}
692
+ };
693
+
694
+ constructor(element: ElementRef) {
695
+ this.elementRef = element;
696
+ }
697
+
698
+ // Configs only
699
+ @Input() adopt ! : HTMLElement|string;
700
+ @Input() align ! : AlignSpec|string;
701
+ @Input() anchor ! : boolean;
702
+ @Input() ariaDescription ! : string;
703
+ @Input() ariaLabel ! : string;
704
+ @Input() bubbleEvents ! : object;
705
+ @Input() centered ! : boolean;
706
+ @Input() color ! : string;
707
+ @Input() config ! : object;
708
+ @Input() constrainTo ! : HTMLElement|Widget|Rectangle;
709
+ @Input() contentElementCls ! : string|object;
710
+ @Input() dataField ! : string;
711
+ @Input() defaultBindProperty ! : string;
712
+ @Input() detectCSSCompatibilityIssues ! : boolean;
713
+ @Input() dock ! : 'top'|'bottom'|'left'|'right'|'start'|'end'|'header'|'pre-header'|object;
714
+ @Input() draggable ! : boolean|{
715
+ handleSelector?: string
716
+ };
717
+ @Input() elementAttributes ! : Record<string, string|null>;
718
+ @Input() floating ! : boolean;
719
+ @Input() hideAnimation ! : boolean|object;
720
+ @Input() htmlCls ! : string|object;
721
+ @Input() ignoreParentReadOnly ! : boolean;
722
+ @Input() listeners ! : SplitterListeners;
723
+ @Input() localeClass ! : typeof Base;
724
+ @Input() localizable ! : boolean;
725
+ @Input() localizableProperties ! : string[];
726
+ @Input() maskDefaults ! : MaskConfig;
727
+ @Input() masked ! : boolean|string|MaskConfig;
728
+ @Input() monitorResize ! : boolean|{
729
+ immediate?: boolean
730
+ };
731
+ @Input() orientation ! : 'auto'|'horizontal'|'vertical';
732
+ @Input() owner ! : Widget|any;
733
+ @Input() positioned ! : boolean;
734
+ @Input() preventTooltipOnTouch ! : boolean;
735
+ @Input() relayStoreEvents ! : boolean;
736
+ @Input() ripple ! : boolean|{
737
+ delegate?: string
738
+ color?: string
739
+ radius?: number
740
+ clip?: string
741
+ };
742
+ @Input() rootElement ! : ShadowRoot|HTMLElement;
743
+ @Input() scrollAction ! : 'hide'|'realign'|null;
744
+ @Input() showAnimation ! : boolean|object;
745
+ @Input() showButtons ! : boolean|'start'|'end';
746
+ @Input() showTooltipWhenDisabled ! : boolean;
747
+ @Input() tab ! : boolean|TabConfig;
748
+ @Input() tag ! : string;
749
+ @Input() textAlign ! : 'left'|'center'|'right'|'start'|'end';
750
+ @Input() title ! : string;
751
+ @Input() type ! : 'splitter';
752
+ @Input() ui ! : string|object;
753
+ @Input() weight ! : number;
754
+
755
+ // Configs and properties
756
+ @Input() alignSelf ! : string;
757
+ @Input() appendTo ! : HTMLElement|string;
758
+ @Input() callOnFunctions ! : boolean;
759
+ @Input() catchEventHandlerExceptions ! : boolean;
760
+ @Input() cls ! : string|object;
761
+ @Input() column ! : number;
762
+ @Input() content ! : string;
763
+ @Input() dataset ! : object|Record<string, string>;
764
+ @Input() disabled ! : boolean|'inert';
765
+ @Input() extraData ! : any;
766
+ @Input() flex ! : number|string;
767
+ @Input() height ! : number|string;
768
+ @Input() hidden ! : boolean;
769
+ @Input() html ! : string|((widget: Widget) => string)|DomConfig|DomConfig[]|VueConfig;
770
+ @Input() id ! : string;
771
+ @Input() insertBefore ! : HTMLElement|string;
772
+ @Input() insertFirst ! : HTMLElement|string;
773
+ @Input() keyMap ! : Record<string, KeyMapConfig>;
774
+ @Input() margin ! : number|string;
775
+ @Input() maxHeight ! : string|number;
776
+ @Input() maximizeOnMobile ! : number|string;
777
+ @Input() maxWidth ! : string|number;
778
+ @Input() minHeight ! : string|number;
779
+ @Input() minWidth ! : string|number;
780
+ @Input() readOnly ! : boolean;
781
+ @Input() rtl ! : boolean;
782
+ @Input() scrollable ! : Scroller|boolean|ScrollerConfig;
783
+ @Input() span ! : number;
784
+ @Input() tooltip ! : string|TooltipConfig|null;
785
+ @Input() width ! : number|string;
786
+ @Input() x ! : number;
787
+ @Input() y ! : number;
788
+
789
+ // Properties only
790
+ @Input() anchorSize ! : number[];
791
+ @Input() focusVisible ! : boolean;
792
+ @Input() parent ! : Widget;
793
+
794
+ // Events emitters
795
+ /**
796
+ * Fires before an object is destroyed.
797
+ * @param {object} event Event object
798
+ * @param {Core.Base} event.source The Object that is being destroyed.
799
+ */
800
+ @Output() onBeforeDestroy: any = new EventEmitter<((event: { source: Base }) => void)|string>();
801
+ /**
802
+ * Triggered before a widget is hidden. Return `false` to prevent the action.
803
+ * @param {object} event Event object
804
+ * @param {Core.widget.Widget} event.source The widget being hidden.
805
+ */
806
+ @Output() onBeforeHide: any = new EventEmitter<((event: { source: Widget }) => Promise<boolean>|boolean|void)|string>();
807
+ /**
808
+ * Triggered before a widget is shown. Return `false` to prevent the action.
809
+ * @param {object} event Event object
810
+ * @param {Core.widget.Widget,any} event.source The widget being shown
811
+ */
812
+ @Output() onBeforeShow: any = new EventEmitter<((event: { source: Widget|any }) => Promise<boolean>|boolean|void)|string>();
813
+ /**
814
+ * Fires when any other event is fired from the object.
815
+ * ...
816
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/Core/widget/Splitter#event-catchAll)
817
+ * @param {object} event Event object
818
+ * @param {{[key: string]: any, type: string}} event.event The Object that contains event details
819
+ * @param {string} event.event.type The type of the event which is caught by the listener
820
+ */
821
+ @Output() onCatchAll: any = new EventEmitter<((event: {[key: string]: any, type: string}) => void)|string>();
822
+ /**
823
+ * Fires when an object is destroyed.
824
+ * @param {object} event Event object
825
+ * @param {Core.Base} event.source The Object that is being destroyed.
826
+ */
827
+ @Output() onDestroy: any = new EventEmitter<((event: { source: Base }) => void)|string>();
828
+ /**
829
+ * Fired while dragging
830
+ * @param {object} event Event object
831
+ * @param {Core.widget.Splitter} event.source The Splitter
832
+ * @param {MouseEvent,TouchEvent} event.event The DOM event
833
+ */
834
+ @Output() onDrag: any = new EventEmitter<((event: { source: Splitter, event: MouseEvent|TouchEvent }) => void)|string>();
835
+ /**
836
+ * Fired when a drag starts
837
+ * @param {object} event Event object
838
+ * @param {Core.widget.Splitter} event.source The Splitter
839
+ * @param {MouseEvent,TouchEvent} event.event The DOM event
840
+ */
841
+ @Output() onDragStart: any = new EventEmitter<((event: { source: Splitter, event: MouseEvent|TouchEvent }) => void)|string>();
842
+ /**
843
+ * Fired after a drop
844
+ * @param {object} event Event object
845
+ * @param {Core.widget.Splitter} event.source The Splitter
846
+ * @param {MouseEvent,TouchEvent} event.event The DOM event
847
+ */
848
+ @Output() onDrop: any = new EventEmitter<((event: { source: Splitter, event: MouseEvent|TouchEvent }) => void)|string>();
849
+ /**
850
+ * Triggered when a widget's [element](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#property-element) is available.
851
+ * @param {object} event Event object
852
+ * @param {HTMLElement} event.element The Widget's element.
853
+ */
854
+ @Output() onElementCreated: any = new EventEmitter<((event: { element: HTMLElement }) => void)|string>();
855
+ /**
856
+ * Fired when focus enters this Widget.
857
+ * @param {object} event Event object
858
+ * @param {Core.widget.Widget} event.source This Widget
859
+ * @param {HTMLElement} event.fromElement The element which lost focus.
860
+ * @param {HTMLElement} event.toElement The element which gained focus.
861
+ * @param {Core.widget.Widget} event.fromWidget The widget which lost focus.
862
+ * @param {Core.widget.Widget} event.toWidget The widget which gained focus.
863
+ * @param {boolean} event.backwards `true` if the `toElement` is before the `fromElement` in document order.
864
+ */
865
+ @Output() onFocusIn: any = new EventEmitter<((event: { source: Widget, fromElement: HTMLElement, toElement: HTMLElement, fromWidget: Widget, toWidget: Widget, backwards: boolean }) => void)|string>();
866
+ /**
867
+ * Fired when focus exits this Widget's ownership tree. This is different from a `blur` event.
868
+ * focus moving from within this Widget's ownership tree, even if there are floating widgets
869
+ * will not trigger this event. This is when focus exits this widget completely.
870
+ * @param {object} event Event object
871
+ * @param {Core.widget.Widget} event.source This Widget
872
+ * @param {HTMLElement} event.fromElement The element which lost focus.
873
+ * @param {HTMLElement} event.toElement The element which gained focus.
874
+ * @param {Core.widget.Widget} event.fromWidget The widget which lost focus.
875
+ * @param {Core.widget.Widget} event.toWidget The widget which gained focus.
876
+ * @param {boolean} event.backwards `true` if the `toElement` is before the `fromElement` in document order.
877
+ */
878
+ @Output() onFocusOut: any = new EventEmitter<((event: { source: Widget, fromElement: HTMLElement, toElement: HTMLElement, fromWidget: Widget, toWidget: Widget, backwards: boolean }) => void)|string>();
879
+ /**
880
+ * Triggered after a widget was hidden
881
+ * @param {object} event Event object
882
+ * @param {Core.widget.Widget} event.source The widget
883
+ */
884
+ @Output() onHide: any = new EventEmitter<((event: { source: Widget }) => void)|string>();
885
+ /**
886
+ * Triggered when a widget which had been in a non-visible state for any reason
887
+ * achieves visibility.
888
+ * ...
889
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/Core/widget/Splitter#event-paint)
890
+ * @param {object} event Event object
891
+ * @param {Core.widget.Widget} event.source The widget being painted.
892
+ * @param {boolean} event.firstPaint `true` if this is the first paint.
893
+ */
894
+ @Output() onPaint: any = new EventEmitter<((event: { source: Widget, firstPaint: boolean }) => void)|string>();
895
+ /**
896
+ * Fired when a Widget's read only state is toggled
897
+ * @param {object} event Event object
898
+ * @param {boolean} event.readOnly Read only or not
899
+ */
900
+ @Output() onReadOnly: any = new EventEmitter<((event: { readOnly: boolean }) => void)|string>();
901
+ /**
902
+ * This event is fired after a widget's elements have been synchronized due to a direct or indirect call
903
+ * 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.
904
+ */
905
+ @Output() onRecompose: any = new EventEmitter<(() => void)|string>();
906
+ /**
907
+ * 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`*.
908
+ * @param {object} event Event object
909
+ * @param {Core.widget.Widget} event.source This Widget
910
+ * @param {number} event.width The new width
911
+ * @param {number} event.height The new height
912
+ * @param {number} event.oldWidth The old width
913
+ * @param {number} event.oldHeight The old height
914
+ */
915
+ @Output() onResize: any = new EventEmitter<((event: { source: Widget, width: number, height: number, oldWidth: number, oldHeight: number }) => void)|string>();
916
+ /**
917
+ * Triggered after a widget is shown.
918
+ * @param {object} event Event object
919
+ * @param {Core.widget.Widget} event.source The widget
920
+ */
921
+ @Output() onShow: any = new EventEmitter<((event: { source: Widget }) => void)|string>();
922
+
923
+ /**
924
+ * Create and append the underlying widget
925
+ */
926
+ ngOnInit(): void {
927
+ const
928
+ me = this,
929
+ {
930
+ elementRef,
931
+ bryntumConfig
932
+ } = me,
933
+ {
934
+ instanceClass,
935
+ instanceName,
936
+ bryntumConfigs,
937
+ bryntumEvents
938
+ } = BryntumSplitterComponent;
939
+
940
+ bryntumConfigs.filter(prop => prop in this).forEach(prop => {
941
+ // @ts-ignore
942
+ WrapperHelper.applyPropValue(bryntumConfig, prop, this[prop]);
943
+ if (['features', 'config'].includes(prop)) {
944
+ WrapperHelper.devWarningConfigProp(instanceName, prop);
945
+ }
946
+ });
947
+ // @ts-ignore
948
+ bryntumEvents.filter(event => this[event] && this[event].observers.length > 0).forEach(event => {
949
+ const
950
+ uncapitalize = (str: string) => str.charAt(0).toLowerCase() + str.slice(1),
951
+ eventName = (str: string) => uncapitalize(str.slice(2));
952
+
953
+ // @ts-ignore
954
+ bryntumConfig.listeners[eventName(event)] = e => {
955
+ // @ts-ignore
956
+ me[event].emit(e);
957
+ // EventEmitter does not return values in the normal way, work around it by setting `returnValue` flag
958
+ // in Angular listeners
959
+ return e.returnValue;
960
+ };
961
+ });
962
+
963
+ // If component has no container specified in config then use adopt to Wrapper's element
964
+ const
965
+ containerParam = [
966
+ 'adopt',
967
+ 'appendTo',
968
+ 'insertAfter',
969
+ 'insertBefore'
970
+ // @ts-ignore
971
+ ].find(prop => bryntumConfig[prop]);
972
+ if (!containerParam) {
973
+ if (instanceName === 'Button' || elementRef.nativeElement.getRootNode() instanceof ShadowRoot) {
974
+ // Button should always be <a> or <button> inside owner element
975
+ bryntumConfig.appendTo = elementRef.nativeElement;
976
+ }
977
+ else {
978
+ bryntumConfig.adopt = elementRef.nativeElement;
979
+ }
980
+ }
981
+ else {
982
+ WrapperHelper.devWarningContainer(instanceName, containerParam);
983
+ }
984
+
985
+ // @ts-ignore
986
+ me.instance = instanceName === 'Widget' ? Widget.create(bryntumConfig) : new instanceClass(bryntumConfig);
987
+
988
+ }
989
+
990
+ /**
991
+ * Watch for changes
992
+ * @param changes
993
+ */
994
+ ngOnChanges(changes: SimpleChanges): void {
995
+ const
996
+ { instance } = this,
997
+ { instanceName } = BryntumSplitterComponent;
998
+ if (!instance) {
999
+ return;
1000
+ }
1001
+ // Iterate over all changes
1002
+ Object.entries(changes).forEach(([prop, change]) => {
1003
+ const
1004
+ newValue = (change as SimpleChange).currentValue,
1005
+ { instance } = this,
1006
+ { bryntumConfigsOnly, bryntumProps } = BryntumSplitterComponent;
1007
+ if (bryntumProps.includes(prop)) {
1008
+ WrapperHelper.applyPropValue(instance, prop, newValue, false);
1009
+ if (bryntumConfigsOnly.includes(prop)) {
1010
+ WrapperHelper.devWarningUpdateProp(instanceName, prop);
1011
+ }
1012
+ }
1013
+ });
1014
+ }
1015
+
1016
+ /**
1017
+ * Destroy the component
1018
+ */
1019
+ ngOnDestroy(): void {
1020
+ // @ts-ignore
1021
+ if (this.instance && this.instance.destroy) {
1022
+ this.instance.destroy();
1023
+ }
1024
+ }
1025
+ }