@bryntum/core-react-thin 7.2.3 → 7.3.0
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 +261 -0
- package/lib/BryntumBooleanCombo.js +204 -0
- package/lib/BryntumBooleanCombo.js.map +1 -0
- package/lib/BryntumButton.d.ts +6 -14
- package/lib/BryntumButton.js +1 -2
- package/lib/BryntumButton.js.map +1 -1
- package/lib/BryntumButtonGroup.d.ts +8 -15
- package/lib/BryntumButtonGroup.js +2 -5
- package/lib/BryntumButtonGroup.js.map +1 -1
- package/lib/BryntumChatPanel.d.ts +16 -20
- package/lib/BryntumChatPanel.js +7 -6
- package/lib/BryntumChatPanel.js.map +1 -1
- package/lib/BryntumCheckbox.d.ts +7 -15
- package/lib/BryntumCheckbox.js +1 -2
- package/lib/BryntumCheckbox.js.map +1 -1
- package/lib/BryntumCheckboxGroup.d.ts +9 -21
- package/lib/BryntumCheckboxGroup.js +2 -6
- package/lib/BryntumCheckboxGroup.js.map +1 -1
- package/lib/BryntumChipView.d.ts +6 -14
- package/lib/BryntumChipView.js +1 -2
- package/lib/BryntumChipView.js.map +1 -1
- package/lib/BryntumCodeEditor.d.ts +9 -20
- package/lib/BryntumCodeEditor.js +2 -5
- package/lib/BryntumCodeEditor.js.map +1 -1
- package/lib/BryntumColorField.d.ts +7 -15
- package/lib/BryntumColorField.js +1 -2
- package/lib/BryntumColorField.js.map +1 -1
- package/lib/BryntumCombo.d.ts +10 -18
- package/lib/BryntumCombo.js +1 -2
- package/lib/BryntumCombo.js.map +1 -1
- package/lib/BryntumContainer.d.ts +7 -14
- package/lib/BryntumContainer.js +2 -5
- package/lib/BryntumContainer.js.map +1 -1
- package/lib/BryntumDateField.d.ts +7 -15
- package/lib/BryntumDateField.js +1 -2
- package/lib/BryntumDateField.js.map +1 -1
- package/lib/BryntumDatePicker.d.ts +9 -20
- package/lib/BryntumDatePicker.js +2 -5
- package/lib/BryntumDatePicker.js.map +1 -1
- package/lib/BryntumDateRangeField.d.ts +10 -18
- package/lib/BryntumDateRangeField.js +1 -2
- package/lib/BryntumDateRangeField.js.map +1 -1
- package/lib/BryntumDateTimeField.d.ts +7 -15
- package/lib/BryntumDateTimeField.js +1 -2
- package/lib/BryntumDateTimeField.js.map +1 -1
- package/lib/BryntumDemoCodeEditor.d.ts +9 -20
- package/lib/BryntumDemoCodeEditor.js +2 -5
- package/lib/BryntumDemoCodeEditor.js.map +1 -1
- package/lib/BryntumDisplayField.d.ts +7 -15
- package/lib/BryntumDisplayField.js +1 -2
- package/lib/BryntumDisplayField.js.map +1 -1
- package/lib/BryntumDurationField.d.ts +7 -15
- package/lib/BryntumDurationField.js +1 -2
- package/lib/BryntumDurationField.js.map +1 -1
- package/lib/BryntumEditor.d.ts +9 -19
- package/lib/BryntumEditor.js +2 -5
- package/lib/BryntumEditor.js.map +1 -1
- package/lib/BryntumFieldFilterPicker.d.ts +7 -14
- package/lib/BryntumFieldFilterPicker.js +2 -5
- package/lib/BryntumFieldFilterPicker.js.map +1 -1
- package/lib/BryntumFieldFilterPickerGroup.d.ts +7 -14
- package/lib/BryntumFieldFilterPickerGroup.js +2 -5
- package/lib/BryntumFieldFilterPickerGroup.js.map +1 -1
- package/lib/BryntumFieldSet.d.ts +9 -21
- package/lib/BryntumFieldSet.js +2 -6
- package/lib/BryntumFieldSet.js.map +1 -1
- package/lib/BryntumFileField.d.ts +7 -15
- package/lib/BryntumFileField.js +1 -2
- package/lib/BryntumFileField.js.map +1 -1
- package/lib/BryntumFilePicker.d.ts +7 -14
- package/lib/BryntumFilePicker.js +2 -5
- package/lib/BryntumFilePicker.js.map +1 -1
- package/lib/BryntumFilterField.d.ts +7 -15
- package/lib/BryntumFilterField.js +1 -2
- package/lib/BryntumFilterField.js.map +1 -1
- package/lib/BryntumHint.d.ts +21 -30
- package/lib/BryntumHint.js +2 -5
- package/lib/BryntumHint.js.map +1 -1
- package/lib/BryntumLabel.d.ts +6 -14
- package/lib/BryntumLabel.js +1 -2
- package/lib/BryntumLabel.js.map +1 -1
- package/lib/BryntumList.d.ts +6 -14
- package/lib/BryntumList.js +1 -2
- package/lib/BryntumList.js.map +1 -1
- package/lib/BryntumMenu.d.ts +20 -25
- package/lib/BryntumMenu.js +2 -6
- package/lib/BryntumMenu.js.map +1 -1
- package/lib/BryntumMonthPicker.d.ts +9 -20
- package/lib/BryntumMonthPicker.js +2 -5
- package/lib/BryntumMonthPicker.js.map +1 -1
- package/lib/BryntumNumberField.d.ts +7 -15
- package/lib/BryntumNumberField.js +1 -2
- package/lib/BryntumNumberField.js.map +1 -1
- package/lib/BryntumPagingToolbar.d.ts +10 -17
- package/lib/BryntumPagingToolbar.js +2 -5
- package/lib/BryntumPagingToolbar.js.map +1 -1
- package/lib/BryntumPanel.d.ts +9 -20
- package/lib/BryntumPanel.js +2 -5
- package/lib/BryntumPanel.js.map +1 -1
- package/lib/BryntumPasswordField.d.ts +7 -15
- package/lib/BryntumPasswordField.js +1 -2
- package/lib/BryntumPasswordField.js.map +1 -1
- package/lib/BryntumProgressBar.d.ts +6 -14
- package/lib/BryntumProgressBar.js +1 -2
- package/lib/BryntumProgressBar.js.map +1 -1
- package/lib/BryntumRadio.d.ts +7 -15
- package/lib/BryntumRadio.js +1 -2
- package/lib/BryntumRadio.js.map +1 -1
- package/lib/BryntumRadioGroup.d.ts +9 -21
- package/lib/BryntumRadioGroup.js +2 -6
- package/lib/BryntumRadioGroup.js.map +1 -1
- package/lib/BryntumSlideToggle.d.ts +7 -15
- package/lib/BryntumSlideToggle.js +1 -2
- package/lib/BryntumSlideToggle.js.map +1 -1
- package/lib/BryntumSlider.d.ts +7 -14
- package/lib/BryntumSlider.js +2 -2
- package/lib/BryntumSlider.js.map +1 -1
- package/lib/BryntumSplitter.d.ts +6 -14
- package/lib/BryntumSplitter.js +1 -2
- package/lib/BryntumSplitter.js.map +1 -1
- package/lib/BryntumTabPanel.d.ts +9 -20
- package/lib/BryntumTabPanel.js +2 -5
- package/lib/BryntumTabPanel.js.map +1 -1
- package/lib/BryntumTextAreaField.d.ts +8 -15
- package/lib/BryntumTextAreaField.js +2 -2
- package/lib/BryntumTextAreaField.js.map +1 -1
- package/lib/BryntumTextAreaPickerField.d.ts +8 -16
- package/lib/BryntumTextAreaPickerField.js +1 -2
- package/lib/BryntumTextAreaPickerField.js.map +1 -1
- package/lib/BryntumTextField.d.ts +7 -15
- package/lib/BryntumTextField.js +1 -2
- package/lib/BryntumTextField.js.map +1 -1
- package/lib/BryntumTimeField.d.ts +8 -16
- package/lib/BryntumTimeField.js +1 -2
- package/lib/BryntumTimeField.js.map +1 -1
- package/lib/BryntumTimePicker.d.ts +7 -14
- package/lib/BryntumTimePicker.js +2 -5
- package/lib/BryntumTimePicker.js.map +1 -1
- package/lib/BryntumToolbar.d.ts +10 -17
- package/lib/BryntumToolbar.js +2 -5
- package/lib/BryntumToolbar.js.map +1 -1
- package/lib/BryntumWidget.d.ts +6 -14
- package/lib/BryntumWidget.js +1 -2
- package/lib/BryntumWidget.js.map +1 -1
- package/lib/BryntumYearPicker.d.ts +9 -20
- 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 +1180 -0
- package/src/BryntumButton.tsx +69 -115
- package/src/BryntumButtonGroup.tsx +78 -123
- package/src/BryntumChatPanel.tsx +139 -169
- package/src/BryntumCheckbox.tsx +73 -117
- package/src/BryntumCheckboxGroup.tsx +109 -179
- package/src/BryntumChipView.tsx +65 -105
- package/src/BryntumCodeEditor.tsx +106 -167
- package/src/BryntumColorField.tsx +73 -117
- package/src/BryntumCombo.tsx +92 -152
- package/src/BryntumContainer.tsx +78 -124
- package/src/BryntumDateField.tsx +80 -123
- package/src/BryntumDatePicker.tsx +119 -193
- package/src/BryntumDateRangeField.tsx +79 -126
- package/src/BryntumDateTimeField.tsx +73 -117
- package/src/BryntumDemoCodeEditor.tsx +106 -167
- package/src/BryntumDisplayField.tsx +74 -119
- package/src/BryntumDurationField.tsx +80 -125
- package/src/BryntumEditor.tsx +90 -140
- package/src/BryntumFieldFilterPicker.tsx +80 -128
- package/src/BryntumFieldFilterPickerGroup.tsx +82 -132
- package/src/BryntumFieldSet.tsx +105 -172
- package/src/BryntumFileField.tsx +73 -117
- package/src/BryntumFilePicker.tsx +78 -124
- package/src/BryntumFilterField.tsx +76 -123
- package/src/BryntumHint.tsx +133 -190
- package/src/BryntumLabel.tsx +59 -95
- package/src/BryntumList.tsx +62 -101
- package/src/BryntumMenu.tsx +128 -188
- package/src/BryntumMonthPicker.tsx +106 -167
- package/src/BryntumNumberField.tsx +77 -121
- package/src/BryntumPagingToolbar.tsx +82 -129
- package/src/BryntumPanel.tsx +106 -167
- package/src/BryntumPasswordField.tsx +73 -117
- package/src/BryntumProgressBar.tsx +58 -93
- package/src/BryntumRadio.tsx +73 -117
- package/src/BryntumRadioGroup.tsx +109 -178
- package/src/BryntumSlideToggle.tsx +73 -117
- package/src/BryntumSlider.tsx +67 -101
- package/src/BryntumSplitter.tsx +61 -99
- package/src/BryntumTabPanel.tsx +107 -169
- package/src/BryntumTextAreaField.tsx +81 -119
- package/src/BryntumTextAreaPickerField.tsx +75 -120
- package/src/BryntumTextField.tsx +74 -119
- package/src/BryntumTimeField.tsx +79 -120
- package/src/BryntumTimePicker.tsx +78 -124
- package/src/BryntumToolbar.tsx +82 -129
- package/src/BryntumWidget.tsx +59 -95
- package/src/BryntumYearPicker.tsx +107 -169
- package/src/WrapperHelper.tsx +2 -2
- package/src/index.ts +1 -0
package/src/BryntumWidget.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, TabConfig, TooltipConfig, VueConfig, Widget, WidgetListeners } from '@bryntum/core-thin';
|
|
6
|
+
import { AlignSpec, Base, Color, DomConfig, KeyMapConfig, MaskConfig, ReactJSX, Rectangle, Scroller, ScrollerConfig, TabConfig, TooltipConfig, VueConfig, Widget, WidgetListeners } from '@bryntum/core-thin';
|
|
7
7
|
|
|
8
8
|
import { createWidget, shouldComponentUpdate, processWidgetContent } from './WrapperHelper.js';
|
|
9
9
|
|
|
@@ -12,14 +12,12 @@ export type BryntumWidgetProps = {
|
|
|
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/Widget#config-adopt)
|
|
15
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/Widget#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/Widget#config-align)
|
|
20
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/Widget#config-align)
|
|
23
21
|
*/
|
|
24
22
|
align? : AlignSpec|string
|
|
25
23
|
/**
|
|
@@ -41,35 +39,30 @@ export type BryntumWidgetProps = {
|
|
|
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/Widget#config-ariaDescription)
|
|
42
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/Widget#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/Widget#config-ariaLabel)
|
|
48
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/Widget#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/Widget#config-bubbleEvents)
|
|
54
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/Widget#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/Widget#config-callOnFunctions)
|
|
59
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/Widget#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/Widget#config-catchEventHandlerExceptions)
|
|
65
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/Widget#config-catchEventHandlerExceptions)
|
|
73
66
|
*/
|
|
74
67
|
catchEventHandlerExceptions? : boolean
|
|
75
68
|
/**
|
|
@@ -81,15 +74,13 @@ export type BryntumWidgetProps = {
|
|
|
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/Widget#config-cls)
|
|
77
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/Widget#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/Widget#config-color)
|
|
83
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/Widget#config-color)
|
|
93
84
|
*/
|
|
94
85
|
color? : Color
|
|
95
86
|
/**
|
|
@@ -113,8 +104,7 @@ export type BryntumWidgetProps = {
|
|
|
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/Widget#config-contentElementCls)
|
|
107
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/Widget#config-contentElementCls)
|
|
118
108
|
*/
|
|
119
109
|
contentElementCls? : string|object
|
|
120
110
|
/**
|
|
@@ -132,16 +122,15 @@ export type BryntumWidgetProps = {
|
|
|
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/Widget#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/Widget#config-disabled)
|
|
133
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/Widget#config-disabled)
|
|
145
134
|
*/
|
|
146
135
|
disabled? : boolean|'inert'
|
|
147
136
|
/**
|
|
@@ -149,25 +138,21 @@ export type BryntumWidgetProps = {
|
|
|
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/Widget#config-dock)
|
|
141
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/Widget#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/Widget#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/Widget#config-elementAttributes)
|
|
155
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/Widget#config-elementAttributes)
|
|
171
156
|
*/
|
|
172
157
|
elementAttributes? : Record<string, string|null>
|
|
173
158
|
extraData? : any
|
|
@@ -196,18 +181,15 @@ export type BryntumWidgetProps = {
|
|
|
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/Widget#config-hideAnimation)
|
|
184
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/Widget#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/Widget#config-html)
|
|
189
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/Widget#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 BryntumWidgetProps = {
|
|
|
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/Widget#config-ignoreParentReadOnly)
|
|
203
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/Widget#config-ignoreParentReadOnly)
|
|
223
204
|
*/
|
|
224
205
|
ignoreParentReadOnly? : boolean
|
|
225
206
|
/**
|
|
@@ -234,22 +215,19 @@ export type BryntumWidgetProps = {
|
|
|
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/Widget#config-keyMap)
|
|
218
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/Widget#config-keyMap)
|
|
239
219
|
*/
|
|
240
220
|
keyMap? : Record<string, KeyMapConfig>
|
|
241
221
|
/**
|
|
242
222
|
* The listener set for this object.
|
|
243
|
-
* ...
|
|
244
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/Widget#config-listeners)
|
|
223
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/Widget#config-listeners)
|
|
245
224
|
*/
|
|
246
225
|
listeners? : WidgetListeners
|
|
247
226
|
/**
|
|
248
227
|
* A class translations of which are used for translating this entity.
|
|
249
228
|
* This is often used when translations of an item are defined on its container class.
|
|
250
229
|
* For example:
|
|
251
|
-
* ...
|
|
252
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/Widget#config-localeClass)
|
|
230
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/Widget#config-localeClass)
|
|
253
231
|
*/
|
|
254
232
|
localeClass? : typeof Base
|
|
255
233
|
/**
|
|
@@ -261,8 +239,7 @@ export type BryntumWidgetProps = {
|
|
|
261
239
|
* In case there is a need to localize not typical value (not a String value or a field with re-defined setter/getter),
|
|
262
240
|
* you could use 'localeKey' meta configuration.
|
|
263
241
|
* Example:
|
|
264
|
-
* ...
|
|
265
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/Widget#config-localizableProperties)
|
|
242
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/Widget#config-localizableProperties)
|
|
266
243
|
*/
|
|
267
244
|
localizableProperties? : string[]
|
|
268
245
|
/**
|
|
@@ -288,8 +265,7 @@ export type BryntumWidgetProps = {
|
|
|
288
265
|
maxHeight? : string|number
|
|
289
266
|
/**
|
|
290
267
|
* *Only valid if this Widget is [floating](https://bryntum.com/products/core/docs/api/Core/widget/Widget#config-floating).*
|
|
291
|
-
* ...
|
|
292
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/Widget#config-maximizeOnMobile)
|
|
268
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/Widget#config-maximizeOnMobile)
|
|
293
269
|
*/
|
|
294
270
|
maximizeOnMobile? : number|string
|
|
295
271
|
/**
|
|
@@ -311,18 +287,15 @@ export type BryntumWidgetProps = {
|
|
|
311
287
|
* When this is configured as `true` a [ResizeObserver](https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserver)
|
|
312
288
|
* is used to monitor this element for size changes caused by either style manipulation, or by CSS
|
|
313
289
|
* layout.
|
|
314
|
-
* ...
|
|
315
|
-
*
|
|
290
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/Widget#config-monitorResize)
|
|
291
|
+
* @property {boolean} immediate Set to `true` to receive resize notifications immediately.
|
|
316
292
|
*/
|
|
317
|
-
monitorResize? : boolean|
|
|
318
|
-
immediate?: boolean
|
|
319
|
-
}
|
|
293
|
+
monitorResize? : boolean|object
|
|
320
294
|
/**
|
|
321
295
|
* 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
|
|
322
296
|
* not participate in the standard layout of that widget, and must be positioned relatively to that
|
|
323
297
|
* widget's [contentElement](https://bryntum.com/products/core/docs/api/Core/widget/Widget#property-contentElement).
|
|
324
|
-
* ...
|
|
325
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/Widget#config-positioned)
|
|
298
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/Widget#config-positioned)
|
|
326
299
|
*/
|
|
327
300
|
positioned? : boolean
|
|
328
301
|
/**
|
|
@@ -333,8 +306,7 @@ export type BryntumWidgetProps = {
|
|
|
333
306
|
/**
|
|
334
307
|
* Whether this widget is read-only. This is only valid if the widget is an input
|
|
335
308
|
* field, <strong>or contains input fields at any depth</strong>.
|
|
336
|
-
* ...
|
|
337
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/Widget#config-readOnly)
|
|
309
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/Widget#config-readOnly)
|
|
338
310
|
*/
|
|
339
311
|
readOnly? : boolean
|
|
340
312
|
relayStoreEvents? : boolean
|
|
@@ -342,23 +314,26 @@ export type BryntumWidgetProps = {
|
|
|
342
314
|
* Configure as `true` to have the component display a translucent ripple when its
|
|
343
315
|
* [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
|
|
344
316
|
* current theme supports ripples</em>. Out of the box, only the Material theme supports ripples.
|
|
345
|
-
* ...
|
|
346
|
-
* [
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
317
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/Widget#config-ripple)
|
|
318
|
+
* @property {string} [delegate] A CSS selector to filter which child elements trigger ripples. By default, the ripple is clipped to the triggering element.
|
|
319
|
+
* @property {string} [color] A CSS color name or specification.
|
|
320
|
+
* @property {number} [radius] The ending radius of the ripple. Note that it will be clipped by the target element by default.
|
|
321
|
+
* @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.
|
|
322
|
+
*/
|
|
323
|
+
ripple? : boolean|object
|
|
324
|
+
/**
|
|
325
|
+
* The ARIA role to apply to this widget's element. By default, this is set to `'presentation'` to avoid
|
|
326
|
+
* accidentally applying a role which may interfere with screen readers.
|
|
327
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/Widget#config-role)
|
|
328
|
+
*/
|
|
329
|
+
role? : string
|
|
354
330
|
/**
|
|
355
331
|
* 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`
|
|
356
332
|
*/
|
|
357
333
|
rootElement? : ShadowRoot|HTMLElement
|
|
358
334
|
/**
|
|
359
335
|
* This may be configured as `true` to make the widget's element use the `direction:rtl` style.
|
|
360
|
-
* ...
|
|
361
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/Widget#config-rtl)
|
|
336
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/Widget#config-rtl)
|
|
362
337
|
*/
|
|
363
338
|
rtl? : boolean
|
|
364
339
|
/**
|
|
@@ -366,8 +341,7 @@ export type BryntumWidgetProps = {
|
|
|
366
341
|
* in both axes. May be an object containing boolean `overflowX` and `overflowY` properties which are
|
|
367
342
|
* applied to CSS style properties `overflowX` and `overflowY`. If they are boolean, they are translated to
|
|
368
343
|
* CSS overflow properties thus:
|
|
369
|
-
* ...
|
|
370
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/Widget#config-scrollable)
|
|
344
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/Widget#config-scrollable)
|
|
371
345
|
*/
|
|
372
346
|
scrollable? : boolean|ScrollerConfig|Scroller
|
|
373
347
|
/**
|
|
@@ -377,8 +351,7 @@ export type BryntumWidgetProps = {
|
|
|
377
351
|
scrollAction? : 'hide'|'realign'|null
|
|
378
352
|
/**
|
|
379
353
|
* *Only valid if this Widget is [floating](https://bryntum.com/products/core/docs/api/Core/widget/Widget#config-floating).*
|
|
380
|
-
* ...
|
|
381
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/Widget#config-showAnimation)
|
|
354
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/Widget#config-showAnimation)
|
|
382
355
|
*/
|
|
383
356
|
showAnimation? : boolean|object
|
|
384
357
|
/**
|
|
@@ -393,8 +366,7 @@ export type BryntumWidgetProps = {
|
|
|
393
366
|
* 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
|
|
394
367
|
* [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
|
|
395
368
|
* this widget:
|
|
396
|
-
* ...
|
|
397
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/Widget#config-tab)
|
|
369
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/Widget#config-tab)
|
|
398
370
|
*/
|
|
399
371
|
tab? : boolean|TabConfig
|
|
400
372
|
/**
|
|
@@ -403,8 +375,7 @@ export type BryntumWidgetProps = {
|
|
|
403
375
|
tag? : string
|
|
404
376
|
/**
|
|
405
377
|
* Text alignment: 'left', 'center' or 'right'. Also accepts direction neutral 'start' and 'end'.
|
|
406
|
-
* ...
|
|
407
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/Widget#config-textAlign)
|
|
378
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/Widget#config-textAlign)
|
|
408
379
|
*/
|
|
409
380
|
textAlign? : 'left'|'center'|'right'|'start'|'end'
|
|
410
381
|
/**
|
|
@@ -413,8 +384,7 @@ export type BryntumWidgetProps = {
|
|
|
413
384
|
title? : string
|
|
414
385
|
/**
|
|
415
386
|
* Tooltip for the widget, either as a string or as a Tooltip config object.
|
|
416
|
-
* ...
|
|
417
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/Widget#config-tooltip)
|
|
387
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/Widget#config-tooltip)
|
|
418
388
|
*/
|
|
419
389
|
tooltip? : string|TooltipConfig|null
|
|
420
390
|
type? : 'widget'
|
|
@@ -422,8 +392,7 @@ export type BryntumWidgetProps = {
|
|
|
422
392
|
* Custom CSS class name suffixes to apply to the elements rendered by this widget. This may be specified
|
|
423
393
|
* as a space separated string, an array of strings, or as an object in which property names with truthy
|
|
424
394
|
* values are used as the class names.
|
|
425
|
-
* ...
|
|
426
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/Widget#config-ui)
|
|
395
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/Widget#config-ui)
|
|
427
396
|
*/
|
|
428
397
|
ui? : string|object
|
|
429
398
|
/**
|
|
@@ -439,14 +408,12 @@ export type BryntumWidgetProps = {
|
|
|
439
408
|
width? : string|number
|
|
440
409
|
/**
|
|
441
410
|
* The x position for the widget.
|
|
442
|
-
* ...
|
|
443
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/Widget#config-x)
|
|
411
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/Widget#config-x)
|
|
444
412
|
*/
|
|
445
413
|
x? : number
|
|
446
414
|
/**
|
|
447
415
|
* The y position for the widget.
|
|
448
|
-
* ...
|
|
449
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/Widget#config-y)
|
|
416
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/Widget#config-y)
|
|
450
417
|
*/
|
|
451
418
|
y? : number
|
|
452
419
|
|
|
@@ -471,8 +438,7 @@ export type BryntumWidgetProps = {
|
|
|
471
438
|
onBeforeShow? : ((event: { source: Widget|any }) => Promise<boolean>|boolean|void)|string
|
|
472
439
|
/**
|
|
473
440
|
* Fires when any other event is fired from the object.
|
|
474
|
-
* ...
|
|
475
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/Widget#event-catchAll)
|
|
441
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/Widget#event-catchAll)
|
|
476
442
|
* @param {object} event Event object
|
|
477
443
|
* @param {{[key: string]: any, type: string}} event.event The Object that contains event details
|
|
478
444
|
* @param {string} event.event.type The type of the event which is caught by the listener
|
|
@@ -523,8 +489,7 @@ export type BryntumWidgetProps = {
|
|
|
523
489
|
/**
|
|
524
490
|
* Triggered when a widget which had been in a non-visible state for any reason
|
|
525
491
|
* achieves visibility.
|
|
526
|
-
* ...
|
|
527
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/Widget#event-paint)
|
|
492
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/Widget#event-paint)
|
|
528
493
|
* @param {object} event Event object
|
|
529
494
|
* @param {Core.widget.Widget} event.source The widget being painted.
|
|
530
495
|
* @param {boolean} event.firstPaint `true` if this is the first paint.
|
|
@@ -601,6 +566,7 @@ export class BryntumWidget extends React.Component<BryntumWidgetProps> {
|
|
|
601
566
|
'preventTooltipOnTouch',
|
|
602
567
|
'relayStoreEvents',
|
|
603
568
|
'ripple',
|
|
569
|
+
'role',
|
|
604
570
|
'rootElement',
|
|
605
571
|
'scrollAction',
|
|
606
572
|
'showAnimation',
|
|
@@ -664,8 +630,6 @@ export class BryntumWidget extends React.Component<BryntumWidgetProps> {
|
|
|
664
630
|
];
|
|
665
631
|
|
|
666
632
|
static propertyNames = [
|
|
667
|
-
'anchorSize',
|
|
668
|
-
'focusVisible',
|
|
669
633
|
'parent'
|
|
670
634
|
];
|
|
671
635
|
|