@progress/kendo-react-dropdowns 7.2.4-develop.3 → 7.3.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 (107) hide show
  1. package/AutoComplete/AutoComplete.js +8 -0
  2. package/AutoComplete/AutoComplete.mjs +458 -0
  3. package/ComboBox/ComboBox.js +8 -0
  4. package/ComboBox/ComboBox.mjs +618 -0
  5. package/DropDownList/DropDownList.js +8 -0
  6. package/DropDownList/DropDownList.mjs +630 -0
  7. package/DropDownTree/DropDownTree.js +8 -0
  8. package/DropDownTree/DropDownTree.mjs +550 -0
  9. package/DropDownTree/ListNoData.js +8 -0
  10. package/DropDownTree/ListNoData.mjs +13 -0
  11. package/DropDownTree/useDropdownWidth.js +8 -0
  12. package/DropDownTree/useDropdownWidth.mjs +25 -0
  13. package/MultiColumnComboBox/MultiColumnComboBox.js +8 -0
  14. package/MultiColumnComboBox/MultiColumnComboBox.mjs +186 -0
  15. package/MultiSelect/MultiSelect.js +8 -0
  16. package/MultiSelect/MultiSelect.mjs +694 -0
  17. package/MultiSelect/TagList.js +8 -0
  18. package/MultiSelect/TagList.mjs +48 -0
  19. package/MultiSelectTree/MultiSelectTree.js +8 -0
  20. package/MultiSelectTree/MultiSelectTree.mjs +590 -0
  21. package/MultiSelectTree/utils.js +8 -0
  22. package/MultiSelectTree/utils.mjs +74 -0
  23. package/common/AdaptiveMode.js +8 -0
  24. package/common/AdaptiveMode.mjs +73 -0
  25. package/common/ClearButton.js +8 -0
  26. package/common/ClearButton.mjs +38 -0
  27. package/common/DropDownBase.js +8 -0
  28. package/common/DropDownBase.mjs +194 -0
  29. package/common/GroupStickyHeader.js +8 -0
  30. package/common/GroupStickyHeader.mjs +22 -0
  31. package/common/List.js +8 -0
  32. package/common/List.mjs +117 -0
  33. package/common/ListContainer.js +8 -0
  34. package/common/ListContainer.mjs +33 -0
  35. package/common/ListDefaultItem.js +8 -0
  36. package/common/ListDefaultItem.mjs +36 -0
  37. package/common/ListFilter.js +8 -0
  38. package/common/ListFilter.mjs +49 -0
  39. package/common/ListGroupItem.js +8 -0
  40. package/common/ListGroupItem.mjs +32 -0
  41. package/common/ListItem.js +8 -0
  42. package/common/ListItem.mjs +49 -0
  43. package/common/MultiColumnList.js +8 -0
  44. package/common/MultiColumnList.mjs +28 -0
  45. package/common/Navigation.js +8 -0
  46. package/common/Navigation.mjs +29 -0
  47. package/common/SearchBar.js +8 -0
  48. package/common/SearchBar.mjs +65 -0
  49. package/common/VirtualScroll.js +8 -0
  50. package/common/VirtualScroll.mjs +75 -0
  51. package/common/constants.js +8 -0
  52. package/common/constants.mjs +13 -0
  53. package/common/settings.js +8 -0
  54. package/common/settings.mjs +12 -0
  55. package/common/utils.js +8 -0
  56. package/common/utils.mjs +109 -0
  57. package/common/withCustomComponent.js +8 -0
  58. package/common/withCustomComponent.mjs +13 -0
  59. package/dist/cdn/js/kendo-react-dropdowns.js +8 -5
  60. package/index.d.mts +4098 -5
  61. package/index.d.ts +4098 -31
  62. package/index.js +8 -5
  63. package/index.mjs +55 -4429
  64. package/messages/index.js +8 -0
  65. package/messages/index.mjs +27 -0
  66. package/package-metadata.js +8 -0
  67. package/package-metadata.mjs +19 -0
  68. package/package.json +9 -9
  69. package/AutoComplete/AutoComplete.d.ts +0 -236
  70. package/AutoComplete/AutoCompleteProps.d.ts +0 -254
  71. package/ComboBox/ComboBox.d.ts +0 -254
  72. package/ComboBox/ComboBoxProps.d.ts +0 -324
  73. package/DropDownList/DropDownList.d.ts +0 -264
  74. package/DropDownList/DropDownListProps.d.ts +0 -329
  75. package/DropDownTree/DropDownTree.d.ts +0 -74
  76. package/DropDownTree/DropDownTreeProps.d.ts +0 -297
  77. package/DropDownTree/ListNoData.d.ts +0 -10
  78. package/DropDownTree/useDropdownWidth.d.ts +0 -10
  79. package/MultiColumnComboBox/MultiColumnComboBox.d.ts +0 -300
  80. package/MultiSelect/MultiSelect.d.ts +0 -262
  81. package/MultiSelect/MultiSelectProps.d.ts +0 -325
  82. package/MultiSelect/TagList.d.ts +0 -42
  83. package/MultiSelectTree/MultiSelectTree.d.ts +0 -85
  84. package/MultiSelectTree/MultiSelectTreeProps.d.ts +0 -324
  85. package/MultiSelectTree/utils.d.ts +0 -21
  86. package/common/AdaptiveMode.d.ts +0 -25
  87. package/common/ClearButton.d.ts +0 -18
  88. package/common/DropDownBase.d.ts +0 -180
  89. package/common/GroupStickyHeader.d.ts +0 -28
  90. package/common/List.d.ts +0 -50
  91. package/common/ListContainer.d.ts +0 -22
  92. package/common/ListDefaultItem.d.ts +0 -20
  93. package/common/ListFilter.d.ts +0 -23
  94. package/common/ListGroupItem.d.ts +0 -37
  95. package/common/ListItem.d.ts +0 -65
  96. package/common/MultiColumnList.d.ts +0 -9
  97. package/common/Navigation.d.ts +0 -17
  98. package/common/SearchBar.d.ts +0 -47
  99. package/common/VirtualScroll.d.ts +0 -45
  100. package/common/constants.d.ts +0 -8
  101. package/common/events.d.ts +0 -76
  102. package/common/filterDescriptor.d.ts +0 -45
  103. package/common/settings.d.ts +0 -109
  104. package/common/utils.d.ts +0 -70
  105. package/common/withCustomComponent.d.ts +0 -11
  106. package/messages/index.d.ts +0 -44
  107. package/package-metadata.d.ts +0 -9
@@ -1,297 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { FormComponentProps } from '@progress/kendo-react-common';
6
- import { ItemRenderProps } from '@progress/kendo-react-treeview';
7
- import { FilterChangeEvent, ChangeEvent, OpenEvent, CloseEvent, FocusEvent, BlurEvent, DropdownEvent } from '../common/events';
8
- import { DropDownsPopupSettings } from '../common/settings';
9
- /**
10
- * Represents the Object which is passed to the
11
- * [`ref`](https://reactjs.org/docs/refs-and-the-dom.html) callback of the DropDownTree component.
12
- */
13
- export interface DropDownTreeHandle {
14
- /**
15
- * The current element or `null` if there is no one.
16
- */
17
- element: HTMLElement | null;
18
- /**
19
- * The props of the DropDownTree component.
20
- */
21
- props: DropDownTreeProps;
22
- /**
23
- * The focus function.
24
- */
25
- focus: () => void;
26
- }
27
- /**
28
- * Represents the object of the `onFilterChange` DropDownTree event.
29
- */
30
- export interface DropDownTreeFilterChangeEvent extends FilterChangeEvent<DropDownTreeHandle> {
31
- }
32
- /**
33
- * Represents the object of the `onChange` DropDownTree event.
34
- */
35
- export interface DropDownTreeChangeEvent extends ChangeEvent<DropDownTreeHandle> {
36
- level: number[];
37
- }
38
- /**
39
- * Represents the object of the `onOpen` DropDownTree event.
40
- */
41
- export interface DropDownTreeOpenEvent extends OpenEvent<DropDownTreeHandle> {
42
- }
43
- /**
44
- * Represents the object of the `onClose` DropDownTree event.
45
- */
46
- export interface DropDownTreeCloseEvent extends CloseEvent<DropDownTreeHandle> {
47
- }
48
- /**
49
- * Represents the object of the `onFocus` DropDownTree event.
50
- */
51
- export interface DropDownTreeFocusEvent extends FocusEvent<DropDownTreeHandle> {
52
- }
53
- /**
54
- * Represents the object of the `onBlur` DropDownTree event.
55
- */
56
- export interface DropDownTreeBlurEvent extends BlurEvent<DropDownTreeHandle> {
57
- }
58
- /**
59
- * Represents the object of the `onExpandChange` DropDownTree event.
60
- */
61
- export interface DropDownTreeExpandEvent extends DropdownEvent<DropDownTreeHandle> {
62
- item: any;
63
- level: number[];
64
- }
65
- /**
66
- * The props of component that will be used for rendering each of the DropDownTree items
67
- * ([see example]({% slug customrendering_dropdowntree %}#toc-items-and-value-element)).
68
- */
69
- export interface ItemProps extends ItemRenderProps {
70
- }
71
- /**
72
- * The props of the `ListNoData` component ([see example]({% slug customrendering_dropdowntree %}#toc-no-data)).
73
- */
74
- export interface ListNoDataProps {
75
- children?: React.ReactNode;
76
- }
77
- /**
78
- * The props of the `ValueHolder` component ([see example]({% slug customrendering_dropdowntree %}#toc-items-and-value-element)).
79
- */
80
- export interface ValueHolderProps {
81
- children?: React.ReactNode;
82
- item?: any;
83
- }
84
- /**
85
- * Represents the props of the [KendoReact DropDownTree component]({% slug overview_dropdowntree %}).
86
- */
87
- export interface DropDownTreeProps extends FormComponentProps {
88
- /**
89
- * Sets the data of the DropDownTree ([see example]({% slug overview_dropdowntree %})).
90
- */
91
- data?: any[];
92
- /**
93
- * Sets the opened state of the DropDownTree.
94
- */
95
- opened?: boolean;
96
- /**
97
- * The styles that are applied to the DropDownTree.
98
- */
99
- style?: React.CSSProperties;
100
- /**
101
- * Sets the value of the DropDownTree ([see example]({% slug overview_dropdowntree %})).
102
- * It can be an object from the data-tree.
103
- */
104
- value?: any;
105
- /**
106
- * The hint that is displayed when the DropDownTree is empty.
107
- */
108
- placeholder?: string;
109
- /**
110
- * Sets the key for comparing the data items of the DropDownTree ([see example]({% slug overview_dropdowntree %})).
111
- * If `dataItemKey` is not set, the DropDownTree compares the items by reference.
112
- */
113
- dataItemKey: string;
114
- /**
115
- * Sets additional classes to the DropDownTree.
116
- */
117
- className?: string;
118
- /**
119
- * Sets the disabled state of the DropDownTree.
120
- */
121
- disabled?: boolean;
122
- /**
123
- * Represents the `dir` HTML attribute.
124
- */
125
- dir?: string;
126
- /**
127
- * Renders a floating label for the DropDownTree.
128
- */
129
- label?: string;
130
- /**
131
- * Specifies the id of the component.
132
- */
133
- id?: string;
134
- /**
135
- * 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).
136
- * For example these elements could contain error or hint message.
137
- */
138
- ariaDescribedBy?: string;
139
- /**
140
- * Identifies the element(s) which will label the component.
141
- */
142
- ariaLabelledBy?: string;
143
- /**
144
- * Enables the filtering functionality of the DropDownTree ([more information and examples]({% slug filtering_dropdowntree %})).
145
- */
146
- filterable?: boolean;
147
- /**
148
- * Sets the value of filtering input.
149
- * Useful for making the filtering input a [controlled component](https://reactjs.org/docs/forms.html#controlled-components).
150
- */
151
- filter?: string;
152
- /**
153
- * Sets the loading state of the DropDownTree ([see example]({% slug filtering_dropdowntree %}#toc-visualize-filtering)).
154
- */
155
- loading?: boolean;
156
- /**
157
- * Specifies the `tabIndex` of the DropDownTree.
158
- */
159
- tabIndex?: number;
160
- /**
161
- * Specifies the `accessKey` of the DropDownTree.
162
- */
163
- accessKey?: string;
164
- /**
165
- * Sets the data item field that represents the item text ([see example]({% slug overview_dropdowntree %})).
166
- */
167
- textField: string;
168
- /**
169
- * Specifies the name of the field which will provide a Boolean representation of the selected state of the item.
170
- */
171
- selectField?: string;
172
- /**
173
- * Specifies the name of the field which will provide a Boolean representation of the expanded state of the item.
174
- */
175
- expandField?: string;
176
- /**
177
- * Specifies the name of the field which will provide an array representation of the item subitems.
178
- * Defaults to 'items'.
179
- */
180
- subItemsField?: string;
181
- /**
182
- * Configures the popup of the DropDownTree.
183
- */
184
- popupSettings?: DropDownsPopupSettings;
185
- /**
186
- * Represents a callback function, which returns the value for submitting. The returned value will be rendered in an `option` of a hidden [`select`](https://reactjs.org/docs/forms.html#the-select-tag) element.
187
- *
188
- * @example
189
- * ```jsx-no-run
190
- * class App extends React.Component {
191
- * render() {
192
- * return (
193
- * <form>
194
- * <DropDownTree
195
- * data={[ { text: "Austria", id: 1 } , { text: "Belarus", id: 2 } ]}
196
- * valueMap={value => value && value.id}
197
- * />
198
- * <button type="submit">Submit</button>
199
- * </form>
200
- * );
201
- * }
202
- * }
203
- * ReactDOM.render(<App />, document.querySelector('my-app'));
204
- * ```
205
- */
206
- valueMap?: (value: any) => any;
207
- /**
208
- * Fires each time the popup of the DropDownTree is about to open.
209
- */
210
- onOpen?: (event: DropDownTreeOpenEvent) => void;
211
- /**
212
- * Fires each time the popup of the DropDownTree is about to close.
213
- */
214
- onClose?: (event: DropDownTreeCloseEvent) => void;
215
- /**
216
- * Fires each time the user focuses the DropDownTree.
217
- */
218
- onFocus?: (event: DropDownTreeFocusEvent) => void;
219
- /**
220
- * Fires each time the DropDownTree gets blurred.
221
- */
222
- onBlur?: (event: DropDownTreeBlurEvent) => void;
223
- /**
224
- * Fires each time the value of the DropDownTree is about to change ([see examples]({% slug overview_dropdowntree %})).
225
- */
226
- onChange?: (event: DropDownTreeChangeEvent) => void;
227
- /**
228
- * Fires each time the user types in the filter input
229
- * ([see example]({% slug filtering_dropdowntree %}#toc-basic-configuration)).
230
- * You can filter the source based on the passed filtration value.
231
- */
232
- onFilterChange?: (event: DropDownTreeFilterChangeEvent) => void;
233
- /**
234
- * Fires when the expanding or collapsing of an item is requested ([see examples]({% slug overview_dropdowntree %})).
235
- */
236
- onExpandChange?: (event: any) => void;
237
- /**
238
- * Defines the component that will be used for rendering each of the DropDownTree items
239
- * ([see example]({% slug customrendering_dropdowntree %}#toc-items-and-value-element)).
240
- */
241
- item?: React.ComponentType<ItemProps>;
242
- /**
243
- * Defines the component that will be used for rendering the selected value
244
- * ([see example]({% slug customrendering_dropdowntree %}#toc-items-and-value-element)).
245
- */
246
- valueHolder?: React.ComponentType<ValueHolderProps>;
247
- /**
248
- * Defines the component that will be rendered in the DropDownTree popup when no data is available
249
- * ([see example]({% slug customrendering_dropdowntree %}#toc-no-data)).
250
- */
251
- listNoData?: React.ComponentType<ListNoDataProps>;
252
- /**
253
- * Configures the `size` of the DropDownTree.
254
- *
255
- * The available options are:
256
- * - small
257
- * - medium
258
- * - large
259
- * - null&mdash;Does not set a size `className`.
260
- *
261
- * @default `medium`
262
- */
263
- size?: null | 'small' | 'medium' | 'large';
264
- /**
265
- * Configures the `roundness` of the DropDownTree.
266
- *
267
- * The available options are:
268
- * - small
269
- * - medium
270
- * - large
271
- * - full
272
- * - null&mdash;Does not set a rounded `className`.
273
- *
274
- * @default `medium`
275
- */
276
- rounded?: null | 'small' | 'medium' | 'large' | 'full';
277
- /**
278
- * Configures the `fillMode` of the DropDownTree.
279
- *
280
- * The available options are:
281
- * - solid
282
- * - flat
283
- * - outline
284
- * - null&mdash;Does not set a fillMode `className`.
285
- *
286
- * @default `solid`
287
- */
288
- fillMode?: null | 'solid' | 'flat' | 'outline';
289
- /**
290
- * Providing different rendering of the popup element based on the screen dimensions.
291
- */
292
- adaptive?: boolean;
293
- /**
294
- * Specifies the text that is rendered as title in the adaptive popup.
295
- */
296
- adaptiveTitle?: string;
297
- }
@@ -1,10 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import * as React from 'react';
6
- import { ListNoDataProps } from './DropDownTreeProps';
7
- /**
8
- * @hidden
9
- */
10
- export declare const ListNoData: React.FunctionComponent<ListNoDataProps>;
@@ -1,10 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import * as React from 'react';
6
- import { DropDownsPopupSettings } from '../common/settings';
7
- /**
8
- * @hidden
9
- */
10
- export declare function useDropdownWidth(elementRef: React.RefObject<HTMLElement | null>, defaultProps: any, popupSettings: DropDownsPopupSettings, style: React.CSSProperties): any;
@@ -1,300 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import * as React from 'react';
6
- import { CustomComponent } from '@progress/kendo-react-common';
7
- import { ComboBoxBlurEvent, ComboBoxChangeEvent, ComboBoxCloseEvent, ComboBoxFilterChangeEvent, ComboBoxFocusEvent, ComboBoxOpenEvent, ComboBoxPageChangeEvent, ComboBoxProps } from '../ComboBox/ComboBoxProps';
8
- import { DropDownsPopupSettings, VirtualizationSettings } from '../common/settings';
9
- import { ListItemProps } from '../common/ListItem';
10
- /**
11
- * The represents the interface of the MultiColumnComboBox columns.
12
- */
13
- export interface MultiColumnComboBoxColumn {
14
- /**
15
- * The unique id of the column.
16
- */
17
- uniqueKey?: string;
18
- /**
19
- * The field of the column.
20
- */
21
- field?: string;
22
- /**
23
- * The header of the column.
24
- */
25
- header?: React.ReactNode;
26
- /**
27
- * Represents the width of the column. If the width is not specified it is applied the default width of `200px`.
28
- */
29
- width?: string | number;
30
- }
31
- /**
32
- * Represents the properties of the [MultiColumnComboBox]({% slug api_dropdowns_multicolumncombobox %}) component.
33
- */
34
- export interface MultiColumnComboBoxProps extends ComboBoxProps {
35
- /**
36
- * Determines the columns array of the MultiColumnComboBox.
37
- */
38
- columns: MultiColumnComboBoxColumn[];
39
- /**
40
- * Sets the data of the MultiColumnComboBox.
41
- */
42
- data?: any[];
43
- /**
44
- * Sets the opened and closed state of the MultiColumnComboBox.
45
- */
46
- opened?: boolean;
47
- /**
48
- * The styles that are applied to the MultiColumnComboBox.
49
- */
50
- style?: React.CSSProperties;
51
- /**
52
- * Sets the value of the MultiColumnComboBox. It can either be of the primitive (string, numbers) or of the complex (objects) type.
53
- */
54
- value?: any;
55
- /**
56
- * Sets the default value of the MultiColumnComboBox. Similar to the native `select` HTML element.
57
- */
58
- defaultValue?: any;
59
- /**
60
- * Sets additional classes to the MultiColumnComboBox.
61
- */
62
- className?: string;
63
- /**
64
- * If `clearButton` is set to `true`, the MultiColumnComboBox renders a button on hovering over the component. Clicking this button resets the value of the MultiColumnComboBox to `undefined` and triggers the `change` event.
65
- */
66
- clearButton?: boolean;
67
- /**
68
- * The hint that is displayed when the MultiColumnComboBox is empty.
69
- */
70
- placeholder?: string;
71
- /**
72
- * Specifies whether the MultiColumnComboBox allows user-defined values that are not present in the dataset. Defaults to `false`.
73
- */
74
- allowCustom?: boolean;
75
- /**
76
- * Sets the disabled state of the MultiColumnComboBox.
77
- */
78
- disabled?: boolean;
79
- /**
80
- * Enables the filtering functionality of the MultiColumnComboBox.
81
- */
82
- filterable?: boolean;
83
- /**
84
- * Sets the value of MultiColumnComboBox input. Useful for making the MultiColumnComboBox input a controlled component.
85
- */
86
- filter?: string | null;
87
- /**
88
- * Sets the loading state of the MultiColumnComboBox.
89
- */
90
- loading?: boolean;
91
- /**
92
- * Specifies the `tabIndex` of the MultiColumnComboBox.
93
- */
94
- tabIndex?: number;
95
- /**
96
- * Specifies the `accessKey` of the MultiColumnComboBox.
97
- */
98
- accessKey?: string;
99
- /**
100
- * Sets the key for comparing the data items of the MultiColumnComboBox. If `dataItemKey` is not set, the MultiColumnComboBox compares the items by reference.
101
- */
102
- dataItemKey?: string;
103
- /**
104
- * Renders a floating label for the MultiColumnComboBox.
105
- */
106
- label?: string;
107
- /**
108
- * Configures the popup of the MultiColumnComboBox.
109
- */
110
- popupSettings?: DropDownsPopupSettings;
111
- /**
112
- * Configures the virtual scrolling of the MultiColumnComboBox.
113
- */
114
- virtual?: VirtualizationSettings;
115
- /**
116
- * If set, the MultiColumnComboBox will use it to get the focused item index. Default functionality returns the first item which starts with the input text.
117
- */
118
- focusedItemIndex?: (data: any, inputText: string, textField?: string) => number;
119
- /**
120
- * Fires each time the popup of the MultiColumnComboBox is about to open.
121
- */
122
- onOpen?: (event: ComboBoxOpenEvent) => void;
123
- /**
124
- * Fires each time the popup of the MultiColumnComboBox is about to close.
125
- */
126
- onClose?: (event: ComboBoxCloseEvent) => void;
127
- /**
128
- * Fires each time the user focuses the MultiColumnComboBox.
129
- */
130
- onFocus?: (event: ComboBoxFocusEvent) => void;
131
- /**
132
- * Fires each time the MultiColumnComboBox gets blurred.
133
- */
134
- onBlur?: (event: ComboBoxBlurEvent) => void;
135
- /**
136
- * Fires each time the value of the MultiColumnComboBox is about to change.
137
- */
138
- onChange?: (event: ComboBoxChangeEvent) => void;
139
- /**
140
- * Fires each time the user types in the filter input. You can filter the source based on the passed filtration value.
141
- */
142
- onFilterChange?: (event: ComboBoxFilterChangeEvent) => void;
143
- /**
144
- * Fires when both the virtual scrolling of the MultiColumnComboBox is enabled and the component requires data for another page.
145
- */
146
- onPageChange?: (event: ComboBoxPageChangeEvent) => void;
147
- /**
148
- * @hidden
149
- */
150
- onGroupScroll?: (event: {
151
- group?: string;
152
- }) => void;
153
- /**
154
- * Fires when a MultiColumnComboBox list item is about to be rendered. Used to override the default appearance of the list items.
155
- */
156
- itemRender?: (li: React.ReactElement<HTMLLIElement>, itemProps: ListItemProps) => React.ReactNode;
157
- /**
158
- * Sets the header component of the MultiColumnComboBox.
159
- */
160
- header?: React.ReactNode;
161
- /**
162
- * Sets the footer component of the MultiColumnComboBox.
163
- */
164
- footer?: React.ReactNode;
165
- /**
166
- * Configures the `size` of the MultiColumnComboBox.
167
- *
168
- * The available options are:
169
- * - small
170
- * - medium
171
- * - large
172
- * - null&mdash;Does not set a size `className`.
173
- *
174
- * @default `medium`
175
- */
176
- size?: null | 'small' | 'medium' | 'large';
177
- /**
178
- * Configures the `roundness` of the MultiColumnComboBox.
179
- *
180
- * The available options are:
181
- * - small
182
- * - medium
183
- * - large
184
- * - full
185
- * - null&mdash;Does not set a rounded `className`.
186
- *
187
- * @default `medium`
188
- */
189
- rounded?: null | 'small' | 'medium' | 'large' | 'full';
190
- /**
191
- * Configures the `fillMode` of the MultiColumnComboBox.
192
- *
193
- * The available options are:
194
- * - solid
195
- * - flat
196
- * - outline
197
- * - null&mdash;Does not set a fillMode `className`.
198
- *
199
- * @default `solid`
200
- */
201
- fillMode?: null | 'solid' | 'flat' | 'outline';
202
- /**
203
- * Sets a custom prefix to the MultiColumnComboBox component.
204
- */
205
- prefix?: CustomComponent<any> | undefined;
206
- /**
207
- * Sets a custom suffix to the MultiColumnComboBox component.
208
- */
209
- suffix?: CustomComponent<any> | undefined;
210
- }
211
- /**
212
- * Represents the target(element and props) of the MultiColumnComboBoxChangeEvent.
213
- */
214
- export interface MultiColumnComboBoxHandle {
215
- /**
216
- * The current element or `null` of there is no one.
217
- */
218
- element: HTMLSpanElement | null;
219
- /**
220
- * The value of the MultiColumnComboBox.
221
- */
222
- value: any;
223
- /**
224
- * The props values of the MultiColumnComboBox.
225
- */
226
- props: MultiColumnComboBoxProps;
227
- /**
228
- * The focus event callback.
229
- */
230
- focus: () => void;
231
- }
232
- /**
233
- * Represents the type of the MultiColumnComboBoxChangeEvent.
234
- */
235
- export interface MultiColumnComboBoxChangeEvent {
236
- /**
237
- * The value of the MultiColumnComboBoxChangeEvent.
238
- */
239
- value: any;
240
- /**
241
- * The target of the MultiColumnComboBoxChangeEvent from MultiColumnComboBoxHandle.
242
- */
243
- target: MultiColumnComboBoxHandle;
244
- /**
245
- * The event of the MultiColumnComboBoxChangeEvent.
246
- */
247
- syntheticEvent: React.SyntheticEvent<any>;
248
- }
249
- /**
250
- * Represents the PropsContext of the `MultiColumnComboBox` component.
251
- * Used for global configuration of all `MultiColumnComboBox` instances.
252
- *
253
- * For more information, refer to the [Dropdowns Props Context]({% slug props-context_dropdowns %}) article.
254
- */
255
- export declare const MultiColumnComboBoxPropsContext: React.Context<(p: MultiColumnComboBoxProps) => MultiColumnComboBoxProps>;
256
- /**
257
- * Represents the MultiColumnComboBox component.
258
- *
259
- * Accepts properties of type [MultiColumnComboBoxProps]({% slug api_dropdowns_multicolumncomboboxprops %}).
260
- * Obtaining the `ref` returns an object of type [MultiColumnComboBoxHandle]({% slug api_dropdowns_multicolumncomboboxhandle %}).
261
- *
262
- * @example
263
- * ```jsx
264
- * const columns = [
265
- * {
266
- * field: "id",
267
- * header: "ID",
268
- * width: "100px",
269
- * },
270
- * {
271
- * field: "name",
272
- * header: "Name",
273
- * width: "300px",
274
- * },
275
- * {
276
- * field: "position",
277
- * header: "Position",
278
- * width: "300px",
279
- * },
280
- * ];
281
- * const App = () => {
282
- * return (
283
- * <div>
284
- * <div>Employees:</div>
285
- * <MultiColumnComboBox
286
- * data={employees}
287
- * columns={columns}
288
- * textField={"name"}
289
- * style={{
290
- * width: "300px",
291
- * }}
292
- * placeholder="Please select ..."
293
- * />
294
- * </div>
295
- * );
296
- * };
297
- * ReactDOM.render(<App />, document.querySelector("my-app"));
298
- * ```
299
- */
300
- export declare const MultiColumnComboBox: React.ForwardRefExoticComponent<MultiColumnComboBoxProps & React.RefAttributes<MultiColumnComboBoxHandle | null>>;