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