@bryntum/core-react-thin 7.2.4 → 7.3.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.
- package/lib/BryntumBooleanCombo.d.ts +262 -0
- package/lib/BryntumBooleanCombo.js +205 -0
- package/lib/BryntumBooleanCombo.js.map +1 -0
- package/lib/BryntumButton.d.ts +9 -17
- package/lib/BryntumButton.js +1 -2
- package/lib/BryntumButton.js.map +1 -1
- package/lib/BryntumButtonGroup.d.ts +9 -16
- package/lib/BryntumButtonGroup.js +2 -5
- package/lib/BryntumButtonGroup.js.map +1 -1
- package/lib/BryntumChatPanel.d.ts +19 -23
- package/lib/BryntumChatPanel.js +7 -6
- package/lib/BryntumChatPanel.js.map +1 -1
- package/lib/BryntumCheckbox.d.ts +10 -17
- package/lib/BryntumCheckbox.js +2 -2
- package/lib/BryntumCheckbox.js.map +1 -1
- package/lib/BryntumCheckboxGroup.d.ts +12 -24
- package/lib/BryntumCheckboxGroup.js +2 -6
- package/lib/BryntumCheckboxGroup.js.map +1 -1
- package/lib/BryntumChipView.d.ts +8 -16
- package/lib/BryntumChipView.js +1 -2
- package/lib/BryntumChipView.js.map +1 -1
- package/lib/BryntumCodeEditor.d.ts +12 -23
- package/lib/BryntumCodeEditor.js +2 -5
- package/lib/BryntumCodeEditor.js.map +1 -1
- package/lib/BryntumColorField.d.ts +9 -16
- package/lib/BryntumColorField.js +2 -2
- package/lib/BryntumColorField.js.map +1 -1
- package/lib/BryntumCombo.d.ts +12 -19
- package/lib/BryntumCombo.js +2 -2
- package/lib/BryntumCombo.js.map +1 -1
- package/lib/BryntumContainer.d.ts +8 -15
- package/lib/BryntumContainer.js +2 -5
- package/lib/BryntumContainer.js.map +1 -1
- package/lib/BryntumDateField.d.ts +9 -16
- package/lib/BryntumDateField.js +2 -2
- package/lib/BryntumDateField.js.map +1 -1
- package/lib/BryntumDatePicker.d.ts +12 -23
- package/lib/BryntumDatePicker.js +2 -5
- package/lib/BryntumDatePicker.js.map +1 -1
- package/lib/BryntumDateRangeField.d.ts +12 -19
- package/lib/BryntumDateRangeField.js +2 -2
- package/lib/BryntumDateRangeField.js.map +1 -1
- package/lib/BryntumDateTimeField.d.ts +9 -16
- package/lib/BryntumDateTimeField.js +2 -2
- package/lib/BryntumDateTimeField.js.map +1 -1
- package/lib/BryntumDemoCodeEditor.d.ts +12 -23
- package/lib/BryntumDemoCodeEditor.js +2 -5
- package/lib/BryntumDemoCodeEditor.js.map +1 -1
- package/lib/BryntumDisplayField.d.ts +9 -16
- package/lib/BryntumDisplayField.js +2 -2
- package/lib/BryntumDisplayField.js.map +1 -1
- package/lib/BryntumDurationField.d.ts +9 -16
- package/lib/BryntumDurationField.js +2 -2
- package/lib/BryntumDurationField.js.map +1 -1
- package/lib/BryntumEditor.d.ts +14 -24
- package/lib/BryntumEditor.js +2 -5
- package/lib/BryntumEditor.js.map +1 -1
- package/lib/BryntumFieldFilterPicker.d.ts +8 -15
- package/lib/BryntumFieldFilterPicker.js +2 -5
- package/lib/BryntumFieldFilterPicker.js.map +1 -1
- package/lib/BryntumFieldFilterPickerGroup.d.ts +9 -16
- package/lib/BryntumFieldFilterPickerGroup.js +2 -5
- package/lib/BryntumFieldFilterPickerGroup.js.map +1 -1
- package/lib/BryntumFieldSet.d.ts +12 -24
- package/lib/BryntumFieldSet.js +2 -6
- package/lib/BryntumFieldSet.js.map +1 -1
- package/lib/BryntumFileField.d.ts +9 -16
- package/lib/BryntumFileField.js +2 -2
- package/lib/BryntumFileField.js.map +1 -1
- package/lib/BryntumFilePicker.d.ts +8 -15
- package/lib/BryntumFilePicker.js +2 -5
- package/lib/BryntumFilePicker.js.map +1 -1
- package/lib/BryntumFilterField.d.ts +9 -16
- package/lib/BryntumFilterField.js +2 -2
- package/lib/BryntumFilterField.js.map +1 -1
- package/lib/BryntumHint.d.ts +24 -33
- package/lib/BryntumHint.js +2 -5
- package/lib/BryntumHint.js.map +1 -1
- package/lib/BryntumLabel.d.ts +7 -15
- package/lib/BryntumLabel.js +1 -2
- package/lib/BryntumLabel.js.map +1 -1
- package/lib/BryntumList.d.ts +8 -16
- package/lib/BryntumList.js +1 -2
- package/lib/BryntumList.js.map +1 -1
- package/lib/BryntumMenu.d.ts +23 -28
- package/lib/BryntumMenu.js +2 -6
- package/lib/BryntumMenu.js.map +1 -1
- package/lib/BryntumMonthPicker.d.ts +12 -23
- package/lib/BryntumMonthPicker.js +2 -5
- package/lib/BryntumMonthPicker.js.map +1 -1
- package/lib/BryntumNumberField.d.ts +9 -16
- package/lib/BryntumNumberField.js +2 -2
- package/lib/BryntumNumberField.js.map +1 -1
- package/lib/BryntumPagingToolbar.d.ts +12 -19
- package/lib/BryntumPagingToolbar.js +2 -5
- package/lib/BryntumPagingToolbar.js.map +1 -1
- package/lib/BryntumPanel.d.ts +12 -23
- package/lib/BryntumPanel.js +2 -5
- package/lib/BryntumPanel.js.map +1 -1
- package/lib/BryntumPasswordField.d.ts +9 -16
- package/lib/BryntumPasswordField.js +2 -2
- package/lib/BryntumPasswordField.js.map +1 -1
- package/lib/BryntumProgressBar.d.ts +7 -15
- package/lib/BryntumProgressBar.js +1 -2
- package/lib/BryntumProgressBar.js.map +1 -1
- package/lib/BryntumRadio.d.ts +10 -17
- package/lib/BryntumRadio.js +2 -2
- package/lib/BryntumRadio.js.map +1 -1
- package/lib/BryntumRadioGroup.d.ts +12 -24
- package/lib/BryntumRadioGroup.js +2 -6
- package/lib/BryntumRadioGroup.js.map +1 -1
- package/lib/BryntumSlideToggle.d.ts +10 -17
- package/lib/BryntumSlideToggle.js +2 -2
- package/lib/BryntumSlideToggle.js.map +1 -1
- package/lib/BryntumSlider.d.ts +8 -15
- package/lib/BryntumSlider.js +2 -2
- package/lib/BryntumSlider.js.map +1 -1
- package/lib/BryntumSplitter.d.ts +7 -15
- package/lib/BryntumSplitter.js +1 -2
- package/lib/BryntumSplitter.js.map +1 -1
- package/lib/BryntumTabPanel.d.ts +13 -24
- package/lib/BryntumTabPanel.js +2 -5
- package/lib/BryntumTabPanel.js.map +1 -1
- package/lib/BryntumTextAreaField.d.ts +10 -16
- package/lib/BryntumTextAreaField.js +3 -2
- package/lib/BryntumTextAreaField.js.map +1 -1
- package/lib/BryntumTextAreaPickerField.d.ts +10 -17
- package/lib/BryntumTextAreaPickerField.js +2 -2
- package/lib/BryntumTextAreaPickerField.js.map +1 -1
- package/lib/BryntumTextField.d.ts +9 -16
- package/lib/BryntumTextField.js +2 -2
- package/lib/BryntumTextField.js.map +1 -1
- package/lib/BryntumTimeField.d.ts +10 -17
- package/lib/BryntumTimeField.js +2 -2
- package/lib/BryntumTimeField.js.map +1 -1
- package/lib/BryntumTimePicker.d.ts +8 -15
- package/lib/BryntumTimePicker.js +2 -5
- package/lib/BryntumTimePicker.js.map +1 -1
- package/lib/BryntumToolbar.d.ts +12 -19
- package/lib/BryntumToolbar.js +2 -5
- package/lib/BryntumToolbar.js.map +1 -1
- package/lib/BryntumWidget.d.ts +7 -15
- package/lib/BryntumWidget.js +1 -2
- package/lib/BryntumWidget.js.map +1 -1
- package/lib/BryntumYearPicker.d.ts +12 -23
- package/lib/BryntumYearPicker.js +2 -5
- package/lib/BryntumYearPicker.js.map +1 -1
- package/lib/WrapperHelper.js +2 -2
- package/lib/WrapperHelper.js.map +1 -1
- package/lib/index.d.ts +1 -0
- package/lib/index.js +1 -0
- package/lib/index.js.map +1 -1
- package/package.json +1 -1
- package/src/BryntumBooleanCombo.tsx +1190 -0
- package/src/BryntumButton.tsx +72 -118
- package/src/BryntumButtonGroup.tsx +79 -124
- package/src/BryntumChatPanel.tsx +142 -172
- package/src/BryntumCheckbox.tsx +85 -119
- package/src/BryntumCheckboxGroup.tsx +112 -182
- package/src/BryntumChipView.tsx +67 -107
- package/src/BryntumCodeEditor.tsx +109 -170
- package/src/BryntumColorField.tsx +84 -118
- package/src/BryntumCombo.tsx +103 -153
- package/src/BryntumContainer.tsx +79 -125
- package/src/BryntumDateField.tsx +91 -124
- package/src/BryntumDatePicker.tsx +122 -196
- package/src/BryntumDateRangeField.tsx +90 -127
- package/src/BryntumDateTimeField.tsx +84 -118
- package/src/BryntumDemoCodeEditor.tsx +109 -170
- package/src/BryntumDisplayField.tsx +85 -120
- package/src/BryntumDurationField.tsx +91 -126
- package/src/BryntumEditor.tsx +95 -145
- package/src/BryntumFieldFilterPicker.tsx +81 -129
- package/src/BryntumFieldFilterPickerGroup.tsx +84 -134
- package/src/BryntumFieldSet.tsx +108 -175
- package/src/BryntumFileField.tsx +84 -118
- package/src/BryntumFilePicker.tsx +79 -125
- package/src/BryntumFilterField.tsx +87 -124
- package/src/BryntumHint.tsx +136 -193
- package/src/BryntumLabel.tsx +60 -96
- package/src/BryntumList.tsx +64 -103
- package/src/BryntumMenu.tsx +131 -191
- package/src/BryntumMonthPicker.tsx +109 -170
- package/src/BryntumNumberField.tsx +88 -122
- package/src/BryntumPagingToolbar.tsx +84 -131
- package/src/BryntumPanel.tsx +109 -170
- package/src/BryntumPasswordField.tsx +84 -118
- package/src/BryntumProgressBar.tsx +59 -94
- package/src/BryntumRadio.tsx +85 -119
- package/src/BryntumRadioGroup.tsx +112 -181
- package/src/BryntumSlideToggle.tsx +85 -119
- package/src/BryntumSlider.tsx +68 -102
- package/src/BryntumSplitter.tsx +62 -100
- package/src/BryntumTabPanel.tsx +111 -173
- package/src/BryntumTextAreaField.tsx +92 -120
- package/src/BryntumTextAreaPickerField.tsx +86 -121
- package/src/BryntumTextField.tsx +85 -120
- package/src/BryntumTimeField.tsx +90 -121
- package/src/BryntumTimePicker.tsx +79 -125
- package/src/BryntumToolbar.tsx +84 -131
- package/src/BryntumWidget.tsx +60 -96
- package/src/BryntumYearPicker.tsx +110 -172
- package/src/WrapperHelper.tsx +2 -2
- package/src/index.ts +1 -0
package/src/BryntumSlider.tsx
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
5
5
|
import React, { RefObject } from 'react';
|
|
6
|
-
import { AlignSpec, Base, Color, DomConfig, KeyMapConfig, MaskConfig, Rectangle, Scroller, ScrollerConfig, Slider, SliderListeners, TabConfig, TooltipConfig, VueConfig, Widget } from '@bryntum/core-thin';
|
|
6
|
+
import { AlignSpec, Base, Color, DomConfig, KeyMapConfig, MaskConfig, ReactJSX, Rectangle, Scroller, ScrollerConfig, Slider, SliderListeners, TabConfig, TooltipConfig, VueConfig, Widget } from '@bryntum/core-thin';
|
|
7
7
|
|
|
8
8
|
import { createWidget, shouldComponentUpdate, processWidgetContent } from './WrapperHelper.js';
|
|
9
9
|
|
|
@@ -12,14 +12,12 @@ export type BryntumSliderProps = {
|
|
|
12
12
|
/**
|
|
13
13
|
* Element (or element id) to adopt as this Widget's encapsulating element. The widget's
|
|
14
14
|
* content will be placed inside this element.
|
|
15
|
-
* ...
|
|
16
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/Slider#config-adopt)
|
|
15
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/Slider#config-adopt)
|
|
17
16
|
*/
|
|
18
17
|
adopt? : HTMLElement|string
|
|
19
18
|
/**
|
|
20
19
|
* *Only valid if this Widget is [floating](https://bryntum.com/products/core/docs/api/Core/widget/Widget#config-floating).*
|
|
21
|
-
* ...
|
|
22
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/Slider#config-align)
|
|
20
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/Slider#config-align)
|
|
23
21
|
*/
|
|
24
22
|
align? : AlignSpec|string
|
|
25
23
|
/**
|
|
@@ -41,35 +39,30 @@ export type BryntumSliderProps = {
|
|
|
41
39
|
/**
|
|
42
40
|
* A localizable string (May contain `'L{}'` tokens which resolve in the locale file) to inject
|
|
43
41
|
* into an element which will be linked using the `aria-describedby` attribute.
|
|
44
|
-
* ...
|
|
45
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/Slider#config-ariaDescription)
|
|
42
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/Slider#config-ariaDescription)
|
|
46
43
|
*/
|
|
47
44
|
ariaDescription? : string
|
|
48
45
|
/**
|
|
49
46
|
* A localizable string (May contain `'L{}'` tokens which resolve in the locale file) to inject as
|
|
50
47
|
* the `aria-label` attribute.
|
|
51
|
-
* ...
|
|
52
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/Slider#config-ariaLabel)
|
|
48
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/Slider#config-ariaLabel)
|
|
53
49
|
*/
|
|
54
50
|
ariaLabel? : string
|
|
55
51
|
/**
|
|
56
52
|
* An object where property names with a truthy value indicate which events should bubble up the ownership
|
|
57
53
|
* hierarchy when triggered.
|
|
58
|
-
* ...
|
|
59
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/Slider#config-bubbleEvents)
|
|
54
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/Slider#config-bubbleEvents)
|
|
60
55
|
*/
|
|
61
56
|
bubbleEvents? : object
|
|
62
57
|
/**
|
|
63
58
|
* Set to `false` to not call onXXX method names (e.g. `onShow`, `onClick`), as an easy way to listen for events.
|
|
64
|
-
* ...
|
|
65
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/Slider#config-callOnFunctions)
|
|
59
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/Slider#config-callOnFunctions)
|
|
66
60
|
*/
|
|
67
61
|
callOnFunctions? : boolean
|
|
68
62
|
/**
|
|
69
63
|
* By default, if an event handler throws an exception, the error propagates up the stack and the
|
|
70
64
|
* application state is undefined. Code which follows the event handler will *not* be executed.
|
|
71
|
-
* ...
|
|
72
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/Slider#config-catchEventHandlerExceptions)
|
|
65
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/Slider#config-catchEventHandlerExceptions)
|
|
73
66
|
*/
|
|
74
67
|
catchEventHandlerExceptions? : boolean
|
|
75
68
|
/**
|
|
@@ -81,15 +74,13 @@ export type BryntumSliderProps = {
|
|
|
81
74
|
* Custom CSS classes to add to element.
|
|
82
75
|
* May be specified as a space separated string, or as an object in which property names
|
|
83
76
|
* with truthy values are used as the class names:
|
|
84
|
-
* ...
|
|
85
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/Slider#config-cls)
|
|
77
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/Slider#config-cls)
|
|
86
78
|
*/
|
|
87
79
|
cls? : string|object
|
|
88
80
|
/**
|
|
89
81
|
* Applies the specified color to the widget, by setting the `--b-primary` CSS variable in the widgets
|
|
90
82
|
* `style` block.
|
|
91
|
-
* ...
|
|
92
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/Slider#config-color)
|
|
83
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/Slider#config-color)
|
|
93
84
|
*/
|
|
94
85
|
color? : Color
|
|
95
86
|
/**
|
|
@@ -113,8 +104,7 @@ export type BryntumSliderProps = {
|
|
|
113
104
|
* Custom CSS classes to add to the [contentElement](https://bryntum.com/products/core/docs/api/Core/widget/Widget#property-contentElement).
|
|
114
105
|
* May be specified as a space separated string, or as an object in which property names
|
|
115
106
|
* with truthy values are used as the class names:
|
|
116
|
-
* ...
|
|
117
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/Slider#config-contentElementCls)
|
|
107
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/Slider#config-contentElementCls)
|
|
118
108
|
*/
|
|
119
109
|
contentElementCls? : string|object
|
|
120
110
|
/**
|
|
@@ -132,16 +122,15 @@ export type BryntumSliderProps = {
|
|
|
132
122
|
*/
|
|
133
123
|
defaultBindProperty? : string
|
|
134
124
|
/**
|
|
135
|
-
* Check for CSS compatibility issues
|
|
136
|
-
*
|
|
137
|
-
* [
|
|
125
|
+
* Check for CSS compatibility and inclusion related issues and try to auto fix them. Performs the following
|
|
126
|
+
* checks:
|
|
127
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/Slider#config-detectCSSCompatibilityIssues)
|
|
138
128
|
*/
|
|
139
129
|
detectCSSCompatibilityIssues? : boolean
|
|
140
130
|
/**
|
|
141
131
|
* Disable or enable the widget. It is similar to [readOnly](https://bryntum.com/products/core/docs/api/Core/widget/Widget#config-readOnly) except a disabled widget
|
|
142
132
|
* cannot be focused, uses a different rendition (usually greyish) and does not allow selecting its value.
|
|
143
|
-
* ...
|
|
144
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/Slider#config-disabled)
|
|
133
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/Slider#config-disabled)
|
|
145
134
|
*/
|
|
146
135
|
disabled? : boolean|'inert'
|
|
147
136
|
/**
|
|
@@ -149,25 +138,21 @@ export type BryntumSliderProps = {
|
|
|
149
138
|
* [strips collection](https://bryntum.com/products/core/docs/api/Core/widget/Panel#config-strips). Typical values for this config are `'top'`,
|
|
150
139
|
* `'bottom'`, `'left'`, or `'right'`, which cause the widget to be placed on that side of the panel's
|
|
151
140
|
* body. Such widgets are called "edge strips".
|
|
152
|
-
* ...
|
|
153
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/Slider#config-dock)
|
|
141
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/Slider#config-dock)
|
|
154
142
|
*/
|
|
155
143
|
dock? : 'top'|'bottom'|'left'|'right'|'start'|'end'|'header'|'pre-header'|object
|
|
156
144
|
/**
|
|
157
145
|
* *Only valid if this Widget is [floating](https://bryntum.com/products/core/docs/api/Core/widget/Widget#config-floating).*
|
|
158
146
|
* Set to `true` to be able to drag a widget freely on the page. Or set to an object with a ´handleSelector´
|
|
159
147
|
* property which controls when a drag should start.
|
|
160
|
-
* ...
|
|
161
|
-
*
|
|
148
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/Slider#config-draggable)
|
|
149
|
+
* @property {string} handleSelector CSS selector used to determine if drag can be started from a mouse-downed element inside the widget
|
|
162
150
|
*/
|
|
163
|
-
draggable? : boolean|
|
|
164
|
-
handleSelector?: string
|
|
165
|
-
}
|
|
151
|
+
draggable? : boolean|object
|
|
166
152
|
/**
|
|
167
153
|
* An object specifying attributes to assign to the root element of this widget.
|
|
168
154
|
* Set `null` value to attribute to remove it.
|
|
169
|
-
* ...
|
|
170
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/Slider#config-elementAttributes)
|
|
155
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/Slider#config-elementAttributes)
|
|
171
156
|
*/
|
|
172
157
|
elementAttributes? : Record<string, string|null>
|
|
173
158
|
extraData? : any
|
|
@@ -196,18 +181,15 @@ export type BryntumSliderProps = {
|
|
|
196
181
|
hidden? : boolean
|
|
197
182
|
/**
|
|
198
183
|
* *Only valid if this Widget is [floating](https://bryntum.com/products/core/docs/api/Core/widget/Widget#config-floating).*
|
|
199
|
-
* ...
|
|
200
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/Slider#config-hideAnimation)
|
|
184
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/Slider#config-hideAnimation)
|
|
201
185
|
*/
|
|
202
186
|
hideAnimation? : boolean|object
|
|
203
187
|
/**
|
|
204
188
|
* The HTML to display initially or a function returning the markup (called at widget construction time).
|
|
205
|
-
* ...
|
|
206
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/Slider#config-html)
|
|
189
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/Slider#config-html)
|
|
207
190
|
* @param {Core.widget.Widget} widget The calling Widget
|
|
208
|
-
* @returns {string}
|
|
209
191
|
*/
|
|
210
|
-
html? : string|((widget: Widget) =>
|
|
192
|
+
html? : string|((widget: Widget) => void)|DomConfig|DomConfig[]|VueConfig|ReactJSX
|
|
211
193
|
/**
|
|
212
194
|
* The CSS class(es) to add when HTML content is being applied to this widget.
|
|
213
195
|
*/
|
|
@@ -218,8 +200,7 @@ export type BryntumSliderProps = {
|
|
|
218
200
|
id? : string
|
|
219
201
|
/**
|
|
220
202
|
* Determines if the widgets read-only state should be controlled by its parent.
|
|
221
|
-
* ...
|
|
222
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/Slider#config-ignoreParentReadOnly)
|
|
203
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/Slider#config-ignoreParentReadOnly)
|
|
223
204
|
*/
|
|
224
205
|
ignoreParentReadOnly? : boolean
|
|
225
206
|
/**
|
|
@@ -234,8 +215,7 @@ export type BryntumSliderProps = {
|
|
|
234
215
|
* An object whose keys are the [key](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/key) name
|
|
235
216
|
* and optional modifier prefixes: `'Ctrl+'`, `'Alt+'`, `'Meta+'`, and `'Shift+'` (case-insensitive). The values
|
|
236
217
|
* are the name of the instance method to call when the keystroke is received.
|
|
237
|
-
* ...
|
|
238
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/Slider#config-keyMap)
|
|
218
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/Slider#config-keyMap)
|
|
239
219
|
*/
|
|
240
220
|
keyMap? : Record<string, KeyMapConfig>
|
|
241
221
|
/**
|
|
@@ -248,8 +228,7 @@ export type BryntumSliderProps = {
|
|
|
248
228
|
labelCls? : string|object
|
|
249
229
|
/**
|
|
250
230
|
* Label position, either 'before' the field or 'above' the field
|
|
251
|
-
* ...
|
|
252
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/Slider#config-labelPosition)
|
|
231
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/Slider#config-labelPosition)
|
|
253
232
|
*/
|
|
254
233
|
labelPosition? : 'before'|'above'|null
|
|
255
234
|
/**
|
|
@@ -258,16 +237,14 @@ export type BryntumSliderProps = {
|
|
|
258
237
|
labelWidth? : string|number
|
|
259
238
|
/**
|
|
260
239
|
* The listener set for this object.
|
|
261
|
-
* ...
|
|
262
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/Slider#config-listeners)
|
|
240
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/Slider#config-listeners)
|
|
263
241
|
*/
|
|
264
242
|
listeners? : SliderListeners
|
|
265
243
|
/**
|
|
266
244
|
* A class translations of which are used for translating this entity.
|
|
267
245
|
* This is often used when translations of an item are defined on its container class.
|
|
268
246
|
* For example:
|
|
269
|
-
* ...
|
|
270
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/Slider#config-localeClass)
|
|
247
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/Slider#config-localeClass)
|
|
271
248
|
*/
|
|
272
249
|
localeClass? : typeof Base
|
|
273
250
|
/**
|
|
@@ -279,8 +256,7 @@ export type BryntumSliderProps = {
|
|
|
279
256
|
* In case there is a need to localize not typical value (not a String value or a field with re-defined setter/getter),
|
|
280
257
|
* you could use 'localeKey' meta configuration.
|
|
281
258
|
* Example:
|
|
282
|
-
* ...
|
|
283
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/Slider#config-localizableProperties)
|
|
259
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/Slider#config-localizableProperties)
|
|
284
260
|
*/
|
|
285
261
|
localizableProperties? : string[]
|
|
286
262
|
/**
|
|
@@ -310,8 +286,7 @@ export type BryntumSliderProps = {
|
|
|
310
286
|
maxHeight? : string|number
|
|
311
287
|
/**
|
|
312
288
|
* *Only valid if this Widget is [floating](https://bryntum.com/products/core/docs/api/Core/widget/Widget#config-floating).*
|
|
313
|
-
* ...
|
|
314
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/Slider#config-maximizeOnMobile)
|
|
289
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/Slider#config-maximizeOnMobile)
|
|
315
290
|
*/
|
|
316
291
|
maximizeOnMobile? : number|string
|
|
317
292
|
/**
|
|
@@ -337,18 +312,15 @@ export type BryntumSliderProps = {
|
|
|
337
312
|
* When this is configured as `true` a [ResizeObserver](https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserver)
|
|
338
313
|
* is used to monitor this element for size changes caused by either style manipulation, or by CSS
|
|
339
314
|
* layout.
|
|
340
|
-
* ...
|
|
341
|
-
*
|
|
315
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/Slider#config-monitorResize)
|
|
316
|
+
* @property {boolean} immediate Set to `true` to receive resize notifications immediately.
|
|
342
317
|
*/
|
|
343
|
-
monitorResize? : boolean|
|
|
344
|
-
immediate?: boolean
|
|
345
|
-
}
|
|
318
|
+
monitorResize? : boolean|object
|
|
346
319
|
/**
|
|
347
320
|
* Set to `true` when a widget is rendered into another widget's [contentElement](https://bryntum.com/products/core/docs/api/Core/widget/Widget#property-contentElement), but must
|
|
348
321
|
* not participate in the standard layout of that widget, and must be positioned relatively to that
|
|
349
322
|
* widget's [contentElement](https://bryntum.com/products/core/docs/api/Core/widget/Widget#property-contentElement).
|
|
350
|
-
* ...
|
|
351
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/Slider#config-positioned)
|
|
323
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/Slider#config-positioned)
|
|
352
324
|
*/
|
|
353
325
|
positioned? : boolean
|
|
354
326
|
/**
|
|
@@ -359,8 +331,7 @@ export type BryntumSliderProps = {
|
|
|
359
331
|
/**
|
|
360
332
|
* Whether this widget is read-only. This is only valid if the widget is an input
|
|
361
333
|
* field, <strong>or contains input fields at any depth</strong>.
|
|
362
|
-
* ...
|
|
363
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/Slider#config-readOnly)
|
|
334
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/Slider#config-readOnly)
|
|
364
335
|
*/
|
|
365
336
|
readOnly? : boolean
|
|
366
337
|
relayStoreEvents? : boolean
|
|
@@ -368,23 +339,26 @@ export type BryntumSliderProps = {
|
|
|
368
339
|
* Configure as `true` to have the component display a translucent ripple when its
|
|
369
340
|
* [focusElement](https://bryntum.com/products/core/docs/api/Core/widget/Widget#property-focusElement), or [element](#Core/widget/Widget#property-element) is tapped <em>if the
|
|
370
341
|
* current theme supports ripples</em>. Out of the box, only the Material theme supports ripples.
|
|
371
|
-
* ...
|
|
372
|
-
* [
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
342
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/Slider#config-ripple)
|
|
343
|
+
* @property {string} [delegate] A CSS selector to filter which child elements trigger ripples. By default, the ripple is clipped to the triggering element.
|
|
344
|
+
* @property {string} [color] A CSS color name or specification.
|
|
345
|
+
* @property {number} [radius] The ending radius of the ripple. Note that it will be clipped by the target element by default.
|
|
346
|
+
* @property {string} [clip] A string which describes how to clip the ripple if it is not to be clipped to the default element. Either the property of the widget to use as the clipping element, or a selector to allow clipping to the closest matching ancestor to the target element.
|
|
347
|
+
*/
|
|
348
|
+
ripple? : boolean|object
|
|
349
|
+
/**
|
|
350
|
+
* The ARIA role to apply to this widget's element. By default, this is set to `'presentation'` to avoid
|
|
351
|
+
* accidentally applying a role which may interfere with screen readers.
|
|
352
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/Slider#config-role)
|
|
353
|
+
*/
|
|
354
|
+
role? : string
|
|
380
355
|
/**
|
|
381
356
|
* 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`
|
|
382
357
|
*/
|
|
383
358
|
rootElement? : ShadowRoot|HTMLElement
|
|
384
359
|
/**
|
|
385
360
|
* This may be configured as `true` to make the widget's element use the `direction:rtl` style.
|
|
386
|
-
* ...
|
|
387
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/Slider#config-rtl)
|
|
361
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/Slider#config-rtl)
|
|
388
362
|
*/
|
|
389
363
|
rtl? : boolean
|
|
390
364
|
/**
|
|
@@ -392,8 +366,7 @@ export type BryntumSliderProps = {
|
|
|
392
366
|
* in both axes. May be an object containing boolean `overflowX` and `overflowY` properties which are
|
|
393
367
|
* applied to CSS style properties `overflowX` and `overflowY`. If they are boolean, they are translated to
|
|
394
368
|
* CSS overflow properties thus:
|
|
395
|
-
* ...
|
|
396
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/Slider#config-scrollable)
|
|
369
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/Slider#config-scrollable)
|
|
397
370
|
*/
|
|
398
371
|
scrollable? : boolean|ScrollerConfig|Scroller
|
|
399
372
|
/**
|
|
@@ -403,8 +376,7 @@ export type BryntumSliderProps = {
|
|
|
403
376
|
scrollAction? : 'hide'|'realign'|null
|
|
404
377
|
/**
|
|
405
378
|
* *Only valid if this Widget is [floating](https://bryntum.com/products/core/docs/api/Core/widget/Widget#config-floating).*
|
|
406
|
-
* ...
|
|
407
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/Slider#config-showAnimation)
|
|
379
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/Slider#config-showAnimation)
|
|
408
380
|
*/
|
|
409
381
|
showAnimation? : boolean|object
|
|
410
382
|
/**
|
|
@@ -435,8 +407,7 @@ export type BryntumSliderProps = {
|
|
|
435
407
|
* A configuration for the [tab](https://bryntum.com/products/core/docs/api/Core/widget/Tab) created for this widget when it is placed in a
|
|
436
408
|
* [TabPanel](https://bryntum.com/products/core/docs/api/Core/widget/TabPanel). For example, this config can be used to control the icon of the `tab` for
|
|
437
409
|
* this widget:
|
|
438
|
-
* ...
|
|
439
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/Slider#config-tab)
|
|
410
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/Slider#config-tab)
|
|
440
411
|
*/
|
|
441
412
|
tab? : boolean|TabConfig
|
|
442
413
|
/**
|
|
@@ -449,10 +420,13 @@ export type BryntumSliderProps = {
|
|
|
449
420
|
text? : string
|
|
450
421
|
/**
|
|
451
422
|
* Text alignment: 'left', 'center' or 'right'. Also accepts direction neutral 'start' and 'end'.
|
|
452
|
-
* ...
|
|
453
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/Slider#config-textAlign)
|
|
423
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/Slider#config-textAlign)
|
|
454
424
|
*/
|
|
455
425
|
textAlign? : 'left'|'center'|'right'|'start'|'end'
|
|
426
|
+
/**
|
|
427
|
+
* Icon to show in the thumb. By default, no icon is shown.
|
|
428
|
+
*/
|
|
429
|
+
thumbIcon? : string
|
|
456
430
|
/**
|
|
457
431
|
* A title to display for the widget. Only in effect when inside a container that uses it (such as TabPanel)
|
|
458
432
|
*/
|
|
@@ -464,8 +438,7 @@ export type BryntumSliderProps = {
|
|
|
464
438
|
/**
|
|
465
439
|
* By default, the [change](https://bryntum.com/products/core/docs/api/Core/widget/Slider#event-change) event is fired when a change gesture is completed, ie: on
|
|
466
440
|
* the mouse up gesture of a drag.
|
|
467
|
-
* ...
|
|
468
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/Slider#config-triggerChangeOnInput)
|
|
441
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/Slider#config-triggerChangeOnInput)
|
|
469
442
|
*/
|
|
470
443
|
triggerChangeOnInput? : boolean
|
|
471
444
|
type? : 'slider'
|
|
@@ -473,8 +446,7 @@ export type BryntumSliderProps = {
|
|
|
473
446
|
* Custom CSS class name suffixes to apply to the elements rendered by this widget. This may be specified
|
|
474
447
|
* as a space separated string, an array of strings, or as an object in which property names with truthy
|
|
475
448
|
* values are used as the class names.
|
|
476
|
-
* ...
|
|
477
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/Slider#config-ui)
|
|
449
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/Slider#config-ui)
|
|
478
450
|
*/
|
|
479
451
|
ui? : string|object
|
|
480
452
|
/**
|
|
@@ -484,14 +456,12 @@ export type BryntumSliderProps = {
|
|
|
484
456
|
/**
|
|
485
457
|
* Initial value.
|
|
486
458
|
* `String` value allows linking value by reference name.
|
|
487
|
-
* ...
|
|
488
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/Slider#config-value)
|
|
459
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/Slider#config-value)
|
|
489
460
|
*/
|
|
490
461
|
value? : number|string
|
|
491
462
|
/**
|
|
492
463
|
* Width of the value label when `showValue` is enabled. If a number is specified, `px` will be used.
|
|
493
|
-
* ...
|
|
494
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/Slider#config-valueLabelWidth)
|
|
464
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/Slider#config-valueLabelWidth)
|
|
495
465
|
*/
|
|
496
466
|
valueLabelWidth? : string|number
|
|
497
467
|
/**
|
|
@@ -507,14 +477,12 @@ export type BryntumSliderProps = {
|
|
|
507
477
|
width? : string|number
|
|
508
478
|
/**
|
|
509
479
|
* The x position for the widget.
|
|
510
|
-
* ...
|
|
511
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/Slider#config-x)
|
|
480
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/Slider#config-x)
|
|
512
481
|
*/
|
|
513
482
|
x? : number
|
|
514
483
|
/**
|
|
515
484
|
* The y position for the widget.
|
|
516
|
-
* ...
|
|
517
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/Slider#config-y)
|
|
485
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/Slider#config-y)
|
|
518
486
|
*/
|
|
519
487
|
y? : number
|
|
520
488
|
|
|
@@ -530,7 +498,7 @@ export type BryntumSliderProps = {
|
|
|
530
498
|
* @param {object} event Event object
|
|
531
499
|
* @param {Core.widget.Widget} event.source The widget being hidden.
|
|
532
500
|
*/
|
|
533
|
-
onBeforeHide? : ((event: { source: Widget }) =>
|
|
501
|
+
onBeforeHide? : ((event: { source: Widget }) => boolean|void)|string
|
|
534
502
|
/**
|
|
535
503
|
* Triggered before a widget is shown. Return `false` to prevent the action.
|
|
536
504
|
* @param {object} event Event object
|
|
@@ -539,8 +507,7 @@ export type BryntumSliderProps = {
|
|
|
539
507
|
onBeforeShow? : ((event: { source: Widget|any }) => Promise<boolean>|boolean|void)|string
|
|
540
508
|
/**
|
|
541
509
|
* Fires when any other event is fired from the object.
|
|
542
|
-
* ...
|
|
543
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/Slider#event-catchAll)
|
|
510
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/Slider#event-catchAll)
|
|
544
511
|
* @param {object} event Event object
|
|
545
512
|
* @param {{[key: string]: any, type: string}} event.event The Object that contains event details
|
|
546
513
|
* @param {string} event.event.type The type of the event which is caught by the listener
|
|
@@ -606,8 +573,7 @@ export type BryntumSliderProps = {
|
|
|
606
573
|
/**
|
|
607
574
|
* Triggered when a widget which had been in a non-visible state for any reason
|
|
608
575
|
* achieves visibility.
|
|
609
|
-
* ...
|
|
610
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/Slider#event-paint)
|
|
576
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/Slider#event-paint)
|
|
611
577
|
* @param {object} event Event object
|
|
612
578
|
* @param {Core.widget.Widget} event.source The widget being painted.
|
|
613
579
|
* @param {boolean} event.firstPaint `true` if this is the first paint.
|
|
@@ -687,6 +653,7 @@ export class BryntumSlider extends React.Component<BryntumSliderProps> {
|
|
|
687
653
|
'preventTooltipOnTouch',
|
|
688
654
|
'relayStoreEvents',
|
|
689
655
|
'ripple',
|
|
656
|
+
'role',
|
|
690
657
|
'rootElement',
|
|
691
658
|
'scrollAction',
|
|
692
659
|
'showAnimation',
|
|
@@ -753,6 +720,7 @@ export class BryntumSlider extends React.Component<BryntumSliderProps> {
|
|
|
753
720
|
'span',
|
|
754
721
|
'step',
|
|
755
722
|
'text',
|
|
723
|
+
'thumbIcon',
|
|
756
724
|
'tooltip',
|
|
757
725
|
'triggerChangeOnInput',
|
|
758
726
|
'unit',
|
|
@@ -764,8 +732,6 @@ export class BryntumSlider extends React.Component<BryntumSliderProps> {
|
|
|
764
732
|
];
|
|
765
733
|
|
|
766
734
|
static propertyNames = [
|
|
767
|
-
'anchorSize',
|
|
768
|
-
'focusVisible',
|
|
769
735
|
'parent'
|
|
770
736
|
];
|
|
771
737
|
|