@progress/kendo-vue-inputs 2.7.3 → 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
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.NumericTextBoxVue3 = exports.NumericTextBox = void 0; // @ts-ignore
6
+ exports.NumericTextBoxVue2 = exports.NumericTextBox = void 0; // @ts-ignore
7
7
 
8
8
  var Vue = require("vue");
9
9
 
@@ -18,6 +18,8 @@ var kendo_vue_intl_1 = require("@progress/kendo-vue-intl");
18
18
 
19
19
  var kendo_vue_common_2 = require("@progress/kendo-vue-common");
20
20
 
21
+ var kendo_vue_buttons_1 = require("@progress/kendo-vue-buttons");
22
+
21
23
  var messages_1 = require("./../messages");
22
24
 
23
25
  var utils_1 = require("./utils");
@@ -25,7 +27,7 @@ var utils_1 = require("./utils");
25
27
  var package_metadata_1 = require("../package-metadata");
26
28
 
27
29
  var VALIDATION_MESSAGE = 'Please enter a valid value!';
28
- var NumericTextBox = {
30
+ var NumericTextBoxVue2 = {
29
31
  model: {
30
32
  event: 'changemodel'
31
33
  },
@@ -73,6 +75,27 @@ var NumericTextBox = {
73
75
  type: Boolean,
74
76
  default: undefined
75
77
  },
78
+ size: {
79
+ type: String,
80
+ default: 'medium',
81
+ validator: function validator(value) {
82
+ return [null, 'small', 'medium', 'large'].includes(value);
83
+ }
84
+ },
85
+ rounded: {
86
+ type: String,
87
+ default: 'medium',
88
+ validator: function validator(value) {
89
+ return [null, 'small', 'medium', 'large', 'full'].includes(value);
90
+ }
91
+ },
92
+ fillMode: {
93
+ type: String,
94
+ default: 'solid',
95
+ validator: function validator(value) {
96
+ return [null, 'solid', 'flat', 'outline'].includes(value);
97
+ }
98
+ },
76
99
  required: {
77
100
  type: Boolean,
78
101
  default: false
@@ -168,23 +191,27 @@ var NumericTextBox = {
168
191
  var compValue = this.computedValue;
169
192
  return {
170
193
  'k-floating-label-container': true,
171
- 'k-state-focused': this.$data.focused,
172
- 'k-state-empty': !(compValue === 0 ? true : compValue || this.$props.placeholder),
173
- 'k-state-invalid': !isValid && isValid !== undefined,
194
+ 'k-focus': this.$data.focused,
195
+ 'k-empty': !(compValue === 0 ? true : compValue || this.$props.placeholder),
196
+ 'k-invalid': !isValid && isValid !== undefined,
174
197
  'k-rtl': this.$props.dir === 'rtl'
175
198
  };
176
199
  }
177
200
  },
178
- wrapperClassNames: {
179
- get: function get() {
180
- var isValid = !this.$props.validityStyles || this.validity().valid;
181
- return {
182
- 'k-numeric-wrap': true,
183
- 'k-state-focused': this.$data.focused,
184
- 'k-state-disabled': this.$props.disabled,
185
- 'k-state-invalid': !isValid || this.$data.isInvalid
186
- };
187
- }
201
+ wrapperClassNames: function wrapperClassNames() {
202
+ var _a;
203
+
204
+ var _b = this.$props,
205
+ size = _b.size,
206
+ fillMode = _b.fillMode,
207
+ rounded = _b.rounded,
208
+ required = _b.required,
209
+ disabled = _b.disabled;
210
+ var isValid = !this.$props.validityStyles || this.validity().valid;
211
+ return _a = {
212
+ 'k-input': true,
213
+ 'k-numerictextbox': true
214
+ }, _a["k-input-" + (kendo_vue_common_1.kendoThemeMaps.sizeMap[size] || size)] = size, _a["k-input-" + fillMode] = fillMode, _a["k-rounded-" + (kendo_vue_common_1.kendoThemeMaps.roundedMap[rounded] || rounded)] = rounded, _a['k-valid'] = isValid, _a['k-invalid'] = !isValid, _a['k-required'] = required, _a['k-disabled'] = disabled, _a;
188
215
  }
189
216
  },
190
217
  methods: {
@@ -280,7 +307,7 @@ var NumericTextBox = {
280
307
  if (newState.valueIsCorrected) {
281
308
  var wrapper = this._elementWrapper;
282
309
 
283
- if (wrapper && wrapper.className.indexOf("k-state-invalid") === -1) {
310
+ if (wrapper && wrapper.className.indexOf("k-invalid") === -1) {
284
311
  this.$data.isInvalid = true;
285
312
  setTimeout(function () {
286
313
  _this.$data.isInvalid = false;
@@ -452,13 +479,9 @@ var NumericTextBox = {
452
479
  dir: this.$props.dir,
453
480
  "aria-disabled": this.$props.disabled ? 'true' : undefined
454
481
  },
455
- "class": 'k-widget k-numerictextbox',
456
- "aria-disabled": this.$props.disabled ? 'true' : undefined
457
- }, [h("span", {
458
482
  "class": this.wrapperClassNames,
459
- ref: this.v3 ? function (el) {
460
- _this.elementWrapperRef = el;
461
- } : 'elementWrapper'
483
+ "aria-disabled": this.$props.disabled ? 'true' : undefined,
484
+ style: this.$attrs.style
462
485
  }, [h("input", {
463
486
  tabIndex: this.$props.tabIndex,
464
487
  attrs: this.v3 ? undefined : {
@@ -487,7 +510,7 @@ var NumericTextBox = {
487
510
  spellCheck: false,
488
511
  autoComplete: "off",
489
512
  autoCorrect: "off",
490
- "class": "k-input k-formatted-value",
513
+ "class": "k-input k-input-inner",
491
514
  id: inputId,
492
515
  value: this.v3 ? this.looseValue : null,
493
516
  domProps: this.v3 ? undefined : {
@@ -513,40 +536,42 @@ var NumericTextBox = {
513
536
  _this.inputRef = el;
514
537
  } : 'input'
515
538
  }), defaultSlot, this.$props.spinners && h("span", {
516
- "class": "k-select",
539
+ "class": "k-input-spinner k-spin-button",
517
540
  onMousedown: this.spinnersWrapperMouseDown,
518
541
  on: this.v3 ? undefined : {
519
542
  "mousedown": this.spinnersWrapperMouseDown
520
543
  }
521
- }, [h("span", {
522
- "class": "k-link k-link-increase",
523
- "aria-label": localizationService.toLanguageString(messages_1.numericIncreaseValue, messages_1.messages[messages_1.numericIncreaseValue]),
544
+ }, [// @ts-ignore
545
+ h(kendo_vue_buttons_1.Button, {
546
+ icon: 'arrow-n',
524
547
  attrs: this.v3 ? undefined : {
548
+ icon: 'arrow-n',
525
549
  "aria-label": localizationService.toLanguageString(messages_1.numericIncreaseValue, messages_1.messages[messages_1.numericIncreaseValue]),
526
550
  title: localizationService.toLanguageString(messages_1.numericIncreaseValue, messages_1.messages[messages_1.numericIncreaseValue])
527
551
  },
552
+ "class": "k-spinner-increase",
553
+ "aria-label": localizationService.toLanguageString(messages_1.numericIncreaseValue, messages_1.messages[messages_1.numericIncreaseValue]),
528
554
  title: localizationService.toLanguageString(messages_1.numericIncreaseValue, messages_1.messages[messages_1.numericIncreaseValue]),
529
555
  onClick: this.increase,
530
556
  on: this.v3 ? undefined : {
531
557
  "click": this.increase
532
558
  }
533
- }, [h("span", {
534
- "class": "k-icon k-i-arrow-n"
535
- })]), h("span", {
536
- "class": "k-link k-link-decrease",
537
- "aria-label": localizationService.toLanguageString(messages_1.numericDecreaseValue, messages_1.messages[messages_1.numericDecreaseValue]),
559
+ }), // @ts-ignore
560
+ h(kendo_vue_buttons_1.Button, {
561
+ "class": "k-spinner-decrease",
562
+ icon: 'arrow-s',
538
563
  attrs: this.v3 ? undefined : {
564
+ icon: 'arrow-s',
539
565
  "aria-label": localizationService.toLanguageString(messages_1.numericDecreaseValue, messages_1.messages[messages_1.numericDecreaseValue]),
540
566
  title: localizationService.toLanguageString(messages_1.numericDecreaseValue, messages_1.messages[messages_1.numericDecreaseValue])
541
567
  },
568
+ "aria-label": localizationService.toLanguageString(messages_1.numericDecreaseValue, messages_1.messages[messages_1.numericDecreaseValue]),
542
569
  title: localizationService.toLanguageString(messages_1.numericDecreaseValue, messages_1.messages[messages_1.numericDecreaseValue]),
543
570
  onClick: this.decrease,
544
571
  on: this.v3 ? undefined : {
545
572
  "click": this.decrease
546
573
  }
547
- }, [h("span", {
548
- "class": "k-icon k-i-arrow-s"
549
- })])])])]);
574
+ })])]);
550
575
  return this.$props.label ? h("span", {
551
576
  "class": this.spanClassNames,
552
577
  onFocusin: this.handleFocus,
@@ -570,6 +595,6 @@ var NumericTextBox = {
570
595
  }, [this.$props.label]) : null]) : numerictextbox;
571
596
  }
572
597
  };
573
- exports.NumericTextBox = NumericTextBox;
574
- var NumericTextBoxVue3 = NumericTextBox;
575
- exports.NumericTextBoxVue3 = NumericTextBoxVue3;
598
+ exports.NumericTextBoxVue2 = NumericTextBoxVue2;
599
+ var NumericTextBox = NumericTextBoxVue2;
600
+ exports.NumericTextBox = NumericTextBox;
@@ -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—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—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—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
  */
@@ -8,7 +8,7 @@ exports.packageMetadata = {
8
8
  name: '@progress/kendo-vue-inputs',
9
9
  productName: 'Kendo UI for Vue',
10
10
  productCodes: ['KENDOUIVUE', 'KENDOUICOMPLETE'],
11
- publishDate: 1641561208,
11
+ publishDate: 1641906796,
12
12
  version: '',
13
13
  licensingDocsUrl: 'https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=kendovue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning'
14
14
  };
@@ -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 };
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.RadioButtonVue3 = exports.RadioButton = void 0; // @ts-ignore
6
+ exports.RadioButtonVue2 = exports.RadioButton = void 0; // @ts-ignore
7
7
 
8
8
  var Vue = require("vue");
9
9
 
@@ -18,7 +18,7 @@ var kendo_vue_common_2 = require("@progress/kendo-vue-common");
18
18
 
19
19
  var package_metadata_1 = require("../package-metadata");
20
20
 
21
- var RadioButton = {
21
+ var RadioButtonVue2 = {
22
22
  name: 'KendoRadioButton',
23
23
  props: {
24
24
  ariaDescribedBy: String,
@@ -30,6 +30,13 @@ var RadioButton = {
30
30
  labelRender: [String, Number, Boolean, Object],
31
31
  labelPlacement: String,
32
32
  name: String,
33
+ size: {
34
+ type: String,
35
+ default: 'medium',
36
+ validator: function validator(value) {
37
+ return [null, 'small', 'medium', 'large'].includes(value);
38
+ }
39
+ },
33
40
  tabIndex: Number,
34
41
  value: [String, Number, Object],
35
42
  valid: {
@@ -55,10 +62,8 @@ var RadioButton = {
55
62
  var _a;
56
63
 
57
64
  return _a = {
58
- 'k-radio': true,
59
- 'k-state-invalid': this.$props.valid === false,
60
- 'k-invalid': this.$props.valid === false
61
- }, _a[this.$props.className] = this.$props.className, _a;
65
+ 'k-radio': true
66
+ }, _a["k-radio-" + kendo_vue_common_1.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;
62
67
  }
63
68
  },
64
69
  methods: {
@@ -169,6 +174,6 @@ var RadioButton = {
169
174
  return labelPlacement === 'before' ? h("div", [radioButtonLabel, radio, defaultSlot]) : h("div", [radio, radioButtonLabel, defaultSlot]);
170
175
  }
171
176
  };
172
- exports.RadioButton = RadioButton;
173
- var RadioButtonVue3 = RadioButton;
174
- exports.RadioButtonVue3 = RadioButtonVue3;
177
+ exports.RadioButtonVue2 = RadioButtonVue2;
178
+ var RadioButton = RadioButtonVue2;
179
+ exports.RadioButton = RadioButton;
@@ -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 };
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.RadioGroupVue3 = exports.RadioGroup = void 0; // @ts-ignore
6
+ exports.RadioGroupVue2 = exports.RadioGroup = void 0; // @ts-ignore
7
7
 
8
8
  var Vue = require("vue");
9
9
 
@@ -18,7 +18,7 @@ var kendo_vue_common_1 = require("@progress/kendo-vue-common");
18
18
 
19
19
  var package_metadata_1 = require("../package-metadata");
20
20
 
21
- var RadioGroup = {
21
+ var RadioGroupVue2 = {
22
22
  name: 'KendoRadioGroup',
23
23
  props: {
24
24
  ariaLabelledBy: String,
@@ -209,6 +209,6 @@ var RadioGroup = {
209
209
  }, [radioOptions]);
210
210
  }
211
211
  };
212
- exports.RadioGroup = RadioGroup;
213
- var RadioGroupVue3 = RadioGroup;
214
- exports.RadioGroupVue3 = RadioGroupVue3;
212
+ exports.RadioGroupVue2 = RadioGroupVue2;
213
+ var RadioGroup = RadioGroupVue2;
214
+ exports.RadioGroup = RadioGroup;
@@ -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 };
@@ -19,7 +19,7 @@ var __assign = undefined && undefined.__assign || function () {
19
19
  Object.defineProperty(exports, "__esModule", {
20
20
  value: true
21
21
  });
22
- exports.SliderVue3 = exports.Slider = void 0; // @ts-ignore
22
+ exports.SliderVue2 = exports.Slider = void 0; // @ts-ignore
23
23
 
24
24
  var Vue = require("vue");
25
25
 
@@ -28,6 +28,8 @@ var gh = allVue.h;
28
28
  var ref = allVue.ref;
29
29
  var inject = allVue.inject;
30
30
 
31
+ var kendo_vue_buttons_1 = require("@progress/kendo-vue-buttons");
32
+
31
33
  var kendo_vue_common_1 = require("@progress/kendo-vue-common");
32
34
 
33
35
  var kendo_vue_common_2 = require("@progress/kendo-vue-common");
@@ -40,7 +42,7 @@ var SliderLabel_1 = require("./SliderLabel");
40
42
 
41
43
  var package_metadata_1 = require("../package-metadata");
42
44
 
43
- var Slider = {
45
+ var SliderVue2 = {
44
46
  name: 'KendoSlider',
45
47
  model: {
46
48
  event: 'changemodel'
@@ -220,25 +222,27 @@ var Slider = {
220
222
  position: 'relative',
221
223
  flexDirection: this.$props.vertical ? 'column-reverse' : 'row'
222
224
  }
223
- }, [this.$props.buttons && h("a", {
224
- "class": "k-button k-button-decrease",
225
+ }, [this.$props.buttons && // @ts-ignore
226
+ h(kendo_vue_buttons_1.Button, {
227
+ tabIndex: -1,
228
+ attrs: this.v3 ? undefined : {
229
+ tabIndex: -1,
230
+ icon: this.$props.vertical ? 'arrow-s' : 'arrow-w',
231
+ rounded: 'full',
232
+ title: lS.toLanguageString(messages_1.sliderDecreaseValue, messages_1.messages[messages_1.sliderDecreaseValue])
233
+ },
234
+ icon: this.$props.vertical ? 'arrow-s' : 'arrow-w',
225
235
  style: {
226
236
  position: 'relative'
227
237
  },
238
+ rounded: 'full',
239
+ "class": "k-button-decrease",
228
240
  title: lS.toLanguageString(messages_1.sliderDecreaseValue, messages_1.messages[messages_1.sliderDecreaseValue]),
229
- attrs: this.v3 ? undefined : {
230
- title: lS.toLanguageString(messages_1.sliderDecreaseValue, messages_1.messages[messages_1.sliderDecreaseValue])
231
- },
232
241
  onClick: this.decrement,
233
242
  on: this.v3 ? undefined : {
234
243
  "click": this.decrement
235
244
  }
236
- }, [h("span", {
237
- "class": kendo_vue_common_2.classNames('k-icon', {
238
- 'k-i-arrow-s': this.$props.vertical,
239
- 'k-i-arrow-w': !this.$props.vertical
240
- })
241
- })]), // @ts-ignore function children
245
+ }), // @ts-ignore function children
242
246
  h(kendo_vue_common_2.Draggable, {
243
247
  onDrag: this.dragOver,
244
248
  on: this.v3 ? undefined : {
@@ -321,25 +325,27 @@ var Slider = {
321
325
  bottom: 'calc(' + percentValue + '% - 8px)',
322
326
  zIndex: 1
323
327
  } : (_b = {}, _b[_this.currentDir === 'rtl' ? 'right' : 'left'] = 'calc(' + percentValue + '% - 8px)', _b.zIndex = 1, _b)
324
- })])])]), this.$props.buttons && h("a", {
325
- "class": "k-button k-button-increase",
328
+ })])])]), this.$props.buttons && // @ts-ignore
329
+ h(kendo_vue_buttons_1.Button, {
330
+ tabIndex: -1,
331
+ attrs: this.v3 ? undefined : {
332
+ tabIndex: -1,
333
+ icon: this.$props.vertical ? 'arrow-n' : 'arrow-e',
334
+ rounded: 'full',
335
+ title: lS.toLanguageString(messages_1.sliderIncreaseValue, messages_1.messages[messages_1.sliderIncreaseValue])
336
+ },
337
+ icon: this.$props.vertical ? 'arrow-n' : 'arrow-e',
338
+ rounded: 'full',
326
339
  style: {
327
340
  position: 'relative'
328
341
  },
342
+ "class": "k-button-increase",
329
343
  title: lS.toLanguageString(messages_1.sliderIncreaseValue, messages_1.messages[messages_1.sliderIncreaseValue]),
330
- attrs: this.v3 ? undefined : {
331
- title: lS.toLanguageString(messages_1.sliderIncreaseValue, messages_1.messages[messages_1.sliderIncreaseValue])
332
- },
333
344
  onClick: this.increment,
334
345
  on: this.v3 ? undefined : {
335
346
  "click": this.increment
336
347
  }
337
- }, [h("span", {
338
- "class": kendo_vue_common_2.classNames('k-icon', {
339
- 'k-i-arrow-n': this.$props.vertical,
340
- 'k-i-arrow-e': !this.$props.vertical
341
- })
342
- })])])]);
348
+ })])]);
343
349
  },
344
350
  methods: {
345
351
  focus: function focus() {
@@ -430,6 +436,6 @@ var Slider = {
430
436
  }
431
437
  }
432
438
  };
433
- exports.Slider = Slider;
434
- var SliderVue3 = Slider;
435
- exports.SliderVue3 = SliderVue3;
439
+ exports.SliderVue2 = SliderVue2;
440
+ var Slider = SliderVue2;
441
+ exports.Slider = Slider;
@@ -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;
@@ -51,8 +50,8 @@ export interface SliderLabelData {
51
50
  /**
52
51
  * @hidden
53
52
  */
54
- export interface SliderLabelAll extends Vue, SliderLabelMethods, SliderLabelData, SliderLabelState {
53
+ export interface SliderLabelAll extends Vue2type, SliderLabelMethods, SliderLabelData, SliderLabelState {
55
54
  }
56
- declare let SliderLabel: ComponentOptions<SliderLabelAll, DefaultData<SliderLabelData>, DefaultMethods<SliderLabelAll>, {}, RecordPropsDefinition<SliderLabelProps>>;
57
- declare const SliderLabelVue3: DefineComponent<SliderLabelProps, any, SliderLabelData, {}, SliderLabelMethods, {}, {}, {}, string, SliderLabelProps, SliderLabelProps, {}>;
58
- export { SliderLabel, SliderLabelVue3 };
55
+ declare let SliderLabelVue2: ComponentOptions<SliderLabelAll, DefaultData<SliderLabelData>, DefaultMethods<SliderLabelAll>, {}, RecordPropsDefinition<SliderLabelProps>>;
56
+ declare const SliderLabel: DefineComponent<SliderLabelProps, any, SliderLabelData, {}, SliderLabelMethods, {}, {}, {}, string, SliderLabelProps, SliderLabelProps, {}>;
57
+ export { SliderLabel, SliderLabelVue2 };
@@ -19,7 +19,7 @@ var __assign = undefined && undefined.__assign || function () {
19
19
  Object.defineProperty(exports, "__esModule", {
20
20
  value: true
21
21
  });
22
- exports.SliderLabelVue3 = exports.SliderLabel = exports.SLIDER_LABEL_ATTRIBUTE = void 0; // @ts-ignore
22
+ exports.SliderLabelVue2 = exports.SliderLabel = exports.SLIDER_LABEL_ATTRIBUTE = void 0; // @ts-ignore
23
23
 
24
24
  var Vue = require("vue");
25
25
 
@@ -35,7 +35,7 @@ var kendo_vue_common_1 = require("@progress/kendo-vue-common");
35
35
 
36
36
  exports.SLIDER_LABEL_ATTRIBUTE = 'data-slider-label'; // tslint:enable:max-line-length
37
37
 
38
- var SliderLabel = {
38
+ var SliderLabelVue2 = {
39
39
  name: 'KendoSliderLabel',
40
40
  // @ts-ignore
41
41
  emits: {
@@ -116,6 +116,6 @@ var SliderLabel = {
116
116
  }
117
117
  }
118
118
  };
119
- exports.SliderLabel = SliderLabel;
120
- var SliderLabelVue3 = SliderLabel;
121
- exports.SliderLabelVue3 = SliderLabelVue3;
119
+ exports.SliderLabelVue2 = SliderLabelVue2;
120
+ var SliderLabel = SliderLabelVue2;
121
+ exports.SliderLabel = SliderLabel;
@@ -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;
@@ -52,6 +51,46 @@ export interface SwitchProps extends ToggleBaseProps, FormComponentProps {
52
51
  * Sets the `id` of the Switch.
53
52
  */
54
53
  id?: string;
54
+ /**
55
+ * Configures the `size` of the Switch.
56
+ *
57
+ * The available options are:
58
+ * - small
59
+ * - medium
60
+ * - large
61
+ * - null&mdash;Does not set a size `className`.
62
+ *
63
+ * @default `medium`
64
+ */
65
+ size?: null | 'small' | 'medium' | 'large' | string;
66
+ /**
67
+ * Configures the `trackRounded` of the Switch.
68
+ *
69
+ * The available options are:
70
+ * - small
71
+ * - medium
72
+ * - large
73
+ * - full
74
+ * - circle
75
+ * - null&mdash;Does not set a trackRounded `className`.
76
+ *
77
+ * @default `full`
78
+ */
79
+ trackRounded?: null | 'small' | 'medium' | 'large' | 'full' | string;
80
+ /**
81
+ * Configures the `thumbRounded` of the Switch.
82
+ *
83
+ * The available options are:
84
+ * - small
85
+ * - medium
86
+ * - large
87
+ * - full
88
+ * - circle
89
+ * - null&mdash;Does not set a thumbRounded `className`.
90
+ *
91
+ * @default `circle`
92
+ */
93
+ thumbRounded?: null | 'small' | 'medium' | 'large' | 'full' | string;
55
94
  /**
56
95
  * Identifies the element(s) which will describe the component, similar to [HTML aria-describedby attribute](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/ARIA_Techniques/Using_the_aria-describedby_attribute).
57
96
  * For example these elements could contain error or hint message.
@@ -124,8 +163,8 @@ export interface SwitchData {
124
163
  /**
125
164
  * @hidden
126
165
  */
127
- export interface SwitchAll extends Vue, SwitchMethods, SwitchData, SwitchComputed, SwitchState {
166
+ export interface SwitchAll extends Vue2type, SwitchMethods, SwitchData, SwitchComputed, SwitchState {
128
167
  }
129
- declare let Switch: ComponentOptions<SwitchAll, DefaultData<SwitchData>, DefaultMethods<SwitchAll>, SwitchComputed, RecordPropsDefinition<SwitchProps>>;
130
- declare const SwitchVue3: DefineComponent<SwitchProps, any, SwitchData, SwitchComputed, SwitchMethods, {}, {}, {}, string, SwitchProps, SwitchProps, {}>;
131
- export { Switch, SwitchVue3 };
168
+ declare let SwitchVue2: ComponentOptions<SwitchAll, DefaultData<SwitchData>, DefaultMethods<SwitchAll>, SwitchComputed, RecordPropsDefinition<SwitchProps>>;
169
+ declare const Switch: DefineComponent<SwitchProps, any, SwitchData, SwitchComputed, SwitchMethods, {}, {}, {}, string, SwitchProps, SwitchProps, {}>;
170
+ export { Switch, SwitchVue2 };