@progress/kendo-vue-inputs 3.4.4 → 3.4.5
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 +2 -2
- package/dist/es/colors/ColorGradient.d.ts +2 -0
- package/dist/es/colors/ColorGradient.js +161 -77
- package/dist/es/colors/ColorInput.d.ts +3 -0
- package/dist/es/colors/ColorInput.js +80 -56
- package/dist/es/colors/ColorPalette.js +30 -16
- package/dist/es/colors/ColorPicker.d.ts +1 -0
- package/dist/es/colors/ColorPicker.js +91 -69
- package/dist/es/colors/FlatColorPicker.d.ts +41 -5
- package/dist/es/colors/FlatColorPicker.js +306 -109
- package/dist/es/colors/HexInput.d.ts +1 -0
- package/dist/es/colors/HexInput.js +16 -2
- package/dist/es/colors/Picker.js +19 -11
- package/dist/es/colors/interfaces/ColorGradientChangeEvent.d.ts +4 -0
- package/dist/es/colors/interfaces/ColorGradientProps.d.ts +12 -0
- package/dist/es/colors/interfaces/ColorPaletteChangeEvent.d.ts +0 -3
- package/dist/es/colors/interfaces/ColorPaletteProps.d.ts +8 -3
- package/dist/es/colors/interfaces/ColorPickerActiveColorClick.d.ts +0 -3
- package/dist/es/colors/interfaces/ColorPickerBlurEvent.d.ts +0 -3
- package/dist/es/colors/interfaces/ColorPickerChangeEvent.d.ts +4 -3
- package/dist/es/colors/interfaces/ColorPickerFocusEvent.d.ts +0 -3
- package/dist/es/colors/interfaces/ColorPickerPaletteSettings.d.ts +0 -3
- package/dist/es/colors/interfaces/ColorPickerPopupSettings.d.ts +0 -3
- package/dist/es/colors/interfaces/ColorPickerProps.d.ts +30 -4
- package/dist/es/colors/interfaces/ColorPickerView.d.ts +0 -3
- package/dist/es/colors/interfaces/FlatColorPickerViewChangeEvent.d.ts +13 -0
- package/dist/es/colors/interfaces/FlatColorPickerViewChangeEvent.js +0 -0
- package/dist/es/colors/interfaces/PickerProps.d.ts +4 -0
- package/dist/es/colors/utils/color-cache.d.ts +13 -0
- package/dist/es/colors/utils/color-cache.js +14 -0
- package/dist/es/colors/utils/color-parser.d.ts +7 -1
- package/dist/es/colors/utils/color-parser.js +11 -2
- package/dist/es/input/Input.d.ts +4 -0
- package/dist/es/input/Input.js +8 -3
- package/dist/es/messages/index.d.ts +45 -0
- package/dist/es/messages/index.js +46 -0
- package/dist/es/numerictextbox/NumericTextBox.js +3 -0
- package/dist/es/numerictextbox/interfaces/NumericTextBoxProps.d.ts +4 -0
- package/dist/es/package-metadata.js +1 -1
- package/dist/es/radiobutton/RadioButton.js +1 -1
- package/dist/es/radiobutton/RadioGroup.js +1 -1
- package/dist/es/range-slider/RangeSlider.js +1 -1
- package/dist/es/slider/Slider.js +2 -2
- package/dist/npm/checkbox/Checkbox.js +2 -2
- package/dist/npm/colors/ColorGradient.d.ts +2 -0
- package/dist/npm/colors/ColorGradient.js +161 -75
- package/dist/npm/colors/ColorInput.d.ts +3 -0
- package/dist/npm/colors/ColorInput.js +80 -55
- package/dist/npm/colors/ColorPalette.js +30 -16
- package/dist/npm/colors/ColorPicker.d.ts +1 -0
- package/dist/npm/colors/ColorPicker.js +92 -70
- package/dist/npm/colors/FlatColorPicker.d.ts +41 -5
- package/dist/npm/colors/FlatColorPicker.js +306 -106
- package/dist/npm/colors/HexInput.d.ts +1 -0
- package/dist/npm/colors/HexInput.js +16 -2
- package/dist/npm/colors/Picker.js +18 -10
- package/dist/npm/colors/interfaces/ColorGradientChangeEvent.d.ts +4 -0
- package/dist/npm/colors/interfaces/ColorGradientProps.d.ts +12 -0
- package/dist/npm/colors/interfaces/ColorPaletteChangeEvent.d.ts +0 -3
- package/dist/npm/colors/interfaces/ColorPaletteProps.d.ts +8 -3
- package/dist/npm/colors/interfaces/ColorPickerActiveColorClick.d.ts +0 -3
- package/dist/npm/colors/interfaces/ColorPickerBlurEvent.d.ts +0 -3
- package/dist/npm/colors/interfaces/ColorPickerChangeEvent.d.ts +4 -3
- package/dist/npm/colors/interfaces/ColorPickerFocusEvent.d.ts +0 -3
- package/dist/npm/colors/interfaces/ColorPickerPaletteSettings.d.ts +0 -3
- package/dist/npm/colors/interfaces/ColorPickerPopupSettings.d.ts +0 -3
- package/dist/npm/colors/interfaces/ColorPickerProps.d.ts +30 -4
- package/dist/npm/colors/interfaces/ColorPickerView.d.ts +0 -3
- package/dist/npm/colors/interfaces/FlatColorPickerViewChangeEvent.d.ts +13 -0
- package/dist/npm/colors/interfaces/FlatColorPickerViewChangeEvent.js +2 -0
- package/dist/npm/colors/interfaces/PickerProps.d.ts +4 -0
- package/dist/npm/colors/utils/color-cache.d.ts +13 -0
- package/dist/npm/colors/utils/color-cache.js +15 -1
- package/dist/npm/colors/utils/color-parser.d.ts +7 -1
- package/dist/npm/colors/utils/color-parser.js +12 -3
- package/dist/npm/input/Input.d.ts +4 -0
- package/dist/npm/input/Input.js +8 -3
- package/dist/npm/messages/index.d.ts +45 -0
- package/dist/npm/messages/index.js +47 -1
- package/dist/npm/numerictextbox/NumericTextBox.js +3 -0
- package/dist/npm/numerictextbox/interfaces/NumericTextBoxProps.d.ts +4 -0
- package/dist/npm/package-metadata.js +1 -1
- package/dist/npm/radiobutton/RadioButton.js +1 -1
- package/dist/npm/radiobutton/RadioGroup.js +1 -1
- package/dist/npm/range-slider/RangeSlider.js +1 -1
- package/dist/npm/slider/Slider.js +2 -2
- package/package.json +11 -11
package/dist/es/colors/Picker.js
CHANGED
|
@@ -25,7 +25,8 @@ var PickerVue2 = {
|
|
|
25
25
|
popupSettings: Object,
|
|
26
26
|
dir: String,
|
|
27
27
|
open: Boolean,
|
|
28
|
-
popupAnchor: String
|
|
28
|
+
popupAnchor: String,
|
|
29
|
+
id: String
|
|
29
30
|
},
|
|
30
31
|
computed: {
|
|
31
32
|
horizontalAlign: function horizontalAlign() {
|
|
@@ -55,21 +56,25 @@ var PickerVue2 = {
|
|
|
55
56
|
render: function render(createElement) {
|
|
56
57
|
var h = gh || createElement;
|
|
57
58
|
var defaultSlot = getDefaultSlots(this);
|
|
58
|
-
var
|
|
59
|
+
var _a = this.$props.popupSettings,
|
|
60
|
+
popupClass = _a.popupClass,
|
|
61
|
+
appendTo = _a.appendTo,
|
|
62
|
+
animate = _a.animate,
|
|
63
|
+
className = _a.className;
|
|
59
64
|
return (// @ts-ignore function children
|
|
60
|
-
h(Popup
|
|
61
|
-
|
|
62
|
-
// direction: this.$props.dir as any
|
|
63
|
-
// }}
|
|
64
|
-
// {...popupSettings}
|
|
65
|
-
, {
|
|
66
|
-
anchor: this.$props.popupAnchor,
|
|
65
|
+
h(Popup, {
|
|
66
|
+
id: this.id,
|
|
67
67
|
attrs: this.v3 ? undefined : {
|
|
68
|
+
id: this.id,
|
|
68
69
|
anchor: this.$props.popupAnchor,
|
|
69
70
|
anchorAlign: this.anchorAlign,
|
|
70
71
|
popupAlign: this.popupAlign,
|
|
71
|
-
show: this.$props.open
|
|
72
|
+
show: this.$props.open,
|
|
73
|
+
appendTo: appendTo,
|
|
74
|
+
animate: animate,
|
|
75
|
+
popupClass: popupClass
|
|
72
76
|
},
|
|
77
|
+
anchor: this.$props.popupAnchor,
|
|
73
78
|
anchorAlign: this.anchorAlign,
|
|
74
79
|
popupAlign: this.popupAlign,
|
|
75
80
|
show: this.$props.open,
|
|
@@ -79,7 +84,10 @@ var PickerVue2 = {
|
|
|
79
84
|
"close": this.onClose
|
|
80
85
|
},
|
|
81
86
|
onClose: this.onClose,
|
|
82
|
-
|
|
87
|
+
appendTo: appendTo,
|
|
88
|
+
animate: animate,
|
|
89
|
+
popupClass: popupClass,
|
|
90
|
+
"class": classNames('k-reset', className)
|
|
83
91
|
}, this.v3 ? function () {
|
|
84
92
|
return [defaultSlot];
|
|
85
93
|
} : [defaultSlot])
|
|
@@ -3,6 +3,14 @@ import { ColorGradientChangeEvent } from './ColorGradientChangeEvent';
|
|
|
3
3
|
* Represents the props of the [KendoReact ColorGradient component]({% slug overview_colorgradient %}).
|
|
4
4
|
*/
|
|
5
5
|
export interface ColorGradientProps {
|
|
6
|
+
/**
|
|
7
|
+
* The model value of the ColorGradient.
|
|
8
|
+
*/
|
|
9
|
+
modelValue?: string;
|
|
10
|
+
/**
|
|
11
|
+
* The model rgba value of the ColorGradient.
|
|
12
|
+
*/
|
|
13
|
+
modelRgbaValue?: string;
|
|
6
14
|
/**
|
|
7
15
|
* The default value of the ColorGradient.
|
|
8
16
|
*/
|
|
@@ -40,6 +48,10 @@ export interface ColorGradientProps {
|
|
|
40
48
|
* Sets the `tabIndex` property of the ColorGradient.
|
|
41
49
|
*/
|
|
42
50
|
tabIndex?: number;
|
|
51
|
+
/**
|
|
52
|
+
* Sets tabindex of the inner components of the ColorGradient.
|
|
53
|
+
*/
|
|
54
|
+
innerTabIndex?: number;
|
|
43
55
|
/**
|
|
44
56
|
* Specifies the id of the component.
|
|
45
57
|
*/
|
|
@@ -3,9 +3,6 @@ import { ColorPaletteChangeEvent } from './ColorPaletteChangeEvent';
|
|
|
3
3
|
/**
|
|
4
4
|
* Represents the props of the [KendoVue ColorPalette component]({% slug overview_colorpalette %}).
|
|
5
5
|
*/
|
|
6
|
-
/**
|
|
7
|
-
* @hidden
|
|
8
|
-
*/
|
|
9
6
|
export interface ColorPaletteProps {
|
|
10
7
|
/**
|
|
11
8
|
* The color palette that will be displayed.
|
|
@@ -33,6 +30,14 @@ export interface ColorPaletteProps {
|
|
|
33
30
|
* The value of the ColorPalette.
|
|
34
31
|
*/
|
|
35
32
|
value?: string;
|
|
33
|
+
/**
|
|
34
|
+
* The model value of the ColorPalette.
|
|
35
|
+
*/
|
|
36
|
+
modelValue?: string;
|
|
37
|
+
/**
|
|
38
|
+
* The model rgba value of the ColorPalette.
|
|
39
|
+
*/
|
|
40
|
+
modelRgbaValue?: string;
|
|
36
41
|
/**
|
|
37
42
|
* Determines whether the ColorPalette is disabled
|
|
38
43
|
* ([more information and example]({% slug disabled_colorpalette %})).
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* The arguments for the `onChange` ColorPicker event.
|
|
3
3
|
*/
|
|
4
|
-
/**
|
|
5
|
-
* @hidden
|
|
6
|
-
*/
|
|
7
4
|
export interface ColorPickerChangeEvent {
|
|
8
5
|
/**
|
|
9
6
|
* The current value of the ColorPicker.
|
|
10
7
|
*/
|
|
11
8
|
value: string;
|
|
9
|
+
/**
|
|
10
|
+
* The current value of the ColorPicker in RGBA format.
|
|
11
|
+
*/
|
|
12
|
+
rgbaValue: string;
|
|
12
13
|
/**
|
|
13
14
|
* A native DOM event.
|
|
14
15
|
*/
|
|
@@ -3,9 +3,6 @@ import { TileSize } from '../models/tile-size';
|
|
|
3
3
|
* The settings of the ColorPalette that is nested inside the popup of the ColorPicker
|
|
4
4
|
* ([see example]({% slug customizecolorpicker_colorpicker %}#toc-customizing-the-palette-popup)).
|
|
5
5
|
*/
|
|
6
|
-
/**
|
|
7
|
-
* @hidden
|
|
8
|
-
*/
|
|
9
6
|
export interface ColorPickerPaletteSettings {
|
|
10
7
|
/**
|
|
11
8
|
* Specifies the set of colors.
|
|
@@ -2,9 +2,6 @@ import { PopupAnimation } from '@progress/kendo-vue-popup';
|
|
|
2
2
|
/**
|
|
3
3
|
* The settings of the popup container of the ColorPicker.
|
|
4
4
|
*/
|
|
5
|
-
/**
|
|
6
|
-
* @hidden
|
|
7
|
-
*/
|
|
8
5
|
export interface ColorPickerPopupSettings {
|
|
9
6
|
/**
|
|
10
7
|
* Controls the popup animation. By default, the open and close animations are enabled.
|
|
@@ -6,12 +6,10 @@ import { ColorPickerPopupSettings } from './ColorPickerPopupSettings';
|
|
|
6
6
|
import { ColorPickerPaletteSettings } from './ColorPickerPaletteSettings';
|
|
7
7
|
import { ColorPickerView } from './ColorPickerView';
|
|
8
8
|
import { ColorGradientProps } from './ColorGradientProps';
|
|
9
|
+
import { FlatColorPickerProps } from '../FlatColorPicker';
|
|
9
10
|
/**
|
|
10
11
|
* Represents the props of the [Kendo UI for Vue ColorPicker component]({% slug overview_colorpicker %}).
|
|
11
12
|
*/
|
|
12
|
-
/**
|
|
13
|
-
* @hidden
|
|
14
|
-
*/
|
|
15
13
|
export interface ColorPickerProps {
|
|
16
14
|
/**
|
|
17
15
|
* The default value of the ColorPicker
|
|
@@ -19,7 +17,15 @@ export interface ColorPickerProps {
|
|
|
19
17
|
*/
|
|
20
18
|
defaultValue?: string;
|
|
21
19
|
/**
|
|
22
|
-
* Specifies the value of the ColorPicker.
|
|
20
|
+
* Specifies the model value of the ColorPicker.
|
|
21
|
+
*/
|
|
22
|
+
modelValue?: string;
|
|
23
|
+
/**
|
|
24
|
+
* The model rgba value of the ColorPicker.
|
|
25
|
+
*/
|
|
26
|
+
modelRgbaValue?: string;
|
|
27
|
+
/**
|
|
28
|
+
* Specifies the value of the ColorPicker.
|
|
23
29
|
*/
|
|
24
30
|
value?: string;
|
|
25
31
|
/**
|
|
@@ -43,6 +49,10 @@ export interface ColorPickerProps {
|
|
|
43
49
|
* Sets the `title` property of the ColorPicker.
|
|
44
50
|
*/
|
|
45
51
|
title?: string;
|
|
52
|
+
/**
|
|
53
|
+
* Sets the ColorPicker selected view index. The default is `0`.
|
|
54
|
+
*/
|
|
55
|
+
selectedView?: number;
|
|
46
56
|
/**
|
|
47
57
|
* Sets the view which the ColorPicker will render in the popup
|
|
48
58
|
* ([see example]({% slug combinedview_colorpicker %})).
|
|
@@ -52,6 +62,18 @@ export interface ColorPickerProps {
|
|
|
52
62
|
* Represents the `dir` HTML attribute.
|
|
53
63
|
*/
|
|
54
64
|
dir?: string;
|
|
65
|
+
/**
|
|
66
|
+
* Specifies whether clear button will be rendered in the header.
|
|
67
|
+
*/
|
|
68
|
+
showClearButton?: boolean;
|
|
69
|
+
/**
|
|
70
|
+
* Specifies whether preview and revert color boxes will be rendered in the header.
|
|
71
|
+
*/
|
|
72
|
+
showPreview?: boolean;
|
|
73
|
+
/**
|
|
74
|
+
* Specifies whether action buttons will be rendered in the footer.
|
|
75
|
+
*/
|
|
76
|
+
showButtons?: boolean;
|
|
55
77
|
/**
|
|
56
78
|
* Defines the name of an [existing icon in the Kendo UI for Vue theme]({% slug icons %}).
|
|
57
79
|
* You have to provide only the name of the icon without the `k-icon` or the `k-i-` prefixes.
|
|
@@ -73,6 +95,10 @@ export interface ColorPickerProps {
|
|
|
73
95
|
* Configures the ColorGradient that is displayed in the ColorPicker popup.
|
|
74
96
|
*/
|
|
75
97
|
gradientSettings?: ColorGradientProps;
|
|
98
|
+
/**
|
|
99
|
+
* Configures the FlatColorPicker that is displayed in the ColorPicker popup.
|
|
100
|
+
*/
|
|
101
|
+
flatColorPickerSettings?: FlatColorPickerProps;
|
|
76
102
|
/**
|
|
77
103
|
* Configures the popup of the ColorPicker.
|
|
78
104
|
*/
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The arguments for the `onChange` ColorPicker event.
|
|
3
|
+
*/
|
|
4
|
+
export interface FlatColorPickerViewChangeEvent {
|
|
5
|
+
/**
|
|
6
|
+
* The current value of the ColorPicker.
|
|
7
|
+
*/
|
|
8
|
+
value: string;
|
|
9
|
+
/**
|
|
10
|
+
* The viewType of the selected view.
|
|
11
|
+
*/
|
|
12
|
+
viewType: 'gradient' | 'palette';
|
|
13
|
+
}
|
|
File without changes
|
|
@@ -31,6 +31,10 @@ export interface PickerProps {
|
|
|
31
31
|
* Specifies the element which will be used as an anchor for the popup. The popup opens next to that element.
|
|
32
32
|
*/
|
|
33
33
|
popupAnchor?: String;
|
|
34
|
+
/**
|
|
35
|
+
* Specifies the id for the popup.
|
|
36
|
+
*/
|
|
37
|
+
id?: String;
|
|
34
38
|
/**
|
|
35
39
|
* @hidden
|
|
36
40
|
*/
|
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
import { HSVA } from '../models/hsva';
|
|
2
2
|
import { RGBA } from '../models/rgba';
|
|
3
|
+
/**
|
|
4
|
+
* @hidden
|
|
5
|
+
*/
|
|
6
|
+
export declare const DEFAULT_GRADIENT_SETTINGS: {
|
|
7
|
+
opacity: boolean;
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* @hidden
|
|
11
|
+
*/
|
|
12
|
+
export declare const DEFAULT_PALETTE_SETTINGS: {
|
|
13
|
+
palette: string;
|
|
14
|
+
tileSize: number;
|
|
15
|
+
};
|
|
3
16
|
/**
|
|
4
17
|
* @hidden
|
|
5
18
|
*/
|
|
@@ -1,4 +1,18 @@
|
|
|
1
|
+
import { DEFAULT_PRESET, DEFAULT_TILE_SIZE } from '../ColorPalette';
|
|
1
2
|
var cache = {};
|
|
3
|
+
/**
|
|
4
|
+
* @hidden
|
|
5
|
+
*/
|
|
6
|
+
export var DEFAULT_GRADIENT_SETTINGS = {
|
|
7
|
+
opacity: true
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* @hidden
|
|
11
|
+
*/
|
|
12
|
+
export var DEFAULT_PALETTE_SETTINGS = {
|
|
13
|
+
palette: DEFAULT_PRESET,
|
|
14
|
+
tileSize: DEFAULT_TILE_SIZE
|
|
15
|
+
};
|
|
2
16
|
/**
|
|
3
17
|
* @hidden
|
|
4
18
|
*/
|
|
@@ -7,7 +7,13 @@ import { RGBA } from '../models/rgba';
|
|
|
7
7
|
*
|
|
8
8
|
* Returns the hex or RGBA string representation of the color.
|
|
9
9
|
*/
|
|
10
|
-
export declare const parseColor: (value: string, format: OutputFormat, safe?: boolean) => string | undefined;
|
|
10
|
+
export declare const parseColor: (value: string, format: OutputFormat, opacityEnabled?: boolean, safe?: boolean) => string | undefined;
|
|
11
|
+
/**
|
|
12
|
+
* @hidden
|
|
13
|
+
*
|
|
14
|
+
* Returns the HEX value.
|
|
15
|
+
*/
|
|
16
|
+
export declare const getHexValue: (color: any, opacity: boolean) => string;
|
|
11
17
|
/**
|
|
12
18
|
* @hidden
|
|
13
19
|
*
|
|
@@ -5,7 +5,8 @@ import { isPresent, fitIntoBounds } from './misc';
|
|
|
5
5
|
*
|
|
6
6
|
* Returns the hex or RGBA string representation of the color.
|
|
7
7
|
*/
|
|
8
|
-
export var parseColor = function (value, format, safe) {
|
|
8
|
+
export var parseColor = function (value, format, opacityEnabled, safe) {
|
|
9
|
+
if (opacityEnabled === void 0) { opacityEnabled = false; }
|
|
9
10
|
if (safe === void 0) { safe = true; }
|
|
10
11
|
var allowedFormats = ['hex', 'rgba']; // TODO: constant?
|
|
11
12
|
// Angular supports third type: name : const allowedFormats: Array<string> = ['hex', 'rgba', 'name'];
|
|
@@ -19,7 +20,15 @@ export var parseColor = function (value, format, safe) {
|
|
|
19
20
|
if (!isPresent(parsedColor)) {
|
|
20
21
|
return;
|
|
21
22
|
}
|
|
22
|
-
return format === 'hex' ? parsedColor
|
|
23
|
+
return format === 'hex' ? getHexValue(parsedColor, opacityEnabled) : parsedColor.toCssRgba();
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* @hidden
|
|
27
|
+
*
|
|
28
|
+
* Returns the HEX value.
|
|
29
|
+
*/
|
|
30
|
+
export var getHexValue = function (color, opacity) {
|
|
31
|
+
return opacity && color.a < 1 ? color.toCss({ alpha: true }) : color.toCss();
|
|
23
32
|
};
|
|
24
33
|
/**
|
|
25
34
|
* @hidden
|
package/dist/es/input/Input.d.ts
CHANGED
|
@@ -117,6 +117,10 @@ export interface InputProps extends FormComponentProps {
|
|
|
117
117
|
* Defines additional class to the wrapper element.
|
|
118
118
|
*/
|
|
119
119
|
wrapperClass?: String;
|
|
120
|
+
/**
|
|
121
|
+
* Defines tabindex to the input element.
|
|
122
|
+
*/
|
|
123
|
+
tabIndex?: Number;
|
|
120
124
|
/**
|
|
121
125
|
* Defines additional class to the input element.
|
|
122
126
|
*/
|
package/dist/es/input/Input.js
CHANGED
|
@@ -112,7 +112,8 @@ var InputVue2 = {
|
|
|
112
112
|
showLoadingIcon: Boolean,
|
|
113
113
|
showClearButton: Boolean,
|
|
114
114
|
inputClass: String,
|
|
115
|
-
wrapperClass: String
|
|
115
|
+
wrapperClass: String,
|
|
116
|
+
tabIndex: Number
|
|
116
117
|
},
|
|
117
118
|
data: function data() {
|
|
118
119
|
return {
|
|
@@ -159,7 +160,8 @@ var InputVue2 = {
|
|
|
159
160
|
iconName = _a.iconName,
|
|
160
161
|
showValidationIcon = _a.showValidationIcon,
|
|
161
162
|
showLoadingIcon = _a.showLoadingIcon,
|
|
162
|
-
showClearButton = _a.showClearButton
|
|
163
|
+
showClearButton = _a.showClearButton,
|
|
164
|
+
tabIndex = _a.tabIndex;
|
|
163
165
|
var inputId = id || this._inputId;
|
|
164
166
|
var textbox = h('input', __assign(__assign({
|
|
165
167
|
domProps: this.v3 ? null : __assign(__assign({}, this.$attrs), {
|
|
@@ -168,10 +170,13 @@ var InputVue2 = {
|
|
|
168
170
|
required: required,
|
|
169
171
|
value: this.computedValue
|
|
170
172
|
}),
|
|
171
|
-
attrs: this.v3 ? undefined : this.$attrs
|
|
173
|
+
attrs: this.v3 ? undefined : __assign(__assign({}, this.$attrs), {
|
|
174
|
+
tabindex: tabIndex
|
|
175
|
+
})
|
|
172
176
|
}, this.$attrs), {
|
|
173
177
|
placeholder: this.$props.placeholder,
|
|
174
178
|
id: inputId,
|
|
179
|
+
tabindex: tabIndex,
|
|
175
180
|
required: required,
|
|
176
181
|
value: this.computedValue,
|
|
177
182
|
class: this.inputInnerClass,
|
|
@@ -18,6 +18,10 @@ export declare const sliderDecreaseValue = "slider.decrement";
|
|
|
18
18
|
* @hidden
|
|
19
19
|
*/
|
|
20
20
|
export declare const sliderDragTitle = "slider.dragTitle";
|
|
21
|
+
/**
|
|
22
|
+
* @hidden
|
|
23
|
+
*/
|
|
24
|
+
export declare const colorGradientDragHandle = "colorGradient.dragHandle";
|
|
21
25
|
/**
|
|
22
26
|
* @hidden
|
|
23
27
|
*/
|
|
@@ -38,6 +42,26 @@ export declare const colorGradientA = "colorGradient.a";
|
|
|
38
42
|
* @hidden
|
|
39
43
|
*/
|
|
40
44
|
export declare const colorGradientHex = "colorGradient.hex";
|
|
45
|
+
/**
|
|
46
|
+
* @hidden
|
|
47
|
+
*/
|
|
48
|
+
export declare const colorGradientInputColorButton = "colorGradient.inputColorButton";
|
|
49
|
+
/**
|
|
50
|
+
* @hidden
|
|
51
|
+
*/
|
|
52
|
+
export declare const colorGradientRLabel = "colorGradient.rLabel";
|
|
53
|
+
/**
|
|
54
|
+
* @hidden
|
|
55
|
+
*/
|
|
56
|
+
export declare const colorGradientGLabel = "colorGradient.gLabel";
|
|
57
|
+
/**
|
|
58
|
+
* @hidden
|
|
59
|
+
*/
|
|
60
|
+
export declare const colorGradientBLabel = "colorGradient.bLabel";
|
|
61
|
+
/**
|
|
62
|
+
* @hidden
|
|
63
|
+
*/
|
|
64
|
+
export declare const colorGradientALabel = "colorGradient.aLabel";
|
|
41
65
|
/**
|
|
42
66
|
* @hidden
|
|
43
67
|
*/
|
|
@@ -66,6 +90,18 @@ export declare const flatColorPickerCancelBtn = "flatColorPicker.cancelBtn";
|
|
|
66
90
|
* @hidden
|
|
67
91
|
*/
|
|
68
92
|
export declare const flatColorPickerApplyBtn = "flatColorPicker.applyBtn";
|
|
93
|
+
/**
|
|
94
|
+
* @hidden
|
|
95
|
+
*/
|
|
96
|
+
export declare const flatColorPickerGradientBtn = "flatColorPicker.gradientBtn";
|
|
97
|
+
/**
|
|
98
|
+
* @hidden
|
|
99
|
+
*/
|
|
100
|
+
export declare const flatColorPickerPaletteBtn = "flatColorPicker.paletterBtn";
|
|
101
|
+
/**
|
|
102
|
+
* @hidden
|
|
103
|
+
*/
|
|
104
|
+
export declare const flatColorPickerClearBtn = "flatColorPicker.clearBtn";
|
|
69
105
|
/**
|
|
70
106
|
* @hidden
|
|
71
107
|
*/
|
|
@@ -95,10 +131,16 @@ export declare const messages: {
|
|
|
95
131
|
"slider.increment": string;
|
|
96
132
|
"slider.decrement": string;
|
|
97
133
|
"slider.dragTitle": string;
|
|
134
|
+
"colorGradient.dragHandle": string;
|
|
135
|
+
"colorGradient.inputColorButton": string;
|
|
98
136
|
"colorGradient.r": string;
|
|
99
137
|
"colorGradient.g": string;
|
|
100
138
|
"colorGradient.b": string;
|
|
101
139
|
"colorGradient.a": string;
|
|
140
|
+
"colorGradient.rLabel": string;
|
|
141
|
+
"colorGradient.gLabel": string;
|
|
142
|
+
"colorGradient.bLabel": string;
|
|
143
|
+
"colorGradient.aLabel": string;
|
|
102
144
|
"colorGradient.hex": string;
|
|
103
145
|
"colorGradient.contrastRatio": string;
|
|
104
146
|
"colorGradient.colorGradientAALevel": string;
|
|
@@ -107,6 +149,9 @@ export declare const messages: {
|
|
|
107
149
|
"colorGradient.colorGradientFail": string;
|
|
108
150
|
"flatColorPicker.cancelBtn": string;
|
|
109
151
|
"flatColorPicker.applyBtn": string;
|
|
152
|
+
"flatColorPicker.gradientBtn": string;
|
|
153
|
+
"flatColorPicker.paletterBtn": string;
|
|
154
|
+
"flatColorPicker.clearBtn": string;
|
|
110
155
|
"checkbox.validation": string;
|
|
111
156
|
"checkbox.optionalText": string;
|
|
112
157
|
"radioButton.validation": string;
|
|
@@ -19,6 +19,10 @@ export var sliderDecreaseValue = 'slider.decrement';
|
|
|
19
19
|
* @hidden
|
|
20
20
|
*/
|
|
21
21
|
export var sliderDragTitle = 'slider.dragTitle';
|
|
22
|
+
/**
|
|
23
|
+
* @hidden
|
|
24
|
+
*/
|
|
25
|
+
export var colorGradientDragHandle = 'colorGradient.dragHandle';
|
|
22
26
|
/**
|
|
23
27
|
* @hidden
|
|
24
28
|
*/
|
|
@@ -39,6 +43,26 @@ export var colorGradientA = 'colorGradient.a';
|
|
|
39
43
|
* @hidden
|
|
40
44
|
*/
|
|
41
45
|
export var colorGradientHex = 'colorGradient.hex';
|
|
46
|
+
/**
|
|
47
|
+
* @hidden
|
|
48
|
+
*/
|
|
49
|
+
export var colorGradientInputColorButton = 'colorGradient.inputColorButton';
|
|
50
|
+
/**
|
|
51
|
+
* @hidden
|
|
52
|
+
*/
|
|
53
|
+
export var colorGradientRLabel = 'colorGradient.rLabel';
|
|
54
|
+
/**
|
|
55
|
+
* @hidden
|
|
56
|
+
*/
|
|
57
|
+
export var colorGradientGLabel = 'colorGradient.gLabel';
|
|
58
|
+
/**
|
|
59
|
+
* @hidden
|
|
60
|
+
*/
|
|
61
|
+
export var colorGradientBLabel = 'colorGradient.bLabel';
|
|
62
|
+
/**
|
|
63
|
+
* @hidden
|
|
64
|
+
*/
|
|
65
|
+
export var colorGradientALabel = 'colorGradient.aLabel';
|
|
42
66
|
/**
|
|
43
67
|
* @hidden
|
|
44
68
|
*/
|
|
@@ -67,6 +91,18 @@ export var flatColorPickerCancelBtn = 'flatColorPicker.cancelBtn';
|
|
|
67
91
|
* @hidden
|
|
68
92
|
*/
|
|
69
93
|
export var flatColorPickerApplyBtn = 'flatColorPicker.applyBtn';
|
|
94
|
+
/**
|
|
95
|
+
* @hidden
|
|
96
|
+
*/
|
|
97
|
+
export var flatColorPickerGradientBtn = 'flatColorPicker.gradientBtn';
|
|
98
|
+
/**
|
|
99
|
+
* @hidden
|
|
100
|
+
*/
|
|
101
|
+
export var flatColorPickerPaletteBtn = 'flatColorPicker.paletterBtn';
|
|
102
|
+
/**
|
|
103
|
+
* @hidden
|
|
104
|
+
*/
|
|
105
|
+
export var flatColorPickerClearBtn = 'flatColorPicker.clearBtn';
|
|
70
106
|
/**
|
|
71
107
|
* @hidden
|
|
72
108
|
*/
|
|
@@ -96,10 +132,17 @@ export var messages = (_a = {},
|
|
|
96
132
|
_a[sliderIncreaseValue] = 'Increase',
|
|
97
133
|
_a[sliderDecreaseValue] = 'Decrease',
|
|
98
134
|
_a[sliderDragTitle] = 'Drag',
|
|
135
|
+
_a[colorGradientDragHandle] = "Color well with two-dimensional slider for selecting\n saturation and lightness. Selected color is",
|
|
136
|
+
_a[colorGradientInputColorButton] = 'Change the color input',
|
|
137
|
+
_a[colorGradientR] = 'r',
|
|
99
138
|
_a[colorGradientR] = 'r',
|
|
100
139
|
_a[colorGradientG] = 'g',
|
|
101
140
|
_a[colorGradientB] = 'b',
|
|
102
141
|
_a[colorGradientA] = 'a',
|
|
142
|
+
_a[colorGradientRLabel] = 'red chanel',
|
|
143
|
+
_a[colorGradientGLabel] = 'green chanel',
|
|
144
|
+
_a[colorGradientBLabel] = 'blue chanel',
|
|
145
|
+
_a[colorGradientALabel] = 'alpha chanel',
|
|
103
146
|
_a[colorGradientHex] = 'hex',
|
|
104
147
|
_a[colorGradientContrastRatio] = 'Contrast ratio',
|
|
105
148
|
_a[colorGradientAALevel] = 'AA',
|
|
@@ -108,6 +151,9 @@ export var messages = (_a = {},
|
|
|
108
151
|
_a[colorGradientFail] = 'Fail',
|
|
109
152
|
_a[flatColorPickerCancelBtn] = 'Cancel',
|
|
110
153
|
_a[flatColorPickerApplyBtn] = 'Apply',
|
|
154
|
+
_a[flatColorPickerGradientBtn] = 'Gradient',
|
|
155
|
+
_a[flatColorPickerPaletteBtn] = 'Palette',
|
|
156
|
+
_a[flatColorPickerClearBtn] = 'Clear',
|
|
111
157
|
_a[checkboxValidation] = 'Please check this box if you want to proceed!',
|
|
112
158
|
_a[checkboxOptionalText] = '(Optional)',
|
|
113
159
|
_a[radioButtonValidation] = 'Please select option if you want to proceed!',
|
|
@@ -90,6 +90,7 @@ var NumericTextBoxVue2 = {
|
|
|
90
90
|
default: false
|
|
91
91
|
},
|
|
92
92
|
id: String,
|
|
93
|
+
ariaLabel: String,
|
|
93
94
|
iconName: String,
|
|
94
95
|
inputPrefix: templateDefinition,
|
|
95
96
|
inputSuffix: templateDefinition,
|
|
@@ -545,6 +546,7 @@ var NumericTextBoxVue2 = {
|
|
|
545
546
|
accesskey: this.$props.accessKey,
|
|
546
547
|
disabled: this.$props.disabled,
|
|
547
548
|
title: this.$props.title,
|
|
549
|
+
"aria-label": this.$props.ariaLabel,
|
|
548
550
|
"aria-valuemin": this.$props.min,
|
|
549
551
|
"aria-valuemax": this.$props.max,
|
|
550
552
|
placeholder: this.$props.placeholder,
|
|
@@ -559,6 +561,7 @@ var NumericTextBoxVue2 = {
|
|
|
559
561
|
accesskey: this.$props.accessKey,
|
|
560
562
|
disabled: this.$props.disabled,
|
|
561
563
|
title: this.$props.title,
|
|
564
|
+
"aria-label": this.$props.ariaLabel,
|
|
562
565
|
"aria-valuemin": this.$props.min,
|
|
563
566
|
"aria-valuemax": this.$props.max,
|
|
564
567
|
placeholder: this.$props.placeholder,
|
|
@@ -110,6 +110,10 @@ export interface NumericTextBoxProps extends FormComponentProps {
|
|
|
110
110
|
* Sets the `id` of the `input` DOM element.
|
|
111
111
|
*/
|
|
112
112
|
id?: string;
|
|
113
|
+
/**
|
|
114
|
+
* Sets the `aria-label` of the `input` DOM element.
|
|
115
|
+
*/
|
|
116
|
+
ariaLabel?: string;
|
|
113
117
|
/**
|
|
114
118
|
* Sets the `type` of the `input` DOM element.
|
|
115
119
|
*
|
|
@@ -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: 1659330724,
|
|
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
|
};
|
|
@@ -63,7 +63,7 @@ var RadioButtonVue2 = {
|
|
|
63
63
|
|
|
64
64
|
return _a = {
|
|
65
65
|
'k-radio': true
|
|
66
|
-
}, _a["k-radio-" + kendoThemeMaps.sizeMap[this.$props.size]] = this.$props.size, _a['k-
|
|
66
|
+
}, _a["k-radio-" + kendoThemeMaps.sizeMap[this.$props.size]] = this.$props.size, _a['k-invalid'] = this.$props.valid === false, _a[this.$props.className] = this.$props.className, _a;
|
|
67
67
|
}
|
|
68
68
|
},
|
|
69
69
|
methods: {
|
|
@@ -150,7 +150,7 @@ var RadioGroupVue2 = {
|
|
|
150
150
|
return (// @ts-ignore function children
|
|
151
151
|
h(RadioButton, {
|
|
152
152
|
"class": classNames('k-radio-item', {
|
|
153
|
-
'k-
|
|
153
|
+
'k-disabled': option.disabled || disabled
|
|
154
154
|
}),
|
|
155
155
|
style: option.style,
|
|
156
156
|
key: index,
|