@bryntum/taskboard-angular-thin 7.1.1 → 7.1.3

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