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