@progress/kendo-vue-inputs 3.4.1 → 3.4.3-dev.202207111225

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 (64) 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.d.ts +1 -1
  5. package/dist/es/colors/ColorContrastSvg.js +3 -2
  6. package/dist/es/colors/ColorGradient.d.ts +1 -0
  7. package/dist/es/colors/ColorGradient.js +82 -59
  8. package/dist/es/colors/ColorInput.js +61 -15
  9. package/dist/es/colors/ColorPalette.d.ts +0 -1
  10. package/dist/es/colors/ColorPalette.js +14 -40
  11. package/dist/es/colors/ColorPicker.d.ts +0 -1
  12. package/dist/es/colors/ColorPicker.js +169 -93
  13. package/dist/es/colors/FlatColorPicker.js +61 -22
  14. package/dist/es/colors/HexInput.js +28 -9
  15. package/dist/es/colors/Picker.js +3 -2
  16. package/dist/es/colors/interfaces/ColorPickerProps.d.ts +6 -1
  17. package/dist/es/colors/utils/color-palette.service.d.ts +1 -0
  18. package/dist/es/colors/utils/color-palette.service.js +7 -16
  19. package/dist/es/input/Input.js +3 -2
  20. package/dist/es/input-separator/InputSeparator.js +3 -2
  21. package/dist/es/main.d.ts +1 -0
  22. package/dist/es/main.js +1 -0
  23. package/dist/es/maskedtextbox/MaskedTextBox.js +21 -24
  24. package/dist/es/numerictextbox/NumericTextBox.js +16 -19
  25. package/dist/es/package-metadata.js +1 -1
  26. package/dist/es/radiobutton/RadioButton.js +8 -11
  27. package/dist/es/radiobutton/RadioGroup.js +3 -2
  28. package/dist/es/range-slider/RangeSlider.js +11 -10
  29. package/dist/es/slider/Slider.js +17 -6
  30. package/dist/es/slider/SliderLabel.js +3 -2
  31. package/dist/es/switch/Switch.js +14 -19
  32. package/dist/es/textarea/TextArea.js +3 -2
  33. package/dist/npm/checkbox/Checkbox.js +8 -11
  34. package/dist/npm/colors/ColorContrastLabels.js +3 -2
  35. package/dist/npm/colors/ColorContrastSvg.d.ts +1 -1
  36. package/dist/npm/colors/ColorContrastSvg.js +3 -2
  37. package/dist/npm/colors/ColorGradient.d.ts +1 -0
  38. package/dist/npm/colors/ColorGradient.js +81 -58
  39. package/dist/npm/colors/ColorInput.js +61 -15
  40. package/dist/npm/colors/ColorPalette.d.ts +0 -1
  41. package/dist/npm/colors/ColorPalette.js +13 -39
  42. package/dist/npm/colors/ColorPicker.d.ts +0 -1
  43. package/dist/npm/colors/ColorPicker.js +168 -91
  44. package/dist/npm/colors/FlatColorPicker.js +61 -22
  45. package/dist/npm/colors/HexInput.js +28 -9
  46. package/dist/npm/colors/Picker.js +3 -2
  47. package/dist/npm/colors/interfaces/ColorPickerProps.d.ts +6 -1
  48. package/dist/npm/colors/utils/color-palette.service.d.ts +1 -0
  49. package/dist/npm/colors/utils/color-palette.service.js +7 -16
  50. package/dist/npm/input/Input.js +3 -2
  51. package/dist/npm/input-separator/InputSeparator.js +3 -2
  52. package/dist/npm/main.d.ts +1 -0
  53. package/dist/npm/main.js +2 -0
  54. package/dist/npm/maskedtextbox/MaskedTextBox.js +20 -23
  55. package/dist/npm/numerictextbox/NumericTextBox.js +15 -18
  56. package/dist/npm/package-metadata.js +1 -1
  57. package/dist/npm/radiobutton/RadioButton.js +7 -10
  58. package/dist/npm/radiobutton/RadioGroup.js +3 -2
  59. package/dist/npm/range-slider/RangeSlider.js +11 -10
  60. package/dist/npm/slider/Slider.js +17 -6
  61. package/dist/npm/slider/SliderLabel.js +3 -2
  62. package/dist/npm/switch/Switch.js +13 -18
  63. package/dist/npm/textarea/TextArea.js +3 -2
  64. package/package.json +14 -14
@@ -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,21 +55,23 @@ 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
  };
62
63
  },
63
64
  // @ts-ignore
64
65
  render: function render(createElement) {
66
+ var _this2 = this;
67
+
65
68
  var _this = this;
66
69
 
67
70
  var h = gh || createElement;
68
71
  return h("div", {
69
- tabIndex: getTabIndex(this.$props.tabIndex, this.$props.disabled),
72
+ tabindex: getTabIndex(this.$props.tabIndex, this.$props.disabled),
70
73
  attrs: this.v3 ? undefined : {
71
- tabIndex: getTabIndex(this.$props.tabIndex, this.$props.disabled)
74
+ tabindex: getTabIndex(this.$props.tabIndex, this.$props.disabled)
72
75
  },
73
76
  "class": classNames('k-flatcolorpicker k-coloreditor', {
74
77
  'k-disabled': this.$props.disabled
@@ -86,16 +89,24 @@ var FlatColorPickerVue2 = {
86
89
  return [// @ts-ignore function children
87
90
  h(Button, {
88
91
  type: "button",
89
- attrs: _this.v3 ? undefined : {
92
+ attrs: _this2.v3 ? undefined : {
90
93
  type: "button",
91
94
  togglable: true,
92
95
  fillMode: 'flat',
93
- selected: _this.colorGradientView
96
+ selected: _this2.isColorGradient
94
97
  },
95
98
  togglable: true,
96
99
  fillMode: 'flat',
97
- selected: _this.colorGradientView
98
- }, _this.v3 ? function () {
100
+ selected: _this2.isColorGradient,
101
+ onClick: function onClick(e) {
102
+ return _this.handleViewChange(e, 'ColorGradient');
103
+ },
104
+ on: _this2.v3 ? undefined : {
105
+ "click": function onClick(e) {
106
+ return _this.handleViewChange(e, 'ColorGradient');
107
+ }
108
+ }
109
+ }, _this2.v3 ? function () {
99
110
  return [h("span", {
100
111
  "class": "k-icon k-i-color-canvas"
101
112
  })];
@@ -104,16 +115,24 @@ var FlatColorPickerVue2 = {
104
115
  })]), // @ts-ignore function children
105
116
  h(Button, {
106
117
  type: "button",
107
- attrs: _this.v3 ? undefined : {
118
+ attrs: _this2.v3 ? undefined : {
108
119
  type: "button",
109
120
  togglable: true,
110
121
  fillMode: 'flat',
111
- selected: !_this.colorGradientView
122
+ selected: !_this2.isColorGradient
112
123
  },
113
124
  togglable: true,
114
125
  fillMode: 'flat',
115
- selected: !_this.colorGradientView
116
- }, _this.v3 ? function () {
126
+ selected: !_this2.isColorGradient,
127
+ onClick: function onClick(e) {
128
+ return _this.handleViewChange(e, 'ColorPalette');
129
+ },
130
+ on: _this2.v3 ? undefined : {
131
+ "click": function onClick(e) {
132
+ return _this.handleViewChange(e, 'ColorPalette');
133
+ }
134
+ }
135
+ }, _this2.v3 ? function () {
117
136
  return [h("span", {
118
137
  "class": "k-icon k-i-palette"
119
138
  })];
@@ -122,16 +141,24 @@ var FlatColorPickerVue2 = {
122
141
  })])];
123
142
  } : [h(Button, {
124
143
  type: "button",
125
- attrs: _this.v3 ? undefined : {
144
+ attrs: _this2.v3 ? undefined : {
126
145
  type: "button",
127
146
  togglable: true,
128
147
  fillMode: 'flat',
129
- selected: _this.colorGradientView
148
+ selected: _this2.isColorGradient
130
149
  },
131
150
  togglable: true,
132
151
  fillMode: 'flat',
133
- selected: _this.colorGradientView
134
- }, _this.v3 ? function () {
152
+ selected: _this2.isColorGradient,
153
+ onClick: function onClick(e) {
154
+ return _this.handleViewChange(e, 'ColorGradient');
155
+ },
156
+ on: _this2.v3 ? undefined : {
157
+ "click": function onClick(e) {
158
+ return _this.handleViewChange(e, 'ColorGradient');
159
+ }
160
+ }
161
+ }, _this2.v3 ? function () {
135
162
  return [h("span", {
136
163
  "class": "k-icon k-i-color-canvas"
137
164
  })];
@@ -139,16 +166,24 @@ var FlatColorPickerVue2 = {
139
166
  "class": "k-icon k-i-color-canvas"
140
167
  })]), h(Button, {
141
168
  type: "button",
142
- attrs: _this.v3 ? undefined : {
169
+ attrs: _this2.v3 ? undefined : {
143
170
  type: "button",
144
171
  togglable: true,
145
172
  fillMode: 'flat',
146
- selected: !_this.colorGradientView
173
+ selected: !_this2.isColorGradient
147
174
  },
148
175
  togglable: true,
149
176
  fillMode: 'flat',
150
- selected: !_this.colorGradientView
151
- }, _this.v3 ? function () {
177
+ selected: !_this2.isColorGradient,
178
+ onClick: function onClick(e) {
179
+ return _this.handleViewChange(e, 'ColorPalette');
180
+ },
181
+ on: _this2.v3 ? undefined : {
182
+ "click": function onClick(e) {
183
+ return _this.handleViewChange(e, 'ColorPalette');
184
+ }
185
+ }
186
+ }, _this2.v3 ? function () {
152
187
  return [h("span", {
153
188
  "class": "k-icon k-i-palette"
154
189
  })];
@@ -253,8 +288,12 @@ var FlatColorPickerVue2 = {
253
288
  this.$el.focus();
254
289
  }
255
290
  },
256
- handleViewChange: function handleViewChange(viewType) {
291
+ handleViewChange: function handleViewChange(event, viewType) {
257
292
  this.currentView = viewType;
293
+ this.$emit('viewchange', {
294
+ event: event,
295
+ viewType: viewType
296
+ });
258
297
  },
259
298
  handleResetColor: function handleResetColor() {
260
299
  this.colorValue = 'rgba(255, 255, 255, 1)';
@@ -277,7 +316,7 @@ var FlatColorPickerVue2 = {
277
316
  }
278
317
  },
279
318
  handleFlatColorPickerBlur: function handleFlatColorPickerBlur() {
280
- this.prevColor(this.colorValue);
319
+ this.prevColor = this.colorValue;
281
320
  }
282
321
  }
283
322
  };
@@ -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';
@@ -11,19 +12,30 @@ import { Input } from '../input/Input';
11
12
 
12
13
  var HexInputVue2 = {
13
14
  name: 'KendoHexInput',
15
+ // @ts-ignore
16
+ emits: {
17
+ 'hexchange': null,
18
+ 'blur': null,
19
+ 'focus': null
20
+ },
14
21
  props: {
15
22
  hex: String,
16
23
  disabled: Boolean
17
24
  },
18
25
  data: function data() {
19
26
  return {
20
- hex: this.$props.hex,
27
+ currentHex: this.$props.hex,
21
28
  originalHex: this.$props.hex
22
29
  };
23
30
  },
31
+ computed: {
32
+ computedHex: function computedHex() {
33
+ return this.hex !== undefined ? this.hex : this.currentHex;
34
+ }
35
+ },
24
36
  // @ts-ignore
25
- setup: !gh ? undefined : function () {
26
- var v3 = !!gh;
37
+ setup: !isV3 ? undefined : function () {
38
+ var v3 = !!isV3;
27
39
  return {
28
40
  v3: v3
29
41
  };
@@ -32,16 +44,18 @@ var HexInputVue2 = {
32
44
  render: function render(createElement) {
33
45
  var h = gh || createElement;
34
46
  return h(Input, {
35
- value: this.hex,
47
+ value: this.computedHex,
36
48
  attrs: this.v3 ? undefined : {
37
- value: this.hex,
49
+ value: this.computedHex,
38
50
  disabled: this.$props.disabled
39
51
  },
40
52
  onChange: this.onChange,
41
53
  on: this.v3 ? undefined : {
42
54
  "change": this.onChange,
55
+ "focus": this.onFocus,
43
56
  "blur": this.onBlur
44
57
  },
58
+ onFocus: this.onFocus,
45
59
  onBlur: this.onBlur,
46
60
  disabled: this.$props.disabled
47
61
  });
@@ -50,16 +64,21 @@ var HexInputVue2 = {
50
64
  onChange: function onChange(event) {
51
65
  var hex = event.target.value;
52
66
  var value = parseColor(hex, 'rgba');
53
- this.hex = hex;
67
+ this.currentHex = hex;
54
68
 
55
69
  if (isPresent(value)) {
56
- this.$props.onHexChange(hex, value, event);
70
+ this.$emit('hexchange', hex, value, event);
57
71
  }
58
72
  },
59
- onBlur: function onBlur() {
73
+ onBlur: function onBlur(event) {
60
74
  if (!isPresent(parseColor(this.hex, 'rgba'))) {
61
- this.hex = this.originalHex;
75
+ this.currentHex = this.originalHex;
62
76
  }
77
+
78
+ this.$emit('blur', event);
79
+ },
80
+ onFocus: function onFocus(event) {
81
+ this.$emit('focus', event);
63
82
  }
64
83
  }
65
84
  };
@@ -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
  };
@@ -5,6 +5,7 @@ import { ColorPickerActiveColorClick } from './ColorPickerActiveColorClick';
5
5
  import { ColorPickerPopupSettings } from './ColorPickerPopupSettings';
6
6
  import { ColorPickerPaletteSettings } from './ColorPickerPaletteSettings';
7
7
  import { ColorPickerView } from './ColorPickerView';
8
+ import { ColorGradientProps } from './ColorGradientProps';
8
9
  /**
9
10
  * Represents the props of the [Kendo UI for Vue ColorPicker component]({% slug overview_colorpicker %}).
10
11
  */
@@ -46,7 +47,7 @@ export interface ColorPickerProps {
46
47
  * Sets the view which the ColorPicker will render in the popup
47
48
  * ([see example]({% slug combinedview_colorpicker %})).
48
49
  */
49
- view?: ColorPickerView;
50
+ view?: ColorPickerView | string;
50
51
  /**
51
52
  * Represents the `dir` HTML attribute.
52
53
  */
@@ -68,6 +69,10 @@ export interface ColorPickerProps {
68
69
  * ([see example]({% slug customizecolorpicker_colorpicker %}#toc-customizing-the-palette-popup)).
69
70
  */
70
71
  paletteSettings?: ColorPickerPaletteSettings;
72
+ /**
73
+ * Configures the ColorGradient that is displayed in the ColorPicker popup.
74
+ */
75
+ gradientSettings?: ColorGradientProps;
71
76
  /**
72
77
  * Configures the popup of the ColorPicker.
73
78
  */
@@ -5,6 +5,7 @@ import { TableCell } from '../models/table-cell';
5
5
  export declare class ColorPaletteService {
6
6
  colorRows: string[][];
7
7
  setColorMatrix(palette: string[], columns: number): void;
8
+ isInColors(colors: any, current: any): boolean;
8
9
  getCellCoordsFor(color?: string): TableCell | undefined;
9
10
  getColorAt(cellCoords: TableCell): string | undefined;
10
11
  getNextCell(current: TableCell, horizontalStep: number, verticalStep: number): TableCell;
@@ -18,8 +18,10 @@ var ColorPaletteService = /** @class */ (function () {
18
18
  this.colorRows.push(row);
19
19
  }
20
20
  };
21
+ ColorPaletteService.prototype.isInColors = function (colors, current) {
22
+ return colors.some(function (c) { return c === current; });
23
+ };
21
24
  ColorPaletteService.prototype.getCellCoordsFor = function (color) {
22
- var _this = this;
23
25
  if (!isPresent(color)) {
24
26
  return;
25
27
  }
@@ -28,23 +30,12 @@ var ColorPaletteService = /** @class */ (function () {
28
30
  if (isPresent(parsedColor)) {
29
31
  colors.push(parsedColor.toCss(), parsedColor.toCssRgba());
30
32
  }
31
- var _loop_1 = function (row) {
32
- var _loop_2 = function (col) {
33
- if (colors.some(function (c) { return c === _this.colorRows[row][col]; })) {
34
- return { value: { row: row, col: col } };
33
+ for (var row = 0; row < this.colorRows.length; row++) {
34
+ for (var col = 0; col < this.colorRows[row].length; col++) {
35
+ if (this.isInColors(colors, this.colorRows[row][col])) {
36
+ return { row: row, col: col };
35
37
  }
36
- };
37
- for (var col = 0; col < this_1.colorRows[row].length; col++) {
38
- var state_2 = _loop_2(col);
39
- if (typeof state_2 === "object")
40
- return state_2;
41
38
  }
42
- };
43
- var this_1 = this;
44
- for (var row = 0; row < this.colorRows.length; row++) {
45
- var state_1 = _loop_1(row);
46
- if (typeof state_1 === "object")
47
- return state_1.value;
48
39
  }
49
40
  };
50
41
  ColorPaletteService.prototype.getColorAt = function (cellCoords) {
@@ -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
  };
package/dist/es/main.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  import { FormComponentValidity } from '@progress/kendo-vue-common';
2
2
  export { FormComponentValidity };
3
+ export { ColorGradient, ColorGradientState } from './colors/ColorGradient';
3
4
  export { ColorPalette, ColorPaletteState } from './colors/ColorPalette';
4
5
  export * from './colors/ColorPicker';
5
6
  export * from './colors/interfaces/ColorPaletteChangeEvent';
package/dist/es/main.js CHANGED
@@ -1,3 +1,4 @@
1
+ export { ColorGradient } from './colors/ColorGradient';
1
2
  export { ColorPalette } from './colors/ColorPalette';
2
3
  export * from './colors/ColorPicker';
3
4
  export * from './colors/interfaces/ColorPaletteChangeEvent';
@@ -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: 1657541784,
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
  };