@bryntum/taskboard-angular-thin 7.1.1 → 7.1.3

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