@progress/kendo-vue-dropdowns 3.4.0 → 3.4.2-dev.202207070519

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.
@@ -18,6 +18,7 @@ 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
+ var isV3 = allVue.version[0] === '3';
21
22
  var ref = allVue.ref;
22
23
  import { SearchBar } from './../common/SearchBar';
23
24
  import { ListContainer } from './../common/ListContainer';
@@ -25,7 +26,7 @@ import { List } from './../common/List';
25
26
  import DropDownBase from '../common/DropDownBase';
26
27
  import { ClearButton } from '../common/ClearButton';
27
28
  import { itemIndexStartsWith, getItemValue, areSame, getFocusedItem } from '../common/utils';
28
- import { guid, Keys, classNames, templateRendering, getListeners, getTemplate, kendoThemeMaps } from '@progress/kendo-vue-common';
29
+ import { guid, Keys, classNames, templateRendering, getListeners, getTemplate, kendoThemeMaps, setRef, getRef } from '@progress/kendo-vue-common';
29
30
  var sizeMap = kendoThemeMaps.sizeMap,
30
31
  roundedMap = kendoThemeMaps.roundedMap;
31
32
  var VALIDATION_MESSAGE = 'Please enter a valid value!';
@@ -160,8 +161,8 @@ var AutoCompleteVue2 = {
160
161
  this.inputId = guid();
161
162
  },
162
163
  // @ts-ignore
163
- setup: !gh ? undefined : function () {
164
- var v3 = !!gh;
164
+ setup: !isV3 ? undefined : function () {
165
+ var v3 = !!isV3;
165
166
  var inputRef = ref(null);
166
167
  var kendoAnchorRef = ref(null);
167
168
  return {
@@ -174,8 +175,8 @@ var AutoCompleteVue2 = {
174
175
  this.hasMounted = true; // @ts-ignore
175
176
 
176
177
  this.input = this.v3 ? this.inputRef.input : this.$refs.input.input;
177
- this.base.wrapper = this.v3 ? this.kendoAnchorRef : this.$refs[this.anchor];
178
- this.element = this.v3 ? this.kendoAnchorRef : this.$refs[this.anchor];
178
+ this.base.wrapper = getRef(this, 'kendoAnchor', this.anchor);
179
+ this.element = getRef(this, 'kendoAnchor', this.anchor);
179
180
  this.base.didMount();
180
181
  this.setValidity();
181
182
  },
@@ -491,8 +492,6 @@ var AutoCompleteVue2 = {
491
492
  render: function render(createElement) {
492
493
  var _a;
493
494
 
494
- var _this = this;
495
-
496
495
  var h = gh || createElement;
497
496
  var _b = this.$props,
498
497
  dir = _b.dir,
@@ -722,9 +721,7 @@ var AutoCompleteVue2 = {
722
721
 
723
722
  var autoComplete = h("span", {
724
723
  "class": 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-invalid'] = !isValid, _a['k-focus'] = focused && !disabled, _a['k-loading'] = loading, _a['k-required'] = this.required, _a['k-disabled'] = disabled, _a)),
725
- ref: this.v3 ? function (el) {
726
- _this.kendoAnchorRef = el;
727
- } : this.anchor,
724
+ ref: setRef(this, 'kendoAnchor', this.anchor),
728
725
  style: !label ? style : __assign(__assign({}, style), {
729
726
  width: undefined
730
727
  }),
@@ -18,9 +18,10 @@ 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
+ var isV3 = allVue.version[0] === '3';
21
22
  var ref = allVue.ref;
22
23
  import DropDownBase from '../common/DropDownBase';
23
- import { guid, classNames, Keys, templateRendering, getListeners, getTemplate, kendoThemeMaps } from '@progress/kendo-vue-common';
24
+ import { guid, classNames, Keys, templateRendering, getListeners, getTemplate, kendoThemeMaps, getRef, setRef } from '@progress/kendo-vue-common';
24
25
  import { Button as KButton } from '@progress/kendo-vue-buttons';
25
26
  var sizeMap = kendoThemeMaps.sizeMap,
26
27
  roundedMap = kendoThemeMaps.roundedMap;
@@ -198,8 +199,8 @@ var ComboBoxVue2 = {
198
199
  this.inputId = guid();
199
200
  },
200
201
  // @ts-ignore
201
- setup: !gh ? undefined : function () {
202
- var v3 = !!gh;
202
+ setup: !isV3 ? undefined : function () {
203
+ var v3 = !!isV3;
203
204
  var inputRef = ref(null);
204
205
  var elementRef = ref(null);
205
206
  var kendoAnchorRef = ref(null);
@@ -214,8 +215,8 @@ var ComboBoxVue2 = {
214
215
  this.hasMounted = true; // @ts-ignore
215
216
 
216
217
  this.input = this.v3 ? this.inputRef.input : this.$refs.input.input;
217
- this.base.wrapper = this.v3 ? this.kendoAnchorRef : this.$refs[this.anchor];
218
- this.element = this.v3 ? this.kendoAnchorRef : this.$refs[this.anchor];
218
+ this.base.wrapper = getRef(this, 'kendoAnchor', this.anchor);
219
+ this.element = getRef(this, 'kendoAnchor', this.anchor);
219
220
  this.base.didMount();
220
221
  this.setValidity();
221
222
  },
@@ -716,8 +717,6 @@ var ComboBoxVue2 = {
716
717
  render: function render(createElement) {
717
718
  var _a;
718
719
 
719
- var _this = this;
720
-
721
720
  var h = gh || createElement;
722
721
  var _b = this.$props,
723
722
  dir = _b.dir,
@@ -972,9 +971,7 @@ var ComboBoxVue2 = {
972
971
 
973
972
  var combobox = h("span", {
974
973
  "class": classNames('k-combobox k-input', (_a = {}, _a["k-input-" + (sizeMap[size] || size)] = size, _a["k-rounded-" + (roundedMap[rounded] || rounded)] = rounded, _a["k-input-" + fillMode] = fillMode, _a['k-invalid'] = !isValid, _a['k-loading'] = loading, _a['k-required'] = this.required, _a['k-disabled'] = disabled, _a['k-focus'] = focused && !disabled, _a), className),
975
- ref: this.v3 ? function (el) {
976
- _this.kendoAnchorRef = el;
977
- } : this.anchor,
974
+ ref: setRef(this, 'kendoAnchor', this.anchor),
978
975
  style: !label ? style : __assign(__assign({}, style), {
979
976
  width: undefined
980
977
  }),
@@ -18,8 +18,9 @@ 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
+ var isV3 = allVue.version[0] === '3';
21
22
  var ref = allVue.ref;
22
- import { templateRendering, getListeners, classNames, Keys, guid, noop, getTemplate, kendoThemeMaps, getTabIndex } from '@progress/kendo-vue-common';
23
+ import { templateRendering, getListeners, classNames, Keys, guid, noop, getTemplate, kendoThemeMaps, getTabIndex, setRef, getRef } from '@progress/kendo-vue-common';
23
24
  import { Button as KButton } from '@progress/kendo-vue-buttons';
24
25
  var sizeMap = kendoThemeMaps.sizeMap,
25
26
  roundedMap = kendoThemeMaps.roundedMap;
@@ -208,8 +209,8 @@ var DropDownListVue2 = {
208
209
  this.inputId = guid();
209
210
  },
210
211
  // @ts-ignore
211
- setup: !gh ? undefined : function () {
212
- var v3 = !!gh;
212
+ setup: !isV3 ? undefined : function () {
213
+ var v3 = !!isV3;
213
214
  var selectRef = ref(null);
214
215
  var baseWrapperRef = ref(null);
215
216
  var kendoAnchorRef = ref(null);
@@ -222,8 +223,8 @@ var DropDownListVue2 = {
222
223
  },
223
224
  mounted: function mounted() {
224
225
  this.hasMounted = true;
225
- this.select = this.v3 ? this.selectRef : this.$refs.select;
226
- this.base.wrapper = this.v3 ? this.kendoAnchorRef : this.$refs[this.anchor];
226
+ this.select = getRef(this, 'select');
227
+ this.base.wrapper = getRef(this, 'kendoAnchor', this.anchor);
227
228
  this.base.didMount();
228
229
  this.setValidity();
229
230
  },
@@ -715,8 +716,6 @@ var DropDownListVue2 = {
715
716
  render: function render(createElement) {
716
717
  var _a;
717
718
 
718
- var _this = this;
719
-
720
719
  var h = gh || createElement;
721
720
  var _b = this.$props,
722
721
  style = _b.style,
@@ -770,24 +769,19 @@ var DropDownListVue2 = {
770
769
  });
771
770
 
772
771
  var dummySelect = function dummySelect(cvalue) {
773
- var _this = this;
774
772
  /* Dummy component to support forms */
775
-
776
-
777
773
  return h("select", {
778
774
  name: this.$props.name,
779
775
  attrs: this.v3 ? undefined : {
780
776
  name: this.$props.name,
781
777
  id: id,
782
- tabIndex: -1,
778
+ tabindex: -1,
783
779
  "aria-hidden": true,
784
780
  title: this.$props.label
785
781
  },
786
782
  id: id,
787
- ref: this.v3 ? function (el) {
788
- _this.selectRef = el;
789
- } : 'select',
790
- tabIndex: -1,
783
+ ref: setRef(this, 'select'),
784
+ tabindex: -1,
791
785
  "aria-hidden": true,
792
786
  title: this.$props.label,
793
787
  style: {
@@ -993,9 +987,7 @@ var DropDownListVue2 = {
993
987
  }
994
988
 
995
989
  var dropdownlist = h("span", {
996
- ref: this.v3 ? function (el) {
997
- _this.kendoAnchorRef = el;
998
- } : this.anchor,
990
+ ref: setRef(this, 'kendoAnchor', this.anchor),
999
991
  "class": classNames('k-dropdownlist k-picker', className, (_a = {}, _a["k-picker-" + (sizeMap[size] || size)] = size, _a["k-rounded-" + (roundedMap[rounded] || rounded)] = rounded, _a["k-picker-" + fillMode] = fillMode, _a['k-focus'] = focused, _a['k-disabled'] = disabled, _a['k-invalid'] = !isValid, _a['k-loading'] = loading, _a['k-required'] = this.required, _a)),
1000
992
  style: !label ? style : __assign(__assign({}, style), {
1001
993
  width: undefined
@@ -1003,8 +995,8 @@ var DropDownListVue2 = {
1003
995
  dir: dir,
1004
996
  attrs: this.v3 ? undefined : {
1005
997
  dir: dir,
1006
- tabIndex: getTabIndex(tabIndex, disabled),
1007
- accessKey: this.$props.accessKey,
998
+ tabindex: getTabIndex(tabIndex, disabled),
999
+ accesskey: this.$props.accessKey,
1008
1000
  role: 'listbox',
1009
1001
  "aria-disabled": disabled || undefined,
1010
1002
  "aria-haspopup": true,
@@ -1028,8 +1020,8 @@ var DropDownListVue2 = {
1028
1020
  },
1029
1021
  onFocusin: this.handleFocus,
1030
1022
  onFocusout: this.handleBlur,
1031
- tabIndex: getTabIndex(tabIndex, disabled),
1032
- accessKey: this.$props.accessKey,
1023
+ tabindex: getTabIndex(tabIndex, disabled),
1024
+ accesskey: this.$props.accessKey,
1033
1025
  onKeydown: this.handleKeyDown,
1034
1026
  onKeypress: this.handleKeyPress,
1035
1027
  role: 'listbox',
@@ -32,8 +32,9 @@ var __spreadArrays = this && this.__spreadArrays || function () {
32
32
  import * as Vue from 'vue';
33
33
  var allVue = Vue;
34
34
  var gh = allVue.h;
35
+ var isV3 = allVue.version[0] === '3';
35
36
  var ref = allVue.ref;
36
- import { classNames, Keys, guid, templateRendering, getListeners, getTemplate, kendoThemeMaps } from '@progress/kendo-vue-common';
37
+ import { classNames, Keys, guid, templateRendering, getListeners, getTemplate, kendoThemeMaps, setRef, getRef } from '@progress/kendo-vue-common';
37
38
  var sizeMap = kendoThemeMaps.sizeMap,
38
39
  roundedMap = kendoThemeMaps.roundedMap;
39
40
  import { ListContainer } from '../common/ListContainer';
@@ -197,8 +198,8 @@ var MultiSelectVue2 = {
197
198
  }
198
199
  },
199
200
  // @ts-ignore
200
- setup: !gh ? undefined : function () {
201
- var v3 = !!gh;
201
+ setup: !isV3 ? undefined : function () {
202
+ var v3 = !!isV3;
202
203
  var inputRef = ref(null);
203
204
  var kendoAnchorRef = ref(null);
204
205
  return {
@@ -323,8 +324,8 @@ var MultiSelectVue2 = {
323
324
  this.hasMounted = true; // @ts-ignore
324
325
 
325
326
  this.input = this.v3 ? this.inputRef.input : this.$refs.input.input;
326
- this.base.wrapper = this.v3 ? this.kendoAnchorRef : this.$refs[this.anchor];
327
- this.element = this.v3 ? this.kendoAnchorRef : this.$refs[this.anchor];
327
+ this.base.wrapper = getRef(this, 'kendoAnchor', this.anchor);
328
+ this.element = getRef(this, 'kendoAnchor', this.anchor);
328
329
  this.base.didMount();
329
330
  this.searchBarRef();
330
331
  this.setValidity();
@@ -890,8 +891,6 @@ var MultiSelectVue2 = {
890
891
  render: function render(createElement) {
891
892
  var _a;
892
893
 
893
- var _this = this;
894
-
895
894
  var h = gh || createElement;
896
895
  var _b = this.$props,
897
896
  style = _b.style,
@@ -1185,9 +1184,7 @@ var MultiSelectVue2 = {
1185
1184
  };
1186
1185
 
1187
1186
  var component = h("span", {
1188
- ref: this.v3 ? function (el) {
1189
- _this.kendoAnchorRef = el;
1190
- } : this.anchor,
1187
+ ref: setRef(this, 'kendoAnchor', this.anchor),
1191
1188
  "class": classNames('k-multiselect', 'k-input', (_a = {}, _a["k-input-" + (sizeMap[size] || size)] = size, _a["k-rounded-" + (roundedMap[rounded] || rounded)] = rounded, _a["k-input-" + fillMode] = fillMode, _a['k-focus'] = focused && !disabled, _a['k-disabled'] = disabled, _a['k-invalid'] = !isValid, _a['k-loading'] = loading, _a['k-required'] = this.required, _a)),
1192
1189
  style: !label ? style : __assign(__assign({}, style), {
1193
1190
  width: undefined
@@ -19,6 +19,7 @@ import { getTemplate, kendoThemeMaps } from '@progress/kendo-vue-common';
19
19
  import * as Vue from 'vue';
20
20
  var allVue = Vue;
21
21
  var gh = allVue.h;
22
+ var isV3 = allVue.version[0] === '3';
22
23
  var ref = allVue.ref;
23
24
 
24
25
  var preventDefault = function preventDefault(event) {
@@ -88,8 +89,8 @@ var TagListVue2 = {
88
89
  }
89
90
  },
90
91
  // @ts-ignore
91
- setup: !gh ? undefined : function () {
92
- var v3 = !!gh;
92
+ setup: !isV3 ? undefined : function () {
93
+ var v3 = !!isV3;
93
94
  return {
94
95
  v3: v3
95
96
  };
@@ -2,6 +2,7 @@
2
2
  import * as Vue from 'vue';
3
3
  var allVue = Vue;
4
4
  var gh = allVue.h;
5
+ var isV3 = allVue.version[0] === '3';
5
6
  var inject = allVue.inject;
6
7
  import { provideLocalizationService } from '@progress/kendo-vue-intl';
7
8
  import { messages, clear } from '../messages';
@@ -17,8 +18,8 @@ var ClearButtonVue2 = {
17
18
  }
18
19
  },
19
20
  // @ts-ignore
20
- setup: !gh ? undefined : function () {
21
- var v3 = !!gh;
21
+ setup: !isV3 ? undefined : function () {
22
+ var v3 = !!isV3;
22
23
  var kendoLocalizationService = inject('kendoLocalizationService', {});
23
24
  return {
24
25
  v3: v3,
@@ -42,7 +43,7 @@ var ClearButtonVue2 = {
42
43
  role: "button",
43
44
  attrs: this.v3 ? undefined : {
44
45
  role: "button",
45
- tabIndex: -1,
46
+ tabindex: -1,
46
47
  title: title
47
48
  },
48
49
  onClick: this.onClickHandler,
@@ -51,7 +52,7 @@ var ClearButtonVue2 = {
51
52
  "mousedown": this.onMouseDown
52
53
  },
53
54
  onMousedown: this.onMouseDown,
54
- tabIndex: -1,
55
+ tabindex: -1,
55
56
  title: title,
56
57
  key: "clearbutton"
57
58
  }, [h("span", {
@@ -2,11 +2,12 @@
2
2
  import * as Vue from 'vue';
3
3
  var allVue = Vue;
4
4
  var gh = allVue.h;
5
+ var isV3 = allVue.version[0] === '3';
5
6
  var ref = allVue.ref;
6
7
  var inject = allVue.inject;
7
8
  import { ListItem } from './ListItem';
8
9
  import { areSame } from './utils';
9
- import { getTemplate, getDefaultSlots } from '@progress/kendo-vue-common';
10
+ import { getTemplate, getDefaultSlots, setRef, getRef } from '@progress/kendo-vue-common';
10
11
  import { provideLocalizationService } from '@progress/kendo-vue-intl';
11
12
  import { messages, nodata } from '../messages';
12
13
  /**
@@ -47,8 +48,8 @@ var ListVue2 = {
47
48
  }
48
49
  },
49
50
  // @ts-ignore
50
- setup: !gh ? undefined : function () {
51
- var v3 = !!gh;
51
+ setup: !isV3 ? undefined : function () {
52
+ var v3 = !!isV3;
52
53
  var listRef = ref(null);
53
54
  var kendoLocalizationService = inject('kendoLocalizationService', {});
54
55
  return {
@@ -58,7 +59,7 @@ var ListVue2 = {
58
59
  };
59
60
  },
60
61
  mounted: function mounted() {
61
- this.list = this.v3 ? this.listRef : this.$refs.list;
62
+ this.list = getRef(this, 'list');
62
63
  },
63
64
  methods: {
64
65
  handleClick: function handleClick(index, e) {
@@ -70,8 +71,6 @@ var ListVue2 = {
70
71
  },
71
72
  // @ts-ignore
72
73
  render: function render(createElement) {
73
- var _this = this;
74
-
75
74
  var h = gh || createElement;
76
75
  var defaultSlot = getDefaultSlots(this);
77
76
  var localizationService = provideLocalizationService(this);
@@ -162,9 +161,7 @@ var ListVue2 = {
162
161
  role: "listbox",
163
162
  "aria-hidden": !show ? true : undefined,
164
163
  "class": 'k-list-ul',
165
- ref: this.v3 ? function (el) {
166
- _this.listRef = el;
167
- } : 'list',
164
+ ref: setRef(this, 'list'),
168
165
  style: listStyle
169
166
  }, [items]), defaultSlot]) : renderNoValueElement.call(this);
170
167
  }
@@ -2,6 +2,7 @@
2
2
  import * as Vue from 'vue';
3
3
  var allVue = Vue;
4
4
  var gh = allVue.h;
5
+ var isV3 = allVue.version[0] === '3';
5
6
  import { Popup } from '@progress/kendo-vue-popup';
6
7
  import { getDefaultSlots } from '@progress/kendo-vue-common';
7
8
  /**
@@ -35,8 +36,8 @@ var ListContainerVue2 = {
35
36
  this.kendoAnchorRef = undefined;
36
37
  },
37
38
  // @ts-ignore
38
- setup: !gh ? undefined : function () {
39
- var v3 = !!gh;
39
+ setup: !isV3 ? undefined : function () {
40
+ var v3 = !!isV3;
40
41
  return {
41
42
  v3: v3
42
43
  };
@@ -2,6 +2,7 @@
2
2
  import * as Vue from 'vue';
3
3
  var allVue = Vue;
4
4
  var gh = allVue.h;
5
+ var isV3 = allVue.version[0] === '3';
5
6
  import { classNames } from '@progress/kendo-vue-common';
6
7
  import { getItemValue } from './utils';
7
8
  /**
@@ -16,8 +17,8 @@ var ListDefaultItemVue2 = {
16
17
  selected: Boolean
17
18
  },
18
19
  // @ts-ignore
19
- setup: !gh ? undefined : function () {
20
- var v3 = !!gh;
20
+ setup: !isV3 ? undefined : function () {
21
+ var v3 = !!isV3;
21
22
  return {
22
23
  v3: v3
23
24
  };
@@ -2,8 +2,9 @@
2
2
  import * as Vue from 'vue';
3
3
  var allVue = Vue;
4
4
  var gh = allVue.h;
5
+ var isV3 = allVue.version[0] === '3';
5
6
  var ref = allVue.ref;
6
- import { kendoThemeMaps } from '@progress/kendo-vue-common';
7
+ import { getRef, kendoThemeMaps, setRef } from '@progress/kendo-vue-common';
7
8
  var sizeMap = kendoThemeMaps.sizeMap,
8
9
  roundedMap = kendoThemeMaps.roundedMap;
9
10
  /**
@@ -55,8 +56,8 @@ var ListFilterVue2 = {
55
56
  }
56
57
  },
57
58
  // @ts-ignore
58
- setup: !gh ? undefined : function () {
59
- var v3 = !!gh;
59
+ setup: !isV3 ? undefined : function () {
60
+ var v3 = !!isV3;
60
61
  var inputRef = ref(null);
61
62
  return {
62
63
  v3: v3,
@@ -72,12 +73,10 @@ var ListFilterVue2 = {
72
73
  }
73
74
  },
74
75
  mounted: function mounted() {
75
- this.input = this.v3 ? this.inputRef : this.$refs.input;
76
+ this.input = getRef(this, 'input');
76
77
  },
77
78
  // @ts-ignore
78
79
  render: function render(createElement) {
79
- var _this = this;
80
-
81
80
  var h = gh || createElement;
82
81
  return h("span", {
83
82
  "class": "k-list-filter"
@@ -86,9 +85,7 @@ var ListFilterVue2 = {
86
85
  }, [h("span", {
87
86
  "class": "k-input-icon k-icon k-i-search"
88
87
  }), h("input", {
89
- ref: this.v3 ? function (el) {
90
- _this.inputRef = el;
91
- } : 'input',
88
+ ref: setRef(this, 'input'),
92
89
  type: "text",
93
90
  attrs: this.v3 ? undefined : {
94
91
  type: "text"
@@ -18,6 +18,7 @@ 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
+ var isV3 = allVue.version[0] === '3';
21
22
  import { classNames, getTemplate } from '@progress/kendo-vue-common';
22
23
  import { getItemValue } from './utils';
23
24
  /**
@@ -36,8 +37,8 @@ var ListItemVue2 = {
36
37
  render: Object
37
38
  },
38
39
  // @ts-ignore
39
- setup: !gh ? undefined : function () {
40
- var v3 = !!gh;
40
+ setup: !isV3 ? undefined : function () {
41
+ var v3 = !!isV3;
41
42
  return {
42
43
  v3: v3
43
44
  };
@@ -2,8 +2,9 @@
2
2
  import * as Vue from 'vue';
3
3
  var allVue = Vue;
4
4
  var gh = allVue.h;
5
+ var isV3 = allVue.version[0] === '3';
5
6
  var ref = allVue.ref;
6
- import { canUseDOM } from '@progress/kendo-vue-common';
7
+ import { canUseDOM, getRef, setRef } from '@progress/kendo-vue-common';
7
8
  /**
8
9
  * @hidden
9
10
  */
@@ -76,8 +77,8 @@ var SearchBarVue2 = {
76
77
  }
77
78
  },
78
79
  // @ts-ignore
79
- setup: !gh ? undefined : function () {
80
- var v3 = !!gh;
80
+ setup: !isV3 ? undefined : function () {
81
+ var v3 = !!isV3;
81
82
  var inputRef = ref(null);
82
83
  return {
83
84
  v3: v3,
@@ -85,7 +86,7 @@ var SearchBarVue2 = {
85
86
  };
86
87
  },
87
88
  mounted: function mounted() {
88
- this.input = this.v3 ? this.inputRef : this.$refs.input;
89
+ this.input = getRef(this, 'input');
89
90
  },
90
91
  methods: {
91
92
  onChange: function onChange(e) {
@@ -106,24 +107,22 @@ var SearchBarVue2 = {
106
107
  },
107
108
  // @ts-ignore
108
109
  render: function render(createElement) {
109
- var _this = this;
110
-
111
110
  var h = gh || createElement;
112
111
  return h("input", {
113
- autoComplete: "off",
112
+ autocomplete: "off",
114
113
  attrs: this.v3 ? undefined : {
115
- autoComplete: "off",
114
+ autocomplete: "off",
116
115
  id: this.$props.id,
117
116
  type: "text",
118
117
  placeholder: this.$props.placeholder,
119
- tabIndex: this.$props.tabIndex,
120
- accessKey: this.$props.accessKey,
118
+ tabindex: this.$props.tabIndex,
119
+ accesskey: this.$props.accessKey,
121
120
  role: "listbox",
122
121
  name: this.$props.name,
123
122
  size: this.$props.size ? this.$props.size : 20,
124
123
  "aria-disabled": this.$props.disabled || undefined,
125
124
  disabled: this.$props.disabled || undefined,
126
- readOnly: this.$props.readOnly || undefined,
125
+ readonly: this.$props.readOnly || undefined,
127
126
  "aria-haspopup": "listbox",
128
127
  "aria-expanded": this.$props.expanded || false,
129
128
  "aria-owns": this.$props.owns,
@@ -136,8 +135,8 @@ var SearchBarVue2 = {
136
135
  key: "searchbar",
137
136
  placeholder: this.$props.placeholder,
138
137
  "class": "k-input-inner",
139
- tabIndex: this.$props.tabIndex,
140
- accessKey: this.$props.accessKey,
138
+ tabindex: this.$props.tabIndex,
139
+ accesskey: this.$props.accessKey,
141
140
  role: "listbox",
142
141
  name: this.$props.name,
143
142
  value: this.v3 ? this.$props.value : null,
@@ -152,15 +151,13 @@ var SearchBarVue2 = {
152
151
  "focusin": this.onFocus,
153
152
  "blur": this.onBlur
154
153
  },
155
- ref: this.v3 ? function (el) {
156
- _this.inputRef = el;
157
- } : 'input',
154
+ ref: setRef(this, 'input'),
158
155
  onKeydown: this.onKeyDown,
159
156
  onFocusin: this.onFocus,
160
157
  onBlur: this.onBlur,
161
158
  "aria-disabled": this.$props.disabled || undefined,
162
159
  disabled: this.$props.disabled || undefined,
163
- readOnly: this.$props.readOnly || undefined,
160
+ readonly: this.$props.readOnly || undefined,
164
161
  "aria-haspopup": "listbox",
165
162
  "aria-expanded": this.$props.expanded || false,
166
163
  "aria-owns": this.$props.owns,
@@ -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: 1655871640,
8
+ publishDate: 1657170599,
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
  };
@@ -25,6 +25,7 @@ var Vue = require("vue");
25
25
 
26
26
  var allVue = Vue;
27
27
  var gh = allVue.h;
28
+ var isV3 = allVue.version[0] === '3';
28
29
  var ref = allVue.ref;
29
30
 
30
31
  var SearchBar_1 = require("./../common/SearchBar");
@@ -175,8 +176,8 @@ var AutoCompleteVue2 = {
175
176
  this.inputId = kendo_vue_common_1.guid();
176
177
  },
177
178
  // @ts-ignore
178
- setup: !gh ? undefined : function () {
179
- var v3 = !!gh;
179
+ setup: !isV3 ? undefined : function () {
180
+ var v3 = !!isV3;
180
181
  var inputRef = ref(null);
181
182
  var kendoAnchorRef = ref(null);
182
183
  return {
@@ -189,8 +190,8 @@ var AutoCompleteVue2 = {
189
190
  this.hasMounted = true; // @ts-ignore
190
191
 
191
192
  this.input = this.v3 ? this.inputRef.input : this.$refs.input.input;
192
- this.base.wrapper = this.v3 ? this.kendoAnchorRef : this.$refs[this.anchor];
193
- this.element = this.v3 ? this.kendoAnchorRef : this.$refs[this.anchor];
193
+ this.base.wrapper = kendo_vue_common_1.getRef(this, 'kendoAnchor', this.anchor);
194
+ this.element = kendo_vue_common_1.getRef(this, 'kendoAnchor', this.anchor);
194
195
  this.base.didMount();
195
196
  this.setValidity();
196
197
  },
@@ -506,8 +507,6 @@ var AutoCompleteVue2 = {
506
507
  render: function render(createElement) {
507
508
  var _a;
508
509
 
509
- var _this = this;
510
-
511
510
  var h = gh || createElement;
512
511
  var _b = this.$props,
513
512
  dir = _b.dir,
@@ -737,9 +736,7 @@ var AutoCompleteVue2 = {
737
736
 
738
737
  var autoComplete = h("span", {
739
738
  "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-invalid'] = !isValid, _a['k-focus'] = focused && !disabled, _a['k-loading'] = loading, _a['k-required'] = this.required, _a['k-disabled'] = disabled, _a)),
740
- ref: this.v3 ? function (el) {
741
- _this.kendoAnchorRef = el;
742
- } : this.anchor,
739
+ ref: kendo_vue_common_1.setRef(this, 'kendoAnchor', this.anchor),
743
740
  style: !label ? style : __assign(__assign({}, style), {
744
741
  width: undefined
745
742
  }),