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