@progress/kendo-vue-dropdowns 4.3.2-dev.202403070957 → 4.3.2-dev.202403261314

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.
@@ -1116,7 +1116,7 @@ var MultiSelectVue2 = {
1116
1116
  id: this.base.listBoxId,
1117
1117
  show: opened,
1118
1118
  dataItems: listDataItems.slice(),
1119
- focusedIndex: focusedIndex - skip,
1119
+ focusedIndex: focusedIndex,
1120
1120
  value: this.computedValue(),
1121
1121
  textField: textField,
1122
1122
  valueField: dataItemKey,
@@ -1136,7 +1136,7 @@ var MultiSelectVue2 = {
1136
1136
  },
1137
1137
  show: opened,
1138
1138
  dataItems: listDataItems.slice(),
1139
- focusedIndex: focusedIndex - skip,
1139
+ focusedIndex: focusedIndex,
1140
1140
  value: this.computedValue(),
1141
1141
  textField: textField,
1142
1142
  valueField: dataItemKey,
@@ -23,9 +23,11 @@ var VirtualScroll = /** @class */function () {
23
23
  }
24
24
  };
25
25
  this.calcScrollElementHeight = function () {
26
+ var _a;
26
27
  _this.scrollSyncing = true;
27
28
  var heightChanged = false;
28
- var items = _this.list ? Array.from(_this.list.children) : [];
29
+ var list = (_a = _this.container) === null || _a === void 0 ? void 0 : _a.children[0];
30
+ var items = list ? Array.from(list.children) : [];
29
31
  _this.itemHeight = items[0] ? items[0].offsetHeight : _this.itemHeight;
30
32
  var totalHeight = _this.itemHeight * (_this.total - items.length);
31
33
  _this.containerHeight = firefox ? Math.min(firefoxMaxHeight, totalHeight) : totalHeight;
@@ -109,16 +111,16 @@ var VirtualScroll = /** @class */function () {
109
111
  var height = this.itemHeight;
110
112
  var scrollTop = this.container.scrollTop;
111
113
  var targetTranslate = this.listTranslate;
112
- var itemsLenght = this.list.children.length;
114
+ var itemsLength = this.list.children.length;
113
115
  var items;
114
- for (items = 0; items < itemsLenght; items++) {
116
+ for (items = 0; items < itemsLength; items++) {
115
117
  if (targetTranslate + height >= scrollTop) {
116
118
  break;
117
119
  }
118
120
  targetTranslate += height;
119
121
  }
120
122
  targetTranslate = this.validateTranslate(targetTranslate);
121
- if (items >= itemsLenght && this.skip + items >= this.total) {
123
+ if (items >= itemsLength && this.skip + items >= this.total) {
122
124
  this.translateTo(targetTranslate);
123
125
  this.changePage(this.total - 1, e);
124
126
  } else if (targetTranslate !== this.listTranslate) {
@@ -127,7 +129,7 @@ var VirtualScroll = /** @class */function () {
127
129
  }
128
130
  };
129
131
  VirtualScroll.prototype.scrollNonStrict = function (e) {
130
- var floatItemIndex = this.total * this.prevScrollPos / this.containerHeight;
132
+ var floatItemIndex = this.containerHeight ? this.total * this.prevScrollPos / this.containerHeight : 0;
131
133
  var itemIndex = Math.min(Math.floor(floatItemIndex), this.total - 1);
132
134
  var targetTranslate = this.containerHeight * floatItemIndex / this.total;
133
135
  targetTranslate = this.validateTranslate(targetTranslate);
@@ -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: 1709804926,
8
+ publishDate: 1711458390,
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
  };
@@ -1116,7 +1116,7 @@ var MultiSelectVue2 = {
1116
1116
  id: this.base.listBoxId,
1117
1117
  show: opened,
1118
1118
  dataItems: listDataItems.slice(),
1119
- focusedIndex: focusedIndex - skip,
1119
+ focusedIndex: focusedIndex,
1120
1120
  value: this.computedValue(),
1121
1121
  textField: textField,
1122
1122
  valueField: dataItemKey,
@@ -1136,7 +1136,7 @@ var MultiSelectVue2 = {
1136
1136
  },
1137
1137
  show: opened,
1138
1138
  dataItems: listDataItems.slice(),
1139
- focusedIndex: focusedIndex - skip,
1139
+ focusedIndex: focusedIndex,
1140
1140
  value: this.computedValue(),
1141
1141
  textField: textField,
1142
1142
  valueField: dataItemKey,
@@ -23,9 +23,11 @@ var VirtualScroll = /** @class */function () {
23
23
  }
24
24
  };
25
25
  this.calcScrollElementHeight = function () {
26
+ var _a;
26
27
  _this.scrollSyncing = true;
27
28
  var heightChanged = false;
28
- var items = _this.list ? Array.from(_this.list.children) : [];
29
+ var list = (_a = _this.container) === null || _a === void 0 ? void 0 : _a.children[0];
30
+ var items = list ? Array.from(list.children) : [];
29
31
  _this.itemHeight = items[0] ? items[0].offsetHeight : _this.itemHeight;
30
32
  var totalHeight = _this.itemHeight * (_this.total - items.length);
31
33
  _this.containerHeight = firefox ? Math.min(firefoxMaxHeight, totalHeight) : totalHeight;
@@ -109,16 +111,16 @@ var VirtualScroll = /** @class */function () {
109
111
  var height = this.itemHeight;
110
112
  var scrollTop = this.container.scrollTop;
111
113
  var targetTranslate = this.listTranslate;
112
- var itemsLenght = this.list.children.length;
114
+ var itemsLength = this.list.children.length;
113
115
  var items;
114
- for (items = 0; items < itemsLenght; items++) {
116
+ for (items = 0; items < itemsLength; items++) {
115
117
  if (targetTranslate + height >= scrollTop) {
116
118
  break;
117
119
  }
118
120
  targetTranslate += height;
119
121
  }
120
122
  targetTranslate = this.validateTranslate(targetTranslate);
121
- if (items >= itemsLenght && this.skip + items >= this.total) {
123
+ if (items >= itemsLength && this.skip + items >= this.total) {
122
124
  this.translateTo(targetTranslate);
123
125
  this.changePage(this.total - 1, e);
124
126
  } else if (targetTranslate !== this.listTranslate) {
@@ -127,7 +129,7 @@ var VirtualScroll = /** @class */function () {
127
129
  }
128
130
  };
129
131
  VirtualScroll.prototype.scrollNonStrict = function (e) {
130
- var floatItemIndex = this.total * this.prevScrollPos / this.containerHeight;
132
+ var floatItemIndex = this.containerHeight ? this.total * this.prevScrollPos / this.containerHeight : 0;
131
133
  var itemIndex = Math.min(Math.floor(floatItemIndex), this.total - 1);
132
134
  var targetTranslate = this.containerHeight * floatItemIndex / this.total;
133
135
  targetTranslate = this.validateTranslate(targetTranslate);
@@ -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: 1709804926,
8
+ publishDate: 1711458390,
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
  };
@@ -1122,7 +1122,7 @@ var MultiSelectVue2 = {
1122
1122
  id: this.base.listBoxId,
1123
1123
  show: opened,
1124
1124
  dataItems: listDataItems.slice(),
1125
- focusedIndex: focusedIndex - skip,
1125
+ focusedIndex: focusedIndex,
1126
1126
  value: this.computedValue(),
1127
1127
  textField: textField,
1128
1128
  valueField: dataItemKey,
@@ -1142,7 +1142,7 @@ var MultiSelectVue2 = {
1142
1142
  },
1143
1143
  show: opened,
1144
1144
  dataItems: listDataItems.slice(),
1145
- focusedIndex: focusedIndex - skip,
1145
+ focusedIndex: focusedIndex,
1146
1146
  value: this.computedValue(),
1147
1147
  textField: textField,
1148
1148
  valueField: dataItemKey,
@@ -28,9 +28,11 @@ var VirtualScroll = /** @class */function () {
28
28
  }
29
29
  };
30
30
  this.calcScrollElementHeight = function () {
31
+ var _a;
31
32
  _this.scrollSyncing = true;
32
33
  var heightChanged = false;
33
- var items = _this.list ? Array.from(_this.list.children) : [];
34
+ var list = (_a = _this.container) === null || _a === void 0 ? void 0 : _a.children[0];
35
+ var items = list ? Array.from(list.children) : [];
34
36
  _this.itemHeight = items[0] ? items[0].offsetHeight : _this.itemHeight;
35
37
  var totalHeight = _this.itemHeight * (_this.total - items.length);
36
38
  _this.containerHeight = utils_1.firefox ? Math.min(utils_1.firefoxMaxHeight, totalHeight) : totalHeight;
@@ -114,16 +116,16 @@ var VirtualScroll = /** @class */function () {
114
116
  var height = this.itemHeight;
115
117
  var scrollTop = this.container.scrollTop;
116
118
  var targetTranslate = this.listTranslate;
117
- var itemsLenght = this.list.children.length;
119
+ var itemsLength = this.list.children.length;
118
120
  var items;
119
- for (items = 0; items < itemsLenght; items++) {
121
+ for (items = 0; items < itemsLength; items++) {
120
122
  if (targetTranslate + height >= scrollTop) {
121
123
  break;
122
124
  }
123
125
  targetTranslate += height;
124
126
  }
125
127
  targetTranslate = this.validateTranslate(targetTranslate);
126
- if (items >= itemsLenght && this.skip + items >= this.total) {
128
+ if (items >= itemsLength && this.skip + items >= this.total) {
127
129
  this.translateTo(targetTranslate);
128
130
  this.changePage(this.total - 1, e);
129
131
  } else if (targetTranslate !== this.listTranslate) {
@@ -132,7 +134,7 @@ var VirtualScroll = /** @class */function () {
132
134
  }
133
135
  };
134
136
  VirtualScroll.prototype.scrollNonStrict = function (e) {
135
- var floatItemIndex = this.total * this.prevScrollPos / this.containerHeight;
137
+ var floatItemIndex = this.containerHeight ? this.total * this.prevScrollPos / this.containerHeight : 0;
136
138
  var itemIndex = Math.min(Math.floor(floatItemIndex), this.total - 1);
137
139
  var targetTranslate = this.containerHeight * floatItemIndex / this.total;
138
140
  targetTranslate = this.validateTranslate(targetTranslate);
@@ -8,7 +8,7 @@ exports.packageMetadata = {
8
8
  name: '@progress/kendo-vue-dropdowns',
9
9
  productName: 'Kendo UI for Vue',
10
10
  productCodes: ['KENDOUIVUE', 'KENDOUICOMPLETE'],
11
- publishDate: 1709804926,
11
+ publishDate: 1711458390,
12
12
  version: '',
13
13
  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'
14
14
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@progress/kendo-vue-dropdowns",
3
3
  "description": "Kendo UI for Vue Dropdowns package",
4
- "version": "4.3.2-dev.202403070957",
4
+ "version": "4.3.2-dev.202403261314",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/telerik/kendo-vue.git"
@@ -54,21 +54,21 @@
54
54
  "vue": "^2.6.12 || ^3.0.2"
55
55
  },
56
56
  "dependencies": {
57
- "@progress/kendo-vue-buttons": "4.3.2-dev.202403070957",
58
- "@progress/kendo-vue-common": "4.3.2-dev.202403070957",
59
- "@progress/kendo-vue-layout": "4.3.2-dev.202403070957",
60
- "@progress/kendo-vue-popup": "4.3.2-dev.202403070957"
57
+ "@progress/kendo-vue-buttons": "4.3.2-dev.202403261314",
58
+ "@progress/kendo-vue-common": "4.3.2-dev.202403261314",
59
+ "@progress/kendo-vue-layout": "4.3.2-dev.202403261314",
60
+ "@progress/kendo-vue-popup": "4.3.2-dev.202403261314"
61
61
  },
62
62
  "devDependencies": {
63
63
  "@progress/kendo-data-query": "^1.5.4",
64
64
  "@progress/kendo-licensing": "^1.3.0",
65
65
  "@progress/kendo-svg-icons": "^2.0.0",
66
- "@progress/kendo-vue-data-tools": "4.3.2-dev.202403070957",
67
- "@progress/kendo-vue-inputs": "4.3.2-dev.202403070957",
68
- "@progress/kendo-vue-intl": "4.3.2-dev.202403070957",
69
- "@progress/kendo-vue-labels": "4.3.2-dev.202403070957",
70
- "@progress/kendo-vue-layout": "4.3.2-dev.202403070957",
71
- "@progress/kendo-vue-treeview": "4.3.2-dev.202403070957"
66
+ "@progress/kendo-vue-data-tools": "4.3.2-dev.202403261314",
67
+ "@progress/kendo-vue-inputs": "4.3.2-dev.202403261314",
68
+ "@progress/kendo-vue-intl": "4.3.2-dev.202403261314",
69
+ "@progress/kendo-vue-labels": "4.3.2-dev.202403261314",
70
+ "@progress/kendo-vue-layout": "4.3.2-dev.202403261314",
71
+ "@progress/kendo-vue-treeview": "4.3.2-dev.202403261314"
72
72
  },
73
73
  "author": "Progress",
74
74
  "license": "SEE LICENSE IN LICENSE.md",