@progress/kendo-vue-inputs 3.4.0 → 3.4.2-dev.202207070519
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/checkbox/Checkbox.js +9 -12
- package/dist/es/colors/ColorContrastLabels.d.ts +49 -0
- package/dist/es/colors/ColorContrastLabels.js +80 -0
- package/dist/es/colors/ColorContrastSvg.d.ts +50 -0
- package/dist/es/colors/ColorContrastSvg.js +109 -0
- package/dist/es/colors/ColorGradient.d.ts +51 -0
- package/dist/es/colors/ColorGradient.js +408 -0
- package/dist/es/colors/ColorInput.d.ts +54 -0
- package/dist/es/colors/ColorInput.js +269 -0
- package/dist/es/colors/ColorPalette.js +9 -12
- package/dist/es/colors/ColorPicker.js +5 -4
- package/dist/es/colors/FlatColorPicker.d.ts +103 -0
- package/dist/es/colors/FlatColorPicker.js +295 -0
- package/dist/es/colors/HexInput.d.ts +51 -0
- package/dist/es/colors/HexInput.js +72 -0
- package/dist/es/colors/Picker.js +3 -2
- package/dist/es/colors/interfaces/ColorGradientChangeEvent.d.ts +9 -0
- package/dist/es/colors/interfaces/ColorGradientChangeEvent.js +0 -0
- package/dist/es/colors/interfaces/ColorGradientProps.d.ts +56 -0
- package/dist/es/colors/interfaces/ColorGradientProps.js +0 -0
- package/dist/es/input/Input.js +3 -2
- package/dist/es/input-separator/InputSeparator.js +3 -2
- package/dist/es/main.d.ts +1 -0
- package/dist/es/main.js +1 -0
- package/dist/es/maskedtextbox/MaskedTextBox.js +21 -24
- package/dist/es/messages/index.d.ts +15 -0
- package/dist/es/messages/index.js +15 -0
- package/dist/es/numerictextbox/NumericTextBox.d.ts +4 -0
- package/dist/es/numerictextbox/NumericTextBox.js +16 -19
- package/dist/es/package-metadata.js +1 -1
- package/dist/es/radiobutton/RadioButton.js +8 -11
- package/dist/es/radiobutton/RadioGroup.js +3 -2
- package/dist/es/range-slider/RangeSlider.js +13 -12
- package/dist/es/slider/Slider.d.ts +4 -0
- package/dist/es/slider/Slider.js +5 -4
- package/dist/es/slider/SliderLabel.js +3 -2
- package/dist/es/switch/Switch.js +14 -19
- package/dist/es/textarea/TextArea.js +3 -2
- package/dist/npm/checkbox/Checkbox.js +8 -11
- package/dist/npm/colors/ColorContrastLabels.d.ts +49 -0
- package/dist/npm/colors/ColorContrastLabels.js +92 -0
- package/dist/npm/colors/ColorContrastSvg.d.ts +50 -0
- package/dist/npm/colors/ColorContrastSvg.js +120 -0
- package/dist/npm/colors/ColorGradient.d.ts +51 -0
- package/dist/npm/colors/ColorGradient.js +427 -0
- package/dist/npm/colors/ColorInput.d.ts +54 -0
- package/dist/npm/colors/ColorInput.js +284 -0
- package/dist/npm/colors/ColorPalette.js +8 -11
- package/dist/npm/colors/ColorPicker.js +5 -4
- package/dist/npm/colors/FlatColorPicker.d.ts +103 -0
- package/dist/npm/colors/FlatColorPicker.js +310 -0
- package/dist/npm/colors/HexInput.d.ts +51 -0
- package/dist/npm/colors/HexInput.js +84 -0
- package/dist/npm/colors/Picker.js +3 -2
- package/dist/npm/colors/interfaces/ColorGradientChangeEvent.d.ts +9 -0
- package/dist/npm/colors/interfaces/ColorGradientChangeEvent.js +2 -0
- package/dist/npm/colors/interfaces/ColorGradientProps.d.ts +56 -0
- package/dist/npm/colors/interfaces/ColorGradientProps.js +2 -0
- package/dist/npm/input/Input.js +3 -2
- package/dist/npm/input-separator/InputSeparator.js +3 -2
- package/dist/npm/main.d.ts +1 -0
- package/dist/npm/main.js +1 -0
- package/dist/npm/maskedtextbox/MaskedTextBox.js +20 -23
- package/dist/npm/messages/index.d.ts +15 -0
- package/dist/npm/messages/index.js +16 -1
- package/dist/npm/numerictextbox/NumericTextBox.d.ts +4 -0
- package/dist/npm/numerictextbox/NumericTextBox.js +15 -18
- package/dist/npm/package-metadata.js +1 -1
- package/dist/npm/radiobutton/RadioButton.js +7 -10
- package/dist/npm/radiobutton/RadioGroup.js +3 -2
- package/dist/npm/range-slider/RangeSlider.js +13 -12
- package/dist/npm/slider/Slider.d.ts +4 -0
- package/dist/npm/slider/Slider.js +5 -4
- package/dist/npm/slider/SliderLabel.js +3 -2
- package/dist/npm/switch/Switch.js +13 -18
- package/dist/npm/textarea/TextArea.js +3 -2
- package/package.json +11 -11
|
@@ -58,6 +58,14 @@ export declare const colorGradientPass = "colorGradient.colorGradientPass";
|
|
|
58
58
|
* @hidden
|
|
59
59
|
*/
|
|
60
60
|
export declare const colorGradientFail = "colorGradient.colorGradientFail";
|
|
61
|
+
/**
|
|
62
|
+
* @hidden
|
|
63
|
+
*/
|
|
64
|
+
export declare const flatColorPickerCancelBtn = "flatColorPicker.cancelBtn";
|
|
65
|
+
/**
|
|
66
|
+
* @hidden
|
|
67
|
+
*/
|
|
68
|
+
export declare const flatColorPickerApplyBtn = "flatColorPicker.applyBtn";
|
|
61
69
|
/**
|
|
62
70
|
* @hidden
|
|
63
71
|
*/
|
|
@@ -74,6 +82,10 @@ export declare const radioButtonValidation = "radioButton.validation";
|
|
|
74
82
|
* @hidden
|
|
75
83
|
*/
|
|
76
84
|
export declare const switchValidation = "switch.validation";
|
|
85
|
+
/**
|
|
86
|
+
* @hidden
|
|
87
|
+
*/
|
|
88
|
+
export declare const colorPickerDropdownButtonAriaLabel = "colorPicker.dropdownButtonAriaLabel";
|
|
77
89
|
/**
|
|
78
90
|
* @hidden
|
|
79
91
|
*/
|
|
@@ -93,8 +105,11 @@ export declare const messages: {
|
|
|
93
105
|
"colorGradient.colorGradientAAALevel": string;
|
|
94
106
|
"colorGradient.colorGradientPass": string;
|
|
95
107
|
"colorGradient.colorGradientFail": string;
|
|
108
|
+
"flatColorPicker.cancelBtn": string;
|
|
109
|
+
"flatColorPicker.applyBtn": string;
|
|
96
110
|
"checkbox.validation": string;
|
|
97
111
|
"checkbox.optionalText": string;
|
|
98
112
|
"radioButton.validation": string;
|
|
99
113
|
"switch.validation": string;
|
|
114
|
+
"colorPicker.dropdownButtonAriaLabel": string;
|
|
100
115
|
};
|
|
@@ -59,6 +59,14 @@ export var colorGradientPass = 'colorGradient.colorGradientPass';
|
|
|
59
59
|
* @hidden
|
|
60
60
|
*/
|
|
61
61
|
export var colorGradientFail = 'colorGradient.colorGradientFail';
|
|
62
|
+
/**
|
|
63
|
+
* @hidden
|
|
64
|
+
*/
|
|
65
|
+
export var flatColorPickerCancelBtn = 'flatColorPicker.cancelBtn';
|
|
66
|
+
/**
|
|
67
|
+
* @hidden
|
|
68
|
+
*/
|
|
69
|
+
export var flatColorPickerApplyBtn = 'flatColorPicker.applyBtn';
|
|
62
70
|
/**
|
|
63
71
|
* @hidden
|
|
64
72
|
*/
|
|
@@ -75,6 +83,10 @@ export var radioButtonValidation = 'radioButton.validation';
|
|
|
75
83
|
* @hidden
|
|
76
84
|
*/
|
|
77
85
|
export var switchValidation = 'switch.validation';
|
|
86
|
+
/**
|
|
87
|
+
* @hidden
|
|
88
|
+
*/
|
|
89
|
+
export var colorPickerDropdownButtonAriaLabel = 'colorPicker.dropdownButtonAriaLabel';
|
|
78
90
|
/**
|
|
79
91
|
* @hidden
|
|
80
92
|
*/
|
|
@@ -94,8 +106,11 @@ export var messages = (_a = {},
|
|
|
94
106
|
_a[colorGradientAAALevel] = 'AAA',
|
|
95
107
|
_a[colorGradientPass] = 'Pass',
|
|
96
108
|
_a[colorGradientFail] = 'Fail',
|
|
109
|
+
_a[flatColorPickerCancelBtn] = 'Cancel',
|
|
110
|
+
_a[flatColorPickerApplyBtn] = 'Apply',
|
|
97
111
|
_a[checkboxValidation] = 'Please check this box if you want to proceed!',
|
|
98
112
|
_a[checkboxOptionalText] = '(Optional)',
|
|
99
113
|
_a[radioButtonValidation] = 'Please select option if you want to proceed!',
|
|
100
114
|
_a[switchValidation] = 'Please turn on if you want to proceed!',
|
|
115
|
+
_a[colorPickerDropdownButtonAriaLabel] = 'Select',
|
|
101
116
|
_a);
|
|
@@ -2,9 +2,10 @@
|
|
|
2
2
|
import * as Vue from 'vue';
|
|
3
3
|
var allVue = Vue;
|
|
4
4
|
var gh = allVue.h;
|
|
5
|
+
var isV3 = allVue.version[0] === '3';
|
|
5
6
|
var ref = allVue.ref;
|
|
6
7
|
var inject = allVue.inject;
|
|
7
|
-
import { canUseDOM, getDefaultSlots, getListeners, getTemplate, kendoThemeMaps, templateDefinition, templateRendering } from '@progress/kendo-vue-common';
|
|
8
|
+
import { canUseDOM, getDefaultSlots, getListeners, getRef, getTemplate, kendoThemeMaps, setRef, templateDefinition, templateRendering } from '@progress/kendo-vue-common';
|
|
8
9
|
import { provideIntlService, provideLocalizationService } from '@progress/kendo-vue-intl';
|
|
9
10
|
import { guid, validatePackage } from '@progress/kendo-vue-common';
|
|
10
11
|
import { Button as KButton } from '@progress/kendo-vue-buttons';
|
|
@@ -141,7 +142,7 @@ var NumericTextBoxVue2 = {
|
|
|
141
142
|
}
|
|
142
143
|
},
|
|
143
144
|
mounted: function mounted() {
|
|
144
|
-
this._input = this
|
|
145
|
+
this._input = getRef(this, 'input');
|
|
145
146
|
this._elementWrapper = this.v3 ? this.elementWrapperRef : this.$refs.elementWrapper;
|
|
146
147
|
this.$data.hasMounted = true;
|
|
147
148
|
|
|
@@ -472,8 +473,8 @@ var NumericTextBoxVue2 = {
|
|
|
472
473
|
}
|
|
473
474
|
},
|
|
474
475
|
// @ts-ignore
|
|
475
|
-
setup: !
|
|
476
|
-
var v3 = !!
|
|
476
|
+
setup: !isV3 ? undefined : function () {
|
|
477
|
+
var v3 = !!isV3;
|
|
477
478
|
var inputRef = ref(null);
|
|
478
479
|
var elementWrapperRef = ref(null);
|
|
479
480
|
var kendoLocalizationService = inject('kendoLocalizationService', {});
|
|
@@ -488,8 +489,6 @@ var NumericTextBoxVue2 = {
|
|
|
488
489
|
},
|
|
489
490
|
// @ts-ignore
|
|
490
491
|
render: function render(createElement) {
|
|
491
|
-
var _this = this;
|
|
492
|
-
|
|
493
492
|
var h = gh || createElement;
|
|
494
493
|
var _a = this.$props,
|
|
495
494
|
iconName = _a.iconName,
|
|
@@ -540,33 +539,33 @@ var NumericTextBoxVue2 = {
|
|
|
540
539
|
}), this.$props.inputPrefix && h("span", {
|
|
541
540
|
"class": "k-input-prefix"
|
|
542
541
|
}, [inputPrefix]), h("input", {
|
|
543
|
-
|
|
542
|
+
tabindex: this.$props.tabIndex,
|
|
544
543
|
attrs: this.v3 ? undefined : {
|
|
545
|
-
|
|
546
|
-
|
|
544
|
+
tabindex: this.$props.tabIndex,
|
|
545
|
+
accesskey: this.$props.accessKey,
|
|
547
546
|
disabled: this.$props.disabled,
|
|
548
547
|
title: this.$props.title,
|
|
549
548
|
"aria-valuemin": this.$props.min,
|
|
550
549
|
"aria-valuemax": this.$props.max,
|
|
551
550
|
placeholder: this.$props.placeholder,
|
|
552
551
|
type: this.$props.inputType || 'tel',
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
552
|
+
spellcheck: false,
|
|
553
|
+
autocomplete: "off",
|
|
554
|
+
autocorrect: "off",
|
|
556
555
|
id: inputId,
|
|
557
556
|
"aria-valuenow": this.$data.currentValue !== null ? this.$data.currentValue : undefined,
|
|
558
557
|
name: this.$props.name
|
|
559
558
|
},
|
|
560
|
-
|
|
559
|
+
accesskey: this.$props.accessKey,
|
|
561
560
|
disabled: this.$props.disabled,
|
|
562
561
|
title: this.$props.title,
|
|
563
562
|
"aria-valuemin": this.$props.min,
|
|
564
563
|
"aria-valuemax": this.$props.max,
|
|
565
564
|
placeholder: this.$props.placeholder,
|
|
566
565
|
type: this.$props.inputType || 'tel',
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
566
|
+
spellcheck: false,
|
|
567
|
+
autocomplete: "off",
|
|
568
|
+
autocorrect: "off",
|
|
570
569
|
"class": this.inputInnerClass,
|
|
571
570
|
id: inputId,
|
|
572
571
|
value: this.v3 ? this.looseValue : null,
|
|
@@ -589,9 +588,7 @@ var NumericTextBoxVue2 = {
|
|
|
589
588
|
onFocus: this.emitFocus,
|
|
590
589
|
onBlur: this.emitBlur,
|
|
591
590
|
onPaste: this.onPasteHandler,
|
|
592
|
-
ref: this
|
|
593
|
-
_this.inputRef = el;
|
|
594
|
-
} : 'input'
|
|
591
|
+
ref: setRef(this, 'input')
|
|
595
592
|
}), this.$props.inputSuffix && h("span", {
|
|
596
593
|
"class": "k-input-suffix"
|
|
597
594
|
}, [inputSuffix]), showValidationIcon && isValid && h("span", {
|
|
@@ -5,7 +5,7 @@ export var packageMetadata = {
|
|
|
5
5
|
name: '@progress/kendo-vue-inputs',
|
|
6
6
|
productName: 'Kendo UI for Vue',
|
|
7
7
|
productCodes: ['KENDOUIVUE', 'KENDOUICOMPLETE'],
|
|
8
|
-
publishDate:
|
|
8
|
+
publishDate: 1657170635,
|
|
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
|
};
|
|
@@ -2,9 +2,10 @@
|
|
|
2
2
|
import * as Vue from 'vue';
|
|
3
3
|
var allVue = Vue;
|
|
4
4
|
var gh = allVue.h;
|
|
5
|
+
var isV3 = allVue.version[0] === '3';
|
|
5
6
|
var ref = allVue.ref;
|
|
6
7
|
var inject = allVue.inject;
|
|
7
|
-
import { guid, getTabIndex, getDefaultSlots, templateRendering, getTemplate, getListeners, kendoThemeMaps } from '@progress/kendo-vue-common';
|
|
8
|
+
import { guid, getTabIndex, getDefaultSlots, templateRendering, getTemplate, getListeners, kendoThemeMaps, setRef, getRef } from '@progress/kendo-vue-common';
|
|
8
9
|
import { validatePackage } from '@progress/kendo-vue-common';
|
|
9
10
|
import { packageMetadata } from '../package-metadata';
|
|
10
11
|
/**
|
|
@@ -54,7 +55,7 @@ var RadioButtonVue2 = {
|
|
|
54
55
|
validatePackage(packageMetadata);
|
|
55
56
|
},
|
|
56
57
|
mounted: function mounted() {
|
|
57
|
-
this.input = this
|
|
58
|
+
this.input = getRef(this, 'input');
|
|
58
59
|
},
|
|
59
60
|
computed: {
|
|
60
61
|
inputClassName: function inputClassName() {
|
|
@@ -89,8 +90,8 @@ var RadioButtonVue2 = {
|
|
|
89
90
|
}
|
|
90
91
|
},
|
|
91
92
|
// @ts-ignore
|
|
92
|
-
setup: !
|
|
93
|
-
var v3 = !!
|
|
93
|
+
setup: !isV3 ? undefined : function () {
|
|
94
|
+
var v3 = !!isV3;
|
|
94
95
|
var inputRef = ref(null);
|
|
95
96
|
return {
|
|
96
97
|
v3: v3,
|
|
@@ -98,8 +99,6 @@ var RadioButtonVue2 = {
|
|
|
98
99
|
};
|
|
99
100
|
},
|
|
100
101
|
render: function render(createElement) {
|
|
101
|
-
var _this = this;
|
|
102
|
-
|
|
103
102
|
var h = gh || createElement;
|
|
104
103
|
var defaultSlot = getDefaultSlots(this);
|
|
105
104
|
var _a = this.$props,
|
|
@@ -147,17 +146,15 @@ var RadioButtonVue2 = {
|
|
|
147
146
|
id: id || this.calculatedId,
|
|
148
147
|
name: name,
|
|
149
148
|
disabled: disabled,
|
|
150
|
-
|
|
149
|
+
tabindex: getTabIndex(tabIndex, disabled),
|
|
151
150
|
"aria-describedby": ariaDescribedBy
|
|
152
151
|
},
|
|
153
152
|
id: id || this.calculatedId,
|
|
154
153
|
name: name,
|
|
155
154
|
"class": this.inputClassName,
|
|
156
|
-
ref: this
|
|
157
|
-
_this.inputRef = el;
|
|
158
|
-
} : 'input',
|
|
155
|
+
ref: setRef(this, 'input'),
|
|
159
156
|
disabled: disabled,
|
|
160
|
-
|
|
157
|
+
tabindex: getTabIndex(tabIndex, disabled),
|
|
161
158
|
checked: this.v3 ? checked : null,
|
|
162
159
|
domProps: this.v3 ? undefined : {
|
|
163
160
|
"checked": checked,
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import * as Vue from 'vue';
|
|
3
3
|
var allVue = Vue;
|
|
4
4
|
var gh = allVue.h;
|
|
5
|
+
var isV3 = allVue.version[0] === '3';
|
|
5
6
|
var ref = allVue.ref;
|
|
6
7
|
var inject = allVue.inject;
|
|
7
8
|
import { RadioButton } from './RadioButton';
|
|
@@ -124,8 +125,8 @@ var RadioGroupVue2 = {
|
|
|
124
125
|
}
|
|
125
126
|
},
|
|
126
127
|
// @ts-ignore
|
|
127
|
-
setup: !
|
|
128
|
-
var v3 = !!
|
|
128
|
+
setup: !isV3 ? undefined : function () {
|
|
129
|
+
var v3 = !!isV3;
|
|
129
130
|
var inputRef = ref(null);
|
|
130
131
|
return {
|
|
131
132
|
v3: v3,
|
|
@@ -18,6 +18,7 @@ var __assign = this && this.__assign || function () {
|
|
|
18
18
|
import * as Vue from 'vue';
|
|
19
19
|
var allVue = Vue;
|
|
20
20
|
var gh = allVue.h;
|
|
21
|
+
var isV3 = allVue.version[0] === '3';
|
|
21
22
|
var ref = allVue.ref;
|
|
22
23
|
var inject = allVue.inject;
|
|
23
24
|
import { Draggable, Keys, // useDir,
|
|
@@ -145,8 +146,8 @@ var RangeSliderVue2 = {
|
|
|
145
146
|
}
|
|
146
147
|
},
|
|
147
148
|
// @ts-ignore
|
|
148
|
-
setup: !
|
|
149
|
-
var v3 = !!
|
|
149
|
+
setup: !isV3 ? undefined : function () {
|
|
150
|
+
var v3 = !!isV3;
|
|
150
151
|
var inputRef = ref(null);
|
|
151
152
|
var kendoLocalizationService = inject('kendoLocalizationService', {});
|
|
152
153
|
return {
|
|
@@ -188,9 +189,9 @@ var RangeSliderVue2 = {
|
|
|
188
189
|
"aria-describedby": this.$props.ariaDescribedBy
|
|
189
190
|
}, [// @ts-ignore function children
|
|
190
191
|
h(Draggable, {
|
|
191
|
-
onDrag: this.
|
|
192
|
+
onDrag: this.handleTrackDrag,
|
|
192
193
|
on: this.v3 ? undefined : {
|
|
193
|
-
"drag": this.
|
|
194
|
+
"drag": this.handleTrackDrag,
|
|
194
195
|
"press": this.handleTrackPress,
|
|
195
196
|
"release": this.handleTrackRelease
|
|
196
197
|
},
|
|
@@ -234,14 +235,14 @@ var RangeSliderVue2 = {
|
|
|
234
235
|
role: "slider",
|
|
235
236
|
attrs: _this.v3 ? undefined : {
|
|
236
237
|
role: "slider",
|
|
237
|
-
|
|
238
|
+
tabindex: getTabIndex(_this.startTabIndex, _this.$props.disabled, undefined),
|
|
238
239
|
"aria-valuemin": _this.min,
|
|
239
240
|
"aria-valuemax": Math.max(_this.max, _this.computedValue.end),
|
|
240
241
|
"aria-valuenow": _this.computedValue.start,
|
|
241
242
|
"aria-disabled": _this.disabled ? 'true' : undefined,
|
|
242
243
|
title: localization.toLanguageString(sliderDragTitle, messages[sliderDragTitle])
|
|
243
244
|
},
|
|
244
|
-
|
|
245
|
+
tabindex: getTabIndex(_this.startTabIndex, _this.$props.disabled, undefined),
|
|
245
246
|
"aria-valuemin": _this.min,
|
|
246
247
|
"aria-valuemax": Math.max(_this.max, _this.computedValue.end),
|
|
247
248
|
"aria-valuenow": _this.computedValue.start,
|
|
@@ -267,14 +268,14 @@ var RangeSliderVue2 = {
|
|
|
267
268
|
role: "slider",
|
|
268
269
|
attrs: _this.v3 ? undefined : {
|
|
269
270
|
role: "slider",
|
|
270
|
-
|
|
271
|
+
tabindex: getTabIndex(_this.endTabIndex, _this.$props.disabled, undefined),
|
|
271
272
|
"aria-valuemin": Math.min(_this.min, _this.computedValue.start),
|
|
272
273
|
"aria-valuemax": _this.max,
|
|
273
274
|
"aria-valuenow": _this.computedValue.end,
|
|
274
275
|
"aria-disabled": _this.disabled ? 'true' : undefined,
|
|
275
276
|
title: localization.toLanguageString(sliderDragTitle, messages[sliderDragTitle])
|
|
276
277
|
},
|
|
277
|
-
|
|
278
|
+
tabindex: getTabIndex(_this.endTabIndex, _this.$props.disabled, undefined),
|
|
278
279
|
"aria-valuemin": Math.min(_this.min, _this.computedValue.start),
|
|
279
280
|
"aria-valuemax": _this.max,
|
|
280
281
|
"aria-valuenow": _this.computedValue.end,
|
|
@@ -332,14 +333,14 @@ var RangeSliderVue2 = {
|
|
|
332
333
|
role: "slider",
|
|
333
334
|
attrs: _this.v3 ? undefined : {
|
|
334
335
|
role: "slider",
|
|
335
|
-
|
|
336
|
+
tabindex: getTabIndex(_this.startTabIndex, _this.$props.disabled, undefined),
|
|
336
337
|
"aria-valuemin": _this.min,
|
|
337
338
|
"aria-valuemax": Math.max(_this.max, _this.computedValue.end),
|
|
338
339
|
"aria-valuenow": _this.computedValue.start,
|
|
339
340
|
"aria-disabled": _this.disabled ? 'true' : undefined,
|
|
340
341
|
title: localization.toLanguageString(sliderDragTitle, messages[sliderDragTitle])
|
|
341
342
|
},
|
|
342
|
-
|
|
343
|
+
tabindex: getTabIndex(_this.startTabIndex, _this.$props.disabled, undefined),
|
|
343
344
|
"aria-valuemin": _this.min,
|
|
344
345
|
"aria-valuemax": Math.max(_this.max, _this.computedValue.end),
|
|
345
346
|
"aria-valuenow": _this.computedValue.start,
|
|
@@ -365,14 +366,14 @@ var RangeSliderVue2 = {
|
|
|
365
366
|
role: "slider",
|
|
366
367
|
attrs: _this.v3 ? undefined : {
|
|
367
368
|
role: "slider",
|
|
368
|
-
|
|
369
|
+
tabindex: getTabIndex(_this.endTabIndex, _this.$props.disabled, undefined),
|
|
369
370
|
"aria-valuemin": Math.min(_this.min, _this.computedValue.start),
|
|
370
371
|
"aria-valuemax": _this.max,
|
|
371
372
|
"aria-valuenow": _this.computedValue.end,
|
|
372
373
|
"aria-disabled": _this.disabled ? 'true' : undefined,
|
|
373
374
|
title: localization.toLanguageString(sliderDragTitle, messages[sliderDragTitle])
|
|
374
375
|
},
|
|
375
|
-
|
|
376
|
+
tabindex: getTabIndex(_this.endTabIndex, _this.$props.disabled, undefined),
|
|
376
377
|
"aria-valuemin": Math.min(_this.min, _this.computedValue.start),
|
|
377
378
|
"aria-valuemax": _this.max,
|
|
378
379
|
"aria-valuenow": _this.computedValue.end,
|
|
@@ -13,6 +13,10 @@ export interface SliderChangeEvent {
|
|
|
13
13
|
* The current value of the Slider.
|
|
14
14
|
*/
|
|
15
15
|
value: number;
|
|
16
|
+
/**
|
|
17
|
+
* The native event.
|
|
18
|
+
*/
|
|
19
|
+
event: any;
|
|
16
20
|
}
|
|
17
21
|
/**
|
|
18
22
|
* Represents the props of the [Kendo UI for Vue Slider component]({% slug overview_slider %}).
|
package/dist/es/slider/Slider.js
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import * as Vue from 'vue';
|
|
3
3
|
var allVue = Vue;
|
|
4
4
|
var gh = allVue.h;
|
|
5
|
+
var isV3 = allVue.version[0] === '3';
|
|
5
6
|
var ref = allVue.ref;
|
|
6
7
|
var inject = allVue.inject;
|
|
7
8
|
import { Button } from '@progress/kendo-vue-buttons';
|
|
@@ -117,8 +118,8 @@ var SliderVue2 = {
|
|
|
117
118
|
}
|
|
118
119
|
},
|
|
119
120
|
// @ts-ignore
|
|
120
|
-
setup: !
|
|
121
|
-
var v3 = !!
|
|
121
|
+
setup: !isV3 ? undefined : function () {
|
|
122
|
+
var v3 = !!isV3;
|
|
122
123
|
var inputRef = ref(null);
|
|
123
124
|
var kendoLocalizationService = inject('kendoLocalizationService', {});
|
|
124
125
|
return {
|
|
@@ -148,7 +149,7 @@ var SliderVue2 = {
|
|
|
148
149
|
dir: this.currentDir,
|
|
149
150
|
role: "slider",
|
|
150
151
|
id: this.$props.id,
|
|
151
|
-
|
|
152
|
+
tabindex: getTabIndex(this.$props.tabIndex, this.$props.disabled, undefined)
|
|
152
153
|
},
|
|
153
154
|
"aria-valuemax": this.$props.max,
|
|
154
155
|
"aria-valuenow": this.computedValue,
|
|
@@ -159,7 +160,7 @@ var SliderVue2 = {
|
|
|
159
160
|
role: "slider",
|
|
160
161
|
id: this.$props.id,
|
|
161
162
|
style: this.$props.style,
|
|
162
|
-
|
|
163
|
+
tabindex: getTabIndex(this.$props.tabIndex, this.$props.disabled, undefined),
|
|
163
164
|
onFocus: this.onFocus,
|
|
164
165
|
on: this.v3 ? undefined : {
|
|
165
166
|
"focus": this.onFocus,
|
|
@@ -18,6 +18,7 @@ var __assign = this && this.__assign || function () {
|
|
|
18
18
|
import * as Vue from 'vue';
|
|
19
19
|
var allVue = Vue;
|
|
20
20
|
var gh = allVue.h;
|
|
21
|
+
var isV3 = allVue.version[0] === '3';
|
|
21
22
|
var ref = allVue.ref;
|
|
22
23
|
import { getDefaultSlots } from '@progress/kendo-vue-common';
|
|
23
24
|
/**
|
|
@@ -59,8 +60,8 @@ var SliderLabelVue2 = {
|
|
|
59
60
|
}
|
|
60
61
|
},
|
|
61
62
|
// @ts-ignore
|
|
62
|
-
setup: !
|
|
63
|
-
var v3 = !!
|
|
63
|
+
setup: !isV3 ? undefined : function () {
|
|
64
|
+
var v3 = !!isV3;
|
|
64
65
|
return {
|
|
65
66
|
v3: v3
|
|
66
67
|
};
|
package/dist/es/switch/Switch.js
CHANGED
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
import * as Vue from 'vue';
|
|
3
3
|
var allVue = Vue;
|
|
4
4
|
var gh = allVue.h;
|
|
5
|
-
|
|
5
|
+
var isV3 = allVue.version[0] === '3';
|
|
6
|
+
import { guid, noop, Keys, getTabIndex, validatePackage, isRtl, kendoThemeMaps, setRef, getRef } from '@progress/kendo-vue-common';
|
|
6
7
|
import { provideLocalizationService } from '@progress/kendo-vue-intl';
|
|
7
8
|
import { messages, switchValidation } from './../messages';
|
|
8
9
|
import { packageMetadata } from '../package-metadata';
|
|
@@ -136,8 +137,8 @@ var SwitchVue2 = {
|
|
|
136
137
|
}
|
|
137
138
|
},
|
|
138
139
|
mounted: function mounted() {
|
|
139
|
-
this._element = this
|
|
140
|
-
this.input = this
|
|
140
|
+
this._element = getRef(this, 'element');
|
|
141
|
+
this.input = getRef(this, 'input');
|
|
141
142
|
this.currentDir = this.$props.dir !== undefined ? this.$props.dir : isRtl(this.$el) ? 'rtl' : 'ltr';
|
|
142
143
|
this.setValidity();
|
|
143
144
|
},
|
|
@@ -145,16 +146,14 @@ var SwitchVue2 = {
|
|
|
145
146
|
this.setValidity();
|
|
146
147
|
},
|
|
147
148
|
// @ts-ignore
|
|
148
|
-
setup: !
|
|
149
|
-
var v3 = !!
|
|
149
|
+
setup: !isV3 ? undefined : function () {
|
|
150
|
+
var v3 = !!isV3;
|
|
150
151
|
return {
|
|
151
152
|
v3: v3
|
|
152
153
|
};
|
|
153
154
|
},
|
|
154
155
|
// @ts-ignore
|
|
155
156
|
render: function render(createElement) {
|
|
156
|
-
var _this = this;
|
|
157
|
-
|
|
158
157
|
var h = gh || createElement;
|
|
159
158
|
var _a = this.$props,
|
|
160
159
|
disabled = _a.disabled,
|
|
@@ -189,24 +188,22 @@ var SwitchVue2 = {
|
|
|
189
188
|
"aria-disabled": disabled || undefined,
|
|
190
189
|
"aria-labelledby": this.$props.ariaLabelledBy,
|
|
191
190
|
"aria-describedby": this.$props.ariaDescribedBy,
|
|
192
|
-
|
|
193
|
-
|
|
191
|
+
tabindex: getTabIndex(tabIndex, disabled, undefined),
|
|
192
|
+
accesskey: this.$props.accessKey
|
|
194
193
|
},
|
|
195
194
|
role: 'switch',
|
|
196
195
|
"aria-checked": this.computedValue,
|
|
197
196
|
"aria-disabled": disabled || undefined,
|
|
198
197
|
"aria-labelledby": this.$props.ariaLabelledBy,
|
|
199
198
|
"aria-describedby": this.$props.ariaDescribedBy,
|
|
200
|
-
ref: this
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
tabIndex: getTabIndex(tabIndex, disabled, undefined),
|
|
204
|
-
accessKey: this.$props.accessKey
|
|
199
|
+
ref: setRef(this, 'element'),
|
|
200
|
+
tabindex: getTabIndex(tabIndex, disabled, undefined),
|
|
201
|
+
accesskey: this.$props.accessKey
|
|
205
202
|
}, [h("input", {
|
|
206
203
|
type: "checkbox",
|
|
207
204
|
attrs: this.v3 ? undefined : {
|
|
208
205
|
type: "checkbox",
|
|
209
|
-
|
|
206
|
+
tabindex: -1,
|
|
210
207
|
name: this.$props.name,
|
|
211
208
|
required: required !== undefined ? required : false,
|
|
212
209
|
"aria-hidden": true
|
|
@@ -216,10 +213,8 @@ var SwitchVue2 = {
|
|
|
216
213
|
"checked": this.$props.checked,
|
|
217
214
|
"value": this.computedValue
|
|
218
215
|
},
|
|
219
|
-
ref: this
|
|
220
|
-
|
|
221
|
-
} : 'input',
|
|
222
|
-
tabIndex: -1,
|
|
216
|
+
ref: setRef(this, 'input'),
|
|
217
|
+
tabindex: -1,
|
|
223
218
|
name: this.$props.name,
|
|
224
219
|
required: required !== undefined ? required : false,
|
|
225
220
|
"aria-hidden": true,
|
|
@@ -18,6 +18,7 @@ var __assign = this && this.__assign || function () {
|
|
|
18
18
|
import * as Vue from 'vue';
|
|
19
19
|
var allVue = Vue;
|
|
20
20
|
var gh = allVue.h;
|
|
21
|
+
var isV3 = allVue.version[0] === '3';
|
|
21
22
|
import { guid, isRtl, getTabIndex, validatePackage, kendoThemeMaps, templateDefinition, templateRendering, getListeners, getTemplate // useDir,
|
|
22
23
|
} from '@progress/kendo-vue-common';
|
|
23
24
|
import { packageMetadata } from '../package-metadata';
|
|
@@ -193,8 +194,8 @@ var TextAreaVue2 = {
|
|
|
193
194
|
this.setValidity();
|
|
194
195
|
},
|
|
195
196
|
// @ts-ignore
|
|
196
|
-
setup: !
|
|
197
|
-
var v3 = !!
|
|
197
|
+
setup: !isV3 ? undefined : function () {
|
|
198
|
+
var v3 = !!isV3;
|
|
198
199
|
return {
|
|
199
200
|
v3: v3
|
|
200
201
|
};
|
|
@@ -9,6 +9,7 @@ var Vue = require("vue");
|
|
|
9
9
|
|
|
10
10
|
var allVue = Vue;
|
|
11
11
|
var gh = allVue.h;
|
|
12
|
+
var isV3 = allVue.version[0] === '3';
|
|
12
13
|
var ref = allVue.ref;
|
|
13
14
|
var inject = allVue.inject;
|
|
14
15
|
|
|
@@ -157,7 +158,7 @@ var CheckboxVue2 = {
|
|
|
157
158
|
}
|
|
158
159
|
},
|
|
159
160
|
mounted: function mounted() {
|
|
160
|
-
this.input =
|
|
161
|
+
this.input = kendo_vue_common_1.getRef(this, 'input');
|
|
161
162
|
|
|
162
163
|
if (!this.currentDir && window && this.$el) {
|
|
163
164
|
// Note: getComputedStyle forces reflow
|
|
@@ -172,14 +173,14 @@ var CheckboxVue2 = {
|
|
|
172
173
|
},
|
|
173
174
|
updated: function updated() {
|
|
174
175
|
if (!this.input) {
|
|
175
|
-
this.input =
|
|
176
|
+
this.input = kendo_vue_common_1.getRef(this, 'input');
|
|
176
177
|
}
|
|
177
178
|
|
|
178
179
|
this.setValidity();
|
|
179
180
|
},
|
|
180
181
|
// @ts-ignore
|
|
181
|
-
setup: !
|
|
182
|
-
var v3 = !!
|
|
182
|
+
setup: !isV3 ? undefined : function () {
|
|
183
|
+
var v3 = !!isV3;
|
|
183
184
|
var inputRef = ref(null);
|
|
184
185
|
var kendoLocalizationService = inject('kendoLocalizationService', {});
|
|
185
186
|
return {
|
|
@@ -220,8 +221,6 @@ var CheckboxVue2 = {
|
|
|
220
221
|
}, _a["k-checkbox-" + kendo_vue_common_1.kendoThemeMaps.sizeMap[size]] = size, _a["k-rounded-" + kendo_vue_common_1.kendoThemeMaps.roundedMap[rounded]] = rounded, _a['k-state-indeterminate'] = this.indeterminateProp, _a['k-state-invalid k-invalid'] = !(this.isValid || validityStyles !== undefined || validityStyles === true), _a));
|
|
221
222
|
|
|
222
223
|
var checkboxInput = function checkboxInput() {
|
|
223
|
-
var _this = this;
|
|
224
|
-
|
|
225
224
|
return h("input", {
|
|
226
225
|
type: 'checkbox',
|
|
227
226
|
attrs: this.v3 ? undefined : {
|
|
@@ -231,7 +230,7 @@ var CheckboxVue2 = {
|
|
|
231
230
|
"aria-labelledby": ariaLabelledBy,
|
|
232
231
|
"aria-describedby": ariaDescribedBy,
|
|
233
232
|
disabled: disabled,
|
|
234
|
-
|
|
233
|
+
tabindex: kendo_vue_common_1.getTabIndex(tabIndex, disabled),
|
|
235
234
|
role: 'checkbox',
|
|
236
235
|
required: required !== undefined ? required : false,
|
|
237
236
|
"aria-checked": this.computedChecked || this.checkedProp ? true : this.indeterminateProp ? 'mixed' : false,
|
|
@@ -240,9 +239,7 @@ var CheckboxVue2 = {
|
|
|
240
239
|
"class": inputClasses,
|
|
241
240
|
name: name,
|
|
242
241
|
id: id || this.calculatedId,
|
|
243
|
-
ref: this
|
|
244
|
-
_this.inputRef = el;
|
|
245
|
-
} : 'input',
|
|
242
|
+
ref: kendo_vue_common_1.setRef(this, 'input'),
|
|
246
243
|
"aria-labelledby": ariaLabelledBy,
|
|
247
244
|
"aria-describedby": ariaDescribedBy,
|
|
248
245
|
checked: this.v3 ? Boolean(this.checkedProp) : null,
|
|
@@ -250,7 +247,7 @@ var CheckboxVue2 = {
|
|
|
250
247
|
"checked": Boolean(this.checkedProp)
|
|
251
248
|
},
|
|
252
249
|
disabled: disabled,
|
|
253
|
-
|
|
250
|
+
tabindex: kendo_vue_common_1.getTabIndex(tabIndex, disabled),
|
|
254
251
|
role: 'checkbox',
|
|
255
252
|
required: required !== undefined ? required : false,
|
|
256
253
|
"aria-checked": this.computedChecked || this.checkedProp ? true : this.indeterminateProp ? 'mixed' : false,
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { DefineComponent, RecordPropsDefinition, ComponentOptions, Vue2type } from '../additionalTypes';
|
|
2
|
+
declare type DefaultData<V> = object | ((this: V) => {});
|
|
3
|
+
declare type DefaultMethods<V> = {
|
|
4
|
+
[key: string]: (this: V, ...args: any[]) => any;
|
|
5
|
+
};
|
|
6
|
+
import { RGBA } from './models/rgba';
|
|
7
|
+
/**
|
|
8
|
+
* @hidden
|
|
9
|
+
*/
|
|
10
|
+
export interface ColorContrastLabelsProps {
|
|
11
|
+
bgColor: RGBA;
|
|
12
|
+
rgba: RGBA;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @hidden
|
|
16
|
+
*/
|
|
17
|
+
export interface ColorContrastLabelsState {
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* @hidden
|
|
21
|
+
*/
|
|
22
|
+
export interface ColorContrastLabelsComputed {
|
|
23
|
+
[key: string]: any;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* @hidden
|
|
27
|
+
*/
|
|
28
|
+
export interface ColorContrastLabelsMethods {
|
|
29
|
+
[key: string]: any;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* @hidden
|
|
33
|
+
*/
|
|
34
|
+
export interface ColorContrastLabelsData {
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* @hidden
|
|
38
|
+
*/
|
|
39
|
+
export interface ColorContrastLabelsAll extends Vue2type, ColorContrastLabelsMethods, ColorContrastLabelsData, ColorContrastLabelsComputed, ColorContrastLabelsState {
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* @hidden
|
|
43
|
+
*/
|
|
44
|
+
declare let ColorContrastLabelsVue2: ComponentOptions<ColorContrastLabelsAll, DefaultData<ColorContrastLabelsData>, DefaultMethods<ColorContrastLabelsAll>, ColorContrastLabelsComputed, RecordPropsDefinition<ColorContrastLabelsProps>>;
|
|
45
|
+
/**
|
|
46
|
+
* @hidden
|
|
47
|
+
*/
|
|
48
|
+
declare const ColorContrastLabels: DefineComponent<ColorContrastLabelsProps, any, ColorContrastLabelsData, ColorContrastLabelsComputed, ColorContrastLabelsMethods, {}, {}, {}, string, ColorContrastLabelsProps, ColorContrastLabelsProps, {}>;
|
|
49
|
+
export { ColorContrastLabels, ColorContrastLabelsVue2 };
|