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