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