@progress/kendo-vue-inputs 2.7.2-dev.202201051440 → 2.8.0-dev.202201111325

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/additionalTypes.ts +7 -1
  3. package/dist/es/checkbox/Checkbox.d.ts +5 -6
  4. package/dist/es/checkbox/Checkbox.js +38 -22
  5. package/dist/es/checkbox/interfaces/CheckboxProps.d.ts +24 -0
  6. package/dist/es/colors/ColorPalette.d.ts +6 -6
  7. package/dist/es/colors/ColorPalette.js +5 -4
  8. package/dist/es/colors/ColorPicker.d.ts +5 -6
  9. package/dist/es/colors/ColorPicker.js +47 -48
  10. package/dist/es/colors/Picker.d.ts +5 -6
  11. package/dist/es/colors/Picker.js +3 -3
  12. package/dist/es/colors/interfaces/ColorPickerProps.d.ts +2 -2
  13. package/dist/es/input/Input.d.ts +42 -6
  14. package/dist/es/input/Input.js +29 -8
  15. package/dist/es/main.d.ts +1 -1
  16. package/dist/es/main.js +1 -1
  17. package/dist/es/maskedtextbox/MaskedTextBox.d.ts +5 -6
  18. package/dist/es/maskedtextbox/MaskedTextBox.js +38 -14
  19. package/dist/es/maskedtextbox/MaskedTextBoxProps.d.ts +37 -0
  20. package/dist/es/numerictextbox/NumericTextBox.d.ts +5 -6
  21. package/dist/es/numerictextbox/NumericTextBox.js +61 -37
  22. package/dist/es/numerictextbox/interfaces/NumericTextBoxProps.d.ts +37 -0
  23. package/dist/es/package-metadata.js +1 -1
  24. package/dist/es/radiobutton/RadioButton.d.ts +5 -6
  25. package/dist/es/radiobutton/RadioButton.js +13 -8
  26. package/dist/es/radiobutton/RadioGroup.d.ts +5 -6
  27. package/dist/es/radiobutton/RadioGroup.js +3 -3
  28. package/dist/es/radiobutton/interfaces/RadioButtonProps.d.ts +12 -0
  29. package/dist/es/slider/Slider.d.ts +5 -6
  30. package/dist/es/slider/Slider.js +30 -25
  31. package/dist/es/slider/SliderLabel.d.ts +5 -6
  32. package/dist/es/slider/SliderLabel.js +3 -3
  33. package/dist/es/switch/Switch.d.ts +45 -6
  34. package/dist/es/switch/Switch.js +56 -24
  35. package/dist/es/textarea/TextArea.d.ts +5 -6
  36. package/dist/es/textarea/TextArea.js +40 -11
  37. package/dist/es/textarea/interfaces/TextAreaProps.d.ts +37 -0
  38. package/dist/npm/additionalTypes.ts +7 -1
  39. package/dist/npm/checkbox/Checkbox.d.ts +5 -6
  40. package/dist/npm/checkbox/Checkbox.js +39 -23
  41. package/dist/npm/checkbox/interfaces/CheckboxProps.d.ts +24 -0
  42. package/dist/npm/colors/ColorPalette.d.ts +6 -6
  43. package/dist/npm/colors/ColorPalette.js +6 -5
  44. package/dist/npm/colors/ColorPicker.d.ts +5 -6
  45. package/dist/npm/colors/ColorPicker.js +50 -51
  46. package/dist/npm/colors/Picker.d.ts +5 -6
  47. package/dist/npm/colors/Picker.js +5 -5
  48. package/dist/npm/colors/interfaces/ColorPickerProps.d.ts +2 -2
  49. package/dist/npm/input/Input.d.ts +42 -6
  50. package/dist/npm/input/Input.js +31 -10
  51. package/dist/npm/main.d.ts +1 -1
  52. package/dist/npm/main.js +1 -0
  53. package/dist/npm/maskedtextbox/MaskedTextBox.d.ts +5 -6
  54. package/dist/npm/maskedtextbox/MaskedTextBox.js +39 -15
  55. package/dist/npm/maskedtextbox/MaskedTextBoxProps.d.ts +37 -0
  56. package/dist/npm/numerictextbox/NumericTextBox.d.ts +5 -6
  57. package/dist/npm/numerictextbox/NumericTextBox.js +63 -38
  58. package/dist/npm/numerictextbox/interfaces/NumericTextBoxProps.d.ts +37 -0
  59. package/dist/npm/package-metadata.js +1 -1
  60. package/dist/npm/radiobutton/RadioButton.d.ts +5 -6
  61. package/dist/npm/radiobutton/RadioButton.js +14 -9
  62. package/dist/npm/radiobutton/RadioGroup.d.ts +5 -6
  63. package/dist/npm/radiobutton/RadioGroup.js +5 -5
  64. package/dist/npm/radiobutton/interfaces/RadioButtonProps.d.ts +12 -0
  65. package/dist/npm/slider/Slider.d.ts +5 -6
  66. package/dist/npm/slider/Slider.js +33 -27
  67. package/dist/npm/slider/SliderLabel.d.ts +5 -6
  68. package/dist/npm/slider/SliderLabel.js +5 -5
  69. package/dist/npm/switch/Switch.d.ts +45 -6
  70. package/dist/npm/switch/Switch.js +57 -25
  71. package/dist/npm/textarea/TextArea.d.ts +5 -6
  72. package/dist/npm/textarea/TextArea.js +41 -12
  73. package/dist/npm/textarea/interfaces/TextAreaProps.d.ts +37 -0
  74. package/package.json +10 -9
@@ -5,13 +5,13 @@ var gh = allVue.h;
5
5
  var ref = allVue.ref;
6
6
  import { MaskingService } from './masking.service';
7
7
  import { defaultRules, maskingChanged, returnFalse } from './utils';
8
- import { guid, classNames, getTabIndex, validatePackage } from '@progress/kendo-vue-common';
8
+ import { guid, classNames, getTabIndex, validatePackage, kendoThemeMaps } from '@progress/kendo-vue-common';
9
9
  import { packageMetadata } from '../package-metadata';
10
10
  /**
11
11
  * Represents the default `MaskedTextBox` component.
12
12
  */
13
13
 
14
- var MaskedTextBox = {
14
+ var MaskedTextBoxVue2 = {
15
15
  model: {
16
16
  event: 'changemodel'
17
17
  },
@@ -30,6 +30,27 @@ var MaskedTextBox = {
30
30
  accessKey: String,
31
31
  disabled: Boolean,
32
32
  readonly: Boolean,
33
+ size: {
34
+ type: String,
35
+ default: 'medium',
36
+ validator: function validator(value) {
37
+ return [null, 'small', 'medium', 'large'].includes(value);
38
+ }
39
+ },
40
+ rounded: {
41
+ type: String,
42
+ default: 'medium',
43
+ validator: function validator(value) {
44
+ return [null, 'small', 'medium', 'large', 'full'].includes(value);
45
+ }
46
+ },
47
+ fillMode: {
48
+ type: String,
49
+ default: 'solid',
50
+ validator: function validator(value) {
51
+ return [null, 'solid', 'flat', 'outline'].includes(value);
52
+ }
53
+ },
33
54
  prompt: {
34
55
  type: String,
35
56
  default: '_'
@@ -168,10 +189,10 @@ var MaskedTextBox = {
168
189
  get: function get() {
169
190
  var isValid = !this.hasMounted || !this.$props.validityStyles || this.validity().valid;
170
191
  return {
171
- 'k-textbox-container': true,
172
- 'k-state-focused': this.currentFocused,
173
- 'k-state-empty': !this.computedValue(),
174
- 'k-state-invalid': !isValid && isValid !== undefined,
192
+ 'k-floating-label-container': true,
193
+ 'k-focus': this.currentFocused,
194
+ 'k-empty': !this.computedValue(),
195
+ 'k-invalid': !isValid && isValid !== undefined,
175
196
  'k-rtl': this.$props.dir === 'rtl'
176
197
  };
177
198
  }
@@ -311,11 +332,18 @@ var MaskedTextBox = {
311
332
  }
312
333
  }
313
334
  },
335
+ // @ts-ignore
314
336
  render: function render(createElement) {
337
+ var _a;
338
+
315
339
  var _this = this;
316
340
 
317
341
  var h = gh || createElement;
318
342
  var inputId = this.$props.id || this.inputId;
343
+ var _b = this.$props,
344
+ size = _b.size,
345
+ fillMode = _b.fillMode,
346
+ rounded = _b.rounded;
319
347
  var isValid = !this.hasMounted || !this.$props.validityStyles || this.validity().valid;
320
348
  var newValue = this.computedValue();
321
349
  var inputValue = this.inputValue;
@@ -324,11 +352,7 @@ var MaskedTextBox = {
324
352
  attrs: this.v3 ? undefined : {
325
353
  dir: this.$props.dir
326
354
  },
327
- "class": classNames('k-widget k-maskedtextbox', this.$props.className, {
328
- 'k-state-focused': this.currentFocused,
329
- 'k-state-disabled': this.$props.disabled,
330
- 'k-state-invalid': !isValid
331
- }),
355
+ "class": classNames('k-maskedtextbox k-input', (_a = {}, _a["k-input-" + (kendoThemeMaps.sizeMap[size] || size)] = size, _a["k-input-" + fillMode] = fillMode, _a["k-rounded-" + (kendoThemeMaps.roundedMap[rounded] || rounded)] = rounded, _a['k-valid'] = isValid, _a['k-invalid'] = !isValid, _a['k-required'] = this.required, _a['k-disabled'] = this.$props.disabled, _a)),
332
356
  style: !this.$props.label ? {
333
357
  width: this.$props.width
334
358
  } : undefined
@@ -355,7 +379,7 @@ var MaskedTextBox = {
355
379
  autoCorrect: "off",
356
380
  autoCapitalize: "off",
357
381
  spellCheck: false,
358
- "class": "k-textbox",
382
+ "class": "k-input k-input-inner",
359
383
  value: this.v3 ? newValue : null,
360
384
  domProps: this.v3 ? undefined : {
361
385
  "value": newValue
@@ -405,5 +429,5 @@ var MaskedTextBox = {
405
429
  }, [this.$props.label]) : null]) : component;
406
430
  }
407
431
  };
408
- var MaskedTextBoxVue3 = MaskedTextBox;
409
- export { MaskedTextBox, MaskedTextBoxVue3 };
432
+ var MaskedTextBox = MaskedTextBoxVue2;
433
+ export { MaskedTextBox, MaskedTextBoxVue2 };
@@ -53,6 +53,43 @@ export interface MaskedTextBoxProps extends FormComponentProps {
53
53
  * Represents the `dir` HTML attribute.
54
54
  */
55
55
  dir?: string;
56
+ /**
57
+ * Configures the `size` of the MaskedTextBox.
58
+ *
59
+ * The available options are:
60
+ * - small
61
+ * - medium
62
+ * - large
63
+ * - null—Does not set a size `class`.
64
+ *
65
+ * @default `medium`
66
+ */
67
+ size?: null | 'small' | 'medium' | 'large' | string;
68
+ /**
69
+ * Configures the `roundness` of the MaskedTextBox.
70
+ *
71
+ * The available options are:
72
+ * - small
73
+ * - medium
74
+ * - large
75
+ * - full
76
+ * - null—Does not set a rounded `class`.
77
+ *
78
+ * @default `medium`
79
+ */
80
+ rounded?: null | 'small' | 'medium' | 'large' | 'full' | string;
81
+ /**
82
+ * Configures the `fillMode` of the MaskedTextBox.
83
+ *
84
+ * The available options are:
85
+ * - solid
86
+ * - outline
87
+ * - flat
88
+ * - null—Does not set a fillMode `class`.
89
+ *
90
+ * @default `solid`
91
+ */
92
+ fillMode?: null | 'solid' | 'flat' | 'outline' | string;
56
93
  /**
57
94
  * Sets the `tabIndex` property of the MaskedTextBox.
58
95
  */
@@ -1,5 +1,4 @@
1
- import { DefineComponent } from '../additionalTypes';
2
- import { RecordPropsDefinition, ComponentOptions } from 'vue/types/options';
1
+ import { DefineComponent, RecordPropsDefinition, ComponentOptions, Vue2type } from '../additionalTypes';
3
2
  import { NumericTextBoxData } from './interfaces/NumericTextBoxData';
4
3
  import { NumericTextBoxProps } from './interfaces/NumericTextBoxProps';
5
4
  declare type DefaultData<V> = object | ((this: V) => NumericTextBoxData);
@@ -71,8 +70,8 @@ export interface NumericTextBoxComputed {
71
70
  /**
72
71
  * @hidden
73
72
  */
74
- export interface NumericTextBoxAll extends Vue, NumericTextBoxMethods, NumericTextBoxComputed, NumericTextBoxState {
73
+ export interface NumericTextBoxAll extends Vue2type, NumericTextBoxMethods, NumericTextBoxComputed, NumericTextBoxState {
75
74
  }
76
- declare let NumericTextBox: ComponentOptions<NumericTextBoxAll, DefaultData<NumericTextBoxData>, DefaultMethods<NumericTextBoxAll>, NumericTextBoxComputed, RecordPropsDefinition<NumericTextBoxProps>>;
77
- declare const NumericTextBoxVue3: DefineComponent<NumericTextBoxProps, any, NumericTextBoxData, NumericTextBoxComputed, NumericTextBoxMethods, {}, {}, {}, string, NumericTextBoxProps, NumericTextBoxProps, {}>;
78
- export { NumericTextBox, NumericTextBoxVue3 };
75
+ declare let NumericTextBoxVue2: ComponentOptions<NumericTextBoxAll, DefaultData<NumericTextBoxData>, DefaultMethods<NumericTextBoxAll>, NumericTextBoxComputed, RecordPropsDefinition<NumericTextBoxProps>>;
76
+ declare const NumericTextBox: DefineComponent<NumericTextBoxProps, any, NumericTextBoxData, NumericTextBoxComputed, NumericTextBoxMethods, {}, {}, {}, string, NumericTextBoxProps, NumericTextBoxProps, {}>;
77
+ export { NumericTextBox, NumericTextBoxVue2 };
@@ -4,14 +4,15 @@ var allVue = Vue;
4
4
  var gh = allVue.h;
5
5
  var ref = allVue.ref;
6
6
  var inject = allVue.inject;
7
- import { canUseDOM, getDefaultSlots } from '@progress/kendo-vue-common';
7
+ import { canUseDOM, getDefaultSlots, kendoThemeMaps } from '@progress/kendo-vue-common';
8
8
  import { provideIntlService, provideLocalizationService } from '@progress/kendo-vue-intl';
9
9
  import { guid, validatePackage } from '@progress/kendo-vue-common';
10
+ import { Button as KButton } from '@progress/kendo-vue-buttons';
10
11
  import { messages, numericIncreaseValue, numericDecreaseValue } from './../messages';
11
12
  import { formatValue, sanitizeNumber, rangeValue, increaseValue, decreaseValue, getStateOrPropsValue } from './utils';
12
13
  import { packageMetadata } from '../package-metadata';
13
14
  var VALIDATION_MESSAGE = 'Please enter a valid value!';
14
- var NumericTextBox = {
15
+ var NumericTextBoxVue2 = {
15
16
  model: {
16
17
  event: 'changemodel'
17
18
  },
@@ -59,6 +60,27 @@ var NumericTextBox = {
59
60
  type: Boolean,
60
61
  default: undefined
61
62
  },
63
+ size: {
64
+ type: String,
65
+ default: 'medium',
66
+ validator: function validator(value) {
67
+ return [null, 'small', 'medium', 'large'].includes(value);
68
+ }
69
+ },
70
+ rounded: {
71
+ type: String,
72
+ default: 'medium',
73
+ validator: function validator(value) {
74
+ return [null, 'small', 'medium', 'large', 'full'].includes(value);
75
+ }
76
+ },
77
+ fillMode: {
78
+ type: String,
79
+ default: 'solid',
80
+ validator: function validator(value) {
81
+ return [null, 'solid', 'flat', 'outline'].includes(value);
82
+ }
83
+ },
62
84
  required: {
63
85
  type: Boolean,
64
86
  default: false
@@ -154,23 +176,27 @@ var NumericTextBox = {
154
176
  var compValue = this.computedValue;
155
177
  return {
156
178
  'k-floating-label-container': true,
157
- 'k-state-focused': this.$data.focused,
158
- 'k-state-empty': !(compValue === 0 ? true : compValue || this.$props.placeholder),
159
- 'k-state-invalid': !isValid && isValid !== undefined,
179
+ 'k-focus': this.$data.focused,
180
+ 'k-empty': !(compValue === 0 ? true : compValue || this.$props.placeholder),
181
+ 'k-invalid': !isValid && isValid !== undefined,
160
182
  'k-rtl': this.$props.dir === 'rtl'
161
183
  };
162
184
  }
163
185
  },
164
- wrapperClassNames: {
165
- get: function get() {
166
- var isValid = !this.$props.validityStyles || this.validity().valid;
167
- return {
168
- 'k-numeric-wrap': true,
169
- 'k-state-focused': this.$data.focused,
170
- 'k-state-disabled': this.$props.disabled,
171
- 'k-state-invalid': !isValid || this.$data.isInvalid
172
- };
173
- }
186
+ wrapperClassNames: function wrapperClassNames() {
187
+ var _a;
188
+
189
+ var _b = this.$props,
190
+ size = _b.size,
191
+ fillMode = _b.fillMode,
192
+ rounded = _b.rounded,
193
+ required = _b.required,
194
+ disabled = _b.disabled;
195
+ var isValid = !this.$props.validityStyles || this.validity().valid;
196
+ return _a = {
197
+ 'k-input': true,
198
+ 'k-numerictextbox': true
199
+ }, _a["k-input-" + (kendoThemeMaps.sizeMap[size] || size)] = size, _a["k-input-" + fillMode] = fillMode, _a["k-rounded-" + (kendoThemeMaps.roundedMap[rounded] || rounded)] = rounded, _a['k-valid'] = isValid, _a['k-invalid'] = !isValid, _a['k-required'] = required, _a['k-disabled'] = disabled, _a;
174
200
  }
175
201
  },
176
202
  methods: {
@@ -266,7 +292,7 @@ var NumericTextBox = {
266
292
  if (newState.valueIsCorrected) {
267
293
  var wrapper = this._elementWrapper;
268
294
 
269
- if (wrapper && wrapper.className.indexOf("k-state-invalid") === -1) {
295
+ if (wrapper && wrapper.className.indexOf("k-invalid") === -1) {
270
296
  this.$data.isInvalid = true;
271
297
  setTimeout(function () {
272
298
  _this.$data.isInvalid = false;
@@ -438,13 +464,9 @@ var NumericTextBox = {
438
464
  dir: this.$props.dir,
439
465
  "aria-disabled": this.$props.disabled ? 'true' : undefined
440
466
  },
441
- "class": 'k-widget k-numerictextbox',
442
- "aria-disabled": this.$props.disabled ? 'true' : undefined
443
- }, [h("span", {
444
467
  "class": this.wrapperClassNames,
445
- ref: this.v3 ? function (el) {
446
- _this.elementWrapperRef = el;
447
- } : 'elementWrapper'
468
+ "aria-disabled": this.$props.disabled ? 'true' : undefined,
469
+ style: this.$attrs.style
448
470
  }, [h("input", {
449
471
  tabIndex: this.$props.tabIndex,
450
472
  attrs: this.v3 ? undefined : {
@@ -473,7 +495,7 @@ var NumericTextBox = {
473
495
  spellCheck: false,
474
496
  autoComplete: "off",
475
497
  autoCorrect: "off",
476
- "class": "k-input k-formatted-value",
498
+ "class": "k-input k-input-inner",
477
499
  id: inputId,
478
500
  value: this.v3 ? this.looseValue : null,
479
501
  domProps: this.v3 ? undefined : {
@@ -499,40 +521,42 @@ var NumericTextBox = {
499
521
  _this.inputRef = el;
500
522
  } : 'input'
501
523
  }), defaultSlot, this.$props.spinners && h("span", {
502
- "class": "k-select",
524
+ "class": "k-input-spinner k-spin-button",
503
525
  onMousedown: this.spinnersWrapperMouseDown,
504
526
  on: this.v3 ? undefined : {
505
527
  "mousedown": this.spinnersWrapperMouseDown
506
528
  }
507
- }, [h("span", {
508
- "class": "k-link k-link-increase",
509
- "aria-label": localizationService.toLanguageString(numericIncreaseValue, messages[numericIncreaseValue]),
529
+ }, [// @ts-ignore
530
+ h(KButton, {
531
+ icon: 'arrow-n',
510
532
  attrs: this.v3 ? undefined : {
533
+ icon: 'arrow-n',
511
534
  "aria-label": localizationService.toLanguageString(numericIncreaseValue, messages[numericIncreaseValue]),
512
535
  title: localizationService.toLanguageString(numericIncreaseValue, messages[numericIncreaseValue])
513
536
  },
537
+ "class": "k-spinner-increase",
538
+ "aria-label": localizationService.toLanguageString(numericIncreaseValue, messages[numericIncreaseValue]),
514
539
  title: localizationService.toLanguageString(numericIncreaseValue, messages[numericIncreaseValue]),
515
540
  onClick: this.increase,
516
541
  on: this.v3 ? undefined : {
517
542
  "click": this.increase
518
543
  }
519
- }, [h("span", {
520
- "class": "k-icon k-i-arrow-n"
521
- })]), h("span", {
522
- "class": "k-link k-link-decrease",
523
- "aria-label": localizationService.toLanguageString(numericDecreaseValue, messages[numericDecreaseValue]),
544
+ }), // @ts-ignore
545
+ h(KButton, {
546
+ "class": "k-spinner-decrease",
547
+ icon: 'arrow-s',
524
548
  attrs: this.v3 ? undefined : {
549
+ icon: 'arrow-s',
525
550
  "aria-label": localizationService.toLanguageString(numericDecreaseValue, messages[numericDecreaseValue]),
526
551
  title: localizationService.toLanguageString(numericDecreaseValue, messages[numericDecreaseValue])
527
552
  },
553
+ "aria-label": localizationService.toLanguageString(numericDecreaseValue, messages[numericDecreaseValue]),
528
554
  title: localizationService.toLanguageString(numericDecreaseValue, messages[numericDecreaseValue]),
529
555
  onClick: this.decrease,
530
556
  on: this.v3 ? undefined : {
531
557
  "click": this.decrease
532
558
  }
533
- }, [h("span", {
534
- "class": "k-icon k-i-arrow-s"
535
- })])])])]);
559
+ })])]);
536
560
  return this.$props.label ? h("span", {
537
561
  "class": this.spanClassNames,
538
562
  onFocusin: this.handleFocus,
@@ -556,5 +580,5 @@ var NumericTextBox = {
556
580
  }, [this.$props.label]) : null]) : numerictextbox;
557
581
  }
558
582
  };
559
- var NumericTextBoxVue3 = NumericTextBox;
560
- export { NumericTextBox, NumericTextBoxVue3 };
583
+ var NumericTextBox = NumericTextBoxVue2;
584
+ export { NumericTextBox, NumericTextBoxVue2 };
@@ -29,6 +29,43 @@ export interface NumericTextBoxProps extends FormComponentProps {
29
29
  * Sets the `tabIndex` property of the NumericTextBox.
30
30
  */
31
31
  tabIndex?: number;
32
+ /**
33
+ * Configures the `size` of the NumericTextBox.
34
+ *
35
+ * The available options are:
36
+ * - small
37
+ * - medium
38
+ * - large
39
+ * - null&mdash;Does not set a size `class`.
40
+ *
41
+ * @default `medium`
42
+ */
43
+ size?: null | 'small' | 'medium' | 'large' | string;
44
+ /**
45
+ * Configures the `roundness` of the NumericTextBox.
46
+ *
47
+ * The available options are:
48
+ * - small
49
+ * - medium
50
+ * - large
51
+ * - full
52
+ * - null&mdash;Does not set a rounded `class`.
53
+ *
54
+ * @default `medium`
55
+ */
56
+ rounded?: null | 'small' | 'medium' | 'large' | 'full' | string;
57
+ /**
58
+ * Configures the `fillMode` of the NumericTextBox.
59
+ *
60
+ * The available options are:
61
+ * - solid
62
+ * - outline
63
+ * - flat
64
+ * - null&mdash;Does not set a fillMode `class`.
65
+ *
66
+ * @default `solid`
67
+ */
68
+ fillMode?: null | 'solid' | 'flat' | 'outline' | string;
32
69
  /**
33
70
  * Specifies the `accessKey` of the NumericTextBox.
34
71
  */
@@ -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: 1641392919,
8
+ publishDate: 1641906796,
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
  };
@@ -1,5 +1,4 @@
1
- import { DefineComponent } from '../additionalTypes';
2
- import { RecordPropsDefinition, ComponentOptions } from 'vue/types/options';
1
+ import { DefineComponent, RecordPropsDefinition, ComponentOptions, Vue2type } from '../additionalTypes';
3
2
  declare type DefaultData<V> = object | ((this: V) => {});
4
3
  declare type DefaultMethods<V> = {
5
4
  [key: string]: (this: V, ...args: any[]) => any;
@@ -43,8 +42,8 @@ export interface RadioButtonComputed {
43
42
  /**
44
43
  * @hidden
45
44
  */
46
- export interface RadioButtonAll extends Vue, RadioButtonMethods, RadioButtonComputed, RadioButtonState, RadioButtonData {
45
+ export interface RadioButtonAll extends Vue2type, RadioButtonMethods, RadioButtonComputed, RadioButtonState, RadioButtonData {
47
46
  }
48
- declare let RadioButton: ComponentOptions<RadioButtonAll, DefaultData<RadioButtonData>, DefaultMethods<RadioButtonAll>, RadioButtonComputed, RecordPropsDefinition<RadioButtonProps>>;
49
- declare let RadioButtonVue3: DefineComponent<RadioButtonProps, any, RadioButtonData, RadioButtonComputed, RadioButtonMethods, {}, {}, {}, string, RadioButtonProps, RadioButtonProps, {}>;
50
- export { RadioButton, RadioButtonVue3 };
47
+ declare let RadioButtonVue2: ComponentOptions<RadioButtonAll, DefaultData<RadioButtonData>, DefaultMethods<RadioButtonAll>, RadioButtonComputed, RecordPropsDefinition<RadioButtonProps>>;
48
+ declare let RadioButton: DefineComponent<RadioButtonProps, any, RadioButtonData, RadioButtonComputed, RadioButtonMethods, {}, {}, {}, string, RadioButtonProps, RadioButtonProps, {}>;
49
+ export { RadioButton, RadioButtonVue2 };
@@ -4,10 +4,10 @@ var allVue = Vue;
4
4
  var gh = allVue.h;
5
5
  var ref = allVue.ref;
6
6
  var inject = allVue.inject;
7
- import { guid, getTabIndex, getDefaultSlots, templateRendering, getTemplate, getListeners } from '@progress/kendo-vue-common';
7
+ import { guid, getTabIndex, getDefaultSlots, templateRendering, getTemplate, getListeners, kendoThemeMaps } from '@progress/kendo-vue-common';
8
8
  import { validatePackage } from '@progress/kendo-vue-common';
9
9
  import { packageMetadata } from '../package-metadata';
10
- var RadioButton = {
10
+ var RadioButtonVue2 = {
11
11
  name: 'KendoRadioButton',
12
12
  props: {
13
13
  ariaDescribedBy: String,
@@ -19,6 +19,13 @@ var RadioButton = {
19
19
  labelRender: [String, Number, Boolean, Object],
20
20
  labelPlacement: String,
21
21
  name: String,
22
+ size: {
23
+ type: String,
24
+ default: 'medium',
25
+ validator: function validator(value) {
26
+ return [null, 'small', 'medium', 'large'].includes(value);
27
+ }
28
+ },
22
29
  tabIndex: Number,
23
30
  value: [String, Number, Object],
24
31
  valid: {
@@ -44,10 +51,8 @@ var RadioButton = {
44
51
  var _a;
45
52
 
46
53
  return _a = {
47
- 'k-radio': true,
48
- 'k-state-invalid': this.$props.valid === false,
49
- 'k-invalid': this.$props.valid === false
50
- }, _a[this.$props.className] = this.$props.className, _a;
54
+ 'k-radio': true
55
+ }, _a["k-radio-" + kendoThemeMaps.sizeMap[this.$props.size]] = this.$props.size, _a['k-state-invalid'] = this.$props.valid === false, _a['k-invalid'] = this.$props.valid === false, _a[this.$props.className] = this.$props.className, _a;
51
56
  }
52
57
  },
53
58
  methods: {
@@ -158,5 +163,5 @@ var RadioButton = {
158
163
  return labelPlacement === 'before' ? h("div", [radioButtonLabel, radio, defaultSlot]) : h("div", [radio, radioButtonLabel, defaultSlot]);
159
164
  }
160
165
  };
161
- var RadioButtonVue3 = RadioButton;
162
- export { RadioButton, RadioButtonVue3 };
166
+ var RadioButton = RadioButtonVue2;
167
+ export { RadioButton, RadioButtonVue2 };
@@ -1,5 +1,4 @@
1
- import { DefineComponent } from '../additionalTypes';
2
- import { RecordPropsDefinition, ComponentOptions } from 'vue/types/options';
1
+ import { DefineComponent, RecordPropsDefinition, ComponentOptions, Vue2type } from '../additionalTypes';
3
2
  declare type DefaultData<V> = object | ((this: V) => {});
4
3
  declare type DefaultMethods<V> = {
5
4
  [key: string]: (this: V, ...args: any[]) => any;
@@ -45,8 +44,8 @@ export interface RadioGroupComputed {
45
44
  /**
46
45
  * @hidden
47
46
  */
48
- export interface RadioGroupAll extends Vue, RadioGroupMethods, RadioGroupComputed, RadioGroupState, RadioGroupData {
47
+ export interface RadioGroupAll extends Vue2type, RadioGroupMethods, RadioGroupComputed, RadioGroupState, RadioGroupData {
49
48
  }
50
- declare let RadioGroup: ComponentOptions<RadioGroupAll, DefaultData<RadioGroupData>, DefaultMethods<RadioGroupAll>, RadioGroupComputed, RecordPropsDefinition<RadioGroupProps>>;
51
- declare let RadioGroupVue3: DefineComponent<RadioGroupProps, any, RadioGroupData, RadioGroupComputed, RadioGroupMethods, {}, {}, {}, string, RadioGroupProps, RadioGroupProps, {}>;
52
- export { RadioGroup, RadioGroupVue3 };
49
+ declare let RadioGroupVue2: ComponentOptions<RadioGroupAll, DefaultData<RadioGroupData>, DefaultMethods<RadioGroupAll>, RadioGroupComputed, RecordPropsDefinition<RadioGroupProps>>;
50
+ declare let RadioGroup: DefineComponent<RadioGroupProps, any, RadioGroupData, RadioGroupComputed, RadioGroupMethods, {}, {}, {}, string, RadioGroupProps, RadioGroupProps, {}>;
51
+ export { RadioGroup, RadioGroupVue2 };
@@ -7,7 +7,7 @@ var inject = allVue.inject;
7
7
  import { RadioButton } from './RadioButton';
8
8
  import { guid, classNames, focusFirstFocusableChild, validatePackage, isRtl } from '@progress/kendo-vue-common';
9
9
  import { packageMetadata } from '../package-metadata';
10
- var RadioGroup = {
10
+ var RadioGroupVue2 = {
11
11
  name: 'KendoRadioGroup',
12
12
  props: {
13
13
  ariaLabelledBy: String,
@@ -198,5 +198,5 @@ var RadioGroup = {
198
198
  }, [radioOptions]);
199
199
  }
200
200
  };
201
- var RadioGroupVue3 = RadioGroup;
202
- export { RadioGroup, RadioGroupVue3 };
201
+ var RadioGroup = RadioGroupVue2;
202
+ export { RadioGroup, RadioGroupVue2 };
@@ -50,6 +50,18 @@ export interface RadioButtonProps {
50
50
  * Sets the `name` property of the Radio button.
51
51
  */
52
52
  name?: string;
53
+ /**
54
+ * Configures the `size` of the RadioButton.
55
+ *
56
+ * The available options are:
57
+ * - small
58
+ * - medium
59
+ * - large
60
+ * - null&mdash;Does not set a size `class`.
61
+ *
62
+ * @default `medium`
63
+ */
64
+ size?: null | 'small' | 'medium' | 'large' | string;
53
65
  /**
54
66
  * Sets the `tabIndex` property of the Radio button.
55
67
  * Defaults to `0`.
@@ -1,5 +1,4 @@
1
- import { DefineComponent } from '../additionalTypes';
2
- import { RecordPropsDefinition, ComponentOptions } from 'vue/types/options';
1
+ import { DefineComponent, RecordPropsDefinition, ComponentOptions, Vue2type } from '../additionalTypes';
3
2
  declare type DefaultData<V> = object | ((this: V) => {});
4
3
  declare type DefaultMethods<V> = {
5
4
  [key: string]: (this: V, ...args: any[]) => any;
@@ -124,8 +123,8 @@ export interface SliderComputed {
124
123
  /**
125
124
  * @hidden
126
125
  */
127
- export interface SliderAll extends Vue, SliderMethods, SliderComputed, SliderState, SliderData {
126
+ export interface SliderAll extends Vue2type, SliderMethods, SliderComputed, SliderState, SliderData {
128
127
  }
129
- declare let Slider: ComponentOptions<SliderAll, DefaultData<SliderData>, DefaultMethods<SliderAll>, SliderComputed, RecordPropsDefinition<SliderProps>>;
130
- declare const SliderVue3: DefineComponent<SliderProps, any, SliderData, SliderComputed, SliderMethods, {}, {}, {}, string, SliderProps, SliderProps, {}>;
131
- export { Slider, SliderVue3 };
128
+ declare let SliderVue2: ComponentOptions<SliderAll, DefaultData<SliderData>, DefaultMethods<SliderAll>, SliderComputed, RecordPropsDefinition<SliderProps>>;
129
+ declare const Slider: DefineComponent<SliderProps, any, SliderData, SliderComputed, SliderMethods, {}, {}, {}, string, SliderProps, SliderProps, {}>;
130
+ export { Slider, SliderVue2 };
@@ -20,13 +20,14 @@ var allVue = Vue;
20
20
  var gh = allVue.h;
21
21
  var ref = allVue.ref;
22
22
  var inject = allVue.inject;
23
+ import { Button } from '@progress/kendo-vue-buttons';
23
24
  import { getDefaultSlots } from '@progress/kendo-vue-common';
24
25
  import { Keys, classNames, Draggable, getTabIndex, validatePackage } from '@progress/kendo-vue-common';
25
26
  import { provideLocalizationService } from '@progress/kendo-vue-intl';
26
27
  import { messages, sliderIncreaseValue, sliderDecreaseValue, sliderDragTitle } from './../messages';
27
28
  import { SLIDER_LABEL_ATTRIBUTE } from './SliderLabel';
28
29
  import { packageMetadata } from '../package-metadata';
29
- var Slider = {
30
+ var SliderVue2 = {
30
31
  name: 'KendoSlider',
31
32
  model: {
32
33
  event: 'changemodel'
@@ -206,25 +207,27 @@ var Slider = {
206
207
  position: 'relative',
207
208
  flexDirection: this.$props.vertical ? 'column-reverse' : 'row'
208
209
  }
209
- }, [this.$props.buttons && h("a", {
210
- "class": "k-button k-button-decrease",
210
+ }, [this.$props.buttons && // @ts-ignore
211
+ h(Button, {
212
+ tabIndex: -1,
213
+ attrs: this.v3 ? undefined : {
214
+ tabIndex: -1,
215
+ icon: this.$props.vertical ? 'arrow-s' : 'arrow-w',
216
+ rounded: 'full',
217
+ title: lS.toLanguageString(sliderDecreaseValue, messages[sliderDecreaseValue])
218
+ },
219
+ icon: this.$props.vertical ? 'arrow-s' : 'arrow-w',
211
220
  style: {
212
221
  position: 'relative'
213
222
  },
223
+ rounded: 'full',
224
+ "class": "k-button-decrease",
214
225
  title: lS.toLanguageString(sliderDecreaseValue, messages[sliderDecreaseValue]),
215
- attrs: this.v3 ? undefined : {
216
- title: lS.toLanguageString(sliderDecreaseValue, messages[sliderDecreaseValue])
217
- },
218
226
  onClick: this.decrement,
219
227
  on: this.v3 ? undefined : {
220
228
  "click": this.decrement
221
229
  }
222
- }, [h("span", {
223
- "class": classNames('k-icon', {
224
- 'k-i-arrow-s': this.$props.vertical,
225
- 'k-i-arrow-w': !this.$props.vertical
226
- })
227
- })]), // @ts-ignore function children
230
+ }), // @ts-ignore function children
228
231
  h(Draggable, {
229
232
  onDrag: this.dragOver,
230
233
  on: this.v3 ? undefined : {
@@ -307,25 +310,27 @@ var Slider = {
307
310
  bottom: 'calc(' + percentValue + '% - 8px)',
308
311
  zIndex: 1
309
312
  } : (_b = {}, _b[_this.currentDir === 'rtl' ? 'right' : 'left'] = 'calc(' + percentValue + '% - 8px)', _b.zIndex = 1, _b)
310
- })])])]), this.$props.buttons && h("a", {
311
- "class": "k-button k-button-increase",
313
+ })])])]), this.$props.buttons && // @ts-ignore
314
+ h(Button, {
315
+ tabIndex: -1,
316
+ attrs: this.v3 ? undefined : {
317
+ tabIndex: -1,
318
+ icon: this.$props.vertical ? 'arrow-n' : 'arrow-e',
319
+ rounded: 'full',
320
+ title: lS.toLanguageString(sliderIncreaseValue, messages[sliderIncreaseValue])
321
+ },
322
+ icon: this.$props.vertical ? 'arrow-n' : 'arrow-e',
323
+ rounded: 'full',
312
324
  style: {
313
325
  position: 'relative'
314
326
  },
327
+ "class": "k-button-increase",
315
328
  title: lS.toLanguageString(sliderIncreaseValue, messages[sliderIncreaseValue]),
316
- attrs: this.v3 ? undefined : {
317
- title: lS.toLanguageString(sliderIncreaseValue, messages[sliderIncreaseValue])
318
- },
319
329
  onClick: this.increment,
320
330
  on: this.v3 ? undefined : {
321
331
  "click": this.increment
322
332
  }
323
- }, [h("span", {
324
- "class": classNames('k-icon', {
325
- 'k-i-arrow-n': this.$props.vertical,
326
- 'k-i-arrow-e': !this.$props.vertical
327
- })
328
- })])])]);
333
+ })])]);
329
334
  },
330
335
  methods: {
331
336
  focus: function focus() {
@@ -416,5 +421,5 @@ var Slider = {
416
421
  }
417
422
  }
418
423
  };
419
- var SliderVue3 = Slider;
420
- export { Slider, SliderVue3 };
424
+ var Slider = SliderVue2;
425
+ export { Slider, SliderVue2 };