@progress/kendo-vue-dropdowns 2.7.2 → 2.8.0-dev.202201121019
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/dist/cdn/js/kendo-vue-dropdowns.js +1 -1
- package/dist/es/AutoComplete/AutoComplete.d.ts +5 -6
- package/dist/es/AutoComplete/AutoComplete.js +63 -29
- package/dist/es/AutoComplete/AutoCompleteProps.d.ts +39 -0
- package/dist/es/ComboBox/ComboBox.d.ts +5 -6
- package/dist/es/ComboBox/ComboBox.js +90 -51
- package/dist/es/ComboBox/ComboBoxProps.d.ts +39 -0
- package/dist/es/DropDownList/DropDownList.d.ts +5 -6
- package/dist/es/DropDownList/DropDownList.js +152 -121
- package/dist/es/DropDownList/DropDownListProps.d.ts +43 -0
- package/dist/es/MultiSelect/MultiSelect.d.ts +5 -6
- package/dist/es/MultiSelect/MultiSelect.js +84 -47
- package/dist/es/MultiSelect/MultiSelectProps.d.ts +53 -0
- package/dist/es/MultiSelect/TagList.d.ts +8 -4
- package/dist/es/MultiSelect/TagList.js +60 -11
- package/dist/es/additionalTypes.ts +7 -1
- package/dist/es/common/ClearButton.d.ts +5 -6
- package/dist/es/common/ClearButton.js +7 -5
- package/dist/es/common/DropDownBase.d.ts +4 -5
- package/dist/es/common/List.d.ts +5 -4
- package/dist/es/common/List.js +6 -5
- package/dist/es/common/ListContainer.d.ts +5 -6
- package/dist/es/common/ListContainer.js +7 -4
- package/dist/es/common/ListDefaultItem.d.ts +5 -6
- package/dist/es/common/ListDefaultItem.js +4 -4
- package/dist/es/common/ListFilter.d.ts +5 -6
- package/dist/es/common/ListFilter.js +11 -7
- package/dist/es/common/ListItem.d.ts +17 -6
- package/dist/es/common/ListItem.js +38 -9
- package/dist/es/common/SearchBar.d.ts +6 -6
- package/dist/es/common/SearchBar.js +13 -13
- package/dist/es/main.d.ts +5 -5
- package/dist/es/main.js +5 -5
- package/dist/es/package-metadata.js +1 -1
- package/dist/npm/AutoComplete/AutoComplete.d.ts +5 -6
- package/dist/npm/AutoComplete/AutoComplete.js +64 -30
- package/dist/npm/AutoComplete/AutoCompleteProps.d.ts +39 -0
- package/dist/npm/ComboBox/ComboBox.d.ts +5 -6
- package/dist/npm/ComboBox/ComboBox.js +93 -52
- package/dist/npm/ComboBox/ComboBoxProps.d.ts +39 -0
- package/dist/npm/DropDownList/DropDownList.d.ts +5 -6
- package/dist/npm/DropDownList/DropDownList.js +155 -122
- package/dist/npm/DropDownList/DropDownListProps.d.ts +43 -0
- package/dist/npm/MultiSelect/MultiSelect.d.ts +5 -6
- package/dist/npm/MultiSelect/MultiSelect.js +86 -48
- package/dist/npm/MultiSelect/MultiSelectProps.d.ts +53 -0
- package/dist/npm/MultiSelect/TagList.d.ts +8 -4
- package/dist/npm/MultiSelect/TagList.js +60 -10
- package/dist/npm/additionalTypes.ts +7 -1
- package/dist/npm/common/ClearButton.d.ts +5 -6
- package/dist/npm/common/ClearButton.js +9 -7
- package/dist/npm/common/DropDownBase.d.ts +4 -5
- package/dist/npm/common/List.d.ts +5 -4
- package/dist/npm/common/List.js +7 -5
- package/dist/npm/common/ListContainer.d.ts +5 -6
- package/dist/npm/common/ListContainer.js +9 -6
- package/dist/npm/common/ListDefaultItem.d.ts +5 -6
- package/dist/npm/common/ListDefaultItem.js +6 -6
- package/dist/npm/common/ListFilter.d.ts +5 -6
- package/dist/npm/common/ListFilter.js +13 -9
- package/dist/npm/common/ListItem.d.ts +17 -6
- package/dist/npm/common/ListItem.js +39 -10
- package/dist/npm/common/SearchBar.d.ts +6 -6
- package/dist/npm/common/SearchBar.js +15 -15
- package/dist/npm/main.d.ts +5 -5
- package/dist/npm/main.js +5 -5
- package/dist/npm/package-metadata.js +1 -1
- package/package.json +5 -4
|
@@ -8,7 +8,7 @@ import { getDefaultSlots } from '@progress/kendo-vue-common';
|
|
|
8
8
|
* Represents the default `ListContainer` component.
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var ListContainerVue2 = {
|
|
12
12
|
name: 'list-container',
|
|
13
13
|
// @ts-ignore
|
|
14
14
|
emits: {
|
|
@@ -68,7 +68,8 @@ var ListContainer = {
|
|
|
68
68
|
dir = _a.dir,
|
|
69
69
|
popupSettings = _a.popupSettings; // @ts-ignore
|
|
70
70
|
|
|
71
|
-
var
|
|
71
|
+
var popupClass = popupSettings.popupClass,
|
|
72
|
+
className = popupSettings.className,
|
|
72
73
|
animate = popupSettings.animate,
|
|
73
74
|
anchor = popupSettings.anchor,
|
|
74
75
|
show = popupSettings.show,
|
|
@@ -101,6 +102,7 @@ var ListContainer = {
|
|
|
101
102
|
onClose: this.onClose
|
|
102
103
|
}, this.v3 ? function () {
|
|
103
104
|
return [h("div", {
|
|
105
|
+
"class": popupClass,
|
|
104
106
|
onMousedown: _this.onMouseDown,
|
|
105
107
|
on: _this.v3 ? undefined : {
|
|
106
108
|
"mousedown": _this.onMouseDown,
|
|
@@ -109,6 +111,7 @@ var ListContainer = {
|
|
|
109
111
|
onFocusout: _this.onBlur
|
|
110
112
|
}, [defaultSlot])];
|
|
111
113
|
} : [h("div", {
|
|
114
|
+
"class": popupClass,
|
|
112
115
|
onMousedown: _this.onMouseDown,
|
|
113
116
|
on: _this.v3 ? undefined : {
|
|
114
117
|
"mousedown": _this.onMouseDown,
|
|
@@ -119,5 +122,5 @@ var ListContainer = {
|
|
|
119
122
|
);
|
|
120
123
|
}
|
|
121
124
|
};
|
|
122
|
-
var
|
|
123
|
-
export { ListContainer,
|
|
125
|
+
var ListContainer = ListContainerVue2;
|
|
126
|
+
export { ListContainer, ListContainerVue2 };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { DefineComponent } from '../additionalTypes';
|
|
2
|
-
import { RecordPropsDefinition, ComponentOptions } from 'vue/types/options';
|
|
1
|
+
import { DefineComponent, RecordPropsDefinition, ComponentOptions, Vue2type } from '../additionalTypes';
|
|
3
2
|
declare type DefaultData<V> = object | ((this: V) => {});
|
|
4
3
|
declare type DefaultMethods<V> = {
|
|
5
4
|
[key: string]: (this: V, ...args: any[]) => any;
|
|
@@ -15,13 +14,13 @@ export interface DefaultItemProps {
|
|
|
15
14
|
/**
|
|
16
15
|
* @hidden
|
|
17
16
|
*/
|
|
18
|
-
export interface ListDefaultItemMethods extends
|
|
17
|
+
export interface ListDefaultItemMethods extends Vue2type {
|
|
19
18
|
onMouseDown: (e: any) => void;
|
|
20
19
|
onClick: (e: any) => void;
|
|
21
20
|
}
|
|
22
21
|
/**
|
|
23
22
|
* Represents the default `ListDefaultItem` component.
|
|
24
23
|
*/
|
|
25
|
-
declare let
|
|
26
|
-
declare const
|
|
27
|
-
export { ListDefaultItem,
|
|
24
|
+
declare let ListDefaultItemVue2: ComponentOptions<Vue2type, DefaultData<{}>, DefaultMethods<ListDefaultItemMethods>, {}, RecordPropsDefinition<DefaultItemProps>>;
|
|
25
|
+
declare const ListDefaultItem: DefineComponent<DefaultItemProps, any, {}, {}, ListDefaultItemMethods, {}, {}, {}, string, DefaultItemProps, DefaultItemProps, {}>;
|
|
26
|
+
export { ListDefaultItem, ListDefaultItemVue2 };
|
|
@@ -8,7 +8,7 @@ import { getItemValue } from './utils';
|
|
|
8
8
|
* Represents the default `ListDefaultItem` component.
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var ListDefaultItemVue2 = {
|
|
12
12
|
name: 'list-default-item',
|
|
13
13
|
props: {
|
|
14
14
|
defaultItem: [Object, String],
|
|
@@ -45,10 +45,10 @@ var ListDefaultItem = {
|
|
|
45
45
|
},
|
|
46
46
|
onMousedown: this.onMouseDown,
|
|
47
47
|
"class": classNames('k-list-optionlabel', {
|
|
48
|
-
'k-
|
|
48
|
+
'k-selected': selected
|
|
49
49
|
})
|
|
50
50
|
}, [getItemValue(defaultItem, textField) || '']);
|
|
51
51
|
}
|
|
52
52
|
};
|
|
53
|
-
var
|
|
54
|
-
export { ListDefaultItem,
|
|
53
|
+
var ListDefaultItem = ListDefaultItemVue2;
|
|
54
|
+
export { ListDefaultItem, ListDefaultItemVue2 };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { DefineComponent } from '../additionalTypes';
|
|
2
|
-
import { RecordPropsDefinition, ComponentOptions } from 'vue/types/options';
|
|
1
|
+
import { DefineComponent, RecordPropsDefinition, ComponentOptions, Vue2type } from '../additionalTypes';
|
|
3
2
|
declare type DefaultData<V> = object | ((this: V) => {});
|
|
4
3
|
declare type DefaultMethods<V> = {
|
|
5
4
|
[key: string]: (this: V, ...args: any[]) => any;
|
|
@@ -15,7 +14,7 @@ export interface ListFilterProps {
|
|
|
15
14
|
/**
|
|
16
15
|
* @hidden
|
|
17
16
|
*/
|
|
18
|
-
export interface ListFilterMethods extends
|
|
17
|
+
export interface ListFilterMethods extends Vue2type {
|
|
19
18
|
[key: string]: any;
|
|
20
19
|
onKeyDown: (e: any) => void;
|
|
21
20
|
onChange: (e: any) => void;
|
|
@@ -36,6 +35,6 @@ export interface ListFilterAll extends ListFilterState, ListFilterMethods {
|
|
|
36
35
|
/**
|
|
37
36
|
* Represents the default `ListFilter` component.
|
|
38
37
|
*/
|
|
39
|
-
declare let
|
|
40
|
-
declare const
|
|
41
|
-
export { ListFilter,
|
|
38
|
+
declare let ListFilterVue2: ComponentOptions<Vue2type, DefaultData<{}>, DefaultMethods<ListFilterMethods>, {}, RecordPropsDefinition<ListFilterProps>>;
|
|
39
|
+
declare const ListFilter: DefineComponent<ListFilterProps, any, {}, {}, ListFilterMethods, {}, {}, {}, string, ListFilterProps, ListFilterProps, {}>;
|
|
40
|
+
export { ListFilter, ListFilterVue2 };
|
|
@@ -7,7 +7,7 @@ var ref = allVue.ref;
|
|
|
7
7
|
* Represents the default `ListFilter` component.
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var ListFilterVue2 = {
|
|
11
11
|
name: 'list-filter',
|
|
12
12
|
// @ts-ignore
|
|
13
13
|
emits: {
|
|
@@ -44,25 +44,29 @@ var ListFilter = {
|
|
|
44
44
|
var h = gh || createElement;
|
|
45
45
|
return h("span", {
|
|
46
46
|
"class": "k-list-filter"
|
|
47
|
+
}, [h("span", {
|
|
48
|
+
"class": "k-textbox k-input k-input-md k-rounded-md k-input-solid"
|
|
47
49
|
}, [h("input", {
|
|
48
50
|
ref: this.v3 ? function (el) {
|
|
49
51
|
_this.inputRef = el;
|
|
50
52
|
} : 'input',
|
|
53
|
+
type: "text",
|
|
54
|
+
attrs: this.v3 ? undefined : {
|
|
55
|
+
type: "text"
|
|
56
|
+
},
|
|
51
57
|
value: this.v3 ? this.$props.value || '' : null,
|
|
52
58
|
domProps: this.v3 ? undefined : {
|
|
53
59
|
"value": this.$props.value || ''
|
|
54
60
|
},
|
|
55
|
-
"class": "k-
|
|
61
|
+
"class": "k-input-inner",
|
|
56
62
|
onInput: this.onChange,
|
|
57
63
|
on: this.v3 ? undefined : {
|
|
58
64
|
"input": this.onChange,
|
|
59
65
|
"keydown": this.onKeyDown
|
|
60
66
|
},
|
|
61
67
|
onKeydown: this.onKeyDown
|
|
62
|
-
})
|
|
63
|
-
"class": "k-icon k-i-search"
|
|
64
|
-
})]);
|
|
68
|
+
})])]);
|
|
65
69
|
}
|
|
66
70
|
};
|
|
67
|
-
var
|
|
68
|
-
export { ListFilter,
|
|
71
|
+
var ListFilter = ListFilterVue2;
|
|
72
|
+
export { ListFilter, ListFilterVue2 };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { DefineComponent } from '../additionalTypes';
|
|
2
|
-
import { RecordPropsDefinition, ComponentOptions } from 'vue/types/options';
|
|
1
|
+
import { DefineComponent, RecordPropsDefinition, ComponentOptions, Vue2type } from '../additionalTypes';
|
|
3
2
|
declare type DefaultData<V> = object | ((this: V) => {});
|
|
4
3
|
declare type DefaultMethods<V> = {
|
|
5
4
|
[key: string]: (this: V, ...args: any[]) => any;
|
|
@@ -44,12 +43,24 @@ export interface ListItemProps {
|
|
|
44
43
|
/**
|
|
45
44
|
* @hidden
|
|
46
45
|
*/
|
|
47
|
-
export interface ListItemMethods
|
|
46
|
+
export interface ListItemMethods {
|
|
48
47
|
handleClick: (e: any) => void;
|
|
49
48
|
}
|
|
49
|
+
/**
|
|
50
|
+
* @hidden
|
|
51
|
+
*/
|
|
52
|
+
export interface ListItemComputed {
|
|
53
|
+
itemClass: object;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* @hidden
|
|
57
|
+
*/
|
|
58
|
+
export interface ListItemAll extends Vue2type, ListItemMethods, ListItemComputed {
|
|
59
|
+
itemClass: object;
|
|
60
|
+
}
|
|
50
61
|
/**
|
|
51
62
|
* Represents the default `ListItem` component.
|
|
52
63
|
*/
|
|
53
|
-
declare let
|
|
54
|
-
declare const
|
|
55
|
-
export { ListItem,
|
|
64
|
+
declare let ListItemVue2: ComponentOptions<Vue2type, DefaultData<{}>, DefaultMethods<ListItemAll>, ListItemComputed, RecordPropsDefinition<ListItemProps>>;
|
|
65
|
+
declare const ListItem: DefineComponent<ListItemProps, any, {}, {}, ListItemMethods, {}, {}, {}, string, ListItemProps, ListItemProps, {}>;
|
|
66
|
+
export { ListItem, ListItemVue2 };
|
|
@@ -1,4 +1,20 @@
|
|
|
1
|
-
|
|
1
|
+
var __assign = this && this.__assign || function () {
|
|
2
|
+
__assign = Object.assign || function (t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
|
|
6
|
+
for (var p in s) {
|
|
7
|
+
if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
return t;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
return __assign.apply(this, arguments);
|
|
15
|
+
}; // @ts-ignore
|
|
16
|
+
|
|
17
|
+
|
|
2
18
|
import * as Vue from 'vue';
|
|
3
19
|
var allVue = Vue;
|
|
4
20
|
var gh = allVue.h;
|
|
@@ -8,7 +24,7 @@ import { getItemValue } from './utils';
|
|
|
8
24
|
* Represents the default `ListItem` component.
|
|
9
25
|
*/
|
|
10
26
|
|
|
11
|
-
var
|
|
27
|
+
var ListItemVue2 = {
|
|
12
28
|
name: 'list-item',
|
|
13
29
|
props: {
|
|
14
30
|
id: String,
|
|
@@ -26,6 +42,15 @@ var ListItem = {
|
|
|
26
42
|
v3: v3
|
|
27
43
|
};
|
|
28
44
|
},
|
|
45
|
+
computed: {
|
|
46
|
+
itemClass: function itemClass() {
|
|
47
|
+
return {
|
|
48
|
+
'k-list-item': true,
|
|
49
|
+
'k-selected': this.$props.selected,
|
|
50
|
+
'k-focus': this.$props.focused
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
},
|
|
29
54
|
methods: {
|
|
30
55
|
handleClick: function handleClick(e) {
|
|
31
56
|
this.$emit('itemclick', this.$props.index, e);
|
|
@@ -44,25 +69,29 @@ var ListItem = {
|
|
|
44
69
|
},
|
|
45
70
|
role: "option",
|
|
46
71
|
"aria-selected": selected,
|
|
47
|
-
"class": classNames('k-item', {
|
|
48
|
-
'k-
|
|
49
|
-
'k-
|
|
72
|
+
"class": classNames('k-list-item', {
|
|
73
|
+
'k-selected': selected,
|
|
74
|
+
'k-focus': this.$props.focused
|
|
50
75
|
}),
|
|
51
76
|
onClick: this.handleClick,
|
|
52
77
|
on: this.v3 ? undefined : {
|
|
53
78
|
"click": this.handleClick
|
|
54
79
|
}
|
|
55
|
-
}, [
|
|
80
|
+
}, [h("span", {
|
|
81
|
+
"class": "k-list-item-text"
|
|
82
|
+
}, [getItemValue(this.$props.dataItem, this.$props.textField).toString()])]);
|
|
56
83
|
return getTemplate.call(this, {
|
|
57
84
|
h: h,
|
|
58
85
|
template: this.$props.render,
|
|
59
86
|
defaultRendering: defaultRendering,
|
|
60
|
-
additionalProps: this.$props,
|
|
87
|
+
additionalProps: __assign(__assign({}, this.$props), {
|
|
88
|
+
itemClass: this.itemClass
|
|
89
|
+
}),
|
|
61
90
|
additionalListeners: {
|
|
62
91
|
click: this.handleClick
|
|
63
92
|
}
|
|
64
93
|
});
|
|
65
94
|
}
|
|
66
95
|
};
|
|
67
|
-
var
|
|
68
|
-
export { ListItem,
|
|
96
|
+
var ListItem = ListItemVue2;
|
|
97
|
+
export { ListItem, ListItemVue2 };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { DefineComponent } from '../additionalTypes';
|
|
2
|
-
import { RecordPropsDefinition, ComponentOptions } from 'vue/types/options';
|
|
1
|
+
import { DefineComponent, RecordPropsDefinition, ComponentOptions, Vue2type } from '../additionalTypes';
|
|
3
2
|
declare type DefaultData<V> = object | ((this: V) => SearchBarData);
|
|
4
3
|
declare type DefaultMethods<V> = {
|
|
5
4
|
[key: string]: (this: V, ...args: any[]) => any;
|
|
@@ -28,11 +27,12 @@ export interface SearchBarProps {
|
|
|
28
27
|
clearButton?: boolean;
|
|
29
28
|
clearButtonClick?: any;
|
|
30
29
|
accessKey?: string;
|
|
30
|
+
ariaLabelledBy?: string;
|
|
31
31
|
}
|
|
32
32
|
/**
|
|
33
33
|
* @hidden
|
|
34
34
|
*/
|
|
35
|
-
export interface SearchBarMethods extends
|
|
35
|
+
export interface SearchBarMethods extends Vue2type {
|
|
36
36
|
onChange: (e: any) => void;
|
|
37
37
|
onBlur: (e: any) => void;
|
|
38
38
|
onFocus: (e: any) => void;
|
|
@@ -57,6 +57,6 @@ export interface SearchBarAll extends SearchBarMethods, SearchBarData {
|
|
|
57
57
|
/**
|
|
58
58
|
* Represents the default `SearchBar` component.
|
|
59
59
|
*/
|
|
60
|
-
declare let
|
|
61
|
-
declare const
|
|
62
|
-
export { SearchBar,
|
|
60
|
+
declare let SearchBarVue2: ComponentOptions<Vue2type, DefaultData<SearchBarData>, DefaultMethods<SearchBarAll>, {}, RecordPropsDefinition<SearchBarProps>>;
|
|
61
|
+
declare const SearchBar: DefineComponent<SearchBarProps, any, SearchBarData, {}, SearchBarMethods, {}, {}, {}, string, SearchBarProps, SearchBarProps, {}>;
|
|
62
|
+
export { SearchBar, SearchBarVue2 };
|
|
@@ -8,7 +8,7 @@ import { canUseDOM } from '@progress/kendo-vue-common';
|
|
|
8
8
|
* Represents the default `SearchBar` component.
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var SearchBarVue2 = {
|
|
12
12
|
name: 'search-bar',
|
|
13
13
|
// @ts-ignore
|
|
14
14
|
emits: {
|
|
@@ -36,7 +36,8 @@ var SearchBar = {
|
|
|
36
36
|
activedescendant: String,
|
|
37
37
|
describedby: String,
|
|
38
38
|
clearButton: Boolean,
|
|
39
|
-
accessKey: String
|
|
39
|
+
accessKey: String,
|
|
40
|
+
ariaLabelledBy: String
|
|
40
41
|
},
|
|
41
42
|
data: function data() {
|
|
42
43
|
return {
|
|
@@ -108,11 +109,7 @@ var SearchBar = {
|
|
|
108
109
|
var _this = this;
|
|
109
110
|
|
|
110
111
|
var h = gh || createElement;
|
|
111
|
-
|
|
112
|
-
return h("span", {
|
|
113
|
-
"class": "k-searchbar",
|
|
114
|
-
key: "searchbar"
|
|
115
|
-
}, [h("input", {
|
|
112
|
+
return h("input", {
|
|
116
113
|
autoComplete: "off",
|
|
117
114
|
attrs: this.v3 ? undefined : {
|
|
118
115
|
autoComplete: "off",
|
|
@@ -131,12 +128,14 @@ var SearchBar = {
|
|
|
131
128
|
"aria-expanded": this.$props.expanded || false,
|
|
132
129
|
"aria-owns": this.$props.owns,
|
|
133
130
|
"aria-activedescendant": this.$props.activedescendant,
|
|
134
|
-
"aria-describedby": this.$props.describedby
|
|
131
|
+
"aria-describedby": this.$props.describedby,
|
|
132
|
+
"aria-labelledby": this.$props.ariaLabelledBy
|
|
135
133
|
},
|
|
136
134
|
id: this.$props.id,
|
|
137
135
|
type: "text",
|
|
136
|
+
key: "searchbar",
|
|
138
137
|
placeholder: this.$props.placeholder,
|
|
139
|
-
"class": "k-input",
|
|
138
|
+
"class": "k-input-inner",
|
|
140
139
|
tabIndex: this.$props.tabIndex,
|
|
141
140
|
accessKey: this.$props.accessKey,
|
|
142
141
|
role: "listbox",
|
|
@@ -166,9 +165,10 @@ var SearchBar = {
|
|
|
166
165
|
"aria-expanded": this.$props.expanded || false,
|
|
167
166
|
"aria-owns": this.$props.owns,
|
|
168
167
|
"aria-activedescendant": this.$props.activedescendant,
|
|
169
|
-
"aria-describedby": this.$props.describedby
|
|
170
|
-
|
|
168
|
+
"aria-describedby": this.$props.describedby,
|
|
169
|
+
"aria-labelledby": this.$props.ariaLabelledBy
|
|
170
|
+
});
|
|
171
171
|
}
|
|
172
172
|
};
|
|
173
|
-
var
|
|
174
|
-
export { SearchBar,
|
|
173
|
+
var SearchBar = SearchBarVue2;
|
|
174
|
+
export { SearchBar, SearchBarVue2 };
|
package/dist/es/main.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { FormComponentValidity } from '@progress/kendo-vue-common';
|
|
2
|
-
import { DropDownList,
|
|
2
|
+
import { DropDownList, DropDownListVue2 } from './DropDownList/DropDownList';
|
|
3
3
|
import { DropDownListProps, DropDownListFilterChangeEvent, DropDownListChangeEvent, DropDownListOpenEvent, DropDownListCloseEvent, DropDownListFocusEvent, DropDownListBlurEvent, DropDownListPageChangeEvent } from './DropDownList/DropDownListProps';
|
|
4
4
|
import { Page, VirtualizationSettings, DropDownsPopupSettings, Suggestion } from './common/settings';
|
|
5
5
|
import { ListItemProps } from './common/ListItem';
|
|
6
|
-
import { ComboBox,
|
|
6
|
+
import { ComboBox, ComboBoxVue2 } from './ComboBox/ComboBox';
|
|
7
7
|
import { ComboBoxProps, ComboBoxFilterChangeEvent, ComboBoxChangeEvent, ComboBoxOpenEvent, ComboBoxCloseEvent, ComboBoxFocusEvent, ComboBoxBlurEvent, ComboBoxPageChangeEvent } from './ComboBox/ComboBoxProps';
|
|
8
|
-
import { AutoComplete,
|
|
8
|
+
import { AutoComplete, AutoCompleteVue2 } from './AutoComplete/AutoComplete';
|
|
9
9
|
import { AutoCompleteProps, AutoCompleteChangeEvent, AutoCompleteOpenEvent, AutoCompleteCloseEvent, AutoCompleteFocusEvent, AutoCompleteBlurEvent } from './AutoComplete/AutoCompleteProps';
|
|
10
|
-
import { MultiSelect,
|
|
10
|
+
import { MultiSelect, MultiSelectVue2 } from './MultiSelect/MultiSelect';
|
|
11
11
|
import { MultiSelectProps, MultiSelectChangeEvent, MultiSelectPageChangeEvent, MultiSelectFilterChangeEvent, MultiSelectOpenEvent, MultiSelectCloseEvent, MultiSelectFocusEvent, MultiSelectBlurEvent } from './MultiSelect/MultiSelectProps';
|
|
12
12
|
import { TagData as MultiSelectTagData } from './MultiSelect/TagList';
|
|
13
|
-
export { AutoComplete,
|
|
13
|
+
export { AutoComplete, AutoCompleteVue2, AutoCompleteProps, AutoCompleteChangeEvent, AutoCompleteOpenEvent, AutoCompleteCloseEvent, AutoCompleteFocusEvent, AutoCompleteBlurEvent, DropDownList, DropDownListVue2, DropDownListProps, DropDownListFilterChangeEvent, DropDownListChangeEvent, DropDownListOpenEvent, DropDownListCloseEvent, DropDownListFocusEvent, DropDownListBlurEvent, DropDownListPageChangeEvent, Page, VirtualizationSettings, DropDownsPopupSettings, ListItemProps, Suggestion, ComboBox, ComboBoxVue2, ComboBoxProps, ComboBoxFilterChangeEvent, ComboBoxChangeEvent, ComboBoxOpenEvent, ComboBoxCloseEvent, ComboBoxFocusEvent, ComboBoxBlurEvent, ComboBoxPageChangeEvent, MultiSelect, MultiSelectVue2, MultiSelectProps, MultiSelectChangeEvent, MultiSelectPageChangeEvent, MultiSelectFilterChangeEvent, MultiSelectOpenEvent, MultiSelectCloseEvent, MultiSelectFocusEvent, MultiSelectBlurEvent, MultiSelectTagData, FormComponentValidity };
|
package/dist/es/main.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { DropDownList,
|
|
2
|
-
import { ComboBox,
|
|
3
|
-
import { AutoComplete,
|
|
4
|
-
import { MultiSelect,
|
|
5
|
-
export { AutoComplete,
|
|
1
|
+
import { DropDownList, DropDownListVue2 } from './DropDownList/DropDownList';
|
|
2
|
+
import { ComboBox, ComboBoxVue2 } from './ComboBox/ComboBox';
|
|
3
|
+
import { AutoComplete, AutoCompleteVue2 } from './AutoComplete/AutoComplete';
|
|
4
|
+
import { MultiSelect, MultiSelectVue2 } from './MultiSelect/MultiSelect';
|
|
5
|
+
export { AutoComplete, AutoCompleteVue2, DropDownList, DropDownListVue2, ComboBox, ComboBoxVue2, MultiSelect, MultiSelectVue2 };
|
|
@@ -5,7 +5,7 @@ export var packageMetadata = {
|
|
|
5
5
|
name: '@progress/kendo-vue-dropdowns',
|
|
6
6
|
productName: 'Kendo UI for Vue',
|
|
7
7
|
productCodes: ['KENDOUIVUE', 'KENDOUICOMPLETE'],
|
|
8
|
-
publishDate:
|
|
8
|
+
publishDate: 1641982011,
|
|
9
9
|
version: '',
|
|
10
10
|
licensingDocsUrl: 'https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=kendovue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning'
|
|
11
11
|
};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { RecordPropsDefinition, ComponentOptions } from 'vue/types/options';
|
|
2
1
|
declare type DefaultData<V> = object | ((this: V) => AutoCompleteData);
|
|
3
2
|
declare type DefaultMethods<V> = {
|
|
4
3
|
[key: string]: (this: V, ...args: any[]) => any;
|
|
@@ -6,7 +5,7 @@ declare type DefaultMethods<V> = {
|
|
|
6
5
|
import { AutoCompleteProps } from './AutoCompleteProps';
|
|
7
6
|
import { DropDownStateBase, InternalState } from './../common/settings';
|
|
8
7
|
import { FormComponentValidity } from '@progress/kendo-vue-common';
|
|
9
|
-
import { DefineComponent } from '../additionalTypes';
|
|
8
|
+
import { DefineComponent, RecordPropsDefinition, ComponentOptions, Vue2type } from '../additionalTypes';
|
|
10
9
|
/**
|
|
11
10
|
* @hidden
|
|
12
11
|
*/
|
|
@@ -95,11 +94,11 @@ export interface AutoCompleteComputed {
|
|
|
95
94
|
/**
|
|
96
95
|
* @hidden
|
|
97
96
|
*/
|
|
98
|
-
export interface AutoCompleteAll extends AutoCompleteMethods, AutoCompleteState, AutoCompleteData, AutoCompleteComputed,
|
|
97
|
+
export interface AutoCompleteAll extends AutoCompleteMethods, AutoCompleteState, AutoCompleteData, AutoCompleteComputed, Vue2type {
|
|
99
98
|
}
|
|
100
99
|
/**
|
|
101
100
|
* Represents the default `AutoComplete` component.
|
|
102
101
|
*/
|
|
103
|
-
declare let
|
|
104
|
-
declare const
|
|
105
|
-
export { AutoComplete,
|
|
102
|
+
declare let AutoCompleteVue2: ComponentOptions<Vue2type, DefaultData<AutoCompleteData>, DefaultMethods<AutoCompleteAll>, AutoCompleteComputed, RecordPropsDefinition<AutoCompleteProps>>;
|
|
103
|
+
declare const AutoComplete: DefineComponent<AutoCompleteProps, any, AutoCompleteData, AutoCompleteComputed, AutoCompleteMethods, {}, {}, {}, string, AutoCompleteProps, AutoCompleteProps, {}>;
|
|
104
|
+
export { AutoComplete, AutoCompleteVue2 };
|
|
@@ -19,7 +19,7 @@ var __assign = undefined && undefined.__assign || function () {
|
|
|
19
19
|
Object.defineProperty(exports, "__esModule", {
|
|
20
20
|
value: true
|
|
21
21
|
});
|
|
22
|
-
exports.
|
|
22
|
+
exports.AutoCompleteVue2 = exports.AutoComplete = void 0; // @ts-ignore
|
|
23
23
|
|
|
24
24
|
var Vue = require("vue");
|
|
25
25
|
|
|
@@ -41,12 +41,14 @@ var utils_1 = require("../common/utils");
|
|
|
41
41
|
|
|
42
42
|
var kendo_vue_common_1 = require("@progress/kendo-vue-common");
|
|
43
43
|
|
|
44
|
+
var sizeMap = kendo_vue_common_1.kendoThemeMaps.sizeMap,
|
|
45
|
+
roundedMap = kendo_vue_common_1.kendoThemeMaps.roundedMap;
|
|
44
46
|
var VALIDATION_MESSAGE = 'Please enter a valid value!';
|
|
45
47
|
/**
|
|
46
48
|
* Represents the default `AutoComplete` component.
|
|
47
49
|
*/
|
|
48
50
|
|
|
49
|
-
var
|
|
51
|
+
var AutoCompleteVue2 = {
|
|
50
52
|
name: 'KendoAutoComplete',
|
|
51
53
|
model: {
|
|
52
54
|
event: 'changemodel'
|
|
@@ -103,7 +105,6 @@ var AutoComplete = {
|
|
|
103
105
|
accessKey: String,
|
|
104
106
|
dataItems: Array,
|
|
105
107
|
textField: String,
|
|
106
|
-
className: String,
|
|
107
108
|
loading: Boolean,
|
|
108
109
|
popupSettings: {
|
|
109
110
|
type: Object,
|
|
@@ -124,7 +125,28 @@ var AutoComplete = {
|
|
|
124
125
|
default: false
|
|
125
126
|
},
|
|
126
127
|
ariaLabelledBy: String,
|
|
127
|
-
ariaDescribedBy: String
|
|
128
|
+
ariaDescribedBy: String,
|
|
129
|
+
rounded: {
|
|
130
|
+
type: String,
|
|
131
|
+
default: 'medium',
|
|
132
|
+
validator: function validator(value) {
|
|
133
|
+
return ['small', 'medium', 'large', 'full'].includes(value);
|
|
134
|
+
}
|
|
135
|
+
},
|
|
136
|
+
fillMode: {
|
|
137
|
+
type: String,
|
|
138
|
+
default: 'solid',
|
|
139
|
+
validator: function validator(value) {
|
|
140
|
+
return ['solid', 'flat', 'outline'].includes(value);
|
|
141
|
+
}
|
|
142
|
+
},
|
|
143
|
+
size: {
|
|
144
|
+
type: String,
|
|
145
|
+
default: 'medium',
|
|
146
|
+
validator: function validator(value) {
|
|
147
|
+
return ['small', 'medium', 'large'].includes(value);
|
|
148
|
+
}
|
|
149
|
+
}
|
|
128
150
|
},
|
|
129
151
|
data: function data() {
|
|
130
152
|
return {
|
|
@@ -216,10 +238,10 @@ var AutoComplete = {
|
|
|
216
238
|
get: function get() {
|
|
217
239
|
var isValid = !this.hasMounted || !this.$props.validityStyles || this.validity().valid;
|
|
218
240
|
return {
|
|
219
|
-
'k-
|
|
220
|
-
'k-
|
|
221
|
-
'k-
|
|
222
|
-
'k-
|
|
241
|
+
'k-floating-label-container': true,
|
|
242
|
+
'k-focus': this.currentFocused,
|
|
243
|
+
'k-empty': !this.computedValue(),
|
|
244
|
+
'k-invalid': !isValid && isValid !== undefined,
|
|
223
245
|
'k-rtl': this.$props.dir === 'rtl'
|
|
224
246
|
};
|
|
225
247
|
}
|
|
@@ -478,17 +500,21 @@ var AutoComplete = {
|
|
|
478
500
|
}
|
|
479
501
|
},
|
|
480
502
|
render: function render(createElement) {
|
|
503
|
+
var _a;
|
|
504
|
+
|
|
481
505
|
var _this = this;
|
|
482
506
|
|
|
483
507
|
var h = gh || createElement;
|
|
484
|
-
var
|
|
485
|
-
dir =
|
|
486
|
-
disabled =
|
|
487
|
-
label =
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
508
|
+
var _b = this.$props,
|
|
509
|
+
dir = _b.dir,
|
|
510
|
+
disabled = _b.disabled,
|
|
511
|
+
label = _b.label,
|
|
512
|
+
size = _b.size,
|
|
513
|
+
rounded = _b.rounded,
|
|
514
|
+
fillMode = _b.fillMode,
|
|
515
|
+
style = _b.style,
|
|
516
|
+
loading = _b.loading,
|
|
517
|
+
suggest = _b.suggest;
|
|
492
518
|
var isValid = !this.$props.validityStyles || this.validity().valid;
|
|
493
519
|
var focused = this.currentFocused;
|
|
494
520
|
var base = this.base;
|
|
@@ -589,7 +615,7 @@ var AutoComplete = {
|
|
|
589
615
|
wrapperStyle: {
|
|
590
616
|
maxHeight: popupSettings.height
|
|
591
617
|
},
|
|
592
|
-
wrapperCssClass: "k-list-
|
|
618
|
+
wrapperCssClass: "k-list-content",
|
|
593
619
|
itemRender: itemRender,
|
|
594
620
|
noDataRender: listNoDataRender
|
|
595
621
|
},
|
|
@@ -605,7 +631,7 @@ var AutoComplete = {
|
|
|
605
631
|
wrapperStyle: {
|
|
606
632
|
maxHeight: popupSettings.height
|
|
607
633
|
},
|
|
608
|
-
wrapperCssClass: "k-list-
|
|
634
|
+
wrapperCssClass: "k-list-content",
|
|
609
635
|
onListclick: this.handleItemClick,
|
|
610
636
|
on: this.v3 ? undefined : {
|
|
611
637
|
"listclick": this.handleItemClick
|
|
@@ -619,6 +645,8 @@ var AutoComplete = {
|
|
|
619
645
|
var renderListContainer = function renderListContainer() {
|
|
620
646
|
var _this2 = this;
|
|
621
647
|
|
|
648
|
+
var _a;
|
|
649
|
+
|
|
622
650
|
var headerTemplate = kendo_vue_common_1.templateRendering.call(this, this.$props.header, kendo_vue_common_1.getListeners.call(this));
|
|
623
651
|
var footerTemplate = kendo_vue_common_1.templateRendering.call(this, this.$props.footer, kendo_vue_common_1.getListeners.call(this));
|
|
624
652
|
var header = kendo_vue_common_1.getTemplate.call(this, {
|
|
@@ -648,7 +676,8 @@ var AutoComplete = {
|
|
|
648
676
|
animate: popupSettings.animate,
|
|
649
677
|
anchor: this.anchor,
|
|
650
678
|
show: opened,
|
|
651
|
-
|
|
679
|
+
popupClass: kendo_vue_common_1.classNames(popupSettings.popupClass, 'k-list', (_a = {}, _a["k-list-" + (sizeMap[size] || size)] = size, _a)),
|
|
680
|
+
className: popupSettings.className,
|
|
652
681
|
appendTo: popupSettings.appendTo
|
|
653
682
|
},
|
|
654
683
|
dir: dir !== undefined ? dir : this.base.dirCalculated
|
|
@@ -658,13 +687,22 @@ var AutoComplete = {
|
|
|
658
687
|
animate: popupSettings.animate,
|
|
659
688
|
anchor: this.anchor,
|
|
660
689
|
show: opened,
|
|
661
|
-
|
|
690
|
+
popupClass: kendo_vue_common_1.classNames(popupSettings.popupClass, 'k-list', (_a = {}, _a["k-list-" + (sizeMap[size] || size)] = size, _a)),
|
|
691
|
+
className: popupSettings.className,
|
|
662
692
|
appendTo: popupSettings.appendTo
|
|
663
693
|
},
|
|
664
694
|
dir: dir !== undefined ? dir : this.base.dirCalculated
|
|
665
695
|
}, this.v3 ? function () {
|
|
666
|
-
return [header
|
|
667
|
-
|
|
696
|
+
return [header && h("div", {
|
|
697
|
+
"class": "k-list-header"
|
|
698
|
+
}, [header]), renderList.call(_this2), footer && h("div", {
|
|
699
|
+
"class": "k-list-footer"
|
|
700
|
+
}, [footer])];
|
|
701
|
+
} : [header && h("div", {
|
|
702
|
+
"class": "k-list-header"
|
|
703
|
+
}, [header]), renderList.call(_this2), footer && h("div", {
|
|
704
|
+
"class": "k-list-footer"
|
|
705
|
+
}, [footer])])
|
|
668
706
|
);
|
|
669
707
|
};
|
|
670
708
|
|
|
@@ -694,11 +732,7 @@ var AutoComplete = {
|
|
|
694
732
|
};
|
|
695
733
|
|
|
696
734
|
var autoComplete = h("span", {
|
|
697
|
-
"class": kendo_vue_common_1.classNames('k-
|
|
698
|
-
'k-state-disabled': disabled,
|
|
699
|
-
'k-state-focused': focused && !disabled,
|
|
700
|
-
'k-state-invalid': !isValid
|
|
701
|
-
}),
|
|
735
|
+
"class": kendo_vue_common_1.classNames('k-autocomplete k-input', (_a = {}, _a["k-input-" + (sizeMap[size] || size)] = size, _a["k-rounded-" + (roundedMap[rounded] || rounded)] = rounded, _a["k-input-" + fillMode] = fillMode, _a['k-valid'] = isValid, _a['k-invalid'] = !isValid, _a['k-focus'] = focused && !disabled, _a['k-loading'] = loading, _a['k-required'] = this.required, _a['k-disabled'] = disabled, _a)),
|
|
702
736
|
ref: this.v3 ? function (el) {
|
|
703
737
|
_this.kendoAnchorRef = el;
|
|
704
738
|
} : this.anchor,
|
|
@@ -727,6 +761,6 @@ var AutoComplete = {
|
|
|
727
761
|
}, [this.$props.label]) : null]) : autoComplete;
|
|
728
762
|
}
|
|
729
763
|
};
|
|
730
|
-
exports.
|
|
731
|
-
var
|
|
732
|
-
exports.
|
|
764
|
+
exports.AutoCompleteVue2 = AutoCompleteVue2;
|
|
765
|
+
var AutoComplete = AutoCompleteVue2;
|
|
766
|
+
exports.AutoComplete = AutoComplete;
|