@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.
- package/dist/cdn/js/kendo-vue-inputs.js +1 -1
- package/dist/es/additionalTypes.ts +7 -1
- package/dist/es/checkbox/Checkbox.d.ts +5 -6
- package/dist/es/checkbox/Checkbox.js +38 -22
- package/dist/es/checkbox/interfaces/CheckboxProps.d.ts +24 -0
- package/dist/es/colors/ColorPalette.d.ts +6 -6
- package/dist/es/colors/ColorPalette.js +5 -4
- package/dist/es/colors/ColorPicker.d.ts +5 -6
- package/dist/es/colors/ColorPicker.js +47 -48
- package/dist/es/colors/Picker.d.ts +5 -6
- package/dist/es/colors/Picker.js +3 -3
- package/dist/es/colors/interfaces/ColorPickerProps.d.ts +2 -2
- package/dist/es/input/Input.d.ts +42 -6
- package/dist/es/input/Input.js +29 -8
- package/dist/es/main.d.ts +1 -1
- package/dist/es/main.js +1 -1
- package/dist/es/maskedtextbox/MaskedTextBox.d.ts +5 -6
- package/dist/es/maskedtextbox/MaskedTextBox.js +38 -14
- package/dist/es/maskedtextbox/MaskedTextBoxProps.d.ts +37 -0
- package/dist/es/numerictextbox/NumericTextBox.d.ts +5 -6
- package/dist/es/numerictextbox/NumericTextBox.js +61 -37
- package/dist/es/numerictextbox/interfaces/NumericTextBoxProps.d.ts +37 -0
- package/dist/es/package-metadata.js +1 -1
- package/dist/es/radiobutton/RadioButton.d.ts +5 -6
- package/dist/es/radiobutton/RadioButton.js +13 -8
- package/dist/es/radiobutton/RadioGroup.d.ts +5 -6
- package/dist/es/radiobutton/RadioGroup.js +3 -3
- package/dist/es/radiobutton/interfaces/RadioButtonProps.d.ts +12 -0
- package/dist/es/slider/Slider.d.ts +5 -6
- package/dist/es/slider/Slider.js +30 -25
- package/dist/es/slider/SliderLabel.d.ts +5 -6
- package/dist/es/slider/SliderLabel.js +3 -3
- package/dist/es/switch/Switch.d.ts +45 -6
- package/dist/es/switch/Switch.js +56 -24
- package/dist/es/textarea/TextArea.d.ts +5 -6
- package/dist/es/textarea/TextArea.js +40 -11
- package/dist/es/textarea/interfaces/TextAreaProps.d.ts +37 -0
- package/dist/npm/additionalTypes.ts +7 -1
- package/dist/npm/checkbox/Checkbox.d.ts +5 -6
- package/dist/npm/checkbox/Checkbox.js +39 -23
- package/dist/npm/checkbox/interfaces/CheckboxProps.d.ts +24 -0
- package/dist/npm/colors/ColorPalette.d.ts +6 -6
- package/dist/npm/colors/ColorPalette.js +6 -5
- package/dist/npm/colors/ColorPicker.d.ts +5 -6
- package/dist/npm/colors/ColorPicker.js +50 -51
- package/dist/npm/colors/Picker.d.ts +5 -6
- package/dist/npm/colors/Picker.js +5 -5
- package/dist/npm/colors/interfaces/ColorPickerProps.d.ts +2 -2
- package/dist/npm/input/Input.d.ts +42 -6
- package/dist/npm/input/Input.js +31 -10
- package/dist/npm/main.d.ts +1 -1
- package/dist/npm/main.js +1 -0
- package/dist/npm/maskedtextbox/MaskedTextBox.d.ts +5 -6
- package/dist/npm/maskedtextbox/MaskedTextBox.js +39 -15
- package/dist/npm/maskedtextbox/MaskedTextBoxProps.d.ts +37 -0
- package/dist/npm/numerictextbox/NumericTextBox.d.ts +5 -6
- package/dist/npm/numerictextbox/NumericTextBox.js +63 -38
- package/dist/npm/numerictextbox/interfaces/NumericTextBoxProps.d.ts +37 -0
- package/dist/npm/package-metadata.js +1 -1
- package/dist/npm/radiobutton/RadioButton.d.ts +5 -6
- package/dist/npm/radiobutton/RadioButton.js +14 -9
- package/dist/npm/radiobutton/RadioGroup.d.ts +5 -6
- package/dist/npm/radiobutton/RadioGroup.js +5 -5
- package/dist/npm/radiobutton/interfaces/RadioButtonProps.d.ts +12 -0
- package/dist/npm/slider/Slider.d.ts +5 -6
- package/dist/npm/slider/Slider.js +33 -27
- package/dist/npm/slider/SliderLabel.d.ts +5 -6
- package/dist/npm/slider/SliderLabel.js +5 -5
- package/dist/npm/switch/Switch.d.ts +45 -6
- package/dist/npm/switch/Switch.js +57 -25
- package/dist/npm/textarea/TextArea.d.ts +5 -6
- package/dist/npm/textarea/TextArea.js +41 -12
- package/dist/npm/textarea/interfaces/TextAreaProps.d.ts +37 -0
- package/package.json +10 -9
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
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
|
|
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-
|
|
172
|
-
'k-
|
|
173
|
-
'k-
|
|
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
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
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-
|
|
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
|
-
|
|
460
|
-
|
|
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-
|
|
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-
|
|
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
|
-
}, [
|
|
522
|
-
|
|
523
|
-
|
|
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
|
-
},
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
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
|
-
}
|
|
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.
|
|
574
|
-
var
|
|
575
|
-
exports.
|
|
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:
|
|
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
|
|
45
|
+
export interface RadioButtonAll extends Vue2type, RadioButtonMethods, RadioButtonComputed, RadioButtonState, RadioButtonData {
|
|
47
46
|
}
|
|
48
|
-
declare let
|
|
49
|
-
declare let
|
|
50
|
-
export { RadioButton,
|
|
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.
|
|
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
|
|
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
|
-
|
|
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.
|
|
173
|
-
var
|
|
174
|
-
exports.
|
|
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
|
|
47
|
+
export interface RadioGroupAll extends Vue2type, RadioGroupMethods, RadioGroupComputed, RadioGroupState, RadioGroupData {
|
|
49
48
|
}
|
|
50
|
-
declare let
|
|
51
|
-
declare let
|
|
52
|
-
export { RadioGroup,
|
|
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.
|
|
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
|
|
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.
|
|
213
|
-
var
|
|
214
|
-
exports.
|
|
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—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
|
|
126
|
+
export interface SliderAll extends Vue2type, SliderMethods, SliderComputed, SliderState, SliderData {
|
|
128
127
|
}
|
|
129
|
-
declare let
|
|
130
|
-
declare const
|
|
131
|
-
export { Slider,
|
|
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.
|
|
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
|
|
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 &&
|
|
224
|
-
|
|
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
|
-
},
|
|
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 &&
|
|
325
|
-
|
|
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
|
-
}
|
|
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.
|
|
434
|
-
var
|
|
435
|
-
exports.
|
|
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
|
|
53
|
+
export interface SliderLabelAll extends Vue2type, SliderLabelMethods, SliderLabelData, SliderLabelState {
|
|
55
54
|
}
|
|
56
|
-
declare let
|
|
57
|
-
declare const
|
|
58
|
-
export { SliderLabel,
|
|
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.
|
|
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
|
|
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.
|
|
120
|
-
var
|
|
121
|
-
exports.
|
|
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—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—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—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
|
|
166
|
+
export interface SwitchAll extends Vue2type, SwitchMethods, SwitchData, SwitchComputed, SwitchState {
|
|
128
167
|
}
|
|
129
|
-
declare let
|
|
130
|
-
declare const
|
|
131
|
-
export { Switch,
|
|
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 };
|