@progress/kendo-react-dropdowns 13.3.0-develop.9 → 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.
Files changed (76) hide show
  1. package/AutoComplete/AutoComplete.d.ts +274 -0
  2. package/AutoComplete/AutoComplete.js +1 -1
  3. package/AutoComplete/AutoComplete.mjs +67 -69
  4. package/AutoComplete/AutoCompleteProps.d.ts +509 -0
  5. package/ComboBox/ComboBox.d.ts +279 -0
  6. package/ComboBox/ComboBox.js +1 -1
  7. package/ComboBox/ComboBox.mjs +281 -297
  8. package/ComboBox/ComboBoxProps.d.ts +632 -0
  9. package/DropDownList/DropDownList.d.ts +41 -0
  10. package/DropDownList/DropDownList.js +1 -1
  11. package/DropDownList/DropDownList.mjs +78 -83
  12. package/DropDownList/DropDownListProps.d.ts +594 -0
  13. package/DropDownList/models/index.d.ts +54 -0
  14. package/DropDownTree/DropDownTree.d.ts +76 -0
  15. package/DropDownTree/DropDownTree.js +1 -1
  16. package/DropDownTree/DropDownTree.mjs +6 -8
  17. package/DropDownTree/DropDownTreeProps.d.ts +506 -0
  18. package/DropDownTree/ListNoData.d.ts +13 -0
  19. package/DropDownTree/useDropdownWidth.d.ts +13 -0
  20. package/MultiColumnComboBox/MultiColumnComboBox.d.ts +299 -0
  21. package/MultiColumnComboBox/MultiColumnComboBox.js +1 -1
  22. package/MultiColumnComboBox/MultiColumnComboBox.mjs +45 -48
  23. package/MultiSelect/MultiSelect.d.ts +281 -0
  24. package/MultiSelect/MultiSelect.js +1 -1
  25. package/MultiSelect/MultiSelect.mjs +13 -15
  26. package/MultiSelect/MultiSelectProps.d.ts +592 -0
  27. package/MultiSelect/TagList.d.ts +45 -0
  28. package/MultiSelectTree/MultiSelectTree.d.ts +87 -0
  29. package/MultiSelectTree/MultiSelectTree.js +1 -1
  30. package/MultiSelectTree/MultiSelectTree.mjs +7 -7
  31. package/MultiSelectTree/MultiSelectTreeProps.d.ts +554 -0
  32. package/MultiSelectTree/utils.d.ts +24 -0
  33. package/common/AdaptiveMode.d.ts +22 -0
  34. package/common/ClearButton.d.ts +19 -0
  35. package/common/DropDownBase.d.ts +186 -0
  36. package/common/DropDownBase.js +1 -1
  37. package/common/DropDownBase.mjs +1 -1
  38. package/common/GroupStickyHeader.d.ts +26 -0
  39. package/common/GroupStickyHeader.js +1 -1
  40. package/common/GroupStickyHeader.mjs +6 -6
  41. package/common/List.d.ts +54 -0
  42. package/common/List.js +1 -1
  43. package/common/List.mjs +129 -77
  44. package/common/ListContainer.d.ts +24 -0
  45. package/common/ListDefaultItem.d.ts +22 -0
  46. package/common/ListFilter.d.ts +29 -0
  47. package/common/ListFilter.js +1 -1
  48. package/common/ListFilter.mjs +12 -12
  49. package/common/ListGroupItem.d.ts +54 -0
  50. package/common/ListGroupItem.js +1 -1
  51. package/common/ListGroupItem.mjs +21 -13
  52. package/common/ListItem.d.ts +87 -0
  53. package/common/ListItem.js +1 -1
  54. package/common/ListItem.mjs +62 -21
  55. package/common/ListItemIcon.d.ts +26 -0
  56. package/common/ListItemIcon.js +8 -0
  57. package/common/ListItemIcon.mjs +21 -0
  58. package/common/MultiColumnList.d.ts +13 -0
  59. package/common/Navigation.d.ts +20 -0
  60. package/common/SearchBar.d.ts +55 -0
  61. package/common/VirtualScrollStatic.d.ts +44 -0
  62. package/common/events.d.ts +82 -0
  63. package/common/filterDescriptor.d.ts +48 -0
  64. package/common/settings.d.ts +112 -0
  65. package/common/utils.d.ts +82 -0
  66. package/common/utils.js +1 -1
  67. package/common/utils.mjs +50 -47
  68. package/common/withCustomComponent.d.ts +12 -0
  69. package/dist/cdn/js/kendo-react-dropdowns.js +1 -1
  70. package/index.d.mts +28 -5545
  71. package/index.d.ts +28 -5545
  72. package/messages/index.d.ts +52 -0
  73. package/package-metadata.d.ts +12 -0
  74. package/package-metadata.js +1 -1
  75. package/package-metadata.mjs +10 -16
  76. package/package.json +10 -10
@@ -0,0 +1,509 @@
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 { AutoComplete } from './AutoComplete.js';
9
+ import { ChangeEvent, OpenEvent, CloseEvent, FocusEvent, BlurEvent } from './../common/events.js';
10
+ import { DropDownsPopupSettings, Suggestion } from '../common/settings.js';
11
+ import { ListGroupItemProps } from '../common/ListGroupItem.js';
12
+ import { GroupStickyHeaderProps } from '../common/GroupStickyHeader.js';
13
+ import { ListItemProps } from '../common/ListItem.js';
14
+ import { AdaptiveModeContextType, CustomComponent, FormComponentProps } from '@progress/kendo-react-common';
15
+ /**
16
+ * Represents the object of the `change` AutoComplete event.
17
+ */
18
+ export interface AutoCompleteChangeEvent extends ChangeEvent<AutoComplete> {
19
+ /**
20
+ * The suggested value based on the current input.
21
+ */
22
+ suggestion?: Suggestion;
23
+ }
24
+ /**
25
+ * Represents the object of the `open` AutoComplete event.
26
+ */
27
+ export interface AutoCompleteOpenEvent extends OpenEvent<AutoComplete> {
28
+ }
29
+ /**
30
+ * Represents the object of the `close` AutoComplete event.
31
+ */
32
+ export interface AutoCompleteCloseEvent extends CloseEvent<AutoComplete> {
33
+ }
34
+ /**
35
+ * Represents the object of the `focus` AutoComplete event.
36
+ */
37
+ export interface AutoCompleteFocusEvent extends FocusEvent<AutoComplete> {
38
+ }
39
+ /**
40
+ * Represents the object of the `blur` AutoComplete event.
41
+ */
42
+ export interface AutoCompleteBlurEvent extends BlurEvent<AutoComplete> {
43
+ }
44
+ /**
45
+ * Represents the props of the [KendoReact AutoComplete component](https://www.telerik.com/kendo-react-ui/components/dropdowns/autocomplete).
46
+ */
47
+ export interface AutoCompleteProps extends FormComponentProps {
48
+ /**
49
+ * Sets the data of the AutoComplete ([more information and example](https://www.telerik.com/kendo-react-ui/components/dropdowns/autocomplete/binding)).
50
+ *
51
+ * @example
52
+ * ```jsx
53
+ * <AutoComplete data={['Apple', 'Orange', 'Banana']} />
54
+ * ```
55
+ */
56
+ data?: any[];
57
+ /**
58
+ * Sets the opened and closed state of the AutoComplete.
59
+ *
60
+ * @example
61
+ * ```jsx
62
+ * <AutoComplete opened={true} />
63
+ * ```
64
+ */
65
+ opened?: boolean;
66
+ /**
67
+ * The styles that are applied to the AutoComplete.
68
+ *
69
+ * @example
70
+ * ```jsx
71
+ * <AutoComplete style={{ width: '300px' }} />
72
+ * ```
73
+ */
74
+ style?: React.CSSProperties;
75
+ /**
76
+ * Sets the value of the AutoComplete ([more information and example](https://www.telerik.com/kendo-react-ui/components/dropdowns/autocomplete/binding)).
77
+ *
78
+ * @example
79
+ * ```jsx
80
+ * <AutoComplete value="Apple" />
81
+ * ```
82
+ */
83
+ value?: string;
84
+ /**
85
+ * Sets the default value of the AutoComplete. Similar to the native `input` HTML element.
86
+ *
87
+ * @example
88
+ * ```jsx
89
+ * <AutoComplete defaultValue="Orange" />
90
+ * ```
91
+ */
92
+ defaultValue?: string;
93
+ /**
94
+ * Sets additional classes to the AutoComplete.
95
+ *
96
+ * @example
97
+ * ```jsx
98
+ * <AutoComplete className="custom-class" />
99
+ * ```
100
+ */
101
+ className?: string;
102
+ /**
103
+ * By default, the AutoComplete renders a button on hovering over the component, which resets the value.
104
+ * If `clearButton` is set to `false`, the button will not be rendered.
105
+ *
106
+ * @example
107
+ * ```jsx
108
+ * <AutoComplete clearButton={false} />
109
+ * ```
110
+ */
111
+ clearButton?: boolean;
112
+ /**
113
+ * The hint that is displayed when the AutoComplete is empty.
114
+ *
115
+ * @example
116
+ * ```jsx
117
+ * <AutoComplete placeholder="Type here..." />
118
+ * ```
119
+ */
120
+ placeholder?: string;
121
+ /**
122
+ * Sets the read-only state of the AutoComplete.
123
+ *
124
+ * @example
125
+ * ```jsx
126
+ * <AutoComplete readonly={true} />
127
+ * ```
128
+ */
129
+ readonly?: boolean;
130
+ /**
131
+ * Enables the auto-completion of the text based on the first data item ([see example](https://www.telerik.com/kendo-react-ui/components/dropdowns/autocomplete/suggestions)).
132
+ *
133
+ * @example
134
+ * ```jsx
135
+ * <AutoComplete suggest={true} />
136
+ * ```
137
+ */
138
+ suggest?: boolean | string;
139
+ /**
140
+ * Sets the disabled state of the AutoComplete.
141
+ *
142
+ * @example
143
+ * ```jsx
144
+ * <AutoComplete disabled={true} />
145
+ * ```
146
+ */
147
+ disabled?: boolean;
148
+ /**
149
+ * Represents the `dir` HTML attribute.
150
+ *
151
+ * @example
152
+ * ```jsx
153
+ * <AutoComplete dir="rtl" />
154
+ * ```
155
+ */
156
+ dir?: string;
157
+ /**
158
+ * Sets the loading state of the AutoComplete ([see example](https://www.telerik.com/kendo-react-ui/components/dropdowns/autocomplete/filtering#toc-basic-configuration)).
159
+ *
160
+ * @example
161
+ * ```jsx
162
+ * <AutoComplete loading={true} />
163
+ * ```
164
+ */
165
+ loading?: boolean;
166
+ /**
167
+ * Specifies the `tabIndex` of the AutoComplete.
168
+ *
169
+ * @example
170
+ * ```jsx
171
+ * <AutoComplete tabIndex={0} />
172
+ * ```
173
+ */
174
+ tabIndex?: number;
175
+ /**
176
+ * Specifies the `accessKey` of the AutoComplete.
177
+ *
178
+ * @example
179
+ * ```jsx
180
+ * <AutoComplete accessKey="a" />
181
+ * ```
182
+ */
183
+ accessKey?: string;
184
+ /**
185
+ * Sets the data item field that represents the item text ([see example](https://www.telerik.com/kendo-react-ui/components/dropdowns/autocomplete/binding#toc-datasets-of-objects)). If the data contains only primitive values, do not define it.
186
+ *
187
+ * @example
188
+ * ```jsx
189
+ * <AutoComplete textField="name" />
190
+ * ```
191
+ */
192
+ textField?: string;
193
+ /**
194
+ * Renders a floating label for the AutoComplete.
195
+ *
196
+ * @example
197
+ * ```jsx
198
+ * <AutoComplete label="Search" />
199
+ * ```
200
+ */
201
+ label?: string;
202
+ /**
203
+ * Configures the popup of the AutoComplete.
204
+ *
205
+ * @example
206
+ * ```jsx
207
+ * <AutoComplete popupSettings={{ animate: true }} />
208
+ * ```
209
+ */
210
+ popupSettings?: DropDownsPopupSettings;
211
+ /**
212
+ * Specifies the id of the component.
213
+ *
214
+ * @example
215
+ * ```jsx
216
+ * <AutoComplete id="autocomplete" />
217
+ * ```
218
+ */
219
+ id?: string;
220
+ /**
221
+ * 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).
222
+ * For example these elements could contain error or hint message.
223
+ *
224
+ * @example
225
+ * ```jsx
226
+ * <AutoComplete ariaDescribedBy="description" />
227
+ * ```
228
+ */
229
+ ariaDescribedBy?: string;
230
+ /**
231
+ * Identifies the element(s) which will label the component.
232
+ *
233
+ * @example
234
+ * ```jsx
235
+ * <AutoComplete ariaLabelledBy="label" />
236
+ * ```
237
+ */
238
+ ariaLabelledBy?: string;
239
+ /**
240
+ * If set, the AutoComplete will use it to get the focused item index.
241
+ *
242
+ * Default functionality returns the first item which starts with the input text.
243
+ *
244
+ * @example
245
+ * ```jsx
246
+ * const focusedItemIndex = (data, inputText, textField) => {
247
+ * let text = inputText.toLowerCase();
248
+ * return data.findIndex(item =>
249
+ * String(textField ? item[textField] : item).toLowerCase().includes(text));
250
+ * };
251
+ *
252
+ * <AutoComplete focusedItemIndex={focusedItemIndex} />
253
+ * ```
254
+ */
255
+ focusedItemIndex?: (data: any, inputText: string, textField?: string) => number;
256
+ /**
257
+ * Fires each time the popup of the AutoComplete is about to open.
258
+ *
259
+ * @example
260
+ * ```jsx
261
+ * <AutoComplete onOpen={(event) => console.log('Popup opened', event)} />
262
+ * ```
263
+ */
264
+ onOpen?: (event: AutoCompleteOpenEvent) => void;
265
+ /**
266
+ * Fires each time the popup of the AutoComplete is about to close.
267
+ *
268
+ * @example
269
+ * ```jsx
270
+ * <AutoComplete onClose={(event) => console.log('Popup closed', event)} />
271
+ * ```
272
+ */
273
+ onClose?: (event: AutoCompleteCloseEvent) => void;
274
+ /**
275
+ * Fires each time the user focuses the AutoComplete.
276
+ *
277
+ * @example
278
+ * ```jsx
279
+ * <AutoComplete onFocus={(event) => console.log('Focused', event)} />
280
+ * ```
281
+ */
282
+ onFocus?: (event: AutoCompleteFocusEvent) => void;
283
+ /**
284
+ * Fires each time the AutoComplete gets blurred.
285
+ *
286
+ * @example
287
+ * ```jsx
288
+ * <AutoComplete onBlur={(event) => console.log('Blurred', event)} />
289
+ * ```
290
+ */
291
+ onBlur?: (event: AutoCompleteBlurEvent) => void;
292
+ /**
293
+ * Fires each time the value of the AutoComplete is about to change ([more information and example](https://www.telerik.com/kendo-react-ui/components/dropdowns/autocomplete/binding)).
294
+ *
295
+ * @example
296
+ * ```jsx
297
+ * <AutoComplete onChange={(event) => console.log('Value changed', event)} />
298
+ * ```
299
+ */
300
+ onChange?: (event: AutoCompleteChangeEvent) => void;
301
+ /**
302
+ * Fires when the AutoComplete input element is about to be rendered. Use it to override the default appearance of the component.
303
+ *
304
+ * @example
305
+ * ```jsx
306
+ * <AutoComplete valueRender={(rendering) => <span>{rendering}</span>} />
307
+ * ```
308
+ */
309
+ valueRender?: (rendering: React.ReactElement<HTMLSpanElement>) => React.ReactNode;
310
+ /**
311
+ * Fires when an AutoComplete list item is about to be rendered ([see example](https://www.telerik.com/kendo-react-ui/components/dropdowns/autocomplete/custom-rendering#toc-items)). Used to override the default appearance of the list items.
312
+ *
313
+ * @example
314
+ * ```jsx
315
+ * <AutoComplete itemRender={(li, itemProps) => <li>{itemProps.dataItem}</li>} />
316
+ * ```
317
+ */
318
+ itemRender?: (li: React.ReactElement<HTMLLIElement>, itemProps: ListItemProps) => React.ReactNode;
319
+ /**
320
+ * Fires when the element which indicates no data in the popup is about to be rendered ([see example](https://www.telerik.com/kendo-react-ui/components/dropdowns/autocomplete/custom-rendering#toc-no-data)). Used to override the default appearance of the element.
321
+ *
322
+ * @example
323
+ * ```jsx
324
+ * <AutoComplete listNoDataRender={(element) => <div>No data available</div>} />
325
+ * ```
326
+ */
327
+ listNoDataRender?: (element: React.ReactElement<HTMLDivElement>) => React.ReactNode;
328
+ /**
329
+ * Sets the header component of the AutoComplete ([see example](https://www.telerik.com/kendo-react-ui/components/dropdowns/autocomplete/custom-rendering#toc-headers-and-footers)).
330
+ *
331
+ * @example
332
+ * ```jsx
333
+ * <AutoComplete header={<div>Header</div>} />
334
+ * ```
335
+ */
336
+ header?: React.ReactNode;
337
+ /**
338
+ * Sets the footer component of the AutoComplete ([see example](https://www.telerik.com/kendo-react-ui/components/dropdowns/autocomplete/custom-rendering#toc-headers-and-footers)).
339
+ *
340
+ * @example
341
+ * ```jsx
342
+ * <AutoComplete footer={<div>Footer</div>} />
343
+ * ```
344
+ */
345
+ footer?: React.ReactNode;
346
+ /**
347
+ * Configures the `size` of the AutoComplete.
348
+ *
349
+ * The available options are:
350
+ * - small
351
+ * - medium
352
+ * - large
353
+ *
354
+ * @default undefined (theme-controlled)
355
+ *
356
+ * @example
357
+ * ```jsx
358
+ * <AutoComplete size="small" />
359
+ * ```
360
+ */
361
+ size?: 'small' | 'medium' | 'large';
362
+ /**
363
+ * Configures the `roundness` of the AutoComplete.
364
+ *
365
+ * The available options are:
366
+ * - small
367
+ * - medium
368
+ * - large
369
+ * - full
370
+ *
371
+ * @default undefined (theme-controlled)
372
+ *
373
+ * @example
374
+ * ```jsx
375
+ * <AutoComplete rounded="large" />
376
+ * ```
377
+ */
378
+ rounded?: 'small' | 'medium' | 'large' | 'full';
379
+ /**
380
+ * Configures the `fillMode` of the AutoComplete.
381
+ *
382
+ * The available options are:
383
+ * - solid
384
+ * - flat
385
+ * - outline
386
+ *
387
+ * @default undefined (theme-controlled)
388
+ *
389
+ * @example
390
+ * ```jsx
391
+ * <AutoComplete fillMode="flat" />
392
+ * ```
393
+ */
394
+ fillMode?: 'solid' | 'flat' | 'outline';
395
+ /**
396
+ * Sets the data item field that represents the start of a group. Applicable to objects data.
397
+ *
398
+ * @example
399
+ * ```jsx
400
+ * <AutoComplete groupField="category" />
401
+ * ```
402
+ */
403
+ groupField?: string;
404
+ /**
405
+ * Fires when a AutoComplete group header item is about to be rendered. Used to override the default appearance of the group's headers.
406
+ *
407
+ * @example
408
+ * ```jsx
409
+ * <AutoComplete groupHeaderItemRender={(li, itemProps) => <li>{itemProps.dataItem}</li>} />
410
+ * ```
411
+ */
412
+ groupHeaderItemRender?: (li: React.ReactElement<HTMLLIElement>, itemProps: ListGroupItemProps) => React.ReactNode;
413
+ /**
414
+ * Fires when a AutoComplete sticky group header item is about to be rendered. Used to override the default appearance of the sticky group header of the component.
415
+ *
416
+ * @example
417
+ * ```jsx
418
+ * <AutoComplete groupStickyHeaderItemRender={(div, stickyHeaderProps) => <div>{stickyHeaderProps.dataItem}</div>} />
419
+ * ```
420
+ */
421
+ groupStickyHeaderItemRender?: (div: React.ReactElement<HTMLDivElement>, stickyHeaderProps: GroupStickyHeaderProps) => React.ReactNode;
422
+ /**
423
+ * @hidden
424
+ */
425
+ list?: any;
426
+ /**
427
+ * Sets the key for comparing the data items of the AutoComplete. If `dataItemKey` is not set, the AutoComplete compares the items by reference.
428
+ *
429
+ * @example
430
+ * ```jsx
431
+ * <AutoComplete dataItemKey="id" />
432
+ * ```
433
+ */
434
+ dataItemKey?: string;
435
+ /**
436
+ * Providing different rendering of the popup element based on the screen dimensions.
437
+ *
438
+ * @default `false`
439
+ *
440
+ * @example
441
+ * ```jsx
442
+ * <AutoComplete adaptive={true} />
443
+ * ```
444
+ */
445
+ adaptive?: boolean;
446
+ /**
447
+ * Specifies the text that is rendered as title in the adaptive popup(action sheet).
448
+ * Applicable only when `adaptive` is set to `true`.
449
+ * If not provided, the title will be the same as the label.
450
+ *
451
+ * @example
452
+ * ```jsx
453
+ * <AutoComplete adaptiveTitle="Adaptive Popup Title" />
454
+ * ```
455
+ */
456
+ adaptiveTitle?: string;
457
+ /**
458
+ * Specifies the text that is rendered as subtitle in the adaptive popup(action sheet).
459
+ * Applicable only when `adaptive` is set to `true`.
460
+ *
461
+ * @example
462
+ * ```jsx
463
+ * <AutoComplete adaptiveSubtitle="Adaptive Popup Subtitle" />
464
+ * ```
465
+ */
466
+ adaptiveSubtitle?: string;
467
+ /**
468
+ * Defines if AutoComplete's disabled items will be skipped or focused when navigating through the list of items using a keyboard. Defaults to `true`.
469
+ *
470
+ * @example
471
+ * ```jsx
472
+ * <AutoComplete skipDisabledItems={false} />
473
+ * ```
474
+ */
475
+ skipDisabledItems?: boolean;
476
+ /**
477
+ * Sets a custom prefix to the AutoComplete component.
478
+ *
479
+ * @example
480
+ * ```jsx
481
+ * <AutoComplete prefix={<span>Prefix</span>} />
482
+ * ```
483
+ */
484
+ prefix?: CustomComponent<any>;
485
+ /**
486
+ * Sets a custom suffix to the AutoComplete component.
487
+ *
488
+ * @example
489
+ * ```jsx
490
+ * <AutoComplete suffix={<span>Suffix</span>} />
491
+ * ```
492
+ */
493
+ suffix?: CustomComponent<any>;
494
+ /**
495
+ * Sets the HTML attributes of the inner focusable input element.
496
+ * Attributes which are essential for certain component functionalities cannot be changed.
497
+ *
498
+ * @example
499
+ * ```jsx
500
+ * <AutoComplete inputAttributes={{ maxLength: 10 }} />
501
+ * ```
502
+ */
503
+ inputAttributes?: React.InputHTMLAttributes<HTMLInputElement>;
504
+ /**
505
+ * @hidden
506
+ * This prop is provided by the withAdaptiveModeContext HOC to subscribe to AdaptiveModeContext.
507
+ */
508
+ _adaptiveMode?: AdaptiveModeContextType;
509
+ }