@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.
Files changed (72) hide show
  1. package/dist/cdn/js/kendo-vue-dropdowns.js +1 -1
  2. package/dist/es/AutoComplete/AutoComplete.d.ts +5 -6
  3. package/dist/es/AutoComplete/AutoComplete.js +62 -28
  4. package/dist/es/AutoComplete/AutoCompleteProps.d.ts +39 -0
  5. package/dist/es/ComboBox/ComboBox.d.ts +5 -6
  6. package/dist/es/ComboBox/ComboBox.js +101 -79
  7. package/dist/es/ComboBox/ComboBoxProps.d.ts +39 -0
  8. package/dist/es/DropDownList/DropDownList.d.ts +5 -6
  9. package/dist/es/DropDownList/DropDownList.js +181 -152
  10. package/dist/es/DropDownList/DropDownListProps.d.ts +43 -0
  11. package/dist/es/MultiSelect/MultiSelect.d.ts +5 -6
  12. package/dist/es/MultiSelect/MultiSelect.js +105 -77
  13. package/dist/es/MultiSelect/MultiSelectProps.d.ts +53 -0
  14. package/dist/es/MultiSelect/TagList.d.ts +8 -4
  15. package/dist/es/MultiSelect/TagList.js +60 -11
  16. package/dist/es/additionalTypes.ts +7 -1
  17. package/dist/es/common/ClearButton.d.ts +5 -6
  18. package/dist/es/common/ClearButton.js +7 -5
  19. package/dist/es/common/DropDownBase.d.ts +4 -5
  20. package/dist/es/common/DropDownBase.js +5 -2
  21. package/dist/es/common/List.d.ts +7 -4
  22. package/dist/es/common/List.js +21 -6
  23. package/dist/es/common/ListContainer.d.ts +5 -6
  24. package/dist/es/common/ListContainer.js +7 -4
  25. package/dist/es/common/ListDefaultItem.d.ts +5 -6
  26. package/dist/es/common/ListDefaultItem.js +7 -4
  27. package/dist/es/common/ListFilter.d.ts +8 -6
  28. package/dist/es/common/ListFilter.js +50 -7
  29. package/dist/es/common/ListItem.d.ts +5 -6
  30. package/dist/es/common/ListItem.js +17 -9
  31. package/dist/es/common/SearchBar.d.ts +6 -6
  32. package/dist/es/common/SearchBar.js +13 -13
  33. package/dist/es/common/VirtualScroll.js +6 -4
  34. package/dist/es/main.d.ts +5 -5
  35. package/dist/es/main.js +5 -5
  36. package/dist/es/package-metadata.js +1 -1
  37. package/dist/npm/AutoComplete/AutoComplete.d.ts +5 -6
  38. package/dist/npm/AutoComplete/AutoComplete.js +63 -29
  39. package/dist/npm/AutoComplete/AutoCompleteProps.d.ts +39 -0
  40. package/dist/npm/ComboBox/ComboBox.d.ts +5 -6
  41. package/dist/npm/ComboBox/ComboBox.js +104 -80
  42. package/dist/npm/ComboBox/ComboBoxProps.d.ts +39 -0
  43. package/dist/npm/DropDownList/DropDownList.d.ts +5 -6
  44. package/dist/npm/DropDownList/DropDownList.js +184 -153
  45. package/dist/npm/DropDownList/DropDownListProps.d.ts +43 -0
  46. package/dist/npm/MultiSelect/MultiSelect.d.ts +5 -6
  47. package/dist/npm/MultiSelect/MultiSelect.js +107 -78
  48. package/dist/npm/MultiSelect/MultiSelectProps.d.ts +53 -0
  49. package/dist/npm/MultiSelect/TagList.d.ts +8 -4
  50. package/dist/npm/MultiSelect/TagList.js +60 -10
  51. package/dist/npm/additionalTypes.ts +7 -1
  52. package/dist/npm/common/ClearButton.d.ts +5 -6
  53. package/dist/npm/common/ClearButton.js +9 -7
  54. package/dist/npm/common/DropDownBase.d.ts +4 -5
  55. package/dist/npm/common/DropDownBase.js +5 -2
  56. package/dist/npm/common/List.d.ts +7 -4
  57. package/dist/npm/common/List.js +21 -5
  58. package/dist/npm/common/ListContainer.d.ts +5 -6
  59. package/dist/npm/common/ListContainer.js +9 -6
  60. package/dist/npm/common/ListDefaultItem.d.ts +5 -6
  61. package/dist/npm/common/ListDefaultItem.js +9 -6
  62. package/dist/npm/common/ListFilter.d.ts +8 -6
  63. package/dist/npm/common/ListFilter.js +54 -9
  64. package/dist/npm/common/ListItem.d.ts +5 -6
  65. package/dist/npm/common/ListItem.js +18 -10
  66. package/dist/npm/common/SearchBar.d.ts +6 -6
  67. package/dist/npm/common/SearchBar.js +15 -15
  68. package/dist/npm/common/VirtualScroll.js +6 -4
  69. package/dist/npm/main.d.ts +5 -5
  70. package/dist/npm/main.js +5 -5
  71. package/dist/npm/package-metadata.js +1 -1
  72. package/package.json +5 -4
@@ -1,4 +1,4 @@
1
- import { RecordPropsDefinition, ComponentOptions } from 'vue/types/options';
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 Vue {
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 List: ComponentOptions<Vue, DefaultData<{}>, DefaultMethods<ListMethods>, {}, RecordPropsDefinition<ListProps>>;
52
- export { List };
53
+ declare let ListVue2: ComponentOptions<Vue2type, DefaultData<{}>, DefaultMethods<ListMethods>, {}, RecordPropsDefinition<ListProps>>;
54
+ declare const List: DefineComponent<{}, any, {}, {}, ListMethods, {}, {}, {}, string, {}, {}, {}>;
55
+ export { List, ListVue2 };
@@ -6,15 +6,20 @@ var ref = allVue.ref;
6
6
  var inject = allVue.inject;
7
7
  import { ListItem } from './ListItem';
8
8
  import { areSame } from './utils';
9
- import { getTemplate } from '@progress/kendo-vue-common';
9
+ import { getTemplate, getDefaultSlots } from '@progress/kendo-vue-common';
10
10
  import { provideLocalizationService } from '@progress/kendo-vue-intl';
11
11
  import { messages, nodata } from '../messages';
12
12
  /**
13
13
  * Represents the default `List` component.
14
14
  */
15
15
 
16
- var List = {
16
+ var ListVue2 = {
17
17
  name: 'list',
18
+ // @ts-ignore
19
+ emits: {
20
+ listclick: null,
21
+ scroll: null
22
+ },
18
23
  props: {
19
24
  id: String,
20
25
  show: Boolean,
@@ -33,7 +38,8 @@ var List = {
33
38
  default: true
34
39
  },
35
40
  itemRender: [String, Function, Object],
36
- noDataRender: [String, Function, Object]
41
+ noDataRender: [String, Function, Object],
42
+ scroller: Boolean
37
43
  },
38
44
  inject: {
39
45
  kendoLocalizationService: {
@@ -57,6 +63,9 @@ var List = {
57
63
  methods: {
58
64
  handleClick: function handleClick(index, e) {
59
65
  this.$emit('listclick', index, e);
66
+ },
67
+ handleScroll: function handleScroll(e) {
68
+ this.$emit('scroll', e);
60
69
  }
61
70
  },
62
71
  // @ts-ignore
@@ -64,6 +73,7 @@ var List = {
64
73
  var _this = this;
65
74
 
66
75
  var h = gh || createElement;
76
+ var defaultSlot = getDefaultSlots(this);
67
77
  var localizationService = provideLocalizationService(this);
68
78
  var _a = this.$props,
69
79
  id = _a.id,
@@ -137,6 +147,10 @@ var List = {
137
147
  unselectable: 'on',
138
148
  attrs: this.v3 ? undefined : {
139
149
  unselectable: 'on'
150
+ },
151
+ onScroll: this.handleScroll,
152
+ on: this.v3 ? undefined : {
153
+ "scroll": this.handleScroll
140
154
  }
141
155
  }, [h("ul", {
142
156
  id: id,
@@ -147,12 +161,13 @@ var List = {
147
161
  },
148
162
  role: "listbox",
149
163
  "aria-hidden": !show ? true : undefined,
150
- "class": 'k-list k-reset',
164
+ "class": 'k-list-ul',
151
165
  ref: this.v3 ? function (el) {
152
166
  _this.listRef = el;
153
167
  } : 'list',
154
168
  style: listStyle
155
- }, [items])]) : renderNoValueElement.call(this);
169
+ }, [items]), defaultSlot]) : renderNoValueElement.call(this);
156
170
  }
157
171
  };
158
- export { List };
172
+ var List = ListVue2;
173
+ export { List, ListVue2 };
@@ -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 Vue {
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 ListContainer: ComponentOptions<Vue, DefaultData<{}>, DefaultMethods<ListContainerMethods>, {}, RecordPropsDefinition<ListContainerProps>>;
37
- declare const ListContainerVue3: DefineComponent<ListContainerProps, any, {}, {}, ListContainerMethods, {}, {}, {}, string, ListContainerProps, ListContainerProps, {}>;
38
- export { ListContainer, ListContainerVue3 };
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 };
@@ -8,7 +8,7 @@ import { getDefaultSlots } from '@progress/kendo-vue-common';
8
8
  * Represents the default `ListContainer` component.
9
9
  */
10
10
 
11
- var ListContainer = {
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 className = popupSettings.className,
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 ListContainerVue3 = ListContainer;
123
- export { ListContainer, ListContainerVue3 };
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 Vue {
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 ListDefaultItem: ComponentOptions<Vue, DefaultData<{}>, DefaultMethods<ListDefaultItemMethods>, {}, RecordPropsDefinition<DefaultItemProps>>;
26
- declare const ListDefaultItemVue3: DefineComponent<DefaultItemProps, any, {}, {}, ListDefaultItemMethods, {}, {}, {}, string, DefaultItemProps, DefaultItemProps, {}>;
27
- export { ListDefaultItem, ListDefaultItemVue3 };
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 ListDefaultItem = {
11
+ var ListDefaultItemVue2 = {
12
12
  name: 'list-default-item',
13
13
  props: {
14
14
  defaultItem: [Object, String],
@@ -44,11 +44,14 @@ var ListDefaultItem = {
44
44
  "mousedown": this.onMouseDown
45
45
  },
46
46
  onMousedown: this.onMouseDown,
47
+ style: {
48
+ position: 'unset'
49
+ },
47
50
  "class": classNames('k-list-optionlabel', {
48
- 'k-state-selected': selected
51
+ 'k-selected': selected
49
52
  })
50
53
  }, [getItemValue(defaultItem, textField) || '']);
51
54
  }
52
55
  };
53
- var ListDefaultItemVue3 = ListDefaultItem;
54
- export { ListDefaultItem, ListDefaultItemVue3 };
56
+ var ListDefaultItem = ListDefaultItemVue2;
57
+ 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;
@@ -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 Vue {
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 ListFilter: ComponentOptions<Vue, DefaultData<{}>, DefaultMethods<ListFilterMethods>, {}, RecordPropsDefinition<ListFilterProps>>;
40
- declare const ListFilterVue3: DefineComponent<ListFilterProps, any, {}, {}, ListFilterMethods, {}, {}, {}, string, ListFilterProps, ListFilterProps, {}>;
41
- export { ListFilter, ListFilterVue3 };
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,11 +3,14 @@ import * as Vue from 'vue';
3
3
  var allVue = Vue;
4
4
  var gh = allVue.h;
5
5
  var ref = allVue.ref;
6
+ import { kendoThemeMaps } from '@progress/kendo-vue-common';
7
+ var sizeMap = kendoThemeMaps.sizeMap,
8
+ roundedMap = kendoThemeMaps.roundedMap;
6
9
  /**
7
10
  * Represents the default `ListFilter` component.
8
11
  */
9
12
 
10
- var ListFilter = {
13
+ var ListFilterVue2 = {
11
14
  name: 'list-filter',
12
15
  // @ts-ignore
13
16
  emits: {
@@ -15,7 +18,41 @@ var ListFilter = {
15
18
  change: null
16
19
  },
17
20
  props: {
18
- value: String
21
+ value: String,
22
+ rounded: {
23
+ type: String,
24
+ default: 'medium',
25
+ validator: function validator(value) {
26
+ return ['small', 'medium', 'large', 'full'].includes(value);
27
+ }
28
+ },
29
+ fillMode: {
30
+ type: String,
31
+ default: 'solid',
32
+ validator: function validator(value) {
33
+ return ['solid', 'flat', 'outline'].includes(value);
34
+ }
35
+ },
36
+ size: {
37
+ type: String,
38
+ default: 'medium',
39
+ validator: function validator(value) {
40
+ return ['small', 'medium', 'large'].includes(value);
41
+ }
42
+ }
43
+ },
44
+ computed: {
45
+ spanClass: function spanClass() {
46
+ var _a;
47
+
48
+ var _b = this.$props,
49
+ size = _b.size,
50
+ rounded = _b.rounded,
51
+ fillMode = _b.fillMode;
52
+ return _a = {
53
+ 'k-searchbox k-input': true
54
+ }, _a["k-input-" + (sizeMap[size] || size)] = size, _a["k-rounded-" + (roundedMap[rounded] || rounded)] = rounded, _a["k-input-" + fillMode] = fillMode, _a;
55
+ }
19
56
  },
20
57
  // @ts-ignore
21
58
  setup: !gh ? undefined : function () {
@@ -44,15 +81,21 @@ var ListFilter = {
44
81
  var h = gh || createElement;
45
82
  return h("span", {
46
83
  "class": "k-list-filter"
84
+ }, [h("span", {
85
+ "class": this.spanClass
47
86
  }, [h("input", {
48
87
  ref: this.v3 ? function (el) {
49
88
  _this.inputRef = el;
50
89
  } : 'input',
90
+ type: "text",
91
+ attrs: this.v3 ? undefined : {
92
+ type: "text"
93
+ },
51
94
  value: this.v3 ? this.$props.value || '' : null,
52
95
  domProps: this.v3 ? undefined : {
53
96
  "value": this.$props.value || ''
54
97
  },
55
- "class": "k-textbox",
98
+ "class": "k-input-inner",
56
99
  onInput: this.onChange,
57
100
  on: this.v3 ? undefined : {
58
101
  "input": this.onChange,
@@ -60,9 +103,9 @@ var ListFilter = {
60
103
  },
61
104
  onKeydown: this.onKeyDown
62
105
  }), h("span", {
63
- "class": "k-icon k-i-search"
64
- })]);
106
+ "class": "k-input-icon k-icon k-i-search"
107
+ })])]);
65
108
  }
66
109
  };
67
- var ListFilterVue3 = ListFilter;
68
- export { ListFilter, ListFilterVue3 };
110
+ var ListFilter = ListFilterVue2;
111
+ 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;
@@ -56,12 +55,12 @@ export interface ListItemComputed {
56
55
  /**
57
56
  * @hidden
58
57
  */
59
- export interface ListItemAll extends Vue, ListItemMethods, ListItemComputed {
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 ListItem: ComponentOptions<Vue, DefaultData<{}>, DefaultMethods<ListItemAll>, ListItemComputed, RecordPropsDefinition<ListItemProps>>;
66
- declare const ListItemVue3: DefineComponent<ListItemProps, any, {}, {}, ListItemMethods, {}, {}, {}, string, ListItemProps, ListItemProps, {}>;
67
- export { ListItem, ListItemVue3 };
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 };
@@ -18,13 +18,13 @@ var __assign = this && this.__assign || function () {
18
18
  import * as Vue from 'vue';
19
19
  var allVue = Vue;
20
20
  var gh = allVue.h;
21
- import { getTemplate } from '@progress/kendo-vue-common';
21
+ import { classNames, getTemplate } from '@progress/kendo-vue-common';
22
22
  import { getItemValue } from './utils';
23
23
  /**
24
24
  * Represents the default `ListItem` component.
25
25
  */
26
26
 
27
- var ListItem = {
27
+ var ListItemVue2 = {
28
28
  name: 'list-item',
29
29
  props: {
30
30
  id: String,
@@ -45,9 +45,9 @@ var ListItem = {
45
45
  computed: {
46
46
  itemClass: function itemClass() {
47
47
  return {
48
- 'k-item': true,
49
- 'k-state-selected': this.$props.selected,
50
- 'k-state-focused': this.$props.focused
48
+ 'k-list-item': true,
49
+ 'k-selected': this.$props.selected,
50
+ 'k-focus': this.$props.focused
51
51
  };
52
52
  }
53
53
  },
@@ -69,12 +69,20 @@ var ListItem = {
69
69
  },
70
70
  role: "option",
71
71
  "aria-selected": selected,
72
- "class": this.itemClass,
72
+ "class": classNames('k-list-item', {
73
+ 'k-selected': selected,
74
+ 'k-focus': this.$props.focused
75
+ }),
73
76
  onClick: this.handleClick,
74
77
  on: this.v3 ? undefined : {
75
78
  "click": this.handleClick
79
+ },
80
+ style: {
81
+ position: 'unset'
76
82
  }
77
- }, [getItemValue(this.$props.dataItem, this.$props.textField).toString()]);
83
+ }, [h("span", {
84
+ "class": "k-list-item-text"
85
+ }, [getItemValue(this.$props.dataItem, this.$props.textField).toString()])]);
78
86
  return getTemplate.call(this, {
79
87
  h: h,
80
88
  template: this.$props.render,
@@ -88,5 +96,5 @@ var ListItem = {
88
96
  });
89
97
  }
90
98
  };
91
- var ListItemVue3 = ListItem;
92
- export { ListItem, ListItemVue3 };
99
+ var ListItem = ListItemVue2;
100
+ 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 Vue {
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 SearchBar: ComponentOptions<Vue, DefaultData<SearchBarData>, DefaultMethods<SearchBarAll>, {}, RecordPropsDefinition<SearchBarProps>>;
61
- declare const SearchBarVue3: DefineComponent<SearchBarProps, any, SearchBarData, {}, SearchBarMethods, {}, {}, {}, string, SearchBarProps, SearchBarProps, {}>;
62
- export { SearchBar, SearchBarVue3 };
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 SearchBar = {
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
- var suggestedText = this.$props.suggestedText;
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 SearchBarVue3 = SearchBar;
174
- export { SearchBar, SearchBarVue3 };
173
+ var SearchBar = SearchBarVue2;
174
+ export { SearchBar, SearchBarVue2 };
@@ -89,8 +89,9 @@ function () {
89
89
  VirtualScroll.prototype.scrollToEnd = function () {
90
90
  if (this.container && this.list) {
91
91
  this.calcScrollElementHeight();
92
- this.container.scrollTop = this.container.scrollHeight - this.container.offsetHeight;
93
- this.translateTo(this.container.scrollHeight - this.list.offsetHeight);
92
+ this.container.scrollTop = this.container.scrollHeight - this.container.offsetHeight; // this.translateTo(this.container.scrollHeight - this.list.offsetHeight);
93
+
94
+ this.translateTo(this.container.scrollHeight); // - this.list.offsetHeight
94
95
  }
95
96
  };
96
97
 
@@ -182,8 +183,9 @@ function () {
182
183
  };
183
184
 
184
185
  VirtualScroll.prototype.validateTranslate = function (translate) {
185
- translate = Math.max(0, translate);
186
- translate = Math.min(this.containerHeight - this.list.offsetHeight, translate);
186
+ translate = Math.max(0, translate); // translate = Math.min(this.containerHeight - this.list!.offsetHeight, translate);
187
+
188
+ translate = Math.min(this.containerHeight, translate);
187
189
  return translate;
188
190
  };
189
191
 
package/dist/es/main.d.ts CHANGED
@@ -1,13 +1,13 @@
1
1
  import { FormComponentValidity } from '@progress/kendo-vue-common';
2
- import { DropDownList, DropDownListVue3 } from './DropDownList/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, ComboBoxVue3 } from './ComboBox/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, AutoCompleteVue3 } from './AutoComplete/AutoComplete';
8
+ import { AutoComplete, AutoCompleteVue2 } from './AutoComplete/AutoComplete';
9
9
  import { AutoCompleteProps, AutoCompleteChangeEvent, AutoCompleteOpenEvent, AutoCompleteCloseEvent, AutoCompleteFocusEvent, AutoCompleteBlurEvent } from './AutoComplete/AutoCompleteProps';
10
- import { MultiSelect, MultiSelectVue3 } from './MultiSelect/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, AutoCompleteVue3, AutoCompleteProps, AutoCompleteChangeEvent, AutoCompleteOpenEvent, AutoCompleteCloseEvent, AutoCompleteFocusEvent, AutoCompleteBlurEvent, DropDownList, DropDownListVue3, DropDownListProps, DropDownListFilterChangeEvent, DropDownListChangeEvent, DropDownListOpenEvent, DropDownListCloseEvent, DropDownListFocusEvent, DropDownListBlurEvent, DropDownListPageChangeEvent, Page, VirtualizationSettings, DropDownsPopupSettings, ListItemProps, Suggestion, ComboBox, ComboBoxVue3, ComboBoxProps, ComboBoxFilterChangeEvent, ComboBoxChangeEvent, ComboBoxOpenEvent, ComboBoxCloseEvent, ComboBoxFocusEvent, ComboBoxBlurEvent, ComboBoxPageChangeEvent, MultiSelect, MultiSelectVue3, MultiSelectProps, MultiSelectChangeEvent, MultiSelectPageChangeEvent, MultiSelectFilterChangeEvent, MultiSelectOpenEvent, MultiSelectCloseEvent, MultiSelectFocusEvent, MultiSelectBlurEvent, MultiSelectTagData, FormComponentValidity };
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, DropDownListVue3 } from './DropDownList/DropDownList';
2
- import { ComboBox, ComboBoxVue3 } from './ComboBox/ComboBox';
3
- import { AutoComplete, AutoCompleteVue3 } from './AutoComplete/AutoComplete';
4
- import { MultiSelect, MultiSelectVue3 } from './MultiSelect/MultiSelect';
5
- export { AutoComplete, AutoCompleteVue3, DropDownList, DropDownListVue3, ComboBox, ComboBoxVue3, MultiSelect, MultiSelectVue3 };
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: 1641561157,
8
+ publishDate: 1642158910,
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, Vue {
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 AutoComplete: ComponentOptions<Vue, DefaultData<AutoCompleteData>, DefaultMethods<AutoCompleteAll>, AutoCompleteComputed, RecordPropsDefinition<AutoCompleteProps>>;
104
- declare const AutoCompleteVue3: DefineComponent<AutoCompleteProps, any, AutoCompleteData, AutoCompleteComputed, AutoCompleteMethods, {}, {}, {}, string, AutoCompleteProps, AutoCompleteProps, {}>;
105
- export { AutoComplete, AutoCompleteVue3 };
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 };