@progress/kendo-react-dropdowns 6.1.1 → 7.0.0-develop.10

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 +8 -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 +4397 -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,314 +0,0 @@
1
- /// <reference types="react" />
2
- import { MultiSelect } from './MultiSelect';
3
- import { FormComponentProps } from '@progress/kendo-react-common';
4
- import { FilterChangeEvent, ChangeEvent, OpenEvent, CloseEvent, FocusEvent, BlurEvent, PageChangeEvent, CancelEvent } from './../common/events';
5
- import { VirtualizationSettings, DropDownsPopupSettings } from '../common/settings';
6
- import { ListGroupItemProps } from '../common/ListGroupItem';
7
- import { GroupStickyHeaderProps } from '../common/GroupStickyHeader';
8
- import { ListItemProps } from '../common/ListItem';
9
- import { TagData } from './TagList';
10
- /**
11
- * Represents the object of the `filterChange` MultiSelect event.
12
- */
13
- export interface MultiSelectFilterChangeEvent extends FilterChangeEvent<MultiSelect> {
14
- }
15
- /**
16
- * Represents the object of the `change` MultiSelect event.
17
- */
18
- export interface MultiSelectChangeEvent extends ChangeEvent<MultiSelect> {
19
- }
20
- /**
21
- * Represents the object of the `onCancel` MultiSelect event.
22
- */
23
- export interface MultiSelectCancelEvent extends CancelEvent<MultiSelect> {
24
- }
25
- /**
26
- * Represents the object of the `open` MultiSelect event.
27
- */
28
- export interface MultiSelectOpenEvent extends OpenEvent<MultiSelect> {
29
- }
30
- /**
31
- * Represents the object of the `close` MultiSelect event.
32
- */
33
- export interface MultiSelectCloseEvent extends CloseEvent<MultiSelect> {
34
- }
35
- /**
36
- * Represents the object of the `focus` MultiSelect event.
37
- */
38
- export interface MultiSelectFocusEvent extends FocusEvent<MultiSelect> {
39
- }
40
- /**
41
- * Represents the object of the `blur` MultiSelect event.
42
- */
43
- export interface MultiSelectBlurEvent extends BlurEvent<MultiSelect> {
44
- }
45
- /**
46
- * Represents the object of the `pageChange` MultiSelect event.
47
- */
48
- export interface MultiSelectPageChangeEvent extends PageChangeEvent<MultiSelect> {
49
- }
50
- /**
51
- * Represents the props of the [KendoReact MultiSelect component]({% slug overview_multiselect %}).
52
- */
53
- export interface MultiSelectProps extends FormComponentProps {
54
- /**
55
- * Specifies whether the MultiSelect allows user-defined values that are not present in the dataset ([see example]({% slug custom_values_multiselect %})). Defaults to `false`.
56
- */
57
- allowCustom?: boolean;
58
- /**
59
- * Sets the data of the MultiSelect ([see example]({% slug binding_multiselect %})).
60
- */
61
- data?: any[];
62
- /**
63
- * Sets the opened and closed state of the MultiSelect.
64
- */
65
- opened?: boolean;
66
- /**
67
- * Determines whether to close the options list of the MultiSelect after the item selection is finished.
68
- *
69
- * @example
70
- * ```jsx
71
- * class App extends React.Component {
72
- * render() {
73
- * return (
74
- * <MultiSelect
75
- * data={[ "Albania", "Andorra", "Austria", "Belarus" ]}
76
- * autoClose={false}
77
- * />
78
- * );
79
- * }
80
- * }
81
- * ReactDOM.render(<App />, document.querySelector('my-app'));
82
- * ```
83
- *
84
- * @default true
85
- */
86
- autoClose?: boolean;
87
- /**
88
- * The styles that are applied to the MultiSelect.
89
- */
90
- style?: React.CSSProperties;
91
- /**
92
- * Sets the value of the MultiSelect ([see example]({% slug binding_multiselect %})). It can either be of the primitive (string, numbers) or of the complex (objects) type.
93
- */
94
- value?: Array<any>;
95
- /**
96
- * The hint that is displayed when the MultiSelect is empty.
97
- */
98
- placeholder?: string;
99
- /**
100
- * Sets the tags of the MultiSelect ([see example]({% slug customtags_multiselect %})).
101
- */
102
- tags?: Array<TagData>;
103
- /**
104
- * Sets the key for comparing the data items of the MultiSelect ([see example]({% slug binding_multiselect %}#toc-datasets-of-objects)). If `dataItemKey` is not set, the MultiSelect compares the items by reference.
105
- */
106
- dataItemKey?: string;
107
- /**
108
- * Sets the default value of the MultiSelect. Similar to the native `select` HTML element.
109
- */
110
- defaultValue?: Array<any>;
111
- /**
112
- * Sets additional classes to the MultiSelect.
113
- */
114
- className?: string;
115
- /**
116
- * Sets the disabled state of the MultiSelect.
117
- */
118
- disabled?: boolean;
119
- /**
120
- * Represents the `dir` HTML attribute.
121
- */
122
- dir?: string;
123
- /**
124
- * Enables the filtering functionality of the MultiSelect ([more information and examples]({% slug filtering_multiselect %})).
125
- */
126
- filterable?: boolean;
127
- /**
128
- * Specifies the id of the component.
129
- */
130
- id?: string;
131
- /**
132
- * 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).
133
- * For example these elements could contain error or hint message.
134
- */
135
- ariaDescribedBy?: string;
136
- /**
137
- * Identifies the element(s) which will label the component.
138
- */
139
- ariaLabelledBy?: string;
140
- /**
141
- * If set, the MultiSelect will use it to get the focused item index.
142
- *
143
- * Default functionality returns the first item which starts with the input text.
144
- *
145
- * @example
146
- * ```jsx-no-run
147
- * const focusedItemIndex = (data, inputText, textField) => {
148
- * let text = inputText.toLowerCase();
149
- * return data.findIndex(item =>
150
- * String(textField ? item[textField] : item).toLowerCase().includes(text));
151
- * };
152
- *
153
- * <MultiSelect focusedItemIndex={focusedItemIndex} />
154
- * ```
155
- */
156
- focusedItemIndex?: (data: any, inputText: string, textField?: string) => number;
157
- /**
158
- * Sets the value of filtering input. Useful for making the filtering input a [controlled component](https://reactjs.org/docs/forms.html#controlled-components).
159
- */
160
- filter?: string;
161
- /**
162
- * Sets the value of the adaptive filtering input of the of MultiSelect.
163
- */
164
- adaptiveFilter?: string;
165
- /**
166
- * Sets the loading state of the MultiSelect ([see example]({% slug filtering_multiselect %}#toc-basic-configuration)).
167
- */
168
- loading?: boolean;
169
- /**
170
- * Specifies the `tabIndex` of the MultiSelect.
171
- */
172
- tabIndex?: number;
173
- /**
174
- * Specifies the `accessKey` of the MultiSelect.
175
- */
176
- accessKey?: string;
177
- /**
178
- * Sets the data item field that represents the item text ([see example]({% slug binding_multiselect %}#toc-datasets-of-objects)). If the data contains only primitive values, do not define it.
179
- */
180
- textField?: string;
181
- /**
182
- * Renders a floating label for the MultiSelect.
183
- */
184
- label?: string;
185
- /**
186
- * Configures the popup of the MultiSelect.
187
- */
188
- popupSettings?: DropDownsPopupSettings;
189
- /**
190
- * Configures the virtual scrolling of the MultiSelect ([see example]({% slug virtualization_multiselect %})).
191
- */
192
- virtual?: VirtualizationSettings;
193
- /**
194
- * Fires each time the popup of the MultiSelect is about to open.
195
- */
196
- onOpen?: (event: MultiSelectOpenEvent) => void;
197
- /**
198
- * Fires each time the popup of the MultiSelect is about to close.
199
- */
200
- onClose?: (event: MultiSelectCloseEvent) => void;
201
- /**
202
- * Fires each time the user focuses the MultiSelect.
203
- */
204
- onFocus?: (event: MultiSelectFocusEvent) => void;
205
- /**
206
- * Fires each time the MultiSelect gets blurred.
207
- */
208
- onBlur?: (event: MultiSelectBlurEvent) => void;
209
- /**
210
- * Fires each time the value of the MultiSelect is about to change ([see examples]({% slug binding_multiselect %})).
211
- */
212
- onChange?: (event: MultiSelectChangeEvent) => void;
213
- /**
214
- * Fires each time the popup of the MultiSelect is about to cancel in ([adaptive mode]({% slug adaptive_rendering_multiselect %})).
215
- */
216
- onCancel?: (event: MultiSelectCancelEvent) => void;
217
- /**
218
- * Fires each time the user types in the filter input ([see example]({% slug filtering_multiselect %}#toc-basic-configuration)). You can filter the source based on the passed filtration value.
219
- */
220
- onFilterChange?: (event: MultiSelectFilterChangeEvent) => void;
221
- /**
222
- * Fires when both the virtual scrolling of the MultiSelect is enabled and when the component requires data for another page ([see example]({% slug virtualization_multiselect %})).
223
- */
224
- onPageChange?: (event: MultiSelectPageChangeEvent) => void;
225
- /**
226
- * Fires when a MultiSelect item is about to be rendered ([see example]({% slug customrendering_multiselect %}#toc-items)). Used to override the default appearance of the list items.
227
- */
228
- itemRender?: (li: React.ReactElement<HTMLLIElement>, itemProps: ListItemProps) => React.ReactNode;
229
- /**
230
- * Fires when the element which indicates no data in the popup is about to be rendered ([see example]({% slug customrendering_multiselect %}#toc-no-data)). Used to override the default appearance of the element.
231
- */
232
- listNoDataRender?: (element: React.ReactElement<HTMLDivElement>) => React.ReactNode;
233
- /**
234
- * Fires when a tag element is about to be rendered ([see example]({% slug customrendering_multiselect %}#toc-tags)). Used to override the default appearance of the element.
235
- */
236
- tagRender?: (tagData: TagData, tag: React.ReactElement) => React.ReactElement;
237
- /**
238
- * Sets the header component of the MultiSelect ([see example]({% slug customrendering_multiselect %}#toc-headers-and-footers)).
239
- */
240
- header?: React.ReactNode;
241
- /**
242
- * Sets the footer component of the MultiSelect ([see example]({% slug customrendering_multiselect %}#toc-headers-and-footers)).
243
- */
244
- footer?: React.ReactNode;
245
- /**
246
- * Configures the `size` of the MultiSelect.
247
- *
248
- * The available options are:
249
- * - small
250
- * - medium
251
- * - large
252
- * - null&mdash;Does not set a size `className`.
253
- *
254
- * @default `medium`
255
- */
256
- size?: null | 'small' | 'medium' | 'large';
257
- /**
258
- * Configures the `roundness` of the MultiSelect.
259
- *
260
- * The available options are:
261
- * - small
262
- * - medium
263
- * - large
264
- * - full
265
- * - null&mdash;Does not set a rounded `className`.
266
- *
267
- * @default `medium`
268
- */
269
- rounded?: null | 'small' | 'medium' | 'large' | 'full';
270
- /**
271
- * Configures the `fillMode` of the MultiSelect.
272
- *
273
- * The available options are:
274
- * - solid
275
- * - flat
276
- * - outline
277
- * - null&mdash;Does not set a fillMode `className`.
278
- *
279
- * @default `solid`
280
- */
281
- fillMode?: null | 'solid' | 'flat' | 'outline';
282
- /**
283
- * Sets the data item field that represents the start of a group. Applicable to objects data.
284
- */
285
- groupField?: string;
286
- /**
287
- * Fires when a DropDownList's group header item is about to be rendered. Used to override the default appearance of the group's headers.
288
- */
289
- groupHeaderItemRender?: (li: React.ReactElement<HTMLLIElement>, itemProps: ListGroupItemProps) => React.ReactNode;
290
- /**
291
- * 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.
292
- */
293
- groupStickyHeaderItemRender?: (div: React.ReactElement<HTMLDivElement>, stickyHeaderProps: GroupStickyHeaderProps) => React.ReactNode;
294
- /**
295
- * @hidden
296
- */
297
- list?: any;
298
- /**
299
- * @hidden
300
- */
301
- groupMode?: string;
302
- /**
303
- * Providing different rendering of the popup element based on the screen dimensions.
304
- */
305
- adaptive?: boolean;
306
- /**
307
- * Specifies the text that is rendered as title in the adaptive popup.
308
- */
309
- adaptiveTitle?: string;
310
- /**
311
- * Defines if MultiSelect's disabled items will be skipped or focused when navigating through the list of items using a keyboard. Defaults to `true`.
312
- */
313
- skipDisabledItems?: boolean;
314
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- // tslint:enable:max-line-length
@@ -1,41 +0,0 @@
1
- "use strict";
2
- var __extends = (this && this.__extends) || (function () {
3
- var extendStatics = function (d, b) {
4
- extendStatics = Object.setPrototypeOf ||
5
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
- return extendStatics(d, b);
8
- };
9
- return function (d, b) {
10
- if (typeof b !== "function" && b !== null)
11
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
- extendStatics(d, b);
13
- function __() { this.constructor = d; }
14
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
- };
16
- })();
17
- Object.defineProperty(exports, "__esModule", { value: true });
18
- var React = require("react");
19
- var kendo_react_buttons_1 = require("@progress/kendo-react-buttons");
20
- var preventDefault = function (event) { return event.syntheticEvent.preventDefault(); };
21
- var stopPropagation = function (event) { return event.syntheticEvent.stopPropagation(); };
22
- /**
23
- * @hidden
24
- */
25
- var TagList = /** @class */ (function (_super) {
26
- __extends(TagList, _super);
27
- function TagList() {
28
- return _super !== null && _super.apply(this, arguments) || this;
29
- }
30
- TagList.prototype.render = function () {
31
- var _a = this.props, data = _a.data, guid = _a.guid, focused = _a.focused, tagRender = _a.tagRender, TagComponent = _a.tag, onTagDelete = _a.onTagDelete, size = _a.size;
32
- return (React.createElement(React.Fragment, null,
33
- data.map(function (tagData, index) {
34
- var tag = TagComponent ? (React.createElement(TagComponent, { key: tagData.text + index, tagData: tagData, guid: guid, focusedTag: focused, onTagDelete: onTagDelete })) : (React.createElement(kendo_react_buttons_1.Chip, { id: "tag-".concat(guid, "-").concat(tagData.text.replace(/\s+/g, '-')), "aria-selected": true, role: "option", "aria-setsize": data.length, key: tagData.text + index, text: tagData.text, removable: true, onRemove: function (e) { return onTagDelete.call(undefined, tagData.data, e.syntheticEvent); }, onMouseDown: preventDefault, onClick: stopPropagation, className: tagData === focused ? 'k-focus' : undefined, size: size }));
35
- return tagRender ? tagRender(tagData, tag) : tag;
36
- }),
37
- this.props.children));
38
- };
39
- return TagList;
40
- }(React.Component));
41
- exports.default = TagList;
@@ -1,81 +0,0 @@
1
- import * as React from 'react';
2
- import { MultiSelectTreeProps, MultiSelectTreeHandle } from './MultiSelectTreeProps';
3
- /**
4
- * Represents the PropsContext of the `MultiSelectTree` component.
5
- * Used for global configuration of all `MultiSelectTree` instances.
6
- *
7
- * For more information, refer to the [Dropdowns Props Context]({% slug props-context_dropdowns %}) article.
8
- */
9
- export declare const MultiSelectTreePropsContext: React.Context<(p: MultiSelectTreeProps) => MultiSelectTreeProps>;
10
- /**
11
- * Represents the MultiSelectTree component.
12
- *
13
- * Accepts properties of type [MultiSelectTreeProps]({% slug api_dropdowns_multiselecttreeprops %}).
14
- * Obtaining the `ref` returns an object of type [MultiSelectTreeHandle]({% slug api_dropdowns_multiselecttreehandle %}).
15
- *
16
- * @example
17
- * ```jsx
18
- * const dataItemKey = 'id';
19
- * const checkField = 'checkField';
20
- * const checkIndeterminateField = 'checkIndeterminateField';
21
- * const subItemsField = 'items';
22
- * const expandField = 'expanded';
23
- * const textField = 'text';
24
- * const fields = {
25
- * dataItemKey,
26
- * checkField,
27
- * checkIndeterminateField,
28
- * expandField,
29
- * subItemsField,
30
- * };
31
- * const App = () => {
32
- * const [value, setValue] = React.useState([]);
33
- * const [expanded, setExpanded] = React.useState([data[0][dataItemKey]]);
34
- * const onChange = (event) =>
35
- * setValue(
36
- * getMultiSelectTreeValue(data, {
37
- * ...fields,
38
- * ...event,
39
- * value,
40
- * })
41
- * );
42
- * const onExpandChange = React.useCallback(
43
- * (event) => setExpanded(expandedState(event.item, dataItemKey, expanded)),
44
- * [expanded]
45
- * );
46
- * const treeData = React.useMemo(
47
- * () =>
48
- * processMultiSelectTreeData(data, {
49
- * expanded,
50
- * value,
51
- * ...fields,
52
- * }),
53
- * [expanded, value]
54
- * );
55
- *
56
- * return (
57
- * <div>
58
- * <div>Categories:</div>
59
- * <MultiSelectTree
60
- * style={{
61
- * width: '300px',
62
- * }}
63
- * data={treeData}
64
- * value={value}
65
- * onChange={onChange}
66
- * placeholder="Please select ..."
67
- * textField={textField}
68
- * dataItemKey={dataItemKey}
69
- * checkField={checkField}
70
- * checkIndeterminateField={checkIndeterminateField}
71
- * expandField={expandField}
72
- * subItemsField={subItemsField}
73
- * onExpandChange={onExpandChange}
74
- * />
75
- * </div>
76
- * );
77
- * };
78
- * ReactDOM.render(<App />, document.querySelector('my-app'));
79
- * ```
80
- */
81
- export declare const MultiSelectTree: React.ForwardRefExoticComponent<MultiSelectTreeProps & React.RefAttributes<MultiSelectTreeHandle | null>>;