@progress/kendo-vue-inputs 3.6.4 → 3.6.5-dev.202210181442

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 (74) hide show
  1. package/dist/cdn/js/kendo-vue-inputs.js +1 -1
  2. package/dist/es/checkbox/Checkbox.js +17 -35
  3. package/dist/es/colors/ColorContrastLabels.js +0 -2
  4. package/dist/es/colors/ColorContrastSvg.js +6 -20
  5. package/dist/es/colors/ColorGradient.js +2 -28
  6. package/dist/es/colors/ColorInput.js +12 -20
  7. package/dist/es/colors/ColorPalette.js +0 -19
  8. package/dist/es/colors/ColorPicker.js +28 -52
  9. package/dist/es/colors/FlatColorPicker.js +14 -24
  10. package/dist/es/colors/HexInput.js +0 -4
  11. package/dist/es/colors/Picker.js +6 -9
  12. package/dist/es/input/Input.js +15 -29
  13. package/dist/es/input-separator/InputSeparator.js +0 -2
  14. package/dist/es/maskedtextbox/MaskedTextBox.js +13 -32
  15. package/dist/es/numerictextbox/NumericTextBox.js +15 -48
  16. package/dist/es/numerictextbox/utils/main.js +33 -132
  17. package/dist/es/package-metadata.js +1 -1
  18. package/dist/es/radiobutton/RadioButton.js +11 -16
  19. package/dist/es/radiobutton/RadioGroup.js +9 -12
  20. package/dist/es/range-slider/RangeSlider.js +9 -32
  21. package/dist/es/range-slider/range-raducer.js +0 -26
  22. package/dist/es/slider/Slider.js +8 -20
  23. package/dist/es/slider/SliderLabel.js +2 -12
  24. package/dist/es/switch/Switch.js +6 -18
  25. package/dist/es/textarea/TextArea.js +27 -40
  26. package/dist/esm/checkbox/Checkbox.js +17 -35
  27. package/dist/esm/colors/ColorContrastLabels.js +0 -2
  28. package/dist/esm/colors/ColorContrastSvg.js +6 -20
  29. package/dist/esm/colors/ColorGradient.js +2 -28
  30. package/dist/esm/colors/ColorInput.js +12 -20
  31. package/dist/esm/colors/ColorPalette.js +0 -19
  32. package/dist/esm/colors/ColorPicker.js +28 -52
  33. package/dist/esm/colors/FlatColorPicker.js +14 -24
  34. package/dist/esm/colors/HexInput.js +0 -4
  35. package/dist/esm/colors/Picker.js +6 -9
  36. package/dist/esm/input/Input.js +15 -29
  37. package/dist/esm/input-separator/InputSeparator.js +0 -2
  38. package/dist/esm/maskedtextbox/MaskedTextBox.js +13 -32
  39. package/dist/esm/numerictextbox/NumericTextBox.js +15 -48
  40. package/dist/esm/numerictextbox/utils/main.js +33 -132
  41. package/dist/esm/package-metadata.js +1 -1
  42. package/dist/esm/radiobutton/RadioButton.js +11 -16
  43. package/dist/esm/radiobutton/RadioGroup.js +9 -12
  44. package/dist/esm/range-slider/RangeSlider.js +9 -32
  45. package/dist/esm/range-slider/range-raducer.js +0 -26
  46. package/dist/esm/slider/Slider.js +8 -20
  47. package/dist/esm/slider/SliderLabel.js +2 -12
  48. package/dist/esm/switch/Switch.js +6 -18
  49. package/dist/esm/textarea/TextArea.js +27 -40
  50. package/dist/npm/checkbox/Checkbox.js +19 -43
  51. package/dist/npm/colors/ColorContrastLabels.js +2 -9
  52. package/dist/npm/colors/ColorContrastSvg.js +8 -26
  53. package/dist/npm/colors/ColorGradient.js +4 -44
  54. package/dist/npm/colors/ColorInput.js +12 -29
  55. package/dist/npm/colors/ColorPalette.js +2 -29
  56. package/dist/npm/colors/ColorPicker.js +26 -59
  57. package/dist/npm/colors/FlatColorPicker.js +14 -35
  58. package/dist/npm/colors/HexInput.js +2 -11
  59. package/dist/npm/colors/Picker.js +8 -15
  60. package/dist/npm/input/Input.js +15 -34
  61. package/dist/npm/input-separator/InputSeparator.js +2 -8
  62. package/dist/npm/maskedtextbox/MaskedTextBox.js +15 -40
  63. package/dist/npm/numerictextbox/NumericTextBox.js +17 -59
  64. package/dist/npm/numerictextbox/utils/main.js +33 -160
  65. package/dist/npm/package-metadata.js +1 -1
  66. package/dist/npm/radiobutton/RadioButton.js +13 -23
  67. package/dist/npm/radiobutton/RadioGroup.js +11 -19
  68. package/dist/npm/range-slider/RangeSlider.js +7 -38
  69. package/dist/npm/range-slider/range-raducer.js +0 -27
  70. package/dist/npm/slider/Slider.js +10 -30
  71. package/dist/npm/slider/SliderLabel.js +2 -15
  72. package/dist/npm/switch/Switch.js +8 -26
  73. package/dist/npm/textarea/TextArea.js +25 -43
  74. package/package.json +11 -11
@@ -2,25 +2,22 @@ var __assign = this && this.__assign || function () {
2
2
  __assign = Object.assign || function (t) {
3
3
  for (var s, i = 1, n = arguments.length; i < n; i++) {
4
4
  s = arguments[i];
5
-
6
5
  for (var p in s) {
7
6
  if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
8
7
  }
9
8
  }
10
-
11
9
  return t;
12
10
  };
13
-
14
11
  return __assign.apply(this, arguments);
15
- }; // @ts-ignore
16
-
17
-
12
+ };
13
+ // @ts-ignore
18
14
  import * as Vue from 'vue';
19
15
  var allVue = Vue;
20
16
  var gh = allVue.h;
21
17
  var isV3 = allVue.version && allVue.version[0] === '3';
22
18
  import { Button } from '@progress/kendo-vue-buttons';
23
- import { classNames, Keys, // useDir,
19
+ import { classNames, Keys,
20
+ // useDir,
24
21
  getTabIndex, guid, kendoThemeMaps, validatePackage, setRef, getRef } from '@progress/kendo-vue-common';
25
22
  import { packageMetadata } from '../package-metadata';
26
23
  import { Picker } from './Picker';
@@ -29,15 +26,12 @@ import { DEFAULT_GRADIENT_SETTINGS, DEFAULT_PALETTE_SETTINGS } from './utils/col
29
26
  /**
30
27
  * @hidden
31
28
  */
32
-
33
29
  var isControlled = function isControlled(prop) {
34
30
  return prop !== undefined;
35
31
  };
36
32
  /**
37
33
  * @hidden
38
34
  */
39
-
40
-
41
35
  var ColorPickerVue2 = {
42
36
  name: 'KendoColorPicker',
43
37
  model: {
@@ -179,11 +173,10 @@ var ColorPickerVue2 = {
179
173
  },
180
174
  wrapperClassName: function wrapperClassName() {
181
175
  var _a;
182
-
183
176
  var _b = this.$props,
184
- size = _b.size,
185
- fillMode = _b.fillMode,
186
- rounded = _b.rounded;
177
+ size = _b.size,
178
+ fillMode = _b.fillMode,
179
+ rounded = _b.rounded;
187
180
  return _a = {
188
181
  'k-picker': true,
189
182
  'k-colorpicker': true,
@@ -199,7 +192,8 @@ var ColorPickerVue2 = {
199
192
  mounted: function mounted() {
200
193
  this.button = getRef(this, 'button');
201
194
  },
202
- updated: function updated() {// this.button = getRef(this, 'button');
195
+ updated: function updated() {
196
+ // this.button = getRef(this, 'button');
203
197
  },
204
198
  // @ts-ignore
205
199
  setup: !isV3 ? undefined : function () {
@@ -211,23 +205,19 @@ var ColorPickerVue2 = {
211
205
  // @ts-ignore
212
206
  render: function render(createElement) {
213
207
  var _this2 = this;
214
-
215
208
  var _a;
216
-
217
209
  var _this = this;
218
-
219
210
  var h = gh || createElement;
220
211
  var _b = this.$props,
221
- disabled = _b.disabled,
222
- tabIndex = _b.tabIndex,
223
- dir = _b.dir,
224
- view = _b.view,
225
- selectedView = _b.selectedView,
226
- showClearButton = _b.showClearButton,
227
- showPreview = _b.showPreview,
228
- showButtons = _b.showButtons,
229
- popupSettings = _b.popupSettings;
230
-
212
+ disabled = _b.disabled,
213
+ tabIndex = _b.tabIndex,
214
+ dir = _b.dir,
215
+ view = _b.view,
216
+ selectedView = _b.selectedView,
217
+ showClearButton = _b.showClearButton,
218
+ showPreview = _b.showPreview,
219
+ showButtons = _b.showButtons,
220
+ popupSettings = _b.popupSettings;
231
221
  var renderFlatColorPicker = function renderFlatColorPicker() {
232
222
  return h(FlatColorPicker, __assign({
233
223
  onKeydown: this.onKeyDownHandler,
@@ -260,9 +250,8 @@ var ColorPickerVue2 = {
260
250
  paletteSettings: this.paletteSettings,
261
251
  gradientSettings: this.gradientSettings
262
252
  }, this.flatColorPickerSettings));
263
- }; // const dir = useDir(focusableElementGuid, props.dir);
264
-
265
-
253
+ };
254
+ // const dir = useDir(focusableElementGuid, props.dir);
266
255
  return h("span", {
267
256
  "class": this.wrapperClassName,
268
257
  dir: dir,
@@ -306,7 +295,8 @@ var ColorPickerVue2 = {
306
295
  style: {
307
296
  backgroundColor: this.computedValue
308
297
  }
309
- })])]), // @ts-ignore
298
+ })])]),
299
+ // @ts-ignore
310
300
  h(Button, {
311
301
  type: "button",
312
302
  attrs: this.v3 ? undefined : {
@@ -326,7 +316,8 @@ var ColorPickerVue2 = {
326
316
  rounded: null,
327
317
  "class": "k-input-button",
328
318
  icon: 'caret-alt-down'
329
- }), // @ts-ignore function children
319
+ }),
320
+ // @ts-ignore function children
330
321
  h(Picker, {
331
322
  dir: dir,
332
323
  attrs: this.v3 ? undefined : {
@@ -358,28 +349,24 @@ var ColorPickerVue2 = {
358
349
  if (!nextOpen && !isBlur && this.$el) {
359
350
  this.$el.focus();
360
351
  }
361
-
362
352
  this.currentOpen = nextOpen;
363
353
  this.$emit(nextOpen ? 'open' : 'close');
364
354
  },
365
355
  onButtonKeyDown: function onButtonKeyDown(event) {
366
356
  var altKey = event.altKey,
367
- keyCode = event.keyCode;
368
-
357
+ keyCode = event.keyCode;
369
358
  if (keyCode === Keys.esc) {
370
359
  event.preventDefault();
371
360
  event.stopPropagation();
372
361
  this.setOpen(false);
373
362
  return;
374
363
  }
375
-
376
364
  if (keyCode === Keys.enter) {
377
365
  event.preventDefault();
378
366
  event.stopPropagation();
379
367
  this.setOpen(!this.computedOpen);
380
368
  return;
381
369
  }
382
-
383
370
  if (altKey && keyCode === Keys.down) {
384
371
  event.preventDefault();
385
372
  event.stopPropagation();
@@ -388,22 +375,19 @@ var ColorPickerVue2 = {
388
375
  },
389
376
  onKeyDownHandler: function onKeyDownHandler(event) {
390
377
  var altKey = event.altKey,
391
- keyCode = event.keyCode;
392
-
378
+ keyCode = event.keyCode;
393
379
  if (keyCode === Keys.esc) {
394
380
  event.preventDefault();
395
381
  event.stopPropagation();
396
382
  this.setOpen(false);
397
383
  return;
398
384
  }
399
-
400
385
  if (keyCode === Keys.enter) {
401
386
  event.preventDefault();
402
387
  event.stopPropagation();
403
388
  this.focusElement();
404
389
  return;
405
390
  }
406
-
407
391
  if (altKey && keyCode === Keys.up) {
408
392
  event.preventDefault();
409
393
  event.stopPropagation();
@@ -414,7 +398,6 @@ var ColorPickerVue2 = {
414
398
  onOpenHandler: function onOpenHandler() {
415
399
  // Skip content autofocus when in controlled mode
416
400
  var flatcolorpicker = getRef(this, 'flatcolorpicker');
417
-
418
401
  if (flatcolorpicker) {
419
402
  flatcolorpicker.focus();
420
403
  }
@@ -440,26 +423,23 @@ var ColorPickerVue2 = {
440
423
  onFocusHandler: function onFocusHandler(event) {
441
424
  if (this.blurTimeoutRef) {
442
425
  clearTimeout(this.blurTimeoutRef);
443
- this.blurTimeoutRef = undefined; // case where moving back to input from popup
444
-
426
+ this.blurTimeoutRef = undefined;
427
+ // case where moving back to input from popup
445
428
  if (event.target === this.$el) {
446
429
  this.setOpen(false); // in this case we should focus input on keydown
447
430
  }
448
431
  } else {
449
432
  this.focused = true;
450
433
  }
451
-
452
434
  this.$emit('focus', {
453
435
  event: event
454
436
  });
455
437
  },
456
438
  onBlurTimeout: function onBlurTimeout() {
457
439
  var viewIsFocused = this.isViewFocused();
458
-
459
440
  if (!viewIsFocused) {
460
441
  this.setOpen(false, true);
461
442
  }
462
-
463
443
  this.focused = viewIsFocused;
464
444
  this.blurTimeoutRef = undefined;
465
445
  },
@@ -474,15 +454,12 @@ var ColorPickerVue2 = {
474
454
  },
475
455
  onChangeHandler: function onChangeHandler(event, isPalette) {
476
456
  var currentValue = event.value;
477
-
478
457
  if (!this.isValueControlled) {
479
458
  this.currentValue = currentValue;
480
459
  }
481
-
482
460
  if (isPalette) {
483
461
  this.setOpen(false);
484
462
  }
485
-
486
463
  this.$emit('changemodel', currentValue);
487
464
  this.$emit('update:modelRgbaValue', event.rgbaValue);
488
465
  this.$emit('update:modelValue', currentValue);
@@ -500,6 +477,5 @@ var ColorPickerVue2 = {
500
477
  /**
501
478
  * @hidden
502
479
  */
503
-
504
480
  var ColorPicker = ColorPickerVue2;
505
481
  export { ColorPicker, ColorPickerVue2 };
@@ -2,19 +2,15 @@ var __assign = this && this.__assign || function () {
2
2
  __assign = Object.assign || function (t) {
3
3
  for (var s, i = 1, n = arguments.length; i < n; i++) {
4
4
  s = arguments[i];
5
-
6
5
  for (var p in s) {
7
6
  if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
8
7
  }
9
8
  }
10
-
11
9
  return t;
12
10
  };
13
-
14
11
  return __assign.apply(this, arguments);
15
- }; // @ts-ignore
16
-
17
-
12
+ };
13
+ // @ts-ignore
18
14
  import * as Vue from 'vue';
19
15
  var allVue = Vue;
20
16
  var gh = allVue.h;
@@ -31,7 +27,6 @@ import { provideLocalizationService } from '@progress/kendo-vue-intl';
31
27
  /**
32
28
  * @hidden
33
29
  */
34
-
35
30
  var FlatColorPickerVue2 = {
36
31
  name: 'KendoFlatColorPicker',
37
32
  // @ts-ignore
@@ -146,9 +141,7 @@ var FlatColorPickerVue2 = {
146
141
  // @ts-ignore
147
142
  render: function render(createElement) {
148
143
  var _this2 = this;
149
-
150
144
  var _this = this;
151
-
152
145
  var h = gh || createElement;
153
146
  var localizationService = provideLocalizationService(this);
154
147
  var gradientMessage = localizationService.toLanguageString(flatColorPickerGradientBtn, messages[flatColorPickerGradientBtn]);
@@ -166,7 +159,6 @@ var FlatColorPickerVue2 = {
166
159
  h: h,
167
160
  template: footerTemplate
168
161
  });
169
-
170
162
  var renderGradiente = function renderGradiente() {
171
163
  return h(ColorGradient, __assign({
172
164
  attrs: this.v3 ? undefined : __assign({
@@ -186,7 +178,6 @@ var FlatColorPickerVue2 = {
186
178
  }
187
179
  }, this.gradientSettings));
188
180
  };
189
-
190
181
  var renderPalette = function renderPalette() {
191
182
  return h(ColorPalette, __assign({
192
183
  on: this.v3 ? undefined : {
@@ -204,7 +195,6 @@ var FlatColorPickerVue2 = {
204
195
  onKeydown: this.gradientKeyDown
205
196
  }, this.paletteSettings));
206
197
  };
207
-
208
198
  return h("div", {
209
199
  tabindex: getTabIndex(this.$props.tabIndex, this.$props.disabled),
210
200
  attrs: this.v3 ? undefined : {
@@ -229,9 +219,11 @@ var FlatColorPickerVue2 = {
229
219
  "class": "k-coloreditor-header k-hstack"
230
220
  }, [this.$props.view === 'combo' && h("div", {
231
221
  "class": "k-coloreditor-header-actions k-hstack"
232
- }, [// @ts-ignore function children
222
+ }, [
223
+ // @ts-ignore function children
233
224
  h(ButtonGroup, this.v3 ? function () {
234
- return [// @ts-ignore function children
225
+ return [
226
+ // @ts-ignore function children
235
227
  h(Button, {
236
228
  tabIndex: _this2.computedTabIndex,
237
229
  attrs: _this2.v3 ? undefined : {
@@ -263,7 +255,8 @@ var FlatColorPickerVue2 = {
263
255
  })];
264
256
  } : [h("span", {
265
257
  "class": "k-icon k-i-color-canvas"
266
- })]), // @ts-ignore function children
258
+ })]),
259
+ // @ts-ignore function children
267
260
  h(Button, {
268
261
  tabIndex: _this2.computedTabIndex,
269
262
  attrs: _this2.v3 ? undefined : {
@@ -362,7 +355,8 @@ var FlatColorPickerVue2 = {
362
355
  "class": "k-spacer"
363
356
  }), h("div", {
364
357
  "class": "k-coloreditor-header-actions k-hstack"
365
- }, [this.$props.showClearButton && // @ts-ignore function children
358
+ }, [this.$props.showClearButton &&
359
+ // @ts-ignore function children
366
360
  h(Button, {
367
361
  tabIndex: this.computedTabIndex,
368
362
  attrs: this.v3 ? undefined : {
@@ -410,7 +404,8 @@ var FlatColorPickerVue2 = {
410
404
  "class": "k-coloreditor-views k-vstack"
411
405
  }, [this.isColorGradient ? renderGradiente.call(this) : renderPalette.call(this)]), this.$props.showButtons && h("div", {
412
406
  "class": "k-coloreditor-footer k-actions k-actions-end"
413
- }, [// @ts-ignore function children
407
+ }, [
408
+ // @ts-ignore function children
414
409
  h(Button, {
415
410
  tabIndex: this.computedTabIndex,
416
411
  attrs: this.v3 ? undefined : {
@@ -427,7 +422,8 @@ var FlatColorPickerVue2 = {
427
422
  onClick: this.handleCancelBtnClick
428
423
  }, this.v3 ? function () {
429
424
  return [cancelMessage];
430
- } : [cancelMessage]), // @ts-ignore function children
425
+ } : [cancelMessage]),
426
+ // @ts-ignore function children
431
427
  h(Button, {
432
428
  tabIndex: this.computedTabIndex,
433
429
  attrs: this.v3 ? undefined : {
@@ -449,7 +445,6 @@ var FlatColorPickerVue2 = {
449
445
  methods: {
450
446
  focus: function focus() {
451
447
  var _this = this;
452
-
453
448
  this.focused = true;
454
449
  setTimeout(function () {
455
450
  focusFirstFocusableChild(_this.$el);
@@ -469,21 +464,18 @@ var FlatColorPickerVue2 = {
469
464
  },
470
465
  handleResetColor: function handleResetColor() {
471
466
  this.colorValue = null;
472
-
473
467
  if (!this.showButtons) {
474
468
  this.triggerChange();
475
469
  }
476
470
  },
477
471
  handleColorChange: function handleColorChange(event) {
478
472
  this.colorValue = event.value;
479
-
480
473
  if (!this.showButtons) {
481
474
  this.triggerChange(event);
482
475
  }
483
476
  },
484
477
  handlePaletteColorChange: function handlePaletteColorChange(event) {
485
478
  this.colorValue = event.value;
486
-
487
479
  if (!this.showButtons) {
488
480
  this.triggerChange(event);
489
481
  }
@@ -507,7 +499,6 @@ var FlatColorPickerVue2 = {
507
499
  },
508
500
  gradientKeyDown: function gradientKeyDown(event) {
509
501
  event.stopPropagation();
510
-
511
502
  if (!this.showButtons && event.keyCode === Keys.enter) {
512
503
  this.triggerChange(event);
513
504
  }
@@ -546,6 +537,5 @@ var FlatColorPickerVue2 = {
546
537
  /**
547
538
  * @hidden
548
539
  */
549
-
550
540
  var FlatColorPicker = FlatColorPickerVue2;
551
541
  export { FlatColorPicker, FlatColorPickerVue2 };
@@ -9,7 +9,6 @@ import { Input as KInput } from '../input/Input';
9
9
  /**
10
10
  * @hidden
11
11
  */
12
-
13
12
  var HexInputVue2 = {
14
13
  name: 'KendoHexInput',
15
14
  // @ts-ignore
@@ -81,7 +80,6 @@ var HexInputVue2 = {
81
80
  var hex = event.target.value;
82
81
  var value = parseColor(hex, 'rgba');
83
82
  this.currentHex = hex;
84
-
85
83
  if (isPresent(value)) {
86
84
  this.$emit('hexchange', {
87
85
  hex: hex,
@@ -94,7 +92,6 @@ var HexInputVue2 = {
94
92
  if (!isPresent(parseColor(this.hex, 'rgba'))) {
95
93
  this.currentHex = this.originalHex;
96
94
  }
97
-
98
95
  this.$emit('blur', event);
99
96
  },
100
97
  onFocus: function onFocus(event) {
@@ -105,6 +102,5 @@ var HexInputVue2 = {
105
102
  /**
106
103
  * @hidden
107
104
  */
108
-
109
105
  var HexInput = HexInputVue2;
110
106
  export { HexInput, HexInputVue2 };
@@ -8,17 +8,14 @@ import { classNames, getDefaultSlots } from '@progress/kendo-vue-common';
8
8
  /**
9
9
  * @hidden
10
10
  */
11
-
12
11
  var ANCHOR_VERTICAL_ALIGN = 'bottom';
13
12
  /**
14
13
  * @hidden
15
14
  */
16
-
17
15
  var POPUP_VERTICAL_ALIGN = 'top';
18
16
  /**
19
17
  * @hidden
20
18
  */
21
-
22
19
  var PickerVue2 = {
23
20
  name: 'KendoPicker',
24
21
  props: {
@@ -57,11 +54,12 @@ var PickerVue2 = {
57
54
  var h = gh || createElement;
58
55
  var defaultSlot = getDefaultSlots(this);
59
56
  var _a = this.$props.popupSettings,
60
- popupClass = _a.popupClass,
61
- appendTo = _a.appendTo,
62
- animate = _a.animate,
63
- className = _a.className;
64
- return (// @ts-ignore function children
57
+ popupClass = _a.popupClass,
58
+ appendTo = _a.appendTo,
59
+ animate = _a.animate,
60
+ className = _a.className;
61
+ return (
62
+ // @ts-ignore function children
65
63
  h(Popup, {
66
64
  id: this.id,
67
65
  attrs: this.v3 ? undefined : {
@@ -105,6 +103,5 @@ var PickerVue2 = {
105
103
  /**
106
104
  * @hidden
107
105
  */
108
-
109
106
  var Picker = PickerVue2;
110
107
  export { Picker, PickerVue2 };
@@ -2,19 +2,15 @@ var __assign = this && this.__assign || function () {
2
2
  __assign = Object.assign || function (t) {
3
3
  for (var s, i = 1, n = arguments.length; i < n; i++) {
4
4
  s = arguments[i];
5
-
6
5
  for (var p in s) {
7
6
  if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
8
7
  }
9
8
  }
10
-
11
9
  return t;
12
10
  };
13
-
14
11
  return __assign.apply(this, arguments);
15
- }; // @ts-ignore
16
-
17
-
12
+ };
13
+ // @ts-ignore
18
14
  import * as Vue from 'vue';
19
15
  var allVue = Vue;
20
16
  var gh = allVue.h;
@@ -26,7 +22,6 @@ import { FloatingLabel } from '@progress/kendo-vue-labels';
26
22
  /**
27
23
  * @hidden
28
24
  */
29
-
30
25
  var InputVue2 = {
31
26
  model: {
32
27
  event: 'changemodel'
@@ -152,18 +147,17 @@ var InputVue2 = {
152
147
  },
153
148
  render: function render(createElement) {
154
149
  var _this = this;
155
-
156
150
  var h = gh || createElement;
157
151
  var isValid = !this.$props.validityStyles || this.validity().valid;
158
152
  var _a = this.$props,
159
- label = _a.label,
160
- id = _a.id,
161
- required = _a.required,
162
- iconName = _a.iconName,
163
- showValidationIcon = _a.showValidationIcon,
164
- showLoadingIcon = _a.showLoadingIcon,
165
- showClearButton = _a.showClearButton,
166
- tabIndex = _a.tabIndex;
153
+ label = _a.label,
154
+ id = _a.id,
155
+ required = _a.required,
156
+ iconName = _a.iconName,
157
+ showValidationIcon = _a.showValidationIcon,
158
+ showLoadingIcon = _a.showLoadingIcon,
159
+ showClearButton = _a.showClearButton,
160
+ tabIndex = _a.tabIndex;
167
161
  var inputId = id || this._inputId;
168
162
  var textbox = h('input', __assign(__assign({
169
163
  domProps: this.v3 ? null : __assign(__assign({}, this.$attrs), {
@@ -250,7 +244,8 @@ var InputVue2 = {
250
244
  }, [h("span", {
251
245
  "class": "k-icon k-i-x"
252
246
  })])]);
253
- return label ? // @ts-ignore function children
247
+ return label ?
248
+ // @ts-ignore function children
254
249
  h(FloatingLabel, {
255
250
  label: label,
256
251
  attrs: this.v3 ? undefined : {
@@ -320,13 +315,11 @@ var InputVue2 = {
320
315
  },
321
316
  isInvalid: function isInvalid(state) {
322
317
  var result = false;
323
-
324
318
  for (var prop in state) {
325
319
  if (state.hasOwnProperty(prop)) {
326
320
  result = result || state[prop];
327
321
  }
328
322
  }
329
-
330
323
  return result;
331
324
  },
332
325
  setValidity: function setValidity() {
@@ -342,11 +335,9 @@ var InputVue2 = {
342
335
  },
343
336
  emitUpdate: function emitUpdate(event, eventName, value) {
344
337
  var that = this;
345
-
346
338
  if (this.disabled) {
347
339
  return;
348
340
  }
349
-
350
341
  this.$data.currentValue = value;
351
342
  this.$data.valueDuringOnChange = value;
352
343
  this.$nextTick(function () {
@@ -365,7 +356,6 @@ var InputVue2 = {
365
356
  handleAutoFill: function handleAutoFill(e) {
366
357
  if (e.animationName === 'autoFillStart') {
367
358
  var parent_1 = e.target.parentNode;
368
-
369
359
  if (parent_1 && parent_1.classList.contains('k-empty')) {
370
360
  this.$data.autofill = true;
371
361
  parent_1.classList.remove('k-empty');
@@ -375,7 +365,6 @@ var InputVue2 = {
375
365
  handleAutoFillEnd: function handleAutoFillEnd(e) {
376
366
  if (e.animationName === 'autoFillEnd') {
377
367
  var parent_2 = e.target.parentNode;
378
-
379
368
  if (parent_2) {
380
369
  this.$data.autofill = false;
381
370
  }
@@ -386,11 +375,10 @@ var InputVue2 = {
386
375
  },
387
376
  inputWrapperClass: function inputWrapperClass() {
388
377
  var _a;
389
-
390
378
  var _b = this.$props,
391
- size = _b.size,
392
- fillMode = _b.fillMode,
393
- rounded = _b.rounded;
379
+ size = _b.size,
380
+ fillMode = _b.fillMode,
381
+ rounded = _b.rounded;
394
382
  var isValid = !this.$data.hasMounted || !this.$props.validityStyles || this.validity().valid;
395
383
  return _a = {
396
384
  'k-textbox': true,
@@ -414,7 +402,6 @@ var InputVue2 = {
414
402
  },
415
403
  inputInnerClass: function inputInnerClass() {
416
404
  var _a;
417
-
418
405
  return _a = {
419
406
  'k-input-inner': true
420
407
  }, _a[this.inputClass] = this.inputClass, _a;
@@ -429,6 +416,5 @@ var InputVue2 = {
429
416
  /**
430
417
  * @hidden
431
418
  */
432
-
433
419
  var Input = InputVue2;
434
420
  export { Input, InputVue2 };
@@ -8,7 +8,6 @@ import { validatePackage } from '@progress/kendo-vue-common';
8
8
  /**
9
9
  * @hidden
10
10
  */
11
-
12
11
  var InputSeparatorVue2 = {
13
12
  created: function created() {
14
13
  validatePackage(packageMetadata);
@@ -37,6 +36,5 @@ var InputSeparatorVue2 = {
37
36
  * </template>
38
37
  * ```
39
38
  */
40
-
41
39
  var InputSeparator = InputSeparatorVue2;
42
40
  export { InputSeparator, InputSeparatorVue2 };