@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,426 @@
1
+ var __assign = this && this.__assign || function () {
2
+ __assign = Object.assign || function (t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+
6
+ for (var p in s) {
7
+ if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
8
+ }
9
+ }
10
+
11
+ return t;
12
+ };
13
+
14
+ return __assign.apply(this, arguments);
15
+ }; // @ts-ignore
16
+
17
+
18
+ import * as Vue from 'vue';
19
+ var allVue = Vue;
20
+ var gh = allVue.h;
21
+ var isV3 = allVue.version && allVue.version[0] === '3';
22
+ var ref = allVue.ref;
23
+ import { guid, templateDefinition, validatePackage, kendoThemeMaps, templateRendering, getListeners, getTemplate } from '@progress/kendo-vue-common';
24
+ import { packageMetadata } from '../package-metadata.js';
25
+ import { FloatingLabel } from '@progress/kendo-vue-labels';
26
+ /**
27
+ * @hidden
28
+ */
29
+
30
+ var InputVue2 = {
31
+ model: {
32
+ event: 'changemodel'
33
+ },
34
+ // @ts-ignore
35
+ emits: {
36
+ 'input': null,
37
+ 'change': null,
38
+ 'changemodel': null,
39
+ 'update:modelValue': null,
40
+ 'focus': null,
41
+ 'blur': null,
42
+ 'keyup': null,
43
+ 'keydown': null,
44
+ 'keypress': null
45
+ },
46
+ props: {
47
+ modelValue: {
48
+ type: [String, Number],
49
+ default: undefined
50
+ },
51
+ disabled: Boolean,
52
+ defaultValue: {
53
+ type: [String, Number],
54
+ default: ''
55
+ },
56
+ value: {
57
+ type: [String, Number]
58
+ },
59
+ label: {
60
+ type: String
61
+ },
62
+ placeholder: {
63
+ type: String
64
+ },
65
+ required: {
66
+ type: Boolean,
67
+ default: false
68
+ },
69
+ size: {
70
+ type: String,
71
+ default: 'medium',
72
+ validator: function validator(value) {
73
+ return [null, 'small', 'medium', 'large'].includes(value);
74
+ }
75
+ },
76
+ rounded: {
77
+ type: String,
78
+ default: 'medium',
79
+ validator: function validator(value) {
80
+ return [null, 'small', 'medium', 'large'].includes(value);
81
+ }
82
+ },
83
+ fillMode: {
84
+ type: String,
85
+ default: 'solid',
86
+ validator: function validator(value) {
87
+ return [null, 'solid', 'flat', 'outline'].includes(value);
88
+ }
89
+ },
90
+ dir: {
91
+ type: String
92
+ },
93
+ id: String,
94
+ valid: {
95
+ type: Boolean,
96
+ default: undefined
97
+ },
98
+ validate: {
99
+ type: Boolean
100
+ },
101
+ validationMessage: {
102
+ type: String
103
+ },
104
+ validityStyles: {
105
+ type: Boolean,
106
+ default: true
107
+ },
108
+ iconName: String,
109
+ inputPrefix: templateDefinition,
110
+ inputSuffix: templateDefinition,
111
+ showValidationIcon: Boolean,
112
+ showLoadingIcon: Boolean,
113
+ showClearButton: Boolean,
114
+ inputClass: String,
115
+ wrapperClass: String,
116
+ tabIndex: Number
117
+ },
118
+ data: function data() {
119
+ return {
120
+ hasMounted: false,
121
+ autofill: false,
122
+ currentValue: '',
123
+ valueDuringOnChange: '',
124
+ focused: false
125
+ };
126
+ },
127
+ created: function created() {
128
+ validatePackage(packageMetadata);
129
+ this._input = undefined;
130
+ this._inputId = guid();
131
+ this.$data.valueDuringOnChange = undefined;
132
+ this.$data.currentValue = this.$props.defaultValue;
133
+ },
134
+ mounted: function mounted() {
135
+ this._input = this.v3 ? this.inputRef : this.$refs.input;
136
+ this.$data.hasMounted = true;
137
+ this.setValidity();
138
+ },
139
+ updated: function updated() {
140
+ this.setValidity();
141
+ },
142
+ // @ts-ignore
143
+ setup: !isV3 ? undefined : function () {
144
+ var v3 = !!isV3;
145
+ var inputRef = ref(null);
146
+ return {
147
+ v3: v3,
148
+ inputRef: inputRef
149
+ };
150
+ },
151
+ render: function render(createElement) {
152
+ var _this = this;
153
+
154
+ var h = gh || createElement;
155
+ var isValid = !this.$props.validityStyles || this.validity().valid;
156
+ var _a = this.$props,
157
+ label = _a.label,
158
+ id = _a.id,
159
+ required = _a.required,
160
+ iconName = _a.iconName,
161
+ showValidationIcon = _a.showValidationIcon,
162
+ showLoadingIcon = _a.showLoadingIcon,
163
+ showClearButton = _a.showClearButton,
164
+ tabIndex = _a.tabIndex;
165
+ var inputId = id || this._inputId;
166
+ var textbox = h('input', __assign(__assign({
167
+ domProps: this.v3 ? null : __assign(__assign({}, this.$attrs), {
168
+ placeholder: this.$props.placeholder,
169
+ id: inputId,
170
+ required: required,
171
+ value: this.computedValue
172
+ }),
173
+ attrs: this.v3 ? undefined : __assign(__assign({}, this.$attrs), {
174
+ tabindex: tabIndex
175
+ })
176
+ }, this.$attrs), {
177
+ placeholder: this.$props.placeholder,
178
+ id: inputId,
179
+ tabindex: tabIndex,
180
+ required: required,
181
+ value: this.computedValue,
182
+ class: this.inputInnerClass,
183
+ ref: this.v3 ? function (el) {
184
+ _this.inputRef = el;
185
+ } : 'input',
186
+ on: this.v3 ? null : {
187
+ change: this.handleChange,
188
+ focus: this.emitFocus,
189
+ blur: this.emitBlur,
190
+ keydown: this.handleKeydown,
191
+ keyup: this.handleKeyup,
192
+ keypress: this.handleKeypress,
193
+ input: this.handleInput,
194
+ animationstart: this.handleAutoFill,
195
+ animationend: this.handleAutoFillEnd
196
+ },
197
+ onKeydown: this.handleKeydown,
198
+ onKeyup: this.handleKeyup,
199
+ onKeypress: this.handleKeypress,
200
+ onChange: this.handleChange,
201
+ onFocus: this.emitFocus,
202
+ onBlur: this.emitBlur,
203
+ onInput: this.handleInput,
204
+ onAnimationstart: this.handleAutoFill,
205
+ onAnimationend: this.handleAutoFillEnd
206
+ }));
207
+ var inputPrefixTemplate = templateRendering.call(this, this.$props.inputPrefix, getListeners.call(this));
208
+ var inputSuffixTemplate = templateRendering.call(this, this.$props.inputSuffix, getListeners.call(this));
209
+ var inputPrefix = getTemplate.call(this, {
210
+ h: h,
211
+ template: inputPrefixTemplate,
212
+ additionalProps: {
213
+ value: this.computedValue,
214
+ valid: isValid
215
+ }
216
+ });
217
+ var inputSuffix = getTemplate.call(this, {
218
+ h: h,
219
+ template: inputSuffixTemplate,
220
+ additionalProps: {
221
+ value: this.computedValue,
222
+ valid: isValid
223
+ }
224
+ });
225
+ var inputWrapper = h("span", {
226
+ "class": this.inputWrapperClass()
227
+ }, [iconName && h("span", {
228
+ "class": "k-input-icon k-icon k-i-".concat(iconName)
229
+ }), this.$props.inputPrefix && h("span", {
230
+ "class": "k-input-prefix"
231
+ }, [inputPrefix]), textbox, this.$props.inputSuffix && h("span", {
232
+ "class": "k-input-suffix"
233
+ }, [inputSuffix]), showValidationIcon && isValid && h("span", {
234
+ "class": "k-input-validation-icon k-icon k-i-check"
235
+ }), showValidationIcon && !isValid && h("span", {
236
+ "class": "k-input-validation-icon k-icon k-i-warning"
237
+ }), showLoadingIcon && h("span", {
238
+ "class": "k-input-loading-icon k-icon k-i-loading"
239
+ }), showClearButton && this.computedValue && h("span", {
240
+ onClick: this.clearClick,
241
+ on: this.v3 ? undefined : {
242
+ "click": this.clearClick
243
+ },
244
+ "class": "k-clear-value"
245
+ }, [h("span", {
246
+ "class": "k-icon k-i-x"
247
+ })])]);
248
+ return label ? // @ts-ignore function children
249
+ h(FloatingLabel, {
250
+ label: label,
251
+ attrs: this.v3 ? undefined : {
252
+ label: label,
253
+ editorId: inputId,
254
+ editorValue: this.computedValue,
255
+ editorValid: isValid,
256
+ editorDisabled: this.$props.disabled,
257
+ editorPlaceholder: this.$data.focused ? this.$props.placeholder : '',
258
+ dir: this.$props.dir
259
+ },
260
+ editorId: inputId,
261
+ editorValue: this.computedValue,
262
+ editorValid: isValid,
263
+ editorDisabled: this.$props.disabled,
264
+ editorPlaceholder: this.$data.focused ? this.$props.placeholder : '',
265
+ dir: this.$props.dir
266
+ }, this.v3 ? function () {
267
+ return [inputWrapper];
268
+ } : [inputWrapper]) : inputWrapper;
269
+ },
270
+ methods: {
271
+ emitFocus: function emitFocus(e) {
272
+ this.$emit('focus', e);
273
+ this.$data.focused = true;
274
+ },
275
+ emitBlur: function emitBlur(e) {
276
+ this.$emit('blur', e);
277
+ this.$data.focused = false;
278
+ },
279
+ handleKeydown: function handleKeydown(e) {
280
+ this.$emit('keydown', e);
281
+ },
282
+ handleKeyup: function handleKeyup(e) {
283
+ this.$emit('keyup', e);
284
+ },
285
+ handleKeypress: function handleKeypress(e) {
286
+ this.$emit('keypress', e);
287
+ },
288
+ clearClick: function clearClick(event) {
289
+ this.emitUpdate(event, 'change', '');
290
+ },
291
+ focus: function focus() {
292
+ if (this._input) {
293
+ this._input.focus();
294
+ }
295
+ },
296
+ validity: function validity() {
297
+ var result = {
298
+ badInput: this._input ? this._input.validity.badInput : false,
299
+ patternMismatch: this._input ? this._input.validity.patternMismatch : false,
300
+ rangeOverflow: this._input ? this._input.validity.rangeOverflow : false,
301
+ rangeUnderflow: this._input ? this._input.validity.rangeUnderflow : false,
302
+ stepMismatch: this._input ? this._input.validity.stepMismatch : false,
303
+ tooLong: this._input ? this._input.validity.tooLong : false,
304
+ tooShort: this._input ? this._input.validity.tooShort : false,
305
+ typeMismatch: this._input ? this._input.validity.typeMismatch : false,
306
+ valueMissing: this._input ? this._input.validity.valueMissing : false
307
+ };
308
+ return __assign(__assign({}, result), {
309
+ customError: this.$props.validationMessage !== undefined,
310
+ valid: this.$props.valid !== undefined ? this.$props.valid : this._input ? !this.isInvalid(result) : true
311
+ });
312
+ },
313
+ isInvalid: function isInvalid(state) {
314
+ var result = false;
315
+
316
+ for (var prop in state) {
317
+ if (state.hasOwnProperty(prop)) {
318
+ result = result || state[prop];
319
+ }
320
+ }
321
+
322
+ return result;
323
+ },
324
+ setValidity: function setValidity() {
325
+ if (this._input && this._input.setCustomValidity) {
326
+ this._input.setCustomValidity(this.validity().valid ? '' : this.$props.validationMessage || '');
327
+ }
328
+ },
329
+ handleInput: function handleInput(event) {
330
+ this.emitUpdate(event, 'input', event.target.value);
331
+ },
332
+ handleChange: function handleChange(event) {
333
+ this.emitUpdate(event, 'change', event.target.value);
334
+ },
335
+ emitUpdate: function emitUpdate(event, eventName, value) {
336
+ var that = this;
337
+
338
+ if (this.disabled) {
339
+ return;
340
+ }
341
+
342
+ this.$data.currentValue = value;
343
+ this.$data.valueDuringOnChange = value;
344
+ this.$nextTick(function () {
345
+ that.$emit('changemodel', value);
346
+ that.$emit('update:modelValue', value);
347
+ that.$emit(eventName, {
348
+ event: event,
349
+ value: value,
350
+ component: that,
351
+ target: event.target,
352
+ validity: that.validity()
353
+ });
354
+ that.$data.valueDuringOnChange = undefined;
355
+ });
356
+ },
357
+ handleAutoFill: function handleAutoFill(e) {
358
+ if (e.animationName === 'autoFillStart') {
359
+ var parent_1 = e.target.parentNode;
360
+
361
+ if (parent_1 && parent_1.classList.contains('k-empty')) {
362
+ this.$data.autofill = true;
363
+ parent_1.classList.remove('k-empty');
364
+ }
365
+ }
366
+ },
367
+ handleAutoFillEnd: function handleAutoFillEnd(e) {
368
+ if (e.animationName === 'autoFillEnd') {
369
+ var parent_2 = e.target.parentNode;
370
+
371
+ if (parent_2) {
372
+ this.$data.autofill = false;
373
+ }
374
+ }
375
+ },
376
+ name: function name() {
377
+ return this.$props.name;
378
+ },
379
+ inputWrapperClass: function inputWrapperClass() {
380
+ var _a;
381
+
382
+ var _b = this.$props,
383
+ size = _b.size,
384
+ fillMode = _b.fillMode,
385
+ rounded = _b.rounded;
386
+ var isValid = !this.$data.hasMounted || !this.$props.validityStyles || this.validity().valid;
387
+ return _a = {
388
+ 'k-textbox': true,
389
+ 'k-input': true
390
+ }, _a["k-input-".concat(kendoThemeMaps.sizeMap[size] || size)] = size, _a["k-input-".concat(fillMode)] = fillMode, _a["k-rounded-".concat(kendoThemeMaps.roundedMap[rounded] || rounded)] = rounded, _a['k-invalid'] = !isValid, _a['k-required'] = this.required, _a['k-disabled'] = this.$props.disabled, _a[this.wrapperClass] = this.wrapperClass, _a;
391
+ }
392
+ },
393
+ computed: {
394
+ spanClassNames: {
395
+ get: function get() {
396
+ var isValid = !this.$data.hasMounted || !this.$props.validityStyles || this.validity().valid;
397
+ return {
398
+ 'k-floating-label-container': true,
399
+ 'k-focus': this.$data.focused,
400
+ 'k-empty': !((this.computedValue === 0 ? true : this.computedValue) || this.$props.placeholder || this.$data.autofill),
401
+ 'k-autofill': this.$data.autofill,
402
+ 'k-invalid': !isValid && isValid !== undefined,
403
+ 'k-rtl': this.$props.dir === 'rtl'
404
+ };
405
+ }
406
+ },
407
+ inputInnerClass: function inputInnerClass() {
408
+ var _a;
409
+
410
+ return _a = {
411
+ 'k-input-inner': true
412
+ }, _a[this.inputClass] = this.inputClass, _a;
413
+ },
414
+ computedValue: {
415
+ get: function get() {
416
+ return this.$data.valueDuringOnChange !== undefined ? this.$data.valueDuringOnChange : this.$props.value !== undefined ? this.$props.value : this.$props.modelValue !== undefined ? this.$props.modelValue : this.$data.currentValue;
417
+ }
418
+ }
419
+ }
420
+ };
421
+ /**
422
+ * @hidden
423
+ */
424
+
425
+ var Input = InputVue2;
426
+ export { Input, InputVue2 };
@@ -0,0 +1,26 @@
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
+ /**
7
+ * @hidden
8
+ */
9
+ export interface InputSeparatorAllMethods extends Vue2type {
10
+ }
11
+ /**
12
+ * @hidden
13
+ */
14
+ declare let InputSeparatorVue2: ComponentOptions<InputSeparatorAllMethods, DefaultData<{}>, DefaultMethods<InputSeparatorAllMethods>, {}, RecordPropsDefinition<{}>>;
15
+ /**
16
+ * Represents the Kendo UI for Vue InputSeparator component. It can be used as a semarator
17
+ * between horizontal icons in prefi and suffic templates.
18
+ *
19
+ * ```jsx
20
+ * <template>
21
+ * <InputSeparator>
22
+ * </template>
23
+ * ```
24
+ */
25
+ declare const InputSeparator: DefineComponent<{}, any, {}, {}, {}, {}, {}, {}, string, {}, {}, {}>;
26
+ export { InputSeparator, InputSeparatorVue2 };
@@ -0,0 +1,43 @@
1
+ // @ts-ignore
2
+ import { validatePackage } from '@progress/kendo-licensing';
3
+ import * as Vue from 'vue';
4
+ var allVue = Vue;
5
+ var gh = allVue.h;
6
+ var isV3 = allVue.version && allVue.version[0] === '3';
7
+ var ref = allVue.ref;
8
+ import { packageMetadata } from '../package-metadata.js';
9
+ /**
10
+ * @hidden
11
+ */
12
+
13
+ var InputSeparatorVue2 = {
14
+ created: function created() {
15
+ validatePackage(packageMetadata);
16
+ },
17
+ // @ts-ignore
18
+ setup: !isV3 ? undefined : function () {
19
+ var v3 = !!isV3;
20
+ return {
21
+ v3: v3
22
+ };
23
+ },
24
+ render: function render(createElement) {
25
+ var h = gh || createElement;
26
+ return h("span", {
27
+ "class": 'k-input-separator'
28
+ });
29
+ }
30
+ };
31
+ /**
32
+ * Represents the Kendo UI for Vue InputSeparator component. It can be used as a semarator
33
+ * between horizontal icons in prefi and suffic templates.
34
+ *
35
+ * ```jsx
36
+ * <template>
37
+ * <InputSeparator>
38
+ * </template>
39
+ * ```
40
+ */
41
+
42
+ var InputSeparator = InputSeparatorVue2;
43
+ export { InputSeparator, InputSeparatorVue2 };
@@ -0,0 +1 @@
1
+ export declare type Direction = 'ltr' | 'rtl';
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,8 @@
1
+ /**
2
+ * The props passed to the Checkbox and Switch components.
3
+ */
4
+ export interface ToggleBaseProps {
5
+ value?: any;
6
+ checked?: any;
7
+ defaultChecked?: any;
8
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,39 @@
1
+ import { FormComponentValidity } from '@progress/kendo-vue-common';
2
+ export { FormComponentValidity };
3
+ export { ColorGradient, ColorGradientState } from './colors/ColorGradient';
4
+ export { ColorPalette, ColorPaletteState } from './colors/ColorPalette';
5
+ export * from './colors/ColorPicker';
6
+ export * from './colors/interfaces/ColorPaletteChangeEvent';
7
+ export * from './colors/interfaces/ColorPaletteProps';
8
+ export * from './colors/interfaces/ColorPickerBlurEvent';
9
+ export * from './colors/interfaces/ColorPickerChangeEvent';
10
+ export * from './colors/interfaces/ColorPickerFocusEvent';
11
+ export * from './colors/interfaces/ColorPickerPaletteSettings';
12
+ export * from './colors/interfaces/ColorPickerPopupSettings';
13
+ export * from './colors/interfaces/ColorPickerProps';
14
+ export * from './colors/FlatColorPicker';
15
+ export { Switch, SwitchVue2, SwitchProps, SwitchState, SwitchChangeEvent } from './switch/Switch';
16
+ export * from './input-separator/InputSeparator';
17
+ export * from './input/Input';
18
+ export * from './numerictextbox/NumericTextBox';
19
+ export * from './maskedtextbox/MaskedTextBox';
20
+ export * from './maskedtextbox/MaskedTextBoxProps';
21
+ export * from './slider/Slider';
22
+ export * from './slider/SliderLabel';
23
+ export * from './range-slider/RangeSlider';
24
+ export * from './checkbox/interfaces/CheckboxProps';
25
+ export * from './checkbox/interfaces/CheckboxChangeEvent';
26
+ export * from './checkbox/interfaces/CheckboxFocusEvent';
27
+ export * from './checkbox/Checkbox';
28
+ export * from './radiobutton/RadioGroup';
29
+ export * from './radiobutton/interfaces/RadioGroupProps';
30
+ export * from './radiobutton/interfaces/RadioGroupChangeEvent';
31
+ export * from './radiobutton/interfaces/RadioGroupFocusEvent';
32
+ export * from './radiobutton/RadioButton';
33
+ export * from './radiobutton/interfaces/RadioButtonProps';
34
+ export * from './radiobutton/interfaces/RadioButtonChangeEvent';
35
+ export * from './radiobutton/interfaces/RadioButtonFocusEvent';
36
+ export * from './textarea/TextArea';
37
+ export * from './textarea/interfaces/TextAreaProps';
38
+ export * from './textarea/interfaces/TextAreaChangeEvent';
39
+ export * from './textarea/interfaces/TextAreaFocusEvent';
@@ -0,0 +1,37 @@
1
+ export { ColorGradient } from './colors/ColorGradient.js';
2
+ export { ColorPalette } from './colors/ColorPalette.js';
3
+ export * from './colors/ColorPicker.js';
4
+ export * from './colors/interfaces/ColorPaletteChangeEvent.js';
5
+ export * from './colors/interfaces/ColorPaletteProps.js';
6
+ export * from './colors/interfaces/ColorPickerBlurEvent.js';
7
+ export * from './colors/interfaces/ColorPickerChangeEvent.js';
8
+ export * from './colors/interfaces/ColorPickerFocusEvent.js';
9
+ export * from './colors/interfaces/ColorPickerPaletteSettings.js';
10
+ export * from './colors/interfaces/ColorPickerPopupSettings.js';
11
+ export * from './colors/interfaces/ColorPickerProps.js';
12
+ export * from './colors/FlatColorPicker.js';
13
+ export { Switch, SwitchVue2 } from './switch/Switch.js';
14
+ export * from './input-separator/InputSeparator.js';
15
+ export * from './input/Input.js';
16
+ export * from './numerictextbox/NumericTextBox.js';
17
+ export * from './maskedtextbox/MaskedTextBox.js';
18
+ export * from './maskedtextbox/MaskedTextBoxProps.js';
19
+ export * from './slider/Slider.js';
20
+ export * from './slider/SliderLabel.js';
21
+ export * from './range-slider/RangeSlider.js';
22
+ export * from './checkbox/interfaces/CheckboxProps.js';
23
+ export * from './checkbox/interfaces/CheckboxChangeEvent.js';
24
+ export * from './checkbox/interfaces/CheckboxFocusEvent.js';
25
+ export * from './checkbox/Checkbox.js';
26
+ export * from './radiobutton/RadioGroup.js';
27
+ export * from './radiobutton/interfaces/RadioGroupProps.js';
28
+ export * from './radiobutton/interfaces/RadioGroupChangeEvent.js';
29
+ export * from './radiobutton/interfaces/RadioGroupFocusEvent.js';
30
+ export * from './radiobutton/RadioButton.js';
31
+ export * from './radiobutton/interfaces/RadioButtonProps.js';
32
+ export * from './radiobutton/interfaces/RadioButtonChangeEvent.js';
33
+ export * from './radiobutton/interfaces/RadioButtonFocusEvent.js';
34
+ export * from './textarea/TextArea.js';
35
+ export * from './textarea/interfaces/TextAreaProps.js';
36
+ export * from './textarea/interfaces/TextAreaChangeEvent.js';
37
+ export * from './textarea/interfaces/TextAreaFocusEvent.js';
@@ -0,0 +1,76 @@
1
+ import { DefineComponent, RecordPropsDefinition, ComponentOptions, Vue2type } from '../additionalTypes';
2
+ declare type DefaultData<V> = object | ((this: V) => MaskedTextBoxData);
3
+ declare type DefaultMethods<V> = {
4
+ [key: string]: (this: V, ...args: any[]) => any;
5
+ };
6
+ import { MaskingService } from './masking.service';
7
+ import { MaskedTextBoxProps } from './MaskedTextBoxProps';
8
+ import { FormComponentValidity } from '@progress/kendo-vue-common';
9
+ /**
10
+ * @hidden
11
+ */
12
+ interface MaskedTextBoxData {
13
+ currentFocused?: boolean;
14
+ currentValue?: string;
15
+ inputValue?: string;
16
+ }
17
+ /**
18
+ * @hidden
19
+ */
20
+ interface MaskedTextBoxState {
21
+ inputId: string;
22
+ service: MaskingService;
23
+ isPasted: boolean;
24
+ currentSelection: [number | null, number | null];
25
+ prevSelection: any;
26
+ prevIncludeLiterals: any;
27
+ prevMask: any;
28
+ prevPrompt: any;
29
+ prevPromptPlaceholder: any;
30
+ prevRules: any;
31
+ input: HTMLInputElement | null;
32
+ inputRef: any;
33
+ valueDuringOnChange?: string;
34
+ hasMounted: boolean;
35
+ prevCurrentFocused: any;
36
+ element: HTMLInputElement | null;
37
+ v3: boolean;
38
+ }
39
+ /**
40
+ * @hidden
41
+ */
42
+ export interface MaskedTextBoxMethods extends Vue2type {
43
+ focus: (e: any) => void;
44
+ computedValue: () => any;
45
+ rawValue: () => string;
46
+ validity: () => FormComponentValidity;
47
+ pasteHandler: (event: any) => void;
48
+ onChangeHandler: (event: any) => void;
49
+ focusHandler: (event: any) => void;
50
+ blurHandler: (event: any) => void;
51
+ triggerOnChange: (maskedValue: string, event: any) => void;
52
+ updateService: (extra?: any) => void;
53
+ setValidity: () => void;
54
+ }
55
+ /**
56
+ * @hidden
57
+ */
58
+ export interface MaskedTextBoxComputed {
59
+ [key: string]: any;
60
+ computedRules: any;
61
+ spanClassNames: any;
62
+ }
63
+ /**
64
+ * @hidden
65
+ */
66
+ export interface MaskedTextBoxAll extends MaskedTextBoxMethods, MaskedTextBoxState, MaskedTextBoxData, MaskedTextBoxComputed {
67
+ }
68
+ /**
69
+ * @hidden
70
+ */
71
+ declare let MaskedTextBoxVue2: ComponentOptions<Vue2type, DefaultData<MaskedTextBoxData>, DefaultMethods<MaskedTextBoxAll>, MaskedTextBoxComputed, RecordPropsDefinition<MaskedTextBoxProps>>;
72
+ /**
73
+ * @hidden
74
+ */
75
+ declare const MaskedTextBox: DefineComponent<MaskedTextBoxProps, any, MaskedTextBoxData, MaskedTextBoxComputed, MaskedTextBoxMethods, {}, {}, {}, string, MaskedTextBoxProps, MaskedTextBoxProps, {}>;
76
+ export { MaskedTextBox, MaskedTextBoxVue2 };