@progress/kendo-react-dropdowns 6.1.1 → 7.0.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 (177) hide show
  1. package/{dist/es/AutoComplete → AutoComplete}/AutoComplete.d.ts +12 -8
  2. package/{dist/npm/AutoComplete → AutoComplete}/AutoCompleteProps.d.ts +4 -1
  3. package/{dist/es/ComboBox → ComboBox}/ComboBox.d.ts +12 -8
  4. package/{dist/es/ComboBox → ComboBox}/ComboBoxProps.d.ts +4 -1
  5. package/{dist/es/DropDownList → DropDownList}/DropDownList.d.ts +9 -5
  6. package/{dist/es/DropDownList → DropDownList}/DropDownListProps.d.ts +4 -1
  7. package/{dist/es/DropDownTree → DropDownTree}/DropDownTree.d.ts +4 -0
  8. package/{dist/npm/DropDownTree → DropDownTree}/DropDownTreeProps.d.ts +4 -1
  9. package/DropDownTree/ListNoData.d.ts +10 -0
  10. package/DropDownTree/useDropdownWidth.d.ts +9 -0
  11. package/LICENSE.md +1 -1
  12. package/{dist/es/MultiColumnComboBox → MultiColumnComboBox}/MultiColumnComboBox.d.ts +4 -0
  13. package/{dist/npm/MultiSelect → MultiSelect}/MultiSelect.d.ts +9 -5
  14. package/{dist/es/MultiSelect → MultiSelect}/MultiSelectProps.d.ts +4 -1
  15. package/{dist/npm/MultiSelect → MultiSelect}/TagList.d.ts +5 -1
  16. package/{dist/es/MultiSelectTree → MultiSelectTree}/MultiSelectTree.d.ts +4 -0
  17. package/{dist/es/MultiSelectTree → MultiSelectTree}/MultiSelectTreeProps.d.ts +5 -1
  18. package/{dist/npm/MultiSelectTree → MultiSelectTree}/utils.d.ts +5 -1
  19. package/{dist/npm/common → common}/AdaptiveMode.d.ts +5 -1
  20. package/common/ClearButton.d.ts +18 -0
  21. package/{dist/npm/common → common}/DropDownBase.d.ts +5 -1
  22. package/{dist/es/common → common}/GroupStickyHeader.d.ts +5 -1
  23. package/{dist/es/common → common}/List.d.ts +7 -3
  24. package/common/ListContainer.d.ts +22 -0
  25. package/common/ListDefaultItem.d.ts +20 -0
  26. package/{dist/npm/common → common}/ListFilter.d.ts +4 -0
  27. package/{dist/npm/common → common}/ListGroupItem.d.ts +5 -1
  28. package/{dist/npm/common → common}/ListItem.d.ts +5 -1
  29. package/common/MultiColumnList.d.ts +9 -0
  30. package/common/Navigation.d.ts +17 -0
  31. package/{dist/es/common → common}/SearchBar.d.ts +5 -1
  32. package/{dist/npm/common → common}/VirtualScroll.d.ts +4 -1
  33. package/common/constants.d.ts +8 -0
  34. package/{dist/es/common → common}/events.d.ts +4 -1
  35. package/{dist/npm/common → common}/filterDescriptor.d.ts +4 -0
  36. package/{dist/es/common → common}/settings.d.ts +5 -2
  37. package/{dist/npm/common → common}/utils.d.ts +4 -0
  38. package/dist/cdn/js/kendo-react-dropdowns.js +5 -1
  39. package/index.d.ts +29 -0
  40. package/index.js +5 -0
  41. package/index.mjs +4383 -0
  42. package/{dist/npm/messages → messages}/index.d.ts +4 -0
  43. package/package-metadata.d.ts +9 -0
  44. package/package.json +34 -62
  45. package/about.md +0 -3
  46. package/dist/es/AutoComplete/AutoComplete.js +0 -652
  47. package/dist/es/AutoComplete/AutoCompleteProps.d.ts +0 -243
  48. package/dist/es/AutoComplete/AutoCompleteProps.js +0 -2
  49. package/dist/es/ComboBox/ComboBox.js +0 -915
  50. package/dist/es/ComboBox/ComboBoxProps.js +0 -2
  51. package/dist/es/DropDownList/DropDownList.js +0 -887
  52. package/dist/es/DropDownList/DropDownListProps.js +0 -2
  53. package/dist/es/DropDownTree/DropDownTree.js +0 -540
  54. package/dist/es/DropDownTree/DropDownTreeProps.d.ts +0 -294
  55. package/dist/es/DropDownTree/DropDownTreeProps.js +0 -2
  56. package/dist/es/DropDownTree/ListNoData.d.ts +0 -6
  57. package/dist/es/DropDownTree/ListNoData.js +0 -8
  58. package/dist/es/DropDownTree/useDropdownWidth.d.ts +0 -5
  59. package/dist/es/DropDownTree/useDropdownWidth.js +0 -13
  60. package/dist/es/MultiColumnComboBox/MultiColumnComboBox.js +0 -213
  61. package/dist/es/MultiSelect/MultiSelect.d.ts +0 -256
  62. package/dist/es/MultiSelect/MultiSelect.js +0 -1110
  63. package/dist/es/MultiSelect/MultiSelectProps.js +0 -2
  64. package/dist/es/MultiSelect/TagList.d.ts +0 -38
  65. package/dist/es/MultiSelect/TagList.js +0 -39
  66. package/dist/es/MultiSelectTree/MultiSelectTree.js +0 -619
  67. package/dist/es/MultiSelectTree/MultiSelectTreeProps.js +0 -2
  68. package/dist/es/MultiSelectTree/utils.d.ts +0 -17
  69. package/dist/es/MultiSelectTree/utils.js +0 -191
  70. package/dist/es/common/AdaptiveMode.d.ts +0 -21
  71. package/dist/es/common/AdaptiveMode.js +0 -45
  72. package/dist/es/common/ClearButton.d.ts +0 -14
  73. package/dist/es/common/ClearButton.js +0 -39
  74. package/dist/es/common/DropDownBase.d.ts +0 -175
  75. package/dist/es/common/DropDownBase.js +0 -297
  76. package/dist/es/common/GroupStickyHeader.js +0 -34
  77. package/dist/es/common/List.js +0 -75
  78. package/dist/es/common/ListContainer.d.ts +0 -18
  79. package/dist/es/common/ListContainer.js +0 -43
  80. package/dist/es/common/ListDefaultItem.d.ts +0 -16
  81. package/dist/es/common/ListDefaultItem.js +0 -36
  82. package/dist/es/common/ListFilter.d.ts +0 -19
  83. package/dist/es/common/ListFilter.js +0 -37
  84. package/dist/es/common/ListGroupItem.d.ts +0 -33
  85. package/dist/es/common/ListGroupItem.js +0 -33
  86. package/dist/es/common/ListItem.d.ts +0 -61
  87. package/dist/es/common/ListItem.js +0 -44
  88. package/dist/es/common/MultiColumnList.d.ts +0 -6
  89. package/dist/es/common/MultiColumnList.js +0 -22
  90. package/dist/es/common/Navigation.d.ts +0 -13
  91. package/dist/es/common/Navigation.js +0 -34
  92. package/dist/es/common/SearchBar.js +0 -62
  93. package/dist/es/common/VirtualScroll.d.ts +0 -42
  94. package/dist/es/common/VirtualScroll.js +0 -161
  95. package/dist/es/common/constants.d.ts +0 -4
  96. package/dist/es/common/constants.js +0 -4
  97. package/dist/es/common/events.js +0 -1
  98. package/dist/es/common/filterDescriptor.d.ts +0 -41
  99. package/dist/es/common/filterDescriptor.js +0 -2
  100. package/dist/es/common/settings.js +0 -8
  101. package/dist/es/common/utils.d.ts +0 -62
  102. package/dist/es/common/utils.js +0 -194
  103. package/dist/es/main.d.ts +0 -25
  104. package/dist/es/main.js +0 -19
  105. package/dist/es/messages/index.d.ts +0 -40
  106. package/dist/es/messages/index.js +0 -41
  107. package/dist/es/package-metadata.d.ts +0 -5
  108. package/dist/es/package-metadata.js +0 -11
  109. package/dist/npm/AutoComplete/AutoComplete.d.ts +0 -230
  110. package/dist/npm/AutoComplete/AutoComplete.js +0 -655
  111. package/dist/npm/AutoComplete/AutoCompleteProps.js +0 -3
  112. package/dist/npm/ComboBox/ComboBox.d.ts +0 -248
  113. package/dist/npm/ComboBox/ComboBox.js +0 -918
  114. package/dist/npm/ComboBox/ComboBoxProps.d.ts +0 -313
  115. package/dist/npm/ComboBox/ComboBoxProps.js +0 -3
  116. package/dist/npm/DropDownList/DropDownList.d.ts +0 -258
  117. package/dist/npm/DropDownList/DropDownList.js +0 -890
  118. package/dist/npm/DropDownList/DropDownListProps.d.ts +0 -326
  119. package/dist/npm/DropDownList/DropDownListProps.js +0 -3
  120. package/dist/npm/DropDownTree/DropDownTree.d.ts +0 -70
  121. package/dist/npm/DropDownTree/DropDownTree.js +0 -543
  122. package/dist/npm/DropDownTree/DropDownTreeProps.js +0 -3
  123. package/dist/npm/DropDownTree/ListNoData.d.ts +0 -6
  124. package/dist/npm/DropDownTree/ListNoData.js +0 -12
  125. package/dist/npm/DropDownTree/useDropdownWidth.d.ts +0 -5
  126. package/dist/npm/DropDownTree/useDropdownWidth.js +0 -17
  127. package/dist/npm/MultiColumnComboBox/MultiColumnComboBox.d.ts +0 -287
  128. package/dist/npm/MultiColumnComboBox/MultiColumnComboBox.js +0 -216
  129. package/dist/npm/MultiSelect/MultiSelect.js +0 -1113
  130. package/dist/npm/MultiSelect/MultiSelectProps.d.ts +0 -314
  131. package/dist/npm/MultiSelect/MultiSelectProps.js +0 -3
  132. package/dist/npm/MultiSelect/TagList.js +0 -41
  133. package/dist/npm/MultiSelectTree/MultiSelectTree.d.ts +0 -81
  134. package/dist/npm/MultiSelectTree/MultiSelectTree.js +0 -622
  135. package/dist/npm/MultiSelectTree/MultiSelectTreeProps.d.ts +0 -320
  136. package/dist/npm/MultiSelectTree/MultiSelectTreeProps.js +0 -3
  137. package/dist/npm/MultiSelectTree/utils.js +0 -196
  138. package/dist/npm/common/AdaptiveMode.js +0 -49
  139. package/dist/npm/common/ClearButton.d.ts +0 -14
  140. package/dist/npm/common/ClearButton.js +0 -41
  141. package/dist/npm/common/DropDownBase.js +0 -299
  142. package/dist/npm/common/GroupStickyHeader.d.ts +0 -24
  143. package/dist/npm/common/GroupStickyHeader.js +0 -36
  144. package/dist/npm/common/List.d.ts +0 -45
  145. package/dist/npm/common/List.js +0 -77
  146. package/dist/npm/common/ListContainer.d.ts +0 -18
  147. package/dist/npm/common/ListContainer.js +0 -45
  148. package/dist/npm/common/ListDefaultItem.d.ts +0 -16
  149. package/dist/npm/common/ListDefaultItem.js +0 -38
  150. package/dist/npm/common/ListFilter.js +0 -39
  151. package/dist/npm/common/ListGroupItem.js +0 -35
  152. package/dist/npm/common/ListItem.js +0 -46
  153. package/dist/npm/common/MultiColumnList.d.ts +0 -6
  154. package/dist/npm/common/MultiColumnList.js +0 -26
  155. package/dist/npm/common/Navigation.d.ts +0 -13
  156. package/dist/npm/common/Navigation.js +0 -37
  157. package/dist/npm/common/SearchBar.d.ts +0 -43
  158. package/dist/npm/common/SearchBar.js +0 -64
  159. package/dist/npm/common/VirtualScroll.js +0 -163
  160. package/dist/npm/common/constants.d.ts +0 -4
  161. package/dist/npm/common/constants.js +0 -7
  162. package/dist/npm/common/events.d.ts +0 -73
  163. package/dist/npm/common/events.js +0 -2
  164. package/dist/npm/common/filterDescriptor.js +0 -3
  165. package/dist/npm/common/settings.d.ts +0 -114
  166. package/dist/npm/common/settings.js +0 -11
  167. package/dist/npm/common/utils.js +0 -211
  168. package/dist/npm/main.d.ts +0 -25
  169. package/dist/npm/main.js +0 -62
  170. package/dist/npm/messages/index.js +0 -44
  171. package/dist/npm/package-metadata.d.ts +0 -5
  172. package/dist/npm/package-metadata.js +0 -14
  173. package/dist/systemjs/kendo-react-dropdowns.js +0 -1
  174. package/e2e-next/combobox.basic.ts +0 -24
  175. package/e2e-next/dropdownlist.basic.tests.ts +0 -24
  176. package/e2e-next/dropdowntree.basic.tests.ts +0 -24
  177. package/e2e-next/multicolumncombobox.basic.tests.ts +0 -24
@@ -1,326 +0,0 @@
1
- /// <reference types="react" />
2
- import { DropDownList } from './DropDownList';
3
- import { FilterChangeEvent, ChangeEvent, OpenEvent, CloseEvent, FocusEvent, BlurEvent, PageChangeEvent } from './../common/events';
4
- import { VirtualizationSettings, DropDownsPopupSettings } from '../common/settings';
5
- import { ListGroupItemProps } from '../common/ListGroupItem';
6
- import { GroupStickyHeaderProps } from '../common/GroupStickyHeader';
7
- import { ListItemProps } from '../common/ListItem';
8
- import { FormComponentProps, SVGIcon } from '@progress/kendo-react-common';
9
- /**
10
- * Represents the object of the `filterChange` DropDownList event.
11
- */
12
- export interface DropDownListFilterChangeEvent extends FilterChangeEvent<DropDownList> {
13
- }
14
- /**
15
- * Represents the object of the `change` DropDownList event.
16
- */
17
- export interface DropDownListChangeEvent extends ChangeEvent<DropDownList> {
18
- }
19
- /**
20
- * Represents the object of the `open` DropDownList event.
21
- */
22
- export interface DropDownListOpenEvent extends OpenEvent<DropDownList> {
23
- }
24
- /**
25
- * Represents the object of the `close` DropDownList event.
26
- */
27
- export interface DropDownListCloseEvent extends CloseEvent<DropDownList> {
28
- }
29
- /**
30
- * Represents the object of the `focus` DropDownList event.
31
- */
32
- export interface DropDownListFocusEvent extends FocusEvent<DropDownList> {
33
- }
34
- /**
35
- * Represents the object of the `blur` DropDownList event.
36
- */
37
- export interface DropDownListBlurEvent extends BlurEvent<DropDownList> {
38
- }
39
- /**
40
- * Represents the object of the `pageChange` DropDownList event.
41
- */
42
- export interface DropDownListPageChangeEvent extends PageChangeEvent<DropDownList> {
43
- }
44
- /**
45
- * Represents the props of the [KendoReact DropDownList component]({% slug overview_dropdownlist %}).
46
- */
47
- export interface DropDownListProps extends FormComponentProps {
48
- /**
49
- * Sets the data of the DropDownList ([see example]({% slug binding_dropdownlist %})).
50
- */
51
- data?: any[];
52
- /**
53
- * Sets the text of the default empty item. The type of the defined value has to match the data type.
54
- */
55
- defaultItem?: any;
56
- /**
57
- * Sets the delay before an item search is performed. When filtration is disabled, use this option.
58
- */
59
- delay?: number;
60
- /**
61
- * Enables a case-insensitive search. When filtering is disabled, use this option.
62
- */
63
- ignoreCase?: boolean;
64
- /**
65
- * Sets the opened and closed state of the DropDownList.
66
- */
67
- opened?: boolean;
68
- /**
69
- * The styles that are applied to the DropDownList.
70
- */
71
- style?: React.CSSProperties;
72
- /**
73
- * Sets the value of the DropDownList ([see example]({% slug binding_dropdownlist %})). It can either be of the primitive (string, numbers) or of the complex (objects) type.
74
- */
75
- value?: any;
76
- /**
77
- * Sets the default value of the DropDownList ([see example]({% slug defaultitem_dropdownlist %})). Similar to the native `select` HTML element.
78
- */
79
- defaultValue?: any;
80
- /**
81
- * Sets additional classes to the DropDownList.
82
- */
83
- className?: string;
84
- /**
85
- * Sets CSS classes to the expand `icon` DOM element.
86
- */
87
- iconClassName?: string;
88
- /**
89
- * Sets the specified SVG icon.
90
- */
91
- svgIcon?: SVGIcon;
92
- /**
93
- * Sets the title attribute to the DropDownList DOM element.
94
- */
95
- title?: string;
96
- /**
97
- * Sets the disabled state of the DropDownList.
98
- */
99
- disabled?: boolean;
100
- /**
101
- * Represents the `dir` HTML attribute.
102
- */
103
- dir?: string;
104
- /**
105
- * Enables the filtering functionality of the DropDownList ([more information and examples]({% slug filtering_dropdownlist %})).
106
- */
107
- filterable?: boolean;
108
- /**
109
- * Sets the value of filtering input. Useful for making the filtering input a [controlled component](https://reactjs.org/docs/forms.html#controlled-components).
110
- */
111
- filter?: string;
112
- /**
113
- * Sets the loading state of the DropDownList.
114
- */
115
- loading?: boolean;
116
- /**
117
- * Specifies the `tabIndex` of the DropDownList.
118
- */
119
- tabIndex?: number;
120
- /**
121
- * Specifies the `accessKey` of the DropDownList.
122
- */
123
- accessKey?: string;
124
- /**
125
- * Sets the data item field that represents the item text ([see example]({% slug defaultitem_dropdownlist %})). If the data contains only primitive values, do not define it.
126
- */
127
- textField?: string;
128
- /**
129
- * Sets the key for comparing the data items of the DropDownList. If `dataItemKey` is not set, the DropDownList compares the items by reference ([see example]({% slug binding_dropdownlist %}#toc-datasets-of-objects)).
130
- */
131
- dataItemKey?: string;
132
- /**
133
- * 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.
134
- *
135
- * @example
136
- * ```jsx-no-run
137
- * class App extends React.Component {
138
- * render() {
139
- * return (
140
- * <form>
141
- * <DropDownList
142
- * data={[ { text: "Austria", id: 1 } , { text: "Belarus", id: 2 } ]}
143
- * valueMap={value => value && value.id}
144
- * />
145
- * <button type="submit">Submit</button>
146
- * </form>
147
- * );
148
- * }
149
- * }
150
- * ReactDOM.render(<App />, document.querySelector('my-app'));
151
- * ```
152
- */
153
- valueMap?: (value: any) => any;
154
- /**
155
- * Renders a floating label for the DropDownList.
156
- */
157
- label?: string;
158
- /**
159
- * Specifies the id of the component.
160
- */
161
- id?: string;
162
- /**
163
- * 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).
164
- * For example these elements could contain error or hint message.
165
- */
166
- ariaDescribedBy?: string;
167
- /**
168
- * Identifies the element(s) which will label the component.
169
- */
170
- ariaLabelledBy?: string;
171
- /**
172
- * The accessible label of the component. By default is set to value of `label` prop.
173
- */
174
- ariaLabel?: string;
175
- /**
176
- * Configures the popup of the DropDownList.
177
- */
178
- popupSettings?: DropDownsPopupSettings;
179
- /**
180
- * Configures the virtual scrolling of the DropDownList ([see example]({% slug virtualization_dropdownlist %})).
181
- */
182
- virtual?: VirtualizationSettings;
183
- /**
184
- * If set, the DropDownList will use it to get the focused item index.
185
- *
186
- * Default functionality returns the first item which starts with the input text.
187
- *
188
- * @example
189
- * ```jsx-no-run
190
- * const focusedItemIndex = (data, inputText, textField) => {
191
- * let text = inputText.toLowerCase();
192
- * return data.findIndex(item =>
193
- * String(textField ? item[textField] : item).toLowerCase().includes(text));
194
- * };
195
- *
196
- * <DropDownList focusedItemIndex={focusedItemIndex} />
197
- * ```
198
- */
199
- focusedItemIndex?: (data: any, inputText: string, textField?: string) => number;
200
- /**
201
- * Fires each time the popup of the DropDownList is about to open.
202
- */
203
- onOpen?: (event: DropDownListOpenEvent) => void;
204
- /**
205
- * Fires each time the popup of the DropDownList is about to close.
206
- */
207
- onClose?: (event: DropDownListCloseEvent) => void;
208
- /**
209
- * Fires each time the user focuses the DropDownList.
210
- */
211
- onFocus?: (event: DropDownListFocusEvent) => void;
212
- /**
213
- * Fires each time the DropDownList gets blurred.
214
- */
215
- onBlur?: (event: DropDownListBlurEvent) => void;
216
- /**
217
- * Fires each time the value of the DropDownList is about to change ([see examples]({% slug binding_dropdownlist %})).
218
- */
219
- onChange?: (event: DropDownListChangeEvent) => void;
220
- /**
221
- * Fires each time the user types in the filter input. You can filter the source based on the passed filtration value.
222
- */
223
- onFilterChange?: (event: DropDownListFilterChangeEvent) => void;
224
- /**
225
- * Fires when both the virtual scrolling of the DropDownList is enabled and the component requires data for another page ([see example]({% slug virtualization_dropdownlist %})).
226
- */
227
- onPageChange?: (event: DropDownListPageChangeEvent) => void;
228
- /**
229
- * Fires when a DropDownList item is about to be rendered ([see example]({% slug customrendering_dropdownlist %}#toc-items)). Used to override the default appearance of the list items.
230
- */
231
- itemRender?: (li: React.ReactElement<HTMLLIElement>, itemProps: ListItemProps) => React.ReactNode;
232
- /**
233
- * Fires when the element which renders the value is about to be rendered ([see example]({% slug customrendering_dropdownlist %}#toc-values)). Used to override the default appearance of the element.
234
- */
235
- valueRender?: (element: React.ReactElement<HTMLSpanElement>, value: any) => React.ReactNode;
236
- /**
237
- * Fires when the element which indicates no data in the popup is about to be rendered ([see example]({% slug customrendering_dropdownlist %}#toc-no-data)). Used to override the default appearance of the element.
238
- */
239
- listNoDataRender?: (element: React.ReactElement<HTMLDivElement>) => React.ReactNode;
240
- /**
241
- * Sets the header component of the DropDownList ([see example]({% slug customrendering_dropdownlist %}#toc-headers-and-footers)).
242
- */
243
- header?: React.ReactNode;
244
- /**
245
- * Sets the footer component of the DropDownList ([see example]({% slug customrendering_dropdownlist %}#toc-headers-and-footers)).
246
- */
247
- footer?: React.ReactNode;
248
- /**
249
- * Specifies the `name` property of the `select` DOM element.
250
- */
251
- name?: string;
252
- /**
253
- * If set to `false`, the DropDownList will not navigate over its data through left and right keys.
254
- * Useful when the DropDownList is placed inside a toolbar which needs to handle left and right keys.
255
- */
256
- leftRightKeysNavigation?: boolean;
257
- /**
258
- * Configures the `size` of the DropDownList.
259
- *
260
- * The available options are:
261
- * - small
262
- * - medium
263
- * - large
264
- * - null&mdash;Does not set a size `className`.
265
- *
266
- * @default `medium`
267
- */
268
- size?: null | 'small' | 'medium' | 'large';
269
- /**
270
- * Configures the `roundness` of the DropDownList.
271
- *
272
- * The available options are:
273
- * - small
274
- * - medium
275
- * - large
276
- * - full
277
- * - null&mdash;Does not set a rounded `className`.
278
- *
279
- * @default `medium`
280
- */
281
- rounded?: null | 'small' | 'medium' | 'large' | 'full';
282
- /**
283
- * Configures the `fillMode` of the DropDownList.
284
- *
285
- * The available options are:
286
- * - solid
287
- * - flat
288
- * - outline
289
- * - null&mdash;Does not set a fillMode `className`.
290
- *
291
- * @default `solid`
292
- */
293
- fillMode?: null | 'solid' | 'flat' | 'outline';
294
- /**
295
- * Providing different rendering of the popup element based on the screen dimensions.
296
- */
297
- adaptive?: boolean;
298
- /**
299
- * Specifies the text that is rendered as title in the adaptive popup.
300
- */
301
- adaptiveTitle?: string;
302
- /**
303
- * Sets the data item field that represents the start of a group. Applicable to objects data.
304
- */
305
- groupField?: string;
306
- /**
307
- * Fires when a DropDownList's group header item is about to be rendered. Used to override the default appearance of the group's headers.
308
- */
309
- groupHeaderItemRender?: (li: React.ReactElement<HTMLLIElement>, itemProps: ListGroupItemProps) => React.ReactNode;
310
- /**
311
- * Fires when a DropDownList's sticky group header item is about to be rendered. Used to override the default appearance of the sticky group header of the component.
312
- */
313
- groupStickyHeaderItemRender?: (div: React.ReactElement<HTMLDivElement>, stickyHeaderProps: GroupStickyHeaderProps) => React.ReactNode;
314
- /**
315
- * @hidden
316
- */
317
- list?: any;
318
- /**
319
- * @hidden
320
- */
321
- groupMode?: string;
322
- /**
323
- * Defines if DropDownList's disabled items will be skipped or focused when navigating through the list of items using a keyboard. Defaults to `true`.
324
- */
325
- skipDisabledItems?: boolean;
326
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- // tslint:enable:max-line-length
@@ -1,70 +0,0 @@
1
- import * as React from 'react';
2
- import { DropDownTreeProps, DropDownTreeHandle } from './DropDownTreeProps';
3
- /**
4
- * Represents the PropsContext of the `DropDownTree` component.
5
- * Used for global configuration of all `DropDownTree` instances.
6
- *
7
- * For more information, refer to the [Dropdowns Props Context]({% slug props-context_dropdowns %}) article.
8
- */
9
- export declare const DropDownTreePropsContext: React.Context<(p: DropDownTreeProps) => DropDownTreeProps>;
10
- /**
11
- * Represents the DropDownTree component.
12
- *
13
- * Accepts properties of type [DropDownTreeProps]({% slug api_dropdowns_dropdowntreeprops %}).
14
- * Obtaining the `ref` returns an object of type [DropDownTreeHandle]({% slug api_dropdowns_dropdowntreehandle %}).
15
- *
16
- * @example
17
- * ```jsx
18
- * const selectField = "selected";
19
- * const expandField = "expanded";
20
- * const dataItemKey = "id";
21
- * const textField = "text";
22
- * const subItemsField = "items";
23
- * const fields = {
24
- * selectField,
25
- * expandField,
26
- * dataItemKey,
27
- * subItemsField,
28
- * };
29
- * const App = () => {
30
- * const [value, setValue] = React.useState(null);
31
- * const [expanded, setExpanded] = React.useState([data[0][dataItemKey]]);
32
- * const onChange = (event) => setValue(event.value);
33
- * const onExpandChange = React.useCallback(
34
- * (event) => setExpanded(expandedState(event.item, dataItemKey, expanded)),
35
- * [expanded]
36
- * );
37
- * const treeData = React.useMemo(
38
- * () =>
39
- * processTreeData(
40
- * data,
41
- * {
42
- * expanded,
43
- * value,
44
- * },
45
- * fields
46
- * ),
47
- * [expanded, value]
48
- * );
49
- *
50
- * return (
51
- * <DropDownTree
52
- * style={{
53
- * width: '300px',
54
- * }}
55
- * placeholder="Please select ..."
56
- * data={treeData}
57
- * value={value}
58
- * onChange={onChange}
59
- * textField={textField}
60
- * dataItemKey={dataItemKey}
61
- * selectField={selectField}
62
- * expandField={expandField}
63
- * onExpandChange={onExpandChange}
64
- * />
65
- * );
66
- * };
67
- * ReactDOM.render(<App />, document.querySelector('my-app'));
68
- * ```
69
- */
70
- export declare const DropDownTree: React.ForwardRefExoticComponent<DropDownTreeProps & React.RefAttributes<DropDownTreeHandle | null>>;