@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,1122 @@
1
+ /* eslint-disable @typescript-eslint/no-unused-vars */
2
+ /**
3
+ * Angular wrapper for Bryntum ZoomSlider
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, TabConfig, TaskBoard, TooltipConfig, VueConfig, Widget, ZoomSlider, ZoomSliderListeners } from '@bryntum/taskboard';
11
+
12
+ import { StringHelper } from '@bryntum/taskboard';
13
+
14
+ export type BryntumZoomSliderProps = {
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/TaskBoard/widget/ZoomSlider#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/TaskBoard/widget/ZoomSlider#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/TaskBoard/widget/ZoomSlider#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/TaskBoard/widget/ZoomSlider#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/TaskBoard/widget/ZoomSlider#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/TaskBoard/widget/ZoomSlider#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/TaskBoard/widget/ZoomSlider#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/TaskBoard/widget/ZoomSlider#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/TaskBoard/widget/ZoomSlider#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/TaskBoard/widget/ZoomSlider#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/TaskBoard/widget/ZoomSlider#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/TaskBoard/widget/ZoomSlider#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/TaskBoard/widget/ZoomSlider#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/TaskBoard/widget/ZoomSlider#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/TaskBoard/widget/ZoomSlider#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/TaskBoard/widget/ZoomSlider#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/TaskBoard/widget/ZoomSlider#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/TaskBoard/widget/ZoomSlider#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/TaskBoard/widget/ZoomSlider#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/TaskBoard/widget/ZoomSlider#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/TaskBoard/widget/ZoomSlider#config-listeners)
267
+ */
268
+ listeners ? : ZoomSliderListeners
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/TaskBoard/widget/ZoomSlider#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/TaskBoard/widget/ZoomSlider#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/TaskBoard/widget/ZoomSlider#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/TaskBoard/widget/ZoomSlider#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/TaskBoard/widget/ZoomSlider#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/TaskBoard/widget/ZoomSlider#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/TaskBoard/widget/ZoomSlider#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/TaskBoard/widget/ZoomSlider#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/TaskBoard/widget/ZoomSlider#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/TaskBoard/widget/ZoomSlider#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/TaskBoard/widget/ZoomSlider#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/TaskBoard/widget/ZoomSlider#config-tab)
452
+ */
453
+ tab ? : boolean|TabConfig
454
+ /**
455
+ * The tag name of this Widget's root element
456
+ */
457
+ tag ? : string
458
+ /**
459
+ * Auto detected when used within a TaskBoard. If you add the widget elsewhere, it will try to find an instance
460
+ * of TaskBoard on page. If that fails you have to supply this config to connect it to a TaskBoard manually.
461
+ * ...
462
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/ZoomSlider#config-taskBoard)
463
+ */
464
+ taskBoard ? : TaskBoard
465
+ /**
466
+ * Text for the sliders internal label. Appends value if `showValue` is `true`
467
+ */
468
+ text ? : string
469
+ /**
470
+ * Text alignment: 'left', 'center' or 'right'. Also accepts direction neutral 'start' and 'end'.
471
+ * ...
472
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/ZoomSlider#config-textAlign)
473
+ */
474
+ textAlign ? : 'left'|'center'|'right'|'start'|'end'
475
+ /**
476
+ * A title to display for the widget. Only in effect when inside a container that uses it (such as TabPanel)
477
+ */
478
+ title ? : string
479
+ /**
480
+ * A config object for the tooltip to show while hovering the slider.
481
+ */
482
+ tooltip ? : TooltipConfig
483
+ /**
484
+ * 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
485
+ * the mouse up gesture of a drag.
486
+ * ...
487
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/ZoomSlider#config-triggerChangeOnInput)
488
+ */
489
+ triggerChangeOnInput ? : boolean
490
+ type ? : 'zoomslider'
491
+ /**
492
+ * Custom CSS class name suffixes to apply to the elements rendered by this widget. This may be specified
493
+ * as a space separated string, an array of strings, or as an object in which property names with truthy
494
+ * values are used as the class names.
495
+ * ...
496
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/ZoomSlider#config-ui)
497
+ */
498
+ ui ? : string|object
499
+ /**
500
+ * Unit to display next to the value, when configured with `showValue : true`
501
+ */
502
+ unit ? : string
503
+ /**
504
+ * Initial value.
505
+ * `String` value allows to link value by reference name.
506
+ * ...
507
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/ZoomSlider#config-value)
508
+ */
509
+ value ? : number|string
510
+ /**
511
+ * Width of the value label when `showValue` is enabled. If a number is specified, `px` will be used.
512
+ * ...
513
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/ZoomSlider#config-valueLabelWidth)
514
+ */
515
+ valueLabelWidth ? : string|number
516
+ /**
517
+ * A widgets weight determines its position among siblings when added to a [Container](https://bryntum.com/products/taskboard/docs/api/Core/widget/Container).
518
+ * Higher weights go further down.
519
+ */
520
+ weight ? : number
521
+ /**
522
+ * Widget's width, used to set element `style.width`. Either specify a valid width string or a number, which
523
+ * will get 'px' appended. We recommend using CSS as the primary way to control width, but in some cases
524
+ * this config is convenient.
525
+ */
526
+ width ? : string|number
527
+ /**
528
+ * The x position for the widget.
529
+ * ...
530
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/ZoomSlider#config-x)
531
+ */
532
+ x ? : number
533
+ /**
534
+ * The y position for the widget.
535
+ * ...
536
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/ZoomSlider#config-y)
537
+ */
538
+ y ? : number
539
+
540
+ }
541
+
542
+ @Component({
543
+ selector : 'bryntum-zoom-slider',
544
+ template : ''
545
+ })
546
+ export class BryntumZoomSliderComponent implements OnInit, OnDestroy {
547
+
548
+ public static instanceClass = ZoomSlider;
549
+
550
+ public static instanceName = 'ZoomSlider';
551
+
552
+ private static bryntumEvents: string[] = [
553
+ 'onBeforeDestroy',
554
+ 'onBeforeHide',
555
+ 'onBeforeShow',
556
+ 'onCatchAll',
557
+ 'onChange',
558
+ 'onDestroy',
559
+ 'onElementCreated',
560
+ 'onFocusIn',
561
+ 'onFocusOut',
562
+ 'onHide',
563
+ 'onInput',
564
+ 'onPaint',
565
+ 'onReadOnly',
566
+ 'onRecompose',
567
+ 'onResize',
568
+ 'onShow'
569
+ ];
570
+
571
+ private static bryntumFeatureNames: string[] = [
572
+
573
+ ];
574
+
575
+ private static bryntumConfigs: string[] = BryntumZoomSliderComponent.bryntumFeatureNames.concat([
576
+ 'adopt',
577
+ 'align',
578
+ 'alignSelf',
579
+ 'anchor',
580
+ 'appendTo',
581
+ 'ariaDescription',
582
+ 'ariaLabel',
583
+ 'bubbleEvents',
584
+ 'callOnFunctions',
585
+ 'catchEventHandlerExceptions',
586
+ 'centered',
587
+ 'cls',
588
+ 'color',
589
+ 'column',
590
+ 'config',
591
+ 'constrainTo',
592
+ 'content',
593
+ 'contentElementCls',
594
+ 'dataField',
595
+ 'dataset',
596
+ 'defaultBindProperty',
597
+ 'detectCSSCompatibilityIssues',
598
+ 'disabled',
599
+ 'dock',
600
+ 'draggable',
601
+ 'elementAttributes',
602
+ 'extraData',
603
+ 'flex',
604
+ 'floating',
605
+ 'height',
606
+ 'hidden',
607
+ 'hideAnimation',
608
+ 'html',
609
+ 'htmlCls',
610
+ 'id',
611
+ 'ignoreParentReadOnly',
612
+ 'insertBefore',
613
+ 'insertFirst',
614
+ 'keyMap',
615
+ 'label',
616
+ 'labelCls',
617
+ 'labelPosition',
618
+ 'labelWidth',
619
+ 'listeners',
620
+ 'localeClass',
621
+ 'localizable',
622
+ 'localizableProperties',
623
+ 'margin',
624
+ 'maskDefaults',
625
+ 'masked',
626
+ 'max',
627
+ 'maxHeight',
628
+ 'maximizeOnMobile',
629
+ 'maxWidth',
630
+ 'min',
631
+ 'minHeight',
632
+ 'minWidth',
633
+ 'monitorResize',
634
+ 'owner',
635
+ 'positioned',
636
+ 'preventTooltipOnTouch',
637
+ 'readOnly',
638
+ 'relayStoreEvents',
639
+ 'ripple',
640
+ 'rootElement',
641
+ 'rtl',
642
+ 'scrollable',
643
+ 'scrollAction',
644
+ 'showAnimation',
645
+ 'showSteps',
646
+ 'showTooltip',
647
+ 'showTooltipWhenDisabled',
648
+ 'showValue',
649
+ 'span',
650
+ 'step',
651
+ 'tab',
652
+ 'tag',
653
+ 'taskBoard',
654
+ 'text',
655
+ 'textAlign',
656
+ 'title',
657
+ 'tooltip',
658
+ 'triggerChangeOnInput',
659
+ 'type',
660
+ 'ui',
661
+ 'unit',
662
+ 'value',
663
+ 'valueLabelWidth',
664
+ 'weight',
665
+ 'width',
666
+ 'x',
667
+ 'y'
668
+ ]);
669
+
670
+ private static bryntumConfigsOnly: string[] = [
671
+ 'adopt',
672
+ 'align',
673
+ 'anchor',
674
+ 'ariaDescription',
675
+ 'ariaLabel',
676
+ 'bubbleEvents',
677
+ 'centered',
678
+ 'color',
679
+ 'config',
680
+ 'constrainTo',
681
+ 'contentElementCls',
682
+ 'dataField',
683
+ 'defaultBindProperty',
684
+ 'detectCSSCompatibilityIssues',
685
+ 'dock',
686
+ 'draggable',
687
+ 'elementAttributes',
688
+ 'floating',
689
+ 'hideAnimation',
690
+ 'htmlCls',
691
+ 'ignoreParentReadOnly',
692
+ 'labelCls',
693
+ 'labelPosition',
694
+ 'labelWidth',
695
+ 'listeners',
696
+ 'localeClass',
697
+ 'localizable',
698
+ 'localizableProperties',
699
+ 'maskDefaults',
700
+ 'masked',
701
+ 'monitorResize',
702
+ 'owner',
703
+ 'positioned',
704
+ 'preventTooltipOnTouch',
705
+ 'relayStoreEvents',
706
+ 'ripple',
707
+ 'rootElement',
708
+ 'scrollAction',
709
+ 'showAnimation',
710
+ 'showSteps',
711
+ 'showTooltip',
712
+ 'showTooltipWhenDisabled',
713
+ 'showValue',
714
+ 'tab',
715
+ 'tag',
716
+ 'taskBoard',
717
+ 'textAlign',
718
+ 'title',
719
+ 'type',
720
+ 'ui',
721
+ 'weight'
722
+ ];
723
+
724
+ private static bryntumProps: string[] = BryntumZoomSliderComponent.bryntumFeatureNames.concat([
725
+ 'alignSelf',
726
+ 'anchorSize',
727
+ 'appendTo',
728
+ 'callOnFunctions',
729
+ 'catchEventHandlerExceptions',
730
+ 'cls',
731
+ 'column',
732
+ 'content',
733
+ 'dataset',
734
+ 'disabled',
735
+ 'extraData',
736
+ 'flex',
737
+ 'focusVisible',
738
+ 'height',
739
+ 'hidden',
740
+ 'html',
741
+ 'id',
742
+ 'insertBefore',
743
+ 'insertFirst',
744
+ 'keyMap',
745
+ 'label',
746
+ 'margin',
747
+ 'max',
748
+ 'maxHeight',
749
+ 'maximizeOnMobile',
750
+ 'maxWidth',
751
+ 'min',
752
+ 'minHeight',
753
+ 'minWidth',
754
+ 'parent',
755
+ 'readOnly',
756
+ 'rtl',
757
+ 'scrollable',
758
+ 'span',
759
+ 'step',
760
+ 'text',
761
+ 'tooltip',
762
+ 'triggerChangeOnInput',
763
+ 'unit',
764
+ 'value',
765
+ 'valueLabelWidth',
766
+ 'width',
767
+ 'x',
768
+ 'y'
769
+ ]);
770
+
771
+ private elementRef: ElementRef;
772
+ public instance!: ZoomSlider;
773
+
774
+ private bryntumConfig = {
775
+ adopt : undefined,
776
+ appendTo : undefined,
777
+ href : undefined,
778
+ angularComponent : this,
779
+ features : {},
780
+ listeners : {}
781
+ };
782
+
783
+ constructor(element: ElementRef) {
784
+ this.elementRef = element;
785
+ }
786
+
787
+ // Configs only
788
+ @Input() adopt ! : HTMLElement|string;
789
+ @Input() align ! : AlignSpec|string;
790
+ @Input() anchor ! : boolean;
791
+ @Input() ariaDescription ! : string;
792
+ @Input() ariaLabel ! : string;
793
+ @Input() bubbleEvents ! : object;
794
+ @Input() centered ! : boolean;
795
+ @Input() color ! : string;
796
+ @Input() config ! : object;
797
+ @Input() constrainTo ! : HTMLElement|Widget|Rectangle;
798
+ @Input() contentElementCls ! : string|object;
799
+ @Input() dataField ! : string;
800
+ @Input() defaultBindProperty ! : string;
801
+ @Input() detectCSSCompatibilityIssues ! : boolean;
802
+ @Input() dock ! : 'top'|'bottom'|'left'|'right'|'start'|'end'|'header'|'pre-header'|object;
803
+ @Input() draggable ! : boolean|{
804
+ handleSelector?: string
805
+ };
806
+ @Input() elementAttributes ! : Record<string, string|null>;
807
+ @Input() floating ! : boolean;
808
+ @Input() hideAnimation ! : boolean|object;
809
+ @Input() htmlCls ! : string|object;
810
+ @Input() ignoreParentReadOnly ! : boolean;
811
+ @Input() labelCls ! : string|object;
812
+ @Input() labelPosition ! : 'before'|'above'|null;
813
+ @Input() labelWidth ! : string|number;
814
+ @Input() listeners ! : ZoomSliderListeners;
815
+ @Input() localeClass ! : typeof Base;
816
+ @Input() localizable ! : boolean;
817
+ @Input() localizableProperties ! : string[];
818
+ @Input() maskDefaults ! : MaskConfig;
819
+ @Input() masked ! : boolean|string|MaskConfig;
820
+ @Input() monitorResize ! : boolean|{
821
+ immediate?: boolean
822
+ };
823
+ @Input() owner ! : Widget|any;
824
+ @Input() positioned ! : boolean;
825
+ @Input() preventTooltipOnTouch ! : boolean;
826
+ @Input() relayStoreEvents ! : boolean;
827
+ @Input() ripple ! : boolean|{
828
+ delegate?: string
829
+ color?: string
830
+ radius?: number
831
+ clip?: string
832
+ };
833
+ @Input() rootElement ! : ShadowRoot|HTMLElement;
834
+ @Input() scrollAction ! : 'hide'|'realign'|null;
835
+ @Input() showAnimation ! : boolean|object;
836
+ @Input() showSteps ! : boolean;
837
+ @Input() showTooltip ! : boolean;
838
+ @Input() showTooltipWhenDisabled ! : boolean;
839
+ @Input() showValue ! : boolean|'thumb';
840
+ @Input() tab ! : boolean|TabConfig;
841
+ @Input() tag ! : string;
842
+ @Input() taskBoard ! : TaskBoard;
843
+ @Input() textAlign ! : 'left'|'center'|'right'|'start'|'end';
844
+ @Input() title ! : string;
845
+ @Input() type ! : 'zoomslider';
846
+ @Input() ui ! : string|object;
847
+ @Input() weight ! : number;
848
+
849
+ // Configs and properties
850
+ @Input() alignSelf ! : string;
851
+ @Input() appendTo ! : HTMLElement|string;
852
+ @Input() callOnFunctions ! : boolean;
853
+ @Input() catchEventHandlerExceptions ! : boolean;
854
+ @Input() cls ! : string|object;
855
+ @Input() column ! : number;
856
+ @Input() content ! : string;
857
+ @Input() dataset ! : object|Record<string, string>;
858
+ @Input() disabled ! : boolean|'inert';
859
+ @Input() extraData ! : any;
860
+ @Input() flex ! : number|string;
861
+ @Input() height ! : number|string;
862
+ @Input() hidden ! : boolean;
863
+ @Input() html ! : string|((widget: Widget) => string)|DomConfig|DomConfig[]|VueConfig;
864
+ @Input() id ! : string;
865
+ @Input() insertBefore ! : HTMLElement|string;
866
+ @Input() insertFirst ! : HTMLElement|string;
867
+ @Input() keyMap ! : Record<string, KeyMapConfig>;
868
+ @Input() label ! : string;
869
+ @Input() margin ! : number|string;
870
+ @Input() max ! : number;
871
+ @Input() maxHeight ! : string|number;
872
+ @Input() maximizeOnMobile ! : number|string;
873
+ @Input() maxWidth ! : string|number;
874
+ @Input() min ! : number;
875
+ @Input() minHeight ! : string|number;
876
+ @Input() minWidth ! : string|number;
877
+ @Input() readOnly ! : boolean;
878
+ @Input() rtl ! : boolean;
879
+ @Input() scrollable ! : Scroller|boolean|ScrollerConfig;
880
+ @Input() span ! : number;
881
+ @Input() step ! : number;
882
+ @Input() text ! : string;
883
+ @Input() tooltip ! : string|TooltipConfig;
884
+ @Input() triggerChangeOnInput ! : boolean;
885
+ @Input() unit ! : string;
886
+ @Input() value ! : number|string;
887
+ @Input() valueLabelWidth ! : string|number;
888
+ @Input() width ! : number|string;
889
+ @Input() x ! : number;
890
+ @Input() y ! : number;
891
+
892
+ // Properties only
893
+ @Input() anchorSize ! : number[];
894
+ @Input() focusVisible ! : boolean;
895
+ @Input() parent ! : Widget;
896
+
897
+ // Events emitters
898
+ /**
899
+ * Fires before an object is destroyed.
900
+ * @param {object} event Event object
901
+ * @param {Core.Base} event.source The Object that is being destroyed.
902
+ */
903
+ @Output() onBeforeDestroy: any = new EventEmitter<((event: { source: Base }) => void)|string>();
904
+ /**
905
+ * Triggered before a widget is hidden. Return `false` to prevent the action.
906
+ * @param {object} event Event object
907
+ * @param {Core.widget.Widget} event.source The widget being hidden.
908
+ */
909
+ @Output() onBeforeHide: any = new EventEmitter<((event: { source: Widget }) => Promise<boolean>|boolean|void)|string>();
910
+ /**
911
+ * Triggered before a widget is shown. Return `false` to prevent the action.
912
+ * @param {object} event Event object
913
+ * @param {Core.widget.Widget,any} event.source The widget being shown
914
+ */
915
+ @Output() onBeforeShow: any = new EventEmitter<((event: { source: Widget|any }) => Promise<boolean>|boolean|void)|string>();
916
+ /**
917
+ * Fires when any other event is fired from the object.
918
+ * ...
919
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/ZoomSlider#event-catchAll)
920
+ * @param {object} event Event object
921
+ * @param {{[key: string]: any, type: string}} event.event The Object that contains event details
922
+ * @param {string} event.event.type The type of the event which is caught by the listener
923
+ */
924
+ @Output() onCatchAll: any = new EventEmitter<((event: {[key: string]: any, type: string}) => void)|string>();
925
+ /**
926
+ * Fired after the slider value changes (on mouse up following slider interaction).
927
+ * @param {object} event Event object
928
+ * @param {number} event.value The value
929
+ * @param {boolean} event.userAction Triggered by user taking an action (`true`) or by setting a value (`false`)
930
+ * @param {Core.widget.Slider} event.source The slider
931
+ */
932
+ @Output() onChange: any = new EventEmitter<((event: { value: number, userAction: boolean, source: Slider }) => void)|string>();
933
+ /**
934
+ * Fires when an object is destroyed.
935
+ * @param {object} event Event object
936
+ * @param {Core.Base} event.source The Object that is being destroyed.
937
+ */
938
+ @Output() onDestroy: any = new EventEmitter<((event: { source: Base }) => void)|string>();
939
+ /**
940
+ * Triggered when a widget's [element](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#property-element) is available.
941
+ * @param {object} event Event object
942
+ * @param {HTMLElement} event.element The Widget's element.
943
+ */
944
+ @Output() onElementCreated: any = new EventEmitter<((event: { element: HTMLElement }) => void)|string>();
945
+ /**
946
+ * Fired when focus enters this Widget.
947
+ * @param {object} event Event object
948
+ * @param {Core.widget.Widget} event.source This Widget
949
+ * @param {HTMLElement} event.fromElement The element which lost focus.
950
+ * @param {HTMLElement} event.toElement The element which gained focus.
951
+ * @param {Core.widget.Widget} event.fromWidget The widget which lost focus.
952
+ * @param {Core.widget.Widget} event.toWidget The widget which gained focus.
953
+ * @param {boolean} event.backwards `true` if the `toElement` is before the `fromElement` in document order.
954
+ */
955
+ @Output() onFocusIn: any = new EventEmitter<((event: { source: Widget, fromElement: HTMLElement, toElement: HTMLElement, fromWidget: Widget, toWidget: Widget, backwards: boolean }) => void)|string>();
956
+ /**
957
+ * Fired when focus exits this Widget's ownership tree. This is different from a `blur` event.
958
+ * focus moving from within this Widget's ownership tree, even if there are floating widgets
959
+ * will not trigger this event. This is when focus exits this widget completely.
960
+ * @param {object} event Event object
961
+ * @param {Core.widget.Widget} event.source This Widget
962
+ * @param {HTMLElement} event.fromElement The element which lost focus.
963
+ * @param {HTMLElement} event.toElement The element which gained focus.
964
+ * @param {Core.widget.Widget} event.fromWidget The widget which lost focus.
965
+ * @param {Core.widget.Widget} event.toWidget The widget which gained focus.
966
+ * @param {boolean} event.backwards `true` if the `toElement` is before the `fromElement` in document order.
967
+ */
968
+ @Output() onFocusOut: any = new EventEmitter<((event: { source: Widget, fromElement: HTMLElement, toElement: HTMLElement, fromWidget: Widget, toWidget: Widget, backwards: boolean }) => void)|string>();
969
+ /**
970
+ * Triggered after a widget was hidden
971
+ * @param {object} event Event object
972
+ * @param {Core.widget.Widget} event.source The widget
973
+ */
974
+ @Output() onHide: any = new EventEmitter<((event: { source: Widget }) => void)|string>();
975
+ /**
976
+ * Fired while slider thumb is being dragged.
977
+ * @param {object} event Event object
978
+ * @param {Core.widget.Slider} event.source The slider
979
+ * @param {number} event.value The value
980
+ */
981
+ @Output() onInput: any = new EventEmitter<((event: { source: Slider, value: number }) => void)|string>();
982
+ /**
983
+ * Triggered when a widget which had been in a non-visible state for any reason
984
+ * achieves visibility.
985
+ * ...
986
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/ZoomSlider#event-paint)
987
+ * @param {object} event Event object
988
+ * @param {Core.widget.Widget} event.source The widget being painted.
989
+ * @param {boolean} event.firstPaint `true` if this is the first paint.
990
+ */
991
+ @Output() onPaint: any = new EventEmitter<((event: { source: Widget, firstPaint: boolean }) => void)|string>();
992
+ /**
993
+ * Fired when a Widget's read only state is toggled
994
+ * @param {object} event Event object
995
+ * @param {boolean} event.readOnly Read only or not
996
+ */
997
+ @Output() onReadOnly: any = new EventEmitter<((event: { readOnly: boolean }) => void)|string>();
998
+ /**
999
+ * This event is fired after a widget's elements have been synchronized due to a direct or indirect call
1000
+ * 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.
1001
+ */
1002
+ @Output() onRecompose: any = new EventEmitter<(() => void)|string>();
1003
+ /**
1004
+ * 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`*.
1005
+ * @param {object} event Event object
1006
+ * @param {Core.widget.Widget} event.source This Widget
1007
+ * @param {number} event.width The new width
1008
+ * @param {number} event.height The new height
1009
+ * @param {number} event.oldWidth The old width
1010
+ * @param {number} event.oldHeight The old height
1011
+ */
1012
+ @Output() onResize: any = new EventEmitter<((event: { source: Widget, width: number, height: number, oldWidth: number, oldHeight: number }) => void)|string>();
1013
+ /**
1014
+ * Triggered after a widget is shown.
1015
+ * @param {object} event Event object
1016
+ * @param {Core.widget.Widget} event.source The widget
1017
+ */
1018
+ @Output() onShow: any = new EventEmitter<((event: { source: Widget }) => void)|string>();
1019
+
1020
+ /**
1021
+ * Create and append the underlying widget
1022
+ */
1023
+ ngOnInit(): void {
1024
+ const
1025
+ me = this,
1026
+ {
1027
+ elementRef,
1028
+ bryntumConfig
1029
+ } = me,
1030
+ {
1031
+ instanceClass,
1032
+ instanceName,
1033
+ bryntumConfigs,
1034
+ bryntumEvents
1035
+ } = BryntumZoomSliderComponent;
1036
+
1037
+ bryntumConfigs.filter(prop => prop in this).forEach(prop => {
1038
+ // @ts-ignore
1039
+ WrapperHelper.applyPropValue(bryntumConfig, prop, this[prop]);
1040
+ if (['features', 'config'].includes(prop)) {
1041
+ WrapperHelper.devWarningConfigProp(instanceName, prop);
1042
+ }
1043
+ });
1044
+ // @ts-ignore
1045
+ bryntumEvents.filter(event => this[event] && this[event].observers.length > 0).forEach(event => {
1046
+ const
1047
+ uncapitalize = (str: string) => str.charAt(0).toLowerCase() + str.slice(1),
1048
+ eventName = (str: string) => uncapitalize(str.slice(2));
1049
+
1050
+ // @ts-ignore
1051
+ bryntumConfig.listeners[eventName(event)] = e => {
1052
+ // @ts-ignore
1053
+ me[event].emit(e);
1054
+ // EventEmitter does not return values in the normal way, work around it by setting `returnValue` flag
1055
+ // in Angular listeners
1056
+ return e.returnValue;
1057
+ };
1058
+ });
1059
+
1060
+ // If component has no container specified in config then use adopt to Wrapper's element
1061
+ const
1062
+ containerParam = [
1063
+ 'adopt',
1064
+ 'appendTo',
1065
+ 'insertAfter',
1066
+ 'insertBefore'
1067
+ // @ts-ignore
1068
+ ].find(prop => bryntumConfig[prop]);
1069
+ if (!containerParam) {
1070
+ if (instanceName === 'Button' || elementRef.nativeElement.getRootNode() instanceof ShadowRoot) {
1071
+ // Button should always be <a> or <button> inside owner element
1072
+ bryntumConfig.appendTo = elementRef.nativeElement;
1073
+ }
1074
+ else {
1075
+ bryntumConfig.adopt = elementRef.nativeElement;
1076
+ }
1077
+ }
1078
+ else {
1079
+ WrapperHelper.devWarningContainer(instanceName, containerParam);
1080
+ }
1081
+
1082
+ // @ts-ignore
1083
+ me.instance = instanceName === 'Widget' ? Widget.create(bryntumConfig) : new instanceClass(bryntumConfig);
1084
+
1085
+ }
1086
+
1087
+ /**
1088
+ * Watch for changes
1089
+ * @param changes
1090
+ */
1091
+ ngOnChanges(changes: SimpleChanges): void {
1092
+ const
1093
+ { instance } = this,
1094
+ { instanceName } = BryntumZoomSliderComponent;
1095
+ if (!instance) {
1096
+ return;
1097
+ }
1098
+ // Iterate over all changes
1099
+ Object.entries(changes).forEach(([prop, change]) => {
1100
+ const
1101
+ newValue = (change as SimpleChange).currentValue,
1102
+ { instance } = this,
1103
+ { bryntumConfigsOnly, bryntumProps } = BryntumZoomSliderComponent;
1104
+ if (bryntumProps.includes(prop)) {
1105
+ WrapperHelper.applyPropValue(instance, prop, newValue, false);
1106
+ if (bryntumConfigsOnly.includes(prop)) {
1107
+ WrapperHelper.devWarningUpdateProp(instanceName, prop);
1108
+ }
1109
+ }
1110
+ });
1111
+ }
1112
+
1113
+ /**
1114
+ * Destroy the component
1115
+ */
1116
+ ngOnDestroy(): void {
1117
+ // @ts-ignore
1118
+ if (this.instance && this.instance.destroy) {
1119
+ this.instance.destroy();
1120
+ }
1121
+ }
1122
+ }