@progress/kendo-vue-dropdowns 5.3.0-dev.202410141143 → 5.3.0-develop.2
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 +526 -0
- package/ComboBox/ComboBox.js +8 -0
- package/ComboBox/ComboBox.mjs +776 -0
- package/DropDownList/DropDownList.js +8 -0
- package/DropDownList/DropDownList.mjs +781 -0
- package/DropDownTree/DropDownTree.js +8 -0
- package/DropDownTree/DropDownTree.mjs +709 -0
- package/DropDownTree/ListNoData.js +8 -0
- package/DropDownTree/ListNoData.mjs +21 -0
- package/MultiSelect/MultiSelect.js +8 -0
- package/MultiSelect/MultiSelect.mjs +872 -0
- package/MultiSelect/TagList.js +8 -0
- package/MultiSelect/TagList.mjs +119 -0
- package/MultiSelectTree/MultiSelectTree.js +8 -0
- package/MultiSelectTree/MultiSelectTree.mjs +759 -0
- package/MultiSelectTree/utils.js +8 -0
- package/MultiSelectTree/utils.mjs +73 -0
- package/README.md +28 -43
- package/common/ClearButton.js +8 -0
- package/common/ClearButton.mjs +54 -0
- package/common/DropDownBase.js +8 -0
- package/common/DropDownBase.mjs +193 -0
- package/common/GroupStickyHeader.js +8 -0
- package/common/GroupStickyHeader.mjs +38 -0
- package/common/List.js +8 -0
- package/common/List.mjs +139 -0
- package/common/ListContainer.js +8 -0
- package/common/ListContainer.mjs +103 -0
- package/common/ListDefaultItem.js +8 -0
- package/common/ListDefaultItem.mjs +47 -0
- package/common/ListFilter.js +8 -0
- package/common/ListFilter.mjs +147 -0
- package/common/ListGroupItem.js +8 -0
- package/common/ListGroupItem.mjs +46 -0
- package/common/ListItem.js +8 -0
- package/common/ListItem.mjs +73 -0
- package/common/Navigation.js +8 -0
- package/common/Navigation.mjs +28 -0
- package/common/SearchBar.js +8 -0
- package/common/SearchBar.mjs +129 -0
- package/common/VirtualScroll.js +8 -0
- package/common/VirtualScroll.mjs +95 -0
- package/common/constants.js +8 -0
- package/common/constants.mjs +12 -0
- package/common/settings.js +8 -0
- package/common/settings.mjs +11 -0
- package/common/utils.js +8 -0
- package/common/utils.mjs +104 -0
- package/dist/cdn/js/kendo-vue-dropdowns.js +8 -1
- package/index.d.mts +4037 -0
- package/index.d.ts +4037 -0
- package/index.js +8 -0
- package/index.mjs +25 -0
- package/messages/main.js +8 -0
- package/messages/main.mjs +26 -0
- package/package-metadata.js +8 -0
- package/package-metadata.mjs +18 -0
- package/package.json +24 -58
- package/dist/es/AutoComplete/AutoComplete.d.ts +0 -107
- package/dist/es/AutoComplete/AutoComplete.js +0 -825
- package/dist/es/AutoComplete/AutoCompleteProps.d.ts +0 -234
- package/dist/es/AutoComplete/AutoCompleteProps.js +0 -2
- package/dist/es/ComboBox/ComboBox.d.ts +0 -99
- package/dist/es/ComboBox/ComboBox.js +0 -1315
- package/dist/es/ComboBox/ComboBoxProps.d.ts +0 -277
- package/dist/es/ComboBox/ComboBoxProps.js +0 -2
- package/dist/es/DropDownList/DropDownList.d.ts +0 -103
- package/dist/es/DropDownList/DropDownList.js +0 -1314
- package/dist/es/DropDownList/DropDownListProps.d.ts +0 -307
- package/dist/es/DropDownList/DropDownListProps.js +0 -2
- package/dist/es/DropDownTree/DropDownTree.d.ts +0 -49
- package/dist/es/DropDownTree/DropDownTree.js +0 -1090
- package/dist/es/DropDownTree/DropDownTreeProps.d.ts +0 -301
- package/dist/es/DropDownTree/DropDownTreeProps.js +0 -2
- package/dist/es/DropDownTree/ListNoData.d.ts +0 -42
- package/dist/es/DropDownTree/ListNoData.js +0 -32
- package/dist/es/MultiSelect/MultiSelect.d.ts +0 -115
- package/dist/es/MultiSelect/MultiSelect.js +0 -1515
- package/dist/es/MultiSelect/MultiSelectProps.d.ts +0 -290
- package/dist/es/MultiSelect/MultiSelectProps.js +0 -2
- package/dist/es/MultiSelect/TagList.d.ts +0 -54
- package/dist/es/MultiSelect/TagList.js +0 -176
- package/dist/es/MultiSelectTree/MultiSelectTree.d.ts +0 -48
- package/dist/es/MultiSelectTree/MultiSelectTree.js +0 -1220
- package/dist/es/MultiSelectTree/MultiSelectTreeProps.d.ts +0 -322
- package/dist/es/MultiSelectTree/MultiSelectTreeProps.js +0 -2
- package/dist/es/MultiSelectTree/utils.d.ts +0 -17
- package/dist/es/MultiSelectTree/utils.js +0 -109
- package/dist/es/additionalTypes.ts +0 -21
- package/dist/es/common/ClearButton.d.ts +0 -21
- package/dist/es/common/ClearButton.js +0 -73
- package/dist/es/common/DropDownBase.d.ts +0 -95
- package/dist/es/common/DropDownBase.js +0 -298
- package/dist/es/common/GroupStickyHeader.d.ts +0 -32
- package/dist/es/common/GroupStickyHeader.js +0 -60
- package/dist/es/common/List.d.ts +0 -60
- package/dist/es/common/List.js +0 -201
- package/dist/es/common/ListContainer.d.ts +0 -40
- package/dist/es/common/ListContainer.js +0 -161
- package/dist/es/common/ListDefaultItem.d.ts +0 -29
- package/dist/es/common/ListDefaultItem.js +0 -60
- package/dist/es/common/ListFilter.d.ts +0 -49
- package/dist/es/common/ListFilter.js +0 -175
- package/dist/es/common/ListGroupItem.d.ts +0 -41
- package/dist/es/common/ListGroupItem.js +0 -71
- package/dist/es/common/ListItem.d.ts +0 -71
- package/dist/es/common/ListItem.js +0 -101
- package/dist/es/common/Navigation.d.ts +0 -12
- package/dist/es/common/Navigation.js +0 -34
- package/dist/es/common/SearchBar.d.ts +0 -66
- package/dist/es/common/SearchBar.js +0 -177
- package/dist/es/common/VirtualScroll.d.ts +0 -42
- package/dist/es/common/VirtualScroll.js +0 -163
- package/dist/es/common/constants.d.ts +0 -4
- package/dist/es/common/constants.js +0 -4
- package/dist/es/common/events.d.ts +0 -63
- package/dist/es/common/events.js +0 -1
- package/dist/es/common/filterDescriptor.d.ts +0 -41
- package/dist/es/common/filterDescriptor.js +0 -2
- package/dist/es/common/settings.d.ts +0 -107
- package/dist/es/common/settings.js +0 -8
- package/dist/es/common/utils.d.ts +0 -70
- package/dist/es/common/utils.js +0 -202
- package/dist/es/main.d.ts +0 -18
- package/dist/es/main.js +0 -10
- package/dist/es/messages/main.d.ts +0 -40
- package/dist/es/messages/main.js +0 -41
- package/dist/es/package-metadata.d.ts +0 -5
- package/dist/es/package-metadata.js +0 -11
- package/dist/esm/AutoComplete/AutoComplete.d.ts +0 -107
- package/dist/esm/AutoComplete/AutoComplete.js +0 -825
- package/dist/esm/AutoComplete/AutoCompleteProps.d.ts +0 -234
- package/dist/esm/AutoComplete/AutoCompleteProps.js +0 -2
- package/dist/esm/ComboBox/ComboBox.d.ts +0 -99
- package/dist/esm/ComboBox/ComboBox.js +0 -1315
- package/dist/esm/ComboBox/ComboBoxProps.d.ts +0 -277
- package/dist/esm/ComboBox/ComboBoxProps.js +0 -2
- package/dist/esm/DropDownList/DropDownList.d.ts +0 -103
- package/dist/esm/DropDownList/DropDownList.js +0 -1314
- package/dist/esm/DropDownList/DropDownListProps.d.ts +0 -307
- package/dist/esm/DropDownList/DropDownListProps.js +0 -2
- package/dist/esm/DropDownTree/DropDownTree.d.ts +0 -49
- package/dist/esm/DropDownTree/DropDownTree.js +0 -1090
- package/dist/esm/DropDownTree/DropDownTreeProps.d.ts +0 -301
- package/dist/esm/DropDownTree/DropDownTreeProps.js +0 -2
- package/dist/esm/DropDownTree/ListNoData.d.ts +0 -42
- package/dist/esm/DropDownTree/ListNoData.js +0 -32
- package/dist/esm/MultiSelect/MultiSelect.d.ts +0 -115
- package/dist/esm/MultiSelect/MultiSelect.js +0 -1515
- package/dist/esm/MultiSelect/MultiSelectProps.d.ts +0 -290
- package/dist/esm/MultiSelect/MultiSelectProps.js +0 -2
- package/dist/esm/MultiSelect/TagList.d.ts +0 -54
- package/dist/esm/MultiSelect/TagList.js +0 -176
- package/dist/esm/MultiSelectTree/MultiSelectTree.d.ts +0 -48
- package/dist/esm/MultiSelectTree/MultiSelectTree.js +0 -1220
- package/dist/esm/MultiSelectTree/MultiSelectTreeProps.d.ts +0 -322
- package/dist/esm/MultiSelectTree/MultiSelectTreeProps.js +0 -2
- package/dist/esm/MultiSelectTree/utils.d.ts +0 -17
- package/dist/esm/MultiSelectTree/utils.js +0 -109
- package/dist/esm/additionalTypes.ts +0 -21
- package/dist/esm/common/ClearButton.d.ts +0 -21
- package/dist/esm/common/ClearButton.js +0 -73
- package/dist/esm/common/DropDownBase.d.ts +0 -95
- package/dist/esm/common/DropDownBase.js +0 -298
- package/dist/esm/common/GroupStickyHeader.d.ts +0 -32
- package/dist/esm/common/GroupStickyHeader.js +0 -60
- package/dist/esm/common/List.d.ts +0 -60
- package/dist/esm/common/List.js +0 -201
- package/dist/esm/common/ListContainer.d.ts +0 -40
- package/dist/esm/common/ListContainer.js +0 -161
- package/dist/esm/common/ListDefaultItem.d.ts +0 -29
- package/dist/esm/common/ListDefaultItem.js +0 -60
- package/dist/esm/common/ListFilter.d.ts +0 -49
- package/dist/esm/common/ListFilter.js +0 -175
- package/dist/esm/common/ListGroupItem.d.ts +0 -41
- package/dist/esm/common/ListGroupItem.js +0 -71
- package/dist/esm/common/ListItem.d.ts +0 -71
- package/dist/esm/common/ListItem.js +0 -101
- package/dist/esm/common/Navigation.d.ts +0 -12
- package/dist/esm/common/Navigation.js +0 -34
- package/dist/esm/common/SearchBar.d.ts +0 -66
- package/dist/esm/common/SearchBar.js +0 -177
- package/dist/esm/common/VirtualScroll.d.ts +0 -42
- package/dist/esm/common/VirtualScroll.js +0 -163
- package/dist/esm/common/constants.d.ts +0 -4
- package/dist/esm/common/constants.js +0 -4
- package/dist/esm/common/events.d.ts +0 -63
- package/dist/esm/common/events.js +0 -1
- package/dist/esm/common/filterDescriptor.d.ts +0 -41
- package/dist/esm/common/filterDescriptor.js +0 -2
- package/dist/esm/common/settings.d.ts +0 -107
- package/dist/esm/common/settings.js +0 -8
- package/dist/esm/common/utils.d.ts +0 -70
- package/dist/esm/common/utils.js +0 -202
- package/dist/esm/main.d.ts +0 -18
- package/dist/esm/main.js +0 -10
- package/dist/esm/messages/main.d.ts +0 -40
- package/dist/esm/messages/main.js +0 -41
- package/dist/esm/package-metadata.d.ts +0 -5
- package/dist/esm/package-metadata.js +0 -11
- package/dist/esm/package.json +0 -3
- package/dist/npm/AutoComplete/AutoComplete.d.ts +0 -107
- package/dist/npm/AutoComplete/AutoComplete.js +0 -832
- package/dist/npm/AutoComplete/AutoCompleteProps.d.ts +0 -234
- package/dist/npm/AutoComplete/AutoCompleteProps.js +0 -3
- package/dist/npm/ComboBox/ComboBox.d.ts +0 -99
- package/dist/npm/ComboBox/ComboBox.js +0 -1322
- package/dist/npm/ComboBox/ComboBoxProps.d.ts +0 -277
- package/dist/npm/ComboBox/ComboBoxProps.js +0 -3
- package/dist/npm/DropDownList/DropDownList.d.ts +0 -103
- package/dist/npm/DropDownList/DropDownList.js +0 -1321
- package/dist/npm/DropDownList/DropDownListProps.d.ts +0 -307
- package/dist/npm/DropDownList/DropDownListProps.js +0 -3
- package/dist/npm/DropDownTree/DropDownTree.d.ts +0 -49
- package/dist/npm/DropDownTree/DropDownTree.js +0 -1095
- package/dist/npm/DropDownTree/DropDownTreeProps.d.ts +0 -301
- package/dist/npm/DropDownTree/DropDownTreeProps.js +0 -3
- package/dist/npm/DropDownTree/ListNoData.d.ts +0 -42
- package/dist/npm/DropDownTree/ListNoData.js +0 -39
- package/dist/npm/MultiSelect/MultiSelect.d.ts +0 -115
- package/dist/npm/MultiSelect/MultiSelect.js +0 -1522
- package/dist/npm/MultiSelect/MultiSelectProps.d.ts +0 -290
- package/dist/npm/MultiSelect/MultiSelectProps.js +0 -3
- package/dist/npm/MultiSelect/TagList.d.ts +0 -54
- package/dist/npm/MultiSelect/TagList.js +0 -183
- package/dist/npm/MultiSelectTree/MultiSelectTree.d.ts +0 -48
- package/dist/npm/MultiSelectTree/MultiSelectTree.js +0 -1227
- package/dist/npm/MultiSelectTree/MultiSelectTreeProps.d.ts +0 -322
- package/dist/npm/MultiSelectTree/MultiSelectTreeProps.js +0 -3
- package/dist/npm/MultiSelectTree/utils.d.ts +0 -17
- package/dist/npm/MultiSelectTree/utils.js +0 -114
- package/dist/npm/additionalTypes.ts +0 -21
- package/dist/npm/common/ClearButton.d.ts +0 -21
- package/dist/npm/common/ClearButton.js +0 -80
- package/dist/npm/common/DropDownBase.d.ts +0 -95
- package/dist/npm/common/DropDownBase.js +0 -303
- package/dist/npm/common/GroupStickyHeader.d.ts +0 -32
- package/dist/npm/common/GroupStickyHeader.js +0 -67
- package/dist/npm/common/List.d.ts +0 -60
- package/dist/npm/common/List.js +0 -208
- package/dist/npm/common/ListContainer.d.ts +0 -40
- package/dist/npm/common/ListContainer.js +0 -168
- package/dist/npm/common/ListDefaultItem.d.ts +0 -29
- package/dist/npm/common/ListDefaultItem.js +0 -67
- package/dist/npm/common/ListFilter.d.ts +0 -49
- package/dist/npm/common/ListFilter.js +0 -182
- package/dist/npm/common/ListGroupItem.d.ts +0 -41
- package/dist/npm/common/ListGroupItem.js +0 -78
- package/dist/npm/common/ListItem.d.ts +0 -71
- package/dist/npm/common/ListItem.js +0 -108
- package/dist/npm/common/Navigation.d.ts +0 -12
- package/dist/npm/common/Navigation.js +0 -37
- package/dist/npm/common/SearchBar.d.ts +0 -66
- package/dist/npm/common/SearchBar.js +0 -184
- package/dist/npm/common/VirtualScroll.d.ts +0 -42
- package/dist/npm/common/VirtualScroll.js +0 -168
- package/dist/npm/common/constants.d.ts +0 -4
- package/dist/npm/common/constants.js +0 -10
- package/dist/npm/common/events.d.ts +0 -63
- package/dist/npm/common/events.js +0 -2
- package/dist/npm/common/filterDescriptor.d.ts +0 -41
- package/dist/npm/common/filterDescriptor.js +0 -3
- package/dist/npm/common/settings.d.ts +0 -107
- package/dist/npm/common/settings.js +0 -11
- package/dist/npm/common/utils.d.ts +0 -70
- package/dist/npm/common/utils.js +0 -221
- package/dist/npm/main.d.ts +0 -18
- package/dist/npm/main.js +0 -36
- package/dist/npm/messages/main.d.ts +0 -40
- package/dist/npm/messages/main.js +0 -44
- package/dist/npm/package-metadata.d.ts +0 -5
- package/dist/npm/package-metadata.js +0 -14
|
@@ -1,290 +0,0 @@
|
|
|
1
|
-
import { FormComponentProps } from '@progress/kendo-vue-common';
|
|
2
|
-
import { FilterChangeEvent, ChangeEvent, OpenEvent, CloseEvent, FocusEvent, BlurEvent, PageChangeEvent } from './../common/events';
|
|
3
|
-
import { VirtualizationSettings, DropDownsPopupSettings } from '../common/settings';
|
|
4
|
-
import { TagData } from './TagList';
|
|
5
|
-
/**
|
|
6
|
-
* Represents the object of the `filterChange` MultiSelect event.
|
|
7
|
-
*/
|
|
8
|
-
export interface MultiSelectFilterChangeEvent extends FilterChangeEvent {
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* Represents the object of the `change` MultiSelect event.
|
|
12
|
-
*/
|
|
13
|
-
export interface MultiSelectChangeEvent extends ChangeEvent {
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* Represents the object of the `open` MultiSelect event.
|
|
17
|
-
*/
|
|
18
|
-
export interface MultiSelectOpenEvent extends OpenEvent {
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* Represents the object of the `close` MultiSelect event.
|
|
22
|
-
*/
|
|
23
|
-
export interface MultiSelectCloseEvent extends CloseEvent {
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* Represents the object of the `focus` MultiSelect event.
|
|
27
|
-
*/
|
|
28
|
-
export interface MultiSelectFocusEvent extends FocusEvent {
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
* Represents the object of the `blur` MultiSelect event.
|
|
32
|
-
*/
|
|
33
|
-
export interface MultiSelectBlurEvent extends BlurEvent {
|
|
34
|
-
}
|
|
35
|
-
/**
|
|
36
|
-
* Represents the object of the `pageChange` MultiSelect event.
|
|
37
|
-
*/
|
|
38
|
-
export interface MultiSelectPageChangeEvent extends PageChangeEvent {
|
|
39
|
-
}
|
|
40
|
-
/**
|
|
41
|
-
* Represents the props of the [Kendo UI for Vue MultiSelect component]({% slug overview_multiselect %}).
|
|
42
|
-
*/
|
|
43
|
-
export interface MultiSelectProps extends FormComponentProps {
|
|
44
|
-
/**
|
|
45
|
-
* Specifies whether the MultiSelect allows user-defined values that are not present in the dataset ([see example]({% slug custom_values_multiselect %})). Defaults to `false`.
|
|
46
|
-
*/
|
|
47
|
-
allowCustom?: boolean;
|
|
48
|
-
/**
|
|
49
|
-
* Sets the data of the MultiSelect ([see example]({% slug binding_multiselect %})).
|
|
50
|
-
*/
|
|
51
|
-
dataItems?: any[];
|
|
52
|
-
/**
|
|
53
|
-
* Sets the opened and closed state of the MultiSelect.
|
|
54
|
-
*/
|
|
55
|
-
opened?: boolean;
|
|
56
|
-
/**
|
|
57
|
-
* Determines whether to close the options list of the MultiSelect after the item selection is finished.
|
|
58
|
-
*
|
|
59
|
-
* @default true
|
|
60
|
-
*/
|
|
61
|
-
autoClose?: boolean;
|
|
62
|
-
/**
|
|
63
|
-
* @hidden
|
|
64
|
-
*/
|
|
65
|
-
modelValue?: any;
|
|
66
|
-
/**
|
|
67
|
-
* 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.
|
|
68
|
-
*/
|
|
69
|
-
value?: Array<any>;
|
|
70
|
-
/**
|
|
71
|
-
* Sets the validate of the input.
|
|
72
|
-
*/
|
|
73
|
-
validate?: boolean;
|
|
74
|
-
/**
|
|
75
|
-
* The hint that is displayed when the MultiSelect is empty.
|
|
76
|
-
*/
|
|
77
|
-
placeholder?: string;
|
|
78
|
-
/**
|
|
79
|
-
* Sets the close icon of the tag items.
|
|
80
|
-
*/
|
|
81
|
-
removeTagIcon?: string;
|
|
82
|
-
/**
|
|
83
|
-
* Sets the tags of the MultiSelect ([see example]({% slug customtags_multiselect %})).
|
|
84
|
-
*/
|
|
85
|
-
tags?: Array<TagData>;
|
|
86
|
-
/**
|
|
87
|
-
* Sets the data item field that represents the item value.
|
|
88
|
-
*/
|
|
89
|
-
valueField?: string;
|
|
90
|
-
/**
|
|
91
|
-
* Specifies the type of the selected value. If set to true, the selected value has to be of a primitive value.
|
|
92
|
-
*/
|
|
93
|
-
valuePrimitive?: boolean;
|
|
94
|
-
/**
|
|
95
|
-
* 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.
|
|
96
|
-
*/
|
|
97
|
-
dataItemKey?: string;
|
|
98
|
-
/**
|
|
99
|
-
* Sets the default value of the MultiSelect. Similar to the native `select` HTML element.
|
|
100
|
-
*/
|
|
101
|
-
defaultValue?: Array<any>;
|
|
102
|
-
/**
|
|
103
|
-
* Sets the disabled state of the MultiSelect.
|
|
104
|
-
*/
|
|
105
|
-
disabled?: boolean;
|
|
106
|
-
/**
|
|
107
|
-
* Represents the `dir` HTML attribute.
|
|
108
|
-
*/
|
|
109
|
-
dir?: string;
|
|
110
|
-
/**
|
|
111
|
-
* Enables the filtering functionality of the MultiSelect ([more information and examples]({% slug filtering_multiselect %})).
|
|
112
|
-
*/
|
|
113
|
-
filterable?: boolean;
|
|
114
|
-
/**
|
|
115
|
-
* Specifies the id of the component.
|
|
116
|
-
*/
|
|
117
|
-
id?: string;
|
|
118
|
-
/**
|
|
119
|
-
* 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).
|
|
120
|
-
* For example these elements could contain error or hint message.
|
|
121
|
-
*/
|
|
122
|
-
ariaDescribedBy?: string;
|
|
123
|
-
/**
|
|
124
|
-
* Identifies the element(s) which will label the component.
|
|
125
|
-
*/
|
|
126
|
-
ariaLabelledBy?: string;
|
|
127
|
-
/**
|
|
128
|
-
* Defines the [aria-label](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-label) attribute of the component.
|
|
129
|
-
*/
|
|
130
|
-
ariaLabel?: string;
|
|
131
|
-
/**
|
|
132
|
-
* If set, the MultiSelect will use it to get the focused item index.
|
|
133
|
-
*
|
|
134
|
-
* Default functionality returns the first item which starts with the input text.
|
|
135
|
-
*
|
|
136
|
-
*/
|
|
137
|
-
focusedItemIndex?: (data: any, inputText: string, textField?: string) => number;
|
|
138
|
-
/**
|
|
139
|
-
* Sets the value of filtering input. Useful for making the filtering input a controlled component.
|
|
140
|
-
*/
|
|
141
|
-
filter?: string;
|
|
142
|
-
/**
|
|
143
|
-
* Sets the loading state of the MultiSelect ([see example]({% slug filtering_multiselect %}#toc-basic-configuration)).
|
|
144
|
-
*/
|
|
145
|
-
loading?: boolean;
|
|
146
|
-
/**
|
|
147
|
-
* Specifies the `tabIndex` of the MultiSelect.
|
|
148
|
-
*/
|
|
149
|
-
tabIndex?: number;
|
|
150
|
-
/**
|
|
151
|
-
* Specifies the `accessKey` of the MultiSelect.
|
|
152
|
-
*/
|
|
153
|
-
accessKey?: string;
|
|
154
|
-
/**
|
|
155
|
-
* 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.
|
|
156
|
-
*/
|
|
157
|
-
textField?: string;
|
|
158
|
-
/**
|
|
159
|
-
* Renders a floating label for the MultiSelect.
|
|
160
|
-
*/
|
|
161
|
-
label?: string;
|
|
162
|
-
/**
|
|
163
|
-
* Configures the popup of the MultiSelect.
|
|
164
|
-
*/
|
|
165
|
-
popupSettings?: DropDownsPopupSettings;
|
|
166
|
-
/**
|
|
167
|
-
* Configures the virtual scrolling of the MultiSelect ([see example]({% slug virtualization_multiselect %})).
|
|
168
|
-
*/
|
|
169
|
-
virtual?: VirtualizationSettings;
|
|
170
|
-
/**
|
|
171
|
-
* Fires each time the popup of the MultiSelect is about to open.
|
|
172
|
-
*/
|
|
173
|
-
onOpen?: (event: MultiSelectOpenEvent) => void;
|
|
174
|
-
/**
|
|
175
|
-
* Fires each time the popup of the MultiSelect is about to close.
|
|
176
|
-
*/
|
|
177
|
-
onClose?: (event: MultiSelectCloseEvent) => void;
|
|
178
|
-
/**
|
|
179
|
-
* Fires each time the user focuses the MultiSelect.
|
|
180
|
-
*/
|
|
181
|
-
onFocus?: (event: MultiSelectFocusEvent) => void;
|
|
182
|
-
/**
|
|
183
|
-
* Fires each time the MultiSelect gets blurred.
|
|
184
|
-
*/
|
|
185
|
-
onBlur?: (event: MultiSelectBlurEvent) => void;
|
|
186
|
-
/**
|
|
187
|
-
* Fires each time the value of the MultiSelect is about to change ([see examples]({% slug binding_multiselect %})).
|
|
188
|
-
*/
|
|
189
|
-
onChange?: (event: MultiSelectChangeEvent) => void;
|
|
190
|
-
/**
|
|
191
|
-
* 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.
|
|
192
|
-
*/
|
|
193
|
-
onFilterchange?: (event: MultiSelectFilterChangeEvent) => void;
|
|
194
|
-
/**
|
|
195
|
-
* 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 %})).
|
|
196
|
-
*/
|
|
197
|
-
onPagechange?: (event: MultiSelectPageChangeEvent) => void;
|
|
198
|
-
/**
|
|
199
|
-
* 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.
|
|
200
|
-
*/
|
|
201
|
-
itemRender?: any;
|
|
202
|
-
/**
|
|
203
|
-
* 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.
|
|
204
|
-
*/
|
|
205
|
-
listNoDataRender?: any;
|
|
206
|
-
/**
|
|
207
|
-
* 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.
|
|
208
|
-
*/
|
|
209
|
-
tagRender?: any;
|
|
210
|
-
/**
|
|
211
|
-
* Sets the header component of the MultiSelect ([see example]({% slug customrendering_multiselect %}#toc-headers-and-footers)).
|
|
212
|
-
*/
|
|
213
|
-
header?: any;
|
|
214
|
-
/**
|
|
215
|
-
* Sets the footer component of the MultiSelect ([see example]({% slug customrendering_multiselect %}#toc-headers-and-footers)).
|
|
216
|
-
*/
|
|
217
|
-
footer?: any;
|
|
218
|
-
/**
|
|
219
|
-
* Configures the `size` of the MultiSelect.
|
|
220
|
-
*
|
|
221
|
-
* The available options are:
|
|
222
|
-
* - small
|
|
223
|
-
* - medium
|
|
224
|
-
* - large
|
|
225
|
-
* - null—Does not set a size `class`.
|
|
226
|
-
*
|
|
227
|
-
* @default `medium`
|
|
228
|
-
*/
|
|
229
|
-
size?: null | 'small' | 'medium' | 'large' | string;
|
|
230
|
-
/**
|
|
231
|
-
* Configures the `roundness` of the MultiSelect.
|
|
232
|
-
*
|
|
233
|
-
* The available options are:
|
|
234
|
-
* - small
|
|
235
|
-
* - medium
|
|
236
|
-
* - large
|
|
237
|
-
* - full
|
|
238
|
-
* - null—Does not set a rounded `class`.
|
|
239
|
-
*
|
|
240
|
-
* @default `medium`
|
|
241
|
-
*/
|
|
242
|
-
rounded?: null | 'small' | 'medium' | 'large' | 'full' | string;
|
|
243
|
-
/**
|
|
244
|
-
* Configures the `roundness` of the tags in MultiSelect.
|
|
245
|
-
*
|
|
246
|
-
* The available options are:
|
|
247
|
-
* - small
|
|
248
|
-
* - medium
|
|
249
|
-
* - large
|
|
250
|
-
* - circle
|
|
251
|
-
* - full
|
|
252
|
-
* - null—Does not set a rounded `class`.
|
|
253
|
-
*
|
|
254
|
-
* @default `medium`
|
|
255
|
-
*/
|
|
256
|
-
tagsRounded?: null | 'small' | 'medium' | 'large' | 'full' | string;
|
|
257
|
-
/**
|
|
258
|
-
* Configures the `fillMode` of the MultiSelect.
|
|
259
|
-
*
|
|
260
|
-
* The available options are:
|
|
261
|
-
* - solid
|
|
262
|
-
* - outline
|
|
263
|
-
* - flat
|
|
264
|
-
* - link
|
|
265
|
-
* - null—Does not set a fillMode `class`.
|
|
266
|
-
*
|
|
267
|
-
* @default `solid`
|
|
268
|
-
*/
|
|
269
|
-
fillMode?: null | 'solid' | 'outline' | 'flat' | string;
|
|
270
|
-
/**
|
|
271
|
-
* Sets the data item field that represents the start of a group. Applicable to objects data.
|
|
272
|
-
*/
|
|
273
|
-
groupField?: string;
|
|
274
|
-
/**
|
|
275
|
-
* Fires when a MultiSelect group header item is about to be rendered. Used to override the default appearance of the group's headers.
|
|
276
|
-
*/
|
|
277
|
-
groupHeaderItemRender?: any;
|
|
278
|
-
/**
|
|
279
|
-
* Fires when a MultiSelect sticky group header item is about to be rendered. Used to override the default appearance of the sticky group header of the component.
|
|
280
|
-
*/
|
|
281
|
-
groupStickyHeaderItemRender?: any;
|
|
282
|
-
/**
|
|
283
|
-
* Provides different rendering of the popup element based on the screen dimensions.
|
|
284
|
-
*/
|
|
285
|
-
adaptive?: boolean;
|
|
286
|
-
/**
|
|
287
|
-
* Specifies the text that is rendered as title in the adaptive popup.
|
|
288
|
-
*/
|
|
289
|
-
adaptiveTitle?: string;
|
|
290
|
-
}
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { DefineComponent, RecordPropsDefinition, ComponentOptions, Vue2type } from '../additionalTypes';
|
|
2
|
-
declare type DefaultData<V> = object | ((this: V) => TagListAll);
|
|
3
|
-
declare type DefaultMethods<V> = {
|
|
4
|
-
[key: string]: (this: V, ...args: any[]) => any;
|
|
5
|
-
};
|
|
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
|
-
removeTagIcon: string;
|
|
24
|
-
dataItems: Array<TagData>;
|
|
25
|
-
guid: string;
|
|
26
|
-
id?: string;
|
|
27
|
-
className?: string;
|
|
28
|
-
focused?: TagData;
|
|
29
|
-
tagRender?: any;
|
|
30
|
-
size?: null | 'small' | 'medium' | 'large' | string;
|
|
31
|
-
fillMode?: null | 'solid' | 'outline' | 'flat' | string;
|
|
32
|
-
tagsRounded?: null | 'small' | 'medium' | 'large' | 'full' | string;
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* @hidden
|
|
36
|
-
*/
|
|
37
|
-
export interface TagListMethods extends Vue2type {
|
|
38
|
-
[key: string]: any;
|
|
39
|
-
onTagDelete: (data: any, e: any) => void;
|
|
40
|
-
}
|
|
41
|
-
/**
|
|
42
|
-
* @hidden
|
|
43
|
-
*/
|
|
44
|
-
export interface TagListAll extends TagListMethods {
|
|
45
|
-
}
|
|
46
|
-
/**
|
|
47
|
-
* @hidden
|
|
48
|
-
*/
|
|
49
|
-
declare let TagListVue2: ComponentOptions<Vue2type, DefaultData<TagListAll>, DefaultMethods<TagListAll>, {}, RecordPropsDefinition<TagListProps>>;
|
|
50
|
-
/**
|
|
51
|
-
* @hidden
|
|
52
|
-
*/
|
|
53
|
-
declare const TagList: DefineComponent<{}, any, {}, {}, TagListMethods, {}, {}, {}, string, {}, {}, {}>;
|
|
54
|
-
export { TagList, TagListVue2 };
|
|
@@ -1,183 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var __assign = undefined && undefined.__assign || function () {
|
|
4
|
-
__assign = Object.assign || function (t) {
|
|
5
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
6
|
-
s = arguments[i];
|
|
7
|
-
for (var p in s) {
|
|
8
|
-
if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
return t;
|
|
12
|
-
};
|
|
13
|
-
return __assign.apply(this, arguments);
|
|
14
|
-
};
|
|
15
|
-
Object.defineProperty(exports, "__esModule", {
|
|
16
|
-
value: true
|
|
17
|
-
});
|
|
18
|
-
exports.TagListVue2 = exports.TagList = void 0;
|
|
19
|
-
// @ts-ignore
|
|
20
|
-
var kendo_vue_common_1 = require("@progress/kendo-vue-common");
|
|
21
|
-
var Vue = require("vue");
|
|
22
|
-
var allVue = Vue;
|
|
23
|
-
var gh = allVue.h;
|
|
24
|
-
var isV3 = allVue.version && allVue.version[0] === '3';
|
|
25
|
-
var ref = allVue.ref;
|
|
26
|
-
var kendo_vue_buttons_1 = require("@progress/kendo-vue-buttons");
|
|
27
|
-
var preventDefault = function preventDefault(event) {
|
|
28
|
-
return event.preventDefault();
|
|
29
|
-
};
|
|
30
|
-
var stopPropagation = function stopPropagation(event) {
|
|
31
|
-
return event.event.stopPropagation();
|
|
32
|
-
};
|
|
33
|
-
/**
|
|
34
|
-
* @hidden
|
|
35
|
-
*/
|
|
36
|
-
var TagListVue2 = {
|
|
37
|
-
name: 'TagList',
|
|
38
|
-
inheritAttrs: false,
|
|
39
|
-
props: {
|
|
40
|
-
removeTagIcon: String,
|
|
41
|
-
dataItems: Array,
|
|
42
|
-
guid: String,
|
|
43
|
-
focused: Object,
|
|
44
|
-
tagRender: [String, Function, Object],
|
|
45
|
-
tagsRounded: {
|
|
46
|
-
type: String,
|
|
47
|
-
default: 'medium',
|
|
48
|
-
validator: function validator(value) {
|
|
49
|
-
return ['small', 'medium', 'large', 'full'].includes(value);
|
|
50
|
-
}
|
|
51
|
-
},
|
|
52
|
-
fillMode: {
|
|
53
|
-
type: String,
|
|
54
|
-
default: 'solid',
|
|
55
|
-
validator: function validator(value) {
|
|
56
|
-
return ['solid', 'flat', 'outline'].includes(value);
|
|
57
|
-
}
|
|
58
|
-
},
|
|
59
|
-
id: String,
|
|
60
|
-
className: String,
|
|
61
|
-
size: {
|
|
62
|
-
type: String,
|
|
63
|
-
default: 'medium',
|
|
64
|
-
validator: function validator(value) {
|
|
65
|
-
return ['small', 'medium', 'large'].includes(value);
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
},
|
|
69
|
-
computed: {
|
|
70
|
-
wrapperClass: function wrapperClass() {
|
|
71
|
-
var _a;
|
|
72
|
-
var _b = this.$props,
|
|
73
|
-
size = _b.size,
|
|
74
|
-
disabled = _b.disabled;
|
|
75
|
-
return _a = {
|
|
76
|
-
'k-chip-list': true
|
|
77
|
-
}, _a["k-chip-list-".concat(kendo_vue_common_1.kendoThemeMaps.sizeMap[size] || size)] = size, _a['k-disabled'] = disabled, _a;
|
|
78
|
-
}
|
|
79
|
-
},
|
|
80
|
-
// @ts-ignore
|
|
81
|
-
setup: !isV3 ? undefined : function () {
|
|
82
|
-
var v3 = !!isV3;
|
|
83
|
-
return {
|
|
84
|
-
v3: v3
|
|
85
|
-
};
|
|
86
|
-
},
|
|
87
|
-
methods: {
|
|
88
|
-
onTagDelete: function onTagDelete(tagData, event) {
|
|
89
|
-
this.$emit('tagdelete', tagData, event);
|
|
90
|
-
}
|
|
91
|
-
},
|
|
92
|
-
render: function render(createElement) {
|
|
93
|
-
var h = gh || createElement;
|
|
94
|
-
var defaultSlot = (0, kendo_vue_common_1.getDefaultSlots)(this);
|
|
95
|
-
var _a = this.$props,
|
|
96
|
-
dataItems = _a.dataItems,
|
|
97
|
-
guid = _a.guid,
|
|
98
|
-
size = _a.size,
|
|
99
|
-
disabled = _a.disabled,
|
|
100
|
-
tagsRounded = _a.tagsRounded,
|
|
101
|
-
removeTagIcon = _a.removeTagIcon,
|
|
102
|
-
id = _a.id,
|
|
103
|
-
className = _a.className;
|
|
104
|
-
return h("div", {
|
|
105
|
-
"class": (0, kendo_vue_common_1.classNames)('k-input-values', className),
|
|
106
|
-
id: id,
|
|
107
|
-
attrs: this.v3 ? undefined : {
|
|
108
|
-
id: id
|
|
109
|
-
},
|
|
110
|
-
style: this.$attrs.style
|
|
111
|
-
}, [h("div", {
|
|
112
|
-
"class": this.wrapperClass,
|
|
113
|
-
role: "listbox",
|
|
114
|
-
attrs: this.v3 ? undefined : {
|
|
115
|
-
role: "listbox",
|
|
116
|
-
id: 'tagslist-' + guid
|
|
117
|
-
},
|
|
118
|
-
id: 'tagslist-' + guid
|
|
119
|
-
}, [dataItems.map(function (tagData, index) {
|
|
120
|
-
var _this = this;
|
|
121
|
-
var uniqueId = "tag-".concat(guid, "-").concat(tagData.text.toString().replace(/\s+/g, '-'));
|
|
122
|
-
var isFocused = tagData === this.$props.focused;
|
|
123
|
-
var defaultRendering = h(kendo_vue_buttons_1.Chip, {
|
|
124
|
-
id: uniqueId,
|
|
125
|
-
attrs: this.v3 ? undefined : {
|
|
126
|
-
id: uniqueId,
|
|
127
|
-
tabindex: -1,
|
|
128
|
-
"aria-selected": isFocused,
|
|
129
|
-
role: "option",
|
|
130
|
-
"aria-setsize": dataItems.length,
|
|
131
|
-
text: tagData.text,
|
|
132
|
-
disabled: disabled,
|
|
133
|
-
removable: true,
|
|
134
|
-
removeIcon: removeTagIcon,
|
|
135
|
-
rounded: tagsRounded,
|
|
136
|
-
size: size
|
|
137
|
-
},
|
|
138
|
-
tabindex: -1,
|
|
139
|
-
"aria-selected": isFocused,
|
|
140
|
-
role: "option",
|
|
141
|
-
"aria-setsize": dataItems.length,
|
|
142
|
-
key: tagData.text + index,
|
|
143
|
-
text: tagData.text,
|
|
144
|
-
disabled: disabled,
|
|
145
|
-
removable: true,
|
|
146
|
-
onRemove: function onRemove(e) {
|
|
147
|
-
return _this.onTagDelete(tagData.data, e);
|
|
148
|
-
},
|
|
149
|
-
on: this.v3 ? undefined : {
|
|
150
|
-
"remove": function onRemove(e) {
|
|
151
|
-
return _this.onTagDelete(tagData.data, e);
|
|
152
|
-
},
|
|
153
|
-
"mousedown": preventDefault,
|
|
154
|
-
"click": stopPropagation
|
|
155
|
-
},
|
|
156
|
-
removeIcon: removeTagIcon,
|
|
157
|
-
onMousedown: preventDefault,
|
|
158
|
-
onClick: stopPropagation,
|
|
159
|
-
"class": isFocused ? 'k-focus' : undefined,
|
|
160
|
-
rounded: tagsRounded,
|
|
161
|
-
size: size
|
|
162
|
-
});
|
|
163
|
-
return kendo_vue_common_1.getTemplate.call(this, {
|
|
164
|
-
h: h,
|
|
165
|
-
template: this.$props.tagRender,
|
|
166
|
-
defaultRendering: defaultRendering,
|
|
167
|
-
additionalProps: __assign(__assign({}, this.$props), {
|
|
168
|
-
tagData: tagData,
|
|
169
|
-
index: index
|
|
170
|
-
}),
|
|
171
|
-
additionalListeners: {
|
|
172
|
-
tagdelete: this.onTagDelete
|
|
173
|
-
}
|
|
174
|
-
});
|
|
175
|
-
}, this), defaultSlot])]);
|
|
176
|
-
}
|
|
177
|
-
};
|
|
178
|
-
exports.TagListVue2 = TagListVue2;
|
|
179
|
-
/**
|
|
180
|
-
* @hidden
|
|
181
|
-
*/
|
|
182
|
-
var TagList = TagListVue2;
|
|
183
|
-
exports.TagList = TagList;
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { DefineComponent, RecordPropsDefinition, ComponentOptions, Vue2type } from '../additionalTypes';
|
|
2
|
-
declare type DefaultData<V> = object | ((this: V) => {});
|
|
3
|
-
declare type DefaultMethods<V> = {
|
|
4
|
-
[key: string]: (this: V, ...args: any[]) => any;
|
|
5
|
-
};
|
|
6
|
-
import { MultiSelectTreeProps } from './MultiSelectTreeProps';
|
|
7
|
-
import { TagData } from '../MultiSelect/TagList';
|
|
8
|
-
/**
|
|
9
|
-
* @hidden
|
|
10
|
-
*/
|
|
11
|
-
export interface MultiSelectTreeState {
|
|
12
|
-
anchor: string;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* @hidden
|
|
16
|
-
*/
|
|
17
|
-
export interface MultiSelectTreeComputed {
|
|
18
|
-
[key: string]: any;
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* @hidden
|
|
22
|
-
*/
|
|
23
|
-
export interface MultiSelectTreeMethods {
|
|
24
|
-
[key: string]: any;
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* @hidden
|
|
28
|
-
*/
|
|
29
|
-
export interface MultiSelectTreeData {
|
|
30
|
-
focusedTagState: TagData | undefined;
|
|
31
|
-
openState: boolean;
|
|
32
|
-
focusedState: boolean;
|
|
33
|
-
filterState: string;
|
|
34
|
-
}
|
|
35
|
-
/**
|
|
36
|
-
* @hidden
|
|
37
|
-
*/
|
|
38
|
-
export interface MultiSelectTreeAll extends Vue2type, MultiSelectTreeMethods, MultiSelectTreeData, MultiSelectTreeComputed, MultiSelectTreeState {
|
|
39
|
-
}
|
|
40
|
-
/**
|
|
41
|
-
* @hidden
|
|
42
|
-
*/
|
|
43
|
-
declare let MultiSelectTreeVue2: ComponentOptions<MultiSelectTreeAll, DefaultData<MultiSelectTreeData>, DefaultMethods<MultiSelectTreeAll>, MultiSelectTreeComputed, RecordPropsDefinition<MultiSelectTreeProps>>;
|
|
44
|
-
/**
|
|
45
|
-
* @hidden
|
|
46
|
-
*/
|
|
47
|
-
declare const MultiSelectTree: DefineComponent<MultiSelectTreeProps, any, MultiSelectTreeData, MultiSelectTreeComputed, MultiSelectTreeMethods, {}, {}, {}, string, MultiSelectTreeProps, MultiSelectTreeProps, {}>;
|
|
48
|
-
export { MultiSelectTree, MultiSelectTreeVue2 };
|