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