@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
@@ -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
- computed: {
43
- computedHex: function computedHex() {
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.computedHex,
67
+ value: this.currentHex,
59
68
  attrs: this.v3 ? undefined : {
60
- value: this.computedHex,
61
- disabled: this.$props.disabled
69
+ value: this.currentHex,
70
+ valid: this.isHexValid,
71
+ disabled: this.$props.disabled,
72
+ tabIndex: this.tabIndex
62
73
  },
63
- onChange: this.onChange,
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
- disabled: this.$props.disabled
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', hex, value, event);
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 popupSettings = this.$props.popupSettings || {};
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
- // style={{
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
- "class": kendo_vue_common_1.classNames('k-reset', popupSettings.className)
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])
@@ -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
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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' ? parsedColor.toCss() : parsedColor.toCssRgba();
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
  */
@@ -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,
@@ -11,7 +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
+ var isV3 = allVue.version && allVue.version[0] === '3';
15
15
  var ref = allVue.ref;
16
16
 
17
17
  var package_metadata_1 = require("../package-metadata");
@@ -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
  var ref = allVue.ref;
14
14
 
15
15
  var masking_service_1 = require("./masking.service");
@@ -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;