@progress/kendo-vue-inputs 3.4.1 → 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.
Files changed (46) hide show
  1. package/dist/cdn/js/kendo-vue-inputs.js +1 -1
  2. package/dist/es/checkbox/Checkbox.js +9 -12
  3. package/dist/es/colors/ColorContrastLabels.js +3 -2
  4. package/dist/es/colors/ColorContrastSvg.js +3 -2
  5. package/dist/es/colors/ColorGradient.js +5 -4
  6. package/dist/es/colors/ColorInput.js +3 -2
  7. package/dist/es/colors/ColorPalette.js +9 -12
  8. package/dist/es/colors/ColorPicker.js +5 -4
  9. package/dist/es/colors/FlatColorPicker.js +5 -4
  10. package/dist/es/colors/HexInput.js +3 -2
  11. package/dist/es/colors/Picker.js +3 -2
  12. package/dist/es/input/Input.js +3 -2
  13. package/dist/es/input-separator/InputSeparator.js +3 -2
  14. package/dist/es/maskedtextbox/MaskedTextBox.js +21 -24
  15. package/dist/es/numerictextbox/NumericTextBox.js +16 -19
  16. package/dist/es/package-metadata.js +1 -1
  17. package/dist/es/radiobutton/RadioButton.js +8 -11
  18. package/dist/es/radiobutton/RadioGroup.js +3 -2
  19. package/dist/es/range-slider/RangeSlider.js +11 -10
  20. package/dist/es/slider/Slider.js +5 -4
  21. package/dist/es/slider/SliderLabel.js +3 -2
  22. package/dist/es/switch/Switch.js +14 -19
  23. package/dist/es/textarea/TextArea.js +3 -2
  24. package/dist/npm/checkbox/Checkbox.js +8 -11
  25. package/dist/npm/colors/ColorContrastLabels.js +3 -2
  26. package/dist/npm/colors/ColorContrastSvg.js +3 -2
  27. package/dist/npm/colors/ColorGradient.js +5 -4
  28. package/dist/npm/colors/ColorInput.js +3 -2
  29. package/dist/npm/colors/ColorPalette.js +8 -11
  30. package/dist/npm/colors/ColorPicker.js +5 -4
  31. package/dist/npm/colors/FlatColorPicker.js +5 -4
  32. package/dist/npm/colors/HexInput.js +3 -2
  33. package/dist/npm/colors/Picker.js +3 -2
  34. package/dist/npm/input/Input.js +3 -2
  35. package/dist/npm/input-separator/InputSeparator.js +3 -2
  36. package/dist/npm/maskedtextbox/MaskedTextBox.js +20 -23
  37. package/dist/npm/numerictextbox/NumericTextBox.js +15 -18
  38. package/dist/npm/package-metadata.js +1 -1
  39. package/dist/npm/radiobutton/RadioButton.js +7 -10
  40. package/dist/npm/radiobutton/RadioGroup.js +3 -2
  41. package/dist/npm/range-slider/RangeSlider.js +11 -10
  42. package/dist/npm/slider/Slider.js +5 -4
  43. package/dist/npm/slider/SliderLabel.js +3 -2
  44. package/dist/npm/switch/Switch.js +13 -18
  45. package/dist/npm/textarea/TextArea.js +3 -2
  46. package/package.json +11 -11
@@ -2,9 +2,10 @@
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
- import { Keys, classNames, guid, getTabIndex, getDefaultSlots, validatePackage, templateRendering, getTemplate, getListeners, kendoThemeMaps } from '@progress/kendo-vue-common';
8
+ import { Keys, classNames, guid, getTabIndex, getDefaultSlots, validatePackage, templateRendering, getTemplate, getListeners, kendoThemeMaps, setRef, getRef } from '@progress/kendo-vue-common';
8
9
  import { packageMetadata } from '../package-metadata';
9
10
  import { provideLocalizationService } from '@progress/kendo-vue-intl';
10
11
  import { messages, checkboxValidation, checkboxOptionalText } from './../messages';
@@ -145,7 +146,7 @@ var CheckboxVue2 = {
145
146
  }
146
147
  },
147
148
  mounted: function mounted() {
148
- this.input = this.v3 ? this.inputRef : this.$refs.input;
149
+ this.input = getRef(this, 'input');
149
150
 
150
151
  if (!this.currentDir && window && this.$el) {
151
152
  // Note: getComputedStyle forces reflow
@@ -160,14 +161,14 @@ var CheckboxVue2 = {
160
161
  },
161
162
  updated: function updated() {
162
163
  if (!this.input) {
163
- this.input = this.v3 ? this.inputRef : this.$refs.input;
164
+ this.input = getRef(this, 'input');
164
165
  }
165
166
 
166
167
  this.setValidity();
167
168
  },
168
169
  // @ts-ignore
169
- setup: !gh ? undefined : function () {
170
- var v3 = !!gh;
170
+ setup: !isV3 ? undefined : function () {
171
+ var v3 = !!isV3;
171
172
  var inputRef = ref(null);
172
173
  var kendoLocalizationService = inject('kendoLocalizationService', {});
173
174
  return {
@@ -208,8 +209,6 @@ var CheckboxVue2 = {
208
209
  }, _a["k-checkbox-" + kendoThemeMaps.sizeMap[size]] = size, _a["k-rounded-" + kendoThemeMaps.roundedMap[rounded]] = rounded, _a['k-state-indeterminate'] = this.indeterminateProp, _a['k-state-invalid k-invalid'] = !(this.isValid || validityStyles !== undefined || validityStyles === true), _a));
209
210
 
210
211
  var checkboxInput = function checkboxInput() {
211
- var _this = this;
212
-
213
212
  return h("input", {
214
213
  type: 'checkbox',
215
214
  attrs: this.v3 ? undefined : {
@@ -219,7 +218,7 @@ var CheckboxVue2 = {
219
218
  "aria-labelledby": ariaLabelledBy,
220
219
  "aria-describedby": ariaDescribedBy,
221
220
  disabled: disabled,
222
- tabIndex: getTabIndex(tabIndex, disabled),
221
+ tabindex: getTabIndex(tabIndex, disabled),
223
222
  role: 'checkbox',
224
223
  required: required !== undefined ? required : false,
225
224
  "aria-checked": this.computedChecked || this.checkedProp ? true : this.indeterminateProp ? 'mixed' : false,
@@ -228,9 +227,7 @@ var CheckboxVue2 = {
228
227
  "class": inputClasses,
229
228
  name: name,
230
229
  id: id || this.calculatedId,
231
- ref: this.v3 ? function (el) {
232
- _this.inputRef = el;
233
- } : 'input',
230
+ ref: setRef(this, 'input'),
234
231
  "aria-labelledby": ariaLabelledBy,
235
232
  "aria-describedby": ariaDescribedBy,
236
233
  checked: this.v3 ? Boolean(this.checkedProp) : null,
@@ -238,7 +235,7 @@ var CheckboxVue2 = {
238
235
  "checked": Boolean(this.checkedProp)
239
236
  },
240
237
  disabled: disabled,
241
- tabIndex: getTabIndex(tabIndex, disabled),
238
+ tabindex: getTabIndex(tabIndex, disabled),
242
239
  role: 'checkbox',
243
240
  required: required !== undefined ? required : false,
244
241
  "aria-checked": this.computedChecked || this.checkedProp ? true : this.indeterminateProp ? 'mixed' : false,
@@ -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 { provideLocalizationService } from '@progress/kendo-vue-intl';
6
7
  import { messages, colorGradientContrastRatio, colorGradientAALevel, colorGradientAAALevel, colorGradientPass, colorGradientFail } from '../messages';
7
8
  import { getContrastFromTwoRGBAs } from './utils/color-parser';
@@ -21,8 +22,8 @@ var ColorContrastLabelsVue2 = {
21
22
  }
22
23
  },
23
24
  // @ts-ignore
24
- setup: !gh ? undefined : function () {
25
- var v3 = !!gh;
25
+ setup: !isV3 ? undefined : function () {
26
+ var v3 = !!isV3;
26
27
  return {
27
28
  v3: v3
28
29
  };
@@ -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 { bezierCommand, controlPoint, line, svgPath } from './utils/svg-calc';
6
7
  import { getColorFromHSV, getRGBA, getContrastFromTwoRGBAs } from './utils/color-parser';
7
8
  var AA_CONTRAST = 4.5;
@@ -19,8 +20,8 @@ var ColorContrastSvgVue2 = {
19
20
  hsva: Object
20
21
  },
21
22
  // @ts-ignore
22
- setup: !gh ? undefined : function () {
23
- var v3 = !!gh;
23
+ setup: !isV3 ? undefined : function () {
24
+ var v3 = !!isV3;
24
25
  return {
25
26
  v3: v3
26
27
  };
@@ -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 { Draggable, guid, classNames, focusFirstFocusableChild, getTabIndex } from '@progress/kendo-vue-common';
22
23
  import { validatePackage } from '@progress/kendo-vue-common';
23
24
  import { packageMetadata } from '../package-metadata';
@@ -114,8 +115,8 @@ var ColorGradientVue2 = {
114
115
  },
115
116
  // private alphaSlider: any;
116
117
  // @ts-ignore
117
- setup: !gh ? undefined : function () {
118
- var v3 = !!gh;
118
+ setup: !isV3 ? undefined : function () {
119
+ var v3 = !!isV3;
119
120
  return {
120
121
  v3: v3
121
122
  };
@@ -153,13 +154,13 @@ var ColorGradientVue2 = {
153
154
  attrs: this.v3 ? undefined : {
154
155
  id: this.$props.id,
155
156
  "aria-disabled": this.$props.disabled ? 'true' : undefined,
156
- tabIndex: getTabIndex(this.$props.tabIndex, this.$props.disabled),
157
+ tabindex: getTabIndex(this.$props.tabIndex, this.$props.disabled),
157
158
  "aria-labelledby": this.$props.ariaLabelledBy,
158
159
  "aria-describedby": this.$props.ariaDescribedBy
159
160
  },
160
161
  "class": className,
161
162
  "aria-disabled": this.$props.disabled ? 'true' : undefined,
162
- tabIndex: getTabIndex(this.$props.tabIndex, this.$props.disabled),
163
+ tabindex: getTabIndex(this.$props.tabIndex, this.$props.disabled),
163
164
  "aria-labelledby": this.$props.ariaLabelledBy,
164
165
  "aria-describedby": this.$props.ariaDescribedBy,
165
166
  onFocus: this.onFocus,
@@ -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 { NumericTextBox } from '../main';
22
23
  import { HexInput } from './HexInput';
23
24
  import { Button } from '@progress/kendo-vue-buttons';
@@ -47,8 +48,8 @@ var ColorInputVue2 = {
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
  return {
53
54
  v3: v3
54
55
  };
@@ -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
  import { ColorPaletteService } from './utils/color-palette.service';
6
- import { classNames, Keys, guid, getTabIndex, validatePackage } from '@progress/kendo-vue-common';
7
+ import { classNames, Keys, guid, getTabIndex, validatePackage, setRef, getRef } from '@progress/kendo-vue-common';
7
8
  import { packageMetadata } from '../package-metadata';
8
9
  import { PALETTEPRESETS } from './models/palette-presets';
9
10
  import { isPresent } from './utils/misc';
@@ -59,10 +60,10 @@ var ColorPaletteVue2 = {
59
60
  this.guid = guid();
60
61
  },
61
62
  mounted: function mounted() {
62
- this.wrapper = this.v3 ? this.wrapperRef : this.$refs.wrapper;
63
+ this.wrapper = getRef(this, 'wrapper');
63
64
  },
64
65
  updated: function updated() {
65
- this.wrapper = this.v3 ? this.wrapperRef : this.$refs.wrapper;
66
+ this.wrapper = getRef(this, 'wrapper');
66
67
  },
67
68
  computed: {
68
69
  focusedColorCooridanates: function focusedColorCooridanates() {
@@ -83,16 +84,14 @@ var ColorPaletteVue2 = {
83
84
  };
84
85
  },
85
86
  // @ts-ignore
86
- setup: !gh ? undefined : function () {
87
- var v3 = !!gh;
87
+ setup: !isV3 ? undefined : function () {
88
+ var v3 = !!isV3;
88
89
  return {
89
90
  v3: v3
90
91
  };
91
92
  },
92
93
  // @ts-ignore
93
94
  render: function render(createElement) {
94
- var _this = this;
95
-
96
95
  var h = gh || createElement;
97
96
  var paletteInfo = this.getPaletteInfo();
98
97
  var svc = this.paletteService = new ColorPaletteService();
@@ -178,7 +177,7 @@ var ColorPaletteVue2 = {
178
177
  "aria-activedescendant": selectedCellCoords && this.createCellId(selectedCellCoords),
179
178
  "aria-labelledby": this.$props.ariaLabelledBy,
180
179
  "aria-describedby": this.$props.ariaDescribedBy,
181
- tabIndex: getTabIndex(this.$props.tabIndex, this.$props.disabled)
180
+ tabindex: getTabIndex(this.$props.tabIndex, this.$props.disabled)
182
181
  },
183
182
  "class": className,
184
183
  onFocusin: this.onFocus,
@@ -193,10 +192,8 @@ var ColorPaletteVue2 = {
193
192
  "aria-activedescendant": selectedCellCoords && this.createCellId(selectedCellCoords),
194
193
  "aria-labelledby": this.$props.ariaLabelledBy,
195
194
  "aria-describedby": this.$props.ariaDescribedBy,
196
- tabIndex: getTabIndex(this.$props.tabIndex, this.$props.disabled),
197
- ref: this.v3 ? function (el) {
198
- _this.wrapperRef = el;
199
- } : 'wrapper'
195
+ tabindex: getTabIndex(this.$props.tabIndex, this.$props.disabled),
196
+ ref: setRef(this, 'wrapper')
200
197
  }, [h("div", {
201
198
  "class": "k-colorpalette-table-wrap",
202
199
  role: "grid",
@@ -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 { Button } from '@progress/kendo-vue-buttons';
6
7
  import { classNames, Keys, // useDir,
7
8
  getTabIndex, guid, kendoThemeMaps, validatePackage } from '@progress/kendo-vue-common';
@@ -143,8 +144,8 @@ var ColorPickerVue2 = {
143
144
  this.palette = this.v3 ? this.paletteRef : this.$refs.palette;
144
145
  },
145
146
  // @ts-ignore
146
- setup: !gh ? undefined : function () {
147
- var v3 = !!gh;
147
+ setup: !isV3 ? undefined : function () {
148
+ var v3 = !!isV3;
148
149
  return {
149
150
  v3: v3
150
151
  };
@@ -171,14 +172,14 @@ var ColorPickerVue2 = {
171
172
  id: this.$props.id,
172
173
  "aria-labelledby": this.$props.ariaLabelledBy,
173
174
  "aria-describedby": this.$props.ariaDescribedBy,
174
- tabIndex: getTabIndex(tabIndex, disabled),
175
+ tabindex: getTabIndex(tabIndex, disabled),
175
176
  title: this.$props.title
176
177
  },
177
178
  id: this.$props.id,
178
179
  "aria-labelledby": this.$props.ariaLabelledBy,
179
180
  "aria-describedby": this.$props.ariaDescribedBy,
180
181
  ref: this.focusableElementGuid,
181
- tabIndex: getTabIndex(tabIndex, disabled),
182
+ tabindex: getTabIndex(tabIndex, disabled),
182
183
  title: this.$props.title,
183
184
  onKeydown: this.onKeyDownHandler,
184
185
  on: this.v3 ? undefined : {
@@ -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, validatePackage, getTabIndex } from '@progress/kendo-vue-common';
6
7
  import { ButtonGroup, Button } from '@progress/kendo-vue-buttons';
7
8
  import { ColorPalette } from './ColorPalette';
@@ -54,8 +55,8 @@ var FlatColorPickerVue2 = {
54
55
  };
55
56
  },
56
57
  // @ts-ignore
57
- setup: !gh ? undefined : function () {
58
- var v3 = !!gh;
58
+ setup: !isV3 ? undefined : function () {
59
+ var v3 = !!isV3;
59
60
  return {
60
61
  v3: v3
61
62
  };
@@ -66,9 +67,9 @@ var FlatColorPickerVue2 = {
66
67
 
67
68
  var h = gh || createElement;
68
69
  return h("div", {
69
- tabIndex: getTabIndex(this.$props.tabIndex, this.$props.disabled),
70
+ tabindex: getTabIndex(this.$props.tabIndex, this.$props.disabled),
70
71
  attrs: this.v3 ? undefined : {
71
- tabIndex: getTabIndex(this.$props.tabIndex, this.$props.disabled)
72
+ tabindex: getTabIndex(this.$props.tabIndex, this.$props.disabled)
72
73
  },
73
74
  "class": classNames('k-flatcolorpicker k-coloreditor', {
74
75
  'k-disabled': this.$props.disabled
@@ -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 { parseColor } from './utils/color-parser';
6
7
  import { isPresent } from './utils/misc';
7
8
  import { Input } from '../input/Input';
@@ -22,8 +23,8 @@ var HexInputVue2 = {
22
23
  };
23
24
  },
24
25
  // @ts-ignore
25
- setup: !gh ? undefined : function () {
26
- var v3 = !!gh;
26
+ setup: !isV3 ? undefined : function () {
27
+ var v3 = !!isV3;
27
28
  return {
28
29
  v3: v3
29
30
  };
@@ -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 { classNames, getDefaultSlots } from '@progress/kendo-vue-common';
7
8
  /**
@@ -44,8 +45,8 @@ var PickerVue2 = {
44
45
  }
45
46
  },
46
47
  // @ts-ignore
47
- setup: !gh ? undefined : function () {
48
- var v3 = !!gh;
48
+ setup: !isV3 ? undefined : function () {
49
+ var v3 = !!isV3;
49
50
  return {
50
51
  v3: v3
51
52
  };
@@ -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 { guid, templateDefinition, validatePackage, kendoThemeMaps, templateRendering, getListeners, getTemplate } from '@progress/kendo-vue-common';
23
24
  import { packageMetadata } from '../package-metadata';
@@ -138,8 +139,8 @@ var InputVue2 = {
138
139
  this.setValidity();
139
140
  },
140
141
  // @ts-ignore
141
- setup: !gh ? undefined : function () {
142
- var v3 = !!gh;
142
+ setup: !isV3 ? undefined : function () {
143
+ var v3 = !!isV3;
143
144
  var inputRef = ref(null);
144
145
  return {
145
146
  v3: v3,
@@ -3,6 +3,7 @@ import { validatePackage } from '@progress/kendo-licensing';
3
3
  import * as Vue from 'vue';
4
4
  var allVue = Vue;
5
5
  var gh = allVue.h;
6
+ var isV3 = allVue.version[0] === '3';
6
7
  var ref = allVue.ref;
7
8
  import { packageMetadata } from '../package-metadata';
8
9
  /**
@@ -14,8 +15,8 @@ var InputSeparatorVue2 = {
14
15
  validatePackage(packageMetadata);
15
16
  },
16
17
  // @ts-ignore
17
- setup: !gh ? undefined : function () {
18
- var v3 = !!gh;
18
+ setup: !isV3 ? undefined : function () {
19
+ var v3 = !!isV3;
19
20
  return {
20
21
  v3: v3
21
22
  };
@@ -2,10 +2,11 @@
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
  import { MaskingService } from './masking.service';
7
8
  import { defaultRules, maskingChanged, returnFalse } from './utils';
8
- import { guid, getTabIndex, validatePackage, kendoThemeMaps, templateDefinition, templateRendering, getListeners, getTemplate } from '@progress/kendo-vue-common';
9
+ import { guid, getTabIndex, validatePackage, kendoThemeMaps, templateDefinition, templateRendering, getListeners, getTemplate, setRef } from '@progress/kendo-vue-common';
9
10
  import { packageMetadata } from '../package-metadata';
10
11
  /**
11
12
  * @hidden
@@ -120,8 +121,8 @@ var MaskedTextBoxVue2 = {
120
121
  this.isPasted = false;
121
122
  },
122
123
  // @ts-ignore
123
- setup: !gh ? undefined : function () {
124
- var v3 = !!gh;
124
+ setup: !isV3 ? undefined : function () {
125
+ var v3 = !!isV3;
125
126
  var inputRef = ref(null);
126
127
  return {
127
128
  v3: v3,
@@ -372,8 +373,6 @@ var MaskedTextBoxVue2 = {
372
373
  },
373
374
  // @ts-ignore
374
375
  render: function render(createElement) {
375
- var _this = this;
376
-
377
376
  var h = gh || createElement;
378
377
  var inputId = this.$props.id || this.inputId;
379
378
  var _a = this.$props,
@@ -419,26 +418,26 @@ var MaskedTextBoxVue2 = {
419
418
  type: this.$props.type,
420
419
  attrs: this.v3 ? undefined : {
421
420
  type: this.$props.type,
422
- autoComplete: "off",
423
- autoCorrect: "off",
424
- autoCapitalize: "off",
425
- spellCheck: false,
421
+ autocomplete: "off",
422
+ autocorrect: "off",
423
+ autocapitalize: "off",
424
+ spellcheck: false,
426
425
  id: inputId,
427
426
  "aria-labelledby": this.$props.ariaLabelledBy,
428
427
  "aria-describedby": this.$props.ariaDescribedBy,
429
428
  name: this.$props.name,
430
- tabIndex: getTabIndex(this.$props.tabIndex, this.$props.disabled, true),
431
- accessKey: this.$props.accessKey,
429
+ tabindex: getTabIndex(this.$props.tabIndex, this.$props.disabled, true),
430
+ accesskey: this.$props.accessKey,
432
431
  title: this.$props.title,
433
432
  disabled: this.$props.disabled || undefined,
434
- readOnly: this.$props.readonly || undefined,
433
+ readonly: this.$props.readonly || undefined,
435
434
  placeholder: this.$props.placeholder,
436
435
  required: this.$props.required
437
436
  },
438
- autoComplete: "off",
439
- autoCorrect: "off",
440
- autoCapitalize: "off",
441
- spellCheck: false,
437
+ autocomplete: "off",
438
+ autocorrect: "off",
439
+ autocapitalize: "off",
440
+ spellcheck: false,
442
441
  "class": this.inputInnerClass,
443
442
  value: this.v3 ? newValue : null,
444
443
  domProps: this.v3 ? undefined : {
@@ -448,29 +447,27 @@ var MaskedTextBoxVue2 = {
448
447
  "aria-labelledby": this.$props.ariaLabelledBy,
449
448
  "aria-describedby": this.$props.ariaDescribedBy,
450
449
  name: this.$props.name,
451
- tabIndex: getTabIndex(this.$props.tabIndex, this.$props.disabled, true),
452
- accessKey: this.$props.accessKey,
450
+ tabindex: getTabIndex(this.$props.tabIndex, this.$props.disabled, true),
451
+ accesskey: this.$props.accessKey,
453
452
  title: this.$props.title,
454
453
  disabled: this.$props.disabled || undefined,
455
- readOnly: this.$props.readonly || undefined,
454
+ readonly: this.$props.readonly || undefined,
456
455
  placeholder: this.$props.placeholder,
457
456
  required: this.$props.required,
458
- ref: this.v3 ? function (el) {
459
- _this.inputRef = el;
460
- } : 'input',
457
+ ref: setRef(this, 'input'),
461
458
  onInput: this.onChangeHandler,
462
459
  on: this.v3 ? undefined : {
463
460
  "input": this.onChangeHandler,
464
461
  "paste": this.pasteHandler,
465
462
  "focus": this.focusHandler,
466
463
  "blur": this.blurHandler,
467
- "dragStart": returnFalse,
464
+ "dragstart": returnFalse,
468
465
  "drop": returnFalse
469
466
  },
470
467
  onPaste: this.pasteHandler,
471
468
  onFocus: this.focusHandler,
472
469
  onBlur: this.blurHandler,
473
- onDragStart: returnFalse,
470
+ onDragstart: returnFalse,
474
471
  onDrop: returnFalse
475
472
  }), this.$props.inputSuffix && h("span", {
476
473
  "class": "k-input-suffix"
@@ -2,9 +2,10 @@
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
- import { canUseDOM, getDefaultSlots, getListeners, getTemplate, kendoThemeMaps, templateDefinition, templateRendering } from '@progress/kendo-vue-common';
8
+ import { canUseDOM, getDefaultSlots, getListeners, getRef, getTemplate, kendoThemeMaps, setRef, templateDefinition, templateRendering } from '@progress/kendo-vue-common';
8
9
  import { provideIntlService, provideLocalizationService } from '@progress/kendo-vue-intl';
9
10
  import { guid, validatePackage } from '@progress/kendo-vue-common';
10
11
  import { Button as KButton } from '@progress/kendo-vue-buttons';
@@ -141,7 +142,7 @@ var NumericTextBoxVue2 = {
141
142
  }
142
143
  },
143
144
  mounted: function mounted() {
144
- this._input = this.v3 ? this.inputRef : this.$refs.input;
145
+ this._input = getRef(this, 'input');
145
146
  this._elementWrapper = this.v3 ? this.elementWrapperRef : this.$refs.elementWrapper;
146
147
  this.$data.hasMounted = true;
147
148
 
@@ -472,8 +473,8 @@ var NumericTextBoxVue2 = {
472
473
  }
473
474
  },
474
475
  // @ts-ignore
475
- setup: !gh ? undefined : function () {
476
- var v3 = !!gh;
476
+ setup: !isV3 ? undefined : function () {
477
+ var v3 = !!isV3;
477
478
  var inputRef = ref(null);
478
479
  var elementWrapperRef = ref(null);
479
480
  var kendoLocalizationService = inject('kendoLocalizationService', {});
@@ -488,8 +489,6 @@ var NumericTextBoxVue2 = {
488
489
  },
489
490
  // @ts-ignore
490
491
  render: function render(createElement) {
491
- var _this = this;
492
-
493
492
  var h = gh || createElement;
494
493
  var _a = this.$props,
495
494
  iconName = _a.iconName,
@@ -540,33 +539,33 @@ var NumericTextBoxVue2 = {
540
539
  }), this.$props.inputPrefix && h("span", {
541
540
  "class": "k-input-prefix"
542
541
  }, [inputPrefix]), h("input", {
543
- tabIndex: this.$props.tabIndex,
542
+ tabindex: this.$props.tabIndex,
544
543
  attrs: this.v3 ? undefined : {
545
- tabIndex: this.$props.tabIndex,
546
- accessKey: this.$props.accessKey,
544
+ tabindex: this.$props.tabIndex,
545
+ accesskey: this.$props.accessKey,
547
546
  disabled: this.$props.disabled,
548
547
  title: this.$props.title,
549
548
  "aria-valuemin": this.$props.min,
550
549
  "aria-valuemax": this.$props.max,
551
550
  placeholder: this.$props.placeholder,
552
551
  type: this.$props.inputType || 'tel',
553
- spellCheck: false,
554
- autoComplete: "off",
555
- autoCorrect: "off",
552
+ spellcheck: false,
553
+ autocomplete: "off",
554
+ autocorrect: "off",
556
555
  id: inputId,
557
556
  "aria-valuenow": this.$data.currentValue !== null ? this.$data.currentValue : undefined,
558
557
  name: this.$props.name
559
558
  },
560
- accessKey: this.$props.accessKey,
559
+ accesskey: this.$props.accessKey,
561
560
  disabled: this.$props.disabled,
562
561
  title: this.$props.title,
563
562
  "aria-valuemin": this.$props.min,
564
563
  "aria-valuemax": this.$props.max,
565
564
  placeholder: this.$props.placeholder,
566
565
  type: this.$props.inputType || 'tel',
567
- spellCheck: false,
568
- autoComplete: "off",
569
- autoCorrect: "off",
566
+ spellcheck: false,
567
+ autocomplete: "off",
568
+ autocorrect: "off",
570
569
  "class": this.inputInnerClass,
571
570
  id: inputId,
572
571
  value: this.v3 ? this.looseValue : null,
@@ -589,9 +588,7 @@ var NumericTextBoxVue2 = {
589
588
  onFocus: this.emitFocus,
590
589
  onBlur: this.emitBlur,
591
590
  onPaste: this.onPasteHandler,
592
- ref: this.v3 ? function (el) {
593
- _this.inputRef = el;
594
- } : 'input'
591
+ ref: setRef(this, 'input')
595
592
  }), this.$props.inputSuffix && h("span", {
596
593
  "class": "k-input-suffix"
597
594
  }, [inputSuffix]), showValidationIcon && isValid && h("span", {
@@ -5,7 +5,7 @@ export var packageMetadata = {
5
5
  name: '@progress/kendo-vue-inputs',
6
6
  productName: 'Kendo UI for Vue',
7
7
  productCodes: ['KENDOUIVUE', 'KENDOUICOMPLETE'],
8
- publishDate: 1656415338,
8
+ publishDate: 1657170635,
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
  };
@@ -2,9 +2,10 @@
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
- import { guid, getTabIndex, getDefaultSlots, templateRendering, getTemplate, getListeners, kendoThemeMaps } from '@progress/kendo-vue-common';
8
+ import { guid, getTabIndex, getDefaultSlots, templateRendering, getTemplate, getListeners, kendoThemeMaps, setRef, getRef } from '@progress/kendo-vue-common';
8
9
  import { validatePackage } from '@progress/kendo-vue-common';
9
10
  import { packageMetadata } from '../package-metadata';
10
11
  /**
@@ -54,7 +55,7 @@ var RadioButtonVue2 = {
54
55
  validatePackage(packageMetadata);
55
56
  },
56
57
  mounted: function mounted() {
57
- this.input = this.v3 ? this.inputRef : this.$refs.input;
58
+ this.input = getRef(this, 'input');
58
59
  },
59
60
  computed: {
60
61
  inputClassName: function inputClassName() {
@@ -89,8 +90,8 @@ var RadioButtonVue2 = {
89
90
  }
90
91
  },
91
92
  // @ts-ignore
92
- setup: !gh ? undefined : function () {
93
- var v3 = !!gh;
93
+ setup: !isV3 ? undefined : function () {
94
+ var v3 = !!isV3;
94
95
  var inputRef = ref(null);
95
96
  return {
96
97
  v3: v3,
@@ -98,8 +99,6 @@ var RadioButtonVue2 = {
98
99
  };
99
100
  },
100
101
  render: function render(createElement) {
101
- var _this = this;
102
-
103
102
  var h = gh || createElement;
104
103
  var defaultSlot = getDefaultSlots(this);
105
104
  var _a = this.$props,
@@ -147,17 +146,15 @@ var RadioButtonVue2 = {
147
146
  id: id || this.calculatedId,
148
147
  name: name,
149
148
  disabled: disabled,
150
- tabIndex: getTabIndex(tabIndex, disabled),
149
+ tabindex: getTabIndex(tabIndex, disabled),
151
150
  "aria-describedby": ariaDescribedBy
152
151
  },
153
152
  id: id || this.calculatedId,
154
153
  name: name,
155
154
  "class": this.inputClassName,
156
- ref: this.v3 ? function (el) {
157
- _this.inputRef = el;
158
- } : 'input',
155
+ ref: setRef(this, 'input'),
159
156
  disabled: disabled,
160
- tabIndex: getTabIndex(tabIndex, disabled),
157
+ tabindex: getTabIndex(tabIndex, disabled),
161
158
  checked: this.v3 ? checked : null,
162
159
  domProps: this.v3 ? undefined : {
163
160
  "checked": checked,