@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.
@@ -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 DropDownBase_1 = require("../common/DropDownBase");
@@ -215,8 +216,8 @@ var ComboBoxVue2 = {
215
216
  this.inputId = kendo_vue_common_1.guid();
216
217
  },
217
218
  // @ts-ignore
218
- setup: !gh ? undefined : function () {
219
- var v3 = !!gh;
219
+ setup: !isV3 ? undefined : function () {
220
+ var v3 = !!isV3;
220
221
  var inputRef = ref(null);
221
222
  var elementRef = ref(null);
222
223
  var kendoAnchorRef = ref(null);
@@ -231,8 +232,8 @@ var ComboBoxVue2 = {
231
232
  this.hasMounted = true; // @ts-ignore
232
233
 
233
234
  this.input = this.v3 ? this.inputRef.input : this.$refs.input.input;
234
- this.base.wrapper = this.v3 ? this.kendoAnchorRef : this.$refs[this.anchor];
235
- this.element = this.v3 ? this.kendoAnchorRef : this.$refs[this.anchor];
235
+ this.base.wrapper = kendo_vue_common_1.getRef(this, 'kendoAnchor', this.anchor);
236
+ this.element = kendo_vue_common_1.getRef(this, 'kendoAnchor', this.anchor);
236
237
  this.base.didMount();
237
238
  this.setValidity();
238
239
  },
@@ -733,8 +734,6 @@ var ComboBoxVue2 = {
733
734
  render: function render(createElement) {
734
735
  var _a;
735
736
 
736
- var _this = this;
737
-
738
737
  var h = gh || createElement;
739
738
  var _b = this.$props,
740
739
  dir = _b.dir,
@@ -989,9 +988,7 @@ var ComboBoxVue2 = {
989
988
 
990
989
  var combobox = h("span", {
991
990
  "class": kendo_vue_common_1.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),
992
- ref: this.v3 ? function (el) {
993
- _this.kendoAnchorRef = el;
994
- } : this.anchor,
991
+ ref: kendo_vue_common_1.setRef(this, 'kendoAnchor', this.anchor),
995
992
  style: !label ? style : __assign(__assign({}, style), {
996
993
  width: undefined
997
994
  }),
@@ -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 kendo_vue_common_1 = require("@progress/kendo-vue-common");
@@ -225,8 +226,8 @@ var DropDownListVue2 = {
225
226
  this.inputId = kendo_vue_common_1.guid();
226
227
  },
227
228
  // @ts-ignore
228
- setup: !gh ? undefined : function () {
229
- var v3 = !!gh;
229
+ setup: !isV3 ? undefined : function () {
230
+ var v3 = !!isV3;
230
231
  var selectRef = ref(null);
231
232
  var baseWrapperRef = ref(null);
232
233
  var kendoAnchorRef = ref(null);
@@ -239,8 +240,8 @@ var DropDownListVue2 = {
239
240
  },
240
241
  mounted: function mounted() {
241
242
  this.hasMounted = true;
242
- this.select = this.v3 ? this.selectRef : this.$refs.select;
243
- this.base.wrapper = this.v3 ? this.kendoAnchorRef : this.$refs[this.anchor];
243
+ this.select = kendo_vue_common_1.getRef(this, 'select');
244
+ this.base.wrapper = kendo_vue_common_1.getRef(this, 'kendoAnchor', this.anchor);
244
245
  this.base.didMount();
245
246
  this.setValidity();
246
247
  },
@@ -732,8 +733,6 @@ var DropDownListVue2 = {
732
733
  render: function render(createElement) {
733
734
  var _a;
734
735
 
735
- var _this = this;
736
-
737
736
  var h = gh || createElement;
738
737
  var _b = this.$props,
739
738
  style = _b.style,
@@ -787,24 +786,19 @@ var DropDownListVue2 = {
787
786
  });
788
787
 
789
788
  var dummySelect = function dummySelect(cvalue) {
790
- var _this = this;
791
789
  /* Dummy component to support forms */
792
-
793
-
794
790
  return h("select", {
795
791
  name: this.$props.name,
796
792
  attrs: this.v3 ? undefined : {
797
793
  name: this.$props.name,
798
794
  id: id,
799
- tabIndex: -1,
795
+ tabindex: -1,
800
796
  "aria-hidden": true,
801
797
  title: this.$props.label
802
798
  },
803
799
  id: id,
804
- ref: this.v3 ? function (el) {
805
- _this.selectRef = el;
806
- } : 'select',
807
- tabIndex: -1,
800
+ ref: kendo_vue_common_1.setRef(this, 'select'),
801
+ tabindex: -1,
808
802
  "aria-hidden": true,
809
803
  title: this.$props.label,
810
804
  style: {
@@ -1010,9 +1004,7 @@ var DropDownListVue2 = {
1010
1004
  }
1011
1005
 
1012
1006
  var dropdownlist = h("span", {
1013
- ref: this.v3 ? function (el) {
1014
- _this.kendoAnchorRef = el;
1015
- } : this.anchor,
1007
+ ref: kendo_vue_common_1.setRef(this, 'kendoAnchor', this.anchor),
1016
1008
  "class": kendo_vue_common_1.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)),
1017
1009
  style: !label ? style : __assign(__assign({}, style), {
1018
1010
  width: undefined
@@ -1020,8 +1012,8 @@ var DropDownListVue2 = {
1020
1012
  dir: dir,
1021
1013
  attrs: this.v3 ? undefined : {
1022
1014
  dir: dir,
1023
- tabIndex: kendo_vue_common_1.getTabIndex(tabIndex, disabled),
1024
- accessKey: this.$props.accessKey,
1015
+ tabindex: kendo_vue_common_1.getTabIndex(tabIndex, disabled),
1016
+ accesskey: this.$props.accessKey,
1025
1017
  role: 'listbox',
1026
1018
  "aria-disabled": disabled || undefined,
1027
1019
  "aria-haspopup": true,
@@ -1045,8 +1037,8 @@ var DropDownListVue2 = {
1045
1037
  },
1046
1038
  onFocusin: this.handleFocus,
1047
1039
  onFocusout: this.handleBlur,
1048
- tabIndex: kendo_vue_common_1.getTabIndex(tabIndex, disabled),
1049
- accessKey: this.$props.accessKey,
1040
+ tabindex: kendo_vue_common_1.getTabIndex(tabIndex, disabled),
1041
+ accesskey: this.$props.accessKey,
1050
1042
  onKeydown: this.handleKeyDown,
1051
1043
  onKeypress: this.handleKeyPress,
1052
1044
  role: 'listbox',
@@ -39,6 +39,7 @@ var Vue = require("vue");
39
39
 
40
40
  var allVue = Vue;
41
41
  var gh = allVue.h;
42
+ var isV3 = allVue.version[0] === '3';
42
43
  var ref = allVue.ref;
43
44
 
44
45
  var kendo_vue_common_1 = require("@progress/kendo-vue-common");
@@ -215,8 +216,8 @@ var MultiSelectVue2 = {
215
216
  }
216
217
  },
217
218
  // @ts-ignore
218
- setup: !gh ? undefined : function () {
219
- var v3 = !!gh;
219
+ setup: !isV3 ? undefined : function () {
220
+ var v3 = !!isV3;
220
221
  var inputRef = ref(null);
221
222
  var kendoAnchorRef = ref(null);
222
223
  return {
@@ -341,8 +342,8 @@ var MultiSelectVue2 = {
341
342
  this.hasMounted = true; // @ts-ignore
342
343
 
343
344
  this.input = this.v3 ? this.inputRef.input : this.$refs.input.input;
344
- this.base.wrapper = this.v3 ? this.kendoAnchorRef : this.$refs[this.anchor];
345
- this.element = this.v3 ? this.kendoAnchorRef : this.$refs[this.anchor];
345
+ this.base.wrapper = kendo_vue_common_1.getRef(this, 'kendoAnchor', this.anchor);
346
+ this.element = kendo_vue_common_1.getRef(this, 'kendoAnchor', this.anchor);
346
347
  this.base.didMount();
347
348
  this.searchBarRef();
348
349
  this.setValidity();
@@ -908,8 +909,6 @@ var MultiSelectVue2 = {
908
909
  render: function render(createElement) {
909
910
  var _a;
910
911
 
911
- var _this = this;
912
-
913
912
  var h = gh || createElement;
914
913
  var _b = this.$props,
915
914
  style = _b.style,
@@ -1203,9 +1202,7 @@ var MultiSelectVue2 = {
1203
1202
  };
1204
1203
 
1205
1204
  var component = h("span", {
1206
- ref: this.v3 ? function (el) {
1207
- _this.kendoAnchorRef = el;
1208
- } : this.anchor,
1205
+ ref: kendo_vue_common_1.setRef(this, 'kendoAnchor', this.anchor),
1209
1206
  "class": kendo_vue_common_1.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)),
1210
1207
  style: !label ? style : __assign(__assign({}, style), {
1211
1208
  width: undefined
@@ -27,6 +27,7 @@ var Vue = require("vue");
27
27
 
28
28
  var allVue = Vue;
29
29
  var gh = allVue.h;
30
+ var isV3 = allVue.version[0] === '3';
30
31
  var ref = allVue.ref;
31
32
 
32
33
  var preventDefault = function preventDefault(event) {
@@ -96,8 +97,8 @@ var TagListVue2 = {
96
97
  }
97
98
  },
98
99
  // @ts-ignore
99
- setup: !gh ? undefined : function () {
100
- var v3 = !!gh;
100
+ setup: !isV3 ? undefined : function () {
101
+ var v3 = !!isV3;
101
102
  return {
102
103
  v3: v3
103
104
  };
@@ -9,6 +9,7 @@ var Vue = require("vue");
9
9
 
10
10
  var allVue = Vue;
11
11
  var gh = allVue.h;
12
+ var isV3 = allVue.version[0] === '3';
12
13
  var inject = allVue.inject;
13
14
 
14
15
  var kendo_vue_intl_1 = require("@progress/kendo-vue-intl");
@@ -27,8 +28,8 @@ var ClearButtonVue2 = {
27
28
  }
28
29
  },
29
30
  // @ts-ignore
30
- setup: !gh ? undefined : function () {
31
- var v3 = !!gh;
31
+ setup: !isV3 ? undefined : function () {
32
+ var v3 = !!isV3;
32
33
  var kendoLocalizationService = inject('kendoLocalizationService', {});
33
34
  return {
34
35
  v3: v3,
@@ -52,7 +53,7 @@ var ClearButtonVue2 = {
52
53
  role: "button",
53
54
  attrs: this.v3 ? undefined : {
54
55
  role: "button",
55
- tabIndex: -1,
56
+ tabindex: -1,
56
57
  title: title
57
58
  },
58
59
  onClick: this.onClickHandler,
@@ -61,7 +62,7 @@ var ClearButtonVue2 = {
61
62
  "mousedown": this.onMouseDown
62
63
  },
63
64
  onMousedown: this.onMouseDown,
64
- tabIndex: -1,
65
+ tabindex: -1,
65
66
  title: title,
66
67
  key: "clearbutton"
67
68
  }, [h("span", {
@@ -9,6 +9,7 @@ var Vue = require("vue");
9
9
 
10
10
  var allVue = Vue;
11
11
  var gh = allVue.h;
12
+ var isV3 = allVue.version[0] === '3';
12
13
  var ref = allVue.ref;
13
14
  var inject = allVue.inject;
14
15
 
@@ -60,8 +61,8 @@ var ListVue2 = {
60
61
  }
61
62
  },
62
63
  // @ts-ignore
63
- setup: !gh ? undefined : function () {
64
- var v3 = !!gh;
64
+ setup: !isV3 ? undefined : function () {
65
+ var v3 = !!isV3;
65
66
  var listRef = ref(null);
66
67
  var kendoLocalizationService = inject('kendoLocalizationService', {});
67
68
  return {
@@ -71,7 +72,7 @@ var ListVue2 = {
71
72
  };
72
73
  },
73
74
  mounted: function mounted() {
74
- this.list = this.v3 ? this.listRef : this.$refs.list;
75
+ this.list = kendo_vue_common_1.getRef(this, 'list');
75
76
  },
76
77
  methods: {
77
78
  handleClick: function handleClick(index, e) {
@@ -83,8 +84,6 @@ var ListVue2 = {
83
84
  },
84
85
  // @ts-ignore
85
86
  render: function render(createElement) {
86
- var _this = this;
87
-
88
87
  var h = gh || createElement;
89
88
  var defaultSlot = kendo_vue_common_1.getDefaultSlots(this);
90
89
  var localizationService = kendo_vue_intl_1.provideLocalizationService(this);
@@ -175,9 +174,7 @@ var ListVue2 = {
175
174
  role: "listbox",
176
175
  "aria-hidden": !show ? true : undefined,
177
176
  "class": 'k-list-ul',
178
- ref: this.v3 ? function (el) {
179
- _this.listRef = el;
180
- } : 'list',
177
+ ref: kendo_vue_common_1.setRef(this, 'list'),
181
178
  style: listStyle
182
179
  }, [items]), defaultSlot]) : renderNoValueElement.call(this);
183
180
  }
@@ -9,6 +9,7 @@ var Vue = require("vue");
9
9
 
10
10
  var allVue = Vue;
11
11
  var gh = allVue.h;
12
+ var isV3 = allVue.version[0] === '3';
12
13
 
13
14
  var kendo_vue_popup_1 = require("@progress/kendo-vue-popup");
14
15
 
@@ -45,8 +46,8 @@ var ListContainerVue2 = {
45
46
  this.kendoAnchorRef = undefined;
46
47
  },
47
48
  // @ts-ignore
48
- setup: !gh ? undefined : function () {
49
- var v3 = !!gh;
49
+ setup: !isV3 ? undefined : function () {
50
+ var v3 = !!isV3;
50
51
  return {
51
52
  v3: v3
52
53
  };
@@ -9,6 +9,7 @@ var Vue = require("vue");
9
9
 
10
10
  var allVue = Vue;
11
11
  var gh = allVue.h;
12
+ var isV3 = allVue.version[0] === '3';
12
13
 
13
14
  var kendo_vue_common_1 = require("@progress/kendo-vue-common");
14
15
 
@@ -26,8 +27,8 @@ var ListDefaultItemVue2 = {
26
27
  selected: Boolean
27
28
  },
28
29
  // @ts-ignore
29
- setup: !gh ? undefined : function () {
30
- var v3 = !!gh;
30
+ setup: !isV3 ? undefined : function () {
31
+ var v3 = !!isV3;
31
32
  return {
32
33
  v3: v3
33
34
  };
@@ -9,6 +9,7 @@ var Vue = require("vue");
9
9
 
10
10
  var allVue = Vue;
11
11
  var gh = allVue.h;
12
+ var isV3 = allVue.version[0] === '3';
12
13
  var ref = allVue.ref;
13
14
 
14
15
  var kendo_vue_common_1 = require("@progress/kendo-vue-common");
@@ -64,8 +65,8 @@ var ListFilterVue2 = {
64
65
  }
65
66
  },
66
67
  // @ts-ignore
67
- setup: !gh ? undefined : function () {
68
- var v3 = !!gh;
68
+ setup: !isV3 ? undefined : function () {
69
+ var v3 = !!isV3;
69
70
  var inputRef = ref(null);
70
71
  return {
71
72
  v3: v3,
@@ -81,12 +82,10 @@ var ListFilterVue2 = {
81
82
  }
82
83
  },
83
84
  mounted: function mounted() {
84
- this.input = this.v3 ? this.inputRef : this.$refs.input;
85
+ this.input = kendo_vue_common_1.getRef(this, 'input');
85
86
  },
86
87
  // @ts-ignore
87
88
  render: function render(createElement) {
88
- var _this = this;
89
-
90
89
  var h = gh || createElement;
91
90
  return h("span", {
92
91
  "class": "k-list-filter"
@@ -95,9 +94,7 @@ var ListFilterVue2 = {
95
94
  }, [h("span", {
96
95
  "class": "k-input-icon k-icon k-i-search"
97
96
  }), h("input", {
98
- ref: this.v3 ? function (el) {
99
- _this.inputRef = el;
100
- } : 'input',
97
+ ref: kendo_vue_common_1.setRef(this, 'input'),
101
98
  type: "text",
102
99
  attrs: this.v3 ? undefined : {
103
100
  type: "text"
@@ -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
 
29
30
  var kendo_vue_common_1 = require("@progress/kendo-vue-common");
30
31
 
@@ -46,8 +47,8 @@ var ListItemVue2 = {
46
47
  render: Object
47
48
  },
48
49
  // @ts-ignore
49
- setup: !gh ? undefined : function () {
50
- var v3 = !!gh;
50
+ setup: !isV3 ? undefined : function () {
51
+ var v3 = !!isV3;
51
52
  return {
52
53
  v3: v3
53
54
  };
@@ -9,6 +9,7 @@ var Vue = require("vue");
9
9
 
10
10
  var allVue = Vue;
11
11
  var gh = allVue.h;
12
+ var isV3 = allVue.version[0] === '3';
12
13
  var ref = allVue.ref;
13
14
 
14
15
  var kendo_vue_common_1 = require("@progress/kendo-vue-common");
@@ -85,8 +86,8 @@ var SearchBarVue2 = {
85
86
  }
86
87
  },
87
88
  // @ts-ignore
88
- setup: !gh ? undefined : function () {
89
- var v3 = !!gh;
89
+ setup: !isV3 ? undefined : function () {
90
+ var v3 = !!isV3;
90
91
  var inputRef = ref(null);
91
92
  return {
92
93
  v3: v3,
@@ -94,7 +95,7 @@ var SearchBarVue2 = {
94
95
  };
95
96
  },
96
97
  mounted: function mounted() {
97
- this.input = this.v3 ? this.inputRef : this.$refs.input;
98
+ this.input = kendo_vue_common_1.getRef(this, 'input');
98
99
  },
99
100
  methods: {
100
101
  onChange: function onChange(e) {
@@ -115,24 +116,22 @@ var SearchBarVue2 = {
115
116
  },
116
117
  // @ts-ignore
117
118
  render: function render(createElement) {
118
- var _this = this;
119
-
120
119
  var h = gh || createElement;
121
120
  return h("input", {
122
- autoComplete: "off",
121
+ autocomplete: "off",
123
122
  attrs: this.v3 ? undefined : {
124
- autoComplete: "off",
123
+ autocomplete: "off",
125
124
  id: this.$props.id,
126
125
  type: "text",
127
126
  placeholder: this.$props.placeholder,
128
- tabIndex: this.$props.tabIndex,
129
- accessKey: this.$props.accessKey,
127
+ tabindex: this.$props.tabIndex,
128
+ accesskey: this.$props.accessKey,
130
129
  role: "listbox",
131
130
  name: this.$props.name,
132
131
  size: this.$props.size ? this.$props.size : 20,
133
132
  "aria-disabled": this.$props.disabled || undefined,
134
133
  disabled: this.$props.disabled || undefined,
135
- readOnly: this.$props.readOnly || undefined,
134
+ readonly: this.$props.readOnly || undefined,
136
135
  "aria-haspopup": "listbox",
137
136
  "aria-expanded": this.$props.expanded || false,
138
137
  "aria-owns": this.$props.owns,
@@ -145,8 +144,8 @@ var SearchBarVue2 = {
145
144
  key: "searchbar",
146
145
  placeholder: this.$props.placeholder,
147
146
  "class": "k-input-inner",
148
- tabIndex: this.$props.tabIndex,
149
- accessKey: this.$props.accessKey,
147
+ tabindex: this.$props.tabIndex,
148
+ accesskey: this.$props.accessKey,
150
149
  role: "listbox",
151
150
  name: this.$props.name,
152
151
  value: this.v3 ? this.$props.value : null,
@@ -161,15 +160,13 @@ var SearchBarVue2 = {
161
160
  "focusin": this.onFocus,
162
161
  "blur": this.onBlur
163
162
  },
164
- ref: this.v3 ? function (el) {
165
- _this.inputRef = el;
166
- } : 'input',
163
+ ref: kendo_vue_common_1.setRef(this, 'input'),
167
164
  onKeydown: this.onKeyDown,
168
165
  onFocusin: this.onFocus,
169
166
  onBlur: this.onBlur,
170
167
  "aria-disabled": this.$props.disabled || undefined,
171
168
  disabled: this.$props.disabled || undefined,
172
- readOnly: this.$props.readOnly || undefined,
169
+ readonly: this.$props.readOnly || undefined,
173
170
  "aria-haspopup": "listbox",
174
171
  "aria-expanded": this.$props.expanded || false,
175
172
  "aria-owns": this.$props.owns,
@@ -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: 1655871640,
11
+ publishDate: 1657170599,
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": "3.4.0",
4
+ "version": "3.4.2-dev.202207070519",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/telerik/kendo-vue.git"
@@ -43,14 +43,14 @@
43
43
  "vue": "^2.6.12 || ^3.0.2"
44
44
  },
45
45
  "dependencies": {
46
- "@progress/kendo-vue-buttons": "3.4.0",
47
- "@progress/kendo-vue-common": "3.4.0",
48
- "@progress/kendo-vue-popup": "3.4.0"
46
+ "@progress/kendo-vue-buttons": "3.4.2-dev.202207070519",
47
+ "@progress/kendo-vue-common": "3.4.2-dev.202207070519",
48
+ "@progress/kendo-vue-popup": "3.4.2-dev.202207070519"
49
49
  },
50
50
  "devDependencies": {
51
51
  "@progress/kendo-data-query": "^1.5.4",
52
52
  "@progress/kendo-licensing": "^1.1.0",
53
- "@progress/kendo-vue-intl": "3.4.0"
53
+ "@progress/kendo-vue-intl": "3.4.2-dev.202207070519"
54
54
  },
55
55
  "author": "Progress",
56
56
  "license": "SEE LICENSE IN LICENSE.md",