@bryntum/grid-react-thin 7.1.1

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 (52) hide show
  1. package/README.md +52 -0
  2. package/lib/BryntumAIFilterField.d.ts +232 -0
  3. package/lib/BryntumAIFilterField.js +168 -0
  4. package/lib/BryntumAIFilterField.js.map +1 -0
  5. package/lib/BryntumChecklistFilterCombo.d.ts +269 -0
  6. package/lib/BryntumChecklistFilterCombo.js +205 -0
  7. package/lib/BryntumChecklistFilterCombo.js.map +1 -0
  8. package/lib/BryntumGrid.d.ts +845 -0
  9. package/lib/BryntumGrid.js +335 -0
  10. package/lib/BryntumGrid.js.map +1 -0
  11. package/lib/BryntumGridBase.d.ts +843 -0
  12. package/lib/BryntumGridBase.js +333 -0
  13. package/lib/BryntumGridBase.js.map +1 -0
  14. package/lib/BryntumGridChartDesigner.d.ts +163 -0
  15. package/lib/BryntumGridChartDesigner.js +127 -0
  16. package/lib/BryntumGridChartDesigner.js.map +1 -0
  17. package/lib/BryntumGridFieldFilterPicker.d.ts +204 -0
  18. package/lib/BryntumGridFieldFilterPicker.js +162 -0
  19. package/lib/BryntumGridFieldFilterPicker.js.map +1 -0
  20. package/lib/BryntumGridFieldFilterPickerGroup.d.ts +207 -0
  21. package/lib/BryntumGridFieldFilterPickerGroup.js +163 -0
  22. package/lib/BryntumGridFieldFilterPickerGroup.js.map +1 -0
  23. package/lib/BryntumGroupBar.d.ts +209 -0
  24. package/lib/BryntumGroupBar.js +152 -0
  25. package/lib/BryntumGroupBar.js.map +1 -0
  26. package/lib/BryntumTreeCombo.d.ts +267 -0
  27. package/lib/BryntumTreeCombo.js +202 -0
  28. package/lib/BryntumTreeCombo.js.map +1 -0
  29. package/lib/BryntumTreeGrid.d.ts +844 -0
  30. package/lib/BryntumTreeGrid.js +334 -0
  31. package/lib/BryntumTreeGrid.js.map +1 -0
  32. package/lib/WrapperHelper.d.ts +26 -0
  33. package/lib/WrapperHelper.js +569 -0
  34. package/lib/WrapperHelper.js.map +1 -0
  35. package/lib/index.d.ts +10 -0
  36. package/lib/index.js +11 -0
  37. package/lib/index.js.map +1 -0
  38. package/license.pdf +0 -0
  39. package/licenses.md +310 -0
  40. package/package.json +25 -0
  41. package/src/BryntumAIFilterField.tsx +999 -0
  42. package/src/BryntumChecklistFilterCombo.tsx +1242 -0
  43. package/src/BryntumGrid.tsx +2403 -0
  44. package/src/BryntumGridBase.tsx +2400 -0
  45. package/src/BryntumGridChartDesigner.tsx +729 -0
  46. package/src/BryntumGridFieldFilterPicker.tsx +957 -0
  47. package/src/BryntumGridFieldFilterPickerGroup.tsx +971 -0
  48. package/src/BryntumGroupBar.tsx +915 -0
  49. package/src/BryntumTreeCombo.tsx +1231 -0
  50. package/src/BryntumTreeGrid.tsx +2402 -0
  51. package/src/WrapperHelper.tsx +1125 -0
  52. package/src/index.ts +14 -0
@@ -0,0 +1,999 @@
1
+ /**
2
+ * React wrapper for Bryntum AIFilterField
3
+ */
4
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
5
+ import React, { RefObject } from 'react';
6
+ import { AlignSpec, Base, DomConfig, Field, FieldContainer, FieldContainerConfig, FieldTriggerConfig, KeyMapConfig, MaskConfig, Model, Rectangle, Scroller, TabConfig, TooltipConfig, VueConfig, Widget } from '@bryntum/core-thin';
7
+ import { AIFilterField, AIFilterFieldListeners, GridContainerItemConfig, Grid } from '@bryntum/grid-thin';
8
+
9
+ import { createWidget, shouldComponentUpdate, processWidgetContent } from './WrapperHelper.js';
10
+
11
+ export type BryntumAIFilterFieldProps = {
12
+ // Configs
13
+ /**
14
+ * Element (or element id) to adopt as this Widget's encapsulating element. The widget's
15
+ * content will be placed inside this element.
16
+ * ...
17
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/AIFilterField#config-adopt)
18
+ */
19
+ adopt? : HTMLElement|string
20
+ /**
21
+ * *Only valid if this Widget is [floating](https://bryntum.com/products/grid/docs/api/Core/widget/Widget#config-floating).*
22
+ * ...
23
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/AIFilterField#config-align)
24
+ */
25
+ align? : AlignSpec|string
26
+ /**
27
+ * 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
28
+ * flexbox layout. This config allows you to set this widget's
29
+ * [align-self](https://developer.mozilla.org/en-US/docs/Web/CSS/align-self) style.
30
+ */
31
+ alignSelf? : string
32
+ /**
33
+ * *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).*
34
+ * `true` to show a connector arrow pointing to the align target.
35
+ */
36
+ anchor? : boolean
37
+ /**
38
+ * Element (or the id of an element) to append this widget's element to. Can be configured, or set once at
39
+ * runtime. To access the element of a rendered widget, see [element](https://bryntum.com/products/grid/docs/api/Core/widget/Widget#property-element).
40
+ */
41
+ appendTo? : HTMLElement|string
42
+ /**
43
+ * A localizable string (May contain `'L{}'` tokens which resolve in the locale file) to inject
44
+ * into an element which will be linked using the `aria-describedby` attribute.
45
+ * ...
46
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/AIFilterField#config-ariaDescription)
47
+ */
48
+ ariaDescription? : string
49
+ /**
50
+ * A localizable string (May contain `'L{}'` tokens which resolve in the locale file) to inject as
51
+ * the `aria-label` attribute.
52
+ * ...
53
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/AIFilterField#config-ariaLabel)
54
+ */
55
+ ariaLabel? : string
56
+ /**
57
+ * Sets the native `autocomplete` property of the underlying input element. For more information, please refer to
58
+ * [MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete)
59
+ */
60
+ autoComplete? : string
61
+ /**
62
+ * Specify `true` to auto select field contents on focus
63
+ */
64
+ autoSelect? : boolean
65
+ /**
66
+ * Initial text to show in badge.
67
+ */
68
+ badge? : string
69
+ /**
70
+ * An object where property names with a truthy value indicate which events should bubble up the ownership
71
+ * hierarchy when triggered.
72
+ * ...
73
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/AIFilterField#config-bubbleEvents)
74
+ */
75
+ bubbleEvents? : object
76
+ /**
77
+ * Set to `false` to not call onXXX method names (e.g. `onShow`, `onClick`), as an easy way to listen for events.
78
+ * ...
79
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/AIFilterField#config-callOnFunctions)
80
+ */
81
+ callOnFunctions? : boolean
82
+ /**
83
+ * By default, if an event handler throws an exception, the error propagates up the stack and the
84
+ * application state is undefined. Code which follows the event handler will *not* be executed.
85
+ * ...
86
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/AIFilterField#config-catchEventHandlerExceptions)
87
+ */
88
+ catchEventHandlerExceptions? : boolean
89
+ /**
90
+ * *Only valid if this Widget is [floating](https://bryntum.com/products/grid/docs/api/Core/widget/Widget#config-floating).*
91
+ * Set to `true` to centre the Widget in browser viewport space.
92
+ */
93
+ centered? : boolean
94
+ /**
95
+ * 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
96
+ * 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
97
+ * configures the `clear` [trigger](https://bryntum.com/products/grid/docs/api/Core/widget/Field#property-triggers).
98
+ */
99
+ clearable? : boolean|FieldTriggerConfig
100
+ /**
101
+ * The Grid instance this field is filtering. Defaults to the closest Grid instance found when the field is
102
+ * added to the DOM. If you are not adding the field to the Grid's DOM, you must set this property.
103
+ */
104
+ client? : Grid
105
+ /**
106
+ * Custom CSS classes to add to element.
107
+ * May be specified as a space separated string, or as an object in which property names
108
+ * with truthy values are used as the class names:
109
+ * ...
110
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/AIFilterField#config-cls)
111
+ */
112
+ cls? : string|object
113
+ /**
114
+ * Applies the specified color to the widget, by setting the `--b-primary` CSS variable in the widgets
115
+ * `style` block.
116
+ * ...
117
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/AIFilterField#config-color)
118
+ */
119
+ color? : string
120
+ /**
121
+ * Programmatic control over which column to start in when used in a grid layout.
122
+ */
123
+ column? : number
124
+ config? : object
125
+ /**
126
+ * *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).*
127
+ * Element, Widget or Rectangle to which this Widget is constrained.
128
+ */
129
+ constrainTo? : HTMLElement|Widget|Rectangle
130
+ /**
131
+ * The configuration for additional items associated to this field. This is typically used to add contextual
132
+ * fields related to a [checkbox](https://bryntum.com/products/grid/docs/api/Core/widget/Checkbox) or [radio button](#Core/widget/Radio). See
133
+ * these classes for examples of nested fields.
134
+ * ...
135
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/AIFilterField#config-container)
136
+ */
137
+ container? : Record<string, GridContainerItemConfig>|GridContainerItemConfig[]|FieldContainerConfig|FieldContainer
138
+ /**
139
+ * The config controls how the value of nested items are handled when a parent container gets or sets its
140
+ * [values](https://bryntum.com/products/grid/docs/api/Core/widget/Container#property-values).
141
+ * ...
142
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/AIFilterField#config-containValues)
143
+ * @param {Core.widget.Field} field Field instance
144
+ * @returns {boolean}
145
+ */
146
+ containValues? : boolean|string|((field: Field) => boolean)
147
+ /**
148
+ * Custom CSS classes to add to the [contentElement](https://bryntum.com/products/grid/docs/api/Core/widget/Widget#property-contentElement).
149
+ * May be specified as a space separated string, or as an object in which property names
150
+ * with truthy values are used as the class names:
151
+ * ...
152
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/AIFilterField#config-contentElementCls)
153
+ */
154
+ contentElementCls? : string|object
155
+ /**
156
+ * When this Widget configuration is used in the Grid's RowExpander feature's `widget` config, provide the
157
+ * field on the expanded record to use for populating this widget's store (if applicable)
158
+ */
159
+ dataField? : string
160
+ /**
161
+ * Object to apply to elements dataset (each key will be used as a data-attribute on the element)
162
+ */
163
+ dataset? : Record<string, string>
164
+ /**
165
+ * The name of the property to set when a single value is to be applied to this Widget. Such as when used
166
+ * in a grid WidgetColumn, this is the property to which the column's `field` is applied.
167
+ */
168
+ defaultBindProperty? : string
169
+ /**
170
+ * Check for CSS compatibility issues when upgrading to v7. Performs the following checks:
171
+ * ...
172
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/AIFilterField#config-detectCSSCompatibilityIssues)
173
+ */
174
+ detectCSSCompatibilityIssues? : boolean
175
+ /**
176
+ * 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
177
+ * cannot be focused, uses a different rendition (usually greyish) and does not allow selecting its value.
178
+ * ...
179
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/AIFilterField#config-disabled)
180
+ */
181
+ disabled? : boolean|'inert'
182
+ /**
183
+ * Controls the placement of this widget when it is added to a [panel's ](https://bryntum.com/products/grid/docs/api/Core/widget/Panel)
184
+ * [strips collection](https://bryntum.com/products/grid/docs/api/Core/widget/Panel#config-strips). Typical values for this config are `'top'`,
185
+ * `'bottom'`, `'left'`, or `'right'`, which cause the widget to be placed on that side of the panel's
186
+ * body. Such widgets are called "edge strips".
187
+ * ...
188
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/AIFilterField#config-dock)
189
+ */
190
+ dock? : 'top'|'bottom'|'left'|'right'|'start'|'end'|'header'|'pre-header'|object
191
+ /**
192
+ * *Only valid if this Widget is [floating](https://bryntum.com/products/grid/docs/api/Core/widget/Widget#config-floating).*
193
+ * Set to `true` to be able to drag a widget freely on the page. Or set to an object with a ´handleSelector´
194
+ * property which controls when a drag should start.
195
+ * ...
196
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/AIFilterField#config-draggable)
197
+ */
198
+ draggable? : boolean|{
199
+ handleSelector?: string
200
+ }
201
+ /**
202
+ * Set to `false` to prevent user from editing the field. For TextFields it is basically the same as setting
203
+ * [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
204
+ * but not to type one in the field.
205
+ * ...
206
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/AIFilterField#config-editable)
207
+ */
208
+ editable? : boolean
209
+ /**
210
+ * An object specifying attributes to assign to the root element of this widget.
211
+ * Set `null` value to attribute to remove it.
212
+ * ...
213
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/AIFilterField#config-elementAttributes)
214
+ */
215
+ elementAttributes? : Record<string, string|null>
216
+ extraData? : any
217
+ /**
218
+ * 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
219
+ * flexbox layout. This config allows you to set this widget's
220
+ * [flex](https://developer.mozilla.org/en-US/docs/Web/CSS/flex) style.
221
+ * This may be configured as a single number or a `&lt;flex-grow&gt; &lt;flex-shrink&gt; &lt;flex-basis&gt;` format string.
222
+ * numeric-only values are interpreted as the `flex-grow` value.
223
+ */
224
+ flex? : number|string
225
+ /**
226
+ * Set to `true` to move the widget out of the document flow and position it
227
+ * absolutely in browser viewport space.
228
+ */
229
+ floating? : boolean
230
+ /**
231
+ * Widget's height, used to set element `style.height`. Either specify a valid height string or a number,
232
+ * which will get 'px' appended. We recommend using CSS as the primary way to control height, but in some
233
+ * cases this config is convenient.
234
+ */
235
+ height? : string|number
236
+ /**
237
+ * Configure with true to make widget initially hidden.
238
+ */
239
+ hidden? : boolean
240
+ /**
241
+ * *Only valid if this Widget is [floating](https://bryntum.com/products/grid/docs/api/Core/widget/Widget#config-floating).*
242
+ * ...
243
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/AIFilterField#config-hideAnimation)
244
+ */
245
+ hideAnimation? : boolean|object
246
+ /**
247
+ * Specify `true` to highlight field after external value changes
248
+ */
249
+ highlightExternalChange? : boolean
250
+ /**
251
+ * An optional string to display inside the input field as an overlay. This can be useful for displaying
252
+ * a field's units.
253
+ * ...
254
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/AIFilterField#config-hint)
255
+ * @param {object} data A data object
256
+ * @param {Core.widget.Field} data.source A reference to the field instance
257
+ * @param {any} data.value The current value of the field
258
+ * @returns {string}
259
+ */
260
+ hint? : string|((data: { source: Field, value: any }) => string)
261
+ /**
262
+ * 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.
263
+ * Since this can allow malicious content to be executed, be sure not to include user-entered data or to
264
+ * encode such data (see [encodeHtml](https://bryntum.com/products/grid/docs/api/Core/helper/StringHelper#function-encodeHtml-static)).
265
+ * ...
266
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/AIFilterField#config-hintHtml)
267
+ * @param {object} data A data object
268
+ * @param {Core.widget.Field} data.source A reference to the field instance
269
+ * @param {any} data.value The current value of the field
270
+ * @returns {string}
271
+ */
272
+ hintHtml? : string|((data: { source: Field, value: any }) => string)
273
+ /**
274
+ * Widget id, if not specified one will be generated. Also used for lookups through Widget.getById
275
+ */
276
+ id? : string
277
+ /**
278
+ * Determines if the widgets read-only state should be controlled by its parent.
279
+ * ...
280
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/AIFilterField#config-ignoreParentReadOnly)
281
+ */
282
+ ignoreParentReadOnly? : boolean
283
+ /**
284
+ * Set this config to `true` to always display items horizontally along with this field. This assigns an
285
+ * [hbox](https://bryntum.com/products/grid/docs/api/Core/widget/layout/Box) as the [layout](#Core/widget/Container#config-layout) to the
286
+ * [container](https://bryntum.com/products/grid/docs/api/Core/widget/Field#config-container).
287
+ * ...
288
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/AIFilterField#config-inline)
289
+ */
290
+ inline? : boolean
291
+ /**
292
+ * Text alignment for the input field.
293
+ */
294
+ inputAlign? : string
295
+ /**
296
+ * Sets custom attributes of the underlying input element. For more information, please refer to
297
+ * [MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes)
298
+ */
299
+ inputAttributes? : Record<string, string>
300
+ /**
301
+ * If you need to use something else than a default `input` element, as the input element, provide the tag
302
+ * name here. Please note that this is used for advanced usage only, for example when using WebComponents
303
+ * (custom elements), and that the configured element must fulfil the same contract as a regular input
304
+ * element.
305
+ */
306
+ inputTag? : string
307
+ /**
308
+ * Sets the `type` attribute of the underlying input element (password, hidden, date, color, etc.).
309
+ */
310
+ inputType? : string
311
+ /**
312
+ * The width to apply to the `.b-field-inner` element, which encompasses the `input` element and any
313
+ * triggers. If a number is specified, `px` will be used.
314
+ */
315
+ inputWidth? : string|number
316
+ /**
317
+ * 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.
318
+ */
319
+ insertBefore? : HTMLElement|string
320
+ /**
321
+ * 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.
322
+ */
323
+ insertFirst? : HTMLElement|string
324
+ /**
325
+ * An object whose keys are the [key](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/key) name
326
+ * and optional modifier prefixes: `'Ctrl+'`, `'Alt+'`, `'Meta+'`, and `'Shift+'` (case-insensitive). The values
327
+ * are the name of the instance method to call when the keystroke is received.
328
+ * ...
329
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/AIFilterField#config-keyMap)
330
+ */
331
+ keyMap? : Record<string, KeyMapConfig>
332
+ /**
333
+ * The delay in milliseconds to wait after the last keystroke before triggering a change event.
334
+ * Set to 0 to not trigger change events from keystrokes (listen for input event instead to have
335
+ * immediate feedback, change will still be triggered on blur).
336
+ * ...
337
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/AIFilterField#config-keyStrokeChangeDelay)
338
+ */
339
+ keyStrokeChangeDelay? : number
340
+ /**
341
+ * Label, prepended to field
342
+ */
343
+ label? : string
344
+ /**
345
+ * 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)
346
+ */
347
+ labelCls? : string|object
348
+ /**
349
+ * Label position, either 'before' the field or 'above' the field
350
+ * ...
351
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/AIFilterField#config-labelPosition)
352
+ */
353
+ labelPosition? : 'before'|'above'|null
354
+ /**
355
+ * The labels to add either before or after the input field.
356
+ * Each label may have the following properties:
357
+ * ...
358
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/AIFilterField#config-labels)
359
+ */
360
+ labels? : object[]
361
+ /**
362
+ * The width to apply to the `&lt;label&gt;` element. If a number is specified, `px` will be used.
363
+ */
364
+ labelWidth? : string|number
365
+ /**
366
+ * The listener set for this object.
367
+ * ...
368
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/AIFilterField#config-listeners)
369
+ */
370
+ listeners? : AIFilterFieldListeners
371
+ /**
372
+ * A class translations of which are used for translating this entity.
373
+ * This is often used when translations of an item are defined on its container class.
374
+ * For example:
375
+ * ...
376
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/AIFilterField#config-localeClass)
377
+ */
378
+ localeClass? : typeof Base
379
+ /**
380
+ * Set to `false` to disable localization of this object.
381
+ */
382
+ localizable? : boolean
383
+ /**
384
+ * List of properties which values should be translated automatically upon a locale applying.
385
+ * In case there is a need to localize not typical value (not a String value or a field with re-defined setter/getter),
386
+ * you could use 'localeKey' meta configuration.
387
+ * Example:
388
+ * ...
389
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/AIFilterField#config-localizableProperties)
390
+ */
391
+ localizableProperties? : string[]
392
+ /**
393
+ * Widget's margin. This may be configured as a single number or a `TRBL` format string.
394
+ * numeric-only values are interpreted as pixels.
395
+ */
396
+ margin? : number|string
397
+ /**
398
+ * This config object contains the defaults for the [Mask](https://bryntum.com/products/grid/docs/api/Core/widget/Mask) created for the
399
+ * [masked](https://bryntum.com/products/grid/docs/api/Core/widget/Widget#config-masked) config. Any properties specified in the `masked` config will override these
400
+ * values.
401
+ */
402
+ maskDefaults? : MaskConfig
403
+ /**
404
+ * Set to `true` to apply the default mask to the widget. Alternatively, this can be the mask message or a
405
+ * [Mask](https://bryntum.com/products/grid/docs/api/Core/widget/Mask) config object.
406
+ */
407
+ masked? : boolean|string|MaskConfig
408
+ /**
409
+ * The element's maxHeight. Can be either a String or a Number (which will have 'px' appended). Note that
410
+ * like [height](https://bryntum.com/products/grid/docs/api/Core/widget/Widget#config-height), *reading* the value will return the numeric value in pixels.
411
+ */
412
+ maxHeight? : string|number
413
+ /**
414
+ * *Only valid if this Widget is [floating](https://bryntum.com/products/grid/docs/api/Core/widget/Widget#config-floating).*
415
+ * ...
416
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/AIFilterField#config-maximizeOnMobile)
417
+ */
418
+ maximizeOnMobile? : number|string
419
+ /**
420
+ * The max number of characters for the input field
421
+ */
422
+ maxLength? : number
423
+ /**
424
+ * The elements maxWidth. Can be either a String or a Number (which will have 'px' appended). Note that
425
+ * like [width](https://bryntum.com/products/grid/docs/api/Core/widget/Widget#config-width), *reading* the value will return the numeric value in pixels.
426
+ */
427
+ maxWidth? : string|number
428
+ /**
429
+ * The element's minHeight. Can be either a String or a Number (which will have 'px' appended). Note that
430
+ * like [height](https://bryntum.com/products/grid/docs/api/Core/widget/Widget#config-height), *reading* the value will return the numeric value in pixels.
431
+ */
432
+ minHeight? : string|number
433
+ /**
434
+ * The min number of characters for the input field
435
+ */
436
+ minLength? : number
437
+ /**
438
+ * The elements minWidth. Can be either a String or a Number (which will have 'px' appended). Note that
439
+ * like [width](https://bryntum.com/products/grid/docs/api/Core/widget/Widget#config-width), *reading* the value will return the numeric value in pixels.
440
+ */
441
+ minWidth? : string|number
442
+ /**
443
+ * When this is configured as `true` a [ResizeObserver](https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserver)
444
+ * is used to monitor this element for size changes caused by either style manipulation, or by CSS
445
+ * layout.
446
+ * ...
447
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/AIFilterField#config-monitorResize)
448
+ */
449
+ monitorResize? : boolean|{
450
+ immediate?: boolean
451
+ }
452
+ /**
453
+ * Name of the field which is used as a key to get/set values from/to the field.
454
+ * Used prior to [ref](https://bryntum.com/products/grid/docs/api/Core/widget/Widget#config-ref) and [id](#Core/widget/Widget#config-id) in
455
+ * [Container.values](https://bryntum.com/products/grid/docs/api/Core/widget/Container#property-values).
456
+ * ...
457
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/AIFilterField#config-name)
458
+ */
459
+ name? : string
460
+ /**
461
+ * The owning Widget of this Widget. If this Widget is directly contained (that is, it is one of the
462
+ * [items](https://bryntum.com/products/grid/docs/api/Core/widget/Container#property-items) of a Container), this config will be ignored. In this case
463
+ * the owner is <strong>always</strong> the encapsulating Container.
464
+ * ...
465
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/AIFilterField#config-owner)
466
+ */
467
+ owner? : Widget|any
468
+ /**
469
+ * Text to display in empty field.
470
+ */
471
+ placeholder? : string
472
+ /**
473
+ * 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
474
+ * not participate in the standard layout of that widget, and must be positioned relatively to that
475
+ * widget's [contentElement](https://bryntum.com/products/grid/docs/api/Core/widget/Widget#property-contentElement).
476
+ * ...
477
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/AIFilterField#config-positioned)
478
+ */
479
+ positioned? : boolean
480
+ /**
481
+ * Prevent tooltip from being displayed on touch devices. Useful for example for buttons that display a
482
+ * menu on click etc, since the tooltip would be displayed at the same time.
483
+ */
484
+ preventTooltipOnTouch? : boolean
485
+ /**
486
+ * The text to show in the load mask when the AI is processing the filter request
487
+ */
488
+ progressText? : string
489
+ /**
490
+ * Makes the field unmodifiable by user action. The input area is not editable, and triggers
491
+ * are unresponsive.
492
+ * ...
493
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/AIFilterField#config-readOnly)
494
+ */
495
+ readOnly? : boolean
496
+ relayStoreEvents? : boolean
497
+ /**
498
+ * Predefined style to use for the field. Possible values are:
499
+ * ...
500
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/AIFilterField#config-rendition)
501
+ */
502
+ rendition? : 'outlined'|'filled'|string
503
+ /**
504
+ * Configure as `true` to indicate that a `null` field value is to be marked as invalid. This will
505
+ * optionally append a * to the field label if [showRequiredIndicator](https://bryntum.com/products/grid/docs/api/Core/widget/Field#property-showRequiredIndicator) is set.
506
+ */
507
+ required? : boolean
508
+ /**
509
+ * 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
510
+ * the `ESCAPE` key after editing the field will revert the field to the value it had when
511
+ * 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)
512
+ * behaviour will be activated.
513
+ */
514
+ revertOnEscape? : boolean
515
+ /**
516
+ * Configure as `true` to have the component display a translucent ripple when its
517
+ * [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
518
+ * current theme supports ripples</em>. Out of the box, only the Material theme supports ripples.
519
+ * ...
520
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/AIFilterField#config-ripple)
521
+ */
522
+ ripple? : boolean|{
523
+ delegate?: string
524
+ color?: string
525
+ radius?: number
526
+ clip?: string
527
+ }
528
+ /**
529
+ * 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`
530
+ */
531
+ rootElement? : ShadowRoot|HTMLElement
532
+ /**
533
+ * This may be configured as `true` to make the widget's element use the `direction:rtl` style.
534
+ * ...
535
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/AIFilterField#config-rtl)
536
+ */
537
+ rtl? : boolean
538
+ /**
539
+ * Defines what to do if document is scrolled while Widget is visible (only relevant when floating is set to `true`).
540
+ * Valid values: ´null´: do nothing, ´hide´: hide the widget or ´realign´: realign to the target if possible.
541
+ */
542
+ scrollAction? : 'hide'|'realign'|null
543
+ /**
544
+ * *Only valid if this Widget is [floating](https://bryntum.com/products/grid/docs/api/Core/widget/Widget#config-floating).*
545
+ * ...
546
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/AIFilterField#config-showAnimation)
547
+ */
548
+ showAnimation? : boolean|object
549
+ /**
550
+ * `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).
551
+ */
552
+ showRequiredIndicator? : string
553
+ /**
554
+ * 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)
555
+ */
556
+ showTooltipWhenDisabled? : boolean
557
+ /**
558
+ * Set to `true`, completely bypasses validation logic (could be userful if your field is not `editable`
559
+ * to the user).
560
+ */
561
+ skipValidation? : boolean
562
+ /**
563
+ * Programmatic control over how many columns to span when used in a grid layout.
564
+ */
565
+ span? : number
566
+ /**
567
+ * Sets the native `spellcheck` property of the underlying input element. For more information, please refer to
568
+ * [MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/spellcheck)
569
+ */
570
+ spellCheck? : boolean
571
+ /**
572
+ * A configuration for the [tab](https://bryntum.com/products/grid/docs/api/Core/widget/Tab) created for this widget when it is placed in a
573
+ * [TabPanel](https://bryntum.com/products/grid/docs/api/Core/widget/TabPanel). For example, this config can be used to control the icon of the `tab` for
574
+ * this widget:
575
+ * ...
576
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/AIFilterField#config-tab)
577
+ */
578
+ tab? : boolean|TabConfig
579
+ /**
580
+ * The tab index of the input field or fields, or `null` for natural tab order (recommended). Setting to `0`
581
+ * is equivalent to natural tab order, but is unnecessary for fields since they are naturally tabbable
582
+ * (i.e., accessible via the TAB key). Setting to `-1` disables tabbability but allows for focus to be set
583
+ * to the element programmatically.
584
+ * ...
585
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/AIFilterField#config-tabIndex)
586
+ */
587
+ tabIndex? : number
588
+ /**
589
+ * Text alignment: 'left', 'center' or 'right'. Also accepts direction neutral 'start' and 'end'.
590
+ * ...
591
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/AIFilterField#config-textAlign)
592
+ */
593
+ textAlign? : 'left'|'center'|'right'|'start'|'end'
594
+ /**
595
+ * A title to display for the widget. Only in effect when inside a container that uses it (such as TabPanel)
596
+ */
597
+ title? : string
598
+ /**
599
+ * Tooltip for the widget, either as a string or as a Tooltip config object.
600
+ * ...
601
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/AIFilterField#config-tooltip)
602
+ */
603
+ tooltip? : string|TooltipConfig|null
604
+ /**
605
+ * The triggers to add either before or after the input field. Each property name is the reference by which
606
+ * an instantiated Trigger Widget may be retrieved from the live `triggers` property.
607
+ * ...
608
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/AIFilterField#config-triggers)
609
+ */
610
+ triggers? : Record<string, FieldTriggerConfig>|Record<string, Widget>
611
+ type? : 'aifilterfield'
612
+ /**
613
+ * Custom CSS class name suffixes to apply to the elements rendered by this widget. This may be specified
614
+ * as a space separated string, an array of strings, or as an object in which property names with truthy
615
+ * values are used as the class names.
616
+ * ...
617
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/AIFilterField#config-ui)
618
+ */
619
+ ui? : string|object
620
+ /**
621
+ * Set to `false` to not highlight a field as invalid while typing, to instead show it on ENTER key press
622
+ * or similar.
623
+ */
624
+ validateOnInput? : boolean
625
+ /**
626
+ * Default value
627
+ */
628
+ value? : string
629
+ /**
630
+ * A widgets weight determines its position among siblings when added to a [Container](https://bryntum.com/products/grid/docs/api/Core/widget/Container).
631
+ * Higher weights go further down.
632
+ */
633
+ weight? : number
634
+ /**
635
+ * Widget's width, used to set element `style.width`. Either specify a valid width string or a number, which
636
+ * will get 'px' appended. We recommend using CSS as the primary way to control width, but in some cases
637
+ * this config is convenient.
638
+ */
639
+ width? : string|number
640
+ /**
641
+ * The x position for the widget.
642
+ * ...
643
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/AIFilterField#config-x)
644
+ */
645
+ x? : number
646
+ /**
647
+ * The y position for the widget.
648
+ * ...
649
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/AIFilterField#config-y)
650
+ */
651
+ y? : number
652
+
653
+ // Events
654
+ /**
655
+ * User performed default action (typed into this field).
656
+ * @param {object} event Event object
657
+ * @param {Core.widget.Field,any} event.source This Field
658
+ * @param {string,number,boolean,any} event.value This field's value
659
+ * @param {string,number,boolean,any} event.oldValue This field's previous value
660
+ * @param {boolean} event.valid True if this field is in a valid state
661
+ * @param {Event} event.event The triggering DOM event if any
662
+ * @param {Core.data.Model} event.record Selected record. Available for fields with records selection functionality
663
+ * @param {Core.data.Model[]} event.records Selected records as an array. Available for fields with records selection functionality
664
+ * @param {boolean} event.userAction Triggered by user taking an action (`true`) or by setting a value (`false`)
665
+ * @param {boolean} event.checked
666
+ */
667
+ onAction? : ((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
668
+ /**
669
+ * Fires before an object is destroyed.
670
+ * @param {object} event Event object
671
+ * @param {Core.Base} event.source The Object that is being destroyed.
672
+ */
673
+ onBeforeDestroy? : ((event: { source: Base }) => void)|string
674
+ /**
675
+ * Triggered before a widget is hidden. Return `false` to prevent the action.
676
+ * @param {object} event Event object
677
+ * @param {Core.widget.Widget} event.source The widget being hidden.
678
+ */
679
+ onBeforeHide? : ((event: { source: Widget }) => Promise<boolean>|boolean|void)|string
680
+ /**
681
+ * Triggered before a widget is shown. Return `false` to prevent the action.
682
+ * @param {object} event Event object
683
+ * @param {Core.widget.Widget,any} event.source The widget being shown
684
+ */
685
+ onBeforeShow? : ((event: { source: Widget|any }) => Promise<boolean>|boolean|void)|string
686
+ /**
687
+ * Fires when any other event is fired from the object.
688
+ * ...
689
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/AIFilterField#event-catchAll)
690
+ * @param {object} event Event object
691
+ * @param {{[key: string]: any, type: string}} event.event The Object that contains event details
692
+ * @param {string} event.event.type The type of the event which is caught by the listener
693
+ */
694
+ onCatchAll? : ((event: {[key: string]: any, type: string}) => void)|string
695
+ /**
696
+ * Fired when this field's value changes.
697
+ * @param {object} event Event object
698
+ * @param {Core.widget.Field,any} event.source This Field
699
+ * @param {string,number,boolean,any} event.value This field's value
700
+ * @param {string,number,boolean,any} event.oldValue This field's previous value
701
+ * @param {boolean} event.valid True if this field is in a valid state
702
+ * @param {Event} event.event The triggering DOM event if any
703
+ * @param {boolean} event.userAction Triggered by user taking an action (`true`) or by setting a value (`false`)
704
+ * @param {boolean} event.checked
705
+ */
706
+ onChange? : ((event: { source: Field|any, value: string|number|boolean|any, oldValue: string|number|boolean|any, valid: boolean, event: Event, userAction: boolean, checked: boolean }) => void)|string
707
+ /**
708
+ * Fired when this field is [cleared](https://bryntum.com/products/grid/docs/api/Core/widget/Field#function-clear).
709
+ * ...
710
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/AIFilterField#event-clear)
711
+ * @param {object} event Event object
712
+ * @param {Core.widget.Field,any} event.source This Field
713
+ */
714
+ onClear? : ((event: { source: Field|any }) => void)|string
715
+ /**
716
+ * Fires when an object is destroyed.
717
+ * @param {object} event Event object
718
+ * @param {Core.Base} event.source The Object that is being destroyed.
719
+ */
720
+ onDestroy? : ((event: { source: Base }) => void)|string
721
+ /**
722
+ * Triggered when a widget's [element](https://bryntum.com/products/grid/docs/api/Core/widget/Widget#property-element) is available.
723
+ * @param {object} event Event object
724
+ * @param {HTMLElement} event.element The Widget's element.
725
+ */
726
+ onElementCreated? : ((event: { element: HTMLElement }) => void)|string
727
+ /**
728
+ * Fired when focus enters this Widget.
729
+ * @param {object} event Event object
730
+ * @param {Core.widget.Widget} event.source This Widget
731
+ * @param {HTMLElement} event.fromElement The element which lost focus.
732
+ * @param {HTMLElement} event.toElement The element which gained focus.
733
+ * @param {Core.widget.Widget} event.fromWidget The widget which lost focus.
734
+ * @param {Core.widget.Widget} event.toWidget The widget which gained focus.
735
+ * @param {boolean} event.backwards `true` if the `toElement` is before the `fromElement` in document order.
736
+ */
737
+ onFocusIn? : ((event: { source: Widget, fromElement: HTMLElement, toElement: HTMLElement, fromWidget: Widget, toWidget: Widget, backwards: boolean }) => void)|string
738
+ /**
739
+ * Fired when focus exits this Widget's ownership tree. This is different from a `blur` event.
740
+ * focus moving from within this Widget's ownership tree, even if there are floating widgets
741
+ * will not trigger this event. This is when focus exits this widget completely.
742
+ * @param {object} event Event object
743
+ * @param {Core.widget.Widget} event.source This Widget
744
+ * @param {HTMLElement} event.fromElement The element which lost focus.
745
+ * @param {HTMLElement} event.toElement The element which gained focus.
746
+ * @param {Core.widget.Widget} event.fromWidget The widget which lost focus.
747
+ * @param {Core.widget.Widget} event.toWidget The widget which gained focus.
748
+ * @param {boolean} event.backwards `true` if the `toElement` is before the `fromElement` in document order.
749
+ */
750
+ onFocusOut? : ((event: { source: Widget, fromElement: HTMLElement, toElement: HTMLElement, fromWidget: Widget, toWidget: Widget, backwards: boolean }) => void)|string
751
+ /**
752
+ * Triggered after a widget was hidden
753
+ * @param {object} event Event object
754
+ * @param {Core.widget.Widget} event.source The widget
755
+ */
756
+ onHide? : ((event: { source: Widget }) => void)|string
757
+ /**
758
+ * Fired when the user types into this field.
759
+ * @param {object} event Event object
760
+ * @param {Core.widget.Field,any} event.source This field
761
+ * @param {string,number,boolean,any} event.value This field's value
762
+ * @param {Event} event.event The triggering DOM event
763
+ */
764
+ onInput? : ((event: { source: Field|any, value: string|number|boolean|any, event: Event }) => void)|string
765
+ /**
766
+ * Triggered when a widget which had been in a non-visible state for any reason
767
+ * achieves visibility.
768
+ * ...
769
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/AIFilterField#event-paint)
770
+ * @param {object} event Event object
771
+ * @param {Core.widget.Widget} event.source The widget being painted.
772
+ * @param {boolean} event.firstPaint `true` if this is the first paint.
773
+ */
774
+ onPaint? : ((event: { source: Widget, firstPaint: boolean }) => void)|string
775
+ /**
776
+ * Fired when a Widget's read only state is toggled
777
+ * @param {object} event Event object
778
+ * @param {boolean} event.readOnly Read only or not
779
+ */
780
+ onReadOnly? : ((event: { readOnly: boolean }) => void)|string
781
+ /**
782
+ * This event is fired after a widget's elements have been synchronized due to a direct or indirect call
783
+ * 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.
784
+ */
785
+ onRecompose? : (() => void)|string
786
+ /**
787
+ * 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`*.
788
+ * @param {object} event Event object
789
+ * @param {Core.widget.Widget} event.source This Widget
790
+ * @param {number} event.width The new width
791
+ * @param {number} event.height The new height
792
+ * @param {number} event.oldWidth The old width
793
+ * @param {number} event.oldHeight The old height
794
+ */
795
+ onResize? : ((event: { source: Widget, width: number, height: number, oldWidth: number, oldHeight: number }) => void)|string
796
+ /**
797
+ * Triggered after a widget is shown.
798
+ * @param {object} event Event object
799
+ * @param {Core.widget.Widget} event.source The widget
800
+ */
801
+ onShow? : ((event: { source: Widget }) => void)|string
802
+ /**
803
+ * User clicked one of this field's [triggers](https://bryntum.com/products/grid/docs/api/Core/widget/Field#property-triggers)
804
+ * @param {object} event Event object
805
+ * @param {Core.widget.Field,any} event.source This field
806
+ * @param {Core.widget.Widget} event.trigger The trigger activated by click or touch tap.
807
+ */
808
+ onTrigger? : ((event: { source: Field|any, trigger: Widget }) => void)|string
809
+
810
+ }
811
+
812
+ export class BryntumAIFilterField extends React.Component<BryntumAIFilterFieldProps> {
813
+
814
+ static instanceClass = AIFilterField;
815
+
816
+ static instanceName = 'AIFilterField';
817
+
818
+ processWidgetContent = processWidgetContent;
819
+
820
+ static configNames = [
821
+ 'adopt',
822
+ 'align',
823
+ 'anchor',
824
+ 'ariaDescription',
825
+ 'ariaLabel',
826
+ 'autoComplete',
827
+ 'autoSelect',
828
+ 'bubbleEvents',
829
+ 'centered',
830
+ 'clearable',
831
+ 'client',
832
+ 'color',
833
+ 'config',
834
+ 'constrainTo',
835
+ 'container',
836
+ 'containValues',
837
+ 'contentElementCls',
838
+ 'dataField',
839
+ 'defaultBindProperty',
840
+ 'detectCSSCompatibilityIssues',
841
+ 'dock',
842
+ 'draggable',
843
+ 'elementAttributes',
844
+ 'floating',
845
+ 'hideAnimation',
846
+ 'highlightExternalChange',
847
+ 'hint',
848
+ 'hintHtml',
849
+ 'ignoreParentReadOnly',
850
+ 'inline',
851
+ 'inputAlign',
852
+ 'inputAttributes',
853
+ 'inputTag',
854
+ 'inputType',
855
+ 'inputWidth',
856
+ 'keyStrokeChangeDelay',
857
+ 'labelCls',
858
+ 'labelPosition',
859
+ 'labels',
860
+ 'labelWidth',
861
+ 'listeners',
862
+ 'localeClass',
863
+ 'localizable',
864
+ 'localizableProperties',
865
+ 'maskDefaults',
866
+ 'masked',
867
+ 'maxLength',
868
+ 'minLength',
869
+ 'monitorResize',
870
+ 'name',
871
+ 'owner',
872
+ 'positioned',
873
+ 'preventTooltipOnTouch',
874
+ 'progressText',
875
+ 'relayStoreEvents',
876
+ 'revertOnEscape',
877
+ 'ripple',
878
+ 'rootElement',
879
+ 'scrollAction',
880
+ 'showAnimation',
881
+ 'showTooltipWhenDisabled',
882
+ 'skipValidation',
883
+ 'spellCheck',
884
+ 'tab',
885
+ 'tabIndex',
886
+ 'textAlign',
887
+ 'title',
888
+ 'type',
889
+ 'ui',
890
+ 'validateOnInput',
891
+ 'weight'
892
+ ];
893
+
894
+ static propertyConfigNames = [
895
+ 'alignSelf',
896
+ 'appendTo',
897
+ 'badge',
898
+ 'callOnFunctions',
899
+ 'catchEventHandlerExceptions',
900
+ 'cls',
901
+ 'column',
902
+ 'dataset',
903
+ 'disabled',
904
+ 'editable',
905
+ 'extraData',
906
+ 'flex',
907
+ 'height',
908
+ 'hidden',
909
+ 'id',
910
+ 'insertBefore',
911
+ 'insertFirst',
912
+ 'keyMap',
913
+ 'label',
914
+ 'margin',
915
+ 'maxHeight',
916
+ 'maximizeOnMobile',
917
+ 'maxWidth',
918
+ 'minHeight',
919
+ 'minWidth',
920
+ 'onAction',
921
+ 'onBeforeDestroy',
922
+ 'onBeforeHide',
923
+ 'onBeforeShow',
924
+ 'onCatchAll',
925
+ 'onChange',
926
+ 'onClear',
927
+ 'onDestroy',
928
+ 'onElementCreated',
929
+ 'onFocusIn',
930
+ 'onFocusOut',
931
+ 'onHide',
932
+ 'onInput',
933
+ 'onPaint',
934
+ 'onReadOnly',
935
+ 'onRecompose',
936
+ 'onResize',
937
+ 'onShow',
938
+ 'onTrigger',
939
+ 'placeholder',
940
+ 'readOnly',
941
+ 'rendition',
942
+ 'required',
943
+ 'rtl',
944
+ 'showRequiredIndicator',
945
+ 'span',
946
+ 'tooltip',
947
+ 'triggers',
948
+ 'value',
949
+ 'width',
950
+ 'x',
951
+ 'y'
952
+ ];
953
+
954
+ static propertyNames = [
955
+ 'anchorSize',
956
+ 'content',
957
+ 'focusVisible',
958
+ 'formula',
959
+ 'html',
960
+ 'input',
961
+ 'parent',
962
+ 'scrollable'
963
+ ];
964
+
965
+ // Component instance
966
+ instance!: AIFilterField;
967
+
968
+ // Component element
969
+ element! : HTMLElement;
970
+
971
+ componentDidMount(): void {
972
+ this.instance = createWidget(this);
973
+ }
974
+
975
+ componentWillUnmount(): void {
976
+ // @ts-ignore
977
+ this.instance?.destroy?.();
978
+ }
979
+
980
+ /**
981
+ * Component about to be updated, from changing a prop using state.
982
+ * React to it depending on what changed and prevent react from re-rendering our component.
983
+ * @param nextProps
984
+ * @param nextState
985
+ * @returns {boolean}
986
+ */
987
+ shouldComponentUpdate(nextProps: Readonly<BryntumAIFilterFieldProps>, nextState: Readonly<{}>): boolean {
988
+ return shouldComponentUpdate(this, nextProps, nextState);
989
+ }
990
+
991
+ render(): React.ReactNode {
992
+
993
+ const className = `b-react-a-i-filter-field-container`;
994
+ return (
995
+ <div className={className} ref={(element) => (this.element = element!)}></div>
996
+ );
997
+
998
+ }
999
+ }