@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,322 +0,0 @@
|
|
|
1
|
-
import { FormComponentProps } from '@progress/kendo-vue-common';
|
|
2
|
-
import { ItemRenderProps } from '@progress/kendo-vue-treeview';
|
|
3
|
-
import { FilterChangeEvent, OpenEvent, CloseEvent, FocusEvent, BlurEvent, DropdownEvent } from '../common/events';
|
|
4
|
-
import { DropDownsPopupSettings } from '../common/settings';
|
|
5
|
-
import { TagData } from '../MultiSelect/TagList';
|
|
6
|
-
/**
|
|
7
|
-
* Represents the object of the `onFilterChange` MultiSelectTree event.
|
|
8
|
-
*/
|
|
9
|
-
export interface MultiSelectTreeFilterChangeEvent extends FilterChangeEvent {
|
|
10
|
-
}
|
|
11
|
-
export declare type MultiSelectTreeChangeEventOperation = 'clear' | 'delete' | 'toggle';
|
|
12
|
-
/**
|
|
13
|
-
* Represents the object of the `onChange` MultiSelectTree event.
|
|
14
|
-
*/
|
|
15
|
-
export interface MultiSelectTreeChangeEvent extends DropdownEvent {
|
|
16
|
-
/**
|
|
17
|
-
* The items related to current operation.
|
|
18
|
-
*/
|
|
19
|
-
items: any[];
|
|
20
|
-
/**
|
|
21
|
-
* The new value.
|
|
22
|
-
*/
|
|
23
|
-
value: any[];
|
|
24
|
-
/**
|
|
25
|
-
* Describes the current operation:
|
|
26
|
-
* * `clear` - clear button is clicked and value is cleared. Null value is returned.
|
|
27
|
-
* * `delete` - tag is deleted using keyboard or mouse. The items contained in current tag are returned.
|
|
28
|
-
* * `toggle` - item in TreeView is toggled. Single item is returned.
|
|
29
|
-
*/
|
|
30
|
-
operation: MultiSelectTreeChangeEventOperation;
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* Represents the object of the `onOpen` MultiSelectTree event.
|
|
34
|
-
*/
|
|
35
|
-
export interface MultiSelectTreeOpenEvent extends OpenEvent {
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* Represents the object of the `onClose` MultiSelectTree event.
|
|
39
|
-
*/
|
|
40
|
-
export interface MultiSelectTreeCloseEvent extends CloseEvent {
|
|
41
|
-
}
|
|
42
|
-
/**
|
|
43
|
-
* Represents the object of the `onFocus` MultiSelectTree event.
|
|
44
|
-
*/
|
|
45
|
-
export interface MultiSelectTreeFocusEvent extends FocusEvent {
|
|
46
|
-
}
|
|
47
|
-
/**
|
|
48
|
-
* Represents the object of the `onBlur` MultiSelectTree event.
|
|
49
|
-
*/
|
|
50
|
-
export interface MultiSelectTreeBlurEvent extends BlurEvent {
|
|
51
|
-
}
|
|
52
|
-
/**
|
|
53
|
-
* Represents the object of the `onExpandChange` MultiSelectTree event.
|
|
54
|
-
*/
|
|
55
|
-
export interface MultiSelectTreeExpandEvent extends DropdownEvent {
|
|
56
|
-
item: any;
|
|
57
|
-
level: number[];
|
|
58
|
-
}
|
|
59
|
-
/**
|
|
60
|
-
* The props of component that will be used for rendering each of the MultiSelectTree items
|
|
61
|
-
* ([see example]({% slug customrendering_multiselecttree %}#toc-items-and-value-element)).
|
|
62
|
-
*/
|
|
63
|
-
export interface MultiSelectTreeItemProps extends ItemRenderProps {
|
|
64
|
-
}
|
|
65
|
-
/**
|
|
66
|
-
* The props of component that will be used for rendering each of the MultiSelectTree tags
|
|
67
|
-
*/
|
|
68
|
-
export interface MultiSelectTreeTagProps {
|
|
69
|
-
tagData: TagData;
|
|
70
|
-
guid: string;
|
|
71
|
-
focusedTag?: TagData;
|
|
72
|
-
onTagDelete: (items: Array<any>, event: any) => void;
|
|
73
|
-
}
|
|
74
|
-
/**
|
|
75
|
-
* The props of the `ListNoData` component ([see example]({% slug customrendering_multiselecttree %}#toc-no-data)).
|
|
76
|
-
*/
|
|
77
|
-
export interface MultiSelectTreeListNoDataProps {
|
|
78
|
-
}
|
|
79
|
-
/**
|
|
80
|
-
* Represents the props of the [Kendo UI for Vue MultiSelectTree component]({% slug overview_multiselecttree %}).
|
|
81
|
-
*/
|
|
82
|
-
export interface MultiSelectTreeProps extends FormComponentProps {
|
|
83
|
-
/**
|
|
84
|
-
* Sets the data of the MultiSelectTree ([see example]({% slug overview_multiselecttree %})).
|
|
85
|
-
*/
|
|
86
|
-
dataItems?: any[];
|
|
87
|
-
/**
|
|
88
|
-
* Sets the opened state of the MultiSelectTree.
|
|
89
|
-
*/
|
|
90
|
-
opened?: boolean;
|
|
91
|
-
/**
|
|
92
|
-
* Sets the value of the MultiSelectTree. It can either be an array of the primitive (string, numbers) or of the complex (objects) type.
|
|
93
|
-
*/
|
|
94
|
-
value?: Array<any>;
|
|
95
|
-
/**
|
|
96
|
-
* Sets the modelValue of the MultiSelectTree. It can either be an array of the primitive (string, numbers) or of the complex (objects) type.
|
|
97
|
-
*/
|
|
98
|
-
modelValue?: Array<any>;
|
|
99
|
-
/**
|
|
100
|
-
* The hint that is displayed when the MultiSelectTree is empty.
|
|
101
|
-
*/
|
|
102
|
-
placeholder?: string;
|
|
103
|
-
/**
|
|
104
|
-
* Sets the key for comparing the data items of the MultiSelectTree ([see example]({% slug overview_multiselecttree %})).
|
|
105
|
-
* If `dataItemKey` is not set, the MultiSelectTree compares the items by reference.
|
|
106
|
-
*/
|
|
107
|
-
dataItemKey: string;
|
|
108
|
-
/**
|
|
109
|
-
* Sets additional classes to the MultiSelectTree.
|
|
110
|
-
*/
|
|
111
|
-
className?: string;
|
|
112
|
-
/**
|
|
113
|
-
* Sets the disabled state of the MultiSelectTree.
|
|
114
|
-
*/
|
|
115
|
-
disabled?: boolean;
|
|
116
|
-
/**
|
|
117
|
-
* Represents the `dir` HTML attribute.
|
|
118
|
-
*/
|
|
119
|
-
dir?: string;
|
|
120
|
-
/**
|
|
121
|
-
* Renders a floating label for the MultiSelectTree.
|
|
122
|
-
*/
|
|
123
|
-
label?: string;
|
|
124
|
-
/**
|
|
125
|
-
* Specifies the id of the component.
|
|
126
|
-
*/
|
|
127
|
-
id?: string;
|
|
128
|
-
/**
|
|
129
|
-
* Specifies the validationMessage of the component.
|
|
130
|
-
*/
|
|
131
|
-
validationMessage?: string;
|
|
132
|
-
/**
|
|
133
|
-
* If set to `false`, no visual representation of the invalid state of the component will be applied.
|
|
134
|
-
*
|
|
135
|
-
*/
|
|
136
|
-
validityStyles?: boolean;
|
|
137
|
-
/**
|
|
138
|
-
* Overrides the validity state of the component.
|
|
139
|
-
* If `valid` is set, the `required` property will be ignored.
|
|
140
|
-
*
|
|
141
|
-
*/
|
|
142
|
-
valid?: boolean;
|
|
143
|
-
/**
|
|
144
|
-
* Specifies the `name` property of the `input` DOM element.
|
|
145
|
-
*
|
|
146
|
-
*/
|
|
147
|
-
name?: string;
|
|
148
|
-
/**
|
|
149
|
-
* Specifies if `null` is a valid value for the component.
|
|
150
|
-
*
|
|
151
|
-
*/
|
|
152
|
-
required?: boolean;
|
|
153
|
-
/**
|
|
154
|
-
* Sets the tags of the MultiSelect ([see example]({% slug customtags_multiselect %})).
|
|
155
|
-
*/
|
|
156
|
-
tags?: Array<TagData>;
|
|
157
|
-
/**
|
|
158
|
-
* Identifies the element(s) which will describe the component, similar to [HTML aria-describedby attribute](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/ARIA_Techniques/Using_the_aria-describedby_attribute).
|
|
159
|
-
* For example these elements could contain error or hint message.
|
|
160
|
-
*/
|
|
161
|
-
ariaDescribedBy?: string;
|
|
162
|
-
/**
|
|
163
|
-
* Identifies the element(s) which will label the component.
|
|
164
|
-
*/
|
|
165
|
-
ariaLabelledBy?: string;
|
|
166
|
-
/**
|
|
167
|
-
* Enables the filtering functionality of the MultiSelectTree ([more information and examples]({% slug filtering_multiselecttree %})).
|
|
168
|
-
*/
|
|
169
|
-
filterable?: boolean;
|
|
170
|
-
/**
|
|
171
|
-
* Sets the value of filtering input.
|
|
172
|
-
* Useful for making the filtering input a controlled component.
|
|
173
|
-
*/
|
|
174
|
-
filter?: string;
|
|
175
|
-
/**
|
|
176
|
-
* Sets the loading state of the MultiSelectTree ([see example]({% slug filtering_multiselecttree %}#toc-visualize-filtering)).
|
|
177
|
-
*/
|
|
178
|
-
loading?: boolean;
|
|
179
|
-
/**
|
|
180
|
-
* Specifies the `tabIndex` of the MultiSelectTree.
|
|
181
|
-
*/
|
|
182
|
-
tabIndex?: number;
|
|
183
|
-
/**
|
|
184
|
-
* Specifies the `accessKey` of the MultiSelectTree.
|
|
185
|
-
*/
|
|
186
|
-
accessKey?: string;
|
|
187
|
-
/**
|
|
188
|
-
* Sets the data item field that represents the item text ([see example]({% slug overview_multiselecttree %})).
|
|
189
|
-
*/
|
|
190
|
-
textField: string;
|
|
191
|
-
/**
|
|
192
|
-
* Specifies the name of the field which will provide a Boolean representation of the checked state of the item.
|
|
193
|
-
*/
|
|
194
|
-
checkField?: string;
|
|
195
|
-
/**
|
|
196
|
-
* Specifies the name of the field which will provide a Boolean representation of the checked indeterminaet state of the item.
|
|
197
|
-
*/
|
|
198
|
-
checkIndeterminateField?: string;
|
|
199
|
-
/**
|
|
200
|
-
* Specifies the name of the field which will provide a Boolean representation of the expanded state of the item.
|
|
201
|
-
*/
|
|
202
|
-
expandField?: string;
|
|
203
|
-
/**
|
|
204
|
-
* Specifies the name of the field which will provide an array representation of the item subitems.
|
|
205
|
-
* Defaults to 'items'.
|
|
206
|
-
*/
|
|
207
|
-
subItemsField?: string;
|
|
208
|
-
/**
|
|
209
|
-
* Configures the popup of the MultiSelectTree.
|
|
210
|
-
*/
|
|
211
|
-
popupSettings?: DropDownsPopupSettings;
|
|
212
|
-
/**
|
|
213
|
-
* Represents a callback function, which returns the value for submitting. The returned value will be rendered in an `option` of a hidden `select` element.
|
|
214
|
-
*
|
|
215
|
-
* @example
|
|
216
|
-
* ```jsx-no-run
|
|
217
|
-
* class App extends React.Component {
|
|
218
|
-
* render() {
|
|
219
|
-
* return (
|
|
220
|
-
* <form>
|
|
221
|
-
* <MultiSelectTree
|
|
222
|
-
* data={[ { text: "Austria", id: 1 } , { text: "Belarus", id: 2 } ]}
|
|
223
|
-
* valueMap={value => value && value.id}
|
|
224
|
-
* />
|
|
225
|
-
* <button type="submit">Submit</button>
|
|
226
|
-
* </form>
|
|
227
|
-
* );
|
|
228
|
-
* }
|
|
229
|
-
* }
|
|
230
|
-
* ReactDOM.render(<App />, document.querySelector('my-app'));
|
|
231
|
-
* ```
|
|
232
|
-
*/
|
|
233
|
-
valueMap?: (value: Array<any>) => any;
|
|
234
|
-
/**
|
|
235
|
-
* Fires each time the popup of the MultiSelectTree is about to open.
|
|
236
|
-
*/
|
|
237
|
-
onOpen?: (event: MultiSelectTreeOpenEvent) => void;
|
|
238
|
-
/**
|
|
239
|
-
* Fires each time the popup of the MultiSelectTree is about to close.
|
|
240
|
-
*/
|
|
241
|
-
onClose?: (event: MultiSelectTreeCloseEvent) => void;
|
|
242
|
-
/**
|
|
243
|
-
* Fires each time the user focuses the MultiSelectTree.
|
|
244
|
-
*/
|
|
245
|
-
onFocus?: (event: MultiSelectTreeFocusEvent) => void;
|
|
246
|
-
/**
|
|
247
|
-
* Fires each time the MultiSelectTree gets blurred.
|
|
248
|
-
*/
|
|
249
|
-
onBlur?: (event: MultiSelectTreeBlurEvent) => void;
|
|
250
|
-
/**
|
|
251
|
-
* Fires each time the value of the MultiSelectTree is about to change ([see examples]({% slug overview_multiselecttree %})).
|
|
252
|
-
*/
|
|
253
|
-
onChange?: (event: MultiSelectTreeChangeEvent) => void;
|
|
254
|
-
/**
|
|
255
|
-
* Fires each time the user types in the filter input
|
|
256
|
-
* ([see example]({% slug filtering_multiselecttree %}#toc-basic-configuration)).
|
|
257
|
-
* You can filter the source based on the passed filtration value.
|
|
258
|
-
*/
|
|
259
|
-
onFilterChange?: (event: MultiSelectTreeFilterChangeEvent) => void;
|
|
260
|
-
/**
|
|
261
|
-
* Fires when the expanding or collapsing of an item is requested ([see examples]({% slug overview_multiselecttree %})).
|
|
262
|
-
*/
|
|
263
|
-
onExpandChange?: (event: any) => void;
|
|
264
|
-
/**
|
|
265
|
-
* Defines the component that will be used for rendering each of the MultiSelectTree items
|
|
266
|
-
* ([see example]({% slug customrendering_multiselecttree %}#toc-items-and-value-element)).
|
|
267
|
-
*/
|
|
268
|
-
item?: any;
|
|
269
|
-
/**
|
|
270
|
-
* Defines the component that will be rendered in the MultiSelectTree popup when no data is available
|
|
271
|
-
* ([see example]({% slug customrendering_multiselecttree %}#toc-no-data)).
|
|
272
|
-
*/
|
|
273
|
-
listNoData?: any;
|
|
274
|
-
tag?: any;
|
|
275
|
-
header?: any;
|
|
276
|
-
footer?: any;
|
|
277
|
-
/**
|
|
278
|
-
* Configures the `size` of the MultiSelectTree.
|
|
279
|
-
*
|
|
280
|
-
* The available options are:
|
|
281
|
-
* - small
|
|
282
|
-
* - medium
|
|
283
|
-
* - large
|
|
284
|
-
* - null—Does not set a size `className`.
|
|
285
|
-
*
|
|
286
|
-
* @default `medium`
|
|
287
|
-
*/
|
|
288
|
-
size?: null | 'small' | 'medium' | 'large' | string;
|
|
289
|
-
/**
|
|
290
|
-
* Configures the `roundness` of the MultiSelectTree.
|
|
291
|
-
*
|
|
292
|
-
* The available options are:
|
|
293
|
-
* - small
|
|
294
|
-
* - medium
|
|
295
|
-
* - large
|
|
296
|
-
* - full
|
|
297
|
-
* - null—Does not set a rounded `className`.
|
|
298
|
-
*
|
|
299
|
-
* @default `medium`
|
|
300
|
-
*/
|
|
301
|
-
rounded?: null | 'small' | 'medium' | 'large' | 'full' | string;
|
|
302
|
-
/**
|
|
303
|
-
* Configures the `fillMode` of the MultiSelectTree.
|
|
304
|
-
*
|
|
305
|
-
* The available options are:
|
|
306
|
-
* - solid
|
|
307
|
-
* - flat
|
|
308
|
-
* - outline
|
|
309
|
-
* - null—Does not set a fillMode `className`.
|
|
310
|
-
*
|
|
311
|
-
* @default `solid`
|
|
312
|
-
*/
|
|
313
|
-
fillMode?: null | 'solid' | 'flat' | 'outline' | string;
|
|
314
|
-
/**
|
|
315
|
-
* Provides different rendering of the popup element based on the screen dimensions.
|
|
316
|
-
*/
|
|
317
|
-
adaptive?: boolean;
|
|
318
|
-
/**
|
|
319
|
-
* Specifies the text that is rendered as title in the adaptive popup.
|
|
320
|
-
*/
|
|
321
|
-
adaptiveTitle?: string;
|
|
322
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { MultiSelectTreeChangeEventOperation } from './MultiSelectTreeProps';
|
|
2
|
-
/** @hidden */
|
|
3
|
-
export declare const getValueMap: (value: any[], idGetter: any) => any;
|
|
4
|
-
/**
|
|
5
|
-
* Get MultiSelectTree new value from the component `onChange` event.
|
|
6
|
-
*
|
|
7
|
-
* @param {any[]} data
|
|
8
|
-
* @param {object} options
|
|
9
|
-
* @returns {any[]}
|
|
10
|
-
*/
|
|
11
|
-
export declare const getMultiSelectTreeValue: (data: any[], options: {
|
|
12
|
-
subItemsField?: string;
|
|
13
|
-
dataItemKey: string;
|
|
14
|
-
items: any;
|
|
15
|
-
value: Array<any>;
|
|
16
|
-
operation: MultiSelectTreeChangeEventOperation;
|
|
17
|
-
}) => any[];
|
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
3
|
-
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
4
|
-
if (ar || !(i in from)) {
|
|
5
|
-
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
6
|
-
ar[i] = from[i];
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.getMultiSelectTreeValue = exports.getValueMap = void 0;
|
|
13
|
-
var kendo_vue_common_1 = require("@progress/kendo-vue-common");
|
|
14
|
-
/** @hidden */
|
|
15
|
-
var getValueMap = function (value, idGetter) {
|
|
16
|
-
var map = {};
|
|
17
|
-
if (value && value.length) {
|
|
18
|
-
value.forEach(function (item) {
|
|
19
|
-
map[idGetter(item)] = true;
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
return map;
|
|
23
|
-
};
|
|
24
|
-
exports.getValueMap = getValueMap;
|
|
25
|
-
/**
|
|
26
|
-
* Get MultiSelectTree new value from the component `onChange` event.
|
|
27
|
-
*
|
|
28
|
-
* @param {any[]} data
|
|
29
|
-
* @param {object} options
|
|
30
|
-
* @returns {any[]}
|
|
31
|
-
*/
|
|
32
|
-
var getMultiSelectTreeValue = function (data, options) {
|
|
33
|
-
var items = options.items, dataItemKey = options.dataItemKey, value = options.value, _a = options.subItemsField, subItemsField = _a === void 0 ? 'items' : _a, operation = options.operation;
|
|
34
|
-
var idGetter = (0, kendo_vue_common_1.getter)(dataItemKey);
|
|
35
|
-
var valueMap = (0, exports.getValueMap)(value, idGetter);
|
|
36
|
-
if (operation === 'clear') {
|
|
37
|
-
return [];
|
|
38
|
-
}
|
|
39
|
-
else if (operation === 'delete') {
|
|
40
|
-
var deletedItemsMap_1 = (0, exports.getValueMap)(items, idGetter);
|
|
41
|
-
return value.filter(function (item) { return !deletedItemsMap_1[idGetter(item)]; });
|
|
42
|
-
}
|
|
43
|
-
// operation === 'toggle'
|
|
44
|
-
var selectedItem = items[0];
|
|
45
|
-
var selectedId = idGetter(selectedItem);
|
|
46
|
-
var subItemGetter = (0, kendo_vue_common_1.getter)(subItemsField);
|
|
47
|
-
var stack = __spreadArray([], data, true);
|
|
48
|
-
var context = [];
|
|
49
|
-
var parents = [];
|
|
50
|
-
var foundItem;
|
|
51
|
-
while (stack.length) {
|
|
52
|
-
var currentItem = stack.pop();
|
|
53
|
-
if (selectedId === idGetter(currentItem)) {
|
|
54
|
-
parents = context.map(function (contextItem) { return contextItem.item; });
|
|
55
|
-
foundItem = currentItem;
|
|
56
|
-
break;
|
|
57
|
-
}
|
|
58
|
-
else {
|
|
59
|
-
if (context &&
|
|
60
|
-
context.length &&
|
|
61
|
-
context[context.length - 1].parentPosition === stack.length) {
|
|
62
|
-
context.pop();
|
|
63
|
-
}
|
|
64
|
-
var subItems = subItemGetter(currentItem);
|
|
65
|
-
if (subItems && subItems.length) {
|
|
66
|
-
context.push({ item: currentItem, parentPosition: stack.length });
|
|
67
|
-
stack.push.apply(stack, subItems);
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
var childrenStack = __spreadArray([], (subItemGetter(foundItem) || []), true);
|
|
72
|
-
var children = [];
|
|
73
|
-
while (childrenStack.length) {
|
|
74
|
-
var currentItem = childrenStack.pop();
|
|
75
|
-
children.push(currentItem);
|
|
76
|
-
var subItems = subItemGetter(currentItem);
|
|
77
|
-
if (subItems && subItems.length) {
|
|
78
|
-
childrenStack.push.apply(childrenStack, subItems);
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
var isChecked = !valueMap[selectedId];
|
|
82
|
-
var newValue = [];
|
|
83
|
-
if (isChecked) {
|
|
84
|
-
newValue.push.apply(newValue, value);
|
|
85
|
-
newValue.push(foundItem);
|
|
86
|
-
newValue.push.apply(newValue, children.filter(function (item) { return !valueMap[idGetter(item)]; }));
|
|
87
|
-
var parentCandidates = parents.filter(function (item) { return !valueMap[idGetter(item)]; });
|
|
88
|
-
var newValueMap_1 = (0, exports.getValueMap)(newValue, idGetter);
|
|
89
|
-
for (var i = parentCandidates.length - 1; i > -1; i--) {
|
|
90
|
-
var candidate = parentCandidates[i];
|
|
91
|
-
var subItems = subItemGetter(candidate);
|
|
92
|
-
var checkedChildrenLength = subItems.filter(function (item) { return newValueMap_1[idGetter(item)]; }).length;
|
|
93
|
-
if (checkedChildrenLength < subItems.length) {
|
|
94
|
-
break;
|
|
95
|
-
}
|
|
96
|
-
else {
|
|
97
|
-
newValue.push(candidate);
|
|
98
|
-
newValueMap_1[idGetter(candidate)] = true;
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
else {
|
|
103
|
-
var foundId_1 = idGetter(foundItem);
|
|
104
|
-
var childrenMap_1 = (0, exports.getValueMap)(children, idGetter);
|
|
105
|
-
var parentsMap_1 = (0, exports.getValueMap)(parents, idGetter);
|
|
106
|
-
newValue.push.apply(newValue, (value
|
|
107
|
-
.filter(function (item) {
|
|
108
|
-
var itemId = idGetter(item);
|
|
109
|
-
return !childrenMap_1[itemId] && foundId_1 !== itemId && !parentsMap_1[itemId];
|
|
110
|
-
})));
|
|
111
|
-
}
|
|
112
|
-
return newValue;
|
|
113
|
-
};
|
|
114
|
-
exports.getMultiSelectTreeValue = getMultiSelectTreeValue;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
// @ts-ignore
|
|
2
|
-
import { DefineComponent } from 'vue';
|
|
3
|
-
// @ts-ignore
|
|
4
|
-
import * as Vue from 'vue';
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* @hidden
|
|
8
|
-
*/
|
|
9
|
-
// @ts-ignore
|
|
10
|
-
type Vue2type = Vue.default;
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* @hidden
|
|
14
|
-
*/
|
|
15
|
-
// @ts-ignore
|
|
16
|
-
import { RecordPropsDefinition, ComponentOptions } from 'vue/types/options';
|
|
17
|
-
/**
|
|
18
|
-
* @hidden
|
|
19
|
-
*/
|
|
20
|
-
// @ts-ignore
|
|
21
|
-
export { DefineComponent, RecordPropsDefinition, ComponentOptions, Vue2type };
|
|
@@ -1,21 +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
|
-
/**
|
|
7
|
-
* @hidden
|
|
8
|
-
*/
|
|
9
|
-
export interface ClearButtonMethods extends Vue2type {
|
|
10
|
-
onMouseDown: (e: any) => void;
|
|
11
|
-
onClickHandler: (e: any) => void;
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* @hidden
|
|
15
|
-
*/
|
|
16
|
-
declare let ClearButtonVue2: ComponentOptions<Vue2type, DefaultData<{}>, DefaultMethods<ClearButtonMethods>, {}, RecordPropsDefinition<{}>>;
|
|
17
|
-
/**
|
|
18
|
-
* @hidden
|
|
19
|
-
*/
|
|
20
|
-
declare const ClearButton: DefineComponent<{}, any, {}, {}, ClearButtonMethods, {}, {}, {}, string, {}, {}, {}>;
|
|
21
|
-
export { ClearButton, ClearButtonVue2 };
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.ClearButtonVue2 = exports.ClearButton = void 0;
|
|
7
|
-
// @ts-ignore
|
|
8
|
-
var Vue = require("vue");
|
|
9
|
-
var allVue = Vue;
|
|
10
|
-
var gh = allVue.h;
|
|
11
|
-
var isV3 = allVue.version && allVue.version[0] === '3';
|
|
12
|
-
var inject = allVue.inject;
|
|
13
|
-
var kendo_svg_icons_1 = require("@progress/kendo-svg-icons");
|
|
14
|
-
var kendo_vue_intl_1 = require("@progress/kendo-vue-intl");
|
|
15
|
-
var main_1 = require("../messages/main");
|
|
16
|
-
var kendo_vue_common_1 = require("@progress/kendo-vue-common");
|
|
17
|
-
/**
|
|
18
|
-
* @hidden
|
|
19
|
-
*/
|
|
20
|
-
var ClearButtonVue2 = {
|
|
21
|
-
name: 'clear-button',
|
|
22
|
-
inject: {
|
|
23
|
-
kendoLocalizationService: {
|
|
24
|
-
default: null
|
|
25
|
-
}
|
|
26
|
-
},
|
|
27
|
-
// @ts-ignore
|
|
28
|
-
setup: !isV3 ? undefined : function () {
|
|
29
|
-
var v3 = !!isV3;
|
|
30
|
-
var kendoLocalizationService = inject('kendoLocalizationService', {});
|
|
31
|
-
return {
|
|
32
|
-
v3: v3,
|
|
33
|
-
kendoLocalizationService: kendoLocalizationService
|
|
34
|
-
};
|
|
35
|
-
},
|
|
36
|
-
methods: {
|
|
37
|
-
onMouseDown: function onMouseDown(e) {
|
|
38
|
-
e.preventDefault();
|
|
39
|
-
},
|
|
40
|
-
onClickHandler: function onClickHandler(e) {
|
|
41
|
-
this.$emit('clearclick', e);
|
|
42
|
-
}
|
|
43
|
-
},
|
|
44
|
-
// @ts-ignore
|
|
45
|
-
render: function render(createElement) {
|
|
46
|
-
var h = gh || createElement;
|
|
47
|
-
var title = (0, kendo_vue_intl_1.provideLocalizationService)(this).toLanguageString(main_1.clear, main_1.messages[main_1.clear]);
|
|
48
|
-
return h("span", {
|
|
49
|
-
"class": "k-clear-value",
|
|
50
|
-
role: "button",
|
|
51
|
-
attrs: this.v3 ? undefined : {
|
|
52
|
-
role: "button",
|
|
53
|
-
tabindex: -1,
|
|
54
|
-
title: title
|
|
55
|
-
},
|
|
56
|
-
onClick: this.onClickHandler,
|
|
57
|
-
on: this.v3 ? undefined : {
|
|
58
|
-
"click": this.onClickHandler,
|
|
59
|
-
"mousedown": this.onMouseDown
|
|
60
|
-
},
|
|
61
|
-
onMousedown: this.onMouseDown,
|
|
62
|
-
tabindex: -1,
|
|
63
|
-
title: title,
|
|
64
|
-
key: "clearbutton"
|
|
65
|
-
}, [h(kendo_vue_common_1.Icon, {
|
|
66
|
-
name: "x",
|
|
67
|
-
attrs: this.v3 ? undefined : {
|
|
68
|
-
name: "x",
|
|
69
|
-
icon: kendo_svg_icons_1.xIcon
|
|
70
|
-
},
|
|
71
|
-
icon: kendo_svg_icons_1.xIcon
|
|
72
|
-
})]);
|
|
73
|
-
}
|
|
74
|
-
};
|
|
75
|
-
exports.ClearButtonVue2 = ClearButtonVue2;
|
|
76
|
-
/**
|
|
77
|
-
* @hidden
|
|
78
|
-
*/
|
|
79
|
-
var ClearButton = ClearButtonVue2;
|
|
80
|
-
exports.ClearButton = ClearButton;
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
import VirtualScroll from './VirtualScroll';
|
|
2
|
-
import { Navigation } from './Navigation';
|
|
3
|
-
import { ListItemProps } from './ListItem';
|
|
4
|
-
import { InternalState, DropDownStateBase, Page, DropDownsPopupSettings, VirtualizationSettings } from './settings';
|
|
5
|
-
import { DropDownListAll } from '../DropDownList/DropDownList';
|
|
6
|
-
import { ComboBoxAll } from '../ComboBox/ComboBox';
|
|
7
|
-
import { DropDownTreeAll } from '../DropDownTree/DropDownTree';
|
|
8
|
-
import { MultiSelectAll } from '../MultiSelect/MultiSelect';
|
|
9
|
-
import { CreateElement } from 'vue';
|
|
10
|
-
/**
|
|
11
|
-
* @hidden
|
|
12
|
-
*/
|
|
13
|
-
export interface DropDownComponentProps {
|
|
14
|
-
data?: any[];
|
|
15
|
-
opened?: boolean;
|
|
16
|
-
value?: any;
|
|
17
|
-
disabled?: boolean;
|
|
18
|
-
tabIndex?: number;
|
|
19
|
-
dir?: string;
|
|
20
|
-
defaultItem?: any;
|
|
21
|
-
filterable?: boolean;
|
|
22
|
-
filter?: string | null;
|
|
23
|
-
textField?: string;
|
|
24
|
-
dataItemKey?: string;
|
|
25
|
-
popupSettings?: DropDownsPopupSettings;
|
|
26
|
-
style?: any;
|
|
27
|
-
virtual?: VirtualizationSettings;
|
|
28
|
-
onOpen?: (event: any) => void;
|
|
29
|
-
onClose?: (event: any) => void;
|
|
30
|
-
onFocus?: (event: any) => void;
|
|
31
|
-
onBlur?: (event: any) => void;
|
|
32
|
-
onChange?: (event: any) => void;
|
|
33
|
-
onFilterchange?: (event: any) => void;
|
|
34
|
-
onPagechange?: (event: any) => void;
|
|
35
|
-
onScrollchange?: (event: any) => void;
|
|
36
|
-
itemRender?: (li: Element, itemProps: ListItemProps) => any;
|
|
37
|
-
listNoDataRender?: (element: any) => any;
|
|
38
|
-
header?: any;
|
|
39
|
-
footer?: any;
|
|
40
|
-
}
|
|
41
|
-
/**
|
|
42
|
-
* @hidden
|
|
43
|
-
*/
|
|
44
|
-
export interface DropDownComponent {
|
|
45
|
-
state: DropDownStateBase;
|
|
46
|
-
element: HTMLSpanElement | null;
|
|
47
|
-
handleItemSelect: Function;
|
|
48
|
-
value: any;
|
|
49
|
-
currentOpened: boolean;
|
|
50
|
-
currentFocused: boolean;
|
|
51
|
-
popupWidth: string;
|
|
52
|
-
}
|
|
53
|
-
/**
|
|
54
|
-
* @hidden
|
|
55
|
-
*/
|
|
56
|
-
export default class DropDownBase {
|
|
57
|
-
static defaultProps: {
|
|
58
|
-
popupSettings: {
|
|
59
|
-
animate: boolean;
|
|
60
|
-
height: string;
|
|
61
|
-
};
|
|
62
|
-
required: boolean;
|
|
63
|
-
validityStyles: boolean;
|
|
64
|
-
};
|
|
65
|
-
popupWidth?: string;
|
|
66
|
-
wrapper: any;
|
|
67
|
-
list: HTMLUListElement;
|
|
68
|
-
dirCalculated?: string;
|
|
69
|
-
readonly vs: VirtualScroll;
|
|
70
|
-
readonly navigation: Navigation;
|
|
71
|
-
readonly listBoxId: string;
|
|
72
|
-
readonly guid: string;
|
|
73
|
-
readonly component: DropDownComponent;
|
|
74
|
-
constructor(component: any);
|
|
75
|
-
didMount(): void;
|
|
76
|
-
calculateDir(): void;
|
|
77
|
-
calculatePopupWidth(): void;
|
|
78
|
-
scrollToItem(itemIndex: number, vsEnabled?: boolean): void;
|
|
79
|
-
handleItemClick: (index: number, event: any) => void;
|
|
80
|
-
handleFocus: any;
|
|
81
|
-
filterChanged: (text: string | null, state: InternalState) => void;
|
|
82
|
-
repositionPopup(): void;
|
|
83
|
-
initState(): InternalState;
|
|
84
|
-
applyState(state: InternalState): void;
|
|
85
|
-
togglePopup: (state: InternalState) => void;
|
|
86
|
-
pageChange: (page: Page, event: any) => void;
|
|
87
|
-
scrollChange: (event: any) => void;
|
|
88
|
-
triggerOnPageChange(state: InternalState, skip: number, take: number): void;
|
|
89
|
-
triggerPageChangeCornerItems(item: any, state: InternalState): void;
|
|
90
|
-
scrollToVirtualItem: (virtual: VirtualizationSettings, selectedItemIndex: number) => void;
|
|
91
|
-
getGroupedDataModernMode: (data: any[], groupField: string) => any[];
|
|
92
|
-
resetGroupStickyHeader: (groupName: string, that: any) => void;
|
|
93
|
-
getTemplateDef(this: DropDownListAll | ComboBoxAll | DropDownTreeAll | MultiSelectAll, template: string, h: CreateElement): any;
|
|
94
|
-
getListItemHeight(listItem: HTMLElement): string | 0;
|
|
95
|
-
}
|