@bryntum/grid-angular 7.1.1 → 7.1.2

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