@progress/kendo-vue-inputs 3.4.3 → 3.4.5-dev.202207300828
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 +3 -3
- package/dist/es/colors/ColorContrastLabels.js +8 -4
- package/dist/es/colors/ColorContrastSvg.js +65 -44
- package/dist/es/colors/ColorGradient.d.ts +3 -1
- package/dist/es/colors/ColorGradient.js +160 -57
- package/dist/es/colors/ColorInput.d.ts +3 -0
- package/dist/es/colors/ColorInput.js +82 -58
- package/dist/es/colors/ColorPalette.js +31 -17
- package/dist/es/colors/ColorPicker.d.ts +1 -0
- package/dist/es/colors/ColorPicker.js +90 -70
- package/dist/es/colors/FlatColorPicker.d.ts +41 -5
- package/dist/es/colors/FlatColorPicker.js +307 -110
- package/dist/es/colors/HexInput.d.ts +1 -0
- package/dist/es/colors/HexInput.js +33 -13
- package/dist/es/colors/Picker.js +20 -12
- 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 +9 -4
- package/dist/es/input-separator/InputSeparator.js +1 -1
- package/dist/es/maskedtextbox/MaskedTextBox.js +1 -1
- package/dist/es/messages/index.d.ts +45 -0
- package/dist/es/messages/index.js +46 -0
- package/dist/es/numerictextbox/NumericTextBox.js +4 -1
- package/dist/es/numerictextbox/interfaces/NumericTextBoxProps.d.ts +4 -0
- package/dist/es/package-metadata.js +1 -1
- package/dist/es/radiobutton/RadioButton.js +2 -2
- package/dist/es/radiobutton/RadioGroup.js +2 -2
- package/dist/es/range-slider/RangeSlider.js +2 -2
- package/dist/es/slider/Slider.js +3 -3
- package/dist/es/slider/SliderLabel.js +1 -1
- package/dist/es/switch/Switch.js +1 -1
- package/dist/es/textarea/TextArea.js +1 -1
- package/dist/npm/checkbox/Checkbox.js +3 -3
- package/dist/npm/colors/ColorContrastLabels.js +8 -4
- package/dist/npm/colors/ColorContrastSvg.js +65 -44
- package/dist/npm/colors/ColorGradient.d.ts +3 -1
- package/dist/npm/colors/ColorGradient.js +161 -56
- package/dist/npm/colors/ColorInput.d.ts +3 -0
- package/dist/npm/colors/ColorInput.js +82 -57
- package/dist/npm/colors/ColorPalette.js +31 -17
- package/dist/npm/colors/ColorPicker.d.ts +1 -0
- package/dist/npm/colors/ColorPicker.js +91 -71
- package/dist/npm/colors/FlatColorPicker.d.ts +41 -5
- package/dist/npm/colors/FlatColorPicker.js +307 -107
- package/dist/npm/colors/HexInput.d.ts +1 -0
- package/dist/npm/colors/HexInput.js +31 -11
- package/dist/npm/colors/Picker.js +19 -11
- 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 +9 -4
- package/dist/npm/input-separator/InputSeparator.js +1 -1
- package/dist/npm/maskedtextbox/MaskedTextBox.js +1 -1
- package/dist/npm/messages/index.d.ts +45 -0
- package/dist/npm/messages/index.js +47 -1
- package/dist/npm/numerictextbox/NumericTextBox.js +4 -1
- package/dist/npm/numerictextbox/interfaces/NumericTextBoxProps.d.ts +4 -0
- package/dist/npm/package-metadata.js +1 -1
- package/dist/npm/radiobutton/RadioButton.js +2 -2
- package/dist/npm/radiobutton/RadioGroup.js +2 -2
- package/dist/npm/range-slider/RangeSlider.js +2 -2
- package/dist/npm/slider/Slider.js +3 -3
- package/dist/npm/slider/SliderLabel.js +1 -1
- package/dist/npm/switch/Switch.js +1 -1
- package/dist/npm/textarea/TextArea.js +1 -1
- package/package.json +11 -11
|
@@ -9,7 +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
|
+
var isV3 = allVue.version && allVue.version[0] === '3';
|
|
13
13
|
|
|
14
14
|
var color_parser_1 = require("./utils/color-parser");
|
|
15
15
|
|
|
@@ -30,19 +30,23 @@ var HexInputVue2 = {
|
|
|
30
30
|
'focus': null
|
|
31
31
|
},
|
|
32
32
|
props: {
|
|
33
|
+
tabIndex: Number,
|
|
33
34
|
hex: String,
|
|
34
35
|
disabled: Boolean
|
|
35
36
|
},
|
|
37
|
+
computed: {
|
|
38
|
+
isHexValid: function isHexValid() {
|
|
39
|
+
return !!color_parser_1.parseColor(this.currentHex, 'rgba');
|
|
40
|
+
}
|
|
41
|
+
},
|
|
36
42
|
data: function data() {
|
|
37
43
|
return {
|
|
38
44
|
currentHex: this.$props.hex,
|
|
39
45
|
originalHex: this.$props.hex
|
|
40
46
|
};
|
|
41
47
|
},
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
return this.hex !== undefined ? this.hex : this.currentHex;
|
|
45
|
-
}
|
|
48
|
+
mounted: function mounted() {
|
|
49
|
+
this._input = this.$refs.input._input;
|
|
46
50
|
},
|
|
47
51
|
// @ts-ignore
|
|
48
52
|
setup: !isV3 ? undefined : function () {
|
|
@@ -51,24 +55,36 @@ var HexInputVue2 = {
|
|
|
51
55
|
v3: v3
|
|
52
56
|
};
|
|
53
57
|
},
|
|
58
|
+
watch: {
|
|
59
|
+
hex: function hex(newValue) {
|
|
60
|
+
this.currentHex = newValue;
|
|
61
|
+
}
|
|
62
|
+
},
|
|
54
63
|
// @ts-ignore
|
|
55
64
|
render: function render(createElement) {
|
|
56
65
|
var h = gh || createElement;
|
|
57
66
|
return h(Input_1.Input, {
|
|
58
|
-
value: this.
|
|
67
|
+
value: this.currentHex,
|
|
59
68
|
attrs: this.v3 ? undefined : {
|
|
60
|
-
value: this.
|
|
61
|
-
|
|
69
|
+
value: this.currentHex,
|
|
70
|
+
valid: this.isHexValid,
|
|
71
|
+
disabled: this.$props.disabled,
|
|
72
|
+
tabIndex: this.tabIndex
|
|
62
73
|
},
|
|
63
|
-
|
|
74
|
+
onInput: this.onChange,
|
|
64
75
|
on: this.v3 ? undefined : {
|
|
76
|
+
"input": this.onChange,
|
|
65
77
|
"change": this.onChange,
|
|
66
78
|
"focus": this.onFocus,
|
|
67
79
|
"blur": this.onBlur
|
|
68
80
|
},
|
|
81
|
+
onChange: this.onChange,
|
|
69
82
|
onFocus: this.onFocus,
|
|
70
83
|
onBlur: this.onBlur,
|
|
71
|
-
|
|
84
|
+
valid: this.isHexValid,
|
|
85
|
+
disabled: this.$props.disabled,
|
|
86
|
+
tabIndex: this.tabIndex,
|
|
87
|
+
ref: 'input'
|
|
72
88
|
});
|
|
73
89
|
},
|
|
74
90
|
methods: {
|
|
@@ -78,7 +94,11 @@ var HexInputVue2 = {
|
|
|
78
94
|
this.currentHex = hex;
|
|
79
95
|
|
|
80
96
|
if (misc_1.isPresent(value)) {
|
|
81
|
-
this.$emit('hexchange',
|
|
97
|
+
this.$emit('hexchange', {
|
|
98
|
+
hex: hex,
|
|
99
|
+
value: value,
|
|
100
|
+
event: event
|
|
101
|
+
});
|
|
82
102
|
}
|
|
83
103
|
},
|
|
84
104
|
onBlur: function onBlur(event) {
|
|
@@ -9,7 +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
|
+
var isV3 = allVue.version && allVue.version[0] === '3';
|
|
13
13
|
|
|
14
14
|
var kendo_vue_popup_1 = require("@progress/kendo-vue-popup");
|
|
15
15
|
|
|
@@ -35,7 +35,8 @@ var PickerVue2 = {
|
|
|
35
35
|
popupSettings: Object,
|
|
36
36
|
dir: String,
|
|
37
37
|
open: Boolean,
|
|
38
|
-
popupAnchor: String
|
|
38
|
+
popupAnchor: String,
|
|
39
|
+
id: String
|
|
39
40
|
},
|
|
40
41
|
computed: {
|
|
41
42
|
horizontalAlign: function horizontalAlign() {
|
|
@@ -65,21 +66,25 @@ var PickerVue2 = {
|
|
|
65
66
|
render: function render(createElement) {
|
|
66
67
|
var h = gh || createElement;
|
|
67
68
|
var defaultSlot = kendo_vue_common_1.getDefaultSlots(this);
|
|
68
|
-
var
|
|
69
|
+
var _a = this.$props.popupSettings,
|
|
70
|
+
popupClass = _a.popupClass,
|
|
71
|
+
appendTo = _a.appendTo,
|
|
72
|
+
animate = _a.animate,
|
|
73
|
+
className = _a.className;
|
|
69
74
|
return (// @ts-ignore function children
|
|
70
75
|
h(kendo_vue_popup_1.Popup, {
|
|
71
|
-
|
|
72
|
-
// ...(popupSettings || {}).style,
|
|
73
|
-
// direction: this.$props.dir as any
|
|
74
|
-
// }}
|
|
75
|
-
// {...popupSettings}
|
|
76
|
-
anchor: this.$props.popupAnchor,
|
|
76
|
+
id: this.id,
|
|
77
77
|
attrs: this.v3 ? undefined : {
|
|
78
|
+
id: this.id,
|
|
78
79
|
anchor: this.$props.popupAnchor,
|
|
79
80
|
anchorAlign: this.anchorAlign,
|
|
80
81
|
popupAlign: this.popupAlign,
|
|
81
|
-
show: this.$props.open
|
|
82
|
+
show: this.$props.open,
|
|
83
|
+
appendTo: appendTo,
|
|
84
|
+
animate: animate,
|
|
85
|
+
popupClass: popupClass
|
|
82
86
|
},
|
|
87
|
+
anchor: this.$props.popupAnchor,
|
|
83
88
|
anchorAlign: this.anchorAlign,
|
|
84
89
|
popupAlign: this.popupAlign,
|
|
85
90
|
show: this.$props.open,
|
|
@@ -89,7 +94,10 @@ var PickerVue2 = {
|
|
|
89
94
|
"close": this.onClose
|
|
90
95
|
},
|
|
91
96
|
onClose: this.onClose,
|
|
92
|
-
|
|
97
|
+
appendTo: appendTo,
|
|
98
|
+
animate: animate,
|
|
99
|
+
popupClass: popupClass,
|
|
100
|
+
"class": kendo_vue_common_1.classNames('k-reset', className)
|
|
93
101
|
}, this.v3 ? function () {
|
|
94
102
|
return [defaultSlot];
|
|
95
103
|
} : [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
|
+
}
|
|
@@ -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,7 +1,21 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getCachedRgba = exports.getCachedHsva = exports.getCachedHex = exports.removeCachedColor = exports.cacheHex = exports.cacheRgba = exports.cacheHsva = void 0;
|
|
3
|
+
exports.getCachedRgba = exports.getCachedHsva = exports.getCachedHex = exports.removeCachedColor = exports.cacheHex = exports.cacheRgba = exports.cacheHsva = exports.DEFAULT_PALETTE_SETTINGS = exports.DEFAULT_GRADIENT_SETTINGS = void 0;
|
|
4
|
+
var ColorPalette_1 = require("../ColorPalette");
|
|
4
5
|
var cache = {};
|
|
6
|
+
/**
|
|
7
|
+
* @hidden
|
|
8
|
+
*/
|
|
9
|
+
exports.DEFAULT_GRADIENT_SETTINGS = {
|
|
10
|
+
opacity: true
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* @hidden
|
|
14
|
+
*/
|
|
15
|
+
exports.DEFAULT_PALETTE_SETTINGS = {
|
|
16
|
+
palette: ColorPalette_1.DEFAULT_PRESET,
|
|
17
|
+
tileSize: ColorPalette_1.DEFAULT_TILE_SIZE
|
|
18
|
+
};
|
|
5
19
|
/**
|
|
6
20
|
* @hidden
|
|
7
21
|
*/
|
|
@@ -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
|
*
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getContrastFromTwoRGBAs = exports.getContrast = exports.getLuminance = exports.getRGBFromRGBA = exports.getColorFromRGBA = exports.getColorFromHue = exports.getColorFromHSV = exports.getRGBA = exports.getHSV = exports.parseColor = void 0;
|
|
3
|
+
exports.getContrastFromTwoRGBAs = exports.getContrast = exports.getLuminance = exports.getRGBFromRGBA = exports.getColorFromRGBA = exports.getColorFromHue = exports.getColorFromHSV = exports.getRGBA = exports.getHSV = exports.getHexValue = exports.parseColor = void 0;
|
|
4
4
|
var kendo_drawing_1 = require("@progress/kendo-drawing");
|
|
5
5
|
var misc_1 = require("./misc");
|
|
6
6
|
/**
|
|
@@ -8,7 +8,8 @@ var misc_1 = require("./misc");
|
|
|
8
8
|
*
|
|
9
9
|
* Returns the hex or RGBA string representation of the color.
|
|
10
10
|
*/
|
|
11
|
-
exports.parseColor = function (value, format, safe) {
|
|
11
|
+
exports.parseColor = function (value, format, opacityEnabled, safe) {
|
|
12
|
+
if (opacityEnabled === void 0) { opacityEnabled = false; }
|
|
12
13
|
if (safe === void 0) { safe = true; }
|
|
13
14
|
var allowedFormats = ['hex', 'rgba']; // TODO: constant?
|
|
14
15
|
// Angular supports third type: name : const allowedFormats: Array<string> = ['hex', 'rgba', 'name'];
|
|
@@ -22,7 +23,15 @@ exports.parseColor = function (value, format, safe) {
|
|
|
22
23
|
if (!misc_1.isPresent(parsedColor)) {
|
|
23
24
|
return;
|
|
24
25
|
}
|
|
25
|
-
return format === 'hex' ?
|
|
26
|
+
return format === 'hex' ? exports.getHexValue(parsedColor, opacityEnabled) : parsedColor.toCssRgba();
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* @hidden
|
|
30
|
+
*
|
|
31
|
+
* Returns the HEX value.
|
|
32
|
+
*/
|
|
33
|
+
exports.getHexValue = function (color, opacity) {
|
|
34
|
+
return opacity && color.a < 1 ? color.toCss({ alpha: true }) : color.toCss();
|
|
26
35
|
};
|
|
27
36
|
/**
|
|
28
37
|
* @hidden
|
|
@@ -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/npm/input/Input.js
CHANGED
|
@@ -25,7 +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
|
+
var isV3 = allVue.version && allVue.version[0] === '3';
|
|
29
29
|
var ref = allVue.ref;
|
|
30
30
|
|
|
31
31
|
var kendo_vue_common_1 = require("@progress/kendo-vue-common");
|
|
@@ -123,7 +123,8 @@ var InputVue2 = {
|
|
|
123
123
|
showLoadingIcon: Boolean,
|
|
124
124
|
showClearButton: Boolean,
|
|
125
125
|
inputClass: String,
|
|
126
|
-
wrapperClass: String
|
|
126
|
+
wrapperClass: String,
|
|
127
|
+
tabIndex: Number
|
|
127
128
|
},
|
|
128
129
|
data: function data() {
|
|
129
130
|
return {
|
|
@@ -170,7 +171,8 @@ var InputVue2 = {
|
|
|
170
171
|
iconName = _a.iconName,
|
|
171
172
|
showValidationIcon = _a.showValidationIcon,
|
|
172
173
|
showLoadingIcon = _a.showLoadingIcon,
|
|
173
|
-
showClearButton = _a.showClearButton
|
|
174
|
+
showClearButton = _a.showClearButton,
|
|
175
|
+
tabIndex = _a.tabIndex;
|
|
174
176
|
var inputId = id || this._inputId;
|
|
175
177
|
var textbox = h('input', __assign(__assign({
|
|
176
178
|
domProps: this.v3 ? null : __assign(__assign({}, this.$attrs), {
|
|
@@ -179,10 +181,13 @@ var InputVue2 = {
|
|
|
179
181
|
required: required,
|
|
180
182
|
value: this.computedValue
|
|
181
183
|
}),
|
|
182
|
-
attrs: this.v3 ? undefined : this.$attrs
|
|
184
|
+
attrs: this.v3 ? undefined : __assign(__assign({}, this.$attrs), {
|
|
185
|
+
tabindex: tabIndex
|
|
186
|
+
})
|
|
183
187
|
}, this.$attrs), {
|
|
184
188
|
placeholder: this.$props.placeholder,
|
|
185
189
|
id: inputId,
|
|
190
|
+
tabindex: tabIndex,
|
|
186
191
|
required: required,
|
|
187
192
|
value: this.computedValue,
|
|
188
193
|
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;
|