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