@progress/kendo-vue-inputs 3.4.1 → 3.4.3-dev.202207111225
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.js +3 -2
- package/dist/es/colors/ColorContrastSvg.d.ts +1 -1
- package/dist/es/colors/ColorContrastSvg.js +3 -2
- package/dist/es/colors/ColorGradient.d.ts +1 -0
- package/dist/es/colors/ColorGradient.js +82 -59
- package/dist/es/colors/ColorInput.js +61 -15
- package/dist/es/colors/ColorPalette.d.ts +0 -1
- package/dist/es/colors/ColorPalette.js +14 -40
- package/dist/es/colors/ColorPicker.d.ts +0 -1
- package/dist/es/colors/ColorPicker.js +169 -93
- package/dist/es/colors/FlatColorPicker.js +61 -22
- package/dist/es/colors/HexInput.js +28 -9
- package/dist/es/colors/Picker.js +3 -2
- package/dist/es/colors/interfaces/ColorPickerProps.d.ts +6 -1
- package/dist/es/colors/utils/color-palette.service.d.ts +1 -0
- package/dist/es/colors/utils/color-palette.service.js +7 -16
- 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/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 +11 -10
- package/dist/es/slider/Slider.js +17 -6
- 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.js +3 -2
- package/dist/npm/colors/ColorContrastSvg.d.ts +1 -1
- package/dist/npm/colors/ColorContrastSvg.js +3 -2
- package/dist/npm/colors/ColorGradient.d.ts +1 -0
- package/dist/npm/colors/ColorGradient.js +81 -58
- package/dist/npm/colors/ColorInput.js +61 -15
- package/dist/npm/colors/ColorPalette.d.ts +0 -1
- package/dist/npm/colors/ColorPalette.js +13 -39
- package/dist/npm/colors/ColorPicker.d.ts +0 -1
- package/dist/npm/colors/ColorPicker.js +168 -91
- package/dist/npm/colors/FlatColorPicker.js +61 -22
- package/dist/npm/colors/HexInput.js +28 -9
- package/dist/npm/colors/Picker.js +3 -2
- package/dist/npm/colors/interfaces/ColorPickerProps.d.ts +6 -1
- package/dist/npm/colors/utils/color-palette.service.d.ts +1 -0
- package/dist/npm/colors/utils/color-palette.service.js +7 -16
- 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 +2 -0
- package/dist/npm/maskedtextbox/MaskedTextBox.js +20 -23
- 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 +11 -10
- package/dist/npm/slider/Slider.js +17 -6
- 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 +14 -14
|
@@ -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
|
|
|
13
14
|
var kendo_vue_popup_1 = require("@progress/kendo-vue-popup");
|
|
14
15
|
|
|
@@ -54,8 +55,8 @@ var PickerVue2 = {
|
|
|
54
55
|
}
|
|
55
56
|
},
|
|
56
57
|
// @ts-ignore
|
|
57
|
-
setup: !
|
|
58
|
-
var v3 = !!
|
|
58
|
+
setup: !isV3 ? undefined : function () {
|
|
59
|
+
var v3 = !!isV3;
|
|
59
60
|
return {
|
|
60
61
|
v3: v3
|
|
61
62
|
};
|
|
@@ -5,6 +5,7 @@ import { ColorPickerActiveColorClick } from './ColorPickerActiveColorClick';
|
|
|
5
5
|
import { ColorPickerPopupSettings } from './ColorPickerPopupSettings';
|
|
6
6
|
import { ColorPickerPaletteSettings } from './ColorPickerPaletteSettings';
|
|
7
7
|
import { ColorPickerView } from './ColorPickerView';
|
|
8
|
+
import { ColorGradientProps } from './ColorGradientProps';
|
|
8
9
|
/**
|
|
9
10
|
* Represents the props of the [Kendo UI for Vue ColorPicker component]({% slug overview_colorpicker %}).
|
|
10
11
|
*/
|
|
@@ -46,7 +47,7 @@ export interface ColorPickerProps {
|
|
|
46
47
|
* Sets the view which the ColorPicker will render in the popup
|
|
47
48
|
* ([see example]({% slug combinedview_colorpicker %})).
|
|
48
49
|
*/
|
|
49
|
-
view?: ColorPickerView;
|
|
50
|
+
view?: ColorPickerView | string;
|
|
50
51
|
/**
|
|
51
52
|
* Represents the `dir` HTML attribute.
|
|
52
53
|
*/
|
|
@@ -68,6 +69,10 @@ export interface ColorPickerProps {
|
|
|
68
69
|
* ([see example]({% slug customizecolorpicker_colorpicker %}#toc-customizing-the-palette-popup)).
|
|
69
70
|
*/
|
|
70
71
|
paletteSettings?: ColorPickerPaletteSettings;
|
|
72
|
+
/**
|
|
73
|
+
* Configures the ColorGradient that is displayed in the ColorPicker popup.
|
|
74
|
+
*/
|
|
75
|
+
gradientSettings?: ColorGradientProps;
|
|
71
76
|
/**
|
|
72
77
|
* Configures the popup of the ColorPicker.
|
|
73
78
|
*/
|
|
@@ -5,6 +5,7 @@ import { TableCell } from '../models/table-cell';
|
|
|
5
5
|
export declare class ColorPaletteService {
|
|
6
6
|
colorRows: string[][];
|
|
7
7
|
setColorMatrix(palette: string[], columns: number): void;
|
|
8
|
+
isInColors(colors: any, current: any): boolean;
|
|
8
9
|
getCellCoordsFor(color?: string): TableCell | undefined;
|
|
9
10
|
getColorAt(cellCoords: TableCell): string | undefined;
|
|
10
11
|
getNextCell(current: TableCell, horizontalStep: number, verticalStep: number): TableCell;
|
|
@@ -21,8 +21,10 @@ var ColorPaletteService = /** @class */ (function () {
|
|
|
21
21
|
this.colorRows.push(row);
|
|
22
22
|
}
|
|
23
23
|
};
|
|
24
|
+
ColorPaletteService.prototype.isInColors = function (colors, current) {
|
|
25
|
+
return colors.some(function (c) { return c === current; });
|
|
26
|
+
};
|
|
24
27
|
ColorPaletteService.prototype.getCellCoordsFor = function (color) {
|
|
25
|
-
var _this = this;
|
|
26
28
|
if (!misc_1.isPresent(color)) {
|
|
27
29
|
return;
|
|
28
30
|
}
|
|
@@ -31,23 +33,12 @@ var ColorPaletteService = /** @class */ (function () {
|
|
|
31
33
|
if (misc_1.isPresent(parsedColor)) {
|
|
32
34
|
colors.push(parsedColor.toCss(), parsedColor.toCssRgba());
|
|
33
35
|
}
|
|
34
|
-
var
|
|
35
|
-
var
|
|
36
|
-
if (
|
|
37
|
-
return {
|
|
36
|
+
for (var row = 0; row < this.colorRows.length; row++) {
|
|
37
|
+
for (var col = 0; col < this.colorRows[row].length; col++) {
|
|
38
|
+
if (this.isInColors(colors, this.colorRows[row][col])) {
|
|
39
|
+
return { row: row, col: col };
|
|
38
40
|
}
|
|
39
|
-
};
|
|
40
|
-
for (var col = 0; col < this_1.colorRows[row].length; col++) {
|
|
41
|
-
var state_2 = _loop_2(col);
|
|
42
|
-
if (typeof state_2 === "object")
|
|
43
|
-
return state_2;
|
|
44
41
|
}
|
|
45
|
-
};
|
|
46
|
-
var this_1 = this;
|
|
47
|
-
for (var row = 0; row < this.colorRows.length; row++) {
|
|
48
|
-
var state_1 = _loop_1(row);
|
|
49
|
-
if (typeof state_1 === "object")
|
|
50
|
-
return state_1.value;
|
|
51
42
|
}
|
|
52
43
|
};
|
|
53
44
|
ColorPaletteService.prototype.getColorAt = function (cellCoords) {
|
package/dist/npm/input/Input.js
CHANGED
|
@@ -25,6 +25,7 @@ var Vue = require("vue");
|
|
|
25
25
|
|
|
26
26
|
var allVue = Vue;
|
|
27
27
|
var gh = allVue.h;
|
|
28
|
+
var isV3 = allVue.version[0] === '3';
|
|
28
29
|
var ref = allVue.ref;
|
|
29
30
|
|
|
30
31
|
var kendo_vue_common_1 = require("@progress/kendo-vue-common");
|
|
@@ -149,8 +150,8 @@ var InputVue2 = {
|
|
|
149
150
|
this.setValidity();
|
|
150
151
|
},
|
|
151
152
|
// @ts-ignore
|
|
152
|
-
setup: !
|
|
153
|
-
var v3 = !!
|
|
153
|
+
setup: !isV3 ? undefined : function () {
|
|
154
|
+
var v3 = !!isV3;
|
|
154
155
|
var inputRef = ref(null);
|
|
155
156
|
return {
|
|
156
157
|
v3: v3,
|
|
@@ -11,6 +11,7 @@ var Vue = require("vue");
|
|
|
11
11
|
|
|
12
12
|
var allVue = Vue;
|
|
13
13
|
var gh = allVue.h;
|
|
14
|
+
var isV3 = allVue.version[0] === '3';
|
|
14
15
|
var ref = allVue.ref;
|
|
15
16
|
|
|
16
17
|
var package_metadata_1 = require("../package-metadata");
|
|
@@ -24,8 +25,8 @@ var InputSeparatorVue2 = {
|
|
|
24
25
|
kendo_licensing_1.validatePackage(package_metadata_1.packageMetadata);
|
|
25
26
|
},
|
|
26
27
|
// @ts-ignore
|
|
27
|
-
setup: !
|
|
28
|
-
var v3 = !!
|
|
28
|
+
setup: !isV3 ? undefined : function () {
|
|
29
|
+
var v3 = !!isV3;
|
|
29
30
|
return {
|
|
30
31
|
v3: v3
|
|
31
32
|
};
|
package/dist/npm/main.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { FormComponentValidity } from '@progress/kendo-vue-common';
|
|
2
2
|
export { FormComponentValidity };
|
|
3
|
+
export { ColorGradient, ColorGradientState } from './colors/ColorGradient';
|
|
3
4
|
export { ColorPalette, ColorPaletteState } from './colors/ColorPalette';
|
|
4
5
|
export * from './colors/ColorPicker';
|
|
5
6
|
export * from './colors/interfaces/ColorPaletteChangeEvent';
|
package/dist/npm/main.js
CHANGED
|
@@ -10,6 +10,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
10
10
|
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p);
|
|
11
11
|
};
|
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
var ColorGradient_1 = require("./colors/ColorGradient");
|
|
14
|
+
Object.defineProperty(exports, "ColorGradient", { enumerable: true, get: function () { return ColorGradient_1.ColorGradient; } });
|
|
13
15
|
var ColorPalette_1 = require("./colors/ColorPalette");
|
|
14
16
|
Object.defineProperty(exports, "ColorPalette", { enumerable: true, get: function () { return ColorPalette_1.ColorPalette; } });
|
|
15
17
|
__exportStar(require("./colors/ColorPicker"), exports);
|
|
@@ -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
|
|
|
14
15
|
var masking_service_1 = require("./masking.service");
|
|
@@ -132,8 +133,8 @@ var MaskedTextBoxVue2 = {
|
|
|
132
133
|
this.isPasted = false;
|
|
133
134
|
},
|
|
134
135
|
// @ts-ignore
|
|
135
|
-
setup: !
|
|
136
|
-
var v3 = !!
|
|
136
|
+
setup: !isV3 ? undefined : function () {
|
|
137
|
+
var v3 = !!isV3;
|
|
137
138
|
var inputRef = ref(null);
|
|
138
139
|
return {
|
|
139
140
|
v3: v3,
|
|
@@ -384,8 +385,6 @@ var MaskedTextBoxVue2 = {
|
|
|
384
385
|
},
|
|
385
386
|
// @ts-ignore
|
|
386
387
|
render: function render(createElement) {
|
|
387
|
-
var _this = this;
|
|
388
|
-
|
|
389
388
|
var h = gh || createElement;
|
|
390
389
|
var inputId = this.$props.id || this.inputId;
|
|
391
390
|
var _a = this.$props,
|
|
@@ -431,26 +430,26 @@ var MaskedTextBoxVue2 = {
|
|
|
431
430
|
type: this.$props.type,
|
|
432
431
|
attrs: this.v3 ? undefined : {
|
|
433
432
|
type: this.$props.type,
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
433
|
+
autocomplete: "off",
|
|
434
|
+
autocorrect: "off",
|
|
435
|
+
autocapitalize: "off",
|
|
436
|
+
spellcheck: false,
|
|
438
437
|
id: inputId,
|
|
439
438
|
"aria-labelledby": this.$props.ariaLabelledBy,
|
|
440
439
|
"aria-describedby": this.$props.ariaDescribedBy,
|
|
441
440
|
name: this.$props.name,
|
|
442
|
-
|
|
443
|
-
|
|
441
|
+
tabindex: kendo_vue_common_1.getTabIndex(this.$props.tabIndex, this.$props.disabled, true),
|
|
442
|
+
accesskey: this.$props.accessKey,
|
|
444
443
|
title: this.$props.title,
|
|
445
444
|
disabled: this.$props.disabled || undefined,
|
|
446
|
-
|
|
445
|
+
readonly: this.$props.readonly || undefined,
|
|
447
446
|
placeholder: this.$props.placeholder,
|
|
448
447
|
required: this.$props.required
|
|
449
448
|
},
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
449
|
+
autocomplete: "off",
|
|
450
|
+
autocorrect: "off",
|
|
451
|
+
autocapitalize: "off",
|
|
452
|
+
spellcheck: false,
|
|
454
453
|
"class": this.inputInnerClass,
|
|
455
454
|
value: this.v3 ? newValue : null,
|
|
456
455
|
domProps: this.v3 ? undefined : {
|
|
@@ -460,29 +459,27 @@ var MaskedTextBoxVue2 = {
|
|
|
460
459
|
"aria-labelledby": this.$props.ariaLabelledBy,
|
|
461
460
|
"aria-describedby": this.$props.ariaDescribedBy,
|
|
462
461
|
name: this.$props.name,
|
|
463
|
-
|
|
464
|
-
|
|
462
|
+
tabindex: kendo_vue_common_1.getTabIndex(this.$props.tabIndex, this.$props.disabled, true),
|
|
463
|
+
accesskey: this.$props.accessKey,
|
|
465
464
|
title: this.$props.title,
|
|
466
465
|
disabled: this.$props.disabled || undefined,
|
|
467
|
-
|
|
466
|
+
readonly: this.$props.readonly || undefined,
|
|
468
467
|
placeholder: this.$props.placeholder,
|
|
469
468
|
required: this.$props.required,
|
|
470
|
-
ref: this
|
|
471
|
-
_this.inputRef = el;
|
|
472
|
-
} : 'input',
|
|
469
|
+
ref: kendo_vue_common_1.setRef(this, 'input'),
|
|
473
470
|
onInput: this.onChangeHandler,
|
|
474
471
|
on: this.v3 ? undefined : {
|
|
475
472
|
"input": this.onChangeHandler,
|
|
476
473
|
"paste": this.pasteHandler,
|
|
477
474
|
"focus": this.focusHandler,
|
|
478
475
|
"blur": this.blurHandler,
|
|
479
|
-
"
|
|
476
|
+
"dragstart": utils_1.returnFalse,
|
|
480
477
|
"drop": utils_1.returnFalse
|
|
481
478
|
},
|
|
482
479
|
onPaste: this.pasteHandler,
|
|
483
480
|
onFocus: this.focusHandler,
|
|
484
481
|
onBlur: this.blurHandler,
|
|
485
|
-
|
|
482
|
+
onDragstart: utils_1.returnFalse,
|
|
486
483
|
onDrop: utils_1.returnFalse
|
|
487
484
|
}), this.$props.inputSuffix && h("span", {
|
|
488
485
|
"class": "k-input-suffix"
|
|
@@ -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
|
|
|
@@ -156,7 +157,7 @@ var NumericTextBoxVue2 = {
|
|
|
156
157
|
}
|
|
157
158
|
},
|
|
158
159
|
mounted: function mounted() {
|
|
159
|
-
this._input =
|
|
160
|
+
this._input = kendo_vue_common_1.getRef(this, 'input');
|
|
160
161
|
this._elementWrapper = this.v3 ? this.elementWrapperRef : this.$refs.elementWrapper;
|
|
161
162
|
this.$data.hasMounted = true;
|
|
162
163
|
|
|
@@ -487,8 +488,8 @@ var NumericTextBoxVue2 = {
|
|
|
487
488
|
}
|
|
488
489
|
},
|
|
489
490
|
// @ts-ignore
|
|
490
|
-
setup: !
|
|
491
|
-
var v3 = !!
|
|
491
|
+
setup: !isV3 ? undefined : function () {
|
|
492
|
+
var v3 = !!isV3;
|
|
492
493
|
var inputRef = ref(null);
|
|
493
494
|
var elementWrapperRef = ref(null);
|
|
494
495
|
var kendoLocalizationService = inject('kendoLocalizationService', {});
|
|
@@ -503,8 +504,6 @@ var NumericTextBoxVue2 = {
|
|
|
503
504
|
},
|
|
504
505
|
// @ts-ignore
|
|
505
506
|
render: function render(createElement) {
|
|
506
|
-
var _this = this;
|
|
507
|
-
|
|
508
507
|
var h = gh || createElement;
|
|
509
508
|
var _a = this.$props,
|
|
510
509
|
iconName = _a.iconName,
|
|
@@ -555,33 +554,33 @@ var NumericTextBoxVue2 = {
|
|
|
555
554
|
}), this.$props.inputPrefix && h("span", {
|
|
556
555
|
"class": "k-input-prefix"
|
|
557
556
|
}, [inputPrefix]), h("input", {
|
|
558
|
-
|
|
557
|
+
tabindex: this.$props.tabIndex,
|
|
559
558
|
attrs: this.v3 ? undefined : {
|
|
560
|
-
|
|
561
|
-
|
|
559
|
+
tabindex: this.$props.tabIndex,
|
|
560
|
+
accesskey: this.$props.accessKey,
|
|
562
561
|
disabled: this.$props.disabled,
|
|
563
562
|
title: this.$props.title,
|
|
564
563
|
"aria-valuemin": this.$props.min,
|
|
565
564
|
"aria-valuemax": this.$props.max,
|
|
566
565
|
placeholder: this.$props.placeholder,
|
|
567
566
|
type: this.$props.inputType || 'tel',
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
567
|
+
spellcheck: false,
|
|
568
|
+
autocomplete: "off",
|
|
569
|
+
autocorrect: "off",
|
|
571
570
|
id: inputId,
|
|
572
571
|
"aria-valuenow": this.$data.currentValue !== null ? this.$data.currentValue : undefined,
|
|
573
572
|
name: this.$props.name
|
|
574
573
|
},
|
|
575
|
-
|
|
574
|
+
accesskey: this.$props.accessKey,
|
|
576
575
|
disabled: this.$props.disabled,
|
|
577
576
|
title: this.$props.title,
|
|
578
577
|
"aria-valuemin": this.$props.min,
|
|
579
578
|
"aria-valuemax": this.$props.max,
|
|
580
579
|
placeholder: this.$props.placeholder,
|
|
581
580
|
type: this.$props.inputType || 'tel',
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
581
|
+
spellcheck: false,
|
|
582
|
+
autocomplete: "off",
|
|
583
|
+
autocorrect: "off",
|
|
585
584
|
"class": this.inputInnerClass,
|
|
586
585
|
id: inputId,
|
|
587
586
|
value: this.v3 ? this.looseValue : null,
|
|
@@ -604,9 +603,7 @@ var NumericTextBoxVue2 = {
|
|
|
604
603
|
onFocus: this.emitFocus,
|
|
605
604
|
onBlur: this.emitBlur,
|
|
606
605
|
onPaste: this.onPasteHandler,
|
|
607
|
-
ref: this
|
|
608
|
-
_this.inputRef = el;
|
|
609
|
-
} : 'input'
|
|
606
|
+
ref: kendo_vue_common_1.setRef(this, 'input')
|
|
610
607
|
}), this.$props.inputSuffix && h("span", {
|
|
611
608
|
"class": "k-input-suffix"
|
|
612
609
|
}, [inputSuffix]), showValidationIcon && isValid && h("span", {
|
|
@@ -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: 1657541784,
|
|
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
|
};
|
|
@@ -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
|
|
|
@@ -65,7 +66,7 @@ var RadioButtonVue2 = {
|
|
|
65
66
|
kendo_vue_common_2.validatePackage(package_metadata_1.packageMetadata);
|
|
66
67
|
},
|
|
67
68
|
mounted: function mounted() {
|
|
68
|
-
this.input =
|
|
69
|
+
this.input = kendo_vue_common_1.getRef(this, 'input');
|
|
69
70
|
},
|
|
70
71
|
computed: {
|
|
71
72
|
inputClassName: function inputClassName() {
|
|
@@ -100,8 +101,8 @@ var RadioButtonVue2 = {
|
|
|
100
101
|
}
|
|
101
102
|
},
|
|
102
103
|
// @ts-ignore
|
|
103
|
-
setup: !
|
|
104
|
-
var v3 = !!
|
|
104
|
+
setup: !isV3 ? undefined : function () {
|
|
105
|
+
var v3 = !!isV3;
|
|
105
106
|
var inputRef = ref(null);
|
|
106
107
|
return {
|
|
107
108
|
v3: v3,
|
|
@@ -109,8 +110,6 @@ var RadioButtonVue2 = {
|
|
|
109
110
|
};
|
|
110
111
|
},
|
|
111
112
|
render: function render(createElement) {
|
|
112
|
-
var _this = this;
|
|
113
|
-
|
|
114
113
|
var h = gh || createElement;
|
|
115
114
|
var defaultSlot = kendo_vue_common_1.getDefaultSlots(this);
|
|
116
115
|
var _a = this.$props,
|
|
@@ -158,17 +157,15 @@ var RadioButtonVue2 = {
|
|
|
158
157
|
id: id || this.calculatedId,
|
|
159
158
|
name: name,
|
|
160
159
|
disabled: disabled,
|
|
161
|
-
|
|
160
|
+
tabindex: kendo_vue_common_1.getTabIndex(tabIndex, disabled),
|
|
162
161
|
"aria-describedby": ariaDescribedBy
|
|
163
162
|
},
|
|
164
163
|
id: id || this.calculatedId,
|
|
165
164
|
name: name,
|
|
166
165
|
"class": this.inputClassName,
|
|
167
|
-
ref: this
|
|
168
|
-
_this.inputRef = el;
|
|
169
|
-
} : 'input',
|
|
166
|
+
ref: kendo_vue_common_1.setRef(this, 'input'),
|
|
170
167
|
disabled: disabled,
|
|
171
|
-
|
|
168
|
+
tabindex: kendo_vue_common_1.getTabIndex(tabIndex, disabled),
|
|
172
169
|
checked: this.v3 ? checked : null,
|
|
173
170
|
domProps: this.v3 ? undefined : {
|
|
174
171
|
"checked": checked,
|
|
@@ -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
|
|
|
@@ -135,8 +136,8 @@ var RadioGroupVue2 = {
|
|
|
135
136
|
}
|
|
136
137
|
},
|
|
137
138
|
// @ts-ignore
|
|
138
|
-
setup: !
|
|
139
|
-
var v3 = !!
|
|
139
|
+
setup: !isV3 ? undefined : function () {
|
|
140
|
+
var v3 = !!isV3;
|
|
140
141
|
var inputRef = ref(null);
|
|
141
142
|
return {
|
|
142
143
|
v3: v3,
|
|
@@ -25,6 +25,7 @@ var Vue = require("vue");
|
|
|
25
25
|
|
|
26
26
|
var allVue = Vue;
|
|
27
27
|
var gh = allVue.h;
|
|
28
|
+
var isV3 = allVue.version[0] === '3';
|
|
28
29
|
var ref = allVue.ref;
|
|
29
30
|
var inject = allVue.inject;
|
|
30
31
|
|
|
@@ -157,8 +158,8 @@ var RangeSliderVue2 = {
|
|
|
157
158
|
}
|
|
158
159
|
},
|
|
159
160
|
// @ts-ignore
|
|
160
|
-
setup: !
|
|
161
|
-
var v3 = !!
|
|
161
|
+
setup: !isV3 ? undefined : function () {
|
|
162
|
+
var v3 = !!isV3;
|
|
162
163
|
var inputRef = ref(null);
|
|
163
164
|
var kendoLocalizationService = inject('kendoLocalizationService', {});
|
|
164
165
|
return {
|
|
@@ -246,14 +247,14 @@ var RangeSliderVue2 = {
|
|
|
246
247
|
role: "slider",
|
|
247
248
|
attrs: _this.v3 ? undefined : {
|
|
248
249
|
role: "slider",
|
|
249
|
-
|
|
250
|
+
tabindex: kendo_vue_common_1.getTabIndex(_this.startTabIndex, _this.$props.disabled, undefined),
|
|
250
251
|
"aria-valuemin": _this.min,
|
|
251
252
|
"aria-valuemax": Math.max(_this.max, _this.computedValue.end),
|
|
252
253
|
"aria-valuenow": _this.computedValue.start,
|
|
253
254
|
"aria-disabled": _this.disabled ? 'true' : undefined,
|
|
254
255
|
title: localization.toLanguageString(messages_1.sliderDragTitle, messages_1.messages[messages_1.sliderDragTitle])
|
|
255
256
|
},
|
|
256
|
-
|
|
257
|
+
tabindex: kendo_vue_common_1.getTabIndex(_this.startTabIndex, _this.$props.disabled, undefined),
|
|
257
258
|
"aria-valuemin": _this.min,
|
|
258
259
|
"aria-valuemax": Math.max(_this.max, _this.computedValue.end),
|
|
259
260
|
"aria-valuenow": _this.computedValue.start,
|
|
@@ -279,14 +280,14 @@ var RangeSliderVue2 = {
|
|
|
279
280
|
role: "slider",
|
|
280
281
|
attrs: _this.v3 ? undefined : {
|
|
281
282
|
role: "slider",
|
|
282
|
-
|
|
283
|
+
tabindex: kendo_vue_common_1.getTabIndex(_this.endTabIndex, _this.$props.disabled, undefined),
|
|
283
284
|
"aria-valuemin": Math.min(_this.min, _this.computedValue.start),
|
|
284
285
|
"aria-valuemax": _this.max,
|
|
285
286
|
"aria-valuenow": _this.computedValue.end,
|
|
286
287
|
"aria-disabled": _this.disabled ? 'true' : undefined,
|
|
287
288
|
title: localization.toLanguageString(messages_1.sliderDragTitle, messages_1.messages[messages_1.sliderDragTitle])
|
|
288
289
|
},
|
|
289
|
-
|
|
290
|
+
tabindex: kendo_vue_common_1.getTabIndex(_this.endTabIndex, _this.$props.disabled, undefined),
|
|
290
291
|
"aria-valuemin": Math.min(_this.min, _this.computedValue.start),
|
|
291
292
|
"aria-valuemax": _this.max,
|
|
292
293
|
"aria-valuenow": _this.computedValue.end,
|
|
@@ -344,14 +345,14 @@ var RangeSliderVue2 = {
|
|
|
344
345
|
role: "slider",
|
|
345
346
|
attrs: _this.v3 ? undefined : {
|
|
346
347
|
role: "slider",
|
|
347
|
-
|
|
348
|
+
tabindex: kendo_vue_common_1.getTabIndex(_this.startTabIndex, _this.$props.disabled, undefined),
|
|
348
349
|
"aria-valuemin": _this.min,
|
|
349
350
|
"aria-valuemax": Math.max(_this.max, _this.computedValue.end),
|
|
350
351
|
"aria-valuenow": _this.computedValue.start,
|
|
351
352
|
"aria-disabled": _this.disabled ? 'true' : undefined,
|
|
352
353
|
title: localization.toLanguageString(messages_1.sliderDragTitle, messages_1.messages[messages_1.sliderDragTitle])
|
|
353
354
|
},
|
|
354
|
-
|
|
355
|
+
tabindex: kendo_vue_common_1.getTabIndex(_this.startTabIndex, _this.$props.disabled, undefined),
|
|
355
356
|
"aria-valuemin": _this.min,
|
|
356
357
|
"aria-valuemax": Math.max(_this.max, _this.computedValue.end),
|
|
357
358
|
"aria-valuenow": _this.computedValue.start,
|
|
@@ -377,14 +378,14 @@ var RangeSliderVue2 = {
|
|
|
377
378
|
role: "slider",
|
|
378
379
|
attrs: _this.v3 ? undefined : {
|
|
379
380
|
role: "slider",
|
|
380
|
-
|
|
381
|
+
tabindex: kendo_vue_common_1.getTabIndex(_this.endTabIndex, _this.$props.disabled, undefined),
|
|
381
382
|
"aria-valuemin": Math.min(_this.min, _this.computedValue.start),
|
|
382
383
|
"aria-valuemax": _this.max,
|
|
383
384
|
"aria-valuenow": _this.computedValue.end,
|
|
384
385
|
"aria-disabled": _this.disabled ? 'true' : undefined,
|
|
385
386
|
title: localization.toLanguageString(messages_1.sliderDragTitle, messages_1.messages[messages_1.sliderDragTitle])
|
|
386
387
|
},
|
|
387
|
-
|
|
388
|
+
tabindex: kendo_vue_common_1.getTabIndex(_this.endTabIndex, _this.$props.disabled, undefined),
|
|
388
389
|
"aria-valuemin": Math.min(_this.min, _this.computedValue.start),
|
|
389
390
|
"aria-valuemax": _this.max,
|
|
390
391
|
"aria-valuenow": _this.computedValue.end,
|
|
@@ -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
|
|
|
@@ -33,6 +34,14 @@ var SliderVue2 = {
|
|
|
33
34
|
model: {
|
|
34
35
|
event: 'changemodel'
|
|
35
36
|
},
|
|
37
|
+
// @ts-ignore
|
|
38
|
+
emits: {
|
|
39
|
+
'changemodel': null,
|
|
40
|
+
'update:modelValue': null,
|
|
41
|
+
'change': null,
|
|
42
|
+
'blur': null,
|
|
43
|
+
'focus': null
|
|
44
|
+
},
|
|
36
45
|
props: {
|
|
37
46
|
modelValue: {
|
|
38
47
|
type: Number,
|
|
@@ -131,8 +140,8 @@ var SliderVue2 = {
|
|
|
131
140
|
}
|
|
132
141
|
},
|
|
133
142
|
// @ts-ignore
|
|
134
|
-
setup: !
|
|
135
|
-
var v3 = !!
|
|
143
|
+
setup: !isV3 ? undefined : function () {
|
|
144
|
+
var v3 = !!isV3;
|
|
136
145
|
var inputRef = ref(null);
|
|
137
146
|
var kendoLocalizationService = inject('kendoLocalizationService', {});
|
|
138
147
|
return {
|
|
@@ -162,7 +171,7 @@ var SliderVue2 = {
|
|
|
162
171
|
dir: this.currentDir,
|
|
163
172
|
role: "slider",
|
|
164
173
|
id: this.$props.id,
|
|
165
|
-
|
|
174
|
+
tabindex: kendo_vue_common_1.getTabIndex(this.$props.tabIndex, this.$props.disabled, undefined)
|
|
166
175
|
},
|
|
167
176
|
"aria-valuemax": this.$props.max,
|
|
168
177
|
"aria-valuenow": this.computedValue,
|
|
@@ -173,7 +182,7 @@ var SliderVue2 = {
|
|
|
173
182
|
role: "slider",
|
|
174
183
|
id: this.$props.id,
|
|
175
184
|
style: this.$props.style,
|
|
176
|
-
|
|
185
|
+
tabindex: kendo_vue_common_1.getTabIndex(this.$props.tabIndex, this.$props.disabled, undefined),
|
|
177
186
|
onFocus: this.onFocus,
|
|
178
187
|
on: this.v3 ? undefined : {
|
|
179
188
|
"focus": this.onFocus,
|
|
@@ -321,11 +330,13 @@ var SliderVue2 = {
|
|
|
321
330
|
|
|
322
331
|
return false;
|
|
323
332
|
},
|
|
324
|
-
onFocus: function onFocus() {
|
|
333
|
+
onFocus: function onFocus(event) {
|
|
325
334
|
this.currentFocused = true;
|
|
335
|
+
this.$emit('focus', event);
|
|
326
336
|
},
|
|
327
|
-
onBlur: function onBlur() {
|
|
337
|
+
onBlur: function onBlur(event) {
|
|
328
338
|
this.currentFocused = false;
|
|
339
|
+
this.$emit('blur', event);
|
|
329
340
|
},
|
|
330
341
|
onKeyDown: function onKeyDown(e) {
|
|
331
342
|
var newValue = undefined;
|
|
@@ -25,6 +25,7 @@ var Vue = require("vue");
|
|
|
25
25
|
|
|
26
26
|
var allVue = Vue;
|
|
27
27
|
var gh = allVue.h;
|
|
28
|
+
var isV3 = allVue.version[0] === '3';
|
|
28
29
|
var ref = allVue.ref;
|
|
29
30
|
|
|
30
31
|
var kendo_vue_common_1 = require("@progress/kendo-vue-common");
|
|
@@ -68,8 +69,8 @@ var SliderLabelVue2 = {
|
|
|
68
69
|
}
|
|
69
70
|
},
|
|
70
71
|
// @ts-ignore
|
|
71
|
-
setup: !
|
|
72
|
-
var v3 = !!
|
|
72
|
+
setup: !isV3 ? undefined : function () {
|
|
73
|
+
var v3 = !!isV3;
|
|
73
74
|
return {
|
|
74
75
|
v3: v3
|
|
75
76
|
};
|