@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/BryntumChipView.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, ChipView, ChipViewListeners, Collection, CollectionConfig, Color, DomConfig, KeyMapConfig, List, MaskConfig, Model, ModelConfig, Rectangle, Scroller, ScrollerConfig, Store, StoreConfig, TabConfig, TooltipConfig, VueConfig, Widget } from '@bryntum/core-thin';
|
|
6
|
+
import { AlignSpec, Base, ChipView, ChipViewListeners, Collection, CollectionConfig, Color, DomConfig, KeyMapConfig, List, MaskConfig, Model, ModelConfig, ReactJSX, Rectangle, Scroller, ScrollerConfig, Store, StoreConfig, TabConfig, TooltipConfig, VueConfig, Widget } from '@bryntum/core-thin';
|
|
7
7
|
|
|
8
8
|
import { createWidget, shouldComponentUpdate, processWidgetContent } from './WrapperHelper.js';
|
|
9
9
|
|
|
@@ -17,14 +17,12 @@ export type BryntumChipViewProps = {
|
|
|
17
17
|
/**
|
|
18
18
|
* Element (or element id) to adopt as this Widget's encapsulating element. The widget's
|
|
19
19
|
* content will be placed inside this element.
|
|
20
|
-
* ...
|
|
21
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/ChipView#config-adopt)
|
|
20
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/ChipView#config-adopt)
|
|
22
21
|
*/
|
|
23
22
|
adopt? : HTMLElement|string
|
|
24
23
|
/**
|
|
25
24
|
* *Only valid if this Widget is [floating](https://bryntum.com/products/core/docs/api/Core/widget/Widget#config-floating).*
|
|
26
|
-
* ...
|
|
27
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/ChipView#config-align)
|
|
25
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/ChipView#config-align)
|
|
28
26
|
*/
|
|
29
27
|
align? : AlignSpec|string
|
|
30
28
|
/**
|
|
@@ -51,35 +49,30 @@ export type BryntumChipViewProps = {
|
|
|
51
49
|
/**
|
|
52
50
|
* A localizable string (May contain `'L{}'` tokens which resolve in the locale file) to inject
|
|
53
51
|
* into an element which will be linked using the `aria-describedby` attribute.
|
|
54
|
-
* ...
|
|
55
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/ChipView#config-ariaDescription)
|
|
52
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/ChipView#config-ariaDescription)
|
|
56
53
|
*/
|
|
57
54
|
ariaDescription? : string
|
|
58
55
|
/**
|
|
59
56
|
* A localizable string (May contain `'L{}'` tokens which resolve in the locale file) to inject as
|
|
60
57
|
* the `aria-label` attribute.
|
|
61
|
-
* ...
|
|
62
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/ChipView#config-ariaLabel)
|
|
58
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/ChipView#config-ariaLabel)
|
|
63
59
|
*/
|
|
64
60
|
ariaLabel? : string
|
|
65
61
|
/**
|
|
66
62
|
* An object where property names with a truthy value indicate which events should bubble up the ownership
|
|
67
63
|
* hierarchy when triggered.
|
|
68
|
-
* ...
|
|
69
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/ChipView#config-bubbleEvents)
|
|
64
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/ChipView#config-bubbleEvents)
|
|
70
65
|
*/
|
|
71
66
|
bubbleEvents? : object
|
|
72
67
|
/**
|
|
73
68
|
* Set to `false` to not call onXXX method names (e.g. `onShow`, `onClick`), as an easy way to listen for events.
|
|
74
|
-
* ...
|
|
75
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/ChipView#config-callOnFunctions)
|
|
69
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/ChipView#config-callOnFunctions)
|
|
76
70
|
*/
|
|
77
71
|
callOnFunctions? : boolean
|
|
78
72
|
/**
|
|
79
73
|
* By default, if an event handler throws an exception, the error propagates up the stack and the
|
|
80
74
|
* application state is undefined. Code which follows the event handler will *not* be executed.
|
|
81
|
-
* ...
|
|
82
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/ChipView#config-catchEventHandlerExceptions)
|
|
75
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/ChipView#config-catchEventHandlerExceptions)
|
|
83
76
|
*/
|
|
84
77
|
catchEventHandlerExceptions? : boolean
|
|
85
78
|
/**
|
|
@@ -92,10 +85,9 @@ export type BryntumChipViewProps = {
|
|
|
92
85
|
*/
|
|
93
86
|
clearSelectionOnEmptySpaceClick? : boolean
|
|
94
87
|
/**
|
|
95
|
-
* Configure as `true` to display a clickable close icon after the [itemTpl](https://bryntum.com/products/core/docs/api/Core/widget/
|
|
88
|
+
* Configure as `true` to display a clickable close icon after the [itemTpl](https://bryntum.com/products/core/docs/api/Core/widget/ChipView#config-itemTpl).
|
|
96
89
|
* When tapped, the configured [closeHandler](https://bryntum.com/products/core/docs/api/Core/widget/ChipView#config-closeHandler) is called passing the associated record.
|
|
97
|
-
* ...
|
|
98
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/ChipView#config-closable)
|
|
90
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/ChipView#config-closable)
|
|
99
91
|
*/
|
|
100
92
|
closable? : boolean
|
|
101
93
|
/**
|
|
@@ -108,8 +100,7 @@ export type BryntumChipViewProps = {
|
|
|
108
100
|
* Custom CSS classes to add to element.
|
|
109
101
|
* May be specified as a space separated string, or as an object in which property names
|
|
110
102
|
* with truthy values are used as the class names:
|
|
111
|
-
* ...
|
|
112
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/ChipView#config-cls)
|
|
103
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/ChipView#config-cls)
|
|
113
104
|
*/
|
|
114
105
|
cls? : string|object
|
|
115
106
|
/**
|
|
@@ -119,8 +110,7 @@ export type BryntumChipViewProps = {
|
|
|
119
110
|
/**
|
|
120
111
|
* Applies the specified color to the widget, by setting the `--b-primary` CSS variable in the widgets
|
|
121
112
|
* `style` block.
|
|
122
|
-
* ...
|
|
123
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/ChipView#config-color)
|
|
113
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/ChipView#config-color)
|
|
124
114
|
*/
|
|
125
115
|
color? : Color
|
|
126
116
|
/**
|
|
@@ -144,8 +134,7 @@ export type BryntumChipViewProps = {
|
|
|
144
134
|
* Custom CSS classes to add to the [contentElement](https://bryntum.com/products/core/docs/api/Core/widget/Widget#property-contentElement).
|
|
145
135
|
* May be specified as a space separated string, or as an object in which property names
|
|
146
136
|
* with truthy values are used as the class names:
|
|
147
|
-
* ...
|
|
148
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/ChipView#config-contentElementCls)
|
|
137
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/ChipView#config-contentElementCls)
|
|
149
138
|
*/
|
|
150
139
|
contentElementCls? : string|object
|
|
151
140
|
/**
|
|
@@ -163,16 +152,15 @@ export type BryntumChipViewProps = {
|
|
|
163
152
|
*/
|
|
164
153
|
defaultBindProperty? : string
|
|
165
154
|
/**
|
|
166
|
-
* Check for CSS compatibility issues
|
|
167
|
-
*
|
|
168
|
-
* [
|
|
155
|
+
* Check for CSS compatibility and inclusion related issues and try to auto fix them. Performs the following
|
|
156
|
+
* checks:
|
|
157
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/ChipView#config-detectCSSCompatibilityIssues)
|
|
169
158
|
*/
|
|
170
159
|
detectCSSCompatibilityIssues? : boolean
|
|
171
160
|
/**
|
|
172
161
|
* 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
|
|
173
162
|
* cannot be focused, uses a different rendition (usually greyish) and does not allow selecting its value.
|
|
174
|
-
* ...
|
|
175
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/ChipView#config-disabled)
|
|
163
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/ChipView#config-disabled)
|
|
176
164
|
*/
|
|
177
165
|
disabled? : boolean|'inert'
|
|
178
166
|
/**
|
|
@@ -184,25 +172,21 @@ export type BryntumChipViewProps = {
|
|
|
184
172
|
* [strips collection](https://bryntum.com/products/core/docs/api/Core/widget/Panel#config-strips). Typical values for this config are `'top'`,
|
|
185
173
|
* `'bottom'`, `'left'`, or `'right'`, which cause the widget to be placed on that side of the panel's
|
|
186
174
|
* body. Such widgets are called "edge strips".
|
|
187
|
-
* ...
|
|
188
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/ChipView#config-dock)
|
|
175
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/ChipView#config-dock)
|
|
189
176
|
*/
|
|
190
177
|
dock? : 'top'|'bottom'|'left'|'right'|'start'|'end'|'header'|'pre-header'|object
|
|
191
178
|
/**
|
|
192
179
|
* *Only valid if this Widget is [floating](https://bryntum.com/products/core/docs/api/Core/widget/Widget#config-floating).*
|
|
193
180
|
* Set to `true` to be able to drag a widget freely on the page. Or set to an object with a ´handleSelector´
|
|
194
181
|
* property which controls when a drag should start.
|
|
195
|
-
* ...
|
|
196
|
-
*
|
|
182
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/ChipView#config-draggable)
|
|
183
|
+
* @property {string} handleSelector CSS selector used to determine if drag can be started from a mouse-downed element inside the widget
|
|
197
184
|
*/
|
|
198
|
-
draggable? : boolean|
|
|
199
|
-
handleSelector?: string
|
|
200
|
-
}
|
|
185
|
+
draggable? : boolean|object
|
|
201
186
|
/**
|
|
202
187
|
* An object specifying attributes to assign to the root element of this widget.
|
|
203
188
|
* Set `null` value to attribute to remove it.
|
|
204
|
-
* ...
|
|
205
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/ChipView#config-elementAttributes)
|
|
189
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/ChipView#config-elementAttributes)
|
|
206
190
|
*/
|
|
207
191
|
elementAttributes? : Record<string, string|null>
|
|
208
192
|
/**
|
|
@@ -257,25 +241,22 @@ export type BryntumChipViewProps = {
|
|
|
257
241
|
hidden? : boolean
|
|
258
242
|
/**
|
|
259
243
|
* *Only valid if this Widget is [floating](https://bryntum.com/products/core/docs/api/Core/widget/Widget#config-floating).*
|
|
260
|
-
* ...
|
|
261
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/ChipView#config-hideAnimation)
|
|
244
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/ChipView#config-hideAnimation)
|
|
262
245
|
*/
|
|
263
246
|
hideAnimation? : boolean|object
|
|
264
247
|
/**
|
|
265
248
|
* The HTML to display initially or a function returning the markup (called at widget construction time).
|
|
266
|
-
* ...
|
|
267
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/ChipView#config-html)
|
|
249
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/ChipView#config-html)
|
|
268
250
|
* @param {Core.widget.Widget} widget The calling Widget
|
|
269
|
-
* @returns {string}
|
|
270
251
|
*/
|
|
271
|
-
html? : string|((widget: Widget) =>
|
|
252
|
+
html? : string|((widget: Widget) => void)|DomConfig|DomConfig[]|VueConfig|ReactJSX
|
|
272
253
|
/**
|
|
273
254
|
* The CSS class(es) to add when HTML content is being applied to this widget.
|
|
274
255
|
*/
|
|
275
256
|
htmlCls? : string|object
|
|
276
257
|
/**
|
|
277
258
|
* A template function, which, when passed a record, returns the markup which encapsulates a chip's icon to be
|
|
278
|
-
* placed before the [itemTpl](https://bryntum.com/products/core/docs/api/Core/widget/
|
|
259
|
+
* placed before the [itemTpl](https://bryntum.com/products/core/docs/api/Core/widget/ChipView#config-itemTpl).
|
|
279
260
|
* @param {Core.data.Model} record The record to provide an icon for
|
|
280
261
|
* @returns {DomConfig,string,void}
|
|
281
262
|
*/
|
|
@@ -286,8 +267,7 @@ export type BryntumChipViewProps = {
|
|
|
286
267
|
id? : string
|
|
287
268
|
/**
|
|
288
269
|
* Determines if the widgets read-only state should be controlled by its parent.
|
|
289
|
-
* ...
|
|
290
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/ChipView#config-ignoreParentReadOnly)
|
|
270
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/ChipView#config-ignoreParentReadOnly)
|
|
291
271
|
*/
|
|
292
272
|
ignoreParentReadOnly? : boolean
|
|
293
273
|
/**
|
|
@@ -321,22 +301,19 @@ export type BryntumChipViewProps = {
|
|
|
321
301
|
* An object whose keys are the [key](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/key) name
|
|
322
302
|
* and optional modifier prefixes: `'Ctrl+'`, `'Alt+'`, `'Meta+'`, and `'Shift+'` (case-insensitive). The values
|
|
323
303
|
* are the name of the instance method to call when the keystroke is received.
|
|
324
|
-
* ...
|
|
325
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/ChipView#config-keyMap)
|
|
304
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/ChipView#config-keyMap)
|
|
326
305
|
*/
|
|
327
306
|
keyMap? : Record<string, KeyMapConfig>
|
|
328
307
|
/**
|
|
329
308
|
* The listener set for this object.
|
|
330
|
-
* ...
|
|
331
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/ChipView#config-listeners)
|
|
309
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/ChipView#config-listeners)
|
|
332
310
|
*/
|
|
333
311
|
listeners? : ChipViewListeners
|
|
334
312
|
/**
|
|
335
313
|
* A class translations of which are used for translating this entity.
|
|
336
314
|
* This is often used when translations of an item are defined on its container class.
|
|
337
315
|
* For example:
|
|
338
|
-
* ...
|
|
339
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/ChipView#config-localeClass)
|
|
316
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/ChipView#config-localeClass)
|
|
340
317
|
*/
|
|
341
318
|
localeClass? : typeof Base
|
|
342
319
|
/**
|
|
@@ -348,8 +325,7 @@ export type BryntumChipViewProps = {
|
|
|
348
325
|
* In case there is a need to localize not typical value (not a String value or a field with re-defined setter/getter),
|
|
349
326
|
* you could use 'localeKey' meta configuration.
|
|
350
327
|
* Example:
|
|
351
|
-
* ...
|
|
352
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/ChipView#config-localizableProperties)
|
|
328
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/ChipView#config-localizableProperties)
|
|
353
329
|
*/
|
|
354
330
|
localizableProperties? : string[]
|
|
355
331
|
/**
|
|
@@ -375,8 +351,7 @@ export type BryntumChipViewProps = {
|
|
|
375
351
|
maxHeight? : string|number
|
|
376
352
|
/**
|
|
377
353
|
* *Only valid if this Widget is [floating](https://bryntum.com/products/core/docs/api/Core/widget/Widget#config-floating).*
|
|
378
|
-
* ...
|
|
379
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/ChipView#config-maximizeOnMobile)
|
|
354
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/ChipView#config-maximizeOnMobile)
|
|
380
355
|
*/
|
|
381
356
|
maximizeOnMobile? : number|string
|
|
382
357
|
/**
|
|
@@ -398,12 +373,10 @@ export type BryntumChipViewProps = {
|
|
|
398
373
|
* When this is configured as `true` a [ResizeObserver](https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserver)
|
|
399
374
|
* is used to monitor this element for size changes caused by either style manipulation, or by CSS
|
|
400
375
|
* layout.
|
|
401
|
-
* ...
|
|
402
|
-
*
|
|
376
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/ChipView#config-monitorResize)
|
|
377
|
+
* @property {boolean} immediate Set to `true` to receive resize notifications immediately.
|
|
403
378
|
*/
|
|
404
|
-
monitorResize? : boolean|
|
|
405
|
-
immediate?: boolean
|
|
406
|
-
}
|
|
379
|
+
monitorResize? : boolean|object
|
|
407
380
|
/**
|
|
408
381
|
* Configure as `true` to allow multi select and allow clicking and key navigation to select multiple chips.
|
|
409
382
|
*/
|
|
@@ -412,8 +385,7 @@ export type BryntumChipViewProps = {
|
|
|
412
385
|
* 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
|
|
413
386
|
* not participate in the standard layout of that widget, and must be positioned relatively to that
|
|
414
387
|
* widget's [contentElement](https://bryntum.com/products/core/docs/api/Core/widget/Widget#property-contentElement).
|
|
415
|
-
* ...
|
|
416
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/ChipView#config-positioned)
|
|
388
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/ChipView#config-positioned)
|
|
417
389
|
*/
|
|
418
390
|
positioned? : boolean
|
|
419
391
|
/**
|
|
@@ -424,8 +396,7 @@ export type BryntumChipViewProps = {
|
|
|
424
396
|
/**
|
|
425
397
|
* Whether this widget is read-only. This is only valid if the widget is an input
|
|
426
398
|
* field, <strong>or contains input fields at any depth</strong>.
|
|
427
|
-
* ...
|
|
428
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/ChipView#config-readOnly)
|
|
399
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/ChipView#config-readOnly)
|
|
429
400
|
*/
|
|
430
401
|
readOnly? : boolean
|
|
431
402
|
relayStoreEvents? : boolean
|
|
@@ -433,23 +404,26 @@ export type BryntumChipViewProps = {
|
|
|
433
404
|
* Configure as `true` to have the component display a translucent ripple when its
|
|
434
405
|
* [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
|
|
435
406
|
* current theme supports ripples</em>. Out of the box, only the Material theme supports ripples.
|
|
436
|
-
* ...
|
|
437
|
-
* [
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
407
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/ChipView#config-ripple)
|
|
408
|
+
* @property {string} [delegate] A CSS selector to filter which child elements trigger ripples. By default, the ripple is clipped to the triggering element.
|
|
409
|
+
* @property {string} [color] A CSS color name or specification.
|
|
410
|
+
* @property {number} [radius] The ending radius of the ripple. Note that it will be clipped by the target element by default.
|
|
411
|
+
* @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.
|
|
412
|
+
*/
|
|
413
|
+
ripple? : boolean|object
|
|
414
|
+
/**
|
|
415
|
+
* The ARIA role to apply to this widget's element. By default, this is set to `'presentation'` to avoid
|
|
416
|
+
* accidentally applying a role which may interfere with screen readers.
|
|
417
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/ChipView#config-role)
|
|
418
|
+
*/
|
|
419
|
+
role? : string
|
|
445
420
|
/**
|
|
446
421
|
* 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`
|
|
447
422
|
*/
|
|
448
423
|
rootElement? : ShadowRoot|HTMLElement
|
|
449
424
|
/**
|
|
450
425
|
* This may be configured as `true` to make the widget's element use the `direction:rtl` style.
|
|
451
|
-
* ...
|
|
452
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/ChipView#config-rtl)
|
|
426
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/ChipView#config-rtl)
|
|
453
427
|
*/
|
|
454
428
|
rtl? : boolean
|
|
455
429
|
/**
|
|
@@ -457,8 +431,7 @@ export type BryntumChipViewProps = {
|
|
|
457
431
|
* in both axes. May be an object containing boolean `overflowX` and `overflowY` properties which are
|
|
458
432
|
* applied to CSS style properties `overflowX` and `overflowY`. If they are boolean, they are translated to
|
|
459
433
|
* CSS overflow properties thus:
|
|
460
|
-
* ...
|
|
461
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/ChipView#config-scrollable)
|
|
434
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/ChipView#config-scrollable)
|
|
462
435
|
*/
|
|
463
436
|
scrollable? : boolean|ScrollerConfig|Scroller
|
|
464
437
|
/**
|
|
@@ -474,14 +447,12 @@ export type BryntumChipViewProps = {
|
|
|
474
447
|
/**
|
|
475
448
|
* A [Collection](https://bryntum.com/products/core/docs/api/Core/util/Collection), or Collection config object to use to contain this List's selected
|
|
476
449
|
* records.
|
|
477
|
-
* ...
|
|
478
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/ChipView#config-selected)
|
|
450
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/ChipView#config-selected)
|
|
479
451
|
*/
|
|
480
452
|
selected? : object[]|number[]|string[]|Collection|CollectionConfig|CollectionConfig[]
|
|
481
453
|
/**
|
|
482
454
|
* *Only valid if this Widget is [floating](https://bryntum.com/products/core/docs/api/Core/widget/Widget#config-floating).*
|
|
483
|
-
* ...
|
|
484
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/ChipView#config-showAnimation)
|
|
455
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/ChipView#config-showAnimation)
|
|
485
456
|
*/
|
|
486
457
|
showAnimation? : boolean|object
|
|
487
458
|
/**
|
|
@@ -495,16 +466,14 @@ export type BryntumChipViewProps = {
|
|
|
495
466
|
/**
|
|
496
467
|
* A [Store](https://bryntum.com/products/core/docs/api/Core/data/Store) which provides the records which map to List items. Each record is passed through the
|
|
497
468
|
* [itemTpl](https://bryntum.com/products/core/docs/api/Core/widget/List#config-itemTpl) to produce the DOM structure of the List. May be generated from an array of [items](#Core/widget/List#config-items).
|
|
498
|
-
* ...
|
|
499
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/ChipView#config-store)
|
|
469
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/ChipView#config-store)
|
|
500
470
|
*/
|
|
501
471
|
store? : object|object[]|StoreConfig|Store|StoreConfig[]
|
|
502
472
|
/**
|
|
503
473
|
* 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
|
|
504
474
|
* [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
|
|
505
475
|
* this widget:
|
|
506
|
-
* ...
|
|
507
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/ChipView#config-tab)
|
|
476
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/ChipView#config-tab)
|
|
508
477
|
*/
|
|
509
478
|
tab? : boolean|TabConfig
|
|
510
479
|
/**
|
|
@@ -513,8 +482,7 @@ export type BryntumChipViewProps = {
|
|
|
513
482
|
tag? : string
|
|
514
483
|
/**
|
|
515
484
|
* Text alignment: 'left', 'center' or 'right'. Also accepts direction neutral 'start' and 'end'.
|
|
516
|
-
* ...
|
|
517
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/ChipView#config-textAlign)
|
|
485
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/ChipView#config-textAlign)
|
|
518
486
|
*/
|
|
519
487
|
textAlign? : 'left'|'center'|'right'|'start'|'end'
|
|
520
488
|
/**
|
|
@@ -527,8 +495,7 @@ export type BryntumChipViewProps = {
|
|
|
527
495
|
toggleAllIfCtrlPressed? : boolean
|
|
528
496
|
/**
|
|
529
497
|
* Tooltip for the widget, either as a string or as a Tooltip config object.
|
|
530
|
-
* ...
|
|
531
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/ChipView#config-tooltip)
|
|
498
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/ChipView#config-tooltip)
|
|
532
499
|
*/
|
|
533
500
|
tooltip? : string|TooltipConfig|null
|
|
534
501
|
/**
|
|
@@ -542,16 +509,14 @@ export type BryntumChipViewProps = {
|
|
|
542
509
|
* Custom CSS class name suffixes to apply to the elements rendered by this widget. This may be specified
|
|
543
510
|
* as a space separated string, an array of strings, or as an object in which property names with truthy
|
|
544
511
|
* values are used as the class names.
|
|
545
|
-
* ...
|
|
546
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/ChipView#config-ui)
|
|
512
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/ChipView#config-ui)
|
|
547
513
|
*/
|
|
548
514
|
ui? : string|object
|
|
549
515
|
/**
|
|
550
516
|
* Controls virtualization of list items using the `IntersectionObserver` API to render items only when
|
|
551
517
|
* scrolled into view. This is only useful for lists with complex markup, for simple lists it likely adds
|
|
552
518
|
* overhead.
|
|
553
|
-
* ...
|
|
554
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/ChipView#config-virtualize)
|
|
519
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/ChipView#config-virtualize)
|
|
555
520
|
*/
|
|
556
521
|
virtualize? : boolean|number
|
|
557
522
|
/**
|
|
@@ -567,14 +532,12 @@ export type BryntumChipViewProps = {
|
|
|
567
532
|
width? : string|number
|
|
568
533
|
/**
|
|
569
534
|
* The x position for the widget.
|
|
570
|
-
* ...
|
|
571
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/ChipView#config-x)
|
|
535
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/ChipView#config-x)
|
|
572
536
|
*/
|
|
573
537
|
x? : number
|
|
574
538
|
/**
|
|
575
539
|
* The y position for the widget.
|
|
576
|
-
* ...
|
|
577
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/ChipView#config-y)
|
|
540
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/ChipView#config-y)
|
|
578
541
|
*/
|
|
579
542
|
y? : number
|
|
580
543
|
|
|
@@ -590,7 +553,7 @@ export type BryntumChipViewProps = {
|
|
|
590
553
|
* @param {object} event Event object
|
|
591
554
|
* @param {Core.widget.Widget} event.source The widget being hidden.
|
|
592
555
|
*/
|
|
593
|
-
onBeforeHide? : ((event: { source: Widget }) =>
|
|
556
|
+
onBeforeHide? : ((event: { source: Widget }) => boolean|void)|string
|
|
594
557
|
/**
|
|
595
558
|
* User going to activate an item in the list either by pointer or keyboard.
|
|
596
559
|
* The active record, list item index, and the triggering event are passed.
|
|
@@ -602,7 +565,7 @@ export type BryntumChipViewProps = {
|
|
|
602
565
|
* @param {number} event.index List item index
|
|
603
566
|
* @param {Event} event.event Triggering event
|
|
604
567
|
*/
|
|
605
|
-
onBeforeItem? : ((event: { source: List, item: HTMLElement, record: Model, index: number, event: Event }) =>
|
|
568
|
+
onBeforeItem? : ((event: { source: List, item: HTMLElement, record: Model, index: number, event: Event }) => boolean|void)|string
|
|
606
569
|
/**
|
|
607
570
|
* Triggered before a widget is shown. Return `false` to prevent the action.
|
|
608
571
|
* @param {object} event Event object
|
|
@@ -611,8 +574,7 @@ export type BryntumChipViewProps = {
|
|
|
611
574
|
onBeforeShow? : ((event: { source: Widget|any }) => Promise<boolean>|boolean|void)|string
|
|
612
575
|
/**
|
|
613
576
|
* Fires when any other event is fired from the object.
|
|
614
|
-
* ...
|
|
615
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/ChipView#event-catchAll)
|
|
577
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/ChipView#event-catchAll)
|
|
616
578
|
* @param {object} event Event object
|
|
617
579
|
* @param {{[key: string]: any, type: string}} event.event The Object that contains event details
|
|
618
580
|
* @param {string} event.event.type The type of the event which is caught by the listener
|
|
@@ -674,8 +636,7 @@ export type BryntumChipViewProps = {
|
|
|
674
636
|
/**
|
|
675
637
|
* Triggered when a widget which had been in a non-visible state for any reason
|
|
676
638
|
* achieves visibility.
|
|
677
|
-
* ...
|
|
678
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/ChipView#event-paint)
|
|
639
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/ChipView#event-paint)
|
|
679
640
|
* @param {object} event Event object
|
|
680
641
|
* @param {Core.widget.Widget} event.source The widget being painted.
|
|
681
642
|
* @param {boolean} event.firstPaint `true` if this is the first paint.
|
|
@@ -783,6 +744,7 @@ export class BryntumChipView extends React.Component<BryntumChipViewProps> {
|
|
|
783
744
|
'preventTooltipOnTouch',
|
|
784
745
|
'relayStoreEvents',
|
|
785
746
|
'ripple',
|
|
747
|
+
'role',
|
|
786
748
|
'rootElement',
|
|
787
749
|
'scrollAction',
|
|
788
750
|
'selectAllItem',
|
|
@@ -863,8 +825,6 @@ export class BryntumChipView extends React.Component<BryntumChipViewProps> {
|
|
|
863
825
|
];
|
|
864
826
|
|
|
865
827
|
static propertyNames = [
|
|
866
|
-
'anchorSize',
|
|
867
|
-
'focusVisible',
|
|
868
828
|
'parent'
|
|
869
829
|
];
|
|
870
830
|
|