@progress/kendo-react-dropdowns 7.2.4-develop.3 → 7.2.4-develop.4
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
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o="dropdowns.nodata",a="dropdowns.clear",e="dropdowns.comboArrowBtnAriaLabelExpand",r="dropdowns.comboArrowBtnAriaLabelCollapse",n="dropdowns.dropDownListArrowBtnAriaLabel",t="dropdowns.apply",d="dropdowns.cancel",l={[a]:"clear",[o]:"NO DATA FOUND.",[e]:"expand combobox",[r]:"collapse combobox",[n]:"select",[t]:"Apply",[d]:"Cancel"};exports.adaptiveModeFooterApply=t;exports.adaptiveModeFooterCancel=d;exports.clear=a;exports.comboArrowBtnAriaLabelCollapse=r;exports.comboArrowBtnAriaLabelExpand=e;exports.dropDownListArrowBtnAriaLabel=n;exports.messages=l;exports.nodata=o;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";
|
|
9
|
+
const o = "dropdowns.nodata", a = "dropdowns.clear", r = "dropdowns.comboArrowBtnAriaLabelExpand", n = "dropdowns.comboArrowBtnAriaLabelCollapse", e = "dropdowns.dropDownListArrowBtnAriaLabel", d = "dropdowns.apply", s = "dropdowns.cancel", t = {
|
|
10
|
+
[a]: "clear",
|
|
11
|
+
[o]: "NO DATA FOUND.",
|
|
12
|
+
[r]: "expand combobox",
|
|
13
|
+
[n]: "collapse combobox",
|
|
14
|
+
[e]: "select",
|
|
15
|
+
[d]: "Apply",
|
|
16
|
+
[s]: "Cancel"
|
|
17
|
+
};
|
|
18
|
+
export {
|
|
19
|
+
d as adaptiveModeFooterApply,
|
|
20
|
+
s as adaptiveModeFooterCancel,
|
|
21
|
+
a as clear,
|
|
22
|
+
n as comboArrowBtnAriaLabelCollapse,
|
|
23
|
+
r as comboArrowBtnAriaLabelExpand,
|
|
24
|
+
e as dropDownListArrowBtnAriaLabel,
|
|
25
|
+
t as messages,
|
|
26
|
+
o as nodata
|
|
27
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={name:"@progress/kendo-react-dropdowns",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1654528156,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/components/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning"};exports.packageMetadata=e;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";
|
|
9
|
+
const e = {
|
|
10
|
+
name: "@progress/kendo-react-dropdowns",
|
|
11
|
+
productName: "KendoReact",
|
|
12
|
+
productCodes: ["KENDOUIREACT", "KENDOUICOMPLETE"],
|
|
13
|
+
publishDate: 1709714056,
|
|
14
|
+
version: "",
|
|
15
|
+
licensingDocsUrl: "https://www.telerik.com/kendo-react-ui/components/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning"
|
|
16
|
+
};
|
|
17
|
+
export {
|
|
18
|
+
e as packageMetadata
|
|
19
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-react-dropdowns",
|
|
3
|
-
"version": "7.2.4-develop.
|
|
3
|
+
"version": "7.2.4-develop.4",
|
|
4
4
|
"description": "React DropDowns offer an interface for users to select different items from a list and more. KendoReact Dropdowns package",
|
|
5
5
|
"author": "Progress",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
@@ -23,14 +23,14 @@
|
|
|
23
23
|
"sideEffects": false,
|
|
24
24
|
"peerDependencies": {
|
|
25
25
|
"@progress/kendo-licensing": "^1.3.4",
|
|
26
|
-
"@progress/kendo-react-buttons": "7.2.4-develop.
|
|
27
|
-
"@progress/kendo-react-common": "7.2.4-develop.
|
|
28
|
-
"@progress/kendo-react-inputs": "7.2.4-develop.
|
|
29
|
-
"@progress/kendo-react-intl": "7.2.4-develop.
|
|
30
|
-
"@progress/kendo-react-labels": "7.2.4-develop.
|
|
31
|
-
"@progress/kendo-react-layout": "7.2.4-develop.
|
|
32
|
-
"@progress/kendo-react-popup": "7.2.4-develop.
|
|
33
|
-
"@progress/kendo-react-treeview": "7.2.4-develop.
|
|
26
|
+
"@progress/kendo-react-buttons": "7.2.4-develop.4",
|
|
27
|
+
"@progress/kendo-react-common": "7.2.4-develop.4",
|
|
28
|
+
"@progress/kendo-react-inputs": "7.2.4-develop.4",
|
|
29
|
+
"@progress/kendo-react-intl": "7.2.4-develop.4",
|
|
30
|
+
"@progress/kendo-react-labels": "7.2.4-develop.4",
|
|
31
|
+
"@progress/kendo-react-layout": "7.2.4-develop.4",
|
|
32
|
+
"@progress/kendo-react-popup": "7.2.4-develop.4",
|
|
33
|
+
"@progress/kendo-react-treeview": "7.2.4-develop.4",
|
|
34
34
|
"@progress/kendo-svg-icons": "^2.1.0",
|
|
35
35
|
"react": "^16.8.2 || ^17.0.0 || ^18.0.0",
|
|
36
36
|
"react-dom": "^16.8.2 || ^17.0.0 || ^18.0.0"
|
|
@@ -1,236 +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 { AutoCompleteProps } from './AutoCompleteProps';
|
|
8
|
-
import { DropDownStateBase, InternalState } from './../common/settings';
|
|
9
|
-
import DropDownBase from '../common/DropDownBase';
|
|
10
|
-
import { FormComponent, FormComponentValidity } from '@progress/kendo-react-common';
|
|
11
|
-
/**
|
|
12
|
-
* @hidden
|
|
13
|
-
*/
|
|
14
|
-
export interface AutoCompleteState extends DropDownStateBase {
|
|
15
|
-
focusedItem?: any;
|
|
16
|
-
value?: string;
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* @hidden
|
|
20
|
-
*/
|
|
21
|
-
export interface AutoCompleteInternalState extends InternalState {
|
|
22
|
-
data: AutoCompleteState;
|
|
23
|
-
}
|
|
24
|
-
/** @hidden */
|
|
25
|
-
export declare class AutoCompleteWithoutContext extends React.Component<AutoCompleteProps, AutoCompleteState> implements FormComponent {
|
|
26
|
-
static displayName: string;
|
|
27
|
-
/**
|
|
28
|
-
* @hidden
|
|
29
|
-
*/
|
|
30
|
-
static propTypes: {
|
|
31
|
-
size: PropTypes.Requireable<"small" | "medium" | "large" | null | undefined>;
|
|
32
|
-
rounded: PropTypes.Requireable<"small" | "medium" | "large" | "full" | null | undefined>;
|
|
33
|
-
fillMode: PropTypes.Requireable<"solid" | "flat" | "outline" | null | undefined>;
|
|
34
|
-
groupField: PropTypes.Requireable<string>;
|
|
35
|
-
suggest: PropTypes.Requireable<NonNullable<string | boolean | null | undefined>>;
|
|
36
|
-
placeholder: PropTypes.Requireable<string>;
|
|
37
|
-
value: PropTypes.Requireable<string>;
|
|
38
|
-
defaultValue: PropTypes.Requireable<string>;
|
|
39
|
-
validationMessage: PropTypes.Requireable<string>;
|
|
40
|
-
required: PropTypes.Requireable<boolean>;
|
|
41
|
-
readonly: PropTypes.Requireable<boolean>;
|
|
42
|
-
clearButton: PropTypes.Requireable<boolean>;
|
|
43
|
-
valueRender: PropTypes.Requireable<(...args: any[]) => any>;
|
|
44
|
-
id: PropTypes.Requireable<string>;
|
|
45
|
-
ariaLabelledBy: PropTypes.Requireable<string>;
|
|
46
|
-
ariaDescribedBy: PropTypes.Requireable<string>;
|
|
47
|
-
list: PropTypes.Requireable<any>;
|
|
48
|
-
skipDisabledItems: PropTypes.Requireable<boolean>;
|
|
49
|
-
opened: PropTypes.Requireable<boolean>;
|
|
50
|
-
disabled: PropTypes.Requireable<boolean>;
|
|
51
|
-
dir: PropTypes.Requireable<string>;
|
|
52
|
-
tabIndex: PropTypes.Requireable<number>;
|
|
53
|
-
accessKey: PropTypes.Requireable<string>;
|
|
54
|
-
data: PropTypes.Requireable<any[]>;
|
|
55
|
-
textField: PropTypes.Requireable<string>;
|
|
56
|
-
className: PropTypes.Requireable<string>;
|
|
57
|
-
label: PropTypes.Requireable<string>;
|
|
58
|
-
loading: PropTypes.Requireable<boolean>;
|
|
59
|
-
popupSettings: PropTypes.Requireable<PropTypes.InferProps<{
|
|
60
|
-
animate: PropTypes.Requireable<NonNullable<boolean | PropTypes.InferProps<{
|
|
61
|
-
openDuration: PropTypes.Requireable<number>;
|
|
62
|
-
closeDuration: PropTypes.Requireable<number>;
|
|
63
|
-
}> | null | undefined>>;
|
|
64
|
-
popupClass: PropTypes.Requireable<string>;
|
|
65
|
-
className: PropTypes.Requireable<string>;
|
|
66
|
-
appendTo: PropTypes.Requireable<any>;
|
|
67
|
-
width: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
|
|
68
|
-
height: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
|
|
69
|
-
}>>;
|
|
70
|
-
onOpen: PropTypes.Requireable<(...args: any[]) => any>;
|
|
71
|
-
onClose: PropTypes.Requireable<(...args: any[]) => any>;
|
|
72
|
-
onFocus: PropTypes.Requireable<(...args: any[]) => any>;
|
|
73
|
-
onBlur: PropTypes.Requireable<(...args: any[]) => any>;
|
|
74
|
-
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
75
|
-
itemRender: PropTypes.Requireable<(...args: any[]) => any>;
|
|
76
|
-
listNoDataRender: PropTypes.Requireable<(...args: any[]) => any>;
|
|
77
|
-
focusedItemIndex: PropTypes.Requireable<(...args: any[]) => any>;
|
|
78
|
-
header: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
79
|
-
footer: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
80
|
-
};
|
|
81
|
-
/**
|
|
82
|
-
* @hidden
|
|
83
|
-
*/
|
|
84
|
-
static defaultProps: {
|
|
85
|
-
size: "small" | "medium" | "large" | null | undefined;
|
|
86
|
-
rounded: "small" | "medium" | "large" | "full" | null | undefined;
|
|
87
|
-
fillMode: "solid" | "flat" | "outline" | null | undefined;
|
|
88
|
-
skipDisabledItems: boolean;
|
|
89
|
-
prefix: undefined;
|
|
90
|
-
suffix: undefined;
|
|
91
|
-
popupSettings: {
|
|
92
|
-
height: string;
|
|
93
|
-
};
|
|
94
|
-
required: boolean;
|
|
95
|
-
validityStyles: boolean;
|
|
96
|
-
};
|
|
97
|
-
/**
|
|
98
|
-
* @hidden
|
|
99
|
-
*/
|
|
100
|
-
readonly state: AutoCompleteState;
|
|
101
|
-
protected readonly base: DropDownBase;
|
|
102
|
-
private _element;
|
|
103
|
-
private get _inputId();
|
|
104
|
-
private _suggested;
|
|
105
|
-
private _input;
|
|
106
|
-
private _valueDuringOnChange?;
|
|
107
|
-
private _isScrolling;
|
|
108
|
-
private itemHeight;
|
|
109
|
-
constructor(props: AutoCompleteProps);
|
|
110
|
-
/**
|
|
111
|
-
* @hidden
|
|
112
|
-
*/
|
|
113
|
-
focus: () => void;
|
|
114
|
-
/**
|
|
115
|
-
* @hidden
|
|
116
|
-
*/
|
|
117
|
-
get element(): HTMLSpanElement | null;
|
|
118
|
-
/**
|
|
119
|
-
* The value of the AutoComplete.
|
|
120
|
-
*/
|
|
121
|
-
get value(): string;
|
|
122
|
-
/**
|
|
123
|
-
* Gets the `name` property of the AutoComplete.
|
|
124
|
-
*/
|
|
125
|
-
get name(): string | undefined;
|
|
126
|
-
/**
|
|
127
|
-
* Represents the validity state into which the AutoComplete is set.
|
|
128
|
-
*/
|
|
129
|
-
get validity(): FormComponentValidity;
|
|
130
|
-
/**
|
|
131
|
-
* @hidden
|
|
132
|
-
*/
|
|
133
|
-
protected get validityStyles(): boolean;
|
|
134
|
-
/**
|
|
135
|
-
* @hidden
|
|
136
|
-
*/
|
|
137
|
-
protected get required(): boolean;
|
|
138
|
-
/**
|
|
139
|
-
* @hidden
|
|
140
|
-
*/
|
|
141
|
-
componentDidUpdate(prevProps: AutoCompleteProps, prevState: AutoCompleteState): void;
|
|
142
|
-
/**
|
|
143
|
-
* @hidden
|
|
144
|
-
*/
|
|
145
|
-
componentDidMount(): void;
|
|
146
|
-
/**
|
|
147
|
-
* @hidden
|
|
148
|
-
*/
|
|
149
|
-
render(): import("react/jsx-runtime").JSX.Element;
|
|
150
|
-
/**
|
|
151
|
-
* @hidden
|
|
152
|
-
*/
|
|
153
|
-
handleItemSelect: (index: number, state: AutoCompleteInternalState) => void;
|
|
154
|
-
/**
|
|
155
|
-
* @hidden
|
|
156
|
-
*/
|
|
157
|
-
itemFocus: (index: number, state: AutoCompleteInternalState) => void;
|
|
158
|
-
/**
|
|
159
|
-
* @hidden
|
|
160
|
-
*/
|
|
161
|
-
togglePopup: (state: InternalState) => void;
|
|
162
|
-
/**
|
|
163
|
-
* @hidden
|
|
164
|
-
*/
|
|
165
|
-
onNavigate(state: AutoCompleteInternalState, keyCode: number, skipItems?: number): void;
|
|
166
|
-
/**
|
|
167
|
-
* @hidden
|
|
168
|
-
*/
|
|
169
|
-
applyInputValue(value: string, state: AutoCompleteInternalState, eventKey?: number): void;
|
|
170
|
-
private setValidity;
|
|
171
|
-
private renderSearchBar;
|
|
172
|
-
private renderListContainer;
|
|
173
|
-
private renderList;
|
|
174
|
-
private onScroll;
|
|
175
|
-
private handleItemClick;
|
|
176
|
-
private onChangeHandler;
|
|
177
|
-
private clearButtonClick;
|
|
178
|
-
private onInputKeyDown;
|
|
179
|
-
private handleBlur;
|
|
180
|
-
private triggerOnChange;
|
|
181
|
-
private applyState;
|
|
182
|
-
private suggestValue;
|
|
183
|
-
private focusedIndex;
|
|
184
|
-
}
|
|
185
|
-
/**
|
|
186
|
-
* Represents the PropsContext of the `AutoComplete` component.
|
|
187
|
-
* Used for global configuration of all `AutoComplete` instances.
|
|
188
|
-
*
|
|
189
|
-
* For more information, refer to the [Dropdowns Props Context]({% slug props-context_dropdowns %}) article.
|
|
190
|
-
*/
|
|
191
|
-
export declare const AutoCompletePropsContext: React.Context<(p: AutoCompleteProps) => AutoCompleteProps>;
|
|
192
|
-
/**
|
|
193
|
-
* Represent the `ref` of the AutoComplete component.
|
|
194
|
-
*/
|
|
195
|
-
export interface AutoCompleteHandle extends Pick<AutoCompleteWithoutContext, keyof AutoCompleteWithoutContext> {
|
|
196
|
-
/**
|
|
197
|
-
* Gets the `name` property of the AutoComplete.
|
|
198
|
-
*/
|
|
199
|
-
name: string | undefined;
|
|
200
|
-
/**
|
|
201
|
-
* Represents the validity state into which the AutoComplete is set.
|
|
202
|
-
*/
|
|
203
|
-
validity: FormComponentValidity;
|
|
204
|
-
/**
|
|
205
|
-
* The value of the AutoComplete.
|
|
206
|
-
*/
|
|
207
|
-
value: string;
|
|
208
|
-
}
|
|
209
|
-
/** @hidden */
|
|
210
|
-
export type AutoComplete = AutoCompleteHandle;
|
|
211
|
-
/**
|
|
212
|
-
* Represents the [KendoReact AutoComplete component]({% slug overview_autocomplete %}).
|
|
213
|
-
*
|
|
214
|
-
* Accepts properties of type [AutoCompleteProps]({% slug api_dropdowns_autocompleteprops %}).
|
|
215
|
-
* Obtaining the `ref` returns an object of type [AutoCompleteHandle]({% slug api_dropdowns_autocompletehandle %}).
|
|
216
|
-
*
|
|
217
|
-
* @example
|
|
218
|
-
* ```jsx
|
|
219
|
-
* class App extends React.Component {
|
|
220
|
-
* autocomplete = null;
|
|
221
|
-
* render() {
|
|
222
|
-
* return (
|
|
223
|
-
* <div>
|
|
224
|
-
* <AutoComplete
|
|
225
|
-
* data={[ "Albania", "Andorra", "Austria", "Belarus" ]}
|
|
226
|
-
* ref={component => this.autocomplete = component}
|
|
227
|
-
* />
|
|
228
|
-
* <button onClick={() => alert(this.autocomplete.value)}>alert value</button>
|
|
229
|
-
* </div>
|
|
230
|
-
* );
|
|
231
|
-
* }
|
|
232
|
-
* }
|
|
233
|
-
* ReactDOM.render(<App />, document.querySelector('my-app'));
|
|
234
|
-
* ```
|
|
235
|
-
*/
|
|
236
|
-
export declare const AutoComplete: React.ForwardRefExoticComponent<AutoCompleteProps & React.RefAttributes<any>>;
|
|
@@ -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 { AutoComplete } from './AutoComplete';
|
|
6
|
-
import { ChangeEvent, OpenEvent, CloseEvent, FocusEvent, BlurEvent } from './../common/events';
|
|
7
|
-
import { DropDownsPopupSettings, Suggestion } from '../common/settings';
|
|
8
|
-
import { ListGroupItemProps } from '../common/ListGroupItem';
|
|
9
|
-
import { GroupStickyHeaderProps } from '../common/GroupStickyHeader';
|
|
10
|
-
import { ListItemProps } from '../common/ListItem';
|
|
11
|
-
import { CustomComponent, FormComponentProps } from '@progress/kendo-react-common';
|
|
12
|
-
/**
|
|
13
|
-
* Represents the object of the `change` AutoComplete event.
|
|
14
|
-
*/
|
|
15
|
-
export interface AutoCompleteChangeEvent extends ChangeEvent<AutoComplete> {
|
|
16
|
-
suggestion?: Suggestion;
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* Represents the object of the `open` AutoComplete event.
|
|
20
|
-
*/
|
|
21
|
-
export interface AutoCompleteOpenEvent extends OpenEvent<AutoComplete> {
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* Represents the object of the `close` AutoComplete event.
|
|
25
|
-
*/
|
|
26
|
-
export interface AutoCompleteCloseEvent extends CloseEvent<AutoComplete> {
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* Represents the object of the `focus` AutoComplete event.
|
|
30
|
-
*/
|
|
31
|
-
export interface AutoCompleteFocusEvent extends FocusEvent<AutoComplete> {
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
* Represents the object of the `blur` AutoComplete event.
|
|
35
|
-
*/
|
|
36
|
-
export interface AutoCompleteBlurEvent extends BlurEvent<AutoComplete> {
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* Represents the props of the [KendoReact AutoComplete component]({% slug overview_autocomplete %}).
|
|
40
|
-
*/
|
|
41
|
-
export interface AutoCompleteProps extends FormComponentProps {
|
|
42
|
-
/**
|
|
43
|
-
* Sets the data of the AutoComplete ([more information and example]({% slug binding_autocomplete %})).
|
|
44
|
-
*/
|
|
45
|
-
data?: any[];
|
|
46
|
-
/**
|
|
47
|
-
* Sets the opened and closed state of the AutoComplete.
|
|
48
|
-
*/
|
|
49
|
-
opened?: boolean;
|
|
50
|
-
/**
|
|
51
|
-
* The styles that are applied to the AutoComplete.
|
|
52
|
-
*/
|
|
53
|
-
style?: React.CSSProperties;
|
|
54
|
-
/**
|
|
55
|
-
* Sets the value of the AutoComplete ([more information and example]({% slug binding_autocomplete %})).
|
|
56
|
-
*/
|
|
57
|
-
value?: string;
|
|
58
|
-
/**
|
|
59
|
-
* Sets the default value of the AutoComplete. Similar to the native `input` HTML element.
|
|
60
|
-
*/
|
|
61
|
-
defaultValue?: string;
|
|
62
|
-
/**
|
|
63
|
-
* Sets additional classes to the AutoComplete.
|
|
64
|
-
*/
|
|
65
|
-
className?: string;
|
|
66
|
-
/**
|
|
67
|
-
* By default, the AutoComplete renders a button on hovering over the component, which resets the value.
|
|
68
|
-
* If `clearButton` is set to `false`, the button will not be rendered.
|
|
69
|
-
*/
|
|
70
|
-
clearButton?: boolean;
|
|
71
|
-
/**
|
|
72
|
-
* The hint that is displayed when the AutoComplete is empty.
|
|
73
|
-
*/
|
|
74
|
-
placeholder?: string;
|
|
75
|
-
/**
|
|
76
|
-
* Sets the read-only state of the AutoComplete.
|
|
77
|
-
*/
|
|
78
|
-
readonly?: boolean;
|
|
79
|
-
/**
|
|
80
|
-
* Enables the auto-completion of the text based on the first data item ([see example]({% slug suggestions_autocomplete %})).
|
|
81
|
-
*/
|
|
82
|
-
suggest?: boolean | string;
|
|
83
|
-
/**
|
|
84
|
-
* Sets the disabled state of the AutoComplete.
|
|
85
|
-
*/
|
|
86
|
-
disabled?: boolean;
|
|
87
|
-
/**
|
|
88
|
-
* Represents the `dir` HTML attribute.
|
|
89
|
-
*/
|
|
90
|
-
dir?: string;
|
|
91
|
-
/**
|
|
92
|
-
* Sets the loading state of the AutoComplete ([see example]({% slug filtering_autocomplete %}#toc-basic-configuration)).
|
|
93
|
-
*/
|
|
94
|
-
loading?: boolean;
|
|
95
|
-
/**
|
|
96
|
-
* Specifies the `tabIndex` of the AutoComplete.
|
|
97
|
-
*/
|
|
98
|
-
tabIndex?: number;
|
|
99
|
-
/**
|
|
100
|
-
* Specifies the `accessKey` of the AutoComplete.
|
|
101
|
-
*/
|
|
102
|
-
accessKey?: string;
|
|
103
|
-
/**
|
|
104
|
-
* Sets the data item field that represents the item text ([see example]({% slug binding_autocomplete %}#toc-datasets-of-objects)). If the data contains only primitive values, do not define it.
|
|
105
|
-
*/
|
|
106
|
-
textField?: string;
|
|
107
|
-
/**
|
|
108
|
-
* Renders a floating label for the AutoComplete.
|
|
109
|
-
*/
|
|
110
|
-
label?: string;
|
|
111
|
-
/**
|
|
112
|
-
* Configures the popup of the AutoComplete.
|
|
113
|
-
*/
|
|
114
|
-
popupSettings?: DropDownsPopupSettings;
|
|
115
|
-
/**
|
|
116
|
-
* Specifies the id of the component.
|
|
117
|
-
*/
|
|
118
|
-
id?: string;
|
|
119
|
-
/**
|
|
120
|
-
* 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).
|
|
121
|
-
* For example these elements could contain error or hint message.
|
|
122
|
-
*/
|
|
123
|
-
ariaDescribedBy?: string;
|
|
124
|
-
/**
|
|
125
|
-
* Identifies the element(s) which will label the component.
|
|
126
|
-
*/
|
|
127
|
-
ariaLabelledBy?: string;
|
|
128
|
-
/**
|
|
129
|
-
* If set, the AutoComplete will use it to get the focused item index.
|
|
130
|
-
*
|
|
131
|
-
* Default functionality returns the first item which starts with the input text.
|
|
132
|
-
*
|
|
133
|
-
* @example
|
|
134
|
-
* ```jsx-no-run
|
|
135
|
-
* const focusedItemIndex = (data, inputText, textField) => {
|
|
136
|
-
* let text = inputText.toLowerCase();
|
|
137
|
-
* return data.findIndex(item =>
|
|
138
|
-
* String(textField ? item[textField] : item).toLowerCase().includes(text));
|
|
139
|
-
* };
|
|
140
|
-
*
|
|
141
|
-
* <AutoComplete focusedItemIndex={focusedItemIndex} />
|
|
142
|
-
* ```
|
|
143
|
-
*/
|
|
144
|
-
focusedItemIndex?: (data: any, inputText: string, textField?: string) => number;
|
|
145
|
-
/**
|
|
146
|
-
* Fires each time the popup of the AutoComplete is about to open.
|
|
147
|
-
*/
|
|
148
|
-
onOpen?: (event: AutoCompleteOpenEvent) => void;
|
|
149
|
-
/**
|
|
150
|
-
* Fires each time the popup of the AutoComplete is about to close.
|
|
151
|
-
*/
|
|
152
|
-
onClose?: (event: AutoCompleteCloseEvent) => void;
|
|
153
|
-
/**
|
|
154
|
-
* Fires each time the user focuses the AutoComplete.
|
|
155
|
-
*/
|
|
156
|
-
onFocus?: (event: AutoCompleteFocusEvent) => void;
|
|
157
|
-
/**
|
|
158
|
-
* Fires each time the AutoComplete gets blurred.
|
|
159
|
-
*/
|
|
160
|
-
onBlur?: (event: AutoCompleteBlurEvent) => void;
|
|
161
|
-
/**
|
|
162
|
-
* Fires each time the value of the AutoComplete is about to change ([more information and example]({% slug binding_autocomplete %})).
|
|
163
|
-
*/
|
|
164
|
-
onChange?: (event: AutoCompleteChangeEvent) => void;
|
|
165
|
-
/**
|
|
166
|
-
* Fires when the AutoComplete input element is about to be rendered. Use it to override the default appearance of the component.
|
|
167
|
-
*/
|
|
168
|
-
valueRender?: (rendering: React.ReactElement<HTMLSpanElement>) => React.ReactNode;
|
|
169
|
-
/**
|
|
170
|
-
* Fires when an AutoComplete list item is about to be rendered ([see example]({% slug customrendering_autocomplete %}#toc-items)). Used to override the default appearance of the list items.
|
|
171
|
-
*/
|
|
172
|
-
itemRender?: (li: React.ReactElement<HTMLLIElement>, itemProps: ListItemProps) => React.ReactNode;
|
|
173
|
-
/**
|
|
174
|
-
* Fires when the element which indicates no data in the popup is about to be rendered ([see example]({% slug customrendering_autocomplete %}#toc-no-data)). Used to override the default appearance of the element.
|
|
175
|
-
*/
|
|
176
|
-
listNoDataRender?: (element: React.ReactElement<HTMLDivElement>) => React.ReactNode;
|
|
177
|
-
/**
|
|
178
|
-
* Sets the header component of the AutoComplete ([see example]({% slug customrendering_autocomplete %}#toc-headers-and-footers)).
|
|
179
|
-
*/
|
|
180
|
-
header?: React.ReactNode;
|
|
181
|
-
/**
|
|
182
|
-
* Sets the footer component of the AutoComplete ([see example]({% slug customrendering_autocomplete %}#toc-headers-and-footers)).
|
|
183
|
-
*/
|
|
184
|
-
footer?: React.ReactNode;
|
|
185
|
-
/**
|
|
186
|
-
* Configures the `size` of the AutoComplete.
|
|
187
|
-
*
|
|
188
|
-
* The available options are:
|
|
189
|
-
* - small
|
|
190
|
-
* - medium
|
|
191
|
-
* - large
|
|
192
|
-
* - null—Does not set a size `className`.
|
|
193
|
-
*
|
|
194
|
-
* @default `medium`
|
|
195
|
-
*/
|
|
196
|
-
size?: null | 'small' | 'medium' | 'large';
|
|
197
|
-
/**
|
|
198
|
-
* Configures the `roundness` of the AutoComplete.
|
|
199
|
-
*
|
|
200
|
-
* The available options are:
|
|
201
|
-
* - small
|
|
202
|
-
* - medium
|
|
203
|
-
* - large
|
|
204
|
-
* - full
|
|
205
|
-
* - null—Does not set a rounded `className`.
|
|
206
|
-
*
|
|
207
|
-
* @default `medium`
|
|
208
|
-
*/
|
|
209
|
-
rounded?: null | 'small' | 'medium' | 'large' | 'full';
|
|
210
|
-
/**
|
|
211
|
-
* Configures the `fillMode` of the AutoComplete.
|
|
212
|
-
*
|
|
213
|
-
* The available options are:
|
|
214
|
-
* - solid
|
|
215
|
-
* - flat
|
|
216
|
-
* - outline
|
|
217
|
-
* - null—Does not set a fillMode `className`.
|
|
218
|
-
*
|
|
219
|
-
* @default `solid`
|
|
220
|
-
*/
|
|
221
|
-
fillMode?: null | 'solid' | 'flat' | 'outline';
|
|
222
|
-
/**
|
|
223
|
-
* Sets the data item field that represents the start of a group. Applicable to objects data.
|
|
224
|
-
*/
|
|
225
|
-
groupField?: string;
|
|
226
|
-
/**
|
|
227
|
-
* Fires when a AutoComplete group header item is about to be rendered. Used to override the default appearance of the group's headers.
|
|
228
|
-
*/
|
|
229
|
-
groupHeaderItemRender?: (li: React.ReactElement<HTMLLIElement>, itemProps: ListGroupItemProps) => React.ReactNode;
|
|
230
|
-
/**
|
|
231
|
-
* Fires when a AutoComplete sticky group header item is about to be rendered. Used to override the default appearance of the sticky group header of the component.
|
|
232
|
-
*/
|
|
233
|
-
groupStickyHeaderItemRender?: (div: React.ReactElement<HTMLDivElement>, stickyHeaderProps: GroupStickyHeaderProps) => React.ReactNode;
|
|
234
|
-
/**
|
|
235
|
-
* @hidden
|
|
236
|
-
*/
|
|
237
|
-
list?: any;
|
|
238
|
-
/**
|
|
239
|
-
* Sets the key for comparing the data items of the AutoComplete. If `dataItemKey` is not set, the AutoComplete compares the items by reference.
|
|
240
|
-
*/
|
|
241
|
-
dataItemKey?: string;
|
|
242
|
-
/**
|
|
243
|
-
* Defines if AutoComplete's disabled items will be skipped or focused when navigating through the list of items using a keyboard. Defaults to `true`.
|
|
244
|
-
*/
|
|
245
|
-
skipDisabledItems?: boolean;
|
|
246
|
-
/**
|
|
247
|
-
* Sets a custom prefix to the AutoComplete component.
|
|
248
|
-
*/
|
|
249
|
-
prefix?: CustomComponent<any>;
|
|
250
|
-
/**
|
|
251
|
-
* Sets a custom suffix to the AutoComplete component.
|
|
252
|
-
*/
|
|
253
|
-
suffix?: CustomComponent<any>;
|
|
254
|
-
}
|