@bryntum/taskboard-angular-thin 7.1.1 → 7.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (26) hide show
  1. package/README.md +295 -15
  2. package/package.json +1 -1
  3. package/src/lib/bryntum-column-combo.component.ts +1646 -0
  4. package/src/lib/bryntum-column-filter-field.component.ts +1361 -0
  5. package/src/lib/bryntum-column-picker-button.component.ts +1201 -0
  6. package/src/lib/bryntum-column-scroll-button.component.ts +1201 -0
  7. package/src/lib/bryntum-project-combo.component.ts +1649 -0
  8. package/src/lib/bryntum-resources-combo.component.ts +1645 -0
  9. package/src/lib/bryntum-swimlane-combo.component.ts +1645 -0
  10. package/src/lib/bryntum-swimlane-filter-field.component.ts +1378 -0
  11. package/src/lib/bryntum-swimlane-picker-button.component.ts +1201 -0
  12. package/src/lib/bryntum-swimlane-scroll-button.component.ts +1201 -0
  13. package/src/lib/bryntum-tag-combo.component.ts +1652 -0
  14. package/src/lib/bryntum-task-board-base.component.ts +2389 -0
  15. package/src/lib/bryntum-task-board-field-filter-picker-group.component.ts +1317 -0
  16. package/src/lib/bryntum-task-board-field-filter-picker.component.ts +1255 -0
  17. package/src/lib/bryntum-task-board-project-model.component.ts +1027 -0
  18. package/src/lib/bryntum-task-board.component.ts +2393 -0
  19. package/src/lib/bryntum-task-color-combo.component.ts +1335 -0
  20. package/src/lib/bryntum-task-filter-field.component.ts +1378 -0
  21. package/src/lib/bryntum-todo-list-field.component.ts +1319 -0
  22. package/src/lib/bryntum-undo-redo.component.ts +1180 -0
  23. package/src/lib/bryntum-zoom-slider.component.ts +1123 -0
  24. package/src/lib/taskboard.module.ts +79 -0
  25. package/src/lib/wrapper.helper.ts +89 -0
  26. package/src/public-api.ts +26 -0
@@ -0,0 +1,1335 @@
1
+ /* eslint-disable @typescript-eslint/no-unused-vars */
2
+ /**
3
+ * Angular wrapper for Bryntum TaskColorCombo
4
+ */
5
+
6
+ import { Component, ElementRef, EventEmitter, Output, Input, SimpleChange, SimpleChanges, OnDestroy, OnInit } from '@angular/core';
7
+
8
+ import WrapperHelper from './wrapper.helper';
9
+
10
+ import { AlignSpec, Base, ColorDescriptor, DomConfig, Field, FieldContainer, FieldContainerConfig, FieldTriggerConfig, KeyMapConfig, MaskConfig, Model, Rectangle, Scroller, TabConfig, TooltipConfig, VueConfig, Widget } from '@bryntum/core-thin';
11
+ import { TaskBoardContainerItemConfig, TaskColorCombo, TaskColorComboListeners } from '@bryntum/taskboard-thin';
12
+
13
+ import { StringHelper } from '@bryntum/core-thin';
14
+
15
+ export type BryntumTaskColorComboProps = {
16
+ // Configs
17
+ /**
18
+ * Adds an option in the picker to set no background color
19
+ */
20
+ addNoColorItem ? : boolean
21
+ /**
22
+ * Element (or element id) to adopt as this Widget's encapsulating element. The widget's
23
+ * content will be placed inside this element.
24
+ * ...
25
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/TaskColorCombo#config-adopt)
26
+ */
27
+ adopt ? : HTMLElement|string
28
+ /**
29
+ * *Only valid if this Widget is [floating](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#config-floating).*
30
+ * ...
31
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/TaskColorCombo#config-align)
32
+ */
33
+ align ? : AlignSpec|string
34
+ /**
35
+ * When this widget is a child of a [Container](https://bryntum.com/products/taskboard/docs/api/Core/widget/Container), it will by default be participating in a
36
+ * flexbox layout. This config allows you to set this widget's
37
+ * [align-self](https://developer.mozilla.org/en-US/docs/Web/CSS/align-self) style.
38
+ */
39
+ alignSelf ? : string
40
+ /**
41
+ * *Only valid if this Widget is [floating](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#config-floating) and being shown through [showBy](#Core/widget/Widget#function-showBy).*
42
+ * `true` to show a connector arrow pointing to the align target.
43
+ */
44
+ anchor ? : boolean
45
+ /**
46
+ * Element (or the id of an element) to append this widget's element to. Can be configured, or set once at
47
+ * runtime. To access the element of a rendered widget, see [element](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#property-element).
48
+ */
49
+ appendTo ? : HTMLElement|string
50
+ /**
51
+ * A localizable string (May contain `'L{}'` tokens which resolve in the locale file) to inject
52
+ * into an element which will be linked using the `aria-describedby` attribute.
53
+ * ...
54
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/TaskColorCombo#config-ariaDescription)
55
+ */
56
+ ariaDescription ? : string
57
+ /**
58
+ * A localizable string (May contain `'L{}'` tokens which resolve in the locale file) to inject as
59
+ * the `aria-label` attribute.
60
+ * ...
61
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/TaskColorCombo#config-ariaLabel)
62
+ */
63
+ ariaLabel ? : string
64
+ /**
65
+ * Sets the native `autocomplete` property of the underlying input element. For more information, please refer to
66
+ * [MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete)
67
+ */
68
+ autoComplete ? : string
69
+ /**
70
+ * Configure as `true` to have the picker expand upon focus enter.
71
+ */
72
+ autoExpand ? : boolean
73
+ /**
74
+ * Specify `true` to auto select field contents on focus
75
+ */
76
+ autoSelect ? : boolean
77
+ /**
78
+ * Initial text to show in badge.
79
+ */
80
+ badge ? : string
81
+ /**
82
+ * An object where property names with a truthy value indicate which events should bubble up the ownership
83
+ * hierarchy when triggered.
84
+ * ...
85
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/TaskColorCombo#config-bubbleEvents)
86
+ */
87
+ bubbleEvents ? : object
88
+ /**
89
+ * Set to `false` to not call onXXX method names (e.g. `onShow`, `onClick`), as an easy way to listen for events.
90
+ * ...
91
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/TaskColorCombo#config-callOnFunctions)
92
+ */
93
+ callOnFunctions ? : boolean
94
+ /**
95
+ * By default, if an event handler throws an exception, the error propagates up the stack and the
96
+ * application state is undefined. Code which follows the event handler will *not* be executed.
97
+ * ...
98
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/TaskColorCombo#config-catchEventHandlerExceptions)
99
+ */
100
+ catchEventHandlerExceptions ? : boolean
101
+ /**
102
+ * *Only valid if this Widget is [floating](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#config-floating).*
103
+ * Set to `true` to centre the Widget in browser viewport space.
104
+ */
105
+ centered ? : boolean
106
+ /**
107
+ * Show a trigger to clear field, if this field is not [readOnly](https://bryntum.com/products/taskboard/docs/api/Core/widget/Field#config-readOnly). The trigger is available
108
+ * in the [triggers](https://bryntum.com/products/taskboard/docs/api/Core/widget/Field#property-triggers) object under the name `clear`. May also be an object which
109
+ * configures the `clear` [trigger](https://bryntum.com/products/taskboard/docs/api/Core/widget/Field#property-triggers).
110
+ */
111
+ clearable ? : boolean|FieldTriggerConfig
112
+ /**
113
+ * Custom CSS classes to add to element.
114
+ * May be specified as a space separated string, or as an object in which property names
115
+ * with truthy values are used as the class names:
116
+ * ...
117
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/TaskColorCombo#config-cls)
118
+ */
119
+ cls ? : string|object
120
+ /**
121
+ * The `colors` property can be an array of string CSS colors or of objects with `color`
122
+ * and `text` properties from which the user can chose from. This will override the
123
+ * [pickers default colors](https://bryntum.com/products/taskboard/docs/api/Core/widget/ColorPicker#config-colors).
124
+ * ...
125
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/TaskColorCombo#config-colors)
126
+ */
127
+ colors ? : (string|ColorDescriptor)[]
128
+ /**
129
+ * Programmatic control over which column to start in when used in a grid layout.
130
+ */
131
+ column ? : number
132
+ config ? : object
133
+ /**
134
+ * *Only valid if this Widget is [floating](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#config-floating) or [positioned](#Core/widget/Widget#config-positioned).*
135
+ * Element, Widget or Rectangle to which this Widget is constrained.
136
+ */
137
+ constrainTo ? : HTMLElement|Widget|Rectangle
138
+ /**
139
+ * The configuration for additional items associated to this field. This is typically used to add contextual
140
+ * fields related to a [checkbox](https://bryntum.com/products/taskboard/docs/api/Core/widget/Checkbox) or [radio button](#Core/widget/Radio). See
141
+ * these classes for examples of nested fields.
142
+ * ...
143
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/TaskColorCombo#config-container)
144
+ */
145
+ container ? : Record<string, TaskBoardContainerItemConfig>|TaskBoardContainerItemConfig[]|FieldContainerConfig|FieldContainer
146
+ /**
147
+ * The config controls how the value of nested items are handled when a parent container gets or sets its
148
+ * [values](https://bryntum.com/products/taskboard/docs/api/Core/widget/Container#property-values).
149
+ * ...
150
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/TaskColorCombo#config-containValues)
151
+ * @param {Core.widget.Field} field Field instance
152
+ * @returns {boolean}
153
+ */
154
+ containValues ? : boolean|string|((field: Field) => boolean)
155
+ /**
156
+ * Custom CSS classes to add to the [contentElement](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#property-contentElement).
157
+ * May be specified as a space separated string, or as an object in which property names
158
+ * with truthy values are used as the class names:
159
+ * ...
160
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/TaskColorCombo#config-contentElementCls)
161
+ */
162
+ contentElementCls ? : string|object
163
+ /**
164
+ * When this Widget configuration is used in the Grid's RowExpander feature's `widget` config, provide the
165
+ * field on the expanded record to use for populating this widget's store (if applicable)
166
+ */
167
+ dataField ? : string
168
+ /**
169
+ * Object to apply to elements dataset (each key will be used as a data-attribute on the element)
170
+ */
171
+ dataset ? : Record<string, string>
172
+ /**
173
+ * The name of the property to set when a single value is to be applied to this Widget. Such as when used
174
+ * in a grid WidgetColumn, this is the property to which the column's `field` is applied.
175
+ */
176
+ defaultBindProperty ? : string
177
+ /**
178
+ * Check for CSS compatibility issues when upgrading to v7. Performs the following checks:
179
+ * ...
180
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/TaskColorCombo#config-detectCSSCompatibilityIssues)
181
+ */
182
+ detectCSSCompatibilityIssues ? : boolean
183
+ /**
184
+ * Disable or enable the widget. It is similar to [readOnly](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#config-readOnly) except a disabled widget
185
+ * cannot be focused, uses a different rendition (usually greyish) and does not allow selecting its value.
186
+ * ...
187
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/TaskColorCombo#config-disabled)
188
+ */
189
+ disabled ? : boolean|'inert'
190
+ /**
191
+ * Controls the placement of this widget when it is added to a [panel's ](https://bryntum.com/products/taskboard/docs/api/Core/widget/Panel)
192
+ * [strips collection](https://bryntum.com/products/taskboard/docs/api/Core/widget/Panel#config-strips). Typical values for this config are `'top'`,
193
+ * `'bottom'`, `'left'`, or `'right'`, which cause the widget to be placed on that side of the panel's
194
+ * body. Such widgets are called "edge strips".
195
+ * ...
196
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/TaskColorCombo#config-dock)
197
+ */
198
+ dock ? : 'top'|'bottom'|'left'|'right'|'start'|'end'|'header'|'pre-header'|object
199
+ /**
200
+ * *Only valid if this Widget is [floating](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#config-floating).*
201
+ * Set to `true` to be able to drag a widget freely on the page. Or set to an object with a ´handleSelector´
202
+ * property which controls when a drag should start.
203
+ * ...
204
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/TaskColorCombo#config-draggable)
205
+ */
206
+ draggable ? : boolean|{
207
+ handleSelector?: string
208
+ }
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/taskboard/docs/api/TaskBoard/widget/TaskColorCombo#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/taskboard/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/taskboard/docs/api/Core/widget/Widget#config-floating).*
242
+ * ...
243
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/TaskColorCombo#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/taskboard/docs/api/TaskBoard/widget/TaskColorCombo#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/taskboard/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/taskboard/docs/api/Core/helper/StringHelper#function-encodeHtml-static)).
265
+ * ...
266
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/TaskColorCombo#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/taskboard/docs/api/TaskBoard/widget/TaskColorCombo#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/taskboard/docs/api/Core/widget/layout/Box) as the [layout](#Core/widget/Container#config-layout) to the
286
+ * [container](https://bryntum.com/products/taskboard/docs/api/Core/widget/Field#config-container).
287
+ * ...
288
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/TaskColorCombo#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/taskboard/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/taskboard/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/taskboard/docs/api/TaskBoard/widget/TaskColorCombo#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/taskboard/docs/api/TaskBoard/widget/TaskColorCombo#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/taskboard/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/taskboard/docs/api/TaskBoard/widget/TaskColorCombo#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/taskboard/docs/api/TaskBoard/widget/TaskColorCombo#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/taskboard/docs/api/TaskBoard/widget/TaskColorCombo#config-listeners)
369
+ */
370
+ listeners ? : TaskColorComboListeners
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/taskboard/docs/api/TaskBoard/widget/TaskColorCombo#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/taskboard/docs/api/TaskBoard/widget/TaskColorCombo#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/taskboard/docs/api/Core/widget/Mask) created for the
399
+ * [masked](https://bryntum.com/products/taskboard/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/taskboard/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/taskboard/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/taskboard/docs/api/Core/widget/Widget#config-floating).*
415
+ * ...
416
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/TaskColorCombo#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/taskboard/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/taskboard/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/taskboard/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/taskboard/docs/api/TaskBoard/widget/TaskColorCombo#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/taskboard/docs/api/Core/widget/Widget#config-ref) and [id](#Core/widget/Widget#config-id) in
455
+ * [Container.values](https://bryntum.com/products/taskboard/docs/api/Core/widget/Container#property-values).
456
+ * ...
457
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/TaskColorCombo#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/taskboard/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/taskboard/docs/api/TaskBoard/widget/TaskColorCombo#config-owner)
466
+ */
467
+ owner ? : Widget|any
468
+ /**
469
+ * The name of the element property to which the picker should size and align itself.
470
+ */
471
+ pickerAlignElement ? : string
472
+ /**
473
+ * Text to display in empty field.
474
+ */
475
+ placeholder ? : string
476
+ /**
477
+ * Set to `true` when a widget is rendered into another widget's [contentElement](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#property-contentElement), but must
478
+ * not participate in the standard layout of that widget, and must be positioned relatively to that
479
+ * widget's [contentElement](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#property-contentElement).
480
+ * ...
481
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/TaskColorCombo#config-positioned)
482
+ */
483
+ positioned ? : boolean
484
+ /**
485
+ * Prevent tooltip from being displayed on touch devices. Useful for example for buttons that display a
486
+ * menu on click etc, since the tooltip would be displayed at the same time.
487
+ */
488
+ preventTooltipOnTouch ? : boolean
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/taskboard/docs/api/TaskBoard/widget/TaskColorCombo#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/taskboard/docs/api/TaskBoard/widget/TaskColorCombo#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/taskboard/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/taskboard/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/taskboard/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/taskboard/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/taskboard/docs/api/TaskBoard/widget/TaskColorCombo#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/taskboard/docs/api/TaskBoard/widget/TaskColorCombo#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/taskboard/docs/api/Core/widget/Widget#config-floating).*
545
+ * ...
546
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/TaskColorCombo#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/taskboard/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/taskboard/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/taskboard/docs/api/Core/widget/Tab) created for this widget when it is placed in a
573
+ * [TabPanel](https://bryntum.com/products/taskboard/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/taskboard/docs/api/TaskBoard/widget/TaskColorCombo#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/taskboard/docs/api/TaskBoard/widget/TaskColorCombo#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/taskboard/docs/api/TaskBoard/widget/TaskColorCombo#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/taskboard/docs/api/TaskBoard/widget/TaskColorCombo#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/taskboard/docs/api/TaskBoard/widget/TaskColorCombo#config-triggers)
609
+ */
610
+ triggers ? : Record<string, FieldTriggerConfig>|Record<string, Widget>
611
+ type ? : 'taskcolorcombo'
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/taskboard/docs/api/TaskBoard/widget/TaskColorCombo#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/taskboard/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/taskboard/docs/api/TaskBoard/widget/TaskColorCombo#config-x)
644
+ */
645
+ x ? : number
646
+ /**
647
+ * The y position for the widget.
648
+ * ...
649
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/TaskColorCombo#config-y)
650
+ */
651
+ y ? : number
652
+
653
+ }
654
+
655
+ @Component({
656
+ selector : 'bryntum-task-color-combo',
657
+ template : ''
658
+ })
659
+ export class BryntumTaskColorComboComponent implements OnInit, OnDestroy {
660
+
661
+ public static instanceClass = TaskColorCombo;
662
+
663
+ public static instanceName = 'TaskColorCombo';
664
+
665
+ private static bryntumEvents: string[] = [
666
+ 'onAction',
667
+ 'onBeforeDestroy',
668
+ 'onBeforeHide',
669
+ 'onBeforeShow',
670
+ 'onCatchAll',
671
+ 'onChange',
672
+ 'onClear',
673
+ 'onDestroy',
674
+ 'onElementCreated',
675
+ 'onFocusIn',
676
+ 'onFocusOut',
677
+ 'onHide',
678
+ 'onInput',
679
+ 'onPaint',
680
+ 'onReadOnly',
681
+ 'onRecompose',
682
+ 'onResize',
683
+ 'onShow',
684
+ 'onTrigger'
685
+ ];
686
+
687
+ private static bryntumFeatureNames: string[] = [
688
+
689
+ ];
690
+
691
+ private static bryntumConfigs: string[] = BryntumTaskColorComboComponent.bryntumFeatureNames.concat([
692
+ 'addNoColorItem',
693
+ 'adopt',
694
+ 'align',
695
+ 'alignSelf',
696
+ 'anchor',
697
+ 'appendTo',
698
+ 'ariaDescription',
699
+ 'ariaLabel',
700
+ 'autoComplete',
701
+ 'autoExpand',
702
+ 'autoSelect',
703
+ 'badge',
704
+ 'bubbleEvents',
705
+ 'callOnFunctions',
706
+ 'catchEventHandlerExceptions',
707
+ 'centered',
708
+ 'clearable',
709
+ 'cls',
710
+ 'colors',
711
+ 'column',
712
+ 'config',
713
+ 'constrainTo',
714
+ 'container',
715
+ 'containValues',
716
+ 'contentElementCls',
717
+ 'dataField',
718
+ 'dataset',
719
+ 'defaultBindProperty',
720
+ 'detectCSSCompatibilityIssues',
721
+ 'disabled',
722
+ 'dock',
723
+ 'draggable',
724
+ 'elementAttributes',
725
+ 'extraData',
726
+ 'flex',
727
+ 'floating',
728
+ 'height',
729
+ 'hidden',
730
+ 'hideAnimation',
731
+ 'highlightExternalChange',
732
+ 'hint',
733
+ 'hintHtml',
734
+ 'id',
735
+ 'ignoreParentReadOnly',
736
+ 'inline',
737
+ 'inputAlign',
738
+ 'inputAttributes',
739
+ 'inputTag',
740
+ 'inputType',
741
+ 'inputWidth',
742
+ 'insertBefore',
743
+ 'insertFirst',
744
+ 'keyMap',
745
+ 'keyStrokeChangeDelay',
746
+ 'label',
747
+ 'labelCls',
748
+ 'labelPosition',
749
+ 'labels',
750
+ 'labelWidth',
751
+ 'listeners',
752
+ 'localeClass',
753
+ 'localizable',
754
+ 'localizableProperties',
755
+ 'margin',
756
+ 'maskDefaults',
757
+ 'masked',
758
+ 'maxHeight',
759
+ 'maximizeOnMobile',
760
+ 'maxLength',
761
+ 'maxWidth',
762
+ 'minHeight',
763
+ 'minLength',
764
+ 'minWidth',
765
+ 'monitorResize',
766
+ 'name',
767
+ 'owner',
768
+ 'pickerAlignElement',
769
+ 'placeholder',
770
+ 'positioned',
771
+ 'preventTooltipOnTouch',
772
+ 'readOnly',
773
+ 'relayStoreEvents',
774
+ 'rendition',
775
+ 'required',
776
+ 'revertOnEscape',
777
+ 'ripple',
778
+ 'rootElement',
779
+ 'rtl',
780
+ 'scrollAction',
781
+ 'showAnimation',
782
+ 'showRequiredIndicator',
783
+ 'showTooltipWhenDisabled',
784
+ 'skipValidation',
785
+ 'span',
786
+ 'spellCheck',
787
+ 'tab',
788
+ 'tabIndex',
789
+ 'textAlign',
790
+ 'title',
791
+ 'tooltip',
792
+ 'triggers',
793
+ 'type',
794
+ 'ui',
795
+ 'validateOnInput',
796
+ 'value',
797
+ 'weight',
798
+ 'width',
799
+ 'x',
800
+ 'y'
801
+ ]);
802
+
803
+ private static bryntumConfigsOnly: string[] = [
804
+ 'adopt',
805
+ 'align',
806
+ 'anchor',
807
+ 'ariaDescription',
808
+ 'ariaLabel',
809
+ 'autoComplete',
810
+ 'autoExpand',
811
+ 'autoSelect',
812
+ 'bubbleEvents',
813
+ 'centered',
814
+ 'clearable',
815
+ 'config',
816
+ 'constrainTo',
817
+ 'container',
818
+ 'containValues',
819
+ 'contentElementCls',
820
+ 'dataField',
821
+ 'defaultBindProperty',
822
+ 'detectCSSCompatibilityIssues',
823
+ 'dock',
824
+ 'draggable',
825
+ 'elementAttributes',
826
+ 'floating',
827
+ 'hideAnimation',
828
+ 'highlightExternalChange',
829
+ 'hint',
830
+ 'hintHtml',
831
+ 'ignoreParentReadOnly',
832
+ 'inline',
833
+ 'inputAlign',
834
+ 'inputAttributes',
835
+ 'inputTag',
836
+ 'inputType',
837
+ 'inputWidth',
838
+ 'keyStrokeChangeDelay',
839
+ 'labelCls',
840
+ 'labelPosition',
841
+ 'labels',
842
+ 'labelWidth',
843
+ 'listeners',
844
+ 'localeClass',
845
+ 'localizable',
846
+ 'localizableProperties',
847
+ 'maskDefaults',
848
+ 'masked',
849
+ 'maxLength',
850
+ 'minLength',
851
+ 'monitorResize',
852
+ 'name',
853
+ 'owner',
854
+ 'pickerAlignElement',
855
+ 'positioned',
856
+ 'preventTooltipOnTouch',
857
+ 'relayStoreEvents',
858
+ 'revertOnEscape',
859
+ 'ripple',
860
+ 'rootElement',
861
+ 'scrollAction',
862
+ 'showAnimation',
863
+ 'showTooltipWhenDisabled',
864
+ 'skipValidation',
865
+ 'spellCheck',
866
+ 'tab',
867
+ 'tabIndex',
868
+ 'textAlign',
869
+ 'title',
870
+ 'type',
871
+ 'ui',
872
+ 'validateOnInput',
873
+ 'weight'
874
+ ];
875
+
876
+ private static bryntumProps: string[] = BryntumTaskColorComboComponent.bryntumFeatureNames.concat([
877
+ 'addNoColorItem',
878
+ 'alignSelf',
879
+ 'anchorSize',
880
+ 'appendTo',
881
+ 'badge',
882
+ 'callOnFunctions',
883
+ 'catchEventHandlerExceptions',
884
+ 'cls',
885
+ 'colors',
886
+ 'column',
887
+ 'content',
888
+ 'dataset',
889
+ 'disabled',
890
+ 'editable',
891
+ 'extraData',
892
+ 'flex',
893
+ 'focusVisible',
894
+ 'formula',
895
+ 'height',
896
+ 'hidden',
897
+ 'html',
898
+ 'id',
899
+ 'input',
900
+ 'insertBefore',
901
+ 'insertFirst',
902
+ 'keyMap',
903
+ 'label',
904
+ 'margin',
905
+ 'maxHeight',
906
+ 'maximizeOnMobile',
907
+ 'maxWidth',
908
+ 'minHeight',
909
+ 'minWidth',
910
+ 'parent',
911
+ 'placeholder',
912
+ 'readOnly',
913
+ 'rendition',
914
+ 'required',
915
+ 'rtl',
916
+ 'scrollable',
917
+ 'showRequiredIndicator',
918
+ 'span',
919
+ 'tooltip',
920
+ 'triggers',
921
+ 'value',
922
+ 'width',
923
+ 'x',
924
+ 'y'
925
+ ]);
926
+
927
+ private elementRef: ElementRef;
928
+ public instance!: TaskColorCombo;
929
+
930
+ private bryntumConfig = {
931
+ adopt : undefined,
932
+ appendTo : undefined,
933
+ href : undefined,
934
+ angularComponent : this,
935
+ features : {},
936
+ listeners : {}
937
+ };
938
+
939
+ constructor(element: ElementRef) {
940
+ this.elementRef = element;
941
+ }
942
+
943
+ // Configs only
944
+ @Input() adopt ! : HTMLElement|string;
945
+ @Input() align ! : AlignSpec|string;
946
+ @Input() anchor ! : boolean;
947
+ @Input() ariaDescription ! : string;
948
+ @Input() ariaLabel ! : string;
949
+ @Input() autoComplete ! : string;
950
+ @Input() autoExpand ! : boolean;
951
+ @Input() autoSelect ! : boolean;
952
+ @Input() bubbleEvents ! : object;
953
+ @Input() centered ! : boolean;
954
+ @Input() clearable ! : boolean|FieldTriggerConfig;
955
+ @Input() config ! : object;
956
+ @Input() constrainTo ! : HTMLElement|Widget|Rectangle;
957
+ @Input() container ! : Record<string, TaskBoardContainerItemConfig>|TaskBoardContainerItemConfig[]|FieldContainerConfig|FieldContainer;
958
+ @Input() containValues ! : boolean|string|((field: Field) => boolean);
959
+ @Input() contentElementCls ! : string|object;
960
+ @Input() dataField ! : string;
961
+ @Input() defaultBindProperty ! : string;
962
+ @Input() detectCSSCompatibilityIssues ! : boolean;
963
+ @Input() dock ! : 'top'|'bottom'|'left'|'right'|'start'|'end'|'header'|'pre-header'|object;
964
+ @Input() draggable ! : boolean|{
965
+ handleSelector?: string
966
+ };
967
+ @Input() elementAttributes ! : Record<string, string|null>;
968
+ @Input() floating ! : boolean;
969
+ @Input() hideAnimation ! : boolean|object;
970
+ @Input() highlightExternalChange ! : boolean;
971
+ @Input() hint ! : string|((data: { source: Field, value: any }) => string);
972
+ @Input() hintHtml ! : string|((data: { source: Field, value: any }) => string);
973
+ @Input() ignoreParentReadOnly ! : boolean;
974
+ @Input() inline ! : boolean;
975
+ @Input() inputAlign ! : string;
976
+ @Input() inputAttributes ! : Record<string, string>;
977
+ @Input() inputTag ! : string;
978
+ @Input() inputType ! : string;
979
+ @Input() inputWidth ! : string|number;
980
+ @Input() keyStrokeChangeDelay ! : number;
981
+ @Input() labelCls ! : string|object;
982
+ @Input() labelPosition ! : 'before'|'above'|null;
983
+ @Input() labels ! : object[];
984
+ @Input() labelWidth ! : string|number;
985
+ @Input() listeners ! : TaskColorComboListeners;
986
+ @Input() localeClass ! : typeof Base;
987
+ @Input() localizable ! : boolean;
988
+ @Input() localizableProperties ! : string[];
989
+ @Input() maskDefaults ! : MaskConfig;
990
+ @Input() masked ! : boolean|string|MaskConfig;
991
+ @Input() maxLength ! : number;
992
+ @Input() minLength ! : number;
993
+ @Input() monitorResize ! : boolean|{
994
+ immediate?: boolean
995
+ };
996
+ @Input() name ! : string;
997
+ @Input() owner ! : Widget|any;
998
+ @Input() pickerAlignElement ! : string;
999
+ @Input() positioned ! : boolean;
1000
+ @Input() preventTooltipOnTouch ! : boolean;
1001
+ @Input() relayStoreEvents ! : boolean;
1002
+ @Input() revertOnEscape ! : boolean;
1003
+ @Input() ripple ! : boolean|{
1004
+ delegate?: string
1005
+ color?: string
1006
+ radius?: number
1007
+ clip?: string
1008
+ };
1009
+ @Input() rootElement ! : ShadowRoot|HTMLElement;
1010
+ @Input() scrollAction ! : 'hide'|'realign'|null;
1011
+ @Input() showAnimation ! : boolean|object;
1012
+ @Input() showTooltipWhenDisabled ! : boolean;
1013
+ @Input() skipValidation ! : boolean;
1014
+ @Input() spellCheck ! : boolean;
1015
+ @Input() tab ! : boolean|TabConfig;
1016
+ @Input() tabIndex ! : number;
1017
+ @Input() textAlign ! : 'left'|'center'|'right'|'start'|'end';
1018
+ @Input() title ! : string;
1019
+ @Input() type ! : 'taskcolorcombo';
1020
+ @Input() ui ! : string|object;
1021
+ @Input() validateOnInput ! : boolean;
1022
+ @Input() weight ! : number;
1023
+
1024
+ // Configs and properties
1025
+ @Input() addNoColorItem ! : boolean;
1026
+ @Input() alignSelf ! : string;
1027
+ @Input() appendTo ! : HTMLElement|string;
1028
+ @Input() badge ! : string;
1029
+ @Input() callOnFunctions ! : boolean;
1030
+ @Input() catchEventHandlerExceptions ! : boolean;
1031
+ @Input() cls ! : string|object;
1032
+ @Input() colors ! : (string|ColorDescriptor)[];
1033
+ @Input() column ! : number;
1034
+ @Input() dataset ! : object|Record<string, string>;
1035
+ @Input() disabled ! : boolean|'inert';
1036
+ @Input() extraData ! : any;
1037
+ @Input() flex ! : number|string;
1038
+ @Input() height ! : number|string;
1039
+ @Input() hidden ! : boolean;
1040
+ @Input() id ! : string;
1041
+ @Input() insertBefore ! : HTMLElement|string;
1042
+ @Input() insertFirst ! : HTMLElement|string;
1043
+ @Input() keyMap ! : Record<string, KeyMapConfig>;
1044
+ @Input() label ! : string;
1045
+ @Input() margin ! : number|string;
1046
+ @Input() maxHeight ! : string|number;
1047
+ @Input() maximizeOnMobile ! : number|string;
1048
+ @Input() maxWidth ! : string|number;
1049
+ @Input() minHeight ! : string|number;
1050
+ @Input() minWidth ! : string|number;
1051
+ @Input() placeholder ! : string;
1052
+ @Input() readOnly ! : boolean;
1053
+ @Input() rendition ! : 'outlined'|'filled'|string;
1054
+ @Input() required ! : boolean;
1055
+ @Input() rtl ! : boolean;
1056
+ @Input() showRequiredIndicator ! : string;
1057
+ @Input() span ! : number;
1058
+ @Input() tooltip ! : string|TooltipConfig|null;
1059
+ @Input() triggers ! : Record<string, FieldTriggerConfig>|Record<string, Widget>;
1060
+ @Input() value ! : any|string;
1061
+ @Input() width ! : number|string;
1062
+ @Input() x ! : number;
1063
+ @Input() y ! : number;
1064
+
1065
+ // Properties only
1066
+ @Input() anchorSize ! : number[];
1067
+ @Input() content ! : string;
1068
+ @Input() editable ! : boolean;
1069
+ @Input() focusVisible ! : boolean;
1070
+ @Input() formula ! : string;
1071
+ @Input() html ! : string|((widget: Widget) => string)|DomConfig|DomConfig[]|VueConfig;
1072
+ @Input() input ! : HTMLElement;
1073
+ @Input() parent ! : Widget;
1074
+ @Input() scrollable ! : Scroller;
1075
+
1076
+ // Events emitters
1077
+ /**
1078
+ * User performed default action (typed into this field).
1079
+ * @param {object} event Event object
1080
+ * @param {Core.widget.Field,any} event.source This Field
1081
+ * @param {string,number,boolean,any} event.value This field's value
1082
+ * @param {string,number,boolean,any} event.oldValue This field's previous value
1083
+ * @param {boolean} event.valid True if this field is in a valid state
1084
+ * @param {Event} event.event The triggering DOM event if any
1085
+ * @param {Core.data.Model} event.record Selected record. Available for fields with records selection functionality
1086
+ * @param {Core.data.Model[]} event.records Selected records as an array. Available for fields with records selection functionality
1087
+ * @param {boolean} event.userAction Triggered by user taking an action (`true`) or by setting a value (`false`)
1088
+ * @param {boolean} event.checked
1089
+ */
1090
+ @Output() onAction: any = new EventEmitter<((event: { source: Field|any, value: string|number|boolean|any, oldValue: string|number|boolean|any, valid: boolean, event: Event, record: Model, records: Model[], userAction: boolean, checked: boolean }) => void)|string>();
1091
+ /**
1092
+ * Fires before an object is destroyed.
1093
+ * @param {object} event Event object
1094
+ * @param {Core.Base} event.source The Object that is being destroyed.
1095
+ */
1096
+ @Output() onBeforeDestroy: any = new EventEmitter<((event: { source: Base }) => void)|string>();
1097
+ /**
1098
+ * Triggered before a widget is hidden. Return `false` to prevent the action.
1099
+ * @param {object} event Event object
1100
+ * @param {Core.widget.Widget} event.source The widget being hidden.
1101
+ */
1102
+ @Output() onBeforeHide: any = new EventEmitter<((event: { source: Widget }) => Promise<boolean>|boolean|void)|string>();
1103
+ /**
1104
+ * Triggered before a widget is shown. Return `false` to prevent the action.
1105
+ * @param {object} event Event object
1106
+ * @param {Core.widget.Widget,any} event.source The widget being shown
1107
+ */
1108
+ @Output() onBeforeShow: any = new EventEmitter<((event: { source: Widget|any }) => Promise<boolean>|boolean|void)|string>();
1109
+ /**
1110
+ * Fires when any other event is fired from the object.
1111
+ * ...
1112
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/TaskColorCombo#event-catchAll)
1113
+ * @param {object} event Event object
1114
+ * @param {{[key: string]: any, type: string}} event.event The Object that contains event details
1115
+ * @param {string} event.event.type The type of the event which is caught by the listener
1116
+ */
1117
+ @Output() onCatchAll: any = new EventEmitter<((event: {[key: string]: any, type: string}) => void)|string>();
1118
+ /**
1119
+ * Fired when this field's value changes.
1120
+ * @param {object} event Event object
1121
+ * @param {Core.widget.Field,any} event.source This Field
1122
+ * @param {string,number,boolean,any} event.value This field's value
1123
+ * @param {string,number,boolean,any} event.oldValue This field's previous value
1124
+ * @param {boolean} event.valid True if this field is in a valid state
1125
+ * @param {Event} event.event The triggering DOM event if any
1126
+ * @param {boolean} event.userAction Triggered by user taking an action (`true`) or by setting a value (`false`)
1127
+ * @param {boolean} event.checked
1128
+ */
1129
+ @Output() onChange: any = new EventEmitter<((event: { source: Field|any, value: string|number|boolean|any, oldValue: string|number|boolean|any, valid: boolean, event: Event, userAction: boolean, checked: boolean }) => void)|string>();
1130
+ /**
1131
+ * Fired when this field is [cleared](https://bryntum.com/products/taskboard/docs/api/Core/widget/Field#function-clear).
1132
+ * ...
1133
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/TaskColorCombo#event-clear)
1134
+ * @param {object} event Event object
1135
+ * @param {Core.widget.Field,any} event.source This Field
1136
+ */
1137
+ @Output() onClear: any = new EventEmitter<((event: { source: Field|any }) => void)|string>();
1138
+ /**
1139
+ * Fires when an object is destroyed.
1140
+ * @param {object} event Event object
1141
+ * @param {Core.Base} event.source The Object that is being destroyed.
1142
+ */
1143
+ @Output() onDestroy: any = new EventEmitter<((event: { source: Base }) => void)|string>();
1144
+ /**
1145
+ * Triggered when a widget's [element](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#property-element) is available.
1146
+ * @param {object} event Event object
1147
+ * @param {HTMLElement} event.element The Widget's element.
1148
+ */
1149
+ @Output() onElementCreated: any = new EventEmitter<((event: { element: HTMLElement }) => void)|string>();
1150
+ /**
1151
+ * Fired when focus enters this Widget.
1152
+ * @param {object} event Event object
1153
+ * @param {Core.widget.Widget} event.source This Widget
1154
+ * @param {HTMLElement} event.fromElement The element which lost focus.
1155
+ * @param {HTMLElement} event.toElement The element which gained focus.
1156
+ * @param {Core.widget.Widget} event.fromWidget The widget which lost focus.
1157
+ * @param {Core.widget.Widget} event.toWidget The widget which gained focus.
1158
+ * @param {boolean} event.backwards `true` if the `toElement` is before the `fromElement` in document order.
1159
+ */
1160
+ @Output() onFocusIn: any = new EventEmitter<((event: { source: Widget, fromElement: HTMLElement, toElement: HTMLElement, fromWidget: Widget, toWidget: Widget, backwards: boolean }) => void)|string>();
1161
+ /**
1162
+ * Fired when focus exits this Widget's ownership tree. This is different from a `blur` event.
1163
+ * focus moving from within this Widget's ownership tree, even if there are floating widgets
1164
+ * will not trigger this event. This is when focus exits this widget completely.
1165
+ * @param {object} event Event object
1166
+ * @param {Core.widget.Widget} event.source This Widget
1167
+ * @param {HTMLElement} event.fromElement The element which lost focus.
1168
+ * @param {HTMLElement} event.toElement The element which gained focus.
1169
+ * @param {Core.widget.Widget} event.fromWidget The widget which lost focus.
1170
+ * @param {Core.widget.Widget} event.toWidget The widget which gained focus.
1171
+ * @param {boolean} event.backwards `true` if the `toElement` is before the `fromElement` in document order.
1172
+ */
1173
+ @Output() onFocusOut: any = new EventEmitter<((event: { source: Widget, fromElement: HTMLElement, toElement: HTMLElement, fromWidget: Widget, toWidget: Widget, backwards: boolean }) => void)|string>();
1174
+ /**
1175
+ * Triggered after a widget was hidden
1176
+ * @param {object} event Event object
1177
+ * @param {Core.widget.Widget} event.source The widget
1178
+ */
1179
+ @Output() onHide: any = new EventEmitter<((event: { source: Widget }) => void)|string>();
1180
+ /**
1181
+ * Fired when the user types into this field.
1182
+ * @param {object} event Event object
1183
+ * @param {Core.widget.Field,any} event.source This field
1184
+ * @param {string,number,boolean,any} event.value This field's value
1185
+ * @param {Event} event.event The triggering DOM event
1186
+ */
1187
+ @Output() onInput: any = new EventEmitter<((event: { source: Field|any, value: string|number|boolean|any, event: Event }) => void)|string>();
1188
+ /**
1189
+ * Triggered when a widget which had been in a non-visible state for any reason
1190
+ * achieves visibility.
1191
+ * ...
1192
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/TaskColorCombo#event-paint)
1193
+ * @param {object} event Event object
1194
+ * @param {Core.widget.Widget} event.source The widget being painted.
1195
+ * @param {boolean} event.firstPaint `true` if this is the first paint.
1196
+ */
1197
+ @Output() onPaint: any = new EventEmitter<((event: { source: Widget, firstPaint: boolean }) => void)|string>();
1198
+ /**
1199
+ * Fired when a Widget's read only state is toggled
1200
+ * @param {object} event Event object
1201
+ * @param {boolean} event.readOnly Read only or not
1202
+ */
1203
+ @Output() onReadOnly: any = new EventEmitter<((event: { readOnly: boolean }) => void)|string>();
1204
+ /**
1205
+ * This event is fired after a widget's elements have been synchronized due to a direct or indirect call
1206
+ * to [recompose](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#function-recompose), if this results in some change to the widget's rendered DOM elements.
1207
+ */
1208
+ @Output() onRecompose: any = new EventEmitter<(() => void)|string>();
1209
+ /**
1210
+ * Fired when the encapsulating element of a Widget resizes *only when [monitorResize](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#config-monitorResize) is `true`*.
1211
+ * @param {object} event Event object
1212
+ * @param {Core.widget.Widget} event.source This Widget
1213
+ * @param {number} event.width The new width
1214
+ * @param {number} event.height The new height
1215
+ * @param {number} event.oldWidth The old width
1216
+ * @param {number} event.oldHeight The old height
1217
+ */
1218
+ @Output() onResize: any = new EventEmitter<((event: { source: Widget, width: number, height: number, oldWidth: number, oldHeight: number }) => void)|string>();
1219
+ /**
1220
+ * Triggered after a widget is shown.
1221
+ * @param {object} event Event object
1222
+ * @param {Core.widget.Widget} event.source The widget
1223
+ */
1224
+ @Output() onShow: any = new EventEmitter<((event: { source: Widget }) => void)|string>();
1225
+ /**
1226
+ * User clicked one of this field's [triggers](https://bryntum.com/products/taskboard/docs/api/Core/widget/Field#property-triggers)
1227
+ * @param {object} event Event object
1228
+ * @param {Core.widget.Field,any} event.source This field
1229
+ * @param {Core.widget.Widget} event.trigger The trigger activated by click or touch tap.
1230
+ */
1231
+ @Output() onTrigger: any = new EventEmitter<((event: { source: Field|any, trigger: Widget }) => void)|string>();
1232
+
1233
+ /**
1234
+ * Create and append the underlying widget
1235
+ */
1236
+ ngOnInit(): void {
1237
+ const
1238
+ me = this,
1239
+ {
1240
+ elementRef,
1241
+ bryntumConfig
1242
+ } = me,
1243
+ {
1244
+ instanceClass,
1245
+ instanceName,
1246
+ bryntumConfigs,
1247
+ bryntumEvents
1248
+ } = BryntumTaskColorComboComponent;
1249
+
1250
+ bryntumConfigs.filter(prop => prop in this).forEach(prop => {
1251
+ // @ts-ignore
1252
+ WrapperHelper.applyPropValue(bryntumConfig, prop, this[prop]);
1253
+ if (['features', 'config'].includes(prop)) {
1254
+ WrapperHelper.devWarningConfigProp(instanceName, prop);
1255
+ }
1256
+ });
1257
+ // @ts-ignore
1258
+ bryntumEvents.filter(event => this[event] && this[event].observers.length > 0).forEach(event => {
1259
+ const
1260
+ uncapitalize = (str: string) => str.charAt(0).toLowerCase() + str.slice(1),
1261
+ eventName = (str: string) => uncapitalize(str.slice(2));
1262
+
1263
+ // @ts-ignore
1264
+ bryntumConfig.listeners[eventName(event)] = e => {
1265
+ // @ts-ignore
1266
+ me[event].emit(e);
1267
+ // EventEmitter does not return values in the normal way, work around it by setting `returnValue` flag
1268
+ // in Angular listeners
1269
+ return e.returnValue;
1270
+ };
1271
+ });
1272
+
1273
+ // If component has no container specified in config then use adopt to Wrapper's element
1274
+ const
1275
+ containerParam = [
1276
+ 'adopt',
1277
+ 'appendTo',
1278
+ 'insertAfter',
1279
+ 'insertBefore'
1280
+ // @ts-ignore
1281
+ ].find(prop => bryntumConfig[prop]);
1282
+ if (!containerParam) {
1283
+ if (instanceName === 'Button' || elementRef.nativeElement.getRootNode() instanceof ShadowRoot) {
1284
+ // Button should always be <a> or <button> inside owner element
1285
+ bryntumConfig.appendTo = elementRef.nativeElement;
1286
+ }
1287
+ else {
1288
+ bryntumConfig.adopt = elementRef.nativeElement;
1289
+ }
1290
+ }
1291
+ else {
1292
+ WrapperHelper.devWarningContainer(instanceName, containerParam);
1293
+ }
1294
+
1295
+ // @ts-ignore
1296
+ me.instance = instanceName === 'Widget' ? Widget.create(bryntumConfig) : new instanceClass(bryntumConfig);
1297
+
1298
+ }
1299
+
1300
+ /**
1301
+ * Watch for changes
1302
+ * @param changes
1303
+ */
1304
+ ngOnChanges(changes: SimpleChanges): void {
1305
+ const
1306
+ { instance } = this,
1307
+ { instanceName } = BryntumTaskColorComboComponent;
1308
+ if (!instance) {
1309
+ return;
1310
+ }
1311
+ // Iterate over all changes
1312
+ Object.entries(changes).forEach(([prop, change]) => {
1313
+ const
1314
+ newValue = (change as SimpleChange).currentValue,
1315
+ { instance } = this,
1316
+ { bryntumConfigsOnly, bryntumProps } = BryntumTaskColorComboComponent;
1317
+ if (bryntumProps.includes(prop)) {
1318
+ WrapperHelper.applyPropValue(instance, prop, newValue, false);
1319
+ if (bryntumConfigsOnly.includes(prop)) {
1320
+ WrapperHelper.devWarningUpdateProp(instanceName, prop);
1321
+ }
1322
+ }
1323
+ });
1324
+ }
1325
+
1326
+ /**
1327
+ * Destroy the component
1328
+ */
1329
+ ngOnDestroy(): void {
1330
+ // @ts-ignore
1331
+ if (this.instance && this.instance.destroy) {
1332
+ this.instance.destroy();
1333
+ }
1334
+ }
1335
+ }