@bryntum/taskboard-angular 7.1.1 → 7.1.2

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