@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
|
@@ -1,85 +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 { MultiSelectTreeProps, MultiSelectTreeHandle } from './MultiSelectTreeProps';
|
|
7
|
-
/**
|
|
8
|
-
* Represents the PropsContext of the `MultiSelectTree` component.
|
|
9
|
-
* Used for global configuration of all `MultiSelectTree` instances.
|
|
10
|
-
*
|
|
11
|
-
* For more information, refer to the [Dropdowns Props Context]({% slug props-context_dropdowns %}) article.
|
|
12
|
-
*/
|
|
13
|
-
export declare const MultiSelectTreePropsContext: React.Context<(p: MultiSelectTreeProps) => MultiSelectTreeProps>;
|
|
14
|
-
/**
|
|
15
|
-
* Represents the MultiSelectTree component.
|
|
16
|
-
*
|
|
17
|
-
* Accepts properties of type [MultiSelectTreeProps]({% slug api_dropdowns_multiselecttreeprops %}).
|
|
18
|
-
* Obtaining the `ref` returns an object of type [MultiSelectTreeHandle]({% slug api_dropdowns_multiselecttreehandle %}).
|
|
19
|
-
*
|
|
20
|
-
* @example
|
|
21
|
-
* ```jsx
|
|
22
|
-
* const dataItemKey = 'id';
|
|
23
|
-
* const checkField = 'checkField';
|
|
24
|
-
* const checkIndeterminateField = 'checkIndeterminateField';
|
|
25
|
-
* const subItemsField = 'items';
|
|
26
|
-
* const expandField = 'expanded';
|
|
27
|
-
* const textField = 'text';
|
|
28
|
-
* const fields = {
|
|
29
|
-
* dataItemKey,
|
|
30
|
-
* checkField,
|
|
31
|
-
* checkIndeterminateField,
|
|
32
|
-
* expandField,
|
|
33
|
-
* subItemsField,
|
|
34
|
-
* };
|
|
35
|
-
* const App = () => {
|
|
36
|
-
* const [value, setValue] = React.useState([]);
|
|
37
|
-
* const [expanded, setExpanded] = React.useState([data[0][dataItemKey]]);
|
|
38
|
-
* const onChange = (event) =>
|
|
39
|
-
* setValue(
|
|
40
|
-
* getMultiSelectTreeValue(data, {
|
|
41
|
-
* ...fields,
|
|
42
|
-
* ...event,
|
|
43
|
-
* value,
|
|
44
|
-
* })
|
|
45
|
-
* );
|
|
46
|
-
* const onExpandChange = React.useCallback(
|
|
47
|
-
* (event) => setExpanded(expandedState(event.item, dataItemKey, expanded)),
|
|
48
|
-
* [expanded]
|
|
49
|
-
* );
|
|
50
|
-
* const treeData = React.useMemo(
|
|
51
|
-
* () =>
|
|
52
|
-
* processMultiSelectTreeData(data, {
|
|
53
|
-
* expanded,
|
|
54
|
-
* value,
|
|
55
|
-
* ...fields,
|
|
56
|
-
* }),
|
|
57
|
-
* [expanded, value]
|
|
58
|
-
* );
|
|
59
|
-
*
|
|
60
|
-
* return (
|
|
61
|
-
* <div>
|
|
62
|
-
* <div>Categories:</div>
|
|
63
|
-
* <MultiSelectTree
|
|
64
|
-
* style={{
|
|
65
|
-
* width: '300px',
|
|
66
|
-
* }}
|
|
67
|
-
* data={treeData}
|
|
68
|
-
* value={value}
|
|
69
|
-
* onChange={onChange}
|
|
70
|
-
* placeholder="Please select ..."
|
|
71
|
-
* textField={textField}
|
|
72
|
-
* dataItemKey={dataItemKey}
|
|
73
|
-
* checkField={checkField}
|
|
74
|
-
* checkIndeterminateField={checkIndeterminateField}
|
|
75
|
-
* expandField={expandField}
|
|
76
|
-
* subItemsField={subItemsField}
|
|
77
|
-
* onExpandChange={onExpandChange}
|
|
78
|
-
* />
|
|
79
|
-
* </div>
|
|
80
|
-
* );
|
|
81
|
-
* };
|
|
82
|
-
* ReactDOM.render(<App />, document.querySelector('my-app'));
|
|
83
|
-
* ```
|
|
84
|
-
*/
|
|
85
|
-
export declare const MultiSelectTree: React.ForwardRefExoticComponent<MultiSelectTreeProps & React.RefAttributes<MultiSelectTreeHandle | null>>;
|
|
@@ -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 * as React from 'react';
|
|
6
|
-
import { FormComponentProps } from '@progress/kendo-react-common';
|
|
7
|
-
import { ItemRenderProps } from '@progress/kendo-react-treeview';
|
|
8
|
-
import { FilterChangeEvent, OpenEvent, CloseEvent, FocusEvent, BlurEvent, DropdownEvent, CancelEvent } from '../common/events';
|
|
9
|
-
import { DropDownsPopupSettings } from '../common/settings';
|
|
10
|
-
import { TagData } from '../MultiSelect/TagList';
|
|
11
|
-
/**
|
|
12
|
-
* Represents the Object which is passed to the
|
|
13
|
-
* [`ref`](https://reactjs.org/docs/refs-and-the-dom.html) callback of the MultiSelectTree component.
|
|
14
|
-
*/
|
|
15
|
-
export interface MultiSelectTreeHandle {
|
|
16
|
-
/**
|
|
17
|
-
* The current element or `null` if there is no one.
|
|
18
|
-
*/
|
|
19
|
-
element: HTMLElement | null;
|
|
20
|
-
/**
|
|
21
|
-
* The props of the MultiSelectTree component.
|
|
22
|
-
*/
|
|
23
|
-
props: MultiSelectTreeProps;
|
|
24
|
-
/**
|
|
25
|
-
* The focus function.
|
|
26
|
-
*/
|
|
27
|
-
focus: () => void;
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* Represents the object of the `onFilterChange` MultiSelectTree event.
|
|
31
|
-
*/
|
|
32
|
-
export interface MultiSelectTreeFilterChangeEvent extends FilterChangeEvent<MultiSelectTreeHandle> {
|
|
33
|
-
}
|
|
34
|
-
export type MultiSelectTreeChangeEventOperation = 'clear' | 'delete' | 'toggle';
|
|
35
|
-
/**
|
|
36
|
-
* Represents the object of the `onChange` MultiSelectTree event.
|
|
37
|
-
*/
|
|
38
|
-
export interface MultiSelectTreeChangeEvent extends DropdownEvent<MultiSelectTreeHandle> {
|
|
39
|
-
/**
|
|
40
|
-
* The items related to current operation.
|
|
41
|
-
*/
|
|
42
|
-
items: any[];
|
|
43
|
-
/**
|
|
44
|
-
* Describes the current operation:
|
|
45
|
-
* * `clear` - clear button is clicked and value is cleared. Null value is retured.
|
|
46
|
-
* * `delete` - tag is deleted using keyboard or mouse. The items contained in current tag are returned.
|
|
47
|
-
* * `toggle` - item in TreeView is toggled. Single item is returned.
|
|
48
|
-
*/
|
|
49
|
-
operation: MultiSelectTreeChangeEventOperation;
|
|
50
|
-
}
|
|
51
|
-
/**
|
|
52
|
-
* Represents the object of the `onOpen` MultiSelectTree event.
|
|
53
|
-
*/
|
|
54
|
-
export interface MultiSelectTreeOpenEvent extends OpenEvent<MultiSelectTreeHandle> {
|
|
55
|
-
}
|
|
56
|
-
/**
|
|
57
|
-
* Represents the object of the `onClose` MultiSelectTree event.
|
|
58
|
-
*/
|
|
59
|
-
export interface MultiSelectTreeCloseEvent extends CloseEvent<MultiSelectTreeHandle> {
|
|
60
|
-
}
|
|
61
|
-
/**
|
|
62
|
-
* Represents the object of the `onFocus` MultiSelectTree event.
|
|
63
|
-
*/
|
|
64
|
-
export interface MultiSelectTreeFocusEvent extends FocusEvent<MultiSelectTreeHandle> {
|
|
65
|
-
}
|
|
66
|
-
/**
|
|
67
|
-
* Represents the object of the `onBlur` MultiSelectTree event.
|
|
68
|
-
*/
|
|
69
|
-
export interface MultiSelectTreeBlurEvent extends BlurEvent<MultiSelectTreeHandle> {
|
|
70
|
-
}
|
|
71
|
-
/**
|
|
72
|
-
* Represents the object of the `onCancel` MultiSelectTree event.
|
|
73
|
-
*/
|
|
74
|
-
export interface MultiSelectTreeCancelEvent extends CancelEvent<MultiSelectTreeHandle> {
|
|
75
|
-
}
|
|
76
|
-
/**
|
|
77
|
-
* Represents the object of the `onExpandChange` MultiSelectTree event.
|
|
78
|
-
*/
|
|
79
|
-
export interface MultiSelectTreeExpandEvent extends DropdownEvent<MultiSelectTreeHandle> {
|
|
80
|
-
item: any;
|
|
81
|
-
level: number[];
|
|
82
|
-
}
|
|
83
|
-
/**
|
|
84
|
-
* The props of component that will be used for rendering each of the MultiSelectTree items
|
|
85
|
-
* ([see example]({% slug customrendering_multiselecttree %}#toc-items-and-value-element)).
|
|
86
|
-
*/
|
|
87
|
-
export interface MultiSelectTreeItemProps extends ItemRenderProps {
|
|
88
|
-
}
|
|
89
|
-
/**
|
|
90
|
-
* The props of component that will be used for rendering each of the MultiSelectTree tags
|
|
91
|
-
*/
|
|
92
|
-
export interface MultiSelectTreeTagProps {
|
|
93
|
-
tagData: TagData;
|
|
94
|
-
guid: string;
|
|
95
|
-
focusedTag?: TagData;
|
|
96
|
-
onTagDelete: (items: Array<any>, event: React.MouseEvent<HTMLSpanElement>) => void;
|
|
97
|
-
}
|
|
98
|
-
/**
|
|
99
|
-
* The props of the `ListNoData` component ([see example]({% slug customrendering_multiselecttree %}#toc-no-data)).
|
|
100
|
-
*/
|
|
101
|
-
export interface MultiSelectTreeListNoDataProps {
|
|
102
|
-
children?: React.ReactNode;
|
|
103
|
-
}
|
|
104
|
-
/**
|
|
105
|
-
* Represents the props of the [KendoReact MultiSelectTree component]({% slug overview_multiselecttree %}).
|
|
106
|
-
*/
|
|
107
|
-
export interface MultiSelectTreeProps extends FormComponentProps {
|
|
108
|
-
/**
|
|
109
|
-
* Sets the data of the MultiSelectTree ([see example]({% slug overview_multiselecttree %})).
|
|
110
|
-
*/
|
|
111
|
-
data?: any[];
|
|
112
|
-
/**
|
|
113
|
-
* Sets the opened state of the MultiSelectTree.
|
|
114
|
-
*/
|
|
115
|
-
opened?: boolean;
|
|
116
|
-
/**
|
|
117
|
-
* The styles that are applied to the MultiSelectTree.
|
|
118
|
-
*/
|
|
119
|
-
style?: React.CSSProperties;
|
|
120
|
-
/**
|
|
121
|
-
* Sets the value of the MultiSelectTree. It can either be of the primitive (string, numbers) or of the complex (objects) type.
|
|
122
|
-
*/
|
|
123
|
-
value?: Array<any>;
|
|
124
|
-
/**
|
|
125
|
-
* The hint that is displayed when the MultiSelectTree is empty.
|
|
126
|
-
*/
|
|
127
|
-
placeholder?: string;
|
|
128
|
-
/**
|
|
129
|
-
* Sets the key for comparing the data items of the MultiSelectTree ([see example]({% slug overview_multiselecttree %})).
|
|
130
|
-
* If `dataItemKey` is not set, the MultiSelectTree compares the items by reference.
|
|
131
|
-
*/
|
|
132
|
-
dataItemKey: string;
|
|
133
|
-
/**
|
|
134
|
-
* Sets additional classes to the MultiSelectTree.
|
|
135
|
-
*/
|
|
136
|
-
className?: string;
|
|
137
|
-
/**
|
|
138
|
-
* Sets the disabled state of the MultiSelectTree.
|
|
139
|
-
*/
|
|
140
|
-
disabled?: boolean;
|
|
141
|
-
/**
|
|
142
|
-
* Represents the `dir` HTML attribute.
|
|
143
|
-
*/
|
|
144
|
-
dir?: string;
|
|
145
|
-
/**
|
|
146
|
-
* Renders a floating label for the MultiSelectTree.
|
|
147
|
-
*/
|
|
148
|
-
label?: string;
|
|
149
|
-
/**
|
|
150
|
-
* Specifies the id of the component.
|
|
151
|
-
*/
|
|
152
|
-
id?: string;
|
|
153
|
-
/**
|
|
154
|
-
* Sets the tags of the MultiSelect ([see example]({% slug customtags_multiselect %})).
|
|
155
|
-
*/
|
|
156
|
-
tags?: Array<TagData>;
|
|
157
|
-
/**
|
|
158
|
-
* 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).
|
|
159
|
-
* For example these elements could contain error or hint message.
|
|
160
|
-
*/
|
|
161
|
-
ariaDescribedBy?: string;
|
|
162
|
-
/**
|
|
163
|
-
* Identifies the element(s) which will label the component.
|
|
164
|
-
*/
|
|
165
|
-
ariaLabelledBy?: string;
|
|
166
|
-
/**
|
|
167
|
-
* Enables the filtering functionality of the MultiSelectTree ([more information and examples]({% slug filtering_multiselecttree %})).
|
|
168
|
-
*/
|
|
169
|
-
filterable?: boolean;
|
|
170
|
-
/**
|
|
171
|
-
* Sets the value of filtering input.
|
|
172
|
-
* Useful for making the filtering input a [controlled component](https://reactjs.org/docs/forms.html#controlled-components).
|
|
173
|
-
*/
|
|
174
|
-
filter?: string;
|
|
175
|
-
/**
|
|
176
|
-
* Sets the loading state of the MultiSelectTree ([see example]({% slug filtering_multiselecttree %}#toc-visualize-filtering)).
|
|
177
|
-
*/
|
|
178
|
-
loading?: boolean;
|
|
179
|
-
/**
|
|
180
|
-
* Specifies the `tabIndex` of the MultiSelectTree.
|
|
181
|
-
*/
|
|
182
|
-
tabIndex?: number;
|
|
183
|
-
/**
|
|
184
|
-
* Specifies the `accessKey` of the MultiSelectTree.
|
|
185
|
-
*/
|
|
186
|
-
accessKey?: string;
|
|
187
|
-
/**
|
|
188
|
-
* Sets the data item field that represents the item text ([see example]({% slug overview_multiselecttree %})).
|
|
189
|
-
*/
|
|
190
|
-
textField: string;
|
|
191
|
-
/**
|
|
192
|
-
* Specifies the name of the field which will provide a Boolean representation of the checked state of the item.
|
|
193
|
-
*/
|
|
194
|
-
checkField?: string;
|
|
195
|
-
/**
|
|
196
|
-
* Specifies the name of the field which will provide a Boolean representation of the checked indeterminaet state of the item.
|
|
197
|
-
*/
|
|
198
|
-
checkIndeterminateField?: string;
|
|
199
|
-
/**
|
|
200
|
-
* Specifies the name of the field which will provide a Boolean representation of the expanded state of the item.
|
|
201
|
-
*/
|
|
202
|
-
expandField?: string;
|
|
203
|
-
/**
|
|
204
|
-
* Specifies the name of the field which will provide an array representation of the item subitems.
|
|
205
|
-
* Defaults to 'items'.
|
|
206
|
-
*/
|
|
207
|
-
subItemsField?: string;
|
|
208
|
-
/**
|
|
209
|
-
* Configures the popup of the MultiSelectTree.
|
|
210
|
-
*/
|
|
211
|
-
popupSettings?: DropDownsPopupSettings;
|
|
212
|
-
/**
|
|
213
|
-
* 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.
|
|
214
|
-
*
|
|
215
|
-
* @example
|
|
216
|
-
* ```jsx-no-run
|
|
217
|
-
* class App extends React.Component {
|
|
218
|
-
* render() {
|
|
219
|
-
* return (
|
|
220
|
-
* <form>
|
|
221
|
-
* <MultiSelectTree
|
|
222
|
-
* data={[ { text: "Austria", id: 1 } , { text: "Belarus", id: 2 } ]}
|
|
223
|
-
* valueMap={value => value && value.id}
|
|
224
|
-
* />
|
|
225
|
-
* <button type="submit">Submit</button>
|
|
226
|
-
* </form>
|
|
227
|
-
* );
|
|
228
|
-
* }
|
|
229
|
-
* }
|
|
230
|
-
* ReactDOM.render(<App />, document.querySelector('my-app'));
|
|
231
|
-
* ```
|
|
232
|
-
*/
|
|
233
|
-
valueMap?: (value: Array<any>) => any;
|
|
234
|
-
/**
|
|
235
|
-
* Fires each time the popup of the MultiSelectTree is about to open.
|
|
236
|
-
*/
|
|
237
|
-
onOpen?: (event: MultiSelectTreeOpenEvent) => void;
|
|
238
|
-
/**
|
|
239
|
-
* Fires each time the popup of the MultiSelectTree is about to close.
|
|
240
|
-
*/
|
|
241
|
-
onClose?: (event: MultiSelectTreeCloseEvent) => void;
|
|
242
|
-
/**
|
|
243
|
-
* Fires each time the user focuses the MultiSelectTree.
|
|
244
|
-
*/
|
|
245
|
-
onFocus?: (event: MultiSelectTreeFocusEvent) => void;
|
|
246
|
-
/**
|
|
247
|
-
* Fires each time the MultiSelectTree gets blurred.
|
|
248
|
-
*/
|
|
249
|
-
onBlur?: (event: MultiSelectTreeBlurEvent) => void;
|
|
250
|
-
/**
|
|
251
|
-
* Fires each time the value of the MultiSelectTree is about to change ([see examples]({% slug overview_multiselecttree %})).
|
|
252
|
-
*/
|
|
253
|
-
onChange?: (event: MultiSelectTreeChangeEvent) => void;
|
|
254
|
-
/**
|
|
255
|
-
* Fires each time the popup of the MultiSelectTree is about to cancel in ([adaptive mode]({% slug adaptive_rendering_multiselecttree %})).
|
|
256
|
-
*/
|
|
257
|
-
onCancel?: (event: MultiSelectTreeCancelEvent) => void;
|
|
258
|
-
/**
|
|
259
|
-
* Fires each time the user types in the filter input
|
|
260
|
-
* ([see example]({% slug filtering_multiselecttree %}#toc-basic-configuration)).
|
|
261
|
-
* You can filter the source based on the passed filtration value.
|
|
262
|
-
*/
|
|
263
|
-
onFilterChange?: (event: MultiSelectTreeFilterChangeEvent) => void;
|
|
264
|
-
/**
|
|
265
|
-
* Fires when the expanding or collapsing of an item is requested ([see examples]({% slug overview_multiselecttree %})).
|
|
266
|
-
*/
|
|
267
|
-
onExpandChange?: (event: any) => void;
|
|
268
|
-
/**
|
|
269
|
-
* Defines the component that will be used for rendering each of the MultiSelectTree items
|
|
270
|
-
* ([see example]({% slug customrendering_multiselecttree %}#toc-items-and-value-element)).
|
|
271
|
-
*/
|
|
272
|
-
item?: React.ComponentType<MultiSelectTreeItemProps>;
|
|
273
|
-
/**
|
|
274
|
-
* Defines the component that will be rendered in the MultiSelectTree popup when no data is available
|
|
275
|
-
* ([see example]({% slug customrendering_multiselecttree %}#toc-no-data)).
|
|
276
|
-
*/
|
|
277
|
-
listNoData?: React.ComponentType<MultiSelectTreeListNoDataProps>;
|
|
278
|
-
tag?: React.ComponentType<MultiSelectTreeTagProps>;
|
|
279
|
-
/**
|
|
280
|
-
* Configures the `size` of the MultiSelectTree.
|
|
281
|
-
*
|
|
282
|
-
* The available options are:
|
|
283
|
-
* - small
|
|
284
|
-
* - medium
|
|
285
|
-
* - large
|
|
286
|
-
* - null—Does not set a size `className`.
|
|
287
|
-
*
|
|
288
|
-
* @default `medium`
|
|
289
|
-
*/
|
|
290
|
-
size?: null | 'small' | 'medium' | 'large';
|
|
291
|
-
/**
|
|
292
|
-
* Configures the `roundness` of the MultiSelectTree.
|
|
293
|
-
*
|
|
294
|
-
* The available options are:
|
|
295
|
-
* - small
|
|
296
|
-
* - medium
|
|
297
|
-
* - large
|
|
298
|
-
* - full
|
|
299
|
-
* - null—Does not set a rounded `className`.
|
|
300
|
-
*
|
|
301
|
-
* @default `medium`
|
|
302
|
-
*/
|
|
303
|
-
rounded?: null | 'small' | 'medium' | 'large' | 'full';
|
|
304
|
-
/**
|
|
305
|
-
* Configures the `fillMode` of the MultiSelectTree.
|
|
306
|
-
*
|
|
307
|
-
* The available options are:
|
|
308
|
-
* - solid
|
|
309
|
-
* - flat
|
|
310
|
-
* - outline
|
|
311
|
-
* - null—Does not set a fillMode `className`.
|
|
312
|
-
*
|
|
313
|
-
* @default `solid`
|
|
314
|
-
*/
|
|
315
|
-
fillMode?: null | 'solid' | 'flat' | 'outline';
|
|
316
|
-
/**
|
|
317
|
-
* Providing different rendering of the popup element based on the screen dimensions.
|
|
318
|
-
*/
|
|
319
|
-
adaptive?: boolean;
|
|
320
|
-
/**
|
|
321
|
-
* Specifies the text that is rendered as title in the adaptive popup.
|
|
322
|
-
*/
|
|
323
|
-
adaptiveTitle?: string | React.ReactNode;
|
|
324
|
-
}
|
|
@@ -1,21 +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 { MultiSelectTreeChangeEventOperation } from './MultiSelectTreeProps';
|
|
6
|
-
/** @hidden */
|
|
7
|
-
export declare const getValueMap: (value: any[], idGetter: any) => any;
|
|
8
|
-
/**
|
|
9
|
-
* Get MultiSelectTree new value from the component `onChange` event.
|
|
10
|
-
*
|
|
11
|
-
* @param {any[]} data
|
|
12
|
-
* @param {object} options
|
|
13
|
-
* @returns {any[]}
|
|
14
|
-
*/
|
|
15
|
-
export declare const getMultiSelectTreeValue: (data: any[], options: {
|
|
16
|
-
subItemsField?: string;
|
|
17
|
-
dataItemKey: string;
|
|
18
|
-
items: any;
|
|
19
|
-
value: Array<any>;
|
|
20
|
-
operation: MultiSelectTreeChangeEventOperation;
|
|
21
|
-
}) => any[];
|
package/common/AdaptiveMode.d.ts
DELETED
|
@@ -1,25 +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
|
-
/** @hidden */
|
|
7
|
-
export interface AdaptiveModeProps {
|
|
8
|
-
navigatable?: boolean;
|
|
9
|
-
navigatableElements?: string[];
|
|
10
|
-
expand: boolean;
|
|
11
|
-
animation?: boolean;
|
|
12
|
-
adaptiveTitle?: string | React.ReactNode;
|
|
13
|
-
onClose?: (event: React.SyntheticEvent) => void;
|
|
14
|
-
windowWidth?: number;
|
|
15
|
-
mobileFilter?: React.ReactNode;
|
|
16
|
-
children: React.ReactNode;
|
|
17
|
-
footer?: {
|
|
18
|
-
cancelText: string;
|
|
19
|
-
onCancel: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
20
|
-
applyText: string;
|
|
21
|
-
onApply: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
22
|
-
};
|
|
23
|
-
}
|
|
24
|
-
/** @hidden */
|
|
25
|
-
export declare const AdaptiveMode: (props: AdaptiveModeProps) => import("react/jsx-runtime").JSX.Element;
|
package/common/ClearButton.d.ts
DELETED
|
@@ -1,18 +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
|
-
/**
|
|
7
|
-
* @hidden
|
|
8
|
-
*/
|
|
9
|
-
export interface ClearButtonProps {
|
|
10
|
-
onClick?: React.MouseEventHandler<HTMLSpanElement>;
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* @hidden
|
|
14
|
-
*/
|
|
15
|
-
export default class ClearButton extends React.Component<ClearButtonProps> {
|
|
16
|
-
onMouseDown: (e: any) => any;
|
|
17
|
-
render(): import("react/jsx-runtime").JSX.Element;
|
|
18
|
-
}
|
package/common/DropDownBase.d.ts
DELETED
|
@@ -1,180 +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 VirtualScroll from './VirtualScroll';
|
|
8
|
-
import { Navigation } from './Navigation';
|
|
9
|
-
import { ListItemProps } from './ListItem';
|
|
10
|
-
import { InternalState, DropDownStateBase, Page, DropDownsPopupSettings, VirtualizationSettings } from './settings';
|
|
11
|
-
/**
|
|
12
|
-
* @hidden
|
|
13
|
-
*/
|
|
14
|
-
export interface DropDownComponentProps {
|
|
15
|
-
data?: any[];
|
|
16
|
-
opened?: boolean;
|
|
17
|
-
value?: any;
|
|
18
|
-
disabled?: boolean;
|
|
19
|
-
tabIndex?: number;
|
|
20
|
-
dir?: string;
|
|
21
|
-
defaultItem?: any;
|
|
22
|
-
filterable?: boolean;
|
|
23
|
-
filter?: string | null;
|
|
24
|
-
textField?: string;
|
|
25
|
-
dataItemKey?: string;
|
|
26
|
-
popupSettings?: DropDownsPopupSettings;
|
|
27
|
-
style?: React.CSSProperties;
|
|
28
|
-
virtual?: VirtualizationSettings;
|
|
29
|
-
onOpen?: (event: any) => void;
|
|
30
|
-
onClose?: (event: any) => void;
|
|
31
|
-
onFocus?: (event: any) => void;
|
|
32
|
-
onBlur?: (event: any) => void;
|
|
33
|
-
onChange?: (event: any) => void;
|
|
34
|
-
onFilterChange?: (event: any) => void;
|
|
35
|
-
onPageChange?: (event: any) => void;
|
|
36
|
-
itemRender?: (li: React.ReactElement<HTMLLIElement>, itemProps: ListItemProps) => React.ReactNode;
|
|
37
|
-
listNoDataRender?: (element: React.ReactElement<HTMLDivElement>) => React.ReactNode;
|
|
38
|
-
header?: React.ReactNode;
|
|
39
|
-
footer?: React.ReactNode;
|
|
40
|
-
id?: string;
|
|
41
|
-
}
|
|
42
|
-
/**
|
|
43
|
-
* @hidden
|
|
44
|
-
*/
|
|
45
|
-
export interface DropDownComponent {
|
|
46
|
-
props: DropDownComponentProps;
|
|
47
|
-
setState: Function;
|
|
48
|
-
forceUpdate: Function;
|
|
49
|
-
state: DropDownStateBase;
|
|
50
|
-
element: HTMLSpanElement | null;
|
|
51
|
-
handleItemSelect: Function;
|
|
52
|
-
value: any;
|
|
53
|
-
}
|
|
54
|
-
/**
|
|
55
|
-
* @hidden
|
|
56
|
-
*/
|
|
57
|
-
export default class DropDownBase {
|
|
58
|
-
static basicPropTypes: {
|
|
59
|
-
opened: PropTypes.Requireable<boolean>;
|
|
60
|
-
disabled: PropTypes.Requireable<boolean>;
|
|
61
|
-
dir: PropTypes.Requireable<string>;
|
|
62
|
-
tabIndex: PropTypes.Requireable<number>;
|
|
63
|
-
accessKey: PropTypes.Requireable<string>;
|
|
64
|
-
data: PropTypes.Requireable<any[]>;
|
|
65
|
-
textField: PropTypes.Requireable<string>;
|
|
66
|
-
className: PropTypes.Requireable<string>;
|
|
67
|
-
label: PropTypes.Requireable<string>;
|
|
68
|
-
loading: PropTypes.Requireable<boolean>;
|
|
69
|
-
popupSettings: PropTypes.Requireable<PropTypes.InferProps<{
|
|
70
|
-
animate: PropTypes.Requireable<NonNullable<boolean | PropTypes.InferProps<{
|
|
71
|
-
openDuration: PropTypes.Requireable<number>;
|
|
72
|
-
closeDuration: PropTypes.Requireable<number>;
|
|
73
|
-
}> | null | undefined>>;
|
|
74
|
-
popupClass: PropTypes.Requireable<string>;
|
|
75
|
-
className: PropTypes.Requireable<string>;
|
|
76
|
-
appendTo: PropTypes.Requireable<any>;
|
|
77
|
-
width: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
|
|
78
|
-
height: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
|
|
79
|
-
}>>;
|
|
80
|
-
onOpen: PropTypes.Requireable<(...args: any[]) => any>;
|
|
81
|
-
onClose: PropTypes.Requireable<(...args: any[]) => any>;
|
|
82
|
-
onFocus: PropTypes.Requireable<(...args: any[]) => any>;
|
|
83
|
-
onBlur: PropTypes.Requireable<(...args: any[]) => any>;
|
|
84
|
-
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
85
|
-
itemRender: PropTypes.Requireable<(...args: any[]) => any>;
|
|
86
|
-
listNoDataRender: PropTypes.Requireable<(...args: any[]) => any>;
|
|
87
|
-
focusedItemIndex: PropTypes.Requireable<(...args: any[]) => any>;
|
|
88
|
-
header: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
89
|
-
footer: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
90
|
-
};
|
|
91
|
-
static propTypes: {
|
|
92
|
-
value: PropTypes.Requireable<any>;
|
|
93
|
-
defaultValue: PropTypes.Requireable<any>;
|
|
94
|
-
filterable: PropTypes.Requireable<boolean>;
|
|
95
|
-
filter: PropTypes.Requireable<string>;
|
|
96
|
-
virtual: PropTypes.Requireable<PropTypes.InferProps<{
|
|
97
|
-
pageSize: PropTypes.Validator<number>;
|
|
98
|
-
skip: PropTypes.Validator<number>;
|
|
99
|
-
total: PropTypes.Validator<number>;
|
|
100
|
-
}>>;
|
|
101
|
-
onFilterChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
102
|
-
onPageChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
103
|
-
opened: PropTypes.Requireable<boolean>;
|
|
104
|
-
disabled: PropTypes.Requireable<boolean>;
|
|
105
|
-
dir: PropTypes.Requireable<string>;
|
|
106
|
-
tabIndex: PropTypes.Requireable<number>;
|
|
107
|
-
accessKey: PropTypes.Requireable<string>;
|
|
108
|
-
data: PropTypes.Requireable<any[]>;
|
|
109
|
-
textField: PropTypes.Requireable<string>;
|
|
110
|
-
className: PropTypes.Requireable<string>;
|
|
111
|
-
label: PropTypes.Requireable<string>;
|
|
112
|
-
loading: PropTypes.Requireable<boolean>;
|
|
113
|
-
popupSettings: PropTypes.Requireable<PropTypes.InferProps<{
|
|
114
|
-
animate: PropTypes.Requireable<NonNullable<boolean | PropTypes.InferProps<{
|
|
115
|
-
openDuration: PropTypes.Requireable<number>;
|
|
116
|
-
closeDuration: PropTypes.Requireable<number>;
|
|
117
|
-
}> | null | undefined>>;
|
|
118
|
-
popupClass: PropTypes.Requireable<string>;
|
|
119
|
-
className: PropTypes.Requireable<string>;
|
|
120
|
-
appendTo: PropTypes.Requireable<any>;
|
|
121
|
-
width: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
|
|
122
|
-
height: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
|
|
123
|
-
}>>;
|
|
124
|
-
onOpen: PropTypes.Requireable<(...args: any[]) => any>;
|
|
125
|
-
onClose: PropTypes.Requireable<(...args: any[]) => any>;
|
|
126
|
-
onFocus: PropTypes.Requireable<(...args: any[]) => any>;
|
|
127
|
-
onBlur: PropTypes.Requireable<(...args: any[]) => any>;
|
|
128
|
-
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
129
|
-
itemRender: PropTypes.Requireable<(...args: any[]) => any>;
|
|
130
|
-
listNoDataRender: PropTypes.Requireable<(...args: any[]) => any>;
|
|
131
|
-
focusedItemIndex: PropTypes.Requireable<(...args: any[]) => any>;
|
|
132
|
-
header: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
133
|
-
footer: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
134
|
-
};
|
|
135
|
-
static defaultProps: {
|
|
136
|
-
popupSettings: {
|
|
137
|
-
height: string;
|
|
138
|
-
};
|
|
139
|
-
required: boolean;
|
|
140
|
-
validityStyles: boolean;
|
|
141
|
-
};
|
|
142
|
-
popupWidth?: string;
|
|
143
|
-
wrapper: HTMLSpanElement | null;
|
|
144
|
-
list: HTMLUListElement | null;
|
|
145
|
-
dirCalculated?: string;
|
|
146
|
-
readonly vs: VirtualScroll;
|
|
147
|
-
readonly navigation: Navigation;
|
|
148
|
-
readonly listBoxId: string;
|
|
149
|
-
readonly guid: string;
|
|
150
|
-
readonly component: DropDownComponent;
|
|
151
|
-
constructor(component: DropDownComponent);
|
|
152
|
-
didMount(): void;
|
|
153
|
-
calculateDir(): void;
|
|
154
|
-
calculatePopupWidth(): void;
|
|
155
|
-
scrollToItem(itemIndex: number, vsEnabled?: boolean, once?: boolean): void;
|
|
156
|
-
handleItemClick: (index: number, event: React.MouseEvent<HTMLLIElement> | React.KeyboardEvent<HTMLInputElement>) => void;
|
|
157
|
-
handleFocus: React.FocusEventHandler<HTMLSpanElement>;
|
|
158
|
-
filterChanged: (text: string | null, state: InternalState) => void;
|
|
159
|
-
initState(): InternalState;
|
|
160
|
-
applyState(state: InternalState): void;
|
|
161
|
-
togglePopup: (state: InternalState) => void;
|
|
162
|
-
pageChange: (page: Page, syntheticEvent: React.SyntheticEvent<any>) => void;
|
|
163
|
-
triggerOnPageChange(state: InternalState, skip: number, take: number): void;
|
|
164
|
-
triggerPageChangeCornerItems(item: any, state: InternalState): void;
|
|
165
|
-
scrollToVirtualItem: (virtual: VirtualizationSettings, selectedItemIndex: number) => void;
|
|
166
|
-
/**
|
|
167
|
-
* @hidden
|
|
168
|
-
* Scrolls the data inside the popup of a selected DropDown by `one page`. The page size
|
|
169
|
-
* depends on the height of the popup.
|
|
170
|
-
*
|
|
171
|
-
* @param {number} direction Defines the direction(Up/Down) in which the page will be moved
|
|
172
|
-
* @param {number} filterHeight Defines the heigh of the filter element that appears in the DropDownList and DropDownTree.
|
|
173
|
-
* This property is added for handling the filtering scenarios of the mentioned components.
|
|
174
|
-
*/
|
|
175
|
-
scrollPopupByPageSize: (direction: number) => void;
|
|
176
|
-
renderScrollElement: () => false | import("react/jsx-runtime").JSX.Element;
|
|
177
|
-
getPopupSettings(): DropDownsPopupSettings;
|
|
178
|
-
getGroupedDataModernMode(data: any[], groupField: string): any[];
|
|
179
|
-
resetGroupStickyHeader: (groupName: string, that: any) => void;
|
|
180
|
-
}
|
|
@@ -1,28 +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
|
-
/**
|
|
7
|
-
* Represents the props of the GroupStickyHeader component.
|
|
8
|
-
*/
|
|
9
|
-
export interface GroupStickyHeaderProps {
|
|
10
|
-
/**
|
|
11
|
-
* The group that will be rendered.
|
|
12
|
-
*/
|
|
13
|
-
group?: string;
|
|
14
|
-
/**
|
|
15
|
-
* @hidden
|
|
16
|
-
*/
|
|
17
|
-
groupMode?: string;
|
|
18
|
-
/**
|
|
19
|
-
* 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.
|
|
20
|
-
*/
|
|
21
|
-
render?: (div: React.ReactElement<HTMLDivElement>, itemProps: GroupStickyHeaderProps) => React.ReactNode;
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* @hidden
|
|
25
|
-
*/
|
|
26
|
-
export default class GroupStickyHeader extends React.Component<GroupStickyHeaderProps, {}> {
|
|
27
|
-
render(): string | number | boolean | Iterable<React.ReactNode> | import("react/jsx-runtime").JSX.Element | null | undefined;
|
|
28
|
-
}
|