@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.
Files changed (102) hide show
  1. package/dist/cdn/js/kendo-vue-inputs.js +1 -1
  2. package/dist/es/checkbox/Checkbox.js +3 -3
  3. package/dist/es/colors/ColorContrastLabels.js +8 -4
  4. package/dist/es/colors/ColorContrastSvg.js +65 -44
  5. package/dist/es/colors/ColorGradient.d.ts +3 -1
  6. package/dist/es/colors/ColorGradient.js +160 -57
  7. package/dist/es/colors/ColorInput.d.ts +3 -0
  8. package/dist/es/colors/ColorInput.js +82 -58
  9. package/dist/es/colors/ColorPalette.js +31 -17
  10. package/dist/es/colors/ColorPicker.d.ts +1 -0
  11. package/dist/es/colors/ColorPicker.js +90 -70
  12. package/dist/es/colors/FlatColorPicker.d.ts +41 -5
  13. package/dist/es/colors/FlatColorPicker.js +307 -110
  14. package/dist/es/colors/HexInput.d.ts +1 -0
  15. package/dist/es/colors/HexInput.js +33 -13
  16. package/dist/es/colors/Picker.js +20 -12
  17. package/dist/es/colors/interfaces/ColorGradientChangeEvent.d.ts +4 -0
  18. package/dist/es/colors/interfaces/ColorGradientProps.d.ts +12 -0
  19. package/dist/es/colors/interfaces/ColorPaletteChangeEvent.d.ts +0 -3
  20. package/dist/es/colors/interfaces/ColorPaletteProps.d.ts +8 -3
  21. package/dist/es/colors/interfaces/ColorPickerActiveColorClick.d.ts +0 -3
  22. package/dist/es/colors/interfaces/ColorPickerBlurEvent.d.ts +0 -3
  23. package/dist/es/colors/interfaces/ColorPickerChangeEvent.d.ts +4 -3
  24. package/dist/es/colors/interfaces/ColorPickerFocusEvent.d.ts +0 -3
  25. package/dist/es/colors/interfaces/ColorPickerPaletteSettings.d.ts +0 -3
  26. package/dist/es/colors/interfaces/ColorPickerPopupSettings.d.ts +0 -3
  27. package/dist/es/colors/interfaces/ColorPickerProps.d.ts +30 -4
  28. package/dist/es/colors/interfaces/ColorPickerView.d.ts +0 -3
  29. package/dist/es/colors/interfaces/FlatColorPickerViewChangeEvent.d.ts +13 -0
  30. package/dist/es/colors/interfaces/FlatColorPickerViewChangeEvent.js +0 -0
  31. package/dist/es/colors/interfaces/PickerProps.d.ts +4 -0
  32. package/dist/es/colors/utils/color-cache.d.ts +13 -0
  33. package/dist/es/colors/utils/color-cache.js +14 -0
  34. package/dist/es/colors/utils/color-parser.d.ts +7 -1
  35. package/dist/es/colors/utils/color-parser.js +11 -2
  36. package/dist/es/input/Input.d.ts +4 -0
  37. package/dist/es/input/Input.js +9 -4
  38. package/dist/es/input-separator/InputSeparator.js +1 -1
  39. package/dist/es/maskedtextbox/MaskedTextBox.js +1 -1
  40. package/dist/es/messages/index.d.ts +45 -0
  41. package/dist/es/messages/index.js +46 -0
  42. package/dist/es/numerictextbox/NumericTextBox.js +4 -1
  43. package/dist/es/numerictextbox/interfaces/NumericTextBoxProps.d.ts +4 -0
  44. package/dist/es/package-metadata.js +1 -1
  45. package/dist/es/radiobutton/RadioButton.js +2 -2
  46. package/dist/es/radiobutton/RadioGroup.js +2 -2
  47. package/dist/es/range-slider/RangeSlider.js +2 -2
  48. package/dist/es/slider/Slider.js +3 -3
  49. package/dist/es/slider/SliderLabel.js +1 -1
  50. package/dist/es/switch/Switch.js +1 -1
  51. package/dist/es/textarea/TextArea.js +1 -1
  52. package/dist/npm/checkbox/Checkbox.js +3 -3
  53. package/dist/npm/colors/ColorContrastLabels.js +8 -4
  54. package/dist/npm/colors/ColorContrastSvg.js +65 -44
  55. package/dist/npm/colors/ColorGradient.d.ts +3 -1
  56. package/dist/npm/colors/ColorGradient.js +161 -56
  57. package/dist/npm/colors/ColorInput.d.ts +3 -0
  58. package/dist/npm/colors/ColorInput.js +82 -57
  59. package/dist/npm/colors/ColorPalette.js +31 -17
  60. package/dist/npm/colors/ColorPicker.d.ts +1 -0
  61. package/dist/npm/colors/ColorPicker.js +91 -71
  62. package/dist/npm/colors/FlatColorPicker.d.ts +41 -5
  63. package/dist/npm/colors/FlatColorPicker.js +307 -107
  64. package/dist/npm/colors/HexInput.d.ts +1 -0
  65. package/dist/npm/colors/HexInput.js +31 -11
  66. package/dist/npm/colors/Picker.js +19 -11
  67. package/dist/npm/colors/interfaces/ColorGradientChangeEvent.d.ts +4 -0
  68. package/dist/npm/colors/interfaces/ColorGradientProps.d.ts +12 -0
  69. package/dist/npm/colors/interfaces/ColorPaletteChangeEvent.d.ts +0 -3
  70. package/dist/npm/colors/interfaces/ColorPaletteProps.d.ts +8 -3
  71. package/dist/npm/colors/interfaces/ColorPickerActiveColorClick.d.ts +0 -3
  72. package/dist/npm/colors/interfaces/ColorPickerBlurEvent.d.ts +0 -3
  73. package/dist/npm/colors/interfaces/ColorPickerChangeEvent.d.ts +4 -3
  74. package/dist/npm/colors/interfaces/ColorPickerFocusEvent.d.ts +0 -3
  75. package/dist/npm/colors/interfaces/ColorPickerPaletteSettings.d.ts +0 -3
  76. package/dist/npm/colors/interfaces/ColorPickerPopupSettings.d.ts +0 -3
  77. package/dist/npm/colors/interfaces/ColorPickerProps.d.ts +30 -4
  78. package/dist/npm/colors/interfaces/ColorPickerView.d.ts +0 -3
  79. package/dist/npm/colors/interfaces/FlatColorPickerViewChangeEvent.d.ts +13 -0
  80. package/dist/npm/colors/interfaces/FlatColorPickerViewChangeEvent.js +2 -0
  81. package/dist/npm/colors/interfaces/PickerProps.d.ts +4 -0
  82. package/dist/npm/colors/utils/color-cache.d.ts +13 -0
  83. package/dist/npm/colors/utils/color-cache.js +15 -1
  84. package/dist/npm/colors/utils/color-parser.d.ts +7 -1
  85. package/dist/npm/colors/utils/color-parser.js +12 -3
  86. package/dist/npm/input/Input.d.ts +4 -0
  87. package/dist/npm/input/Input.js +9 -4
  88. package/dist/npm/input-separator/InputSeparator.js +1 -1
  89. package/dist/npm/maskedtextbox/MaskedTextBox.js +1 -1
  90. package/dist/npm/messages/index.d.ts +45 -0
  91. package/dist/npm/messages/index.js +47 -1
  92. package/dist/npm/numerictextbox/NumericTextBox.js +4 -1
  93. package/dist/npm/numerictextbox/interfaces/NumericTextBoxProps.d.ts +4 -0
  94. package/dist/npm/package-metadata.js +1 -1
  95. package/dist/npm/radiobutton/RadioButton.js +2 -2
  96. package/dist/npm/radiobutton/RadioGroup.js +2 -2
  97. package/dist/npm/range-slider/RangeSlider.js +2 -2
  98. package/dist/npm/slider/Slider.js +3 -3
  99. package/dist/npm/slider/SliderLabel.js +1 -1
  100. package/dist/npm/switch/Switch.js +1 -1
  101. package/dist/npm/textarea/TextArea.js +1 -1
  102. package/package.json +11 -11
@@ -2,10 +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
+ var isV3 = allVue.version && allVue.version[0] === '3';
6
6
  import { parseColor } from './utils/color-parser';
7
7
  import { isPresent } from './utils/misc';
8
- import { Input } from '../input/Input';
8
+ import { Input as KInput } from '../input/Input';
9
9
  /**
10
10
  * @hidden
11
11
  */
@@ -19,19 +19,23 @@ var HexInputVue2 = {
19
19
  'focus': null
20
20
  },
21
21
  props: {
22
+ tabIndex: Number,
22
23
  hex: String,
23
24
  disabled: Boolean
24
25
  },
26
+ computed: {
27
+ isHexValid: function isHexValid() {
28
+ return !!parseColor(this.currentHex, 'rgba');
29
+ }
30
+ },
25
31
  data: function data() {
26
32
  return {
27
33
  currentHex: this.$props.hex,
28
34
  originalHex: this.$props.hex
29
35
  };
30
36
  },
31
- computed: {
32
- computedHex: function computedHex() {
33
- return this.hex !== undefined ? this.hex : this.currentHex;
34
- }
37
+ mounted: function mounted() {
38
+ this._input = this.$refs.input._input;
35
39
  },
36
40
  // @ts-ignore
37
41
  setup: !isV3 ? undefined : function () {
@@ -40,24 +44,36 @@ var HexInputVue2 = {
40
44
  v3: v3
41
45
  };
42
46
  },
47
+ watch: {
48
+ hex: function hex(newValue) {
49
+ this.currentHex = newValue;
50
+ }
51
+ },
43
52
  // @ts-ignore
44
53
  render: function render(createElement) {
45
54
  var h = gh || createElement;
46
- return h(Input, {
47
- value: this.computedHex,
55
+ return h(KInput, {
56
+ value: this.currentHex,
48
57
  attrs: this.v3 ? undefined : {
49
- value: this.computedHex,
50
- disabled: this.$props.disabled
58
+ value: this.currentHex,
59
+ valid: this.isHexValid,
60
+ disabled: this.$props.disabled,
61
+ tabIndex: this.tabIndex
51
62
  },
52
- onChange: this.onChange,
63
+ onInput: this.onChange,
53
64
  on: this.v3 ? undefined : {
65
+ "input": this.onChange,
54
66
  "change": this.onChange,
55
67
  "focus": this.onFocus,
56
68
  "blur": this.onBlur
57
69
  },
70
+ onChange: this.onChange,
58
71
  onFocus: this.onFocus,
59
72
  onBlur: this.onBlur,
60
- disabled: this.$props.disabled
73
+ valid: this.isHexValid,
74
+ disabled: this.$props.disabled,
75
+ tabIndex: this.tabIndex,
76
+ ref: 'input'
61
77
  });
62
78
  },
63
79
  methods: {
@@ -67,7 +83,11 @@ var HexInputVue2 = {
67
83
  this.currentHex = hex;
68
84
 
69
85
  if (isPresent(value)) {
70
- this.$emit('hexchange', hex, value, event);
86
+ this.$emit('hexchange', {
87
+ hex: hex,
88
+ value: value,
89
+ event: event
90
+ });
71
91
  }
72
92
  },
73
93
  onBlur: function onBlur(event) {
@@ -2,7 +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
+ var isV3 = allVue.version && allVue.version[0] === '3';
6
6
  import { Popup } from '@progress/kendo-vue-popup';
7
7
  import { classNames, getDefaultSlots } from '@progress/kendo-vue-common';
8
8
  /**
@@ -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 popupSettings = this.$props.popupSettings || {};
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 // style={{
61
- // ...(popupSettings || {}).style,
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
- "class": classNames('k-reset', popupSettings.className)
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])
@@ -6,4 +6,8 @@ export interface ColorGradientChangeEvent {
6
6
  * The current value of the ColorGradient.
7
7
  */
8
8
  value: string;
9
+ /**
10
+ * The current value of the ColorGradient in RGBA format.
11
+ */
12
+ rgbaValue: string;
9
13
  }
@@ -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
  */
@@ -1,9 +1,6 @@
1
1
  /**
2
2
  * The arguments for the `onChange` ColorPalette event.
3
3
  */
4
- /**
5
- * @hidden
6
- */
7
4
  export interface ColorPaletteChangeEvent {
8
5
  /**
9
6
  * The current value of the ColorPalette.
@@ -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,9 +1,6 @@
1
1
  /**
2
2
  * The arguments for the `onActiveColorClick` ColorPicker event.
3
3
  */
4
- /**
5
- * @hidden
6
- */
7
4
  export interface ColorPickerActiveColorClick {
8
5
  /**
9
6
  * The current value of the ColorPicker.
@@ -1,9 +1,6 @@
1
1
  /**
2
2
  * The arguments for the `onBlur` ColorPicker event.
3
3
  */
4
- /**
5
- * @hidden
6
- */
7
4
  export interface ColorPickerBlurEvent {
8
5
  /**
9
6
  * A native DOM event.
@@ -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
  */
@@ -1,9 +1,6 @@
1
1
  /**
2
2
  * The arguments for the `onFocus` ColorPicker event.
3
3
  */
4
- /**
5
- * @hidden
6
- */
7
4
  export interface ColorPickerFocusEvent {
8
5
  /**
9
6
  * A native DOM event.
@@ -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. Currently, only the RGBA format is supported.
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
  */
@@ -7,7 +7,4 @@
7
7
  * * `gradient`
8
8
  * * `combo`
9
9
  */
10
- /**
11
- * @hidden
12
- */
13
10
  export declare type ColorPickerView = 'gradient' | 'palette' | 'combo';
@@ -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,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.toCss() : parsedColor.toCssRgba();
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
@@ -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
  */
@@ -18,7 +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
+ var isV3 = allVue.version && allVue.version[0] === '3';
22
22
  var ref = allVue.ref;
23
23
  import { guid, templateDefinition, validatePackage, kendoThemeMaps, templateRendering, getListeners, getTemplate } from '@progress/kendo-vue-common';
24
24
  import { packageMetadata } from '../package-metadata';
@@ -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,
@@ -3,7 +3,7 @@ import { validatePackage } from '@progress/kendo-licensing';
3
3
  import * as Vue from 'vue';
4
4
  var allVue = Vue;
5
5
  var gh = allVue.h;
6
- var isV3 = allVue.version[0] === '3';
6
+ var isV3 = allVue.version && allVue.version[0] === '3';
7
7
  var ref = allVue.ref;
8
8
  import { packageMetadata } from '../package-metadata';
9
9
  /**
@@ -2,7 +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
+ var isV3 = allVue.version && allVue.version[0] === '3';
6
6
  var ref = allVue.ref;
7
7
  import { MaskingService } from './masking.service';
8
8
  import { defaultRules, maskingChanged, returnFalse } from './utils';
@@ -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;