@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/BryntumLabel.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, Label, LabelListeners, MaskConfig, Rectangle, Scroller, ScrollerConfig, TabConfig, TooltipConfig, VueConfig, Widget } from '@bryntum/core-thin';
|
|
6
|
+
import { AlignSpec, Base, Color, DomConfig, KeyMapConfig, Label, LabelListeners, MaskConfig, ReactJSX, Rectangle, Scroller, ScrollerConfig, 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 BryntumLabelProps = {
|
|
|
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/Label#config-adopt)
|
|
15
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/Label#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/Label#config-align)
|
|
20
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/Label#config-align)
|
|
23
21
|
*/
|
|
24
22
|
align? : AlignSpec|string
|
|
25
23
|
/**
|
|
@@ -41,35 +39,30 @@ export type BryntumLabelProps = {
|
|
|
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/Label#config-ariaDescription)
|
|
42
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/Label#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/Label#config-ariaLabel)
|
|
48
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/Label#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/Label#config-bubbleEvents)
|
|
54
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/Label#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/Label#config-callOnFunctions)
|
|
59
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/Label#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/Label#config-catchEventHandlerExceptions)
|
|
65
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/Label#config-catchEventHandlerExceptions)
|
|
73
66
|
*/
|
|
74
67
|
catchEventHandlerExceptions? : boolean
|
|
75
68
|
/**
|
|
@@ -81,15 +74,13 @@ export type BryntumLabelProps = {
|
|
|
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/Label#config-cls)
|
|
77
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/Label#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/Label#config-color)
|
|
83
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/Label#config-color)
|
|
93
84
|
*/
|
|
94
85
|
color? : Color
|
|
95
86
|
/**
|
|
@@ -113,8 +104,7 @@ export type BryntumLabelProps = {
|
|
|
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/Label#config-contentElementCls)
|
|
107
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/Label#config-contentElementCls)
|
|
118
108
|
*/
|
|
119
109
|
contentElementCls? : string|object
|
|
120
110
|
/**
|
|
@@ -132,16 +122,15 @@ export type BryntumLabelProps = {
|
|
|
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/Label#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/Label#config-disabled)
|
|
133
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/Label#config-disabled)
|
|
145
134
|
*/
|
|
146
135
|
disabled? : boolean|'inert'
|
|
147
136
|
/**
|
|
@@ -149,25 +138,21 @@ export type BryntumLabelProps = {
|
|
|
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/Label#config-dock)
|
|
141
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/Label#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/Label#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/Label#config-elementAttributes)
|
|
155
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/Label#config-elementAttributes)
|
|
171
156
|
*/
|
|
172
157
|
elementAttributes? : Record<string, string|null>
|
|
173
158
|
extraData? : any
|
|
@@ -196,18 +181,15 @@ export type BryntumLabelProps = {
|
|
|
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/Label#config-hideAnimation)
|
|
184
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/Label#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/Label#config-html)
|
|
189
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/Label#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 BryntumLabelProps = {
|
|
|
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/Label#config-ignoreParentReadOnly)
|
|
203
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/Label#config-ignoreParentReadOnly)
|
|
223
204
|
*/
|
|
224
205
|
ignoreParentReadOnly? : boolean
|
|
225
206
|
/**
|
|
@@ -234,22 +215,19 @@ export type BryntumLabelProps = {
|
|
|
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/Label#config-keyMap)
|
|
218
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/Label#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/Label#config-listeners)
|
|
223
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/Label#config-listeners)
|
|
245
224
|
*/
|
|
246
225
|
listeners? : LabelListeners
|
|
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/Label#config-localeClass)
|
|
230
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/Label#config-localeClass)
|
|
253
231
|
*/
|
|
254
232
|
localeClass? : typeof Base
|
|
255
233
|
/**
|
|
@@ -261,8 +239,7 @@ export type BryntumLabelProps = {
|
|
|
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/Label#config-localizableProperties)
|
|
242
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/Label#config-localizableProperties)
|
|
266
243
|
*/
|
|
267
244
|
localizableProperties? : string[]
|
|
268
245
|
/**
|
|
@@ -288,8 +265,7 @@ export type BryntumLabelProps = {
|
|
|
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/Label#config-maximizeOnMobile)
|
|
268
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/Label#config-maximizeOnMobile)
|
|
293
269
|
*/
|
|
294
270
|
maximizeOnMobile? : number|string
|
|
295
271
|
/**
|
|
@@ -311,18 +287,15 @@ export type BryntumLabelProps = {
|
|
|
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/Label#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/Label#config-positioned)
|
|
298
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/Label#config-positioned)
|
|
326
299
|
*/
|
|
327
300
|
positioned? : boolean
|
|
328
301
|
/**
|
|
@@ -333,8 +306,7 @@ export type BryntumLabelProps = {
|
|
|
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/Label#config-readOnly)
|
|
309
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/Label#config-readOnly)
|
|
338
310
|
*/
|
|
339
311
|
readOnly? : boolean
|
|
340
312
|
relayStoreEvents? : boolean
|
|
@@ -342,23 +314,26 @@ export type BryntumLabelProps = {
|
|
|
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/Label#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/Label#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/Label#config-rtl)
|
|
336
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/Label#config-rtl)
|
|
362
337
|
*/
|
|
363
338
|
rtl? : boolean
|
|
364
339
|
/**
|
|
@@ -366,8 +341,7 @@ export type BryntumLabelProps = {
|
|
|
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/Label#config-scrollable)
|
|
344
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/Label#config-scrollable)
|
|
371
345
|
*/
|
|
372
346
|
scrollable? : boolean|ScrollerConfig|Scroller
|
|
373
347
|
/**
|
|
@@ -377,8 +351,7 @@ export type BryntumLabelProps = {
|
|
|
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/Label#config-showAnimation)
|
|
354
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/Label#config-showAnimation)
|
|
382
355
|
*/
|
|
383
356
|
showAnimation? : boolean|object
|
|
384
357
|
/**
|
|
@@ -393,8 +366,7 @@ export type BryntumLabelProps = {
|
|
|
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/Label#config-tab)
|
|
369
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/Label#config-tab)
|
|
398
370
|
*/
|
|
399
371
|
tab? : boolean|TabConfig
|
|
400
372
|
/**
|
|
@@ -407,8 +379,7 @@ export type BryntumLabelProps = {
|
|
|
407
379
|
text? : string
|
|
408
380
|
/**
|
|
409
381
|
* Text alignment: 'left', 'center' or 'right'. Also accepts direction neutral 'start' and 'end'.
|
|
410
|
-
* ...
|
|
411
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/Label#config-textAlign)
|
|
382
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/Label#config-textAlign)
|
|
412
383
|
*/
|
|
413
384
|
textAlign? : 'left'|'center'|'right'|'start'|'end'
|
|
414
385
|
/**
|
|
@@ -417,8 +388,7 @@ export type BryntumLabelProps = {
|
|
|
417
388
|
title? : string
|
|
418
389
|
/**
|
|
419
390
|
* Tooltip for the widget, either as a string or as a Tooltip config object.
|
|
420
|
-
* ...
|
|
421
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/Label#config-tooltip)
|
|
391
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/Label#config-tooltip)
|
|
422
392
|
*/
|
|
423
393
|
tooltip? : string|TooltipConfig|null
|
|
424
394
|
type? : 'label'
|
|
@@ -426,8 +396,7 @@ export type BryntumLabelProps = {
|
|
|
426
396
|
* Custom CSS class name suffixes to apply to the elements rendered by this widget. This may be specified
|
|
427
397
|
* as a space separated string, an array of strings, or as an object in which property names with truthy
|
|
428
398
|
* values are used as the class names.
|
|
429
|
-
* ...
|
|
430
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/Label#config-ui)
|
|
399
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/Label#config-ui)
|
|
431
400
|
*/
|
|
432
401
|
ui? : string|object
|
|
433
402
|
/**
|
|
@@ -443,14 +412,12 @@ export type BryntumLabelProps = {
|
|
|
443
412
|
width? : string|number
|
|
444
413
|
/**
|
|
445
414
|
* The x position for the widget.
|
|
446
|
-
* ...
|
|
447
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/Label#config-x)
|
|
415
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/Label#config-x)
|
|
448
416
|
*/
|
|
449
417
|
x? : number
|
|
450
418
|
/**
|
|
451
419
|
* The y position for the widget.
|
|
452
|
-
* ...
|
|
453
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/Label#config-y)
|
|
420
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/Label#config-y)
|
|
454
421
|
*/
|
|
455
422
|
y? : number
|
|
456
423
|
|
|
@@ -475,8 +442,7 @@ export type BryntumLabelProps = {
|
|
|
475
442
|
onBeforeShow? : ((event: { source: Widget|any }) => Promise<boolean>|boolean|void)|string
|
|
476
443
|
/**
|
|
477
444
|
* Fires when any other event is fired from the object.
|
|
478
|
-
* ...
|
|
479
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/Label#event-catchAll)
|
|
445
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/Label#event-catchAll)
|
|
480
446
|
* @param {object} event Event object
|
|
481
447
|
* @param {{[key: string]: any, type: string}} event.event The Object that contains event details
|
|
482
448
|
* @param {string} event.event.type The type of the event which is caught by the listener
|
|
@@ -527,8 +493,7 @@ export type BryntumLabelProps = {
|
|
|
527
493
|
/**
|
|
528
494
|
* Triggered when a widget which had been in a non-visible state for any reason
|
|
529
495
|
* achieves visibility.
|
|
530
|
-
* ...
|
|
531
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/Label#event-paint)
|
|
496
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/Label#event-paint)
|
|
532
497
|
* @param {object} event Event object
|
|
533
498
|
* @param {Core.widget.Widget} event.source The widget being painted.
|
|
534
499
|
* @param {boolean} event.firstPaint `true` if this is the first paint.
|
|
@@ -605,6 +570,7 @@ export class BryntumLabel extends React.Component<BryntumLabelProps> {
|
|
|
605
570
|
'preventTooltipOnTouch',
|
|
606
571
|
'relayStoreEvents',
|
|
607
572
|
'ripple',
|
|
573
|
+
'role',
|
|
608
574
|
'rootElement',
|
|
609
575
|
'scrollAction',
|
|
610
576
|
'showAnimation',
|
|
@@ -669,8 +635,6 @@ export class BryntumLabel extends React.Component<BryntumLabelProps> {
|
|
|
669
635
|
];
|
|
670
636
|
|
|
671
637
|
static propertyNames = [
|
|
672
|
-
'anchorSize',
|
|
673
|
-
'focusVisible',
|
|
674
638
|
'parent'
|
|
675
639
|
];
|
|
676
640
|
|