@bryntum/taskboard-angular 7.1.1 → 7.1.2

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