@progress/kendo-react-dropdowns 13.3.0 → 13.4.0-develop.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/AutoComplete/AutoComplete.d.ts +274 -0
- package/AutoComplete/AutoComplete.js +1 -1
- package/AutoComplete/AutoComplete.mjs +67 -69
- package/AutoComplete/AutoCompleteProps.d.ts +509 -0
- package/ComboBox/ComboBox.d.ts +279 -0
- package/ComboBox/ComboBox.js +1 -1
- package/ComboBox/ComboBox.mjs +281 -297
- package/ComboBox/ComboBoxProps.d.ts +632 -0
- package/DropDownList/DropDownList.d.ts +41 -0
- package/DropDownList/DropDownList.js +1 -1
- package/DropDownList/DropDownList.mjs +78 -83
- package/DropDownList/DropDownListProps.d.ts +594 -0
- package/DropDownList/models/index.d.ts +54 -0
- package/DropDownTree/DropDownTree.d.ts +76 -0
- package/DropDownTree/DropDownTree.js +1 -1
- package/DropDownTree/DropDownTree.mjs +6 -8
- package/DropDownTree/DropDownTreeProps.d.ts +506 -0
- package/DropDownTree/ListNoData.d.ts +13 -0
- package/DropDownTree/useDropdownWidth.d.ts +13 -0
- package/MultiColumnComboBox/MultiColumnComboBox.d.ts +299 -0
- package/MultiColumnComboBox/MultiColumnComboBox.js +1 -1
- package/MultiColumnComboBox/MultiColumnComboBox.mjs +45 -48
- package/MultiSelect/MultiSelect.d.ts +281 -0
- package/MultiSelect/MultiSelect.js +1 -1
- package/MultiSelect/MultiSelect.mjs +13 -15
- package/MultiSelect/MultiSelectProps.d.ts +592 -0
- package/MultiSelect/TagList.d.ts +45 -0
- package/MultiSelectTree/MultiSelectTree.d.ts +87 -0
- package/MultiSelectTree/MultiSelectTree.js +1 -1
- package/MultiSelectTree/MultiSelectTree.mjs +7 -7
- package/MultiSelectTree/MultiSelectTreeProps.d.ts +554 -0
- package/MultiSelectTree/utils.d.ts +24 -0
- package/common/AdaptiveMode.d.ts +22 -0
- package/common/ClearButton.d.ts +19 -0
- package/common/DropDownBase.d.ts +186 -0
- package/common/DropDownBase.js +1 -1
- package/common/DropDownBase.mjs +1 -1
- package/common/GroupStickyHeader.d.ts +26 -0
- package/common/GroupStickyHeader.js +1 -1
- package/common/GroupStickyHeader.mjs +6 -6
- package/common/List.d.ts +54 -0
- package/common/List.js +1 -1
- package/common/List.mjs +129 -77
- package/common/ListContainer.d.ts +24 -0
- package/common/ListDefaultItem.d.ts +22 -0
- package/common/ListFilter.d.ts +29 -0
- package/common/ListFilter.js +1 -1
- package/common/ListFilter.mjs +12 -12
- package/common/ListGroupItem.d.ts +54 -0
- package/common/ListGroupItem.js +1 -1
- package/common/ListGroupItem.mjs +21 -13
- package/common/ListItem.d.ts +87 -0
- package/common/ListItem.js +1 -1
- package/common/ListItem.mjs +62 -21
- package/common/ListItemIcon.d.ts +26 -0
- package/common/ListItemIcon.js +8 -0
- package/common/ListItemIcon.mjs +21 -0
- package/common/MultiColumnList.d.ts +13 -0
- package/common/Navigation.d.ts +20 -0
- package/common/SearchBar.d.ts +55 -0
- package/common/VirtualScrollStatic.d.ts +44 -0
- package/common/events.d.ts +82 -0
- package/common/filterDescriptor.d.ts +48 -0
- package/common/settings.d.ts +112 -0
- package/common/utils.d.ts +82 -0
- package/common/utils.js +1 -1
- package/common/utils.mjs +50 -47
- package/common/withCustomComponent.d.ts +12 -0
- package/dist/cdn/js/kendo-react-dropdowns.js +1 -1
- package/index.d.mts +28 -5545
- package/index.d.ts +28 -5545
- package/messages/index.d.ts +52 -0
- package/package-metadata.d.ts +12 -0
- package/package-metadata.js +1 -1
- package/package-metadata.mjs +10 -16
- package/package.json +10 -10
|
@@ -0,0 +1,632 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { ComboBox } from './ComboBox.js';
|
|
9
|
+
import { FilterChangeEvent, ChangeEvent, OpenEvent, CloseEvent, FocusEvent, BlurEvent, PageChangeEvent } from './../common/events.js';
|
|
10
|
+
import { AdaptiveModeContextType, CustomComponent, DropDownsClassStructure, FormComponentProps, SVGIcon } from '@progress/kendo-react-common';
|
|
11
|
+
import { VirtualizationSettings, DropDownsPopupSettings } from '../common/settings.js';
|
|
12
|
+
import { ListItemProps } from '../common/ListItem.js';
|
|
13
|
+
import { ListGroupItemProps } from '../common/ListGroupItem.js';
|
|
14
|
+
import { GroupStickyHeaderProps } from '../common/GroupStickyHeader.js';
|
|
15
|
+
/**
|
|
16
|
+
* Represents the object of the `FilterChange` ComboBox event.
|
|
17
|
+
*/
|
|
18
|
+
export interface ComboBoxFilterChangeEvent extends FilterChangeEvent<ComboBox> {
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Represents the object of the `change` ComboBox event.
|
|
22
|
+
*/
|
|
23
|
+
export interface ComboBoxChangeEvent extends ChangeEvent<ComboBox> {
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Represents the object of the `open` ComboBox event.
|
|
27
|
+
*/
|
|
28
|
+
export interface ComboBoxOpenEvent extends OpenEvent<ComboBox> {
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Represents the object of the `close` ComboBox event.
|
|
32
|
+
*/
|
|
33
|
+
export interface ComboBoxCloseEvent extends CloseEvent<ComboBox> {
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Represents the object of the `focus` ComboBox event.
|
|
37
|
+
*/
|
|
38
|
+
export interface ComboBoxFocusEvent extends FocusEvent<ComboBox> {
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Represents the object of the `blur` ComboBox event.
|
|
42
|
+
*/
|
|
43
|
+
export interface ComboBoxBlurEvent extends BlurEvent<ComboBox> {
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Represents the object of the `PageChange` ComboBox event.
|
|
47
|
+
*/
|
|
48
|
+
export interface ComboBoxPageChangeEvent extends PageChangeEvent<ComboBox> {
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Represents the props of the [KendoReact ComboBox component](https://www.telerik.com/kendo-react-ui/components/dropdowns/combobox).
|
|
52
|
+
*/
|
|
53
|
+
export interface ComboBoxProps extends FormComponentProps {
|
|
54
|
+
/**
|
|
55
|
+
* Sets the data of the ComboBox ([more information and examples](https://www.telerik.com/kendo-react-ui/components/dropdowns/combobox/binding)).
|
|
56
|
+
*
|
|
57
|
+
* @example
|
|
58
|
+
* ```jsx
|
|
59
|
+
* <ComboBox data={['Option1', 'Option2', 'Option3']} />
|
|
60
|
+
* ```
|
|
61
|
+
*/
|
|
62
|
+
data?: any[];
|
|
63
|
+
/**
|
|
64
|
+
* Sets the opened and closed state of the ComboBox.
|
|
65
|
+
*
|
|
66
|
+
* @example
|
|
67
|
+
* ```jsx
|
|
68
|
+
* <ComboBox opened={true} />
|
|
69
|
+
* ```
|
|
70
|
+
*/
|
|
71
|
+
opened?: boolean;
|
|
72
|
+
/**
|
|
73
|
+
* The styles that are applied to the ComboBox.
|
|
74
|
+
*
|
|
75
|
+
* @example
|
|
76
|
+
* ```jsx
|
|
77
|
+
* <ComboBox style={{ width: '250px' }} />
|
|
78
|
+
* ```
|
|
79
|
+
*/
|
|
80
|
+
style?: React.CSSProperties;
|
|
81
|
+
/**
|
|
82
|
+
* Sets the value of the ComboBox ([more information and examples](https://www.telerik.com/kendo-react-ui/components/dropdowns/combobox/binding)).
|
|
83
|
+
*
|
|
84
|
+
* @example
|
|
85
|
+
* ```jsx
|
|
86
|
+
* <ComboBox value="Option1" />
|
|
87
|
+
* ```
|
|
88
|
+
*/
|
|
89
|
+
value?: any;
|
|
90
|
+
/**
|
|
91
|
+
* Sets the default value of the ComboBox. Similar to the native `select` HTML element.
|
|
92
|
+
*
|
|
93
|
+
* @example
|
|
94
|
+
* ```jsx
|
|
95
|
+
* <ComboBox defaultValue="Option2" />
|
|
96
|
+
* ```
|
|
97
|
+
*/
|
|
98
|
+
defaultValue?: any;
|
|
99
|
+
/**
|
|
100
|
+
* Sets additional classes to the ComboBox.
|
|
101
|
+
*
|
|
102
|
+
* @example
|
|
103
|
+
* ```jsx
|
|
104
|
+
* <ComboBox className="custom-class" />
|
|
105
|
+
* ```
|
|
106
|
+
*/
|
|
107
|
+
className?: string;
|
|
108
|
+
/**
|
|
109
|
+
* Sets CSS classes to the expand `icon` DOM element.
|
|
110
|
+
*
|
|
111
|
+
* @example
|
|
112
|
+
* ```jsx
|
|
113
|
+
* <ComboBox iconClassName="custom-icon-class" />
|
|
114
|
+
* ```
|
|
115
|
+
*/
|
|
116
|
+
iconClassName?: string;
|
|
117
|
+
/**
|
|
118
|
+
* Sets the specified SVG icon.
|
|
119
|
+
*
|
|
120
|
+
* @example
|
|
121
|
+
* ```jsx
|
|
122
|
+
* <ComboBox svgIcon={{ name: 'custom-icon' }} />
|
|
123
|
+
* ```
|
|
124
|
+
*/
|
|
125
|
+
svgIcon?: SVGIcon;
|
|
126
|
+
/**
|
|
127
|
+
* If `clearButton` is set to `true`, the ComboBox renders a button on hovering over the component. Clicking this button resets the value of the ComboBox to `undefined` and triggers the `change` event.
|
|
128
|
+
*
|
|
129
|
+
* @example
|
|
130
|
+
* ```jsx
|
|
131
|
+
* <ComboBox clearButton={true} />
|
|
132
|
+
* ```
|
|
133
|
+
*/
|
|
134
|
+
clearButton?: boolean;
|
|
135
|
+
/**
|
|
136
|
+
* The hint that is displayed when the ComboBox is empty.
|
|
137
|
+
*
|
|
138
|
+
* @example
|
|
139
|
+
* ```jsx
|
|
140
|
+
* <ComboBox placeholder="Select an option" />
|
|
141
|
+
* ```
|
|
142
|
+
*/
|
|
143
|
+
placeholder?: string;
|
|
144
|
+
/**
|
|
145
|
+
* Sets the title attribute to the underlying input element of the ComboBox.
|
|
146
|
+
*
|
|
147
|
+
* @example
|
|
148
|
+
* ```jsx
|
|
149
|
+
* <ComboBox title="ComboBox Title" />
|
|
150
|
+
* ```
|
|
151
|
+
*/
|
|
152
|
+
title?: string;
|
|
153
|
+
/**
|
|
154
|
+
* Enables the auto-completion of the text based on the first data item ([see example](https://www.telerik.com/kendo-react-ui/components/dropdowns/combobox/suggestions)).
|
|
155
|
+
*
|
|
156
|
+
* @example
|
|
157
|
+
* ```jsx
|
|
158
|
+
* <ComboBox suggest={true} />
|
|
159
|
+
* ```
|
|
160
|
+
*/
|
|
161
|
+
suggest?: boolean;
|
|
162
|
+
/**
|
|
163
|
+
* Specifies whether the ComboBox allows user-defined values that are not present in the dataset ([see example](https://www.telerik.com/kendo-react-ui/components/dropdowns/combobox/custom-values)). Defaults to `false`.
|
|
164
|
+
*
|
|
165
|
+
* @example
|
|
166
|
+
* ```jsx
|
|
167
|
+
* <ComboBox allowCustom={true} />
|
|
168
|
+
* ```
|
|
169
|
+
*/
|
|
170
|
+
allowCustom?: boolean;
|
|
171
|
+
/**
|
|
172
|
+
* Specifies whether the ComboBox text matching should be case-insensitive when selecting values on blur or Enter key.
|
|
173
|
+
* When set to `true`, typing "football" will match and select "Football" from the list.
|
|
174
|
+
* Defaults to `false` (case-sensitive matching).
|
|
175
|
+
*
|
|
176
|
+
* @example
|
|
177
|
+
* ```jsx
|
|
178
|
+
* <ComboBox ignoreCase={true} />
|
|
179
|
+
* ```
|
|
180
|
+
*/
|
|
181
|
+
ignoreCase?: boolean;
|
|
182
|
+
/**
|
|
183
|
+
* Sets the disabled state of the ComboBox.
|
|
184
|
+
*
|
|
185
|
+
* @example
|
|
186
|
+
* ```jsx
|
|
187
|
+
* <ComboBox disabled={true} />
|
|
188
|
+
* ```
|
|
189
|
+
*/
|
|
190
|
+
disabled?: boolean;
|
|
191
|
+
/**
|
|
192
|
+
* Represents the `dir` HTML attribute.
|
|
193
|
+
*
|
|
194
|
+
* @example
|
|
195
|
+
* ```jsx
|
|
196
|
+
* <ComboBox dir="rtl" />
|
|
197
|
+
* ```
|
|
198
|
+
*/
|
|
199
|
+
dir?: string;
|
|
200
|
+
/**
|
|
201
|
+
* Enables the filtering functionality of the ComboBox ([more information and examples](https://www.telerik.com/kendo-react-ui/components/dropdowns/combobox/filtering)).
|
|
202
|
+
*
|
|
203
|
+
* @example
|
|
204
|
+
* ```jsx
|
|
205
|
+
* <ComboBox filterable={true} />
|
|
206
|
+
* ```
|
|
207
|
+
*/
|
|
208
|
+
filterable?: boolean;
|
|
209
|
+
/**
|
|
210
|
+
* Sets the value of ComboBox input. Useful for making the ComboBox input a [controlled component](https://react.dev/learn/sharing-state-between-components#controlled-and-uncontrolled-components).
|
|
211
|
+
*
|
|
212
|
+
* @example
|
|
213
|
+
* ```jsx
|
|
214
|
+
* <ComboBox filter="Option" />
|
|
215
|
+
* ```
|
|
216
|
+
*/
|
|
217
|
+
filter?: string | null;
|
|
218
|
+
/**
|
|
219
|
+
* Sets the value of the adaptive filtering input of the ComboBox.
|
|
220
|
+
*
|
|
221
|
+
* @example
|
|
222
|
+
* ```jsx
|
|
223
|
+
* <ComboBox adaptiveFilter="Option" />
|
|
224
|
+
* ```
|
|
225
|
+
*/
|
|
226
|
+
adaptiveFilter?: string;
|
|
227
|
+
/**
|
|
228
|
+
* Sets the loading state of the ComboBox ([see example](https://www.telerik.com/kendo-react-ui/components/dropdowns/combobox/filtering#toc-basic-configuration)).
|
|
229
|
+
*
|
|
230
|
+
* @example
|
|
231
|
+
* ```jsx
|
|
232
|
+
* <ComboBox loading={true} />
|
|
233
|
+
* ```
|
|
234
|
+
*/
|
|
235
|
+
loading?: boolean;
|
|
236
|
+
/**
|
|
237
|
+
* Specifies the `tabIndex` of the ComboBox.
|
|
238
|
+
*
|
|
239
|
+
* @example
|
|
240
|
+
* ```jsx
|
|
241
|
+
* <ComboBox tabIndex={0} />
|
|
242
|
+
* ```
|
|
243
|
+
*/
|
|
244
|
+
tabIndex?: number;
|
|
245
|
+
/**
|
|
246
|
+
* Specifies the `accessKey` of the ComboBox.
|
|
247
|
+
*
|
|
248
|
+
* @example
|
|
249
|
+
* ```jsx
|
|
250
|
+
* <ComboBox accessKey="k" />
|
|
251
|
+
* ```
|
|
252
|
+
*/
|
|
253
|
+
accessKey?: string;
|
|
254
|
+
/**
|
|
255
|
+
* Sets the data item field that represents the item text. If the data contains only primitive values, do not define it.
|
|
256
|
+
*
|
|
257
|
+
* @example
|
|
258
|
+
* ```jsx
|
|
259
|
+
* <ComboBox textField="name" />
|
|
260
|
+
* ```
|
|
261
|
+
*/
|
|
262
|
+
textField?: string;
|
|
263
|
+
/**
|
|
264
|
+
* Sets the data item field that represents the start of a group. Applicable to objects data.
|
|
265
|
+
*
|
|
266
|
+
* @example
|
|
267
|
+
* ```jsx
|
|
268
|
+
* <ComboBox groupField="category" />
|
|
269
|
+
* ```
|
|
270
|
+
*/
|
|
271
|
+
groupField?: string;
|
|
272
|
+
/**
|
|
273
|
+
* @hidden Used to indicate if the ComboBox is with multiple columns
|
|
274
|
+
*/
|
|
275
|
+
isMultiColumn?: boolean;
|
|
276
|
+
/**
|
|
277
|
+
* Sets the key for comparing the data items of the ComboBox. If `dataItemKey` is not set, the ComboBox compares the items by reference ([see example](https://www.telerik.com/kendo-react-ui/components/dropdowns/combobox/binding#toc-datasets-of-objects)).
|
|
278
|
+
*
|
|
279
|
+
* @example
|
|
280
|
+
* ```jsx
|
|
281
|
+
* <ComboBox dataItemKey="id" />
|
|
282
|
+
* ```
|
|
283
|
+
*/
|
|
284
|
+
dataItemKey?: string;
|
|
285
|
+
/**
|
|
286
|
+
* Renders a floating label for the ComboBox.
|
|
287
|
+
*
|
|
288
|
+
* @example
|
|
289
|
+
* ```jsx
|
|
290
|
+
* <ComboBox label="Select an option" />
|
|
291
|
+
* ```
|
|
292
|
+
*/
|
|
293
|
+
label?: string;
|
|
294
|
+
/**
|
|
295
|
+
* Configures the popup of the ComboBox.
|
|
296
|
+
*
|
|
297
|
+
* @example
|
|
298
|
+
* ```jsx
|
|
299
|
+
* <ComboBox popupSettings={{ animate: true }} />
|
|
300
|
+
* ```
|
|
301
|
+
*/
|
|
302
|
+
popupSettings?: DropDownsPopupSettings;
|
|
303
|
+
/**
|
|
304
|
+
* Configures the virtual scrolling of the ComboBox ([more information and examples](https://www.telerik.com/kendo-react-ui/components/dropdowns/combobox/virtualization)).
|
|
305
|
+
*
|
|
306
|
+
* @example
|
|
307
|
+
* ```jsx
|
|
308
|
+
* <ComboBox virtual={{ pageSize: 20 }} />
|
|
309
|
+
* ```
|
|
310
|
+
*/
|
|
311
|
+
virtual?: VirtualizationSettings;
|
|
312
|
+
/**
|
|
313
|
+
* Specifies the id of the component.
|
|
314
|
+
*
|
|
315
|
+
* @example
|
|
316
|
+
* ```jsx
|
|
317
|
+
* <ComboBox id="comboBoxId" />
|
|
318
|
+
* ```
|
|
319
|
+
*/
|
|
320
|
+
id?: string;
|
|
321
|
+
/**
|
|
322
|
+
* Identifies the element(s) which will describe the component, similar to [HTML aria-describedby attribute](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/ARIA_Techniques/Using_the_aria-describedby_attribute).
|
|
323
|
+
* For example these elements could contain error or hint message.
|
|
324
|
+
*
|
|
325
|
+
* @example
|
|
326
|
+
* ```jsx
|
|
327
|
+
* <ComboBox ariaDescribedBy="descriptionId" />
|
|
328
|
+
* ```
|
|
329
|
+
*/
|
|
330
|
+
ariaDescribedBy?: string;
|
|
331
|
+
/**
|
|
332
|
+
* Identifies the element(s) which will label the component.
|
|
333
|
+
*
|
|
334
|
+
* @example
|
|
335
|
+
* ```jsx
|
|
336
|
+
* <ComboBox ariaLabelledBy="labelId" />
|
|
337
|
+
* ```
|
|
338
|
+
*/
|
|
339
|
+
ariaLabelledBy?: string;
|
|
340
|
+
/**
|
|
341
|
+
* The accessible label of the component.
|
|
342
|
+
*
|
|
343
|
+
* @example
|
|
344
|
+
* ```jsx
|
|
345
|
+
* <ComboBox ariaLabel="ComboBox Label" />
|
|
346
|
+
* ```
|
|
347
|
+
*/
|
|
348
|
+
ariaLabel?: string;
|
|
349
|
+
/**
|
|
350
|
+
* If set, the ComboBox will use it to get the focused item index.
|
|
351
|
+
*
|
|
352
|
+
* Default functionality returns the first item which starts with the input text.
|
|
353
|
+
*
|
|
354
|
+
* @example
|
|
355
|
+
* ```jsx
|
|
356
|
+
* const focusedItemIndex = (data, inputText, textField) => {
|
|
357
|
+
* let text = inputText.toLowerCase();
|
|
358
|
+
* return data.findIndex(item =>
|
|
359
|
+
* String(textField ? item[textField] : item).toLowerCase().includes(text));
|
|
360
|
+
* };
|
|
361
|
+
*
|
|
362
|
+
* <ComboBox focusedItemIndex={focusedItemIndex} />
|
|
363
|
+
* ```
|
|
364
|
+
*/
|
|
365
|
+
focusedItemIndex?: (data: any, inputText: string, textField?: string) => number;
|
|
366
|
+
/**
|
|
367
|
+
* Fires each time the popup of the ComboBox is about to open.
|
|
368
|
+
*
|
|
369
|
+
* @example
|
|
370
|
+
* ```jsx
|
|
371
|
+
* <ComboBox onOpen={(event) => console.log('Popup opened', event)} />
|
|
372
|
+
* ```
|
|
373
|
+
*/
|
|
374
|
+
onOpen?: (event: ComboBoxOpenEvent) => void;
|
|
375
|
+
/**
|
|
376
|
+
* Fires each time the popup of the ComboBox is about to close.
|
|
377
|
+
*
|
|
378
|
+
* @example
|
|
379
|
+
* ```jsx
|
|
380
|
+
* <ComboBox onClose={(event) => console.log('Popup closed', event)} />
|
|
381
|
+
* ```
|
|
382
|
+
*/
|
|
383
|
+
onClose?: (event: ComboBoxCloseEvent) => void;
|
|
384
|
+
/**
|
|
385
|
+
* Fires each time the user focuses the ComboBox.
|
|
386
|
+
*
|
|
387
|
+
* @example
|
|
388
|
+
* ```jsx
|
|
389
|
+
* <ComboBox onFocus={(event) => console.log('ComboBox focused', event)} />
|
|
390
|
+
* ```
|
|
391
|
+
*/
|
|
392
|
+
onFocus?: (event: ComboBoxFocusEvent) => void;
|
|
393
|
+
/**
|
|
394
|
+
* Fires each time the ComboBox gets blurred.
|
|
395
|
+
*
|
|
396
|
+
* @example
|
|
397
|
+
* ```jsx
|
|
398
|
+
* <ComboBox onBlur={(event) => console.log('ComboBox blurred', event)} />
|
|
399
|
+
* ```
|
|
400
|
+
*/
|
|
401
|
+
onBlur?: (event: ComboBoxBlurEvent) => void;
|
|
402
|
+
/**
|
|
403
|
+
* Fires each time the value of the ComboBox is about to change ([see examples](https://www.telerik.com/kendo-react-ui/components/dropdowns/combobox/binding)).
|
|
404
|
+
*
|
|
405
|
+
* @example
|
|
406
|
+
* ```jsx
|
|
407
|
+
* <ComboBox onChange={(event) => console.log('Value changed', event)} />
|
|
408
|
+
* ```
|
|
409
|
+
*/
|
|
410
|
+
onChange?: (event: ComboBoxChangeEvent) => void;
|
|
411
|
+
/**
|
|
412
|
+
* Fires each time the user types in the filter input ([see examples](https://www.telerik.com/kendo-react-ui/components/dropdowns/combobox/filtering#toc-basic-configuration)). You can filter the source based on the passed filtration value.
|
|
413
|
+
*
|
|
414
|
+
* @example
|
|
415
|
+
* ```jsx
|
|
416
|
+
* <ComboBox onFilterChange={(event) => console.log('Filter changed', event)} />
|
|
417
|
+
* ```
|
|
418
|
+
*/
|
|
419
|
+
onFilterChange?: (event: ComboBoxFilterChangeEvent) => void;
|
|
420
|
+
/**
|
|
421
|
+
* Fires when both the virtual scrolling of the ComboBox is enabled and the component requires data for another page ([more information and examples](https://www.telerik.com/kendo-react-ui/components/dropdowns/combobox/virtualization)).
|
|
422
|
+
*
|
|
423
|
+
* @example
|
|
424
|
+
* ```jsx
|
|
425
|
+
* <ComboBox onPageChange={(event) => console.log('Page changed', event)} />
|
|
426
|
+
* ```
|
|
427
|
+
*/
|
|
428
|
+
onPageChange?: (event: ComboBoxPageChangeEvent) => void;
|
|
429
|
+
/**
|
|
430
|
+
* Fires when the ComboBox input element is about to be rendered. Use it to override the default appearance of the component.
|
|
431
|
+
*
|
|
432
|
+
* @example
|
|
433
|
+
* ```jsx
|
|
434
|
+
* <ComboBox valueRender={(rendering) => <span>{rendering}</span>} />
|
|
435
|
+
* ```
|
|
436
|
+
*/
|
|
437
|
+
valueRender?: (rendering: React.ReactElement<HTMLSpanElement>) => React.ReactNode;
|
|
438
|
+
/**
|
|
439
|
+
* Fires when a ComboBox list item is about to be rendered ([see example](https://www.telerik.com/kendo-react-ui/components/dropdowns/combobox/custom-rendering#toc-items)). Used to override the default appearance of the list items.
|
|
440
|
+
*
|
|
441
|
+
* @example
|
|
442
|
+
* ```jsx
|
|
443
|
+
* <ComboBox itemRender={(li, itemProps) => <li>{itemProps.dataItem}</li>} />
|
|
444
|
+
* ```
|
|
445
|
+
*/
|
|
446
|
+
itemRender?: (li: React.ReactElement<HTMLLIElement>, itemProps: ListItemProps) => React.ReactNode;
|
|
447
|
+
/**
|
|
448
|
+
* Fires when a ComboBox group header item is about to be rendered. Used to override the default appearance of the group's headers when the component is configured in `modern` group mode.
|
|
449
|
+
*
|
|
450
|
+
* @example
|
|
451
|
+
* ```jsx
|
|
452
|
+
* <ComboBox groupHeaderItemRender={(li, itemProps) => <li>{itemProps.dataItem}</li>} />
|
|
453
|
+
* ```
|
|
454
|
+
*/
|
|
455
|
+
groupHeaderItemRender?: (li: React.ReactElement<HTMLLIElement>, itemProps: ListGroupItemProps) => React.ReactNode;
|
|
456
|
+
/**
|
|
457
|
+
* Fires when a ComboBox sticky group header item is about to be rendered. Used to override the default appearance of the sticky group header of the component.
|
|
458
|
+
*
|
|
459
|
+
* @example
|
|
460
|
+
* ```jsx
|
|
461
|
+
* <ComboBox groupStickyHeaderItemRender={(div, stickyHeaderProps) => <div>{stickyHeaderProps.group}</div>} />
|
|
462
|
+
* ```
|
|
463
|
+
*/
|
|
464
|
+
groupStickyHeaderItemRender?: (div: React.ReactElement<HTMLDivElement>, stickyHeaderProps: GroupStickyHeaderProps) => React.ReactNode;
|
|
465
|
+
/**
|
|
466
|
+
* Fires when the element which indicates no data in the popup is about to be rendered. Used to override the default appearance of the element.
|
|
467
|
+
*
|
|
468
|
+
* @example
|
|
469
|
+
* ```jsx
|
|
470
|
+
* <ComboBox listNoDataRender={(element) => <div>No data available</div>} />
|
|
471
|
+
* ```
|
|
472
|
+
*/
|
|
473
|
+
listNoDataRender?: (element: React.ReactElement<HTMLDivElement>) => React.ReactNode;
|
|
474
|
+
/**
|
|
475
|
+
* @hidden
|
|
476
|
+
*/
|
|
477
|
+
onGroupScroll?: (event: {
|
|
478
|
+
group?: string;
|
|
479
|
+
}) => void;
|
|
480
|
+
/**
|
|
481
|
+
* Sets the header component of the ComboBox ([see example](https://www.telerik.com/kendo-react-ui/components/dropdowns/combobox/custom-rendering#toc-headers-and-footers)).
|
|
482
|
+
*
|
|
483
|
+
* @example
|
|
484
|
+
* ```jsx
|
|
485
|
+
* <ComboBox header={<div>Header Content</div>} />
|
|
486
|
+
* ```
|
|
487
|
+
*/
|
|
488
|
+
header?: React.ReactNode;
|
|
489
|
+
/**
|
|
490
|
+
* Sets the footer component of the ComboBox ([see example](https://www.telerik.com/kendo-react-ui/components/dropdowns/combobox/custom-rendering#toc-headers-and-footers)).
|
|
491
|
+
*
|
|
492
|
+
* @example
|
|
493
|
+
* ```jsx
|
|
494
|
+
* <ComboBox footer={<div>Footer Content</div>} />
|
|
495
|
+
* ```
|
|
496
|
+
*/
|
|
497
|
+
footer?: React.ReactNode;
|
|
498
|
+
/**
|
|
499
|
+
* @hidden
|
|
500
|
+
*/
|
|
501
|
+
footerClassName?: string;
|
|
502
|
+
/**
|
|
503
|
+
* @hidden
|
|
504
|
+
*/
|
|
505
|
+
list?: any;
|
|
506
|
+
/**
|
|
507
|
+
* Configures the `size` of the ComboBox.
|
|
508
|
+
*
|
|
509
|
+
* The available options are:
|
|
510
|
+
* - small
|
|
511
|
+
* - medium
|
|
512
|
+
* - large
|
|
513
|
+
*
|
|
514
|
+
* @default undefined (theme-controlled)
|
|
515
|
+
*
|
|
516
|
+
* @example
|
|
517
|
+
* ```jsx
|
|
518
|
+
* <ComboBox size="large" />
|
|
519
|
+
* ```
|
|
520
|
+
*/
|
|
521
|
+
size?: 'small' | 'medium' | 'large';
|
|
522
|
+
/**
|
|
523
|
+
* Configures the `roundness` of the ComboBox.
|
|
524
|
+
*
|
|
525
|
+
* The available options are:
|
|
526
|
+
* - small
|
|
527
|
+
* - medium
|
|
528
|
+
* - large
|
|
529
|
+
* - full
|
|
530
|
+
*
|
|
531
|
+
* @default undefined (theme-controlled)
|
|
532
|
+
*
|
|
533
|
+
* @example
|
|
534
|
+
* ```jsx
|
|
535
|
+
* <ComboBox rounded="full" />
|
|
536
|
+
* ```
|
|
537
|
+
*/
|
|
538
|
+
rounded?: 'small' | 'medium' | 'large' | 'full';
|
|
539
|
+
/**
|
|
540
|
+
* Configures the `fillMode` of the ComboBox.
|
|
541
|
+
*
|
|
542
|
+
* The available options are:
|
|
543
|
+
* - solid
|
|
544
|
+
* - flat
|
|
545
|
+
* - outline
|
|
546
|
+
*
|
|
547
|
+
* @default undefined (theme-controlled)
|
|
548
|
+
*
|
|
549
|
+
* @example
|
|
550
|
+
* ```jsx
|
|
551
|
+
* <ComboBox fillMode="flat" />
|
|
552
|
+
* ```
|
|
553
|
+
*/
|
|
554
|
+
fillMode?: 'solid' | 'flat' | 'outline';
|
|
555
|
+
/**
|
|
556
|
+
* Providing different rendering of the popup element based on the screen dimensions.
|
|
557
|
+
*
|
|
558
|
+
* @default `false`
|
|
559
|
+
*
|
|
560
|
+
* @example
|
|
561
|
+
* ```jsx
|
|
562
|
+
* <ComboBox adaptive={true} />
|
|
563
|
+
* ```
|
|
564
|
+
*/
|
|
565
|
+
adaptive?: boolean;
|
|
566
|
+
/**
|
|
567
|
+
* Specifies the text that is rendered as title in the adaptive popup(action sheet).
|
|
568
|
+
* Applicable only when `adaptive` is set to `true`.
|
|
569
|
+
* If not provided, the title will be the same as the label.
|
|
570
|
+
*
|
|
571
|
+
* @example
|
|
572
|
+
* ```jsx
|
|
573
|
+
* <ComboBox adaptiveTitle="Adaptive Popup Title" />
|
|
574
|
+
* ```
|
|
575
|
+
*/
|
|
576
|
+
adaptiveTitle?: string;
|
|
577
|
+
/**
|
|
578
|
+
* Specifies the text that is rendered as subtitle in the adaptive popup(action sheet).
|
|
579
|
+
* Applicable only when `adaptive` is set to `true`.
|
|
580
|
+
*
|
|
581
|
+
* @example
|
|
582
|
+
* ```jsx
|
|
583
|
+
* <ComboBox adaptiveSubtitle="Adaptive Popup Subtitle" />
|
|
584
|
+
*/
|
|
585
|
+
adaptiveSubtitle?: string;
|
|
586
|
+
/**
|
|
587
|
+
* Defines if ComboBox's disabled items will be skipped or focused when navigating through the list of items using a keyboard. Defaults to `true`.
|
|
588
|
+
*
|
|
589
|
+
* @example
|
|
590
|
+
* ```jsx
|
|
591
|
+
* <ComboBox skipDisabledItems={false} />
|
|
592
|
+
* ```
|
|
593
|
+
*/
|
|
594
|
+
skipDisabledItems?: boolean;
|
|
595
|
+
/**
|
|
596
|
+
* Sets a custom prefix to the ComboBox component.
|
|
597
|
+
*
|
|
598
|
+
* @example
|
|
599
|
+
* ```jsx
|
|
600
|
+
* <ComboBox prefix={<span>Prefix</span>} />
|
|
601
|
+
* ```
|
|
602
|
+
*/
|
|
603
|
+
prefix?: CustomComponent<any>;
|
|
604
|
+
/**
|
|
605
|
+
* Sets a custom suffix to the ComboBox component.
|
|
606
|
+
*
|
|
607
|
+
* @example
|
|
608
|
+
* ```jsx
|
|
609
|
+
* <ComboBox suffix={<span>Suffix</span>} />
|
|
610
|
+
* ```
|
|
611
|
+
*/
|
|
612
|
+
suffix?: CustomComponent<any>;
|
|
613
|
+
/**
|
|
614
|
+
* @hidden
|
|
615
|
+
*/
|
|
616
|
+
unstyled?: DropDownsClassStructure;
|
|
617
|
+
/**
|
|
618
|
+
* Sets the HTML attributes of the inner focusable input element.
|
|
619
|
+
* Attributes which are essential for certain component functionalities cannot be changed.
|
|
620
|
+
*
|
|
621
|
+
* @example
|
|
622
|
+
* ```jsx
|
|
623
|
+
* <ComboBox inputAttributes={{ maxLength: 10 }} />
|
|
624
|
+
* ```
|
|
625
|
+
*/
|
|
626
|
+
inputAttributes?: React.InputHTMLAttributes<HTMLInputElement>;
|
|
627
|
+
/**
|
|
628
|
+
* @hidden
|
|
629
|
+
* This prop is provided by the withAdaptiveModeContext HOC to subscribe to AdaptiveModeContext.
|
|
630
|
+
*/
|
|
631
|
+
_adaptiveMode?: AdaptiveModeContextType;
|
|
632
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { DropDownListProps } from './DropDownListProps.js';
|
|
9
|
+
import { DropDownListHandle } from './models/index.js';
|
|
10
|
+
import * as React from 'react';
|
|
11
|
+
/**
|
|
12
|
+
* Represents the [KendoReact DropDownList component](https://www.telerik.com/kendo-react-ui/components/dropdowns/dropdownlist).
|
|
13
|
+
*
|
|
14
|
+
* Accepts properties of type [DropDownListProps](https://www.telerik.com/kendo-react-ui/components/dropdowns/api/dropdownlistprops).
|
|
15
|
+
* Obtaining the `ref` returns an object of type [DropDownListHandle](https://www.telerik.com/kendo-react-ui/components/dropdowns/api/dropdownlisthandle).
|
|
16
|
+
*
|
|
17
|
+
*/
|
|
18
|
+
export declare const DropDownList: React.ForwardRefExoticComponent<DropDownListProps & React.RefAttributes<DropDownListHandle>>;
|
|
19
|
+
/**
|
|
20
|
+
* The default props of the DropDownList component.
|
|
21
|
+
*/
|
|
22
|
+
export declare const dropDownListDefaultProps: {
|
|
23
|
+
required: boolean;
|
|
24
|
+
size: "small" | "medium" | "large" | undefined;
|
|
25
|
+
rounded: "small" | "medium" | "large" | "full" | undefined;
|
|
26
|
+
fillMode: "flat" | "solid" | "outline" | undefined;
|
|
27
|
+
popupSettings: {
|
|
28
|
+
height: string;
|
|
29
|
+
};
|
|
30
|
+
validityStyles: boolean;
|
|
31
|
+
delay: number;
|
|
32
|
+
tabIndex: number;
|
|
33
|
+
ignoreCase: boolean;
|
|
34
|
+
};
|
|
35
|
+
/**
|
|
36
|
+
* Represents the PropsContext of the `DropDownList` component.
|
|
37
|
+
* Used for global configuration of all `DropDownList` instances.
|
|
38
|
+
*
|
|
39
|
+
* For more information, refer to the [Dropdowns Props Context](https://www.telerik.com/kendo-react-ui/components/dropdowns/props-context) article.
|
|
40
|
+
*/
|
|
41
|
+
export declare const DropDownListPropsContext: React.Context<(p: DropDownListProps) => DropDownListProps>;
|