@bryntum/grid-angular 7.1.1 → 7.1.3

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