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