@bryntum/taskboard-react-thin 7.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (96) hide show
  1. package/README.md +52 -0
  2. package/lib/BryntumColumnCombo.d.ts +268 -0
  3. package/lib/BryntumColumnCombo.js +203 -0
  4. package/lib/BryntumColumnCombo.js.map +1 -0
  5. package/lib/BryntumColumnFilterField.d.ts +234 -0
  6. package/lib/BryntumColumnFilterField.js +170 -0
  7. package/lib/BryntumColumnFilterField.js.map +1 -0
  8. package/lib/BryntumColumnPickerButton.d.ts +208 -0
  9. package/lib/BryntumColumnPickerButton.js +149 -0
  10. package/lib/BryntumColumnPickerButton.js.map +1 -0
  11. package/lib/BryntumColumnScrollButton.d.ts +208 -0
  12. package/lib/BryntumColumnScrollButton.js +149 -0
  13. package/lib/BryntumColumnScrollButton.js.map +1 -0
  14. package/lib/BryntumProjectCombo.d.ts +269 -0
  15. package/lib/BryntumProjectCombo.js +204 -0
  16. package/lib/BryntumProjectCombo.js.map +1 -0
  17. package/lib/BryntumResourcesCombo.d.ts +268 -0
  18. package/lib/BryntumResourcesCombo.js +203 -0
  19. package/lib/BryntumResourcesCombo.js.map +1 -0
  20. package/lib/BryntumSwimlaneCombo.d.ts +268 -0
  21. package/lib/BryntumSwimlaneCombo.js +203 -0
  22. package/lib/BryntumSwimlaneCombo.js.map +1 -0
  23. package/lib/BryntumSwimlaneFilterField.d.ts +236 -0
  24. package/lib/BryntumSwimlaneFilterField.js +172 -0
  25. package/lib/BryntumSwimlaneFilterField.js.map +1 -0
  26. package/lib/BryntumSwimlanePickerButton.d.ts +208 -0
  27. package/lib/BryntumSwimlanePickerButton.js +149 -0
  28. package/lib/BryntumSwimlanePickerButton.js.map +1 -0
  29. package/lib/BryntumSwimlaneScrollButton.d.ts +208 -0
  30. package/lib/BryntumSwimlaneScrollButton.js +149 -0
  31. package/lib/BryntumSwimlaneScrollButton.js.map +1 -0
  32. package/lib/BryntumTagCombo.d.ts +269 -0
  33. package/lib/BryntumTagCombo.js +204 -0
  34. package/lib/BryntumTagCombo.js.map +1 -0
  35. package/lib/BryntumTaskBoard.d.ts +610 -0
  36. package/lib/BryntumTaskBoard.js +287 -0
  37. package/lib/BryntumTaskBoard.js.map +1 -0
  38. package/lib/BryntumTaskBoardBase.d.ts +609 -0
  39. package/lib/BryntumTaskBoardBase.js +286 -0
  40. package/lib/BryntumTaskBoardBase.js.map +1 -0
  41. package/lib/BryntumTaskBoardFieldFilterPicker.d.ts +201 -0
  42. package/lib/BryntumTaskBoardFieldFilterPicker.js +159 -0
  43. package/lib/BryntumTaskBoardFieldFilterPicker.js.map +1 -0
  44. package/lib/BryntumTaskBoardFieldFilterPickerGroup.d.ts +209 -0
  45. package/lib/BryntumTaskBoardFieldFilterPickerGroup.js +165 -0
  46. package/lib/BryntumTaskBoardFieldFilterPickerGroup.js.map +1 -0
  47. package/lib/BryntumTaskBoardProjectModel.d.ts +218 -0
  48. package/lib/BryntumTaskBoardProjectModel.js +139 -0
  49. package/lib/BryntumTaskBoardProjectModel.js.map +1 -0
  50. package/lib/BryntumTaskColorCombo.d.ts +232 -0
  51. package/lib/BryntumTaskColorCombo.js +169 -0
  52. package/lib/BryntumTaskColorCombo.js.map +1 -0
  53. package/lib/BryntumTaskFilterField.d.ts +236 -0
  54. package/lib/BryntumTaskFilterField.js +172 -0
  55. package/lib/BryntumTaskFilterField.js.map +1 -0
  56. package/lib/BryntumTodoListField.d.ts +230 -0
  57. package/lib/BryntumTodoListField.js +165 -0
  58. package/lib/BryntumTodoListField.js.map +1 -0
  59. package/lib/BryntumUndoRedo.d.ts +188 -0
  60. package/lib/BryntumUndoRedo.js +150 -0
  61. package/lib/BryntumUndoRedo.js.map +1 -0
  62. package/lib/BryntumZoomSlider.d.ts +186 -0
  63. package/lib/BryntumZoomSlider.js +143 -0
  64. package/lib/BryntumZoomSlider.js.map +1 -0
  65. package/lib/WrapperHelper.d.ts +26 -0
  66. package/lib/WrapperHelper.js +569 -0
  67. package/lib/WrapperHelper.js.map +1 -0
  68. package/lib/index.d.ts +21 -0
  69. package/lib/index.js +22 -0
  70. package/lib/index.js.map +1 -0
  71. package/license.pdf +0 -0
  72. package/licenses.md +310 -0
  73. package/package.json +25 -0
  74. package/src/BryntumColumnCombo.tsx +1240 -0
  75. package/src/BryntumColumnFilterField.tsx +1019 -0
  76. package/src/BryntumColumnPickerButton.tsx +896 -0
  77. package/src/BryntumColumnScrollButton.tsx +896 -0
  78. package/src/BryntumProjectCombo.tsx +1241 -0
  79. package/src/BryntumResourcesCombo.tsx +1239 -0
  80. package/src/BryntumSwimlaneCombo.tsx +1239 -0
  81. package/src/BryntumSwimlaneFilterField.tsx +1032 -0
  82. package/src/BryntumSwimlanePickerButton.tsx +896 -0
  83. package/src/BryntumSwimlaneScrollButton.tsx +896 -0
  84. package/src/BryntumTagCombo.tsx +1244 -0
  85. package/src/BryntumTaskBoard.tsx +2021 -0
  86. package/src/BryntumTaskBoardBase.tsx +2019 -0
  87. package/src/BryntumTaskBoardFieldFilterPicker.tsx +930 -0
  88. package/src/BryntumTaskBoardFieldFilterPickerGroup.tsx +983 -0
  89. package/src/BryntumTaskBoardProjectModel.tsx +779 -0
  90. package/src/BryntumTaskColorCombo.tsx +996 -0
  91. package/src/BryntumTaskFilterField.tsx +1032 -0
  92. package/src/BryntumTodoListField.tsx +986 -0
  93. package/src/BryntumUndoRedo.tsx +871 -0
  94. package/src/BryntumZoomSlider.tsx +824 -0
  95. package/src/WrapperHelper.tsx +1125 -0
  96. package/src/index.ts +25 -0
@@ -0,0 +1,824 @@
1
+ /**
2
+ * React wrapper for Bryntum ZoomSlider
3
+ */
4
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
5
+ import React, { RefObject } from 'react';
6
+ import { AlignSpec, Base, DomConfig, KeyMapConfig, MaskConfig, Rectangle, Scroller, ScrollerConfig, Slider, TabConfig, TooltipConfig, VueConfig, Widget } from '@bryntum/core-thin';
7
+ import { TaskBoard, ZoomSlider, ZoomSliderListeners } from '@bryntum/taskboard-thin';
8
+
9
+ import { createWidget, shouldComponentUpdate, processWidgetContent } from './WrapperHelper.js';
10
+
11
+ export type BryntumZoomSliderProps = {
12
+ // Configs
13
+ /**
14
+ * Element (or element id) to adopt as this Widget's encapsulating element. The widget's
15
+ * content will be placed inside this element.
16
+ * ...
17
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/ZoomSlider#config-adopt)
18
+ */
19
+ adopt? : HTMLElement|string
20
+ /**
21
+ * *Only valid if this Widget is [floating](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#config-floating).*
22
+ * ...
23
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/ZoomSlider#config-align)
24
+ */
25
+ align? : AlignSpec|string
26
+ /**
27
+ * 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
28
+ * flexbox layout. This config allows you to set this widget's
29
+ * [align-self](https://developer.mozilla.org/en-US/docs/Web/CSS/align-self) style.
30
+ */
31
+ alignSelf? : string
32
+ /**
33
+ * *Only valid if this Widget is [floating](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#config-floating) and being shown through [showBy](#Core/widget/Widget#function-showBy).*
34
+ * `true` to show a connector arrow pointing to the align target.
35
+ */
36
+ anchor? : boolean
37
+ /**
38
+ * Element (or the id of an element) to append this widget's element to. Can be configured, or set once at
39
+ * runtime. To access the element of a rendered widget, see [element](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#property-element).
40
+ */
41
+ appendTo? : HTMLElement|string
42
+ /**
43
+ * A localizable string (May contain `'L{}'` tokens which resolve in the locale file) to inject
44
+ * into an element which will be linked using the `aria-describedby` attribute.
45
+ * ...
46
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/ZoomSlider#config-ariaDescription)
47
+ */
48
+ ariaDescription? : string
49
+ /**
50
+ * A localizable string (May contain `'L{}'` tokens which resolve in the locale file) to inject as
51
+ * the `aria-label` attribute.
52
+ * ...
53
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/ZoomSlider#config-ariaLabel)
54
+ */
55
+ ariaLabel? : string
56
+ /**
57
+ * An object where property names with a truthy value indicate which events should bubble up the ownership
58
+ * hierarchy when triggered.
59
+ * ...
60
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/ZoomSlider#config-bubbleEvents)
61
+ */
62
+ bubbleEvents? : object
63
+ /**
64
+ * Set to `false` to not call onXXX method names (e.g. `onShow`, `onClick`), as an easy way to listen for events.
65
+ * ...
66
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/ZoomSlider#config-callOnFunctions)
67
+ */
68
+ callOnFunctions? : boolean
69
+ /**
70
+ * By default, if an event handler throws an exception, the error propagates up the stack and the
71
+ * application state is undefined. Code which follows the event handler will *not* be executed.
72
+ * ...
73
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/ZoomSlider#config-catchEventHandlerExceptions)
74
+ */
75
+ catchEventHandlerExceptions? : boolean
76
+ /**
77
+ * *Only valid if this Widget is [floating](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#config-floating).*
78
+ * Set to `true` to centre the Widget in browser viewport space.
79
+ */
80
+ centered? : boolean
81
+ /**
82
+ * Custom CSS classes to add to element.
83
+ * May be specified as a space separated string, or as an object in which property names
84
+ * with truthy values are used as the class names:
85
+ * ...
86
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/ZoomSlider#config-cls)
87
+ */
88
+ cls? : string|object
89
+ /**
90
+ * Applies the specified color to the widget, by setting the `--b-primary` CSS variable in the widgets
91
+ * `style` block.
92
+ * ...
93
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/ZoomSlider#config-color)
94
+ */
95
+ color? : string
96
+ /**
97
+ * Programmatic control over which column to start in when used in a grid layout.
98
+ */
99
+ column? : number
100
+ config? : object
101
+ /**
102
+ * *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).*
103
+ * Element, Widget or Rectangle to which this Widget is constrained.
104
+ */
105
+ constrainTo? : HTMLElement|Widget|Rectangle
106
+ /**
107
+ * The HTML content that coexists with sibling elements which may have been added to the
108
+ * [contentElement](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#property-contentElement) by plugins and features.
109
+ * When specifying html, this widget's element will also have the [htmlCls](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#config-htmlCls)
110
+ * class added to its classList, to allow targeted styling.
111
+ */
112
+ content? : string
113
+ /**
114
+ * Custom CSS classes to add to the [contentElement](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#property-contentElement).
115
+ * May be specified as a space separated string, or as an object in which property names
116
+ * with truthy values are used as the class names:
117
+ * ...
118
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/ZoomSlider#config-contentElementCls)
119
+ */
120
+ contentElementCls? : string|object
121
+ /**
122
+ * When this Widget configuration is used in the Grid's RowExpander feature's `widget` config, provide the
123
+ * field on the expanded record to use for populating this widget's store (if applicable)
124
+ */
125
+ dataField? : string
126
+ /**
127
+ * Object to apply to elements dataset (each key will be used as a data-attribute on the element)
128
+ */
129
+ dataset? : Record<string, string>
130
+ /**
131
+ * The name of the property to set when a single value is to be applied to this Widget. Such as when used
132
+ * in a grid WidgetColumn, this is the property to which the column's `field` is applied.
133
+ */
134
+ defaultBindProperty? : string
135
+ /**
136
+ * Check for CSS compatibility issues when upgrading to v7. Performs the following checks:
137
+ * ...
138
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/ZoomSlider#config-detectCSSCompatibilityIssues)
139
+ */
140
+ detectCSSCompatibilityIssues? : boolean
141
+ /**
142
+ * 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
143
+ * cannot be focused, uses a different rendition (usually greyish) and does not allow selecting its value.
144
+ * ...
145
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/ZoomSlider#config-disabled)
146
+ */
147
+ disabled? : boolean|'inert'
148
+ /**
149
+ * Controls the placement of this widget when it is added to a [panel's ](https://bryntum.com/products/taskboard/docs/api/Core/widget/Panel)
150
+ * [strips collection](https://bryntum.com/products/taskboard/docs/api/Core/widget/Panel#config-strips). Typical values for this config are `'top'`,
151
+ * `'bottom'`, `'left'`, or `'right'`, which cause the widget to be placed on that side of the panel's
152
+ * body. Such widgets are called "edge strips".
153
+ * ...
154
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/ZoomSlider#config-dock)
155
+ */
156
+ dock? : 'top'|'bottom'|'left'|'right'|'start'|'end'|'header'|'pre-header'|object
157
+ /**
158
+ * *Only valid if this Widget is [floating](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#config-floating).*
159
+ * Set to `true` to be able to drag a widget freely on the page. Or set to an object with a ´handleSelector´
160
+ * property which controls when a drag should start.
161
+ * ...
162
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/ZoomSlider#config-draggable)
163
+ */
164
+ draggable? : boolean|{
165
+ handleSelector?: string
166
+ }
167
+ /**
168
+ * An object specifying attributes to assign to the root element of this widget.
169
+ * Set `null` value to attribute to remove it.
170
+ * ...
171
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/ZoomSlider#config-elementAttributes)
172
+ */
173
+ elementAttributes? : Record<string, string|null>
174
+ extraData? : any
175
+ /**
176
+ * 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
177
+ * flexbox layout. This config allows you to set this widget's
178
+ * [flex](https://developer.mozilla.org/en-US/docs/Web/CSS/flex) style.
179
+ * This may be configured as a single number or a `&lt;flex-grow&gt; &lt;flex-shrink&gt; &lt;flex-basis&gt;` format string.
180
+ * numeric-only values are interpreted as the `flex-grow` value.
181
+ */
182
+ flex? : number|string
183
+ /**
184
+ * Set to `true` to move the widget out of the document flow and position it
185
+ * absolutely in browser viewport space.
186
+ */
187
+ floating? : boolean
188
+ /**
189
+ * Widget's height, used to set element `style.height`. Either specify a valid height string or a number,
190
+ * which will get 'px' appended. We recommend using CSS as the primary way to control height, but in some
191
+ * cases this config is convenient.
192
+ */
193
+ height? : string|number
194
+ /**
195
+ * Configure with true to make widget initially hidden.
196
+ */
197
+ hidden? : boolean
198
+ /**
199
+ * *Only valid if this Widget is [floating](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#config-floating).*
200
+ * ...
201
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/ZoomSlider#config-hideAnimation)
202
+ */
203
+ hideAnimation? : boolean|object
204
+ /**
205
+ * The HTML to display initially or a function returning the markup (called at widget construction time).
206
+ * ...
207
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/ZoomSlider#config-html)
208
+ * @param {Core.widget.Widget} widget The calling Widget
209
+ * @returns {string}
210
+ */
211
+ html? : string|((widget: Widget) => string)|DomConfig|DomConfig[]|VueConfig
212
+ /**
213
+ * The CSS class(es) to add when HTML content is being applied to this widget.
214
+ */
215
+ htmlCls? : string|object
216
+ /**
217
+ * Widget id, if not specified one will be generated. Also used for lookups through Widget.getById
218
+ */
219
+ id? : string
220
+ /**
221
+ * Determines if the widgets read-only state should be controlled by its parent.
222
+ * ...
223
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/ZoomSlider#config-ignoreParentReadOnly)
224
+ */
225
+ ignoreParentReadOnly? : boolean
226
+ /**
227
+ * 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.
228
+ */
229
+ insertBefore? : HTMLElement|string
230
+ /**
231
+ * 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.
232
+ */
233
+ insertFirst? : HTMLElement|string
234
+ /**
235
+ * An object whose keys are the [key](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/key) name
236
+ * and optional modifier prefixes: `'Ctrl+'`, `'Alt+'`, `'Meta+'`, and `'Shift+'` (case-insensitive). The values
237
+ * are the name of the instance method to call when the keystroke is received.
238
+ * ...
239
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/ZoomSlider#config-keyMap)
240
+ */
241
+ keyMap? : Record<string, KeyMapConfig>
242
+ /**
243
+ * Label, prepended to field
244
+ */
245
+ label? : string
246
+ /**
247
+ * 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)
248
+ */
249
+ labelCls? : string|object
250
+ /**
251
+ * Label position, either 'before' the field or 'above' the field
252
+ * ...
253
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/ZoomSlider#config-labelPosition)
254
+ */
255
+ labelPosition? : 'before'|'above'|null
256
+ /**
257
+ * The width to apply to the `&lt;label&gt;` element. If a number is specified, `px` will be used.
258
+ */
259
+ labelWidth? : string|number
260
+ /**
261
+ * The listener set for this object.
262
+ * ...
263
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/ZoomSlider#config-listeners)
264
+ */
265
+ listeners? : ZoomSliderListeners
266
+ /**
267
+ * A class translations of which are used for translating this entity.
268
+ * This is often used when translations of an item are defined on its container class.
269
+ * For example:
270
+ * ...
271
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/ZoomSlider#config-localeClass)
272
+ */
273
+ localeClass? : typeof Base
274
+ /**
275
+ * Set to `false` to disable localization of this object.
276
+ */
277
+ localizable? : boolean
278
+ /**
279
+ * List of properties which values should be translated automatically upon a locale applying.
280
+ * In case there is a need to localize not typical value (not a String value or a field with re-defined setter/getter),
281
+ * you could use 'localeKey' meta configuration.
282
+ * Example:
283
+ * ...
284
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/ZoomSlider#config-localizableProperties)
285
+ */
286
+ localizableProperties? : string[]
287
+ /**
288
+ * Widget's margin. This may be configured as a single number or a `TRBL` format string.
289
+ * numeric-only values are interpreted as pixels.
290
+ */
291
+ margin? : number|string
292
+ /**
293
+ * This config object contains the defaults for the [Mask](https://bryntum.com/products/taskboard/docs/api/Core/widget/Mask) created for the
294
+ * [masked](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#config-masked) config. Any properties specified in the `masked` config will override these
295
+ * values.
296
+ */
297
+ maskDefaults? : MaskConfig
298
+ /**
299
+ * Set to `true` to apply the default mask to the widget. Alternatively, this can be the mask message or a
300
+ * [Mask](https://bryntum.com/products/taskboard/docs/api/Core/widget/Mask) config object.
301
+ */
302
+ masked? : boolean|string|MaskConfig
303
+ /**
304
+ * Maximum value
305
+ */
306
+ max? : number
307
+ /**
308
+ * The element's maxHeight. Can be either a String or a Number (which will have 'px' appended). Note that
309
+ * like [height](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#config-height), *reading* the value will return the numeric value in pixels.
310
+ */
311
+ maxHeight? : string|number
312
+ /**
313
+ * *Only valid if this Widget is [floating](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#config-floating).*
314
+ * ...
315
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/ZoomSlider#config-maximizeOnMobile)
316
+ */
317
+ maximizeOnMobile? : number|string
318
+ /**
319
+ * The elements maxWidth. Can be either a String or a Number (which will have 'px' appended). Note that
320
+ * like [width](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#config-width), *reading* the value will return the numeric value in pixels.
321
+ */
322
+ maxWidth? : string|number
323
+ /**
324
+ * Minimum value
325
+ */
326
+ min? : number
327
+ /**
328
+ * The element's minHeight. Can be either a String or a Number (which will have 'px' appended). Note that
329
+ * like [height](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#config-height), *reading* the value will return the numeric value in pixels.
330
+ */
331
+ minHeight? : string|number
332
+ /**
333
+ * The elements minWidth. Can be either a String or a Number (which will have 'px' appended). Note that
334
+ * like [width](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#config-width), *reading* the value will return the numeric value in pixels.
335
+ */
336
+ minWidth? : string|number
337
+ /**
338
+ * When this is configured as `true` a [ResizeObserver](https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserver)
339
+ * is used to monitor this element for size changes caused by either style manipulation, or by CSS
340
+ * layout.
341
+ * ...
342
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/ZoomSlider#config-monitorResize)
343
+ */
344
+ monitorResize? : boolean|{
345
+ immediate?: boolean
346
+ }
347
+ /**
348
+ * The owning Widget of this Widget. If this Widget is directly contained (that is, it is one of the
349
+ * [items](https://bryntum.com/products/taskboard/docs/api/Core/widget/Container#property-items) of a Container), this config will be ignored. In this case
350
+ * the owner is <strong>always</strong> the encapsulating Container.
351
+ * ...
352
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/ZoomSlider#config-owner)
353
+ */
354
+ owner? : Widget|any
355
+ /**
356
+ * 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
357
+ * not participate in the standard layout of that widget, and must be positioned relatively to that
358
+ * widget's [contentElement](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#property-contentElement).
359
+ * ...
360
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/ZoomSlider#config-positioned)
361
+ */
362
+ positioned? : boolean
363
+ /**
364
+ * Prevent tooltip from being displayed on touch devices. Useful for example for buttons that display a
365
+ * menu on click etc, since the tooltip would be displayed at the same time.
366
+ */
367
+ preventTooltipOnTouch? : boolean
368
+ /**
369
+ * Whether this widget is read-only. This is only valid if the widget is an input
370
+ * field, <strong>or contains input fields at any depth</strong>.
371
+ * ...
372
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/ZoomSlider#config-readOnly)
373
+ */
374
+ readOnly? : boolean
375
+ relayStoreEvents? : boolean
376
+ /**
377
+ * Configure as `true` to have the component display a translucent ripple when its
378
+ * [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
379
+ * current theme supports ripples</em>. Out of the box, only the Material theme supports ripples.
380
+ * ...
381
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/ZoomSlider#config-ripple)
382
+ */
383
+ ripple? : boolean|{
384
+ delegate?: string
385
+ color?: string
386
+ radius?: number
387
+ clip?: string
388
+ }
389
+ /**
390
+ * 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`
391
+ */
392
+ rootElement? : ShadowRoot|HTMLElement
393
+ /**
394
+ * This may be configured as `true` to make the widget's element use the `direction:rtl` style.
395
+ * ...
396
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/ZoomSlider#config-rtl)
397
+ */
398
+ rtl? : boolean
399
+ /**
400
+ * Specifies whether (and optionally in which axes) a Widget may scroll. `true` means this widget may scroll
401
+ * in both axes. May be an object containing boolean `overflowX` and `overflowY` properties which are
402
+ * applied to CSS style properties `overflowX` and `overflowY`. If they are boolean, they are translated to
403
+ * CSS overflow properties thus:
404
+ * ...
405
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/ZoomSlider#config-scrollable)
406
+ */
407
+ scrollable? : boolean|ScrollerConfig|Scroller
408
+ /**
409
+ * Defines what to do if document is scrolled while Widget is visible (only relevant when floating is set to `true`).
410
+ * Valid values: ´null´: do nothing, ´hide´: hide the widget or ´realign´: realign to the target if possible.
411
+ */
412
+ scrollAction? : 'hide'|'realign'|null
413
+ /**
414
+ * *Only valid if this Widget is [floating](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#config-floating).*
415
+ * ...
416
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/ZoomSlider#config-showAnimation)
417
+ */
418
+ showAnimation? : boolean|object
419
+ /**
420
+ * Show the step markers
421
+ */
422
+ showSteps? : boolean
423
+ /**
424
+ * Show the slider value in a tooltip
425
+ */
426
+ showTooltip? : boolean
427
+ /**
428
+ * 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)
429
+ */
430
+ showTooltipWhenDisabled? : boolean
431
+ /**
432
+ * Show value in internal label (specify `true`), or in the thumb (specify 'thumb').
433
+ */
434
+ showValue? : boolean|'thumb'
435
+ /**
436
+ * Programmatic control over how many columns to span when used in a grid layout.
437
+ */
438
+ span? : number
439
+ /**
440
+ * Step size
441
+ */
442
+ step? : number
443
+ /**
444
+ * 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
445
+ * [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
446
+ * this widget:
447
+ * ...
448
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/ZoomSlider#config-tab)
449
+ */
450
+ tab? : boolean|TabConfig
451
+ /**
452
+ * The tag name of this Widget's root element
453
+ */
454
+ tag? : string
455
+ /**
456
+ * Auto detected when used within a TaskBoard. If you add the widget elsewhere, it will try to find an instance
457
+ * of TaskBoard on page. If that fails you have to supply this config to connect it to a TaskBoard manually.
458
+ * ...
459
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/ZoomSlider#config-taskBoard)
460
+ */
461
+ taskBoard? : TaskBoard
462
+ /**
463
+ * Text for the sliders internal label. Appends value if `showValue` is `true`
464
+ */
465
+ text? : string
466
+ /**
467
+ * Text alignment: 'left', 'center' or 'right'. Also accepts direction neutral 'start' and 'end'.
468
+ * ...
469
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/ZoomSlider#config-textAlign)
470
+ */
471
+ textAlign? : 'left'|'center'|'right'|'start'|'end'
472
+ /**
473
+ * A title to display for the widget. Only in effect when inside a container that uses it (such as TabPanel)
474
+ */
475
+ title? : string
476
+ /**
477
+ * A config object for the tooltip to show while hovering the slider.
478
+ */
479
+ tooltip? : TooltipConfig
480
+ /**
481
+ * 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
482
+ * the mouse up gesture of a drag.
483
+ * ...
484
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/ZoomSlider#config-triggerChangeOnInput)
485
+ */
486
+ triggerChangeOnInput? : boolean
487
+ type? : 'zoomslider'
488
+ /**
489
+ * Custom CSS class name suffixes to apply to the elements rendered by this widget. This may be specified
490
+ * as a space separated string, an array of strings, or as an object in which property names with truthy
491
+ * values are used as the class names.
492
+ * ...
493
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/ZoomSlider#config-ui)
494
+ */
495
+ ui? : string|object
496
+ /**
497
+ * Unit to display next to the value, when configured with `showValue : true`
498
+ */
499
+ unit? : string
500
+ /**
501
+ * Initial value.
502
+ * `String` value allows to link value by reference name.
503
+ * ...
504
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/ZoomSlider#config-value)
505
+ */
506
+ value? : number|string
507
+ /**
508
+ * Width of the value label when `showValue` is enabled. If a number is specified, `px` will be used.
509
+ * ...
510
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/ZoomSlider#config-valueLabelWidth)
511
+ */
512
+ valueLabelWidth? : string|number
513
+ /**
514
+ * A widgets weight determines its position among siblings when added to a [Container](https://bryntum.com/products/taskboard/docs/api/Core/widget/Container).
515
+ * Higher weights go further down.
516
+ */
517
+ weight? : number
518
+ /**
519
+ * Widget's width, used to set element `style.width`. Either specify a valid width string or a number, which
520
+ * will get 'px' appended. We recommend using CSS as the primary way to control width, but in some cases
521
+ * this config is convenient.
522
+ */
523
+ width? : string|number
524
+ /**
525
+ * The x position for the widget.
526
+ * ...
527
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/ZoomSlider#config-x)
528
+ */
529
+ x? : number
530
+ /**
531
+ * The y position for the widget.
532
+ * ...
533
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/ZoomSlider#config-y)
534
+ */
535
+ y? : number
536
+
537
+ // Events
538
+ /**
539
+ * Fires before an object is destroyed.
540
+ * @param {object} event Event object
541
+ * @param {Core.Base} event.source The Object that is being destroyed.
542
+ */
543
+ onBeforeDestroy? : ((event: { source: Base }) => void)|string
544
+ /**
545
+ * Triggered before a widget is hidden. Return `false` to prevent the action.
546
+ * @param {object} event Event object
547
+ * @param {Core.widget.Widget} event.source The widget being hidden.
548
+ */
549
+ onBeforeHide? : ((event: { source: Widget }) => Promise<boolean>|boolean|void)|string
550
+ /**
551
+ * Triggered before a widget is shown. Return `false` to prevent the action.
552
+ * @param {object} event Event object
553
+ * @param {Core.widget.Widget,any} event.source The widget being shown
554
+ */
555
+ onBeforeShow? : ((event: { source: Widget|any }) => Promise<boolean>|boolean|void)|string
556
+ /**
557
+ * Fires when any other event is fired from the object.
558
+ * ...
559
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/ZoomSlider#event-catchAll)
560
+ * @param {object} event Event object
561
+ * @param {{[key: string]: any, type: string}} event.event The Object that contains event details
562
+ * @param {string} event.event.type The type of the event which is caught by the listener
563
+ */
564
+ onCatchAll? : ((event: {[key: string]: any, type: string}) => void)|string
565
+ /**
566
+ * Fired after the slider value changes (on mouse up following slider interaction).
567
+ * @param {object} event Event object
568
+ * @param {number} event.value The value
569
+ * @param {boolean} event.userAction Triggered by user taking an action (`true`) or by setting a value (`false`)
570
+ * @param {Core.widget.Slider} event.source The slider
571
+ */
572
+ onChange? : ((event: { value: number, userAction: boolean, source: Slider }) => void)|string
573
+ /**
574
+ * Fires when an object is destroyed.
575
+ * @param {object} event Event object
576
+ * @param {Core.Base} event.source The Object that is being destroyed.
577
+ */
578
+ onDestroy? : ((event: { source: Base }) => void)|string
579
+ /**
580
+ * Triggered when a widget's [element](https://bryntum.com/products/taskboard/docs/api/Core/widget/Widget#property-element) is available.
581
+ * @param {object} event Event object
582
+ * @param {HTMLElement} event.element The Widget's element.
583
+ */
584
+ onElementCreated? : ((event: { element: HTMLElement }) => void)|string
585
+ /**
586
+ * Fired when focus enters this Widget.
587
+ * @param {object} event Event object
588
+ * @param {Core.widget.Widget} event.source This Widget
589
+ * @param {HTMLElement} event.fromElement The element which lost focus.
590
+ * @param {HTMLElement} event.toElement The element which gained focus.
591
+ * @param {Core.widget.Widget} event.fromWidget The widget which lost focus.
592
+ * @param {Core.widget.Widget} event.toWidget The widget which gained focus.
593
+ * @param {boolean} event.backwards `true` if the `toElement` is before the `fromElement` in document order.
594
+ */
595
+ onFocusIn? : ((event: { source: Widget, fromElement: HTMLElement, toElement: HTMLElement, fromWidget: Widget, toWidget: Widget, backwards: boolean }) => void)|string
596
+ /**
597
+ * Fired when focus exits this Widget's ownership tree. This is different from a `blur` event.
598
+ * focus moving from within this Widget's ownership tree, even if there are floating widgets
599
+ * will not trigger this event. This is when focus exits this widget completely.
600
+ * @param {object} event Event object
601
+ * @param {Core.widget.Widget} event.source This Widget
602
+ * @param {HTMLElement} event.fromElement The element which lost focus.
603
+ * @param {HTMLElement} event.toElement The element which gained focus.
604
+ * @param {Core.widget.Widget} event.fromWidget The widget which lost focus.
605
+ * @param {Core.widget.Widget} event.toWidget The widget which gained focus.
606
+ * @param {boolean} event.backwards `true` if the `toElement` is before the `fromElement` in document order.
607
+ */
608
+ onFocusOut? : ((event: { source: Widget, fromElement: HTMLElement, toElement: HTMLElement, fromWidget: Widget, toWidget: Widget, backwards: boolean }) => void)|string
609
+ /**
610
+ * Triggered after a widget was hidden
611
+ * @param {object} event Event object
612
+ * @param {Core.widget.Widget} event.source The widget
613
+ */
614
+ onHide? : ((event: { source: Widget }) => void)|string
615
+ /**
616
+ * Fired while slider thumb is being dragged.
617
+ * @param {object} event Event object
618
+ * @param {Core.widget.Slider} event.source The slider
619
+ * @param {number} event.value The value
620
+ */
621
+ onInput? : ((event: { source: Slider, value: number }) => void)|string
622
+ /**
623
+ * Triggered when a widget which had been in a non-visible state for any reason
624
+ * achieves visibility.
625
+ * ...
626
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/widget/ZoomSlider#event-paint)
627
+ * @param {object} event Event object
628
+ * @param {Core.widget.Widget} event.source The widget being painted.
629
+ * @param {boolean} event.firstPaint `true` if this is the first paint.
630
+ */
631
+ onPaint? : ((event: { source: Widget, firstPaint: boolean }) => void)|string
632
+ /**
633
+ * Fired when a Widget's read only state is toggled
634
+ * @param {object} event Event object
635
+ * @param {boolean} event.readOnly Read only or not
636
+ */
637
+ onReadOnly? : ((event: { readOnly: boolean }) => void)|string
638
+ /**
639
+ * This event is fired after a widget's elements have been synchronized due to a direct or indirect call
640
+ * 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.
641
+ */
642
+ onRecompose? : (() => void)|string
643
+ /**
644
+ * 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`*.
645
+ * @param {object} event Event object
646
+ * @param {Core.widget.Widget} event.source This Widget
647
+ * @param {number} event.width The new width
648
+ * @param {number} event.height The new height
649
+ * @param {number} event.oldWidth The old width
650
+ * @param {number} event.oldHeight The old height
651
+ */
652
+ onResize? : ((event: { source: Widget, width: number, height: number, oldWidth: number, oldHeight: number }) => void)|string
653
+ /**
654
+ * Triggered after a widget is shown.
655
+ * @param {object} event Event object
656
+ * @param {Core.widget.Widget} event.source The widget
657
+ */
658
+ onShow? : ((event: { source: Widget }) => void)|string
659
+
660
+ }
661
+
662
+ export class BryntumZoomSlider extends React.Component<BryntumZoomSliderProps> {
663
+
664
+ static instanceClass = ZoomSlider;
665
+
666
+ static instanceName = 'ZoomSlider';
667
+
668
+ processWidgetContent = processWidgetContent;
669
+
670
+ static configNames = [
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
+ static propertyConfigNames = [
725
+ 'alignSelf',
726
+ 'appendTo',
727
+ 'callOnFunctions',
728
+ 'catchEventHandlerExceptions',
729
+ 'cls',
730
+ 'column',
731
+ 'content',
732
+ 'dataset',
733
+ 'disabled',
734
+ 'extraData',
735
+ 'flex',
736
+ 'height',
737
+ 'hidden',
738
+ 'html',
739
+ 'id',
740
+ 'insertBefore',
741
+ 'insertFirst',
742
+ 'keyMap',
743
+ 'label',
744
+ 'margin',
745
+ 'max',
746
+ 'maxHeight',
747
+ 'maximizeOnMobile',
748
+ 'maxWidth',
749
+ 'min',
750
+ 'minHeight',
751
+ 'minWidth',
752
+ 'onBeforeDestroy',
753
+ 'onBeforeHide',
754
+ 'onBeforeShow',
755
+ 'onCatchAll',
756
+ 'onChange',
757
+ 'onDestroy',
758
+ 'onElementCreated',
759
+ 'onFocusIn',
760
+ 'onFocusOut',
761
+ 'onHide',
762
+ 'onInput',
763
+ 'onPaint',
764
+ 'onReadOnly',
765
+ 'onRecompose',
766
+ 'onResize',
767
+ 'onShow',
768
+ 'readOnly',
769
+ 'rtl',
770
+ 'scrollable',
771
+ 'span',
772
+ 'step',
773
+ 'text',
774
+ 'tooltip',
775
+ 'triggerChangeOnInput',
776
+ 'unit',
777
+ 'value',
778
+ 'valueLabelWidth',
779
+ 'width',
780
+ 'x',
781
+ 'y'
782
+ ];
783
+
784
+ static propertyNames = [
785
+ 'anchorSize',
786
+ 'focusVisible',
787
+ 'parent'
788
+ ];
789
+
790
+ // Component instance
791
+ instance!: ZoomSlider;
792
+
793
+ // Component element
794
+ element! : HTMLElement;
795
+
796
+ componentDidMount(): void {
797
+ this.instance = createWidget(this);
798
+ }
799
+
800
+ componentWillUnmount(): void {
801
+ // @ts-ignore
802
+ this.instance?.destroy?.();
803
+ }
804
+
805
+ /**
806
+ * Component about to be updated, from changing a prop using state.
807
+ * React to it depending on what changed and prevent react from re-rendering our component.
808
+ * @param nextProps
809
+ * @param nextState
810
+ * @returns {boolean}
811
+ */
812
+ shouldComponentUpdate(nextProps: Readonly<BryntumZoomSliderProps>, nextState: Readonly<{}>): boolean {
813
+ return shouldComponentUpdate(this, nextProps, nextState);
814
+ }
815
+
816
+ render(): React.ReactNode {
817
+
818
+ const className = `b-react-zoom-slider-container`;
819
+ return (
820
+ <div className={className} ref={(element) => (this.element = element!)}></div>
821
+ );
822
+
823
+ }
824
+ }