@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.
- package/AutoComplete/AutoComplete.js +8 -0
- package/AutoComplete/AutoComplete.mjs +458 -0
- package/ComboBox/ComboBox.js +8 -0
- package/ComboBox/ComboBox.mjs +618 -0
- package/DropDownList/DropDownList.js +8 -0
- package/DropDownList/DropDownList.mjs +630 -0
- package/DropDownTree/DropDownTree.js +8 -0
- package/DropDownTree/DropDownTree.mjs +550 -0
- package/DropDownTree/ListNoData.js +8 -0
- package/DropDownTree/ListNoData.mjs +13 -0
- package/DropDownTree/useDropdownWidth.js +8 -0
- package/DropDownTree/useDropdownWidth.mjs +25 -0
- package/MultiColumnComboBox/MultiColumnComboBox.js +8 -0
- package/MultiColumnComboBox/MultiColumnComboBox.mjs +186 -0
- package/MultiSelect/MultiSelect.js +8 -0
- package/MultiSelect/MultiSelect.mjs +694 -0
- package/MultiSelect/TagList.js +8 -0
- package/MultiSelect/TagList.mjs +48 -0
- package/MultiSelectTree/MultiSelectTree.js +8 -0
- package/MultiSelectTree/MultiSelectTree.mjs +590 -0
- package/MultiSelectTree/utils.js +8 -0
- package/MultiSelectTree/utils.mjs +74 -0
- package/common/AdaptiveMode.js +8 -0
- package/common/AdaptiveMode.mjs +73 -0
- package/common/ClearButton.js +8 -0
- package/common/ClearButton.mjs +38 -0
- package/common/DropDownBase.js +8 -0
- package/common/DropDownBase.mjs +194 -0
- package/common/GroupStickyHeader.js +8 -0
- package/common/GroupStickyHeader.mjs +22 -0
- package/common/List.js +8 -0
- package/common/List.mjs +117 -0
- package/common/ListContainer.js +8 -0
- package/common/ListContainer.mjs +33 -0
- package/common/ListDefaultItem.js +8 -0
- package/common/ListDefaultItem.mjs +36 -0
- package/common/ListFilter.js +8 -0
- package/common/ListFilter.mjs +49 -0
- package/common/ListGroupItem.js +8 -0
- package/common/ListGroupItem.mjs +32 -0
- package/common/ListItem.js +8 -0
- package/common/ListItem.mjs +49 -0
- package/common/MultiColumnList.js +8 -0
- package/common/MultiColumnList.mjs +28 -0
- package/common/Navigation.js +8 -0
- package/common/Navigation.mjs +29 -0
- package/common/SearchBar.js +8 -0
- package/common/SearchBar.mjs +65 -0
- package/common/VirtualScroll.js +8 -0
- package/common/VirtualScroll.mjs +75 -0
- package/common/constants.js +8 -0
- package/common/constants.mjs +13 -0
- package/common/settings.js +8 -0
- package/common/settings.mjs +12 -0
- package/common/utils.js +8 -0
- package/common/utils.mjs +109 -0
- package/common/withCustomComponent.js +8 -0
- package/common/withCustomComponent.mjs +13 -0
- package/dist/cdn/js/kendo-react-dropdowns.js +8 -5
- package/index.d.mts +4098 -5
- package/index.d.ts +4098 -31
- package/index.js +8 -5
- package/index.mjs +55 -4429
- package/messages/index.js +8 -0
- package/messages/index.mjs +27 -0
- package/package-metadata.js +8 -0
- package/package-metadata.mjs +19 -0
- package/package.json +9 -9
- package/AutoComplete/AutoComplete.d.ts +0 -236
- package/AutoComplete/AutoCompleteProps.d.ts +0 -254
- package/ComboBox/ComboBox.d.ts +0 -254
- package/ComboBox/ComboBoxProps.d.ts +0 -324
- package/DropDownList/DropDownList.d.ts +0 -264
- package/DropDownList/DropDownListProps.d.ts +0 -329
- package/DropDownTree/DropDownTree.d.ts +0 -74
- package/DropDownTree/DropDownTreeProps.d.ts +0 -297
- package/DropDownTree/ListNoData.d.ts +0 -10
- package/DropDownTree/useDropdownWidth.d.ts +0 -10
- package/MultiColumnComboBox/MultiColumnComboBox.d.ts +0 -300
- package/MultiSelect/MultiSelect.d.ts +0 -262
- package/MultiSelect/MultiSelectProps.d.ts +0 -325
- package/MultiSelect/TagList.d.ts +0 -42
- package/MultiSelectTree/MultiSelectTree.d.ts +0 -85
- package/MultiSelectTree/MultiSelectTreeProps.d.ts +0 -324
- package/MultiSelectTree/utils.d.ts +0 -21
- package/common/AdaptiveMode.d.ts +0 -25
- package/common/ClearButton.d.ts +0 -18
- package/common/DropDownBase.d.ts +0 -180
- package/common/GroupStickyHeader.d.ts +0 -28
- package/common/List.d.ts +0 -50
- package/common/ListContainer.d.ts +0 -22
- package/common/ListDefaultItem.d.ts +0 -20
- package/common/ListFilter.d.ts +0 -23
- package/common/ListGroupItem.d.ts +0 -37
- package/common/ListItem.d.ts +0 -65
- package/common/MultiColumnList.d.ts +0 -9
- package/common/Navigation.d.ts +0 -17
- package/common/SearchBar.d.ts +0 -47
- package/common/VirtualScroll.d.ts +0 -45
- package/common/constants.d.ts +0 -8
- package/common/events.d.ts +0 -76
- package/common/filterDescriptor.d.ts +0 -45
- package/common/settings.d.ts +0 -109
- package/common/utils.d.ts +0 -70
- package/common/withCustomComponent.d.ts +0 -11
- package/messages/index.d.ts +0 -44
- package/package-metadata.d.ts +0 -9
package/ComboBox/ComboBox.d.ts
DELETED
|
@@ -1,254 +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 PropTypes from 'prop-types';
|
|
7
|
-
import { ComboBoxProps } from './ComboBoxProps';
|
|
8
|
-
import { DropDownStateBase, InternalState } from './../common/settings';
|
|
9
|
-
import DropDownBase from '../common/DropDownBase';
|
|
10
|
-
import { FormComponent, FormComponentValidity } from '@progress/kendo-react-common';
|
|
11
|
-
/** @hidden */
|
|
12
|
-
export interface ComboBoxState extends DropDownStateBase {
|
|
13
|
-
filterText?: string;
|
|
14
|
-
suggestedText?: string;
|
|
15
|
-
focusedItem?: any;
|
|
16
|
-
windowWidth?: number;
|
|
17
|
-
}
|
|
18
|
-
/** @hidden */
|
|
19
|
-
export interface ComboInternalState extends InternalState {
|
|
20
|
-
data: ComboBoxState;
|
|
21
|
-
}
|
|
22
|
-
/** @hidden */
|
|
23
|
-
export declare class ComboBoxWithoutContext extends React.Component<ComboBoxProps, ComboBoxState> implements FormComponent {
|
|
24
|
-
static displayName: string;
|
|
25
|
-
/** @hidden */
|
|
26
|
-
static propTypes: {
|
|
27
|
-
size: PropTypes.Requireable<"small" | "medium" | "large" | null | undefined>;
|
|
28
|
-
rounded: PropTypes.Requireable<"small" | "medium" | "large" | "full" | null | undefined>;
|
|
29
|
-
fillMode: PropTypes.Requireable<"solid" | "flat" | "outline" | null | undefined>;
|
|
30
|
-
dataItemKey: PropTypes.Requireable<string>;
|
|
31
|
-
groupField: PropTypes.Requireable<string>;
|
|
32
|
-
groupMode: PropTypes.Requireable<string | undefined>;
|
|
33
|
-
isMultiColumn: PropTypes.Requireable<boolean>;
|
|
34
|
-
suggest: PropTypes.Requireable<boolean>;
|
|
35
|
-
placeholder: PropTypes.Requireable<string>;
|
|
36
|
-
title: PropTypes.Requireable<string>;
|
|
37
|
-
allowCustom: PropTypes.Requireable<boolean>;
|
|
38
|
-
clearButton: PropTypes.Requireable<boolean>;
|
|
39
|
-
iconClassName: PropTypes.Requireable<string>;
|
|
40
|
-
svgIcon: PropTypes.Requireable<PropTypes.InferProps<{
|
|
41
|
-
name: PropTypes.Validator<string>;
|
|
42
|
-
content: PropTypes.Validator<string>;
|
|
43
|
-
viewBox: PropTypes.Validator<string>;
|
|
44
|
-
}>>;
|
|
45
|
-
validationMessage: PropTypes.Requireable<string>;
|
|
46
|
-
required: PropTypes.Requireable<boolean>;
|
|
47
|
-
id: PropTypes.Requireable<string>;
|
|
48
|
-
ariaLabelledBy: PropTypes.Requireable<string>;
|
|
49
|
-
ariaDescribedBy: PropTypes.Requireable<string>;
|
|
50
|
-
list: PropTypes.Requireable<any>;
|
|
51
|
-
valueRender: PropTypes.Requireable<(...args: any[]) => any>;
|
|
52
|
-
skipDisabledItems: PropTypes.Requireable<boolean>;
|
|
53
|
-
value: PropTypes.Requireable<any>;
|
|
54
|
-
defaultValue: PropTypes.Requireable<any>;
|
|
55
|
-
filterable: PropTypes.Requireable<boolean>;
|
|
56
|
-
filter: PropTypes.Requireable<string>;
|
|
57
|
-
virtual: PropTypes.Requireable<PropTypes.InferProps<{
|
|
58
|
-
pageSize: PropTypes.Validator<number>;
|
|
59
|
-
skip: PropTypes.Validator<number>;
|
|
60
|
-
total: PropTypes.Validator<number>;
|
|
61
|
-
}>>;
|
|
62
|
-
onFilterChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
63
|
-
onPageChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
64
|
-
opened: PropTypes.Requireable<boolean>;
|
|
65
|
-
disabled: PropTypes.Requireable<boolean>;
|
|
66
|
-
dir: PropTypes.Requireable<string>;
|
|
67
|
-
tabIndex: PropTypes.Requireable<number>;
|
|
68
|
-
accessKey: PropTypes.Requireable<string>;
|
|
69
|
-
data: PropTypes.Requireable<any[]>;
|
|
70
|
-
textField: PropTypes.Requireable<string>;
|
|
71
|
-
className: PropTypes.Requireable<string>;
|
|
72
|
-
label: PropTypes.Requireable<string>;
|
|
73
|
-
loading: PropTypes.Requireable<boolean>;
|
|
74
|
-
popupSettings: PropTypes.Requireable<PropTypes.InferProps<{
|
|
75
|
-
animate: PropTypes.Requireable<NonNullable<boolean | PropTypes.InferProps<{
|
|
76
|
-
openDuration: PropTypes.Requireable<number>;
|
|
77
|
-
closeDuration: PropTypes.Requireable<number>;
|
|
78
|
-
}> | null | undefined>>;
|
|
79
|
-
popupClass: PropTypes.Requireable<string>;
|
|
80
|
-
className: PropTypes.Requireable<string>;
|
|
81
|
-
appendTo: PropTypes.Requireable<any>;
|
|
82
|
-
width: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
|
|
83
|
-
height: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
|
|
84
|
-
}>>;
|
|
85
|
-
onOpen: PropTypes.Requireable<(...args: any[]) => any>;
|
|
86
|
-
onClose: PropTypes.Requireable<(...args: any[]) => any>;
|
|
87
|
-
onFocus: PropTypes.Requireable<(...args: any[]) => any>;
|
|
88
|
-
onBlur: PropTypes.Requireable<(...args: any[]) => any>;
|
|
89
|
-
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
90
|
-
itemRender: PropTypes.Requireable<(...args: any[]) => any>;
|
|
91
|
-
listNoDataRender: PropTypes.Requireable<(...args: any[]) => any>;
|
|
92
|
-
focusedItemIndex: PropTypes.Requireable<(...args: any[]) => any>;
|
|
93
|
-
header: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
94
|
-
footer: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
95
|
-
};
|
|
96
|
-
/** @hidden */
|
|
97
|
-
static defaultProps: {
|
|
98
|
-
size: "small" | "medium" | "large" | null | undefined;
|
|
99
|
-
rounded: "small" | "medium" | "large" | "full" | null | undefined;
|
|
100
|
-
fillMode: "solid" | "flat" | "outline" | null | undefined;
|
|
101
|
-
allowCustom: boolean;
|
|
102
|
-
clearButton: boolean;
|
|
103
|
-
required: boolean;
|
|
104
|
-
groupMode: string | undefined;
|
|
105
|
-
isMultiColumn: boolean;
|
|
106
|
-
skipDisabledItems: boolean;
|
|
107
|
-
prefix: undefined;
|
|
108
|
-
suffix: undefined;
|
|
109
|
-
popupSettings: {
|
|
110
|
-
height: string;
|
|
111
|
-
};
|
|
112
|
-
validityStyles: boolean;
|
|
113
|
-
};
|
|
114
|
-
/** @hidden */
|
|
115
|
-
readonly state: ComboBoxState;
|
|
116
|
-
protected readonly base: DropDownBase;
|
|
117
|
-
private _element;
|
|
118
|
-
private get _inputId();
|
|
119
|
-
private _valueDuringOnChange;
|
|
120
|
-
private _valueOnDidUpdate;
|
|
121
|
-
private _suggested;
|
|
122
|
-
private _skipBlur;
|
|
123
|
-
private _input;
|
|
124
|
-
private _adaptiveFilterInput;
|
|
125
|
-
private itemHeight;
|
|
126
|
-
private observerResize?;
|
|
127
|
-
private get document();
|
|
128
|
-
constructor(props: ComboBoxProps);
|
|
129
|
-
/** @hidden */
|
|
130
|
-
focus: () => void;
|
|
131
|
-
/** @hidden */
|
|
132
|
-
get element(): HTMLSpanElement | null;
|
|
133
|
-
/**
|
|
134
|
-
* The mobile mode of the ComboBox.
|
|
135
|
-
*/
|
|
136
|
-
get mobileMode(): boolean;
|
|
137
|
-
/**
|
|
138
|
-
* The value of the ComboBox.
|
|
139
|
-
*/
|
|
140
|
-
get value(): any;
|
|
141
|
-
/**
|
|
142
|
-
* The index of the selected item.
|
|
143
|
-
*/
|
|
144
|
-
get index(): number;
|
|
145
|
-
/**
|
|
146
|
-
* Gets the `name` property of the ComboBox.
|
|
147
|
-
*/
|
|
148
|
-
get name(): string | undefined;
|
|
149
|
-
/**
|
|
150
|
-
* Represents the validity state into which the component is set.
|
|
151
|
-
*/
|
|
152
|
-
get validity(): FormComponentValidity;
|
|
153
|
-
protected get validityStyles(): boolean;
|
|
154
|
-
/** @hidden */
|
|
155
|
-
protected get required(): boolean;
|
|
156
|
-
/** @hidden */
|
|
157
|
-
componentDidUpdate(prevProps: ComboBoxProps, prevState: ComboBoxState): void;
|
|
158
|
-
/** @hidden */
|
|
159
|
-
componentDidMount(): void;
|
|
160
|
-
/** @hidden */
|
|
161
|
-
componentWillUnmount(): void;
|
|
162
|
-
/** @hidden */
|
|
163
|
-
render(): import("react/jsx-runtime").JSX.Element;
|
|
164
|
-
/** @hidden */
|
|
165
|
-
handleItemSelect: (index: number, state: ComboInternalState) => void;
|
|
166
|
-
/** @hidden */
|
|
167
|
-
onNavigate(state: InternalState, keyCode: number, skipItems?: number): void;
|
|
168
|
-
private onPopupOpened;
|
|
169
|
-
private componentRef;
|
|
170
|
-
private getCurrentValueDisabledStatus;
|
|
171
|
-
private toggleBtnClick;
|
|
172
|
-
private applyValueOnEnter;
|
|
173
|
-
private applyValueOnRejectSuggestions;
|
|
174
|
-
private selectFocusedItem;
|
|
175
|
-
private renderAdaptiveListContainer;
|
|
176
|
-
private renderMobileListFilter;
|
|
177
|
-
private renderListContainer;
|
|
178
|
-
private renderList;
|
|
179
|
-
private handleMobileFilterChange;
|
|
180
|
-
private renderSearchBar;
|
|
181
|
-
private onScroll;
|
|
182
|
-
private handleItemClick;
|
|
183
|
-
private handleBlur;
|
|
184
|
-
private onInputClick;
|
|
185
|
-
private onInputKeyDown;
|
|
186
|
-
private inputOnChange;
|
|
187
|
-
private clearValue;
|
|
188
|
-
private clearButtonClick;
|
|
189
|
-
private clearValueOnEnterOrEsc;
|
|
190
|
-
private clearValueOnBlur;
|
|
191
|
-
private clearValueOnToggleBtnClick;
|
|
192
|
-
private triggerOnChange;
|
|
193
|
-
private getFocusedIndex;
|
|
194
|
-
private suggestValue;
|
|
195
|
-
private applyState;
|
|
196
|
-
private setValidity;
|
|
197
|
-
private calculateMedia;
|
|
198
|
-
}
|
|
199
|
-
/**
|
|
200
|
-
* Represents the PropsContext of the `ComboBox` component.
|
|
201
|
-
* Used for global configuration of all `ComboBox` instances.
|
|
202
|
-
*
|
|
203
|
-
* For more information, refer to the [Dropdowns Props Context]({% slug props-context_dropdowns %}) article.
|
|
204
|
-
*/
|
|
205
|
-
export declare const ComboBoxPropsContext: React.Context<(p: ComboBoxProps) => ComboBoxProps>;
|
|
206
|
-
/**
|
|
207
|
-
* Represent the `ref` of the ComboBox component.
|
|
208
|
-
*/
|
|
209
|
-
export interface ComboBoxHandle extends Pick<ComboBoxWithoutContext, keyof ComboBoxWithoutContext> {
|
|
210
|
-
/**
|
|
211
|
-
* The index of the selected item.
|
|
212
|
-
*/
|
|
213
|
-
index: number;
|
|
214
|
-
/**
|
|
215
|
-
* Gets the `name` property of the ComboBox.
|
|
216
|
-
*/
|
|
217
|
-
name: string | undefined;
|
|
218
|
-
/**
|
|
219
|
-
* Represents the validity state into which the component is set.
|
|
220
|
-
*/
|
|
221
|
-
validity: FormComponentValidity;
|
|
222
|
-
/**
|
|
223
|
-
* The value of the ComboBox.
|
|
224
|
-
*/
|
|
225
|
-
value: any;
|
|
226
|
-
}
|
|
227
|
-
/** @hidden */
|
|
228
|
-
export type ComboBox = ComboBoxHandle;
|
|
229
|
-
/**
|
|
230
|
-
* Represents the [KendoReact ComboBox component]({% slug overview_combobox %}).
|
|
231
|
-
*
|
|
232
|
-
* Accepts properties of type [ComboBoxProps]({% slug api_dropdowns_comboboxprops %}).
|
|
233
|
-
* Obtaining the `ref` returns an object of type [ComboBoxHandle]({% slug api_dropdowns_comboboxhandle %}).
|
|
234
|
-
*
|
|
235
|
-
* @example
|
|
236
|
-
* ```jsx
|
|
237
|
-
* class App extends React.Component {
|
|
238
|
-
* combobox = null;
|
|
239
|
-
* render() {
|
|
240
|
-
* return (
|
|
241
|
-
* <div>
|
|
242
|
-
* <ComboBox
|
|
243
|
-
* data={[ "Albania", "Andorra", "Austria", "Belarus" ]}
|
|
244
|
-
* ref={component => this.combobox = component}
|
|
245
|
-
* />
|
|
246
|
-
* <button onClick={() => alert(this.combobox.value)}>alert value</button>
|
|
247
|
-
* </div>
|
|
248
|
-
* );
|
|
249
|
-
* }
|
|
250
|
-
* }
|
|
251
|
-
* ReactDOM.render(<App />, document.querySelector('my-app'));
|
|
252
|
-
* ```
|
|
253
|
-
*/
|
|
254
|
-
export declare const ComboBox: React.ForwardRefExoticComponent<ComboBoxProps & React.RefAttributes<any>>;
|
|
@@ -1,324 +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 { ComboBox } from './ComboBox';
|
|
6
|
-
import { FilterChangeEvent, ChangeEvent, OpenEvent, CloseEvent, FocusEvent, BlurEvent, PageChangeEvent } from './../common/events';
|
|
7
|
-
import { CustomComponent, FormComponentProps, SVGIcon } from '@progress/kendo-react-common';
|
|
8
|
-
import { VirtualizationSettings, DropDownsPopupSettings } from '../common/settings';
|
|
9
|
-
import { ListItemProps } from '../common/ListItem';
|
|
10
|
-
import { ListGroupItemProps } from '../common/ListGroupItem';
|
|
11
|
-
import { GroupStickyHeaderProps } from '../common/GroupStickyHeader';
|
|
12
|
-
/**
|
|
13
|
-
* Represents the object of the `FilterChange` ComboBox event.
|
|
14
|
-
*/
|
|
15
|
-
export interface ComboBoxFilterChangeEvent extends FilterChangeEvent<ComboBox> {
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* Represents the object of the `change` ComboBox event.
|
|
19
|
-
*/
|
|
20
|
-
export interface ComboBoxChangeEvent extends ChangeEvent<ComboBox> {
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* Represents the object of the `open` ComboBox event.
|
|
24
|
-
*/
|
|
25
|
-
export interface ComboBoxOpenEvent extends OpenEvent<ComboBox> {
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
28
|
-
* Represents the object of the `close` ComboBox event.
|
|
29
|
-
*/
|
|
30
|
-
export interface ComboBoxCloseEvent extends CloseEvent<ComboBox> {
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* Represents the object of the `focus` ComboBox event.
|
|
34
|
-
*/
|
|
35
|
-
export interface ComboBoxFocusEvent extends FocusEvent<ComboBox> {
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* Represents the object of the `blur` ComboBox event.
|
|
39
|
-
*/
|
|
40
|
-
export interface ComboBoxBlurEvent extends BlurEvent<ComboBox> {
|
|
41
|
-
}
|
|
42
|
-
/**
|
|
43
|
-
* Represents the object of the `PageChange` ComboBox event.
|
|
44
|
-
*/
|
|
45
|
-
export interface ComboBoxPageChangeEvent extends PageChangeEvent<ComboBox> {
|
|
46
|
-
}
|
|
47
|
-
/**
|
|
48
|
-
* Represents the props of the [KendoReact ComboBox component]({% slug overview_combobox %}).
|
|
49
|
-
*/
|
|
50
|
-
export interface ComboBoxProps extends FormComponentProps {
|
|
51
|
-
/**
|
|
52
|
-
* Sets the data of the ComboBox ([more information and examples]({% slug binding_combobox %})).
|
|
53
|
-
*/
|
|
54
|
-
data?: any[];
|
|
55
|
-
/**
|
|
56
|
-
* Sets the opened and closed state of the ComboBox.
|
|
57
|
-
*/
|
|
58
|
-
opened?: boolean;
|
|
59
|
-
/**
|
|
60
|
-
* The styles that are applied to the ComboBox.
|
|
61
|
-
*/
|
|
62
|
-
style?: React.CSSProperties;
|
|
63
|
-
/**
|
|
64
|
-
* Sets the value of the ComboBox ([more information and examples]({% slug binding_combobox %})). It can either be of the primitive (string, numbers) or of the complex (objects) type.
|
|
65
|
-
*/
|
|
66
|
-
value?: any;
|
|
67
|
-
/**
|
|
68
|
-
* Sets the default value of the ComboBox. Similar to the native `select` HTML element.
|
|
69
|
-
*/
|
|
70
|
-
defaultValue?: any;
|
|
71
|
-
/**
|
|
72
|
-
* Sets additional classes to the ComboBox.
|
|
73
|
-
*/
|
|
74
|
-
className?: string;
|
|
75
|
-
/**
|
|
76
|
-
* Sets CSS classes to the expand `icon` DOM element.
|
|
77
|
-
*/
|
|
78
|
-
iconClassName?: string;
|
|
79
|
-
/**
|
|
80
|
-
* Sets the specified SVG icon.
|
|
81
|
-
*/
|
|
82
|
-
svgIcon?: SVGIcon;
|
|
83
|
-
/**
|
|
84
|
-
* If `clearButton` is set to `true`, the ComboBox renders a button on hovering over the component. Clicking this button resets the value of the ComboBox to `undefined` and triggers the `change` event.
|
|
85
|
-
*/
|
|
86
|
-
clearButton?: boolean;
|
|
87
|
-
/**
|
|
88
|
-
* The hint that is displayed when the ComboBox is empty.
|
|
89
|
-
*/
|
|
90
|
-
placeholder?: string;
|
|
91
|
-
/**
|
|
92
|
-
* Sets the title attribute to the underlying input element of the ComboBox.
|
|
93
|
-
*/
|
|
94
|
-
title?: string;
|
|
95
|
-
/**
|
|
96
|
-
* Enables the auto-completion of the text based on the first data item ([see example]({% slug suggestions_combobox %})).
|
|
97
|
-
*/
|
|
98
|
-
suggest?: boolean;
|
|
99
|
-
/**
|
|
100
|
-
* Specifies whether the ComboBox allows user-defined values that are not present in the dataset ([see example]({% slug custom_values_combobox %})). Defaults to `false`.
|
|
101
|
-
*/
|
|
102
|
-
allowCustom?: boolean;
|
|
103
|
-
/**
|
|
104
|
-
* Sets the disabled state of the ComboBox.
|
|
105
|
-
*/
|
|
106
|
-
disabled?: boolean;
|
|
107
|
-
/**
|
|
108
|
-
* Represents the `dir` HTML attribute.
|
|
109
|
-
*/
|
|
110
|
-
dir?: string;
|
|
111
|
-
/**
|
|
112
|
-
* Enables the filtering functionality of the ComboBox ([more information and examples]({% slug filtering_combobox %})).
|
|
113
|
-
*/
|
|
114
|
-
filterable?: boolean;
|
|
115
|
-
/**
|
|
116
|
-
* Sets the value of ComboBox input. Useful for making the ComboBox input a [controlled component](https://reactjs.org/docs/forms.html#controlled-components).
|
|
117
|
-
*/
|
|
118
|
-
filter?: string | null;
|
|
119
|
-
/**
|
|
120
|
-
* Sets the value of the adaptive filtering input of the of ComboBox.
|
|
121
|
-
*/
|
|
122
|
-
adaptiveFilter?: string;
|
|
123
|
-
/**
|
|
124
|
-
* Sets the loading state of the ComboBox ([see example]({% slug filtering_combobox %}#toc-basic-configuration)).
|
|
125
|
-
*/
|
|
126
|
-
loading?: boolean;
|
|
127
|
-
/**
|
|
128
|
-
* Specifies the `tabIndex` of the ComboBox.
|
|
129
|
-
*/
|
|
130
|
-
tabIndex?: number;
|
|
131
|
-
/**
|
|
132
|
-
* Specifies the `accessKey` of the ComboBox.
|
|
133
|
-
*/
|
|
134
|
-
accessKey?: string;
|
|
135
|
-
/**
|
|
136
|
-
* Sets the data item field that represents the item text. If the data contains only primitive values, do not define it.
|
|
137
|
-
*/
|
|
138
|
-
textField?: string;
|
|
139
|
-
/**
|
|
140
|
-
* Sets the data item field that represents the start of a group. Applicable to objects data.
|
|
141
|
-
*/
|
|
142
|
-
groupField?: string;
|
|
143
|
-
/**
|
|
144
|
-
* Defines the `classic` or `modern` type of the grouping's visualization. Defaults to `modern`.
|
|
145
|
-
*/
|
|
146
|
-
groupMode?: string;
|
|
147
|
-
/**
|
|
148
|
-
* @hidden Used to indicate if the ComboBox is with multiple columns
|
|
149
|
-
*/
|
|
150
|
-
isMultiColumn?: boolean;
|
|
151
|
-
/**
|
|
152
|
-
* Sets the key for comparing the data items of the ComboBox. If `dataItemKey` is not set, the ComboBox compares the items by reference ([see example]({% slug binding_combobox %}#toc-datasets-of-objects)).
|
|
153
|
-
*/
|
|
154
|
-
dataItemKey?: string;
|
|
155
|
-
/**
|
|
156
|
-
* Renders a floating label for the ComboBox.
|
|
157
|
-
*/
|
|
158
|
-
label?: string;
|
|
159
|
-
/**
|
|
160
|
-
* Configures the popup of the ComboBox.
|
|
161
|
-
*/
|
|
162
|
-
popupSettings?: DropDownsPopupSettings;
|
|
163
|
-
/**
|
|
164
|
-
* Configures the virtual scrolling of the ComboBox ([more information and examples]({% slug virtualization_combobox %})).
|
|
165
|
-
*/
|
|
166
|
-
virtual?: VirtualizationSettings;
|
|
167
|
-
/**
|
|
168
|
-
* Specifies the id of the component.
|
|
169
|
-
*/
|
|
170
|
-
id?: string;
|
|
171
|
-
/**
|
|
172
|
-
* 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).
|
|
173
|
-
* For example these elements could contain error or hint message.
|
|
174
|
-
*/
|
|
175
|
-
ariaDescribedBy?: string;
|
|
176
|
-
/**
|
|
177
|
-
* Identifies the element(s) which will label the component.
|
|
178
|
-
*/
|
|
179
|
-
ariaLabelledBy?: string;
|
|
180
|
-
/**
|
|
181
|
-
* If set, the ComboBox will use it to get the focused item index.
|
|
182
|
-
*
|
|
183
|
-
* Default functionality returns the first item which starts with the input text.
|
|
184
|
-
*
|
|
185
|
-
* @example
|
|
186
|
-
* ```jsx-no-run
|
|
187
|
-
* const focusedItemIndex = (data, inputText, textField) => {
|
|
188
|
-
* let text = inputText.toLowerCase();
|
|
189
|
-
* return data.findIndex(item =>
|
|
190
|
-
* String(textField ? item[textField] : item).toLowerCase().includes(text));
|
|
191
|
-
* };
|
|
192
|
-
*
|
|
193
|
-
* <ComboBox focusedItemIndex={focusedItemIndex} />
|
|
194
|
-
* ```
|
|
195
|
-
*/
|
|
196
|
-
focusedItemIndex?: (data: any, inputText: string, textField?: string) => number;
|
|
197
|
-
/**
|
|
198
|
-
* Fires each time the popup of the ComboBox is about to open.
|
|
199
|
-
*/
|
|
200
|
-
onOpen?: (event: ComboBoxOpenEvent) => void;
|
|
201
|
-
/**
|
|
202
|
-
* Fires each time the popup of the ComboBox is about to close.
|
|
203
|
-
*/
|
|
204
|
-
onClose?: (event: ComboBoxCloseEvent) => void;
|
|
205
|
-
/**
|
|
206
|
-
* Fires each time the user focuses the ComboBox.
|
|
207
|
-
*/
|
|
208
|
-
onFocus?: (event: ComboBoxFocusEvent) => void;
|
|
209
|
-
/**
|
|
210
|
-
* Fires each time the ComboBox gets blurred.
|
|
211
|
-
*/
|
|
212
|
-
onBlur?: (event: ComboBoxBlurEvent) => void;
|
|
213
|
-
/**
|
|
214
|
-
* Fires each time the value of the ComboBox is about to change ([see examples]({% slug binding_combobox %})).
|
|
215
|
-
*/
|
|
216
|
-
onChange?: (event: ComboBoxChangeEvent) => void;
|
|
217
|
-
/**
|
|
218
|
-
* Fires each time the user types in the filter input ([see examples]({% slug filtering_combobox %}#toc-basic-configuration)). You can filter the source based on the passed filtration value.
|
|
219
|
-
*/
|
|
220
|
-
onFilterChange?: (event: ComboBoxFilterChangeEvent) => void;
|
|
221
|
-
/**
|
|
222
|
-
* Fires when both the virtual scrolling of the ComboBox is enabled and the component requires data for another page ([more information and examples]({% slug virtualization_combobox %})).
|
|
223
|
-
*/
|
|
224
|
-
onPageChange?: (event: ComboBoxPageChangeEvent) => void;
|
|
225
|
-
/**
|
|
226
|
-
* Fires when the ComboBox input element is about to be rendered. Use it to override the default appearance of the component.
|
|
227
|
-
*/
|
|
228
|
-
valueRender?: (rendering: React.ReactElement<HTMLSpanElement>) => React.ReactNode;
|
|
229
|
-
/**
|
|
230
|
-
* Fires when a ComboBox list item is about to be rendered ([see example]({% slug customrendering_combobox %}#toc-items)). Used to override the default appearance of the list items.
|
|
231
|
-
*/
|
|
232
|
-
itemRender?: (li: React.ReactElement<HTMLLIElement>, itemProps: ListItemProps) => React.ReactNode;
|
|
233
|
-
/**
|
|
234
|
-
* Fires when a ComboBox group header item is about to be rendered. Used to override the default appearance of the group's headers when the component is configured in `modern` group mode.
|
|
235
|
-
*/
|
|
236
|
-
groupHeaderItemRender?: (li: React.ReactElement<HTMLLIElement>, itemProps: ListGroupItemProps) => React.ReactNode;
|
|
237
|
-
/**
|
|
238
|
-
* Fires when a ComboBox sticky group header item is about to be rendered. Used to override the default appearance of the sticky group header of the component.
|
|
239
|
-
*/
|
|
240
|
-
groupStickyHeaderItemRender?: (div: React.ReactElement<HTMLDivElement>, stickyHeaderProps: GroupStickyHeaderProps) => React.ReactNode;
|
|
241
|
-
/**
|
|
242
|
-
* Fires when the element which indicates no data in the popup is about to be rendered. Used to override the default appearance of the element.
|
|
243
|
-
*/
|
|
244
|
-
listNoDataRender?: (element: React.ReactElement<HTMLDivElement>) => React.ReactNode;
|
|
245
|
-
/**
|
|
246
|
-
* @hidden
|
|
247
|
-
*/
|
|
248
|
-
onGroupScroll?: (event: {
|
|
249
|
-
group?: string;
|
|
250
|
-
}) => void;
|
|
251
|
-
/**
|
|
252
|
-
* Sets the header component of the ComboBox ([see example]({% slug customrendering_combobox %}#toc-headers-and-footers)).
|
|
253
|
-
*/
|
|
254
|
-
header?: React.ReactNode;
|
|
255
|
-
/**
|
|
256
|
-
* Sets the footer component of the ComboBox ([see example]({% slug customrendering_combobox %}#toc-headers-and-footers)).
|
|
257
|
-
*/
|
|
258
|
-
footer?: React.ReactNode;
|
|
259
|
-
/**
|
|
260
|
-
* @hidden
|
|
261
|
-
*/
|
|
262
|
-
footerClassName?: string;
|
|
263
|
-
/**
|
|
264
|
-
* @hidden
|
|
265
|
-
*/
|
|
266
|
-
list?: any;
|
|
267
|
-
/**
|
|
268
|
-
* Configures the `size` of the ComboBox.
|
|
269
|
-
*
|
|
270
|
-
* The available options are:
|
|
271
|
-
* - small
|
|
272
|
-
* - medium
|
|
273
|
-
* - large
|
|
274
|
-
* - null—Does not set a size `className`.
|
|
275
|
-
*
|
|
276
|
-
* @default `medium`
|
|
277
|
-
*/
|
|
278
|
-
size?: null | 'small' | 'medium' | 'large';
|
|
279
|
-
/**
|
|
280
|
-
* Configures the `roundness` of the ComboBox.
|
|
281
|
-
*
|
|
282
|
-
* The available options are:
|
|
283
|
-
* - small
|
|
284
|
-
* - medium
|
|
285
|
-
* - large
|
|
286
|
-
* - full
|
|
287
|
-
* - null—Does not set a rounded `className`.
|
|
288
|
-
*
|
|
289
|
-
* @default `medium`
|
|
290
|
-
*/
|
|
291
|
-
rounded?: null | 'small' | 'medium' | 'large' | 'full';
|
|
292
|
-
/**
|
|
293
|
-
* Configures the `fillMode` of the ComboBox.
|
|
294
|
-
*
|
|
295
|
-
* The available options are:
|
|
296
|
-
* - solid
|
|
297
|
-
* - flat
|
|
298
|
-
* - outline
|
|
299
|
-
* - null—Does not set a fillMode `className`.
|
|
300
|
-
*
|
|
301
|
-
* @default `solid`
|
|
302
|
-
*/
|
|
303
|
-
fillMode?: null | 'solid' | 'flat' | 'outline';
|
|
304
|
-
/**
|
|
305
|
-
* Providing different rendering of the popup element based on the screen dimensions.
|
|
306
|
-
*/
|
|
307
|
-
adaptive?: boolean;
|
|
308
|
-
/**
|
|
309
|
-
* Specifies the text that is rendered as title in the adaptive popup.
|
|
310
|
-
*/
|
|
311
|
-
adaptiveTitle?: string;
|
|
312
|
-
/**
|
|
313
|
-
* Defines if ComboBox's disabled items will be skipped or focused when navigating through the list of items using a keyboard. Defaults to `true`.
|
|
314
|
-
*/
|
|
315
|
-
skipDisabledItems?: boolean;
|
|
316
|
-
/**
|
|
317
|
-
* Sets a custom prefix to the ComboBox component.
|
|
318
|
-
*/
|
|
319
|
-
prefix?: CustomComponent<any>;
|
|
320
|
-
/**
|
|
321
|
-
* Sets a custom suffix to the ComboBox component.
|
|
322
|
-
*/
|
|
323
|
-
suffix?: CustomComponent<any>;
|
|
324
|
-
}
|