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