@progress/kendo-react-dropdowns 13.3.0 → 13.4.0-develop.2
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,554 @@
|
|
|
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 { FormComponentProps } from '@progress/kendo-react-common';
|
|
9
|
+
import { ItemRenderProps } from '@progress/kendo-react-treeview';
|
|
10
|
+
import { FilterChangeEvent, OpenEvent, CloseEvent, FocusEvent, BlurEvent, DropdownEvent, CancelEvent } from '../common/events.js';
|
|
11
|
+
import { DropDownsPopupSettings } from '../common/settings.js';
|
|
12
|
+
import { TagData } from '../MultiSelect/TagList.js';
|
|
13
|
+
import * as React from 'react';
|
|
14
|
+
/**
|
|
15
|
+
* Represents the Object which is passed to the
|
|
16
|
+
* [`ref`](https://react.dev/learn/referencing-values-with-refs#refs-and-the-dom) callback of the MultiSelectTree component.
|
|
17
|
+
*/
|
|
18
|
+
export interface MultiSelectTreeHandle {
|
|
19
|
+
/**
|
|
20
|
+
* The current element or `null` if there is no one.
|
|
21
|
+
*/
|
|
22
|
+
element: HTMLElement | null;
|
|
23
|
+
/**
|
|
24
|
+
* The props of the MultiSelectTree component.
|
|
25
|
+
*/
|
|
26
|
+
props: MultiSelectTreeProps;
|
|
27
|
+
/**
|
|
28
|
+
* The focus function.
|
|
29
|
+
*/
|
|
30
|
+
focus: () => void;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Represents the object of the `onFilterChange` MultiSelectTree event.
|
|
34
|
+
*/
|
|
35
|
+
export interface MultiSelectTreeFilterChangeEvent extends FilterChangeEvent<MultiSelectTreeHandle> {
|
|
36
|
+
}
|
|
37
|
+
export type MultiSelectTreeChangeEventOperation = 'clear' | 'delete' | 'toggle';
|
|
38
|
+
/**
|
|
39
|
+
* Represents the object of the `onChange` MultiSelectTree event.
|
|
40
|
+
*/
|
|
41
|
+
export interface MultiSelectTreeChangeEvent extends DropdownEvent<MultiSelectTreeHandle> {
|
|
42
|
+
/**
|
|
43
|
+
* The items related to current operation.
|
|
44
|
+
*/
|
|
45
|
+
items: any[];
|
|
46
|
+
/**
|
|
47
|
+
* Describes the current operation:
|
|
48
|
+
* * `clear` - clear button is clicked and value is cleared. Null value is retured.
|
|
49
|
+
* * `delete` - tag is deleted using keyboard or mouse. The items contained in current tag are returned.
|
|
50
|
+
* * `toggle` - item in TreeView is toggled. Single item is returned.
|
|
51
|
+
*/
|
|
52
|
+
operation: MultiSelectTreeChangeEventOperation;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Represents the object of the `onOpen` MultiSelectTree event.
|
|
56
|
+
*/
|
|
57
|
+
export interface MultiSelectTreeOpenEvent extends OpenEvent<MultiSelectTreeHandle> {
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Represents the object of the `onClose` MultiSelectTree event.
|
|
61
|
+
*/
|
|
62
|
+
export interface MultiSelectTreeCloseEvent extends CloseEvent<MultiSelectTreeHandle> {
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Represents the object of the `onFocus` MultiSelectTree event.
|
|
66
|
+
*/
|
|
67
|
+
export interface MultiSelectTreeFocusEvent extends FocusEvent<MultiSelectTreeHandle> {
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Represents the object of the `onBlur` MultiSelectTree event.
|
|
71
|
+
*/
|
|
72
|
+
export interface MultiSelectTreeBlurEvent extends BlurEvent<MultiSelectTreeHandle> {
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Represents the object of the `onCancel` MultiSelectTree event.
|
|
76
|
+
*/
|
|
77
|
+
export interface MultiSelectTreeCancelEvent extends CancelEvent<MultiSelectTreeHandle> {
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Represents the object of the `onExpandChange` MultiSelectTree event.
|
|
81
|
+
*/
|
|
82
|
+
export interface MultiSelectTreeExpandEvent extends DropdownEvent<MultiSelectTreeHandle> {
|
|
83
|
+
/**
|
|
84
|
+
* The data item that was expanded or collapsed.
|
|
85
|
+
*/
|
|
86
|
+
item: any;
|
|
87
|
+
/**
|
|
88
|
+
* The hierarchical index path to the item.
|
|
89
|
+
*/
|
|
90
|
+
level: number[];
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* The props of component that will be used for rendering each of the MultiSelectTree items
|
|
94
|
+
* ([see example](https://www.telerik.com/kendo-react-ui/components/dropdowns/multiselecttree/custom-rendering#toc-items-and-value-element)).
|
|
95
|
+
*/
|
|
96
|
+
export interface MultiSelectTreeItemProps extends ItemRenderProps {
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* The props of component that will be used for rendering each of the MultiSelectTree tags
|
|
100
|
+
*/
|
|
101
|
+
export interface MultiSelectTreeTagProps {
|
|
102
|
+
/**
|
|
103
|
+
* The data for the tag being rendered.
|
|
104
|
+
*/
|
|
105
|
+
tagData: TagData;
|
|
106
|
+
/**
|
|
107
|
+
* The unique identifier for the tag.
|
|
108
|
+
*/
|
|
109
|
+
guid: string;
|
|
110
|
+
/**
|
|
111
|
+
* The currently focused tag data, if any.
|
|
112
|
+
*/
|
|
113
|
+
focusedTag?: TagData;
|
|
114
|
+
/**
|
|
115
|
+
* The callback function that is triggered when a tag is deleted.
|
|
116
|
+
*/
|
|
117
|
+
onTagDelete: (items: Array<any>, event: React.MouseEvent<HTMLSpanElement>) => void;
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
* The props of the `ListNoData` component ([see example](https://www.telerik.com/kendo-react-ui/components/dropdowns/multiselecttree/custom-rendering#toc-no-data)).
|
|
121
|
+
*/
|
|
122
|
+
export interface MultiSelectTreeListNoDataProps {
|
|
123
|
+
/**
|
|
124
|
+
* The child components to render when no data is available.
|
|
125
|
+
*/
|
|
126
|
+
children?: React.ReactNode;
|
|
127
|
+
}
|
|
128
|
+
/**
|
|
129
|
+
* Represents the props of the [KendoReact MultiSelectTree component](https://www.telerik.com/kendo-react-ui/components/dropdowns/multiselecttree).
|
|
130
|
+
*/
|
|
131
|
+
export interface MultiSelectTreeProps extends FormComponentProps {
|
|
132
|
+
/**
|
|
133
|
+
* Sets the data of the MultiSelectTree ([see example](https://www.telerik.com/kendo-react-ui/components/dropdowns/multiselecttree)).
|
|
134
|
+
*
|
|
135
|
+
* @example
|
|
136
|
+
* ```jsx
|
|
137
|
+
* <MultiSelectTree data={[{ text: 'Node1' }, { text: 'Node2' }]} />
|
|
138
|
+
* ```
|
|
139
|
+
*/
|
|
140
|
+
data?: any[];
|
|
141
|
+
/**
|
|
142
|
+
* Sets the opened state of the MultiSelectTree.
|
|
143
|
+
*
|
|
144
|
+
* @example
|
|
145
|
+
* ```jsx
|
|
146
|
+
* <MultiSelectTree opened={true} />
|
|
147
|
+
* ```
|
|
148
|
+
*/
|
|
149
|
+
opened?: boolean;
|
|
150
|
+
/**
|
|
151
|
+
* The styles that are applied to the MultiSelectTree.
|
|
152
|
+
*
|
|
153
|
+
* @example
|
|
154
|
+
* ```jsx
|
|
155
|
+
* <MultiSelectTree style={{ width: '400px' }} />
|
|
156
|
+
* ```
|
|
157
|
+
*/
|
|
158
|
+
style?: React.CSSProperties;
|
|
159
|
+
/**
|
|
160
|
+
* Sets the value of the MultiSelectTree. It can either be of the primitive (string, numbers) or of the complex (objects) type.
|
|
161
|
+
*
|
|
162
|
+
* @example
|
|
163
|
+
* ```jsx
|
|
164
|
+
* <MultiSelectTree value={['Node1']} />
|
|
165
|
+
* ```
|
|
166
|
+
*/
|
|
167
|
+
value?: Array<any>;
|
|
168
|
+
/**
|
|
169
|
+
* The hint that is displayed when the MultiSelectTree is empty.
|
|
170
|
+
*
|
|
171
|
+
* @example
|
|
172
|
+
* ```jsx
|
|
173
|
+
* <MultiSelectTree placeholder="Select items" />
|
|
174
|
+
* ```
|
|
175
|
+
*/
|
|
176
|
+
placeholder?: string;
|
|
177
|
+
/**
|
|
178
|
+
* Sets the key for comparing the data items of the MultiSelectTree ([see example](https://www.telerik.com/kendo-react-ui/components/dropdowns/multiselecttree)).
|
|
179
|
+
* If `dataItemKey` is not set, the MultiSelectTree compares the items by reference.
|
|
180
|
+
*
|
|
181
|
+
* @example
|
|
182
|
+
* ```jsx
|
|
183
|
+
* <MultiSelectTree dataItemKey="id" />
|
|
184
|
+
* ```
|
|
185
|
+
*/
|
|
186
|
+
dataItemKey: string;
|
|
187
|
+
/**
|
|
188
|
+
* Sets additional classes to the MultiSelectTree.
|
|
189
|
+
*
|
|
190
|
+
* @example
|
|
191
|
+
* ```jsx
|
|
192
|
+
* <MultiSelectTree className="custom-class" />
|
|
193
|
+
* ```
|
|
194
|
+
*/
|
|
195
|
+
className?: string;
|
|
196
|
+
/**
|
|
197
|
+
* Sets the disabled state of the MultiSelectTree.
|
|
198
|
+
*
|
|
199
|
+
* @example
|
|
200
|
+
* ```jsx
|
|
201
|
+
* <MultiSelectTree disabled={true} />
|
|
202
|
+
* ```
|
|
203
|
+
*/
|
|
204
|
+
disabled?: boolean;
|
|
205
|
+
/**
|
|
206
|
+
* Represents the `dir` HTML attribute.
|
|
207
|
+
*
|
|
208
|
+
* @example
|
|
209
|
+
* ```jsx
|
|
210
|
+
* <MultiSelectTree dir="rtl" />
|
|
211
|
+
* ```
|
|
212
|
+
*/
|
|
213
|
+
dir?: string;
|
|
214
|
+
/**
|
|
215
|
+
* Renders a floating label for the MultiSelectTree.
|
|
216
|
+
*
|
|
217
|
+
* @example
|
|
218
|
+
* ```jsx
|
|
219
|
+
* <MultiSelectTree label="Select items" />
|
|
220
|
+
* ```
|
|
221
|
+
*/
|
|
222
|
+
label?: string;
|
|
223
|
+
/**
|
|
224
|
+
* Specifies the id of the component.
|
|
225
|
+
*
|
|
226
|
+
* @example
|
|
227
|
+
* ```jsx
|
|
228
|
+
* <MultiSelectTree id="multi-select-tree" />
|
|
229
|
+
* ```
|
|
230
|
+
*/
|
|
231
|
+
id?: string;
|
|
232
|
+
/**
|
|
233
|
+
* Sets the tags of the MultiSelect ([see example](https://www.telerik.com/kendo-react-ui/components/dropdowns/multiselect/custom-tags)).
|
|
234
|
+
*
|
|
235
|
+
* @example
|
|
236
|
+
* ```jsx
|
|
237
|
+
* <MultiSelectTree tags={[{ text: 'Tag1' }, { text: 'Tag2' }]} />
|
|
238
|
+
* ```
|
|
239
|
+
*/
|
|
240
|
+
tags?: Array<TagData>;
|
|
241
|
+
/**
|
|
242
|
+
* 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).
|
|
243
|
+
* For example these elements could contain error or hint message.
|
|
244
|
+
*
|
|
245
|
+
* @example
|
|
246
|
+
* ```jsx
|
|
247
|
+
* <MultiSelectTree ariaDescribedBy="description" />
|
|
248
|
+
* ```
|
|
249
|
+
*/
|
|
250
|
+
ariaDescribedBy?: string;
|
|
251
|
+
/**
|
|
252
|
+
* Identifies the element(s) which will label the component.
|
|
253
|
+
*
|
|
254
|
+
* @example
|
|
255
|
+
* ```jsx
|
|
256
|
+
* <MultiSelectTree ariaLabelledBy="label" />
|
|
257
|
+
* ```
|
|
258
|
+
*/
|
|
259
|
+
ariaLabelledBy?: string;
|
|
260
|
+
/**
|
|
261
|
+
* Enables the filtering functionality of the MultiSelectTree ([more information and examples](https://www.telerik.com/kendo-react-ui/components/dropdowns/multiselecttree/filtering)).
|
|
262
|
+
*
|
|
263
|
+
* @example
|
|
264
|
+
* ```jsx
|
|
265
|
+
* <MultiSelectTree filterable={true} />
|
|
266
|
+
* ```
|
|
267
|
+
*/
|
|
268
|
+
filterable?: boolean;
|
|
269
|
+
/**
|
|
270
|
+
* Sets the value of filtering input.
|
|
271
|
+
* Useful for making the filtering input a [controlled component](https://react.dev/learn/sharing-state-between-components#controlled-and-uncontrolled-components).
|
|
272
|
+
*
|
|
273
|
+
* @example
|
|
274
|
+
* ```jsx
|
|
275
|
+
* <MultiSelectTree filter="search text" />
|
|
276
|
+
* ```
|
|
277
|
+
*/
|
|
278
|
+
filter?: string;
|
|
279
|
+
/**
|
|
280
|
+
* Sets the loading state of the MultiSelectTree ([see example](https://www.telerik.com/kendo-react-ui/components/dropdowns/multiselecttree/filtering#toc-visualize-filtering)).
|
|
281
|
+
*
|
|
282
|
+
* @example
|
|
283
|
+
* ```jsx
|
|
284
|
+
* <MultiSelectTree loading={true} />
|
|
285
|
+
* ```
|
|
286
|
+
*/
|
|
287
|
+
loading?: boolean;
|
|
288
|
+
/**
|
|
289
|
+
* Specifies the `tabIndex` of the MultiSelectTree.
|
|
290
|
+
*
|
|
291
|
+
* @example
|
|
292
|
+
* ```jsx
|
|
293
|
+
* <MultiSelectTree tabIndex={0} />
|
|
294
|
+
* ```
|
|
295
|
+
*/
|
|
296
|
+
tabIndex?: number;
|
|
297
|
+
/**
|
|
298
|
+
* Specifies the `accessKey` of the MultiSelectTree.
|
|
299
|
+
*
|
|
300
|
+
* @example
|
|
301
|
+
* ```jsx
|
|
302
|
+
* <MultiSelectTree accessKey="m" />
|
|
303
|
+
* ```
|
|
304
|
+
*/
|
|
305
|
+
accessKey?: string;
|
|
306
|
+
/**
|
|
307
|
+
* Sets the data item field that represents the item text ([see example](https://www.telerik.com/kendo-react-ui/components/dropdowns/multiselecttree)).
|
|
308
|
+
*
|
|
309
|
+
* @example
|
|
310
|
+
* ```jsx
|
|
311
|
+
* <MultiSelectTree textField="name" />
|
|
312
|
+
* ```
|
|
313
|
+
*/
|
|
314
|
+
textField: string;
|
|
315
|
+
/**
|
|
316
|
+
* Specifies the name of the field which will provide a Boolean representation of the checked state of the item.
|
|
317
|
+
*
|
|
318
|
+
* @example
|
|
319
|
+
* ```jsx
|
|
320
|
+
* <MultiSelectTree checkField="checked" />
|
|
321
|
+
* ```
|
|
322
|
+
*/
|
|
323
|
+
checkField?: string;
|
|
324
|
+
/**
|
|
325
|
+
* Specifies the name of the field which will provide a Boolean representation of the checked indeterminate state of the item.
|
|
326
|
+
*
|
|
327
|
+
* @example
|
|
328
|
+
* ```jsx
|
|
329
|
+
* <MultiSelectTree checkIndeterminateField="indeterminate" />
|
|
330
|
+
* ```
|
|
331
|
+
*/
|
|
332
|
+
checkIndeterminateField?: string;
|
|
333
|
+
/**
|
|
334
|
+
* Specifies the name of the field which will provide a Boolean representation of the expanded state of the item.
|
|
335
|
+
*
|
|
336
|
+
* @example
|
|
337
|
+
* ```jsx
|
|
338
|
+
* <MultiSelectTree expandField="expanded" />
|
|
339
|
+
* ```
|
|
340
|
+
*/
|
|
341
|
+
expandField?: string;
|
|
342
|
+
/**
|
|
343
|
+
* Specifies the name of the field which will provide an array representation of the item subitems.
|
|
344
|
+
* Defaults to 'items'.
|
|
345
|
+
*
|
|
346
|
+
* @example
|
|
347
|
+
* ```jsx
|
|
348
|
+
* <MultiSelectTree subItemsField="children" />
|
|
349
|
+
* ```
|
|
350
|
+
*/
|
|
351
|
+
subItemsField?: string;
|
|
352
|
+
/**
|
|
353
|
+
* Configures the popup of the MultiSelectTree.
|
|
354
|
+
*
|
|
355
|
+
* @example
|
|
356
|
+
* ```jsx
|
|
357
|
+
* <MultiSelectTree popupSettings={{ animate: true }} />
|
|
358
|
+
* ```
|
|
359
|
+
*/
|
|
360
|
+
popupSettings?: DropDownsPopupSettings;
|
|
361
|
+
/**
|
|
362
|
+
* Represents a callback function, which returns the value for submitting. The returned value will be rendered in an `option` of a hidden [`select`](https://react.dev/reference/react-dom/components/select) element.
|
|
363
|
+
*
|
|
364
|
+
* @example
|
|
365
|
+
* ```jsx
|
|
366
|
+
* <MultiSelectTree valueMap={value => value && value.id} />
|
|
367
|
+
* ```
|
|
368
|
+
*/
|
|
369
|
+
valueMap?: (value: Array<any>) => any;
|
|
370
|
+
/**
|
|
371
|
+
* Fires each time the popup of the MultiSelectTree is about to open.
|
|
372
|
+
*
|
|
373
|
+
* @example
|
|
374
|
+
* ```jsx
|
|
375
|
+
* <MultiSelectTree onOpen={(event) => console.log(event)} />
|
|
376
|
+
* ```
|
|
377
|
+
*/
|
|
378
|
+
onOpen?: (event: MultiSelectTreeOpenEvent) => void;
|
|
379
|
+
/**
|
|
380
|
+
* Fires each time the popup of the MultiSelectTree is about to close.
|
|
381
|
+
*
|
|
382
|
+
* @example
|
|
383
|
+
* ```jsx
|
|
384
|
+
* <MultiSelectTree onClose={(event) => console.log(event)} />
|
|
385
|
+
* ```
|
|
386
|
+
*/
|
|
387
|
+
onClose?: (event: MultiSelectTreeCloseEvent) => void;
|
|
388
|
+
/**
|
|
389
|
+
* Fires each time the user focuses the MultiSelectTree.
|
|
390
|
+
*
|
|
391
|
+
* @example
|
|
392
|
+
* ```jsx
|
|
393
|
+
* <MultiSelectTree onFocus={(event) => console.log(event)} />
|
|
394
|
+
* ```
|
|
395
|
+
*/
|
|
396
|
+
onFocus?: (event: MultiSelectTreeFocusEvent) => void;
|
|
397
|
+
/**
|
|
398
|
+
* Fires each time the MultiSelectTree gets blurred.
|
|
399
|
+
*
|
|
400
|
+
* @example
|
|
401
|
+
* ```jsx
|
|
402
|
+
* <MultiSelectTree onBlur={(event) => console.log(event)} />
|
|
403
|
+
* ```
|
|
404
|
+
*/
|
|
405
|
+
onBlur?: (event: MultiSelectTreeBlurEvent) => void;
|
|
406
|
+
/**
|
|
407
|
+
* Fires each time the value of the MultiSelectTree is about to change ([see examples](https://www.telerik.com/kendo-react-ui/components/dropdowns/multiselecttree)).
|
|
408
|
+
*
|
|
409
|
+
* @example
|
|
410
|
+
* ```jsx
|
|
411
|
+
* <MultiSelectTree onChange={(event) => console.log(event)} />
|
|
412
|
+
* ```
|
|
413
|
+
*/
|
|
414
|
+
onChange?: (event: MultiSelectTreeChangeEvent) => void;
|
|
415
|
+
/**
|
|
416
|
+
* Fires each time the popup of the MultiSelectTree is about to cancel in ([adaptive mode](https://www.telerik.com/kendo-react-ui/components/dropdowns/multiselecttree/adaptive-rendering)).
|
|
417
|
+
*
|
|
418
|
+
* @example
|
|
419
|
+
* ```jsx
|
|
420
|
+
* <MultiSelectTree onCancel={(event) => console.log(event)} />
|
|
421
|
+
* ```
|
|
422
|
+
*/
|
|
423
|
+
onCancel?: (event: MultiSelectTreeCancelEvent) => void;
|
|
424
|
+
/**
|
|
425
|
+
* Fires each time the user types in the filter input
|
|
426
|
+
* ([see example](https://www.telerik.com/kendo-react-ui/components/dropdowns/multiselecttree/filtering#toc-basic-configuration)).
|
|
427
|
+
* You can filter the source based on the passed filtration value.
|
|
428
|
+
*
|
|
429
|
+
* @example
|
|
430
|
+
* ```jsx
|
|
431
|
+
* <MultiSelectTree onFilterChange={(event) => console.log(event)} />
|
|
432
|
+
* ```
|
|
433
|
+
*/
|
|
434
|
+
onFilterChange?: (event: MultiSelectTreeFilterChangeEvent) => void;
|
|
435
|
+
/**
|
|
436
|
+
* Fires when the expanding or collapsing of an item is requested ([see examples](https://www.telerik.com/kendo-react-ui/components/dropdowns/multiselecttree)).
|
|
437
|
+
*
|
|
438
|
+
* @example
|
|
439
|
+
* ```jsx
|
|
440
|
+
* <MultiSelectTree onExpandChange={(event) => console.log(event)} />
|
|
441
|
+
* ```
|
|
442
|
+
*/
|
|
443
|
+
onExpandChange?: (event: any) => void;
|
|
444
|
+
/**
|
|
445
|
+
* Defines the component that will be used for rendering each of the MultiSelectTree items
|
|
446
|
+
* ([see example](https://www.telerik.com/kendo-react-ui/components/dropdowns/multiselecttree/custom-rendering#toc-items-and-value-element)).
|
|
447
|
+
*
|
|
448
|
+
* @example
|
|
449
|
+
* ```jsx
|
|
450
|
+
* <MultiSelectTree item={(props) => <div>{props.item.text}</div>} />
|
|
451
|
+
* ```
|
|
452
|
+
*/
|
|
453
|
+
item?: React.ComponentType<MultiSelectTreeItemProps>;
|
|
454
|
+
/**
|
|
455
|
+
* Defines the component that will be rendered in the MultiSelectTree popup when no data is available
|
|
456
|
+
* ([see example](https://www.telerik.com/kendo-react-ui/components/dropdowns/multiselecttree/custom-rendering#toc-no-data)).
|
|
457
|
+
*
|
|
458
|
+
* @example
|
|
459
|
+
* ```jsx
|
|
460
|
+
* <MultiSelectTree listNoData={() => <div>No data available</div>} />
|
|
461
|
+
* ```
|
|
462
|
+
*/
|
|
463
|
+
listNoData?: React.ComponentType<MultiSelectTreeListNoDataProps>;
|
|
464
|
+
/**
|
|
465
|
+
* Defines the component that will be used for rendering each of the MultiSelectTree tags.
|
|
466
|
+
*
|
|
467
|
+
* @example
|
|
468
|
+
* ```jsx
|
|
469
|
+
* <MultiSelectTree tag={(props) => <span>{props.tagData.text}</span>} />
|
|
470
|
+
* ```
|
|
471
|
+
*/
|
|
472
|
+
tag?: React.ComponentType<MultiSelectTreeTagProps>;
|
|
473
|
+
/**
|
|
474
|
+
* Configures the `size` of the MultiSelectTree.
|
|
475
|
+
*
|
|
476
|
+
* The available options are:
|
|
477
|
+
* - small
|
|
478
|
+
* - medium
|
|
479
|
+
* - large
|
|
480
|
+
*
|
|
481
|
+
* @default undefined (theme-controlled)
|
|
482
|
+
*
|
|
483
|
+
* @example
|
|
484
|
+
* ```jsx
|
|
485
|
+
* <MultiSelectTree size="large" />
|
|
486
|
+
* ```
|
|
487
|
+
*/
|
|
488
|
+
size?: 'small' | 'medium' | 'large';
|
|
489
|
+
/**
|
|
490
|
+
* Configures the `roundness` of the MultiSelectTree.
|
|
491
|
+
*
|
|
492
|
+
* The available options are:
|
|
493
|
+
* - small
|
|
494
|
+
* - medium
|
|
495
|
+
* - large
|
|
496
|
+
* - full
|
|
497
|
+
*
|
|
498
|
+
* @default undefined (theme-controlled)
|
|
499
|
+
*
|
|
500
|
+
* @example
|
|
501
|
+
* ```jsx
|
|
502
|
+
* <MultiSelectTree rounded="full" />
|
|
503
|
+
* ```
|
|
504
|
+
*/
|
|
505
|
+
rounded?: 'small' | 'medium' | 'large' | 'full';
|
|
506
|
+
/**
|
|
507
|
+
* Configures the `fillMode` of the MultiSelectTree.
|
|
508
|
+
*
|
|
509
|
+
* The available options are:
|
|
510
|
+
* - solid
|
|
511
|
+
* - flat
|
|
512
|
+
* - outline
|
|
513
|
+
*
|
|
514
|
+
* @default undefined (theme-controlled)
|
|
515
|
+
*
|
|
516
|
+
* @example
|
|
517
|
+
* ```jsx
|
|
518
|
+
* <MultiSelectTree fillMode="outline" />
|
|
519
|
+
* ```
|
|
520
|
+
*/
|
|
521
|
+
fillMode?: 'solid' | 'flat' | 'outline';
|
|
522
|
+
/**
|
|
523
|
+
* Providing different rendering of the popup element based on the screen dimensions.
|
|
524
|
+
*
|
|
525
|
+
* @default `false`
|
|
526
|
+
*
|
|
527
|
+
* @example
|
|
528
|
+
* ```jsx
|
|
529
|
+
* <MultiSelectTree adaptive={true} />
|
|
530
|
+
* ```
|
|
531
|
+
*/
|
|
532
|
+
adaptive?: boolean;
|
|
533
|
+
/**
|
|
534
|
+
* Specifies the text that is rendered as title in the adaptive popup(action sheet).
|
|
535
|
+
* Applicable only when `adaptive` is set to `true`.
|
|
536
|
+
* If not provided, the title will be the same as the label.
|
|
537
|
+
*
|
|
538
|
+
* @example
|
|
539
|
+
* ```jsx
|
|
540
|
+
* <MultiSelectTree adaptiveTitle="Adaptive Popup Title" />
|
|
541
|
+
* ```
|
|
542
|
+
*/
|
|
543
|
+
adaptiveTitle?: string | React.ReactNode;
|
|
544
|
+
/**
|
|
545
|
+
* Specifies the text that is rendered as subtitle in the adaptive popup(action sheet).
|
|
546
|
+
* Applicable only when `adaptive` is set to `true`.
|
|
547
|
+
*
|
|
548
|
+
* @example
|
|
549
|
+
* ```jsx
|
|
550
|
+
* <MultiSelectTree adaptiveSubtitle="Adaptive Popup Subtitle" />
|
|
551
|
+
* ```
|
|
552
|
+
*/
|
|
553
|
+
adaptiveSubtitle?: string;
|
|
554
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
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 { MultiSelectTreeChangeEventOperation } from './MultiSelectTreeProps.js';
|
|
9
|
+
/** @hidden */
|
|
10
|
+
export declare const getValueMap: (value: any[], idGetter: any) => any;
|
|
11
|
+
/**
|
|
12
|
+
* Get MultiSelectTree new value from the component `onChange` event.
|
|
13
|
+
*
|
|
14
|
+
* @param {any[]} data
|
|
15
|
+
* @param {object} options
|
|
16
|
+
* @returns {any[]}
|
|
17
|
+
*/
|
|
18
|
+
export declare const getMultiSelectTreeValue: (data: any[], options: {
|
|
19
|
+
subItemsField?: string;
|
|
20
|
+
dataItemKey: string;
|
|
21
|
+
items: any;
|
|
22
|
+
value: Array<any>;
|
|
23
|
+
operation: MultiSelectTreeChangeEventOperation;
|
|
24
|
+
}) => any[];
|
|
@@ -0,0 +1,22 @@
|
|
|
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 { ActionSheetProps } from '@progress/kendo-react-layout';
|
|
9
|
+
import * as React from 'react';
|
|
10
|
+
/** @hidden */
|
|
11
|
+
export interface AdaptiveModeProps extends ActionSheetProps {
|
|
12
|
+
windowWidth?: number;
|
|
13
|
+
mobileFilter?: React.ReactNode;
|
|
14
|
+
footer?: {
|
|
15
|
+
cancelText: string;
|
|
16
|
+
onCancel: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
17
|
+
applyText: string;
|
|
18
|
+
onApply: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
/** @hidden */
|
|
22
|
+
export declare const AdaptiveMode: (props: AdaptiveModeProps) => React.JSX.Element;
|
|
@@ -0,0 +1,19 @@
|
|
|
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 * as React from 'react';
|
|
9
|
+
/**
|
|
10
|
+
* @hidden
|
|
11
|
+
*/
|
|
12
|
+
export interface ClearButtonProps {
|
|
13
|
+
onClick?: React.MouseEventHandler<HTMLSpanElement>;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* @hidden
|
|
17
|
+
*/
|
|
18
|
+
declare const ClearButton: (props: ClearButtonProps) => React.JSX.Element;
|
|
19
|
+
export default ClearButton;
|