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