@progress/kendo-vue-dropdowns 2.7.3 → 3.0.0-dev.202201141128
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 +62 -28
- package/dist/es/AutoComplete/AutoCompleteProps.d.ts +39 -0
- package/dist/es/ComboBox/ComboBox.d.ts +5 -6
- package/dist/es/ComboBox/ComboBox.js +101 -79
- package/dist/es/ComboBox/ComboBoxProps.d.ts +39 -0
- package/dist/es/DropDownList/DropDownList.d.ts +5 -6
- package/dist/es/DropDownList/DropDownList.js +181 -152
- package/dist/es/DropDownList/DropDownListProps.d.ts +43 -0
- package/dist/es/MultiSelect/MultiSelect.d.ts +5 -6
- package/dist/es/MultiSelect/MultiSelect.js +105 -77
- 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/DropDownBase.js +5 -2
- package/dist/es/common/List.d.ts +7 -4
- package/dist/es/common/List.js +21 -6
- 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 +7 -4
- package/dist/es/common/ListFilter.d.ts +8 -6
- package/dist/es/common/ListFilter.js +50 -7
- package/dist/es/common/ListItem.d.ts +5 -6
- package/dist/es/common/ListItem.js +17 -9
- package/dist/es/common/SearchBar.d.ts +6 -6
- package/dist/es/common/SearchBar.js +13 -13
- package/dist/es/common/VirtualScroll.js +6 -4
- 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 +63 -29
- package/dist/npm/AutoComplete/AutoCompleteProps.d.ts +39 -0
- package/dist/npm/ComboBox/ComboBox.d.ts +5 -6
- package/dist/npm/ComboBox/ComboBox.js +104 -80
- package/dist/npm/ComboBox/ComboBoxProps.d.ts +39 -0
- package/dist/npm/DropDownList/DropDownList.d.ts +5 -6
- package/dist/npm/DropDownList/DropDownList.js +184 -153
- package/dist/npm/DropDownList/DropDownListProps.d.ts +43 -0
- package/dist/npm/MultiSelect/MultiSelect.d.ts +5 -6
- package/dist/npm/MultiSelect/MultiSelect.js +107 -78
- 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/DropDownBase.js +5 -2
- package/dist/npm/common/List.d.ts +7 -4
- package/dist/npm/common/List.js +21 -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 +9 -6
- package/dist/npm/common/ListFilter.d.ts +8 -6
- package/dist/npm/common/ListFilter.js +54 -9
- package/dist/npm/common/ListItem.d.ts +5 -6
- package/dist/npm/common/ListItem.js +18 -10
- package/dist/npm/common/SearchBar.d.ts +6 -6
- package/dist/npm/common/SearchBar.js +15 -15
- package/dist/npm/common/VirtualScroll.js +6 -4
- 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
|
@@ -201,8 +201,11 @@ function () {
|
|
|
201
201
|
if (item && itemIndex >= 0) {
|
|
202
202
|
var vs = this.vs;
|
|
203
203
|
var scrollElement = vs.container || list.parentNode;
|
|
204
|
-
|
|
205
|
-
|
|
204
|
+
|
|
205
|
+
if (scrollElement) {
|
|
206
|
+
var virtualScroll = vsEnabled !== undefined ? vsEnabled : vs.enabled;
|
|
207
|
+
utils_1.scrollToItem(scrollElement, item.offsetHeight, itemIndex, vs.translate, virtualScroll);
|
|
208
|
+
}
|
|
206
209
|
}
|
|
207
210
|
};
|
|
208
211
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { RecordPropsDefinition, ComponentOptions } from '
|
|
1
|
+
import { DefineComponent, RecordPropsDefinition, ComponentOptions, Vue2type } from '../additionalTypes';
|
|
2
2
|
declare type DefaultData<V> = object | ((this: V) => {});
|
|
3
3
|
declare type DefaultMethods<V> = {
|
|
4
4
|
[key: string]: (this: V, ...args: any[]) => any;
|
|
@@ -24,12 +24,14 @@ export interface ListProps {
|
|
|
24
24
|
onClick?: (index: number, event: any) => void;
|
|
25
25
|
itemRender?: any;
|
|
26
26
|
noDataRender?: any;
|
|
27
|
+
scroller?: boolean;
|
|
27
28
|
}
|
|
28
29
|
/**
|
|
29
30
|
* @hidden
|
|
30
31
|
*/
|
|
31
|
-
export interface ListMethods extends
|
|
32
|
+
export interface ListMethods extends Vue2type {
|
|
32
33
|
handleClick: (e: any) => void;
|
|
34
|
+
handleScroll: (e: any) => void;
|
|
33
35
|
}
|
|
34
36
|
/**
|
|
35
37
|
* @hidden
|
|
@@ -48,5 +50,6 @@ export interface ListAll extends ListMethods, ListState {
|
|
|
48
50
|
/**
|
|
49
51
|
* Represents the default `List` component.
|
|
50
52
|
*/
|
|
51
|
-
declare let
|
|
52
|
-
|
|
53
|
+
declare let ListVue2: ComponentOptions<Vue2type, DefaultData<{}>, DefaultMethods<ListMethods>, {}, RecordPropsDefinition<ListProps>>;
|
|
54
|
+
declare const List: DefineComponent<{}, any, {}, {}, ListMethods, {}, {}, {}, string, {}, {}, {}>;
|
|
55
|
+
export { List, ListVue2 };
|
package/dist/npm/common/List.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.List = void 0; // @ts-ignore
|
|
6
|
+
exports.ListVue2 = exports.List = void 0; // @ts-ignore
|
|
7
7
|
|
|
8
8
|
var Vue = require("vue");
|
|
9
9
|
|
|
@@ -26,8 +26,13 @@ var messages_1 = require("../messages");
|
|
|
26
26
|
*/
|
|
27
27
|
|
|
28
28
|
|
|
29
|
-
var
|
|
29
|
+
var ListVue2 = {
|
|
30
30
|
name: 'list',
|
|
31
|
+
// @ts-ignore
|
|
32
|
+
emits: {
|
|
33
|
+
listclick: null,
|
|
34
|
+
scroll: null
|
|
35
|
+
},
|
|
31
36
|
props: {
|
|
32
37
|
id: String,
|
|
33
38
|
show: Boolean,
|
|
@@ -46,7 +51,8 @@ var List = {
|
|
|
46
51
|
default: true
|
|
47
52
|
},
|
|
48
53
|
itemRender: [String, Function, Object],
|
|
49
|
-
noDataRender: [String, Function, Object]
|
|
54
|
+
noDataRender: [String, Function, Object],
|
|
55
|
+
scroller: Boolean
|
|
50
56
|
},
|
|
51
57
|
inject: {
|
|
52
58
|
kendoLocalizationService: {
|
|
@@ -70,6 +76,9 @@ var List = {
|
|
|
70
76
|
methods: {
|
|
71
77
|
handleClick: function handleClick(index, e) {
|
|
72
78
|
this.$emit('listclick', index, e);
|
|
79
|
+
},
|
|
80
|
+
handleScroll: function handleScroll(e) {
|
|
81
|
+
this.$emit('scroll', e);
|
|
73
82
|
}
|
|
74
83
|
},
|
|
75
84
|
// @ts-ignore
|
|
@@ -77,6 +86,7 @@ var List = {
|
|
|
77
86
|
var _this = this;
|
|
78
87
|
|
|
79
88
|
var h = gh || createElement;
|
|
89
|
+
var defaultSlot = kendo_vue_common_1.getDefaultSlots(this);
|
|
80
90
|
var localizationService = kendo_vue_intl_1.provideLocalizationService(this);
|
|
81
91
|
var _a = this.$props,
|
|
82
92
|
id = _a.id,
|
|
@@ -150,6 +160,10 @@ var List = {
|
|
|
150
160
|
unselectable: 'on',
|
|
151
161
|
attrs: this.v3 ? undefined : {
|
|
152
162
|
unselectable: 'on'
|
|
163
|
+
},
|
|
164
|
+
onScroll: this.handleScroll,
|
|
165
|
+
on: this.v3 ? undefined : {
|
|
166
|
+
"scroll": this.handleScroll
|
|
153
167
|
}
|
|
154
168
|
}, [h("ul", {
|
|
155
169
|
id: id,
|
|
@@ -160,12 +174,14 @@ var List = {
|
|
|
160
174
|
},
|
|
161
175
|
role: "listbox",
|
|
162
176
|
"aria-hidden": !show ? true : undefined,
|
|
163
|
-
"class": 'k-list
|
|
177
|
+
"class": 'k-list-ul',
|
|
164
178
|
ref: this.v3 ? function (el) {
|
|
165
179
|
_this.listRef = el;
|
|
166
180
|
} : 'list',
|
|
167
181
|
style: listStyle
|
|
168
|
-
}, [items])]) : renderNoValueElement.call(this);
|
|
182
|
+
}, [items]), defaultSlot]) : renderNoValueElement.call(this);
|
|
169
183
|
}
|
|
170
184
|
};
|
|
185
|
+
exports.ListVue2 = ListVue2;
|
|
186
|
+
var List = ListVue2;
|
|
171
187
|
exports.List = List;
|
|
@@ -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;
|
|
@@ -24,7 +23,7 @@ export interface ListContainerState {
|
|
|
24
23
|
/**
|
|
25
24
|
* @hidden
|
|
26
25
|
*/
|
|
27
|
-
export interface ListContainerMethods extends
|
|
26
|
+
export interface ListContainerMethods extends Vue2type {
|
|
28
27
|
onMouseDown: (e: any) => void;
|
|
29
28
|
onBlur: (e: any) => void;
|
|
30
29
|
onOpen: (e: any) => void;
|
|
@@ -33,6 +32,6 @@ export interface ListContainerMethods extends Vue {
|
|
|
33
32
|
/**
|
|
34
33
|
* Represents the default `ListContainer` component.
|
|
35
34
|
*/
|
|
36
|
-
declare let
|
|
37
|
-
declare const
|
|
38
|
-
export { ListContainer,
|
|
35
|
+
declare let ListContainerVue2: ComponentOptions<Vue2type, DefaultData<{}>, DefaultMethods<ListContainerMethods>, {}, RecordPropsDefinition<ListContainerProps>>;
|
|
36
|
+
declare const ListContainer: DefineComponent<ListContainerProps, any, {}, {}, ListContainerMethods, {}, {}, {}, string, ListContainerProps, ListContainerProps, {}>;
|
|
37
|
+
export { ListContainer, ListContainerVue2 };
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.ListContainerVue2 = exports.ListContainer = void 0; // @ts-ignore
|
|
7
7
|
|
|
8
8
|
var Vue = require("vue");
|
|
9
9
|
|
|
@@ -18,7 +18,7 @@ var kendo_vue_common_1 = require("@progress/kendo-vue-common");
|
|
|
18
18
|
*/
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
var
|
|
21
|
+
var ListContainerVue2 = {
|
|
22
22
|
name: 'list-container',
|
|
23
23
|
// @ts-ignore
|
|
24
24
|
emits: {
|
|
@@ -78,7 +78,8 @@ var ListContainer = {
|
|
|
78
78
|
dir = _a.dir,
|
|
79
79
|
popupSettings = _a.popupSettings; // @ts-ignore
|
|
80
80
|
|
|
81
|
-
var
|
|
81
|
+
var popupClass = popupSettings.popupClass,
|
|
82
|
+
className = popupSettings.className,
|
|
82
83
|
animate = popupSettings.animate,
|
|
83
84
|
anchor = popupSettings.anchor,
|
|
84
85
|
show = popupSettings.show,
|
|
@@ -111,6 +112,7 @@ var ListContainer = {
|
|
|
111
112
|
onClose: this.onClose
|
|
112
113
|
}, this.v3 ? function () {
|
|
113
114
|
return [h("div", {
|
|
115
|
+
"class": popupClass,
|
|
114
116
|
onMousedown: _this.onMouseDown,
|
|
115
117
|
on: _this.v3 ? undefined : {
|
|
116
118
|
"mousedown": _this.onMouseDown,
|
|
@@ -119,6 +121,7 @@ var ListContainer = {
|
|
|
119
121
|
onFocusout: _this.onBlur
|
|
120
122
|
}, [defaultSlot])];
|
|
121
123
|
} : [h("div", {
|
|
124
|
+
"class": popupClass,
|
|
122
125
|
onMousedown: _this.onMouseDown,
|
|
123
126
|
on: _this.v3 ? undefined : {
|
|
124
127
|
"mousedown": _this.onMouseDown,
|
|
@@ -129,6 +132,6 @@ var ListContainer = {
|
|
|
129
132
|
);
|
|
130
133
|
}
|
|
131
134
|
};
|
|
132
|
-
exports.
|
|
133
|
-
var
|
|
134
|
-
exports.
|
|
135
|
+
exports.ListContainerVue2 = ListContainerVue2;
|
|
136
|
+
var ListContainer = ListContainerVue2;
|
|
137
|
+
exports.ListContainer = ListContainer;
|
|
@@ -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 };
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.ListDefaultItemVue2 = exports.ListDefaultItem = void 0; // @ts-ignore
|
|
7
7
|
|
|
8
8
|
var Vue = require("vue");
|
|
9
9
|
|
|
@@ -18,7 +18,7 @@ var utils_1 = require("./utils");
|
|
|
18
18
|
*/
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
var
|
|
21
|
+
var ListDefaultItemVue2 = {
|
|
22
22
|
name: 'list-default-item',
|
|
23
23
|
props: {
|
|
24
24
|
defaultItem: [Object, String],
|
|
@@ -54,12 +54,15 @@ var ListDefaultItem = {
|
|
|
54
54
|
"mousedown": this.onMouseDown
|
|
55
55
|
},
|
|
56
56
|
onMousedown: this.onMouseDown,
|
|
57
|
+
style: {
|
|
58
|
+
position: 'unset'
|
|
59
|
+
},
|
|
57
60
|
"class": kendo_vue_common_1.classNames('k-list-optionlabel', {
|
|
58
|
-
'k-
|
|
61
|
+
'k-selected': selected
|
|
59
62
|
})
|
|
60
63
|
}, [utils_1.getItemValue(defaultItem, textField) || '']);
|
|
61
64
|
}
|
|
62
65
|
};
|
|
63
|
-
exports.
|
|
64
|
-
var
|
|
65
|
-
exports.
|
|
66
|
+
exports.ListDefaultItemVue2 = ListDefaultItemVue2;
|
|
67
|
+
var ListDefaultItem = ListDefaultItemVue2;
|
|
68
|
+
exports.ListDefaultItem = ListDefaultItem;
|
|
@@ -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;
|
|
@@ -11,11 +10,14 @@ export interface ListFilterProps {
|
|
|
11
10
|
value?: string;
|
|
12
11
|
onChange?: any;
|
|
13
12
|
onKeyDown?: any;
|
|
13
|
+
size?: null | 'small' | 'medium' | 'large' | string;
|
|
14
|
+
rounded?: null | 'small' | 'medium' | 'large' | 'full' | string;
|
|
15
|
+
fillMode?: null | 'solid' | 'flat' | 'outline' | string;
|
|
14
16
|
}
|
|
15
17
|
/**
|
|
16
18
|
* @hidden
|
|
17
19
|
*/
|
|
18
|
-
export interface ListFilterMethods extends
|
|
20
|
+
export interface ListFilterMethods extends Vue2type {
|
|
19
21
|
[key: string]: any;
|
|
20
22
|
onKeyDown: (e: any) => void;
|
|
21
23
|
onChange: (e: any) => void;
|
|
@@ -36,6 +38,6 @@ export interface ListFilterAll extends ListFilterState, ListFilterMethods {
|
|
|
36
38
|
/**
|
|
37
39
|
* Represents the default `ListFilter` component.
|
|
38
40
|
*/
|
|
39
|
-
declare let
|
|
40
|
-
declare const
|
|
41
|
-
export { ListFilter,
|
|
41
|
+
declare let ListFilterVue2: ComponentOptions<Vue2type, DefaultData<{}>, DefaultMethods<ListFilterMethods>, {}, RecordPropsDefinition<ListFilterProps>>;
|
|
42
|
+
declare const ListFilter: DefineComponent<ListFilterProps, any, {}, {}, ListFilterMethods, {}, {}, {}, string, ListFilterProps, ListFilterProps, {}>;
|
|
43
|
+
export { ListFilter, ListFilterVue2 };
|
|
@@ -3,18 +3,23 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.ListFilterVue2 = exports.ListFilter = void 0; // @ts-ignore
|
|
7
7
|
|
|
8
8
|
var Vue = require("vue");
|
|
9
9
|
|
|
10
10
|
var allVue = Vue;
|
|
11
11
|
var gh = allVue.h;
|
|
12
12
|
var ref = allVue.ref;
|
|
13
|
+
|
|
14
|
+
var kendo_vue_common_1 = require("@progress/kendo-vue-common");
|
|
15
|
+
|
|
16
|
+
var sizeMap = kendo_vue_common_1.kendoThemeMaps.sizeMap,
|
|
17
|
+
roundedMap = kendo_vue_common_1.kendoThemeMaps.roundedMap;
|
|
13
18
|
/**
|
|
14
19
|
* Represents the default `ListFilter` component.
|
|
15
20
|
*/
|
|
16
21
|
|
|
17
|
-
var
|
|
22
|
+
var ListFilterVue2 = {
|
|
18
23
|
name: 'list-filter',
|
|
19
24
|
// @ts-ignore
|
|
20
25
|
emits: {
|
|
@@ -22,7 +27,41 @@ var ListFilter = {
|
|
|
22
27
|
change: null
|
|
23
28
|
},
|
|
24
29
|
props: {
|
|
25
|
-
value: String
|
|
30
|
+
value: String,
|
|
31
|
+
rounded: {
|
|
32
|
+
type: String,
|
|
33
|
+
default: 'medium',
|
|
34
|
+
validator: function validator(value) {
|
|
35
|
+
return ['small', 'medium', 'large', 'full'].includes(value);
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
fillMode: {
|
|
39
|
+
type: String,
|
|
40
|
+
default: 'solid',
|
|
41
|
+
validator: function validator(value) {
|
|
42
|
+
return ['solid', 'flat', 'outline'].includes(value);
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
size: {
|
|
46
|
+
type: String,
|
|
47
|
+
default: 'medium',
|
|
48
|
+
validator: function validator(value) {
|
|
49
|
+
return ['small', 'medium', 'large'].includes(value);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
computed: {
|
|
54
|
+
spanClass: function spanClass() {
|
|
55
|
+
var _a;
|
|
56
|
+
|
|
57
|
+
var _b = this.$props,
|
|
58
|
+
size = _b.size,
|
|
59
|
+
rounded = _b.rounded,
|
|
60
|
+
fillMode = _b.fillMode;
|
|
61
|
+
return _a = {
|
|
62
|
+
'k-searchbox k-input': true
|
|
63
|
+
}, _a["k-input-" + (sizeMap[size] || size)] = size, _a["k-rounded-" + (roundedMap[rounded] || rounded)] = rounded, _a["k-input-" + fillMode] = fillMode, _a;
|
|
64
|
+
}
|
|
26
65
|
},
|
|
27
66
|
// @ts-ignore
|
|
28
67
|
setup: !gh ? undefined : function () {
|
|
@@ -51,15 +90,21 @@ var ListFilter = {
|
|
|
51
90
|
var h = gh || createElement;
|
|
52
91
|
return h("span", {
|
|
53
92
|
"class": "k-list-filter"
|
|
93
|
+
}, [h("span", {
|
|
94
|
+
"class": this.spanClass
|
|
54
95
|
}, [h("input", {
|
|
55
96
|
ref: this.v3 ? function (el) {
|
|
56
97
|
_this.inputRef = el;
|
|
57
98
|
} : 'input',
|
|
99
|
+
type: "text",
|
|
100
|
+
attrs: this.v3 ? undefined : {
|
|
101
|
+
type: "text"
|
|
102
|
+
},
|
|
58
103
|
value: this.v3 ? this.$props.value || '' : null,
|
|
59
104
|
domProps: this.v3 ? undefined : {
|
|
60
105
|
"value": this.$props.value || ''
|
|
61
106
|
},
|
|
62
|
-
"class": "k-
|
|
107
|
+
"class": "k-input-inner",
|
|
63
108
|
onInput: this.onChange,
|
|
64
109
|
on: this.v3 ? undefined : {
|
|
65
110
|
"input": this.onChange,
|
|
@@ -67,10 +112,10 @@ var ListFilter = {
|
|
|
67
112
|
},
|
|
68
113
|
onKeydown: this.onKeyDown
|
|
69
114
|
}), h("span", {
|
|
70
|
-
"class": "k-icon k-i-search"
|
|
71
|
-
})]);
|
|
115
|
+
"class": "k-input-icon k-icon k-i-search"
|
|
116
|
+
})])]);
|
|
72
117
|
}
|
|
73
118
|
};
|
|
74
|
-
exports.
|
|
75
|
-
var
|
|
76
|
-
exports.
|
|
119
|
+
exports.ListFilterVue2 = ListFilterVue2;
|
|
120
|
+
var ListFilter = ListFilterVue2;
|
|
121
|
+
exports.ListFilter = ListFilter;
|
|
@@ -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;
|
|
@@ -56,12 +55,12 @@ export interface ListItemComputed {
|
|
|
56
55
|
/**
|
|
57
56
|
* @hidden
|
|
58
57
|
*/
|
|
59
|
-
export interface ListItemAll extends
|
|
58
|
+
export interface ListItemAll extends Vue2type, ListItemMethods, ListItemComputed {
|
|
60
59
|
itemClass: object;
|
|
61
60
|
}
|
|
62
61
|
/**
|
|
63
62
|
* Represents the default `ListItem` component.
|
|
64
63
|
*/
|
|
65
|
-
declare let
|
|
66
|
-
declare const
|
|
67
|
-
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 };
|
|
@@ -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.ListItemVue2 = exports.ListItem = void 0; // @ts-ignore
|
|
23
23
|
|
|
24
24
|
var Vue = require("vue");
|
|
25
25
|
|
|
@@ -34,7 +34,7 @@ var utils_1 = require("./utils");
|
|
|
34
34
|
*/
|
|
35
35
|
|
|
36
36
|
|
|
37
|
-
var
|
|
37
|
+
var ListItemVue2 = {
|
|
38
38
|
name: 'list-item',
|
|
39
39
|
props: {
|
|
40
40
|
id: String,
|
|
@@ -55,9 +55,9 @@ var ListItem = {
|
|
|
55
55
|
computed: {
|
|
56
56
|
itemClass: function itemClass() {
|
|
57
57
|
return {
|
|
58
|
-
'k-item': true,
|
|
59
|
-
'k-
|
|
60
|
-
'k-
|
|
58
|
+
'k-list-item': true,
|
|
59
|
+
'k-selected': this.$props.selected,
|
|
60
|
+
'k-focus': this.$props.focused
|
|
61
61
|
};
|
|
62
62
|
}
|
|
63
63
|
},
|
|
@@ -79,12 +79,20 @@ var ListItem = {
|
|
|
79
79
|
},
|
|
80
80
|
role: "option",
|
|
81
81
|
"aria-selected": selected,
|
|
82
|
-
"class":
|
|
82
|
+
"class": kendo_vue_common_1.classNames('k-list-item', {
|
|
83
|
+
'k-selected': selected,
|
|
84
|
+
'k-focus': this.$props.focused
|
|
85
|
+
}),
|
|
83
86
|
onClick: this.handleClick,
|
|
84
87
|
on: this.v3 ? undefined : {
|
|
85
88
|
"click": this.handleClick
|
|
89
|
+
},
|
|
90
|
+
style: {
|
|
91
|
+
position: 'unset'
|
|
86
92
|
}
|
|
87
|
-
}, [
|
|
93
|
+
}, [h("span", {
|
|
94
|
+
"class": "k-list-item-text"
|
|
95
|
+
}, [utils_1.getItemValue(this.$props.dataItem, this.$props.textField).toString()])]);
|
|
88
96
|
return kendo_vue_common_1.getTemplate.call(this, {
|
|
89
97
|
h: h,
|
|
90
98
|
template: this.$props.render,
|
|
@@ -98,6 +106,6 @@ var ListItem = {
|
|
|
98
106
|
});
|
|
99
107
|
}
|
|
100
108
|
};
|
|
101
|
-
exports.
|
|
102
|
-
var
|
|
103
|
-
exports.
|
|
109
|
+
exports.ListItemVue2 = ListItemVue2;
|
|
110
|
+
var ListItem = ListItemVue2;
|
|
111
|
+
exports.ListItem = ListItem;
|
|
@@ -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 };
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.SearchBarVue2 = exports.SearchBar = void 0; // @ts-ignore
|
|
7
7
|
|
|
8
8
|
var Vue = require("vue");
|
|
9
9
|
|
|
@@ -17,7 +17,7 @@ var kendo_vue_common_1 = require("@progress/kendo-vue-common");
|
|
|
17
17
|
*/
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var SearchBarVue2 = {
|
|
21
21
|
name: 'search-bar',
|
|
22
22
|
// @ts-ignore
|
|
23
23
|
emits: {
|
|
@@ -45,7 +45,8 @@ var SearchBar = {
|
|
|
45
45
|
activedescendant: String,
|
|
46
46
|
describedby: String,
|
|
47
47
|
clearButton: Boolean,
|
|
48
|
-
accessKey: String
|
|
48
|
+
accessKey: String,
|
|
49
|
+
ariaLabelledBy: String
|
|
49
50
|
},
|
|
50
51
|
data: function data() {
|
|
51
52
|
return {
|
|
@@ -117,11 +118,7 @@ var SearchBar = {
|
|
|
117
118
|
var _this = this;
|
|
118
119
|
|
|
119
120
|
var h = gh || createElement;
|
|
120
|
-
|
|
121
|
-
return h("span", {
|
|
122
|
-
"class": "k-searchbar",
|
|
123
|
-
key: "searchbar"
|
|
124
|
-
}, [h("input", {
|
|
121
|
+
return h("input", {
|
|
125
122
|
autoComplete: "off",
|
|
126
123
|
attrs: this.v3 ? undefined : {
|
|
127
124
|
autoComplete: "off",
|
|
@@ -140,12 +137,14 @@ var SearchBar = {
|
|
|
140
137
|
"aria-expanded": this.$props.expanded || false,
|
|
141
138
|
"aria-owns": this.$props.owns,
|
|
142
139
|
"aria-activedescendant": this.$props.activedescendant,
|
|
143
|
-
"aria-describedby": this.$props.describedby
|
|
140
|
+
"aria-describedby": this.$props.describedby,
|
|
141
|
+
"aria-labelledby": this.$props.ariaLabelledBy
|
|
144
142
|
},
|
|
145
143
|
id: this.$props.id,
|
|
146
144
|
type: "text",
|
|
145
|
+
key: "searchbar",
|
|
147
146
|
placeholder: this.$props.placeholder,
|
|
148
|
-
"class": "k-input",
|
|
147
|
+
"class": "k-input-inner",
|
|
149
148
|
tabIndex: this.$props.tabIndex,
|
|
150
149
|
accessKey: this.$props.accessKey,
|
|
151
150
|
role: "listbox",
|
|
@@ -175,10 +174,11 @@ var SearchBar = {
|
|
|
175
174
|
"aria-expanded": this.$props.expanded || false,
|
|
176
175
|
"aria-owns": this.$props.owns,
|
|
177
176
|
"aria-activedescendant": this.$props.activedescendant,
|
|
178
|
-
"aria-describedby": this.$props.describedby
|
|
179
|
-
|
|
177
|
+
"aria-describedby": this.$props.describedby,
|
|
178
|
+
"aria-labelledby": this.$props.ariaLabelledBy
|
|
179
|
+
});
|
|
180
180
|
}
|
|
181
181
|
};
|
|
182
|
-
exports.
|
|
183
|
-
var
|
|
184
|
-
exports.
|
|
182
|
+
exports.SearchBarVue2 = SearchBarVue2;
|
|
183
|
+
var SearchBar = SearchBarVue2;
|
|
184
|
+
exports.SearchBar = SearchBar;
|
|
@@ -94,8 +94,9 @@ function () {
|
|
|
94
94
|
VirtualScroll.prototype.scrollToEnd = function () {
|
|
95
95
|
if (this.container && this.list) {
|
|
96
96
|
this.calcScrollElementHeight();
|
|
97
|
-
this.container.scrollTop = this.container.scrollHeight - this.container.offsetHeight;
|
|
98
|
-
|
|
97
|
+
this.container.scrollTop = this.container.scrollHeight - this.container.offsetHeight; // this.translateTo(this.container.scrollHeight - this.list.offsetHeight);
|
|
98
|
+
|
|
99
|
+
this.translateTo(this.container.scrollHeight); // - this.list.offsetHeight
|
|
99
100
|
}
|
|
100
101
|
};
|
|
101
102
|
|
|
@@ -187,8 +188,9 @@ function () {
|
|
|
187
188
|
};
|
|
188
189
|
|
|
189
190
|
VirtualScroll.prototype.validateTranslate = function (translate) {
|
|
190
|
-
translate = Math.max(0, translate);
|
|
191
|
-
|
|
191
|
+
translate = Math.max(0, translate); // translate = Math.min(this.containerHeight - this.list!.offsetHeight, translate);
|
|
192
|
+
|
|
193
|
+
translate = Math.min(this.containerHeight, translate);
|
|
192
194
|
return translate;
|
|
193
195
|
};
|
|
194
196
|
|
package/dist/npm/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 };
|