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