@progress/kendo-vue-inputs 3.5.0 → 3.5.1-dev.202208150613

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 (261) hide show
  1. package/dist/cdn/js/kendo-vue-inputs.js +1 -1
  2. package/dist/es/checkbox/Checkbox.js +1 -1
  3. package/dist/es/checkbox/interfaces/CheckboxChangeEvent.js +1 -0
  4. package/dist/es/checkbox/interfaces/CheckboxFocusEvent.js +1 -0
  5. package/dist/es/checkbox/interfaces/CheckboxProps.js +1 -0
  6. package/dist/es/colors/ColorContrastLabels.js +3 -3
  7. package/dist/es/colors/ColorContrastSvg.js +2 -2
  8. package/dist/es/colors/ColorGradient.js +7 -7
  9. package/dist/es/colors/ColorPalette.js +1 -1
  10. package/dist/es/colors/ColorPicker.js +4 -4
  11. package/dist/es/colors/interfaces/ColorGradientChangeEvent.js +1 -0
  12. package/dist/es/colors/interfaces/ColorGradientProps.js +1 -0
  13. package/dist/es/colors/interfaces/ColorPaletteChangeEvent.js +1 -0
  14. package/dist/es/colors/interfaces/ColorPaletteProps.js +1 -0
  15. package/dist/es/colors/interfaces/ColorPickerActiveColorClick.js +1 -0
  16. package/dist/es/colors/interfaces/ColorPickerBlurEvent.js +1 -0
  17. package/dist/es/colors/interfaces/ColorPickerChangeEvent.js +1 -0
  18. package/dist/es/colors/interfaces/ColorPickerFocusEvent.js +1 -0
  19. package/dist/es/colors/interfaces/ColorPickerPaletteSettings.js +1 -0
  20. package/dist/es/colors/interfaces/ColorPickerPopupSettings.js +1 -0
  21. package/dist/es/colors/interfaces/ColorPickerProps.js +1 -0
  22. package/dist/es/colors/interfaces/ColorPickerView.js +1 -0
  23. package/dist/es/colors/interfaces/FlatColorPickerViewChangeEvent.js +1 -0
  24. package/dist/es/colors/interfaces/PickerPopupSettings.js +1 -0
  25. package/dist/es/colors/interfaces/PickerProps.js +1 -0
  26. package/dist/es/colors/models/hsva.js +1 -0
  27. package/dist/es/colors/models/output-format.js +1 -0
  28. package/dist/es/colors/models/rgb.js +1 -0
  29. package/dist/es/colors/models/rgba.js +1 -0
  30. package/dist/es/colors/models/table-cell.js +1 -0
  31. package/dist/es/colors/models/tile-size.js +1 -0
  32. package/dist/es/colors/utils/color-parser.js +1 -1
  33. package/dist/es/colors/utils/svg-calc.js +4 -4
  34. package/dist/es/input/Input.js +2 -2
  35. package/dist/es/interfaces/Direction.js +1 -0
  36. package/dist/es/interfaces/ToggleBaseProps.js +1 -0
  37. package/dist/es/maskedtextbox/MaskedTextBox.js +3 -3
  38. package/dist/es/maskedtextbox/MaskedTextBoxProps.js +1 -0
  39. package/dist/es/maskedtextbox/parsing/result.js +1 -1
  40. package/dist/es/numerictextbox/NumericTextBox.js +2 -2
  41. package/dist/es/numerictextbox/interfaces/NumericTextBoxData.js +1 -0
  42. package/dist/es/numerictextbox/interfaces/NumericTextBoxProps.js +1 -0
  43. package/dist/es/numerictextbox/utils/index.js +4 -4
  44. package/dist/es/package-metadata.js +1 -1
  45. package/dist/es/radiobutton/RadioButton.js +1 -1
  46. package/dist/es/radiobutton/interfaces/RadioButtonBlurEvent.js +1 -0
  47. package/dist/es/radiobutton/interfaces/RadioButtonChangeEvent.js +1 -0
  48. package/dist/es/radiobutton/interfaces/RadioButtonFocusEvent.js +1 -0
  49. package/dist/es/radiobutton/interfaces/RadioButtonProps.js +1 -0
  50. package/dist/es/radiobutton/interfaces/RadioGroupChangeEvent.js +1 -0
  51. package/dist/es/radiobutton/interfaces/RadioGroupFocusEvent.js +1 -0
  52. package/dist/es/radiobutton/interfaces/RadioGroupProps.js +1 -0
  53. package/dist/es/range-slider/RangeSlider.js +4 -4
  54. package/dist/es/slider/SliderLabel.js +2 -2
  55. package/dist/es/switch/Switch.js +3 -3
  56. package/dist/es/textarea/TextArea.js +3 -3
  57. package/dist/es/textarea/interfaces/TextAreaBlurEvent.js +1 -0
  58. package/dist/es/textarea/interfaces/TextAreaChangeEvent.js +1 -0
  59. package/dist/es/textarea/interfaces/TextAreaFlow.js +1 -0
  60. package/dist/es/textarea/interfaces/TextAreaFocusEvent.js +1 -0
  61. package/dist/es/textarea/interfaces/TextAreaProps.js +1 -0
  62. package/dist/es/textarea/interfaces/TextAreaResize.js +1 -0
  63. package/dist/esm/additionalTypes.ts +21 -0
  64. package/dist/esm/checkbox/Checkbox.d.ts +79 -0
  65. package/dist/esm/checkbox/Checkbox.js +373 -0
  66. package/dist/esm/checkbox/interfaces/CheckboxChangeEvent.d.ts +9 -0
  67. package/dist/esm/checkbox/interfaces/CheckboxChangeEvent.js +1 -0
  68. package/dist/esm/checkbox/interfaces/CheckboxFocusEvent.d.ts +5 -0
  69. package/dist/esm/checkbox/interfaces/CheckboxFocusEvent.js +1 -0
  70. package/dist/esm/checkbox/interfaces/CheckboxProps.d.ts +110 -0
  71. package/dist/esm/checkbox/interfaces/CheckboxProps.js +1 -0
  72. package/dist/esm/colors/ColorContrastLabels.d.ts +49 -0
  73. package/dist/esm/colors/ColorContrastLabels.js +84 -0
  74. package/dist/esm/colors/ColorContrastSvg.d.ts +50 -0
  75. package/dist/esm/colors/ColorContrastSvg.js +130 -0
  76. package/dist/esm/colors/ColorGradient.d.ts +54 -0
  77. package/dist/esm/colors/ColorGradient.js +515 -0
  78. package/dist/esm/colors/ColorInput.d.ts +57 -0
  79. package/dist/esm/colors/ColorInput.js +343 -0
  80. package/dist/esm/colors/ColorPalette.d.ts +60 -0
  81. package/dist/esm/colors/ColorPalette.js +343 -0
  82. package/dist/esm/colors/ColorPicker.d.ts +57 -0
  83. package/dist/esm/colors/ColorPicker.js +505 -0
  84. package/dist/esm/colors/FlatColorPicker.d.ts +139 -0
  85. package/dist/esm/colors/FlatColorPicker.js +539 -0
  86. package/dist/esm/colors/HexInput.d.ts +52 -0
  87. package/dist/esm/colors/HexInput.js +110 -0
  88. package/dist/esm/colors/Picker.d.ts +46 -0
  89. package/dist/esm/colors/Picker.js +110 -0
  90. package/dist/esm/colors/interfaces/ColorGradientChangeEvent.d.ts +13 -0
  91. package/dist/esm/colors/interfaces/ColorGradientChangeEvent.js +1 -0
  92. package/dist/esm/colors/interfaces/ColorGradientProps.d.ts +68 -0
  93. package/dist/esm/colors/interfaces/ColorGradientProps.js +1 -0
  94. package/dist/esm/colors/interfaces/ColorPaletteChangeEvent.d.ts +13 -0
  95. package/dist/esm/colors/interfaces/ColorPaletteChangeEvent.js +1 -0
  96. package/dist/esm/colors/interfaces/ColorPaletteProps.d.ts +71 -0
  97. package/dist/esm/colors/interfaces/ColorPaletteProps.js +1 -0
  98. package/dist/esm/colors/interfaces/ColorPickerActiveColorClick.d.ts +13 -0
  99. package/dist/esm/colors/interfaces/ColorPickerActiveColorClick.js +1 -0
  100. package/dist/esm/colors/interfaces/ColorPickerBlurEvent.d.ts +9 -0
  101. package/dist/esm/colors/interfaces/ColorPickerBlurEvent.js +1 -0
  102. package/dist/esm/colors/interfaces/ColorPickerChangeEvent.d.ts +17 -0
  103. package/dist/esm/colors/interfaces/ColorPickerChangeEvent.js +1 -0
  104. package/dist/esm/colors/interfaces/ColorPickerFocusEvent.d.ts +9 -0
  105. package/dist/esm/colors/interfaces/ColorPickerFocusEvent.js +1 -0
  106. package/dist/esm/colors/interfaces/ColorPickerPaletteSettings.d.ts +32 -0
  107. package/dist/esm/colors/interfaces/ColorPickerPaletteSettings.js +1 -0
  108. package/dist/esm/colors/interfaces/ColorPickerPopupSettings.d.ts +14 -0
  109. package/dist/esm/colors/interfaces/ColorPickerPopupSettings.js +1 -0
  110. package/dist/esm/colors/interfaces/ColorPickerProps.d.ts +176 -0
  111. package/dist/esm/colors/interfaces/ColorPickerProps.js +1 -0
  112. package/dist/esm/colors/interfaces/ColorPickerView.d.ts +10 -0
  113. package/dist/esm/colors/interfaces/ColorPickerView.js +1 -0
  114. package/dist/esm/colors/interfaces/FlatColorPickerViewChangeEvent.d.ts +13 -0
  115. package/dist/esm/colors/interfaces/FlatColorPickerViewChangeEvent.js +1 -0
  116. package/dist/esm/colors/interfaces/PickerPopupSettings.d.ts +14 -0
  117. package/dist/esm/colors/interfaces/PickerPopupSettings.js +1 -0
  118. package/dist/esm/colors/interfaces/PickerProps.d.ts +46 -0
  119. package/dist/esm/colors/interfaces/PickerProps.js +1 -0
  120. package/dist/esm/colors/models/hsva.d.ts +9 -0
  121. package/dist/esm/colors/models/hsva.js +1 -0
  122. package/dist/esm/colors/models/output-format.d.ts +4 -0
  123. package/dist/esm/colors/models/output-format.js +1 -0
  124. package/dist/esm/colors/models/palette-presets.d.ts +53 -0
  125. package/dist/esm/colors/models/palette-presets.js +54 -0
  126. package/dist/esm/colors/models/rgb.d.ts +8 -0
  127. package/dist/esm/colors/models/rgb.js +1 -0
  128. package/dist/esm/colors/models/rgba.d.ts +9 -0
  129. package/dist/esm/colors/models/rgba.js +1 -0
  130. package/dist/esm/colors/models/table-cell.d.ts +7 -0
  131. package/dist/esm/colors/models/table-cell.js +1 -0
  132. package/dist/esm/colors/models/tile-size.d.ts +11 -0
  133. package/dist/esm/colors/models/tile-size.js +1 -0
  134. package/dist/esm/colors/utils/color-cache.d.ts +43 -0
  135. package/dist/esm/colors/utils/color-cache.js +75 -0
  136. package/dist/esm/colors/utils/color-palette.service.d.ts +13 -0
  137. package/dist/esm/colors/utils/color-palette.service.js +67 -0
  138. package/dist/esm/colors/utils/color-parser.d.ts +71 -0
  139. package/dist/esm/colors/utils/color-parser.js +145 -0
  140. package/dist/esm/colors/utils/misc.d.ts +15 -0
  141. package/dist/esm/colors/utils/misc.js +20 -0
  142. package/dist/esm/colors/utils/svg-calc.d.ts +62 -0
  143. package/dist/esm/colors/utils/svg-calc.js +103 -0
  144. package/dist/esm/input/Input.d.ts +189 -0
  145. package/dist/esm/input/Input.js +426 -0
  146. package/dist/esm/input-separator/InputSeparator.d.ts +26 -0
  147. package/dist/esm/input-separator/InputSeparator.js +43 -0
  148. package/dist/esm/interfaces/Direction.d.ts +1 -0
  149. package/dist/esm/interfaces/Direction.js +1 -0
  150. package/dist/esm/interfaces/ToggleBaseProps.d.ts +8 -0
  151. package/dist/esm/interfaces/ToggleBaseProps.js +1 -0
  152. package/dist/esm/main.d.ts +39 -0
  153. package/dist/esm/main.js +37 -0
  154. package/dist/esm/maskedtextbox/MaskedTextBox.d.ts +76 -0
  155. package/dist/esm/maskedtextbox/MaskedTextBox.js +511 -0
  156. package/dist/esm/maskedtextbox/MaskedTextBoxProps.d.ts +219 -0
  157. package/dist/esm/maskedtextbox/MaskedTextBoxProps.js +2 -0
  158. package/dist/esm/maskedtextbox/masking.service.d.ts +41 -0
  159. package/dist/esm/maskedtextbox/masking.service.js +206 -0
  160. package/dist/esm/maskedtextbox/parsing/combinators.d.ts +9 -0
  161. package/dist/esm/maskedtextbox/parsing/combinators.js +24 -0
  162. package/dist/esm/maskedtextbox/parsing/parsers.d.ts +47 -0
  163. package/dist/esm/maskedtextbox/parsing/parsers.js +154 -0
  164. package/dist/esm/maskedtextbox/parsing/result.d.ts +23 -0
  165. package/dist/esm/maskedtextbox/parsing/result.js +39 -0
  166. package/dist/esm/maskedtextbox/parsing/stream.d.ts +22 -0
  167. package/dist/esm/maskedtextbox/parsing/stream.js +41 -0
  168. package/dist/esm/maskedtextbox/utils.d.ts +16 -0
  169. package/dist/esm/maskedtextbox/utils.js +56 -0
  170. package/dist/esm/messages/index.d.ts +160 -0
  171. package/dist/esm/messages/index.js +162 -0
  172. package/dist/esm/numerictextbox/NumericTextBox.d.ts +87 -0
  173. package/dist/esm/numerictextbox/NumericTextBox.js +684 -0
  174. package/dist/esm/numerictextbox/interfaces/NumericTextBoxData.d.ts +15 -0
  175. package/dist/esm/numerictextbox/interfaces/NumericTextBoxData.js +1 -0
  176. package/dist/esm/numerictextbox/interfaces/NumericTextBoxProps.d.ts +178 -0
  177. package/dist/esm/numerictextbox/interfaces/NumericTextBoxProps.js +1 -0
  178. package/dist/esm/numerictextbox/utils/index.d.ts +119 -0
  179. package/dist/esm/numerictextbox/utils/index.js +646 -0
  180. package/dist/esm/package-metadata.d.ts +5 -0
  181. package/dist/esm/package-metadata.js +11 -0
  182. package/dist/esm/package.json +3 -0
  183. package/dist/esm/radiobutton/RadioButton.d.ts +55 -0
  184. package/dist/esm/radiobutton/RadioButton.js +195 -0
  185. package/dist/esm/radiobutton/RadioGroup.d.ts +57 -0
  186. package/dist/esm/radiobutton/RadioGroup.js +218 -0
  187. package/dist/esm/radiobutton/interfaces/RadioButtonBlurEvent.d.ts +5 -0
  188. package/dist/esm/radiobutton/interfaces/RadioButtonBlurEvent.js +1 -0
  189. package/dist/esm/radiobutton/interfaces/RadioButtonChangeEvent.d.ts +9 -0
  190. package/dist/esm/radiobutton/interfaces/RadioButtonChangeEvent.js +1 -0
  191. package/dist/esm/radiobutton/interfaces/RadioButtonFocusEvent.d.ts +5 -0
  192. package/dist/esm/radiobutton/interfaces/RadioButtonFocusEvent.js +1 -0
  193. package/dist/esm/radiobutton/interfaces/RadioButtonProps.d.ts +107 -0
  194. package/dist/esm/radiobutton/interfaces/RadioButtonProps.js +1 -0
  195. package/dist/esm/radiobutton/interfaces/RadioGroupChangeEvent.d.ts +9 -0
  196. package/dist/esm/radiobutton/interfaces/RadioGroupChangeEvent.js +1 -0
  197. package/dist/esm/radiobutton/interfaces/RadioGroupFocusEvent.d.ts +5 -0
  198. package/dist/esm/radiobutton/interfaces/RadioGroupFocusEvent.js +1 -0
  199. package/dist/esm/radiobutton/interfaces/RadioGroupProps.d.ts +81 -0
  200. package/dist/esm/radiobutton/interfaces/RadioGroupProps.js +1 -0
  201. package/dist/esm/range-slider/RangeSlider.d.ts +176 -0
  202. package/dist/esm/range-slider/RangeSlider.js +617 -0
  203. package/dist/esm/range-slider/range-raducer.d.ts +35 -0
  204. package/dist/esm/range-slider/range-raducer.js +157 -0
  205. package/dist/esm/slider/Slider.d.ts +140 -0
  206. package/dist/esm/slider/Slider.js +395 -0
  207. package/dist/esm/slider/SliderLabel.d.ts +65 -0
  208. package/dist/esm/slider/SliderLabel.js +121 -0
  209. package/dist/esm/switch/Switch.d.ts +182 -0
  210. package/dist/esm/switch/Switch.js +342 -0
  211. package/dist/esm/switch/util.d.ts +8 -0
  212. package/dist/esm/switch/util.js +46 -0
  213. package/dist/esm/textarea/TextArea.d.ts +81 -0
  214. package/dist/esm/textarea/TextArea.js +422 -0
  215. package/dist/esm/textarea/interfaces/TextAreaBlurEvent.d.ts +5 -0
  216. package/dist/esm/textarea/interfaces/TextAreaBlurEvent.js +1 -0
  217. package/dist/esm/textarea/interfaces/TextAreaChangeEvent.d.ts +9 -0
  218. package/dist/esm/textarea/interfaces/TextAreaChangeEvent.js +1 -0
  219. package/dist/esm/textarea/interfaces/TextAreaFlow.d.ts +8 -0
  220. package/dist/esm/textarea/interfaces/TextAreaFlow.js +1 -0
  221. package/dist/esm/textarea/interfaces/TextAreaFocusEvent.d.ts +5 -0
  222. package/dist/esm/textarea/interfaces/TextAreaFocusEvent.js +1 -0
  223. package/dist/esm/textarea/interfaces/TextAreaProps.d.ts +170 -0
  224. package/dist/esm/textarea/interfaces/TextAreaProps.js +1 -0
  225. package/dist/esm/textarea/interfaces/TextAreaResize.d.ts +10 -0
  226. package/dist/esm/textarea/interfaces/TextAreaResize.js +1 -0
  227. package/dist/npm/checkbox/Checkbox.js +12 -12
  228. package/dist/npm/colors/ColorContrastLabels.js +5 -5
  229. package/dist/npm/colors/ColorContrastSvg.js +4 -4
  230. package/dist/npm/colors/ColorGradient.js +42 -42
  231. package/dist/npm/colors/ColorInput.js +2 -2
  232. package/dist/npm/colors/ColorPalette.js +12 -12
  233. package/dist/npm/colors/ColorPicker.js +15 -15
  234. package/dist/npm/colors/FlatColorPicker.js +10 -10
  235. package/dist/npm/colors/HexInput.js +4 -4
  236. package/dist/npm/colors/Picker.js +2 -2
  237. package/dist/npm/colors/utils/color-palette.service.js +6 -6
  238. package/dist/npm/colors/utils/color-parser.js +48 -37
  239. package/dist/npm/colors/utils/misc.js +5 -3
  240. package/dist/npm/colors/utils/svg-calc.js +12 -8
  241. package/dist/npm/input/Input.js +4 -4
  242. package/dist/npm/input-separator/InputSeparator.js +1 -1
  243. package/dist/npm/main.js +7 -2
  244. package/dist/npm/maskedtextbox/MaskedTextBox.js +8 -8
  245. package/dist/npm/maskedtextbox/masking.service.js +19 -19
  246. package/dist/npm/maskedtextbox/parsing/combinators.js +4 -2
  247. package/dist/npm/maskedtextbox/parsing/parsers.js +14 -7
  248. package/dist/npm/maskedtextbox/parsing/result.js +1 -1
  249. package/dist/npm/numerictextbox/NumericTextBox.js +22 -22
  250. package/dist/npm/numerictextbox/utils/index.js +145 -116
  251. package/dist/npm/package-metadata.js +1 -1
  252. package/dist/npm/radiobutton/RadioButton.js +8 -8
  253. package/dist/npm/radiobutton/RadioGroup.js +5 -5
  254. package/dist/npm/range-slider/RangeSlider.js +17 -17
  255. package/dist/npm/range-slider/range-raducer.js +4 -2
  256. package/dist/npm/slider/Slider.js +7 -7
  257. package/dist/npm/slider/SliderLabel.js +3 -3
  258. package/dist/npm/switch/Switch.js +13 -13
  259. package/dist/npm/switch/util.js +2 -1
  260. package/dist/npm/textarea/TextArea.js +7 -7
  261. package/package.json +17 -11
@@ -0,0 +1,46 @@
1
+ import { DefineComponent, RecordPropsDefinition, ComponentOptions, Vue2type } from '../additionalTypes';
2
+ declare type DefaultData<V> = object | ((this: V) => {});
3
+ declare type DefaultMethods<V> = {
4
+ [key: string]: (this: V, ...args: any[]) => any;
5
+ };
6
+ import { PickerProps } from './interfaces/PickerProps';
7
+ /**
8
+ * @hidden
9
+ */
10
+ export interface PickerState {
11
+ }
12
+ /**
13
+ * @hidden
14
+ */
15
+ export interface PickerComputed {
16
+ [key: string]: any;
17
+ }
18
+ /**
19
+ * @hidden
20
+ */
21
+ export interface PickerMethods {
22
+ [key: string]: any;
23
+ focus: (e: any) => void;
24
+ toggleIfApplicable: () => void;
25
+ handleClick: (event: any) => void;
26
+ }
27
+ /**
28
+ * @hidden
29
+ */
30
+ export interface PickerData {
31
+ currentActive: boolean;
32
+ }
33
+ /**
34
+ * @hidden
35
+ */
36
+ export interface PickerAll extends Vue2type, PickerMethods, PickerData, PickerComputed, PickerState {
37
+ }
38
+ /**
39
+ * @hidden
40
+ */
41
+ declare let PickerVue2: ComponentOptions<PickerAll, DefaultData<PickerData>, DefaultMethods<PickerAll>, PickerComputed, RecordPropsDefinition<PickerProps>>;
42
+ /**
43
+ * @hidden
44
+ */
45
+ declare const Picker: DefineComponent<PickerProps, any, PickerData, PickerComputed, PickerMethods, {}, {}, {}, string, PickerProps, PickerProps, {}>;
46
+ export { Picker, PickerVue2 };
@@ -0,0 +1,110 @@
1
+ // @ts-ignore
2
+ import * as Vue from 'vue';
3
+ var allVue = Vue;
4
+ var gh = allVue.h;
5
+ var isV3 = allVue.version && allVue.version[0] === '3';
6
+ import { Popup } from '@progress/kendo-vue-popup';
7
+ import { classNames, getDefaultSlots } from '@progress/kendo-vue-common';
8
+ /**
9
+ * @hidden
10
+ */
11
+
12
+ var ANCHOR_VERTICAL_ALIGN = 'bottom';
13
+ /**
14
+ * @hidden
15
+ */
16
+
17
+ var POPUP_VERTICAL_ALIGN = 'top';
18
+ /**
19
+ * @hidden
20
+ */
21
+
22
+ var PickerVue2 = {
23
+ name: 'KendoPicker',
24
+ props: {
25
+ popupSettings: Object,
26
+ dir: String,
27
+ open: Boolean,
28
+ popupAnchor: String,
29
+ id: String
30
+ },
31
+ computed: {
32
+ horizontalAlign: function horizontalAlign() {
33
+ return this.$props.dir === 'rtl' ? 'right' : 'left';
34
+ },
35
+ anchorAlign: function anchorAlign() {
36
+ return {
37
+ horizontal: this.horizontalAlign,
38
+ vertical: ANCHOR_VERTICAL_ALIGN
39
+ };
40
+ },
41
+ popupAlign: function popupAlign() {
42
+ return {
43
+ horizontal: this.horizontalAlign,
44
+ vertical: POPUP_VERTICAL_ALIGN
45
+ };
46
+ }
47
+ },
48
+ // @ts-ignore
49
+ setup: !isV3 ? undefined : function () {
50
+ var v3 = !!isV3;
51
+ return {
52
+ v3: v3
53
+ };
54
+ },
55
+ // @ts-ignore
56
+ render: function render(createElement) {
57
+ var h = gh || createElement;
58
+ var defaultSlot = getDefaultSlots(this);
59
+ var _a = this.$props.popupSettings,
60
+ popupClass = _a.popupClass,
61
+ appendTo = _a.appendTo,
62
+ animate = _a.animate,
63
+ className = _a.className;
64
+ return (// @ts-ignore function children
65
+ h(Popup, {
66
+ id: this.id,
67
+ attrs: this.v3 ? undefined : {
68
+ id: this.id,
69
+ anchor: this.$props.popupAnchor,
70
+ anchorAlign: this.anchorAlign,
71
+ popupAlign: this.popupAlign,
72
+ show: this.$props.open,
73
+ appendTo: appendTo,
74
+ animate: animate,
75
+ popupClass: popupClass
76
+ },
77
+ anchor: this.$props.popupAnchor,
78
+ anchorAlign: this.anchorAlign,
79
+ popupAlign: this.popupAlign,
80
+ show: this.$props.open,
81
+ onOpen: this.onOpen,
82
+ on: this.v3 ? undefined : {
83
+ "open": this.onOpen,
84
+ "close": this.onClose
85
+ },
86
+ onClose: this.onClose,
87
+ appendTo: appendTo,
88
+ animate: animate,
89
+ popupClass: popupClass,
90
+ "class": classNames('k-reset', className)
91
+ }, this.v3 ? function () {
92
+ return [defaultSlot];
93
+ } : [defaultSlot])
94
+ );
95
+ },
96
+ methods: {
97
+ onOpen: function onOpen() {
98
+ this.$emit('open');
99
+ },
100
+ onClose: function onClose() {
101
+ this.$emit('close');
102
+ }
103
+ }
104
+ };
105
+ /**
106
+ * @hidden
107
+ */
108
+
109
+ var Picker = PickerVue2;
110
+ export { Picker, PickerVue2 };
@@ -0,0 +1,13 @@
1
+ /**
2
+ * The arguments for the `onChange` ColorGradient event.
3
+ */
4
+ export interface ColorGradientChangeEvent {
5
+ /**
6
+ * The current value of the ColorGradient.
7
+ */
8
+ value: string;
9
+ /**
10
+ * The current value of the ColorGradient in RGBA format.
11
+ */
12
+ rgbaValue: string;
13
+ }
@@ -0,0 +1,68 @@
1
+ import { ColorGradientChangeEvent } from './ColorGradientChangeEvent';
2
+ /**
3
+ * Represents the props of the [KendoReact ColorGradient component]({% slug overview_colorgradient %}).
4
+ */
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;
14
+ /**
15
+ * The default value of the ColorGradient.
16
+ */
17
+ defaultValue?: string;
18
+ /**
19
+ * The value of the ColorGradient.
20
+ */
21
+ value?: string;
22
+ /**
23
+ * Determines the event handler that will be fired when the user edits the value.
24
+ */
25
+ onChange?: (event: ColorGradientChangeEvent) => void;
26
+ /**
27
+ * Represents the focus event.
28
+ */
29
+ onFocus?: (event: any) => void;
30
+ /**
31
+ * Determines whether the alpha slider and the alpha input will be displayed. Defaults to `true`.
32
+ */
33
+ opacity?: boolean;
34
+ /**
35
+ * Enables the color contrast tool.
36
+ * Sets the background color that will be compared to the selected value.
37
+ * The tool will calculate the contrast ratio between two colors.
38
+ * Currently, only the RGBA format is supported.
39
+ */
40
+ backgroundColor?: string;
41
+ /**
42
+ * Determines whether the ColorGradient is disabled
43
+ * ([more information and example]({% slug disabled_colorgradient %})).
44
+ *
45
+ */
46
+ disabled?: boolean;
47
+ /**
48
+ * Sets the `tabIndex` property of the ColorGradient.
49
+ */
50
+ tabIndex?: number;
51
+ /**
52
+ * Sets tabindex of the inner components of the ColorGradient.
53
+ */
54
+ innerTabIndex?: number;
55
+ /**
56
+ * Specifies the id of the component.
57
+ */
58
+ id?: string;
59
+ /**
60
+ * Identifies the element(s) which will describe the component, similar to [HTML aria-describedby attribute](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/ARIA_Techniques/Using_the_aria-describedby_attribute).
61
+ * For example these elements could contain error or hint message.
62
+ */
63
+ ariaDescribedBy?: string;
64
+ /**
65
+ * Identifies the element(s) which will label the component.
66
+ */
67
+ ariaLabelledBy?: string;
68
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,13 @@
1
+ /**
2
+ * The arguments for the `onChange` ColorPalette event.
3
+ */
4
+ export interface ColorPaletteChangeEvent {
5
+ /**
6
+ * The current value of the ColorPalette.
7
+ */
8
+ value: string;
9
+ /**
10
+ * The current value of the ColorPalette in RGBA format.
11
+ */
12
+ rgbaValue: string;
13
+ }
@@ -0,0 +1,71 @@
1
+ import { TileSize } from '../models/tile-size';
2
+ import { ColorPaletteChangeEvent } from './ColorPaletteChangeEvent';
3
+ /**
4
+ * Represents the props of the [KendoVue ColorPalette component]({% slug overview_colorpalette %}).
5
+ */
6
+ export interface ColorPaletteProps {
7
+ /**
8
+ * The color palette that will be displayed.
9
+ *
10
+ * The supported values are:
11
+ * * The name of the predefined palette preset (for example, `office`, `basic`, and `apex`).
12
+ * * A string array.
13
+ */
14
+ palette?: string[] | string;
15
+ /**
16
+ * Specifies the number of columns that will be displayed.
17
+ * Defaults to `10`.
18
+ */
19
+ columns?: number;
20
+ /**
21
+ * Specifies the size of a color cell in px.
22
+ * Defaults to `24`.
23
+ */
24
+ tileSize?: number | TileSize;
25
+ /**
26
+ * The default value of the ColorPalette.
27
+ */
28
+ defaultValue?: string;
29
+ /**
30
+ * The value of the ColorPalette.
31
+ */
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;
41
+ /**
42
+ * Determines whether the ColorPalette is disabled
43
+ * ([more information and example]({% slug disabled_colorpalette %})).
44
+ */
45
+ disabled?: boolean;
46
+ /**
47
+ * Sets the `tabIndex` property of the ColorPalette.
48
+ */
49
+ tabIndex?: number;
50
+ /**
51
+ * Specifies the id of the component.
52
+ */
53
+ id?: string;
54
+ /**
55
+ * Identifies the element(s) which will describe the component, similar to [HTML aria-describedby attribute](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/ARIA_Techniques/Using_the_aria-describedby_attribute).
56
+ * For example these elements could contain error or hint message.
57
+ */
58
+ ariaDescribedBy?: string;
59
+ /**
60
+ * Identifies the element(s) which will label the component.
61
+ */
62
+ ariaLabelledBy?: string;
63
+ /**
64
+ * Determines the event handler that will be fired when the user edits the value.
65
+ */
66
+ onChange?: (event: ColorPaletteChangeEvent) => void;
67
+ /**
68
+ * Represent the focus event of the ColorPalette.
69
+ */
70
+ onFocus?: (event: FocusEvent) => void;
71
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,13 @@
1
+ /**
2
+ * The arguments for the `onActiveColorClick` ColorPicker event.
3
+ */
4
+ export interface ColorPickerActiveColorClick {
5
+ /**
6
+ * The current value of the ColorPicker.
7
+ */
8
+ value: string;
9
+ /**
10
+ * A native DOM event.
11
+ */
12
+ event: any;
13
+ }
@@ -0,0 +1,9 @@
1
+ /**
2
+ * The arguments for the `onBlur` ColorPicker event.
3
+ */
4
+ export interface ColorPickerBlurEvent {
5
+ /**
6
+ * A native DOM event.
7
+ */
8
+ event: any;
9
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,17 @@
1
+ /**
2
+ * The arguments for the `onChange` ColorPicker event.
3
+ */
4
+ export interface ColorPickerChangeEvent {
5
+ /**
6
+ * The current value of the ColorPicker.
7
+ */
8
+ value: string;
9
+ /**
10
+ * The current value of the ColorPicker in RGBA format.
11
+ */
12
+ rgbaValue: string;
13
+ /**
14
+ * A native DOM event.
15
+ */
16
+ event: any;
17
+ }
@@ -0,0 +1,9 @@
1
+ /**
2
+ * The arguments for the `onFocus` ColorPicker event.
3
+ */
4
+ export interface ColorPickerFocusEvent {
5
+ /**
6
+ * A native DOM event.
7
+ */
8
+ event: any;
9
+ }
@@ -0,0 +1,32 @@
1
+ import { TileSize } from '../models/tile-size';
2
+ /**
3
+ * The settings of the ColorPalette that is nested inside the popup of the ColorPicker
4
+ * ([see example]({% slug customizecolorpicker_colorpicker %}#toc-customizing-the-palette-popup)).
5
+ */
6
+ export interface ColorPickerPaletteSettings {
7
+ /**
8
+ * Specifies the set of colors.
9
+ * Provides a set of predefined palette presets (for example, `office`, `basic`, and `apex`)
10
+ * and enables you to implement a custom color palette.
11
+ * Defaults to the `office` preset.
12
+ *
13
+ * The supported values are:
14
+ * * The name of the predefined palette preset (for example, `office`, `basic`, and `apex`).
15
+ * * A string with comma-separated colors.
16
+ * * A string array.
17
+ */
18
+ palette?: string | Array<string>;
19
+ /**
20
+ * Specifies the number of columns that will be displayed.
21
+ * Defaults to `10`.
22
+ */
23
+ columns?: number;
24
+ /**
25
+ * Specifies the size of a color cell.
26
+ *
27
+ * The possible values are:
28
+ * * (Default) `24`
29
+ * * `{ width: number, height: number }`
30
+ */
31
+ tileSize?: number | TileSize;
32
+ }
@@ -0,0 +1,14 @@
1
+ import { PopupAnimation } from '@progress/kendo-vue-popup';
2
+ /**
3
+ * The settings of the popup container of the ColorPicker.
4
+ */
5
+ export interface ColorPickerPopupSettings {
6
+ /**
7
+ * Controls the popup animation. By default, the open and close animations are enabled.
8
+ */
9
+ animate?: boolean | PopupAnimation;
10
+ /**
11
+ * Specifies a list of CSS classes that will be added to the Popup element.
12
+ */
13
+ className?: string | Array<string>;
14
+ }
@@ -0,0 +1,176 @@
1
+ import { ColorPickerBlurEvent } from './ColorPickerBlurEvent';
2
+ import { ColorPickerFocusEvent } from './ColorPickerFocusEvent';
3
+ import { ColorPickerChangeEvent } from './ColorPickerChangeEvent';
4
+ import { ColorPickerActiveColorClick } from './ColorPickerActiveColorClick';
5
+ import { ColorPickerPopupSettings } from './ColorPickerPopupSettings';
6
+ import { ColorPickerPaletteSettings } from './ColorPickerPaletteSettings';
7
+ import { ColorPickerView } from './ColorPickerView';
8
+ import { ColorGradientProps } from './ColorGradientProps';
9
+ import { FlatColorPickerProps } from '../FlatColorPicker';
10
+ /**
11
+ * Represents the props of the [Kendo UI for Vue ColorPicker component]({% slug overview_colorpicker %}).
12
+ */
13
+ export interface ColorPickerProps {
14
+ /**
15
+ * The default value of the ColorPicker
16
+ * ([see example]({% slug default_value_colorpicker %})).
17
+ */
18
+ defaultValue?: string;
19
+ /**
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.
29
+ */
30
+ value?: string;
31
+ /**
32
+ * Overrides the validity state of the component.
33
+ * If `valid` is set, the `required` property will be ignored.
34
+ *
35
+ * This property is part of the [FormComponentProps]({% slug api_common_formcomponentprops %}) interface.
36
+ */
37
+ valid?: boolean;
38
+ /**
39
+ * Sets the disabled state of the ColorPicker
40
+ * ([see example]({% slug disabled_colorpicker %})).
41
+ */
42
+ disabled?: boolean;
43
+ /**
44
+ * Sets the `tabIndex` property of the ColorPicker.
45
+ * Defaults to `0`.
46
+ */
47
+ tabIndex?: number;
48
+ /**
49
+ * Sets the `title` property of the ColorPicker.
50
+ */
51
+ title?: string;
52
+ /**
53
+ * Sets the ColorPicker selected view index. The default is `0`.
54
+ */
55
+ selectedView?: number;
56
+ /**
57
+ * Sets the view which the ColorPicker will render in the popup
58
+ * ([see example]({% slug combinedview_colorpicker %})).
59
+ */
60
+ view?: ColorPickerView | string;
61
+ /**
62
+ * Represents the `dir` HTML attribute.
63
+ */
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;
77
+ /**
78
+ * Defines the name of an [existing icon in the Kendo UI for Vue theme]({% slug icons %}).
79
+ * You have to provide only the name of the icon without the `k-icon` or the `k-i-` prefixes.
80
+ * For example, `edit-tools` will be parsed to `k-icon k-i-edit-tools`
81
+ * ([see example]({% slug customizecolorpicker_colorpicker %}#toc-displaying-kendo-ui-icons)).
82
+ */
83
+ icon?: string;
84
+ /**
85
+ * The class name which displays an icon in the ColorPicker button
86
+ * ([see example]({% slug customizecolorpicker_colorpicker %}#toc-displaying-custom-icons)).
87
+ */
88
+ iconClassName?: string;
89
+ /**
90
+ * Configures the ColorPalette that is displayed in the ColorPicker popup
91
+ * ([see example]({% slug customizecolorpicker_colorpicker %}#toc-customizing-the-palette-popup)).
92
+ */
93
+ paletteSettings?: ColorPickerPaletteSettings;
94
+ /**
95
+ * Configures the ColorGradient that is displayed in the ColorPicker popup.
96
+ */
97
+ gradientSettings?: ColorGradientProps;
98
+ /**
99
+ * Configures the FlatColorPicker that is displayed in the ColorPicker popup.
100
+ */
101
+ flatColorPickerSettings?: FlatColorPickerProps;
102
+ /**
103
+ * Configures the popup of the ColorPicker.
104
+ */
105
+ popupSettings?: ColorPickerPopupSettings;
106
+ /**
107
+ * Sets the open and close state of the ColorPicker.
108
+ */
109
+ open?: boolean;
110
+ /**
111
+ * Specifies the id of the component.
112
+ */
113
+ id?: string;
114
+ /**
115
+ * Identifies the element(s) which will describe the component, similar to [HTML aria-describedby attribute](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/ARIA_Techniques/Using_the_aria-describedby_attribute).
116
+ * For example these elements could contain error or hint message.
117
+ */
118
+ ariaDescribedBy?: string;
119
+ /**
120
+ * Identifies the element(s) which will label the component.
121
+ */
122
+ ariaLabelledBy?: string;
123
+ /**
124
+ * The event handler that will be fired when the user edits the value.
125
+ */
126
+ onChange?: (event: ColorPickerChangeEvent) => void;
127
+ /**
128
+ * The event handler that will be fired when ColorPicker is focused.
129
+ */
130
+ onFocus?: (event: ColorPickerFocusEvent) => void;
131
+ /**
132
+ * The event handler that will be fired when ColorPicker is blurred.
133
+ */
134
+ onBlur?: (event: ColorPickerBlurEvent) => void;
135
+ /**
136
+ * The event handler that will be fired when the left side of the ColorPicker is clicked.
137
+ */
138
+ onActivecolorclick?: (event: ColorPickerActiveColorClick) => void;
139
+ /**
140
+ * Configures the `size` of the ColorPicker.
141
+ *
142
+ * The available options are:
143
+ * - small
144
+ * - medium
145
+ * - large
146
+ * - null&mdash;Does not set a size `className`.
147
+ *
148
+ * @default `medium`
149
+ */
150
+ size?: null | 'small' | 'medium' | 'large' | string;
151
+ /**
152
+ * Configures the `roundness` of the ColorPicker.
153
+ *
154
+ * The available options are:
155
+ * - small
156
+ * - medium
157
+ * - large
158
+ * - full
159
+ * - null&mdash;Does not set a rounded `className`.
160
+ *
161
+ * @default `medium`
162
+ */
163
+ rounded?: null | 'small' | 'medium' | 'large' | 'full' | string;
164
+ /**
165
+ * Configures the `fillMode` of the ColorPicker.
166
+ *
167
+ * The available options are:
168
+ * - solid
169
+ * - outline
170
+ * - flat
171
+ * - null&mdash;Does not set a fillMode `className`.
172
+ *
173
+ * @default `solid`
174
+ */
175
+ fillMode?: null | 'solid' | 'flat' | 'outline' | string;
176
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Specifies the view which the ColorPicker will render in the popup
3
+ * ([see example]({% slug combinedview_colorpicker %})).
4
+ *
5
+ * The possible values are:
6
+ * * (Default) `palette`
7
+ * * `gradient`
8
+ * * `combo`
9
+ */
10
+ export declare type ColorPickerView = 'gradient' | 'palette' | 'combo';
@@ -0,0 +1 @@
1
+ export {};
@@ -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
+ }