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