@progress/kendo-vue-dropdowns 8.0.3-develop.1 → 8.0.3-develop.3
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.d.ts +331 -0
- package/AutoComplete/AutoCompleteProps.d.ts +243 -0
- package/ComboBox/ComboBox.d.ts +371 -0
- package/ComboBox/ComboBoxProps.d.ts +286 -0
- package/DropDownList/DropDownList.d.ts +353 -0
- package/DropDownList/DropDownListProps.d.ts +312 -0
- package/DropDownTree/DropDownTree.d.ts +301 -0
- package/DropDownTree/DropDownTreeProps.d.ts +306 -0
- package/DropDownTree/ListNoData.d.ts +12 -0
- package/MultiSelect/MultiSelect.d.ts +369 -0
- package/MultiSelect/MultiSelect.js +1 -1
- package/MultiSelect/MultiSelect.mjs +2 -2
- package/MultiSelect/MultiSelectProps.d.ts +300 -0
- package/MultiSelect/TagList.d.ts +90 -0
- package/MultiSelectTree/MultiSelectTree.d.ts +272 -0
- package/MultiSelectTree/MultiSelectTreeProps.d.ts +327 -0
- package/MultiSelectTree/utils.d.ts +24 -0
- package/common/ClearButton.d.ts +22 -0
- package/common/DropDownBase.d.ts +106 -0
- package/common/GroupStickyHeader.d.ts +32 -0
- package/common/List.d.ts +111 -0
- package/common/List.mjs +1 -1
- package/common/ListContainer.d.ts +63 -0
- package/common/ListDefaultItem.d.ts +35 -0
- package/common/ListFilter.d.ts +103 -0
- package/common/ListGroupItem.d.ts +70 -0
- package/common/ListItem.d.ts +129 -0
- package/common/ListItemIcon.d.ts +33 -0
- package/common/Navigation.d.ts +19 -0
- package/common/SearchBar.d.ts +120 -0
- package/common/VirtualScroll.d.ts +49 -0
- package/common/constants.d.ts +11 -0
- package/common/events.d.ts +70 -0
- package/common/filterDescriptor.d.ts +48 -0
- package/common/settings.d.ts +118 -0
- package/common/utils.d.ts +77 -0
- package/dist/cdn/js/kendo-vue-dropdowns.js +1 -1
- package/index.d.mts +18 -4024
- package/index.d.ts +18 -4024
- package/messages/main.d.ts +47 -0
- package/package-metadata.d.ts +12 -0
- package/package-metadata.js +1 -1
- package/package-metadata.mjs +2 -2
- package/package.json +18 -12
|
@@ -0,0 +1,327 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { FormComponentProps } from '@progress/kendo-vue-common';
|
|
9
|
+
import { ItemRenderProps } from '@progress/kendo-vue-treeview';
|
|
10
|
+
import { FilterChangeEvent, OpenEvent, CloseEvent, FocusEvent, BlurEvent, DropdownEvent } from '../common/events';
|
|
11
|
+
import { DropDownsPopupSettings } from '../common/settings';
|
|
12
|
+
import { TagData } from '../MultiSelect/TagList';
|
|
13
|
+
/**
|
|
14
|
+
* Represents the object of the `onFilterChange` MultiSelectTree event.
|
|
15
|
+
*/
|
|
16
|
+
export interface MultiSelectTreeFilterChangeEvent extends FilterChangeEvent {
|
|
17
|
+
}
|
|
18
|
+
export type MultiSelectTreeChangeEventOperation = 'clear' | 'delete' | 'toggle';
|
|
19
|
+
/**
|
|
20
|
+
* Represents the object of the `onChange` MultiSelectTree event.
|
|
21
|
+
*/
|
|
22
|
+
export interface MultiSelectTreeChangeEvent extends DropdownEvent {
|
|
23
|
+
/**
|
|
24
|
+
* The items related to current operation.
|
|
25
|
+
*/
|
|
26
|
+
items: any[];
|
|
27
|
+
/**
|
|
28
|
+
* The new value.
|
|
29
|
+
*/
|
|
30
|
+
value: any[];
|
|
31
|
+
/**
|
|
32
|
+
* Describes the current operation:
|
|
33
|
+
* * `clear` - clear button is clicked and value is cleared. Null value is returned.
|
|
34
|
+
* * `delete` - tag is deleted using keyboard or mouse. The items contained in current tag are returned.
|
|
35
|
+
* * `toggle` - item in TreeView is toggled. Single item is returned.
|
|
36
|
+
*/
|
|
37
|
+
operation: MultiSelectTreeChangeEventOperation;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Represents the object of the `onOpen` MultiSelectTree event.
|
|
41
|
+
*/
|
|
42
|
+
export interface MultiSelectTreeOpenEvent extends OpenEvent {
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Represents the object of the `onClose` MultiSelectTree event.
|
|
46
|
+
*/
|
|
47
|
+
export interface MultiSelectTreeCloseEvent extends CloseEvent {
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Represents the object of the `onFocus` MultiSelectTree event.
|
|
51
|
+
*/
|
|
52
|
+
export interface MultiSelectTreeFocusEvent extends FocusEvent {
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Represents the object of the `onBlur` MultiSelectTree event.
|
|
56
|
+
*/
|
|
57
|
+
export interface MultiSelectTreeBlurEvent extends BlurEvent {
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Represents the object of the `onExpandChange` MultiSelectTree event.
|
|
61
|
+
*/
|
|
62
|
+
export interface MultiSelectTreeExpandEvent extends DropdownEvent {
|
|
63
|
+
item: any;
|
|
64
|
+
level: number[];
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* The props of component that will be used for rendering each of the MultiSelectTree items
|
|
68
|
+
* ([see example]({% slug customrendering_multiselecttree %}#toc-items-and-value-element)).
|
|
69
|
+
*/
|
|
70
|
+
export interface MultiSelectTreeItemProps extends ItemRenderProps {
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* The props of component that will be used for rendering each of the MultiSelectTree tags
|
|
74
|
+
*/
|
|
75
|
+
export interface MultiSelectTreeTagProps {
|
|
76
|
+
tagData: TagData;
|
|
77
|
+
guid: string;
|
|
78
|
+
focusedTag?: TagData;
|
|
79
|
+
onTagDelete: (items: Array<any>, event: any) => void;
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* The props of the `ListNoData` component ([see example]({% slug customrendering_multiselecttree %}#toc-no-data)).
|
|
83
|
+
*/
|
|
84
|
+
export interface MultiSelectTreeListNoDataProps {
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* Represents the props of the [Kendo UI for Vue MultiSelectTree component]({% slug overview_multiselecttree %}).
|
|
88
|
+
*/
|
|
89
|
+
export interface MultiSelectTreeProps extends FormComponentProps {
|
|
90
|
+
/**
|
|
91
|
+
* Sets the data of the MultiSelectTree ([see example]({% slug overview_multiselecttree %})).
|
|
92
|
+
*/
|
|
93
|
+
dataItems?: any[];
|
|
94
|
+
/**
|
|
95
|
+
* Sets the opened state of the MultiSelectTree.
|
|
96
|
+
*/
|
|
97
|
+
opened?: boolean;
|
|
98
|
+
/**
|
|
99
|
+
* Sets the value of the MultiSelectTree. It can either be an array of the primitive (string, numbers) or of the complex (objects) type.
|
|
100
|
+
*/
|
|
101
|
+
value?: Array<any>;
|
|
102
|
+
/**
|
|
103
|
+
* Sets the modelValue of the MultiSelectTree. It can either be an array of the primitive (string, numbers) or of the complex (objects) type.
|
|
104
|
+
*/
|
|
105
|
+
modelValue?: Array<any>;
|
|
106
|
+
/**
|
|
107
|
+
* The hint that is displayed when the MultiSelectTree is empty.
|
|
108
|
+
*/
|
|
109
|
+
placeholder?: string;
|
|
110
|
+
/**
|
|
111
|
+
* Sets the key for comparing the data items of the MultiSelectTree ([see example]({% slug overview_multiselecttree %})).
|
|
112
|
+
* If `dataItemKey` is not set, the MultiSelectTree compares the items by reference.
|
|
113
|
+
*/
|
|
114
|
+
dataItemKey: string;
|
|
115
|
+
/**
|
|
116
|
+
* Sets additional classes to the MultiSelectTree.
|
|
117
|
+
*/
|
|
118
|
+
className?: string;
|
|
119
|
+
/**
|
|
120
|
+
* Sets the disabled state of the MultiSelectTree.
|
|
121
|
+
*/
|
|
122
|
+
disabled?: boolean;
|
|
123
|
+
/**
|
|
124
|
+
* Represents the `dir` HTML attribute.
|
|
125
|
+
*/
|
|
126
|
+
dir?: string;
|
|
127
|
+
/**
|
|
128
|
+
* Renders a floating label for the MultiSelectTree.
|
|
129
|
+
*/
|
|
130
|
+
label?: string;
|
|
131
|
+
/**
|
|
132
|
+
* Specifies the id of the component.
|
|
133
|
+
*/
|
|
134
|
+
id?: string;
|
|
135
|
+
/**
|
|
136
|
+
* Specifies the validationMessage of the component.
|
|
137
|
+
*/
|
|
138
|
+
validationMessage?: string;
|
|
139
|
+
/**
|
|
140
|
+
* If set to `false`, no visual representation of the invalid state of the component will be applied.
|
|
141
|
+
*
|
|
142
|
+
*/
|
|
143
|
+
validityStyles?: boolean;
|
|
144
|
+
/**
|
|
145
|
+
* Overrides the validity state of the component.
|
|
146
|
+
* If `valid` is set, the `required` property will be ignored.
|
|
147
|
+
*
|
|
148
|
+
*/
|
|
149
|
+
valid?: boolean;
|
|
150
|
+
/**
|
|
151
|
+
* Specifies the `name` property of the `input` DOM element.
|
|
152
|
+
*
|
|
153
|
+
*/
|
|
154
|
+
name?: string;
|
|
155
|
+
/**
|
|
156
|
+
* Specifies if `null` is a valid value for the component.
|
|
157
|
+
*
|
|
158
|
+
*/
|
|
159
|
+
required?: boolean;
|
|
160
|
+
/**
|
|
161
|
+
* Sets the tags of the MultiSelect ([see example]({% slug customtags_multiselect %})).
|
|
162
|
+
*/
|
|
163
|
+
tags?: Array<TagData>;
|
|
164
|
+
/**
|
|
165
|
+
* 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).
|
|
166
|
+
* For example these elements could contain error or hint message.
|
|
167
|
+
*/
|
|
168
|
+
ariaDescribedBy?: string;
|
|
169
|
+
/**
|
|
170
|
+
* Identifies the element(s) which will label the component.
|
|
171
|
+
*/
|
|
172
|
+
ariaLabelledBy?: string;
|
|
173
|
+
/**
|
|
174
|
+
* Enables the filtering functionality of the MultiSelectTree ([more information and examples]({% slug filtering_multiselecttree %})).
|
|
175
|
+
*/
|
|
176
|
+
filterable?: boolean;
|
|
177
|
+
/**
|
|
178
|
+
* Sets the value of filtering input.
|
|
179
|
+
* Useful for making the filtering input a controlled component.
|
|
180
|
+
*/
|
|
181
|
+
filter?: string;
|
|
182
|
+
/**
|
|
183
|
+
* Sets the loading state of the MultiSelectTree ([see example]({% slug filtering_multiselecttree %}#toc-visualize-filtering)).
|
|
184
|
+
*/
|
|
185
|
+
loading?: boolean;
|
|
186
|
+
/**
|
|
187
|
+
* Specifies the `tabIndex` of the MultiSelectTree.
|
|
188
|
+
*/
|
|
189
|
+
tabIndex?: number;
|
|
190
|
+
/**
|
|
191
|
+
* Specifies the `accessKey` of the MultiSelectTree.
|
|
192
|
+
*/
|
|
193
|
+
accessKey?: string;
|
|
194
|
+
/**
|
|
195
|
+
* Sets the data item field that represents the item text ([see example]({% slug overview_multiselecttree %})).
|
|
196
|
+
*/
|
|
197
|
+
textField: string;
|
|
198
|
+
/**
|
|
199
|
+
* Specifies the name of the field which will provide a Boolean representation of the checked state of the item.
|
|
200
|
+
*/
|
|
201
|
+
checkField?: string;
|
|
202
|
+
/**
|
|
203
|
+
* Specifies the name of the field which will provide a Boolean representation of the checked indeterminaet state of the item.
|
|
204
|
+
*/
|
|
205
|
+
checkIndeterminateField?: string;
|
|
206
|
+
/**
|
|
207
|
+
* Specifies the name of the field which will provide a Boolean representation of the expanded state of the item.
|
|
208
|
+
*/
|
|
209
|
+
expandField?: string;
|
|
210
|
+
/**
|
|
211
|
+
* Specifies the name of the field which will provide an array representation of the item subitems.
|
|
212
|
+
* Defaults to 'items'.
|
|
213
|
+
*/
|
|
214
|
+
subItemsField?: string;
|
|
215
|
+
/**
|
|
216
|
+
* Configures the popup of the MultiSelectTree.
|
|
217
|
+
*/
|
|
218
|
+
popupSettings?: DropDownsPopupSettings;
|
|
219
|
+
/**
|
|
220
|
+
* Represents a callback function, which returns the value for submitting. The returned value will be rendered in an `option` of a hidden `select` element.
|
|
221
|
+
*
|
|
222
|
+
* @example
|
|
223
|
+
* ```jsx-no-run
|
|
224
|
+
* class App extends React.Component {
|
|
225
|
+
* render() {
|
|
226
|
+
* return (
|
|
227
|
+
* <form>
|
|
228
|
+
* <MultiSelectTree
|
|
229
|
+
* data={[ { text: "Austria", id: 1 } , { text: "Belarus", id: 2 } ]}
|
|
230
|
+
* valueMap={value => value && value.id}
|
|
231
|
+
* />
|
|
232
|
+
* <button type="submit">Submit</button>
|
|
233
|
+
* </form>
|
|
234
|
+
* );
|
|
235
|
+
* }
|
|
236
|
+
* }
|
|
237
|
+
* ReactDOM.render(<App />, document.querySelector('my-app'));
|
|
238
|
+
* ```
|
|
239
|
+
*/
|
|
240
|
+
valueMap?: (value: Array<any>) => any;
|
|
241
|
+
/**
|
|
242
|
+
* Fires each time the popup of the MultiSelectTree is about to open.
|
|
243
|
+
*/
|
|
244
|
+
onOpen?: (event: MultiSelectTreeOpenEvent) => void;
|
|
245
|
+
/**
|
|
246
|
+
* Fires each time the popup of the MultiSelectTree is about to close.
|
|
247
|
+
*/
|
|
248
|
+
onClose?: (event: MultiSelectTreeCloseEvent) => void;
|
|
249
|
+
/**
|
|
250
|
+
* Fires each time the user focuses the MultiSelectTree.
|
|
251
|
+
*/
|
|
252
|
+
onFocus?: (event: MultiSelectTreeFocusEvent) => void;
|
|
253
|
+
/**
|
|
254
|
+
* Fires each time the MultiSelectTree gets blurred.
|
|
255
|
+
*/
|
|
256
|
+
onBlur?: (event: MultiSelectTreeBlurEvent) => void;
|
|
257
|
+
/**
|
|
258
|
+
* Fires each time the value of the MultiSelectTree is about to change ([see examples]({% slug overview_multiselecttree %})).
|
|
259
|
+
*/
|
|
260
|
+
onChange?: (event: MultiSelectTreeChangeEvent) => void;
|
|
261
|
+
/**
|
|
262
|
+
* Fires each time the user types in the filter input
|
|
263
|
+
* ([see example]({% slug filtering_multiselecttree %}#toc-basic-configuration)).
|
|
264
|
+
* You can filter the source based on the passed filtration value.
|
|
265
|
+
*/
|
|
266
|
+
onFilterChange?: (event: MultiSelectTreeFilterChangeEvent) => void;
|
|
267
|
+
/**
|
|
268
|
+
* Fires when the expanding or collapsing of an item is requested ([see examples]({% slug overview_multiselecttree %})).
|
|
269
|
+
*/
|
|
270
|
+
onExpandChange?: (event: any) => void;
|
|
271
|
+
/**
|
|
272
|
+
* Defines the component that will be used for rendering each of the MultiSelectTree items
|
|
273
|
+
* ([see example]({% slug customrendering_multiselecttree %}#toc-items-and-value-element)).
|
|
274
|
+
*/
|
|
275
|
+
item?: any;
|
|
276
|
+
/**
|
|
277
|
+
* Defines the component that will be rendered in the MultiSelectTree popup when no data is available
|
|
278
|
+
* ([see example]({% slug customrendering_multiselecttree %}#toc-no-data)).
|
|
279
|
+
*/
|
|
280
|
+
listNoData?: any;
|
|
281
|
+
tag?: any;
|
|
282
|
+
header?: any;
|
|
283
|
+
footer?: any;
|
|
284
|
+
/**
|
|
285
|
+
* Configures the `size` of the MultiSelectTree.
|
|
286
|
+
*
|
|
287
|
+
* The available options are:
|
|
288
|
+
* - small
|
|
289
|
+
* - medium
|
|
290
|
+
* - large
|
|
291
|
+
*
|
|
292
|
+
* @default undefined
|
|
293
|
+
*/
|
|
294
|
+
size?: 'small' | 'medium' | 'large';
|
|
295
|
+
/**
|
|
296
|
+
* Configures the `roundness` of the MultiSelectTree.
|
|
297
|
+
*
|
|
298
|
+
* The available options are:
|
|
299
|
+
* - none
|
|
300
|
+
* - small
|
|
301
|
+
* - medium
|
|
302
|
+
* - large
|
|
303
|
+
* - full
|
|
304
|
+
*
|
|
305
|
+
* @default undefined
|
|
306
|
+
*/
|
|
307
|
+
rounded?: 'none' | 'small' | 'medium' | 'large' | 'full';
|
|
308
|
+
/**
|
|
309
|
+
* Configures the `fillMode` of the MultiSelectTree.
|
|
310
|
+
*
|
|
311
|
+
* The available options are:
|
|
312
|
+
* - solid
|
|
313
|
+
* - flat
|
|
314
|
+
* - outline
|
|
315
|
+
*
|
|
316
|
+
* @default undefined
|
|
317
|
+
*/
|
|
318
|
+
fillMode?: 'solid' | 'flat' | 'outline';
|
|
319
|
+
/**
|
|
320
|
+
* Provides different rendering of the popup element based on the screen dimensions.
|
|
321
|
+
*/
|
|
322
|
+
adaptive?: boolean;
|
|
323
|
+
/**
|
|
324
|
+
* Specifies the text that is rendered as title in the adaptive popup.
|
|
325
|
+
*/
|
|
326
|
+
adaptiveTitle?: string;
|
|
327
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { MultiSelectTreeChangeEventOperation } from './MultiSelectTreeProps';
|
|
9
|
+
/** @hidden */
|
|
10
|
+
export declare const getValueMap: (value: any[], idGetter: any) => any;
|
|
11
|
+
/**
|
|
12
|
+
* Get MultiSelectTree new value from the component `onChange` event.
|
|
13
|
+
*
|
|
14
|
+
* @param {any[]} data
|
|
15
|
+
* @param {object} options
|
|
16
|
+
* @returns {any[]}
|
|
17
|
+
*/
|
|
18
|
+
export declare const getMultiSelectTreeValue: (data: any[], options: {
|
|
19
|
+
subItemsField?: string;
|
|
20
|
+
dataItemKey: string;
|
|
21
|
+
items: any;
|
|
22
|
+
value: Array<any>;
|
|
23
|
+
operation: MultiSelectTreeChangeEventOperation;
|
|
24
|
+
}) => any[];
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { PropType } from 'vue';
|
|
9
|
+
/**
|
|
10
|
+
* @hidden
|
|
11
|
+
*/
|
|
12
|
+
declare const ClearButton: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
13
|
+
onClearclick: PropType<Function>;
|
|
14
|
+
}>, {
|
|
15
|
+
kendoLocalizationService: {};
|
|
16
|
+
}, {}, {}, {
|
|
17
|
+
onMouseDown(e: any): void;
|
|
18
|
+
onClickHandler(e: any): void;
|
|
19
|
+
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
20
|
+
onClearclick: PropType<Function>;
|
|
21
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
22
|
+
export { ClearButton };
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { default as VirtualScroll } from './VirtualScroll';
|
|
9
|
+
import { Navigation } from './Navigation';
|
|
10
|
+
import { ListItemProps } from './ListItem';
|
|
11
|
+
import { InternalState, DropDownStateBase, Page, DropDownsPopupSettings, VirtualizationSettings } from './settings';
|
|
12
|
+
import { createVNode } from 'vue';
|
|
13
|
+
/**
|
|
14
|
+
* @hidden
|
|
15
|
+
*/
|
|
16
|
+
export interface DropDownComponentProps {
|
|
17
|
+
data?: any[];
|
|
18
|
+
opened?: boolean;
|
|
19
|
+
value?: any;
|
|
20
|
+
disabled?: boolean;
|
|
21
|
+
tabIndex?: number;
|
|
22
|
+
dir?: string;
|
|
23
|
+
defaultItem?: any;
|
|
24
|
+
filterable?: boolean;
|
|
25
|
+
filter?: string | null;
|
|
26
|
+
textField?: string;
|
|
27
|
+
dataItemKey?: string;
|
|
28
|
+
popupSettings?: DropDownsPopupSettings;
|
|
29
|
+
style?: any;
|
|
30
|
+
virtual?: VirtualizationSettings;
|
|
31
|
+
onOpen?: (event: any) => void;
|
|
32
|
+
onClose?: (event: any) => void;
|
|
33
|
+
onFocus?: (event: any) => void;
|
|
34
|
+
onBlur?: (event: any) => void;
|
|
35
|
+
onChange?: (event: any) => void;
|
|
36
|
+
onFilterchange?: (event: any) => void;
|
|
37
|
+
onPagechange?: (event: any) => void;
|
|
38
|
+
onScrollchange?: (event: any) => void;
|
|
39
|
+
itemRender?: (li: Element, itemProps: ListItemProps) => any;
|
|
40
|
+
listNoDataRender?: (element: any) => any;
|
|
41
|
+
header?: any;
|
|
42
|
+
footer?: any;
|
|
43
|
+
dataItems?: any[];
|
|
44
|
+
name?: string;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* @hidden
|
|
48
|
+
*/
|
|
49
|
+
export interface DropDownComponent {
|
|
50
|
+
state: DropDownStateBase;
|
|
51
|
+
element: HTMLSpanElement | null;
|
|
52
|
+
handleItemSelect: Function;
|
|
53
|
+
value: any;
|
|
54
|
+
currentOpened: boolean;
|
|
55
|
+
currentFocused: boolean;
|
|
56
|
+
popupWidth: string;
|
|
57
|
+
$forceUpdate: Function;
|
|
58
|
+
$props: DropDownComponentProps;
|
|
59
|
+
$emit: Function;
|
|
60
|
+
primitiveValue: Function;
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* @hidden
|
|
64
|
+
*/
|
|
65
|
+
export default class DropDownBase {
|
|
66
|
+
static defaultProps: {
|
|
67
|
+
popupSettings: {
|
|
68
|
+
animate: boolean;
|
|
69
|
+
height: string;
|
|
70
|
+
};
|
|
71
|
+
required: boolean;
|
|
72
|
+
validityStyles: boolean;
|
|
73
|
+
};
|
|
74
|
+
popupWidth?: string;
|
|
75
|
+
wrapper: any;
|
|
76
|
+
list: HTMLUListElement;
|
|
77
|
+
dirCalculated?: string;
|
|
78
|
+
readonly vs: VirtualScroll;
|
|
79
|
+
readonly navigation: Navigation;
|
|
80
|
+
readonly listBoxId: string;
|
|
81
|
+
readonly guid: string;
|
|
82
|
+
readonly component: DropDownComponent;
|
|
83
|
+
constructor(component: any);
|
|
84
|
+
didMount(): void;
|
|
85
|
+
calculateDir(): void;
|
|
86
|
+
calculatePopupWidth(): void;
|
|
87
|
+
private scrollVirtualized;
|
|
88
|
+
private scrollNonVirtualized;
|
|
89
|
+
scrollToItem(itemIndex: number, vsEnabled?: boolean): void;
|
|
90
|
+
handleItemClick: (index: number, event: any) => void;
|
|
91
|
+
handleFocus: any;
|
|
92
|
+
filterChanged: (text: string | null, state: InternalState) => void;
|
|
93
|
+
repositionPopup(): void;
|
|
94
|
+
initState(): InternalState;
|
|
95
|
+
applyState(state: InternalState): void;
|
|
96
|
+
togglePopup: (state: InternalState) => void;
|
|
97
|
+
pageChange: (page: Page, event: any) => void;
|
|
98
|
+
scrollChange: (event: any) => void;
|
|
99
|
+
triggerOnPageChange(state: InternalState, skip: number, take: number): void;
|
|
100
|
+
triggerPageChangeCornerItems(item: any, state: InternalState): void;
|
|
101
|
+
scrollToVirtualItem: (virtual: VirtualizationSettings, selectedItemIndex: number) => void;
|
|
102
|
+
getGroupedDataModernMode: (data: any[], groupField: string) => any[];
|
|
103
|
+
resetGroupStickyHeader: (groupName: string, that: any) => void;
|
|
104
|
+
getTemplateDef(this: any, template: string, h: typeof createVNode): any;
|
|
105
|
+
getListItemHeight(listItem: HTMLElement): string | 0;
|
|
106
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { PropType } from 'vue';
|
|
9
|
+
/**
|
|
10
|
+
* Represents the props of the GroupStickyHeader component.
|
|
11
|
+
*/
|
|
12
|
+
export interface GroupStickyHeaderProps {
|
|
13
|
+
/**
|
|
14
|
+
* The group that will be rendered.
|
|
15
|
+
*/
|
|
16
|
+
group?: string;
|
|
17
|
+
/**
|
|
18
|
+
* Fires when a sticky group header item is about to be rendered. Used to override the default appearance of the sticky group header of the component.
|
|
19
|
+
*/
|
|
20
|
+
render?: any;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* @hidden
|
|
24
|
+
*/
|
|
25
|
+
declare const GroupStickyHeader: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
26
|
+
group: PropType<string>;
|
|
27
|
+
render: PropType<any>;
|
|
28
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
29
|
+
group: PropType<string>;
|
|
30
|
+
render: PropType<any>;
|
|
31
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
32
|
+
export { GroupStickyHeader };
|
package/common/List.d.ts
ADDED
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { PropType } from 'vue';
|
|
9
|
+
/**
|
|
10
|
+
* @hidden
|
|
11
|
+
*/
|
|
12
|
+
export interface ListProps {
|
|
13
|
+
id?: string;
|
|
14
|
+
show?: boolean;
|
|
15
|
+
dataItems: any[];
|
|
16
|
+
value?: any;
|
|
17
|
+
textField?: string;
|
|
18
|
+
valueField?: string;
|
|
19
|
+
optionsGuid?: string;
|
|
20
|
+
listRef?: (element: HTMLUListElement) => void;
|
|
21
|
+
wrapperCssClass?: string;
|
|
22
|
+
wrapperStyle?: any;
|
|
23
|
+
listStyle?: any;
|
|
24
|
+
skip?: number;
|
|
25
|
+
focusedIndex?: number;
|
|
26
|
+
highlightSelected?: boolean;
|
|
27
|
+
onClick?: (index: number, event: any) => void;
|
|
28
|
+
itemRender?: any;
|
|
29
|
+
groupHeaderItemRender?: any;
|
|
30
|
+
noDataRender?: any;
|
|
31
|
+
scroller?: boolean;
|
|
32
|
+
groupField: string;
|
|
33
|
+
actionsField?: string;
|
|
34
|
+
descriptionField?: string;
|
|
35
|
+
iconField?: string;
|
|
36
|
+
svgIconField?: string;
|
|
37
|
+
checkboxField?: string;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* @hidden
|
|
41
|
+
*/
|
|
42
|
+
declare const List: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
43
|
+
id: PropType<string>;
|
|
44
|
+
show: PropType<boolean>;
|
|
45
|
+
dataItems: PropType<any[]>;
|
|
46
|
+
value: PropType<any>;
|
|
47
|
+
textField: PropType<string>;
|
|
48
|
+
valueField: PropType<string>;
|
|
49
|
+
optionsGuid: PropType<string>;
|
|
50
|
+
wrapperCssClass: PropType<string>;
|
|
51
|
+
wrapperStyle: PropType<any>;
|
|
52
|
+
listStyle: PropType<any>;
|
|
53
|
+
skip: PropType<number>;
|
|
54
|
+
focusedIndex: PropType<number>;
|
|
55
|
+
highlightSelected: {
|
|
56
|
+
type: PropType<boolean>;
|
|
57
|
+
default: boolean;
|
|
58
|
+
};
|
|
59
|
+
itemRender: PropType<any>;
|
|
60
|
+
groupHeaderItemRender: PropType<any>;
|
|
61
|
+
noDataRender: PropType<any>;
|
|
62
|
+
scroller: PropType<boolean>;
|
|
63
|
+
groupField: PropType<string>;
|
|
64
|
+
actionsField: PropType<string>;
|
|
65
|
+
descriptionField: PropType<string>;
|
|
66
|
+
iconField: PropType<string>;
|
|
67
|
+
svgIconField: PropType<string>;
|
|
68
|
+
checkboxField: PropType<string>;
|
|
69
|
+
}>, {
|
|
70
|
+
listRef: import('vue').Ref<any, any>;
|
|
71
|
+
kendoLocalizationService: {};
|
|
72
|
+
}, {}, {}, {
|
|
73
|
+
handleClick(index: number, e: any): void;
|
|
74
|
+
handleScroll(e: any): void;
|
|
75
|
+
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
76
|
+
listclick: (event: MouseEvent) => true;
|
|
77
|
+
scroll: (event: Event) => true;
|
|
78
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
79
|
+
id: PropType<string>;
|
|
80
|
+
show: PropType<boolean>;
|
|
81
|
+
dataItems: PropType<any[]>;
|
|
82
|
+
value: PropType<any>;
|
|
83
|
+
textField: PropType<string>;
|
|
84
|
+
valueField: PropType<string>;
|
|
85
|
+
optionsGuid: PropType<string>;
|
|
86
|
+
wrapperCssClass: PropType<string>;
|
|
87
|
+
wrapperStyle: PropType<any>;
|
|
88
|
+
listStyle: PropType<any>;
|
|
89
|
+
skip: PropType<number>;
|
|
90
|
+
focusedIndex: PropType<number>;
|
|
91
|
+
highlightSelected: {
|
|
92
|
+
type: PropType<boolean>;
|
|
93
|
+
default: boolean;
|
|
94
|
+
};
|
|
95
|
+
itemRender: PropType<any>;
|
|
96
|
+
groupHeaderItemRender: PropType<any>;
|
|
97
|
+
noDataRender: PropType<any>;
|
|
98
|
+
scroller: PropType<boolean>;
|
|
99
|
+
groupField: PropType<string>;
|
|
100
|
+
actionsField: PropType<string>;
|
|
101
|
+
descriptionField: PropType<string>;
|
|
102
|
+
iconField: PropType<string>;
|
|
103
|
+
svgIconField: PropType<string>;
|
|
104
|
+
checkboxField: PropType<string>;
|
|
105
|
+
}>> & Readonly<{
|
|
106
|
+
onScroll?: (event: Event) => any;
|
|
107
|
+
onListclick?: (event: MouseEvent) => any;
|
|
108
|
+
}>, {
|
|
109
|
+
highlightSelected: boolean;
|
|
110
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
111
|
+
export { List };
|
package/common/List.mjs
CHANGED
|
@@ -9,7 +9,7 @@ import { defineComponent as H, createVNode as d, ref as V, inject as T, h as q }
|
|
|
9
9
|
import { ListItem as J } from "./ListItem.mjs";
|
|
10
10
|
import { ListGroupItem as K } from "./ListGroupItem.mjs";
|
|
11
11
|
import { areSame as G } from "./utils.mjs";
|
|
12
|
-
import { getDefaultSlots as M, getRef as P,
|
|
12
|
+
import { getDefaultSlots as M, getRef as P, setRef as j, getTemplate as Q } from "@progress/kendo-vue-common";
|
|
13
13
|
import { provideLocalizationService as U } from "@progress/kendo-vue-intl";
|
|
14
14
|
import { nodata as N, messages as W } from "../messages/main.mjs";
|
|
15
15
|
const de = /* @__PURE__ */ H({
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { PropType } from 'vue';
|
|
9
|
+
/**
|
|
10
|
+
* @hidden
|
|
11
|
+
*/
|
|
12
|
+
export interface ListContainerProps {
|
|
13
|
+
width?: string | number;
|
|
14
|
+
onMouseDown?: any;
|
|
15
|
+
onBlur?: any;
|
|
16
|
+
dir?: string;
|
|
17
|
+
popupSettings?: object;
|
|
18
|
+
itemsCount?: number;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* @hidden
|
|
22
|
+
*/
|
|
23
|
+
declare const ListContainer: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
24
|
+
width: PropType<string | number>;
|
|
25
|
+
dir: PropType<string>;
|
|
26
|
+
itemsCount: PropType<number>;
|
|
27
|
+
popupSettings: {
|
|
28
|
+
type: PropType<object>;
|
|
29
|
+
default: () => {
|
|
30
|
+
animate: boolean;
|
|
31
|
+
height: string;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
}>, {}, {}, {}, {
|
|
35
|
+
onMouseDown(e: any): void;
|
|
36
|
+
onBlur(e: any): void;
|
|
37
|
+
onOpen(e: any): void;
|
|
38
|
+
onClose(e: any): void;
|
|
39
|
+
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
40
|
+
mousedown: (event: MouseEvent) => true;
|
|
41
|
+
blur: (event: FocusEvent) => true;
|
|
42
|
+
open: (event: Event) => true;
|
|
43
|
+
close: (event: Event) => true;
|
|
44
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
45
|
+
width: PropType<string | number>;
|
|
46
|
+
dir: PropType<string>;
|
|
47
|
+
itemsCount: PropType<number>;
|
|
48
|
+
popupSettings: {
|
|
49
|
+
type: PropType<object>;
|
|
50
|
+
default: () => {
|
|
51
|
+
animate: boolean;
|
|
52
|
+
height: string;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
}>> & Readonly<{
|
|
56
|
+
onBlur?: (event: FocusEvent) => any;
|
|
57
|
+
onClose?: (event: Event) => any;
|
|
58
|
+
onMousedown?: (event: MouseEvent) => any;
|
|
59
|
+
onOpen?: (event: Event) => any;
|
|
60
|
+
}>, {
|
|
61
|
+
popupSettings: object;
|
|
62
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
63
|
+
export { ListContainer };
|