@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.
Files changed (107) hide show
  1. package/AutoComplete/AutoComplete.js +8 -0
  2. package/AutoComplete/AutoComplete.mjs +458 -0
  3. package/ComboBox/ComboBox.js +8 -0
  4. package/ComboBox/ComboBox.mjs +618 -0
  5. package/DropDownList/DropDownList.js +8 -0
  6. package/DropDownList/DropDownList.mjs +630 -0
  7. package/DropDownTree/DropDownTree.js +8 -0
  8. package/DropDownTree/DropDownTree.mjs +550 -0
  9. package/DropDownTree/ListNoData.js +8 -0
  10. package/DropDownTree/ListNoData.mjs +13 -0
  11. package/DropDownTree/useDropdownWidth.js +8 -0
  12. package/DropDownTree/useDropdownWidth.mjs +25 -0
  13. package/MultiColumnComboBox/MultiColumnComboBox.js +8 -0
  14. package/MultiColumnComboBox/MultiColumnComboBox.mjs +186 -0
  15. package/MultiSelect/MultiSelect.js +8 -0
  16. package/MultiSelect/MultiSelect.mjs +694 -0
  17. package/MultiSelect/TagList.js +8 -0
  18. package/MultiSelect/TagList.mjs +48 -0
  19. package/MultiSelectTree/MultiSelectTree.js +8 -0
  20. package/MultiSelectTree/MultiSelectTree.mjs +590 -0
  21. package/MultiSelectTree/utils.js +8 -0
  22. package/MultiSelectTree/utils.mjs +74 -0
  23. package/common/AdaptiveMode.js +8 -0
  24. package/common/AdaptiveMode.mjs +73 -0
  25. package/common/ClearButton.js +8 -0
  26. package/common/ClearButton.mjs +38 -0
  27. package/common/DropDownBase.js +8 -0
  28. package/common/DropDownBase.mjs +194 -0
  29. package/common/GroupStickyHeader.js +8 -0
  30. package/common/GroupStickyHeader.mjs +22 -0
  31. package/common/List.js +8 -0
  32. package/common/List.mjs +117 -0
  33. package/common/ListContainer.js +8 -0
  34. package/common/ListContainer.mjs +33 -0
  35. package/common/ListDefaultItem.js +8 -0
  36. package/common/ListDefaultItem.mjs +36 -0
  37. package/common/ListFilter.js +8 -0
  38. package/common/ListFilter.mjs +49 -0
  39. package/common/ListGroupItem.js +8 -0
  40. package/common/ListGroupItem.mjs +32 -0
  41. package/common/ListItem.js +8 -0
  42. package/common/ListItem.mjs +49 -0
  43. package/common/MultiColumnList.js +8 -0
  44. package/common/MultiColumnList.mjs +28 -0
  45. package/common/Navigation.js +8 -0
  46. package/common/Navigation.mjs +29 -0
  47. package/common/SearchBar.js +8 -0
  48. package/common/SearchBar.mjs +65 -0
  49. package/common/VirtualScroll.js +8 -0
  50. package/common/VirtualScroll.mjs +75 -0
  51. package/common/constants.js +8 -0
  52. package/common/constants.mjs +13 -0
  53. package/common/settings.js +8 -0
  54. package/common/settings.mjs +12 -0
  55. package/common/utils.js +8 -0
  56. package/common/utils.mjs +109 -0
  57. package/common/withCustomComponent.js +8 -0
  58. package/common/withCustomComponent.mjs +13 -0
  59. package/dist/cdn/js/kendo-react-dropdowns.js +8 -5
  60. package/index.d.mts +4098 -5
  61. package/index.d.ts +4098 -31
  62. package/index.js +8 -5
  63. package/index.mjs +55 -4429
  64. package/messages/index.js +8 -0
  65. package/messages/index.mjs +27 -0
  66. package/package-metadata.js +8 -0
  67. package/package-metadata.mjs +19 -0
  68. package/package.json +9 -9
  69. package/AutoComplete/AutoComplete.d.ts +0 -236
  70. package/AutoComplete/AutoCompleteProps.d.ts +0 -254
  71. package/ComboBox/ComboBox.d.ts +0 -254
  72. package/ComboBox/ComboBoxProps.d.ts +0 -324
  73. package/DropDownList/DropDownList.d.ts +0 -264
  74. package/DropDownList/DropDownListProps.d.ts +0 -329
  75. package/DropDownTree/DropDownTree.d.ts +0 -74
  76. package/DropDownTree/DropDownTreeProps.d.ts +0 -297
  77. package/DropDownTree/ListNoData.d.ts +0 -10
  78. package/DropDownTree/useDropdownWidth.d.ts +0 -10
  79. package/MultiColumnComboBox/MultiColumnComboBox.d.ts +0 -300
  80. package/MultiSelect/MultiSelect.d.ts +0 -262
  81. package/MultiSelect/MultiSelectProps.d.ts +0 -325
  82. package/MultiSelect/TagList.d.ts +0 -42
  83. package/MultiSelectTree/MultiSelectTree.d.ts +0 -85
  84. package/MultiSelectTree/MultiSelectTreeProps.d.ts +0 -324
  85. package/MultiSelectTree/utils.d.ts +0 -21
  86. package/common/AdaptiveMode.d.ts +0 -25
  87. package/common/ClearButton.d.ts +0 -18
  88. package/common/DropDownBase.d.ts +0 -180
  89. package/common/GroupStickyHeader.d.ts +0 -28
  90. package/common/List.d.ts +0 -50
  91. package/common/ListContainer.d.ts +0 -22
  92. package/common/ListDefaultItem.d.ts +0 -20
  93. package/common/ListFilter.d.ts +0 -23
  94. package/common/ListGroupItem.d.ts +0 -37
  95. package/common/ListItem.d.ts +0 -65
  96. package/common/MultiColumnList.d.ts +0 -9
  97. package/common/Navigation.d.ts +0 -17
  98. package/common/SearchBar.d.ts +0 -47
  99. package/common/VirtualScroll.d.ts +0 -45
  100. package/common/constants.d.ts +0 -8
  101. package/common/events.d.ts +0 -76
  102. package/common/filterDescriptor.d.ts +0 -45
  103. package/common/settings.d.ts +0 -109
  104. package/common/utils.d.ts +0 -70
  105. package/common/withCustomComponent.d.ts +0 -11
  106. package/messages/index.d.ts +0 -44
  107. package/package-metadata.d.ts +0 -9
@@ -1,262 +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 { FormComponent, FormComponentValidity } from '@progress/kendo-react-common';
8
- import { TagData } from './TagList';
9
- import DropDownBase from '../common/DropDownBase';
10
- import { MultiSelectProps } from './MultiSelectProps';
11
- import { DropDownStateBase, InternalState, ActiveDescendant } from './../common/settings';
12
- /** @hidden */
13
- export interface MultiSelectState extends DropDownStateBase {
14
- selectedItems?: Array<any>;
15
- focusedIndex?: number;
16
- focusedTag?: TagData;
17
- activedescendant?: ActiveDescendant;
18
- value?: Array<any>;
19
- currentValue?: Array<any>;
20
- windowWidth?: number;
21
- }
22
- /** @hidden */
23
- export interface MultiSelectInternalState extends InternalState {
24
- data: MultiSelectState;
25
- }
26
- /** @hidden */
27
- export declare class MultiSelectWithoutContext extends React.Component<MultiSelectProps, MultiSelectState> implements FormComponent {
28
- static displayName: string;
29
- /** @hidden */
30
- static propTypes: {
31
- autoClose: PropTypes.Requireable<boolean>;
32
- value: PropTypes.Requireable<any[]>;
33
- defaultValue: PropTypes.Requireable<any[]>;
34
- dataItemKey: PropTypes.Requireable<string>;
35
- placeholder: PropTypes.Requireable<string>;
36
- tags: PropTypes.Requireable<(PropTypes.InferProps<{
37
- text: PropTypes.Requireable<string>;
38
- data: PropTypes.Requireable<any[]>;
39
- }> | null | undefined)[]>;
40
- tagRender: PropTypes.Requireable<(...args: any[]) => any>;
41
- id: PropTypes.Requireable<string>;
42
- ariaLabelledBy: PropTypes.Requireable<string>;
43
- ariaDescribedBy: PropTypes.Requireable<string>;
44
- groupField: PropTypes.Requireable<string>;
45
- list: PropTypes.Requireable<any>;
46
- adaptive: PropTypes.Requireable<boolean>;
47
- adaptiveTitle: PropTypes.Requireable<string>;
48
- onCancel: PropTypes.Requireable<(...args: any[]) => any>;
49
- skipDisabledItems: PropTypes.Requireable<boolean>;
50
- filterable: PropTypes.Requireable<boolean>;
51
- filter: PropTypes.Requireable<string>;
52
- virtual: PropTypes.Requireable<PropTypes.InferProps<{
53
- pageSize: PropTypes.Validator<number>;
54
- skip: PropTypes.Validator<number>;
55
- total: PropTypes.Validator<number>;
56
- }>>;
57
- onFilterChange: PropTypes.Requireable<(...args: any[]) => any>;
58
- onPageChange: PropTypes.Requireable<(...args: any[]) => any>;
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
- /** @hidden */
92
- static defaultProps: {
93
- autoClose: boolean;
94
- required: boolean;
95
- size: "small" | "medium" | "large" | null | undefined;
96
- rounded: "small" | "medium" | "large" | "full" | null | undefined;
97
- fillMode: "solid" | "flat" | "outline" | null | undefined;
98
- groupMode: string | undefined;
99
- skipDisabledItems: boolean;
100
- prefix: undefined;
101
- suffix: undefined;
102
- popupSettings: {
103
- height: string;
104
- };
105
- validityStyles: boolean;
106
- };
107
- /** @hidden */
108
- readonly state: MultiSelectState;
109
- private _element;
110
- private _valueItemsDuringOnChange;
111
- private get _inputId();
112
- protected readonly base: DropDownBase;
113
- private readonly _tags;
114
- private _input;
115
- private _adaptiveInput;
116
- private _skipFocusEvent;
117
- private _lastSelectedOrDeslectedItemIndex;
118
- private itemHeight;
119
- protected scrollToFocused: boolean;
120
- private localization;
121
- private observerResize?;
122
- private get document();
123
- constructor(props: MultiSelectProps);
124
- /** @hidden */
125
- focus: () => void;
126
- /** @hidden */
127
- get element(): HTMLSpanElement | null;
128
- /** @hidden */
129
- get opened(): boolean;
130
- /** @hidden */
131
- get tagsToRender(): Array<TagData>;
132
- /**
133
- * The mobile mode of the ComboBox.
134
- */
135
- get mobileMode(): boolean;
136
- /**
137
- * Represents the value of the MultiSelect.
138
- */
139
- get value(): Array<any>;
140
- /**
141
- * Gets the `name` property of the MultiSelect.
142
- */
143
- get name(): string | undefined;
144
- /**
145
- * Represents the validity state into which the MultiSelect is set.
146
- */
147
- get validity(): FormComponentValidity;
148
- /** @hidden */
149
- protected get required(): boolean;
150
- protected get validityStyles(): boolean;
151
- /** @hidden */
152
- componentDidUpdate(prevProps: MultiSelectProps, prevState: MultiSelectState): void;
153
- /** @hidden */
154
- componentDidMount(): void;
155
- /** @hidden */
156
- componentWillUnmount(): void;
157
- /** @hidden */
158
- handleItemSelect: (index: number, state: MultiSelectInternalState) => void;
159
- /** @hidden */
160
- onTagDelete: (itemsToRemove: Array<any>, event: React.MouseEvent<HTMLSpanElement>) => void;
161
- /** @hidden */
162
- onNavigate(state: MultiSelectInternalState, keyCode: number, skipItems?: number): void;
163
- /** @hidden */
164
- itemFocus: (index: number, state: MultiSelectInternalState) => void;
165
- /** @hidden */
166
- render(): import("react/jsx-runtime").JSX.Element;
167
- private componentRef;
168
- private renderSearchBar;
169
- private searchbarRef;
170
- private onChangeHandler;
171
- private clearButtonClick;
172
- private onInputKeyDown;
173
- private onTagsNavigate;
174
- private triggerOnChange;
175
- private selectFocusedItem;
176
- private setItems;
177
- private getFocusedState;
178
- private listContainerContent;
179
- private renderListContainer;
180
- private renderAdaptiveListContainer;
181
- private closePopup;
182
- private onCancel;
183
- private renderList;
184
- private onScroll;
185
- private customItemSelect;
186
- private handleWrapperClick;
187
- private handleItemClick;
188
- private handleBlur;
189
- private handleFocus;
190
- private onPopupOpened;
191
- private onPopupClosed;
192
- private focusElement;
193
- private applyState;
194
- private setValidity;
195
- private calculateMedia;
196
- /**
197
- * Updates the state of the MultiSelect when the complex keyboard navigation that
198
- * includes key combinations with the Ctrl/Command, Shift, Home and End keys
199
- *
200
- * @param {Array<string | Object>} dataToSet Defines the array of new values that will be applied to the MultiSelect
201
- * @param {MultiSelectInternalState} state The current state of the MultiSelect
202
- */
203
- private updateStateOnKeyboardNavigation;
204
- /**
205
- * Returns the last element that was selected or deselected. Needed for the keyboard navigation specifications
206
- *
207
- * @param {number} correction A correction is needed depending on if UP or DOWN key is pressed
208
- */
209
- private getLastSelectedOrDeselectedIndex;
210
- }
211
- /**
212
- * Represents the PropsContext of the `MultiSelect` component.
213
- * Used for global configuration of all `MultiSelect` instances.
214
- *
215
- * For more information, refer to the [Dropdowns Props Context]({% slug props-context_dropdowns %}) article.
216
- */
217
- export declare const MultiSelectPropsContext: React.Context<(p: MultiSelectProps) => MultiSelectProps>;
218
- /**
219
- * Represent the `ref` of the MultiSelect component.
220
- */
221
- export interface MultiSelectHandle extends Pick<MultiSelectWithoutContext, keyof MultiSelectWithoutContext> {
222
- /**
223
- * Gets the `name` property of the MultiSelect.
224
- */
225
- name: string | undefined;
226
- /**
227
- * Represents the validity state into which the MultiSelect is set.
228
- */
229
- validity: FormComponentValidity;
230
- /**
231
- * Represents the value of the MultiSelect.
232
- */
233
- value: Array<any>;
234
- }
235
- /** @hidden */
236
- export type MultiSelect = MultiSelectHandle;
237
- /**
238
- * Represents the [KendoReact MultiSelect component]({% slug overview_multiselect %}).
239
- *
240
- * Accepts properties of type [MultiSelectProps]({% slug api_dropdowns_multiselectprops %}).
241
- * Obtaining the `ref` returns an object of type [MultiSelectHandle]({% slug api_dropdowns_multiselecthandle %}).
242
- *
243
- * @example
244
- * ```jsx
245
- * class App extends React.Component {
246
- * multiselect = null;
247
- * render() {
248
- * return (
249
- * <div>
250
- * <MultiSelect
251
- * data={[ "Albania", "Andorra", "Austria", "Belarus" ]}
252
- * ref={component => this.multiselect = component}
253
- * />
254
- * <button onClick={() => alert(this.multiselect.value)}>alert value</button>
255
- * </div>
256
- * );
257
- * }
258
- * }
259
- * ReactDOM.render(<App />, document.querySelector('my-app'));
260
- * ```
261
- */
262
- export declare const MultiSelect: React.ForwardRefExoticComponent<MultiSelectProps & React.RefAttributes<any>>;
@@ -1,325 +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 { MultiSelect } from './MultiSelect';
6
- import { CustomComponent, FormComponentProps } from '@progress/kendo-react-common';
7
- import { FilterChangeEvent, ChangeEvent, OpenEvent, CloseEvent, FocusEvent, BlurEvent, PageChangeEvent, CancelEvent } from './../common/events';
8
- import { VirtualizationSettings, DropDownsPopupSettings } from '../common/settings';
9
- import { ListGroupItemProps } from '../common/ListGroupItem';
10
- import { GroupStickyHeaderProps } from '../common/GroupStickyHeader';
11
- import { ListItemProps } from '../common/ListItem';
12
- import { TagData } from './TagList';
13
- /**
14
- * Represents the object of the `filterChange` MultiSelect event.
15
- */
16
- export interface MultiSelectFilterChangeEvent extends FilterChangeEvent<MultiSelect> {
17
- }
18
- /**
19
- * Represents the object of the `change` MultiSelect event.
20
- */
21
- export interface MultiSelectChangeEvent extends ChangeEvent<MultiSelect> {
22
- }
23
- /**
24
- * Represents the object of the `onCancel` MultiSelect event.
25
- */
26
- export interface MultiSelectCancelEvent extends CancelEvent<MultiSelect> {
27
- }
28
- /**
29
- * Represents the object of the `open` MultiSelect event.
30
- */
31
- export interface MultiSelectOpenEvent extends OpenEvent<MultiSelect> {
32
- }
33
- /**
34
- * Represents the object of the `close` MultiSelect event.
35
- */
36
- export interface MultiSelectCloseEvent extends CloseEvent<MultiSelect> {
37
- }
38
- /**
39
- * Represents the object of the `focus` MultiSelect event.
40
- */
41
- export interface MultiSelectFocusEvent extends FocusEvent<MultiSelect> {
42
- }
43
- /**
44
- * Represents the object of the `blur` MultiSelect event.
45
- */
46
- export interface MultiSelectBlurEvent extends BlurEvent<MultiSelect> {
47
- }
48
- /**
49
- * Represents the object of the `pageChange` MultiSelect event.
50
- */
51
- export interface MultiSelectPageChangeEvent extends PageChangeEvent<MultiSelect> {
52
- }
53
- /**
54
- * Represents the props of the [KendoReact MultiSelect component]({% slug overview_multiselect %}).
55
- */
56
- export interface MultiSelectProps extends FormComponentProps {
57
- /**
58
- * Specifies whether the MultiSelect allows user-defined values that are not present in the dataset ([see example]({% slug custom_values_multiselect %})). Defaults to `false`.
59
- */
60
- allowCustom?: boolean;
61
- /**
62
- * Sets the data of the MultiSelect ([see example]({% slug binding_multiselect %})).
63
- */
64
- data?: any[];
65
- /**
66
- * Sets the opened and closed state of the MultiSelect.
67
- */
68
- opened?: boolean;
69
- /**
70
- * Determines whether to close the options list of the MultiSelect after the item selection is finished.
71
- *
72
- * @example
73
- * ```jsx
74
- * class App extends React.Component {
75
- * render() {
76
- * return (
77
- * <MultiSelect
78
- * data={[ "Albania", "Andorra", "Austria", "Belarus" ]}
79
- * autoClose={false}
80
- * />
81
- * );
82
- * }
83
- * }
84
- * ReactDOM.render(<App />, document.querySelector('my-app'));
85
- * ```
86
- *
87
- * @default true
88
- */
89
- autoClose?: boolean;
90
- /**
91
- * The styles that are applied to the MultiSelect.
92
- */
93
- style?: React.CSSProperties;
94
- /**
95
- * Sets the value of the MultiSelect ([see example]({% slug binding_multiselect %})). It can either be of the primitive (string, numbers) or of the complex (objects) type.
96
- */
97
- value?: Array<any>;
98
- /**
99
- * The hint that is displayed when the MultiSelect is empty.
100
- */
101
- placeholder?: string;
102
- /**
103
- * Sets the tags of the MultiSelect ([see example]({% slug customtags_multiselect %})).
104
- */
105
- tags?: Array<TagData>;
106
- /**
107
- * Sets the key for comparing the data items of the MultiSelect ([see example]({% slug binding_multiselect %}#toc-datasets-of-objects)). If `dataItemKey` is not set, the MultiSelect compares the items by reference.
108
- */
109
- dataItemKey?: string;
110
- /**
111
- * Sets the default value of the MultiSelect. Similar to the native `select` HTML element.
112
- */
113
- defaultValue?: Array<any>;
114
- /**
115
- * Sets additional classes to the MultiSelect.
116
- */
117
- className?: string;
118
- /**
119
- * Sets the disabled state of the MultiSelect.
120
- */
121
- disabled?: boolean;
122
- /**
123
- * Represents the `dir` HTML attribute.
124
- */
125
- dir?: string;
126
- /**
127
- * Enables the filtering functionality of the MultiSelect ([more information and examples]({% slug filtering_multiselect %})).
128
- */
129
- filterable?: boolean;
130
- /**
131
- * Specifies the id of the component.
132
- */
133
- id?: string;
134
- /**
135
- * 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).
136
- * For example these elements could contain error or hint message.
137
- */
138
- ariaDescribedBy?: string;
139
- /**
140
- * Identifies the element(s) which will label the component.
141
- */
142
- ariaLabelledBy?: string;
143
- /**
144
- * If set, the MultiSelect will use it to get the focused item index.
145
- *
146
- * Default functionality returns the first item which starts with the input text.
147
- *
148
- * @example
149
- * ```jsx-no-run
150
- * const focusedItemIndex = (data, inputText, textField) => {
151
- * let text = inputText.toLowerCase();
152
- * return data.findIndex(item =>
153
- * String(textField ? item[textField] : item).toLowerCase().includes(text));
154
- * };
155
- *
156
- * <MultiSelect focusedItemIndex={focusedItemIndex} />
157
- * ```
158
- */
159
- focusedItemIndex?: (data: any, inputText: string, textField?: string) => number;
160
- /**
161
- * Sets the value of filtering input. Useful for making the filtering input a [controlled component](https://reactjs.org/docs/forms.html#controlled-components).
162
- */
163
- filter?: string;
164
- /**
165
- * Sets the value of the adaptive filtering input of the of MultiSelect.
166
- */
167
- adaptiveFilter?: string;
168
- /**
169
- * Sets the loading state of the MultiSelect ([see example]({% slug filtering_multiselect %}#toc-basic-configuration)).
170
- */
171
- loading?: boolean;
172
- /**
173
- * Specifies the `tabIndex` of the MultiSelect.
174
- */
175
- tabIndex?: number;
176
- /**
177
- * Specifies the `accessKey` of the MultiSelect.
178
- */
179
- accessKey?: string;
180
- /**
181
- * Sets the data item field that represents the item text ([see example]({% slug binding_multiselect %}#toc-datasets-of-objects)). If the data contains only primitive values, do not define it.
182
- */
183
- textField?: string;
184
- /**
185
- * Renders a floating label for the MultiSelect.
186
- */
187
- label?: string;
188
- /**
189
- * Configures the popup of the MultiSelect.
190
- */
191
- popupSettings?: DropDownsPopupSettings;
192
- /**
193
- * Configures the virtual scrolling of the MultiSelect ([see example]({% slug virtualization_multiselect %})).
194
- */
195
- virtual?: VirtualizationSettings;
196
- /**
197
- * Fires each time the popup of the MultiSelect is about to open.
198
- */
199
- onOpen?: (event: MultiSelectOpenEvent) => void;
200
- /**
201
- * Fires each time the popup of the MultiSelect is about to close.
202
- */
203
- onClose?: (event: MultiSelectCloseEvent) => void;
204
- /**
205
- * Fires each time the user focuses the MultiSelect.
206
- */
207
- onFocus?: (event: MultiSelectFocusEvent) => void;
208
- /**
209
- * Fires each time the MultiSelect gets blurred.
210
- */
211
- onBlur?: (event: MultiSelectBlurEvent) => void;
212
- /**
213
- * Fires each time the value of the MultiSelect is about to change ([see examples]({% slug binding_multiselect %})).
214
- */
215
- onChange?: (event: MultiSelectChangeEvent) => void;
216
- /**
217
- * Fires each time the popup of the MultiSelect is about to cancel in ([adaptive mode]({% slug adaptive_rendering_multiselect %})).
218
- */
219
- onCancel?: (event: MultiSelectCancelEvent) => void;
220
- /**
221
- * Fires each time the user types in the filter input ([see example]({% slug filtering_multiselect %}#toc-basic-configuration)). You can filter the source based on the passed filtration value.
222
- */
223
- onFilterChange?: (event: MultiSelectFilterChangeEvent) => void;
224
- /**
225
- * Fires when both the virtual scrolling of the MultiSelect is enabled and when the component requires data for another page ([see example]({% slug virtualization_multiselect %})).
226
- */
227
- onPageChange?: (event: MultiSelectPageChangeEvent) => void;
228
- /**
229
- * Fires when a MultiSelect item is about to be rendered ([see example]({% slug customrendering_multiselect %}#toc-items)). Used to override the default appearance of the list items.
230
- */
231
- itemRender?: (li: React.ReactElement<HTMLLIElement>, itemProps: ListItemProps) => React.ReactNode;
232
- /**
233
- * Fires when the element which indicates no data in the popup is about to be rendered ([see example]({% slug customrendering_multiselect %}#toc-no-data)). Used to override the default appearance of the element.
234
- */
235
- listNoDataRender?: (element: React.ReactElement<HTMLDivElement>) => React.ReactNode;
236
- /**
237
- * Fires when a tag element is about to be rendered ([see example]({% slug customrendering_multiselect %}#toc-tags)). Used to override the default appearance of the element.
238
- */
239
- tagRender?: (tagData: TagData, tag: React.ReactElement) => React.ReactElement;
240
- /**
241
- * Sets the header component of the MultiSelect ([see example]({% slug customrendering_multiselect %}#toc-headers-and-footers)).
242
- */
243
- header?: React.ReactNode;
244
- /**
245
- * Sets the footer component of the MultiSelect ([see example]({% slug customrendering_multiselect %}#toc-headers-and-footers)).
246
- */
247
- footer?: React.ReactNode;
248
- /**
249
- * Configures the `size` of the MultiSelect.
250
- *
251
- * The available options are:
252
- * - small
253
- * - medium
254
- * - large
255
- * - null&mdash;Does not set a size `className`.
256
- *
257
- * @default `medium`
258
- */
259
- size?: null | 'small' | 'medium' | 'large';
260
- /**
261
- * Configures the `roundness` of the MultiSelect.
262
- *
263
- * The available options are:
264
- * - small
265
- * - medium
266
- * - large
267
- * - full
268
- * - null&mdash;Does not set a rounded `className`.
269
- *
270
- * @default `medium`
271
- */
272
- rounded?: null | 'small' | 'medium' | 'large' | 'full';
273
- /**
274
- * Configures the `fillMode` of the MultiSelect.
275
- *
276
- * The available options are:
277
- * - solid
278
- * - flat
279
- * - outline
280
- * - null&mdash;Does not set a fillMode `className`.
281
- *
282
- * @default `solid`
283
- */
284
- fillMode?: null | 'solid' | 'flat' | 'outline';
285
- /**
286
- * Sets the data item field that represents the start of a group. Applicable to objects data.
287
- */
288
- groupField?: string;
289
- /**
290
- * Fires when a DropDownList's group header item is about to be rendered. Used to override the default appearance of the group's headers.
291
- */
292
- groupHeaderItemRender?: (li: React.ReactElement<HTMLLIElement>, itemProps: ListGroupItemProps) => React.ReactNode;
293
- /**
294
- * Fires when a DropDownList's sticky group header item is about to be rendered. Used to override the default appearance of the sticky group header of the component.
295
- */
296
- groupStickyHeaderItemRender?: (div: React.ReactElement<HTMLDivElement>, stickyHeaderProps: GroupStickyHeaderProps) => React.ReactNode;
297
- /**
298
- * @hidden
299
- */
300
- list?: any;
301
- /**
302
- * @hidden
303
- */
304
- groupMode?: string;
305
- /**
306
- * Providing different rendering of the popup element based on the screen dimensions.
307
- */
308
- adaptive?: boolean;
309
- /**
310
- * Specifies the text that is rendered as title in the adaptive popup.
311
- */
312
- adaptiveTitle?: string;
313
- /**
314
- * Defines if MultiSelect's disabled items will be skipped or focused when navigating through the list of items using a keyboard. Defaults to `true`.
315
- */
316
- skipDisabledItems?: boolean;
317
- /**
318
- * Sets a custom prefix to the MultiSelect component.
319
- */
320
- prefix?: CustomComponent<any>;
321
- /**
322
- * Sets a custom suffix to the MultiSelect component.
323
- */
324
- suffix?: CustomComponent<any>;
325
- }
@@ -1,42 +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 tag data.
8
- */
9
- export interface TagData {
10
- /**
11
- * Represents the text of the tag.
12
- */
13
- text: string;
14
- /**
15
- * Represents the data items which correspond to the tag.
16
- */
17
- data: Array<any>;
18
- }
19
- /**
20
- * @hidden
21
- */
22
- export interface TagListProps {
23
- children?: React.ReactNode;
24
- data: Array<TagData>;
25
- guid: string;
26
- focused?: TagData;
27
- onTagDelete: (items: Array<any>, event: React.MouseEvent<HTMLSpanElement>) => void;
28
- tagRender?: (tagData: TagData, tag: React.ReactElement) => React.ReactElement;
29
- tag?: React.ComponentType<{
30
- tagData: TagData;
31
- guid: string;
32
- focusedTag?: TagData;
33
- onTagDelete: (items: Array<any>, event: React.MouseEvent<HTMLSpanElement>) => void;
34
- }>;
35
- size?: null | 'small' | 'medium' | 'large';
36
- }
37
- /**
38
- * @hidden
39
- */
40
- export default class TagList extends React.Component<TagListProps, {}> {
41
- render(): import("react/jsx-runtime").JSX.Element;
42
- }