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